var wijmo,__extends=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();!function(t){"use strict";var e="undefined"!=typeof navigator?navigator.userAgent:"",n=null!=e.match(/iPad|iPhone|iPod|Android|webOS|BlackBerry|Windows Phone/i);t.isMobile=function(){return n};var r=null!=e.match(/iPad|iPhone|iPod/i);t.isiOS=function(){return r};var i=null!=e.match(/Firefox\//);function o(){return i}t.isFirefox=o;var s=null!=e.match(/^((?!Chrome|Android).)*safari/i);t.isSafari=function(){return s};var a=null!=e.match(/Edge\//);t.isEdge=function(){return a};var u=null!=e.match(/MSIE |Trident\/|Edge\//);t.isIE=function(){return u};var c=!1;t.isIE9=function(){return c};var l=!1;t.isIE10=function(){return l};var h=!1;"undefined"!=typeof document&&document.addEventListener("test",function(t){},{get passive(){return h=!0,!0}}),t.getEventOptions=function(t,e){return h?{capture:t,passive:e}:t};var f=!1;if("undefined"!=typeof document&&document.createElement("div").focus({get preventScroll(){return f=!0,!0}}),t.supportsFocusOptions=function(){return f},t._startDrag=function(t,e){t.effectAllowed=e,o()&&t.setData("text","")},"undefined"!=typeof document&&document.doctype&&(navigator.appVersion.indexOf("MSIE 10")>-1&&(l=!0),navigator.appVersion.indexOf("MSIE 9")>-1&&(c=!0,document.addEventListener("mousemove",function(e){if(1==e.which){var n=t.closest(e.target,".wj-control");if(n&&!n.style.cursor)for(var r=e.target;r;r=r.parentElement)if(r.attributes&&r.attributes.draggable)return r.dragDrop(),!1}}))),"undefined"!=typeof window){var p="requestAnimationFrame";if(!window[p]){var d=0;window[p]=function(t){var e=Date.now(),n=16-(e-d),r=n>0?n:0;return d=e+r,setTimeout(function(){t(d)},r)},window.cancelAnimationFrame=clearTimeout}if(!window.atob){var g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_=new RegExp("[^"+g+"]");window.atob=function(t){var e,n,r,i,o=[],s=0,a=t.length;if(_.test(t)||/=/.test(t)&&(/=[^=]/.test(t)||/={3}/.test(t)))throw new Error("Invalid base64 data");for(a%4>0&&(a=(t+=Array(4-a%4+1).join("=")).length);s<a;){for(n=[],i=s;s<i+4;)n.push(g.indexOf(t.charAt(s++)));for(r=[((e=(n[0]<<18)+(n[1]<<12)+((63&n[2])<<6)+(63&n[3]))&255<<16)>>16,64===n[2]?-1:(65280&e)>>8,64===n[3]?-1:255&e],i=0;i<3;++i)(r[i]>=0||0===i)&&o.push(String.fromCharCode(r[i]))}return o.join("")},window.btoa=function(t){for(var e,n,r=[],i=0,o=t.length;i<o;)e=((n=[t.charCodeAt(i++),t.charCodeAt(i++),t.charCodeAt(i++)])[0]<<16)+((n[1]||0)<<8)+(n[2]||0),r.push(g.charAt((e&63<<18)>>18),g.charAt((258048&e)>>12),g.charAt(isNaN(n[1])?64:(4032&e)>>6),g.charAt(isNaN(n[2])?64:63&e));return r.join("")}}}}(wijmo||(wijmo={})),function(t){var e="undefined"!=typeof window&&window.Symbol?Symbol("_getProxyTarget"):"\t_get\tProxy\tTarget\t";t._getCalculatedArray=function(n,r,i){var o=new WeakMap;if(!i){var s={};if(n.length){var a=n[0];for(var u in a){var c=typeof a[u];s[u]="string"==c?"":"number"==c?0:null}i=s}}return new Proxy(n,{get:function(n,s){if(s===e)return n;if("string"==typeof s||"number"==typeof s){if("indexOf"==s)return function(t,r){var i=n.indexOf(t,r);return i<0&&t&&(t=t[e])&&(i=n.indexOf(t,r)),i};var a=parseInt(s);if(!isNaN(a)){var u=n[a];if(u&&!u[e]){var c=o.get(u);c||(c=function(n,r,i){if(!n[e]){if(t.isIE())for(var o in r)n[o]=null;var s={get:function(t,n,o){if(n===e)return t;if("constructor"===n)return function(){return Object.assign({},i||{})};var s=r[n];if(s)switch(typeof s){case"function":return s(o);case"string":return function(t,e){var n=[e];return(new(Function.bind.apply(Function,[void 0].concat(["$"],["return "+t])))).apply(void 0,n)}(s,o)}return t[n]}};t.isIE()||(s.ownKeys=function(t){return Object.keys(t).concat(Object.keys(r))},s.getOwnPropertyDescriptor=function(t,e){return e in r?{enumerable:!0,configurable:!0,writable:!1}:Reflect.getOwnPropertyDescriptor(t,e)}),n=new Proxy(n,s)}return n}(u,r,i),o.set(u,c)),u=c}return u}}return Reflect.get(n,s)}})},t._getTargetObject=function(t){return(t?t[e]:null)||t}}(wijmo||(wijmo={})),function(t){var e=function(){function e(){this._hasDoc="undefined"!=typeof Document,this._ae=this._nativeAe();var e=window,n=this._onBlur.bind(this),r=this._onFocus.bind(this);e.addEventListener("focusout",n,!0),e.addEventListener("focusin",r,!0),t.isIE()||(e.addEventListener("blur",n,!0),e.addEventListener("focus",r,!0))}return Object.defineProperty(e.prototype,"activeElement",{get:function(){var t=this._ae,n=this._nativeAe();return t===e._noAe?t=this._ae=n:t!=n&&(this._isSpecialRoot(t)||document.body.contains(t)||(t=this._ae=n)),t!==e._noAe?t:null},enumerable:!0,configurable:!0}),e.prototype._onBlur=function(t){if(t.isTrusted){var e=t.relatedTarget;this._ae=this._isSpecialRoot(e)?this._nativeAe():e}},e.prototype._onFocus=function(t){t.isTrusted&&(this._ae=this._nativeAe())},e.prototype._isSpecialRoot=function(t){return null==t||t===document.body||this._hasDoc&&t instanceof Document},e.prototype._nativeAe=function(){var t;try{t="unknown"!=typeof document.activeElement?document.activeElement:e._noAe}catch(n){t=e._noAe}return t},e._noAe={},e}();"undefined"!=typeof window&&(t._focusSrv=new e)}(wijmo||(wijmo={})),function(t){"use strict";var e=function(){function t(t){this.path=t}return Object.defineProperty(t.prototype,"path",{get:function(){return this._path},set:function(t){this._path=t,this._parts=t?t.split("."):[];for(var e=0;e<this._parts.length;e++){var n=this._parts[e],r=n.indexOf("[");r>-1&&(this._parts[e]=n.substr(0,r),this._parts.splice(++e,0,parseInt(n.substr(r+1))))}this._key=1==this._parts.length?this._parts[0]:null},enumerable:!0,configurable:!0}),t.prototype.getValue=function(t){if(t){if(this._key)return t[this._key];if(this._path&&this._path in t)return t[this._path];for(var e=0;e<this._parts.length&&t;e++)t=t[this._parts[e]]}return t},t.prototype.setValue=function(t,e){if(t)try{var n=this._path;if(n in t)return t[n]=e,t[n]==e;for(var r=0;r<this._parts.length-1;r++)if(null==(t=t[this._parts[r]]))return!1;return t[n=this._parts[this._parts.length-1]]=e,t[n]==e}catch(t){return!1}return!1},t}();t.Binding=e}(wijmo||(wijmo={})),function(t){"use strict";var e=function(){return function(t,e){this.handler=t,this.self=e}}(),n=function(){function n(t){this._handlers=[],this._handlersChanged=t}return n.prototype.addHandler=function(n,r){n=t.asFunction(n),this._handlers.push(new e(n,r)),t.isFunction(this._handlersChanged)&&this._handlersChanged()},n.prototype.removeHandler=function(e,n){var r=!1;e=t.asFunction(e);for(var i=0;i<this._handlers.length;i++){var o=this._handlers[i];if((o.handler==e||null==e)&&(o.self==n||null==n)&&(this._handlers.splice(i--,1),r=!0,e&&n))break}r&&t.isFunction(this._handlersChanged)&&this._handlersChanged()},n.prototype.removeAllHandlers=function(){var e=this._handlers.length>0;this._handlers.length=0,e&&t.isFunction(this._handlersChanged)&&this._handlersChanged()},n.prototype.raise=function(t,e){void 0===e&&(e=r.empty);for(var n=this._handlers,i=0;i<n.length;i++){var o=n[i];o.handler.call(o.self,t,e),n[i]!==o&&i--}},Object.defineProperty(n.prototype,"hasHandlers",{get:function(){return this._handlers.length>0},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"handlerCount",{get:function(){return this._handlers.length},enumerable:!0,configurable:!0}),n}();t.Event=n;var r=function(){function t(){}return t.empty=new t,t}();t.EventArgs=r;var i=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.cancel=!1,e}return __extends(e,t),e}(r);t.CancelEventArgs=i;var o=function(t){function e(e,n,r){var i=t.call(this)||this;return i._name=e,i._oldVal=n,i._newVal=r,i}return __extends(e,t),Object.defineProperty(e.prototype,"propertyName",{get:function(){return this._name},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"oldValue",{get:function(){return this._oldVal},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"newValue",{get:function(){return this._newVal},enumerable:!0,configurable:!0}),e}(r);t.PropertyChangedEventArgs=o;var s=function(t){function e(e,n){var r=t.call(this)||this;return r._xhr=e,r._msg=n,r}return __extends(e,t),Object.defineProperty(e.prototype,"request",{get:function(){return this._xhr},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"message",{get:function(){return this._msg},set:function(t){this._msg=t},enumerable:!0,configurable:!0}),e}(i);t.RequestErrorEventArgs=s}(wijmo||(wijmo={})),function(t){!function(e){"use strict";var n;!function(t){t[t.Add=0]="Add",t[t.Remove=1]="Remove",t[t.Change=2]="Change",t[t.Reset=3]="Reset"}(n=e.NotifyCollectionChangedAction||(e.NotifyCollectionChangedAction={}));var r=function(t){function e(e,r,i){void 0===e&&(e=n.Reset),void 0===r&&(r=null),void 0===i&&(i=-1);var o=t.call(this)||this;return o.action=e,o.item=r,o.index=i,o}return __extends(e,t),e.reset=new e(n.Reset),e}(t.EventArgs);e.NotifyCollectionChangedEventArgs=r;var i=function(){function e(e,n){this._bnd=new t.Binding(e),this._asc=n}return Object.defineProperty(e.prototype,"property",{get:function(){return this._bnd.path},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ascending",{get:function(){return this._asc},enumerable:!0,configurable:!0}),e}();e.SortDescription=i;var o=function(t){function e(e){var n=t.call(this)||this;return n.newPageIndex=e,n}return __extends(e,t),e}(t.CancelEventArgs);e.PageChangingEventArgs=o;var s=function(){function t(){}return t.prototype.groupNameFromItem=function(t,e){return""},t.prototype.namesMatch=function(t,e){return t===e},t}();e.GroupDescription=s;var a=function(e){function n(n,r){var i=e.call(this)||this;return i._bnd=new t.Binding(n),i._converter=r,i}return __extends(n,e),Object.defineProperty(n.prototype,"propertyName",{get:function(){return this._bnd.path},enumerable:!0,configurable:!0}),n.prototype.groupNameFromItem=function(t,e){return this._converter?this._converter(t,this.propertyName):this._bnd.getValue(t)},n.prototype.namesMatch=function(t,e){return t===e},n}(s);e.PropertyGroupDescription=a}(t.collections||(t.collections={}))}(wijmo||(wijmo={})),function(t){"use strict";var e,n="5.20213.834";function r(t,e){return null==t?null:o(e)?c(t.implementsInterface)&&t.implementsInterface(e)?t:null:t instanceof e?t:null}function i(t){return o(t)||s(t)||u(t)||h(t)}function o(t){return"string"==typeof t}function s(t){return"number"==typeof t}function a(t){return s(t)&&t==Math.round(t)}function u(t){return"boolean"==typeof t}function c(t){return"function"==typeof t}function l(t){return void 0===t}function h(t){return(t instanceof Date||"[object Date]"===Object.prototype.toString.call(t))&&!isNaN(t.getTime())}function f(t){return t instanceof Array||Array.isArray(t)||"[object Array]"===Object.prototype.toString.call(t)}function p(t){return null!=t&&"object"==typeof t&&!h(t)&&!f(t)}function d(t){return s(t)?e.Number:u(t)?e.Boolean:h(t)?e.Date:o(t)?e.String:f(t)?e.Array:e.Object}function g(n,r,i,s){if(null!=n){var a=e;if(o(n))switch(r){case a.Number:var u=t.Globalize.parseFloat(n,i);return isNaN(u)?n:u;case a.Date:var c=t.Globalize.parseDate(n,i,h(s)?s:null);return c||i||!n||(c=new Date(n)),c&&isFinite(c.getTime())?c:n;case a.Boolean:switch(n.toLowerCase()){case"true":return!0;case"false":return!1}return n;case a.Array:try{var l=n.split(",").map(function(t){return(t=t.trim()).match(/^(\+|\-)?\d+\.?\d*$/)?t:'"'+t+'"'});return JSON.parse("["+l.join(",")+"]")}catch(t){}}if(r==e.String)return t.Globalize.format(n,i)}return n}function _(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=[],i=-1;return e[0].forEach(function(n,o){if(o>0&&o!=i){var a=e[o],u=n.match(/^:([a-z][0-9]*\b)/i)||n.match(/^:'(.+?)'/)||n.match(/^:"(.+?)"/);u?(a=t.Globalize.format(a,u[1]),n=n.substr(u[0].length)):":"==n&&o<e.length-1&&(s(a)||h(a))&&(a=t.Globalize.format(a,e[o+1]),n="",i=o+1),r.push(a)}n&&r.push(n)}),r.join("")}function m(e,n){(n=n||{}).glbz=_;var r=Object.keys(n),i=r.map(function(t){return n[t]});return(t.isIE()?new(Function.bind.apply(Function,[void 0].concat(r,["return "+e]))):new(Function.bind.apply(Function,[void 0].concat(r,["return glbz`"+e+"`"])))).apply(void 0,i)}function v(t,e){if(!t){e="** Assertion failed in Wijmo: "+e;var n=new Error;throw o(n.stack)&&(e+=" "+n.stack),e}}function y(t,e){return void 0===e&&(e=!0),l(t)&&(t=null),v(e&&null==t||o(t),"String expected."),t}function b(t,e,n){if(void 0===e&&(e=!1),void 0===n&&(n=!1),v(e&&null==t||s(t),"Number expected."),n&&t&&t<0)throw"Positive number expected.";return t}function w(t,e){return void 0===e&&(e=!1),v(e&&null==t||u(t),"Boolean expected."),t}function C(t,e){return void 0===e&&(e=!0),v(e&&null==t||c(t),"Function expected."),t}t.getVersion=function(){return n},t.setLicenseKey=function(e){t.Control._licKey=e},function(t){t[t.Back=8]="Back",t[t.Tab=9]="Tab",t[t.Enter=13]="Enter",t[t.Escape=27]="Escape",t[t.Space=32]="Space",t[t.PageUp=33]="PageUp",t[t.PageDown=34]="PageDown",t[t.End=35]="End",t[t.Home=36]="Home",t[t.Left=37]="Left",t[t.Up=38]="Up",t[t.Right=39]="Right",t[t.Down=40]="Down",t[t.Delete=46]="Delete",t[t.F1=112]="F1",t[t.F2=113]="F2",t[t.F3=114]="F3",t[t.F4=115]="F4",t[t.F5=116]="F5",t[t.F6=117]="F6",t[t.F7=118]="F7",t[t.F8=119]="F8",t[t.F9=120]="F9",t[t.F10=121]="F10",t[t.F11=122]="F11",t[t.F12=123]="F12"}(t.Key||(t.Key={})),function(t){t[t.Object=0]="Object",t[t.String=1]="String",t[t.Number=2]="Number",t[t.Boolean=3]="Boolean",t[t.Date=4]="Date",t[t.Array=5]="Array"}(e=t.DataType||(t.DataType={})),t.tryCast=r,t.isPrimitive=i,t.isString=o,t.isNullOrWhiteSpace=function(t){return!t||!/\S/.test(t)},t.isNumber=s,t.isInt=a,t.isBoolean=u,t.isFunction=c,t.isUndefined=l,t.isDate=h,t.isArray=f,t.isObject=p,t.isEmpty=function(t){for(var e in t)return!1;return!0},t.getUniqueId=function(t){for(var e=t,n=0;null!=document.getElementById(e);n++)e=t+n;return e},t.mouseToPage=function(t){if(t instanceof L)return t;if(t&&t.touches&&t.touches.length>0&&(t=t.touches[0]),s(t.clientX)&&s(t.clientY))return new L(t.clientX+pageXOffset,t.clientY+pageYOffset);throw"Mouse or touch event expected."},t.getType=d,t.getTypes=function(t,e){if(void 0===e&&(e=1e3),!t)return[];var n=t.length;(e<=0||n<e)&&(e=n);var r=[];if(e){for(var o=Object.keys(t[0]),s={},a=o.slice(),u=0;u<e;u++){for(var c=t[u],l=a.length-1;l>=0;l--){var h=a[l],f=c[h];if(i(f)){var p=Object.getOwnPropertyDescriptor(t[u],h);s[h]={binding:h,dataType:d(f),isReadOnly:p&&!p.writable&&!p.set},a.splice(l,1)}}if(!a.length)break}for(u=0;u<o.length;u++){var g=s[o[u]];g&&r.push(g)}}return r},t.changeType=g,t.toFixed=function(t,e,n){if(n){var r=(a=t.toString()).indexOf("e"),i=a.indexOf(".");if(r>-1){if("-"===a[r+1]){var o=parseFloat(a.substr(r+2)),s=a.substr(0,r);i>-1&&(s=s.substr(0,i)+s.substr(i+1)),a="0."+(Array(o).join("0")+s).substr(0,e),t=parseFloat(a)}}else i>-1&&(a=a.substr(0,i+1+e),t=parseFloat(a))}else{var a=t.toFixed(e);t=parseFloat(a)}return t},t.format=function(e,n,r){if((e=y(e)).match(/\{.*"count".*:.*"when".*:.*\}/))try{var i=JSON.parse(e);if(o(i.count)){var a=n[i.count],u=i.when;if(s(a)&&p(u)){var c=u[a]||u.other;o(c)&&(e=c)}}}catch(t){}return e.replace(/\{(.*?)(:(.*?))?\}/g,function(e,i,o,s){var a=e;return i&&"{"!=i[0]&&n&&(a=new t.Binding(i).getValue(n),s&&(a=t.Globalize.format(a,s)),r&&(a=r(n,i,s,a))),null==a?"":a})},t.glbz=_,t.evalTemplate=function(e,n){if(t.isIE())return(e=e.replace(/:\${([^}]*)}/g,function(t,e){return":"+m(e,n)})).replace(/\${([^}]*)}(:(([A-Za-z]\d*)|"([^"]+)"|'([^']+)'))?/g,function(e,r,i,o,s,a,u){var c=m(r,n);return o?t.Globalize.format(c,s||a||u):c});return m(e,n)},t.clamp=function(t,e,n){return null!=t&&(null!=n&&t>n&&(t=n),null!=e&&t<e&&(t=e)),t},t.copy=function e(n,r){if(r)for(var i in r)if("_"!=i[0]){v(i in n,'Unknown property "'+i+'".');var o=r[i];n._copy&&n._copy(i,o)||(n[i]instanceof t.Event?c(o)&&n[i].addHandler(o):!p(o)||"undefined"!=typeof Element&&o instanceof Element||!n[i]||"itemsSource"==i?n[i]=o:e(n[i],o))}return n},t.assert=v,t._deprecated=function(t,e){console.error('** WARNING: "'+t+'" has been deprecated; please use "'+e+'" instead.')},t.asString=y,t.asNumber=b,t.asInt=function(t,e,n){if(void 0===e&&(e=!1),void 0===n&&(n=!1),v(e&&null==t||a(t),"Integer expected."),n&&t&&t<0)throw"Positive integer expected.";return t},t.asBoolean=w,t.asDate=function(t,n){if(void 0===n&&(n=!1),o(t)){var r=g(t,e.Date,"r");h(r)&&(t=r)}return v(n&&null==t||h(t),"Date expected."),t},t.asFunction=C,t.asArray=function(t,e){return void 0===e&&(e=!0),v(e&&null==t||f(t),"Array expected."),t},t.asType=function(t,e,n){return void 0===n&&(n=!1),t=r(t,e),v(n||null!=t,e+" expected."),t},t.asEnum=function(t,e,n){if(void 0===n&&(n=!1),null==t&&n)return null;var r=o(t)?e[t]:t;return v(null!=r,'Invalid enum value: "'+t+'"'),s(r)?r:t},t.asCollectionView=function(e,n){if(void 0===n&&(n=!0),null==e&&n)return null;var i=r(e,"ICollectionView");return null!=i?i:(f(e)||v(!1,"Array or ICollectionView expected."),new t.collections.CollectionView(e))},t.hasItems=function(t){return null!=t&&null!=t.items&&t.items.length>0},t.toHeaderCase=function(t){return t&&t.length?t[0].toUpperCase()+t.substr(1).replace(/([a-z])([A-Z])/g,"$1 $2"):""},t.escapeHtml=function(t){return t&&o(t)&&(t=t.replace(/[&<>"'\/]/g,function(t){return A[t]})),null!=t?t.toString():""};var E,A={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function x(e,n){if(e&&n){if(e instanceof HTMLElement&&e.classList&&!t.isIE9())return e.classList.contains(n);if(e.getAttribute){var r=new RegExp("(\\s|^)"+n+"(\\s|$)");return e&&r.test(e.getAttribute("class"))}}return!1}function O(e,n){if(e&&n){if(e instanceof HTMLElement&&e.classList&&!t.isIE9())return void(n.indexOf(" ")<0?e.classList.add(n):n.split(" ").forEach(function(t){e.classList.add(t)}));e.setAttribute&&n.split(" ").forEach(function(t){if(!x(e,t)){var n=e.getAttribute("class");e.setAttribute("class",n?n+" "+t:t)}})}}function I(e,n){if(e&&n){if(e instanceof HTMLElement&&e.classList&&!t.isIE9())return void(n.indexOf(" ")<0?e.classList.remove(n):n.split(" ").forEach(function(t){e.classList.remove(t)}));e.setAttribute&&n.split(" ").forEach(function(t){if(x(e,t)){var n=new RegExp("((\\s|^)"+t+"(\\s|$))","g"),r=e.getAttribute("class");(r=r.replace(n," ").replace(/ +/g," ").trim())?e.setAttribute("class",r):e.removeAttribute("class")}})}}function T(t,e,n){null==n&&(n=!x(t,e)),n?O(t,e):I(t,e)}function F(t,e,n,r){t&&(null!=n?r&&t.getAttribute(e)||t.setAttribute(e,n.toString()):t.removeAttribute(e))}function S(){var t=document.activeElement;if(t){var e=t.shadowRoot;e&&e.activeElement&&(t=e.activeElement)}return t}function P(t){if(t instanceof Element)return t;if(o(t))try{return document.querySelector(t)}catch(t){}return t&&t.jquery?t[0]:null}function D(e,n,r){for(var i=n;i&&e;){if(i===e)return!0;i=(r?i[t.Control._OWNR_KEY]:null)||i.parentNode||i.host}return!1}function M(t,e){if(t){if(c(t.closest))return t.closest(e);var n=t.matches||t.webkitMatchesSelector||t.msMatchesSelector||t.mozMatchesSelector;if(n)for(;t&&1===t.nodeType;t=t.parentElement||t.parentNode)if(n.call(t,e))return t}return null}function j(t,e){if(v(p(e),"css parameter should be an object"),t instanceof Array)for(var n=0;n<t.length;n++)j(t[n],e);else if(t&&t.style){var r=t.style;for(var i in e){var o=e[i];"number"==typeof o&&i.match(/width|height|left|top|right|bottom|size|padding|margin'/i)&&(o+="px"),r[i]!==o&&(r[i]=o)}}}t.escapeRegExp=function(t){return t.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")},t.toPlainText=function(t){var e=y(t);return o(e)&&e.indexOf("<")>-1&&(E||(E=document.createElement("div")),E.innerHTML=e,e=E.textContent),e},t.hasClass=x,t.addClass=O,t.removeClass=I,t.toggleClass=T,t.setAttribute=F,t.setChecked=function(e,n){var r=null==n;e.checked=t.isIE()?n||r:n,e.indeterminate=r},t.setAriaLabel=function(t,e){F(t,"aria-label",e)},t.setSelectionRange=function(t,e,n){if(void 0===n&&(n=e),v(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement,"INPUT or TEXTAREA element expected"),D(document.body,t)&&!t.disabled&&t.offsetHeight){try{t.setSelectionRange(e,n,"backward")}catch(t){}try{return t.focus(),!0}catch(t){}}return!1},t.disableAutoComplete=function(t){var e="autocomplete",n=t.getAttribute(e);n&&"on"!=n||t.setAttribute(e,"off"),"autocorrect,autocapitalize,spellcheck".split(",").forEach(function(e){t.setAttribute(e,"spellcheck"==e?"false":"off")})},t.removeChild=function(t){return t&&t.parentNode?t.parentNode.removeChild(t):null},t.getActiveElement=S,t._getActiveElement=function(){var e=t._focusSrv.activeElement;if(e){var n=e.shadowRoot;n&&n.activeElement&&(e=n.activeElement)}return e},t.moveFocus=function(e,n){var r=function e(n,r){void 0===r&&(r=!1);var i=[],o=Array.prototype.slice.call(n.querySelectorAll("input,select,textarea,button,a,div")),s={},a=function(t){return t instanceof HTMLInputElement&&"radio"===t.type};o.forEach(function(t){a(t)&&t.checked&&(s[t.name||""]=!0)}),(o=o.filter(function(t){return!a(t)||t.checked||!s[t.name||""]})).sort(function(t,e){return t.tabIndex-e.tabIndex});for(var u=0;u<o.length;u++){var c=o[u];if(c.offsetHeight>0&&c.tabIndex>-1&&!c.disabled&&"hidden"!==window.getComputedStyle(c).visibility&&!M(c,"[disabled],.wj-state-disabled")){if(c instanceof HTMLAnchorElement&&!c.hasAttribute("href"))continue;if(t.isIE()&&!c.hasAttribute("tabindex")){if(c instanceof HTMLDivElement)continue;var l=t.Control.getControl(M(c,".wj-flexgrid"));if(l&&0==l.keyActionTab)continue}if("radio"===c.type&&!c.checked&&i.length>0){var h=i[i.length-1];if("radio"===h.type&&h.name===c.name){r&&(i[i.length-1]=c);continue}}!t.Control.getControl(c)&&e(c).length||i.push(c)}}return i}(e,n<0),i=0;if(n){var o=r.indexOf(S());o>-1&&(i=(o+n+r.length)%r.length)}if(i<r.length){var s=r[i];return s.focus(),s instanceof HTMLInputElement&&s.select(),!0}return!1},t.saveFile=function(t,e,n){void 0===n&&(n="text/plain");var r=t instanceof Blob;r||!n.match(/\bcsv\b/i)&&!e.match(/\.csv$/i)||(t="\ufeff"+t);var i=r?t:new Blob([t],{type:n});if(c(navigator.msSaveOrOpenBlob))navigator.msSaveOrOpenBlob(i,e);else{var o=document.createElement("a"),s=function(t){var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),t.dispatchEvent(e)};if("download"in o){var a=window.URL||window.webkitURL,u=a.createObjectURL(i);o.href=u,o.target="_blank",o.download=e,s(o),o=null,window.setTimeout(function(){a.revokeObjectURL(u)},3e4)}else{var l=new FileReader;l.onloadend=function(){o.href=l.result,o.download=e,s(o),o=null},l.readAsDataURL(i)}}},t.getElement=P,t.createElement=function(t,e,n){t=t.replace(/\bstyle\s*=\s*"/g,'_wj-style="');var r=document.createElement("div");if(r.innerHTML=t,t.indexOf("_wj-style")>-1)for(var i=r.querySelectorAll("[_wj-style]"),o=function(t){var e=i[t];e.getAttribute("_wj-style").split(";").forEach(function(t){var n=t.split(":");2==n.length&&(e.style[n[0].trim()]=n[1].trim())}),e.removeAttribute("_wj-style")},s=0;s<i.length;s++)o(s);return 1==r.children.length&&(r=r.children[0]),n&&j(r,n),e&&(e=P(e)).appendChild(r),r},t.setText=function(t,e){t.textContent=e||""},t.contains=D,t.closest=M,t.closestClass=function(t,e){return M(t,"."+e)},t.enable=function(t,e){var n=!e,r="disabled";T(t,"wj-state-disabled",n),F(t,r,n?r:null);for(var i=t.querySelectorAll("input,button"),o=0;o<i.length;o++)F(i[o],r,n?r:null)},t.getElementRect=function(t){var e=t.getBoundingClientRect();return new k(e.left+pageXOffset,e.top+pageYOffset,e.width,e.height)},t.setCss=j,t.animate=function(e,n,r){null==n&&(n=t.Control._ANIM_DEF_DURATION),null==r&&(r=t.Control._ANIM_DEF_STEP),e=C(e),n=b(n,!1,!0),r=b(r,!1,!0);var i,o=Date.now(),s=setInterval(function(){var t=Math.min(1,(Date.now()-o)/n);t=Math.sin(t*Math.PI/2),t*=t,i&&cancelAnimationFrame(i),i=requestAnimationFrame(function(){i=null,e(t)}),t>=1&&clearInterval(s)},r);return s};var L=function(){function t(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this.x=b(t),this.y=b(e)}return t.prototype.equals=function(e){return e instanceof t&&this.x==e.x&&this.y==e.y},t.prototype.clone=function(){return new t(this.x,this.y)},t}();t.Point=L;var R=function(){function t(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this.width=b(t),this.height=b(e)}return t.prototype.equals=function(e){return e instanceof t&&this.width==e.width&&this.height==e.height},t.prototype.clone=function(){return new t(this.width,this.height)},t}();t.Size=R;var k=function(){function t(t,e,n,r){this.left=b(t),this.top=b(e),this.width=b(n),this.height=b(r)}return Object.defineProperty(t.prototype,"right",{get:function(){return this.left+this.width},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bottom",{get:function(){return this.top+this.height},enumerable:!0,configurable:!0}),t.prototype.equals=function(e){return e instanceof t&&this.left==e.left&&this.top==e.top&&this.width==e.width&&this.height==e.height},t.prototype.clone=function(){return new t(this.left,this.top,this.width,this.height)},t.fromBoundingRect=function(e){return null!=e.left?new t(e.left,e.top,e.width,e.height):null!=e.x?new t(e.x,e.y,e.width,e.height):void v(!1,"Invalid source rectangle.")},t.union=function(e,n){var r=Math.min(e.left,n.left),i=Math.min(e.top,n.top);return new t(r,i,Math.max(e.right,n.right)-r,Math.max(e.bottom,n.bottom)-i)},t.intersection=function(e,n){var r=Math.max(e.left,n.left),i=Math.max(e.top,n.top);return new t(r,i,Math.min(e.right,n.right)-r,Math.min(e.bottom,n.bottom)-i)},t.prototype.contains=function(e){if(e instanceof L)return e.x>=this.left&&e.x<=this.right&&e.y>=this.top&&e.y<=this.bottom;if(e instanceof t){var n=e;return n.left>=this.left&&n.right<=this.right&&n.top>=this.top&&n.bottom<=this.bottom}v(!1,"Point or Rect expected.")},t.prototype.inflate=function(e,n){return new t(this.left-e,this.top-n,this.width+2*e,this.height+2*n)},t}();t.Rect=k;var N=function(){function e(){}return e.addDays=function(t,e){return(t=new Date(t.getTime())).setDate(t.getDate()+e),t},e.addMonths=function(t,e){var n=(t=new Date(t.getTime())).getDate();return t.setMonth(t.getMonth()+e),t.getDate()!=n&&t.setDate(0),t},e.addYears=function(t,e){return(t=new Date(t.getTime())).setFullYear(t.getFullYear()+e),t},e.addHours=function(t,e){return(t=new Date(t.getTime())).setHours(t.getHours()+e),t},e.addMinutes=function(t,e){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+e),t},e.addSeconds=function(t,e){return(t=new Date(t.getTime())).setSeconds(t.getSeconds()+e),t},e.weekFirst=function(n,r){return void 0===r&&(r=t.Globalize.getFirstDayOfWeek()),e.addDays(n,-(n.getDay()-r))},e.weekLast=function(n,r){return void 0===r&&(r=t.Globalize.getFirstDayOfWeek()),n=e.weekFirst(n,r),e.addDays(n,6)},e.monthFirst=function(t){return e.addDays(t,1-t.getDate())},e.monthLast=function(t){return t=e.monthFirst(t),t=e.addMonths(t,1),e.addDays(t,-1)},e.yearFirst=function(t){return new Date(t.getFullYear(),0,1)},e.yearLast=function(t){return new Date(t.getFullYear(),11,31)},e.sameDate=function(t,e){return h(t)&&h(e)&&t.getFullYear()==e.getFullYear()&&t.getMonth()==e.getMonth()&&t.getDate()==e.getDate()},e.sameTime=function(t,e){return h(t)&&h(e)&&t.getHours()==e.getHours()&&t.getMinutes()==e.getMinutes()&&t.getSeconds()==e.getSeconds()&&t.getMilliseconds()==e.getMilliseconds()},e.equals=function(t,e){return null==t&&null==e||h(t)&&h(e)&&t.getTime()==e.getTime()},e.fromDateTime=function(t,n){return t||n?(t||(t=n),n||(n=t),e.newDate(t.getFullYear(),t.getMonth(),t.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds())):null},e.toFiscal=function(n,r){var i=t.culture.Globalize.calendar;return f(i.fiscalYearOffsets)?e.addMonths(n,-i.fiscalYearOffsets[r?0:1]):n},e.fromFiscal=function(n,r){var i=t.culture.Globalize.calendar;return f(i.fiscalYearOffsets)?e.addMonths(n,+i.fiscalYearOffsets[r?0:1]):n},e.newDate=function(t,e,n,r,i,o,s){if(null==t||null==e||null==n){var a=new Date;null==t&&(t=a.getFullYear()),null==e&&(e=a.getMonth()),null==n&&(n=a.getDate())}null==r&&(r=0),null==i&&(i=0),null==o&&(o=0),null==s&&(s=0);var u=new Date(t,e,n,r,i,o,s),c=u.getFullYear();return t<100&&c>=1900&&u.setFullYear(u.getFullYear()-1900),u},e.clone=function(t){return e.fromDateTime(t,t)},e}();t.DateTime=N,t.httpRequest=function(t,e){var n=e||{},r=n.method?y(n.method).toUpperCase():"GET",i=null==n.async||w(n.async),a=n.data;if(null!=a&&"GET"==r){var u=[];for(var l in a){var f=a[l];h(f)&&(f=f.toJSON()),u.push(l+"="+encodeURIComponent(f))}u.length&&(t+=(t.indexOf("?")<0?"?":"&")+u.join("&")),a=null}var d=new XMLHttpRequest;d.URL_DEBUG=t;var g=!1;if(null==a||o(a)||(g=p(a),a=JSON.stringify(a)),d.onload=function(){4==d.readyState&&(d.status<300?n.success&&C(n.success)(d):n.error&&C(n.error)(d),n.complete&&C(n.complete)(d))},d.onerror=function(){if(!c(n.error))throw"HttpRequest Error: "+d.status+" "+d.statusText;n.error(d)},d.open(r,t,i,n.user,n.password),n.user&&n.password&&d.setRequestHeader("Authorization","Basic "+btoa(n.user+":"+n.password)),g&&function(){for(var t in n.requestHeaders)if("content-type"===t.toLowerCase())return!1;return!0}()&&d.setRequestHeader("Content-Type","application/json"),n.requestHeaders)for(var _ in n.requestHeaders)d.setRequestHeader(_,n.requestHeaders[_]);return s(n.timeout)&&(d.timeout=n.timeout),c(n.beforeSend)&&n.beforeSend(d),d.send(a),d};var B={};t._registerModule=function(t,e){if(B[t]=e,"wijmo"===t){var n="undefined"!=typeof window?window:"undefined"!=typeof self?self:null;n&&(n.wijmo=e)}},t._getModule=function(t){return B[t]}}(wijmo||(wijmo={})),function(t){var e=function(){function t(t){if(void 0===t&&(t=!0),t)this._h={};else{var e=function(){var t=null;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self);return t}(),r=e&&e.Map;this._m=r&&new Map||new n}}return Object.defineProperty(t.prototype,"isPojoHash",{get:function(){return null!=this._h},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this._h&&Object.keys(this._h).length||this._m.size},enumerable:!0,configurable:!0}),t.prototype.clear=function(){this._h?this._h={}:this._m.clear()},t.prototype.delete=function(t){this._h?delete this._h[t]:this._m.delete(t)},t.prototype.get=function(t){return this._h?this._h[t]:this._m.get(t)},t.prototype.has=function(t){return this._h?t in this._h:this._m.has(t)},t.prototype.set=function(t,e){return this._h?this._h[t]=e:this._m.set(t,e),this},t}();t._Map=e;var n=function(){function t(){this._d=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this._d.length},enumerable:!0,configurable:!0}),t.prototype.clear=function(){this._d=[]},t.prototype.delete=function(t){var e=this._kIdx(t);return e>-1&&(this._d.splice(e,1),!0)},t.prototype.get=function(t){var e=this._kIdx(t);return e>-1?this._d[e].v:void 0},t.prototype.has=function(t){return this._kIdx(t)>-1},t.prototype.set=function(t,e){var n=this._kIdx(t);return n>-1?this._d[n].v=e:this._d.push({k:t,v:e}),this},t.prototype._kIdx=function(t){var e=this._d,n=e.length;if(t==t){for(var r=0;r<n;r++)if(e[r].k===t)return r}else for(r=0;r<n;r++){var i=e[r].k;if(i!=i)return r}return-1},t}()}(wijmo||(wijmo={})),function(t){"use strict";var e=function(){function e(t){this._r=0,this._g=0,this._b=0,this._a=1,t&&this._parse(t)}return Object.defineProperty(e.prototype,"r",{get:function(){return this._r},set:function(e){this._r=t.clamp(t.asNumber(e),0,255)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"g",{get:function(){return this._g},set:function(e){this._g=t.clamp(t.asNumber(e),0,255)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"b",{get:function(){return this._b},set:function(e){this._b=t.clamp(t.asNumber(e),0,255)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"a",{get:function(){return this._a},set:function(e){this._a=t.clamp(t.asNumber(e),0,1)},enumerable:!0,configurable:!0}),e.prototype.equals=function(t){return t instanceof e&&this.r==t.r&&this.g==t.g&&this.b==t.b&&this.a==t.a},e.prototype.toString=function(){var t=Math.round(100*this.a);return t>99?"#"+((1<<24)+(this.r<<16)+(this.g<<8)+this.b).toString(16).slice(1):"rgba("+this.r+","+this.g+","+this.b+","+t/100+")"},e.fromRgba=function(n,r,i,o){void 0===o&&(o=1);var s=new e(null);return s.r=Math.round(t.clamp(t.asNumber(n),0,255)),s.g=Math.round(t.clamp(t.asNumber(r),0,255)),s.b=Math.round(t.clamp(t.asNumber(i),0,255)),s.a=t.clamp(t.asNumber(o),0,1),s},e.fromHsb=function(n,r,i,o){void 0===o&&(o=1);var s=e._hsbToRgb(t.clamp(t.asNumber(n),0,1),t.clamp(t.asNumber(r),0,1),t.clamp(t.asNumber(i),0,1));return e.fromRgba(s[0],s[1],s[2],o)},e.fromHsl=function(n,r,i,o){void 0===o&&(o=1);var s=e._hslToRgb(t.clamp(t.asNumber(n),0,1),t.clamp(t.asNumber(r),0,1),t.clamp(t.asNumber(i),0,1));return e.fromRgba(s[0],s[1],s[2],o)},e.fromString=function(n){var r=new e(null);return r._parse(t.asString(n))?r:null},e.prototype.getHsb=function(){return e._rgbToHsb(this.r,this.g,this.b)},e.prototype.getHsl=function(){return e._rgbToHsl(this.r,this.g,this.b)},e.interpolate=function(n,r,i){i=t.clamp(t.asNumber(i),0,1);var o=e._rgbToHsl(n.r,n.g,n.b),s=e._rgbToHsl(r.r,r.g,r.b),a=1-i,u=n.a*a+r.a*i,c=[o[0]*a+s[0]*i,o[1]*a+s[1]*i,o[2]*a+s[2]*i],l=e._hslToRgb(c[0],c[1],c[2]);return e.fromRgba(l[0],l[1],l[2],u)},e.toOpaque=function(n,r){if(1==(n=t.isString(n)?e.fromString(n):t.asType(n,e)).a)return n;r=null==r?e.fromRgba(255,255,255,1):t.isString(r)?e.fromString(r):t.asType(r,e);var i=n.a,o=1-i;return e.fromRgba(n.r*i+r.r*o,n.g*i+r.g*o,n.b*i+r.b*o)},e.prototype._parse=function(n){if("transparent"==(n=n.toLowerCase()))return this._r=this._g=this._b=this._a=0,!0;if(n&&0!=n.indexOf("#")&&0!=n.indexOf("rgb")&&0!=n.indexOf("hsl")){var r=document.createElement("div");r.style.color=n;var i=r.style.color;i==n&&((i=window.getComputedStyle(r).color)||(document.body.appendChild(r),i=window.getComputedStyle(r).color,t.removeChild(r))),n=i.toLowerCase()}if(0==n.indexOf("#"))return 4==n.length?(this.r=parseInt(n[1]+n[1],16),this.g=parseInt(n[2]+n[2],16),this.b=parseInt(n[3]+n[3],16),this.a=1,!0):7==n.length&&(this.r=parseInt(n.substr(1,2),16),this.g=parseInt(n.substr(3,2),16),this.b=parseInt(n.substr(5,2),16),this.a=1,!0);if(0==n.indexOf("rgb")){var o=n.indexOf("("),s=n.indexOf(")");if(o>-1&&s>-1)if((a=n.substr(o+1,s-(o+1)).split(",")).length>2)return this.r=parseInt(a[0]),this.g=parseInt(a[1]),this.b=parseInt(a[2]),this.a=a.length>3?parseFloat(a[3]):1,!0}if(0==n.indexOf("hsl")){var a;o=n.indexOf("("),s=n.indexOf(")");if(o>-1&&s>-1)if((a=n.substr(o+1,s-(o+1)).split(",")).length>2){var u=parseInt(a[0])/360,c=parseInt(a[1]),l=parseInt(a[2]);a[1].indexOf("%")>-1&&(c/=100),a[2].indexOf("%")>-1&&(l/=100);var h=e._hslToRgb(u,c,l);return this.r=h[0],this.g=h[1],this.b=h[2],this.a=a.length>3?parseFloat(a[3]):1,!0}}return!1},e._hslToRgb=function(n,r,i){var o,s,a;if(t.assert(n>=0&&n<=1&&r>=0&&r<=1&&i>=0&&i<=1,"bad HSL values"),0==r)o=s=a=i;else{var u=i<.5?i*(1+r):i+r-i*r,c=2*i-u;o=e._hue2rgb(c,u,n+1/3),s=e._hue2rgb(c,u,n),a=e._hue2rgb(c,u,n-1/3)}return[Math.round(255*o),Math.round(255*s),Math.round(255*a)]},e._hue2rgb=function(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t},e._rgbToHsl=function(e,n,r){t.assert(e>=0&&e<=255&&n>=0&&n<=255&&r>=0&&r<=255,"bad RGB values"),e/=255,n/=255,r/=255;var i,o,s=Math.max(e,n,r),a=Math.min(e,n,r),u=(s+a)/2;if(s==a)i=o=0;else{var c=s-a;switch(o=u>.5?c/(2-s-a):c/(s+a),s){case e:i=(n-r)/c+(n<r?6:0);break;case n:i=(r-e)/c+2;break;case r:i=(e-n)/c+4}i/=6}return[i,o,u]},e._rgbToHsb=function(n,r,i){t.assert(n>=0&&n<=255&&r>=0&&r<=255&&i>=0&&i<=255,"bad RGB values");var o=e._rgbToHsl(n,r,i);return e._hslToHsb(o[0],o[1],o[2])},e._hsbToRgb=function(t,n,r){var i=e._hsbToHsl(t,n,r);return e._hslToRgb(i[0],i[1],i[2])},e._hsbToHsl=function(e,n,r){t.assert(e>=0&&e<=1&&n>=0&&n<=1&&r>=0&&r<=1,"bad HSB values");var i=t.clamp(r*(2-n)/2,0,1),o=1-Math.abs(2*i-1),s=t.clamp(o>0?r*n/o:n,0,1);return t.assert(!isNaN(i)&&!isNaN(s),"bad conversion to HSL"),[e,s,i]},e._hslToHsb=function(e,n,r){t.assert(e>=0&&e<=1&&n>=0&&n<=1&&r>=0&&r<=1,"bad HSL values");var i=t.clamp(1==r?1:(2*r+n*(1-Math.abs(2*r-1)))/2,0,1),o=t.clamp(i>0?2*(i-r)/i:n,0,1);return t.assert(!isNaN(i)&&!isNaN(o),"bad conversion to HSB"),[e,o,i]},e}();t.Color=e}(wijmo||(wijmo={})),function(t){"use strict";t.culture="undefined"!=typeof window&&window.wijmo&&window.wijmo.culture||{Globalize:{numberFormat:{".":".",",":",","-":"-","+":"+","%":"%",percent:{pattern:["-n%","n%"]},currency:{decimals:2,symbol:"$",pattern:["($n)","$n"]}},calendar:{"/":"/",":":":",firstDay:0,days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],am:["AM","A"],pm:["PM","P"],eras:["A.D.","B.C."],patterns:{d:"M/d/yyyy",D:"dddd, MMMM dd, yyyy",f:"dddd, MMMM dd, yyyy h:mm tt",F:"dddd, MMMM dd, yyyy h:mm:ss tt",t:"h:mm tt",T:"h:mm:ss tt",M:"MMMM d",m:"MMMM d",Y:"MMMM, yyyy",y:"MMMM, yyyy",g:"M/d/yyyy h:mm tt",G:"M/d/yyyy h:mm:ss tt",s:'yyyy"-"MM"-"dd"T"HH":"mm":"ss',o:'yyyy"-"MM"-"dd"T"HH":"mm":"ss"."fffffffK',O:'yyyy"-"MM"-"dd"T"HH":"mm":"ss"."fffffffK',U:"dddd, MMMM dd, yyyy h:mm:ss tt"},fiscalYearOffsets:[-3,-3]}}};var e=function(){function e(){}return e.format=function(n,r,i,o,s){return t.isString(n)?n:t.isNumber(n)?(r=r||(n==Math.round(n)?"n0":"n2"),e.formatNumber(n,r,i,o,s)):t.isDate(n)?(r=r||"d",e.formatDate(n,r)):null!=n?n.toString():""},e.formatNumber=function(n,r,i,o,s){n=t.asNumber(n),r=t.asString(r);var a,u=t.culture.Globalize.numberFormat,c=e._parseNumericFormat(r),l=c.spec,h=c.prec,f=u["."]||".",p=u[","]||",",d=u["-"]||"-",g=Math;if(null==h&&(h=null!=s?s:"c"==l?u.currency.decimals:"e"==l?6:"r"==l?15:n==g.round(n)?0:2),c.scale&&(n/=g.pow(10,c.scale)),"d"==l||"x"==l){for(a=(o?g.floor:g.round)(g.abs(n)).toString("d"==l?10:16);a.length<h;)a="0"+a;return n<0&&(a=d+a),"X"==c.specRaw?a.toUpperCase():a}switch("p"==l&&(n=e._shiftDecimal(n,2,14),n=t.toFixed(n,h,o)),o&&"p"!=l&&"e"!=l&&(n=t.toFixed(n,h,!0)),l){case"e":a=n.toExponential(h),"E"==c.specRaw&&(a=a.replace("e","E"));break;case"c":case"p":a=e._toFixedStr(g.abs(n),h);break;default:"-"!=(a=e._toFixedStr(n,h))[0]||a.match(/[1-9]/)||(a=a.substr(1))}if((i||"g"==l||"r"==l)&&a.indexOf(".")>-1&&(a=a.replace(/(\.\d*?)0+$/g,"$1").replace(/\.$/,"")),"."!=f&&(a=a.replace(".",f)),"-"!=d&&(a=a.replace("-",d)),p&&("n"==l||"c"==l||"p"==c.specRaw||"F"==c.specRaw||"G"==c.specRaw)){var _=a.indexOf(f),m=/\B(?=(\d\d\d)+(?!\d))/g;a=_>-1?a.substr(0,_).replace(m,p)+a.substr(_):a.replace(m,p)}if("c"==l){var v=n<0&&a.match(/[1-9]/)?0:1,y=u.currency.pattern[v],b=c.curr||u.currency.symbol;"​"==b&&(b=""),a=y.replace("n",a).replace("$",b)}if("p"==l){v=n<0&&a.match(/[1-9]/)?0:1,y=u.percent.pattern[v];var w=u["%"]||"%";a=y.replace("n",a),"%"!=w&&(a=a.replace("%",w)),"-"!=d&&0==v&&(a=a.replace("-",d))}return c.prefix||c.suffix?c.prefix+a+c.suffix:a},e.formatDate=function(n,r){switch(n=t.asDate(n),r){case"r":case"R":return n.toUTCString();case"u":return n.toISOString().replace(/\.\d{3}/,"")}return r=e._expandFormat(r),e._parseDateFormat(r).map(function(t){return e._formatDatePart(n,r,t)}).join("")},e.parseInt=function(t,n){return Math.round(e.parseFloat(t,n))},e.parseFloat=function(n,r){var i=e._parseNumericFormat(r),o=i.prefix;o&&0==n.indexOf(o)&&(n=n.substring(o.length));var s=i.suffix;if(s){var a=n.lastIndexOf(s);a>-1&&a==n.length-s.length&&(n=n.substring(0,n.length-s.length))}var u=t.culture.Globalize.numberFormat,c=u["."]||".",l=u[","]||",",h=u["-"]||"-",f=u["%"]||"%",p=i.curr||u.currency.symbol||"$",d=n.indexOf(f)>-1,g=n.indexOf("(")>-1&&n.indexOf(")")>-1,_=0;if("x"==i.spec)_=parseInt(n,16);else{[p,f,"(",")"].forEach(function(t){n=n.replace(t,"")}),/\s/.test(l)&&(n=n.replace(/\s+/g,""));var m=(n=n.replace(new RegExp("\\"+l,"g"),"").replace(new RegExp("\\"+h,"g"),"-").replace(/(\+|\-)\s+/g,"$1").replace(c,".").trim()).length;!g&&m&&"-"==n[m-1]&&(g=!0,n=n.substring(0,m-1)),_=/^\s*(\+|\-)?\d*(\.\d*)?(\s*E(\+|\-)?\d+)?\s*$/i.test(n)?parseFloat(n):Number.NaN}return isNaN(_)||(g=g||_<0,_=Math.abs(_),d&&(_=e._shiftDecimal(_,-2)),g&&(_=-_),i.scale&&(_*=Math.pow(10,i.scale))),_},e.parseDate=function(n,r,i){if(!(n=t.asString(n)))return null;if("u"==r)return new Date(n);var o;if("R"==r||"r"==r){var s=n.match(/((\d+)\-(\d+)\-(\d+))?\s?((\d+):(\d+)(:(\d+))?)?/);return s[1]||s[5]?(o=s[1]?new Date(parseInt(s[2]),parseInt(s[3])-1,parseInt(s[4])):new Date,s[5]&&(o.setHours(parseInt(s[6])),o.setMinutes(parseInt(s[7])),o.setSeconds(s[8]?parseInt(s[9]):0))):o=new Date(n),isNaN(o.getTime())?null:o}r=e._expandFormat(r||"d");var a=t.culture.Globalize.calendar,u=e._CJK,c=new RegExp("(\\"+a["/"]+")|(\\"+a[":"]+")|(\\d+)|(["+u+"\\.]{2,})|(["+u+"]+)","gi"),l=n.match(c),h=e._parseDateFormat(r),f=0;if(!(l&&l.length&&h&&h.length))return null;var p,d,g,_,m,v=-1,y=0,b=1,w=0,C=0,E=0,A=0,x=-1,O=null;(i=t.asDate(i,!0))&&(y=i.getMonth(),b=i.getDate(),w=i.getHours(),C=i.getMinutes(),E=i.getSeconds(),A=i.getMilliseconds());for(var I=0;I<h.length&&l;I++){var T=I-f,F=T>-1&&T<l.length?l[T]:"",S=h[I].length;switch(h[I]){case"EEEE":case"EEE":case"EE":case"E":case"eeee":case"eee":case"ee":case"e":m=h[I];case"yyyy":case"yyy":case"yy":case"y":S>1&&F.length>S&&(l[T]=F.substr(S),F=F.substr(0,S),f++),v=parseInt(F),_=4==F.length;break;case"MMMM":case"MMM":g=!0,y=-1;for(var P=F.toLowerCase(),D="MMMM"==h[I]?a.months:a.monthsAbbr,M=0;M<12;M++)if(0==D[M].toLowerCase().indexOf(P)){y=M;break}if(y>-1)break;case"MM":case"M":g=!0,S>1&&F.length>S&&(l[T]=F.substr(S),F=F.substr(0,S),f++),y=parseInt(F)-1;break;case"dddd":case"ddd":p=!0;break;case"dd":case"d":S>1&&F.length>S&&(l[T]=F.substr(S),F=F.substr(0,S),f++),b=parseInt(F),d=!0;break;case"hh":case"h":S>1&&F.length>S&&(l[T]=F.substr(S),F=F.substr(0,S),f++),w=12==(w=parseInt(F))?0:w;break;case"HH":S>1&&F.length>S&&(l[T]=F.substr(S),F=F.substr(0,S),f++),w=parseInt(F);break;case"H":w=parseInt(F);break;case"mm":case"m":S>1&&F.length>S&&(l[T]=F.substr(S),F=F.substr(0,S),f++),C=parseInt(F);break;case"ss":case"s":S>1&&F.length>S&&(l[T]=F.substr(S),F=F.substr(0,S),f++),E=parseInt(F);break;case"fffffff":case"FFFFFFF":case"ffffff":case"FFFFFF":case"fffff":case"FFFFF":case"ffff":case"FFFF":case"fff":case"FFF":case"ff":case"FF":case"f":case"F":A=parseInt(F)/Math.pow(10,S-3);break;case"tt":case"t":F=F.toUpperCase(),w<12&&a.pm.indexOf(F)>-1&&(w+=12);break;case"q":case"Q":case"u":case"U":x=parseInt(F);break;case"ggg":case"gg":case"g":if(O=a.eras.length>1?e._getEra(F,a):null,a.eras.length>0&&!O)return null;break;case"/":case":":if(F&&F!=a[h[I]])return null;break;case a["/"]:case a[":"]:if(F&&F!=h[I])return null;break;case"K":break;default:e._unquote(h[I]).trim()!=F.trim()&&f++}}if(g&&d&&(isNaN(w)&&(w=0),isNaN(C)&&(C=0),isNaN(E)&&(E=0)),y<0||y>11||isNaN(y)||b<1||b>31||isNaN(b)||w<0||w>=24||isNaN(w)||C<0||C>=60||isNaN(C)||E<0||E>=60||isNaN(E))return null;if(l.length+f>h.length)return null;if(m){if(!g)return null;var j=t.culture.Globalize.calendar;if(t.isArray(j.fiscalYearOffsets)){var L="E"==m[0],R=y-j.fiscalYearOffsets[L?0:1];v+=R>11?-1:R<0?1:0}}if(p&&!d)return null;if(!g&&x>=1&&x<=4&&(y=3*(x-1)),isNaN(v)||v<0)v=i?i.getFullYear():(new Date).getFullYear();else if(O&&O.start)v=v+O.start.getFullYear()-1;else if(v<100&&!_){var k=t.isNumber(a.twoDigitYearMax)?a.twoDigitYearMax:2029;k>99&&(v+=v+2e3<=k?2e3:1900)}return(o=t.DateTime.newDate(v,y,b,w,C+0,E,A)).getMonth()!=y||o.getDate()!=b?null:isNaN(o.getTime())?null:o},e.getFirstDayOfWeek=function(){var e=t.culture.Globalize.calendar.firstDay;return e||0},e.getNumberDecimalSeparator=function(){var e=t.culture.Globalize.numberFormat["."];return e||"."},e._toFixedStr=function(t,e){var n=t.toString(),r=n.indexOf("."),i=e-(n.length-r)+1,o=n.indexOf("e")>-1;if(!o&&r>-1&&i>=0)return n+Array(i+1).join("0");r>-1&&!o&&"5"==n[n.length-1]&&(t=+(Math.round(+(Math.abs(t)+"e"+e))+"e"+-e)*(t<0?-1:1));return t.toFixed(e)},e._unquote=function(t){return t.length>1&&t[0]==t[t.length-1]&&("'"==t[0]||'"'==t[0])?t.substr(1,t.length-2):t},e._parseNumericFormat=function(t){var n=e._numFormatInfo[t];if(!n){var r=t&&t.match(/(\"(.*?)\"\s*)?([a-z]+)\s*(\d*)\s*(,*)(\s*\"(.*?)\"\s*)?(.*)/i)||[],i=r[3]?r[3]:"n";i.length>1&&(r=[],i="n"),n={prefix:r[2]||"",spec:i.toLowerCase(),specRaw:i,prec:r[4]?parseInt(r[4]):null,scale:r[5]?3*r[5].length:0,suffix:r[7]||"",curr:r[8]||null},e._numFormatInfo[t]=n}return n},e._parseDateFormat=function(t){var n=e._dateFormatParts[t];if(!n){if(n=[],t){var r=void 0,i=void 0;for(r=0;r>-1&&r<t.length;r++){var o=t[r];if(("'"==o||'"'==o)&&(i=t.indexOf(o,r+1))>-1)n.push(t.substring(r,i+1)),r=i;else if("\\"==o&&r<t.length-1)r++,n.push('"'+t[r]+'"');else{for(i=r+1;i<t.length&&t[i]==o;i++);n.push(t.substring(r,i)),r=i-1}}}e._dateFormatParts[t]=n}return n},e._formatDatePart=function(n,r,i){var o,s=t.culture.Globalize.calendar,a=null,u=0,c=0,l=i.length;switch(i){case"yyyy":case"yyy":case"yy":case"y":case"EEEE":case"EEE":case"EE":case"E":case"eeee":case"eee":case"ee":case"e":u=(o="E"==i[0]?t.DateTime.toFiscal(n,!0):"e"==i[0]?t.DateTime.toFiscal(n,!1):n).getFullYear(),s.eras.length>1&&r.indexOf("g")>-1&&(a=e._getEra(n,s))&&(u=t.isDate(a.start)?u-a.start.getFullYear()+1:Math.abs(u));var h=i.length<3?u%100:3==i.length?u%1e3:u;return e._zeroPad(h,i.length);case"MMMMM":return s.monthsAbbr[n.getMonth()][0];case"MMMM":return s.months[n.getMonth()];case"MMM":return s.monthsAbbr[n.getMonth()];case"MM":case"M":return e._zeroPad(n.getMonth()+1,l);case"dddd":return s.days[n.getDay()];case"ddd":return s.daysAbbr[n.getDay()];case"dd":return e._zeroPad(n.getDate(),2);case"d":return n.getDate().toString();case"hh":case"h":return e._zeroPad(e._h12(n),l);case"HH":case"H":return e._zeroPad(n.getHours(),l);case"mm":case"m":return e._zeroPad(n.getMinutes(),l);case"ss":case"s":return e._zeroPad(n.getSeconds(),l);case"fffffff":case"FFFFFFF":case"ffffff":case"FFFFFF":case"fffff":case"FFFFF":case"ffff":case"FFFF":case"fff":case"FFF":case"ff":case"FF":case"f":case"F":return c=n.getMilliseconds()*Math.pow(10,l-3),"f"==i[0]?e._zeroPad(c,l):c.toFixed(0);case"tt":return n.getHours()<12?s.am[0]:s.pm[0];case"t":return n.getHours()<12?s.am[1]:s.pm[1];case"q":case"Q":return(Math.floor(n.getMonth()/3)+1).toString();case"u":case"U":return o=t.DateTime.toFiscal(n,"U"==i),(Math.floor(o.getMonth()/3)+1).toString();case"ggg":case"gg":case"g":if(s.eras.length>1&&(a=e._getEra(n,s))){if(t.isString(a))return a;switch(i){case"gg":return a.name[0];case"g":return a.symbol;default:return a.name}}return s.eras[0];case":":case"/":return s[i];case"K":var f=n.toString().match(/(\+|\-)(\d{2})(\d{2})/);return f?f[1]+f[2]+f[3]:"";case"zzz":case"zz":case"z":var p=-n.getTimezoneOffset(),d=Math.abs(p),g=e.formatNumber,_=void 0;switch(i){case"zzz":_=g(d/60,"d2",!1,!0)+s[":"]+g(d%60,"d2",!1,!0);break;case"zz":_=g(d/60,"d2",!1,!0);break;case"z":_=g(d/60,"d1",!1,!0)}return(p>=0?"+":"-")+_}return l>1&&i[0]==i[l-1]&&('"'==i[0]||"'"==i[0])?i.substr(1,l-2):i},e._getEra=function(e,n){if(n.eras){var r=n.eras,i=n.eras.length;if(t.isDate(e)){if(t.isString(r[0]))return r[e.getFullYear()>=0?0:1];if(t.isDate(r[0].start)){for(var o=0;o<i;o++)if(e>=r[o].start)return r[o];return r[i-1]}}else if(t.isString(e)&&e.length>0){e=e.toLowerCase();for(o=0;o<i;o++){var s=r[o];if(t.isString(s)){if(0==s.toLowerCase().indexOf(e))return s}else if(s.name&&0==s.name.toLowerCase().indexOf(e)||s.symbol&&0==s.symbol.toLowerCase().indexOf(e))return s}}}return null},e._expandFormat=function(e){var n=t.culture.Globalize.calendar.patterns[e];return n||e},e._zeroPad=function(t,e){var n=t.toFixed(0),r=e-n.length+1;return r>0?Array(r).join("0")+n:n},e._h12=function(e){var n=t.culture.Globalize.calendar,r=e.getHours();return n.am&&n.am[0]&&0==(r%=12)&&(r=12),r},e._shiftDecimal=function(t,e,n){if(0==e||isNaN(t))return t;var r=t.toString();if(r.indexOf("e")>-1){var i=t*Math.pow(10,e);return null!=n&&(i=parseFloat(i.toFixed(n))),i}var o=Array(Math.abs(e)+1).join("0");e<0&&(r=o+r);var s=r.indexOf(".");return s<0&&(s=(r+=".").indexOf(".")),e>0&&(r+=o),s+=e,r=(r=r.replace(".","")).substr(0,s)+"."+r.substr(s),parseFloat(r)},e._CJK="a-z"+"u00c0-u017fu3000-u30ffu4e00-u9faf".replace(/u/g,"\\u")+"u1100-u11ffu3130-u318fua960-ua97fuac00-ud7afud7b0-ud7ff".replace(/u/g,"\\u"),e._numFormatInfo={},e._dateFormatParts={},e}();t.Globalize=e,t._updateCulture=function(e){t.culture=e},t._addCultureInfo=function(e,n){var r="undefined"!=typeof window?window.wijmo:null,i=r?r.culture:null,o=i?i[e]:null;t.culture[e]=o||n}}(wijmo||(wijmo={})),function(t){"use strict";var e=function(){function e(e,n,r){void 0===n&&(n=""),void 0===r&&(r="_"),this._promptChar="_",this._mskArr=[],this._overWrite=!1,this._full=!0,this._inputBnd=this._input.bind(this),this._keydownBnd=this._keydown.bind(this),this._keypressBnd=this._keypress.bind(this),this._cmpstartBnd=this._cmpstart.bind(this),this._cmpendBnd=this._cmpend.bind(this),this.mask=t.asString(n),this.input=e,this.promptChar=t.asString(r,!1),this._connect(!0),(this._evtInput=document.createEvent("HTMLEvents")).initEvent("input",!0,!1)}return Object.defineProperty(e.prototype,"input",{get:function(){return this._tbx},set:function(t){this._connect(!1),this._tbx=t,this._connect(!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"mask",{get:function(){return this._msk},set:function(e){e!=this._msk&&(this._msk=t.asString(e,!0),this._parseMask(),this._valueChanged())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"promptChar",{get:function(){return this._promptChar},set:function(e){if(e!=this._promptChar){e=t.asString(e,!1),t.assert(1==e.length,"promptChar must be a string with length 1.");for(var n=this._tbx,r=n.value,i="",o=this._mskArr,s=this._promptChar,a=0;a<r.length;a++){var u=o[a],c=r[a];u&&u.literal||c!==s||(c=e),i+=c}n.value=i,this._promptChar=e}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"overwriteMode",{get:function(){return this._overWrite},set:function(e){this._overWrite=t.asBoolean(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maskFull",{get:function(){return this._full},enumerable:!0,configurable:!0}),e.prototype.getMaskRange=function(){return this._mskArr.length?[this._firstPos,this._lastPos]:[0,this._tbx.value.length-1]},e.prototype.getRawValue=function(){var t=this._tbx?this._tbx.value:"";if(!this.mask)return t;for(var e="",n=0;n<this._mskArr.length&&n<t.length;n++)this._mskArr[n].literal||t[n]==this._promptChar||(e+=t[n]);return e},e.prototype.refresh=function(){this._parseMask(),this._valueChanged()},e.prototype._input=function(t){var e=this;this._msk&&!this._composing&&t!=this._evtInput&&(t.preventDefault(),t.stopImmediatePropagation(),setTimeout(function(){e._valueChanged(),e._tbx&&e._tbx.dispatchEvent(e._evtInput)}))},e.prototype._keydown=function(e){if(e.keyCode==t.Key.Back){var n=this._tbx.selectionStart,r=this._tbx.selectionEnd;if(n<=this._firstPos&&r==n)return e.preventDefault(),void(this._backSpace=!1)}this._backSpace=e.keyCode==t.Key.Back},e.prototype._keypress=function(t){t.ctrlKey||t.metaKey||t.altKey||this._composing||!this._preventKey(t.charCode)||t.preventDefault()},e.prototype._cmpstart=function(t){this._composing=!0},e.prototype._cmpend=function(t){var e=this;this._composing&&(this._composing=!1,setTimeout(function(){var t=e._tbx;t&&e._valueChanged()&&t.dispatchEvent(e._evtInput)}))},e.prototype._preventKey=function(e){if(e&&this._mskArr.length){var n=this._tbx,r=n.selectionStart,i=String.fromCharCode(e);if(r<this._firstPos&&(r=this._firstPos,t.setSelectionRange(n,r)),r>=this._mskArr.length)return!0;var o=this._mskArr[r];if(o.literal)this._validatePosition(r);else if(o.wildCard!=i&&!this._isCharValid(o.wildCard,i))return!0}return!1},e.prototype._connect=function(e){var n=this._tbx;n&&(t.assert(n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement,"INPUT or TEXTAREA element expected."),e?(this._autoComplete=n.autocomplete,this._spellCheck=n.spellcheck,n.autocomplete="off",n.spellcheck=!1,n.addEventListener("input",this._inputBnd,!0),n.addEventListener("keydown",this._keydownBnd,!0),n.addEventListener("keypress",this._keypressBnd,!0),n.addEventListener("compositionstart",this._cmpstartBnd,!0),n.addEventListener("compositionend",this._cmpendBnd,!0),n.addEventListener("blur",this._cmpendBnd,!0),this._valueChanged()):(n.autocomplete=this._autoComplete,n.spellcheck=this._spellCheck,n.removeEventListener("input",this._inputBnd,!0),n.removeEventListener("keydown",this._keydownBnd,!0),n.removeEventListener("keypress",this._keypressBnd,!0),n.removeEventListener("compositionstart",this._cmpstartBnd,!0),n.removeEventListener("compositionend",this._cmpendBnd,!0),n.removeEventListener("blur",this._cmpendBnd,!0)))},e.prototype._valueChanged=function(){if(!this._tbx||!this._msk)return!1;var t=this._tbx,e=t.selectionStart,n=e>0?t.value[e-1]:"",r=t.value;t.value=this._applyMask(),""==r&&(e=this._firstPos+1);var i=e>0?t.value[e-1]:"";return e>0&&i==this._promptChar&&n!=this.promptChar&&e--,e==r.length&&(e=this._matchEnd),this._validatePosition(e),r!=t.value},e.prototype._applyMask=function(){var t=this._tbx,e=t.value;if(this._full=!0,this._matchEnd=0,!this._msk)return e;if(!e&&!t.required)return e;if(this._overWrite&&e.length==this.mask.length+1){var n=t.selectionStart;t==document.activeElement&&t.selectionEnd==n&&(e=e.substr(0,n)+e.substr(n+1))}e=this._handleVagueLiterals(e);for(var r="",i=0,o=this._promptChar,s=0;s<this._mskArr.length;s++){var a=this._mskArr[s],u=a.literal;if(u&&u==e[i]&&i++,a.wildCard){if(u=o,e){for(var c=i;c<e.length;c++)if(this._isCharValid(a.wildCard,e[c])){switch(u=e[c],a.charCase){case">":u=u.toUpperCase();break;case"<":u=u.toLowerCase()}u!=o&&(this._matchEnd=r.length+1);break}i=c+1}u==o&&(this._full=!1)}r+=u}return r},e.prototype._handleVagueLiterals=function(e){if(e.length>this._mskArr.length+1)return e;var n=e.length-this._mskArr.length;if(0!=n&&e.length>1){for(var r=-1,i=this._tbx,o=i==t.getActiveElement()?i.selectionStart:i.value.length,s=Math.max(0,o-n);s<this._mskArr.length;s++)if(this._mskArr[s].vague){r=s;break}if(r>-1)if(n<0){var a=Array(1-n).join(this._promptChar),u=r+n;u>-1&&(e=e.substr(0,u)+a+e.substr(u))}else{for(;r>0&&this._mskArr[r-1].literal;)r--;e=e.substr(0,r)+e.substr(r+n)}}return e},e.prototype._isCharValid=function(t,n){if(n==this._promptChar)return!0;switch(t){case"0":return this._isDigit(n);case"9":return this._isDigit(n)||" "==n;case"#":return this._isDigit(n)||" "==n||"+"==n||"-"==n;case"L":return this._isLetter(n);case"l":return this._isLetter(n)||" "==n;case"A":return this._isDigit(n)||this._isLetter(n);case"a":return this._isDigit(n)||this._isLetter(n)||" "==n;case"９":return n>="０"&&n<="９";case"Ｊ":case"Ｇ":return!("Ｇ"==t&&e._X_DBCS_BIG_HIRA.indexOf(n)>-1)&&(n>="ぁ"&&n<="ゟ");case"Ｋ":case"Ｎ":return!("Ｎ"==t&&e._X_DBCS_BIG_KATA.indexOf(n)>-1)&&(n>="゠"&&n<="ヿ");case"Ｚ":return!(n>="ｦ"&&n<="ﾟ")&&(n<="!"||n>="ÿ");case"H":return n>="!"&&n<="ÿ"||n>="ｦ"&&n<="ﾟ";case"K":case"N":return!("N"==t&&e._X_SBCS_BIG_KATA.indexOf(n)>-1)&&(n>="ｦ"&&n<="ﾟ")}return!1},e.prototype._isDigit=function(t){return t>="0"&&t<="9"},e.prototype._isLetter=function(t){return t>="a"&&t<="z"||t>="A"&&t<="Z"},e.prototype._validatePosition=function(e){var n=this._mskArr;if(this._backSpace)for(;e>0&&e<n.length&&n[e-1].literal;)e--;if(0==e||!this._backSpace)for(;e<n.length&&n[e].literal;)e++;t.getActiveElement()==this._tbx&&t.setSelectionRange(this._tbx,e),this._backSpace=!1},e.prototype._parseMask=function(){this._mskArr=[],this._firstPos=-1,this._lastPos=-1;for(var e,r=this._msk,i="|",o=0;r&&o<r.length;o++)switch(r[o]){case"0":case"9":case"#":case"A":case"a":case"L":case"l":case"９":case"Ｊ":case"Ｇ":case"Ｋ":case"Ｎ":case"Ｚ":case"K":case"N":case"H":this._firstPos<0&&(this._firstPos=this._mskArr.length),this._lastPos=this._mskArr.length,this._mskArr.push(new n(r[o],i));break;case".":case",":case":":case"/":case"$":switch(r[o]){case".":case",":e=t.culture.Globalize.numberFormat[r[o]];break;case":":case"/":e=t.culture.Globalize.calendar[r[o]];break;case"$":e=t.culture.Globalize.numberFormat.currency.symbol}for(var s=0;s<e.length;s++)this._mskArr.push(new n(e[s]));break;case"<":case">":case"|":i=r[o];break;case"\\":o<r.length-1&&o++,this._mskArr.push(new n(r[o]));break;default:this._mskArr.push(new n(r[o]))}for(o=0;o<this._mskArr.length;o++){var a=this._mskArr[o];if(a.literal)for(s=0;s<o;s++){var u=this._mskArr[s];if(u.wildCard&&this._isCharValid(u.wildCard,a.literal)){a.vague=!0;break}}}},e._X_DBCS_BIG_HIRA="ぁぃぅぇぉっゃゅょゎゕゖ",e._X_DBCS_BIG_KATA="ァィゥェォッャュョヮヵヶ",e._X_SBCS_BIG_KATA="ｧｨｩｪｫｬｭｮｯ",e}();t._MaskProvider=e;var n=function(){return function(t,e){e?(this.wildCard=t,this.charCase=e):this.literal=t}}();t._MaskElement=n}(wijmo||(wijmo={})),function(t){"use strict";var e;!function(t){t[t.None=0]="None",t[t.Sum=1]="Sum",t[t.Cnt=2]="Cnt",t[t.Avg=3]="Avg",t[t.Max=4]="Max",t[t.Min=5]="Min",t[t.Rng=6]="Rng",t[t.Std=7]="Std",t[t.Var=8]="Var",t[t.StdPop=9]="StdPop",t[t.VarPop=10]="VarPop",t[t.CntAll=11]="CntAll",t[t.First=12]="First",t[t.Last=13]="Last"}(e=t.Aggregate||(t.Aggregate={})),t.getAggregate=function(n,r,i){var o=0,s=0,a=0,u=0,c=null,l=null,h=null,f=i?new t.Binding(i):null;if((n=t.asEnum(n,e))==e.CntAll)return r.length;for(var p=0;p<r.length;p++){var d=r[p];if(f&&(d=f.getValue(d)),null!=d){if(n==e.First)return d;o++,(null==c||d<c)&&(c=d),(null==l||d>l)&&(l=d),h=d,t.isNumber(d)&&!isNaN(d)?(s++,a+=d,u+=d*d):t.isBoolean(d)&&(s++,1==d&&(a++,u++))}}var g=0==s?0:a/s;switch(n){case e.Avg:return g;case e.Cnt:return o;case e.Max:return l;case e.Min:return c;case e.Rng:return l-c;case e.Sum:return a;case e.VarPop:return s<=1?0:u/s-g*g;case e.StdPop:return s<=1?0:Math.sqrt(u/s-g*g);case e.Var:return s<=1?0:(u/s-g*g)*s/(s-1);case e.Std:return s<=1?0:Math.sqrt((u/s-g*g)*s/(s-1));case e.Last:return h}throw"Invalid aggregate type."}}(wijmo||(wijmo={})),function(t){!function(e){"use strict";var n=function(t){function e(){var e=this;return r?e.length=0:e=t.call(this)||this,e}return __extends(e,t),e}(Array);e.ArrayBase=n;var r=!0;try{n.prototype=Array.prototype,r=n.prototype===Array.prototype}catch(t){r=!1}var i="undefined"!=typeof window?window.Symbol:null;!r&&i&&i.species&&Object.defineProperty(n,i.species,{get:function(){return Array},enumerable:!1,configurable:!1});var o=function(n){function r(e){var r=n.call(this)||this;if(r._updating=0,r.collectionChanged=new t.Event,e){e=t.asArray(e),r._updating++;for(var i=0;i<e.length;i++)r.push(e[i]);r._updating--}return r}return __extends(r,n),r.prototype.push=function(){for(var t=this,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return r.forEach(function(r){n.prototype.push.call(t,r),t._raiseCollectionChanged(e.NotifyCollectionChangedAction.Add,r,t.length-1)}),this.length},r.prototype.shift=function(){var t=n.prototype.shift.call(this);return this._raiseCollectionChanged(e.NotifyCollectionChangedAction.Remove,t,0),t},r.prototype.unshift=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var i=n.prototype.unshift.apply(this,t);return 1==t.length?this._raiseCollectionChanged(e.NotifyCollectionChangedAction.Add,t[0],0):this._raiseCollectionChanged(),i},r.prototype.pop=function(){var t=n.prototype.pop.call(this);return this._raiseCollectionChanged(e.NotifyCollectionChangedAction.Remove,t,this.length),t},r.prototype.splice=function(t,r){for(var i=[],o=2;o<arguments.length;o++)i[o-2]=arguments[o];var s,a=e.NotifyCollectionChangedAction,u=this._raiseCollectionChanged.bind(this);return r&&i.length?(s=n.prototype.splice.apply(this,[t,r].concat(i)),1==r&&1==i.length?u(a.Change,i[0],t):u()):i.length?(s=n.prototype.splice.apply(this,[t,0].concat(i)),1==i.length?u(a.Add,i[0],t):u()):(s=n.prototype.splice.call(this,t,r),1==r?u(a.Remove,s[0],t):u()),s},r.prototype.slice=function(t,e){return n.prototype.slice.call(this,t,e)},r.prototype.indexOf=function(t,e){return n.prototype.indexOf.call(this,t,e)},r.prototype.sort=function(t){var e=n.prototype.sort.call(this,t);return this._raiseCollectionChanged(),e},r.prototype.insert=function(t,e){this.splice(t,0,e)},r.prototype.remove=function(t){var e=this.indexOf(t);return e>-1&&this.removeAt(e),e>-1},r.prototype.removeAt=function(t){this.splice(t,1)},r.prototype.setAt=function(t,e){t>=this.length&&(this.length=t+1),this.splice(t,1,e)},r.prototype.clear=function(){this.length&&this.splice(0,this.length)},r.prototype.beginUpdate=function(){this._updating++},r.prototype.endUpdate=function(){this._updating--,this._updating<=0&&this._raiseCollectionChanged()},Object.defineProperty(r.prototype,"isUpdating",{get:function(){return this._updating>0},enumerable:!0,configurable:!0}),r.prototype.deferUpdate=function(t){try{this.beginUpdate(),t()}finally{this.endUpdate()}},r.prototype.implementsInterface=function(t){return"INotifyCollectionChanged"==t},r.prototype.onCollectionChanged=function(t){void 0===t&&(t=e.NotifyCollectionChangedEventArgs.reset),this.isUpdating||this.collectionChanged.raise(this,t)},r.prototype._raiseCollectionChanged=function(t,n,r){if(void 0===t&&(t=e.NotifyCollectionChangedAction.Reset),!this.isUpdating){var i=new e.NotifyCollectionChangedEventArgs(t,n,r);this.onCollectionChanged(i)}},r}(n);e.ObservableArray=o}(t.collections||(t.collections={}))}(wijmo||(wijmo={})),function(t){!function(e){var n;!function(t){t[t.Natural=0]="Natural",t[t.First=1]="First",t[t.Last=2]="Last"}(n=e.SortNulls||(e.SortNulls={}));var r=function(){function r(r,i){var o=this;this._srcRaw=null,this._src=null,this._ncc=null,this._view=null,this._pgView=null,this._groups=null,this._fullGroups=null,this._digest="",this._idx=-1,this._filter=null,this._filters=new e.ObservableArray,this._srtDsc=new e.ObservableArray,this._grpDesc=new e.ObservableArray,this._newItem=null,this._edtItem=null,this._edtClone=null,this._committing=!1,this._canceling=!1,this._pendingRefresh=!1,this._pendingRemove=!1,this._pgSz=0,this._pgIdx=0,this._updating=0,this._stableSort=!1,this._srtNulls=n.Last,this._canFilter=!0,this._canGroup=!0,this._canSort=!0,this._canAddNew=!0,this._canCancelEdit=!0,this._canRemove=!0,this._canChangePage=!0,this._refreshOnEdit=!0,this._trackChanges=!1,this._chgAdded=new e.ObservableArray,this._chgRemoved=new e.ObservableArray,this._chgEdited=new e.ObservableArray,this._orgVals=window.Map?new Map:null,this._srtCvt=null,this._srtCmp=null,this._getError=null,this._keepCurrentItem=null,this._initializing=!1,this.collectionChanged=new t.Event,this.sourceCollectionChanging=new t.Event,this.sourceCollectionChanged=new t.Event,this.currentChanged=new t.Event,this.currentChanging=new t.Event,this.pageChanged=new t.Event,this.pageChanging=new t.Event,this._srtDsc.collectionChanged.addHandler(function(){o._srtDsc.forEach(function(n){t.assert(n instanceof e.SortDescription,"sortDescriptions array must contain SortDescription objects.")}),o.canSort&&o._commitAndRefresh()}),this._grpDesc.collectionChanged.addHandler(function(){o._grpDesc.forEach(function(n){t.assert(n instanceof e.GroupDescription,"groupDescriptions array must contain GroupDescription objects.")}),o.canGroup&&o._commitAndRefresh()}),this._filters.collectionChanged.addHandler(function(){o._filters.forEach(function(e){t.assert(t.isFunction(e),"filters array must contain IPredicate functions.")}),o.canFilter&&o._commitAndRefresh()}),this.sourceCollection=r||new e.ObservableArray,i&&(this._initializing=!0,this.deferUpdate(function(){t.copy(o,i)}),this._initializing=!1),null==this._keepCurrentItem&&(this._keepCurrentItem=!0)}return r.prototype._copy=function(n,r){switch(n){case"sortDescriptions":var i=this.sortDescriptions;return i.deferUpdate(function(){i.clear(),t.asArray(r).forEach(function(n){t.isString(n)?n=new e.SortDescription(n,!0):n instanceof e.SortDescription||!n.property||(n=new e.SortDescription(n.property,n.ascending)),i.push(n)})}),!0;case"groupDescriptions":var o=this.groupDescriptions;return o.deferUpdate(function(){o.clear(),r.forEach(function(n){t.isString(n)&&(n=new e.PropertyGroupDescription(n)),o.push(n)})}),!0;case"currentItem":return this.currentItem=r,!0}return!1},Object.defineProperty(r.prototype,"calculatedFields",{get:function(){return this._calcFields},set:function(t){if(t&&!window.Proxy&&(console.warn("** Calculated fields require Proxy (see https://www.npmjs.com/package/proxy-polyfill)."),t=null),t!=this._calcFields){this._calcFields=t;var e=this._srcRaw;this._srcRaw=null,this.sourceCollection=e}},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"newItemCreator",{get:function(){return this._itemCreator},set:function(e){this._itemCreator=t.asFunction(e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"sortConverter",{get:function(){return this._srtCvt},set:function(e){e!=this._srtCvt&&(this._srtCvt=t.asFunction(e,!0))},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"sortComparer",{get:function(){return this._srtCmp},set:function(e){e!=this._srtCmp&&(this._srtCmp=t.asFunction(e,!0))},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"useStableSort",{get:function(){return this._stableSort},set:function(e){e!=this._stableSort&&(this._stableSort=t.asBoolean(e),this.refresh())},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"sortNulls",{get:function(){return this._srtNulls},set:function(e){(e=t.asEnum(e,n))!=this._srtNulls&&(this._srtNulls=e,this.refresh())},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"sortNullsFirst",{get:function(){return this.sortNulls!=n.Last},set:function(e){t._deprecated("sortNullsFirst","sortNulls"),this.sortNulls=t.asBoolean(e)?n.First:n.Last},enumerable:!0,configurable:!0}),r.prototype.getAggregate=function(e,n,r){var i=r?this._pgView:this._view;return t.getAggregate(e,i,n)},Object.defineProperty(r.prototype,"trackChanges",{get:function(){return this._trackChanges},set:function(e){this._trackChanges=t.asBoolean(e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"refreshOnEdit",{get:function(){return this._refreshOnEdit},set:function(e){this._refreshOnEdit=t.asBoolean(e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"itemsAdded",{get:function(){return this._chgAdded},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"itemsRemoved",{get:function(){return this._chgRemoved},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"itemsEdited",{get:function(){return this._chgEdited},enumerable:!0,configurable:!0}),r.prototype.clearChanges=function(){this._chgAdded.clear(),this._chgRemoved.clear(),this._chgEdited.clear(),this._orgVals&&this._orgVals.clear()},r.prototype.implementsInterface=function(t){switch(t){case"ICollectionView":case"IEditableCollectionView":case"IPagedCollectionView":case"INotifyCollectionChanged":return!0}return!1},Object.defineProperty(r.prototype,"getError",{get:function(){return this._getError},set:function(e){this._getError!=e&&(this._getError=t.asFunction(e),this._raiseCollectionChanged())},enumerable:!0,configurable:!0}),r.prototype.onCollectionChanged=function(t){void 0===t&&(t=e.NotifyCollectionChangedEventArgs.reset),t.action!=e.NotifyCollectionChangedAction.Change||this._committing||this._canceling||t.item==this.currentEditItem||t.item==this.currentAddItem||this._trackItemChanged(t.item),this._updating||this.collectionChanged.raise(this,t)},r.prototype._raiseCollectionChanged=function(t,n,r){void 0===t&&(t=e.NotifyCollectionChangedAction.Reset);var i=new e.NotifyCollectionChangedEventArgs(t,n,r);this.onCollectionChanged(i)},r.prototype.onSourceCollectionChanging=function(t){return this.sourceCollectionChanging.raise(this,t),!t.cancel},r.prototype.onSourceCollectionChanged=function(t){this.sourceCollectionChanged.raise(this,t)},Object.defineProperty(r.prototype,"canFilter",{get:function(){return this._canFilter},set:function(e){this._canFilter=t.asBoolean(e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"canGroup",{get:function(){return this._canGroup},set:function(e){this._canGroup=t.asBoolean(e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"canSort",{get:function(){return this._canSort},set:function(e){this._canSort=t.asBoolean(e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"currentItem",{get:function(){return this._pgView&&this._idx>-1&&this._idx<this._pgView.length?this._pgView[this._idx]:null},set:function(t){this.moveCurrentTo(t)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"currentPosition",{get:function(){return this._idx},set:function(e){this.moveCurrentToPosition(t.asNumber(e))},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"filter",{get:function(){return this._filter},set:function(e){this._filter!=e&&(this._filter=t.asFunction(e),this.canFilter&&this.refresh())},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"filters",{get:function(){return this._filters},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"groupDescriptions",{get:function(){return this._grpDesc},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"groups",{get:function(){return this._groups},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"isEmpty",{get:function(){return!this._pgView||!this._pgView.length},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"sortDescriptions",{get:function(){return this._srtDsc},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"sourceCollection",{get:function(){return this._src},set:function(e){if(e!=this._srcRaw){if(!this.onSourceCollectionChanging(new t.CancelEventArgs))return;var n=this.currentPosition;this.commitEdit(),null!=this._ncc&&this._ncc.collectionChanged.removeHandler(this._sourceChanged),this._srcRaw=e,this._src=t.asArray(e,!1),this._calcFields&&(this._src=t._getCalculatedArray(this._src,this._calcFields)),this._ncc=t.tryCast(this._src,"INotifyCollectionChanged"),this._ncc&&this._ncc.collectionChanged.addHandler(this._sourceChanged,this),this.clearChanges(),this.refresh(),this.moveCurrentToFirst(),this.onSourceCollectionChanged(),this.currentPosition<0&&n>-1&&this.onCurrentChanged()}},enumerable:!0,configurable:!0}),r.prototype._sourceChanged=function(t,e){this._updating<=0&&this.refresh()},r.prototype.contains=function(t){return this._pgView.indexOf(t)>-1},r.prototype.moveCurrentTo=function(t){return this.moveCurrentToPosition(this._pgView.indexOf(t))},r.prototype.moveCurrentToFirst=function(){return this.moveCurrentToPosition(0)},r.prototype.moveCurrentToLast=function(){return this.moveCurrentToPosition(this._pgView.length-1)},r.prototype.moveCurrentToPrevious=function(){return this._idx>0&&this.moveCurrentToPosition(this._idx-1)},r.prototype.moveCurrentToNext=function(){return this.moveCurrentToPosition(this._idx+1)},r.prototype.moveCurrentToPosition=function(e){if(e>=-1&&e<this._pgView.length&&e!=this._idx){var n=new t.CancelEventArgs;if(this.onCurrentChanging(n)){var r=this._pgView[e],i=t._getTargetObject(r),o=this._edtItem,s=this._newItem;o&&o!=r&&o!=i?this.commitEdit():s&&s!=r&&s!=i&&this.commitNew(),this._idx=e,this.onCurrentChanged()}}return this._idx==e},r.prototype.refresh=function(){if(this._newItem||this._edtItem||this._updating>0)this._pendingRefresh=!0;else{var t=this.currentItem;this._performRefresh(),this.onCollectionChanged(),t==this.currentItem||this._initializing||this.onCurrentChanged()}},r.prototype._commitAndRefresh=function(){this.currentEditItem||this.currentAddItem?(this._pendingRefresh=!0,this.commitEdit()):this.refresh()},r.prototype._performRefresh=function(){if(this._updating>0)this._pendingRefresh=!0;else{this._pendingRefresh=!1,this._pendingRemove=!1;var e=this.currentItem;this._view=this._src?this._performFilter(this._src):[],this.canSort&&this._srtDsc.length>0&&(this._view==this._src&&(this._view=this._src.slice()),this._performSort(this._view)),this._groups=this.canGroup?this._createGroups(this._view):null,this._fullGroups=this._groups,this._groups&&(this._view=this._mergeGroupItems(this._groups)),this._pgIdx=t.clamp(this._pgIdx,0,this.pageCount-1),this._pgView=this._getPageView(),this._groups&&this.pageCount>1&&(this._groups=this._createGroups(this._pgView),this._mergeGroupItems(this._groups));var n=this._keepCurrentItem&&null!=e?this._pgView.indexOf(e):-1;n<0&&(n=Math.min(this._idx,this._pgView.length-1)),this._idx=n,this._digest=this._getGroupsDigest(this.groups)}},r.prototype._performSort=function(t){if(this._stableSort){var e=t.map(function(t,e){return{item:t,index:e}}),n=this._compareItems();e.sort(function(t,e){var r=n(t.item,e.item);return 0==r?t.index-e.index:r});for(var r=0;r<t.length;r++)t[r]=e[r].item}else t.sort(this._compareItems())},r.prototype._compareItems=function(){var t=this,e=this._srtDsc,i=this._srtCvt,o=this._srtCmp,s=r._collator,a=!0,u=0;return function(r,c){for(var l=0;l<e.length;l++){var h=e[l],f=h._bnd.getValue(r),p=h._bnd.getValue(c);if(i&&(f=i(h,r,f,a),p=i(h,c,p,!1),a=!1),o&&null!=(u=o(f,p))){if(0!=u)return h.ascending?+u:-u}else{if(f!=f&&(f=null),p!=p&&(p=null),f!==p&&(null==f||null==p))switch(t._srtNulls){case n.First:return null==f?-1:1;case n.Last:return null==f?1:-1;default:return u=null==f?-1:1,h.ascending?+u:-u}if("string"==typeof f&&"string"==typeof p){if(s){if(0!=(u=s.compare(f,p)))return h.ascending?+u:-u;continue}var d=f.toLowerCase(),g=p.toLowerCase();d!=g&&(f=d,p=g)}if(0!=(u=f<p?-1:f>p?1:0))return h.ascending?+u:-u}}return 0}},r.prototype._performFilter=function(t){return this.canFilter&&this._filter||this._filters.length?t.filter(this._filterItem,this):t},r.prototype._filterItem=function(t){for(var e=!this.canFilter||!this._filter||this._filter(t),n=0;n<this._filters.length&&e;n++)e=this._filters[n](t);return e},r.prototype.onCurrentChanged=function(t){this.currentChanged.raise(this,t)},r.prototype.onCurrentChanging=function(t){return this.currentChanging.raise(this,t),!t.cancel},Object.defineProperty(r.prototype,"items",{get:function(){return this._pgView},enumerable:!0,configurable:!0}),r.prototype.beginUpdate=function(){this._updating++},r.prototype.endUpdate=function(t){void 0===t&&(t=!0),this._updating--,t&&(this._pendingRefresh=!0),this._updating<=0&&(this._pendingRefresh&&this.refresh(),this._pendingRemove&&(this._pendingRemove=!1,this._raiseCollectionChanged()))},Object.defineProperty(r.prototype,"isUpdating",{get:function(){return this._updating>0},enumerable:!0,configurable:!0}),r.prototype.deferUpdate=function(t,e){void 0===e&&(e=!0);try{this.beginUpdate(),t()}finally{this.endUpdate(e)}},Object.defineProperty(r.prototype,"canAddNew",{get:function(){return this._canAddNew},set:function(e){e!=this._canAddNew&&(this._canAddNew=t.asBoolean(e),this._raiseCollectionChanged())},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"canCancelEdit",{get:function(){return this._canCancelEdit},set:function(e){this._canCancelEdit=t.asBoolean(e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"canRemove",{get:function(){return this._canRemove},set:function(e){this._canRemove=t.asBoolean(e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"currentAddItem",{get:function(){return this._newItem},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"currentEditItem",{get:function(){return this._edtItem},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"isAddingNew",{get:function(){return null!=this._newItem},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"isEditingItem",{get:function(){return null!=this._edtItem},enumerable:!0,configurable:!0}),r.prototype.editItem=function(t){t!=this._edtItem&&this.moveCurrentTo(t)&&(this.commitEdit(),this._edtItem=t,this._edtClone=this._extend({},this._edtItem))},r.prototype.commitEdit=function(){var t=this._edtItem,n=this._edtClone;if(null!=t){this._committing=!0;var r=this._getChangedFields(t,n),i=this._pendingRefresh;this._edtItem=null,this._edtClone=null;var o=this._pgView.indexOf(t),s=this._digest;if(this._needRefresh(r)&&this._refreshOnEdit&&this._performRefresh(),r&&this._trackItemChanged(t,n),this._pgView.indexOf(t)!=o||s!=this._digest||i?this._raiseCollectionChanged():this._raiseCollectionChanged(e.NotifyCollectionChangedAction.Change,t,o),this.commitNew(),this._committing=!1,this.sourceCollection instanceof e.ObservableArray){this._updating++;var a=new e.NotifyCollectionChangedEventArgs(e.NotifyCollectionChangedAction.Change,t);this.sourceCollection.onCollectionChanged(a),this._updating--}}},r.prototype.cancelEdit=function(){var t=this._edtItem;if(null!=t){if(this._edtItem=null,!this.canCancelEdit)return;var n=this._src.indexOf(t);n>=0&&this._edtClone&&(this._extend(this._src[n],this._edtClone),this._edtClone=null,this._canceling=!0,this._raiseCollectionChanged(e.NotifyCollectionChangedAction.Change,t,n),this._canceling=!1,this._pendingRefresh&&this._refreshOnEdit&&(this._performRefresh(),this._raiseCollectionChanged()))}},r.prototype.addNew=function(t,n){if(void 0===n&&(n=!1),this.commitEdit(),!this.canAddNew)return null;var r=this.sourceCollection;if(null==t&&(t=this.newItemCreator?this.newItemCreator():r&&r.length?new r[0].constructor:{}),null!=t){if(this._updating++,r.push(t),this._updating--,t=r[r.length-1],this._newItem=t,this._pgView!=this._src&&this._pgView.push(t),this.groups&&this.groups.length){var i=this.groups[this.groups.length-1];for(i.items.push(t);i.groups&&i.groups.length;)(i=i.groups[i.groups.length-1]).items.push(t)}this._raiseCollectionChanged(e.NotifyCollectionChangedAction.Add,t,this._pgView.length-1),this.moveCurrentTo(t),n&&this.commitNew()}return this._newItem},r.prototype.commitNew=function(){var t=this._newItem;if(null!=t){this._newItem=null;var n=this._pgView.indexOf(t),r=this._digest;if(this._refreshOnEdit&&this._performRefresh(),this._trackChanges){var i=this._chgEdited.indexOf(t);i>-1&&this._chgEdited.removeAt(i),this._chgAdded.indexOf(t)<0&&this._chgAdded.push(t)}this._pgView.indexOf(t)!=n||r!=this._digest||this.calculatedFields?this._raiseCollectionChanged():this._raiseCollectionChanged(e.NotifyCollectionChangedAction.Change,t,n)}},r.prototype.cancelNew=function(){var t=this._newItem;null!=t&&this.remove(t)},r.prototype.remove=function(t){var n=t==this._newItem;if(n&&(this._newItem=null),t==this._edtItem&&this.cancelEdit(),this.canRemove){var r=this._src.indexOf(t);if(r>-1){var i=this.currentItem;this._updating++,this._src.splice(r,1),this._updating--;var o=this._digest;if(this._refreshOnEdit)this._performRefresh();else{this._updating>0&&(this._pendingRemove=!0);var s=this._pgView.indexOf(t);s>=0&&this._pgView.splice(s,1)}if(this._trackChanges){var a=this._chgAdded.indexOf(t);a>-1&&this._chgAdded.removeAt(a);var u=this._chgEdited.indexOf(t);u>-1&&this._chgEdited.removeAt(u),this._chgRemoved.indexOf(t)<0&&!n&&a<0&&this._chgRemoved.push(t)}var c=this.sortDescriptions.length>0,l=this.pageSize>0&&this._pgIdx>-1;c||l||o!=this._getGroupsDigest(this.groups)?this._raiseCollectionChanged():this._raiseCollectionChanged(e.NotifyCollectionChangedAction.Remove,t,r),this.currentItem!==i&&this.onCurrentChanged()}}},r.prototype.removeAt=function(e){e=t.asInt(e),this.remove(this._pgView[e])},r.prototype._trackItemChanged=function(t,n){if(this._trackChanges){var r=this.sourceCollection;if(r&&r.indexOf(t)>-1){var i=this._orgVals,o=i?i.get(t):null;n&&!o&&i&&(i.set(t,n),o=n);var s=this._chgEdited.indexOf(t),a=e.NotifyCollectionChangedAction.Change;if(o&&this._sameContent(t,o)&&s>-1)return this._chgEdited.removeAt(s),void i.delete(t);if(s<0&&this._chgAdded.indexOf(t)<0)this._chgEdited.push(t);else if(s>-1){var u=new e.NotifyCollectionChangedEventArgs(a,t,s);this._chgEdited.onCollectionChanged(u)}else if((s=this._chgAdded.indexOf(t))>-1){u=new e.NotifyCollectionChangedEventArgs(a,t,s);this._chgAdded.onCollectionChanged(u)}}}},r.prototype._extend=function(e,n,r){for(var i in void 0===r&&(r=2),n)try{var o=n[i];r>0&&t.isObject(o)?(e[i]={},this._extend(e[i],o,r-1)):e[i]=o}catch(t){}return e},r.prototype._getChangedFields=function(e,n,r){void 0===r&&(r=2),t.assert(null!=n&&null!=e,"Two objects expected.");var i={};for(var o in n)try{this._sameValue(e[o],n[o],r)||(i[o]=!0)}catch(t){}for(var o in e)try{i[o]||this._sameValue(e[o],n[o],r)||(i[o]=!0)}catch(t){}var s=Object.keys(i);return s.length?s:null},r.prototype._sameValue=function(e,n,r){return void 0===r&&(r=2),!(e!==n&&!t.DateTime.equals(e,n))||!(!t.isObject(e)||!t.isObject(n))&&(!(r>0)||null==this._getChangedFields(e,n,r-1))},r.prototype._sameContent=function(t,e){return null==this._getChangedFields(t,e)},r.prototype._needRefresh=function(t){if(this._pendingRefresh)return!0;if(!t)return!1;if(this._filter)return!0;for(var n=0;n<this._srtDsc.length;n++){var r=this._getBindingRoot(this._srtDsc[n].property);if(t.indexOf(r)>-1)return!0}for(n=0;n<this._grpDesc.length;n++){var i=this._grpDesc[n];if(!(i instanceof e.PropertyGroupDescription))return!0;r=this._getBindingRoot(i.propertyName);if(t.indexOf(r)>-1)return!0}return!1},r.prototype._getBindingRoot=function(t){var e=t.indexOf(".");return e>-1?t.substr(0,e):t},Object.defineProperty(r.prototype,"canChangePage",{get:function(){return this._canChangePage},set:function(e){this._canChangePage=t.asBoolean(e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"isPageChanging",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"itemCount",{get:function(){return this._pgView.length},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"pageIndex",{get:function(){return this._pgIdx},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"pageSize",{get:function(){return this._pgSz},set:function(e){e!=this._pgSz&&(this._pgSz=t.asInt(e),this.refresh())},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"totalItemCount",{get:function(){return this._view.length},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"pageCount",{get:function(){return this.pageSize?Math.ceil(this.totalItemCount/this.pageSize):1},enumerable:!0,configurable:!0}),r.prototype.moveToFirstPage=function(){return this.moveToPage(0)},r.prototype.moveToLastPage=function(){return this.moveToPage(this.pageCount-1)},r.prototype.moveToPreviousPage=function(){return this.moveToPage(this.pageIndex-1)},r.prototype.moveToNextPage=function(){return this.moveToPage(this.pageIndex+1)},r.prototype.moveToPage=function(n){var r=t.clamp(n,0,this.pageCount-1);if(r!=this._pgIdx){if(!this.canChangePage)return!1;var i=new e.PageChangingEventArgs(r);if(this.onPageChanging(i)&&this.onCurrentChanging(i)){this.commitEdit(),this.commitNew();var o=this.currentItem;this._pgIdx=r,this._pgView=this._getPageView(),this._idx=0,this.groupDescriptions&&0!=this.groupDescriptions.length?this.refresh():(this.onCollectionChanged(),o!=this.currentItem&&this.onCurrentChanged()),this.onPageChanged()}}return this._pgIdx==n},r.prototype.onPageChanged=function(t){this.pageChanged.raise(this,t)},r.prototype.onPageChanging=function(t){return this.pageChanging.raise(this,t),!t.cancel},r.prototype._getFullGroup=function(t){var e=this._getGroupByPath(this._fullGroups,t.level,t._path);return null!=e&&(t=e),t},r.prototype._getGroupByPath=function(t,e,n){if(t)for(var r=0;r<t.length;r++){var i=t[r];if(i.level==e&&i._path==n)return i;if(i.level<e&&0==n.indexOf(i._path)&&null!=(i=this._getGroupByPath(i.groups,e,n)))return i}return null},r.prototype._getPageView=function(){if(this.pageSize<=0||this._pgIdx<0)return this._view;var t=this._pgSz*this._pgIdx,e=Math.min(t+this._pgSz,this._view.length);return this._view.slice(t,e)},r.prototype._createGroups=function(e){var n=this;if(!this._grpDesc||!this._grpDesc.length)return null;var r=[],i={},o=null;return e.forEach(function(e){for(var s=r,a=n._grpDesc.length,u="",c=0;c<a;c++){var l=n._grpDesc[c],h=l.groupNameFromItem(e,c),f=c==a-1;!(o=i[u])&&t.isPrimitive(h)&&(o={},i[u]=o);var p=n._getGroup(l,s,o,h,c,f);u+="/"+h,p._path=u,f&&p.items.push(e),s=p.groups}}),r},r.prototype._getGroupsDigest=function(t){for(var e="",n=0;null!=t&&n<t.length;n++){var r=t[n];e+="{"+r.name+":"+(r.items?r.items.length:"*"),r.groups.length>0&&(e+=",",e+=this._getGroupsDigest(r.groups)),e+="}"}return e},r.prototype._mergeGroupItems=function(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];if(!r._isBottomLevel)for(var i=this._mergeGroupItems(r.groups),o=0,s=i.length;o<s;o++)r._items.push(i[o]);for(o=0,s=r._items.length;o<s;o++)e.push(r._items[o])}return e},r.prototype._getGroup=function(e,n,r,o,s,a){var u;if(r&&t.isPrimitive(o)){if(u=r[o])return u}else for(var c=0;c<n.length;c++)if(e.namesMatch(n[c].name,o))return n[c];var l=new i(e,o,s,a);return n.push(l),r&&(r[o]=l),l},r._collator="undefined"!=typeof window&&window.Intl&&Intl.Collator?new Intl.Collator:null,r}();e.CollectionView=r;var i=function(){function e(t,e,n,r){this._gd=t,this._name=e,this._level=n,this._isBottomLevel=r,this._groups=[],this._items=[]}return Object.defineProperty(e.prototype,"name",{get:function(){return this._name},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"level",{get:function(){return this._level},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isBottomLevel",{get:function(){return this._isBottomLevel},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"items",{get:function(){return this._items},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"groups",{get:function(){return this._groups},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"groupDescription",{get:function(){return this._gd},enumerable:!0,configurable:!0}),e.prototype.getAggregate=function(e,n,i){var o=t.tryCast(i,r),s=o?o._getFullGroup(this):this;return t.getAggregate(e,s.items,n)},e}();e.CollectionViewGroup=i}(t.collections||(t.collections={}))}(wijmo||(wijmo={})),function(t){"use strict";t.controlBaseClass="undefined"!=typeof window&&window["wj-control-is-element"]?HTMLElement:Object;var e=!1;try{var n=function(){return function(){}}();n.prototype=Array.prototype,e=n.prototype!==Array.prototype}catch(t){e=!0}var r=e||t.controlBaseClass!==Object,i=function(t){function e(){var e=this;return r&&(e=t.call(this)||this),e}return __extends(e,t),e}(t.controlBaseClass);t.ControlBase=i;var o=function(e){function n(r,i,o){void 0===i&&(i=null),void 0===o&&(o=!1);var a=e.call(this)||this;a._listeners=[],a._pristine=!0,a._focus=!1,a._updating=0,a._fullUpdate=!1,a.gotFocus=new t.Event,a.lostFocus=new t.Event,a.invalidInput=new t.Event,a.refreshing=new t.Event,a.refreshed=new t.Event,a._updateWme(),t.assert(null==n.getControl(r),"Element is already hosting a control.");var u=t.getElement(r);t.assert(null!=u,"Cannot find the host element."),a._orgTabIndex=u.hasAttribute("tabindex")?u.tabIndex:0,a._orgOuter=u.outerHTML,a._orgTag=u.tagName,a._orgAtts=u.attributes,"INPUT"!=u.tagName&&"SELECT"!=u.tagName||(u=a._replaceWithDiv(u)),a._e=u,u[n._CTRL_KEY]=a;var c=a.addEventListener.bind(a);if(1==o){a._szCtl=new t.Size(u.offsetWidth,u.offsetHeight);var l=window.ResizeObserver,h=null;l&&(h=a._szObserver=new l(function(t){return a._resizeObserverCallback(t)})),h?h.observe(u):c(window,"resize",a._handleResize.bind(a))}var f=a._handleFocusBlur.bind(a);c(u,"focus",f,!0),c(u,"blur",f,!0);var p=a._handleDisabled.bind(a);return c(u,"mousedown",p,!0),c(u,"mouseup",p,!0),c(u,"click",p,!0),c(u,"dblclick",p,!0),c(u,"wheel",p,t.getEventOptions(!0,!0)),c(u,"keydown",function(e){a.isDisabled&&e.keyCode!=t.Key.Tab&&e.preventDefault()}),0==n._ctlCnt&&s(!0),n._ctlCnt++,a}return __extends(n,e),n.prototype.getTemplate=function(){for(var t=Object.getPrototypeOf(this);t;t=Object.getPrototypeOf(t)){var e=t.constructor.controlTemplate;if(e)return e}return null},n.prototype.applyTemplate=function(e,r,i,o){var s=this,a=this._e;e&&t.addClass(a,e);var u=null;r&&(u=t.createElement(r,a));for(var c=a.querySelectorAll("a.wj-btn"),l=0;l<c.length;l++){var h=c[l];t.setAttribute(h,"role","button",!0),t.setAttribute(h,"href","",!0),t.setAttribute(h,"draggable",!1,!0)}var f=a.querySelectorAll("button");for(l=0;l<f.length;l++)t.setAttribute(f[l],"type","button",!0);var p=a.querySelectorAll("input"),d=1==p.length?p[0]:null;if(d){var g=n._rxInputAtts;this._copyAttributes(d,a.attributes,g),this._copyAttributes(d,this._orgAtts,g)}if(d&&a.id){for(var _=a;_.parentElement;)_=_.parentElement;var m=_.querySelector('label[for="'+a.id+'"]');if(m instanceof HTMLLabelElement){var v=t.getUniqueId(a.id+"_input");d.id=v,m.htmlFor=v}}if(d){var y=d.value,b=!0,w=!1,C=document.createEvent("HTMLEvents");C.initEvent("change",!0,!1),this.gotFocus.addHandler(function(){b=!1,w=!0,y=d.value}),this.addEventListener(a,"focusin",function(t){b&&(w=!0,b=!1,y=d.value)}),this.addEventListener(d,"input",function(){s._pristine=!1,setTimeout(function(){y=d.value})}),this.addEventListener(d,"change",function(t){t.isTrusted&&(y=d.value)});var E=function(){s._containsFocus()||(b=!0,s._pristine&&(s._pristine=!1,s._updateState()),w&&y!=d.value&&(y=d.value,d.dispatchEvent(C)),w=!1)};this.addEventListener(a,"blur",function(){E()}),this.lostFocus.addHandler(function(){E()})}if(d?a.tabIndex=-1:a.getAttribute("tabindex")||(a.tabIndex=0),this._updateState(),i)for(var A in i){var x=i[A];if(this[A]=u.querySelector('[wj-part="'+x+'"]'),null==this[A]&&u.getAttribute("wj-part")==x&&(this[A]=u),null==this[A])throw'Missing template part: "'+x+'"';if(x==o){var O="name",I=a.attributes[O];I&&I.value&&this[A].setAttribute(O,I.value),O="accesskey",(I=a.attributes[O])&&I.value&&(this[A].setAttribute(O,I.value),a.removeAttribute(O))}}return u},n.prototype.dispose=function(){if(this._e){for(var e=this._e.querySelectorAll(".wj-control"),r=0;r<e.length;r++){var i=n.getControl(e[r]);i&&i.dispose()}this._toInv&&(clearTimeout(this._toInv),this._toInv=null),this._toFocus&&(clearTimeout(this._toFocus),this._toFocus=null);var o=this._szObserver;for(var a in o&&o.disconnect(),this.removeEventListener(),this){if(a.length>2&&0==a.indexOf("on"))(c=this[a[2].toLowerCase()+a.substr(3)])instanceof t.Event&&c.removeAllHandlers()}var u=this.collectionView;if(u instanceof t.collections.CollectionView)for(var a in u){var c;(c=u[a])instanceof t.Event&&c.removeHandler(null,this)}this._e.parentNode&&null!=this._orgOuter&&(this._e.outerHTML=this._orgOuter),this._e[n._CTRL_KEY]=null,this._e=this._orgOuter=this._orgTag=this._szObserver=null,n._ctlCnt--,0==n._ctlCnt&&s(!1)}},n.getControl=function(e){var r=t.getElement(e);return r?t.asType(r[n._CTRL_KEY],n,!0):null},Object.defineProperty(n.prototype,"hostElement",{get:function(){return this._e},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"rightToLeft",{get:function(){return null==this._rtlDir&&(this._rtlDir=!!this._e&&"rtl"==getComputedStyle(this._e).direction),this._rtlDir},enumerable:!0,configurable:!0}),n.prototype.focus=function(){var e=this._e;e&&e.offsetHeight&&(e.tabIndex>=0||!t.moveFocus(e,0))&&e.focus()},n.prototype.containsFocus=function(){return this._containsFocusImpl(t.getActiveElement())},n.prototype._containsFocus=function(){return this._containsFocusImpl(t._getActiveElement())},n.prototype._containsFocusImpl=function(e){return t.contains(this._e,e,!0)},n.prototype.invalidate=function(t){var e=this;void 0===t&&(t=!0),this._rtlDir=null,this._fullUpdate=this._fullUpdate||t,this._toInv&&(clearTimeout(this._toInv),this._toInv=null),this.isUpdating||(this._toInv=setTimeout(function(){e.refresh(e._fullUpdate),e._toInv=null},n._REFRESH_INTERVAL))},n.prototype.refresh=function(t){var e=this;void 0===t&&(t=!0),this.isUpdating||(this.onRefreshing(),this.refreshed.hasHandlers&&setTimeout(function(){e.onRefreshed()})),!this.isUpdating&&this._toInv&&(clearTimeout(this._toInv),this._toInv=null,this._fullUpdate=!1),this._updateState(),this._updateWme()},n.invalidateAll=function(t){t||(t=document.body);var e=t.children;if(e)for(var r=0;r<e.length;r++)n.invalidateAll(e[r]);var i=n.getControl(t);i&&i.invalidate()},n.refreshAll=function(t){if(t||(t=document.body),t.children)for(var e=0;e<t.children.length;e++)n.refreshAll(t.children[e]);var r=n.getControl(t);r&&r.refresh()},n.disposeAll=function(t){var e=n.getControl(t);if(e)e.dispose();else if(t.children)for(var r=0;r<t.children.length;r++)n.disposeAll(t.children[r])},n.prototype.beginUpdate=function(){this._updating++},n.prototype.endUpdate=function(){this._updating--,this._updating<=0&&this.invalidate()},Object.defineProperty(n.prototype,"isUpdating",{get:function(){return this._updating>0},enumerable:!0,configurable:!0}),n.prototype.deferUpdate=function(t){try{this.beginUpdate(),t()}finally{this.endUpdate()}},Object.defineProperty(n.prototype,"isTouching",{get:function(){return n._touching},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"tabOrder",{get:function(){return this._orgTabIndex},set:function(t){this._setTabOrder(t)},enumerable:!0,configurable:!0}),n.prototype._setTabOrder=function(t){var e=this._e;this._orgTabIndex=t;var n=e.querySelectorAll("input"),r=1===n.length?n[0]:null;e.tabIndex=this.isDisabled||r?-1:this._orgTabIndex,r&&(r.tabIndex=this._orgTabIndex)},Object.defineProperty(n.prototype,"isDisabled",{get:function(){return this._e&&null!=this._e.getAttribute("disabled")},set:function(t){this._setIsDisabled(t)},enumerable:!0,configurable:!0}),n.prototype._setIsDisabled=function(e){if((e=!!t.asBoolean(e,!0))!=this.isDisabled){var r=this._e;if(r){t.toggleClass(r,"wj-state-disabled",e),t.setAttribute(r,"disabled",e?"disabled":null),r.tabIndex=this.isDisabled||1===r.querySelectorAll("input").length?-1:this._orgTabIndex;for(var i=r.querySelectorAll("input,textarea,button,command,fieldset,keygen,optgroup,option,select"),o=n._DSBL_KEY,s=0;s<i.length;s++){var a=i[s];if(e)a[o]=a.disabled,a.disabled=!0;else if(!!t.closest(a,".wj-control.wj-state-disabled"))a[o]=a.disabled,a.disabled=!0;else{var u=a[o];t.isBoolean(u)||(u=!1),a.disabled=u,delete a[o]}}}}},n.prototype.initialize=function(e){t.copy(this,e)},n.prototype.addEventListener=function(e,n,r,i,o){if(e){null==i&&(i=!1),t.isBoolean(i)&&null==o&&(n.indexOf("touch")>-1||n.indexOf("wheel")>-1)&&(o=!1);var s=t.isBoolean(i)&&t.isBoolean(o)?t.getEventOptions(i,o):i;e.addEventListener(n,r,s),this._listeners.push({target:e,type:n,fn:r,capture:i})}},n.prototype.removeEventListener=function(t,e,n,r){for(var i=0,o=0;o<this._listeners.length;o++){var s=this._listeners[o];null!=t&&t!=s.target||null!=e&&e!=s.type||null!=n&&n!=s.fn||null!=r&&r!=s.capture||(s.target.removeEventListener(s.type,s.fn,s.capture),this._listeners.splice(o,1),o--,i++)}return i},n.prototype.onGotFocus=function(t){this.gotFocus.raise(this,t)},n.prototype.onLostFocus=function(t){this.lostFocus.raise(this,t)},n.prototype.onInvalidInput=function(t){var e=this;if(this.invalidInput.raise(this,t),t.cancel){var r=n._FOCUS_INTERVAL+50;Date.now()-n._tsInvalidInput>r+50&&(n._toInvalidInput&&clearTimeout(n._toInvalidInput),n._toInvalidInput=setTimeout(function(){n._toInvalidInput=null,n._tsInvalidInput=Date.now(),e.focus()},r))}return this._updateState(),!t.cancel},n.prototype.onRefreshing=function(t){this.refreshing.raise(this,t)},n.prototype.onRefreshed=function(t){this.refreshed.raise(this,t)},n.prototype._getProductInfo=function(){return"B0C3,Control"},n.prototype._updateWme=function(){},n.prototype._hasPendingUpdates=function(){return null!=this._toInv},n.prototype._handleResize=function(){if(this._e.parentElement){var e=new t.Size(this._e.offsetWidth,this._e.offsetHeight);e.equals(this._szCtl)||(this._szCtl=e,(e.width||e.height)&&this.invalidate())}},n.prototype._resizeObserverCallback=function(t){t.forEach(function(t){var e=n.getControl(t.target);e&&e._handleResize()})},n.prototype._handleFocusBlur=function(){var t=this;this._toFocus||(this._toFocus=setTimeout(function(){t._toFocus=null,t._updateFocusState()},n._FOCUS_INTERVAL))},n.prototype._updateFocusState=function(){setTimeout(function(){for(var e=t.EventArgs.empty,r=document.body.querySelectorAll(".wj-state-focused"),i=0;i<r.length;i++){(u=n.getControl(r[i]))&&u._focus&&!u.containsFocus()&&(t.removeClass(u._e,"wj-state-focus"),u._focus=!1,u._updateState(),u.onLostFocus(e))}var o=t.getActiveElement();if(o)for(var s=!0,a=o;a;){var u;(u=n.getControl(a))&&!u._focus&&u.containsFocus()&&(s&&(t.addClass(a,"wj-state-focus"),s=!1),u._focus=!0,u._updateState(),u.onGotFocus(e)),a=a[n._OWNR_KEY]||a.parentNode}})},n.prototype._updateState=function(){var e=this.hostElement;if(e){t.toggleClass(e,"wj-state-focused",this._focus),this._rtlDir="rtl"==getComputedStyle(e).direction,t.toggleClass(e,"wj-rtl",this._rtlDir);var n=e.querySelector("input");if(n instanceof HTMLInputElement){t.toggleClass(e,"wj-state-empty",0==n.value.length),t.toggleClass(e,"wj-state-readonly",n.readOnly);var r=n.validationMessage;t.toggleClass(e,"wj-state-invalid",!this._pristine&&null!=r&&r.length>0)}}},n.prototype._handleDisabled=function(e){(this.isDisabled||t.closest(e.target,".wj-state-disabled"))&&(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation())},n.prototype._replaceWithDiv=function(t){var e=document.createElement("div");return t.parentElement.replaceChild(e,t),e.innerHTML=t.innerHTML,this._copyAttributes(e,t.attributes,/id|style|class/i),e},n.prototype._copyAttributes=function(t,e,n){if(t)for(var r=0;r<e.length;r++){var i=e[r].name;i.match(n)&&t.setAttribute(i,e[r].value)}},n.prototype._getKeyCode=function(e){var n=e.keyCode;if(this.rightToLeft)switch(n){case t.Key.Right:n=t.Key.Left;break;case t.Key.Left:n=t.Key.Right}return n},n._toWme={},n._ctlCnt=0,n._touching=!1,n._tsInvalidInput=0,n._REFRESH_INTERVAL=10,n._FOCUS_INTERVAL=5,n._ANIM_DEF_DURATION=400,n._ANIM_DEF_STEP=35,n._CLICK_DELAY=800,n._CLICK_REPEAT=75,n._CLIPBOARD_DELAY=100,n._POPUP_ZINDEX=1500,n._SEARCH_DELAY=500,n._HOVER_DELAY=400,n._LEAVE_DELAY=600,n._DRAG_SCROLL_EDGE=15,n._DRAG_SCROLL_STEP=20,n._CTRL_KEY="$WJ-CTRL",n._OWNR_KEY="$WJ-OWNR",n._SCRL_KEY="$WJ-SCRL",n._TTIP_KEY="$WJ-TTIP",n._DSBL_KEY="$WJ-DSBL",n._rxInputAtts=/name|tabindex|placeholder|autofocus|autocomplete|autocorrect|autocapitalize|spellcheck|readonly|minlength|maxlength|pattern|type|aria-.+/i,n}(i);function s(e){if("ontouchstart"in window||"onpointerdown"in window){var n=document,r=t.getEventOptions(!0,!0),i=a,o=u,s=e?n.addEventListener.bind(n):n.removeEventListener.bind(n);"ontouchstart"in window?(s("touchstart",i,r),s("touchend",o,r),s("touchcancel",o,r)):"onpointerdown"in window&&(s("pointerdown",i,r),s("pointerup",o,r),s("pointercancel",o,r))}}function a(t){null!=t.pointerType&&"touch"!=t.pointerType||(o._toTouch&&(clearTimeout(o._toTouch),o._toTouch=null),o._touching=!0)}function u(e){if((null==e.pointerType||"touch"==e.pointerType)&&(o._toTouch=setTimeout(function(){o._toTouch=null,o._touching=!1},900),document.querySelector("ion-app"))){var n=e.target;t.closest(n,".wj-dropdown-panel,.wj-dropdown")&&(n.focus(),e.stopPropagation(),e.stopImmediatePropagation())}}t.Control=o}(wijmo||(wijmo={})),function(t){"use strict";var e=function(){function e(e){this._title=null,this._copyCss=!0,null!=e&&t.copy(this,e)}return Object.defineProperty(e.prototype,"title",{get:function(){return this._title},set:function(e){this._title=t.asString(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"copyCss",{get:function(){return this._copyCss},set:function(e){this._copyCss=t.asBoolean(e)},enumerable:!0,configurable:!0}),e.prototype.addCSS=function(t){this._css||(this._css=[]),this._css.push(t)},e.prototype.append=function(e){var n=this._getDocument();if(t.isString(e))n.write(e);else if(e instanceof Element){e instanceof HTMLElement&&t.Control.refreshAll(e);for(var r=e.cloneNode(!0),i=r.querySelectorAll("input"),o=0;o<i.length;o++){var s=i[o];switch(s.type){case"checkbox":t.setAttribute(s,"checked",!!s.checked||null),t.setAttribute(s,"indeterminate",!!s.indeterminate||null);break;case"radio":t.setAttribute(s,"checked",!!s.checked||null);break;default:t.setAttribute(s,"value",s.value||null)}}n.write(r.outerHTML)}else t.assert(!1,"content should be an HTML string or an Element.")},e.prototype.print=function(e){var n=this;this._iframe&&(this._close(),setTimeout(function(){var r=n._iframe.contentWindow,i="onafterprint"in r&&!t.isFirefox();i&&(r.onafterprint=function(){n._afterPrint(e)}),!(t.isIE()&&null==r.document.body)&&document.queryCommandSupported("print")?r.document.execCommand("print",!0,null):(r.focus(),r.print()),i||n._afterPrint(e)},100))},e.prototype._afterPrint=function(e){document.body.removeChild(this._iframe),this._iframe=null,t.isFunction(e)&&e()},e.prototype._getDocument=function(){if(!this._iframe){var e=this._iframe=document.createElement("iframe");t.addClass(e,"wj-printdocument"),t.setCss(e,{position:"fixed",left:32e3,top:32e3}),document.body.appendChild(e)}return this._iframe.contentDocument},e.prototype._close=function(){var e=this,n=this._getDocument();if(n.close(),n.title=null!=this.title?this.title:document.title,n.title&&n.title.trim()||(n.title=" "),this._copyCss&&[document.head,document.body].forEach(function(n){for(var r=n.querySelectorAll("LINK"),i=0;i<r.length;i++){var o=r[i];if(o.rel.match(/stylesheet/i)&&(!o.type||o.type.match(/text\/css/i))){var s=t.httpRequest(o.href,{async:!1});e._addStyle(s.responseText)}}var a=n.querySelectorAll("STYLE");for(i=0;i<a.length;i++)e._addStyle(a[i].textContent)}),this._css)for(var r=0;r<this._css.length;r++){var i=n.createElement("style"),o=t.httpRequest(this._css[r],{async:!1});i.textContent=o.responseText,n.head.appendChild(i)}},e.prototype._addStyle=function(t){var e=this._getDocument(),n=e.createElement("style");n.textContent=t,e.head.appendChild(n)},e}();t.PrintDocument=e}(wijmo||(wijmo={})),function(t){"use strict";var e=function(){function e(){}return e.copy=function(n){e._copyPaste(t.asString(n),null)},e.paste=function(n){n=t.asFunction(n),e._copyPaste(null,n)},e._copyPaste=function(e,n){for(var r=t.getActiveElement(),i=t.closest(r,".wj-control");i&&t.Control.getControl(i);)i=i.parentElement;if(i=i||document.body){var o=!1,s=t.createElement('<textarea class="wj-clipboard">',i,{position:"fixed",opacity:"0"});s.onkeydown=function(t){return t.preventDefault()},s.onchange=function(t){return t.stopImmediatePropagation()},t.isString(e)?(s.value=e,s.select(),document.execCommand("copy")&&(o=!0)):(s.select(),t.isFunction(n)&&document.execCommand("paste")&&(n(s.value),o=!0)),setTimeout(function(){r.focus({preventScroll:!0}),(t.isIE()?setTimeout:function(t,e){return t()})(function(){return t.removeChild(s)},500),!o&&t.isFunction(n)&&n(s.value)},t.Control._CLIPBOARD_DELAY)}},e}();t.Clipboard=e}(wijmo||(wijmo={})),function(t){"use strict";var e;function n(n,r,i){var o=function(e,n){if(n instanceof MouseEvent)return n.clientX<=0&&n.clientY<=0&&n.target instanceof HTMLElement?t.Rect.fromBoundingRect(n.target.getBoundingClientRect()):new t.Rect(n.pageX-pageXOffset,n.pageY-pageYOffset,0,0);if(n instanceof t.Point)return new t.Rect(n.x,n.y,0,0);if(n instanceof HTMLElement)return t.Rect.fromBoundingRect(n.getBoundingClientRect());if(n&&null!=n.top&&null!=n.left)return n;return null}(0,r),s=function(e){var n=document.body,r=document.documentElement,i=e.parentElement,o=new t.Point(n.scrollLeft||pageXOffset,n.scrollTop||pageYOffset);if(i!=n){var s=i==n?r:e.offsetParent||i;if(s==n&&(s=i),s){var a=s.getBoundingClientRect();o=new t.Point(s.scrollLeft-a.left,s.scrollTop-a.top)}}if(i instanceof HTMLElement){var u=getComputedStyle(i);o.x-=parseFloat(u.borderLeftWidth),o.y-=parseFloat(u.borderTopWidth)}return o}(n),a=function(n,r,i,o){var s=document.documentElement,a=s.clientWidth,u=s.clientHeight,c=e;switch(i){case c.AboveLeft:case c.AboveRight:case c.BelowLeft:case c.BelowRight:if(r){var l=r.width;l&&(t.isIE()&&(l-=n.offsetWidth-n.clientWidth),n.style.minWidth=l+"px")}}var h=getComputedStyle(n),f=parseFloat(h.marginTop)+parseFloat(h.marginBottom),p=parseFloat(h.marginLeft)+parseFloat(h.marginRight),d=new t.Size(n.offsetWidth+p,n.offsetHeight+f),g=new t.Point((a-d.width)/2,Math.round((u-d.height)/2*.7));if(r){"rtl"==h.direction&&(i=function(t){var n=e;switch(t){case n.AboveLeft:return n.AboveRight;case n.AboveRight:return n.AboveLeft;case n.BelowLeft:return n.BelowRight;case n.BelowRight:return n.BelowLeft;case n.Left:return n.Right;case n.LeftTop:return n.RightTop;case n.LeftBottom:return n.RightBottom;case n.Right:return n.Left;case n.RightTop:return n.LeftTop;case n.RightBottom:return n.LeftBottom}return t}(i));var _=r.left,m=a-r.right;switch(g.x=r.left,i){case c.Above:case c.Below:g.x=r.left+(r.width-d.width)/2;break;case c.AboveLeft:case c.BelowLeft:g.x=r.left;break;case c.AboveRight:case c.BelowRight:g.x=r.right-d.width;break;case c.Left:case c.LeftTop:case c.LeftBottom:g.x=_>=d.width||_>=m?r.left-d.width:r.right;break;case c.RightTop:case c.RightBottom:case c.Right:g.x=m>=d.width||m>=_?r.right:r.left-d.width}var v=r.top,y=u-r.bottom;switch(i){case c.Above:case c.AboveLeft:case c.AboveRight:g.y=v>d.height||v>y?r.top-d.height:r.bottom;break;case c.Below:case c.BelowLeft:case c.BelowRight:g.y=y>d.height||y>v?r.bottom:r.top-d.height;break;case c.LeftTop:case c.RightTop:g.y=r.top;break;case c.LeftBottom:case c.RightBottom:g.y=r.bottom-d.height;break;case c.Left:case c.Right:g.y=r.bottom-d.height+(d.height-r.height)/2}}return g.x=Math.min(g.x,a-d.width),g.y=Math.min(g.y,u-d.height),g.x=Math.max(0,g.x)+o.x,g.y=Math.max(0,g.y)+o.y,g}(n,o,i,s),u={position:"absolute",zIndex:t.Control._POPUP_ZINDEX},c=0==s.x;c?(u.left=a.x,u.top=a.y):u.transform="translate("+a.x+"px, "+a.y+"px)";var l=n.getBoundingClientRect().width;if(t.setCss(n,u),c){var h=l-n.getBoundingClientRect().width;h>0&&(n.style.left=a.x-Math.ceil(h)+"px")}}function r(e,n){e.style.display="none",n&&e.parentElement&&setTimeout(function(){"none"==e.style.display&&(t.removeChild(e),t.isFunction(n)&&n())},t.Control._FOCUS_INTERVAL+50);var r=e[t.Control._SCRL_KEY];r instanceof t.Control&&r.dispose(),delete e[t.Control._SCRL_KEY],delete e[t.Control._OWNR_KEY]}function i(e){var n=window.jQuery,r=t.isFunction(n)?n(e):null;return r&&t.isFunction(r.dialog)&&t.hasClass(e,"ui-dialog")}!function(t){t[t.Above=0]="Above",t[t.AboveRight=1]="AboveRight",t[t.RightTop=2]="RightTop",t[t.Right=3]="Right",t[t.RightBottom=4]="RightBottom",t[t.BelowRight=5]="BelowRight",t[t.Below=6]="Below",t[t.BelowLeft=7]="BelowLeft",t[t.LeftBottom=8]="LeftBottom",t[t.Left=9]="Left",t[t.LeftTop=10]="LeftTop",t[t.AboveLeft=11]="AboveLeft"}(e=t.PopupPosition||(t.PopupPosition={})),t.showPopup=function(o,s,a,u,c,l){void 0===c&&(c=!0);var h=o.offsetHeight||o.offsetWidth,f=a;(t.isBoolean(a)||null==a)&&(f=a?e.AboveLeft:e.BelowLeft);var p=function(e){var n=document.body;if(e instanceof HTMLElement){if(!t.contains(document.body,e))return n;for(var r=e;r;r=r.parentElement){if("DIALOG"==r.tagName||"ION-CONTENT"==r.tagName||"fixed"==getComputedStyle(r).position){n=r;break}if(i(r)){n=r.querySelector(".ui-dialog-content")||r;break}}}return n}(s);if(function(e,n){e.offsetHeight&&e.offsetWidth&&e.parentElement==n||(t.setCss(e,{opacity:"0",position:"fixed",left:0,top:0,transform:"",display:""}),n.appendChild(e))}(o,p),function(e,n,r){if(n instanceof HTMLElement&&r){var i=r instanceof HTMLElement?r:n,o=getComputedStyle(i),s=new t.Color(o.backgroundColor);1==s.a&&t.setCss(e,{color:o.color,backgroundColor:o.backgroundColor,fontFamily:o.fontFamily,fontSize:o.fontSize,fontWeight:o.fontWeight,fontStyle:o.fontStyle})}}(o,s,c),t.Control.refreshAll(o),t.isFirefox()?requestAnimationFrame(function(){n(o,s,f)}):n(o,s,f),s instanceof HTMLElement&&(o[t.Control._OWNR_KEY]=s),!h){if(function(e,n,i){var o=n instanceof MouseEvent?n.target:n;if(o instanceof HTMLElement&&o.parentElement!=document.body){var s=Date.now(),a=o.getBoundingClientRect(),u=new t.Control(document.createElement("div"));e[t.Control._SCRL_KEY]=u,u.addEventListener(document,"scroll",function(c){if(c.target!=e.parentElement&&Date.now()-s>100&&t.contains(document,o)&&!t.contains(e,c.target)&&(c.target!=document||null!=n&&"fixed"==e.style.position)){var l=o.getBoundingClientRect(),h=Math.abs(l.left-a.left),f=Math.abs(l.top-a.top);(h>1||f>1)&&(t.isFunction(i)&&i(),r(e,!0),u.dispose())}},!0)}}(o,s,l),u)return t.animate(function(t){return o.style.opacity=t<1?t.toString():""});o.style.opacity=""}return null},t.hidePopup=function(e,n,i){void 0===n&&(n=!0),void 0===i&&(i=!1);var o=null;return i?o=t.animate(function(t){e.style.opacity=(1-t).toString(),1==t&&(r(e,n),e.style.opacity="")}):r(e,n),o}}(wijmo||(wijmo={})),function(t){"use strict";var e=function(){function e(e){this._showAutoTipBnd=this._showAutoTip.bind(this),this._hideAutoTipBnd=this._hideAutoTip.bind(this),this._mousemoveBnd=this._mousemove.bind(this),this._html=!0,this._cssClass="",this._gap=6,this._isAnimated=!1,this._position=t.PopupPosition.Above,this._showAtMouse=!1,this._showDelay=500,this._hideDelay=0,this._tips=[],this.popup=new t.Event,t.copy(this,e)}return Object.defineProperty(e.prototype,"position",{get:function(){return this._position},set:function(e){this._position=t.asEnum(e,t.PopupPosition)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isAnimated",{get:function(){return this._isAnimated},set:function(e){this._isAnimated=t.asBoolean(e)},enumerable:!0,configurable:!0}),e.prototype.setTooltip=function(n,r,i){n=t.getElement(n),r=this._getContent(r);var o=this._indexOf(n);o>-1&&(this._detach(n),this._tips.splice(o,1)),r&&(this._attach(n),this._tips.push({element:n,content:r,position:i}));var s=e._eTip;s&&s[t.Control._TTIP_KEY]==n&&(r?this._setContent(r):this._hideAutoTip())},e.prototype.getTooltip=function(e){e=t.getElement(e);for(var n=this._tips,r=0;r<n.length;r++)if(n[r].element==e)return n[r].content;return null},e.prototype.show=function(r,i,o,s){if(r=t.getElement(r),i=this._getContent(i),r){null==s&&(s=this.position);var a=e._eTip;a||(a=e._eTip=document.createElement("div"),t.addClass(a,"wj-tooltip"),a.style.visibility="none"),t.addClass(a,this.cssClass),this._setContent(i),a[t.Control._TTIP_KEY]=r;var u=new n(i,r);if(this.onPopup(u),u.content&&!u.cancel){this._setContent(u.content),o||(o=t.Rect.fromBoundingRect(r.getBoundingClientRect()));var c=this.gap,l=t.PopupPosition;if(c)switch(s){case l.Above:case l.AboveLeft:case l.AboveRight:case l.Below:case l.BelowLeft:case l.BelowRight:o=o.inflate(0,c);break;default:o=o.inflate(c,0)}t.showPopup(a,o,s,this.isAnimated),document.addEventListener("mousedown",this._hideAutoTipBnd)}}},e.prototype.hide=function(){var n=e._eTip;n&&(t.removeChild(n),t.removeClass(n,this.cssClass),n.innerHTML=""),document.removeEventListener("mousedown",this._hideAutoTipBnd)},e.prototype.dispose=function(){var t=this;this.isVisible&&this.hide();var e=this._tips;e.length&&(e.forEach(function(e){t._detach(e.element)}),e.splice(0,e.length)),this._clearTimeouts()},Object.defineProperty(e.prototype,"isVisible",{get:function(){var t=e._eTip;return null!=t&&null!=t.parentElement&&t.offsetWidth>0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isContentHtml",{get:function(){return this._html},set:function(e){this._html=t.asBoolean(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cssClass",{get:function(){return this._cssClass},set:function(e){this._cssClass=t.asString(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gap",{get:function(){return this._gap},set:function(e){this._gap=t.asNumber(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showAtMouse",{get:function(){return this._showAtMouse},set:function(e){this._showAtMouse=t.asBoolean(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showDelay",{get:function(){return this._showDelay},set:function(e){this._showDelay=t.asInt(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hideDelay",{get:function(){return this._hideDelay},set:function(e){this._hideDelay=t.asInt(e)},enumerable:!0,configurable:!0}),e.prototype.onPopup=function(t){return this.popup&&this.popup.raise(this,t),!t.cancel},e.prototype._indexOf=function(t){for(var e=0;e<this._tips.length;e++)if(this._tips[e].element==t)return e;return-1},e.prototype._attach=function(t){t.addEventListener("mouseenter",this._showAutoTipBnd),t.addEventListener("mouseleave",this._hideAutoTipBnd),t.addEventListener("click",this._showAutoTipBnd),this.showAtMouse&&t.addEventListener("mousemove",this._mousemoveBnd)},e.prototype._detach=function(t){t.removeEventListener("mouseenter",this._showAutoTipBnd),t.removeEventListener("mouseleave",this._hideAutoTipBnd),t.removeEventListener("click",this._showAutoTipBnd),t.removeEventListener("mousemove",this._mousemoveBnd)},e.prototype._showAutoTip=function(e){var n=this;if(!e.defaultPrevented)if("click"!=e.type||t.Control._touching){var r="mouseenter"==e.type?this._showDelay:0,i=this._hideDelay;this._clearTimeouts(),this._eMouse=e,this._toShow=setTimeout(function(){var r=n._indexOf(e.target);if(r>-1){var o=n._tips[r],s=n._eMouse,a=n._showAtMouse?new t.Rect(s.clientX,s.clientY,0,0):null,u=o&&o.element;if(u&&(u.offsetHeight||u.offsetWidth)){var c=t.Control.getControl(o.element);null!=c&&0==c.isVisible||(n.show(o.element,o.content,a,o.position),i>0&&(n._toHide=setTimeout(function(){n.hide()},i)))}}},r)}else this._hideAutoTip()},e.prototype._mousemove=function(t){this._eMouse=t},e.prototype._hideAutoTip=function(){this._clearTimeouts(),this.hide()},e.prototype._clearTimeouts=function(){this._toShow&&(clearTimeout(this._toShow),this._toShow=null),this._toHide&&(clearTimeout(this._toHide),this._toHide=null)},e.prototype._getContent=function(e){if((e=t.asString(e))&&"#"==e[0]){var n=t.getElement(e);n&&(e=n.innerHTML)}return e},e.prototype._setContent=function(t){var n=e._eTip;n&&(this._html?n.innerHTML=t:n.textContent=t)},e}();t.Tooltip=e;var n=function(n){function r(e,r){var i=n.call(this)||this;return i._content=t.asString(e),i._e=r,i}return __extends(r,n),Object.defineProperty(r.prototype,"tip",{get:function(){return e._eTip},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"element",{get:function(){return this._e},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"content",{get:function(){return this._content},set:function(e){this._content=t.asString(e)},enumerable:!0,configurable:!0}),r}(t.CancelEventArgs);t.TooltipEventArgs=n}(wijmo||(wijmo={})),function(t){"use strict";var e="The Wijmo license in this application ",n={evl:"Wijmo Evaluation Version ({version})",prd:e+"is not valid for the <b>{control}</b> control.",ver:e+"is not valid for the version in use. The license version is <b>{licVer}</b>; the product version is <b>{version}</b>.",dmn:e+"is not valid for the current domain. The license domain is <b>{licDomain}</b>; the current domain is <b>{domain}</b>.",exp:e+"has expired. The license expiration date is <b>{expDate:d}</b>.",lic:e+"is invalid.",mss:e+"is not set.",ctc:'If you are a customer, you can <a target="_blank" rel="noopener" href="https://www.grapecity.com/licensing/wijmo?utm_source=Wijmo-In-App&utm_medium=Click-to-Site&utm_campaign=Wijmo-User-Analysis">create a license</a> online. Otherwise, you can <a target="_blank" rel="noopener" href="https://www.grapecity.com/wijmo/request-trial-key?utm_source=Wijmo-In-App&utm_medium=Click-to-Site&utm_campaign=Wijmo-User-Analysis">generate a 30-day license</a> for free. For further assistance, contact GrapeCity: <a href="mailto:us.sales@grapecity.com">us.sales@grapecity.com</a>.',hdr:"Wijmo License",cls:"CLOSE"},r={};function i(t){return t._getProductInfo().split(",")[0]}function o(e,o,l){var h=t.culture.Licensing||n,f=null;l?!function(t,e){if(e.Exp){var n=e.Exp,r=new Date(parseInt(n.substr(0,4))||0,parseInt(n.substr(4,2))-1||0,parseInt(n.substr(6,2))||0),i=Math.ceil((r.valueOf()-Date.now())/864e5);if(i<=0)return!1}return!0}(0,l)?f=h.exp:!function(e,n){var r=n.Anl?n.Anl.ver:null,i=t.getVersion();if(r&&i){var o=parseInt(r.replace("v",""))+10,s=parseInt(i.split(".")[1]);return o>=s}return!0}(0,l)?f=h.ver:!function(t,e){if(u()||!e.Dms)return!0;for(var n=location.hostname,r=e.Dms.split(","),i=0;i<r.length;i++)if(s(n,r[i]))return!0;return!1}(0,l)?f=h.dmn:!function(t,e){var n=i(t);if(n&&n.length>=4)for(var r=0;r<e.Prd.length;r++)if(e.Prd[r].C.indexOf(n)>-1)return!0;return!1}(e,l)?f=h.prd:a(e,l)&&(f=h.evl):f=o?h.lic:h.mss,f&&function(e,i,o){if(i=c(e,i,o),!r[" "]&&!u()&&!a(e,o)){r[" "]=!0;var s=t.culture.Licensing||n,l='<div style="position:fixed;background:rgba(0,0,0,0.3);left:0;top:0;width:100%;height:100%;font-family: sans-serif;z-index:10000;"><div style="position:relative;overflow:auto;background:white;width:450px;padding:36pt;left:50%;top:50%;transform:translate(-50%,-50%)"><div><p style="font-size:150%;font-weight:bold">'+s.hdr+"</p><p>"+i+'</p></div><div style="text-align:right;margin-top:24pt"><button style="border:none;background:rgba(158,158,158,.2);padding:8px 16px">'+s.cls+"</button></div></div></div>",h=t.createElement(l,document.body);h.addEventListener("click",function(e){e.target instanceof HTMLButtonElement&&t.removeChild(h)})}if(!t.Control._wme){var l='<div><a href="'+function(){switch(t.culture.Globalize.name){case"ja":return"https://www.grapecity.co.jp/developer/support/wijmo-license";case"ko":return"https://www.grapecity.co.kr/wijmojs#price";default:return"https://www.grapecity.com/licensing/wijmo?utm_source=Wijmo-In-App&utm_medium=Click-to-Site&utm_campaign=Wijmo-User-Analysis"}}()+'" target="_blank" rel="noopener">'+c(e)+"</a></div>",f=t.createElement(l),p={position:"fixed",display:"block",visibility:"visible",background:"rgba(240,240,240,.9)",padding:"8px 12px",margin:"6px",fontFamily:"sans-serif",fontSize:"14pt",fontWeight:"bold",zIndex:1e4,opacity:.8,height:"auto",width:"auto",transform:"none"};switch(Math.round(100*Math.random())%3){case 0:p.right=p.bottom=0;break;case 1:p.left=p.bottom=0;break;case 2:p.right=p.top=0}t.setCss(f,p),document.body.appendChild(f),t.Control._wme=f,function(e,n){var r,i=t.createElement(n);i.className="wj-tooltip",t.setCss(i,{pointerEvents:"auto",padding:"10px",margin:"6px"}),[e,i].forEach(function(t){t.addEventListener("mouseenter",function(){return s(!0)}),t.addEventListener("mouseleave",function(){return s(!1)})});var o=0;function s(n){o+=n?1:-1,r&&clearTimeout(r),r=setTimeout(function(){r=null,1==o?t.showPopup(i,e.getBoundingClientRect()):o<1&&t.hidePopup(i)},500)}}(f,i)}}(e,f+="<br/><br/>"+h.ctc,l)}function s(t,e){var n="^"+e.replace(/\./g,"\\.").replace(/\*/g,"(.*)")+"$",r=new RegExp(n,"i").test(t);return r||"*."!=e.substr(0,2)?r:s(t,e.substr(2))}function a(t,e){return!!e&&e.Evl}function u(){var t=location,e=atob("Xih8bG9jYWxob3N0fGZpZGRsZS5qc2hlbGwubmV0fHJ1bi5wbG5rci5jb3xzLmNvZGVwZW4uaW98bnVsbC5qc2Jpbi5jb218Lio/LnN0YWNrYmxpdHouaW98MTI3LjAuMC4xfFt3LV0rLmxvY2FsfFt3LV0rfDo6MSkk");return"file:"==t.protocol||new RegExp(e,"i").test(t.hostname)}function c(e,r,i){(!r||r.trim().length<15)&&(r=(t.culture.Licensing||n).evl);(!r||r.trim().length<15)&&(r=atob("V2lqbW8gRXZhbHVhdGlvbiBWZXJzaW9uICh7dmVyc2lvbn0p"));var o=null;if(i&&i.Exp){var s=i.Exp;o=new Date(parseInt(s.substr(0,4))||0,parseInt(s.substr(4,2))-1||0,parseInt(s.substr(6,2))||0)}return r=t.format(r,{version:t.getVersion(),domain:location.hostname,control:function(t){return t._getProductInfo().split(",")[1]}(e),licVer:i&&i.Anl?"5."+i.Anl.ver.replace("v","")+".*":null,licDomain:i?i.Dms:null,expDate:o})}t._updateWme=function(e,n){var s=t.Control._wme;if(!(s&&t.contains(document.body,s)&&s.offsetWidth&&s.offsetHeight))if(n){var a=i(e);r[a]||(r[a]=!0,function(t,e,n,r){var i=function(t,e){try{e="#"+e;var n=t.indexOf(e);if(n>-1)return{prefix:t.substring(0,n),lic:JSON.parse(function(t){if(!t)return"";var e=function(t){for(var e=t.split(""),n=e.length-5;n>=0;n--)h(e,n+1,n+3,f),h(e,n,n+2,f);return e.join("")}(t);e=e.split("").reverse().join("");var n=Math.ceil(e.length/2);return function(t){for(var e=atob(t),n="",r=0;r<e.length;r++)n+="%"+("00"+e.charCodeAt(r).toString(16)).slice(-2);return decodeURIComponent(n)}(e=(e=(e=e.substr(n)+e.substr(0,n)).replace("#","=")).replace("&","=="))}(t.substr(n+e.length)))}}catch(t){}return null}(t,e.algorithmCode);if(!i)return r();var o=i.lic,s=i.prefix+"#"+e.algorithmCode;if(function(t){for(var e=0,n=5381,r=0,i=t.length-1;i>=0;i--){var o=t.charCodeAt(i);e=o+(e<<6)+(e<<16)-e,n=o+((n<<5)+n),r=o+((r<<5)-r)}var s=e^n^r;return s<0&&(s=~s),s.toString(16).toUpperCase()}(s+JSON.stringify(o.D))!=o.H)return r();var a=window.msCrypto||window.crypto,u=a?a.subtle:null;if(!u||!location.protocol.match(/^https/i))return n(o.D);var c,_={name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}},m={alg:"RS256",e:"AQAB",kty:"RSA",n:(c=e.publicKey,c.replace(/\+/g,"-").replace(/\//g,"_").replace(/\=+$/,""))};m=window.msCrypto?d(JSON.stringify(m)):m;try{var v=g(u.importKey("jwk",m,_,!1,["verify"]));v.then(function(t){var e,i,a=(e=p((i=s+JSON.stringify(o.D),btoa(encodeURIComponent(i).replace(/%([0-9A-F]{2})/g,function(t,e){return String.fromCharCode(parseInt(e,16))})))),String.fromCharCode.apply(null,new l(e))),c=g(u.verify(_,t,p(o.S),d(a)));c.then(function(t){return t?n(o.D):r()})},function(){return n(o.D)})}catch(t){return n(o.D)}}(n,{algorithmCode:"B0",publicKey:"l6/zrbWoSbcLFwEetFh38rH3ErBZE9H+Cqix3R+wTlfA1wD5B+lUcCQn+EJ60I4RGrm0x1sFjkiLWwB0jAn6BWZv0W4WbqAKriOdeoivxDp1Wmjs3qkEDhvbsjPtfvwx2BHil6o+/tDrdMJQSGs18WZm2PoQLQuL+9VhZ4FNRHUQU3Jtioke/OZEGHJOdYVwvCGalzBad6QFOiVbDBQPePpS3++GJzOxN8SN/7lyS5/IdKiy3WJRaVGkB370+HbN6hKraDfUgReLX26yxRaKC/5aWnGAJ2NnWLoGyAGRcwT9dVjo4bcAZNrrA0U9JVKQxaSskhdv2p49XzJkltXx5w=="},function(t){o(e,n,t),delete r[a]},function(){o(e,n,null),delete r[a]}))}else o(e,null,null)};var l="undefined"==typeof window?null:window.Uint8Array||window.TypedArray;function h(t,e,n,r){t.length>1&&t.splice(n,1,r(t.splice(e,1,r(t[n]))[0]))}function f(t){return n=-1,(r=(e=t).charCodeAt(0))>=65&&r<=90?e.toLowerCase():r>=97&&r<=122?e.toUpperCase():r>=48&&r<=57?String.fromCharCode(48+(r-48+10+n)%10):e;var e,n,r}function p(t){for(var e=atob(t),n=e.length,r=new l(n),i=0;i<n;i++)r[i]=e.charCodeAt(i);return r.buffer}function d(t){for(var e=new ArrayBuffer(t.length),n=new l(e),r=0,i=t.length;r<i;r++)n[r]=t.charCodeAt(r);return e}function g(t){return"oncomplete"in t&&(t.then=function(e,n){t.resolve=e,t.reject=n},t.oncomplete=function(e){t.resolve(t.result)},t.onerror=function(e){t.reject()}),t}}(wijmo||(wijmo={})),function(t){"use strict";var e=function(){function e(t){this._isDown=!1,this._mousedownBnd=this._mousedown.bind(this),this._mouseupBnd=this._mouseup.bind(this),this._clickBnd=this._click.bind(this),this.element=t,this._connect(!0)}return Object.defineProperty(e.prototype,"element",{get:function(){return this._e},set:function(e){this._connect(!1),this._e=t.asType(e,HTMLElement,!0),this._connect(!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return this._disabled},set:function(e){this._disabled=t.asBoolean(e)},enumerable:!0,configurable:!0}),e.prototype._connect=function(t){var n=this;this._e&&e._startEvents.forEach(function(e){t?n._e.addEventListener(e,n._mousedownBnd):n._e.removeEventListener(e,n._mousedownBnd)})},e.prototype._clearTimeouts=function(){this._toRepeat&&(clearTimeout(this._toRepeat),this._toRepeat=null),this._toDelay&&(clearTimeout(this._toDelay),this._toDelay=null)},e.prototype._mousedown=function(n){var r=this;this._isDown&&this._mouseup(null),this._disabled||(this._isDown=!0,e._stopEvents.forEach(function(t){document.addEventListener(t,r._mouseupBnd)}),this._clearTimeouts(),this._toDelay=setTimeout(function(){r._isDown&&(r._click(),r._toRepeat=setTimeout(r._clickBnd,t.Control._CLICK_REPEAT))},t.Control._CLICK_DELAY))},e.prototype._mouseup=function(t){var n=this;this._isDown&&t&&"keydown"!=t.type&&this._clicked&&t.preventDefault(),e._stopEvents.forEach(function(t){document.removeEventListener(t,n._mouseupBnd)}),this._clearTimeouts(),this._isDown=!1,this._clicked=!1},e.prototype._click=function(){this._clicked=!0,this._clearTimeouts(),this._e&&(this._e.click(),this._isDown&&(this._toRepeat=setTimeout(this._clickBnd,t.Control._CLICK_REPEAT)))},e._startEvents=["mousedown","touchstart"],e._stopEvents=["mouseup","mouseout","keydown","touchend","touchcancel"],e}();t._ClickRepeater=e}(wijmo||(wijmo={})),function(t){t._registerModule("wijmo",t)}(wijmo||(wijmo={}));
var c1;(function(n){function f(n,i){if(!n||i==null)return null;var r=n[t];return r?r[i]:null}function e(n,i){var r,u=[],f,e;if(!n||(r=n[t],!r))return u;for(e in r)f=r[e],(!i||f instanceof i)&&u.push(f);return u}function o(n,i,r){if(n&&i!=null&&r){var u=n[t];u||(n[t]=u={});u[i]=r}}function r(n,t){return n&&t&&n instanceof wijmo.Event&&wijmo.isFunction(t)?(n.addHandler(t),!0):!1}function s(n){if(!n)return null;var t=window;return n.split(".").forEach(function(n){return t=t[n]}),t}function h(n){document.addEventListener("DOMContentLoaded",n.bind(window))}function c(n,t){var i,r;if(n&&n.extensions){i=n.extensions;for(r in i)if(i[r]instanceof t)return i[r]}}var t="_c1Extenders",i,u;n.getExtender=f;n.getExtenders=e;n._addExtender=o;n._addEvent=r;n._findFunction=s;n.documentReady=h;n._getExtension=c;i=function(){function n(n){if(n==null)throw"control should not be null or undefined.";this._control=n;this._override()}return Object.defineProperty(n.prototype,"control",{get:function(){return this._control},enumerable:!1,configurable:!0}),n.prototype._override=function(){n._overrideCopy(this.control)},n._overrideCopy=function(n){var t=Object.getPrototypeOf(n),i=t._copy;t._isCopyOverrided||(t._copy=function(n,t){var u=this[n];return r(u,t)?!0:i?i.call(this,n,t):!1},t._isCopyOverrided=!0)},n}();n._Initializer=i;u=function(){function n(n,t){var i=this;i._beforeCreateControl(t);i._createControl(n);i._bindControl();i._initExtensions()}return n.prototype._beforeCreateControl=function(){},n.prototype._createControl=function(n){var t=this,i=t._controlType;t._control=new i(n)},n.prototype._bindControl=function(){n.setWrapper(this.control,this)},n.setWrapper=function(t,i){t[n._DATA_KEY]=i},n.getWrapper=function(t){return t[n._DATA_KEY]},n.prototype._initExtensions=function(){var i=this,t=this._getExtensionTypes(),n;t&&(n=[],t.reverse().forEach(function(t){n.push(new t(i.control))}),this.control.extensions=n)},n.prototype.initialize=function(){this.control.initialize.apply(this.control,arguments)},n.prototype._getExtensionTypes=function(){return[this._initializerType]},Object.defineProperty(n.prototype,"_initializerType",{get:function(){return i},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"_controlType",{get:function(){throw"Should implement this property getter in the leaf control wrapper.";},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"control",{get:function(){return this._control},enumerable:!1,configurable:!0}),n._DATA_KEY="_c1ControlWrapper",n}();n._ControlWrapper=u})(c1||(c1={}));
var c1;(function(n){function i(i,r,u){var f;if(arguments.length===1&&t[i]!=null)return t[i];if(i.length&&!r&&u==null){if(f=n._findFunction(i),f==null)throw"service is not registered.";return t[i]=f,f}if(!r)throw"serviceCtor is null";if(i.length&&typeof r=="object"&&u==null)return t[i]=r,r;if(typeof r!="function")throw"serviceCtor is not a service constructor.";try{f=new r;typeof f.initialize!="function"?f=new r(u):f.initialize.call(f,u)}catch(e){throw"service cannot be created.";}return i.length&&(t[i]=f),f}function r(n){delete t[n]}function u(n){return t[n]}var t={};n._registerService=i;n._disposeService=r;n.getService=u})(c1||(c1={}));
var __extends=this&&this.__extends||function(){var n=function(t,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r(){this.constructor=t}if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(t,i);t.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}}(),c1;(function(n){var t;(function(n){var i,t;(function(n){n[n.Unspecified=1]="Unspecified";n[n.Local=2]="Local";n[n.Utc=3]="Utc"})(i=n.DateKind||(n.DateKind={}));t=function(n){function t(t,i,r){var u=n.call(this)||this;return u._key=t,u._value=i,u._parent=r,u}return __extends(t,n),t.cast=function(n){return n},Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this._value},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"key",{get:function(){return this._key},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"result",{get:function(){return this._result},set:function(n){this._result=n},enumerable:!1,configurable:!0}),t}(wijmo.CancelEventArgs);n.JSONOperationEventArgs=t})(t=n.mvc||(n.mvc={}))})(c1||(c1={}));
var c1;(function(n){var t;(function(t){var f=function(){function n(n){this.uniqueId=n;this._keyPrefix="wj-";this._keys={isCallback:this._keyPrefix+"cbk",uniqueId:this._keyPrefix+"id",data:this._keyPrefix+"data"}}return n.prototype.doCallback=function(n,t,r,u,f){var e={},o=this._keys;e[o.isCallback]="true";e[o.uniqueId]=this.uniqueId;e[o.data]=i.jsonStringify(n,u);i.ajaxPost({url:"",success:t,error:r,data:e,requestDataStringifying:u,responseTextParsing:f})},n}(),u,r,i;t.CallbackManager=f;u=function(){function t(){}return t._isRemoteSource=function(t){var i,r;return t?(i=wijmo.tryCast(t,n.mvc.collections.RemoteCollectionView),i)?i._isRemoteMode():(r=wijmo.tryCast(t,wijmo.odata.ODataCollectionView),!!r):!1},t._isQueringData=function(t){var i,r;return t?(i=wijmo.tryCast(t,n.mvc.collections.RemoteCollectionView),i)?i._isQuerying&&i._isQuerying():(r=wijmo.tryCast(t,wijmo.odata.ODataCollectionView),r&&r._loading):!1},t._isDynamicalLoading=function(t){var i,r;return t?(i=wijmo.tryCast(t,n.mvc.collections.RemoteCollectionView),i)?i._isDynamicalLoadingEnabled&&i._isDynamicalLoadingEnabled():(r=wijmo.tryCast(t,wijmo.odata.ODataVirtualCollectionView),!!r):!1},t}();t.DataSourceManager=u;r=wijmo.Binding.prototype.getValue;wijmo.Binding.prototype.getValue=function(n){return n==null?null:(r&&(n=r.call(this,n)),n)};i=function(){function i(){}return i.getType=function(n){var r,t;if(i.class2type==null)for(r="Boolean Number String Function Array Date RegExp Object Error".split(" "),i.class2type={},t=0;t<r.length;t++)i.class2type["[object "+r[t]+"]"]=r[t].toLowerCase();return n==null?n+"":typeof n=="object"||typeof n=="function"?i.class2type[{}.toString.call(n)]||"object":typeof n},i.isEmptyContent=function(n){return n==null||!n.length||!n.replace(/\s*/g,"").length?!0:!1},i.getService=function(n){return new Function("return "+n+";").call(window)},i.parseFunction=function(t){if(/function\(.*?\)/.test(t))return{value:eval(t),success:!0};var i=/^\/Function\((.*?)\)\/$/.exec(t);return i?{value:n._findFunction(i[1]),success:!0}:{success:!1}},i.parseService=function(n){var t=/^\/Service\((.*?)\)\/$/.exec(n);return t?{value:i.getService(t[1]),success:!0}:{success:!1}},i.tryDateJsonParse=function(n){var r=i.dateJsonRegx.exec(n),t;return r?(t=new Date(n),r[8]==""&&(n+=i._getLocalTimeZoneText(t)),t.dateKind=i.getDateKind(r[8]),t):null},i.getDateKind=function(n){var i=n.toLowerCase();return i=="z"?t.DateKind.Utc:i.length==0?t.DateKind.Unspecified:t.DateKind.Local},i.jsonParse=function(n,r,u){return n==""?null:JSON.parse(n,function(n,f){var o,s,h,e;if(r&&(o=new t.JSONOperationEventArgs(n,f,this),r(o)))return o.result;if(u&&(s=u.call(this,n,f),s!==f))return s;if(typeof f=="string"){if(h=i.tryDateJsonParse(f),h)return h;if((e=i.parseFunction(f),e&&e.success)||(e=i.parseService(f),e.success))return e.value}return f})},i.jsonStringify=function(n,r,u,f){return JSON.stringify(n,function(n,f){var e,o,s;return r&&(e=new t.JSONOperationEventArgs(n,f,this),r(e))?e.result:u&&(o=u.call(this,n,f),o!==f)?o:(s=i.tryGetDate(this,n,f),s)?i.dateToJson(s):typeof f=="function"?String(f):f},f)},i.tryGetDate=function(n,t,i){if(i instanceof Date)return i;if(typeof i=="string"){var r=t==null?n:n[t];if(r instanceof Date)return r}return null},i.dateToJson=function(n){var r=n.dateKind||t.DateKind.Unspecified;return i.formatNumber(r==t.DateKind.Utc?n.getUTCFullYear():n.getFullYear(),4)+"-"+i.formatNumber((r==t.DateKind.Utc?n.getUTCMonth():n.getMonth())+1,2)+"-"+i.formatNumber(r==t.DateKind.Utc?n.getUTCDate():n.getDate(),2)+"T"+i.formatNumber(r==t.DateKind.Utc?n.getUTCHours():n.getHours(),2)+":"+i.formatNumber(r==t.DateKind.Utc?n.getUTCMinutes():n.getMinutes(),2)+":"+i.formatNumber(r==t.DateKind.Utc?n.getUTCSeconds():n.getSeconds(),2)+"."+i.formatNumber(r==t.DateKind.Utc?n.getUTCMilliseconds():n.getMilliseconds(),3)+i._getTimeZoneText(r,n)},i._getTimeZoneText=function(n,r){switch(n){case t.DateKind.Local:return i._getLocalTimeZoneText(r);case t.DateKind.Utc:return"Z";case t.DateKind.Unspecified:default:return""}},i._getLocalTimeZoneText=function(n){var r,t,u;return n===void 0&&(n=new Date),r=n.getTimezoneOffset(),t="",r>0?t+="-":(t+="+",r*=-1),u=Math.floor(r/60),t+=i.formatNumber(u,2),t+=":",t+i.formatNumber(r-u*60,2)},i.formatNumber=function(n,t){for(var i=n.toString();i.length<t;)i="0"+i;return i},i.random=function(n,t){var i=Math.random();return n+i*(t-n)},i.formatString=function(n){for(var i=[],t=1;t<arguments.length;t++)i[t-1]=arguments[t];return n.replace(/{(\d+)}/g,function(n,t){return typeof i[t]!="undefined"?i[t]:n})},i.isObject=function(n){return n!=null&&typeof n=="object"&&i.getType(n)!=="date"},i.copy=function(n,t){var r,u;for(r in t)u=t[r],n._copy&&n._copy(r,u)||(i.isObject(u)&&n[r]?i.copy(n[r],u):n[r]=u);return n},i.extend=function(n){for(var r,u=[],t=1;t<arguments.length;t++)u[t-1]=arguments[t];return r=u.map(function(n){return i.copy({},n)}),r.unshift(n),r.reduceRight(function(n,t){return i.copy(t,n)})},i.formEncodedObject=function(n){var u=[],r,t;for(r in n)t=n[r],i.isObject(t)?t=encodeURIComponent(JSON.stringify(t)):t&&(t=encodeURIComponent(t.toString())),u.push(r+"="+t);return u.join("&")},i.ajax=function(n){var r=new XMLHttpRequest,t=i.copy({async:!0,cache:!1,type:"GET",postType:"form"},n),f,e,o,u=t.url,h,s;if(typeof t.data=="string"||t.data instanceof Document)f=t.data;else if(i.isObject(t.data))if(t.type==="GET")u+=u.indexOf("?")>=0?"&":"?",u+=i.formEncodedObject(t.data);else if(t.postType==="form")f=i.formEncodedObject(t.data),t.contentType="application/x-www-form-urlencoded";else if(t.postType==="json")f=i.jsonStringify(t.data,t.requestDataStringifying),t.contentType="application/json";else if(t.postType==="multipart"){f=new FormData;for(e in t.data)f.append(e,t.data[e])}if(r.onload=function(){var u=r.status>=200&&r.status<300||r.status===304,n;if(!u){t.error&&t.error.call(r,r,i.getTextStatus(r),"");return}t.dataType==="json"?n=i.jsonParse(r.responseText,t.responseTextParsing):t.dataType==="text"||t.dataType==="html"||t.dataType==="script"?n=r.responseText:t.dataType==="xml"&&(n=r.responseXML);t.success.bind(r)(n)},t.error&&(r.onerror=function(){t.error.call(r,r,i.getTextStatus(r),"")}),t.cache||(h="_="+i.random(1e3,9999).toFixed(0),u+=u.indexOf("?")>=0?"&":"?",u+=h),r.open(t.type,u,t.async),t.headers)for(o in t.headers)r.setRequestHeader(o,t.headers[o]);return t.headers&&t.headers[i.requestVerificationTokenKey]||(s=document.querySelector("input[name=__RequestVerificationToken]"),s&&r.setRequestHeader(i.requestVerificationTokenKey,s.value)),t.contentType&&r.setRequestHeader("Content-Type",t.contentType),t.beforeSend&&t.beforeSend(r,t),r.send(f||null),r},i.getTextStatus=function(n){return n.status===0?"0 failed":n.status+" "+n.statusText},i.beginRequest=function(n){var t=i.copy({dataType:"json"},n);return i.ajax(t)},i.ajaxGet=function(n){var t=i.copy({type:"GET",dataType:"json"},n);return i.beginRequest(t)},i.ajaxPost=function(n){var t=i.copy({type:"POST",dataType:"json"},n);return i.beginRequest(t)},i.ajaxLoad=function(n,t){var r=i.copy({type:"GET",dataType:"html",success:function(t){var i=document.querySelector(n);i.innerHTML=t}},t);return i.beginRequest(r)},i.documentReady=function(t){n.documentReady(t)},i.tryCallJQuery=function(n){var t=window.jQuery;t&&typeof t=="function"&&n(t)},i.forwardValidationEvents=function(n,t,r,u){u===void 0&&(u=!1);u||n.gotFocus.addHandler(function(){setTimeout(function(){return i.tryCallJQuery(function(n){return n(r).focus()})})});n.addEventListener(n.hostElement,"keyup",function(n){i.tryCallJQuery(function(t){(n.which!==9||t(r).val()!=="")&&t(r).keyup()})});n.lostFocus.addHandler(function(){i.tryCallJQuery(function(n){return n(r).blur()})})},i.triggerValidationChangeEvent=function(n){i.tryCallJQuery(function(t){return t(n).keyup()})},i.dateJsonRegx=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)(:\d*)?(Z|[\+\-]\d{2}:\d{2}|)$/,i.requestVerificationTokenKey="RequestVerificationToken",i}();t.Utils=i})(t=n.mvc||(n.mvc={}))})(c1||(c1={}));
var wijmo;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.Control||(n.Control={}))})(wijmo||(wijmo={})),function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.CancelEventArgs||(n.CancelEventArgs={}))}(wijmo||(wijmo={})),function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.EventArgs||(n.EventArgs={}))}(wijmo||(wijmo={})),function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.PropertyChangedEventArgs||(n.PropertyChangedEventArgs={}))}(wijmo||(wijmo={})),function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.RequestErrorEventArgs||(n.RequestErrorEventArgs={}))}(wijmo||(wijmo={})),function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.Tooltip||(n.Tooltip={}))}(wijmo||(wijmo={})),function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.TooltipEventArgs||(n.TooltipEventArgs={}))}(wijmo||(wijmo={}));
var wijmo;(function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.CollectionView||(n.CollectionView={}))})(t=n.collections||(n.collections={}))})(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.NotifyCollectionChangedEventArgs||(n.NotifyCollectionChangedEventArgs={}))})(t=n.collections||(n.collections={}))}(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.PageChangingEventArgs||(n.PageChangingEventArgs={}))})(t=n.collections||(n.collections={}))}(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.PropertyGroupDescription||(n.PropertyGroupDescription={}))})(t=n.collections||(n.collections={}))}(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.SortDescription||(n.SortDescription={}))})(t=n.collections||(n.collections={}))}(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.GroupDescription||(n.GroupDescription={}))})(t=n.collections||(n.collections={}))}(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.ICollectionView||(n.ICollectionView={}))})(t=n.collections||(n.collections={}))}(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.IEditableCollectionView||(n.IEditableCollectionView={}))})(t=n.collections||(n.collections={}))}(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.IPagedCollectionView||(n.IPagedCollectionView={}))})(t=n.collections||(n.collections={}))}(wijmo||(wijmo={}));
var wijmo,__extends=this&&this.__extends||function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();!function(t){!function(e){e.softGrid=function(){return t._getModule("wijmo.grid")},e.softFilter=function(){return t._getModule("wijmo.grid.filter")}}(t.odata||(t.odata={}))}(wijmo||(wijmo={})),function(t){!function(e){"use strict";var r=function(r){function n(e,n,i){var o=r.call(this)||this;return o._count=0,o._sortOnServer=!0,o._pageOnServer=!0,o._filterOnServer=!0,o._deferCommits=!1,o._hasPendingChanges=!1,o._showDatesAsGmt=!1,o._inferDataTypes=!0,o._reviverBnd=o._reviver.bind(o),o.loading=new t.Event,o.loaded=new t.Event,o.error=new t.Event,o.hasPendingChangesChanged=new t.Event,o._url=t.asString(e,!1),o._tbl=t.asString(n),t.copy(o,i),o.sortDescriptions.collectionChanged.addHandler(function(){o.sortOnServer&&!o.hasPendingChanges&&o._getData()}),o.itemsEdited.collectionChanged.addHandler(o._updateHasChanges,o),o.itemsAdded.collectionChanged.addHandler(o._updateHasChanges,o),o.itemsRemoved.collectionChanged.addHandler(o._updateHasChanges,o),o._getData(),o}return __extends(n,r),Object.defineProperty(n.prototype,"tableName",{get:function(){return this._tbl},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"entityType",{get:function(){return this._entityType},set:function(e){this._entityType=t.asString(e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"fields",{get:function(){return this._fields},set:function(e){this._fields!=e&&(this._fields=t.asArray(e),this._getData())},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"requestHeaders",{get:function(){return this._requestHeaders},set:function(t){this._requestHeaders=t},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"keys",{get:function(){return this._keys},set:function(e){this._keys=t.asArray(e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"expand",{get:function(){return this._expand},set:function(e){this._expand=t.asString(e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"jsonReviver",{get:function(){return this._jsonReviver},set:function(e){this._jsonReviver=t.asFunction(e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"dataTypes",{get:function(){return this._dataTypes},set:function(t){this._dataTypes=t},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"inferDataTypes",{get:function(){return this._inferDataTypes},set:function(e){e!=this.inferDataTypes&&(this._inferDataTypes=t.asBoolean(e),this._getData())},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"showDatesAsGmt",{get:function(){return this._showDatesAsGmt},set:function(e){e!=this.showDatesAsGmt&&(this._showDatesAsGmt=t.asBoolean(e),this._getData())},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"sortOnServer",{get:function(){return this._sortOnServer},set:function(e){e!=this._sortOnServer&&(this._sortOnServer=t.asBoolean(e),this._getData())},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"pageOnServer",{get:function(){return this._pageOnServer},set:function(e){e!=this._pageOnServer&&(this._pageOnServer=t.asBoolean(e),this.pageSize&&this._getData())},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"filterOnServer",{get:function(){return this._filterOnServer},set:function(e){e!=this._filterOnServer&&(this._filterOnServer=t.asBoolean(e),this._getData())},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"filterDefinition",{get:function(){return this._filterDef},set:function(e){e!=this._filterDef&&(this._filterDef=t.asString(e),this._getData())},enumerable:!0,configurable:!0}),n.prototype.updateFilterDefinition=function(t){this.filterOnServer&&e.softGrid()&&e.softFilter()&&t instanceof e.softFilter().FlexGridFilter&&(this.filterDefinition=this._asODataFilter(t))},Object.defineProperty(n.prototype,"oDataVersion",{get:function(){return this._odv},set:function(e){this._odv=t.asNumber(e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"isLoading",{get:function(){return this._loading},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"deferCommits",{get:function(){return this._deferCommits},set:function(e){this._deferCommits=t.asBoolean(e),this.deferCommits&&(this.trackChanges=!0)},enumerable:!0,configurable:!0}),n.prototype.onLoading=function(t){this.loading.raise(this,t)},n.prototype.onLoaded=function(t){this.loaded.raise(this,t)},n.prototype.load=function(){this._getData()},n.prototype.onError=function(t){return this.error.raise(this,t),!t.cancel},n.prototype.onHasPendingChangesChanged=function(t){this.hasPendingChangesChanged.raise(this,t)},n.prototype.implementsInterface=function(t){return"IEditableCollectionView"==t?null!=this.keys&&this.keys.length>0:r.prototype.implementsInterface.call(this,t)},n.prototype.commitNew=function(){var e=this;if(!this.deferCommits){var n={Accept:"application/json"};if(this.requestHeaders)for(var i in this.requestHeaders)n[i]=this.requestHeaders[i];var o=this.currentAddItem;if(o){var a=this._getWriteUrl();t.httpRequest(a,{method:"POST",requestHeaders:n,data:this._convertToDbFormat(o),success:function(t){var r=JSON.parse(t.responseText,e._reviverBnd);e.keys.forEach(function(t){o[t]=r[t]}),e.refresh()},error:this._error.bind(this)})}}r.prototype.commitNew.call(this)},n.prototype.commitEdit=function(){if(!this.deferCommits){var e=this.currentEditItem;if(e&&!this.currentAddItem&&this._getChangedFields(e,this._edtClone)){var n=this._getWriteUrl(this._edtClone);t.httpRequest(n,{method:"PATCH",requestHeaders:this.requestHeaders,data:this._convertToDbFormat(e),error:this._error.bind(this)})}}r.prototype.commitEdit.call(this)},n.prototype.remove=function(e){if(!this.deferCommits&&e&&e!=this.currentAddItem&&this.items.indexOf(e)>-1){var n=this._getWriteUrl(e);t.httpRequest(n,{method:"DELETE",requestHeaders:this.requestHeaders,error:this._error.bind(this)})}r.prototype.remove.call(this,e)},n.prototype.commitChanges=function(e){var r=this;if(this.deferCommits){var n=[];if(this.itemsEdited.forEach(function(t){n.push({method:"PATCH",url:r._getWriteUrl(t),data:r._convertToDbFormat(t)})}),this.itemsAdded.forEach(function(t){n.push({method:"POST",url:r._getWriteUrl(),data:r._convertToDbFormat(t)})}),this.itemsRemoved.forEach(function(t){n.push({method:"DELETE",url:r._getWriteUrl(t)})}),n.length){var i=(new Date).getTime().toString();t.httpRequest(this._getServiceUrl()+"$batch",{method:"POST",requestHeaders:{"Content-Type":'multipart/mixed; boundary="'+i+'"'},data:this._encodeBatch(n,i),success:function(t){r.clearChanges(),r.load()},error:function(e){if(r.onError(new t.RequestErrorEventArgs(e)))throw"HttpRequest Error: "+e.status+" "+e.statusText},complete:function(r){t.isFunction(e)&&e(r)}})}}},n.prototype.cancelChanges=function(){this.deferCommits&&(this.clearChanges(),this.load())},Object.defineProperty(n.prototype,"hasPendingChanges",{get:function(){return!!this.deferCommits&&(this.itemsAdded.length>0||this.itemsEdited.length>0||this.itemsRemoved.length>0)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"totalItemCount",{get:function(){return this._count},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"pageCount",{get:function(){return this.pageSize?Math.ceil(this.totalItemCount/this.pageSize):1},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"pageSize",{get:function(){return this._pgSz},set:function(e){e!=this._pgSz&&(this._pgSz=t.asInt(e),this.pageOnServer?(this._pgIdx=t.clamp(this._pgIdx,0,this.pageCount-1),this._getData()):this.refresh())},enumerable:!0,configurable:!0}),n.prototype.onPageChanging=function(t){return r.prototype.onPageChanging.call(this,t),!t.cancel&&this.pageOnServer&&this._getData(),!t.cancel},n.prototype._getPageView=function(){return this.pageOnServer?this._view:r.prototype._getPageView.call(this)},n.prototype._performRefresh=function(){var t=this._canFilter,e=this._canSort;this._canFilter=!this._filterOnServer,this._canSort=!this._sortOnServer,r.prototype._performRefresh.call(this),this._canFilter=t,this._canSort=e},n.prototype._updateHasChanges=function(){var t=this.hasPendingChanges;t!=this._hasPendingChanges&&(this._hasPendingChanges=t,this.onHasPendingChangesChanged())},n.prototype._storeItems=function(t,e){e?Array.prototype.push.apply(this.sourceCollection,t):this.sourceCollection=t},n.prototype._getReadUrl=function(t){var e=this._getServiceUrl();return t?e=0==t.indexOf("http")?t:e+t:this._tbl&&(e+=this._tbl),e},n.prototype._getReadParams=function(t){var e={};if((!t||t.indexOf("$format")<0&&t.indexOf("%24format")<0)&&(e.$format="json"),!t&&this._tbl){if(this._odv<4?e.$inlinecount="allpages":e.$count=!0,this.fields&&(e.$select=this.fields.join(",")),this.expand&&(e.$expand=this.expand),this.sortOnServer&&this.sortDescriptions.length){var r="";this.sortDescriptions.forEach(function(t){r&&(r+=","),r+=t.property,t.ascending||(r+=" desc")}),e.$orderby=r}this.pageOnServer&&this.pageSize>0&&(e.$skip=this.pageIndex*this.pageSize,e.$top=this.pageSize),this.filterDefinition&&(e.$filter=this.filterDefinition)}return e},n.prototype._getData=function(e,r){var n=this;this._toGetData&&clearTimeout(this._toGetData),this._toGetData=setTimeout(function(){if(null!=n._odv){n._loading=!0,n.onLoading();var i=t.httpRequest(n._getReadUrl(e),{requestHeaders:n.requestHeaders,data:n._getReadParams(e),success:function(t){var r=JSON.parse(t.responseText,n._reviverBnd),i=r.d?r.d.results:r.value,o=r.d?r.d.__count:r["odata.count"]||r["@odata.count"];if(null!=o&&(n._count=parseInt(o)),n.pageIndex>0&&n.pageIndex>=n.pageCount){var a=n.pageIndex;if(n.moveToLastPage(),n.pageIndex!=a)return}e||n.inferDataTypes&&!n._dataTypesInferred&&(n._dataTypesInferred=n._getInferredDataTypes(i));var s=n.dataTypes?n.dataTypes:n._dataTypesInferred;s&&i.forEach(function(t){n._convertItem(s,t)}),n._storeItems(i,null!=e),n.refresh(),(e=r.d?r.d.__next:r["odata.nextLink"]||r["@odata.nextLink"])?n._getData(e):(n._loading=!1,n.onLoaded())},error:function(e){if(n._loading=!1,n.onLoaded(),n.onError(new t.RequestErrorEventArgs(e)))throw"HttpRequest Error: "+e.status+" "+e.statusText}});t.isFunction(r)&&r(i)}else n._getSchema()},100)},n.prototype._convertToDbFormat=function(e){var r={},n=this.calculatedFields;for(var i in e)if(!(n&&i in n)){var o=e[i];t.isDate(o)&&this._showDatesAsGmt?o=new Date(o.getTime()-6e4*o.getTimezoneOffset()):t.isNumber(o)&&this._odv<4&&(o=o.toString()),r[i]=o}return this.entityType&&(r["odata.type"]=this.entityType),r},n.prototype._reviver=function(e,r){return"string"==typeof r&&n._rxDate.test(r)&&(r=0==r.indexOf("/Date(")?new Date(parseInt(r.substr(6))):new Date(r),t.isDate(r)&&this._showDatesAsGmt&&(r=new Date(r.getTime()+6e4*r.getTimezoneOffset()))),this._jsonReviver?this._jsonReviver(e,r):r},n.prototype._convertItem=function(e,r){for(var n in e){var i=e[n],o=r[n];null!=o&&(o=i==t.DataType.Date&&t.isString(o)&&0==o.indexOf("/Date(")?new Date(parseInt(o.substr(6))):t.changeType(o,i,null),t.isDate(o)&&this._showDatesAsGmt&&(o=new Date(o.getTime()+6e4*o.getTimezoneOffset())),r[n]=o)}},n.prototype._getInferredDataTypes=function(e){var r=this,i=null;if(e.length>0){var o={};for(var a in e.forEach(function(t){r._extend(o,t)}),o){var s=o[a];t.isString(s)&&n._rxDate.test(s)&&(i||(i={}),i[a]=t.DataType.Date)}}return i},n.prototype._getServiceUrl=function(){var t=this._url;return"/"!=t[t.length-1]&&(t+="/"),t},n.prototype._getSchema=function(){var e=this,r=this._getServiceUrl()+"$metadata",i=n._odvCache;this._odv=i[r],this._odv?this._getData():t.httpRequest(r,{requestHeaders:this.requestHeaders,success:function(t){var n=t.responseText.match(/<.*Version\s*=\s*"([0-9.]+)"/),o=n?parseFloat(n[1]):4;i[r]=e._odv=o},error:function(t){i[r]=e._odv=4},complete:function(t){e._getData()}})},n.prototype._getWriteUrl=function(e){var r=this,n=this._getServiceUrl()+this._tbl;if(e){t.assert(this.keys&&this.keys.length>0,"write operations require keys.");var i=[];this.keys.forEach(function(n){var o=e[n];null==o&&(o=""),t.isString(o)&&(o="'"+o+"'"),i.push(1==r.keys.length?o:n+"="+o)}),i.length&&(n+="("+i.join(",")+")")}return n},n.prototype._asODataFilter=function(t){for(var e="",r=0;r<t.grid.columns.length;r++){var n=t.grid.columns[r],i=t.getColumnFilter(n,!1);i&&i.isActive&&(e&&(e+=" and "),i.conditionFilter&&i.conditionFilter.isActive?e+=this._asODataConditionFilter(i.conditionFilter):i.valueFilter&&i.valueFilter.isActive&&(e+=this._asODataValueFilter(i.valueFilter)))}return e},n.prototype._asODataValueFilter=function(e){var r=e.column,n=r.binding,i=r.dataMap,o="";for(var a in e.showValues){var s=t.changeType(a,r.dataType,r.format);i&&t.isString(s)&&(s=i.getKeyValue(s)),o&&(o+=" or "),o+=this._asEquals(n,s,r.dataType)}return o.length&&(o="("+o+")"),o},n.prototype._asEquals=function(e,r,n){var i="",o=t.DataType;return""===r||null==r?(i+=e+" eq null",n==o.String&&(i+=" or "+e+" eq ''")):n==o.Date?i+=e+" ge "+this._asODataValue(r,n)+" and "+e+" lt "+this._asODataValue(t.DateTime.addDays(r,1),n):i+=e+" eq "+this._asODataValue(r,n),"("+i+")"},n.prototype._asODataConditionFilter=function(t){var e=this._asODataCondition(t,t.condition1),r=this._asODataCondition(t,t.condition2);return e&&r?"("+e+(t.and?" and ":" or ")+r+")":e?"("+e+")":r?"("+r+")":null},n.prototype._asODataCondition=function(e,r){var n=e.column,i=n.binding,o=n.dataMap,a=r.value;switch(o&&t.isString(a)&&(a=o.getKeyValue(a)),a=this._asODataValue(a,e.column.dataType),r.operator){case 0:return i+" eq "+a;case 1:return i+" ne "+a;case 2:return i+" gt "+a;case 3:return i+" ge "+a;case 4:return i+" lt "+a;case 5:return i+" le "+a;case 6:return"startswith("+i+","+a+")";case 7:return"endswith("+i+","+a+")";case 8:return this._odv>=4?"contains("+i+","+a+")":"substringof("+a.toLowerCase()+", tolower("+i+"))";case 9:return this._odv>=4?"not contains("+i+","+a+")":"not substringof("+a.toLowerCase()+", tolower("+i+"))"}},n.prototype._asODataValue=function(e,r){return t.isDate(e)?(this._showDatesAsGmt&&(e=new Date(e.getTime()-6e4*e.getTimezoneOffset())),e=e.toJSON(),this._odv<4&&(e="datetime'"+e.substr(0,10)+"'"),e):t.isString(e)?"'"+e.replace(/'/g,"''")+"'":null!=e?e.toString():r==t.DataType.String?"''":null},n.prototype._error=function(e){if(this.onError(new t.RequestErrorEventArgs(e)))throw this._getData(),"HttpRequest Error: "+e.status+" "+e.statusText},n.prototype._encodeBatch=function(t,e){var r=[],n="changeset-"+e;return r.push("--"+e,"Content-Type: multipart/mixed; boundary="+n,""),t.forEach(function(t,e){r.push("--"+n,"Content-Type: application/http","Content-Transfer-Encoding: binary","Content-ID: "+e,"",t.method.toUpperCase()+" "+t.url+" HTTP/1.1","Host: "+location.host),t.data&&r.push("Content-Type: application/json","",JSON.stringify(t.data)),r.push("")}),r.push("--"+n+"--",""),r.push("--"+e+"--",""),r.join("\r\n")},n._odvCache={},n._rxDate=/^\d{4}\-\d{2}\-\d{2}T\d{2}\:\d{2}\:\d{2}|\/Date\([\d\-]*?\)/,n}(t.collections.CollectionView);e.ODataCollectionView=r}(t.odata||(t.odata={}))}(wijmo||(wijmo={})),function(t){!function(e){"use strict";var r=100,n=function(e){function n(n,i,o){var a=e.call(this,n,i,{pageOnServer:!0,sortOnServer:!0,canGroup:!1})||this;return a._start=0,a._end=100,a._refresh=!1,t.copy(a,o),a._data=[],a.sourceCollection=a._data,a._firstLoad=!0,a.setWindow(0,r),a}return __extends(n,e),n.prototype.setWindow=function(t,e){var r=this;this._toSetWindow&&clearTimeout(this._toSetWindow),this._toSetWindow=setTimeout(function(){r._toSetWindow=null,r._performSetWindow(t,e)},50)},Object.defineProperty(n.prototype,"requestCanceled",{get:function(){return this._requestCanceled||(this._requestCanceled=new t.Event),this._requestCanceled},enumerable:!0,configurable:!0}),n.prototype.onRequestCanceled=function(t){this.requestCanceled.raise(this,t)},Object.defineProperty(n.prototype,"pageOnServer",{get:function(){return!0},set:function(t){if(!t)throw"ODataVirtualCollectionView requires pageOnServer = true."},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"sortOnServer",{get:function(){return!0},set:function(e){if(!t.asBoolean(e))throw"ODataVirtualCollectionView requires sortOnServer = true."},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"filterOnServer",{get:function(){return!0},set:function(e){if(!t.asBoolean(e))throw"ODataVirtualCollectionView requires filterOnServer = true."},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"canGroup",{get:function(){return this._canGroup},set:function(e){if(t.asBoolean(e))throw"ODataVirtualCollectionView does not support grouping."},enumerable:!0,configurable:!0}),n.prototype._performRefresh=function(){this.isLoading||(this._refresh=!0),e.prototype._performRefresh.call(this)},n.prototype._getReadParams=function(t){var n=e.prototype._getReadParams.call(this,t);return t||(n.$skip=this._start||0,n.$top=Math.max(this._end-this._start+1,this.pageSize,r)),n},n.prototype._storeItems=function(t,e){var r=this;if(this._refresh||this._data.length!=this.totalItemCount){this._data.length=this.totalItemCount;for(var n=0;n<this._data.length;n++)this._data[n]=new i(n);this._refresh=!1}e||(this._loadOffset=0);var o=this._loadOffset+(this._start||0);for(n=0;n<t.length;n++)this._data[n+o]=t[n];this._loadOffset+=t.length,setTimeout(function(){r._firstLoad&&r.currentPosition<0&&t.length&&r.moveCurrentToFirst(),r._firstLoad=!1})},n.prototype._performSetWindow=function(e,r){var n=this;this._pendingRequest&&(this._pendingRequest.abort(),this._pendingRequest=null,this.onRequestCanceled()),e=t.asInt(e),r=t.asInt(r),t.assert(e<=r,"start must be <= end.");var o=this._data;this._start=this._end=e;for(var a=e;a<=r&&a<o.length;a++)if(o[a]instanceof i){this._start=a;break}for(a=r;a>=this._start&&a<o.length;a--)if(o[a]instanceof i){this._end=a;break}(this._start!=this._end||o[this._start]instanceof i)&&this._getData(null,function(t){n._pendingRequest=t})},n}(e.ODataCollectionView);e.ODataVirtualCollectionView=n;var i=function(){return function(t){this._id=t}}()}(t.odata||(t.odata={}))}(wijmo||(wijmo={})),function(t){t.odata||(t.odata={}),t._registerModule("wijmo.odata",t.odata)}(wijmo||(wijmo={}));
var __extends=this&&this.__extends||function(){var n=function(t,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r(){this.constructor=t}if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(t,i);t.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}}(),c1;(function(n){var t;(function(t){var i;(function(i){var o=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t.cast=function(n){return n},t}(wijmo.EventArgs),u,f,s,e,h,r,c;i.QueryEventArgs=o;u=function(n){function t(t){var i=n.call(this)||this;return i._result=t,i}return __extends(t,n),t.cast=function(n){return n},Object.defineProperty(t.prototype,"result",{get:function(){return this._result},enumerable:!1,configurable:!0}),t}(wijmo.EventArgs);i.QueryCompleteEventArgs=u;f=function(n){function t(t){var i=n.call(this)||this;return i._errors=t,i}return __extends(t,n),t.cast=function(n){return n},Object.defineProperty(t.prototype,"errors",{get:function(){return this._errors},enumerable:!1,configurable:!0}),t}(wijmo.CancelEventArgs);i.ErrorEventArgs=f;s=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(wijmo.collections.CollectionView);e=function(i){function e(n){var t=i.call(this)||this,r;return t._disableServerRead=!1,t._batchEdit=!1,t._queryList=[],t._errors=[],t._skip=0,t._top=0,t._isInitializing=!1,t._isFillingData=!1,t._query=0,t._isUpdatingItem=!1,t._isGrouping=!1,t._needMoveCurrentToFirst=!0,t._nullCount=0,t.newItems=[],t._reservedItems=[],t._flexGridSearchs=[],t._refreshOnEdit=!0,t._frozenRows=0,t._isPasting=!1,t.queryComplete=new wijmo.Event,t.beginQuery=new wijmo.Event,t.endQuery=new wijmo.Event,t.queryData=new wijmo.Event,t.error=new wijmo.Event,t.reponseTextParsing=new wijmo.Event,t.requestDataStringifying=new wijmo.Event,r=t,r._requestParams={},r._applySettings(n),r._batchEdit&&(r.trackChanges=!0),r.groupDescriptions.collectionChanged.removeAllHandlers(),r.groupDescriptions.collectionChanged.addHandler(function(){for(var i,t=r.groupDescriptions,n=0;n<t.length;n++)if(i=wijmo.tryCast(t[n],wijmo.collections.GroupDescription),!i)throw"groupDescriptions array must contain GroupDescription objects.";r.canGroup&&(r._isGrouping=!0,r._commitAndRefresh(),r._isGrouping=!1)}),t}return __extends(e,i),e.cast=function(n){return n},e.prototype.onSourceCollectionChanged=function(n){this._dataInfo=null;this._nullCount=0;i.prototype.onSourceCollectionChanged.call(this,n)},e.prototype._ensureDataInfo=function(n){if(n&&n.length!==0&&(!this._dataInfo||this._nullCount>0)){this._dataInfo||(this._dataInfo={},this._nullCount=0);var t=0,i=n[t++];for(this._updateObjectInfo(i,this._dataInfo);this._nullCount>0&&t<n.length;)this._updateDataInfoForNull(this._dataInfo,n[t++])}},e.prototype._updateDataInfoForNull=function(n,t){var i,u,r;for(i in n)u=n[i],r=t[i],u==null?r!=null&&(this._nullCount--,this._updateDataInfo(n,i,r)):wijmo.isObject(u)&&this._updateDataInfoForNull(n[i],r)},e.prototype._updateDataInfo=function(n,i,r){r==null?(n[i]=null,this._nullCount++):wijmo.isDate(r)?n[i]=r.dateKind||t.DateKind.Unspecified:wijmo.isObject(r)?["_rowInfo","_bnd"].indexOf(i)>=0?n[i]=r:(n[i]={},this._updateObjectInfo(r,n[i])):typeof n[i]!="undefined"&&delete n[i]},e.prototype._updateObjectInfo=function(n,t){for(var i in n)this._updateDataInfo(t,i,n[i])},e._processRequestRowData=function(t,i){var r,u;for(r in t)(u=t[r],u!=null)&&(wijmo.isDate(u)?typeof u.dateKind=="undefined"&&(t[r].dateKind=i==null||i[r]==null?n.mvc.DateKind.Unspecified:i[r]):wijmo.isObject(u)&&e._processRequestRowData(u,i[r]))},e.prototype.onQueryComplete=function(n){this.queryComplete.raise(this,n)},e.prototype.onBeginQuery=function(){this._query++;this.beginQuery.raise(this)},e.prototype.onEndQuery=function(){this._query--;this.endQuery.raise(this)},e.prototype._isQuerying=function(){return this._query>0},e.prototype.onQueryData=function(n){this.queryData.raise(this,n)},e.prototype.onError=function(n){return this.error.raise(this,n),!n.cancel},e.prototype.onReponseTextParsing=function(n){return this.reponseTextParsing.raise(this,n),n.cancel},e.prototype.onRequestDataStringifying=function(n){return this.requestDataStringifying.raise(this,n),n.cancel},e.prototype.requireInitData=function(){var n=this;n._isDynamicalLoadingEnabled()?n._sendRequest(n._readActionUrl,{top:n._initialItemsCount}):n._sendRequest(n._readActionUrl)},e.prototype._applySettings=function(n){var t=this,r,i;n&&(t._initialize(function(){n.getError&&(t.getError=n.getError);t._disableServerRead=!!n.disableServerRead;t._pgIdx=n.pageIndex||0;t.pageSize=n.pageSize||0;n.sortDescriptions&&n.sortDescriptions.forEach(function(n){return t.sortDescriptions.push(new wijmo.collections.SortDescription(n.property,n.ascending))});n.groupDescriptions&&n.groupDescriptions.forEach(function(n){i=n.clientClass;r=i?new i(n.propertyName,n.converter):new wijmo.collections.PropertyGroupDescription(n.propertyName,n.converter);t.groupDescriptions.push(r)});n.calculatedFields&&(t.calculatedFields=t.calculatedFields||{},t.calculatedFields&&n.calculatedFields.forEach(function(n){t.calculatedFields[n.name]=n.expression}));typeof n.refreshOnEdit!="undefined"&&(t._refreshOnEdit=n.refreshOnEdit);t._readActionUrl=n.readActionUrl||"";t._createActionUrl=n.createActionUrl||"";t._updateActionUrl=n.updateActionUrl||"";t._deleteActionUrl=n.deleteActionUrl||"";t._batchEditActionUrl=n.batchEditActionUrl||"";t._batchEdit=!!n.batchEdit;t._initialItemsCount=n.initialItemsCount;t._initEventsOpts(n);n.newItemCreator&&(t.newItemCreator=n.newItemCreator);!t._disableServerRead&&t.pageSize>0&&!t._readActionUrl&&n.sourceCollection&&n.sourceCollection.length>t.pageSize&&(t._disableServerRead=!0);n.sortNullsFirst&&(t.sortNullsFirst=n.sortNullsFirst);n.hasOwnProperty("sortNulls")&&(t.sortNulls=n.sortNulls)}),t.requireInitData(n))},e.prototype._initEventsOpts=function(n){var t,i;for(t in n)i=n[t],this[t]instanceof wijmo.Event&&i&&wijmo.isFunction(i)&&this[t].addHandler(i)},e.prototype._initialize=function(n){try{this._isInitializing=!0;n()}finally{this._isInitializing=!1}},e.prototype.forceRefresh=function(){this._requestRead()},e.prototype.refresh=function(){this._isInitializing||i.prototype.refresh.call(this)},e.prototype._commitAndRefresh=function(){this._isInitializing||i.prototype._commitAndRefresh.call(this)},e.prototype._isSearching=function(){var n=!1;return this._flexGridSearchs&&this._flexGridSearchs.forEach(function(t){(t.text||t._lastText)&&(t._lastText=t.text,n=!0)}),n},e.prototype._performRefresh=function(){var n=this,r=n.canFilter,u=n.canSort,t=n._disableServerRead,f=n.filters;if(t||!n.beginQuery||n._isUpdatingItem||n._isPasting||n._isGrouping||n._isFillingData){n._isSearching();t||(n.canFilter=!1,n._filters=new wijmo.collections.ObservableArray,n.canSort=!1);i.prototype._performRefresh.call(this);t||(n.canFilter=r,n._filters=f,n.canSort=u);return}n._requestRead()},e.prototype.onCollectionChanged=function(n){(!this._isQuerying()||n&&n.action==wijmo.collections.NotifyCollectionChangedAction.Add)&&(n!=null&&n.action==wijmo.collections.NotifyCollectionChangedAction.Add&&(this.newItems.push(n.item),this._dataInfo||this._ensureDataInfo(n.item)),i.prototype.onCollectionChanged.call(this,n))},e.prototype._getPageView=function(){var n=this;return n._disableServerRead?i.prototype._getPageView.call(this):n._view},Object.defineProperty(e.prototype,"pageCount",{get:function(){var n=this;return n.pageSize?Math.ceil(n.totalItemCount/n.pageSize):1},enumerable:!1,configurable:!0}),e.prototype.onPageChanging=function(n){var t=i.prototype.onPageChanging.call(this,n);return this._disableServerRead?t:(t&&(this._pgIdx=n.newPageIndex,this._idx=0,this._requestRead(),this.onPageChanged()),!1)},e.prototype.commitNew=function(){var n=this;n.currentAddItem&&n._createActionUrl&&n._requestWrite(r.Create,[n.currentAddItem]);n._isUpdatingItem=!0;i.prototype.commitNew.call(this);n._isUpdatingItem=!1},e.prototype.commitEdit=function(){var t=this,e=t.currentEditItem&&t._sameContent(t.currentEditItem,t._edtClone),f,u;!e&&t._updateActionUrl&&(f=t.currentEditItem&&t.newItems.indexOf(t.currentEditItem)==-1&&t.items&&t.items.indexOf(t.currentEditItem)>-1,f&&(t._requestWrite(r.Update,[t.currentEditItem]),u=t._srcCv,u instanceof n.mvc.collections.RemoteCollectionView&&u._requestWrite(r.Update,[u._edtItem])));t._isUpdatingItem=!0;i.prototype.commitEdit.call(this);t._isUpdatingItem=!1},e.prototype.remove=function(n){var t=this,u=this.sourceCollection.indexOf(n);u<0||(t._deleteActionUrl&&t._requestWrite(r.Delete,[n]),t._isUpdatingItem=!0,i.prototype.remove.call(this,n),t._isUpdatingItem=!1)},e.prototype.commit=function(){var n=this;n._batchEdit&&(n.commitEdit(),n.commitNew(),(n.itemsAdded&&n.itemsAdded.length||n.itemsRemoved&&n.itemsRemoved.length||n.itemsEdited&&n.itemsEdited.length)&&n._batchEditActionUrl&&n._requestWrite(r.BatchEdit))},e.prototype._processErrors=function(n){var t=this;n.success||this._errors.push(n.error);n.operatedItemResults&&n.operatedItemResults.forEach(function(n){n.success||t._errors.push(n.error)})},e.prototype._showErrors=function(){var n=this;n._errors&&n._errors.length&&n.onError(new f(n._errors))&&alert(n._errors.join(","))},e.prototype._success=function(n){var t=this,i,r;if(!n){t.onEndQuery();return}if(i=n.items||[],r=n.skip||0,this._ensureDataInfo(i),t._processErrors(n),t.onEndQuery(),t._queryList&&t._queryList.length){t._sendQuery();return}t._showErrors();t._reset();t._disableServerRead||(t._pgIdx=n.pageIndex||0);t._fillData(i,r,n.totalItemCount);t.onQueryComplete(new u(n));t.newItems=[]},e.prototype._isPartialDataLoaded=function(){return this._isDynamicalLoadingEnabled()||this.pageSize>0},e.prototype._isDynamicalLoadingEnabled=function(){return!this.pageSize&&!this._disableServerRead&&this._initialItemsCount!=null},e.prototype._isDisableServerRead=function(){return this._disableServerRead},e.prototype._fillData=function(n,t,i){var r=this,u=r._isDynamicalLoadingEnabled();n=n||[];t=t||0;r._totalItemCount=i||0;try{r._isFillingData=!0;r.deferUpdate(function(){u?(r.sourceCollection.splice(r._frozenRows,r.sourceCollection.length),r._skip=t,r._top=n.length,r.sourceCollection.length=r._totalItemCount,n.forEach(function(n,i){var u=i+t;if(u>=r._totalItemCount||u<0)throw"The index of item is out of range.";t>0&&i==0&&r._frozenRows===0&&(r.sourceCollection[i]=n);r.sourceCollection[u]=n}),r._reservedItems&&r._reservedItems.length&&r._reservedItems.forEach(function(n){n.index>=0&&n.index<r.sourceCollection.length&&r.sourceCollection[n.index]==null&&(r.sourceCollection[n.index]=n.data)})):(r.sourceCollection.splice(0,r.sourceCollection.length),n.forEach(function(n){r.sourceCollection.push(n)}));r._needMoveCurrentToFirst&&r.currentPosition<0&&(r.moveCurrentToFirst(),r._needMoveCurrentToFirst=!1);r._calcFields&&(r._src=wijmo._getCalculatedArray(r._srcRaw,r._calcFields));r._pendingRefresh=!0})}finally{r._isFillingData=!1}},e.prototype._clearReservedItems=function(){this._reservedItems.length=0},e.prototype._addReservedItem=function(n){var t=this.sourceCollection[n];this._reservedItems.push({index:n,data:t})},e.prototype._reset=function(){var n=this;n.trackChanges&&n.clearChanges();n._newItem=null;n._edtItem=null;n._edtClone=null;n._errors=[]},e.prototype._fail=function(n,t,i){this.onEndQuery();var r="("+t+") "+i;this.onQueryComplete(new u({success:!1,error:r}));throw r;},e.prototype._updateAjaxSettings=function(){this._updateSortAjaxSettings();this._upatePageAjaxSettings();this._updateQueryAjaxSettings()},e.prototype._upatePageAjaxSettings=function(){var n=this,t;n._requestParams||(n._requestParams={});t=n._requestParams;!n._disableServerRead&&n.pageSize?(t.pageIndex=n.pageIndex,t.pageSize=n.pageSize):(delete t.pageIndex,delete t.pageSize)},e.prototype._updateSortAjaxSettings=function(){var n=this,t;n._requestParams||(n._requestParams={});t=n._requestParams;n.canSort&&!n._disableServerRead&&n.sortDescriptions&&n.sortDescriptions.length?t.sortDescriptions=n._getSortDesByExpression():delete t.sortDescriptions},e.prototype._getSortDesByExpression=function(){for(var i=this.sortDescriptions,r=[],n=0,t;n<i.length;n++)t=i[n],r.push({property:t.property,ascending:t.ascending,sortNullsFirst:this.sortNullsFirst,sortNulls:this.sortNulls});return r},e.prototype._updateQueryAjaxSettings=function(){var n=this,t;n._requestParams||(n._requestParams={});t=n._requestParams;n._collectExtraRequestData(t);n._isDynamicalLoadingEnabled()?(t.skip=n._skip,t.top=n._top?n._top:n._initialItemsCount):(delete t.skip,delete t.top)},e.prototype._collectExtraRequestData=function(n){var t=new o;this.onQueryData(t);t.extraRequestData=t.extraRequestData||{};this._flexGridSearchs&&this._flexGridSearchs.forEach(function(n){n.text&&n._rxSrch&&(t.extraRequestData.FlexGridSearch=[JSON.stringify(n._g._getBindingColumns().map(function(n){return{index:n.index,binding:n.binding,format:n.format,visible:n.visible}})),n._rxSrch.ignoreCase,n._rxSrch.source,n._searchAllColumns])});n.extraRequestData=t.extraRequestData},e.prototype._ajax=function(t){n.mvc.Utils.ajax(t)},e.prototype.getColumnData=function(t,i,r){var f=this,u,e;if(f._requestParams||(f._requestParams={}),u=f._requestParams,f._collectExtraRequestData(u),u=n.mvc.Utils.extend({},u,{column:t,distinct:i}),u.extraRequestData.FlexGridFilter)for(e in u.extraRequestData.FlexGridFilter)if(u.extraRequestData.FlexGridFilter[e].column==t){u.extraRequestData.FlexGridFilter.splice(e,1);break}f._sendQueryWithoutUpdate(r,u)},e.prototype.getAllData=function(t){var i=this,r;i._updateAjaxSettings();i._requestParams.pageIndex=0;i._requestParams.pageSize=i.totalItemCount;r=n.mvc.Utils.extend({},i._requestParams);i._sendQueryWithoutUpdate(t,r)},e.prototype._sendQueryWithoutUpdate=function(n,t){var i=this,r={};r.url=i._readActionUrl;t&&(r.data=t);r.responseTextParsing=this.onReponseTextParsing.bind(this);r.requestDataStringifying=this.onRequestDataStringifying.bind(this);n&&(r.success=function(t){i._processErrors(t);i.onEndQuery();i._showErrors();n.call(i,t)});i._queryList.push(r);i._sendQuery(!1)},e.prototype._sendRequest=function(t,i,r){var u=this,f={};u._updateAjaxSettings();i=i==null?n.mvc.Utils.extend({},u._requestParams):n.mvc.Utils.extend({},u._requestParams,i);f.url=t;i&&(f.data=i);r&&(f.success=function(n){r.call(u,n)});f.responseTextParsing=this.onReponseTextParsing.bind(this);f.requestDataStringifying=this.onRequestDataStringifying.bind(this);u._queryList.push(f);u._sendQuery()},e.prototype._sendQuery=function(t){t===void 0&&(t=!0);var i=this,r,u;i._isQuerying()||i._queryList&&i._queryList.length&&(i.onBeginQuery(),r=i._queryList.shift(),r=n.mvc.Utils.extend({},{async:!0,type:"POST",dataType:"json",postType:"json",error:i._fail.bind(i)},r),u=r.success,r.success=function(n){t&&i._success(n);u&&u.call(i,n)},i._ajax(r))},e.prototype.requestItems=function(n,t){var i=this,u,r,f;i._isDynamicalLoadingEnabled()&&((u=Math.max(0,t-n+1),r=i._caculateRangeRow(n,t,u),f=i._skip+i._top-1,i._skip<=r.start&&f>=r.end)||(r=i._caculateRangeRow(r.start,r.end,u),i._skip=r.start,i._top=Math.max(0,r.end-r.start+1),i._sendRequest(i._readActionUrl)))},e.prototype._caculateRangeRow=function(n,t,i){return n=Math.max(0,n-i),t=t+i,t>=this.totalItemCount&&(t=this.totalItemCount-1),{start:n,end:t}},e.prototype._requestRead=function(){var n=this;n._batchEdit&&n.commit();n._sendRequest(n._readActionUrl)},e.prototype._getWriteUrl=function(n){return this["_"+this._toCamelCase(r[n])+"ActionUrl"]||""},e.prototype._toCamelCase=function(n){var t;return n?(t=n.charAt(0).toLowerCase(),n.length>1&&(t=t+n.substr(1)),t):n},e.prototype._updateOperatingItems=function(n,t,i){var u=this,r;return!i||!i.length?n:(r=i.map(function(n){return e._processRequestRowData(n,u._dataInfo),n}),t?(n||(n={}),n[t]=r):n=r,n)},e.prototype.requestWrite=function(n,t){if(this._getWriteUrl(n))return this._requestWrite(n,t)},e.prototype._requestWrite=function(n,t){var i=this,f,e,u;if(n===r.BatchEdit)u=i._updateOperatingItems(u,"itemsCreated",i.itemsAdded),u=i._updateOperatingItems(u,"itemsDeleted",i.itemsRemoved),u=i._updateOperatingItems(u,"itemsUpdated",i.itemsEdited);else{if(i._batchEdit)return;u=i._updateOperatingItems(u,null,t)}u&&(e={operatingItems:u,command:n});f=i._getWriteUrl(n);i._sendRequest(f,e)},Object.defineProperty(e.prototype,"totalItemCount",{get:function(){var n=this;return n._disableServerRead?n._view?n._view.length:0:n._totalItemCount||0},enumerable:!1,configurable:!0}),e.prototype._isRemoteMode=function(){return!!this._readActionUrl},e}(s);i.RemoteCollectionView=e;h=function(n){function i(t){var i=n.call(this,t)||this;return i._uniqueId=t.uniqueId,i}return __extends(i,n),i.cast=function(n){return n},i.prototype.requireInitData=function(i){var u=this,r;if(i.readActionUrl){n.prototype.requireInitData.call(this,i);return}r=i.sourceCollection||i.items||[];wijmo.isString(r)&&(r=t.Utils.jsonParse(r,this.onReponseTextParsing.bind(this)));this._ensureDataInfo(r);u._fillData(r,0,i.totalItemCount)},i.prototype.getCallbackManager=function(){var n=this;return n._cbk||(n._cbk=new t.CallbackManager(n._uniqueId))},i.prototype._ajax=function(t){if(t.url){n.prototype._ajax.call(this,t);return}this.getCallbackManager().doCallback(t.data,t.success,t.error,t.requestDataStringifying,t.responseTextParsing)},i}(e);i.CallbackCollectionView=h,function(n){n[n.Read=0]="Read";n[n.Create=1]="Create";n[n.Update=2]="Update";n[n.Delete=3]="Delete";n[n.BatchEdit=4]="BatchEdit"}(r=i.CommandType||(i.CommandType={})),function(n){n[n.Natural=0]="Natural";n[n.First=1]="First";n[n.Last=2]="Last"}(c=i.SortNulls||(i.SortNulls={}))})(i=t.collections||(t.collections={}))})(t=n.mvc||(n.mvc={}))})(c1||(c1={}));
var __extends=this&&this.__extends||function(){var n=function(t,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r(){this.constructor=t}if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(t,i);t.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}}(),c1;(function(n){var t;(function(n){var t;(function(n){var r=function(n){function i(t){var u=this,i,r;return t&&t.hasOwnProperty("options")&&(i=t.options,i&&i.hasOwnProperty("pageIndex")&&(r=i.pageIndex,delete i.pageIndex,i.pageIndex=r)),n.call(this,t.url,t.tableName,t.options)||this}return __extends(i,n),i.prototype._copy=function(i,r){return t._copy(i,r,this)||n.prototype._copy.call(this,i,r)},i}(wijmo.odata.ODataCollectionView),i,t;n.ODataCollectionView=r;i=function(n){function i(t){return n.call(this,t.url,t.tableName,t.options)||this}return __extends(i,n),i.prototype._copy=function(i,r){return t._copy(i,r,this)||n.prototype._copy.call(this,i,r)},i}(wijmo.odata.ODataVirtualCollectionView);n.ODataVirtualCollectionView=i;t=function(){function n(){}return n._copy=function(n,t,i){return n=="sortDescriptions"?(t&&t.forEach(function(n){return i.sortDescriptions.push(new wijmo.collections.SortDescription(n.property,n.ascending))}),!0):n=="groupDescriptions"?(t&&t.forEach(function(n){var t=n.clientClass,r=t?new t(n.propertyName,n.converter):new wijmo.collections.PropertyGroupDescription(n.propertyName,n.converter);i.groupDescriptions.push(r)}),!0):n=="pageIndex"?(i._pgIdx=Math.max(0,t),!0):!1},n._getCtorOptions=function(n){var t="",i="";return n&&(t=t||n.serviceUrl,delete n.serviceUrl,i=i||n.tableName,delete n.tableName),{url:t,tableName:i,options:n}},n}();n._ODataInitializer=t})(t=n.odata||(n.odata={}))})(t=n.mvc||(n.mvc={}))})(c1||(c1={}));
var c1;(function(n){var t;(function(n){var t=function(){function t(i){var r,u,f,e;if(this._symbolList={},this._sections=[],this._scripts=[],this._scriptSnippetsCount=0,u=!1,i!=null){if(f=n.Utils.getType(i),f==="array")r=i[0],u=!!i[1];else if(f==="string")r=i;else throw"Invalid parameter type.";(u?(e=document.getElementById(r),e!=null&&(r=e.innerHTML)):r=t._unwrap(r),n.Utils.isEmptyContent(r))||this._initContents(r)}}return t._unwrap=function(n){var i=n,r=n.indexOf(t.C1_TEMPLATE_START_TAG),u=n.lastIndexOf(t.C1_TEMPLATE_END_TAG);return r!=-1&&u!=-1&&(i=n.substring(r+t.C1_TEMPLATE_START_TAG.length,u)),i},t.prototype._initContents=function(n){var i=n,e=t.C1_TEMPLATE_START_TAG.length,o=t.C1_TEMPLATE_END_TAG.length,u=0,f=0,r;for(this._innerTemplatesContents=[],this._content="";i.length;){if(r=t._getFirstInnerTemplatePosition(i),!r){this._content+=i;return}this._content+=i.substring(0,r.startIndex);this._content+="<"+t.C1_INNER_TEMPLATE_PLACEHOLDER+" index="+f.toString()+" />";this._innerTemplatesContents.push(i.substring(r.startIndex+e,r.endIndex));u=r.endIndex+o;i=i.substr(u);f++}},t._getFirstInnerTemplatePosition=function(n){var u=n.indexOf(t.C1_TEMPLATE_START_TAG),i=n.indexOf(t.C1_TEMPLATE_END_TAG),o=t.C1_TEMPLATE_START_TAG.length,s=t.C1_TEMPLATE_END_TAG.length,f,r,e;if(u!=-1&&i!=-1){r=u+o;do{if(e=n.substring(r,i),f=e.indexOf(t.C1_TEMPLATE_START_TAG),f==-1)return{startIndex:u,endIndex:i};r=i+s;i=n.indexOf(t.C1_TEMPLATE_END_TAG,r)}while(i==-1)}},t.prototype.apply=function(n){var i,r;if(n=t._resolveData(n),this._sections.length||this._initialize(),this._scriptSnippetsCount>0)for(r=t.getGlobalContextName(n[t.UID]),window[r]={},i=0;i<this._scriptSnippetsCount;i++)window[r]["n"+i.toString()]=n[t.DATACONTEXT];return this._replaceSymbols(n)},t.prototype.applyTo=function(n,i){var r,u,f;for(i=t._resolveData(i),n.innerHTML=this.apply(i),r=0;r<this._scripts.length;r++)u=this._scripts[r],u.isSrc?t.excuteScriptSrc(u.data):(f=this._replaceSectionSymbols(i,u.data,!0),t.excuteScriptSnippets(f))},t._resolveData=function(n){return n=n||{},n[t.UID]==null&&(n[t.UID]="_"+(new Date).getTime()),n[t.DATACONTEXT]||(n[t.DATACONTEXT]={}),n},t.getGlobalContextName=function(n){return n==null&&(n=""),t.TEMPLATE_PREFIX+n},t.prototype._initialize=function(){this._content=this._content.replace(/<\\\/script>/g,"<\/script>");this._parseSymbols();this._parseContent()},t.prototype._parseSymbols=function(){var u=this._symbolList,r,f,i,e;if(!n.Utils.isEmptyContent(this._content)){if(r=this._content.match(t.ALL_SYMBOL),r!=null&&r.length)for(f=0;f<r.length;f++)i=t.getSymbol(r[f]),i&&typeof u[i.key]=="undefined"&&(u[i.key]={name:i.name,format:i.format});e=t.getSymbolRegStr(t.UID);typeof u[e]=="undefined"&&(u[e]={name:t.UID})}},t.prototype._parseContent=function(){var r=this._content,u=0,i,e,h,o,f,s;if(!n.Utils.isEmptyContent(r)){for(i=t.COMPLETE_SCRIPT.exec(r);i!=null;)this._updateContentSections(!1,i.input.substring(0,i.index)),e=n.Utils.isEmptyContent(i[1]),h=n.Utils.isEmptyContent(i[3]),e&&h?n.Utils.isEmptyContent(i[4])?this._updateContentSections(!1,i[0]):(f=i[2],s=t.processScriptCode(i[4],u),this._scripts.push({isSrc:!1,data:s}),f+=s,f+=i[5],this._updateContentSections(!0,f),u=u+1):(o=i[3],e||(o=i[1]),this._scripts.push({isSrc:!0,data:o}),this._updateContentSections(!1,i[0])),r=i.input.substr(i.index+i[0].length),i=t.COMPLETE_SCRIPT.exec(r);this._updateContentSections(!1,r);this._scriptSnippetsCount=u}},t.prototype._replaceSymbols=function(n){for(var t,r="",i=0;i<this._sections.length;i++)t=this._sections[i],r+=this._replaceSectionSymbols(n,t.data,t.isScriptCode);return r},t.prototype._updateContentSections=function(t,i){var r;n.Utils.isEmptyContent(i)||(r=this._sections.length,r&&!!this._sections[r-1].isScriptCode!=!!!t?this._sections[r-1].data+=i:this._sections.push({isScriptCode:t,data:i}))},t.excuteScriptSrc=function(t){return n.Utils.ajax({url:t,type:"GET",dataType:"script",async:!1})},t.excuteScriptSnippets=function(n){(window.execScript||function(n){window.eval.call(window,n)})(n)},t.getSymbol=function(n){var i=t.ONE_SYMBOL.exec(n);if(i!=null&&i.length&&i[1]!=null)return{key:t.getRegexText(t.getSymbolRegStr(i[1],i[2])),name:i[1],format:i[2]}},t.getRegexText=function(n){return n.replace(/\./g,"\\.").replace(/\[/g,"\\[")},t.getSymbolRegStr=function(t,i){var r;return n.Utils.isEmptyContent(t)?r:(r="{{\\s*?"+t+"\\s*?",i==null||i.length||(r+="\\|\\s*?"+i+"\\s*?"),r+"}}")},t.prototype._replaceSectionSymbols=function(i,r,u){var c=this,f,e,s,h,o;if(u===void 0&&(u=!1),f=r,!n.Utils.isEmptyContent(r)){for(e in this._symbolList)h=new RegExp(e,"g"),o=t.getValue(this._symbolList[e].name,i),s=this._symbolList[e].name===t.UID?String(o):t.getFormattedText(o,this._symbolList[e].format,u),f=f.replace(h,s),f=f.replace(t.C1_INNER_TEMPLATE_PLACEHOLDER_REGEXP,function(n,t){return c._innerTemplatesContents[t]});return f}},t.getFormattedText=function(i,r,u){u===void 0&&(u=!1);var f;return f=n.Utils.isEmptyContent(r)?i:wijmo.Globalize.format(i,r),t.getJsonText(f,!u)},t.getJsonText=function(i,r){r===void 0&&(r=!0);var u=t.c1Stringify(i,r),f=n.Utils.getType(i);return r&&(i===null||typeof i=="undefined")?"":((r&&f==="date"||f==="string")&&(u=u.substr(1,u.length-2),u=u.replace(/\\\\/g,"\\")),u)},t.c1Stringify=function(t,i){var r=this;return i===void 0&&(i=!0),n.Utils.jsonStringify(t,null,function(t,u){if(!i){var f=n.Utils.tryGetDate(r,t,u);if(f)return"new Date('"+f.toJSON()+"')"}return u})},t.getValue=function(n,i){if(i!=null&&n!=null&&n.length)return typeof i[n]!="undefined"?i[n]:i[t.DATACONTEXT]==null?void 0:t.getPropertyValue(n,i[t.DATACONTEXT])},t.getPropertyValue=function(n,t){var r,i,u,f,o,e;if(n&&n in t)return t[n];for(r=n?n.split("."):[],i=0,i=0;i<r.length;i++)u=r[i],f=u.indexOf("["),f>-1&&(o=u.indexOf("]",f),o>-1&&(r[i]=u.substr(0,f),r.splice(++i,0,u.substr(f+1,o))));for(e=t,i=0;i<r.length&&e;i++)e=e[r[i]];return e},t.processScriptCode=function(n,i){var r="window['"+t.getGlobalContextName("{{"+t.UID+"}}")+"']['n"+i+"']";return"(function($data){"+n+";delete "+r+";})("+r+");"},t.DATACONTEXT="dataContext",t.UID="uid",t.TEMPLATE_PREFIX="_c1Template_",t.C1_TEMPLATE_TAG="C1TemplateContent",t.C1_TEMPLATE_START_TAG="<"+t.C1_TEMPLATE_TAG+">",t.C1_TEMPLATE_END_TAG="<\/"+t.C1_TEMPLATE_TAG+">",t.C1_INNER_TEMPLATE_PLACEHOLDER="C1_INNER_TEMPLATE_PLACEHOLDER",t.ALL_SYMBOL=/{{\s*?([^\|\s\}]+?)\s*?(?:\|\s*?(\S+?))?\s*?}}/g,t.ONE_SYMBOL=/{{\s*?([^\|\s\}]+?)\s*?(?:\|\s*?(\S+?))?\s*?}}/,t.COMPLETE_SCRIPT=/<script(?:\s+[^>]+)*?\s+src\s*?=\s*?[\'\"]([^\'|\"]+?)[\'\"]\/>|(<script(?:\s+[^>]+)*?(?:\s+src\s*?=\s*?[\'\"]([^\'|\"]+?)[\'\"])?[^>]*?>)([\s\S]*?)(<\/script>)/,t.reISO=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?):(\d{3})Z$/,t.C1_INNER_TEMPLATE_PLACEHOLDER_REGEXP=new RegExp("<"+t.C1_INNER_TEMPLATE_PLACEHOLDER+" index=(\\d+) />","g"),t}();n.Template=t})(t=n.mvc||(n.mvc={}))})(c1||(c1={}));
var __extends=this&&this.__extends||function(){var n=function(t,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r(){this.constructor=t}if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(t,i);t.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}}(),c1;(function(n){var t;(function(t){function c(n){return n[r]}function f(n,t){n[r]=t}function l(n){return n[u]}function e(n,t){n[u]=t}function o(n,t,i,r,u){var f=n[t];n[t]=function(){var t=arguments,e;return i&&i.apply(u,t),f&&(e=f.apply(n,t)),r&&r.apply(u,t),e}}var r="_c1MvcOptions",u="_c1MvcUniqueId",s,i,h;t._getOptions=c;t._setOptions=f;t._getUniqueId=l;t._setUniqueId=e;t._overrideMethod=o;s=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),Object.defineProperty(t.prototype,"_initializerType",{get:function(){return i},enumerable:!1,configurable:!0}),t}(n._ControlWrapper);t._ControlWrapper=s;i=function(n){function i(){return n!==null&&n.apply(this,arguments)||this}return __extends(i,n),i.prototype._beforeInitializeControl=function(){},i.prototype._afterInitializeControl=function(){},i.prototype._override=function(){var t=this,r=t.control;n.prototype._override.call(this);o(r,i._INITIAL_NAME,function(n,u){i.bindTemplateScope(n,u);f(r,n);e(r,n.uniqueId);delete n.uniqueId;t._beforeInitializeControl(n)},function(n){t._afterInitializeControl(n)})},i.bindTemplateScope=function(n,i){if(!n||!n.templateBindings||!i)return n;for(var r in n.templateBindings)n[r]=t.Template.getPropertyValue(n.templateBindings[r],i);return delete n.templateBindings,n},i._INITIAL_NAME="initialize",i}(n._Initializer);t._Initializer=i;h=function(i){function r(){return i!==null&&i.apply(this,arguments)||this}return __extends(r,i),r.prototype._beforeInitializeControl=function(n){i.prototype._beforeInitializeControl.call(this,n);n&&(this._initEventsOpts(n,["reponseTextParsing","requestDataStringifying"]),wijmo.isString(n.itemsSource)&&(n.itemsSource=t.Utils.jsonParse(n.itemsSource,this._onReponseTextParsing.bind(this))))},r.prototype._initEventsOpts=function(n,t){var i=this;t.forEach(function(t){var r=n[t];i.control[t]instanceof wijmo.Event&&r&&wijmo.isFunction(r)&&i.control[t].addHandler(r);delete n[t]})},r.prototype._onReponseTextParsing=function(n){var t=this.control.reponseTextParsing;if(t&&t instanceof wijmo.Event)return t.raise(this.control,n),n.cancel},r.prototype._onRequestDataStringifying=function(n){var t=this.control.requestDataStringifying;if(t&&t instanceof wijmo.Event)return t.raise(this.control,n),n.cancel},r.prototype._ajax=function(t){var i=t;return i.requestDataStringifying=this._onRequestDataStringifying.bind(this),i.responseTextParsing=this._onReponseTextParsing.bind(this),n.mvc.Utils.ajax(i)},r}(i);t._SourceInitializer=h})(t=n.mvc||(n.mvc={}))})(c1||(c1={}));
var wijmo,__extends=this&&this.__extends||function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}();!function(e){!function(t){"use strict";e._addCultureInfo("InputNumber",{ariaLabels:{incVal:"Increase Value",decVal:"Decrease Value"}});var i=function(t){function i(i,n){var s=t.call(this,i)||this;s._value=null,s._min=null,s._max=null,s._format="",s._step=null,s._showBtn=!0,s._readOnly=!1,s._handleWheel=!0,s._oldText="",s._fromKb=!0,s.textChanged=new e.Event,s.valueChanged=new e.Event;var o=s.hostElement;e.setAttribute(o,"role","spinbutton",!0);var r=s.getTemplate();s.applyTemplate("wj-control wj-content wj-inputnumber",r,{_tbx:"input",_btnUp:"btn-inc",_btnDn:"btn-dec"},"input");var a=e.culture.InputNumber.ariaLabels;e.setAriaLabel(s._btnUp.querySelector("button"),a.incVal),e.setAriaLabel(s._btnDn.querySelector("button"),a.decVal),s._tbx.type.match(/number/i)&&(s.inputType="");var l=s._tbx;l.autocomplete="off",l.spellcheck=!1,s._updateSymbols();var h=s.addEventListener.bind(s);h(l,"keypress",s._keypress.bind(s)),h(l,"keydown",s._keydown.bind(s)),h(l,"input",s._input.bind(s)),h(l,"blur",function(){s.text!=s._oldText&&s._setText(s.text)}),h(l,"paste",function(){s._fromKb=!1}),h(l,"compositionstart",function(){s._composing=!0}),h(l,"compositionend",function(){s._composing=!1,setTimeout(function(){var e=s.text,t=s._oldText,i=s._chrPct;t&&t.indexOf(i)>-1&&e.indexOf(i)<0&&(e+=i),s._setText(e)})});var c=s._clickSpinner.bind(s);return h(s._btnUp,"click",c),h(s._btnDn,"click",c),s._rptUp=new e._ClickRepeater(s._btnUp.querySelector("button")),s._rptDn=new e._ClickRepeater(s._btnDn.querySelector("button")),h(l,"wheel",function(t){if(s.handleWheel&&!t.defaultPrevented&&!t.ctrlKey&&s._isEditable()&&s.containsFocus()){var i=e.clamp(-t.deltaY,-1,1);s._increment((s.step||1)*i),setTimeout(function(){return s.selectAll()}),t.preventDefault()}}),s.value=0,s.isRequired=!0,s.initialize(n),s}return __extends(i,t),Object.defineProperty(i.prototype,"inputElement",{get:function(){return this._tbx},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"inputType",{get:function(){return this._tbx.type},set:function(t){this._tbx.type=e.asString(t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"value",{get:function(){return this._value},set:function(t){if(t!=this._value)if(null==(t=e.asNumber(t,!this.isRequired||null==t&&null==this._value)))this._setText("");else if(!isNaN(t)){var i=e.Globalize.format(t,this.format);this._setText(i)}},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"isRequired",{get:function(){return this._tbx.required},set:function(t){this._tbx.required=e.asBoolean(t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"isReadOnly",{get:function(){return this._readOnly},set:function(t){this._readOnly=e.asBoolean(t),this.inputElement.readOnly=this._readOnly,e.toggleClass(this.hostElement,"wj-state-readonly",this.isReadOnly)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"handleWheel",{get:function(){return this._handleWheel},set:function(t){this._handleWheel=e.asBoolean(t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"min",{get:function(){return this._min},set:function(t){t!=this._min&&(this._min=e.asNumber(t,!0),this._updateAria())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"max",{get:function(){return this._max},set:function(t){t!=this._max&&(this._max=e.asNumber(t,!0),this._updateAria())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"step",{get:function(){return this._step},set:function(t){this._step=e.asNumber(t,!0),this._updateBtn()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"format",{get:function(){return this._format},set:function(t){t!=this.format&&(this._format=e.asString(t),this.refresh())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"text",{get:function(){return this._tbx.value},set:function(e){e!=this.text&&(this._oldText=null,this._setText(e))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"placeholder",{get:function(){return this._tbx.placeholder},set:function(e){this._tbx.placeholder=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"showSpinner",{get:function(){return this._showBtn},set:function(t){this._showBtn=e.asBoolean(t),this._updateBtn()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"repeatButtons",{get:function(){return!this._rptUp.disabled},set:function(t){this._rptUp.disabled=this._rptDn.disabled=!e.asBoolean(t)},enumerable:!0,configurable:!0}),i.prototype.selectAll=function(){var t=this._tbx;e.setSelectionRange(t,0,t.value.length)},i.prototype.clamp=function(t){return e.clamp(t,this.min,this.max)},i.prototype.onTextChanged=function(e){this.textChanged.raise(this,e),this._updateState()},i.prototype.onValueChanged=function(e){this._updateAria(),this.valueChanged.raise(this,e)},i.prototype.dispose=function(){this._rptUp.element=null,this._rptDn.element=null,t.prototype.dispose.call(this)},i.prototype.onGotFocus=function(e){this._oldValue=this.value,this.isTouching||(this._tbx.focus(),this.selectAll()),t.prototype.onGotFocus.call(this,e)},i.prototype.onLostFocus=function(i){if(this._composing&&(this._composing=!1,this._setText(this.text)),this._isEditable()){var n=this.clamp(this.value);if(n==this.value||this.onInvalidInput(new e.CancelEventArgs)){var s=e.Globalize.format(n,this.format);this._setText(s)}}t.prototype.onLostFocus.call(this,i)},i.prototype.refresh=function(i){if(void 0===i&&(i=!0),t.prototype.refresh.call(this,i),this.hostElement){this._updateSymbols();var n=e.Globalize.format(this.value,this.format);this._setText(n)}},i.prototype._isEditable=function(){return!this.isReadOnly&&!this.isDisabled},i.prototype._updateSymbols=function(){var t=e.culture.Globalize.numberFormat,i=e.Globalize._parseNumericFormat(this.format);this._chrDec=t["."]||".",this._chrTho=t[","]||",",this._chrNeg=t["-"]||"-",this._chrPls=t["+"]||"+",this._chrPct=t["%"]||"%",this._chrCur=i.curr||t.currency.symbol||"$",this._fmtSpc=i.spec,this._fmtPrc=i.prec,this._rxSym=new RegExp("^[%+\\-() \\"+this._chrDec+"\\"+this._chrCur+"\\"+this._chrNeg+"\\"+this._chrPls+"\\"+this._chrPct+"]*$"),this._rxNeg=new RegExp("^\\s*(\\-|\\"+this._chrNeg+")|([^e](\\-|\\"+this._chrNeg+")|\\()")},i.prototype._isNumeric=function(e,t){var i=e==this._chrDec||e>="0"&&e<="9",n="x"==this._fmtSpc;return!i&&n&&(i=e>="a"&&e<="f"||e>="A"&&e<="F"),i||t||n||(i=e==this._chrPls||e==this._chrNeg||"("==e||")"==e),i},i.prototype._getInputRange=function(e){for(var t=[0,0],i=this.text,n=!1,s=0;s<i.length;s++)this._isNumeric(i[s],e)&&(n||(t[0]=s,n=!0),t[1]=s+1);return t},i.prototype._flipSign=function(){var e=this._getSelStartDigits();this.value*=-1,this._setSelStartDigits(e)},i.prototype._getSelStartDigits=function(){for(var e=0,t=this._tbx.selectionStart,i=this._tbx.value,n=0;n<i.length&&n<t;n++)this._isNumeric(i[n],!0)&&e++;return e},i.prototype._setSelStartDigits=function(t){for(var i=this._tbx.value,n=0;n<i.length&&t>=0;n++)if(this._isNumeric(i[n],!0)){if(!t){e.setSelectionRange(this._tbx,n);break}t--}else if(!t){e.setSelectionRange(this._tbx,n);break}},i.prototype._increment=function(t){if(t){var i=this.clamp(e.isNumber(this.value)?this.value+t:0),n=e.Globalize.format(i,this.format,!1,!1);this._setText(n)}},i.prototype._updateBtn=function(){var t=this.showSpinner&&!!this.step,i=t;e.setCss([this._btnUp,this._btnDn],{display:t?"":"none"}),e.toggleClass(this.hostElement,"wj-input-show-spinner",t),e.enable(this._btnUp,i),e.enable(this._btnDn,i),this._updateAria()},i.prototype._setText=function(t,i){if(void 0===i&&(i=!1),!this._composing){var n=this._tbx,s=this._chrDec,o=this._rxNeg.test(t),r=this._delKey,a=this.containsFocus();if(t&&this._rxSym.test(t)&&a&&(t=this.isRequired||!r?(o?"-0":"0")+(t.indexOf(s)>-1?s:""):""),this._delKey=!1,r&&0==this.value&&!this.isRequired&&(t=""),!t){if(!this.isRequired)return n.value="",null!=this._value&&(this._value=null,this.onValueChanged()),this._oldText&&(this._oldText=t,this.onTextChanged()),void this._updateBtn();t="0"}var l=t.indexOf(s),h=this._format||(l>-1?"n2":"n0"),c=e.Globalize.parseFloat(t,h);if(isFinite(c)||(c=this.clamp(c)),isNaN(c))this.onInvalidInput(new e.CancelEventArgs)?n.value=this._oldText:this.focus();else{var u=a&&l>-1?2:null,d=e.Globalize.format(c,h,!1,i,u);o&&c>=0&&!r&&(d=this._chrNeg+d),a&&l>-1&&"g"==this._fmtSpc&&0!=this._fmtPrc&&(d=t).indexOf(s)<0&&(d+=s),n.value!=d&&(n.value=d,c=e.Globalize.parseFloat(d,h)),c!=this._value&&(this._value=c,this.onValueChanged()),this.text!=this._oldText&&(this._oldText=this.text,this.onTextChanged()),this._updateBtn(),this._updateState()}}},i.prototype._keypress=function(t){if(!t.defaultPrevented&&!this._composing&&this._isEditable()&&t.charCode&&!t.ctrlKey&&!t.metaKey&&t.keyCode!=e.Key.Enter){var i=this._tbx,n=String.fromCharCode(t.charCode);if(this._isNumeric(n,!1)){var s=i.maxLength;if(s>-1&&i.value.length>=s&&i.selectionEnd==i.selectionStart)return void t.preventDefault();var o=this._getInputRange(!0),r=i.selectionStart,a=i.selectionEnd;if(r<o[0]&&a<i.value.length&&(a=Math.max(a,o[0]),e.setSelectionRange(i,o[0],a)),r>=o[1]){var l=null!=this._fmtPrc?this._fmtPrc:2,h=i.value.indexOf(this._chrDec);h>-1&&r-h>l&&t.preventDefault()}}else t.preventDefault();switch(n){case"-":case this._chrNeg:this.clamp(-1)>=0?this.value<0&&this._flipSign():this.value&&i.selectionStart==i.selectionEnd?this._flipSign():this.clamp(-1)<0&&(i.value=this._chrNeg,e.setSelectionRange(i,1)),t.preventDefault();break;case"+":case this._chrPls:this.value<0&&this._flipSign(),t.preventDefault();break;case".":case this._chrDec:if(0==this._fmtPrc)t.preventDefault();else{var c=i.value.indexOf(this._chrDec);c>-1&&(i.selectionStart<=c&&c++,e.setSelectionRange(i,c),t.preventDefault())}}if(!t.defaultPrevented&&e.isIE()){var u=i.value;(r=i.selectionStart)==(a=i.selectionEnd)&&(i.value=u.substr(0,r)+n+u.substr(a),e.setSelectionRange(i,r+1),t.preventDefault(),this._input())}}},i.prototype._keydown=function(t){var i=this;if(this._delKey=!1,!t.defaultPrevented&&!this._composing&&!e.hasClass(this._tbx,"wj-grid-ime")){var n=this._tbx,s=n.value,o=n.selectionStart,r=n.selectionEnd;switch(t.keyCode){case 65:t.ctrlKey&&(setTimeout(function(){i.selectAll()}),t.preventDefault());break;case e.Key.Up:case e.Key.Down:this.step&&this._isEditable()&&(this._increment(this.step*(t.keyCode==e.Key.Up?1:-1)),setTimeout(function(){i.selectAll()}),t.preventDefault());break;case e.Key.Back:if(this._delKey=!0,r-o<2&&this._isEditable()){var a=s[r-1];a!=this._chrDec&&a!=this._chrPct&&a!=this._chrTho&&")"!=a||(setTimeout(function(){r=a==i._chrPct?i._getInputRange(!0)[1]:r-1,e.setSelectionRange(n,r)}),t.preventDefault())}break;case e.Key.Delete:if(this._delKey=!0,r-o<2&&this._isEditable())if("0"==s&&1==o)e.setSelectionRange(n,0);else{var l=s[o];l!=this._chrDec&&l!=this._chrPct||(setTimeout(function(){e.setSelectionRange(n,o+1)}),t.preventDefault())}break;case e.Key.Escape:this.value=this._oldValue,this.selectAll()}}},i.prototype._input=function(){var t=this;this._composing?this._fromKb=!0:setTimeout(function(){var i=t._tbx,n=i.value,s=n.indexOf(t._chrDec),o=i.selectionStart,r=t._getSelStartDigits();if("p"==t._fmtSpc&&n.length&&n.indexOf(t._chrPct)<0&&(n+=t._chrPct),t._setText(n,t._fromKb),t._fromKb=!0,t.containsFocus()){var a=i.value,l=a.indexOf(t._chrDec),h=t._getInputRange(!0);if(n==t._chrNeg+t._chrDec&&l>-1)return void e.setSelectionRange(i,l+1);if(n[0]==t._chrNeg&&a[0]!=t._chrNeg)return void(1==a.length?e.setSelectionRange(i,1):t._setSelStartDigits(r));n?n==t._chrDec&&l>-1?o=l+1:o<=s&&l>-1||s<0&&l<0?o+=a.length-n.length:s<0&&l>-1&&(o=l):o=l>-1?l:h[1],o=e.clamp(o,h[0],h[1]),e.setSelectionRange(i,o)}})},i.prototype._clickSpinner=function(t){var i=this;!t.defaultPrevented&&this._isEditable()&&this.step&&(this._increment(this.step*(e.contains(this._btnUp,t.target)?1:-1)),this.isTouching||setTimeout(function(){return i.selectAll()}))},i.prototype._updateAria=function(){var t=this.hostElement;t&&(e.setAttribute(t,"aria-valuemin",this.min),e.setAttribute(t,"aria-valuemax",this.max),e.setAttribute(t,"aria-valuenow",this.value),e.enable(this._btnDn,null==this.min||this.value>this.min),e.enable(this._btnUp,null==this.max||this.value<this.max))},i.controlTemplate='<div class="wj-template"><div class="wj-input"><div class="wj-input-group"><span wj-part="btn-dec" class="wj-input-group-btn" tabindex="-1"><button class="wj-btn wj-btn-default" tabindex="-1">-</button></span><input type="tel" wj-part="input" class="wj-form-control wj-numeric"/><span wj-part="btn-inc" class="wj-input-group-btn" tabindex="-1"><button class="wj-btn wj-btn-default" tabindex="-1">+</button></span></div></div></div>',i}(e.Control);t.InputNumber=i}(e.input||(e.input={}))}(wijmo||(wijmo={})),function(e){!function(t){"use strict";var i=function(t){function i(i,n){var s=t.call(this,i)||this;s.valueChanged=new e.Event;var o=s.getTemplate();if(s.applyTemplate("wj-control wj-content wj-inputmask",o,{_tbx:"input"},"input"),"INPUT"==s._orgTag){var r=s._tbx.getAttribute("value");r&&(s.value=r)}return s._msk=new e._MaskProvider(s._tbx),s.isRequired=!0,s.initialize(n),s.addEventListener(s._tbx,"input",function(){s.onValueChanged()}),s.addEventListener(s._tbx,"blur",s._commitText.bind(s)),s.addEventListener(s._tbx,"keydown",function(t){t.keyCode==e.Key.Enter&&s._commitText()}),s}return __extends(i,t),Object.defineProperty(i.prototype,"inputElement",{get:function(){return this._tbx},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"inputType",{get:function(){return this._tbx.type},set:function(t){this._tbx.type=e.asString(t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"value",{get:function(){return this._tbx.value},set:function(t){t!=this.value&&(this._tbx.value=e.asString(t),t=this._msk._applyMask(),this._tbx.value=t,this.onValueChanged())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"rawValue",{get:function(){return this._msk.getRawValue()},set:function(t){t!=this.rawValue&&(this.value=e.asString(t))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"mask",{get:function(){return this._msk.mask||""},set:function(t){var i=this.value;this._msk.mask=e.asString(t),this.value!=i&&this.onValueChanged()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"promptChar",{get:function(){return this._msk.promptChar},set:function(e){var t=this.value;this._msk.promptChar=e,this.value!=t&&this.onValueChanged()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"overwriteMode",{get:function(){return this._msk.overwriteMode},set:function(t){this._msk.overwriteMode=e.asBoolean(t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"placeholder",{get:function(){return this._tbx.placeholder},set:function(e){this._tbx.placeholder=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"maskFull",{get:function(){return this._msk.maskFull},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"isRequired",{get:function(){return this._tbx.required},set:function(t){this._tbx.required=e.asBoolean(t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"isReadOnly",{get:function(){return this._tbx.readOnly},set:function(t){this._tbx.readOnly=e.asBoolean(t),e.toggleClass(this.hostElement,"wj-state-readonly",this.isReadOnly)},enumerable:!0,configurable:!0}),i.prototype.selectAll=function(){var t=this._msk.getMaskRange();e.setSelectionRange(this._tbx,t[0],t[1]+1)},i.prototype.onValueChanged=function(e){this.value!=this._oldValue&&(this._oldValue=this.value,this.valueChanged.raise(this,e)),this._updateState()},i.prototype._commitText=function(){if((this.value||this.isRequired)&&!this.maskFull&&!this.onInvalidInput(new e.CancelEventArgs)){var t=this._tbx,i=t.value,n=i.indexOf(this.promptChar);n>-1&&e.setSelectionRange(t,n,i.length)}this._updateState()},i.prototype.dispose=function(){this._msk.input=null,t.prototype.dispose.call(this)},i.prototype.refresh=function(e){void 0===e&&(e=!0),t.prototype.refresh.call(this,e),this.hostElement&&this._msk.refresh()},i.prototype.onGotFocus=function(e){t.prototype.onGotFocus.call(this,e),this.selectAll()},i.controlTemplate='<div class="wj-input"><div class="wj-input-group"><input wj-part="input" class="wj-form-control"/></div></div>',i}(e.Control);t.InputMask=i}(e.input||(e.input={}))}(wijmo||(wijmo={})),function(e){!function(t){"use strict";var i=function(t){function i(n,s){var o=t.call(this,n)||this;o._hsb=[.5,1,1],o._alpha=1,o.valueChanged=new e.Event;var r=o.getTemplate();o.applyTemplate("wj-control wj-content wj-colorpicker",r,{_eSB:"div-sb",_eHue:"div-hue",_eAlpha:"div-alpha",_ePreview:"div-pv",_ePal:"div-pal",_eText:"div-text"}),o._palette="#FFF,#000,#F00,#FFC000,#FFFF00,#92D050,#00B050,#00B0F0,#0070C0,#7030A0".split(","),o._updatePalette(),o._eHue.style.backgroundImage="url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAD4CAIAAACi6hsPAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAYdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuM4zml1AAAAGvSURBVDhPXdBPaM9xHMfxz4pWaxcmtoOhpdXSVpiyHWxqmVpDjaU5rK34XfypjTJ/p+ZPay6jhsOsRrKwaJElf9IQq03WIkv4FeMwMq221tfje1ByeFzfvd7PEKWGEKWTQRZLySWfVRRTQjmVbKWGOhLsZT+HaeY0bbTTQSfdXOcWffTzmAFeMcwoYyT5ygS/mA5hNgphip98J8kHRnnNSwZ4yH1uc4OrdHGR87RximYO0cgedlLLdqqoYAPrWMtKVrCcJSxiPmnMJUQp/Bsyk2xyyKOAQooopYwKtlDNDur5G7SBJo7RQiv/B+2hl3s84CkvGGKEOOYnxolj/mYmhBmDJ5ngCx95xxsGecYj4pB3iENeoZMO2mmlhaMcpIE4ZII6aqhmM3HMMkooopB88sghm0wySCeVlCjMCVFIYx4LWUwOeRSwhmLWU84mqqihll3sppEmjnOSs5zjEl1c4yZ99POE5wwxwns+840fTDFLFKaZZIJxkozxlmEGGSC+GF++Sy89dHOZC8Rr4lVnOMERDrCPBPXEX22jko2UEn+/mnxyWUYWC0gnNUQh/AEc0HJs6cex0gAAAABJRU5ErkJggg==)",o._eHue.style.backgroundSize="contain",navigator.appVersion.indexOf("MSIE 9")>-1&&(o._eSB.children[0].style.filter="progid:DXImageTransform.Microsoft.gradient(startColorstr=#ffffffff,endColorstr=#00ffffff,GradientType=1)",o._eSB.children[1].style.filter="progid:DXImageTransform.Microsoft.gradient(startColorstr=#00000000,endColorstr=#ff000000,GradientType=0)"),r=i._tplCursor,o._cSB=e.createElement(r),o._cHue=e.createElement(r),o._cHue.style.width="100%",o._cAlpha=e.createElement(r),o._cAlpha.style.height="100%",o._eSB.appendChild(o._cSB),o._eHue.appendChild(o._cHue),o._eAlpha.appendChild(o._cAlpha);var a=o.addEventListener.bind(o),l=o.removeEventListener.bind(o),h=document;a(o.hostElement,"mousedown",function(e){a(h,"mousemove",c),a(h,"mouseup",u),o._mouseDown(e)}),a(o.hostElement,"touchstart",function(e){a(h,"touchmove",c),a(h,"touchend",u),o._mouseDown(e)});var c=function(e){o._mouseMove(e)},u=function(e){l(h,"mousemove",c),l(h,"mouseup",u),l(h,"touchmove",c),l(h,"touchend",u),o._mouseUp(e)};return a(o.hostElement,"click",function(t){var i=t.target;if(i&&"DIV"==i.tagName&&e.contains(o._ePal,i)){var n=i.style.backgroundColor;n&&(o.value=new e.Color(n).toString())}}),o.value="#ffffff",o.initialize(s),o._updatePanels(),o}return __extends(i,t),Object.defineProperty(i.prototype,"showAlphaChannel",{get:function(){return"none"!=this._eAlpha.parentElement.style.display},set:function(t){this._eAlpha.parentElement.style.display=e.asBoolean(t)?"":"none"},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"showColorString",{get:function(){return"none"!=this._eText.style.display},set:function(t){this._eText.style.display=e.asBoolean(t)?"":"none"},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"value",{get:function(){return this._value},set:function(t){if(t!=this.value){t=e.asString(t);var i=e.Color.fromString(t);if(i){this._value=t,this._eText.innerText=t;var n=i.getHsb();this._hsb[0]==n[0]&&this._hsb[1]==n[1]&&this._hsb[2]==n[2]&&this._alpha==i.a||(0==n[2]?(n[0]=this._hsb[0],n[1]=this._hsb[1]):0==n[1]&&(n[0]=this._hsb[0]),this._hsb=n,this._alpha=i.a,this._updatePanels(),this.onValueChanged())}}},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"palette",{get:function(){return this._palette},set:function(t){(t=(t=e.asArray(t)).slice(0,10)).every(function(t){return null!=e.Color.fromString(t)})&&(this._palette=t,this._updatePalette())},enumerable:!0,configurable:!0}),i.prototype.onValueChanged=function(e){this._updatePanels(),this.valueChanged.raise(this,e)},i.prototype._mouseDown=function(e){this._htDown=this._getTargetPanel(e),this._htDown&&(e.preventDefault(),this.focus(),this._mouseMove(e))},i.prototype._mouseMove=function(t){var i=t.touches?t.touches[0]:t,n=this._htDown;if(n){var s=n.getBoundingClientRect(),o=this._hsb;n==this._eHue?o[0]=e.clamp((i.clientY-s.top)/s.height,0,.99):n==this._eSB?(o[1]=e.clamp((i.clientX-s.left)/s.width,0,1),o[2]=e.clamp(1-(i.clientY-s.top)/s.height,0,1)):n==this._eAlpha&&(this._alpha=e.clamp((i.clientX-s.left)/s.width,0,1)),this._updateColor()}},i.prototype._mouseUp=function(e){this._htDown=null},i.prototype._updateColor=function(){var t=e.Color.fromHsb(this._hsb[0],this._hsb[1],this._hsb[2],this._alpha);this.value=t.toString(),this._updatePanels()},i.prototype._updatePalette=function(){var t=new e.Color("#fff"),i=new e.Color("#000");this._ePal.innerHTML="";for(var n=0;n<this._palette.length;n++){var s=e.createElement('<div style="float:left;width:10%;box-sizing:border-box;padding:1px">'),o=new e.Color(this._palette[n]),r=o.getHsb();s.appendChild(this._makePalEntry(o,4));for(var a=0;a<5;a++){if(0==r[1]){var l=.1*a+(r[2]>.5?.05:.55);o=e.Color.interpolate(t,i,l)}else o=e.Color.fromHsb(r[0],.1+.2*a,1-.1*a);s.appendChild(this._makePalEntry(o,0))}this._ePal.appendChild(s)}},i.prototype._makePalEntry=function(t,i){var n=document.createElement("div");return e.setCss(n,{cursor:"pointer",backgroundColor:t.toString(),marginBottom:i||""}),n.innerHTML="&nbsp",n},i.prototype._updatePanels=function(){var t=e.Color.fromHsb(this._hsb[0],1,1,1),i=e.Color.fromHsb(this._hsb[0],this._hsb[1],this._hsb[2],1);this._eSB.style.backgroundColor=t.toString(),this._eAlpha.style.background="linear-gradient(to right, transparent 0%, "+i.toString()+" 100%)",navigator.appVersion.indexOf("MSIE 9")>-1&&(this._eAlpha.style.filter="progid:DXImageTransform.Microsoft.gradient(startColorstr=#00000000,endColorstr="+i.toString()+", GradientType = 1)"),this._ePreview.style.backgroundColor=this.value,this._cHue.style.top=(100*this._hsb[0]).toFixed(0)+"%",this._cSB.style.left=(100*this._hsb[1]).toFixed(0)+"%",this._cSB.style.top=(100-100*this._hsb[2]).toFixed(0)+"%",this._cAlpha.style.left=(100*this._alpha).toFixed(0)+"%"},i.prototype._getTargetPanel=function(t){var i=t.target;return e.contains(this._eSB,i)?this._eSB:e.contains(this._eHue,i)?this._eHue:e.contains(this._eAlpha,i)?this._eAlpha:null},i.controlTemplate='<div style="position:relative;width:100%;height:100%"><div style="float:left;width:50%;height:100%;box-sizing:border-box;padding:2px"><div wj-part="div-pal"><div style="float:left;width:10%;box-sizing:border-box;padding:2px"><div style="background-color:black;width:100%">&nbsp;</div><div style="height:6px"></div></div></div><div wj-part="div-text" style="position:absolute;bottom:0px;display:none"></div></div><div style="float:left;width:50%;height:100%;box-sizing:border-box;padding:2px"><div wj-part="div-sb" class="wj-colorbox" style="float:left;width:89%;height:89%"><div style="position:absolute;width:100%;height:100%;background:linear-gradient(to right, white 0%,transparent 100%)"></div><div style="position:absolute;width:100%;height:100%;background:linear-gradient(to top, black 0%,transparent 100%)"></div></div><div style="float:left;width:1%;height:89%"></div><div style="float:left;width:10%;height:89%"><div wj-part="div-hue" class="wj-colorbox"></div></div><div style="float:left;width:89%;height:1%"></div><div style="float:left;width:89%;height:10%"><div style="width:100%;height:100%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAYdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuM4zml1AAAAAcSURBVBhXY/iPBBYgAWpKQGkwgMqDAdUk/v8HAM7Mm6GatDUYAAAAAElFTkSuQmCC)"><div wj-part="div-alpha" class="wj-colorbox"></div></div></div><div style="float:left;width:1%;height:10%"></div><div style="float:left;width:10%;height:10%"><div wj-part="div-pv" class="wj-colorbox" style="position:static"></div></div></div></div>',i._tplCursor='<div style="position:absolute;left:50%;top:50%;width:7px;height:7px;transform:translate(-50%,-50%);border:2px solid #f0f0f0;border-radius:50px;box-shadow:0px 0px 4px 2px #0f0f0f"></div>',i}(e.Control);t.ColorPicker=i}(e.input||(e.input={}))}(wijmo||(wijmo={})),function(e){!function(t){"use strict";var i=function(t){function i(i,n){var s=t.call(this,i)||this;s._view=null,s._byPage=!1,s._fmt="{current:n0} / {count:n0}";var o=s.getTemplate();return s.applyTemplate("wj-control wj-content wj-pager wj-collectionview-navigator",o,{_btnFirst:"btn-first",_btnPrev:"btn-prev",_txtCurr:"txt-curr",_btnNext:"btn-next",_btnLast:"btn-last"},"input"),s._rptNext=new e._ClickRepeater(s._btnNext.querySelector("button")),s._rptPrev=new e._ClickRepeater(s._btnPrev.querySelector("button")),s.addEventListener(s.hostElement,"click",s._click.bind(s)),s.initialize(n),s._update(),s}return __extends(i,t),Object.defineProperty(i.prototype,"cv",{get:function(){return this._view},set:function(t){if(t!=this._view){var i=this._view;i&&(i.collectionChanged.removeHandler(this._collectionChanged),i.currentChanged.removeHandler(this._currentChanged)),i=this._view=e.asType(t,"ICollectionView",!0),this._update(),i&&(i.collectionChanged.addHandler(this._collectionChanged,this),i.currentChanged.addHandler(this._currentChanged,this))}},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"byPage",{get:function(){return this._byPage},set:function(t){t!=this._byPage&&(this._byPage=e.asBoolean(t),this._update())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"headerFormat",{get:function(){return this._fmt},set:function(t){t!=this._fmt&&(this._fmt=e.asString(t),this._update())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"repeatButtons",{get:function(){return!this._rptNext.disabled},set:function(t){this._rptNext.disabled=this._rptPrev.disabled=!e.asBoolean(t)},enumerable:!0,configurable:!0}),i.prototype._update=function(){var t=this._view,i=this._byPage,n=t?i?t.pageIndex:t.currentPosition:0,s=t?i?t.pageCount:t.itemCount:0;e.enable(this._btnFirst,t&&n>0),e.enable(this._btnPrev,t&&n>0),e.enable(this._txtCurr,null!=t),e.enable(this._btnNext,t&&n<s-1),e.enable(this._btnLast,t&&n<s-1),this._txtCurr.value=e.format(this._fmt,{current:t?n+1:0,count:t?s:0,currentItem:t?t.currentPosition+1:0,itemCount:t?t.itemCount:0,currentPage:t?t.pageIndex+1:0,pageCount:t?t.pageCount:0})},i.prototype._currentChanged=function(){this._update()},i.prototype._collectionChanged=function(){this._update()},i.prototype._click=function(t){var i=t.target,n=this._view,s=this._byPage;n&&(e.contains(this._btnFirst,i)?s?n.moveToFirstPage():n.moveCurrentToFirst():e.contains(this._btnPrev,i)?s?n.moveToPreviousPage():n.moveCurrentToPrevious():e.contains(this._btnNext,i)?s?n.moveToNextPage():n.moveCurrentToNext():e.contains(this._btnLast,i)&&(s?n.moveToLastPage():n.moveCurrentToLast()),t.preventDefault())},i.controlTemplate='<div class="wj-input-group"><span wj-part="btn-first" class="wj-input-group-btn"><button class="wj-btn wj-btn-default" tabindex="-1"><span class="wj-glyph-step-backward"></span></button></span><span wj-part="btn-prev" class="wj-input-group-btn"> <button class="wj-btn wj-btn-default" tabindex="-1"><span class="wj-glyph-left"></span> </button></span><input wj-part="txt-curr" class="wj-form-control" readonly><span wj-part="btn-next" class="wj-input-group-btn"><button class="wj-btn wj-btn-default" tabindex="-1"><span class="wj-glyph-right"></span></button></span><span wj-part="btn-last" class="wj-input-group-btn"><button class="wj-btn wj-btn-default" tabindex="-1"><span class="wj-glyph-step-forward"></span></button></span></div>',i}(e.Control);t.CollectionViewNavigator=i}(e.input||(e.input={}))}(wijmo||(wijmo={})),function(e){!function(t){"use strict";var i=function(t){function i(n,s){var o=t.call(this,n,null,!0)||this;o._cv=null,o._itemFormatter=null,o._pathDisplay=new e.Binding(""),o._pathValue=new e.Binding(""),o._pathChecked=new e.Binding(""),o._html=!1,o._shGroups=!1,o._checkedItems=[],o._itemRole="option",o._caseSensitive=!1,o._vThreshold=i._VTHRESH,o._isVirtual=!1,o._children=[],o._clientHeight=-1,o._itemHeight=30,o._itemsAbove=-1,o._itemsBelow=-1,o._eSizer=document.createElement("div"),o._ePadTop=document.createElement("div"),o._ePadBot=document.createElement("div"),o._checking=!1,o._search="",o._fmtItemHandlers=0,o._itemCount=0,o._oldSel=null,o.selectedIndexChanged=new e.Event,o.itemsChanged=new e.Event,o.loadingItems=new e.Event,o.loadedItems=new e.Event,o.itemChecked=new e.Event,o.checkedItemsChanged=new e.Event,o.formatItem=new e.Event(function(){o.invalidate()}),o.applyTemplate("wj-control wj-content wj-listbox",null,null);var r=o.hostElement;return e.setAttribute(r,"role","listbox",!0),"SELECT"==o._orgTag&&o._initFromSelect(o.hostElement),o.addEventListener(r,"click",o._click.bind(o)),o.addEventListener(r,"keydown",o._keydown.bind(o)),o.addEventListener(r,"keypress",o._keypress.bind(o)),o.addEventListener(r,"wheel",function(e){r.scrollHeight>r.offsetHeight&&(e.deltaY<0&&0==r.scrollTop||e.deltaY>0&&r.scrollTop+r.offsetHeight>=r.scrollHeight)&&(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation())}),[o._eSizer,o._ePadTop,o._ePadBot].forEach(function(t){t.tabIndex=-1,e.setAttribute(t,"aria-hidden",!0),e.setCss(t,{pointerEvents:"none",opacity:"0"})}),o.initialize(s),o._updateViewRange(),o.hostElement.addEventListener("scroll",function(e){o._updateViewRange()}),o}return __extends(i,t),Object.defineProperty(i.prototype,"itemsSource",{get:function(){return this._items},set:function(t){this._items!=t&&(this._cv&&(this._cv.currentChanged.removeHandler(this._cvCurrentChanged,this),this._cv.collectionChanged.removeHandler(this._cvCollectionChanged,this),this._cv=null),this._items=t,this._cv=e.asCollectionView(t),null!=this._cv&&(this._cv.currentChanged.addHandler(this._cvCurrentChanged,this),this._cv.collectionChanged.addHandler(this._cvCollectionChanged,this)),this._populateList(),this.onItemsChanged(),this.onSelectedIndexChanged())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"collectionView",{get:function(){return this._cv},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"virtualizationThreshold",{get:function(){return this._vThreshold},set:function(t){if(t!=this._vThreshold){var i=this._getVirtual();this._vThreshold=e.asNumber(t,!1,!0),i!=this._getVirtual()&&this._populateList()}},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"showGroups",{get:function(){return this._shGroups},set:function(t){t!=this._shGroups&&(this._shGroups=e.asBoolean(t),this._populateList())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"isContentHtml",{get:function(){return this._html},set:function(t){t!=this._html&&(this._html=e.asBoolean(t),this._populateList())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"itemFormatter",{get:function(){return this._itemFormatter},set:function(t){t!=this._itemFormatter&&(this._itemFormatter=e.asFunction(t),this._populateList())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"displayMemberPath",{get:function(){return this._pathDisplay.path},set:function(t){t!=this.displayMemberPath&&(this._pathDisplay.path=e.asString(t),this._populateList())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"selectedValuePath",{get:function(){return this._pathValue.path},set:function(t){this._pathValue.path=e.asString(t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"checkedMemberPath",{get:function(){return this._pathChecked.path},set:function(t){t!=this.checkedMemberPath&&(this._pathChecked.path=e.asString(t),this._populateList())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"caseSensitiveSearch",{get:function(){return this._caseSensitive},set:function(t){this._caseSensitive=e.asBoolean(t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"itemRole",{get:function(){return this._itemRole},set:function(t){t!=this.itemRole&&(this._itemRole=e.asString(t),this._populateList())},enumerable:!0,configurable:!0}),i.prototype.getDisplayValue=function(t){var i=null;t>-1&&e.hasItems(this._cv)&&(i=this._cv.items[t],this.displayMemberPath&&(i=this._pathDisplay.getValue(i)));var n=null!=i?i.toString():"";return this._itemFormatter&&(n=this._itemFormatter(t,n)),n},i.prototype.getDisplayText=function(e){var t=this._getChild(e);return null!=t?t.textContent:""},i.prototype.isItemEnabled=function(t){var i=this._getChild(t);return null!=i&&!i.hasAttribute("disabled")&&!e.hasClass(i,"wj-state-disabled")&&!e.hasClass(i,"wj-separator")},Object.defineProperty(i.prototype,"selectedIndex",{get:function(){return this._cv?this._cv.currentPosition:-1},set:function(t){this._cv&&this._cv.moveCurrentToPosition(e.asNumber(t))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"selectedItem",{get:function(){return this._cv?this._cv.currentItem:null},set:function(e){this._cv&&this._cv.moveCurrentTo(e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"selectedValue",{get:function(){var e=this.selectedItem;return e&&this.selectedValuePath&&(e=this._pathValue.getValue(e)),e},set:function(t){var i=this._cv,n=i?i.items:null,s=this.selectedValuePath,o=-1;if(n){for(var r=0;r<n.length;r++){var a=n[r],l=s?this._pathValue.getValue(a):a;if(l===t||e.DateTime.equals(l,t)){o=r;break}if(this.isContentHtml&&e.isString(l)&&l.indexOf("<")>-1&&e.toPlainText(l)===t){o=r;break}}this.selectedIndex=o}},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"maxHeight",{get:function(){var e=this.hostElement,t=e?parseFloat(e.style.maxHeight):null;return isNaN(t)?null:t},set:function(t){var i=this.hostElement;i&&(t=e.asNumber(t,!0),i.style.maxHeight=null==t?"":t+"px")},enumerable:!0,configurable:!0}),i.prototype.showSelection=function(t){void 0===t&&(t=this.containsFocus());var i=this.hostElement,n=this._children,s=this._getSelectedElement(!1),o=new e.Rect(0,0,0,0);s!=this._oldSel&&(this._updateItemAttributes(s,!0),this._updateItemAttributes(this._oldSel,!1),this._oldSel=s),s instanceof HTMLElement?o=this._getBoundingClientRect(s):this._children.length>0&&(o=this._getBoundingClientRect(this._getChild(0)));var r=this._getBoundingClientRect(i),a=0;if(this._shGroups&&(a=this._itemHeight,!this._isVirtual)){var l=n[0];l.offsetHeight&&e.hasClass(l,"wj-header")&&(a=l.offsetHeight)}(o.bottom>r.bottom?i.scrollTop+=o.bottom-r.bottom:o.top<r.top+a&&(i.scrollTop-=r.top+a-o.top),this._updateViewRange(),s=this._getSelectedElement(!0),t)&&(s&&!e.contains(s,e.getActiveElement())?s:i).focus();i.tabIndex=s?-1:this._orgTabIndex},i.prototype.loadList=function(){this._populateList()},i.prototype.getItemChecked=function(t){var i=this._cv.items[t],n=this._pathChecked;if(e.isObject(i)&&n.path)return n.getValue(i);var s=this._getCheckbox(t);return!!s&&s.checked},i.prototype.setItemChecked=function(e,t){this._setItemChecked(e,t,!0)},i.prototype.toggleItemChecked=function(e){this.setItemChecked(e,!this.getItemChecked(e))},Object.defineProperty(i.prototype,"checkedItems",{get:function(){return this._checkedItems},set:function(t){var i=this,n=e.asArray(t,!1);if(!this._arrayEquals(n,this._checkedItems)){var s=this._cv,o=this._pathChecked,r=new Map;if(o&&s){var a=s.sourceCollection;if(a&&a.length){e.isObject(a[0])||(o=null),n.forEach(function(e){return r.set(e,!0)}),this._checking=!0;var l=[];a.forEach(function(e){var t=r.has(e);t&&l.push(e),o&&o.setValue(e,t)}),this._checking=!1,n=l}s.items.forEach(function(e,t){i._setItemChecked(t,r.has(e),!1)})}this._arrayEquals(n,this._checkedItems)||(this._checkedItems=n,this.onCheckedItemsChanged())}},enumerable:!0,configurable:!0}),i.prototype.indexOf=function(t){return(t=e.closest(t,".wj-listbox-item"))?t[i._DIDX_KEY]:-1},i.prototype.onSelectedIndexChanged=function(e){this.selectedIndexChanged.raise(this,e)},i.prototype.onItemsChanged=function(e){this.itemsChanged.raise(this,e)},i.prototype.onLoadingItems=function(e){this.loadingItems.raise(this,e)},i.prototype.onLoadedItems=function(e){this.loadedItems.raise(this,e)},i.prototype.onItemChecked=function(e){this.itemChecked.raise(this,e)},i.prototype.onCheckedItemsChanged=function(e){this.checkedItemsChanged.raise(this,e)},i.prototype.onFormatItem=function(e){this.formatItem.raise(this,e)},i.prototype.refresh=function(e){if(void 0===e&&(e=!0),t.prototype.refresh.call(this,e),this.hostElement){var i=this._cv?this._cv.items.length:0,n=this.formatItem.handlerCount;i!=this._itemCount||n!=this._fmtItemHandlers?(this._fmtItemHandlers=n,this._populateList()):this._updateViewRange()}},i.prototype._getBoundingClientRect=function(t){if(!t.offsetHeight){var i=this.indexOf(t),n=this.hostElement;if(i>-1&&n){i=this._getElementIndex(i);var s=n.getBoundingClientRect();return new e.Rect(0,s.top-n.scrollTop+i*this._itemHeight,s.width,this._itemHeight)}}return e.Rect.fromBoundingRect(t.getBoundingClientRect())},i.prototype._updateItemAttributes=function(t,i){if(t){var n=this.checkedMemberPath?this._getCheckbox(this.indexOf(t)):null,s=n?n.checked:null;e.toggleClass(t,"wj-state-selected",i),e.setAttribute(t,"aria-selected",this._getAriaSelected(i,s)),t.tabIndex=i?this._orgTabIndex:-1}},i.prototype._getCheckedItems=function(){var t=this,i=this._cv,n=this._pathChecked,s=[];return i&&n&&n.path&&(s=i.sourceCollection.filter(function(s,o){if(i.filter&&!i.filter(s))return!1;if(e.isObject(s))return n.getValue(s);var r=i.items[o]==s?o:i.items.indexOf(s);return t.getItemChecked(r)})),s},i.prototype._arrayEquals=function(e,t){if(e==t)return!0;if(!e||!t||e.length!=t.length)return!1;for(var i=0;i<e.length;i++)if(e[i]!==t[i])return!1;return!0},i.prototype._getChild=function(e){return e=this._getElementIndex(e),this._children[e]},i.prototype._getElementIndex=function(t){if(this._shGroups)for(var i=this._children,n=0;n<=t&&n<i.length;n++){var s=i[n];e.hasClass(s,"wj-header")&&t++}return t},i.prototype._setItemChecked=function(t,i,n){void 0===n&&(n=!0);var s=this._cv.items[t],o=this._pathChecked,r=!1,a=this.selectedIndex,l=this._checking;if(e.isObject(s)&&o.path){if(!!o.getValue(s)!=i){var h=e.tryCast(this._cv,"IEditableCollectionView");r=!0,this._checking=!0,h?(h.editItem(s),o.setValue(s,i),h.commitEdit()):(o.setValue(s,i),h.refresh()),this._checking=l}}else if(n){var c=this._checkedItems.indexOf(s);(i&&c<0||!i&&c>=0)&&(r=!0)}var u=this._getCheckbox(t);if(u){u.checked=i;var d=e.closest(u,".wj-listbox-item");d&&(e.toggleClass(d,"wj-state-checked",i),e.setAttribute(d,"aria-selected",!!i||null))}return n&&(r&&(this._checkedItems=this._checkedItemsUpdate(s,i),this.onItemChecked(),this.onCheckedItemsChanged()),a!=this.selectedIndex&&this.onSelectedIndexChanged()),r},i.prototype._checkedItemsUpdate=function(e,t){var i=this._cv.sourceCollection,n=this._checkedItems,s=0,o=0;if(!t){var r=n.indexOf(e);return n.slice(0,r).concat(n.slice(r+1))}for(;;s++){var a=i[s];if(a===n[o])o++;else if(a===e)return n.slice(0,o).concat([e]).concat(n.slice(o))}},i.prototype._cvCollectionChanged=function(){this._checking||(this._populateList(),this.onItemsChanged())},i.prototype._cvCurrentChanged=function(){this._checking||(this.showSelection(),this.onSelectedIndexChanged())},i.prototype._populateList=function(){var t=this.hostElement,s=this._cv;if(this._itemCount=s?s.items.length:0,this._isVirtual=this._getVirtual(),this._oldSel=null,this._itemsAbove=-1,this._itemsBelow=-1,t){var o=this.containsFocus(),r=void 0;this.onLoadingItems();var a=this._children=[];if(t.textContent="",s){var l=0,h=void 0,c=[];if(this._shGroups&&s.groups&&s.groups.length){r={};for(var u=0;u<s.groups.length;u++){var d=s.groups[u];r[l]=d,h=this._createHeaderItem(d),c.push(h);for(var p=0;p<d.items.length;p++,l++)h=this._createItem(l),c.push(h)}}else for(p=0;p<s.items.length;p++,l++)h=this._createItem(l),c.push(h);var f=this._isVirtual?document.createElement("div"):t,_=0;f.innerHTML=c.join("");for(p=0;p<f.children.length;p++){var m=f.children[p];_==s.currentPosition&&(this._oldSel=m),m[i._DIDX_KEY]=m.className.indexOf("wj-header")<0?_++:-1,a.push(m)}}if(this.formatItem.hasHandlers&&s){l=0;var g=s.items;for(m=new n(0,null,null),p=0;p<a.length;p++)m._item=a[p],this._shGroups&&e.hasClass(m._item,"wj-header")?(m._index=-1,m._data=r[l]):(m._index=l,m._data=g[l++]),this.onFormatItem(m)}if(this._isVirtual){var b=this._getCanvasContext(),y=null,v=0;for(p=0;p<a.length;p++){h=a[p];var w=b.measureText(h.textContent);w.width>v&&(y=h,v=w.width)}if(y){var x=!1,C=t.style.display,D=t.style.position;t.parentElement||(x=!0,document.body.appendChild(t),e.setCss(t,{display:"",position:"absolute"})),t.appendChild(y);var E=y.style.whiteSpace;y.style.whiteSpace="nowrap",this._ePadTop.style.width=y.offsetWidth+"px",this._itemHeight=y.offsetHeight||this._itemHeight,y.style.whiteSpace=E,this._eSizer.style.height=a.length*this._itemHeight+"px",t.appendChild(this._eSizer),this._clientHeight=t.clientHeight,e.removeChild(this._eSizer),x&&(e.removeChild(t),e.setCss(t,{display:C,position:D})),e.removeChild(y)}else this._ePadTop.style.width="";this._updateViewRange()}this.checkedItems=this._getCheckedItems();var P=this._getSelectedElement(!0);if(o)(P||t).focus();else P&&this.showSelection();t.tabIndex=P?-1:this._orgTabIndex,this.onLoadedItems()}},i.prototype._getCanvasContext=function(){var e=document.createElement("canvas").getContext("2d"),t=getComputedStyle(this.hostElement);return t.fontSize&&t.fontFamily&&(e.font=t.fontSize+" "+t.fontFamily.split(",")[0]),e},i.prototype._getVirtual=function(){if(this._itemCount<=this._vThreshold)return!1;var e=this.hostElement;if(e){var t=getComputedStyle(e);if(parseInt(t.columnCount)>1||t.display.indexOf("flex")>-1||t.display.indexOf("grid")>-1)return!1}return!0},i.prototype._getMaxSupportedCssHeight=function(){var t=265e5;return e.isIE()?t=15e5:e.isFirefox()&&(t=175e5),t},i.prototype._updateViewRange=function(){var t=this.hostElement,i=this._itemHeight,n=this._children;if(!(t&&t.parentElement&&this._isVirtual&&n))return!1;var s=t.scrollTop;e.assert(i*n.length<this._getMaxSupportedCssHeight(),"The number of items ("+n.length+") exceeds the maximum number of items ("+Math.floor(this._getMaxSupportedCssHeight()/i)+") allowed for this browser.");var o=Math.max(t.clientHeight,this._clientHeight),r=Math.floor(s/i),a=Math.min(n.length,Math.ceil((s+o)/i)-r),l=Math.max(0,n.length-r-a);if(r==this._itemsAbove&&l==this._itemsBelow)return!1;this._itemsAbove=r,this._itemsBelow=l;var h=document.createDocumentFragment(),c=this.containsFocus();if(this._ePadTop.style.height=r*i+"px",h.appendChild(this._ePadTop),this.showGroups&&!e.hasClass(n[r],"wj-header"))for(var u=r;u>=0;u--)if(e.hasClass(n[u],"wj-header")){h.appendChild(n[u]);break}for(u=r;u<=r+a&&u<n.length;u++)h.appendChild(n[u]);this._ePadBot.style.height=l*i+"px",h.appendChild(this._ePadBot),t.textContent="",t.appendChild(h);var d=(r+a+l)*i-t.scrollHeight;this._ePadBot.style.height=this._ePadBot.offsetHeight-d+"px";var p=this._getSelectedElement(!0);c&&(p||t).focus({preventScroll:!0});return t.tabIndex=p?-1:this._orgTabIndex,!0},i.prototype._getSelectedElement=function(e){var t=this.selectedIndex,i=this._getElementIndex(t),n=i>-1?this._children[i]:null;return e&&n&&!n.offsetHeight&&(n=null),n},i.prototype._handleResize=function(){this._updateViewRange()},i.prototype._createItem=function(t){var i=this._cv.items[t],n=t==this._cv.currentPosition,s=this.getDisplayValue(t);1!=this._html&&(s=e.escapeHtml(s));var o=null;this.checkedMemberPath&&(o=!1,e.isObject(i)?o=!!this._pathChecked.getValue(i):this._checkedItems&&(o=this._checkedItems.indexOf(i)>-1),s='<label><input type="checkbox" tabindex="-1"'+(o?" checked":"")+"><span></span> "+s+"</label>");var r="wj-listbox-item";if(n&&(r+=" wj-state-selected"),o&&(r+=" wj-state-checked"),this._html){var a=["wj-separator","wj-state-disabled"];if(s.indexOf(a[0])>-1||s.indexOf(a[1])>-1){var l=e.createElement(s);a.forEach(function(t){e.hasClass(l,t)&&(r+=" "+t)})}}return'<div class="'+r+'" role="'+this.itemRole+'" '+(this._getAriaSelected(n,o)?'aria-selected="true" ':"")+'tabindex="'+(n&&!this.isDisabled?this._orgTabIndex:-1)+'">'+s+"</div>"},i.prototype._getAriaSelected=function(e,t){return!!(null!=t?t:e)||null},i.prototype._createHeaderItem=function(t){return'<div class="wj-listbox-item wj-header wj-state-disabled" role="presentation" tabindex="-1">'+e.escapeHtml(t.name)+"</div>"},i.prototype._click=function(t){if(0==t.button&&!t.defaultPrevented){var i=this.indexOf(t.target);if(i>-1&&(this.selectedIndex=i,this.checkedMemberPath)){var n=this._getCheckbox(i),s=e.closest(n,".wj-listbox-item");t.target!=n&&t.target!=s||(s.focus({preventScroll:!0}),this.setItemChecked(i,n.checked))}}},i.prototype._keydown=function(t){var i=this.selectedIndex;if(!t.defaultPrevented){if(65==t.keyCode&&(t.ctrlKey||t.metaKey)){var n=this.collectionView;if(this.checkedMemberPath&&e.hasItems(n))return this.checkedItems=this.checkedItems.length!=n.items.length?n.items:[],void t.preventDefault()}if(!(t.ctrlKey||t.shiftKey||t.altKey||t.metaKey))switch(t.keyCode){case e.Key.Down:t.preventDefault(),this._selectNext();break;case e.Key.Up:t.preventDefault(),this._selectPrev();break;case e.Key.Home:t.preventDefault(),this._selectFirst();break;case e.Key.End:t.preventDefault(),this._selectLast();break;case e.Key.PageDown:t.preventDefault(),this._selectNextPage();break;case e.Key.PageUp:t.preventDefault(),this._selectPrevPage();break;case e.Key.Space:if(this.checkedMemberPath&&i>-1){var s=this._getCheckbox(i);s&&this.isItemEnabled(i)&&(this.setItemChecked(i,!s.checked),t.preventDefault())}}}},i.prototype._keypress=function(t){var i=this;if(!t.defaultPrevented&&!(t.target instanceof HTMLInputElement)&&(t.charCode>32||32==t.charCode&&this._search)){t.preventDefault(),this._search+=String.fromCharCode(t.charCode),this._toSearch&&clearTimeout(this._toSearch),this._toSearch=setTimeout(function(){i._toSearch=null,i._search=""},e.Control._SEARCH_DELAY);var n=this._findNext();n<0&&this._search.length>1&&(this._search=this._search[this._search.length-1],n=this._findNext()),n>-1&&(this.selectedIndex=n)}},i.prototype._selectNext=function(){for(var e=this.selectedIndex+1;e<this._children.length;e++)if(this.isItemEnabled(e))return this.selectedIndex=e,!0;return!1},i.prototype._selectPrev=function(){for(var e=this.selectedIndex-1;e>=0;e--)if(this.isItemEnabled(e))return this.selectedIndex=e,!0;return!1},i.prototype._selectFirst=function(){for(var e=0;e<this._children.length;e++)if(this.isItemEnabled(e))return this.selectedIndex=e,!0;return!1},i.prototype._selectLast=function(){for(var e=this._children.length-1;e>=0;e--)if(this.isItemEnabled(e))return this.selectedIndex=e,!0;return!1},i.prototype._selectNextPage=function(){var e=this.hostElement.offsetHeight,t=this._children,i=this._cv?this._cv.items.length:0,n=0;if(e>0)for(var s=this.selectedIndex+1;s<i;s++){var o=t[s].scrollHeight||this._itemHeight;if(n+o>e&&this.isItemEnabled(s))return this.selectedIndex=s,!0;n+=o}return this._selectLast()},i.prototype._selectPrevPage=function(){var e=this.hostElement.offsetHeight,t=this._children,i=0;if(e>0)for(var n=this.selectedIndex-1;n>0;n--){var s=t[n].scrollHeight||this._itemHeight;if(i+s>e&&this.isItemEnabled(n))return this.selectedIndex=n,!0;i+=s}return this._selectFirst()},i.prototype._findNext=function(){if(this.hostElement){var e=this._children.length,t=this.selectedIndex;(t<0||1==this._search.length)&&t++;var i=this._search,n=this.caseSensitiveSearch;n||(i=i.toLowerCase());for(var s=0;s<e;s++){var o=(t+s)%e;if(this.isItemEnabled(o)){var r=this.getDisplayText(o).trim();if(n||(r=r.toLowerCase()),0==r.indexOf(i))return o}}}return-1},i.prototype._getCheckbox=function(e){var t=this._children;return e=this._getElementIndex(e),this.hostElement&&e>-1&&e<t.length?t[e].querySelector("input[type=checkbox]"):null},i.prototype._initFromSelect=function(e){for(var t=e.children,i=[],n=-1,s=0;s<t.length;s++){var o=t[s];"OPTION"==o.tagName&&(o.hasAttribute("selected")&&(n=i.length),o.innerHTML?i.push({hdr:o.innerHTML,val:o.getAttribute("value"),cmdParam:o.getAttribute("cmd-param")}):i.push({hdr:'<div class="wj-separator"></div>'}),e.removeChild(o),s--)}i&&(this.displayMemberPath="hdr",this.selectedValuePath="val",this.itemsSource=i,this.selectedIndex=n)},i.prototype._setIsDisabled=function(e){t.prototype._setIsDisabled.call(this,e),this._updateTabIndex()},i.prototype._setTabOrder=function(e){t.prototype._setTabOrder.call(this,e),this.isDisabled||this._updateTabIndex()},i.prototype._updateTabIndex=function(){var e=this.hostElement,t=this._getSelectedElement(!0);t?(t.tabIndex=this.isDisabled?-1:this._orgTabIndex,e.tabIndex=-1):e.tabIndex=this.isDisabled?-1:this._orgTabIndex},i._DIDX_KEY="$WJ-DIDX",i._VTHRESH=Number.MAX_VALUE/2,i}(e.Control);t.ListBox=i;var n=function(t){function i(i,n,s){var o=t.call(this)||this;return o._index=e.asNumber(i),o._data=n,o._item=e.asType(s,HTMLElement,!0),o}return __extends(i,t),Object.defineProperty(i.prototype,"index",{get:function(){return this._index},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"data",{get:function(){return this._data},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"item",{get:function(){return this._item},enumerable:!0,configurable:!0}),i}(e.EventArgs);t.FormatItemEventArgs=n}(e.input||(e.input={}))}(wijmo||(wijmo={})),function(e){!function(t){"use strict";e._addCultureInfo("MultiSelectListBox",{filterPlaceholder:"Filter",selectAll:"Select All"});var i=function(i){function n(s,o){var r=i.call(this,s)||this;r._selectAllLabel=null,r._filterPlaceholder=null,r._filterText="",r._checkOnFilter=!0,r._delay=e.Control._SEARCH_DELAY,r.checkedItemsChanged=new e.Event,r.selectedIndexChanged=new e.Event;var a=r.getTemplate();r.applyTemplate("wj-control wj-content wj-multiselectlistbox",a,{_selectAll:"select-all",_filter:"filter",_lbHost:"list-box"}),r._selectAll.style.display="none",r._filter.style.display="none",r._lbx=new t.ListBox(r._lbHost,{checkedMemberPath:n._DEF_CHECKED_PATH,loadedItems:function(){return r._updateCheckAllCheckbox()},checkedItemsChanged:function(){return r.onCheckedItemsChanged()},selectedIndexChanged:function(){return r.onSelectedIndexChanged()}}),r._cbSelectAll=r._selectAll.querySelector("input[type=checkbox]"),r._spSelectAll=r._selectAll.querySelector("label>span");var l=e.culture.MultiSelectListBox;return e.setText(r._spSelectAll,l.selectAll),r._filter.placeholder=l.filterPlaceholder,r.initialize(o),r.addEventListener(r._filter,"input",function(){r._filter.value!=r._filterText&&(r._filterText=r._filter.value,r._toSearch&&clearTimeout(r._toSearch),r._toSearch=setTimeout(function(){r._toSearch=null,r._applyFilter()},r.delay))}),r.addEventListener(r._cbSelectAll,"click",function(t){var i=r._lbx.collectionView;e.hasItems(i)&&(r.checkedItems=t.target.checked?i.items:[])}),r.addEventListener(r.hostElement,"keydown",function(t){var i=r.showFilterInput?r._filter:null,n=r._lbx;if(i&&t.keyCode==e.Key.F3&&(e.setSelectionRange(i,0,i.value.length),t.preventDefault()),e.getActiveElement()==i){var s=!t.altKey;switch(t.keyCode){case e.Key.Escape:case e.Key.F4:s=!1}s&&t.stopPropagation()}if(!n.containsFocus())switch(t.keyCode){case e.Key.Up:case e.Key.Down:r._lbx.focus();var o=n.selectedIndex+(t.keyCode==e.Key.Up?-1:1);n.selectedIndex=Math.max(0,o),t.preventDefault()}},!0),r.hostElement.tabIndex=-1,r._lbx.tabOrder=r._orgTabIndex,r}return __extends(n,i),Object.defineProperty(n.prototype,"itemsSource",{get:function(){return this._lbx.itemsSource},set:function(e){this._lbx.itemsSource=e},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"collectionView",{get:function(){return this._lbx.collectionView},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"virtualizationThreshold",{get:function(){return this._lbx.virtualizationThreshold},set:function(e){this._lbx.virtualizationThreshold=e},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"displayMemberPath",{get:function(){return this._lbx.displayMemberPath},set:function(e){this._lbx.displayMemberPath=e},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"isContentHtml",{get:function(){return this._lbx.isContentHtml},set:function(e){this._lbx.isContentHtml=e},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"caseSensitiveSearch",{get:function(){return this._lbx.caseSensitiveSearch},set:function(e){this._lbx.caseSensitiveSearch=e},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"delay",{get:function(){return this._delay},set:function(t){this._delay=e.asNumber(t,!1,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"showGroups",{get:function(){return this._lbx.showGroups},set:function(e){this._lbx.showGroups=e},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"checkOnFilter",{get:function(){return this._checkOnFilter},set:function(t){t!=this.checkOnFilter&&(this._checkOnFilter=e.asBoolean(t),this.checkedItems=[])},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"selectedIndex",{get:function(){return this._lbx.selectedIndex},set:function(e){this._lbx.selectedIndex=e},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"listBox",{get:function(){return this._lbx},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"showFilterInput",{get:function(){return""==this._filter.style.display},set:function(t){t!=this.showFilterInput&&(this._filter.style.display=e.asBoolean(t)?"":"none",this.showFilterInput||(this._filter.value="",this._applyFilter()))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"filterInputPlaceholder",{get:function(){return this._filterPlaceholder},set:function(t){t!=this._filterPlaceholder&&(this._filterPlaceholder=e.asString(t),this.refresh())},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"showSelectAllCheckbox",{get:function(){return""==this._selectAll.style.display},set:function(t){this._selectAll.style.display=e.asBoolean(t)?"":"none"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"selectAllLabel",{get:function(){return this._selectAllLabel},set:function(t){t!=this._selectAllLabel&&(this._selectAllLabel=e.asString(t),this.refresh())},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"checkedMemberPath",{get:function(){var e=this.listBox.checkedMemberPath;return e!=n._DEF_CHECKED_PATH?e:null},set:function(t){t=e.asString(t),this.listBox.checkedMemberPath=t||n._DEF_CHECKED_PATH},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"checkedItems",{get:function(){return this.listBox.checkedItems},set:function(t){this.listBox.checkedItems=e.asArray(t)},enumerable:!0,configurable:!0}),n.prototype.onCheckedItemsChanged=function(e){this._updateCheckAllCheckbox(),this.checkedItemsChanged.raise(this,e)},n.prototype.onSelectedIndexChanged=function(e){this.selectedIndexChanged.raise(this,e)},n.prototype.refresh=function(t){if(void 0===t&&(t=!0),i.prototype.refresh.call(this,t),this.hostElement){var n=e.culture.MultiSelectListBox;this._filter.placeholder=null!=this._filterPlaceholder?this._filterPlaceholder:n.filterPlaceholder,this._spSelectAll&&e.setText(this._spSelectAll,null!=this._selectAllLabel?this._selectAllLabel:n.selectAll),this._updateCheckAllCheckbox()}},n.prototype.dispose=function(){this.listBox.dispose(),i.prototype.dispose.call(this)},n.prototype._applyFilter=function(){var t=this,i=this._lbx,n=i.collectionView,s=this._filter.value,o=s?new RegExp(e.escapeRegExp(s),i.caseSensitiveSearch?"":"i"):null,r=this.displayMemberPath,a=r?new e.Binding(r):null,l=this.checkOnFilter?null:this.checkedItems;n.filter=function(i){return null==o||(!!(l&&l.indexOf(i)>-1)||(a&&(i=a.getValue(i)),t.isContentHtml&&(i=e.toPlainText(i)),null!=i&&o.test(i.toString())))},i.selectedIndex=Math.max(0,i.selectedIndex),this._checkOnFilter&&(this.checkedItems=o?n.items:[])},n.prototype._updateCheckAllCheckbox=function(){var t=this._lbx.collectionView,i=this._cbSelectAll;if(e.hasItems(t)){var n=t.items.length,s=this.checkedItems.length;e.setChecked(i,s==n||0!=s&&null),i.disabled=!1}else e.setChecked(i,!1),i.checked=!1,i.disabled=!0},n.prototype._setIsDisabled=function(e){i.prototype._setIsDisabled.call(this,e),this.hostElement.tabIndex=-1,this.isDisabled?this._lbx.tabOrder=-1:this._lbx.tabOrder=this._orgTabIndex},n.prototype._setTabOrder=function(e){this._orgTabIndex=e,this._lbx.tabOrder=e},n._DEF_CHECKED_PATH="$checked",n.controlTemplate='<div class="wj-template wj-listbox"><input wj-part="filter" class="wj-form-control" tabindex="-1"><div wj-part="select-all" class="wj-header wj-select-all wj-listbox-item"><label><input type="checkbox" tabindex="-1"> <span></span></label></div><div wj-part="list-box"/></div>',n}(e.Control);t.MultiSelectListBox=i}(e.input||(e.input={}))}(wijmo||(wijmo={})),function(e){!function(t){"use strict";var i,n;e._addCultureInfo("Calendar",{ariaLabels:{calendar:"Calendar",monthView:"Month View",yearView:"Year View",prvMo:"Previous Month",today:"Today",nxtMo:"Next Month",prvYr:"Previous Year",currMo:"Current Month",nxtYr:"Next Year"}}),function(e){e[e.None=0]="None",e[e.Day=1]="Day",e[e.Month=2]="Month",e[e.Range=3]="Range"}(i=t.DateSelectionMode||(t.DateSelectionMode={})),function(e){e[e.None=0]="None",e[e.FirstMonth=1]="FirstMonth",e[e.LastMonth=2]="LastMonth",e[e.FirstAndLastMonths=3]="FirstAndLastMonths",e[e.AllMonths=4]="AllMonths",e[e.Outside=5]="Outside"}(n=t.ShowMonthPicker||(t.ShowMonthPicker={}));var s=function(s){function o(t,o){var r=s.call(this,t)||this;r._yrPicker=!0,r._mtPicker=n.FirstMonth,r._wksBefore=0,r._wksAfter=0,r._rngMin=0,r._rngMax=0,r._min=null,r._max=null,r._readOnly=!1,r._handleWheel=!0,r._fdw=null,r._selMode=i.Day,r._tmYrHidden=0,r._fmtYrMo="y",r._fmtYr="yyyy",r._fmtDayHdr="ddd",r._fmtDay="d ",r._fmtMonths="MMM",r.valueChanged=new e.Event,r.rangeEndChanged=new e.Event,r.rangeChanged=new e.Event,r.displayMonthChanged=new e.Event,r.formatItem=new e.Event(function(){r.invalidate()}),r._value=r._rngEnd=e.DateTime.newDate(),r._month=r._getMonth(r._value),r._cals=[r],r._createChildren(),r._createYearPicker();var a=r.hostElement,l=r.addEventListener.bind(r);return l(a,"keydown",r._keydown.bind(r)),l(a,"click",r._click.bind(r)),r._rptUp=new e._ClickRepeater(r._btnPrv),r._rptDn=new e._ClickRepeater(r._btnNxt),r.addEventListener(a,"wheel",function(e){r.handleWheel&&!e.defaultPrevented&&!r.isReadOnly&&r.containsFocus()&&(e.deltaY<0?r._btnPrv.click():r._btnNxt.click(),e.preventDefault())}),r.initialize(o),r.refresh(!0),r}return __extends(o,s),Object.defineProperty(o.prototype,"value",{get:function(){return this._value},set:function(t){if(t!==this._value&&(this._clearingRangeEnd=!e.DateTime.equals(this._value,t),this.rangeEnd=null,this._clearingRangeEnd=!1,t=e.asDate(t,!0),t=this._clamp(t),(this._valid(t)||null==t)&&(this.ensureVisible(t||new Date),e.DateTime.equals(this._value,t)||(this._value=t,this.invalidate(!1),this.onValueChanged())),!this.value)){var i=this.min,n=this.max,s=this.displayMonth;n&&n<s?this.ensureVisible(n):i&&i>s&&this.ensureVisible(i)}},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"rangeEnd",{get:function(){return this._rngEnd},set:function(t){if(t=e.asDate(t,!0),(t=this._clamp(t))&&this._value&&this._rngMode()){t<this._value&&(t=this._value);var i=this._rngMin,n=this._rngMax;if(i&&i>0||n&&n>0){var s=this._value,o=Math.ceil((t.getTime()-s.getTime())/864e5)+1;i&&i>0&&o<i&&(t=e.DateTime.addDays(s,i-1)),n&&n>0&&o>n&&(t=e.DateTime.addDays(s,n-1))}}(this._valid(t)||null==t)&&(e.DateTime.equals(this._rngEnd,t)||(this._rngEnd=t,this.ensureVisible(t),this.invalidate(!1),this.onRangeEndChanged()))},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"rangeMin",{get:function(){return this._rngMin},set:function(t){(t=e.asNumber(t,!0,!0))!=this._rngMin&&(this._rngMin=t,this._syncProp(this,"rangeMin"),this._rngMode()&&this._rngEnd&&(this.rangeEnd=this._rngEnd))},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"rangeMax",{get:function(){return this._rngMax},set:function(t){(t=e.asNumber(t,!0,!0))!=this._rngMax&&(this._rngMax=t,this._syncProp(this,"rangeMax"),this._rngMode()&&this._rngEnd&&(this.rangeEnd=this._rngEnd))},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"min",{get:function(){return this._min},set:function(t){(t=e.asDate(t,!0))!=this.min&&(this._min=t,this._syncProp(this,"min"),this.refresh(),!this.value&&t&&t>this.displayMonth&&this.ensureVisible(t))},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"max",{get:function(){return this._max},set:function(t){(t=e.asDate(t,!0))!=this.max&&(this._max=t,this._syncProp(this,"max"),this.refresh(),!this.value&&t&&t<this.displayMonth&&this.ensureVisible(t))},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"selectionMode",{get:function(){return this._selMode},set:function(t){var n=i;(t=e.asEnum(t,n))!=this._selMode&&(this._selMode=t,this._mthMode()&&(this.monthView=!1),this._rngEnd=t==n.Range?this._value:null,this.refresh(),this._syncProp(this,"selectionMode"))},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"isReadOnly",{get:function(){return this._readOnly},set:function(t){this._readOnly=e.asBoolean(t),e.toggleClass(this.hostElement,"wj-state-readonly",this.isReadOnly),this._syncProp(this,"isReadOnly")},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"handleWheel",{get:function(){return this._handleWheel},set:function(t){this._handleWheel=e.asBoolean(t),this._syncProp(this,"handleWheel")},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"repeatButtons",{get:function(){return!this._rptUp.disabled},set:function(t){this._rptUp.disabled=this._rptDn.disabled=!e.asBoolean(t),this._syncProp(this,"repeatButtons")},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"showYearPicker",{get:function(){return this._yrPicker},set:function(t){t!=this._yrPicker&&(this._yrPicker=e.asBoolean(t),this._syncProp(this,"showYearPicker"))},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"showMonthPicker",{get:function(){return this._mtPicker},set:function(t){if(t!=this._mtPicker){var i=n;e.isBoolean(t)&&(t=t?i.FirstMonth:i.None),this._mtPicker=e.asEnum(t,i),e.toggleClass(this.hostElement,"wj-btns-outside",this._getShowMonthPicker()==i.Outside),this.refresh(),this._syncProp(this,"showMonthPicker")}},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"firstDayOfWeek",{get:function(){return this._fdw},set:function(t){if(t!=this._fdw){if((t=e.asNumber(t,!0))&&(t>6||t<0))throw"firstDayOfWeek must be between 0 and 6 (Sunday to Saturday).";this._fdw=t,this.refresh(),this._syncProp(this,"firstDayOfWeek")}},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"displayMonth",{get:function(){return this._month},set:function(t){t=e.asDate(t),t=this._getMonth(t);var i=this._getDisplayMonthRange();i.to&&t>i.to&&(t=i.to),i.from&&t<i.from&&(t=i.from),e.DateTime.equals(this.displayMonth,t)||(this._month=t,this.invalidate(!0),this.onDisplayMonthChanged())},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"monthCount",{get:function(){var e=this.hostElement;return e?e.querySelectorAll(".wj-calendar").length+1:0},set:function(t){var i=this,n=this.hostElement;if(t!=this.monthCount&&n){var s=n.querySelectorAll(".wj-calendar");t=e.asInt(t,!1),e.assert(t>0,"monthCount must be >= 1."),e.assert(1==t||!e.closest(n.parentElement,".wj-calendar"),"Only top-level calendars can set monthCount.");for(var r=0;r<s.length;r++){var a=s[r];e.removeChild(a),this._getCalendar(a).dispose()}this._cals=[this];for(r=1;r<t;r++){a=new o(document.createElement("div"),{itemFormatter:this.itemFormatter,itemValidator:this.itemValidator,formatItem:function(e,t){return i.onFormatItem(t)}});for(var l in a._selMode=this._selMode,a._value=this._value,a._rngEnd=this._rngEnd,this)if(!/^(_.*|constructor|displayMonth|monthCount|hostElement|rightToLeft|isUpdating|isTouching)$/.test(l)){var h=this[l];e.isFunction(h)||h instanceof e.Event||(a[l]=h)}this._cals.push(a),n.appendChild(a.hostElement)}e.toggleClass(n,"wj-calendar-multimonth",t>1),this._syncProp(this,"displayMonth")}},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"formatYearMonth",{get:function(){return this._fmtYrMo},set:function(t){t!=this._fmtYrMo&&(this._fmtYrMo=e.asString(t),this._syncProp(this,"formatYearMonth"),this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"formatDayHeaders",{get:function(){return this._fmtDayHdr},set:function(t){t!=this._fmtDayHdr&&(this._fmtDayHdr=e.asString(t),this._syncProp(this,"formatDayHeaders"),this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"formatDays",{get:function(){return this._fmtDay},set:function(t){t!=this._fmtDay&&(this._fmtDay=e.asString(t),this._syncProp(this,"formatDays"),this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"formatYear",{get:function(){return this._fmtYr},set:function(t){t!=this._fmtYr&&(this._fmtYr=e.asString(t),this._syncProp(this,"formatYear"),this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"formatMonths",{get:function(){return this._fmtMonths},set:function(t){t!=this._fmtMonths&&(this._fmtMonths=e.asString(t),this._syncProp(this,"formatMonths"),this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"showHeader",{get:function(){return"none"!=this._tbHdr.style.display},set:function(t){t!=this.showHeader&&(this._tbHdr.style.display=e.asBoolean(t)?"":"none",this._syncProp(this,"showHeader"))},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"monthView",{get:function(){return"none"!=this._tbMth.style.display},set:function(t){if(t!=this.monthView){this._tbMth.style.display=t?"":"none",this._tbYr.style.display=t?"none":"",this.refresh();var i=e.culture.Calendar.ariaLabels;e.setAriaLabel(this._btnPrv,t?i.prvMo:i.prvYr),e.setAriaLabel(this._btnTdy,t?i.today:i.currMo),e.setAriaLabel(this._btnNxt,t?i.nxtMo:i.nxtYr),e.setAriaLabel(this._btnMth,t?i.monthView:i.yearView),this._syncProp(this,"monthView")}},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"weeksBefore",{get:function(){return this._wksBefore},set:function(t){t!=this._wksBefore&&(this._wksBefore=Math.floor(e.asNumber(t,!1,!0)),this._syncProp(this,"weeksBefore"),this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"weeksAfter",{get:function(){return this._wksAfter},set:function(t){t!=this._wksAfter&&(this._wksAfter=Math.floor(e.asNumber(t,!1,!0)),this._syncProp(this,"weeksAfter"),this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"itemFormatter",{get:function(){return this._itemFormatter},set:function(t){t!=this._itemFormatter&&(this._itemFormatter=e.asFunction(t),this._syncProp(this,"itemFormatter"),this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"itemValidator",{get:function(){return this._itemValidator},set:function(t){t!=this._itemValidator&&(this._itemValidator=e.asFunction(t),this._syncProp(this,"itemValidator"),this.invalidate())},enumerable:!0,configurable:!0}),o.prototype.hitTest=function(t){var i=t instanceof MouseEvent?t.target:t instanceof Element?t:null;return e.assert(null!=i,"MouseEvent or Element expected"),i?i[o._DATE_KEY]:null},o.prototype.ensureVisible=function(t){if(null!=t){var i=this._getCalendars(),n=i.indexOf(this),s=i[0],o=i[i.length-1];t<s.displayMonth?this.displayMonth=e.DateTime.addMonths(this._getMonth(t),n):t>o.displayMonth&&(this.displayMonth=e.DateTime.addMonths(this._getMonth(t),n-i.length+1))}},o.prototype.onValueChanged=function(e){this.valueChanged.raise(this,e),this._syncProp(this,"value")},o.prototype.onRangeEndChanged=function(e){this.rangeEndChanged.raise(this,e),this._syncProp(this,"rangeEnd"),this._value&&this._rngEnd&&this.onRangeChanged(e)},o.prototype.onRangeChanged=function(e){this.rangeChanged.raise(this,e)},o.prototype.onDisplayMonthChanged=function(e){this.displayMonthChanged.raise(this,e),this._syncProp(this,"displayMonth")},o.prototype.onFormatItem=function(e){this.formatItem.raise(this,e)},o.prototype._containsFocusImpl=function(e){return s.prototype._containsFocusImpl.call(this,e)||this._lbYears._containsFocusImpl(e)},o.prototype.dispose=function(){this._rptUp.element=null,this._rptDn.element=null,this._lbYears.dispose(),s.prototype.dispose.call(this)},o.prototype.refresh=function(t){void 0===t&&(t=!0);var i=this.hostElement,n=this.containsFocus();if(i){s.prototype.refresh.call(this,t),t&&this._updateContent(),this._updateSelection();var o=this._getDisplayMonthRange(),r=this.displayMonth;if(e.enable(this._btnPrv,null==o.from||r>o.from),e.enable(this._btnNxt,null==o.to||r<o.to),n){var a=(this.monthView?this._tbMth:this._tbYr).querySelector("td.wj-state-selected")||i;a&&a.focus()}var l=this._getCalendars();l.length>1&&this==l[0]&&l.forEach(function(e,i){i>0&&e.refresh(t)})}},o.prototype._getShowMonthPicker=function(){var e=n,t=this._getCalendars(),i=t.indexOf(this),s=this.showMonthPicker;switch(s){case e.FirstMonth:case e.Outside:return 0==i?s:0;case e.LastMonth:return i==t.length-1?s:0;case e.FirstAndLastMonths:return 0==i||i==t.length-1?s:0;case e.AllMonths:return s}return 0},o.prototype._getDisplayMonthRange=function(){var t={from:null,to:null};if(this.min||this.max){var i=this._getCalendars(),n=i.indexOf(this),s=this._mthMode()?e.DateTime.addYears:e.DateTime.addMonths;this.min&&(t.from=s(this._getMonth(this.min),n)),this.max&&(t.to=s(this._getMonth(this.max),n-i.length+1))}return t},o.prototype._getCalendar=function(t){return e.Control.getControl(t)},o.prototype._getCalendars=function(){var t=e.closest(this.hostElement,".wj-calendar-multimonth");return(t?this._getCalendar(t):this)._cals},o.prototype._syncProp=function(t,i){var n=this;if(!this._syncing){var s=this._getCalendars();if(s&&s.length>1){var o=t[i],r=this._mthMode()?e.DateTime.addYears:e.DateTime.addMonths;"displayMonth"==i&&(o=r(o,-s.indexOf(t))),s[0].deferUpdate(function(){n._syncing=!0,s.forEach(function(e,s){if(e!=t){var a=e.displayMonth;e[i]="displayMonth"==i?r(o,s):o,"value"==i&&(e.displayMonth=a,n._rngMode()&&(e.rangeEnd=null))}}),n._syncing=!1})}}},o.prototype._updateContent=function(){var t=this.displayMonth,i=e.Globalize.format,n=e.DateTime,s=this._getShowMonthPicker();e.setText(this._spMth,i(t,this._fmtYrMo));var r=this._btnMth.querySelector(".wj-glyph-down");r&&(r.style.display=this._mthMode()||!s?"none":"");var a=e.closest(this._btnTdy,".wj-btn-group");a&&(a.style.display=s?"":"none");for(var l=null!=this._fdw?this._fdw:e.Globalize.getFirstDayOfWeek(),h=n.addDays(t,-(t.getDay()-l+7)%7),c=n.monthLast(t),u=this._tbMth.querySelectorAll("td"),d=0;d<7&&d<u.length;d++){var p=n.addDays(h,d);e.setText(u[d],i(p,this._fmtDayHdr))}var f=this._tbMth.querySelectorAll("tr");for(d=1;d<f.length;d++)e.removeChild(f[d]);var _=n.addDays(h,-7*this._wksBefore);for(d=0;d<this._wksBefore;d++)_=this._addWeek(_,"wj-week-before");for(;_<=c;)_=this._addWeek(_);for(d=0;d<this._wksAfter;d++)_=this._addWeek(_,"wj-week-after");(u=this._tbYr.querySelectorAll("td")).length&&e.setText(u[0],i(t,this._fmtYr));for(d=1;d<u.length;d++){_=n.newDate(t.getFullYear(),d-1,1);var m=u[d],g=!this._monthInValidRange(_);m[o._DATE_KEY]=_,e.setText(m,i(_,this._fmtMonths)),e.toggleClass(m,"wj-state-disabled",g),e.setAriaLabel(m,e.Globalize.format(_,"MMMM yyyy"))}},o.prototype._updateSelection=function(){for(var t=o._DATE_KEY,i=e.DateTime,n=this._tbMth.querySelectorAll("td"),s=7;s<n.length;s++){var r=(d=n[s])[t],a=this.value,l=this.rangeEnd,h=this._selMode&&null!=a&&i.sameDate(r,a),c=this._selMode&&null!=a&&i.sameDate(r,l),u=this._selMode&&null!=a&&r>a&&null!=l&&r<=l;e.toggleClass(d,"wj-state-selected",h),e.toggleClass(d,"wj-state-multi-selected",u),e.toggleClass(d,"wj-state-last-selected",c),e.setAttribute(d,"aria-selected",!!h||null),this._customizeCell(s,r,d)}n=this._tbYr.querySelectorAll("td");for(s=0;s<n.length;s++){var d;r=(d=n[s])[t],h=this._sameMonth(r,this.value);e.toggleClass(d,"wj-state-selected",h),e.setAttribute(d,"aria-selected",!!h||null)}},o.prototype._addWeek=function(t,i){for(var n=this._createElement("tr",this._tbMth,i),s=e.DateTime,r=0;r<7;r++){var a=this._createElement("td",n),l=s.addDays(t,r);a[o._DATE_KEY]=l,e.setText(a,e.Globalize.format(l,this._fmtDay)),e.setAriaLabel(a,e.Globalize.format(l,"D"));var h=!this._valid(l),c=l.getDay(),u=l.getMonth()!=this.displayMonth.getMonth();e.toggleClass(a,"wj-day-today",s.sameDate(l,s.newDate())),e.toggleClass(a,"wj-day-weekend",0==c||6==c),e.toggleClass(a,"wj-day-othermonth",u||!this._inValidRange(l)||h),e.toggleClass(a,"wj-state-invalid",h)}return s.addDays(t,7)},o.prototype._customizeCell=function(i,n,s){if(e.isFunction(this.itemFormatter)&&this.itemFormatter(n,s),this.formatItem.hasHandlers){var o=new t.FormatItemEventArgs(i,n,s);this.onFormatItem(o)}},o.prototype._canChangeValue=function(){return!this._readOnly&&this._selMode!=i.None},o.prototype._valid=function(t){return!(!e.isDate(t)||!e.DateTime.sameDate(t,this._clamp(t)))&&(!e.isFunction(this.itemValidator)||this.itemValidator(t))},o.prototype._inValidRange=function(t){var i=e.DateTime.fromDateTime;return!(this.min&&t<i(this.min,t))&&!(this.max&&t>i(this.max,t))},o.prototype._monthInValidRange=function(t){if(this.min||this.max){var i=t.getFullYear(),n=t.getMonth(),s=e.DateTime,o=s.newDate(i,n,1),r=s.newDate(i,n+1,0);if(this.min&&this.min>r)return!1;if(this.max&&this.max<o)return!1}return!0},o.prototype._sameMonth=function(t,i){return e.isDate(t)&&e.isDate(i)&&t.getMonth()==i.getMonth()&&t.getFullYear()==i.getFullYear()},o.prototype._getValidDate=function(t,i){if(e.isDate(t))for(var n=t.getFullYear(),s=t.getMonth()+(i?0:1),o=i?1:0,r=e.DateTime,a=r.newDate(n,s,o),l=i?1:-1,h=0;h<31;h++){if(this._valid(a))return a;a=r.addDays(a,l)}return null},o.prototype._clamp=function(t){if(t){var i=e.DateTime.fromDateTime;if(this.min){var n=i(this.min,t);t<n&&(t=n)}if(this.max){var s=i(this.max,t);t>s&&(t=s)}}return t},o.prototype._createChildren=function(){var t=this.getTemplate();this.applyTemplate("wj-control wj-calendar",t,{_tbHdr:"tbl-header",_btnMth:"btn-month",_spMth:"span-month",_btnPrv:"btn-prev",_btnTdy:"btn-today",_btnNxt:"btn-next",_tbMth:"tbl-month",_tbYr:"tbl-year"}),this._tbYr.style.display="none";var i=e.culture.Calendar.ariaLabels;e.setAriaLabel(this._tbMth,i.calendar),e.setAriaLabel(this._tbYr,i.calendar),e.setAriaLabel(this._btnPrv,i.calendar),e.setAriaLabel(this._btnMth,i.monthView),e.setAriaLabel(this._btnPrv,i.prvMo),e.setAriaLabel(this._btnTdy,i.today),e.setAriaLabel(this._btnNxt,i.nxtMo);for(var n=this._createElement("tr",this._tbMth,"wj-header"),s=0;s<7;s++)this._createElement("td",n);n=this._createElement("tr",this._tbYr,"wj-header"),this._createElement("td",n).setAttribute("colspan","4");for(var o=0;o<3;o++){n=this._createElement("tr",this._tbYr);for(var r=0;r<4;r++)this._createElement("td",n)}},o.prototype._createYearPicker=function(){var i=this,n=this.hostElement,s=this._createElement("div",null,"wj-dropdown-panel wj-yearpicker");s.tabIndex=this._orgTabIndex,this._lbYears=new t.ListBox(s,{lostFocus:function(t){if(e.hidePopup(s),i._tmYrHidden=Date.now(),i.removeEventListener(window,"touchstart"),t.selectedIndex>-1){var n=e.DateTime.clone(i.displayMonth);n.setFullYear(t.selectedIndex+t.itemsSource[0]),i.displayMonth=n}}}),this.addEventListener(s,"keydown",function(t){switch(t.keyCode){case e.Key.Enter:n.focus();break;case e.Key.Escape:i._lbYears.selectedIndex=-1,n.focus()}t.defaultPrevented&&t.stopPropagation()}),this.addEventListener(s,"click",function(e){n.focus()})},o.prototype._createElement=function(t,i,n){var s=document.createElement(t);return n&&e.addClass(s,n),i&&i.appendChild(s),s},o.prototype._click=function(t){var i=this;if(!t.defaultPrevented&&0==t.button){var n=!1,s=t.target;if(e.contains(this._btnMth,s)&&!this._mthMode()&&this._getShowMonthPicker()?(this.monthView=!this.monthView,n=!0):e.contains(this._btnPrv,s)?(this._navigate(-1),n=!0):e.contains(this._btnNxt,s)?(this._navigate(1),n=!0):e.contains(this._btnTdy,s)&&(this._navigate(0),n=!0),s&&!n&&this._yrPicker&&e.contains(this._tbYr,s)&&e.closest(s,".wj-header")){if(Date.now()-this._tmYrHidden<600)return void t.preventDefault();for(var o=this.displayMonth.getFullYear(),r=this.min?this.min.getFullYear():o-100,a=this.max?this.max.getFullYear():o+100,l=[],h=r;h<=a;h++)l.push(h);var c=this._lbYears,u=c.hostElement,d=e.closest(s,".wj-header"),p=this.hostElement,f=e.closest(p,".wj-inputdate-dropdown")||p;return c.itemsSource=l,c.selectedIndex=o-l[0],e.setAttribute(u,"dir",this.rightToLeft?"rtl":null),e.setCss(u,{minWidth:"",width:d.offsetWidth}),e.showPopup(u,d,!1,!1,f),requestAnimationFrame(function(){c.showSelection(!0)}),this.addEventListener(window,"touchstart",function(t){e.contains(u,t.target)||(e.hidePopup(u),i._tmYrHidden=Date.now(),i.removeEventListener(window,"touchstart"))}),void t.preventDefault()}if(s&&!n){var _=e.closest(s,"td");if(_){var m=this.hitTest(_),g=e.DateTime.fromDateTime;if(this.monthView){if(m&&this._canChangeValue()){var b=g(m,this._value);this._inValidRange(b)&&this._valid(b)&&(this._rngMode()&&this.value&&!this.rangeEnd&&b>=this.value?this.rangeEnd=b:this.value=b),n=!0}}else if(m){if(this.displayMonth=m,this._mthMode()){if(this._canChangeValue()){b=g(this.displayMonth,this.value);this._inValidRange(b)&&(this.value=b)}}else this.monthView=!0;n=!0}}}n&&(t.preventDefault(),this.focus())}},o.prototype._keydown=function(t){if(!t.defaultPrevented){if(t.altKey)switch(t.keyCode){case e.Key.Up:case e.Key.Down:return;case e.Key.End:return this._navigate(0),void t.preventDefault()}if(!(t.ctrlKey||t.metaKey||t.shiftKey&&!this._rngMode())){var i=this._getKeyCode(t),n=0,s=0,o=!0;if(this.monthView)switch(i){case e.Key.Left:n=-1;break;case e.Key.Right:n=1;break;case e.Key.Up:n=-7;break;case e.Key.Down:n=7;break;case e.Key.PageDown:s=t.altKey?12:1;break;case e.Key.PageUp:s=t.altKey?-12:-1;break;case e.Key.Home:case e.Key.End:if(this._canChangeValue()&&!t.shiftKey){var r=this.value||this.displayMonth;(l=this._getValidDate(r,i==e.Key.Home))&&(this.value=e.DateTime.fromDateTime(l,this.value),this._rngEnd=null)}break;default:o=!1}else switch(i){case e.Key.Left:s=-1;break;case e.Key.Right:s=1;break;case e.Key.Up:s=-4;break;case e.Key.Down:s=4;break;case e.Key.PageDown:s=t.altKey?120:12;break;case e.Key.PageUp:s=t.altKey?-120:-12;break;case e.Key.Home:s=this.value?-this.value.getMonth():0;break;case e.Key.End:s=this.value?11-this.value.getMonth():0;break;case e.Key.Enter:this._mthMode()?o=!1:this.monthView=!0;break;default:o=!1}if(this._canChangeValue()&&(n||s)){var a=t.shiftKey&&null!=this.rangeEnd?this.rangeEnd:this.value,l=e.DateTime;if(a?(a=l.addDays(a,n),a=l.addMonths(a,s)):a=this._getValidDate(new Date,!0),s&&!this._valid(a)){r=a.getMonth();for(var h=1;h<31&&!this._valid(a);h++){var c=l.addDays(a,+h),u=l.addDays(a,-h);this._valid(c)&&c.getMonth()==r?a=c:this._valid(u)&&u.getMonth()==r&&(a=u)}}for(h=0;h<31&&!this._valid(a);h++)a=l.addDays(a,n>0||s>0?1:-1);t.shiftKey&&a>this.value?this.rangeEnd=a:this.value=a}o&&t.preventDefault()}}},o.prototype._getMonth=function(t){var i=e.DateTime;return t=t||i.newDate(),i.newDate(t.getFullYear(),t.getMonth(),1)},o.prototype._mthMode=function(){return this.selectionMode==i.Month},o.prototype._rngMode=function(){return this.selectionMode==i.Range},o.prototype._navigate=function(t){var i=this.monthView,n=this.displayMonth,s=e.DateTime;switch(t){case 0:var o=s.newDate();this._canChangeValue()&&(this.value=i?s.fromDateTime(o,this.value):this._getMonth(o)),n=this._getMonth(o);break;case 1:n=s.addMonths(n,i?1:12);break;case-1:n=s.addMonths(n,i?-1:-12)}this.displayMonth=n},o.prototype._setTabOrder=function(e){s.prototype._setTabOrder.call(this,e),this._lbYears.tabOrder=this._orgTabIndex},o._DATE_KEY="$WJ-DATE",o.controlTemplate='<div class="wj-content wj-calendar-outer"><div wj-part="tbl-header" class="wj-calendar-header"><div wj-part="btn-month" class="wj-month-select" role="button"><span wj-part="span-month"></span> <span class="wj-glyph-down"></span></div><div class="wj-btn-group"><button wj-part="btn-prev" class="wj-btn wj-btn-default" tabindex="-1"><span class="wj-glyph-left"></span></button><button wj-part="btn-today" class="wj-btn wj-btn-default" tabindex="-1"><span class="wj-glyph-circle"></span></button><button wj-part="btn-next" class="wj-btn wj-btn-default" tabindex="-1"><span class="wj-glyph-right"></span></button></div></div><table wj-part="tbl-month" class="wj-calendar-month" role="grid"></table><table wj-part="tbl-year" class="wj-calendar-year" role="grid"></table></div>',o}(e.Control);t.Calendar=s}(e.input||(e.input={}))}(wijmo||(wijmo={})),function(e){!function(t){"use strict";var i;e._addCultureInfo("DropDown",{ariaLabels:{tgl:"Toggle Dropdown"}}),function(e){e[e.Select=0]="Select",e[e.Open=1]="Open",e[e.Toggle=2]="Toggle"}(i=t.ClickAction||(t.ClickAction={}));var n=function(t){function n(n,s){var o=t.call(this,n)||this;o._clickAction=i.Select,o._showBtn=!0,o._autoExpand=!0,o._animate=!1,o._oldText="",o.textChanged=new e.Event,o.isDroppedDownChanging=new e.Event,o.isDroppedDownChanged=new e.Event;var r=o.getTemplate();o.applyTemplate("wj-control wj-content wj-dropdown",r,{_tbx:"input",_btn:"btn",_dropDown:"dropdown"},"input"),o._dropDown.style.display="none";var a=e.culture.DropDown.ariaLabels;e.setAriaLabel(o._btn.querySelector("button"),a.tgl);var l=o._elRef=o._tbx;e.disableAutoComplete(l),o._createDropDown(),o._updateBtn();var h=o.hostElement;e.addClass(h,"wj-state-collapsed"),o.addEventListener(window,"resize",function(){o.isDroppedDown&&o.invalidate()});var c=o.dropDown,u=o.addEventListener.bind(o),d=o._updateFocusState.bind(o);u(c,"blur",d,!0),u(c,"focus",d);var p=o._keydown.bind(o);u(h,"keydown",p),u(c,"keydown",p);var f=o._keypress.bind(o);return u(h,"keypress",f,!0),u(c,"keypress",f,!0),u(l,"input",function(){o._setText(o.text,!1)}),u(l,"blur",function(){o._commitText(!0)},!0),u(l,"click",function(){o._autoExpand&&o._expandSelection()}),u(l,"mousedown",function(e){switch(o._clickAction){case i.Open:o.isDroppedDown||(e.preventDefault(),o.focus(),o.isDroppedDown=!0);break;case i.Toggle:e.preventDefault(),o.focus(),o.isDroppedDown=!o.isDroppedDown}}),u(o._btn,"mousedown",function(e){o._btnclick(e)}),e.removeChild(c),e.isIE()&&o._elRef==o._tbx&&u(h,"mouseup",function(t){if(!t.defaultPrevented&&0==t.button&&e.hasClass(t.target,"wj-btn")){var i=e.getActiveElement();i&&i!=t.target&&setTimeout(function(){i.focus()})}}),e.isIE9()&&u(l,"keyup",function(){o._setText(o.text,!1)}),u(c,"click",o._dropDownClick.bind(o)),o}return __extends(n,t),Object.defineProperty(n.prototype,"text",{get:function(){return this._tbx.value},set:function(e){e!=this.text&&(this._setText(e,!0),this._commitText())},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"inputElement",{get:function(){return this._tbx},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"inputType",{get:function(){return this._tbx.type},set:function(t){this._tbx.type=e.asString(t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"isReadOnly",{get:function(){return this._tbx.readOnly},set:function(t){this._tbx.readOnly=e.asBoolean(t),e.toggleClass(this.hostElement,"wj-state-readonly",this.isReadOnly)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"isRequired",{get:function(){return this._tbx.required},set:function(t){this._tbx.required=e.asBoolean(t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"placeholder",{get:function(){return this._tbx.placeholder},set:function(e){this._tbx.placeholder=e},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"clickAction",{get:function(){return this._clickAction},set:function(t){this._clickAction=e.asEnum(t,i)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"isDroppedDown",{get:function(){var e=this._dropDown;return e&&"none"!=e.style.display},set:function(t){var i=this,n=this.hostElement,s=this._dropDown,o=this.containsFocus();n&&s&&(t=e.asBoolean(t)&&!this.isDisabled&&!this.isReadOnly&&n.offsetWidth>0)!=this.isDroppedDown&&this.onIsDroppedDownChanging(new e.CancelEventArgs)&&(t?(this._minWidthDropdown=s.style.minWidth,s.style.display="",this._updateDropDown(),this.addEventListener(window,"touchstart",function(t){for(var s=t.target;s;){if(s==n)return;s=s[e.Control._OWNR_KEY]||s.parentNode}e.Control._touching=!0,i.isDroppedDown=!1,e.Control._touching=!1})):(this.removeEventListener(window,"touchstart"),e.hidePopup(s),s.style.minWidth=this._minWidthDropdown),o&&(this.isTouching&&this.showDropDownButton?n.focus():this.selectAll()),this._updateFocusState(),e.toggleClass(n,"wj-state-collapsed",!this.isDroppedDown),this.onIsDroppedDownChanged())},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"dropDown",{get:function(){return this._dropDown},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"dropDownCssClass",{get:function(){return this._cssClass},set:function(t){t!=this._cssClass&&(e.removeClass(this._dropDown,this._cssClass),this._cssClass=e.asString(t),e.addClass(this._dropDown,this._cssClass))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"showDropDownButton",{get:function(){return this._showBtn},set:function(t){this._showBtn=e.asBoolean(t),this._updateBtn()},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"autoExpandSelection",{get:function(){return this._autoExpand},set:function(t){this._autoExpand=e.asBoolean(t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"isAnimated",{get:function(){return this._animate},set:function(t){this._animate=e.asBoolean(t)},enumerable:!0,configurable:!0}),n.prototype.selectAll=function(){var t=this._tbx;this._elRef==t&&e.setSelectionRange(t,0,this.text.length),this.containsFocus()||this.focus()},n.prototype.onTextChanged=function(e){this.textChanged.raise(this,e),this._updateState()},n.prototype.onIsDroppedDownChanging=function(e){return this.isDroppedDownChanging.raise(this,e),!e.cancel},n.prototype.onIsDroppedDownChanged=function(e){this.isDroppedDownChanged.raise(this,e)},n.prototype.onGotFocus=function(i){this.isTouching||e.contains(this._dropDown,e.getActiveElement())||this.selectAll(),t.prototype.onGotFocus.call(this,i)},n.prototype.onLostFocus=function(e){this._commitText(),this.isDroppedDown=!1,t.prototype.onLostFocus.call(this,e)},n.prototype._containsFocusImpl=function(i){return t.prototype._containsFocusImpl.call(this,i)||this.isDroppedDown&&e.contains(this._dropDown,i)},n.prototype.dispose=function(){this.isDroppedDown=!1;var i=this._dropDown;if(i){this._dropDown=null,e.removeChild(i);var n=e.Control.getControl(i);n&&n.dispose()}t.prototype.dispose.call(this)},n.prototype.refresh=function(i){void 0===i&&(i=!0),t.prototype.refresh.call(this,i);var n=this.hostElement;if(n&&n.offsetHeight&&this.isDroppedDown){var s=e.getActiveElement();this.isAnimated&&""!=this._dropDown.style.opacity||e.showPopup(this._dropDown,n,!1,!1,null==this.dropDownCssClass),s instanceof HTMLElement&&s!=e.getActiveElement()&&s.focus()}},n.prototype._handleResize=function(){this.isDroppedDown&&this.refresh()},n.prototype._dropDownClick=function(e){e.stopPropagation()},n.prototype._expandSelection=function(){var t=this._tbx,i=t.value,n=t.selectionStart,s=t.selectionEnd;if(i&&n==s){var o=this._getCharType(i,n);if(o>-1){for(;s<i.length&&this._getCharType(i,s)==o;s++);for(;n>0&&this._getCharType(i,n-1)==o;n--);n!=s&&e.setSelectionRange(t,n,s)}}},n.prototype._getCharType=function(e,t){var i=e[t];return i>="0"&&i<="9"?0:i>="a"&&i<="z"||i>="A"&&i<="Z"?1:-1},n.prototype._keydown=function(t){if(!t.defaultPrevented&&!this._isHiddenEditor()){switch(t.keyCode){case e.Key.Tab:case e.Key.Escape:case e.Key.Enter:this.isDroppedDown&&(this.isDroppedDown=!1,t.keyCode==e.Key.Tab||this.containsFocus()||this.focus(),t.preventDefault());break;case e.Key.F4:case e.Key.Up:case e.Key.Down:if(t.keyCode==e.Key.F4||t.altKey){var i=this.hostElement;i&&i.offsetHeight&&(this.isDroppedDown=!this.isDroppedDown,t.preventDefault())}}if(!t.defaultPrevented&&t.keyCode==e.Key.Escape&&e.isIE()){var n=this._tbx;if(t.target==n){var s=n.value;n.value=s+" ",n.value=s}}}},n.prototype._isHiddenEditor=function(){return e.hasClass(this._tbx,"wj-grid-ime")},n.prototype._keypress=function(e){"AltLeft"!=e.code&&"AltRight"!=e.code||e.preventDefault()},n.prototype._btnclick=function(e){e.defaultPrevented||0!=e.button||(e.preventDefault(),this.isTouching?this._containsFocus()||this.hostElement.focus():this.focus(),this.isDroppedDown=!this.isDroppedDown)},n.prototype._setText=function(e,t){(e=(e||"").toString())!=this._tbx.value&&(this._tbx.value=e),e!=this._oldText&&(this._oldText=e,this.onTextChanged()),this._updateState()},n.prototype._updateBtn=function(){this._btn.style.display=this._showBtn?"":"none"},n.prototype._createDropDown=function(){},n.prototype._commitText=function(e){},n.prototype._updateDropDown=function(){if(this.isDroppedDown){this._commitText();var t=this.dropDown;e.setAttribute(t,"dir",this.rightToLeft?"rtl":null),e.showPopup(t,this.hostElement,!1,this._animate,null==this.dropDownCssClass)}},n.controlTemplate='<div class="wj-template"><div class="wj-input"><div class="wj-input-group wj-input-btn-visible"><input wj-part="input" type="text" class="wj-form-control"><span wj-part="btn" class="wj-input-group-btn"><button class="wj-btn wj-btn-default" tabindex="-1"><span class="wj-glyph-down"></span></button></span></div></div><div wj-part="dropdown" class="wj-content wj-dropdown-panel"></div></div>',n}(e.Control);t.DropDown=n}(e.input||(e.input={}))}(wijmo||(wijmo={})),function(e){!function(t){"use strict";var i,n;!function(e){e[e.None=0]="None",e[e.ClickOwner=1]="ClickOwner",e[e.ClickPopup=2]="ClickPopup",e[e.Click=3]="Click",e[e.BlurOwner=4]="BlurOwner",e[e.BlurPopup=8]="BlurPopup",e[e.Blur=12]="Blur",e[e.ClickOrBlur=15]="ClickOrBlur",e[e.DownOwner=16]="DownOwner",e[e.DownPopup=32]="DownPopup",e[e.Down=48]="Down",e[e.EnterOwner=64]="EnterOwner",e[e.EnterPopup=128]="EnterPopup",e[e.Enter=192]="Enter",e[e.LeaveOwner=256]="LeaveOwner",e[e.LeavePopup=512]="LeavePopup",e[e.Leave=768]="Leave"}(i=t.PopupTrigger||(t.PopupTrigger={})),function(e){e[e.None=0]="None",e[e.Left=1]="Left",e[e.Top=2]="Top",e[e.Right=4]="Right",e[e.Bottom=8]="Bottom",e[e.LeftTop=3]="LeftTop",e[e.RightTop=6]="RightTop",e[e.RightBottom=12]="RightBottom",e[e.LeftBottom=9]="LeftBottom"}(n||(n={}));var s=function(s){function r(t,n){var o=s.call(this,t)||this;o._owner=null,o._modal=!1,o._position=e.PopupPosition.BelowLeft,o._showTrigger=i.ClickOwner,o._hideTrigger=i.Blur,o._hideAnim=[],o._fadeIn=!0,o._fadeOut=!0,o._removeOnHide=!0,o._draggable=!1,o._resizable=!1,o._result=null,o._resultEnter=null,o._resultSubmit=null,o._callback=null,o._visible=!1,o._ownerClickBnd=o._ownerClick.bind(o),o._ownerDownBnd=o._ownerDown.bind(o),o._ownerBlurBnd=o._ownerBlur.bind(o),o._ownerEnterBnd=o._ownerEnter.bind(o),o._ownerLeaveBnd=o._ownerLeave.bind(o),o._mousedownBnd=o._mousedown.bind(o),o._mousemoveBnd=o._mousemove.bind(o),o._mousedragBnd=o._mousedrag.bind(o),o._mouseupBnd=o._mouseup.bind(o),o._hideBnd=o.hide.bind(o),o._lastShow=0,o.showing=new e.Event,o.shown=new e.Event,o.hiding=new e.Event,o.hidden=new e.Event,o.resizing=new e.Event,o.resized=new e.Event,o.dragging=new e.Event,o.dragged=new e.Event,o.sizeChanging=new e.Event,o.sizeChanged=new e.Event,o.positionChanging=new e.Event,o.positionChanged=new e.Event;var r=o.hostElement;e.addClass(r,"wj-control wj-content wj-popup"),r.getAttribute("tabindex")||(r.tabIndex=0),e.hidePopup(r,!1);var a=o.addEventListener.bind(o);a(r,"compositionstart",function(){o._composing=!0}),a(r,"compositionend",function(){o._composing=!1}),a(window,"resize",function(){!o.isVisible||o._dragged||o.isTouching||o.invalidate()}),a(r,"keydown",function(t){if(!t.defaultPrevented){if(t.keyCode!=e.Key.Escape||o._composing||(t.preventDefault(),o.hide()),t.keyCode==e.Key.Enter&&!o._composing){var i=o.dialogResultEnter;i&&(t.preventDefault(),o._validateAndHide(i))}t.keyCode==e.Key.Tab&&o.modal&&(t.preventDefault(),e.moveFocus(r,t.shiftKey?-1:1))}}),a(r,"click",function(e){var t=e.target;if(t instanceof HTMLElement){if(t instanceof HTMLButtonElement&&"submit"==t.type){var i=o.hostElement,n=o.dialogResultSubmit;i instanceof HTMLFormElement&&n&&i.reportValidity()&&(e.preventDefault(),o.hide(n))}var s=t.className.match(/\bwj-hide[\S]*\b/);s&&s.length>0&&(e.preventDefault(),e.stopPropagation(),o.hide(s[0]))}});var l=o._toggle.bind(o),h=i;return o.addEventListener(r,"click",function(e){o._ignoreClick||l(e,h.ClickPopup)},!0),o.addEventListener(r,"mousedown",function(e){o._ignoreClick=!1,l(e,h.DownPopup)},!0),o.addEventListener(r,"mouseenter",function(e){e.target==r&&l(e,h.EnterPopup)},!0),o.addEventListener(r,"mouseleave",function(e){e.target==r&&l(e,h.LeavePopup)},!0),o.addEventListener(r,"blur",function(e){o.containsFocus()||l(e,h.BlurPopup)},!0),a(document,"wheel",function(e){if(o.isVisible&&o._modal){for(var t=e.target;t&&t!=document.body;t=t.parentElement)if(t.scrollHeight>t.clientHeight)return;e.preventDefault()}}),o.initialize(n),o}return __extends(r,s),Object.defineProperty(r.prototype,"owner",{get:function(){return this._owner},set:function(t){var i=this._owner;i&&(this.removeEventListener(i,"click"),this.removeEventListener(i,"mousedown"),this.removeEventListener(i,"mouseenter"),this.removeEventListener(i,"mouseleave"),this.removeEventListener(i,"blur")),(i=this._owner=null!=t?e.getElement(t):null)&&(this.addEventListener(i,"click",this._ownerClickBnd,!0),this.addEventListener(i,"mousedown",this._ownerDownBnd,!0),this.addEventListener(i,"mouseenter",this._ownerEnterBnd,!0),this.addEventListener(i,"mouseleave",this._ownerLeaveBnd,!0),this.addEventListener(i,"blur",this._ownerBlurBnd,!0))},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"position",{get:function(){return this._position},set:function(t){this._position=e.asEnum(t,e.PopupPosition)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"content",{get:function(){return this.hostElement.firstElementChild},set:function(e){e!=this.content&&(this.hostElement.innerHTML="",e instanceof HTMLElement&&this.hostElement.appendChild(e))},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"showTrigger",{get:function(){return this._showTrigger},set:function(t){this._showTrigger=e.asEnum(t,i)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"hideTrigger",{get:function(){return this._hideTrigger},set:function(t){this._hideTrigger=e.asEnum(t,i)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"fadeIn",{get:function(){return this._fadeIn},set:function(t){this._fadeIn=e.asBoolean(t)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"fadeOut",{get:function(){return this._fadeOut},set:function(t){this._fadeOut=e.asBoolean(t)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"removeOnHide",{get:function(){return this._removeOnHide},set:function(t){if((t=e.asBoolean(t))!=this.removeOnHide&&(this._removeOnHide=t,!this.isVisible)){var i=this.hostElement;t?e.removeChild(i):i&&document.body&&(i.style.display="none",document.body.appendChild(i))}},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"modal",{get:function(){return this._modal},set:function(t){this._modal=e.asBoolean(t)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"isDraggable",{get:function(){return this._draggable},set:function(t){this._draggable=e.asBoolean(t)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"isResizable",{get:function(){return this._resizable},set:function(t){this._resizable=e.asBoolean(t)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"dialogResult",{get:function(){return this._result},set:function(e){this._result=e},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"dialogResultEnter",{get:function(){return this._resultEnter},set:function(e){this._resultEnter=e},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"dialogResultSubmit",{get:function(){return this._resultSubmit},set:function(t){this._resultSubmit=e.asString(t)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"isVisible",{get:function(){var e=this.hostElement;return this._visible&&null!=e&&e.offsetHeight>0},enumerable:!0,configurable:!0}),r.prototype.show=function(t,n){var s=this;if(this._lastShow=Date.now(),!this.isVisible){var o=this.hostElement;this.dialogResult=null,this._callback=null,this._oldFocus=null,this._myFocus=null,this._hideAnim.forEach(function(e){clearInterval(e)}),this._hideAnim.length=0;var r=new e.CancelEventArgs;this.onShowing(r)&&(null!=t&&(this.modal=e.asBoolean(t)),null!=n&&(this._callback=e.asFunction(n)),this._oldFocus=e.getActiveElement(),e.showPopup(o,this._owner,this._position,this._fadeIn,!1,this._hideBnd),this._modal&&this._showBackdrop(),this._composing=!1,this._visible=!0,this.onShown(r),this._clearTimeouts(),this.modal&&(this.addEventListener(window,"focus",function(){if(!s.containsFocus()){var t=s._myFocus;t&&t.offsetHeight?t.focus():e.moveFocus(o,0)}}),this.addEventListener(o,"focusin",function(){var t=e.getActiveElement();t&&e.contains(o,t)&&(t.tabIndex>-1||!s._myFocus)&&(s._myFocus=t)})),this._resized=this._dragged=this._ignoreClick=!1,this._handleDragResize(!0),this.addEventListener(window,"touchstart",function(t){s._hideTrigger&i.Blur&&!e.contains(o,t.target,!0)&&s.hide()}),setTimeout(function(){s.addEventListener(window,"click",function(t){s._hideTrigger&i.BlurPopup&&s.isDisabled&&!e.contains(o,t.target,!0)&&s.hide()})}),setTimeout(function(){if(!s.isDisabled&&!s.containsFocus()&&!s.isTouching){var t=o.querySelector("[autofocus]");t&&t.clientHeight>0&&!t.disabled&&t.tabIndex>-1&&!e.closest(t,"[disabled],.wj-state-disabled")?(t.focus(),e.isFunction(t.select)&&t.select()):e.moveFocus(o,0)}s.isDisabled||s.containsFocus()||(o.tabIndex=0,o.focus())},100))}},r.prototype.hide=function(n){var s=this;if(this._handleDragResize(!1),this.removeEventListener(window,"touchstart"),this.removeEventListener(window,"click"),this.isVisible){e.isUndefined(n)||(this.dialogResult=n);var o=new e.CancelEventArgs,a=this.hostElement;if(this.onHiding(o)){for(var l=this.containsFocus()?this._oldFocus:null,h=a.querySelectorAll(".wj-control.wj-dropdown"),c=0;c<h.length;c++){var u=e.Control.getControl(h[c]);u instanceof t.DropDown&&(u.isDroppedDown=!1)}var d=this.removeOnHide,p=this.fadeOut;this._bkDrop&&this._hideAnim.push(e.hidePopup(this._bkDrop,d,p)),this._hideAnim.push(e.hidePopup(a,d,p)),this._visible=!1,this._oldFocus=null,this._myFocus=null,this.removeEventListener(window,"focus"),this.removeEventListener(a,"focusin"),this.containsFocus()&&e.getActiveElement().blur(),setTimeout(function(){if(s._updateState(),s.onHidden(o),s._callback&&s._callback(s),s.hideTrigger&i.LeavePopup){var t=e.Control.getControl(e.closest(s.owner,".wj-popup"));if(t instanceof r&&0!=(t.hideTrigger&i.Leave)){var n=r._evtHover,a=n?document.elementFromPoint(n.clientX,n.clientY):null,l=e.Control.getControl(e.closest(a,".wj-popup"));l instanceof r&&!l.isVisible&&(a=null),a&&e.contains(t.hostElement,a,!0)||t.hide()}}}),this._clearTimeouts(),!this.isVisible&&l&&l.offsetHeight&&l.focus()}}},r.prototype.onShowing=function(e){return this.showing.raise(this,e),!e.cancel},r.prototype.onShown=function(e){this.shown.raise(this,e)},r.prototype.onHiding=function(e){return this.hiding.raise(this,e),!e.cancel},r.prototype.onHidden=function(e){this._wasVisible=!1,this.hidden.raise(this,e)},r.prototype.onResizing=function(e){return this.resizing.raise(this,e),!e.cancel},r.prototype.onResized=function(e){this.resized.raise(this,e)},r.prototype.onDragging=function(e){return this.dragging.raise(this,e),!e.cancel},r.prototype.onDragged=function(e){this.dragged.raise(this,e)},r.prototype.onSizeChanging=function(e){return this.sizeChanging.raise(this,e),!e.cancel},r.prototype.onSizeChanged=function(e){this.sizeChanged.raise(this,e)},r.prototype.onPositionChanging=function(e){return this.positionChanging.raise(this,e),!e.cancel},r.prototype.onPositionChanged=function(e){this.positionChanged.raise(this,e)},r.prototype.onLostFocus=function(e){if(s.prototype.onLostFocus.call(this,e),this._hideTrigger&i.BlurPopup&&!this.containsFocus()){var t=document.createEvent("Event");t.initEvent("blur",!0,!0),this._toggle(t,i.BlurPopup)}},r.prototype.dispose=function(){this.owner=null,s.prototype.dispose.call(this)},r.prototype.refresh=function(i){void 0===i&&(i=!0);var n=this.hostElement;if(s.prototype.refresh.call(this,i),this.isVisible&&!this._refreshing&&n){this._refreshing=!0;for(var o=e.getActiveElement(),r=this._owner?this._owner.getBoundingClientRect():null,a=[],l=n.querySelectorAll(".wj-dropdown"),h=0;h<l.length;h++){var c=e.Control.getControl(l[h]);c instanceof t.DropDown&&c.isDroppedDown&&(a.push(c),c.dropDown.style.display="none")}e.showPopup(n,r,this._position),a.forEach(function(e){e.dropDown.style.display="",e._updateDropDown()}),this._modal&&o instanceof HTMLElement&&o!=e.getActiveElement()&&o.focus(),this._refreshing=!1}},r.prototype._clearTimeouts=function(){this._toShow&&(clearTimeout(this._toShow),this._toShow=null),this._toHideLeave&&(clearTimeout(this._toHideLeave),this._toHideLeave=null),this._toHideBlur&&(clearTimeout(this._toHideBlur),this._toHideBlur=null)},r.prototype._handleDragResize=function(e){var t=this.hostElement,i=this._draggable?this._getHeaderElement():null,n=this.addEventListener.bind(this),s=this.removeEventListener.bind(this),o=this._mousemoveBnd,r=this._mousedownBnd;e?(n(t,"mousemove",o),n(t,"mousedown",r),n(t,"touchstart",r),i&&(i.style.touchAction="none")):(this._mousedownEvt=null,this._rcBounds=null,s(t,"mousemove",o),s(t,"mousedown",r),s(t,"touchstart",r),s(document,"mousemove",this._mousedragBnd),s(document,"mouseup",this._mouseupBnd),i&&(i.style.touchAction=""))},r.prototype._mousemove=function(e){if(!this._mousedownEvt){var t=this.hostElement,i=this._getEdges(t,e),s="",o=n;this._edges=i,this._resizable&&(i==o.LeftTop||i==o.RightBottom?s="nwse-resize":i==o.LeftBottom||i==o.RightTop?s="nesw-resize":i==o.Left||i==o.Right?s="ew-resize":i!=o.Top&&i!=o.Bottom||(s="ns-resize")),this._draggable&&!s&&this._getClosestHeader(e.target)&&(s="move"),t.style.cursor=s}},r.prototype._mousedown=function(t){if(!t.defaultPrevented){var i=t.touches&&t.touches.length>0?t.touches[0]:t;if(this._edges=this._getEdges(this.hostElement,i),this._edges||this._draggable&&this._getClosestHeader(t.target)){var n=new e.CancelEventArgs;if(this._edges?this.onResizing(n):this.onDragging(n)){this._mousedownEvt=i,this._rcBounds=this.hostElement.getBoundingClientRect();var s=this.addEventListener.bind(this),o=document,r=this._mousedragBnd,a=this._mouseupBnd;s(o,"mousemove",r),s(o,"touchmove",r),s(o,"mouseup",a),s(o,"touchend",a)}}this._ignoreClick=!1}},r.prototype._mouseup=function(){this._mousedownEvt=null,this._rcBounds=null;var e=this.removeEventListener.bind(this),t=document,i=this._mousedragBnd,n=this._mouseupBnd;e(t,"mousemove",i),e(t,"touchmove",i),e(t,"mouseup",n),e(t,"touchend",n),this._resized?this.onResized():this._dragged&&this.onDragged(),this._resized=this._dragged=this._ignoreClick=!1},r.prototype._mousedrag=function(t){if(!t.defaultPrevented){var i=this.hostElement,s=this._mousedownEvt,a=t.touches&&t.touches.length>0?t.touches[0]:t,l=a.clientX-s.clientX,h=a.clientY-s.clientY,c=this._rcBounds,u=this._edges,d=r._SZ_MIN,p=e.Rect.fromBoundingRect(c);if(u){if(u&n.Left?(p.left=c.left+l+(a.pageX-a.clientX),p.width=Math.max(c.width-l,d)):u&n.Right&&(p.left=c.left,p.width=Math.max(c.width+l,d)),u&n.Top?(p.top=c.top+h+(a.pageY-a.clientY),p.height=Math.max(c.height-h,d)):u&n.Bottom&&(p.top=c.top,p.height=Math.max(c.height+h,d)),this.onSizeChanging(new o(p))&&(e.setCss(i,{left:p.left,top:p.top,width:p.width,height:p.height}),this._resized=this._dragged=this._ignoreClick=!0,this.onSizeChanged()),!window.ResizeObserver)for(var f=this.hostElement.children,_=0;_<f.length;_++)e.Control.invalidateAll(f[_])}else this._draggable&&(this._dragged||Math.abs(l)+Math.abs(h)>r._DRAG_THRESHOLD)&&(p.left=Math.max(c.left+l+(a.pageX-a.clientX),50-c.width),p.top=Math.max(c.top+h+(a.pageY-a.clientY),0),this.onPositionChanging(new o(p))&&(e.setCss(i,{left:p.left,top:p.top}),this._dragged=this._ignoreClick=!0,this.onPositionChanged()))}},r.prototype._getEdges=function(e,t){var i=0;if(this._resizable){var s=e.getBoundingClientRect(),o=r._SZ_EDGE;t.clientX-s.left<o&&(i|=n.Left),t.clientY-s.top<o&&(i|=n.Top),s.right-t.clientX<o&&(i|=n.Right),s.bottom-t.clientY<o&&(i|=n.Bottom)}return i},r.prototype._ownerClick=function(e){this._toggle(e,i.ClickOwner)},r.prototype._ownerDown=function(e){this._wasVisible=this.isVisible,this._toggle(e,i.DownOwner)},r.prototype._ownerBlur=function(t){e.contains(this._owner,e.getActiveElement())||this._toggle(t,i.BlurOwner)},r.prototype._ownerEnter=function(e){e.target==this._owner&&this._toggle(e,i.EnterOwner)},r.prototype._ownerLeave=function(e){e.target==this._owner&&this._toggle(e,i.LeaveOwner)},r.prototype._toggle=function(t,n){var s=this;if(t instanceof MouseEvent&&(r._evtHover=t),!("mouseenter"==t.type&&Date.now()-this._lastShow<300||t.defaultPrevented)){var o=0!=(this._hideTrigger&n),a=0!=(this._showTrigger&n),l=i;(o||a)&&this._clearTimeouts(),o&&this.isVisible&&(n&l.Leave?this._toHideLeave=setTimeout(function(){var t=r._evtHover,i=t?document.elementFromPoint(t.clientX,t.clientY):null;i&&e.contains(s.hostElement,i,!0)||s.hide()},e.Control._LEAVE_DELAY):n&l.Blur?this._toHideBlur=setTimeout(function(){s.containsFocus()||e.contains(s._owner,e.getActiveElement())||s.hide()},e.Control._FOCUS_INTERVAL+50):this.hide()),a&&n!=l.ClickPopup&&(this._wasVisible||(n&l.Enter?this._toShow=setTimeout(function(){s.show()},e.Control._HOVER_DELAY):this.show()))}},r.prototype._getHeaderElement=function(){var e=this.hostElement;return e.querySelector(".wj-dialog-header")||e.querySelector(".modal-header")},r.prototype._getClosestHeader=function(t){return e.closest(t,".wj-dialog-header")||e.closest(t,".modal-header")},r.prototype._showBackdrop=function(){var t=this;this._bkDrop||(this._bkDrop=document.createElement("div"),this._bkDrop.tabIndex=-1,e.addClass(this._bkDrop,"wj-popup-backdrop"),this.addEventListener(this._bkDrop,"mousedown",function(e){e.preventDefault(),e.stopPropagation(),t.hostElement.focus(),t.hideTrigger&i.Blur&&t.hide()})),e.setCss(this._bkDrop,{zIndex:e.Control._POPUP_ZINDEX,display:""});var n=this.hostElement;n.parentElement.insertBefore(this._bkDrop,n)},r.prototype._validateAndHide=function(e){var t=this.hostElement;if(t instanceof HTMLFormElement)t.reportValidity()&&this.hide(e);else{var i=this.hostElement.querySelector(":invalid");i?i.focus():this.hide(e)}},r._DRAG_THRESHOLD=6,r._SZ_EDGE=10,r._SZ_MIN=40,r}(e.Control);t.Popup=s;var o=function(e){function t(t){var i=e.call(this)||this;return i._rc=t,i}return __extends(t,e),Object.defineProperty(t.prototype,"bounds",{get:function(){return this._rc},enumerable:!0,configurable:!0}),t}(e.CancelEventArgs);t.PopupBoundsChangingEventArgs=o}(e.input||(e.input={}))}(wijmo||(wijmo={})),function(e){!function(t){"use strict";var i=function(i){function n(n,s){var o=i.call(this,n)||this;o._fmt="d",o._sep=" - ",o._rngs=null,o._showCal=!1,o._clsOnSel=!0,o._handleWheel=!0,o._clicked=!1,o._rangeChanged=!1,o.valueChanged=new e.Event,o.rangeEndChanged=new e.Event,o.rangeChanged=new e.Event,e.addClass(o.hostElement,"wj-inputdate"),o._msk=new e._MaskProvider(o._tbx),e.isIE9()||(o.inputType="tel"),o._tbx.type.match(/^(tel|text|)$/i)||(o.inputType="text"),o.addEventListener(o.hostElement,"wheel",function(i){if(o.handleWheel&&!i.defaultPrevented&&!o.isDroppedDown&&o.containsFocus()&&null!=o.value&&o._canChangeValue()){var n=e.clamp(-i.deltaY,-1,1),s=o.value;o.value=o.selectionMode==t.DateSelectionMode.Month?e.DateTime.addMonths(s,n):e.DateTime.addDays(s,n),o.selectAll(),i.preventDefault()}});var r=o._lbx=new t.ListBox(document.createElement("div"),{displayMemberPath:"name",selectedIndexChanged:function(t){var i=t.selectedItem,n=e.DateTime.fromDateTime;if(i&&i.from&&i.to){var s=o.value;o.value=n(i.from,s),o.rangeEnd=n(i.to,s),o._selectAll()}else o._cal.hostElement.style.display=""}}),a=o._cal=new t.Calendar(document.createElement("div")),l=o._dropDown;if(e.addClass(l,"wj-inputdate-dropdown"),l.appendChild(r.hostElement),l.appendChild(a.hostElement),o.addEventListener(l,"click",function(){o._clicked=!0,setTimeout(function(){o._clicked=!1},50)},!0),"INPUT"==o._orgTag){var h=o._tbx.getAttribute("value");h&&(a.value=a.rangeEnd=e.Globalize.parseDate(h,"yyyy-MM-dd"))}return o.isRequired=!0,o.initialize(s),o._tbx.value=o._oldText=o._getText(),o._updateState(),a.valueChanged.addHandler(function(e,t){o._refreshText(),o.onValueChanged(t),o._closeOnChange()}),a.rangeEndChanged.addHandler(function(e,t){a._rngMode()&&(o.onRangeEndChanged(t),o._closeOnChange(),a._clearingRangeEnd||o._refreshText())}),a.hostElement.addEventListener("click",function(t){if(a.selectionMode&&!a._rngMode()){var i=t.target,n=a.hitTest(i);(e.DateTime.sameDate(o.value,n)||e.closest(i,"[wj-part=btn-today]"))&&o._closeOnChange()}}),o}return __extends(n,i),Object.defineProperty(n.prototype,"value",{get:function(){return this._cal.value},set:function(e){this._cal.value=e,this._refreshText()},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"rangeEnd",{get:function(){return this._cal.rangeEnd},set:function(e){this._cal.rangeEnd=e},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"rangeMin",{get:function(){return this._cal.rangeMin},set:function(e){this._cal.rangeMin=e},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"rangeMax",{get:function(){return this._cal.rangeMax},set:function(e){this._cal.rangeMax=e},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"text",{get:function(){return this._tbx.value},set:function(e){if(e!=this.text){var t=e;(t=(t||"").toString())!=this._tbx.value&&(this._tbx.value=t),t!=this._oldText&&(this._oldText=t),this._commitText(),this.onTextChanged()}},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"format",{get:function(){return this._fmt},set:function(t){t!=this.format&&(this._fmt=e.asString(t),this._refreshText())},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"separator",{get:function(){return this._sep},set:function(t){t!=this._sep&&(this._sep=e.asString(t,!1),this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"mask",{get:function(){return this._msk.mask},set:function(t){this._msk.mask=e.asString(t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"closeOnSelection",{get:function(){return this._clsOnSel},set:function(t){this._clsOnSel=e.asBoolean(t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"handleWheel",{get:function(){return this._handleWheel},set:function(t){t=e.asBoolean(t),this._handleWheel=t,t||(this.calendar.handleWheel=t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"predefinedRanges",{get:function(){return this._rngs},set:function(t){this._rngs!=t&&(e.assert(null==t||e.isObject(t),"Object expected"),this._rngs=t,this._lbx.itemsSource=this._getRanges(t),this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"alwaysShowCalendar",{get:function(){return this._showCal},set:function(t){this._showCal=e.asBoolean(t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"min",{get:function(){return this._cal.min},set:function(t){this._cal.min=e.asDate(t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"max",{get:function(){return this._cal.max},set:function(t){this._cal.max=e.asDate(t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"repeatButtons",{get:function(){return this._cal.repeatButtons},set:function(t){this._cal.repeatButtons=e.asBoolean(t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"showYearPicker",{get:function(){return this._cal.showYearPicker},set:function(t){this._cal.showYearPicker=e.asBoolean(t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"showMonthPicker",{get:function(){return this._cal.showMonthPicker},set:function(e){this._cal.showMonthPicker=e},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"showHeader",{get:function(){return this._cal.showHeader},set:function(e){this._cal.showHeader=e},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"weeksBefore",{get:function(){return this._cal.weeksBefore},set:function(e){this._cal.weeksBefore=e},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"weeksAfter",{get:function(){return this._cal.weeksAfter},set:function(e){this._cal.weeksAfter=e},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"selectionMode",{get:function(){return this._cal.selectionMode},set:function(e){e!=this.selectionMode&&(this._cal.selectionMode=e,this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"monthCount",{get:function(){return this._cal.monthCount},set:function(e){this._cal.monthCount=e},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"calendar",{get:function(){return this._cal},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"inputElement",{get:function(){return this._tbx},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"inputType",{get:function(){return this._tbx.type},set:function(t){this._tbx.type=e.asString(t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"itemValidator",{get:function(){return this._cal.itemValidator},set:function(t){t!=this.itemValidator&&(this._cal.itemValidator=e.asFunction(t),this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"itemFormatter",{get:function(){return this._cal.itemFormatter},set:function(t){this._cal.itemFormatter=e.asFunction(t)},enumerable:!0,configurable:!0}),n.prototype.onValueChanged=function(e){this.valueChanged.raise(this,e)},n.prototype.onRangeEndChanged=function(e){this.rangeEndChanged.raise(this,e),this.rangeEnd&&(this.isDroppedDown?this._rangeChanged=!0:this.onRangeChanged(e))},n.prototype.onRangeChanged=function(e){this._rangeChanged=!1,this.rangeChanged.raise(this,e)},n.prototype.refresh=function(e){void 0===e&&(e=!0),i.prototype.refresh.call(this,e),this.hostElement&&(this._msk&&this._msk.refresh(),this._cal&&this._cal.refresh(),this._refreshText())},n.prototype.onIsDroppedDownChanging=function(t){if(this.isDroppedDown){(s=this._cal)._rngMode()&&s.value&&!s.rangeEnd&&(s.rangeEnd=s.value)}else{var n=this._lbx,s=this._cal,o=n.collectionView,r=n.hostElement.style,a=s.hostElement.style;if(s._rngMode()&&e.hasItems(o)){var l=this._updateRangeSelection();r.display="",a.display=!this._showCal&&l&&l.from&&o.items.some(function(e){return!e.to})?"none":""}else r.display="none",a.display="";s._mthMode()||(s.monthView=!0)}return i.prototype.onIsDroppedDownChanging.call(this,t)},n.prototype.onIsDroppedDownChanged=function(e){i.prototype.onIsDroppedDownChanged.call(this,e);var t=this.containsFocus();this.isDroppedDown?(t&&(this._tryFocus(this._cal)||this._tryFocus(this._lbx)||this.dropDown.focus()),this._lbx.showSelection(),this._cal.refresh()):(this._commitText(),this._rangeChanged&&this.onRangeChanged())},n.prototype._updateDropDown=function(){this._commitText();var e=getComputedStyle(this.hostElement);this._dropDown.style.minWidth=18*parseFloat(e.fontSize)+"px",this._cal.refresh(),i.prototype._updateDropDown.call(this)},n.prototype._keydown=function(n){if(!(n.defaultPrevented||n.altKey||n.ctrlKey||n.metaKey)){if(this._isHiddenEditor())return;switch(n.keyCode){case e.Key.Enter:this._commitText();break;case e.Key.Escape:this.text=this._getText(),this.selectAll();break;case e.Key.Tab:if(this._cal._rngMode()){var s=this._tbx,o=this._sep,r=s.value,a=r.indexOf(o);if(a>-1){var l=r.length,h=s.selectionStart,c=s.selectionEnd,u=null;s.selectionEnd<=a&&!n.shiftKey?u=0==h&&0==c:n.shiftKey&&s.selectionStart>=a+o.length&&(u=h<l||c<l),null!=u&&(u?e.setSelectionRange(s,0,a):e.setSelectionRange(s,a+o.length,l),n.preventDefault())}}break;case e.Key.Up:case e.Key.Down:if(!this.isDroppedDown&&this.value&&this._canChangeValue()){var d=n.keyCode==e.Key.Up?1:-1,p=this.selectionMode==t.DateSelectionMode.Month?e.DateTime.addMonths(this.value,d):e.DateTime.addDays(this.value,d);this.value=this._fromDateTime(p),this.selectAll(),n.preventDefault()}}}i.prototype._keydown.call(this,n)},n.prototype._expandSelection=function(){if(this._cal._rngMode()){var t=this._tbx,n=t.value,s=t.selectionStart,o=t.selectionEnd,r=this._sep,a=n.indexOf(r);a>-1&&s==o&&(o<=a?e.setSelectionRange(t,0,a):s>=a+r.length&&e.setSelectionRange(t,a+r.length,t.value.length))}else i.prototype._expandSelection.call(this)},n.prototype._refreshText=function(){var e=this._getText();e!=this.text&&(this._tbx.value=this._oldText=e,this.onTextChanged())},n.prototype._selectAll=function(){this.isDroppedDown||!this.containsFocus()||this.isTouching||this.selectAll()},n.prototype._closeOnChange=function(){var e=this;if(this._clsOnSel&&this._clicked){var t=this._cal;(!t._rngMode()||t.value&&t.rangeEnd)&&setTimeout(function(){e.isDroppedDown=!1})}},n.prototype._tryFocus=function(e){var t=e.hostElement;return!(!t||!t.offsetHeight)&&(t.focus(),!0)},n.prototype._clamp=function(e){return this._cal._clamp(e)},n.prototype._getText=function(){var t=e.Globalize.format,i=this._fmt,n=t(this.value,i);return this._cal._rngMode()&&n&&(n+=this._sep+t(this.rangeEnd,i)),n},n.prototype._commitText=function(t){var i=this._tbx.value;if(i!=this._getText()){var n=!1,s=this._fmt,o=this._cal,r=e.Globalize.parseDate;if(i||this.isRequired)if(o._rngMode()){var a=i.split(this._sep);if(2==a.length&&a[0])if(h=r(a[0],s,this.value)){var l=r(a[1],s,this.value);o.value=this._fromDateTime(h),o.rangeEnd=l&&l>=h?this._fromDateTime(l):h,n=!0}}else{var h;(h=r(i,s,this.value))&&(this.value=this._fromDateTime(h),n=!0)}else this.value=this.rangeEnd=null,n=!0;(n||!this._containsFocus()&&this.onInvalidInput(new e.CancelEventArgs))&&(this.text=this._getText())}t||this._selectAll()},n.prototype._fromDateTime=function(t){return e.DateTime.fromDateTime(t,this.value)},n.prototype._canChangeValue=function(){return!this.isReadOnly&&!this.isDisabled&&this.selectionMode!=t.DateSelectionMode.None},n.prototype._isValidDate=function(e){if(e){if(this._clamp(e)!=e)return!1;if(this.itemValidator&&!this.itemValidator(e))return!1}return!0},n.prototype._getRanges=function(t){var i=[];if(e.isObject(t))for(var n in t){var s=t[n];i.push({name:n,from:s?s[0]:null,to:s?s[1]:null})}return new e.collections.CollectionView(i,{currentItem:null})},n.prototype._updateRangeSelection=function(){var t=this._lbx,i=-1;if(e.hasItems(t.collectionView))for(var n=this._lbx.collectionView.items,s=e.DateTime.sameDate,o=0;o<n.length;o++){var r=n[o];if(r.from){if(s(r.from,this.value)&&s(r.to,this.rangeEnd)){i=o;break}}else i=o}return t.selectedIndex=i,t.selectedItem},n}(t.DropDown);t.InputDate=i}(e.input||(e.input={}))}(wijmo||(wijmo={})),function(e){!function(t){"use strict";var i=function(i){function n(n,s){var o=i.call(this,n,{selectionMode:t.DateSelectionMode.Range,showMonthPicker:"Outside",monthCount:2})||this;return e.addClass(o.hostElement,"wj-inputdaterange"),o.initialize(s),o}return __extends(n,i),Object.defineProperty(n.prototype,"selectionMode",{get:function(){return this.calendar.selectionMode},set:function(i){i=e.asEnum(i,t.DateSelectionMode),e.assert(i==t.DateSelectionMode.Range,'InputDateRange.selectionMode must be "Range"'),this.calendar.selectionMode=i},enumerable:!0,configurable:!0}),n}(t.InputDate);t.InputDateRange=i}(e.input||(e.input={}))}(wijmo||(wijmo={})),function(e){!function(t){"use strict";var i=function(i){function n(t,n){var s=i.call(this,t)||this;s.valueChanged=new e.Event,e.addClass(s.hostElement,"wj-inputcolor");return s._ePreview=e.createElement('<div class="wj-inputcolorbox"></div>',s.hostElement.firstElementChild),"INPUT"==s._orgTag&&(s._tbx.type="",s._commitText()),s.value="#ffffff",s.isRequired=!0,s.initialize(n),s.addEventListener(s._colorPicker.hostElement,"click",function(t){var i=t.target;i&&"DIV"==i.tagName&&((e.closest(i,'[wj-part="div-pal"]')||e.closest(i,'[wj-part="div-pv"]'))&&i.style.backgroundColor&&(s.isDroppedDown=!1))}),s}return __extends(n,i),Object.defineProperty(n.prototype,"value",{get:function(){return this._value},set:function(e){this.text=e},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"text",{get:function(){return this._tbx.value},set:function(t){(t=e.asString(t))!=this.text&&(!t&&this.isRequired||t&&!e.Color.fromString(t)||(this._setText(t,!0),this._commitText()))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"showAlphaChannel",{get:function(){return this._colorPicker.showAlphaChannel},set:function(e){this._colorPicker.showAlphaChannel=e},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"showColorString",{get:function(){return this._colorPicker.showColorString},set:function(e){this._colorPicker.showColorString=e},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"palette",{get:function(){return this._colorPicker.palette},set:function(e){this._colorPicker.palette=e},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"colorPicker",{get:function(){return this._colorPicker},enumerable:!0,configurable:!0}),n.prototype.onValueChanged=function(e){this.valueChanged.raise(this,e)},n.prototype.onIsDroppedDownChanged=function(e){i.prototype.onIsDroppedDownChanged.call(this,e),this.isDroppedDown&&!this.isTouching&&this.selectAll()},n.prototype._createDropDown=function(){var i=this;this._colorPicker=new t.ColorPicker(this._dropDown),e.setCss(this._dropDown,{minWidth:420,minHeight:200}),this._colorPicker.valueChanged.addHandler(function(){i.value=i._colorPicker.value})},n.prototype._keydown=function(t){if(!t.defaultPrevented)switch(t.keyCode){case e.Key.Enter:this._commitText(),this.selectAll();break;case e.Key.Escape:this.text=this.value,this.selectAll()}i.prototype._keydown.call(this,t)},n.prototype._commitText=function(){if(this._value!=this.text){if(!this.isRequired&&!this.text)return this._value=this.text,this._ePreview.style.backgroundColor="",void this.onValueChanged();if(e.Color.fromString(this.text)){var t=this._colorPicker;t.value=this.text,this._value=t.value,this._ePreview.style.backgroundColor=this.value,this.onValueChanged()}else this.onInvalidInput(new e.CancelEventArgs)&&(this.text=this._value?this._value:"")}},n}(t.DropDown);t.InputColor=i}(e.input||(e.input={}))}(wijmo||(wijmo={})),function(e){!function(t){"use strict";var i=function(i){function n(t,n){var s=i.call(this,t)||this;s._editable=!1,s._trimText=!0,s._handleWheel=!0,s._delKey=0,s._pathHdr=new e.Binding(null),s._bsCollapse=!0,s._fmtItemHandlers=0,s.itemsSourceChanged=new e.Event,s.selectedIndexChanged=new e.Event;var o=s.hostElement;e.addClass(o,"wj-combobox"),s.dropDown.id=e.getUniqueId(o.id+"_dropdown"),s.autoExpandSelection=!1;var r=s._tbx;s.addEventListener(r,"compositionstart",function(){s._composing=!0;var t=r.selectionStart,i=r.selectionEnd;if(i>t&&!e.isIE()){var n=r.value;r.value=n.substring(0,t)+n.substring(i,n.length),s._setSelRange(t,t)}}),s.addEventListener(r,"compositionend",function(){s._composing=!1,s._setText(s.text,!0)}),s.addEventListener(o,"wheel",s._wheel.bind(s)),"SELECT"==s._orgTag&&s._lbx._initFromSelect(o);var a=s._lbx;return a.loadedItems.addHandler(function(e){s.selectedIndex>-1&&(s.selectedIndex=a.selectedIndex)}),s.isRequired=!0,s.initialize(n),s}return __extends(n,i),Object.defineProperty(n.prototype,"itemsSource",{get:function(){return this._lbx.itemsSource},set:function(e){this._lbx.itemsSource!=e&&(this._lbx.itemsSource=e,this.onItemsSourceChanged()),this._updateBtn()},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"collectionView",{get:function(){return this._lbx.collectionView},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"virtualizationThreshold",{get:function(){return this._lbx.virtualizationThreshold},set:function(e){this._lbx.virtualizationThreshold=e},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"showGroups",{get:function(){return this._lbx.showGroups},set:function(e){this._lbx.showGroups=e},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"displayMemberPath",{get:function(){return this._lbx.displayMemberPath},set:function(e){this._lbx.displayMemberPath=e;var t=this.getDisplayText();this.text!=t&&this._setText(t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"headerPath",{get:function(){return this._pathHdr.path},set:function(t){this._pathHdr.path=e.asString(t);var i=this.getDisplayText();this.text!=i&&this._setText(i,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"selectedValuePath",{get:function(){return this._lbx.selectedValuePath},set:function(e){this._lbx.selectedValuePath=e},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"isContentHtml",{get:function(){return this._lbx.isContentHtml},set:function(t){if(t!=this.isContentHtml){this._lbx.isContentHtml=e.asBoolean(t);var i=this.getDisplayText();this.text!=i&&this._setText(i,!0)}},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"caseSensitiveSearch",{get:function(){return this._lbx.caseSensitiveSearch},set:function(t){this._lbx.caseSensitiveSearch=e.asBoolean(t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"trimText",{get:function(){return this._trimText},set:function(t){t!=this._trimText&&(this._trimText=e.asBoolean(t),this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"itemFormatter",{get:function(){return this._lbx.itemFormatter},set:function(t){this._lbx.itemFormatter=e.asFunction(t),this.selectedIndex=this._lbx.selectedIndex},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"formatItem",{get:function(){return this._lbx.formatItem},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"selectedIndex",{get:function(){return this._lbx.selectedIndex},set:function(t){t!=this.selectedIndex&&e.isNumber(t)&&(this._lbx.selectedIndex=t),t=this.selectedIndex;var i=this.getDisplayText(t);this.text!=i&&this._setText(i,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"selectedItem",{get:function(){return this._lbx.selectedItem},set:function(e){this._lbx.selectedItem=e},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"selectedValue",{get:function(){return this.collectionView?this._lbx.selectedValue:this.text},set:function(e){this.collectionView?this._lbx.selectedValue=e:null!=e&&(this.text=e.toString())},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"isEditable",{get:function(){return this._editable},set:function(t){this._editable=e.asBoolean(t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"handleWheel",{get:function(){return this._handleWheel},set:function(t){this._handleWheel=e.asBoolean(t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"maxDropDownHeight",{get:function(){return this._lbx.maxHeight},set:function(e){this._lbx.maxHeight=e},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"maxDropDownWidth",{get:function(){var e=this._dropDown,t=e?parseInt(e.style.maxWidth):null;return isNaN(t)?null:t},set:function(t){var i=this._dropDown.style;t=e.asNumber(t,!0),i.maxWidth=null==t?"":t+"px",i.minWidth=""},enumerable:!0,configurable:!0}),n.prototype.getDisplayText=function(t,i){void 0===t&&(t=this.selectedIndex),void 0===i&&(i=this._trimText);var n,s=this.collectionView;if(this.headerPath&&t>-1&&e.hasItems(s)){var o=s.items[t];n=null!=(n=o?this._pathHdr.getValue(o):null)?n.toString():"",this.isContentHtml&&(n=e.toPlainText(n))}else n=this._lbx.getDisplayText(t);return i?n.trim():n},n.prototype.indexOf=function(t,i){var n=this.collectionView,s=this.caseSensitiveSearch;if(e.hasItems(n)&&null!=t){t=t.toString(),s||(t=t.toLowerCase());var o=this.selectedIndex,r=this.getDisplayText(o);if(i&&(s||(r=r.toLowerCase()),t==r))return o;for(var a=0;a<n.items.length;a++)if(this._lbx.isItemEnabled(a))if(r=this.getDisplayText(a),s||(r=r.toLowerCase()),i){if(r==t)return a}else if(t&&0==r.indexOf(t))return a}return-1},Object.defineProperty(n.prototype,"listBox",{get:function(){return this._lbx},enumerable:!0,configurable:!0}),n.prototype.onItemsSourceChanged=function(e){this.itemsSourceChanged.raise(this,e)},n.prototype.onSelectedIndexChanged=function(e){this._updateBtn(),this.selectedIndexChanged.raise(this,e)},n.prototype.refresh=function(t){void 0===t&&(t=!0),i.prototype.refresh.call(this,t),this.hostElement&&e.hasItems(this.collectionView)&&(this._lbx.refresh(),this.selectedIndex>-1&&(this.selectedIndex=this._lbx.selectedIndex))},n.prototype.onLostFocus=function(t){this._composing&&(this._composing=!1,this._setText(this.text,!0)),this.isEditable&&this.isRequired&&!this.text&&e.hasItems(this.collectionView)&&(this.selectedIndex=0),i.prototype.onLostFocus.call(this,t)},n.prototype.onIsDroppedDownChanging=function(e){return this.isDroppedDown||this._hasItems()?i.prototype.onIsDroppedDownChanging.call(this,e):(e.cancel=!0,!1)},n.prototype.onIsDroppedDownChanged=function(e){i.prototype.onIsDroppedDownChanged.call(this,e),this.isDroppedDown&&(this._fmtItemHandlers=this.formatItem.handlerCount,this._lbx.showSelection()),this._updateAria()},n.prototype._setIsDisabled=function(e){i.prototype._setIsDisabled.call(this,e),this._updateBtn()},n.prototype._updateBtn=function(){var t=this.collectionView,n=this._tbx,s=this._hasItems();i.prototype._updateBtn.call(this),this._btn.style.display=this._showBtn&&null!=t?"":"none",e.enable(this._btn,s&&!this.isDisabled),e.setAttribute(n,"role",s?"combobox":null),e.setAttribute(n,"aria-autocomplete",s?"both":null),this._updateAria()},n.prototype._hasItems=function(){return e.hasItems(this.collectionView)},n.prototype._updateAria=function(){var t=this._tbx,i=this.isDroppedDown,n=this.dropDown?this.dropDown.id:null,s=n&&e.hasItems(this.collectionView);e.setAttribute(t,"aria-owns",s&&i?n:null),e.setAttribute(t,"aria-expanded",s?i:null)},n.prototype._createDropDown=function(){var i=this;this._lbx||(this._lbx=new t.ListBox(this._dropDown)),this._lbx.maxHeight=200,this._lbx.selectedIndexChanged.addHandler(function(){i._updateBtn();var t=i._lbx.selectedIndex,n=i._lbx.hostElement.children,s=t>-1&&t<n.length?n[t].id:null;e.setAttribute(i._tbx,"aria-activedescendant",s&&s.length?s:null),i.selectedIndex=t,i.onSelectedIndexChanged()}),this._lbx.itemsChanged.addHandler(function(){i._updateBtn()})},n.prototype._wheel=function(e){if(this.handleWheel&&!e.defaultPrevented&&!this.isDroppedDown&&!this.isReadOnly&&this.containsFocus()&&this.selectedIndex>-1){var t=this._findNext("",e.deltaY>0?1:-1);t>-1&&(this.selectedIndex=t),e.preventDefault()}},n.prototype._dropDownClick=function(e){e.defaultPrevented||e.target!=this._dropDown&&(this.isDroppedDown=!1),i.prototype._dropDownClick.call(this,e)},n.prototype._setText=function(t,n){if(!this._composing&&!this._settingText){if(this._settingText=!0,this.containsFocus()){var s=this.formatItem.handlerCount;this._fmtItemHandlers!=s&&(this._fmtItemHandlers=s,this._lbx.loadList())}null==t&&(t=""),t=t.toString();var o=this.selectedIndex,r=this.collectionView,a=this._getSelStart(),l=-1,h=!0;if(this.isEditable&&(this._delKey||this._getSelEnd()<t.length||!this.containsFocus())&&(n=!0,h=!1),o=this.indexOf(t,n),h&&(o<0&&n&&(o=this.indexOf(t,!1)),o<0&&a>0&&(o=this.indexOf(t.substr(0,a),!1))),o<0&&!this.isEditable&&e.hasItems(r)&&(this.isRequired||t)){var c=this._oldText||"";o=Math.max(0,this.indexOf(c,!1)),a=0;for(var u=0;u<t.length&&u<c.length;u++)if(t[u]!=c[u]){a=u;break}}o>-1&&(l=a,t=this.getDisplayText(o));var d=this._tbx;t!=d.value&&(d.value=t),l>-1&&this.containsFocus()&&!this.isTouching&&this._updateInputSelection(l),r&&r.moveCurrentToPosition(o),this._delKey=0,this._settingText=!1,i.prototype._setText.call(this,t,n)}},n.prototype._findNext=function(e,t,i){void 0===i&&(i=this.selectedIndex);var n=this.collectionView,s=n?n.items.length:0,o=this._lbx,r=this.caseSensitiveSearch;if(n&&s&&t){r||(e=e.toLowerCase());for(var a=i+t;a>-1&&a<s;a+=t){var l=this.getDisplayText(a);if(r||(l=l.toLowerCase()),0==l.indexOf(e))if(!this.dropDown.children[a]||o.isItemEnabled(a))return a}}return i},n.prototype._keydown=function(t){if(i.prototype._keydown.call(this,t),!t.defaultPrevented&&!this.isReadOnly&&!t.altKey&&e.hasItems(this.collectionView)&&this._elRef==this._tbx&&!this._isHiddenEditor()){this._delKey=0;var n=this._getSelStart();switch(t.keyCode){case e.Key.Back:if(this._bsCollapse&&!this.isEditable){var s=this._getSelEnd();n>0&&s==this._tbx.value.length&&e.hasItems(this.collectionView)&&this._setSelRange(n-1,s)}this._delKey=t.keyCode;break;case e.Key.Delete:this._delKey=t.keyCode;break;case e.Key.Up:case e.Key.Down:n==this.text.length&&(n=0),this.selectedIndex=this._findNext(this.text.substr(0,n),t.keyCode==e.Key.Up?-1:1),this._setSelRange(n,this.text.length),t.preventDefault();break;case e.Key.PageUp:this._lbx._selectPrevPage(),this.selectAll(),t.preventDefault();break;case e.Key.PageDown:this._lbx._selectNextPage(),this.selectAll(),t.preventDefault()}}},n.prototype._updateInputSelection=function(e){var t=this._tbx;this._elRef==t&&this._setSelRange(e,t.value.length)},n.prototype._getSelStart=function(){var e=this._tbx;return e&&e.value?e.selectionStart:0},n.prototype._getSelEnd=function(){var e=this._tbx;return e&&e.value?e.selectionEnd:0},n.prototype._setSelRange=function(t,i){var n=this._tbx;this._elRef!=n||n.readOnly||e.setSelectionRange(n,t,i)},n}(t.DropDown);t.ComboBox=i}(e.input||(e.input={}))}(wijmo||(wijmo={})),function(e){!function(t){"use strict";e._addCultureInfo("MultiSelect",{itemsSelected:"{count:n0} items selected",selectAll:"Select All"});var i=function(i){function n(n,s){var o=i.call(this,n)||this;return o._maxHdrItems=2,o._readOnly=!1,o._hdrFmt=null,o.checkedItemsChanged=new e.Event,e.addClass(o.hostElement,"wj-multiselect"),o._tbx.readOnly=!0,o.checkedMemberPath=null,o.removeEventListener(o.dropDown,"click"),o._lbx.itemsChanged.addHandler(function(){o._updateHeader()}),o._lbx.checkedItemsChanged.addHandler(function(){o._updateHeader(),o.onCheckedItemsChanged()}),o.clickAction=t.ClickAction.Toggle,o.initialize(s),o}return __extends(n,i),Object.defineProperty(n.prototype,"showSelectAllCheckbox",{get:function(){return this._msLbx.showSelectAllCheckbox},set:function(t){this._msLbx.showSelectAllCheckbox=e.asBoolean(t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"showFilterInput",{get:function(){return this._msLbx.showFilterInput},set:function(t){this._msLbx.showFilterInput=e.asBoolean(t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"delay",{get:function(){return this._msLbx.delay},set:function(e){this._msLbx.delay=e},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"caseSensitiveSearch",{get:function(){return this._msLbx.caseSensitiveSearch},set:function(e){this._msLbx.caseSensitiveSearch=e},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"filterInputPlaceholder",{get:function(){return this._msLbx.filterInputPlaceholder},set:function(t){this._msLbx.filterInputPlaceholder=e.asString(t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"checkOnFilter",{get:function(){return this._msLbx.checkOnFilter},set:function(t){t!=this.checkOnFilter&&(this._msLbx.checkOnFilter=e.asBoolean(t),this.checkedItems=[])},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"selectAllLabel",{get:function(){return this._msLbx.selectAllLabel},set:function(t){this._msLbx.selectAllLabel=e.asString(t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"checkedMemberPath",{get:function(){return this._msLbx.checkedMemberPath},set:function(t){this._msLbx.checkedMemberPath=e.asString(t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"maxHeaderItems",{get:function(){return this._maxHdrItems},set:function(t){this._maxHdrItems!=t&&(this._maxHdrItems=e.asNumber(t),this._updateHeader())},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"headerFormat",{get:function(){return this._hdrFmt},set:function(t){t!=this._hdrFmt&&(this._hdrFmt=e.asString(t),this._updateHeader())},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"headerFormatter",{get:function(){return this._hdrFormatter},set:function(t){t!=this._hdrFormatter&&(this._hdrFormatter=e.asFunction(t),this._updateHeader())},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"checkedItems",{get:function(){return this._msLbx.checkedItems},set:function(t){this._msLbx.checkedItems=null==t?[]:e.asArray(t),this._updateHeader()},enumerable:!0,configurable:!0}),n.prototype.onCheckedItemsChanged=function(e){this.checkedItemsChanged.raise(this,e)},n.prototype.dispose=function(){this._lbx.dispose(),i.prototype.dispose.call(this)},n.prototype.onIsDroppedDownChanged=function(e){var t=this;i.prototype.onIsDroppedDownChanged.call(this,e),setTimeout(function(){if(t.isDroppedDown&&t.containsFocus())if(t.showFilterInput&&!t.isTouching)t._msLbx._filter.focus();else{var e=t.listBox;if(e.selectedIndex<0){var i=0,n=e.checkedItems;n.length&&(i=e.collectionView.items.indexOf(n[0])),e.selectedIndex=Math.max(0,i)}e.showSelection(!0),e.focus()}})},n.prototype._createDropDown=function(){var n=e.createElement("<div></div>",this._dropDown);this._msLbx=new t.MultiSelectListBox(n),this._lbx=this._msLbx.listBox,i.prototype._createDropDown.call(this)},Object.defineProperty(n.prototype,"isReadOnly",{get:function(){return this._readOnly},set:function(t){this._readOnly=e.asBoolean(t),e.toggleClass(this.hostElement,"wj-state-readonly",this.isReadOnly)},enumerable:!0,configurable:!0}),n.prototype.refresh=function(e){void 0===e&&(e=!0),i.prototype.refresh.call(this,e),this.hostElement&&this._updateHeader()},n.prototype._setText=function(e,t){},n.prototype._keydown=function(t){i.prototype._keydown.call(this,t),e.hasClass(this._tbx,"wj-grid-ime")||!t.defaultPrevented&&e.hasItems(this.collectionView)&&t.keyCode>32&&(this.isDroppedDown=!0)},n.prototype._hasItems=function(){var t=this.collectionView,i=t?t.sourceCollection:null;return e.hasItems(t)||i&&i.length&&this.showFilterInput},n.prototype._updateHeader=function(){var t="";if(e.isFunction(this._hdrFormatter))t=this._hdrFormatter(this);else{var i=this.checkedItems;if(i.length>0)if(i.length<=this._maxHdrItems){if(this.headerPath){var n=new e.Binding(this.headerPath);i=i.map(function(e){return n.getValue(e)})}else if(this.displayMemberPath){var s=new e.Binding(this.displayMemberPath);i=i.map(function(e){return s.getValue(e)})}this.isContentHtml&&(i=i.map(function(t){return e.toPlainText(t)})),this.trimText&&(i=i.map(function(e){return e?e.toString().trim():""})),t=i.join(", ")}else t=e.format(this.headerFormat||e.culture.MultiSelect.itemsSelected,{count:i.length})}var o=this.inputElement;t!=o.value&&(o.value=t,this.onTextChanged()),this._updateState()},n._DEF_CHECKED_PATH="$checked",n}(t.ComboBox);t.MultiSelect=i}(e.input||(e.input={}))}(wijmo||(wijmo={})),function(e){!function(t){"use strict";var i=function(t){function i(i,n){var s=t.call(this,i)||this;s._closing=!1,s._cmd=null,s._cmdPath=null,s._cmdParamPath=null,s._subPath=null,s._owner=null,s._isButton=!1,s._openOnHover=!1,s._closeOnLeave=!0,s._subMenu=null,s._hoverEnterBnd=s._hoverEnter.bind(s),s._hoverLeaveBnd=s._hoverLeave.bind(s),s._hoverOverBnd=s._hoverOver.bind(s),s.itemClicked=new e.Event;var o=s.hostElement,r=s._tbx,a=s._lbx,l=s.dropDown;e.addClass(o,"wj-menu"),r.style.display="none";return s._hdr=s._elRef=e.createElement('<div wj-part="header" class="wj-form-control"/>'),r.parentElement.insertBefore(s._hdr,s._tbx),o.tabIndex=s.isDisabled?-1:s._orgTabIndex,s.isRequired=!1,e.setAttribute(o,"role","menubar",!0),e.setAttribute(r,"role",null),e.setAttribute(r,"aria-autocomplete",null),e.setAttribute(r,"aria-owns",null),e.setAttribute(l,"role","menu"),a.itemRole="menuitem","SELECT"==s._orgTag&&(s.header=o.getAttribute("header"),s._lbx.itemsSource&&(s.commandParameterPath="cmdParam")),s.isContentHtml=!0,s.maxDropDownHeight=500,s.addEventListener(s._hdr,"click",function(e){e.defaultPrevented||(s._clearHover(e),s._isButton?(s.isDroppedDown=!1,s._raiseCommand()):s.isDroppedDown=!s.isDroppedDown)}),a.lostFocus.addHandler(function(){s.containsFocus()||(s.isDroppedDown=!1)}),e.addClass(l,"wj-menu-items"),a.formatItem.addHandler(s._formatMenuItem.bind(s)),s.initialize(n),s}return __extends(i,t),Object.defineProperty(i.prototype,"header",{get:function(){return this._hdr.innerHTML},set:function(t){this._hdr.innerHTML=e.asString(t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"command",{get:function(){return this._cmd},set:function(e){this._cmd=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"commandPath",{get:function(){return this._cmdPath},set:function(t){this._cmdPath=e.asString(t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"commandParameterPath",{get:function(){return this._cmdParamPath},set:function(t){this._cmdParamPath=e.asString(t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"subItemsPath",{get:function(){return this._subPath},set:function(e){e!=this._subPath&&(this._subPath=e,this.refresh(!0))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"openOnHover",{get:function(){return this._openOnHover},set:function(t){this._openOnHover=e.asBoolean(t),this._updateHoverEvents()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"closeOnLeave",{get:function(){return this._closeOnLeave},set:function(t){this._closeOnLeave=e.asBoolean(t),this._updateHoverEvents()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"isButton",{get:function(){return this._isButton},set:function(t){this._isButton=e.asBoolean(t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"owner",{get:function(){return this._owner},set:function(t){this._owner=e.asType(t,HTMLElement,!0),this._enableDisableItems()},enumerable:!0,configurable:!0}),i.prototype.show=function(t){if(!this.isDroppedDown&&(this.selectedIndex=-1,this.onIsDroppedDownChanging(new e.CancelEventArgs))){var i=this.dropDown,n=this.owner;if(!n&&t instanceof MouseEvent&&(n=t.target),n instanceof HTMLElement&&(i[e.Control._OWNR_KEY]=n),t instanceof MouseEvent&&this.openOnHover&&this.closeOnLeave){t=new e.Point(t.pageX-pageXOffset-2,t.pageY-pageYOffset-2)}e.showPopup(i,t,!1,this.isAnimated),this.onIsDroppedDownChanged(),i.focus()}},i.prototype.hide=function(){this.isDroppedDown&&this.onIsDroppedDownChanging(new e.CancelEventArgs)&&(e.hidePopup(this.dropDown),this.onIsDroppedDownChanged())},i.prototype.onItemClicked=function(e){this.itemClicked.raise(this,e)},i.prototype.refresh=function(e){void 0===e&&(e=!0),t.prototype.refresh.call(this,e),this.hostElement&&this._enableDisableItems()},i.prototype.onIsDroppedDownChanged=function(e){if(t.prototype.onIsDroppedDownChanged.call(this,e),this.isDroppedDown)this._closing=!0,this._defaultItem=this.selectedItem,this.isRequired=!1,this.selectedIndex=-1,this._enableDisableItems(),this._closing=!1,this.dropDown.focus();else{this.selectedItem||(this.selectedItem=this._defaultItem);var i=this._subMenu;i&&(i.isDroppedDown=!1)}},i.prototype._updateHoverEvents=function(){var e=this.hostElement,t=this.dropDown,i=this.addEventListener.bind(this),n=this.removeEventListener.bind(this),s="mouseleave";n(e,"mouseenter",this._hoverEnterBnd),n(e,s,this._hoverLeaveBnd),n(t,"mouseover",this._hoverOverBnd),n(t,s,this._hoverLeaveBnd),this._openOnHover&&(i(e,"mouseenter",this._hoverEnterBnd),i(t,"mouseover",this._hoverOverBnd),this._closeOnLeave&&(i(e,s,this._hoverLeaveBnd),i(t,s,this._hoverLeaveBnd)))},i.prototype._getSubItems=function(t){var i=this.subItemsPath,n=t&&i?t[i]:null;return e.isArray(n)&&n.length?n:null},i.prototype._formatMenuItem=function(t,i){var n=i.item;this._getSubItems(i.data)?e.addClass(n,"wj-subitems"):"-"==n.innerHTML&&(n.innerHTML="",e.addClass(n,"wj-separator"))},i.prototype._keydown=function(n){if(!n.defaultPrevented){var s=this._getKeyCode(n);if(this.isDroppedDown)switch(s){case e.Key.Enter:case e.Key.Right:if(this._showSubMenu())return void n.preventDefault();break;case e.Key.Left:var o=e.Control.getControl(this.owner);if(o instanceof i){var r=o.dropDown,a=o.selectedIndex;return(a>-1?r.children[a]:r).focus(),void n.preventDefault()}}s==e.Key.Enter&&(this.isDroppedDown?this.selectedIndex>-1&&this._raiseCommand():(this.isDroppedDown=!0,n.preventDefault()))}t.prototype._keydown.call(this,n)},i.prototype._dropDownClick=function(e){if(!e.defaultPrevented&&e.target!=this.dropDown){if(this._clearHover(e),this._showSubMenu())return void e.preventDefault();this.selectedIndex>-1&&this._raiseCommand()}t.prototype._dropDownClick.call(this,e)},i.prototype._showSubMenu=function(){var t=this,n=this._getSubItems(this.selectedItem);if(!n)return null;var s=this.dropDown.children[this.selectedIndex].getBoundingClientRect(),o=new e.Point(s.right,s.top);if(0==s.height)return null;var r=this.rightToLeft||"rtl"==this.dropDown.getAttribute("dir");r&&(o.x=s.left);var a=this._subMenu;a&&(a.isDroppedDown=!1),a=new i(document.createElement("div"),{owner:this.hostElement,itemsSource:n,itemClicked:function(e,i){t.itemClicked.raise(e,i)},formatItem:function(e,i){t.formatItem.raise(e,i)}});var l=this.collectionView,h=a.collectionView;l&&l.filter&&h&&!h.filter&&(h.filter=l.filter),"displayMemberPath,selectedValuePath,isContentHtml,command,commandPath,commandParameterPath,maxDropDownWidth,maxDropDownHeight,dropDownCssClass,isAnimated,subItemsPath,openOnHover,closeOnLeave".split(",").forEach(function(e){a[e]=t[e]});var c=a.dropDown;return e.setAttribute(c,"dir",r?"rtl":null),a.show(o),c[e.Control._OWNR_KEY]=this.dropDown,c.focus(),a},i.prototype._raiseCommand=function(t){var n=this.selectedItem,s=this._getSubItems(n),o=this._getCommand(n);if(o&&!s){var r=this._getCommandParm(n);if(!this._canExecuteCommand(o,r))return;this._executeCommand(o,r)}var a=this.headerPath;if(a){var l=new e.Binding(a).getValue(n);l=null==l?"":l.toString(),this.header=this.isContentHtml?l:e.escapeHtml(l)}if(this.onItemClicked(t),this.containsFocus()){for(var h=this;h&&h.owner;){var c=e.Control.getControl(h.owner);if(!(c instanceof i))break;h=c}var u=h.owner;if(!u&&h.dropDown&&(u=h.dropDown[e.Control._OWNR_KEY]),h.isDroppedDown=!1,h.focus(),!h.containsFocus()&&u instanceof HTMLElement&&u.offsetHeight)if(e.isIE){var d=document.documentElement,p=d.scrollLeft,f=d.scrollTop;u.focus(),d.scrollLeft=p,d.scrollTop=f}else u.focus()}},i.prototype._getCommand=function(e){var t=e&&this._cmdPath?e[this._cmdPath]:null;return t||this._cmd},i.prototype._getCommandParm=function(e){var t=this._cmdParamPath;return e&&t?e[t]:e},i.prototype._executeCommand=function(t,i){t&&!e.isFunction(t)&&(t=t.executeCommand),e.isFunction(t)&&t(i)},i.prototype._canExecuteCommand=function(t,i){if(t){var n=t.canExecuteCommand;if(e.isFunction(n))return n(i)}return!0},i.prototype._enableDisableItems=function(){if(this.collectionView&&(this._cmd||this._cmdPath))for(var t=this.collectionView.items,i=0;i<t.length;i++){var n=t[i],s=this._getCommand(n);if(s){var o=this._lbx.hostElement.children[i],r=this._getCommandParm(n);e.toggleClass(o,"wj-state-disabled",!this._canExecuteCommand(s,r))}}},i.prototype._clearHover=function(e){this._toHover&&clearTimeout(this._toHover),this._toHover=null,i._evtHover=e},i.prototype._isTargetDisabled=function(t){return e.hasClass(t.target,"wj-state-disabled")},i.prototype._hoverEnter=function(t){var i=this;this._clearHover(t),this._toHover=setTimeout(function(){i._toHover=null,i.isDroppedDown=!0},e.Control._HOVER_DELAY)},i.prototype._hoverOver=function(t){var i=this;this._clearHover(t),this._toHover=setTimeout(function(){i._toHover=null;var n=i.listBox.indexOf(t.target);n>-1&&!e.hasClass(t.target,"wj-state-disabled")&&(i.selectedIndex=n,i._subMenu=i._showSubMenu())},e.Control._HOVER_DELAY)},i.prototype._hoverLeave=function(t){var n=this;this._clearHover(t),this.isDroppedDown&&(this._toHover=setTimeout(function(){var s=(t=i._evtHover)?document.elementFromPoint(t.clientX,t.clientY):null,o=e.closest(s,".wj-listbox.wj-menu-items"),r=n._subMenu;o||e.contains(n.hostElement,s,!0)||(n.isDroppedDown=!1,r&&(r.isDroppedDown=!1))},e.Control._LEAVE_DELAY))},i.prototype._setIsDisabled=function(e){t.prototype._setIsDisabled.call(this,e),this.hostElement.tabIndex=this.isDisabled?-1:this._orgTabIndex},i.prototype._setTabOrder=function(e){t.prototype._setTabOrder.call(this,e),this.hostElement.tabIndex=this.isDisabled?-1:this._orgTabIndex},i}(t.ComboBox);t.Menu=i}(e.input||(e.input={}))}(wijmo||(wijmo={})),function(e){!function(t){"use strict";var i=function(t){function i(i,n){var s=t.call(this,i)||this;if(s._format="t",s.valueChanged=new e.Event,e.addClass(s.hostElement,"wj-inputtime"),s.isEditable=!0,s._value=e.DateTime.newDate(),s._min=s._max=null,s._msk=new e._MaskProvider(s._tbx),e.isIE9()||(s._tbx.type="tel"),"INPUT"==s._orgTag){var o=s._tbx.getAttribute("value");o&&(s.value=e.Globalize.parseDate(o,"HH:mm:ss"))}return s.step=15,s.autoExpandSelection=!0,s.initialize(n),s}return __extends(i,t),Object.defineProperty(i.prototype,"inputElement",{get:function(){return this._tbx},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"inputType",{get:function(){return this._tbx.type},set:function(t){this._tbx.type=e.asString(t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"value",{get:function(){return this._value},set:function(t){(t=e.asDate(t,!this.isRequired))&&(t=this._clamp(t)),this._setText(t?e.Globalize.format(t,this.format):"",!0),this.selectedItem&&this.selectedItem.value&&(t=e.DateTime.fromDateTime(t,this.selectedItem.value)),t==this._value||e.DateTime.equals(t,this._value)||(this._value=t,this.onValueChanged())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"text",{get:function(){return this._tbx.value},set:function(e){e!=this.text&&(this._setText(e,!0),this._commitText())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"min",{get:function(){return this._min},set:function(t){this._min=e.asDate(t,!0),this.isDroppedDown=!1,this._updateItems()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"max",{get:function(){return this._max},set:function(t){this._max=e.asDate(t,!0),this.isDroppedDown=!1,this._updateItems()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"step",{get:function(){return this._step},set:function(t){t!=this.step&&(this._step=e.asNumber(t,!0),this.isDroppedDown=!1,this._updateItems())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"format",{get:function(){return this._format},set:function(t){t!=this.format&&(this._format=e.asString(t),this._tbx.value=e.Globalize.format(this.value,this.format),e.hasItems(this.collectionView)&&this._updateItems())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"mask",{get:function(){return this._msk.mask},set:function(t){this._msk.mask=e.asString(t)},enumerable:!0,configurable:!0}),i.prototype.onValueChanged=function(e){this.valueChanged.raise(this,e)},i.prototype.onItemsSourceChanged=function(e){t.prototype.onItemsSourceChanged.call(this,e),this._hasCustomItems=null!=this.itemsSource},i.prototype.refresh=function(i){void 0===i&&(i=!0),t.prototype.refresh.call(this,i),this.hostElement&&(this._msk.refresh(),this._tbx.value=e.Globalize.format(this.value,this.format),this._updateItems())},i.prototype.onSelectedIndexChanged=function(i){if(this.selectedIndex>-1&&!this._settingText){var n=this.value?this.value:e.DateTime.newDate(),s=null!=this.selectedItem.value?this.selectedItem.value:e.Globalize.parseDate(this.text,this.format,this.value);this.value=e.DateTime.fromDateTime(n,s)}t.prototype.onSelectedIndexChanged.call(this,i)},i.prototype._clamp=function(t){return null!=this._min&&this._getTime(t)<this._getTime(this._min)&&(t=e.DateTime.fromDateTime(t,this._min)),null!=this._max&&this._getTime(t)>this._getTime(this._max)&&(t=e.DateTime.fromDateTime(t,this._max)),t},i.prototype._wheel=function(i){if(!i.defaultPrevented&&!this.isDroppedDown&&!this.isReadOnly&&this.containsFocus()&&this.selectedIndex<0&&this.value&&e.isNumber(this.step)&&this.step>0){var n=e.DateTime.addMinutes(this.value,this.step*e.clamp(i.deltaY,-1,1));this.value=this._clamp(n),this.selectAll(),i.preventDefault()}t.prototype._wheel.call(this,i)},i.prototype._updateInputSelection=function(i){if(this._delKey)t.prototype._updateInputSelection.call(this,i);else{for(var n=this._tbx.value;i<n.length&&!n[i].match(/[a-z0-9]/i);)i++;e.setSelectionRange(this._tbx,i,this._tbx.value.length)}},i.prototype._updateItems=function(){if(!this._hasCustomItems){var t=[],i=new Date(2020,0),n=new Date(2020,0,1,23,59,59),s=this.step;if(this.min&&i.setHours(this.min.getHours(),this.min.getMinutes(),this.min.getSeconds()),this.max&&n.setHours(this.max.getHours(),this.max.getMinutes(),this.max.getSeconds()),e.isNumber(s)&&s>=1)for(var o=i;o<=n;o=e.DateTime.addMinutes(o,s))t.push({value:o,text:e.Globalize.format(o,this.format)});var r=this.value;this._settingText=!0,this.displayMemberPath="text",this.selectedValuePath="text",this.itemsSource=t,this._hasCustomItems=!1,this._settingText=!1,!r&&this.isRequired||(this.value=r)}},i.prototype._getTime=function(e){return 3600*e.getHours()+60*e.getMinutes()+e.getSeconds()},i.prototype._keydown=function(i){if(t.prototype._keydown.call(this,i),!i.defaultPrevented)switch(i.keyCode){case e.Key.Enter:this.isDroppedDown||(this._commitText(),this.selectAll());break;case e.Key.Escape:this.text=e.Globalize.format(this.value,this.format),this.selectAll()}},i.prototype._commitText=function(){if(this.text||this.isRequired){var t=this.value?e.Globalize.format(this.value,this.format):"";if(this.text!=t){var i=this.selectedItem&&this.selectedItem.value?this.selectedItem.value:e.Globalize.parseDate(this.text,this.format,this.value);i?(e.DateTime.sameTime(i,this._clamp(i))||this.onInvalidInput(new e.CancelEventArgs))&&(this.value=e.DateTime.fromDateTime(this.value,i)):this.onInvalidInput(new e.CancelEventArgs)&&(this.text=t)}}else this.value=null},i}(t.ComboBox);t.InputTime=i}(e.input||(e.input={}))}(wijmo||(wijmo={})),function(e){!function(t){"use strict";e._addCultureInfo("InputDateTime",{ariaLabels:{tglDate:"Toggle Calendar",tglTime:"Toggle Time List"}});var i=function(i){function n(n,s){var o=i.call(this,n)||this;e.addClass(o.hostElement,"wj-inputdatetime");var r=e.culture.InputDateTime.ariaLabels;e.setAriaLabel(o._btn,r.tglDate),e.setAriaLabel(o._btnTm,r.tglTime),o.value=new Date,o.format="g",o._inputTime=new t.InputTime(document.createElement("div"),{valueChanged:function(t){var i=o.rangeEnd;o.value=e.DateTime.fromDateTime(o.value,t.value),o.calendar._rngMode()&&i&&(o.rangeEnd=e.DateTime.fromDateTime(i,t.value))},isDroppedDownChanged:function(e){e.listBox.containsFocus()&&o.inputElement.focus(),o._selectAll()}});var a=o.addEventListener.bind(o);o._btnTm=o.hostElement.querySelector('[wj-part="btn-tm"]'),a(o._btnTm,"mousedown",function(e){o._btnclick(e)}),o._ddDate=o._dropDown;var l=o._ddTime=o._inputTime.dropDown;return a(l,"keydown",o._keydown.bind(o),!0),a(l,"blur",function(){o._updateFocusState()},!0),a(l,"click",function(e){e.defaultPrevented||e.target!=l&&o.hostElement.focus()},!0),o.initialize(s),o.text=o._getText(),o}return __extends(n,i),Object.defineProperty(n.prototype,"timeMin",{get:function(){return this._inputTime.min},set:function(e){this._inputTime.min=e},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"timeMax",{get:function(){return this._inputTime.max},set:function(e){this._inputTime.max=e},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"timeFormat",{get:function(){return this._inputTime.format},set:function(e){this._inputTime.format=e},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"timeStep",{get:function(){return this._inputTime.step},set:function(t){this._inputTime.step=t,this._btnTm.style.display=e.isNumber(t)&&t>0?"":"none"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"inputTime",{get:function(){return this._inputTime},enumerable:!0,configurable:!0}),n.prototype._fromDateTime=function(e){return e},n.prototype._btnclick=function(t){var n=e.closest(t.target,"button")==this._btn?this._ddDate:this._ddTime;this._setDropdown(n),i.prototype._btnclick.call(this,t)},n.prototype.dispose=function(){this._setDropdown(this._ddDate),i.prototype.dispose.call(this),this._inputTime.dispose()},n.prototype.refresh=function(e){void 0===e&&(e=!0),this._inputTime.refresh(),i.prototype.refresh.call(this,e)},n.prototype._updateBtn=function(){i.prototype._updateBtn.call(this),this._btnTm&&(this._btnTm.tabIndex=this._btn.tabIndex,this._btnTm.parentElement.style.display=this._btn.style.display)},n.prototype._setDropdown=function(e){if(this._dropDown==e)return!1;this.isDroppedDown&&(this.isDroppedDown=!1);var t=this.dropDownCssClass;return this.dropDownCssClass="",this._dropDown=e,this.dropDownCssClass=t,!0},n.prototype._updateDropDown=function(){var e=this._inputTime;this._dropDown==e.dropDown?(this._commitText(),i.prototype._updateDropDown.call(this),e.isRequired=this.isRequired&&null!=this.value,e.value=this.value,this.isDroppedDown&&e.listBox.showSelection()):i.prototype._updateDropDown.call(this)},n.controlTemplate='<div class="wj-template"><div class="wj-input"><div class="wj-input-group wj-input-btn-visible"><input wj-part="input" type="text" class="wj-form-control"/><span class="wj-input-group-btn"><button wj-part="btn" class="wj-btn wj-btn-default" tabindex="-1"><span class="wj-glyph-calendar"></span></button><button wj-part="btn-tm" class="wj-btn wj-btn-default" tabindex="-1"><span class="wj-glyph-clock"></span></button></span></div></div><div wj-part="dropdown" class="wj-content wj-dropdown-panel"></div></div>',n}(t.InputDate);t.InputDateTime=i}(e.input||(e.input={}))}(wijmo||(wijmo={})),function(e){!function(t){"use strict";var i=function(t){function i(i,n){var s=t.call(this,i)||this;return s._cssMatch="wj-state-match",s._minLength=2,s._maxItems=6,s._itemCount=0,s._beginsWith=!1,s._delay=e.Control._SEARCH_DELAY,s._query="",s._inCallback=!1,s._srchProps=[],e.addClass(s.hostElement,"wj-autocomplete"),s._bsCollapse=!1,s.isEditable=!0,s.isRequired=!1,s.listBox.formatItem.addHandler(s._formatListItem,s),s._itemsSourceFnCallbackBnd=s._itemSourceFunctionCallback.bind(s),s.initialize(n),s}return __extends(i,t),Object.defineProperty(i.prototype,"minLength",{get:function(){return this._minLength},set:function(t){this._minLength=e.asNumber(t,!1,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"beginsWithSearch",{get:function(){return this._beginsWith},set:function(t){this._beginsWith=e.asBoolean(t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"maxItems",{get:function(){return this._maxItems},set:function(t){this._maxItems=e.asNumber(t,!1,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"delay",{get:function(){return this._delay},set:function(t){this._delay=e.asNumber(t,!1,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"searchMemberPath",{get:function(){return this._srchProp},set:function(t){this._srchProp=e.asString(t),this._srchProps=t?t.trim().split(/\s*,\s*/):[]},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"itemsSourceFunction",{get:function(){return this._itemsSourceFn},set:function(t){this._itemsSourceFn=e.asFunction(t),e.isFunction(this._itemsSourceFn)&&this.itemsSourceFunction(this.text,this.maxItems,this._itemsSourceFnCallbackBnd)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"cssMatch",{get:function(){return this._cssMatch},set:function(t){this._cssMatch=e.asString(t)},enumerable:!0,configurable:!0}),i.prototype._keydown=function(i){if(!i.defaultPrevented&&this.isDroppedDown)switch(i.keyCode){case e.Key.Up:case e.Key.Down:this.selectAll()}t.prototype._keydown.call(this,i)},i.prototype._setText=function(t){var i=this;if(!(this._inCallback||this._composing||this._settingText)){if(this.selectedIndex>-1&&this.getDisplayText()!=t&&(this._settingText=!0,this.selectedIndex=-1,this._settingText=!1),t!=this._oldText){var n=this._tbx;n.value!=t&&(n.value=t),this._oldText=t,this.onTextChanged();var s=this.collectionView;if(!t&&s){(this._query||this.selectedIndex<0)&&(this.isDroppedDown=!1),this._query=this._rxHighlight=null,s.filter=null;var o=this.itemsSourceFunction;return void(e.isFunction(o)&&(this.isDroppedDown=!1,o(this._query,this.maxItems,this._itemsSourceFnCallbackBnd)))}}this._toSearch&&clearTimeout(this._toSearch),t!=this.getDisplayText()&&(this._toSearch=setTimeout(function(){i._toSearch=null;var t=i.text.trim();if(t.length>=i._minLength&&t!=i._query){i._query=t,t=e.escapeRegExp(t);var n=e.escapeHtml(t),s=i.caseSensitiveSearch?"":"i";i._beginsWith||(s+="g"),i._rxSrch=i._beginsWith?new RegExp("^"+t+".*",s):new RegExp("(?=.*"+t.replace(/ /g,")(?=.*")+")",s),i._rxHighlight=new RegExp("("+n.replace(/\s+/g,"|")+")",s);var o=i.itemsSourceFunction;e.isFunction(o)?o(i._query,i.maxItems,i._itemsSourceFnCallbackBnd):i._updateItems()}},this._delay))}},i.prototype._itemSourceFunctionCallback=function(t){this._inCallback=!0;var i=e.asCollectionView(t||[]);if(i.moveCurrentToPosition(-1),this.itemsSource=i,this._inCallback=!1,this.containsFocus()){var n=this._tbx,s=n.selectionStart,o=n.selectionEnd,r=this.collectionView;this.isDroppedDown=null!=r&&r.items.length>0,e.setSelectionRange(n,s,o),this.refresh()}},i.prototype.onIsDroppedDownChanged=function(i){if(t.prototype.onIsDroppedDownChanged.call(this,i),this.containsFocus()&&!this.isTouching){var n=this.collectionView;if(this.selectedIndex<0&&n){var s=n.items,o=this.text;1==s.length&&s[0]==o?this.selectedIndex=0:e.setSelectionRange(this._tbx,o.length)}}this._query=""},i.prototype._updateItems=function(){var t=this.collectionView;if(t){this._inCallback=!0,t.beginUpdate(),this._itemCount=0,t.filter=this._filter.bind(this),t.moveCurrentToPosition(-1),t.endUpdate(),this._inCallback=!1;var i=t.items.length,n=this._tbx,s=n.selectionStart,o=n.selectionEnd;if(this.isDroppedDown=i>0&&this.containsFocus(),i||this.isEditable||(this.selectedIndex=-1),1==i&&this.selectedIndex<0){var r=this._getItemText(t.items[0],!1),a=n.value;this.caseSensitiveSearch||(r=r.toLowerCase(),a=a.toLowerCase()),r==a&&(this.selectedIndex=0)}this.isDroppedDown&&e.setSelectionRange(n,s,o),this.refresh()}},i.prototype._filter=function(e){if(this._itemCount>=this._maxItems)return!1;var t=[this._getItemText(e,!1)];this._srchProps&&this._srchProps.forEach(function(i){var n=e[i];null!=n&&t.push(n)}),this.isContentHtml&&(t=t.map(function(e){return e.replace(/(<[^>]*>|&[^;]*;)/g,"")}));for(var i=0;i<t.length;i++)if(this._rxSrch.test(t[i]))return this._itemCount++,!0;return!1},i.prototype._getItemText=function(e,t){var i=e?e.toString():"",n=t&&this.headerPath?this._pathHdr:this._lbx._pathDisplay;return n&&(i=null!=(i=n.getValue(e))?i.toString():""),i},i.prototype._formatListItem=function(e,t){var i=this;this._cssMatch&&this._rxHighlight&&(t.item.innerHTML=t.item.innerHTML.replace(this._rxHighlight,function(e,t,n,s){return i._enclosed(s,n,"<",">")||i._enclosed(s,n,"&",";")?e:'<span class="'+i._cssMatch+'">'+e+"</span>"}))},i.prototype._enclosed=function(e,t,i,n){for(var s=t;s>=0&&e[s]!=n;s--)if(e[s]==i)for(var o=t;o<e.length&&e[o]!=i;o++)if(e[o]==n)return!0;return!1},i}(t.ComboBox);t.AutoComplete=i}(e.input||(e.input={}))}(wijmo||(wijmo={})),function(e){!function(t){"use strict";var i=function(t){function i(i,n){var s=t.call(this,i)||this;return s._selItems=[],s._maxSelItems=null,s._lastInputValue="",s._selPath=new e.Binding(null),s._notAddItm=!1,s.selectedItemsChanged=new e.Event,e.addClass(s.hostElement,"wj-multi-autocomplete"),s._wjTpl=s.hostElement.querySelector(".wj-template"),s._wjInput=s.hostElement.querySelector(".wj-input"),s.showDropDownButton=!1,s.initialize(n),s.addEventListener(s.hostElement,"keyup",s._keyup.bind(s),!0),s.addEventListener(window,"resize",s._adjustInputWidth.bind(s)),s.addEventListener(s._tbx,"focus",function(){s._itemOff()}),s._addHelperInput(),s._initSeltems(),s.listBox.itemsChanged.addHandler(function(){return s.selectedIndex=-1}),s._refreshHeader(),s}return __extends(i,t),Object.defineProperty(i.prototype,"showDropDownButton",{set:function(e){this._showBtn=!1},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"maxSelectedItems",{get:function(){return this._maxSelItems},set:function(t){this._maxSelItems!=t&&(this._maxSelItems=e.asNumber(t,!0),this._updateMaxItems(),this._refreshHeader(),this._clearSelIndex())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"selectedMemberPath",{get:function(){return this._selPath.path},set:function(t){(t=e.asString(t))!==this.selectedMemberPath&&(this._selPath.path=t,this._initSeltems(),this._refreshHeader(),this.onSelectedItemsChanged())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"selectedItems",{get:function(){return this._selItems},set:function(t){if(this._selItems=e.asArray(t),this.selectedMemberPath&&""!==this.selectedMemberPath&&this._selItems)for(var i=0;i<this._selItems.length;i++){var n=this._selItems[i];this._setSelItem(n,!1)}this._updateMaxItems(),this.onSelectedItemsChanged(),this._refreshHeader(),this._clearSelIndex()},enumerable:!0,configurable:!0}),i.prototype.onSelectedItemsChanged=function(e){this.selectedItemsChanged.raise(this,e)},i.prototype.onIsDroppedDownChanged=function(e){!this.isDroppedDown&&this.selectedIndex>-1&&!this._notAddItm&&this._addItem(!0),this._notAddItm=!1,t.prototype.onIsDroppedDownChanged.call(this,e)},i.prototype.refresh=function(e){void 0===e&&(e=!0),t.prototype.refresh.call(this,e),this.hostElement&&(this._initSeltems(),this.isDroppedDown||this._refreshHeader())},i.prototype._keydown=function(i){if(!this.isReadOnly){if(!i.defaultPrevented)switch(i.keyCode){case e.Key.Back:this._lastInputValue=this._tbx.value;break;case e.Key.Enter:this._itemOff(),this._addItem(!0),e.isIE()&&e.setSelectionRange(this._tbx,this._tbx.textContent.length,this._tbx.textContent.length);break;case e.Key.Tab:this.isDroppedDown?(this._addItem(!1),this._tbx.value="",this._lbx.selectedIndex=-1,i.preventDefault()):this._updateFocus();break;case e.Key.Space:if(""!==this._tbx.value)return;this.isDroppedDown||this._tbx.disabled||(this.isDroppedDown=!0,this._clearSelIndex());break;case e.Key.Escape:this.isDroppedDown&&(this._notAddItm=!0);break;case e.Key.Left:this._itemOn(!this.rightToLeft);break;case e.Key.Right:this._itemOn(!!this.rightToLeft);break;case e.Key.Up:case e.Key.Down:var n=e.getActiveElement();if(i.altKey){if(this._tbx==n)return this.isDroppedDown=!this.isDroppedDown,this.isDroppedDown||this._tbx.focus(),void i.preventDefault()}else if(this._tbx!==n)return;default:if(i.keyCode===e.Key.Back||i.keyCode===e.Key.Delete)return;this._itemOff(),null!=this._maxSelItems&&this._selItems.length>=this._maxSelItems&&i.preventDefault()}this._tbx.disabled||t.prototype._keydown.call(this,i)}},i.prototype._updateState=function(){t.prototype._updateState.call(this),this._wjTpl&&(e.hasClass(this.hostElement,"wj-state-focused")||this._itemOff())},i.prototype._keyup=function(t){if(!this.isReadOnly&&!t.defaultPrevented)switch(t.keyCode){case e.Key.Back:0===this._tbx.value.length&&0===this._lastInputValue.length&&this._delItem(!1);break;case e.Key.Delete:this._delItem(!0)}},i.prototype._addHelperInput=function(){var e=document.createElement("input");e.type="text",e.tabIndex=-1,e.className="wj-token-helper",e.readOnly=!0,this._wjTpl.insertBefore(e,this._wjInput),this._helperInput=e},i.prototype._refreshHeader=function(){for(var e=this.hostElement.querySelectorAll(".wj-token"),t=0;t<e.length;t++)this._wjTpl.removeChild(e[t]);var i=this.selectedItems;if(!i||0===i.length)return this._wjInput.style.cssFloat=this.rightToLeft?"right":"left",void this._adjustInputWidth();for(t=0;t<i.length;t++)this._insertToken(i[t]);this._wjInput.style.cssFloat=this.rightToLeft?"right":"left",this._adjustInputWidth()},i.prototype._insertToken=function(t){var i=this._getItemText(t,!0);this.isContentHtml||(i=e.escapeHtml(i)),this._wjTpl.insertBefore(this._createItem(i),this._wjInput)},i.prototype._updateMaxItems=function(){null!=this._maxSelItems&&this._selItems&&this._selItems.length>this._maxSelItems&&(this._selItems=this._selItems.slice(0,this._maxSelItems))},i.prototype._updateFocus=function(){var t=this,n=this._wjTpl.querySelector("."+i._clsActive);n?(e.removeClass(n,i._clsActive),setTimeout(function(){t._tbx.focus()})):this._clearSelIndex()},i.prototype._addItem=function(e){this.selectedItems.indexOf(this.selectedItem)>-1?this._clearSelIndex():this.selectedIndex>-1&&(this._updateSelItems(this.selectedItem,!0),this._refreshHeader(),e&&this._clearSelIndex(),this._disableInput(!0))},i.prototype._delItem=function(e){var t,n,s=this._wjTpl.querySelector("."+i._clsActive),o=!1;e&&!s||(s?(n=this._getItemIndex(s))>-1&&(t=this._selItems[n],o=!0):this._selItems.length>0&&(t=this._selItems[this._selItems.length-1],o=!0),o&&(this._updateSelItems(t,!1),this._refreshHeader(),this._clearSelIndex(),this._disableInput(!1)),this._tbx.focus())},i.prototype._updateSelItems=function(e,t){if(t){if(this._selItems&&0!==this._selItems.length||(this._selItems=[]),null!=this._maxSelItems&&this._selItems.length>=this._maxSelItems)return;this._selItems.push(e)}else{var i=this._selItems.indexOf(e);this._selItems.splice(i,1)}this._hasSelectedMemeberPath()&&this._setSelItem(e,t),this.onSelectedItemsChanged()},i.prototype._createItem=function(t){var n=this,s=document.createElement("div"),o=document.createElement("span"),r=document.createElement("a");return s.appendChild(o),s.appendChild(r),s.className="wj-token",o.className="wj-token-label",o.innerHTML=t,r.className="wj-token-close",r.href="#",r.tabIndex=-1,r.text="×",s.style.cssFloat=this.rightToLeft?"right":"left",this.addEventListener(s,"click",function(t){n._helperInput.focus();var o=n._wjTpl.querySelector("."+i._clsActive);o&&e.removeClass(o,i._clsActive),e.addClass(s,i._clsActive),t.stopPropagation(),t.preventDefault()}),this.addEventListener(r,"click",function(e){if(!n.isReadOnly){var t=n._getItemIndex(s);if(t>-1){var i=n._selItems[t];n._updateSelItems(i,!1)}n._wjTpl.removeChild(s),n._adjustInputWidth(),n._disableInput(!1),n._tbx.focus(),e.stopPropagation(),e.preventDefault()}}),s},i.prototype._itemOn=function(t){var n,s,o,r=e.getActiveElement();if((this._tbx!=r||0===this._tbx.value.length)&&0!==(n=this._wjTpl.querySelectorAll(".wj-token")).length)if(s=this._wjTpl.querySelector("."+i._clsActive),o=this._getItemIndex(s),t){if(0===o)return;-1===o?(e.addClass(n[n.length-1],i._clsActive),this._helperInput.focus()):(e.removeClass(s,i._clsActive),e.addClass(n[o-1],i._clsActive),this._helperInput.focus())}else if(!t){if(-1===o)return;o!==n.length-1?(e.removeClass(s,i._clsActive),e.addClass(n[o+1],i._clsActive),this._helperInput.focus()):(e.removeClass(s,i._clsActive),this._tbx.focus())}},i.prototype._itemOff=function(){var t=this._wjTpl.querySelector("."+i._clsActive);t&&e.removeClass(t,i._clsActive)},i.prototype._initSeltems=function(){if(this.selectedMemberPath){this._selItems.splice(0,this._selItems.length);var e=this.collectionView;if(e)for(var t=0;t<e.sourceCollection.length;t++)this._getSelItem(t)&&this._selItems.push(e.sourceCollection[t])}},i.prototype._getSelItem=function(t){var i=this.collectionView,n=i?i.sourceCollection[t]:null;return!(!e.isObject(n)||!this.selectedMemberPath)&&this._selPath.getValue(n)},i.prototype._setSelItem=function(t,i){this.itemsSource;e.isObject(t)&&this._selPath.getValue(t)!=i&&this._selPath.setValue(t,i)},i.prototype._clearSelIndex=function(){this.selectedIndex=-1},i.prototype._hasSelectedMemeberPath=function(){return this.selectedMemberPath&&""!==this.selectedMemberPath},i.prototype._disableInput=function(e){null!=this._maxSelItems&&(this._selItems.length<this._maxSelItems?(this._tbx.disabled=!1,this._tbx.focus()):(this._tbx.disabled=!0,this.hostElement.focus()))},i.prototype._adjustInputWidth=function(){this._tbx.style.width="60px";var t,i=e.getElementRect(this.hostElement),n=e.getElementRect(this._tbx),s=getComputedStyle(this._tbx),o=parseInt(s.paddingLeft,10),r=parseInt(s.paddingRight,10);t=this.rightToLeft?n.left+n.width-i.left-o-r-8:i.left+i.width-n.left-o-r-8,this._tbx.style.width=t+"px"},i.prototype._getItemIndex=function(e){for(var t=this.hostElement.querySelectorAll(".wj-token"),i=0;i<t.length;i++)if(e===t[i])return i;return-1},i._clsActive="wj-token-active",i}(t.AutoComplete);t.MultiAutoComplete=i}(e.input||(e.input={}))}(wijmo||(wijmo={})),function(e){e.input||(e.input={}),e._registerModule("wijmo.input",e.input)}(wijmo||(wijmo={}));
var __extends=this&&this.__extends||function(){var n=function(t,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r(){this.constructor=t}if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(t,i);t.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}}(),c1;(function(n){var t;(function(n){var d=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(wijmo.input.AutoComplete),t,i,r,u,f,e,o,s,h,c,l,a,v,y,p,w,b,k;n.AutoComplete=d;t=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(wijmo.input.Calendar);n.Calendar=t;i=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(wijmo.input.ColorPicker);n.ColorPicker=i;r=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t.prototype.getDisplayText=function(t){return n.prototype.getDisplayText.call(this,t).trim()},t}(wijmo.input.ComboBox);n.ComboBox=r;u=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(wijmo.input.InputColor);n.InputColor=u;f=function(n){function t(t){var i=n.call(this,t)||this;return i._dropDown&&i._dropDown.addEventListener("mousedown",function(n){n.stopPropagation()}),i}return __extends(t,n),t}(wijmo.input.InputDate);n.InputDate=f;e=function(n){function t(t){var i=n.call(this,t)||this;return i._dropDown&&i._dropDown.addEventListener("mousedown",function(n){n.stopPropagation()}),i}return __extends(t,n),t}(wijmo.input.InputDateRange);n.InputDateRange=e;o=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(wijmo.input.InputDateTime);n.InputDateTime=o;s=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(wijmo.input.InputMask);n.InputMask=s;h=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(wijmo.input.InputNumber);n.InputNumber=h;c=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(wijmo.input.InputTime);n.InputTime=c;l=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(wijmo.input.ListBox);n.ListBox=l;a=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(wijmo.input.Menu);n.Menu=a;v=function(n){function t(t,i){var r=this;return i==null&&(i={}),i.removeOnHide=!1,n.call(this,t,i)||this}return __extends(t,n),t}(wijmo.input.Popup);n.Popup=v;y=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(wijmo.input.MultiSelect);n.MultiSelect=y;p=function(n){function t(t,i){var r=n.call(this,t)||this;return r._initElements(),r.initialize(i),r}return __extends(t,n),Object.defineProperty(t.prototype,"collectionView",{get:function(){return this._collectionView},set:function(n){var i=wijmo.tryCast(n,wijmo.collections.CollectionView),t=this;i&&i!==t._collectionView&&(t._collectionView&&t._collectionView.collectionChanged.removeHandler(t._updatePager,t),t._collectionView=i,t._collectionView.collectionChanged.addHandler(t._updatePager,t),t._updatePager())},enumerable:!1,configurable:!0}),t.prototype.refresh=function(){n.prototype.refresh.call(this,!0);this._updateContent()},t.prototype._initElements=function(){var n=this,i=n.getTemplate(),t=[];n.applyTemplate("wj-control wj-content wj-pager",i,{_btnFirst:"btn-first",_btnPrev:"btn-prev",_btnNext:"btn-next",_btnLast:"btn-last",_inputPages:"pages"});t.push(n._btnFirst,n._btnPrev,n._btnNext,n._btnLast);t.forEach(function(t){return t.addEventListener("click",function(){n._movePage(t.getAttribute("data-action"))})})},t.prototype._movePage=function(n){var i=this,t=i.collectionView;if(t)switch(n){case"first":t.moveToFirstPage();break;case"prev":t.moveToPreviousPage();break;case"next":t.moveToNextPage();break;case"last":t.moveToLastPage()}},t.prototype._updatePager=function(){this.invalidate()},t.prototype._updateContent=function(){var n=this,t=n.collectionView,i,r,u="wj-btn wj-btn-default",f="wj-btn wj-btn-default wj-state-disabled";t&&(n._inputPages.value=t.pageIndex+1+" / "+t.pageCount,i=t.pageIndex<=0,r=t.pageIndex>=t.pageCount-1,n._btnFirst.disabled=i,n._btnPrev.disabled=i,n._btnNext.disabled=r,n._btnLast.disabled=r,n._btnFirst.className=n._btnFirst.disabled?n._btnPrev.className=f:n._btnPrev.className=u,n._btnLast.className=n._btnLast.disabled?n._btnNext.className=f:n._btnNext.className=u)},t.controlTemplate='<div class="wj-input-group">        <span class="wj-input-group-btn" >            <button wj-part="btn-first" data-action="first" class="wj-btn wj-btn-default" type="button">                <span class="wj-glyph-left" style="margin-right: -4px;"><\/span>                <span class="wj-glyph-left"><\/span>            <\/button>        <\/span>        <span class="wj-input-group-btn" >            <button wj-part="btn-prev" data-action="prev" class="wj-btn wj-btn-default" type="button">                <span class="wj-glyph-left"><\/span>            <\/button>        <\/span>        <input wj-part="pages" type="text" class="wj-form-control" disabled />        <span class="wj-input-group-btn" >            <button wj-part="btn-next" data-action="next" class="wj-btn wj-btn-default" type="button">                <span class="wj-glyph-right"><\/span>            <\/button>        <\/span>        <span class="wj-input-group-btn" >            <button wj-part="btn-last" data-action="last" class="wj-btn wj-btn-default" type="button">                <span class="wj-glyph-right"><\/span>                <span class="wj-glyph-right" style="margin-left: -4px;"><\/span>            <\/button>        <\/span>    <\/div>',t}(wijmo.Control);n.Pager=p;w=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(wijmo.input.MultiAutoComplete);n.MultiAutoComplete=w;b=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(wijmo.input.CollectionViewNavigator);n.CollectionViewNavigator=b;k=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(wijmo.input.MultiSelectListBox);n.MultiSelectListBox=k})(t=n.input||(n.input={}))})(c1||(c1={}));
var __extends=this&&this.__extends||function(){var n=function(t,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r(){this.constructor=t}if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(t,i);t.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}}(),c1;(function(n){var t;(function(t){var i;(function(i){var ci=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),Object.defineProperty(t.prototype,"_controlType",{get:function(){return c},enumerable:!1,configurable:!0}),t}(t._ControlWrapper),c,u,f,e,o,yt,l,a,s,v,y,pt,p,wt,w,bt,b,h,k,kt,d,g,dt,nt,gt,tt,it,ni,rt,ti,ut,ii,ft,ri,r,ui,et,fi,ot,ei,st,oi,ht,ct,si,lt,at,hi,vt;i._PagerWrapper=ci;c=function(t){function i(){return t!==null&&t.apply(this,arguments)||this}return __extends(i,t),i.cast=function(n){return n},i.prototype.initialize=function(i){var r,u,f;if(i)r=i.owner;else return;r&&(u=wijmo.Control.getControl("#"+r),u&&u.collectionView?i.collectionView=u.collectionView:(f=wijmo.tryCast(n.getService(r),wijmo.collections.CollectionView),f&&(i.collectionView=f)));delete i.owner;t.prototype.initialize.call(this,i)},i}(n.input.Pager);i.Pager=c;u=function(n){function i(){return n!==null&&n.apply(this,arguments)||this}return __extends(i,n),i.prototype._beforeInitializeControl=function(n){var o=this,f=this,r=f.control,u=r._tbx,s=u.getAttribute("wj-name"),i=f._hidden=document.createElement("input"),e;if(i.name=s,i.type="text",i.style.visibility="hidden",i.style.position="absolute",i.tabIndex=-1,n.validationAttributes){for(e in n.validationAttributes)i.setAttribute(e,n.validationAttributes[e]);delete n.validationAttributes}u.parentNode.style.position="relative";u.parentNode.insertBefore(i,u);t.Utils.forwardValidationEvents(r,u,i);t._overrideMethod(r,"onInvalidInput",null,this._afterOnInvalidInput,r);n.isRequired!=null&&(r.isRequired=n.isRequired,delete n.isRequired);n.tabOrder!=null&&t._overrideMethod(this.control,"_setTabOrder",null,function(n){var i=o.control,u=i._e,t,r;i._orgTabIndex=n;t=u.querySelectorAll("input");r=t.length===1?t[0]:t.length===2&&getComputedStyle(t[0]).visibility==="hidden"?t[1]:null;u.tabIndex=i.isDisabled||r?-1:i._orgTabIndex;r&&(r.tabIndex=i._orgTabIndex)},n.tabOrder);this._textChangedEvent=r.textChanged;this._textChangedEvent&&(n.textChanged&&(this._textChanged=n.textChanged,delete n.textChanged),this._textChangedEvent.addHandler(function(){i.value=f._processInputValue(r.value)}))},i.prototype._afterInitializeControl=function(n,i,r){i===void 0&&(i="value");r===void 0&&(r="valueChanged");var u=this,e=u.control,f=u._hidden;f&&(f.value=u._processInputValue(e[i]),e[r].addHandler(function(){f.value=u._processInputValue(e[i]);t.Utils.triggerValidationChangeEvent(f)}));this._textChanged&&this._textChangedEvent.addHandler(this._textChanged)},i.prototype._processInputValue=function(n){return wijmo.isDate(n)?wijmo.Globalize.formatDate(n,"yyyy/MM/dd HH:mm:ss"):n},i.prototype._afterOnInvalidInput=function(n){if(n.cancel){var i=this.hostElement.querySelectorAll("input"),t=i[1]||i[0];t&&(t.select(),t.focus())}},i}(n.mvc._Initializer);i._FormInputInitializer=u;f=function(n){function i(){return n!==null&&n.apply(this,arguments)||this}return __extends(i,n),i.prototype._beforeInitializeControl=function(n){var i=this;this._template=n.itemTemplateId||n.itemTemplateContent;delete n.itemTemplateId;delete n.itemTemplateContent;n.tabOrder!=null&&t._overrideMethod(this.control,"_setTabOrder",null,function(n){var r=i.control,f=r._e,t,u;r._orgTabIndex=n;t=f.querySelectorAll("input");u=t.length===1?t[0]:t.length===2&&(getComputedStyle(t[0]).visibility==="hidden"||t[0].className==="wj-token-helper")?t[1]:null;i.control instanceof wijmo.input.Menu||i.control instanceof wijmo.input.ListBox||(f.tabIndex=r.isDisabled||u?-1:r._orgTabIndex);u&&(u.tabIndex=r._orgTabIndex)},n.tabOrder)},i.prototype._afterInitializeControl=function(){var i=this,n=i.control,u=n.itemsChanged?n:n._lbx,r=this._template;r&&(u.isContentHtml=!0,u.itemsChanged.addHandler(function(){i._transformItems(r)}),i._transformItems(r),setTimeout(function(){i._transformItems(r)},15),n instanceof wijmo.input.ComboBox&&n.isDroppedDownChanged.addHandler(function(){n.isDroppedDown&&i._transformItems(r)}),n instanceof wijmo.input.ListBox&&t._overrideMethod(n,"refresh",null,function(){i._transformItems(r)}))},i.prototype._transformItems=function(n){for(var e=this,u=e.control,f=u.itemsChanged?u:u._lbx,o,r,i=0;i<f.hostElement.childElementCount;i++)o=f.hostElement.children.item(i),r={},r[t.Template.UID]=t._getUniqueId(e)+"_item"+i,r[t.Template.DATACONTEXT]=f.collectionView.items[i],n.applyTo(o,r)},i}(n.mvc._Initializer);i._ItemsInputInitializer=f;e=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(t._ControlWrapper);i._DropDownWrapper=e;o=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),Object.defineProperty(t.prototype,"_initializerType",{get:function(){return f},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_controlType",{get:function(){return l},enumerable:!1,configurable:!0}),t}(e);i._ComboBoxWrapper=o;yt=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(n.input.ComboBox);l=function(n){function i(){return n!==null&&n.apply(this,arguments)||this}return __extends(i,n),i.prototype.initialize=function(i){var f=this,u,e,o,s,r,h;i&&(i.validationAttributes&&(this._validationAttributes=i.validationAttributes,delete i.validationAttributes),u=i.itemsSource instanceof wijmo.collections.CollectionView?i.itemsSource:null,t.DataSourceManager._isRemoteSource(u)&&(r=!1,typeof i.selectedValue!="undefined"&&(e=i.selectedValue,delete i.selectedValue,r=!0),typeof i.selectedItem!="undefined"&&(s=i.selectedItem,delete i.selectedItem,r=!0),typeof i.selectedIndex!="undefined"&&(o=i.selectedIndex,delete i.selectedIndex,r=!0),r&&(h=function(){typeof e!="undefined"&&(f.selectedValue=e);typeof s!="undefined"&&(f.selectedItem=s);typeof o!="undefined"&&(f.selectedIndex=o);setTimeout(function(){u.collectionChanged.removeHandler(h)},0)},u.collectionChanged.addHandler(h))));n.prototype.initialize.call(this,i);this._handleHiddenField()},Object.defineProperty(i.prototype,"isEditable",{get:function(){return this._editable},set:function(n){n!==this._editable&&(this._editable=wijmo.asBoolean(n),this._updateHiddenInput())},enumerable:!1,configurable:!0}),i.prototype._handleHiddenField=function(){var n=this,u=n.hostElement.getAttribute("wj-name"),i=n._hiddenInput,r;if(i||(i=document.createElement("input"),i.type="text",i.name=u,i.style.visibility="hidden",i.style.position="absolute",i.tabIndex=-1,n._tbx.parentNode.insertBefore(i,n._tbx),t.Utils.forwardValidationEvents(n,n._tbx,i,!0),n._hiddenInput=i),n._validationAttributes)for(r in n._validationAttributes)i.setAttribute(r,n._validationAttributes[r]);n._updateHiddenInput()},i.prototype._onTextchanged=function(){var n=this;n._hiddenInput&&(n._hiddenInput.value=n.text,n.isEditable&&t.Utils.triggerValidationChangeEvent(n._hiddenInput))},i.prototype._onSelectedIndexChanged=function(){var n=this;n._hiddenInput&&(n._hiddenInput.value=n.selectedValue,t.Utils.triggerValidationChangeEvent(n._hiddenInput))},i.prototype._updateHiddenInput=function(){var n=this,t=n._hiddenInput;t&&(n.isEditable?(t.value=n.text,n.selectedIndexChanged.hasHandlers&&n.selectedIndexChanged.removeHandler(n._onSelectedIndexChanged,n),n.textChanged.addHandler(n._onTextchanged,n)):(t.value=n.selectedValue,n.textChanged.hasHandlers&&n.textChanged.removeHandler(n._onTextchanged,n),n.selectedIndexChanged.addHandler(n._onSelectedIndexChanged,n)))},i}(yt);i.ComboBox=l;a=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),Object.defineProperty(t.prototype,"_controlType",{get:function(){return v},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_initializerType",{get:function(){return s},enumerable:!1,configurable:!0}),t}(o);i._AutoCompleteWrapper=a;s=function(n){function i(){var t=n!==null&&n.apply(this,arguments)||this;return t._textPortToSelectedValue=!1,t}return __extends(i,n),i.prototype._beforeInitializeControl=function(t){(n.prototype._beforeInitializeControl.call(this,t),t)&&(this._processOptions(t),this._handleHiddenElement())},i.prototype._processOptions=function(n){var i=n.itemsSourceAction,r;i&&(n.itemsSourceFunction=function(n,r,u){t.Utils.ajaxGet({url:i,success:function(n){u(n)},data:{query:n,max:r}})},delete n.itemsSourceAction);n.validationAttributes&&(this._validationAttributes=n.validationAttributes,delete n.validationAttributes);r=n.isEditable==undefined||n.isEditable===!0;r&&n.displayMemberPath!=n.selectedValuePath&&n.text!=undefined&&(this._textPortToSelectedValue=!0,n.selectedValue=n.text,delete n.text)},i.prototype._createHiddenElement=function(){var n=document.createElement("input");return n.type="text",n.name=this.control.hostElement.getAttribute("wj-name"),n.style.visibility="hidden",n.style.position="absolute",n.tabIndex=-1,n},i.prototype._handleHiddenElement=function(){var r=this.control,n=r._tbx,i;if(!this._hiddenElement){if(this._hiddenElement=this._createHiddenElement(),this._validationAttributes)for(i in this._validationAttributes)this._hiddenElement.setAttribute(i,this._validationAttributes[i]);n.parentNode.insertBefore(this._hiddenElement,n);t.Utils.forwardValidationEvents(r,n,this._hiddenElement)}},i.prototype._updateHiddenField=function(){var t=this._hiddenElement,n=this.control;n.selectedIndexChanged.removeHandler(this._onSelectedIndexChanged,this);n.textChanged.removeHandler(this._onTextchanged,this);n.isEditable?(t.value=n.text,n.selectedIndexChanged.addHandler(this._onSelectedIndexChanged,this),n.textChanged.addHandler(this._onTextchanged,this)):(t.value=n.selectedValue,n.selectedIndexChanged.addHandler(this._onSelectedIndexChanged,this))},i.prototype._onTextchanged=function(){var i=this._hiddenElement,n=this.control;i&&(i.value=n.selectedIndex>-1?n.text!=n.getDisplayText()?n.text:n.selectedValue:n.text,n.isEditable&&t.Utils.triggerValidationChangeEvent(i))},i.prototype._onSelectedIndexChanged=function(){var i=this._hiddenElement,n=this.control;i&&(i.value=n.isEditable?n.selectedIndex>-1?n.selectedValue:n.text:n.selectedValue,t.Utils.triggerValidationChangeEvent(i))},i.prototype._afterInitializeControl=function(t){var i,r,u;n.prototype._afterInitializeControl.call(this,t);this._hiddenElement&&this._updateHiddenField();i=this.control;i.isEditable&&(t.selectedValue!=undefined&&this._textPortToSelectedValue&&i.selectedIndex==-1&&(i.text=t.selectedValue),r=i.text,i.selectedIndex==0&&r!=i.getDisplayText()&&(i.selectedIndex=-1,i.text=r),this._hiddenElement&&i.selectedIndex>-1&&(u=this._hiddenElement,u.value=i.selectedValue))},i}(f);i._AutoCompleteInitializer=s;v=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(n.input.AutoComplete);i.AutoComplete=v;y=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t.prototype._beforeInitializeControl=function(t){if(t.selectionMode==wijmo.input.DateSelectionMode.Range&&t.rangeEnd){var i=this.control;i.selectionMode=wijmo.input.DateSelectionMode.Range;delete t.selectionMode}n.prototype._beforeInitializeControl.call(this,t)},t.prototype._afterInitializeControl=function(t){var r,i,u;if(n.prototype._afterInitializeControl.call(this,t),r=this.control,r._isInitialized=!0,r.invalidate(),r.hostElement.getAttribute("dir")==="rtl"&&(r.hostElement.style.textAlign="right"),i=this.control,i.isDisabled&&i._cals&&i._cals.length>1)for(u=1;u<i._cals.length;u++)i._cals[u].hostElement.classList.contains("wj-state-disabled")&&i._cals[u].hostElement.classList.remove("wj-state-disabled")},t}(t._Initializer);i._CalendarInitializer=y;pt=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),Object.defineProperty(t.prototype,"_controlType",{get:function(){return p},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_initializerType",{get:function(){return y},enumerable:!1,configurable:!0}),t}(t._ControlWrapper);i._CalendarWrapper=pt;p=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t.prototype.refresh=function(t){(t===void 0&&(t=!0),this._isInitialized)&&n.prototype.refresh.call(this,t)},t}(n.input.Calendar);i.Calendar=p;wt=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),Object.defineProperty(t.prototype,"_controlType",{get:function(){return w},enumerable:!1,configurable:!0}),t}(t._ControlWrapper);i._ColorPickerWrapper=wt;w=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t.prototype.initialize=function(t){if(t){var i=t.palette;!i||delete t.palette;n.prototype.initialize.call(this,t);!i||(this.palette=i)}},t}(n.input.ColorPicker);i.ColorPicker=w;bt=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),Object.defineProperty(t.prototype,"_initializerType",{get:function(){return u},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_controlType",{get:function(){return b},enumerable:!1,configurable:!0}),t}(e);i._InputColorWrapper=bt;b=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t.prototype.initialize=function(t){if(t){var i=!1;t.isDroppedDown&&(i=t.isDroppedDown,delete t.isDroppedDown);n.prototype.initialize.call(this,t);i&&(this.isDroppedDown=i)}},t}(n.input.InputColor);i.InputColor=b;h=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t.prototype._beforeInitializeControl=function(t){var i,r;t.value&&t.min&&t.max&&(i=wijmo.DateTime.fromDateTime(t.min,t.value),t.value<i&&(t.value=i),r=wijmo.DateTime.fromDateTime(t.max,t.value),t.value>r&&(t.value=r));t.selectionMode!=wijmo.input.DateSelectionMode.Range||t.rangeEnd||(t.rangeEnd=t.value);t.predefinedRanges instanceof Function&&(t.predefinedRanges=t.predefinedRanges());n.prototype._beforeInitializeControl.call(this,t)},t.prototype._afterInitializeControl=function(t,i,r){var u=this;i===void 0&&(i="value");r===void 0&&(r="valueChanged");n.prototype._afterInitializeControl.call(this,t,i,r);t.isDroppedDown&&setTimeout(function(){u.control.isDroppedDown=!0},15)},t}(u);i._InputDateInitializer=h;k=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),Object.defineProperty(t.prototype,"_initializerType",{get:function(){return h},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_controlType",{get:function(){return d},enumerable:!1,configurable:!0}),t}(e);i._InputDateWrapper=k;kt=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(n.input.InputDate);d=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t.prototype.initialize=function(t){var r=this,i;t&&(i=15,n.prototype.initialize.call(this,t),t.isDroppedDown&&setTimeout(function(){r.isDroppedDown=!0},i))},Object.defineProperty(t.prototype,"value",{get:function(){return this._cal.value},set:function(n){wijmo.DateTime.equals(this._cal.value,n)||(this._cal.value=n)},enumerable:!1,configurable:!0}),t}(kt);i.InputDate=d;g=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(h);i._InputDateRangeInitializer=g;dt=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),Object.defineProperty(t.prototype,"_initializerType",{get:function(){return g},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_controlType",{get:function(){return nt},enumerable:!1,configurable:!0}),t}(e);i._InputDateRangeWrapper=dt;nt=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t.prototype.initialize=function(t){var i=this;t&&(n.prototype.initialize.call(this,t),t.isDroppedDown&&setTimeout(function(){i.isDroppedDown=!0},15))},t}(n.input.InputDateRange);i.InputDateRange=nt;gt=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),Object.defineProperty(t.prototype,"_controlType",{get:function(){return tt},enumerable:!1,configurable:!0}),t}(k);i._InputDateTimeWrapper=gt;tt=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(n.input.InputDateTime);i.InputDateTime=tt;it=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t.prototype._afterInitializeControl=function(t){n.prototype._afterInitializeControl.call(this,t,"rawValue")},t}(u);i._InputMaskInitializer=it;ni=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),Object.defineProperty(t.prototype,"_initializerType",{get:function(){return it},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_controlType",{get:function(){return rt},enumerable:!1,configurable:!0}),t}(t._ControlWrapper);i._InputMaskWrapper=ni;rt=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(n.input.InputMask);i.InputMask=rt;ti=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),Object.defineProperty(t.prototype,"_initializerType",{get:function(){return u},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_controlType",{get:function(){return ut},enumerable:!1,configurable:!0}),t}(t._ControlWrapper);i._InputNumberWrapper=ti;ut=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(n.input.InputNumber);i.InputNumber=ut;ii=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),Object.defineProperty(t.prototype,"_initializerType",{get:function(){return u},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_controlType",{get:function(){return ft},enumerable:!1,configurable:!0}),t}(o);i._InputTimeWrapper=ii;ft=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t.prototype.initialize=function(t){if(t){var i=this,u=15,r=t.itemsSource,f=t.value;r&&(delete t.itemsSource,(r.length||r.itemCount||!r._disableServerRead)&&setTimeout(function(){i.displayMemberPath=null;i.selectedValuePath=null;i.itemsSource=r;f&&(i.value=f)},u));n.prototype.initialize.call(this,t);t.isDroppedDown===!0&&setTimeout(function(){i.isDroppedDown=!0},u)}},t}(n.input.InputTime);i.InputTime=ft;ri=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),Object.defineProperty(t.prototype,"_initializerType",{get:function(){return f},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_controlType",{get:function(){return r},enumerable:!1,configurable:!0}),t}(t._ControlWrapper);i._ListBoxWrapper=ri;r=function(n){function i(){return n!==null&&n.apply(this,arguments)||this}return __extends(i,n),i.prototype.initialize=function(t){t&&(i._processCheckedFields(t,this,this),n.prototype.initialize.call(this,t))},i._processCheckedFields=function(n,t,r){var u=n.checkedValues,f=n.checkedIndexes,e;(u||f)&&n.itemsSource&&(delete n.checkedValues,delete n.checkedIndexes,n.itemsSource.items.length?n.checkedItems=u?i._valuesToItems(n,u):i._indexesToItems(n.itemsSource.items,f):n.itemsSource._readActionUrl&&(e=function(o){o.itemsSource.items.length&&(t.checkedItems=u?i._valuesToItems(n,u):i._indexesToItems(n.itemsSource.items,f),setTimeout(function(){r.itemsChanged.removeHandler(e)}))},r.itemsChanged.addHandler(e)))},i._valuesToItems=function(n,t){for(var u,f=[],e=n.itemsSource.items,o=i._getValues(e,n),r=0;r<t.length;r++)u=o.indexOf(t[r]),u!=-1&&f.push(e[u]);return f},i._indexesToItems=function(n,t){var i=[];return t.forEach(function(t){return i.push(n[t])}),i},i._getValues=function(n,i){var r=[],u=i.selectedValuePath||i.displayMemberPath;return t.Utils.isObject(n[0])?n.forEach(function(n){return r.push(n[u])}):r=n.slice(),r},i}(n.input.ListBox);i.ListBox=r;ui=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),Object.defineProperty(t.prototype,"_controlType",{get:function(){return et},enumerable:!1,configurable:!0}),t}(o);i._MenuWrapper=ui;et=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t.prototype.initialize=function(t){if(t){var i=t.owner,r;i&&(r=document.querySelectorAll(i),this._ValidateOwner(r),delete t.owner);n.prototype.initialize.call(this,t)}},t.prototype._ValidateOwner=function(n){for(var t=this,r=t.dropDown,i=0;i<n.length;i++)n[i].addEventListener("contextmenu",function(n){t&&r&&!wijmo.closest(n.target,"[disabled]")&&(n.preventDefault(),t.owner=n.target,t.selectedIndex=-1,t.onIsDroppedDownChanging(new wijmo.CancelEventArgs)&&(wijmo.showPopup(r,n),t.onIsDroppedDownChanged(),r.focus()))})},t}(n.input.Menu);i.Menu=et;fi=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),Object.defineProperty(t.prototype,"_controlType",{get:function(){return ot},enumerable:!1,configurable:!0}),t}(t._ControlWrapper);i._PopupWrapper=fi;ot=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t.prototype.initialize=function(t){if(t&&(n.prototype.initialize.call(this,t),t.dialogResultSubmit)){var i=document.querySelector("div#"+this.hostElement.id);i&&document.body.appendChild(i)}},t}(n.input.Popup);i.Popup=ot;ei=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),Object.defineProperty(t.prototype,"_controlType",{get:function(){return st},enumerable:!1,configurable:!0}),t}(o);i._MultiSelectWrapper=ei;st=function(n){function i(){return n!==null&&n.apply(this,arguments)||this}return __extends(i,n),i.prototype.initialize=function(t){var u,i;t&&(t.validationAttributes&&(this._validationAttributes=t.validationAttributes,delete t.validationAttributes),r._processCheckedFields(t,this,this.listBox),u=t.itemsSource,delete t.itemsSource,i=!1,t.isDroppedDown&&(i=t.isDroppedDown,delete t.isDroppedDown),n.prototype.initialize.call(this,t),u&&(this.itemsSource=u,t.checkedItems&&(this.checkedItems=t.checkedItems),i&&(this.isDroppedDown=i)),this._handleHiddenField())},i.prototype.onCheckedItemsChanged=function(t){var i=this,u=this.isDroppedDown,r=wijmo.getActiveElement();n.prototype.onCheckedItemsChanged.call(this,t);setTimeout(function(){u&&!i.isDroppedDown&&r.getAttribute("wj-part")==="filter"&&(i.isDroppedDown=!0,r.focus())},100)},i.prototype._handleHiddenField=function(){var n=this;n._updateHiddenField();n.checkedItemsChanged.addHandler(function(){n._updateHiddenField();t.Utils.triggerValidationChangeEvent(n._hiddenSelect)})},i.prototype._updateHiddenField=function(){var f;if(this.itemsSource){var n=this,t,i,e,o,u=n.itemsSource.items,h=n.checkedItems,c=n._tbx.parentElement,s=n.hostElement.getAttribute("wj-name");if(s&&u&&u.length)for(o=r._getValues(u,n),e=r._getValues(h,n),n._hiddenSelect=c.querySelector("select"),f=[],e.forEach(function(n){f.push(n==null?null:""+n)}),n._hiddenSelect||(n._hiddenSelect=n._createSelect(o,s,n._tbx)),i=n._hiddenSelect.querySelectorAll("option"),t=0;t<i.length;t++)f.indexOf(i[t].value)!=-1?(i[t].setAttribute("selected","selected"),i[t].selected=!0):(i[t].removeAttribute("selected"),i[t].selected=!1)}},i.prototype._createSelect=function(n,i,r){var f=this,u,e,o,s;for(u=document.createElement("select"),u.name=i,u.multiple=!0,u.style.visibility="hidden",u.style.position="absolute",u.style.height="0px",u.tabIndex=-1,e=0;e<n.length;e++)o=document.createElement("option"),o.value=n[e],u.appendChild(o);if(f._validationAttributes)for(s in f._validationAttributes)u.setAttribute(s,f._validationAttributes[s]);return r.parentNode.insertBefore(u,r),t.Utils.forwardValidationEvents(f,r,u),u},i}(n.input.MultiSelect);i.MultiSelect=st;oi=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),Object.defineProperty(t.prototype,"_controlType",{get:function(){return ct},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_initializerType",{get:function(){return ht},enumerable:!1,configurable:!0}),t}(a);i._MultiAutoCompleteWrapper=oi;ht=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t.prototype._createHiddenElement=function(){var n=document.createElement("select");return n.name=this.control.hostElement.getAttribute("wj-name"),n.multiple=!0,n.style.visibility="hidden",n.style.position="absolute",n.tabIndex=-1,n},t.prototype._processOptions=function(i){n.prototype._processOptions.call(this,i);t._processSelectedFields(i,this.control);i.isDroppedDown&&(this._isDroppedDown=i.isDroppedDown,delete i.isDroppedDown)},t.prototype._afterInitializeControl=function(t){n.prototype._afterInitializeControl.call(this,t);var i=this.control;this._isDroppedDown&&(i.isDroppedDown=!0)},t.prototype._updateHiddenField=function(){this._updateHiddenElement();this.control.selectedItemsChanged.addHandler(this._updateHiddenElement.bind(this))},t.prototype._updateHiddenElement=function(){var f=this.control,u=r._getValues(f.selectedItems,f),e=this._hiddenElement,n,t,i;if(e.innerHTML="",u&&u.length)for(n=[],u.forEach(function(t){n.push(t==null?null:""+t)}),t=0;t<n.length;t++)i=document.createElement("option"),i.value=n[t],i.setAttribute("selected","selected"),e.appendChild(i)},t._getDisplayText=function(n,t){var i=n;return t&&(i=n[t]),i},t._processSelectedFields=function(n,i){var r=n.selectedValues,u=n.selectedIndexes,f;(r||u)&&n.itemsSource&&(delete n.selectedValues,delete n.selectedIndexes,n.itemsSource.items.length?n.selectedItems=r?t._valuesToItems(n,r):t._indexesToItems(n.itemsSource.items,u):n.itemsSourceFunction&&(f=function(e){e.itemsSource.items.length&&(r||u)&&(i.selectedItems=r?t._valuesToItems(n,r):t._indexesToItems(n.itemsSource.items,u),u=null,r=null,i._lbx.itemsChanged.removeHandler(f))},i._lbx.itemsChanged.addHandler(f)))},t._valuesToItems=function(n,t){for(var f=[],e=n.itemsSource.items,o=r._getValues(e,n),u,i=0;i<t.length;i++)u=o.indexOf(t[i]),u!=-1&&f.push(e[u]);return f},t._indexesToItems=function(n,t){var i=[];return t.forEach(function(t){return i.push(n[t])}),i},t}(s);i._MultiAutoCompleteInitializer=ht;ct=function(t){function i(){return t!==null&&t.apply(this,arguments)||this}return __extends(i,t),i.prototype._updateItems=function(){if(this._isFilterOnClient()){t.prototype._updateItems.call(this);return}var i=wijmo.tryCast(this.collectionView,n.mvc.collections.RemoteCollectionView);i&&(this._times=i._queryList.length,i._batchEdit&&i._batchEditActionUrl&&(i.itemsAdded&&i.itemsAdded.length||i.itemsEdited&&i.itemsEdited.length||i.itemsRemoved&&i.itemsRemoved.length)&&this._times++,i.beginQuery.addHandler(this._cvQueryBegin,this),this.collectionView.refresh())},i.prototype._isFilterOnClient=function(){var i=wijmo.tryCast(this.collectionView,n.mvc.collections.RemoteCollectionView),t;return i?i._isDisableServerRead():(t=wijmo.tryCast(this.collectionView,wijmo.odata.ODataCollectionView),t)?!t.filterOnServer:!0},i.prototype._cvQueryBegin=function(){var t=this,n;this._times==0?(n=this.collectionView,window.setTimeout(function(){n.beginQuery.removeHandler(t._cvQueryBegin,t)}),this._isFiltering=!0,n.queryComplete.addHandler(this._cvQueryComplete,this)):this._times>0?this._times--:wijmo.assert(!1,"this handler should be removed.")},i.prototype._cvQueryComplete=function(){var t=this,n=this.collectionView;window.setTimeout(function(){n.queryComplete.removeHandler(t._cvQueryComplete,t)});n.moveCurrentToPosition(-1);this._isFiltering=!1;this.isDroppedDown=n.items.length>0&&this.containsFocus();n.items.length!=0||this.isEditable||(this.selectedIndex=-1);this.refresh()},i.prototype._setText=function(n){this._isFiltering||t.prototype._setText.call(this,n)},i}(n.input.MultiAutoComplete);i.MultiAutoComplete=ct;si=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),Object.defineProperty(t.prototype,"_controlType",{get:function(){return at},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_initializerType",{get:function(){return lt},enumerable:!1,configurable:!0}),t}(t._ControlWrapper);i._CollectionViewNavigatorWrapper=si;lt=function(t){function i(){return t!==null&&t.apply(this,arguments)||this}return __extends(i,t),i.prototype._beforeInitializeControl=function(i){if(t.prototype._beforeInitializeControl.call(this,i),i){var u=i.itemsSourceId,f,r,e;u&&(e=n.getService(u),e?r=wijmo.tryCast(e,wijmo.collections.CollectionView):(f=wijmo.Control.getControl("#"+u),f&&(r=f.collectionView)),r&&(i.cv=r));delete i.itemsSourceId}},i}(t._Initializer);i._CollectionViewNavigatorInitializer=lt;at=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(n.input.CollectionViewNavigator);i.CollectionViewNavigator=at;hi=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),Object.defineProperty(t.prototype,"_initializerType",{get:function(){return f},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_controlType",{get:function(){return vt},enumerable:!1,configurable:!0}),t}(t._ControlWrapper);i._MultiSelectListBoxWrapper=hi;vt=function(n){function i(){return n!==null&&n.apply(this,arguments)||this}return __extends(i,n),i.prototype.initialize=function(t){t&&(i._processCheckedFields(t,this,this),n.prototype.initialize.call(this,t))},i._processCheckedFields=function(n,t,r){var u=n.checkedValues,f=n.checkedIndexes,e;(u||f)&&n.itemsSource&&(delete n.checkedValues,delete n.checkedIndexes,n.itemsSource.items.length?n.checkedItems=u?i._valuesToItems(n,u):i._indexesToItems(n.itemsSource.items,f):n.itemsSource._readActionUrl&&(e=function(o){o.itemsSource.items.length&&(t.checkedItems=u?i._valuesToItems(n,u):i._indexesToItems(n.itemsSource.items,f),setTimeout(function(){r.listBox.itemsChanged.removeHandler(e)}))},r.listBox.itemsChanged.addHandler(e)))},i._valuesToItems=function(n,t){for(var u,f=[],e=n.itemsSource.items,o=i._getValues(e,n),r=0;r<t.length;r++)u=o.indexOf(t[r]),u!=-1&&f.push(e[u]);return f},i._indexesToItems=function(n,t){var i=[];return t.forEach(function(t){return i.push(n[t])}),i},i._getValues=function(n,i){var r=[],u=i.selectedValuePath||i.displayMemberPath;return t.Utils.isObject(n[0])?n.forEach(function(n){return r.push(n[u])}):r=n.slice(),r},i}(n.input.MultiSelectListBox);i.MultiSelectListBox=vt})(i=t.input||(t.input={}))})(t=n.mvc||(n.mvc={}))})(c1||(c1={}));
var wijmo;(function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.AutoComplete||(n.AutoComplete={}))})(t=n.input||(n.input={}))})(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.Calendar||(n.Calendar={}))})(t=n.input||(n.input={}))}(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.ColorPicker||(n.ColorPicker={}))})(t=n.input||(n.input={}))}(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.ComboBox||(n.ComboBox={}))})(t=n.input||(n.input={}))}(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.DropDown||(n.DropDown={}))})(t=n.input||(n.input={}))}(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.InputColor||(n.InputColor={}))})(t=n.input||(n.input={}))}(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.InputDate||(n.InputDate={}))})(t=n.input||(n.input={}))}(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.InputDateTime||(n.InputDateTime={}))})(t=n.input||(n.input={}))}(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.InputMask||(n.InputMask={}))})(t=n.input||(n.input={}))}(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.InputNumber||(n.InputNumber={}))})(t=n.input||(n.input={}))}(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.InputTime||(n.InputTime={}))})(t=n.input||(n.input={}))}(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.ListBox||(n.ListBox={}))})(t=n.input||(n.input={}))}(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.Menu||(n.Menu={}))})(t=n.input||(n.input={}))}(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.MultiAutoComplete||(n.MultiAutoComplete={}))})(t=n.input||(n.input={}))}(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.MultiSelect||(n.MultiSelect={}))})(t=n.input||(n.input={}))}(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.Popup||(n.Popup={}))})(t=n.input||(n.input={}))}(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.FormatItemEventArgs||(n.FormatItemEventArgs={}))})(t=n.input||(n.input={}))}(wijmo||(wijmo={}));
var wijmo,__extends=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}();!function(t){!function(e){"use strict";var i=function(){function e(e){this._min=0,this._max=100,this._thickness=1,this.propertyChanged=new t.Event,t.isString(e)?this._name=e:t.copy(this,e)}return Object.defineProperty(e.prototype,"min",{get:function(){return this._min},set:function(e){this._setProp("_min",t.asNumber(e,!0))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"max",{get:function(){return this._max},set:function(e){this._setProp("_max",t.asNumber(e,!0))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"color",{get:function(){return this._color},set:function(e){this._setProp("_color",t.asString(e))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"thickness",{get:function(){return this._thickness},set:function(e){this._setProp("_thickness",t.clamp(t.asNumber(e),0,1))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this._name},set:function(e){this._setProp("_name",t.asString(e))},enumerable:!0,configurable:!0}),e.prototype.onPropertyChanged=function(t){this.propertyChanged.raise(this,t)},e.prototype._setProp=function(e,i){var n=this[e];if(i!=n){this[e]=i;var r=new t.PropertyChangedEventArgs(e.substr(1),n,i);this.onPropertyChanged(r)}},e._ctr=0,e}();e.Range=i}(t.gauge||(t.gauge={}))}(wijmo||(wijmo={})),function(t){!function(e){"use strict";var i;!function(t){t[t.None=0]="None",t[t.Value=1]="Value",t[t.MinMax=2]="MinMax",t[t.All=3]="All"}(i=e.ShowText||(e.ShowText={}));var n=function(n){function r(s,a){var o=n.call(this,s,null,!0)||this;o._ranges=new t.collections.ObservableArray,o._rngElements=[],o._format="n0",o._showRanges=!0,o._stackRanges=!1,o._shadow=!0,o._animated=!0,o._readOnly=!0,o._handleWheel=!0,o._step=1,o._showText=i.None,o._showTicks=!1,o._showTickText=!1,o._thickness=.8,o._initialized=!1,o.valueChanged=new t.Event,o._getPercent=function(t){var e=this.max>this.min?(t-this.min)/(this.max-this.min):0;return Math.max(0,Math.min(1,e))},r._ctr++;var h=o.hostElement;t.setAttribute(h,"role","slider",!0);var c=o.getTemplate();return o.applyTemplate("wj-control wj-gauge",c,{_dSvg:"dsvg",_svg:"svg",_filter:"filter",_gFace:"gface",_gRanges:"granges",_gPointer:"gpointer",_gCover:"gcover",_pFace:"pface",_pPointer:"ppointer",_cValue:"cvalue",_tValue:"value",_tMin:"min",_tMax:"max",_pTicks:"pticks",_gTicks:"gticks",_gNeedle:"gneedle"}),t.setCss(o._dSvg,{width:"100%",height:"100%"}),o._filterID="wj-gauge-filter-"+r._ctr.toString(36),o._filter.setAttribute("id",o._filterID),o.face=new e.Range,o.pointer=new e.Range,o._ranges.collectionChanged.addHandler(function(){o._ranges.forEach(function(i){t.assert(i instanceof e.Range,"ranges array must contain Range objects.")}),o._rangesDirty=!0,o.invalidate()}),o.addEventListener(h,"keydown",o._keydown.bind(o)),o.addEventListener(h,"click",function(t){0==t.button&&(o.focus(),o._applyMouseValue(t))}),o.addEventListener(h,"mousedown",function(t){0==t.button&&(o.focus(),o._dragging=!0,setTimeout(function(){o._applyMouseValue(t)}))}),o.addEventListener(h,"mousemove",function(t){o._dragging&&o.containsFocus()&&o._applyMouseValue(t,!0)}),o.addEventListener(h,"mouseup",function(t){o._dragging=!1}),o.addEventListener(h,"mouseleave",function(t){t.target==h&&(o._dragging=!1)}),"ontouchstart"in window&&(o.addEventListener(h,"touchstart",function(t){o.focus(),!t.defaultPrevented&&o._applyMouseValue(t,!1)&&t.preventDefault()}),o.addEventListener(h,"touchmove",function(t){!t.defaultPrevented&&o._applyMouseValue(t,!0)&&t.preventDefault()})),o.addEventListener(h,"wheel",function(e){if(o._handleWheel&&!o.isReadOnly&&!e.defaultPrevented&&o.containsFocus()&&null!=o.value&&o.hitTest(e)){var i=t.clamp(-e.deltaY,-1,1);o.value=t.clamp(o.value+(o.step||1)*i,o.min,o.max),e.preventDefault()}}),o.isReadOnly=!0,o.initialize(a),o.invalidate(),o}return __extends(r,n),Object.defineProperty(r.prototype,"value",{get:function(){return this._pointer.max},set:function(e){e!=this.value&&(this._pointer.max=t.asNumber(e,!0),this._updateAria())},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"min",{get:function(){return this._face.min},set:function(e){e!=this.min&&(this._face.min=t.asNumber(e),this._updateAria())},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"max",{get:function(){return this._face.max},set:function(e){e!=this.max&&(this._face.max=t.asNumber(e),this._updateAria())},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"origin",{get:function(){return this._origin},set:function(e){e!=this._origin&&(this._origin=t.asNumber(e,!0),this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"isReadOnly",{get:function(){return this._readOnly},set:function(e){this._readOnly=t.asBoolean(e),t.setAttribute(this._svg,"cursor",this._readOnly?null:"pointer"),t.toggleClass(this.hostElement,"wj-state-readonly",this.isReadOnly)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"handleWheel",{get:function(){return this._handleWheel},set:function(e){this._handleWheel=t.asBoolean(e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"step",{get:function(){return this._step},set:function(e){e!=this._step&&(this._step=t.asNumber(e,!0),this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"format",{get:function(){return this._format},set:function(e){e!=this._format&&(this._format=t.asString(e),this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"getText",{get:function(){return this._getText},set:function(e){e!=this._getText&&(this._getText=t.asFunction(e),this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"thickness",{get:function(){return this._thickness},set:function(e){e!=this._thickness&&(this._thickness=t.clamp(t.asNumber(e,!1),0,1),this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"face",{get:function(){return this._face},set:function(i){i!=this._face&&(this._face&&this._face.propertyChanged.removeHandler(this._rangeChanged),this._face=t.asType(i,e.Range),this._face&&this._face.propertyChanged.addHandler(this._rangeChanged,this),this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"pointer",{get:function(){return this._pointer},set:function(i){if(i!=this._pointer){var n=null;this._pointer&&(n=this.value,this._pointer.propertyChanged.removeHandler(this._rangeChanged)),this._pointer=t.asType(i,e.Range),this._pointer&&(n&&(this.value=n),this._pointer.propertyChanged.addHandler(this._rangeChanged,this)),this.invalidate()}},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"showText",{get:function(){return this._showText},set:function(e){(e=t.asEnum(e,i))!=this._showText&&(this._showText=e,this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"showTicks",{get:function(){return this._showTicks},set:function(e){e!=this._showTicks&&(this._showTicks=t.asBoolean(e),this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"showTickText",{get:function(){return this._showTickText},set:function(e){e!=this._showTickText&&(this._showTickText=t.asBoolean(e),this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"tickSpacing",{get:function(){return this._tickSpacing},set:function(e){e!=this._tickSpacing&&(this._tickSpacing=t.asNumber(e,!0),this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"thumbSize",{get:function(){return this._thumbSize},set:function(e){e!=this._thumbSize&&(this._thumbSize=t.asNumber(e,!0,!0),this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"showRanges",{get:function(){return this._showRanges},set:function(e){e!=this._showRanges&&(this._showRanges=t.asBoolean(e),this._animColor=null,this._rangesDirty=!0,this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"stackRanges",{get:function(){return this._stackRanges},set:function(e){e!=this._stackRanges&&(this._stackRanges=t.asBoolean(e),this._animColor=null,this._rangesDirty=!0,this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"hasShadow",{get:function(){return this._shadow},set:function(e){e!=this._shadow&&(this._shadow=t.asBoolean(e),this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"isAnimated",{get:function(){return this._animated},set:function(e){this._animated=t.asBoolean(e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"ranges",{get:function(){return this._ranges},enumerable:!0,configurable:!0}),r.prototype.onValueChanged=function(t){this.valueChanged.raise(this,t)},r.prototype.refresh=function(e){var r=this;if(void 0===e&&(e=!0),n.prototype.refresh.call(this,e),this._rangesDirty){this._rangesDirty=!1;var s=this._gRanges;for(this._rngElements.forEach(function(t){t.rng.propertyChanged.removeHandler(r._rangeChanged)});s.lastChild;)s.removeChild(s.lastChild);this._rngElements=[],this._showRanges&&this._ranges.forEach(function(t){t.propertyChanged.addHandler(r._rangeChanged,r),r._rngElements.push({rng:t,el:r._createElement("path",s)})})}this._showElement(this._tValue,0!=(this.showText&i.Value)),this._showElement(this._tMin,0!=(this.showText&i.MinMax)),this._showElement(this._tMax,0!=(this.showText&i.MinMax)),this._showElement(this._cValue,0!=(this.showText&i.Value)||this._thumbSize>0),this._updateText();var a=this._getFilterUrl();t.setAttribute(this._pFace,"filter",a),t.setAttribute(this._pPointer,"filter",a),this._updateRange(this._face),this._updateRange(this._pointer),this._updateTicks(),this._ranges.forEach(function(t){r._updateRange(t)}),this._initialized=!0},r.prototype.hitTest=function(e,i){t.isNumber(e)&&t.isNumber(i)?e=new t.Point(e,i):e instanceof t.Point||(e=t.mouseToPage(e)),e=t.asType(e,t.Point);var n=t.Rect.fromBoundingRect(this._dSvg.getBoundingClientRect());return e.x-=n.left+pageXOffset,e.y-=n.top+pageYOffset,this._getValueFromPoint(e)},r._getBBox=function(t){try{return t.getBBox()}catch(t){return{x:0,y:0,width:0,height:0}}},r.prototype._getFilterUrl=function(){return this.hasShadow&&!t.isiOS()?"url(#"+this._filterID+")":null},r.prototype._getRangeElement=function(t){if(t==this._face)return this._pFace;if(t==this._pointer)return this._pPointer;for(var e=0;e<this._rngElements.length;e++){var i=this._rngElements[e];if(i.rng==t)return i.el}return null},r.prototype._rangeChanged=function(e,i){var n=this;if(e==this._pointer&&"max"==i.propertyName&&(this.onValueChanged(),this._updateText()),e!=this._face)if(e==this._pointer&&"max"==i.propertyName&&(this._animInterval&&clearInterval(this._animInterval),this.isAnimated&&!this.isUpdating&&this._initialized)){var r=this._getPointerColor(i.oldValue),s=this._getPointerColor(i.newValue),a=r?new t.Color(r):null,o=s?new t.Color(s):null,h=t.clamp(Math.abs(i.newValue-i.oldValue)/(this.max-this.min),0,1);this._animInterval=t.animate(function(r){n._animColor=a&&o?t.Color.interpolate(a,o,r).toString():null,n._updateRange(e,i.oldValue+r*(i.newValue-i.oldValue)),r>=1&&(n._animColor=null,n._animInterval=null,n._updateRange(e),n._updateText())},h*t.Control._ANIM_DEF_DURATION)}else this._updateRange(e);else this.invalidate()},r.prototype._createElement=function(t,e,i){var n=document.createElementNS(r._SVGNS,t);return i&&n.setAttribute("class",i),e.appendChild(n),n},r.prototype._centerText=function(e,i,n){if("none"!=e.getAttribute("display")){var s=t.Globalize.format(i,this.format);if(t.isFunction(this.getText)){var a="";e==this._tValue?a="value":e==this._tMin?a="min":e==this._tMax&&(a="max"),a&&(s=this.getText(this,a,i,s))}e.textContent=s;var o=t.Rect.fromBoundingRect(r._getBBox(e)),h=n.x-o.width/2,c=n.y+o.height/4;e.setAttribute("x",this._fix(h)),e.setAttribute("y",this._fix(c))}},r.prototype._copy=function(i,n){var r=this;return"ranges"==i?(t.asArray(n).forEach(function(t){var i=new e.Range(t);r.ranges.push(i)}),!0):"pointer"==i&&(t.copy(this.pointer,n),!0)},r.prototype._showElement=function(e,i){t.setAttribute(e,"display",i?null:"none")},r.prototype._updateRange=function(e,i){void 0===i&&(i=e.max),e==this._pointer&&(e.min=null!=this.origin?this.origin:this.min<0&&this.max>0?0:this.min);var n=this._getRangeElement(e);if(n){this._updateRangeElement(n,e,i);var r=e.color;e==this._pointer&&(r=this._animColor?this._animColor:this._getPointerColor(e.max)),t.setAttribute(n,"style",r?"fill:"+r:null)}},r.prototype._getPointerColor=function(t){if(!this._showRanges){for(var e,i=0;i<this._ranges.length;i++){var n=this._ranges[i];if(t>=n.min&&t<=n.max){e=n;break}}if(e)return e.color}return this._pointer.color},r.prototype._keydown=function(e){if(!this._readOnly&&this._step){var i=!0;switch(this._getKey(e.keyCode)){case t.Key.Left:case t.Key.Down:this.value=t.clamp(this.value-this._step,this.min,this.max);break;case t.Key.Right:case t.Key.Up:this.value=t.clamp(this.value+this._step,this.min,this.max);break;case t.Key.Home:this.value=this.min;break;case t.Key.End:this.value=this.max;break;default:i=!1}i&&e.preventDefault()}},r.prototype._getKey=function(t){return t},r.prototype._applyMouseValue=function(e,i){if(!this.isReadOnly&&this.containsFocus()){var n=this.hitTest(e);if(null!=n){var r=this._animated,s=this._step;return i&&(this._animated=!1),s&&(n=Math.round(n/s)*s),this.value=t.clamp(n,this.min,this.max),this._animated=r,!0}}return!1},r.prototype._updateRangeElement=function(e,i,n){t.assert(!1,"Gauge is an abstract class.")},r.prototype._updateText=function(){t.assert(!1,"Gauge is an abstract class.")},r.prototype._updateTicks=function(){t.assert(!1,"Gauge is an abstract class.")},r.prototype._getValueFromPoint=function(t){return null},r.prototype._fix=function(e){return t.isNumber(e)?parseFloat(e.toFixed(4)).toString():this._fix(e.x)+" "+this._fix(e.y)},r.prototype._updateAria=function(){var e=this.hostElement;e&&(t.setAttribute(e,"aria-valuemin",this.min),t.setAttribute(e,"aria-valuemax",this.max),t.setAttribute(e,"aria-valuenow",this.value))},r._SVGNS="http://www.w3.org/2000/svg",r._ctr=0,r.controlTemplate='<div wj-part="dsvg" dir="ltr"><svg wj-part="svg" width="100%" height="100%"><defs><filter wj-part="filter"><feOffset dx="3" dy="3"></feOffset><feGaussianBlur result="offset-blur" stdDeviation="5"></feGaussianBlur><feComposite operator="out" in="SourceGraphic" in2="offset-blur" result="inverse"></feComposite><feFlood flood-color="black" flood-opacity="0.2" result="color"></feFlood><feComposite operator="in" in="color" in2="inverse" result="shadow"></feComposite><feComposite operator="over" in="shadow" in2="SourceGraphic"></feComposite></filter></defs><g wj-part="gface" class="wj-face"><path wj-part="pface"/></g><g wj-part="granges" class="wj-ranges"/><g wj-part="gpointer" class="wj-pointer"><path wj-part="ppointer"/></g><g wj-part="gcover" class="wj-cover"><path wj-part="pticks" class="wj-ticks"/><g wj-part="gticks" aria-hidden="true" class="wj-tick-text"/><circle wj-part="cvalue" class="wj-pointer wj-thumb"/><g wj-part="gneedle" class="wj-needle"/><text wj-part="value" class="wj-value"/><text wj-part="min" class="wj-min" aria-hidden="true"/><text wj-part="max" class="wj-max" aria-hidden="true"/></g></svg></div>',r}(t.Control);e.Gauge=n}(t.gauge||(t.gauge={}))}(wijmo||(wijmo={})),function(t){!function(e){"use strict";var i,n;!function(t){t[t.None=0]="None",t[t.Triangle=1]="Triangle",t[t.Diamond=2]="Diamond",t[t.Hexagon=3]="Hexagon",t[t.Rectangle=4]="Rectangle",t[t.Arrow=5]="Arrow",t[t.WideArrow=6]="WideArrow",t[t.Pointer=7]="Pointer",t[t.WidePointer=8]="WidePointer",t[t.Outer=9]="Outer"}(i=e.NeedleShape||(e.NeedleShape={})),function(t){t[t.Outer=0]="Outer",t[t.Middle=1]="Middle",t[t.Inner=2]="Inner"}(n=e.NeedleLength||(e.NeedleLength={}));var r=function(r){function s(s,a){var o=r.call(this,s,null)||this;return o._startAngle=0,o._sweepAngle=180,o._autoScale=!0,o._ndlShape=i.None,o._ndlLength=n.Middle,t.addClass(o.hostElement,"wj-radialgauge"),o._thickness=.4,o.showText=e.ShowText.All,o.initialize(a),o}return __extends(s,r),Object.defineProperty(s.prototype,"startAngle",{get:function(){return this._startAngle},set:function(e){e!=this._startAngle&&(this._startAngle=t.clamp(t.asNumber(e,!1),-360,360),this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"sweepAngle",{get:function(){return this._sweepAngle},set:function(e){e!=this._sweepAngle&&(this._sweepAngle=t.clamp(t.asNumber(e,!1),-360,360),this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"autoScale",{get:function(){return this._autoScale},set:function(e){e!=this._autoScale&&(this._autoScale=t.asBoolean(e),this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"faceBounds",{get:function(){return this._rcSvg?this._rcSvg.clone():null},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"clientSize",{get:function(){t._deprecated("clientSize","faceBounds");var e=this._rcSvg;return e?new t.Size(e.width,e.height):null},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"needleElement",{get:function(){return this._ndlElement},set:function(e){if(e!=this._ndlElement){this._ndlShape=0,this._ndlElement=t.asType(e,SVGElement,!0);for(var i=this._gNeedle;i.firstChild;)t.removeChild(i.firstChild);this._ndlElement&&(t.setAttribute(i,"transform","scale(0)"),i.appendChild(this._ndlElement)),this.invalidate()}},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"needleShape",{get:function(){return this._ndlShape},set:function(e){if(e!=this._ndlShape){var n=null;switch(e=t.asEnum(e,i)){case i.Triangle:n=s.createNeedleElement([{x:-10,y:10},{x:100,y:0}]);break;case i.Diamond:n=s.createNeedleElement([{x:-20,y:0},{x:0,y:10},{x:100,y:0}]);break;case i.Hexagon:n=s.createNeedleElement([{x:-15,y:0},{x:-10,y:5},{x:10,y:5},{x:100,y:0}]);break;case i.Rectangle:n=s.createNeedleElement([{x:-20,y:3},{x:100,y:3}],10);break;case i.Arrow:n=s.createNeedleElement([{x:-20,y:3},{x:70,y:3},{x:70,y:15},{x:100,y:0}],10);break;case i.WideArrow:n=s.createNeedleElement([{x:-30,y:5},{x:-40,y:15},{x:-20,y:15},{x:-10,y:5},{x:80,y:5},{x:70,y:15},{x:100,y:0}]);break;case i.Pointer:n=s.createNeedleElement([{x:0,y:10},{x:100,y:0}],20,10);break;case i.WidePointer:n=s.createNeedleElement([{x:0,y:20},{x:100,y:0}],20,10);break;case i.Outer:n=s.createNeedleElement([{x:60,y:20},{x:100,y:0}])}this.needleElement=n,this._ndlShape=e,this.invalidate()}},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"needleLength",{get:function(){return this._ndlLength},set:function(e){e!=this._ndlLength&&(this._ndlLength=t.asEnum(e,n),this.invalidate())},enumerable:!0,configurable:!0}),s.createNeedleElement=function(e,i,n){for(var r="",s=0;s<e.length;s++){var a=e[s];if(s==e.length-1&&0==a.y)break;r+=(s>0?" L ":"M ")+a.x+" "+a.y}for(s=e.length-1;s>=0;s--){r+=" L "+(a=e[s]).x+" "+-a.y}r+=" Z";var o="http://www.w3.org/2000/svg",h=document.createElementNS(o,"g"),c=document.createElementNS(o,"path");if(t.setAttribute(c,"d",r),h.appendChild(c),i){var l=document.createElementNS(o,"circle");t.addClass(l,"wj-needle-cap"),t.setAttribute(l,"r",i),h.appendChild(l),n&&(l=document.createElementNS(o,"circle"),t.addClass(l,"wj-inner-needle-cap"),t.setAttribute(l,"r",n),h.appendChild(l))}return h},s.prototype.refresh=function(i){if(void 0===i&&(i=!0),t.setAttribute(this._svg,"viewBox",null),this._rcSvg=t.Rect.fromBoundingRect(this._dSvg.getBoundingClientRect()),r.prototype.refresh.call(this,i),this._ctmInv=null,this._ptSvg=null,this._autoScale){t.setAttribute(this._svg,"viewBox",null);var n=t.Rect.fromBoundingRect(e.Gauge._getBBox(this._pFace));0!=(this.showText&e.ShowText.Value)&&(n=t.Rect.union(n,t.Rect.fromBoundingRect(e.Gauge._getBBox(this._tValue)))),0!=(this.showText&e.ShowText.MinMax)&&(n=t.Rect.union(n,t.Rect.fromBoundingRect(e.Gauge._getBBox(this._tMin))),n=t.Rect.union(n,t.Rect.fromBoundingRect(e.Gauge._getBBox(this._tMax))));var s=[this._fix(n.left),this._fix(n.top),this._fix(n.width),this._fix(n.height)].join(" ");t.setAttribute(this._svg,"viewBox",s);var a=this._pFace.getCTM();this._ctmInv=a?a.inverse():null,this._ptSvg=this._svg.createSVGPoint()}},s.prototype._updateRangeElement=function(e,i,r){if(this._rcSvg){var s=this._rcSvg,a=new t.Point(s.width/2,s.height/2),o=Math.min(s.width,s.height)/2,h=o*this.thickness,c=h*i.thickness,l=o-(h-c)/2,u=l-c,g=this._getStartAngle(),p=this._getSweepAngle(),_=i==this._face,f=_?0:this._getPercent(i.min),d=g+p*f,m=p*((_?1:this._getPercent(r))-f);if(this.stackRanges&&i!=this.face&&i!=this.pointer){var y=this.ranges.indexOf(i);if(y>-1){var b=this.ranges.length,x=(l-u)/b;l=(u+=(b-1-y)*x)+x}}if(this._updateSegment(e,a,l,u,d,m),i==this._pointer){var w=this._fix;if(this.thumbSize>0){var v=this._animColor?this._animColor:this._getPointerColor(i.max),P=this._getPoint(a,g+p*this._getPercent(r),(l+u)/2),k=this._cValue;t.setAttribute(k,"cx",w(P.x)),t.setAttribute(k,"cy",w(P.y)),t.setAttribute(k,"style",v?"fill:"+v:null),t.setAttribute(k,"r",w(this.thumbSize/2))}if(this.needleElement){var T=l;this._ndlLength==n.Inner?T=u:this._ndlLength==n.Middle&&(T=(u+l)/2);var S="translate({cx}, {cy}) scale({scale}) rotate({angle})".replace("{cx}",w(a.x)).replace("{cy}",w(a.y)).replace("{scale}",w(T/100)).replace("{angle}",w(d+m));this._gNeedle.setAttribute("transform",S)}}}},s.prototype._getStartAngle=function(){var t=this.startAngle+180;return this.rightToLeft&&(t=180-t),t},s.prototype._getSweepAngle=function(){var t=this.sweepAngle;return this.rightToLeft&&(t=-t),t},s.prototype._updateText=function(){if(this._rcSvg){var i=this._rcSvg,n=new t.Point(i.width/2,i.height/2),r=Math.min(i.width,i.height)/2,s=Math.max(0,r*(1-this.thickness)),a=this._getStartAngle(),o=this._getSweepAngle();this._showElement(this._cValue,this.thumbSize>0);var h=0!=(this.showText&e.ShowText.MinMax)&&Math.abs(o)<=300;this._showElement(this._tMin,h),this._showElement(this._tMax,h),this._centerText(this._tValue,this.value,n);var c=10*(this._getSweepAngle()<0?-1:1);this._centerText(this._tMin,this.min,this._getPoint(n,a-c,(r+s)/2)),this._centerText(this._tMax,this.max,this._getPoint(n,a+o+c,(r+s)/2))}},s.prototype._updateTicks=function(){for(var e=this.tickSpacing&&this.tickSpacing>0?this.tickSpacing:this.step,i="",n=this._gTicks;n.firstChild;)t.removeChild(n.firstChild);if(this.showTicks&&e>0)for(var r=this._rcSvg,s=new t.Point(r.width/2,r.height/2),a=Math.min(r.width,r.height)/2,o=a*this.thickness,h=o*this._face.thickness,c=a-(o-h)/2,l=c-h,u=1.15*c,g=this._getStartAngle(),p=this._getSweepAngle(),_=this.min;_<=this.max;_+=e){var f=g+p*this._getPercent(_),d=this._fix(this._getPoint(s,f,l)),m=this._fix(this._getPoint(s,f,c));if(_>this.min&&_<this.max&&(i+="M "+d+" L "+m+" "),this.showTickText){var y=this._createElement("text",n),b=this._getPoint(s,f,u);this._centerText(y,_,b)}}this._pTicks.setAttribute("d",i)},s.prototype._updateSegment=function(e,i,n,r,s,a){a=Math.min(Math.max(a,-359.99),359.99);var o=this._getPoint(i,s,r),h=this._getPoint(i,s,n),c=this._getPoint(i,s+a,n),l=this._getPoint(i,s+a,r),u={large:Math.abs(a)>180?1:0,cw:a>0?1:0,ccw:a>0?0:1,or:this._fix(n),ir:this._fix(r),p1:this._fix(o),p2:this._fix(h),p3:this._fix(c),p4:this._fix(l)},g=t.format("M {p1} L {p2} A {or} {or} 0 {large} {cw} {p3} L {p4} A {ir} {ir} 0 {large} {ccw} {p1} Z",u);e.setAttribute("d",g)},s.prototype._getPoint=function(e,i,n){return i=i*Math.PI/180,new t.Point(e.x+n*Math.cos(i),e.y+n*Math.sin(i))},s.prototype._getValueFromPoint=function(e){if(this.autoScale&&this._ctmInv&&(this._ptSvg.x=e.x,this._ptSvg.y=e.y,this._ptSvg=this._ptSvg.matrixTransform(this._ctmInv),e.x=this._ptSvg.x,e.y=this._ptSvg.y),!this._rcSvg||!this.sweepAngle)return null;var i=this._rcSvg,n=new t.Point(i.width/2,i.height/2),r=Math.min(i.width,i.height)/2,s=e.x-n.x,a=e.y-n.y,o=a*a+s*s;if(o<100||o>(r+10)*(r+10))return null;var h=180*(Math.PI-Math.atan2(-a,s))/Math.PI,c=this.startAngle,l=this.sweepAngle,u=c+l;if(this.rightToLeft&&(h=180-h),l>0){for(;h<c;)h+=360;for(;h>u;)h-=360}else{for(;h<u;)h+=360;for(;h>c;)h-=360}if((h-c)*(h-u)>0){var g=this._getPoint(n,h,r),p=this._getPoint(n,c,r),_=this._getPoint(n,u,r);h=this._getDist2(g,p)<this._getDist2(g,_)?c:u}var f=l?t.clamp(Math.abs(h-c)/Math.abs(l),0,1):0;return this.min+f*(this.max-this.min)},s.prototype._getDist2=function(t,e){var i=t.x-e.x,n=t.y-e.y;return i*i+n*n},s}(e.Gauge);e.RadialGauge=r}(t.gauge||(t.gauge={}))}(wijmo||(wijmo={})),function(t){!function(e){"use strict";var i;!function(t){t[t.Right=0]="Right",t[t.Left=1]="Left",t[t.Up=2]="Up",t[t.Down=3]="Down"}(i=e.GaugeDirection||(e.GaugeDirection={}));var n=function(n){function r(e,r){var s=n.call(this,e,null)||this;return s._direction=i.Right,t.addClass(s.hostElement,"wj-lineargauge"),s.initialize(r),s}return __extends(r,n),Object.defineProperty(r.prototype,"direction",{get:function(){return this._direction},set:function(e){(e=t.asEnum(e,i))!=this._direction&&(this._direction=e,this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"faceBounds",{get:function(){return this._getRangeRect(this._face)},enumerable:!0,configurable:!0}),r.prototype._updateRangeElement=function(n,r,s){var a=this._getRangeRect(r,s);this._updateSegment(n,a);var o=r==this._pointer&&0!=(this.showText&e.ShowText.Value),h=o||r==this._pointer&&this.thumbSize>0,c=a.left+a.width/2,l=a.top+a.height/2;switch(this._getDirection()){case i.Right:c=a.right;break;case i.Left:c=a.left;break;case i.Up:l=a.top;break;case i.Down:l=a.bottom}if(o&&this._centerText(this._tValue,s,new t.Point(c,l)),o||h){a=t.Rect.fromBoundingRect(e.Gauge._getBBox(this._tValue));var u=this._animColor?this._animColor:this._getPointerColor(r.max),g=null!=this.thumbSize?this.thumbSize/2:.8*Math.max(a.width,a.height),p=this._cValue;t.setAttribute(p,"cx",this._fix(c)),t.setAttribute(p,"cy",this._fix(l)),t.setAttribute(p,"style",u?"fill:"+u:null),t.setAttribute(p,"r",this._fix(g))}},r.prototype._updateText=function(){var t=this._getRangeRect(this._face);switch(this._getDirection()){case i.Right:this._setText(this._tMin,this.min,t,"left"),this._setText(this._tMax,this.max,t,"right");break;case i.Left:this._setText(this._tMin,this.min,t,"right"),this._setText(this._tMax,this.max,t,"left");break;case i.Up:this._setText(this._tMin,this.min,t,"bottom"),this._setText(this._tMax,this.max,t,"top");break;case i.Down:this._setText(this._tMin,this.min,t,"top"),this._setText(this._tMax,this.max,t,"bottom")}},r.prototype._updateTicks=function(){for(var e=this.tickSpacing&&this.tickSpacing>0?this.tickSpacing:this.step,n="",r=this._gTicks;r.firstChild;)t.removeChild(r.firstChild);if(this.showTicks&&e>0)for(var s=this._getRangeRect(this._face),a=new t.Point(s.left-.75*s.width,s.top-.75*s.height),o=void 0,h=this._fix,c=this.min;c<=this.max;c+=e){var l=null;switch(this._getDirection()){case i.Right:a.x=s.left+s.width*this._getPercent(c),l="M "+(o=h(a.x))+" "+h(s.top)+" L "+o+" "+h(s.bottom)+" ";break;case i.Left:a.x=s.right-s.width*this._getPercent(c),l="M "+(o=h(a.x))+" "+h(s.top)+" L "+o+" "+h(s.bottom)+" ";break;case i.Up:a.y=s.bottom-s.height*this._getPercent(c),o=h(a.y),l="M "+h(s.left)+" "+o+" L "+h(s.right)+" "+o+" ";break;case i.Down:a.y=s.top+s.height*this._getPercent(c),o=h(a.y),l="M "+h(s.left)+" "+o+" L "+h(s.right)+" "+o+" "}if(c>this.min&&c<this.max&&(n+=l),this.showTickText){var u=this._createElement("text",r);this._centerText(u,c,a)}}this._pTicks.setAttribute("d",n)},r.prototype._updateSegment=function(e,i){var n={p1:this._fix(new t.Point(i.left,i.top)),p2:this._fix(new t.Point(i.right,i.top)),p3:this._fix(new t.Point(i.right,i.bottom)),p4:this._fix(new t.Point(i.left,i.bottom))},r=t.format("M {p1} L {p2} L {p3} L {p4} Z",n);e.setAttribute("d",r)},r.prototype._setText=function(i,n,r,s){if("none"!=i.getAttribute("display")){var a=t.Globalize.format(n,this.format);if(t.isFunction(this.getText)){var o=i==this._tValue?"value":i==this._tMin?"min":i==this._tMax?"max":null;t.assert(null!=o,"unknown element"),a=this.getText(this,o,n,a)}i.textContent=a;var h=t.Rect.fromBoundingRect(e.Gauge._getBBox(i)),c=new t.Point(r.left+r.width/2-h.width/2,r.top+r.height/2+h.height/2);switch(s){case"top":c.y=r.top-4;break;case"left":c.x=r.left-4-h.width;break;case"right":c.x=r.right+4;break;case"bottom":c.y=r.bottom+4+h.height}i.setAttribute("x",this._fix(c.x)),i.setAttribute("y",this._fix(c.y))}},r.prototype._getRangeRect=function(n,r){void 0===r&&(r=n.max);var s=this.hostElement,a=new t.Rect(0,0,s.clientWidth,s.clientHeight),o=this._getDirection(),h=this.thumbSize?Math.ceil(this.thumbSize/2):0;if(this.showText!=e.ShowText.None){var c=parseInt(getComputedStyle(s).fontSize);isNaN(c)||(h=Math.max(h,3*c))}switch(o){case i.Right:case i.Left:a=a.inflate(-h,-a.height*(1-this.thickness*n.thickness)/2);break;case i.Up:case i.Down:a=a.inflate(-a.width*(1-this.thickness*n.thickness)/2,-h)}if(this.stackRanges&&n!=this.face&&n!=this.pointer){var l=this.ranges.indexOf(n);if(l>-1){var u=this.ranges.length;switch(o){case i.Right:case i.Left:a.height/=u,a.top+=l*a.height;break;case i.Up:case i.Down:a.width/=u,a.left+=l*a.width}}}var g=n==this._face,p=g?0:this._getPercent(n.min),_=g?1:this._getPercent(r);switch(o){case i.Right:a.left+=a.width*p,a.width*=_-p;break;case i.Left:a.left=a.right-a.width*_,a.width=a.width*(_-p);break;case i.Down:a.top+=a.height*p,a.height*=_-p;break;case i.Up:a.top=a.bottom-a.height*_,a.height=a.height*(_-p)}return a},r.prototype._getValueFromPoint=function(t){var e=this._getRangeRect(this._face),n=0;switch(this._getDirection()){case i.Right:n=e.width>0?(t.x-e.left)/e.width:0;break;case i.Left:n=e.width>0?(e.right-t.x)/e.width:0;break;case i.Up:n=e.height>0?(e.bottom-t.y)/e.height:0;break;case i.Down:n=e.height>0?(t.y-e.top)/e.height:0}return this.min+n*(this.max-this.min)},r.prototype._getDirection=function(){var t=this._direction;if(this.rightToLeft)switch(t){case i.Left:t=i.Right;break;case i.Right:t=i.Left}return t},r.prototype._getKey=function(e){switch(this._getDirection()){case i.Left:switch(e){case t.Key.Left:e=t.Key.Right;break;case t.Key.Right:e=t.Key.Left}break;case i.Down:switch(e){case t.Key.Up:e=t.Key.Down;break;case t.Key.Down:e=t.Key.Up}}return e},r}(e.Gauge);e.LinearGauge=n}(t.gauge||(t.gauge={}))}(wijmo||(wijmo={})),function(t){!function(e){"use strict";var i=function(i){function n(n,r){var s=i.call(this,n,null)||this;return t.addClass(s.hostElement,"wj-bulletgraph"),s._pointer.thickness=.35,s._rngTarget=new e.Range("target"),s._rngTarget.thickness=.8,s._rngTarget.color="black",s._rngGood=new e.Range("good"),s._rngGood.color="rgba(0,0,0,.15)",s._rngBad=new e.Range("bad"),s._rngBad.color="rgba(0,0,0,.3)",s.ranges.push(s._rngBad),s.ranges.push(s._rngGood),s.ranges.push(s._rngTarget),s.initialize(r),s}return __extends(n,i),Object.defineProperty(n.prototype,"target",{get:function(){return this._rngTarget.max},set:function(t){this._rngTarget.max=t},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"good",{get:function(){return this._rngGood.max},set:function(t){this._rngGood.max=t},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"bad",{get:function(){return this._rngBad.max},set:function(t){this._rngBad.max=t},enumerable:!0,configurable:!0}),n.prototype._getRangeRect=function(t,n){void 0===n&&(n=t.max);var r=i.prototype._getRangeRect.call(this,t,n);if(t==this._rngTarget)switch(this._getDirection()){case e.GaugeDirection.Right:r.left=r.right-1,r.width=3;break;case e.GaugeDirection.Left:r.width=3;break;case e.GaugeDirection.Up:r.height=3;break;case e.GaugeDirection.Down:r.top=r.bottom-1,r.height=3}return r},n}(e.LinearGauge);e.BulletGraph=i}(t.gauge||(t.gauge={}))}(wijmo||(wijmo={})),function(t){t.gauge||(t.gauge={}),t._registerModule("wijmo.gauge",t.gauge)}(wijmo||(wijmo={}));
var __extends=this&&this.__extends||function(){var n=function(t,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r(){this.constructor=t}if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(t,i);t.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}}(),c1;(function(n){var t;(function(n){var r=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(wijmo.gauge.BulletGraph),t,i;n.BulletGraph=r;t=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(wijmo.gauge.LinearGauge);n.LinearGauge=t;i=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(wijmo.gauge.RadialGauge);n.RadialGauge=i})(t=n.gauge||(n.gauge={}))})(c1||(c1={}));
var __extends=this&&this.__extends||function(){var n=function(t,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r(){this.constructor=t}if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(t,i);t.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}}(),c1;(function(n){var t;(function(t){var i;(function(i){var s=function(t){function i(){var n=t!==null&&t.apply(this,arguments)||this;return n._rangesProps=[],n}return __extends(i,t),i.prototype._beforeInitializeControl=function(t){var f=this,r,s,i="propertyChanged",e=t.pointer,o=t.face,u=t.ranges;for(e&&(n._addEvent(f.control.pointer[i],e[i]),delete e[i]),o&&(n._addEvent(f.control.face[i],o[i]),delete o[i]),s=u?u.length:0,r=0;r<s;r++)u&&(f._rangesProps.push(u[r][i]),delete u[r][i])},i.prototype._afterInitializeControl=function(){for(var i=this,r=i._rangesProps,u=r.length,t=0;t<u;t++)n._addEvent(i.control.ranges[t]["propertyChanged"],r[t])},i}(n.mvc._Initializer),r,u,f,h,e,c,o;i._Initializer=s;r=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),Object.defineProperty(t.prototype,"_initializerType",{get:function(){return s},enumerable:!1,configurable:!0}),t}(t._ControlWrapper);i._GaugeWrapper=r;u=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),Object.defineProperty(t.prototype,"_controlType",{get:function(){return f},enumerable:!1,configurable:!0}),t}(r);i._LinearGaugeWrapper=u;f=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(n.gauge.LinearGauge);i.LinearGauge=f;h=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),Object.defineProperty(t.prototype,"_controlType",{get:function(){return e},enumerable:!1,configurable:!0}),t}(u);i._BulletGraphWrapper=h;e=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(n.gauge.BulletGraph);i.BulletGraph=e;c=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),Object.defineProperty(t.prototype,"_controlType",{get:function(){return o},enumerable:!1,configurable:!0}),t}(r);i._RadialGaugeWrapper=c;o=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(n.gauge.RadialGauge);i.RadialGauge=o})(i=t.gauge||(t.gauge={}))})(t=n.mvc||(n.mvc={}))})(c1||(c1={}));
var wijmo;(function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.BulletGraph||(n.BulletGraph={}))})(t=n.gauge||(n.gauge={}))})(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.Gauge||(n.Gauge={}))})(t=n.gauge||(n.gauge={}))}(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.LinearGauge||(n.LinearGauge={}))})(t=n.gauge||(n.gauge={}))}(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.RadialGauge||(n.RadialGauge={}))})(t=n.gauge||(n.gauge={}))}(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.Range||(n.Range={}))})(t=n.gauge||(n.gauge={}))}(wijmo||(wijmo={}));
var wijmo,__extends=this&&this.__extends||function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}();!function(e){!function(t){"use strict";var i=null;if(t._getSafariVer=function(){return i},e.isSafari()){var o=navigator.userAgent.match(/version\/([\d\.]+)/i);if(null!=o){var n=o[1],r=(o=n.match(/(\d+)/g)).map(function(e){return parseInt(e)});i={full:n,major:r[0],minor:r[1]}}}}(e.grid||(e.grid={}))}(wijmo||(wijmo={})),function(e){!function(t){"use strict";!function(e){e[e.AutoComplete=0]="AutoComplete",e[e.DropDownList=1]="DropDownList",e[e.RadioButtons=2]="RadioButtons"}(t.DataMapEditor||(t.DataMapEditor={}));var i=function(){function t(t,i,o){this._keyPath="",this._displayPath="",this._sortByVal=!0,this._editable=!1,this._serK=!0,this.mapChanged=new e.Event,!e.isArray(t)||i||o||(t=t.map(function(e){return{value:e}}),i=o="value"),this._cv=e.asCollectionView(t),this._keyPath=e.asString(i,!1),this._displayPath=e.asString(o,!1),this._cv.collectionChanged.addHandler(this.onMapChanged,this)}return Object.defineProperty(t.prototype,"sortByDisplayValues",{get:function(){return this._sortByVal},set:function(t){this._sortByVal=e.asBoolean(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"serializeKeys",{get:function(){return this._serK},set:function(t){if((t=e.asBoolean(t))!==this._serK){var i=this._map,o=i&&i.size;this._map=null,this._serK=t,o&&this.onMapChanged(e.EventArgs.empty)}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"collectionView",{get:function(){return this._cv},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selectedValuePath",{get:function(){return this._keyPath},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"displayMemberPath",{get:function(){return this._displayPath},enumerable:!0,configurable:!0}),t.prototype.getDataItem=function(t){var i=this;if(!this._map){var o=this._cv.sourceCollection,n=new e._Map(this.serializeKeys);e.isArray(o)&&this._keyPath&&o.forEach(function(e){var t=e[i._keyPath];n.has(t)||n.set(t,e)}),this._map=n}return this._map.get(t)},t.prototype.getDisplayValue=function(e){var t=this._displayPath,i=this.getDataItem(e);return t&&i?i[t]:e},t.prototype.getKeyValue=function(e,t){var i=this._displayPath,o=this._indexOf(e,i,t,!0);return o<0&&(o=this._indexOf(e,i,t,!1)),o>-1?this._cv.sourceCollection[o][this._keyPath]:null},t.prototype.getDisplayValues=function(e){var t=this;return this._cv&&this._displayPath?this._cv.items.map(function(e){return e[t._displayPath]}):[]},t.prototype.getKeyValues=function(){var e=this;return this._cv&&this._keyPath?this._cv.items.map(function(t){return t[e._keyPath]}):[]},Object.defineProperty(t.prototype,"isEditable",{get:function(){return this._editable},set:function(t){this._editable=e.asBoolean(t)},enumerable:!0,configurable:!0}),t.prototype.onMapChanged=function(e){this._map=null,this.mapChanged.raise(this,e)},t.prototype._indexOf=function(t,i,o,n){var r=-1,l=-1;if(this._cv&&i){var s=null!=t?t.toString():"";s&&o&&(t=e.toPlainText(s));for(var a=n?s:s.toLowerCase(),c=this._cv.sourceCollection,u=0;u<c.length;u++){var h=c[u],d=h[i];if(o&&e.isString(d)&&(d=e.toPlainText(d)),d==t?r=u:n||d.length!=a.length||d.toLowerCase()!=a?null!=d&&d.toString()==s&&(r=u):r=u,r==u){if(!this._cv.filter||this._cv.filter(h))return r;l<0&&(l=r)}}}return l},t}();t.DataMap=i}(e.grid||(e.grid={}))}(wijmo||(wijmo={})),function(e){!function(t){"use strict";var i=function(){function t(e,t,i,o){void 0===e&&(e=-1),void 0===t&&(t=-1),void 0===i&&(i=e),void 0===o&&(o=t),this.setRange(e,t,i,o)}return t.prototype.setRange=function(t,i,o,n){void 0===t&&(t=-1),void 0===i&&(i=-1),void 0===o&&(o=t),void 0===n&&(n=i),this._row=e.asInt(t),this._col=e.asInt(i),this._row2=e.asInt(o),this._col2=e.asInt(n)},Object.defineProperty(t.prototype,"row",{get:function(){return this._row},set:function(t){this._row=e.asInt(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"col",{get:function(){return this._col},set:function(t){this._col=e.asInt(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"row2",{get:function(){return this._row2},set:function(t){this._row2=e.asInt(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"col2",{get:function(){return this._col2},set:function(t){this._col2=e.asInt(t)},enumerable:!0,configurable:!0}),t.prototype.clone=function(){return new t(this._row,this._col,this._row2,this._col2)},t.prototype.copy=function(e){this.setRange(e._row,e._col,e._row2,e._col2)},Object.defineProperty(t.prototype,"rowSpan",{get:function(){return Math.abs(this._row2-this._row)+1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"columnSpan",{get:function(){return Math.abs(this._col2-this._col)+1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"topRow",{get:function(){return Math.min(this._row,this._row2)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bottomRow",{get:function(){return Math.max(this._row,this._row2)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"leftCol",{get:function(){return Math.min(this._col,this._col2)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rightCol",{get:function(){return Math.max(this._col,this._col2)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isValid",{get:function(){return this._row>-1&&this._col>-1&&this._row2>-1&&this._col2>-1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isSingleCell",{get:function(){return this._row==this._row2&&this._col==this._col2},enumerable:!0,configurable:!0}),t.prototype.contains=function(i,o){var n=e.tryCast(i,t);if(n)return n.topRow>=this.topRow&&n.bottomRow<=this.bottomRow&&n.leftCol>=this.leftCol&&n.rightCol<=this.rightCol;if(e.isInt(i)&&e.isInt(o))return i>=this.topRow&&i<=this.bottomRow&&o>=this.leftCol&&o<=this.rightCol;throw"contains expects a CellRange or row/column indices."},t.prototype.containsRow=function(t){return e.asInt(t)>=this.topRow&&t<=this.bottomRow},t.prototype.containsColumn=function(t){return e.asInt(t)>=this.leftCol&&t<=this.rightCol},t.prototype.intersects=function(e){return this.intersectsRow(e)&&this.intersectsColumn(e)},t.prototype.intersectsRow=function(e){return e&&!(this.bottomRow<e.topRow||this.topRow>e.bottomRow)},t.prototype.intersectsColumn=function(e){return e&&!(this.rightCol<e.leftCol||this.leftCol>e.rightCol)},t.prototype.getRenderSize=function(t){var i=new e.Size(0,0);if(this.isValid){for(var o=this.topRow;o<=this.bottomRow;o++)i.height+=t.rows[o].renderSize;for(var n=this.leftCol;n<=this.rightCol;n++)i.width+=t.columns[n].renderSize}return i},t.prototype.equals=function(e){return e instanceof t&&this._row==e._row&&this._col==e._col&&this._row2==e._row2&&this._col2==e._col2},t.prototype.combine=function(e){return e?new t(Math.min(this.topRow,e.topRow),Math.min(this.leftCol,e.leftCol),Math.max(this.bottomRow,e.bottomRow),Math.max(this.rightCol,e.rightCol)):this},t.prototype.toString=function(){return e.format("({row}, {col})-({row2}, {col2})",this)},t}();t.CellRange=i}(e.grid||(e.grid={}))}(wijmo||(wijmo={})),function(e){!function(t){"use strict";var i;!function(e){e[e.None=0]="None",e[e.Cell=1]="Cell",e[e.ColumnHeader=2]="ColumnHeader",e[e.RowHeader=3]="RowHeader",e[e.TopLeft=4]="TopLeft",e[e.ColumnFooter=5]="ColumnFooter",e[e.BottomLeft=6]="BottomLeft"}(i=t.CellType||(t.CellType={}));var o=function(){function o(i,o,n,r,l){this._offsetY=0,this._rng=new t.CellRange,this._g=e.asType(i,t.FlexGrid),this._ct=e.asInt(o),this._rows=e.asType(n,t.RowCollection),this._cols=e.asType(r,t.ColumnCollection),this._e=e.asType(l,HTMLElement),this._vrb=new t.CellRange}return Object.defineProperty(o.prototype,"grid",{get:function(){return this._g},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"cellType",{get:function(){return this._ct},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"viewRange",{get:function(){return this._getViewRange()},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"width",{get:function(){return this._cols.getTotalSize()},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"height",{get:function(){return this._rows.getTotalSize()},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"rows",{get:function(){return this._rows},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"columns",{get:function(){return this._cols},enumerable:!0,configurable:!0}),o.prototype.getCellData=function(o,n,r){var l,s=this._g,a=this._rows[e.asNumber(o,!1,!0)],c=null;if(!a)return null;n=this._toIndex(n),l=this._cols[e.asNumber(n,!1,!0)];var u=s?s._getBindingColumn(this,o,l):l,h=null;if(a instanceof t.GroupRow&&a.dataItem instanceof e.collections.CollectionViewGroup&&!s.childItemsPath&&(h=a.dataItem),u.binding&&a.dataItem&&!h?c=u._binding.getValue(a.dataItem):a._ubv&&(c=a._ubv[l._hash]),null==c){var d=i;switch(this._ct){case d.TopLeft:case d.ColumnHeader:o!=this._rows.length-1&&u==l||(c=u.header);break;case d.ColumnFooter:if(a instanceof t.GroupRow&&u.aggregate!=e.Aggregate.None){var p=this._g.collectionView;if(p){var g=e.tryCast(p,e.collections.CollectionView);c=g?g.getAggregate(u.aggregate,u.binding):e.getAggregate(u.aggregate,p.items,u.binding)}}break;case d.Cell:a instanceof t.GroupRow&&(n==this._cols.firstVisibleIndex?c=a.getGroupHeader():h&&u.aggregate!=e.Aggregate.None&&(c=h.getAggregate(u.aggregate,u.binding,this._g.collectionView)))}}if(r){var f=u.dataMap||a.dataMap;this.cellType==i.Cell&&f&&(c=f.getDisplayValue(c)),c=null!=c?e.Globalize.format(c,u.format||a.format):""}return c},o.prototype.setCellData=function(t,o,n,r,l){void 0===r&&(r=!0),void 0===l&&(l=!0);var s=this._g,a=this._rows[e.asNumber(t,!1,!0)],c=this._cols[e.asNumber(this._toIndex(o),!1,!0)],u=e.DataType;if(!a)return!1;var h=s?s._getBindingColumn(this,t,c):c,d=h.dataMap||a.dataMap;if(this._ct==i.Cell){var p=h.getIsRequired(a),g=h.isContentHtml||a.isContentHtml;if(d&&null!=n){var f=d.getKeyValue(n,g);if(null==f&&null==d.getDisplayValue(null)){if(d.getDisplayValue(n)!=n);else if(!d.isEditable||d.displayMemberPath!=d.selectedValuePath){if(""!=n||p)return!1;n=null}}else n=f}var _=u.Object,m=h.dataType||a.dataType,w=this.getCellData(t,o,!1);if(_=m||e.getType(w),null==n||""===n&&r&&!d){if(p)return!1;_!=u.String&&(n=null),r=!1}if(r){var C=h.format||a.format;if(C||_!=u.Date||(C="d"),h.mask&&e.isString(n)&&_!=u.String&&(n=n.replace(/_/g,"")),n=e.changeType(n,_,C,w),_!=u.Object&&e.getType(n)!=_)return!1}}if(a.dataItem&&h.binding){var v=h._binding,y=a.dataItem,b=v.getValue(y);if(n!==b&&(d&&!d.serializeKeys||!e.DateTime.equals(n,b))){var R=s.collectionView,E=R instanceof e.collections.CollectionView&&y!=R.currentEditItem&&R.trackChanges,S=null;if(E&&(S=R._extend({},y)),v.setValue(y,n),E){var x=new e.collections.NotifyCollectionChangedEventArgs(e.collections.NotifyCollectionChangedAction.Change,y,R.items.indexOf(y));R.onCollectionChanged(x),R._trackItemChanged(y,S)}}}else a._ubv||(a._ubv={}),a._ubv[c._hash]=n;return l&&s&&s.invalidate(),!0},o.prototype.getCellBoundingRect=function(t,i,o){var n=this._g,r=this.rows[t],l=this.columns[this._toIndex(i)],s=new e.Rect(l.pos,r.pos,l.renderSize,r.renderSize);if(n.rightToLeft&&(s.left=this.hostElement.clientWidth-s.right,e.isIE()||(s.left-=n._root.offsetWidth-n._root.clientWidth)),!o){var a=this.hostElement.getBoundingClientRect();s.left+=a.left,s.top+=a.top-this._offsetY}return t<this.rows.frozen&&(s.top-=n.scrollPosition.y),i<this.columns.frozen&&(s.left-=n.scrollPosition.x*(n.rightToLeft?-1:1)),s},o.prototype.getCellElement=function(e,t){var i=this.hostElement.children,n=Math.min(e+2,i.length);t=this._toIndex(t);for(var r=0;r<n;r++)for(var l=i[r].children,s=Math.min(t+2,l.length),a=0;a<s;a++){var c=l[a],u=c[o._INDEX_KEY];if(u&&(u.row==e&&u.col==t||u.rng&&u.rng.contains(e,t)))return c}return null},o.prototype.getSelectedState=function(e,o,n){var r=this._g,l=r.selectionMode,s=r._selHdl.selection,a=t.SelectionMode,c=t.SelectedState;if(l==a.None)return c.None;switch(o=this._toIndex(o),this._ct){case i.Cell:if(n||(n=r.getMergedRange(this,e,o)),n){if(n.contains(s.row,s.col))return r.showMarquee?c.Active:c.Cursor;if(n.intersects(s)&&l!=a.ListBox)return c.Selected;for(var u=n.leftCol;u<=n.rightCol;u++)if(r.columns[u].isSelected)return c.Selected;for(var h=n.topRow;h<=n.bottomRow;h++)if(r.rows[h].isSelected)return c.Selected}if(s.row==e&&s.col==o)return r.showMarquee?c.Active:c.Cursor;if(r.rows[e].isSelected||r.columns[o].isSelected)return c.Selected;if(l==a.MultiRange)for(var d=r._selHdl.extendedSelection,p=0;p<d.length;p++)if(d[p].contains(e,o)||n&&n.intersects(d[p]))return c.Selected;if(n)switch(l){case a.Row:case a.RowRange:if(n.containsRow(s.row))return c.Selected}return l==a.ListBox?c.None:(s=this._getAdjustedSelection(s)).containsRow(e)&&s.containsColumn(o)?c.Selected:c.None;case i.ColumnHeader:if(r.showSelectedHeaders&t.HeadersVisibility.Column&&(r.columns[o].isSelected||s.containsColumn(o)||s.intersectsColumn(n))&&(n&&(e=n.bottomRow),e==this.rows.length-1))return c.Selected;break;case i.RowHeader:if(r.showSelectedHeaders&t.HeadersVisibility.Row&&(r.rows[e].isSelected||s.containsRow(e)||s.intersectsRow(n))&&(n&&(o=n.rightCol),o==this.columns.length-1))return c.Selected}return c.None},Object.defineProperty(o.prototype,"hostElement",{get:function(){return this._e},enumerable:!0,configurable:!0}),o.prototype._toIndex=function(t){if(e.isString(t)&&(t=this._cols.indexOf(t))<0)throw"Invalid column name or binding.";return t},o.prototype._getAdjustedSelection=function(e){var i=this._g,o=this._rng,n=t.SelectionMode;switch(i.selectionMode){case n.Cell:o.setRange(e.row,e.col,e.row,e.col);break;case n.Row:o.setRange(e.row,0,e.row,i.columns.length-1);break;case n.RowRange:case n.ListBox:o.setRange(e.row,0,e.row2,i.columns.length-1);break;default:o.copy(e)}return o},o.prototype._getOffsetY=function(){return this._offsetY},o.prototype._updateContent=function(o,n,r){var l=this._g,s=this._e,a=this._rows,c=this._cols,u=this._ct;if(u==i.ColumnHeader||u==i.ColumnFooter||u==i.RowHeader){var h=l._ptScrl,d=s.style;u==i.RowHeader?d.top=h.y+"px":l.rightToLeft?d.right=h.x+"px":d.left=h.x+"px"}this._offsetY!=r&&(o=!1,this._offsetY=r);var p=this._getViewRange(),g=p;if(g.isValid){var f=a.length<=l._vtRows?a.length:0,_=c.length<=l._vtCols?c.length:0;g=new t.CellRange(Math.max(p.row-f,a.frozen),Math.max(p.col-_,c.frozen),Math.min(p.row2+f,a.length-1),Math.min(p.col2+_,c.length-1))}if(o&&!n&&this._vrb.contains(p)&&!a.frozen&&!c.frozen)return this._activeCell;o&&g.equals(this._vrb)||(n=!1),o&&!n&&this._ct!=i.TopLeft&&this._reorderCells(g,this._vrb),this._activeCell=null,this._vru=p,this._vrb=g,this._recycle=o;var m=0;this._ct==i.Cell&&(m=this._renderColHdrRow(g,n));for(var w=0;w<a.frozen&&w<a.length;w++)m=this._renderRow(w,g,n,m);for(w=g.topRow;w<=g.bottomRow&&w>-1;w++)m=this._renderRow(w,g,n,m);for(;s.childElementCount>m;){var C=s.lastElementChild;e.removeChild(C),this._removeExtraCells(C,0)}return this._activeCell},o.prototype._clearCells=function(){for(var t=this.hostElement,i=this._g.cellFactory,o=t.childElementCount-1;o>=0;o--){var n=t.children[o];e.removeChild(n);for(var r=n.childElementCount-1;r>=0;r--)i.disposeCell(n.children[r])}},o.prototype._reorderCells=function(t,o){var n=this;if(this._g._reorderCells&&o.isValid&&t.isValid&&t.intersects(o)){var r=function(t,i,o,r,l,s){e.assert(o<0,"Scroll delta must be a negative number");var a,c,u=-o,h=i+(r-l+1),d=t.childElementCount-h;if(d<u?(a=d,c=u-d):(a=u,c=0),a>0){var p=n._createRange(t,h,h+a);p&&t.insertBefore(p.extractContents(),t.children[i])}if(c>0)for(var g=t.children[i],f=0;f<c;f++){var _=document.createElement("div");_.className=s,t.insertBefore(_,g)}};if(t.row!=o.row){var l=this._e;if(0!=(h=t.row-o.row)){var s=this._ct==i.Cell?1:0,a=l.childElementCount;if(s+=this.rows.frozen,h>0){var c=s,u=Math.min(s+h,a);(g=this._createRange(l,c,u))&&l.appendChild(g.extractContents())}else r(l,s,h,t.row2,o.row,"wj-row")}}if(t.col!=o.col){var h;l=this._e;if(0!=(h=t.col-o.col)){s=this._ct==i.Cell&&this._g.rowHeaderPath?1:0;s+=this.columns.frozen;for(var d=0;d<l.children.length;d++){var p=l.children[d];a=p.children.length;if(e.hasClass(p,"wj-row"))if(h>0){var g;c=s,u=Math.min(s+h,a);(g=this._createRange(p,c,u))&&p.appendChild(g.extractContents())}else r(p,s,h,t.col2,o.col,"wj-cell")}}}}},o.prototype._createRange=function(e,t,i){if(i>t&&i<=e.children.length&&t>-1){this._docRange||(this._docRange=document.createRange());var o=this._docRange;return o.setStart(e,t),o.setEnd(e,i),o}return null},o.prototype._renderColHdrRow=function(t,i){if(i)return 1;var o=this._e.children[0];o||(o=e.createElement('<div class="wj-row" role="row"></div>',this._e));var n=this._g,r=n?n.columnHeaders.rows.ariaLabel:null;e.setAttribute(o,"aria-label",r),e.setAttribute(o,"aria-selected",null);var l=0,s=this._g._getRowHeaderPath();s&&(l=this._renderRowHdrCell(o,-1,s.path));for(var a=0;a<this.columns.frozen&&a<this.columns.length;a++)l=this._renderColHdrCell(o,a,t,i,l);for(a=t.leftCol;a<=t.rightCol&&a>-1;a++)l=this._renderColHdrCell(o,a,t,i,l);return this._removeExtraCells(o,l),1},o.prototype._renderColHdrCell=function(t,i,n,r,l){var s=this.grid,a=this.columns[i];if(a.renderSize<=0)return l;if(r)return l+1;var c=t.children[l];if(c||(c=e.createElement(o._HTML_CELL,t)),e.setAttribute(c,"role","columnheader"),c&&this._recycle&&s._lazyRender){var u=c[o._INDEX_KEY];if(u&&-1==u.row&&u.col==i&&i>=this.columns.frozen)return l+1}if(c.textContent=this.columns[i].header,e.setCss(c,{position:"fixed",left:a.pos,top:-32e3,width:a.renderSize,height:.1,overflow:"hidden",opacity:"0",pointerEvents:"none"}),a.describedById||this.columns.describedById){var h=[a.describedById,this.columns.describedById].join(" ").trim();e.setAttribute(c,"aria-describedby",h||null)}if(s.allowSorting){var d="none";switch(s._getBindingColumn(this,0,a).currentSort){case"+":d="ascending";break;case"-":d="descending"}e.setAttribute(c,"aria-sort",d)}return s.isReadOnly||(e.setAttribute(c,"aria-readonly",a.isReadOnly),e.setAttribute(c,"aria-required",a.getIsRequired())),c[o._INDEX_KEY]={row:-1,col:i,panel:this},l+1},o.prototype._renderRowHdrCell=function(t,i,n){var r=t.children[0];return r||(r=e.createElement(o._HTML_CELL,t)),r.setAttribute("role",i<0?"columnheader":"rowheader"),r.textContent=n?n.toString():"",e.setCss(r,{position:"fixed",left:-32e3,top:-32e3,width:.1,height:.1,overflow:"hidden",opacity:"0"}),r[o._INDEX_KEY]={row:i,col:-1,panel:this},1},o.prototype._renderRow=function(o,n,r,l){var s=this._g,a=this.rows[o];if(a.renderSize<=0)return l;var c=this._e.children[l];if(c||(c=e.createElement('<div class="wj-row"></div>',this._e)),this._ct==i.Cell){c.setAttribute("role","row");var u=t.SelectionMode,h=a.isSelected;switch(s.selectionMode){case u.Row:case u.RowRange:h=h||this._g._selHdl.selection.containsRow(o)}e.setAttribute(c,"aria-selected",!!h||null),e.setAttribute(c,"aria-level",a instanceof t.GroupRow?a.level+1:null),e.setAttribute(c,"aria-expanded",a instanceof t.GroupRow?!a.isCollapsed:null),this.rows.ariaLabel&&e.setAttribute(c,"aria-label",this.rows.ariaLabel)}var d=0;if(this._ct==i.Cell){var p=this._g._getRowHeaderPath();p&&(d=this._renderRowHdrCell(c,o,p.getValue(a.dataItem)))}for(var g=0;g<this.columns.frozen&&g<this.columns.length;g++)d=this._renderCell(c,o,g,n,r,d);for(g=n.leftCol;g<=n.rightCol&&g>-1;g++)d=this._renderCell(c,o,g,n,r,d);return this._removeExtraCells(c,d),l+1},o.prototype._renderCell=function(n,r,l,s,a,c){var u=this._g,h=u.getMergedRange(this,r,l);if(h){for(var d=Math.max(s.row,h.row);d<r;d++)if(this.rows[d].renderSize)return c;for(d=Math.max(s.col,h.col);d<l;d++)if(this.columns[d].renderSize)return c;var p=this.columns.frozen;if(p&&h.col<p&&h.col2>=p&&l>h.col)return c}var g=this.columns[l];if(g.renderSize<=0&&(!h||h.getRenderSize(this).width<=0))return c;var f=n.children[c];if(f&&!a&&this._recycle&&u._lazyRender&&!u.activeEditor){var _=f[o._INDEX_KEY];_&&_.row==r&&_.col==l&&_.rng==h&&r>=this.rows.frozen&&l>=this.columns.frozen&&(a=!0)}var m=t.SelectedState,w=this.getSelectedState(r,l,h),C=w==m.Cursor||w==m.Active;return f&&a?(e.toggleClass(f,"wj-state-active",C),e.toggleClass(f,"wj-state-selected",w==m.Cursor),e.toggleClass(f,"wj-state-multi-selected",w==m.Selected),e.setAttribute(f,"aria-selected",!(!C&&w==m.None)||null),C&&(this._activeCell=f),c+1):(f||(f=e.createElement(o._HTML_CELL,n)),C&&(this._activeCell=f),this._ct==i.Cell&&(e.setAttribute(f,"role","gridcell"),e.setAttribute(f,"aria-selected",!(w==m.None&&!C)||null),e.setAttribute(f,"aria-readonly",!u.canEditCell(r,l)||null),e.setAttribute(f,"aria-required",g.getIsRequired())),u.cellFactory.updateCell(this,r,l,f,h),f[o._INDEX_KEY]={row:r,col:l,rng:h,panel:this},c+1)},o.prototype._removeExtraCells=function(t,i){for(var o=this._g.cellFactory;t.childElementCount>i;){var n=t.lastElementChild;e.removeChild(n),o.disposeCell(n)}},o.prototype._getViewRange=function(){var e=this._g,o=e._ptScrl,n=e._szClientSB,r=this._rows,l=this._cols,s=new t.CellRange(0,0,r.length-1,l.length-1);if(this._ct==i.Cell||this._ct==i.RowHeader){var a=-o.y+this._offsetY,c=n.height;if((p=Math.min(r.frozen,r.length-1))>0)a+=g=r[p-1].pos,c-=g;p>0&&r[p].pos>n.height?s.row=s.row2=-1:(s.row=Math.min(r.length-1,Math.max(p,r.getItemAt(a))),s.row2=Math.max(s.row,r.getItemAt(a+c)));var u=e.hostElement;if(e._clipToScreen&&u){var h=u.getBoundingClientRect(),d=-h.top-e.cells._e.offsetTop;h.top<0&&(s.row=Math.max(s.row,r.getItemAt(d)-1)),h.bottom>innerHeight&&(s.row2=Math.min(s.row2,r.getItemAt(d+innerHeight)+1))}}if(this._ct==i.Cell||this._ct==i.ColumnHeader){var p,g,f=-o.x,_=n.width;if((p=Math.min(l.frozen,l.length-1))>0)f+=g=l[p-1].pos,_-=g;p>0&&l[p].pos>n.width?s.col=s.col2=-1:(s.col=Math.min(l.length-1,Math.max(p,l.getItemAt(f))),s.col2=Math.max(s.col,l.getItemAt(f+_)))}return r.length<=r.frozen&&(s.row=s.row2=-1),l.length<=l.frozen&&(s.col=s.col2=-1),s},o.prototype._getFrozenPos=function(){var t=this._rows.frozen,i=this._cols.frozen,o=t>0?this._rows[t-1]:null,n=i>0?this._cols[i-1]:null,r=o?o.pos+o.renderSize:0,l=n?n.pos+n.renderSize:0;return new e.Point(l,r)},o._INDEX_KEY="wj-cell-index",o._HTML_CELL='<div class="wj-cell" tabindex="-1"></div>',o}();t.GridPanel=o}(e.grid||(e.grid={}))}(wijmo||(wijmo={})),function(e){!function(t){"use strict";var i=function(i){function o(o,n,r){var l=i.call(this)||this;return l._p=e.asType(o,t.GridPanel,!0),l._rng=e.asType(n,t.CellRange,!0),l._data=r,l}return __extends(o,i),Object.defineProperty(o.prototype,"panel",{get:function(){return this._p},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"range",{get:function(){return this._rng.clone()},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"row",{get:function(){return this._rng.row},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"col",{get:function(){return this._rng.col},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"data",{get:function(){return this._data},set:function(e){this._data=e},enumerable:!0,configurable:!0}),o.prototype.getRow=function(){return this._p&&this.row>-1?this._p.rows[this.row]:null},o.prototype.getColumn=function(e){var i=this._p,o=i&&this.col>-1?i.columns[this.col]:null;if(o&&e){var n=i.grid;o=i.cellType===t.CellType.ColumnHeader&&n._hasColumnGroups()?n._getColumnGroup(this.row,this.col):i.grid._getBindingColumn(i,this.row,o)}return o},o}(e.CancelEventArgs);t.CellRangeEventArgs=i;var o=function(t){function i(i,o,n,r){void 0===r&&(r=!0);var l=t.call(this,i,o)||this;return l._updateContent=!0,l._cell=e.asType(n,HTMLElement),l}return __extends(i,t),Object.defineProperty(i.prototype,"cell",{get:function(){return this._cell},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"updateContent",{get:function(){return this._updateContent},enumerable:!0,configurable:!0}),i}(i);t.FormatItemEventArgs=o;var n=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e._stayInEditMode=!1,e._refresh=!0,e}return __extends(i,t),Object.defineProperty(i.prototype,"stayInEditMode",{get:function(){return this._stayInEditMode},set:function(t){this._stayInEditMode=e.asBoolean(t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"refresh",{get:function(){return this._refresh},set:function(t){this._refresh=e.asBoolean(t)},enumerable:!0,configurable:!0}),i}(i);t.CellEditEndingEventArgs=n}(e.grid||(e.grid={}))}(wijmo||(wijmo={})),function(e){!function(t){"use strict";var i,o;!function(e){e[e.None=0]="None",e[e.Cell=1]="Cell",e[e.CellRange=2]="CellRange",e[e.Row=3]="Row",e[e.RowRange=4]="RowRange",e[e.ListBox=5]="ListBox",e[e.MultiRange=6]="MultiRange"}(i=t.SelectionMode||(t.SelectionMode={})),function(e){e[e.None=0]="None",e[e.Selected=1]="Selected",e[e.Cursor=2]="Cursor",e[e.Active=3]="Active"}(t.SelectedState||(t.SelectedState={})),function(e){e[e.None=0]="None",e[e.Next=1]="Next",e[e.Prev=2]="Prev",e[e.NextPage=3]="NextPage",e[e.PrevPage=4]="PrevPage",e[e.Home=5]="Home",e[e.End=6]="End",e[e.NextCell=7]="NextCell",e[e.PrevCell=8]="PrevCell",e[e.NextEditableCell=9]="NextEditableCell",e[e.PrevEditableCell=10]="PrevEditableCell"}(o=t.SelMove||(t.SelMove={}));var n=function(){function n(o){this._sel=new t.CellRange(0,0),this._xSel=new e.collections.ObservableArray,this._mode=i.CellRange,this._g=o,this._e=new t.CellRangeEventArgs(o.cells,new t.CellRange(0,0)),this._xSel.collectionChanged.addHandler(function(){o.invalidate()})}return Object.defineProperty(n.prototype,"selectionMode",{get:function(){return this._mode},set:function(e){e!=this._mode&&this._setSelectionMode(e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"selection",{get:function(){return this._sel},set:function(e){this.select(e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"extendedSelection",{get:function(){return this._xSel},enumerable:!0,configurable:!0}),n.prototype.select=function(o,n,r){void 0===n&&(n=!0),void 0===r&&(r=!1);var l=this._g,s=this._e.range,a=this._sel,c=s,u=!1,h=i;if(e.isNumber(o)&&e.isString(n)){var d=l.columns.indexOf(n);if(d<0)throw"Invalid column name or binding.";s.setRange(o,d),n=!0}else e.isNumber(o)&&e.isNumber(n)?(s.setRange(o,n),n=!0):o instanceof t.CellRange?s.copy(o):e.assert(!1,"CellRange expected");switch(l.selectionMode){case h.Cell:c.row2=c.row,c.col2=c.col;break;case h.Row:c.row2=c.row;break;case h.ListBox:u=!0}var p=c.equals(a);if(p&&u)for(var g=0;g<l.rows.length;g++)if(l.rows[g].isSelected!==c.containsRow(g)){p=!1;break}if(p)return n&&l.isRangeValid(c)&&this._showSelection(),!0;var f=e.Control.getControl(e.closest(e.getActiveElement(),".wj-flexgrid"));if(f&&f.activeEditor&&!f.finishEditing())return!1;var _=this._e;if(_._rng=c,_.cancel=!1,!l.onSelectionChanging(_)&&!r)return!1;u&&l.rows.forEach(function(e,i){e._setFlag(t.RowColFlags.Selected,c.containsRow(i),!0)}),c.row=Math.min(c.row,l.rows.length-1),c.row2=Math.min(c.row2,l.rows.length-1),this._sel.copy(c),l.refreshCells(!1,!0,!0),n&&this._showSelection();var m=l.collectionView;if(m){var w=l._getCvIndex(c.row);m.moveCurrentToPosition(w)}return l.onSelectionChanged(_),!0},n.prototype.moveSelection=function(e,i,n){var r=this._g,l=this._sel,s=n&&r.anchorCursor?new t.CellRange(l.row2,l.col2):new t.CellRange(l.row,l.col);this._adjustReferenceCell(s,e,i);var a=s.row,c=s.col,u=r.columns,h=Math.max(0,r._szClient.height-r.columnHeaders.height),d=o;switch(i){case d.NextCell:case d.NextEditableCell:(c=this._getNextColumnCell(a,c,i))==s.col&&(a=this._getNextRowCell(a,c,i))>s.row&&(c=this._getNextColumnCell(a,0,i),c=this._getNextColumnCell(a,c,i==d.NextCell?d.PrevCell:d.PrevEditableCell)),r.select(a,c);break;case d.PrevCell:case d.PrevEditableCell:(c=this._getNextColumnCell(a,s.col,i))==s.col&&(a=this._getNextRowCell(a,c,i))<s.row&&(c=this._getNextColumnCell(a,u.length-1,i),c=this._getNextColumnCell(a,c,i==d.PrevCell?d.NextCell:d.NextEditableCell)),r.select(a,c);break;default:a=this._getNextRowCell(a,c,e,h),c=this._getNextColumnCell(a,c,i,h),n?r.selection=r.anchorCursor?new t.CellRange(l.row,l.col,a,c):new t.CellRange(a,c,l.row2,l.col2):r.select(a,c)}},n.prototype._getNextColumnCell=function(e,t,i,o){return void 0===o&&(o=0),this._g.columns.getNextCell(t,i,o)},n.prototype._getNextRowCell=function(e,t,i,o){return void 0===o&&(o=0),this._g.rows.getNextCell(e,i,o)},n.prototype._setSelectionMode=function(e){var t=this._g,i=t.rows;this._mode=e,this._xSel.clear(),i.length&&(this._adjustSelection(this._sel,e,!0),t.invalidate())},n.prototype._adjustSelection=function(e,o,n){void 0===n&&(n=!1);for(var r=this._g.rows,l=i,s=0;s<r.length;s++)r[s]._setFlag(t.RowColFlags.Selected,!1,!0);var a=e.clone();switch(o){case l.None:a=new t.CellRange;break;case l.Cell:a=new t.CellRange(e.row,e.col);break;case l.ListBox:for(s=0;s<r.length;s++)r[s]._setFlag(t.RowColFlags.Selected,a.containsRow(s),!0)}this.select(a,!1,n)},n.prototype._expandSelection=function(){var e=this._g,o=e.selectionMode;if(e.expandSelectionOnCopyPaste&&o){var n=this.selection,r=i;switch(o){case r.Cell:case r.Row:break;case r.ListBox:this._expandSelectedRows();break;case r.RowRange:n=new t.CellRange(n.topRow,0,n.bottomRow,e.columns.length-1);default:var l=this._expandSelectionRange(n);l&&this.select(l,!1)}}},n.prototype._deselectRange=function(e){var i=this.selection,o=this.extendedSelection;if(i.contains(e)){var n=o.length;return this._sel=n?o[n-1]:new t.CellRange,n&&o.removeAt(n-1),!0}for(var r=0;r<o.length;r++)if(o[r].contains(e))return o.removeAt(r),!0;return!1},n.prototype._expandSelectedRows=function(){e.assert(this.selectionMode==i.ListBox,"ListBox mode expected");for(var o=this._g,n=o.selectedRows.map(function(e){return e.index}),r=[],l=0;l<n.length;l++)for(var s=new t.CellRange(n[l],0,n[l],o.columns.length-1),a=this._expandSelectionRange(s)||s,c=a.topRow;c<=a.bottomRow;c++)-1===r.indexOf(c)&&r.push(c);r.sort(),this._selectRows(r)},n.prototype._expandSelectionRange=function(e){var i=this._g,o=i.cells,n=i.getMergedRange(o,e.topRow,e.leftCol,!1),r=i.getMergedRange(o,e.bottomRow,e.leftCol,!1),l=i.getMergedRange(o,e.topRow,e.rightCol,!1),s=i.getMergedRange(o,e.bottomRow,e.rightCol,!1);return n||r||l||s?(n=n||new t.CellRange(e.topRow,e.leftCol),r=r||new t.CellRange(e.bottomRow,e.leftCol),l=l||new t.CellRange(e.topRow,e.rightCol),s=s||new t.CellRange(e.bottomRow,e.rightCol),new t.CellRange(Math.min(n.topRow,r.topRow,l.topRow,s.topRow),Math.min(n.leftCol,r.leftCol,l.leftCol,s.leftCol),Math.max(n.bottomRow,r.bottomRow,l.bottomRow,s.bottomRow),Math.max(n.rightCol,r.rightCol,l.rightCol,s.rightCol))):null},n.prototype._selectRows=function(t){e.assert(this.selectionMode==i.ListBox,"ListBox mode expected");for(var o=this._g,n=0,r=!0;n<o.rows.length;n++){var l=o.rows[n],s=t&&t.indexOf(l.index)>-1;s&&r&&(r=!1,this.select(n,this.selection.col)),l.isSelected=s}},n.prototype._showSelection=function(){var e=this._g,t=this._sel;e.anchorCursor?e.scrollIntoView(t.row2,t.col2):e.scrollIntoView(t.row,t.col)},n.prototype._adjustReferenceCell=function(e,t,i){var n=this._g,r=n.getMergedRange(n.cells,e.row,e.col);if(r&&!r.isSingleCell){var l=o;switch(t){case l.Next:case l.NextCell:case l.NextEditableCell:e.row=r.bottomRow;break;case l.Prev:case l.PrevCell:case l.PrevEditableCell:e.row=r.topRow}switch(i){case l.Next:case l.NextCell:case l.NextEditableCell:e.col=r.rightCol;break;case l.Prev:case l.PrevCell:case l.PrevEditableCell:e.col=r.leftCol}}},n}();t._SelectionHandler=n}(e.grid||(e.grid={}))}(wijmo||(wijmo={})),function(e){!function(t){"use strict";var i;!function(e){e[e.Visible=1]="Visible",e[e.AllowResizing=2]="AllowResizing",e[e.AllowDragging=4]="AllowDragging",e[e.AllowMerging=8]="AllowMerging",e[e.AllowSorting=16]="AllowSorting",e[e.AutoGenerated=32]="AutoGenerated",e[e.Collapsed=64]="Collapsed",e[e.ParentCollapsed=128]="ParentCollapsed",e[e.Selected=256]="Selected",e[e.ReadOnly=512]="ReadOnly",e[e.HtmlContent=1024]="HtmlContent",e[e.WordWrap=2048]="WordWrap",e[e.MultiLine=4096]="MultiLine",e[e.HasTemplate=8192]="HasTemplate",e[e.RowDefault=3]="RowDefault",e[e.ColumnDefault=23]="ColumnDefault"}(i=t.RowColFlags||(t.RowColFlags={}));var o=function(){function o(){this._type=null,this._align=null,this._inpType=null,this._mask=null,this._maxLen=null,this._required=null,this._fmt=null,this._map=null,this._ddCssClass=null,this._cssClass=null,this._cssClassAll=null,this._szMin=null,this._szMax=null,this._sz=null,this._pos=0,this._idx=-1,this._idxVis=-1,this._idxData=-1,this.gridChanged=new e.Event}return Object.defineProperty(o.prototype,"binding",{get:function(){return this._binding?this._binding.path:null},set:function(t){if(t!=this.binding){var i=e.asString(t);if(this._binding=i?new e.Binding(i):null,!this._type&&this.grid&&this._binding){var o=this.grid.collectionView;if(o&&o.sourceCollection&&o.sourceCollection.length){var n=o.sourceCollection[0];this._type=e.getType(this._binding.getValue(n))}}this.onPropertyChanged()}},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"sortMemberPath",{get:function(){return this._bindingSort?this._bindingSort.path:null},set:function(t){if(t!=this.sortMemberPath){var i=e.asString(t);this._bindingSort=i?new e.Binding(i):null,this.onPropertyChanged()}},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"dataType",{get:function(){return this._type},set:function(t){t=e.asEnum(t,e.DataType,!0),this._type!=t&&(this._type=t,this.grid&&this.grid.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"inputType",{get:function(){return this._inpType},set:function(t){this._inpType=e.asString(t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"mask",{get:function(){return this._mask},set:function(t){this._mask=e.asString(t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"maxLength",{get:function(){return this._maxLen},set:function(t){this._maxLen=e.asNumber(t,!0,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"align",{get:function(){return this._align},set:function(e){this._align!=e&&(this._align=e,this.onPropertyChanged())},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"format",{get:function(){return this._fmt},set:function(e){this._fmt!=e&&(this._fmt=e,this.onPropertyChanged())},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"dataMap",{get:function(){return this._map},set:function(i){this._map!=i&&(this._map&&this._map.mapChanged.removeHandler(this.onPropertyChanged,this),e.isArray(i)&&(i=new t.DataMap(i,null,null)),this._map=e.asType(i,t.DataMap,!0),this._map&&this._map.mapChanged.addHandler(this.onPropertyChanged,this),this.onPropertyChanged())},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"dataMapEditor",{get:function(){return null!=this._mapEditor?this._mapEditor:t.DataMapEditor.DropDownList},set:function(i){i!=this._mapEditor&&(this._mapEditor=e.asEnum(i,t.DataMapEditor),this.grid&&this.grid.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"showDropDown",{get:function(){return this.dataMapEditor==t.DataMapEditor.DropDownList},set:function(i){e._deprecated("showDropDown","dataMapEditor"),this.dataMapEditor=i?t.DataMapEditor.DropDownList:t.DataMapEditor.AutoComplete},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"dropDownCssClass",{get:function(){return this._ddCssClass},set:function(t){this._ddCssClass=e.asString(t)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"visible",{get:function(){return this._getFlag(i.Visible)},set:function(e){this._setFlag(i.Visible,e)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"isVisible",{get:function(){return!!this._getFlag(i.Visible)&&(!this._getFlag(i.ParentCollapsed)||this instanceof t._NewRowTemplate)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"pos",{get:function(){return this._list&&this._list._dirty&&this._list._update(),this._pos},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"index",{get:function(){return this._list&&this._list._dirty&&this._list._update(),this._idx},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"visibleIndex",{get:function(){return this._list&&this._list._dirty&&this._list._update(),this.isVisible?this._idxVis:-1},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"size",{get:function(){return this._sz},set:function(t){t!=this._sz&&(this._sz=e.asNumber(t,!0),this.onPropertyChanged())},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"renderSize",{get:function(){var e=0,t=this._list;return this.isVisible&&((null==(e=this._sz)||e<0)&&(e=t?t.defaultSize:0),t&&null!=t.minSize&&e<t.minSize&&(e=t.minSize),t&&null!=t.maxSize&&e>t.maxSize&&(e=t.maxSize),null!=this._szMin&&e<this._szMin&&(e=this._szMin),null!=this._szMax&&e>this._szMax&&(e=this._szMax)),e},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"allowResizing",{get:function(){return this._getFlag(i.AllowResizing)},set:function(e){this._setFlag(i.AllowResizing,e)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"allowDragging",{get:function(){return this._getFlag(i.AllowDragging)},set:function(e){this._setFlag(i.AllowDragging,e)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"allowMerging",{get:function(){return this._getFlag(i.AllowMerging)},set:function(e){this._setFlag(i.AllowMerging,e)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"isSelected",{get:function(){return this._getFlag(i.Selected)},set:function(e){if(!!e!=this.isSelected){var o=this.grid;if(o){var n=this instanceof r?new t.CellRange(this.index,-1):new t.CellRange(-1,this.index),l=new t.CellRangeEventArgs(o?o.cells:null,n);o.onSelectionChanging(l)&&this._setFlag(i.Selected,e,!0)&&(o.refreshCells(!1,!0,!0),o.onSelectionChanged(l))}else this._setFlag(i.Selected,e)}},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"isReadOnly",{get:function(){return this._getFlag(i.ReadOnly)},set:function(e){this._setFlag(i.ReadOnly,e)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"isRequired",{get:function(){return this._required},set:function(t){this._required=e.asBoolean(t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"isContentHtml",{get:function(){return this._getFlag(i.HtmlContent)},set:function(e){this.isContentHtml!=e&&(this._setFlag(i.HtmlContent,e),this.grid&&this.grid.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"wordWrap",{get:function(){return this._getFlag(i.WordWrap)},set:function(e){this._setFlag(i.WordWrap,e)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"multiLine",{get:function(){return this._getFlag(i.MultiLine)},set:function(e){this._setFlag(i.MultiLine,e)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"cssClass",{get:function(){return this._cssClass},set:function(t){t!=this._cssClass&&(this._cssClass=e.asString(t),this.grid&&this.grid.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"cssClassAll",{get:function(){return this._cssClassAll},set:function(t){t!=this._cssClassAll&&(this._cssClassAll=e.asString(t),this.grid&&this.grid.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"grid",{get:function(){return this._list?this._list._g:null},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"collectionView",{get:function(){return this.grid?this.grid.collectionView:null},enumerable:!0,configurable:!0}),o.prototype.onPropertyChanged=function(){this._list&&(this._list._dirty=!0,this.grid.invalidate())},o.prototype.onGridChanged=function(e){this.gridChanged.raise(this,e)},o.prototype._setList=function(e){e!=this._list&&(this._list=e,this.onGridChanged())},o.prototype._getFlag=function(e){return 0!=(this._f&e)},o.prototype._setFlag=function(e,t,i){return!!t!=this._getFlag(e)&&(this._f=t?this._f|e:this._f&~e,i||this.onPropertyChanged(),!0)},o}();t.RowCol=o;var n=function(o){function n(t){var r=o.call(this)||this;return r._hdr=null,r._name=null,r._agg=null,r._quickSize=null,r._descById=null,r._tpl=null,r._f=i.ColumnDefault,r._hash=n._ctr.toString(36),n._ctr++,e.copy(r,t),r}return __extends(n,o),Object.defineProperty(n.prototype,"name",{get:function(){return this._name},set:function(e){this._name=e},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"width",{get:function(){return null!=this._szStar?this._szStar:this.size},set:function(t){null!=n._parseStarSize(t)?(this._szStar=t,this.onPropertyChanged()):(this._szStar=null,this.size=e.asNumber(t,!0))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"minWidth",{get:function(){return this._szMin},set:function(t){t!=this._szMin&&(this._szMin=e.asNumber(t,!0,!0),this.onPropertyChanged())},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"maxWidth",{get:function(){return this._szMax},set:function(t){t!=this._szMax&&(this._szMax=e.asNumber(t,!0,!0),this.onPropertyChanged())},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"quickAutoSize",{get:function(){return this._quickSize},set:function(t){this._quickSize=e.asBoolean(t,!0)},enumerable:!0,configurable:!0}),n.prototype._getQuickAutoSize=function(){return!!this.grid._getQuickAutoSize()&&(e.isBoolean(this._quickSize)?this._quickSize:!(this.isContentHtml||this.wordWrap||this.multiLine||this._getFlag(i.HasTemplate)))},Object.defineProperty(n.prototype,"renderWidth",{get:function(){return this.renderSize},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"header",{get:function(){return this._hdr?this._hdr:this.binding},set:function(e){this._hdr!=e&&(this._hdr=e,this.onPropertyChanged())},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"cellTemplate",{get:function(){return this._tpl},set:function(t){t!=this._tpl&&(e.assert(null==t||e.isString(t)||e.isFunction(t),"cellTemplate should be a string or an ICellTemplateFunction."),this._tpl=t,this._setFlag(i.HasTemplate,null!=t&&""!=t),this.onPropertyChanged())},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"editor",{get:function(){var e=this._edt;return e?e.control:null},set:function(i){i!=this.editor&&(this._edt&&(this._edt.dispose(),this._edt=null),null!=i&&(i=e.asType(i,e.Control),this._edt=new t._CustomEditor(this,i)))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"allowSorting",{get:function(){return this._getFlag(i.AllowSorting)},set:function(e){this._setFlag(i.AllowSorting,e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"currentSort",{get:function(){var e=this.currentSortIndex;return e>-1?this.grid.collectionView.sortDescriptions[e].ascending?"+":"-":null},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"currentSortIndex",{get:function(){var e=this.grid?this.grid.collectionView:null,t=e?e.sortDescriptions:null,i=t&&t.length?this._getBindingSort():null;if(i)for(var o=0;o<t.length;o++)if(t[o].property==i)return o;return-1},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"aggregate",{get:function(){return null!=this._agg?this._agg:e.Aggregate.None},set:function(t){(t=e.asEnum(t,e.Aggregate))!=this._agg&&(this._agg=t,this.onPropertyChanged())},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"describedById",{get:function(){return this._descById},set:function(t){t!=this._descById&&(this._descById=e.asString(t),this.grid&&this.grid.invalidate())},enumerable:!0,configurable:!0}),n.prototype.getIsRequired=function(t){return null!=this._required?this._required:t&&null!=t.isRequired?t.isRequired:this.dataType==e.DataType.String?null!=this.dataMap||null!=this._mask&&this._mask.length>0:!t||t.dataType!=e.DataType.String||(null!=t.dataMap||null!=t.mask&&t.mask.length>0)},n.prototype.getAlignment=function(t){if(null!=this._align)return this._align;if(t&&null!=t.align)return t.align;if(!this._map)switch(this.dataType){case e.DataType.Boolean:return"center";case e.DataType.Number:return"right"}if(t&&!t.dataMap)switch(t.dataType){case e.DataType.Boolean:return"center";case e.DataType.Number:return"right"}return""},n.prototype._getBindingSort=function(){return this.sortMemberPath?this.sortMemberPath:this.binding?this.binding:null},n._parseStarSize=function(t){if(e.isString(t)){var i=t.length;if(i>0&&"*"==t[i-1]){var o=1==i?1:parseFloat(t);if(o>0&&!isNaN(o))return o}}return null},n._ctr=0,n}(o);t.Column=n;var r=function(e){function t(t){var o=e.call(this)||this;return o._f=i.ColumnDefault,o._data=t||null,o}return __extends(t,e),Object.defineProperty(t.prototype,"dataItem",{get:function(){return this._data},set:function(e){this._data=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dataIndex",{get:function(){return this._list&&this._list._dirty&&this._list._update(),this._idxData},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.size},set:function(e){this.size=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"renderHeight",{get:function(){return this.renderSize},enumerable:!0,configurable:!0}),t}(o);t.Row=r;var l=function(o){function n(t){var i=o.call(this,t)||this;return i._level=-1,i.level=t instanceof e.collections.CollectionViewGroup?t.level:-1,i.isReadOnly=!0,i}return __extends(n,o),Object.defineProperty(n.prototype,"level",{get:function(){return this._level},set:function(t){e.asInt(t),t!=this._level&&(this._level=t,this.onPropertyChanged())},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"hasChildren",{get:function(){if(null!=this.grid&&null!=this._list){this._list._update();var i=this.index<this._list.length-1?this._list[this.index+1]:null,o=e.tryCast(i,n),r=e.tryCast(i,t._NewRowTemplate);return null!=i&&null==r&&(null==o||o.level>this.level)}return!0},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"isCollapsed",{get:function(){return this._getFlag(i.Collapsed)},set:function(t){!!t!=this.isCollapsed&&null!=this._list&&this._setCollapsed(e.asBoolean(t))},enumerable:!0,configurable:!0}),n.prototype.getGroupHeader=function(){var t=this.grid,i=t.groupHeaderFormat||e.culture.FlexGrid.groupHeaderFormat,o=this.dataItem;if(o instanceof e.collections.CollectionViewGroup&&i&&t.showGroups&&!t.childItemsPath){var n=o.groupDescription.propertyName,r=o.name,l=t.getColumn(n),s=this.isContentHtml;if(l){s=s||l.isContentHtml,l.header&&(n=l.header);var a=l.dataMap;a&&(r=a.getDisplayValue(r)),l.dataType==e.getType(r)&&(r=e.Globalize.format(r,l.format))}else n=e.toHeaderCase(n);var c=o.getAggregate(e.Aggregate.CntAll,null,t.collectionView);return e.format(i,{name:e.escapeHtml(n),value:s?r:e.escapeHtml(r),level:o.level,count:c})}return""},n.prototype._setCollapsed=function(e){var o=this,r=this.grid,l=r.rows,s=this.getCellRange(),a=new t.CellRangeEventArgs(r.cells,new t.CellRange(this.index,-1));r.onGroupCollapsedChanging(a)&&(r.deferUpdate(function(){l.deferUpdate(function(){o._setFlag(i.Collapsed,e,!0);for(var t=s.topRow+1;t<=s.bottomRow&&t>-1&&t<l.length;t++){l[t]._setFlag(i.ParentCollapsed,e,!0);var r=l[t];r instanceof n&&r.isCollapsed&&(t=r.getCellRange().bottomRow)}})}),r.onGroupCollapsedChanged(a))},n.prototype.getCellRange=function(){for(var e=this._list,i=this.index,o=e.length-1,r=i+1;r<=o;r++){var l=e[r];if(l instanceof n&&l.level<=this.level){o=r-1;break}}return new t.CellRange(i,0,o,this.grid.columns.length-1)},n}(r);t.GroupRow=l;var s=function(i){function n(o,n){var r=i.call(this)||this;return r._frozen=0,r._lastFrozen=-1,r._firstVisible=-1,r._vlen=0,r._szDef=28,r._szTot=0,r._szCustom=!1,r._dirty=!1,r._g=e.asType(o,t.FlexGrid),r._szDef=e.asNumber(n,!1,!0),r}return __extends(n,i),Object.defineProperty(n.prototype,"grid",{get:function(){return this._g},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"defaultSize",{get:function(){return this._szDef},set:function(t){this._szCustom=!0,this._szDef!=t&&(this._szDef=e.asNumber(t,!1,!0),this._dirty=!0,this._g.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"frozen",{get:function(){return this._frozen},set:function(t){t!=this._frozen&&(this._frozen=e.asNumber(t,!1,!0),this._dirty=!0,this._g.invalidate())},enumerable:!0,configurable:!0}),n.prototype.isFrozen=function(e){return e<this.frozen},Object.defineProperty(n.prototype,"minSize",{get:function(){return this._szMin},set:function(t){t!=this._szMin&&(this._szMin=e.asNumber(t,!0,!0),this._dirty=!0,this._g.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"maxSize",{get:function(){return this._szMax},set:function(t){t!=this._szMax&&(this._szMax=e.asNumber(t,!0,!0),this._dirty=!0,this._g.invalidate())},enumerable:!0,configurable:!0}),n.prototype.getTotalSize=function(){return this._dirty&&this._update(),this._szTot},Object.defineProperty(n.prototype,"visibleLength",{get:function(){return this._dirty&&this._update(),this._vlen},enumerable:!0,configurable:!0}),n.prototype.getItemAt=function(e){if(this._dirty&&this._update(),e<=0&&this.length>0&&this[0].renderSize)return 0;for(var t,i,o=this.length,n=0,r=o-1;n<=r;)if((i=this[t=n+r>>>1])._pos>=e&&t>0)r=t-1;else{if(!(i._pos+i.renderSize<=e&&t<o-1)){for(;t>0&&!this[t].renderSize;)t--;for(;t<o-1&&!this[t].renderSize;)t++;return t}n=t+1}return r},n.prototype.getNextCell=function(e,i,o){void 0===o&&(o=0);var n,r=t.SelMove;switch(i){case r.Next:case r.NextCell:for(n=e+1;n<this.length;n++)if(this[n].renderSize>0)return n;break;case r.NextEditableCell:for(n=e+1;n<this.length;n++)if(this[n].renderSize>0&&!this[n].isReadOnly)return n;break;case r.Prev:case r.PrevCell:for(n=e-1;n>=0;n--)if(this[n].renderSize>0)return n;break;case r.PrevEditableCell:for(n=e-1;n>=0;n--)if(this[n].renderSize>0&&!this[n].isReadOnly)return n;break;case r.End:for(n=this.length-1;n>=0;n--)if(this[n].renderSize>0)return n;break;case r.Home:for(n=0;n<this.length;n++)if(this[n].renderSize>0)return n;break;case r.NextPage:return(n=this.getItemAt(this[e].pos+this[e].renderSize+o))<0?this.getNextCell(e,t.SelMove.End,o):n==e&&n<this.length-1&&this[n+1].renderSize?n+1:n;case r.PrevPage:return(n=this.getItemAt(this[e].pos-o))<0?this.getNextCell(e,t.SelMove.Home,o):n==e&&n>0&&this[n-1].renderSize?n-1:n}return e},n.prototype.canMoveElement=function(e,i,o){if(void 0===o&&(o=!0),i==e)return!1;if(e<0||e>=this.length||i>=this.length)return!1;if(o){i<0&&(i=this.length-1);for(var n=Math.min(e,i),r=Math.max(e,i),l=n;l<=r;l++)if(!this[l].allowDragging)return!1}return!(this[i]instanceof t._NewRowTemplate)},n.prototype.moveElement=function(e,t,i){if(void 0===i&&(i=!0),this.canMoveElement(e,t,i)){var o=this[e];if(this.removeAt(e),t<0&&(t=this.length),this.insert(t,o),i){var n=this.frozen;e<n&&t>=n?this.frozen--:e>=n&&t<n&&this.frozen++}return!0}return!1},n.prototype.onCollectionChanged=function(t){void 0===t&&(t=e.collections.NotifyCollectionChangedEventArgs.reset),this._dirty=!0,this._g.invalidate(),i.prototype.onCollectionChanged.call(this,t)},n.prototype.push=function(e){return e._setList(this),i.prototype.push.call(this,e)},n.prototype.splice=function(e,t){for(var n=this,r=[],l=2;l<arguments.length;l++)r[l-2]=arguments[l];for(var s=e;s<e+t&&s<this.length;s++){var a=this[s];a instanceof o&&a._setList(null)}return r.forEach(function(e){return e._setList(n)}),i.prototype.splice.apply(this,[e,t].concat(r))},n.prototype.beginUpdate=function(){this._update(),i.prototype.beginUpdate.call(this)},n.prototype._setDefaultSize=function(e){this._szCustom||(this.defaultSize=e,this._szCustom=!1)},n.prototype._update=function(){if(this._dirty&&!this.isUpdating){this._dirty=!1,this._lastFrozen=-1,this._firstVisible=-1;for(var e=0,t=0,i=void 0,o=void 0,n=0;n<this.length;n++)(o=this[n])._idx=n,o._idxVis=e,o._pos=t,o._setList(this),(i=o.renderSize)>0&&(t+=i,e++,n<this._frozen&&(this._lastFrozen=n)),this._firstVisible<0&&o.visible&&(this._firstVisible=n);return this._vlen=e,this._szTot=t,!0}return!1},n}(e.collections.ObservableArray);t.RowColCollection=s;var a=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return __extends(i,t),i.prototype.getColumn=function(t){var i=e.isNumber(t)?t:this.indexOf(t);return i>-1?this[i]:null},i.prototype.indexOf=function(e){if(e instanceof n)return t.prototype.indexOf.call(this,e);for(var i=0;i<this.length;i++)if(this[i].name==e)return i;for(i=0;i<this.length;i++)if(this[i].binding==e)return i;return-1},Object.defineProperty(i.prototype,"describedById",{get:function(){return this._descById},set:function(t){t!=this._descById&&(this._descById=e.asString(t),this._g&&this._g.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"firstVisibleIndex",{get:function(){return this._dirty&&this._update(),this._firstVisible},enumerable:!0,configurable:!0}),i.prototype._updateStarSizes=function(e){var t,i=!1,o=0;e-=.5;for(var r=0;r<this.length;r++){(s=this[r]).isVisible&&(s._szStar?(o+=n._parseStarSize(s._szStar),t=s):e-=s.renderWidth)}if(t){var l=e;for(r=0;r<this.length;r++){var s;if((s=this[r]).isVisible&&s._szStar){var a=s._sz;s==t&&l>0?a=l:l-=a=Math.max(0,Math.round(n._parseStarSize(s._szStar)/o*e)),a!=s._sz&&(s._sz=a,i=!0)}}return i&&(this._dirty=!0,this._update()),i}return!1},i}(s);t.ColumnCollection=a;var c=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e._maxLevel=-1,e}return __extends(i,t),Object.defineProperty(i.prototype,"ariaLabel",{get:function(){return this._ariaLabel},set:function(t){t!=this.ariaLabel&&(this._ariaLabel=e.asString(t),this._g&&this._g.refresh())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"maxGroupLevel",{get:function(){return this._dirty&&this._update(),this._maxLevel},enumerable:!0,configurable:!0}),i.prototype._update=function(){var e=this;if(t.prototype._update.call(this)){var i=this.grid?this.grid.collectionView:null,o=i?i.items:null,n=0;return this._maxLevel=-1,this.forEach(function(t){t instanceof l&&t.level>e._maxLevel&&(e._maxLevel=t.level),t._idxData=-1;var i=t.dataItem;i&&o&&(t._idxData=i===o[n]?n:i===o[n+1]?++n:-1)}),!0}return!1},i}(s);t.RowCollection=c}(e.grid||(e.grid={}))}(wijmo||(wijmo={})),function(e){!function(t){var i=function(){function i(e){this._updatingCollection=0,this._initialized=!1,this._grid=e,this._initializeColumnGroups(),this._initialized=!0}return Object.defineProperty(i.prototype,"columnGroups",{get:function(){return this._colGroups},enumerable:!0,configurable:!0}),i.prototype.createColumnGroups=function(e){this._initialized=!1,this._createColumnGroups(e),this._initialized=!0},i.prototype.hasColumnGroups=function(){return null!=this._colGroups&&this._colGroups.length>0},i.prototype.getGroupDefinitions=function(){return this._groupDefs},i.prototype.getColumnGroup=function(e,t){return this._getColumnGroup(e,t)},i.prototype.canMoveColumnGroup=function(e,t,i,o){if(e==i&&t==o)return!1;var n=this._grid,r=n.columnHeaders.rows,l=n.columns;if(e<0||e>=r.length||t<0||t>=l.length||i<0||i>=r.length||o<0||o>=l.length)return!1;var s=this._getColumnGroup(e,t),a=this._getColumnGroup(i,o);if(!s||!a||s==a)return!1;if(s.level<a.level&&s._containsGroup(a))return!1;var c=s.parentGroup,u=a.parentGroup;return!c||c===u||!c._isCollapseTo(s)},i.prototype.moveColumnGroup=function(e,t,i,o,n){if(this.canMoveColumnGroup(e,t,i,o)){var r=this._getColumnGroup(e,t),l=this._getColumnGroup(i,o);if(!r||!l||r==l)return!1;if(n&&!l.isEmpty)return!1;var s=this._getCollection(r),a=n?l.columns:this._getCollection(l);if(!s||!a)return!1;var c=n?0:a.indexOf(l);return!(c<0)&&(!n&&s!=a&&o>t&&c++,this._deferCollectionUpdate(function(){if(!s.remove(r))return!1;a.insert(c,r)}),!0)}return!1},i.prototype.handleCollectionChange=function(){this._initialized&&!this._updatingCollection&&(this._initialized=!1,this._buildColumnGroups(),this._initialized=!0)},i.prototype.handlePropertyChange=function(e){if(e&&this._initialized){var t=this._grid,i=e._rng,o=e.header;if(o!=e._curr_header)for(var n=i.topRow;n<=i.bottomRow;n++)for(var r=i.leftCol;r<=i.rightCol;r++)t.columnHeaders.setCellData(n,r,o),e._curr_header=o;e.columns.length>0&&t.invalidate()}},i.prototype._initializeColumnGroups=function(){var e=this._grid,t=new n;this._groupDefs=t,this._colGroups=t,this._colGroups._setOwner(e),this._colGroups._setChangeHandler(this)},i.prototype._createColumnGroups=function(t){this._grid;this._groupDefs=e.asArray(t),this._colGroups&&this._colGroups._setOwner(null),this._colGroups=n._parse(t),this._buildColumnGroups()},i.prototype._buildColumnGroups=function(){var i=this,o=this._grid;this._colGroups._removeChangeHandler(),this._assertColumnGroups(this._colGroups),o.autoGenerateColumns=!1,o.columns.clear(),this._colGroups._setOwner(o),this._colGroups.forEach(function(e){e._beginBuild()});var n=0;this._colGroups.forEach(function(e){i._addColumnGroup(e),n=Math.max(n,e._getMaxLevel())}),this._colGroups.forEach(function(e){e._expandRange(n)});var r=o.columnHeaders.rows;r.clear();for(var l=0;l<=n;l++){var s=new t.Row;r.splice(l,0,s),l<n&&(s.cssClassAll="wj-colgroup")}for(l=0;l<r.length;l++)for(var a=0;a<o.columns.length;a++){var c=this._getColumnGroup(l,a);if(c){var u=c.header||e.toHeaderCase(c.binding);o.columnHeaders.setCellData(l,a,u),c._curr_header=c.header}}this._colGroups._setChangeHandler(this),this._colGroups.forEach(function(e){e._checkIfCollapsed()})},i.prototype._getColumnGroup=function(e,t){var i=this._grid;if(e<i.columnHeaders.rows.length&&t<i.columns.length)for(var o=this._colGroups;o;){for(var n=o,r=0;r<o.length;r++){var l=o[r],s=l._rng;if(s.containsColumn(t)){if(s.containsRow(e)||0==l.columns.length)return l;o=l.columns;break}}if(o==n)break}return null},i.prototype._getCollection=function(e){var t=e.parentGroup;return t?t.columns:this._colGroups},i.prototype._assertColumnGroups=function(t){var i=this;e.assert(t instanceof n,"column groups contain items of invalid collection type"),t.forEach(function(t){e.assert(t instanceof o,"column groups contain items of invalid type"),i._assertColumnGroups(t.columns)})},i.prototype._addColumnGroup=function(e){var t=this,i=this._grid;e._rng.col=i.columns.length,0==e.columns.length?i.columns.push(e):e.columns.forEach(function(e){t._addColumnGroup(e)}),e._rng.col2=i.columns.length-1},i.prototype._beginCollectionUpdate=function(){this._updatingCollection++},i.prototype._endCollectionUpdate=function(){this._updatingCollection--,this._updatingCollection<=0&&this.handleCollectionChange()},i.prototype._deferCollectionUpdate=function(e){try{this._beginCollectionUpdate(),e()}finally{this._endCollectionUpdate()}},i}();t._ColumnGroupHandler=i;var o=function(i){function o(o,r){var l=i.call(this)||this;l._rng=new t.CellRange(0,-1),l._lvl=0,l._collapsed=!1,l._cols=new n,e.copy(l,o);var s=r&&r.columns;return s&&s.indexOf(l)<0&&s.push(l),l}return __extends(o,i),o.prototype._copy=function(t,i){if("columns"==t){var o=e.asArray(i);return this._cols=n._parse(o),!0}return!1},Object.defineProperty(o.prototype,"columns",{get:function(){return this._cols},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"columnGroups",{get:function(){return this._cols},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"isEmpty",{get:function(){return 0===this._cols.length},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"parentGroup",{get:function(){var e=this._ownerList,t=e&&e.owner;return t instanceof o?t:null},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"level",{get:function(){for(var e=this,t=0;e.parentGroup;)e=e.parentGroup,t++;return t},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"collapseTo",{get:function(){return this._collTo},set:function(t){var i=e.asString(t);this._collTo!=i&&(this._collTo=i,this._updateCollapsedState())},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"isCollapsed",{get:function(){return this._collapsed},set:function(i){var o=this.grid,n=null;i!=this._collapsed&&(o?(n=new t.CellRangeEventArgs(o.columnHeaders,this._rng,this),o.onColumnGroupCollapsedChanging(n)?this._collapsed=e.asBoolean(i):n=null):this._collapsed=e.asBoolean(i)),this._updateCollapsedState(),o&&n&&o.onColumnGroupCollapsedChanged(n)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"grid",{get:function(){var e=this._ownerList,i=e&&e.owner;return i instanceof o?i.grid:i instanceof t.FlexGrid?i:null},enumerable:!0,configurable:!0}),o.prototype._beginBuild=function(){this._lvl=0;for(var e=this.parentGroup;e;e=e.parentGroup)this._lvl++;this._rng=new t.CellRange(0,-1),this._rng.row=this._rng.row2=this._lvl,this._cols.forEach(function(e){e._beginBuild()})},o.prototype._setChangeHandler=function(e){this._changeHdl=e,this._cols._setChangeHandler(e)},o.prototype._removeChangeHandler=function(){this._changeHdl=null,this._cols._removeChangeHandler()},o.prototype._setOwnerList=function(e){e!=this._ownerList&&(this._ownerList=e)},o.prototype._checkIfCollapsed=function(){var e=this.grid;(e?e.columns:null)&&(this._collapsed?this._updateCollapsedState():this._cols.forEach(function(e){e._checkIfCollapsed()}))},o.prototype._updateCollapsedState=function(){var e=this.grid,i=e?e.columns:null,n=this._rng,r=this._collapsed;if(i){this._cols.forEach(function(e){e instanceof o&&(e._collapsed=r,e._updateCollapsedState())});var l=n.rightCol;if(this.collapseTo)switch(this.collapseTo){case"$first":l=n.leftCol;break;case"$last":l=n.rightCol;break;default:var s=i.getColumn(this.collapseTo),a=i.indexOf(s);s&&n.containsColumn(a)&&(l=a)}for(var c=n.leftCol;c<=n.rightCol;c++){var u=!r||c==l;i[c]._setFlag(t.RowColFlags.ParentCollapsed,!u)}}},o.prototype._getMaxLevel=function(){var e=this._lvl;return this.columns.forEach(function(t){e=Math.max(e,t._getMaxLevel())}),e},o.prototype._expandRange=function(e){var t=e-this._getMaxLevel();t>0&&(this._rng.row2+=t,this._cols.forEach(function(e){e._shiftRange(t)}));for(var i=this.grid.columns,o=this._rng,n=o.col;n<=o.col2;n++){i[n]._rng.row2=e}},o.prototype._shiftRange=function(e){this._rng.row+=e,this._rng.row2+=e,this._cols.forEach(function(t){t._shiftRange(e)})},o.prototype._containsGroup=function(e){for(var t=0;t<this._cols.length;t++){var i=this._cols[t];if(i==e||i._containsGroup(e))return!0}return!1},o.prototype._isCollapseTo=function(e){var t=this.grid,i=t?t.columns:null;if(!e||!i)return!1;if(this.collapseTo)switch(this.collapseTo){case"$first":case"$last":return!1;default:return e===i.getColumn(this.collapseTo)}return!1},o.prototype.onPropertyChanged=function(){var e=this._changeHdl;e&&e.handlePropertyChange(this),i.prototype.onPropertyChanged.call(this)},o}(t.Column);t.ColumnGroup=o;var n=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return __extends(i,t),i.prototype.getColumn=function(t){return e.isNumber(t)?this._getColByIdx(t):this._findColByProp("name",t)||this._findColByProp("binding",t)},Object.defineProperty(i.prototype,"owner",{get:function(){return this._owner},enumerable:!0,configurable:!0}),i.prototype.push=function(e){return e._setOwnerList(this),t.prototype.push.call(this,e)},i.prototype.splice=function(e,i){for(var n=this,r=[],l=2;l<arguments.length;l++)r[l-2]=arguments[l];for(var s=e;s<e+i&&s<this.length;s++){var a=this[s];a instanceof o&&a._setOwnerList(null)}return r.forEach(function(e){return e._setOwnerList(n)}),t.prototype.splice.apply(this,[e,i].concat(r))},i._parse=function(e){var t=null;return e?e instanceof i?t=e:(t=new i,e.forEach(function(e){var i=e instanceof o?e:new o(e);t.indexOf(i)<0&&t.push(i)})):t=new i,t},i.prototype._setChangeHandler=function(e){this._changeHdl=e,this.forEach(function(t){return t._setChangeHandler(e)})},i.prototype._removeChangeHandler=function(){this._changeHdl=null,this.forEach(function(e){return e._removeChangeHandler()})},i.prototype._setOwner=function(e){this._owner=e,this.forEach(function(e){return e.columns._setOwner(e)})},i.prototype._getColByIdx=function(e){return e>-1&&e<this.length?this[e]:null},i.prototype._findColByProp=function(e,t){for(var i=0;i<this.length;i++){var o=this[i];if(o[e]===t)return o;if(null!==(o=o.columns._findColByProp(e,t)))return o}return null},i.prototype.onCollectionChanged=function(i){void 0===i&&(i=e.collections.NotifyCollectionChangedEventArgs.reset);var o=this._changeHdl;o&&o.handleCollectionChange(),t.prototype.onCollectionChanged.call(this,i)},i}(e.collections.ObservableArray);t.ColumnGroupCollection=n}(e.grid||(e.grid={}))}(wijmo||(wijmo={})),function(e){!function(t){"use strict";var i,o,n,r,l;e._addCultureInfo("FlexGrid",{groupHeaderFormat:"{name}: <b>{value}</b> ({count:n0} items)",ariaLabels:{toggleDropDown:"Toggle Dropdown",toggleGroup:"Toggle Group"}}),function(e){e[e.None=0]="None",e[e.SingleColumn=1]="SingleColumn",e[e.MultiColumn=2]="MultiColumn"}(o=t.AllowSorting||(t.AllowSorting={})),function(e){e[e.None=0]="None",e[e.SingleColumn=1]="SingleColumn",e[e.ColumnRange=2]="ColumnRange",e[e.Both=3]="Both"}(n=t.AllowPinning||(t.AllowPinning={})),function(e){e[e.None=0]="None",e[e.Column=1]="Column",e[e.Row=2]="Row",e[e.All=3]="All"}(r=t.HeadersVisibility||(t.HeadersVisibility={})),function(e){e[e.Default=0]="Default",e[e.CSV=1]="CSV",e[e.QuoteAll=2]="QuoteAll",e[e.SkipMerged=4]="SkipMerged",e[e.Unformatted=8]="Unformatted",e[e.InvisibleRows=16]="InvisibleRows",e[e.InvisibleColumns=32]="InvisibleColumns",e[e.InvisibleCells=48]="InvisibleCells"}(l=t.ClipStringOptions||(t.ClipStringOptions={}));var s=function(s){function a(i,l){var a=s.call(this,i,null,!0)||this;a._activeCell=null,a._szClient=new e.Size(0,0),a._szClientSB=new e.Size(0,0),a._offsetY=0,a._cssPage=0,a._ptScrl=new e.Point(0,0),a._cellPadLeft=3,a._cellPadHorz=3,a._cellPadVert=0,a._clipToScreen=!1,a._autoGenCols=!0,a._autoClipboard=!0,a._xOnCopyPaste=!0,a._autoScroll=!0,a._autoSearch=!1,a._caseSensitive=!1,a._readOnly=!1,a._indent=14,a._autoSizeMode=t.AutoSizeMode.Both,a._autoHeights=!1,a._quickSize=null,a._hdrVis=r.All,a._alSorting=o.SingleColumn,a._alPinning=n.None,a._alAddNew=!1,a._alDelete=!1,a._alResizing=t.AllowResizing.Columns,a._alDragging=t.AllowDragging.Columns,a._alMerging=t.AllowMerging.None,a._ssHdr=r.None,a._shSort=!0,a._shGroups=!0,a._shMarquee=!1,a._shPlcHld=!1,a._altStep=1,a._shErr=!0,a._shDropDown=!0,a._valEdt=!0,a._gHdrFmt=null,a._childItemsPath=null,a._sortRowIndex=null,a._editColIndex=null,a._deferResizing=!1,a._pSel=!0,a._pOutline=!0,a._stickyHdr=!1,a._anchorCursor=!1,a._copyHeaders=r.None,a._bigChecks=!1,a._fzClone=null,a._vt=0,a._vtRows=0,a._vtCols=0,a._lazyRender=!0,a._refreshOnEdit=!0,a._reorderCells=!0,a._touchEdit=!1,a.itemsSourceChanging=new e.Event,a.itemsSourceChanged=new e.Event,a.scrollPositionChanged=new e.Event,a.selectionChanging=new e.Event,a.selectionChanged=new e.Event,a.loadingRows=new e.Event,a.loadedRows=new e.Event,a.updatingLayout=new e.Event,a.updatedLayout=new e.Event,a.resizingColumn=new e.Event,a.resizedColumn=new e.Event,a.autoSizingColumn=new e.Event,a.autoSizedColumn=new e.Event,a.starSizedColumns=new e.Event,a.draggingColumn=new e.Event,a.draggingColumnOver=new e.Event,a.draggedColumn=new e.Event,a.pinningColumn=new e.Event,a.pinnedColumn=new e.Event,a.resizingRow=new e.Event,a.resizedRow=new e.Event,a.autoSizingRow=new e.Event,a.autoSizedRow=new e.Event,a.draggingRow=new e.Event,a.draggingRowOver=new e.Event,a.draggedRow=new e.Event,a.groupCollapsedChanging=new e.Event,a.groupCollapsedChanged=new e.Event,a.columnGroupCollapsedChanging=new e.Event,a.columnGroupCollapsedChanged=new e.Event,a.sortingColumn=new e.Event,a.sortedColumn=new e.Event,a.beginningEdit=new e.Event,a.prepareCellForEdit=new e.Event,a.cellEditEnding=new e.Event,a.cellEditEnded=new e.Event,a.rowEditStarting=new e.Event,a.rowEditStarted=new e.Event,a.rowEditEnding=new e.Event,a.rowEditEnded=new e.Event,a.rowAdded=new e.Event,a.deletingRow=new e.Event,a.deletedRow=new e.Event,a.copying=new e.Event,a.copied=new e.Event,a.pasting=new e.Event,a.pasted=new e.Event,a.pastingCell=new e.Event,a.pastedCell=new e.Event,a.formatItem=new e.Event(function(){a._clearCells()}),a.updatingView=new e.Event,a.updatedView=new e.Event,a._mappedColumns=null;var c=a.hostElement;e.isIE()&&(c.style.borderRadius="0");var u=a.getTemplate();a.applyTemplate("wj-control wj-content wj-flexgrid",u,{_root:"root",_eSz:"sz",_eCt:"cells",_fCt:"fcells",_eTL:"tl",_eBL:"bl",_eCHdr:"ch",_eRHdr:"rh",_eCFtr:"cf",_eTLCt:"tlcells",_eBLCt:"blcells",_eCHdrCt:"chcells",_eCFtrCt:"cfcells",_eRHdrCt:"rhcells",_eMarquee:"marquee",_eFocus:"focus"}),e.setCss(a._root.parentElement,{position:"relative",left:"0",top:"0",width:"100%",height:"100%",overflow:"hidden",minWidth:"inherit",minHeight:"inherit",maxWidth:"inherit",maxHeight:"inherit"}),e.setCss(a._root,{position:"absolute",left:"0",top:"0",width:"100%",height:"100%",minWidth:"inherit",minHeight:"inherit",maxWidth:"inherit",maxHeight:"inherit",overflow:"auto",webkitOverflowScrolling:"touch"}),e.setCss(a._eCt,{position:"absolute"}),e.setCss(a._eMarquee,{display:"none"}),e.setCss(a._eMarquee.firstChild,{width:"100%",height:"100%"}),e.setCss(a._fCt,{position:"absolute",left:"0",top:"0",overflow:"hidden",pointerEvents:"none"}),e.setCss(a._eFocus,{position:"fixed",left:"-32000px"}),e.setCss(a._eSz,{position:"relative",visibility:"hidden"});if([a._eRHdr,a._eCFtr,a._eCHdr,a._eBL,a._eTL].forEach(function(t){e.setAttribute(t,"aria-hidden",!0),e.setCss(t,{position:"absolute",overflow:"hidden",outline:"none"}),e.setCss(t.firstElementChild,{position:"relative"})}),[a._eFocus,a._eMarquee,a._fCt,a._eSz].forEach(function(t){e.setAttribute(t,"aria-hidden",!0)}),e.isIE9()||e.isIE10()){var h=a._eMarquee;["click","dblclick","mousedown","mouseup"].forEach(function(e){a.addEventListener(h,e,function(t){var i=h.style.display;h.style.display="none";var o=document.elementFromPoint(t.clientX,t.clientY);h.style.display=i;var n=document.createEvent("Event");for(var r in n.initEvent(e,!0,!0),t)try{n[r]=t[r]}catch(e){}o.dispatchEvent(n)})})}return c.tabIndex=-1,a.deferUpdate(function(){var i=a._getDefaultRowHeight();a._rows=new t.RowCollection(a,i),a._cols=new t.ColumnCollection(a,4*i),a._hdrRows=new t.RowCollection(a,i),a._hdrCols=new t.ColumnCollection(a,Math.round(1.25*i)),a._ftrRows=new t.RowCollection(a,i);var o=t.CellType;a._gpTL=new t.GridPanel(a,o.TopLeft,a._hdrRows,a._hdrCols,a._eTLCt),a._gpCHdr=new t.GridPanel(a,o.ColumnHeader,a._hdrRows,a._cols,a._eCHdrCt),a._gpRHdr=new t.GridPanel(a,o.RowHeader,a._rows,a._hdrCols,a._eRHdrCt),a._gpCells=new t.GridPanel(a,o.Cell,a._rows,a._cols,a._eCt),a._gpBL=new t.GridPanel(a,o.BottomLeft,a._ftrRows,a._hdrCols,a._eBLCt),a._gpCFtr=new t.GridPanel(a,o.ColumnFooter,a._ftrRows,a._cols,a._eCFtrCt),a._hdrRows.push(new t.Row),a._hdrCols.push(new t.Column({align:"center"})),a._cf=new t.CellFactory,a._keyHdl=new t._KeyboardHandler(a),a._mouseHdl=new t._MouseHandler(a),a._edtHdl=new t._EditHandler(a),a._selHdl=a._createSelHdl(),a._addHdl=new t._AddNewHandler(a),a._grpHdl=new t._ColumnGroupHandler(a),a._mrgMgr=new t.MergeManager,a._bndSortConverter=a._sortConverter.bind(a),a._errorTip=new e.Tooltip({isContentHtml:!1,showDelay:0,cssClass:"wj-error-tip"}),e.setAttribute(a.cells.hostElement,"role","grid"),a.selectionMode=t.SelectionMode.CellRange,a._root.tabIndex=-1,a.initialize(l)}),a.addEventListener(a._root,"scroll",function(e){if(a._updateScrollPosition()||a._forceScrollUpdate){var t=a.activeEditor,i=a.activeCell,o=i?i.className:null;a._forceScrollUpdate||a.finishEditing(),a._forceScrollUpdate=!1,a._updateContent(!0);var n=a.activeEditor,r=a.activeCell;n&&r&&t&&o?(n.value=t.value,r.className=o,a._setFocusNoScroll(n)):n&&!r&&a.finishEditing(!0),a.frozenColumns&&setTimeout(function(){var e=a.columnHeaders.hostElement.style,t=parseInt(e.left),i=a._ptScrl.x;Math.abs(t-i)>1&&a.invalidate()})}}),a.addEventListener(c,"focus",function(e){if(c.tabIndex>-1){var t=e.target;t instanceof HTMLElement&&t.tabIndex<0&&a._setFocus(!0)}},!0),a}return __extends(a,s),a.prototype._handleResize=function(){var e=this;this._rcBounds=null,this.activeEditor&&this.isTouching||this._touchEdit?setTimeout(function(){e.activeEditor||(e._touchEdit=!0,e.startEditing(!0))},50):s.prototype._handleResize.call(this),this._touchEdit=!1},Object.defineProperty(a.prototype,"headersVisibility",{get:function(){return this._hdrVis},set:function(t){(t=e.asEnum(t,r))!=this._hdrVis&&(this._hdrVis=t,this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"stickyHeaders",{get:function(){return this._stickyHdr},set:function(t){t!=this._stickyHdr&&(this._stickyHdr=e.asBoolean(t),this._updateStickyHeaders(),this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"preserveSelectedState",{get:function(){return this._pSel},set:function(t){this._pSel=e.asBoolean(t)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"preserveOutlineState",{get:function(){return this._pOutline},set:function(t){this._pOutline=e.asBoolean(t)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"anchorCursor",{get:function(){return this._anchorCursor},set:function(t){this._anchorCursor=e.asBoolean(t)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"copyHeaders",{get:function(){return this._copyHeaders},set:function(t){this._copyHeaders=e.asEnum(t,r)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"lazyRender",{get:function(){return this._lazyRender},set:function(t){this._lazyRender=e.asBoolean(t)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"refreshOnEdit",{get:function(){return this._refreshOnEdit},set:function(t){this._refreshOnEdit=e.asBoolean(t)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"virtualizationThreshold",{get:function(){return this._vt},set:function(t){this._vt=t,e.isNumber(t)?this._vtRows=this._vtCols=e.asNumber(t):t?e.isArray(t)&&2==t.length?(this._vtRows=e.asNumber(t[0]),this._vtCols=e.asNumber(t[1])):e.assert(!1,"virtualizationThreshold should be a number or an array with two numbers."):this._vtRows=this._vtCols=0},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"autoGenerateColumns",{get:function(){return this._autoGenCols},set:function(t){this._autoGenCols=e.asBoolean(t)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"autoClipboard",{get:function(){return this._autoClipboard},set:function(t){this._autoClipboard=e.asBoolean(t)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"expandSelectionOnCopyPaste",{get:function(){return this._xOnCopyPaste},set:function(t){this._xOnCopyPaste=e.asBoolean(t)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"autoScroll",{get:function(){return this._autoScroll},set:function(t){this._autoScroll=e.asBoolean(t)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"autoSearch",{get:function(){return this._autoSearch},set:function(t){this._autoSearch=e.asBoolean(t)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"caseSensitiveSearch",{get:function(){return this._caseSensitive},set:function(t){this._caseSensitive=e.asBoolean(t)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"columnLayout",{get:function(){var i,o=this._hasColumnGroups(),n=o?t.ColumnGroup:t.Column,r=o?"columnGroups":"columns",l=a._getSerializableProperties(n),s=new n,c=o?this.getColumnGroups():this.columns,u=function(t){var i=[];return t.forEach(function(t){var n={};if(l.forEach(function(i){var o=t[i];o!=s[i]&&e.isPrimitive(o)&&"size"!=i&&(n[i]=o)}),o){var r=t.columns;r.length&&(n.columns=u(r))}i.push(n)}),i},h=u(c);return JSON.stringify(((i={})[r]=h,i))},set:function(i){var o=this,n=JSON.parse(e.asString(i));e.assert(n,"Invalid columnLayout data."),this.columns.deferUpdate(function(){o.columns.clear(),o._hasColumnGroups()&&(o.columnGroups=new t.ColumnGroupCollection),o.initialize(n)})},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"columnGroups",{get:function(){return this._grpHdl.getGroupDefinitions()},set:function(t){this.columns.clear(),this._grpHdl.createColumnGroups(e.asArray(t))},enumerable:!0,configurable:!0}),a.prototype.getColumnGroups=function(){return this._grpHdl.columnGroups},Object.defineProperty(a.prototype,"isReadOnly",{get:function(){return this._readOnly},set:function(t){t!=this._readOnly&&(this._readOnly=e.asBoolean(t),this.finishEditing(),this.invalidate(!0),this._addHdl.updateNewRowTemplate(),e.toggleClass(this.hostElement,"wj-state-readonly",this.isReadOnly),this._setAria("readonly",this.isReadOnly?"true":null))},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"bigCheckboxes",{get:function(){return this._bigChecks},set:function(t){this._bigChecks=e.asBoolean(t)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"isDisabled",{get:function(){return this._e&&null!=this._e.getAttribute("disabled")},set:function(t){if((t=e.asBoolean(t,!0))!=this.isDisabled){var i=this._e;i&&(e.enable(i,!t),this._updateTabIndex(),this.invalidate())}},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"imeEnabled",{get:function(){return null!=this._imeHdl},set:function(i){if(e.asBoolean(i)!=this.imeEnabled&&this.finishEditing()){var o=this.containsFocus();this._imeHdl&&(this._imeHdl.dispose(),this._imeHdl=null),i&&(this._imeHdl=new t._ImeHandler(this)),o&&this.focus()}},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"allowResizing",{get:function(){return this._alResizing},set:function(i){this._alResizing=e.asEnum(i,t.AllowResizing)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"deferResizing",{get:function(){return this._deferResizing},set:function(t){this._deferResizing=e.asBoolean(t)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"autoSizeMode",{get:function(){return this._autoSizeMode},set:function(i){this._autoSizeMode=e.asEnum(i,t.AutoSizeMode)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"autoRowHeights",{get:function(){return this._autoHeights},set:function(t){this._autoHeights=e.asBoolean(t)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"quickAutoSize",{get:function(){return this._quickSize},set:function(t){this._quickSize=e.asBoolean(t,!0)},enumerable:!0,configurable:!0}),a.prototype._getQuickAutoSize=function(){return e.isBoolean(this._quickSize)?this._quickSize:!this.formatItem.hasHandlers&&null==this.itemFormatter},Object.defineProperty(a.prototype,"allowSorting",{get:function(){return this._alSorting},set:function(t){e.isBoolean(t)&&(t=t?o.SingleColumn:o.None),this._alSorting=e.asEnum(t,o)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"allowPinning",{get:function(){return this._alPinning},set:function(t){t!=this._alPinning&&(e.isBoolean(t)&&(t=t?n.SingleColumn:n.None),this._alPinning=e.asEnum(t,n),this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"allowAddNew",{get:function(){return this._alAddNew},set:function(t){t!=this._alAddNew&&(this._alAddNew=e.asBoolean(t),this._addHdl.updateNewRowTemplate())},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"newRowAtTop",{get:function(){return this._addHdl.newRowAtTop},set:function(t){this._addHdl.newRowAtTop=e.asBoolean(t)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"allowDelete",{get:function(){return this._alDelete},set:function(t){t!=this._alDelete&&(this._alDelete=e.asBoolean(t))},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"allowMerging",{get:function(){return this._alMerging},set:function(i){(i=e.asEnum(i,t.AllowMerging))!=this._alMerging&&(this._alMerging=i,this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"showSelectedHeaders",{get:function(){return this._ssHdr},set:function(t){(t=e.asEnum(t,r))!=this._ssHdr&&(this._ssHdr=t,this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"showMarquee",{get:function(){return this._shMarquee},set:function(t){t!=this._shMarquee&&(this._shMarquee=e.asBoolean(t),this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"showPlaceholders",{get:function(){return this._shPlcHld},set:function(t){this._shPlcHld=e.asBoolean(t)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"showSort",{get:function(){return this._shSort},set:function(t){t!=this._shSort&&(this._shSort=e.asBoolean(t),this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"showGroups",{get:function(){return this._shGroups},set:function(t){t!=this._shGroups&&(this._shGroups=e.asBoolean(t),this._bindGrid(!1))},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"alternatingRowStep",{get:function(){return this._altStep},set:function(t){t!=this._altStep&&(this._altStep=e.asInt(t,!1,!0),this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"showAlternatingRows",{get:function(){return this._altStep>0},set:function(t){e._deprecated("showAlternatingRows","alternatingRowStep"),this.alternatingRowStep=t?1:0},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"showErrors",{get:function(){return this._shErr},set:function(t){t!=this._shErr&&(this._clearCells(),this._shErr=e.asBoolean(t))},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"errorTip",{get:function(){return this._errorTip},set:function(t){t!=this._errorTip&&(this._clearCells(),this._errorTip=e.asType(t,e.Tooltip,!0))},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"itemValidator",{get:function(){return this._itemValidator},set:function(t){t!=this.itemValidator&&(this._itemValidator=e.asFunction(t),this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"validateEdits",{get:function(){return this._valEdt},set:function(t){this._valEdt=e.asBoolean(t)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"groupHeaderFormat",{get:function(){return this._gHdrFmt},set:function(t){t!=this._gHdrFmt&&(this._gHdrFmt=e.asString(t),this._bindGrid(!1))},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"allowDragging",{get:function(){return this._alDragging},set:function(i){(i=e.asEnum(i,t.AllowDragging))!=this._alDragging&&(this._alDragging=i,this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"itemsSource",{get:function(){return this._items},set:function(t){var i=this;if(t!=this._items){var o=new e.CancelEventArgs;if(this.onItemsSourceChanging(o)){var n;if(this._cv)(n=this._cv).currentChanged.removeHandler(null,this),n.collectionChanged.removeHandler(null,this),n instanceof e.collections.CollectionView&&n.sortConverter==this._bndSortConverter&&(n.sortConverter=null),this._cv=null;if(this._items=t,this._cv=this._getCollectionView(t),this._lastCount=0,this._cv)(n=this._cv).currentChanged.addHandler(function(e,t){return i._cvCurrentChanged(e,t)},this),n.collectionChanged.addHandler(function(e,t){return i._cvCollectionChanged(e,t)},this),n instanceof e.collections.CollectionView&&!n.sortConverter&&(n.sortConverter=this._bndSortConverter);this._bindGrid(!0),this.onItemsSourceChanged(o)}}},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"collectionView",{get:function(){return this._cv},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"editableCollectionView",{get:function(){return e.tryCast(this._cv,"IEditableCollectionView")},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"childItemsPath",{get:function(){return this._childItemsPath},set:function(t){t!=this._childItemsPath&&(e.assert(null==t||e.isArray(t)||e.isString(t),"childItemsPath should be an array or a string."),this._childItemsPath=t,this._bindGrid(!0))},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"rowHeaderPath",{get:function(){return this._rowHdrPath?this._rowHdrPath.path:null},set:function(t){t!=this.rowHeaderPath&&(t=e.asString(t),this._rowHdrPath=t?new e.Binding(t):null,this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"cells",{get:function(){return this._gpCells},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"columnHeaders",{get:function(){return this._gpCHdr},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"columnFooters",{get:function(){return this._gpCFtr},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"rowHeaders",{get:function(){return this._gpRHdr},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"topLeftCells",{get:function(){return this._gpTL},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"bottomLeftCells",{get:function(){return this._gpBL},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"rows",{get:function(){return this._rows},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"columns",{get:function(){return this._cols},enumerable:!0,configurable:!0}),a.prototype.getColumn=function(e,t){if(this._hasColumnGroups()&&t){var i=this.getColumnGroups();return null!==i?i.getColumn(e):null}return this.columns.getColumn(e)},Object.defineProperty(a.prototype,"frozenRows",{get:function(){return this.rows.frozen},set:function(e){this.rows.frozen=e},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"frozenColumns",{get:function(){return this.columns.frozen},set:function(e){this.columns.frozen=e},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"cloneFrozenCells",{get:function(){return this._fzClone},set:function(t){t!=this._fzClone&&(e.setText(this._fCt,null),this._fzClone=e.asBoolean(t,!0),this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"sortRowIndex",{get:function(){return this._sortRowIndex},set:function(t){t!=this._sortRowIndex&&(this._sortRowIndex=e.asNumber(t,!0),this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"editColumnIndex",{get:function(){return this._editColIndex},set:function(t){t!=this._editColIndex&&(this._editColIndex=e.asNumber(t,!0),this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"scrollPosition",{get:function(){return this._ptScrl.clone()},set:function(e){var t=this._root,i=-e.x;if(this.rightToLeft)switch(a._getRtlMode()){case"rev":i=t.scrollWidth-t.clientWidth+e.x;break;case"neg":i=e.x;break;default:i=-e.x}t.scrollLeft=i,t.scrollTop=-e.y,this._updateScrollPosition()&&(this._forceScrollUpdate=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"clientSize",{get:function(){return this._szClient},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"controlRect",{get:function(){return this._rcBounds||(this._rcBounds=e.getElementRect(this._root)),this._rcBounds},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"scrollSize",{get:function(){return new e.Size(this._gpCells.width,this._heightBrowser)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"viewRange",{get:function(){return this._gpCells.viewRange},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"cellFactory",{get:function(){return this._cf},set:function(i){i!=this._cf&&(this._clearCells(),this._cf=e.asType(i,t.CellFactory,!1))},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"itemFormatter",{get:function(){return this._itemFormatter},set:function(t){t!=this._itemFormatter&&(this._clearCells(),this._itemFormatter=e.asFunction(t))},enumerable:!0,configurable:!0}),a.prototype.canEditCell=function(e,t){return this._edtHdl._allowEdit(e,t)},a.prototype.getCellData=function(e,t,i){return this.cells.getCellData(e,t,i)},a.prototype.getCellBoundingRect=function(e,t,i){return this.cells.getCellBoundingRect(e,t,i)},a.prototype.setCellData=function(e,t,i,o,n){return void 0===o&&(o=!0),void 0===n&&(n=!0),this.cells.setCellData(e,t,i,o,n)},a.prototype.hitTest=function(i,o){return e.isNumber(i)&&e.isNumber(o)&&(i=new e.Point(i,o)),e.isBoolean(o)&&o&&(this._rcBounds=null),new t.HitTestInfo(this,i)},a.prototype.getClipString=function(t,i,o,n){var r;return r=null==i||e.isBoolean(i)?i?l.CSV:l.Default:i,e.assert(e.isNumber(r),"Unexpected value for ClipStringOptions parameter."),this._edtHdl.getClipString(t,r,o,n)},a.prototype.setClipString=function(e,t){this._edtHdl.setClipString(e,t)},a.prototype.focus=function(e){this._setFocus(e)},a.prototype.dispose=function(){this.finishEditing(!0),this.itemsSource=null,s.prototype.dispose.call(this)},a.prototype.refresh=function(t){void 0===t&&(t=!0),s.prototype.refresh.call(this,t),this.finishEditing(),t&&(this._updateColumnTypes(),this.scrollPosition=this._ptScrl,this._updateDefaultSizes(),clearTimeout(this._toInv),this._toInv=null),this.refreshCells(t);var i=this._e;i&&(this._szCtl=new e.Size(i.offsetWidth,i.offsetHeight))},a.prototype.refreshCells=function(e,t,i){this.isUpdating||(e?this._updateLayout():this._updateContent(t,i))},a.prototype.refreshRange=function(e){for(var i=e.topRow;i<=e.bottomRow;i++)for(var o=e.leftCol;o<=e.rightCol;o++){var n=this.cells.getCellElement(i,o);if(n){var r=n[t.GridPanel._INDEX_KEY];this.cellFactory.updateCell(this.cells,i,o,n,r.rng)}}},a.prototype.autoSizeColumn=function(e,t,i){void 0===t&&(t=!1),void 0===i&&(i=4),this.autoSizeColumns(e,e,t,i)},a.prototype.autoSizeColumns=function(i,o,n,r){var l=this;void 0===n&&(n=!1),void 0===r&&(r=4);var s=0,c=n?this.topLeftCells:this.columnHeaders,u=n?this.bottomLeftCells:this.columnFooters,h=n?this.rowHeaders:this.cells,d=this.viewRange;i=null==i?0:e.asInt(i),o=null==o?h.columns.length-1:e.asInt(o),d.row=Math.max(0,d.row-1e3),d.row2=Math.min(d.row2+1e3,this.rows.length-1),this.finishEditing()&&this.columns.deferUpdate(function(){e.setCss(l._eCt,{width:l._gpCells.width});for(var n=e.createElement("<div "+a._WJS_MEASURE+'="true"/>',h.hostElement,{visibility:"hidden"}),p=l._getCanvasContext(),g=i;g<=o&&g>-1&&g<h.columns.length;g++){var f=h.columns[g];if(f.isVisible){if(s=0,l.autoSizeMode&t.AutoSizeMode.Headers){for(var _=0;_<c.rows.length;_++)c.rows[_].isVisible&&(s=Math.max(l._getDesiredWidth(c,_,g,n),s));for(_=0;_<u.rows.length;_++)u.rows[_].isVisible&&(s=Math.max(l._getDesiredWidth(u,_,g,n),s))}if(l.autoSizeMode&t.AutoSizeMode.Cells&&d.row>-1&&d.row2>-1)if(f._getQuickAutoSize()){_=l._getWidestRow(h,d,g,p);s=Math.max(l._getDesiredWidth(h,_,g,n),s)}else for(_=d.row;_<=d.row2&&_<h.rows.length;_++)h.rows[_].isVisible&&(s=Math.max(l._getDesiredWidth(h,_,g,n),s));s>0&&(f.width=s+r+2)}}l.cellFactory.disposeCell(n),e.removeChild(n)})},a.prototype.autoSizeRow=function(e,t,i){void 0===t&&(t=!1),void 0===i&&(i=0),this.autoSizeRows(e,e,t,i)},a.prototype.autoSizeRows=function(i,o,n,r){var l=this;void 0===n&&(n=!1),void 0===r&&(r=0);var s=0,c=1==n?this.topLeftCells:null==n?this.bottomLeftCells:this.rowHeaders,u=1==n?this.columnHeaders:null==n?this.columnFooters:this.cells;if(r=e.asNumber(r),i=null==i?0:e.asInt(i),(o=null==o?u.rows.length-1:e.asInt(o))>=i&&this.finishEditing()){e.setCss(this._eCt,{width:this._gpCells.width});var h=e.createElement("<div "+a._WJS_MEASURE+'="true"/>',u.hostElement,{visibility:"hidden"});this.rows.deferUpdate(function(){for(var e={},n=l._autoSizeMode,a=t.AutoSizeMode,d=i;d<=o&&d>-1&&d<u.rows.length;d++){u.rows[d].isVisible&&(s=0,n&a.Headers&&(s=l._getDesiredRowHeight(c,d,h,e)),n&a.Cells&&(s=Math.max(l._getDesiredRowHeight(u,d,h,e),s)),s>0&&(u.rows[d].height=s+r))}}),this.cellFactory.disposeCell(h),e.removeChild(h)}},Object.defineProperty(a.prototype,"treeIndent",{get:function(){return this._indent},set:function(t){t!=this._indent&&(this._indent=e.asNumber(t,!1,!0),this.columns.onCollectionChanged())},enumerable:!0,configurable:!0}),a.prototype.collapseGroupsToLevel=function(e){var i=this;this.finishEditing()&&this.deferUpdate(function(){var o=i.rows;o.deferUpdate(function(){for(var i=0;i<o.length;i++){var n=o[i];n instanceof t.GroupRow&&(n.isCollapsed=n.level>=e)}})})},Object.defineProperty(a.prototype,"selectionMode",{get:function(){return this._selHdl.selectionMode},set:function(i){(i=e.asEnum(i,t.SelectionMode))!=this.selectionMode&&(this._selHdl.selectionMode=i)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"selection",{get:function(){return this._selHdl.selection.clone()},set:function(e){this._selHdl.selection=e},enumerable:!0,configurable:!0}),a.prototype.select=function(e,t){return void 0===t&&(t=!0),this._selHdl.select(e,t)},a.prototype.selectAll=function(){var e=this.rows.length,i=this.columns.length;return!(!e||!i)&&this.select(new t.CellRange(0,0,e-1,i-1),!1)},a.prototype.getSelectedState=function(e,t){return this.cells.getSelectedState(e,t)},Object.defineProperty(a.prototype,"selectedRows",{get:function(){var e=this,i=this.selectionMode,o=this.rows.filter(function(e){return e.isSelected});if(0==o.length&&i!=t.SelectionMode.None){var n=[];this.selectedRanges.forEach(function(t){for(var i=t.topRow;i<=t.bottomRow&&i>-1&&i<e.rows.length;i++)n.indexOf(i)<0&&n.push(i)}),n.sort(),o=n.map(function(t){return e.rows[t]})}return o},set:function(i){var o=this;e.assert(this.selectionMode==t.SelectionMode.ListBox,"This property can be set only in ListBox mode."),i=e.asArray(i),this.deferUpdate(function(){for(var e=0,t=!0;e<o.rows.length;e++){var n=o.rows[e],r=i&&i.indexOf(n)>-1;r&&t&&(t=!1,o.select(e,o.selection.col)),n.isSelected=r}})},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"selectedItems",{get:function(){var e=[];return this.selectedRows.forEach(function(t){var i=t?t.dataItem:null;i&&e.indexOf(i)<0&&e.push(i)}),e},set:function(i){var o=this;e.assert(this.selectionMode==t.SelectionMode.ListBox,"This property can be set only in ListBox mode."),i=e.asArray(i),this.deferUpdate(function(){for(var e=0,t=!0;e<o.rows.length;e++){var n=o.rows[e],r=i&&i.indexOf(n.dataItem)>-1;r&&t&&(t=!1,o.select(e,o.selection.col)),n.isSelected=r}})},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"selectedRanges",{get:function(){var e=[this.selection];return this._selHdl.extendedSelection.forEach(function(t){e.push(t)}),e},set:function(i){if((i=e.asArray(i))&&i.length>0&&(this.select(i[0]),this.selectionMode==t.SelectionMode.MultiRange)){var o=this._selHdl.extendedSelection;o.deferUpdate(function(){o.clear();for(var e=1;e<i.length;e++)o.push(i[e])})}},enumerable:!0,configurable:!0}),a.prototype.scrollIntoView=function(t,i,o){(null==this._maxOffsetY||this._rows._dirty||this._cols._dirty)&&this._updateLayout();var n=this.scrollPosition,r=this._szClient,l=r.width,s=r.height-this._gpCFtr.rows.getTotalSize(),a=this.cells._getFrozenPos();if((t=e.asInt(t))>-1&&t<this._rows.length&&t>=this._rows.frozen){var c=this._rows[t],u=this._getCssPage(c.pos);if(u!=this._cssPage){for(var h=this._maxOffsetY,d=Math.round(h*u);d>c.pos;u-=.1)d=Math.round(h*u);this._offsetY=d}var p=c.pos-this._offsetY,g=p+c.renderSize;g>s-n.y&&(n.y=Math.max(-p,s-g)),p-a.y<-n.y&&(n.y=-(p-a.y)),u!=this._cssPage&&(this._cssPage=this._getCssPage(-n.y))}if(e.isString(i)&&(i=this.columns.indexOf(i)),(i=e.asInt(i))>-1&&i<this._cols.length&&i>=this._cols.frozen){var f=this._cols[i],_=f.pos+f.renderSize;_>-n.x+l&&(n.x=Math.max(-f.pos,l-_)),f.pos-a.x<-n.x&&(n.x=-(f.pos-a.x))}if(!n.equals(this._ptScrl))return this.scrollPosition=n,o&&(this._updateScrollPosition(),this._forceScrollUpdate=!1,this.refresh()),!0;if(this._activeCell&&t>-1&&i>-1){var m=this._root,w=m.scrollWidth==m.clientWidth,C=m.scrollHeight==m.clientHeight;if(w||C){var v=this._activeCell.getBoundingClientRect(),y=innerWidth,b=innerHeight,R=v.right<0||v.left>y,E=v.bottom<0||v.top>b;n.x=pageXOffset+(v.left<0?v.left:v.right>y?v.right-y:0),n.y=pageYOffset+(v.top<0?v.top:v.bottom>b?v.bottom-b:0),R&&w&&E&&C?scrollTo(n.x,n.y):R&&w?scrollTo(n.x,document.documentElement.scrollLeft):E&&C&&scrollTo(document.documentElement.scrollTop,n.y)}}return!1},a.prototype.isRangeValid=function(e){return e&&e.isValid&&e.bottomRow<this.rows.length&&e.rightCol<this.columns.length},a.prototype.startEditing=function(e,t,i,o,n){return void 0===e&&(e=!0),this._edtHdl.startEditing(e,t,i,o,n)},a.prototype.finishEditing=function(e){return this._edtHdl.finishEditing(e)},Object.defineProperty(a.prototype,"activeCell",{get:function(){return this._activeCell},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"activeEditor",{get:function(){var e=this._edtHdl;return e?e.activeEditor:null},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"editRange",{get:function(){var e=this._edtHdl.editRange;return e?e.clone():null},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"mergeManager",{get:function(){return this._mrgMgr},set:function(i){i!=this._mrgMgr&&(this._mrgMgr=e.asType(i,t.MergeManager,!0),this.invalidate())},enumerable:!0,configurable:!0}),a.prototype.getMergedRange=function(e,t,i,o){return void 0===o&&(o=!0),this._mrgMgr?this._mrgMgr.getMergedRange(e,t,i,o):null},Object.defineProperty(a.prototype,"keyActionTab",{get:function(){return this._keyHdl._kaTab},set:function(i){this._keyHdl._kaTab=e.asEnum(i,t.KeyAction)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"keyActionEnter",{get:function(){return this._keyHdl._kaEnter},set:function(i){this._keyHdl._kaEnter=e.asEnum(i,t.KeyAction)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"preserveWhiteSpace",{get:function(){return e.hasClass(this.hostElement,a._WJS_WSPRE)},set:function(t){e.toggleClass(this.hostElement,a._WJS_WSPRE,e.asBoolean(t))},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"showDropDown",{get:function(){return this._shDropDown},set:function(t){t!=this._shDropDown&&(this._shDropDown=e.asBoolean(t,!0),this.invalidate())},enumerable:!0,configurable:!0}),a.prototype.toggleDropDownList=function(){return this._tglDropDown||(this._tglDropDown=!0,this._edtHdl._toggleListBox(null),this._tglDropDown=!1),null!=this._edtHdl._lbx},Object.defineProperty(a,"defaultTypeWidth",{get:function(){return a._defTypeWidth},enumerable:!0,configurable:!0}),a.prototype.onItemsSourceChanging=function(e){return this.itemsSourceChanging.raise(this,e),!e.cancel},a.prototype.onItemsSourceChanged=function(e){this.itemsSourceChanged.raise(this,e)},a.prototype.onScrollPositionChanged=function(e){this.scrollPositionChanged.raise(this,e)},a.prototype.onSelectionChanging=function(e){return this.selectionChanging.raise(this,e),!e.cancel},a.prototype.onSelectionChanged=function(e){this.selectionChanged.raise(this,e)},a.prototype.onLoadingRows=function(e){return this.loadingRows.raise(this,e),!e.cancel},a.prototype.onLoadedRows=function(e){this.loadedRows.raise(this,e),this._autoRowHeights()},a.prototype.onUpdatingLayout=function(e){return this.updatingLayout.raise(this,e),!e.cancel},a.prototype.onUpdatedLayout=function(e){this.updatedLayout.raise(this,e)},a.prototype.onResizingColumn=function(e){return this.resizingColumn.raise(this,e),!e.cancel},a.prototype.onResizedColumn=function(e){this.resizedColumn.raise(this,e),this._autoRowHeights()},a.prototype.onAutoSizingColumn=function(e){return this.autoSizingColumn.raise(this,e),!e.cancel},a.prototype.onAutoSizedColumn=function(e){this.autoSizedColumn.raise(this,e)},a.prototype.onStarSizedColumns=function(e){this.starSizedColumns.raise(this,e),this._autoRowHeights()},a.prototype.onDraggingColumn=function(e){return this.draggingColumn.raise(this,e),!e.cancel},a.prototype.onDraggingColumnOver=function(e){return this.draggingColumnOver.raise(this,e),!e.cancel},a.prototype.onDraggedColumn=function(e){this.draggedColumn.raise(this,e)},a.prototype.onPinningColumn=function(e){return this.pinningColumn.raise(this,e),!e.cancel},a.prototype.onPinnedColumn=function(e){this.pinnedColumn.raise(this,e)},a.prototype.onResizingRow=function(e){return this.resizingRow.raise(this,e),!e.cancel},a.prototype.onResizedRow=function(e){this.resizedRow.raise(this,e)},a.prototype.onAutoSizingRow=function(e){return this.autoSizingRow.raise(this,e),!e.cancel},a.prototype.onAutoSizedRow=function(e){this.autoSizedRow.raise(this,e)},a.prototype.onDraggingRow=function(e){return this.draggingRow.raise(this,e),!e.cancel},a.prototype.onDraggingRowOver=function(e){return this.draggingRowOver.raise(this,e),!e.cancel},a.prototype.onDraggedRow=function(e){this.draggedRow.raise(this,e)},a.prototype.onGroupCollapsedChanging=function(e){return this.groupCollapsedChanging.raise(this,e),!e.cancel},a.prototype.onGroupCollapsedChanged=function(e){this.groupCollapsedChanged.raise(this,e)},a.prototype.onColumnGroupCollapsedChanging=function(e){return this.columnGroupCollapsedChanging.raise(this,e),!e.cancel},a.prototype.onColumnGroupCollapsedChanged=function(e){this.columnGroupCollapsedChanged.raise(this,e)},a.prototype.onSortingColumn=function(e){return this.sortingColumn.raise(this,e),!e.cancel},a.prototype.onSortedColumn=function(e){this.sortedColumn.raise(this,e)},a.prototype.onBeginningEdit=function(e){return this._addHdl._beginningEdit(this,e),e.cancel||this.beginningEdit.raise(this,e),!e.cancel},a.prototype.onPrepareCellForEdit=function(e){this.prepareCellForEdit.raise(this,e)},a.prototype.onCellEditEnding=function(e){return this.cellEditEnding.raise(this,e),!e.cancel&&!e.stayInEditMode},a.prototype.onCellEditEnded=function(e){this.cellEditEnded.raise(this,e),this._autoRowHeights()},a.prototype.onRowEditStarting=function(e){return this._addHdl._rowEditStarting(this,e),e.cancel||this.rowEditStarting.raise(this,e),!e.cancel},a.prototype.onRowEditStarted=function(e){this.rowEditStarted.raise(this,e)},a.prototype.onRowEditEnding=function(e){this._addHdl._rowEditEnding(this,e),this.rowEditEnding.raise(this,e)},a.prototype.onRowEditEnded=function(e){this.rowEditEnded.raise(this,e),this._addHdl._rowEditEnded(this,e),this._autoRowHeights()},a.prototype.onRowAdded=function(e){return this.rowAdded.raise(this,e),!e.cancel},a.prototype.onDeletingRow=function(e){return this.deletingRow.raise(this,e),!e.cancel},a.prototype.onDeletedRow=function(e){this.deletedRow.raise(this,e)},a.prototype.onCopying=function(e){return this.copying.raise(this,e),!e.cancel},a.prototype.onCopied=function(e){this.copied.raise(this,e)},a.prototype.onPasting=function(e){return this.pasting.raise(this,e),!e.cancel},a.prototype.onPasted=function(e){this.pasted.raise(this,e)},a.prototype.onPastingCell=function(e){return this.pastingCell.raise(this,e),!e.cancel},a.prototype.onPastedCell=function(e){this.pastedCell.raise(this,e)},a.prototype.onFormatItem=function(e){this.formatItem.raise(this,e)},a.prototype.onUpdatingView=function(e){return this.updatingView.raise(this,e),!e.cancel},a.prototype.onUpdatedView=function(e){this.updatedView.raise(this,e)},a.prototype._createSelHdl=function(){return new t._SelectionHandler(this)},a.prototype._getTabIndex=function(){return this._orgTabIndex},a.prototype._setTabOrder=function(e){this._orgTabIndex=e,this._updateTabIndex()},a.prototype._updateTabIndex=function(){var e=this.isDisabled?-1:this._orgTabIndex,t=this._imeHdl;t&&t._updateImeFocus();var i=this._activeCell,o=this._eFocus;i?(i.tabIndex=e,o.tabIndex=-1):o.tabIndex=e},a.prototype._autoRowHeights=function(){var i=this;this._autoHeights&&(this.rows.length>100&&[this.columnHeaders,this.rowHeaders].forEach(function(e){e._updateContent(!0,!1,e._getOffsetY())}),clearTimeout(this._toAutoHeights),this._toAutoHeights=setTimeout(function(){if(i._toAutoHeights=null,!i.editRange){var e=i.autoSizeMode,o=t.AutoSizeMode;e&o.Headers&&(i._autoSizeMode=o.Both,i.autoSizeRows(0,i.columnHeaders.rows.length-1,!0),i._autoSizeMode=e),e&o.Cells&&i.autoSizeRows()}},e.Control._REFRESH_INTERVAL))},a.prototype._getShowErrors=function(){return this.showErrors&&this._hasValidation},a.prototype._getHasValidation=function(){return this._hasValidation},a.prototype._getError=function(t,i,o,n){if(e.isFunction(this.itemValidator)){if(t==this.cells)return this.itemValidator(i,o,n);if(t==this.rowHeaders)for(o=0;o<this.columns.length;o++){if(u=this.itemValidator(i,o,n))return u}}var r=this._cv,l=r?r.getError:null;if(e.isFunction(l)){var s=t.rows,a=this.columns,c=s[i].dataItem;if(c&&!(c instanceof e.collections.CollectionViewGroup))if(t==this.cells)for(;i<s.length&&s[i].dataItem==c;i++){return l(c,this._getBindingColumn(this.cells,i,a[o]).binding,n)}else if(t==this.rowHeaders){var u;if(!(u=l(c,null,!1))){for(var h=[];i<s.length&&s[i].dataItem==c;i++)for(o=0;o<a.length;o++){(u=l(c,this._getBindingColumn(this.cells,i,a[o]).binding,!1))&&h.indexOf(u)<0&&h.push(u)}if(h.length){var d=this.errorTip,p=!!d&&d.isContentHtml;u=h.join(p?"<br/>":"\n")}}return u}}return null},a.prototype._setAria=function(t,i){e.setAttribute(this.cells.hostElement,"aria-"+t,i)},a.prototype._setFocus=function(i){if(this.hostElement&&(i||!this.containsFocus())){var o=e.getActiveElement(),n=this.activeEditor,r=this._activeCell,l=this._eFocus,s=this._root,a=this._getTabIndex();n?e.contains(n,o)||(n.focus(),l.tabIndex=-1):r?e.contains(r,o)||o!=this._root&&(e.isIE()&&e.hasClass(r,"wj-group")&&(r=r.querySelector("."+t.CellFactory._WJC_COLLAPSE)||r),r.tabIndex=a,this._setFocusNoScroll(r),l.tabIndex=-1):e.contains(l,o)||o==s||(l.tabIndex=a,this._setFocusNoScroll(l)),this.containsFocus()||(l.tabIndex=a,this._setFocusNoScroll(l))}},a.prototype._setFocusNoScroll=function(t){if(e.getActiveElement()!=t){if(e.supportsFocusOptions())t.focus({preventScroll:!0});else{var i=this.scrollPosition,o=t.style,n=o.position;o.position="fixed",t.focus(),o.position=n,this.scrollPosition=i}this._fixScroll()}},a.prototype._updateDefaultSizes=function(){var e=this._getDefaultRowHeight();return this._rows._setDefaultSize(e),this._cols._setDefaultSize(4*e),this._hdrRows._setDefaultSize(e),this._hdrCols._setDefaultSize(Math.round(1.25*e)),this._ftrRows._setDefaultSize(e),e},a.prototype._getDefaultRowHeight=function(){var t=this.hostElement,i=this._eFocus,o=null;i.offsetHeight||(o=e.createElement('<div><div class="wj-cell">0</div></div>',document.body),t&&o.setAttribute("class",t.getAttribute("class")),i=o.children[0]);var n=i.offsetHeight;return(isNaN(n)||n<=6)&&(n=28),e.removeChild(o),n},a.prototype._getCollectionView=function(t){return e.asCollectionView(t)},a.prototype._getCanvasContext=function(){var e=document.createElement("canvas").getContext("2d"),t=getComputedStyle(this.hostElement);return e.font=t.fontSize+" "+t.fontFamily.split(",")[0],e},a.prototype._getWidestRow=function(t,i,o,n){for(var r=0,l=0,s=1===this._getRowsPerItem()&&t.columns[o].dataType==e.DataType.Boolean,a=i.row;a<=i.row2;a++)if(t.rows[a].isVisible){var c=t.getCellData(a,o,!0),u=n.measureText(c).width,h=this.getMergedRange(t,a,o,!1);if(h&&h.columnSpan>1&&(u/=h.columnSpan),u>l&&(l=u,r=a),s)break;a+=h?h.rowSpan-1:0}return r},a.prototype._getDesiredWidth=function(e,t,i,o){var n=this.getMergedRange(e,t,i,!1),r=o.style;return this.cellFactory.updateCell(e,t,i,o,n),r.width=r.top=r.left="",o.offsetWidth/(n&&n.columnSpan>1?n.columnSpan:1)},a.prototype._getDesiredHeight=function(e,t,i,o){var n=o.style,r=this.getMergedRange(e,t,i,!1),l=r?r.rowSpan:1;return this.cellFactory.updateCell(e,t,i,o,r),o.innerHTML.trim()||(o.innerHTML="&nbsp;"),n.height=n.top=n.left="",o.offsetHeight/l},a.prototype._getDesiredRowHeight=function(e,t,i,o){for(var n=0,r=(e.rows[t],this._getQuickAutoSize()),l=0;l<e.columns.length;l++){if(e.columns[l].isVisible){var s=this.getMergedRange(e,t,l,!1),a=void 0;if(r){var c={ct:e.cellType,col:l,spr:s&&s.rowSpan>1?s.rowSpan:1,spc:s&&s.columnSpan>1?s.columnSpan:1,data:e.getCellData(t,l,!0)||"1"},u=JSON.stringify(c);null==(a=o[u])&&(a=this._getDesiredHeight(e,t,l,i),o[u]=a)}else a=this._getDesiredHeight(e,t,l,i);n=Math.max(a,n),l+=s?s.columnSpan-1:0}}return n},a.prototype._getSortRowIndex=function(){return null!=this._sortRowIndex?this._sortRowIndex:this.columnHeaders.rows.length-1},a.prototype._getDeleteColumnIndex=function(){return 0},a.prototype._getEditColumnIndex=function(){return null!=this._editColIndex?this._editColIndex:this.rowHeaders.columns.length-1},a.prototype._sortConverter=function(e,t,i,o){var n,r=this;if(o&&(this._mappedColumns=null,this._cv&&this._cv.sortDescriptions.forEach(function(e){(n=r.getColumn(e.property))&&n.dataMap&&(r._mappedColumns||(r._mappedColumns={}),r._mappedColumns[n.binding]=n.dataMap)}),this._mouseHdl._htDown&&this._mouseHdl._htDown.col>-1&&(n=this.columns[this._mouseHdl._htDown.col],this._mappedColumns&&n.dataMap&&(this._mappedColumns[n.binding]=n.dataMap))),this._mappedColumns){var l=this._mappedColumns[e.property];l&&l.sortByDisplayValues&&(i=l.getDisplayValue(i))}return i},a.prototype._bindGrid=function(i){var o=this;if(this.finishEditing(),this.deferUpdate(function(){var n,r;if(o.autoGenerateColumns&&0==o._lastCount&&e.hasItems(o._cv)&&(i=!0),o.preserveSelectedState&&(n=o._getMap())&&o.rows.forEach(function(e){e.isSelected&&e.dataItem&&n.set(e.dataItem,!0)}),o.preserveOutlineState&&o.rows.maxGroupLevel>-1&&(r=o._getMap()))for(var l=0;l<o.rows.length;l++){var s=o.rows[l];if(s instanceof t.GroupRow&&s.isCollapsed&&s.dataItem){var a=s.dataItem;a instanceof e.collections.CollectionViewGroup&&(a=a._path),r.set(a,!0)}}i&&o.columns.deferUpdate(function(){o._bindColumns()});var c=new e.CancelEventArgs;o.onLoadingRows(c)&&(o.rows.deferUpdate(function(){o._bindRows()}),o.onLoadedRows(c)),o._selHdl.extendedSelection.clear();var u=0;if(n&&n.size&&o.rows.forEach(function(e){var t=e.dataItem;t&&n.has(t)&&(e.isSelected=!0,u++)}),0==u&&o.selectionMode==t.SelectionMode.ListBox){var h=o.selection;for(l=h.topRow;l<=h.bottomRow&&l>-1&&l<o.rows.length;l++)o.rows[l]._setFlag(t.RowColFlags.Selected,!0,!0)}if(r&&r.size&&o.rows.deferUpdate(function(){o.rows.forEach(function(i){if(i instanceof t.GroupRow){var o=i.dataItem;o instanceof e.collections.CollectionViewGroup&&(o=o._path),r.has(o)&&(i.isCollapsed=!0)}})}),!o._lastCount){var d=o._cv;d&&d.items&&(o._lastCount=d.items.length)}}),this._cv){var n=i&&!this._toInv;this._syncSelection(n)}else{var r=this.selection,l=new t.CellRange(-1,r.col,-1,r.col2);this._selHdl._adjustSelection(l,this.selectionMode)}},a.prototype._getMap=function(){return window.Map?new Map:null},a.prototype._cvCollectionChanged=function(i,o){if(this.autoGenerateColumns&&0==this.columns.length)this._bindGrid(!0);else{var n=e.collections.NotifyCollectionChangedAction;if(this.childItemsPath&&o.action!=n.Change)this._bindGrid(!1);else{switch(o.action){case n.Change:return void this.invalidate();case n.Add:if(o.index==this._cv.items.length-1){var r=this.rows.length;return this.rows[r-1]instanceof t._NewRowTemplate&&r--,void this.rows.insert(r,new t.Row(o.item))}e.assert(!1,"added item should be the last one.");break;case n.Remove:var l=this._findRow(o.item);if(l>-1)return this.rows.removeAt(l),void this._syncSelection(!1);e.assert(!1,"removed item not found on grid.")}this._bindGrid(!1)}}},a.prototype._cvCurrentChanged=function(e,t){this._syncSelection(!1)},a.prototype._syncSelection=function(i){if(this._cv&&this.selectionMode!=t.SelectionMode.None){var o=this._selHdl,n=o.selection,r=n.row>-1&&n.row<this.rows.length?this.rows[n.row]:null,l=r?r.dataItem:null,s=this._cv;if(s instanceof e.collections.CollectionView&&s.isUpdating)return;if(this.newRowAtTop&&r instanceof t._NewRowTemplate)return;if(l instanceof e.collections.CollectionViewGroup&&(l=null),i||l!=s.currentItem||n.row>=this.rows.length){var a=this.editableCollectionView;if(!this.childItemsPath||!a||!a.currentAddItem){var c=this._getRowIndex(s.currentPosition);c==n.row&&this.childItemsPath||(n=new t.CellRange(c,n.col,c,n.col2),o._adjustSelection(n,this.selectionMode),this.selectionMode&&!this._updating&&this.scrollIntoView(n.row,-1))}}}},a.prototype._getRowIndex=function(e){if(this._cv){var i=this.rows;if(e>-1){for(var o=this._cv.items[e];e<i.length;e++)if(i[e].dataItem===o)return e;return-1}if(1==i.length&&i[0]instanceof t._NewRowTemplate)return 0;var n=this.selection.row,r=n>-1?i[n]:null;return r&&(r instanceof t.GroupRow||null==r.dataItem)?n:-1}return this.selection.row},a.prototype._getCvIndex=function(e){return e>-1&&e<this.rows.length?this.rows[e].dataIndex:-1},a.prototype._findRow=function(e){for(var t=0;t<this.rows.length;t++)if(this.rows[t].dataItem==e)return t;return-1},a.prototype._updateLayout=function(){var t=new e.CancelEventArgs;if(this.onUpdatingLayout(t)){var i=this._hdrVis&r.Row?this._hdrCols.getTotalSize():0,o=this._hdrVis&r.Column?this._hdrRows.getTotalSize():0,n=this._ftrRows.getTotalSize(),l=this._rows.getTotalSize()+n;l<1&&(l=1),this._heightReal=l,this._heightBrowser=Math.min(l,a._getMaxSupportedCssHeight()),this._maxOffsetY=Math.max(0,l-this._heightBrowser);var s=getComputedStyle(this._eFocus);this._cellPadVert=parseInt(s.paddingTop)+parseInt(s.paddingBottom),this._cellPadHorz=parseInt(s.paddingLeft)+parseInt(s.paddingRight),this._cellPadLeft=parseInt(this.rightToLeft?s.paddingRight:s.paddingLeft);var c=this._heightBrowser+o-n,u=this._gpCells.width,h=this._heightBrowser;!u&&this.rows.length&&(u=.1),!h&&this.columns.length&&(h=.1),this.rightToLeft?(e.setCss(this._eTL,{right:0,top:0,width:i,height:o}),e.setCss(this._eCHdr,{right:i,top:0,height:o}),e.setCss(this._eRHdr,{right:0,top:o,width:i}),e.setCss(this._eCt,{right:i,top:o,width:u,height:h}),e.setCss(this._fCt,{right:i,top:o}),e.setCss(this._eBL,{right:0,top:c,width:i,height:n}),e.setCss(this._eCFtr,{right:i,top:c,height:n})):(e.setCss(this._eTL,{left:0,top:0,width:i,height:o}),e.setCss(this._eCHdr,{left:i,top:0,height:o}),e.setCss(this._eRHdr,{left:0,top:o,width:i}),e.setCss(this._eCt,{left:i,top:o,width:u,height:h}),e.setCss(this._fCt,{left:i,top:o}),e.setCss(this._eBL,{left:0,top:c,width:i,height:n}),e.setCss(this._eCFtr,{left:i,top:c,height:n})),this._stickyHdr&&this._updateStickyHeaders();var d=this.frozenRows||this.frozenColumns?"3":"";e.setCss([this._eTL,this._eBL,this._eCHdr,this._eCFtr,this._eRHdr,this._eMarquee],{zIndex:d}),e.isIE()&&(this._fCt.style.zIndex=d?"2":"");var p=this._root,g=p.offsetWidth-p.clientWidth,f=p.offsetHeight-p.clientHeight;e.setCss(this._eSz,{width:i+g+this._gpCells.width,height:o+f+this._heightBrowser});var _=null;this.columns._updateStarSizes(p.clientWidth-i)&&(_=p.clientWidth,e.setCss(this._eCt,{width:this._gpCells.width}),this.onStarSizedColumns()),this._szClient=new e.Size(p.clientWidth-i,p.clientHeight-o),this._szClientSB=new e.Size(p.offsetWidth-i,p.offsetHeight-o),this._rcBounds=null,this._updateScrollHandler(),this._updateContent(!1),g=p.offsetWidth-p.clientWidth,f=p.offsetHeight-p.clientHeight,e.setCss(this._eSz,{width:i+g+this._gpCells.width,height:o+f+this._heightBrowser}),this._szClient=new e.Size(p.clientWidth-i,p.clientHeight-o),_&&_!=p.clientWidth&&this.columns._updateStarSizes(p.clientWidth-i)&&(e.setCss(this._eCt,{width:this._gpCells.width}),this._updateContent(!1)),e.setCss([this._eCHdr,this._eCFtr,this._fCt],{width:this._szClient.width}),e.setCss([this._eRHdr,this._fCt],{height:this._szClient.height}),n&&(c=Math.min(c,this._szClient.height+o-n),e.setCss([this._eBL,this._eCFtr],{top:c})),this.onUpdatedLayout(t)}},a.prototype._updateStickyHeaders=function(){var t=!1,i=0;if(this._stickyHdr){for(var o=0,n=null,r=this.hostElement;r;r=r.parentElement)if("inline"!=getComputedStyle(r).display){var l=r.getBoundingClientRect();null==n&&(n=l.top),o=Math.max(o,l.top)}i=-(n=Math.max(0,o-n-1)),t=n>0,this._rcBounds=null}this._eTL.style.top=this._eCHdr.style.top=t?-i+"px":"",e.toggleClass(this._eTL,a._WJS_STICKY,t),e.toggleClass(this._eCHdr,a._WJS_STICKY,t)},a.prototype._updateScrollHandler=function(){this._clipToScreen=this._getClipToScreen();var e=this._stickyHdr||this._clipToScreen;e!=this._scrollHandlerAttached&&(this._scrollHandlerAttached=e,e?this.addEventListener(window,"scroll",this._scroll.bind(this),!0):this.removeEventListener(window,"scroll"))},a.prototype._getClipToScreen=function(){if(this.rows.length<=a._MIN_VIRT_ROWS)return!1;if(this._root.scrollHeight>this._root.clientHeight)return!1;for(var e=this.hostElement;e&&e!=document.documentElement;e=e.parentElement){if("auto"==getComputedStyle(e).overflow)return!1}return!0},a.prototype._scroll=function(t){var i=this;e.contains(t.target,this.hostElement)&&(this._clipToScreen&&(this._afClip&&cancelAnimationFrame(this._afClip),this._afClip=requestAnimationFrame(function(){i._afClip=null,i.finishEditing(),i._updateContent(!0)})),this._stickyHdr&&(this._afSticky&&cancelAnimationFrame(this._afSticky),this._afSticky=requestAnimationFrame(function(){i._afSticky=null;var t=new e.CancelEventArgs;i.onUpdatingLayout(t)&&(i._updateStickyHeaders(),i.onUpdatedLayout(t))})))},a.prototype._getCssPage=function(t){if(this._heightReal>this._heightBrowser){var i=this._szClient.height-this._gpCFtr.rows.getTotalSize();if(this._heightBrowser>i)return e.clamp(Math.round(t/(this._heightBrowser-i)*10)/10,0,1)}return 0},a.prototype._updateScrollPosition=function(){var t=this._root,i=t.scrollTop,o=t.scrollLeft;this.rightToLeft&&"rev"==a._getRtlMode()&&(o=t.scrollWidth-t.clientWidth-o);var n=new e.Point(-Math.abs(o),-i);return!this._ptScrl.equals(n)&&(this._ptScrl=n,this.onScrollPositionChanged(),!0)},a.prototype._updateContent=function(t,i){var o=this,n=this._root,l=this.hostElement,s=this.cells.hostElement,a=this._activeCell,c=e.getActiveElement(),u=e.contains(l,c),h=e.closest(c,".wj-flexgrid")==l?c:null,d=new e.CancelEventArgs;if(this.onUpdatingView(d)){e.setAttribute(s,"role",this.rows.maxGroupLevel<0?"grid":"treegrid"),this._hasValidation=e.isFunction(this._itemValidator)||this._cv&&e.isFunction(this._cv.getError);var p=!i&&this._errorTip&&this._errorTip._tips.length,g=this._getCssPage(-this._ptScrl.y);g!=this._cssPage&&(this._cssPage=g,this._offsetY=Math.round(this._maxOffsetY*g)),this._updateScrollPosition(),this._updateMarquee();var f=this._gpCells._updateContent(t,i,this._offsetY),_=this._hdrVis;if(_&r.Column&&(!i||this._ssHdr&_)&&(this._gpCHdr._updateContent(t,i,0),this.rightToLeft||(this._eCHdr.scrollLeft=0)),_&r.Row&&(!i||this._ssHdr&_)&&(this._gpRHdr._updateContent(t,i,this._offsetY),this._eRHdr.scrollTop=0),_&&!i&&this._gpTL._updateContent(t,i,0),this._gpCFtr.rows.length&&(this._gpBL._updateContent(t,i,0),this._gpCFtr._updateContent(t,i,0)),p&&this._errorTip&&this._errorTip._tips.length&&(clearTimeout(this._toErrorTips),this._toErrorTips=setTimeout(function(){var t=o._errorTip;if(t){t.hide();for(var i=t._tips,n=0;n<i.length;n++){var r=i[n].element;r.offsetHeight&&e.hasClass(r,"wj-state-invalid")||(t.setTooltip(r,null),n--)}}},250)),this._useFrozenDiv()&&(this._updateFrozenCells(i),f&&e.hasClass(f,"wj-frozen")&&(f=null)),this._fCt.style.display=this._fCt.childElementCount?"":"none",this._activeCell=f,h)if(h!=n&&h!=this._eFocus&&e.contains(l,h)&&!e.contains(s,h)){if(e.getActiveElement()!==h&&h.focus(),e.isIE()&&h instanceof HTMLInputElement&&!h.type.match(/checkbox|radio|range/i)){var m=h.selectionStart,w=h.selectionEnd;h.setSelectionRange(m,w)}}else{var C=f!==a;this._setFocus(C)}!h&&f&&(f.tabIndex=this.isDisabled?-1:this._orgTabIndex),a&&a!=f&&(a.tabIndex=-1),this._eFocus.tabIndex=null!=f||this.isDisabled?-1:this._orgTabIndex,u&&this.focus(),this._fixScroll(),this._rcBounds=null,this.onUpdatedView(d)}},a.prototype._fixScroll=function(){var e=this._root;if(!this._updating){var i=this.hostElement,o=e?e.parentElement:null,n=this.rightToLeft;i&&(i.scrollTop&&(i.scrollTop=0),i.scrollLeft&&!n&&(i.scrollLeft=0)),o&&(o.scrollTop&&(o.scrollTop=0),o.scrollLeft&&!n&&(o.scrollLeft=0))}var r=t._getSafariVer();e&&r&&14==r.major&&r.minor>=1&&(e.style.transform="",e.style.transform="translateZ(0)")},a.prototype._clearCells=function(){for(var e in this)if("_"==e[0]){var i=this[e];i instanceof t.GridPanel&&i._clearCells()}this.invalidate()},a.prototype._useFrozenDiv=function(){return e.isBoolean(this._fzClone)?this._fzClone:e.isIE()||e.isFirefox()||e.isSafari()||e.isMobile()},a.prototype._updateFrozenCells=function(i){var o=this._fCt;if(this.frozenRows||this.frozenColumns){var n=this._eCt.querySelectorAll(".wj-frozen");if(i&&o.children.length==n.length){for(var r=0;r<n.length;r++)o.children[r].className=n[r].className;return}if(e.setText(o,null),!this.activeEditor){var l=this._errorTip,s=navigator.userAgent.indexOf("MSIE")>=0;for(r=0;r<n.length;r++){var a=n[r];if(e.closest(a,".wj-flexgrid")==this.hostElement){var c=a[t.GridPanel._INDEX_KEY],u=a.firstElementChild,h=null;if(c&&u){var d=c.panel,p=this._getBindingColumn(d,c.row,d.columns[c.col]);h=e.isFunction(p.cellTemplate)?u.onclick:null}if(s){var g="input[type=checkbox]",f=a.querySelector(g);if(a=a.cloneNode(!0),f)a.querySelector(g).checked=f.checked}else a=a.cloneNode(!0);if(u=a.firstElementChild,h&&u&&(u.onclick=h),a[t.GridPanel._INDEX_KEY]=c,l){var _=l.getTooltip(n[r]);_&&l.setTooltip(a,_)}o.appendChild(a)}}}}else e.setText(o,null)},a.prototype._updateMarquee=function(){var t=this._eMarquee,i=this._getMarqueeRect();if(i&&i.width&&i.height){var o=t.firstChild,n=t.offsetWidth-o.offsetWidth,r=t.offsetHeight-o.offsetHeight,l=this.cells.hostElement;e.setCss(t,{left:i.left+l.offsetLeft-n/2,top:i.top+l.offsetTop-r/2,width:i.width+n,height:i.height+r,display:""})}else t.style.display="none"},a.prototype._getMarqueeRect=function(){if(!this._shMarquee||!this.selectionMode)return null;var t=this._selHdl.selection;if(!this.isRangeValid(t))return null;t=(t=(t=this.cells._getAdjustedSelection(t)).combine(this.getMergedRange(this.cells,t.topRow,t.leftCol,!1))).combine(this.getMergedRange(this.cells,t.bottomRow,t.rightCol,!1));var i=this.cells.getCellBoundingRect(t.topRow,t.leftCol,!0),o=this.cells.getCellBoundingRect(t.bottomRow,t.rightCol,!0);if(this.rows.frozen){var n=Math.min(this.rows.length,this.rows.frozen),r=this.cells.getCellBoundingRect(n-1,0,!0);t.topRow>=n&&i.top<r.bottom&&(i.top=r.bottom),t.bottomRow>=n&&o.bottom<r.bottom&&(o.height=r.bottom-o.top)}if(this.columns.frozen){var l=Math.min(this.columns.length,this.columns.frozen);r=this.cells.getCellBoundingRect(0,l-1,!0);this.rightToLeft?(t.leftCol>=l&&i.right>r.left&&(i.left=r.left-i.width),t.rightCol>=l&&o.left>r.left&&(o.left=r.left)):(t.leftCol>=l&&i.left<r.right&&(i.left=r.right),t.rightCol>=l&&o.right<r.right&&(o.width=r.right-o.left))}return this.rightToLeft?new e.Rect(o.left,i.top,i.right-o.left,o.bottom-i.top):new e.Rect(i.left,i.top,o.right-i.left,o.bottom-i.top)},a.prototype._bindColumns=function(){for(var i=this.columns,o=0;o<i.length;o++){i[o]._getFlag(t.RowColFlags.AutoGenerated)&&(i.removeAt(o),o--)}var n=this._cv,r=n?n.items:null;r&&r.length&&this.autoGenerateColumns&&this._getColumnTypes(r).forEach(function(o){var n=new t.Column(o);n._setFlag(t.RowColFlags.AutoGenerated,!0),n.name=n.binding,n.header=e.toHeaderCase(n.binding);var r=a._defTypeWidth[n.dataType];if(null!=r){if(e.isString(r)){var l=Math.round(parseFloat(r));r=r.indexOf("*")>-1?l*i.defaultSize:l}e.isNumber(r)&&r>0&&(n.width=r)}i.push(n)}),this._updateColumnTypes()},a.prototype._getColumnTypes=function(t){return e.getTypes(t)},a.prototype._updateColumnTypes=function(){var t=this._cv;if(e.hasItems(t)){var i=t.items[0];this.columns.forEach(function(t){null==t.dataType&&t._binding&&(t.dataType=e.getType(t._binding.getValue(i)))})}},a.prototype._getMapEditor=function(e,i){return i.editor?null!=i.editor.isDroppedDown?i.dataMapEditor:null:!e.dataMap||e instanceof t.GroupRow?i.dataMap?i.dataMapEditor:null:e.dataMapEditor},a.prototype._getBindingColumn=function(e,t,i){return i},a.prototype._getBindingColumns=function(){return this.columns},a.prototype._getRowsPerItem=function(){return 1},a.prototype._isTransposed=function(){return!1},a.prototype._getRowHeaderPath=function(){return this._rowHdrPath},a.prototype._bindRows=function(){this.rows.clear();var e=this._cv;if(e&&e.items){var t=e.items,i=e.groups;if(this.childItemsPath)for(var o=0;o<t.length;o++)this._addNode(t,o,0);else if(null!=i&&i.length>0&&this.showGroups)for(o=0;o<i.length;o++)this._addGroup(i[o]);else for(o=0;o<t.length;o++)this._addBoundRow(t,o)}},a.prototype._addBoundRow=function(e,i){var o=new t.Row(e[i]),n=this.rows;o._list=n,n[n.length++]=o},a.prototype._addGroupRow=function(e){this.rows.push(new t.GroupRow(e))},a.prototype._addNode=function(i,o,n){var r=i[o],l=this.childItemsPath,s=r[e.isArray(l)?l[n]:l],a=new t.GroupRow(r);if(a.level=n,this.rows.push(a),e.isArray(s))for(var c=0;c<s.length;c++)this._addNode(s,c,n+1)},a.prototype._addGroup=function(e){if(this._addGroupRow(e),e.isBottomLevel)for(var t=e.items,i=0;i<t.length;i++)this._addBoundRow(t,i);else for(i=0;i<e.groups.length;i++)this._addGroup(e.groups[i])},a._getSerializableProperties=function(e){var t=[];for(e=e.prototype;e!=Object.prototype;e=Object.getPrototypeOf(e))for(var i=Object.getOwnPropertyNames(e),o=0;o<i.length;o++){var n=i[o],r=Object.getOwnPropertyDescriptor(e,n);r&&r.set&&r.get&&"_"!=n[0]&&!n.match(/^(disabled|required|showDropDown)$/)&&t.push(n)}return t},a.prototype._hasColumnGroups=function(){return this._grpHdl.hasColumnGroups()},a.prototype._getColumnGroup=function(e,t){return this._grpHdl.getColumnGroup(e,t)},a.prototype._canMoveColumnGroup=function(e,t,i,o){return this._grpHdl.canMoveColumnGroup(e,t,i,o)},a.prototype._moveColumnGroup=function(e,t,i,o,n){return this._grpHdl.moveColumnGroup(e,t,i,o,n)},a.prototype._copy=function(i,o){var n=this;if("columns"==i){var r=e.asArray(o);return r.some(function(e){return null!=e.columns})?this.columnGroups=r:(this.columns.clear(),r.forEach(function(e){var i=new t.Column(e);n.columns.push(i)})),!0}return!1},a.prototype._isInputElement=function(t){return t instanceof HTMLElement&&!e.hasClass(t,"wj-btn-glyph")&&("true"==t.contentEditable||null!=t.tagName.match(/^(INPUT|TEXTAREA|BUTTON|A|SELECT|OPTION)$/i))},a.prototype._isNativeCheckbox=function(i){return i instanceof HTMLInputElement&&"checkbox"==i.type&&!i.disabled&&!i.readOnly&&e.hasClass(i,t.CellFactory._WJC_CHECKBOX)&&e.closest(i,".wj-flexgrid")==this.hostElement},a.prototype._wantsInput=function(t){return this._isInputElement(t)&&!this.activeEditor&&!this._isNativeCheckbox(t)&&!e.hasClass(t,"wj-grid-ime")&&e.contains(document.body,t)},a._getMaxSupportedCssHeight=function(){if(!a._maxCssHeight){var t=265e5;e.isIE()?t=15e5:e.isFirefox()&&(t=175e5),a._maxCssHeight=t}return a._maxCssHeight},a._getRtlMode=function(){if(!a._rtlMode){var t=e.createElement('<div dir="rtl"><div></div></div>');e.setCss(t,{visibility:"hidden",width:100,height:100,overflow:"auto"}),e.setCss(t.firstChild,{width:2e3,height:2e3}),document.body.appendChild(t);var i=t.scrollLeft;t.scrollLeft=-1e3;var o=t.scrollLeft;e.removeChild(t),a._rtlMode=o<0?"neg":i>0?"rev":"std"}return a._rtlMode},a._WJS_STICKY="wj-state-sticky",a._WJS_MEASURE="wj-state-measuring",a._WJS_UPDATING="wj-state-updating",a._WJS_WSPRE="wj-whitespace-pre",a._MIN_VIRT_ROWS=200,a._defTypeWidth=((i={})[e.DataType.Number]="0.714285714*",i),a.controlTemplate='<div><div wj-part="root"><div wj-part="cells" class="wj-cells"></div><div wj-part="marquee" class="wj-marquee"><div></div></div></div><div wj-part="fcells" aria-hidden="true" class="wj-cells wj-frozen-clone"></div><div wj-part="rh"><div wj-part="rhcells" class="wj-rowheaders"></div></div><div wj-part="cf"><div wj-part="cfcells" class="wj-colfooters"></div></div><div wj-part="ch"><div wj-part="chcells" class="wj-colheaders"></div></div><div wj-part="bl"><div wj-part="blcells" class="wj-bottomleft"></div></div><div wj-part="tl"><div wj-part="tlcells" class="wj-topleft"></div></div><div wj-part="focus" class="wj-cell">0</div><div wj-part="sz"></div></div>',a}(e.Control);t.FlexGrid=s}(e.grid||(e.grid={}))}(wijmo||(wijmo={})),function(e){!function(t){"use strict";var i=function(){function i(t){this._updateImeFocusAsyncBnd=this._updateImeFocusAsync.bind(this),this._cmpstartBnd=this._compositionstart.bind(this),this._keypressBnd=this._keypress.bind(this),this._g=t;var o=e.createElement('<textarea class="wj-grid-editor wj-form-control wj-grid-ime" aria-hidden="true"/>');e.setCss(o,i._cssHidden),e.disableAutoComplete(o),o.tabIndex=-1,this._tbx=o,this._maskProvider=new e._MaskProvider(o),t._root.appendChild(o),this._updateImeFocus();var n=t.hostElement,r=t.addEventListener.bind(t),l=this._updateImeFocusAsyncBnd;r(n,"blur",l,!0),r(n,"focus",l,!0),r(o,"compositionstart",this._cmpstartBnd),e.isiOS()&&r(n,"keypress",this._keypressBnd),t.selectionChanged.addHandler(l,this),t.cellEditEnded.addHandler(this._cellEditEnded,this),t.cellEditEnding.addHandler(this._cellEditEnding,this)}return i.prototype.dispose=function(){var t=this._g,i=t.hostElement,o=this._tbx,n=t.removeEventListener.bind(t),r=this._updateImeFocusAsyncBnd;n(i,"blur",r),n(i,"focus",r),n(i,"keypress",this._keypressBnd),n(o,"compositionstart",this._cmpstartBnd),t.selectionChanged.removeHandler(r),t.cellEditEnded.removeHandler(this._cellEditEnded),t.cellEditEnding.removeHandler(this._cellEditEnding),e.removeChild(o)},i.prototype._compositionstart=function(t){var i=this._g;if(!i.activeEditor){var o=i._selHdl.selection;if(i.startEditing(!1,o.row,o.col,!1,t)&&i.activeEditor&&"checkbox"!=i.activeEditor.type){o=i.editRange;var n=i._getBindingColumn(i.cells,o.row,i.columns[o.col]),r=n&&n._edt,l=i.activeEditor,s=this._tbx,a=i.cells.hostElement,c=i.columns[o.col].pos+a.offsetLeft,u=i.rows[o.row].pos+a.offsetTop,h=i.getCellBoundingRect(o.row,o.col),d=e.closest(l,".wj-cell");h.width=d.offsetWidth,h.height=d.offsetHeight,o.row<i.frozenRows&&(u+=i._root.scrollTop),o.col<i.frozenColumns&&(c+=i._root.scrollLeft);var p=d.querySelector(".wj-btn.wj-right");p&&(h.width-=p.offsetWidth),"minLength,maxLength,pattern".split(",").forEach(function(t){e.setAttribute(s,t,l.getAttribute(t))});var g=l instanceof HTMLTextAreaElement;e.setAttribute(s,"wrap",g?"soft":"off");var f=getComputedStyle(d),_=f.paddingTop;if(o.rowSpan>1&&!g){var m=parseFloat(f.lineHeight);isNaN(m)&&(m=1.2*parseFloat(f.fontSize)),_=Math.max(0,(h.height-m)/2)+"px"}var w={position:"absolute",left:c,top:u,width:h.width-1,height:h.height-1,paddingTop:_,paddingLeft:f.paddingLeft,paddingRight:f.paddingRight,textAlign:f.textAlign,zIndex:d.style.zIndex};if(i.rightToLeft&&(w.right=parseInt(d.style.right)+parseInt(i.cells.hostElement.style.right),w.left=""),e.setCss(s,w),r){var C=r._tbx.getBoundingClientRect(),v=s.getBoundingClientRect(),y=window.getComputedStyle(s),b=parseFloat(y.left),R=parseFloat(y.top);e.setCss(s,{left:b+C.left-v.left+"px",top:R+C.top-v.top+"px",width:C.width+"px",height:C.height+"px"})}i._edtHdl._edt=s,s.select();var E=l.value;setTimeout(function(){"　"!=s.value&&" "!=s.value||(s.value=E),e.setSelectionRange(s,s.value.length)},20),s.placeholder=l.placeholder,l.placeholder="",l.value=""}}},i.prototype._cellEditEnding=function(){var e=this._maskProvider;e&&e.mask&&e._valueChanged()},i.prototype._cellEditEnded=function(){var t=this._tbx;t.value="",e.setCss(t,i._cssHidden),this._updateImeFocus()},i.prototype._keypress=function(e){e.defaultPrevented||e.target!=this._tbx||e.ctrlKey||e.altKey||e.metaKey||27==e.keyCode||this._g.activeEditor||(this._tbx.value="",this._compositionstart(e),e.stopPropagation())},i.prototype._updateImeFocus=function(){var t=this._g,i=this._tbx,o=e.getActiveElement(),n=t._getTabIndex();if(t.activeEditor||e.closest(o,".wj-flexgrid")!=t.hostElement)(t.isDisabled||n<0)&&i.tabIndex>=0&&(i.tabIndex=-1);else if(this._enableIme()&&!t._wantsInput(o)){o!=i&&(t.activeCell&&(t.activeCell.tabIndex=-1),i.tabIndex=n,i.disabled=!1,i.value="",e.setSelectionRange(i,0),i.focus());var r=t._selHdl.selection,l=r.isValid?t._getBindingColumn(t.cells,r.row,t.columns[r.col]):null;this._maskProvider.mask=l?l.mask:null}else if(i.tabIndex=-1,i.disabled=!0,i.value="",o==i){i.blur();var s=t.activeCell;s?(s.tabIndex=n,s.focus()):t.focus()}},i.prototype._updateImeFocusAsync=function(){var e=this;this._toFocus&&clearTimeout(this._toFocus),this._toFocus=setTimeout(function(){e._toFocus=null,e._updateImeFocus()},100)},i.prototype._enableIme=function(){var i=this._g,o=i._selHdl.selection;if(!i.canEditCell(o.row,o.col))return!1;var n=o.isValid?i._getBindingColumn(i.cells,o.row,i.columns[o.col]):null;return!(!n||n.dataType==e.DataType.Boolean)&&(!n||!n.dataMap||n.dataMapEditor!=t.DataMapEditor.RadioButtons)},i._cssHidden={position:"fixed",width:"1px",left:-32e3,top:-32e3,overflow:"hidden"},i}();t._ImeHandler=i}(e.grid||(e.grid={}))}(wijmo||(wijmo={})),function(e){!function(t){"use strict";var i=function(){function i(e){this._nrt=new o,this._top=!1,this._keydownBnd=this._keydown.bind(this),this._committing=!1,this._pasting=!1,this._g=e,this._attach()}return Object.defineProperty(i.prototype,"newRowAtTop",{get:function(){return this._top},set:function(i){if(i!=this.newRowAtTop){this._top=e.asBoolean(i),this.updateNewRowTemplate();var o=this._g;this._top&&o.selectionMode==t.SelectionMode.ListBox&&(o.rows.forEach(function(e,i){e._setFlag(t.RowColFlags.Selected,0==i,!0)}),o.select(0,o.selection.col))}},enumerable:!0,configurable:!0}),i.prototype.updateNewRowTemplate=function(){var e=this._g,i=e.editableCollectionView,o=e.rows,n=this._nrt,r=i&&i.canAddNew&&e.allowAddNew&&!e.isReadOnly,l=o.indexOf(n),s=this._top?0:o.length-1,a=!1;if(!r&&l>-1){var c=e.selection;c.row==l&&e.select(c.row-1,c.col),o.removeAt(l)}else r&&(l<0?a=!0:l!=s&&(o.removeAt(l),a=!0),a&&(this._top?o.insert(0,n):o.push(n)),n&&(n._ubv=null,n._setFlag(t.RowColFlags.ParentCollapsed,!1),this._top&&e.selectionMode==t.SelectionMode.ListBox||n._setFlag(t.RowColFlags.Selected,!1)))},i.prototype._attach=function(){var e=this._g;e&&(e.pasting.addHandler(this._pastingData,this),e.pasted.addHandler(this._pastedData,this),e.loadedRows.addHandler(this.updateNewRowTemplate,this),e.hostElement.addEventListener("keydown",this._keydownBnd,!0))},i.prototype._detach=function(){var e=this._g;e&&(e.pasting.removeHandler(this._pastingData,this),e.pasted.removeHandler(this._pastedData,this),e.loadedRows.removeHandler(this.updateNewRowTemplate),e.hostElement.removeEventListener("keydown",this._keydownBnd,!0))},i.prototype._keydown=function(t){t.defaultPrevented||t.keyCode!=e.Key.Escape||null==this._g.activeEditor&&this._top&&this._nrt.dataItem&&(this._nrt.dataItem=null,this._g.invalidate())},i.prototype._beginningEdit=function(e,t){if(!t.cancel){var i=e.rows[t.row];i instanceof o&&this._handleEditStarting(e,t,i)}},i.prototype._pastingData=function(e,t){t.cancel||(this._pasting=!0)},i.prototype._pastedData=function(e,t){this._pasting=!1},i.prototype._rowEditStarting=function(e,t){if(this._pasting){var i=e.rows[t.row];i instanceof o&&this._handleEditStarting(e,t,i)}},i.prototype._rowEditEnding=function(e,t){var i=e.editableCollectionView,o=this._nrt.dataItem;if(i&&this._top&&o&&!t.cancel){var n=i.currentAddItem;if(!(n&&n==o))for(var r in n=i.addNew(),o)n[r]=o[r]}},i.prototype._rowEditEnded=function(e,t){var i=this,o=e.editableCollectionView;if(o&&!this._committing)if(this._top){if(t.cancel)return;var n=this._nrt.dataItem;if(n){this._committing=!0,this._nrt.dataItem=null;var r=this._g.rows,l=o.items.indexOf(n)+1;l<r.length&&t._rng.setRange(l,-1),e.onRowAdded(t)?o.commitNew():o.cancelNew(),this._committing=!1}setTimeout(function(){e.select(0,e.columns.firstVisibleIndex),i.updateNewRowTemplate()},20)}else o.isAddingNew&&o.commitNew()},i.prototype._handleEditStarting=function(t,i,o){var n=t.editableCollectionView;if(n&&n.canAddNew)if(this._top)if(null==this._nrt.dataItem){var r=null,l=n.sourceCollection,s=n.newItemCreator;r=e.isFunction(s)?s():l&&l.length?new l[0].constructor:{},this._nrt.dataItem=r}else n.currentAddItem&&(t.onRowAdded(i)||n.cancelNew());else{r=n.currentAddItem&&n.currentAddItem==o.dataItem?n.currentAddItem:n.addNew();n.moveCurrentTo(r);var a=this._nrt.isSelected;this.updateNewRowTemplate(),a&&i.row>-1&&(t.rows[i.row].isSelected=!0),t.isUpdating||t.refresh(!0),t.onRowAdded(i)||n.cancelNew()}},i}();t._AddNewHandler=i;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t}(t.Row);t._NewRowTemplate=o}(e.grid||(e.grid={}))}(wijmo||(wijmo={})),function(e){!function(t){"use strict";var i;!function(e){e[e.None=0]="None",e[e.Cells=1]="Cells",e[e.ColumnHeaders=2]="ColumnHeaders",e[e.RowHeaders=4]="RowHeaders",e[e.AllHeaders=6]="AllHeaders",e[e.All=7]="All"}(i=t.AllowMerging||(t.AllowMerging={}));var o=function(){function o(e){null!=e&&console.error('** WARNING: the "grid" parameter has been deprecated. Please remove it.')}return o.prototype.getMergedRange=function(o,n,r,l){void 0===l&&(l=!0);var s=o.grid,a=o.cellType,c=o.columns,u=o.rows,h=u[n],d=c[r];if(h instanceof t._NewRowTemplate)return null;if(!(h instanceof t.Row&&d instanceof t.Column))return null;if(o==s.columnHeaders){var p=s._getColumnGroup(n,r);if(p){var g=p._rng,f=o.columns;return f.isFrozen(g.col)!=f.isFrozen(g.col2)&&(g=g.clone(),f.isFrozen(r)?g.col2=f.frozen-1:g.col=f.frozen),g}}if(s.showGroups&&!s.childItemsPath&&h instanceof t.GroupRow&&h.dataItem instanceof e.collections.CollectionViewGroup&&a==t.CellType.Cell){g=new t.CellRange(n,r);if(d.aggregate==e.Aggregate.None){for(;g.col>0&&c[g.col-1].aggregate==e.Aggregate.None&&g.col!=c.frozen;)g.col--;for(;g.col2<c.length-1&&c[g.col2+1].aggregate==e.Aggregate.None&&g.col2+1!=c.frozen;)g.col2++}for(;g.col<r&&!c[g.col].visible;)g.col++;return g.isSingleCell?null:g}var _=!1,m=i,w=t.CellType;switch(s.allowMerging){case m.None:_=!0;break;case m.Cells:_=a!=w.Cell;break;case m.ColumnHeaders:_=a!=w.ColumnHeader&&a!=w.TopLeft;break;case m.RowHeaders:_=a!=w.RowHeader&&a!=w.TopLeft;break;case m.AllHeaders:_=a==w.Cell}if(_)return null;if(a==w.Cell){var C=s.editableCollectionView,v=C?C.currentAddItem:null;if(v&&h.dataItem==v)return null}if(c[r].allowMerging){g=new t.CellRange(n,r);var y=o._vrb,b=0,R=u.length-1;n>=u.frozen?!l||a!=t.CellType.Cell&&a!=t.CellType.RowHeader||s._vtRows<u.length&&y&&(b=y.topRow,R=y.bottomRow):u.length>u.frozen&&(R=u.frozen-1);for(var E=n-1;E>=b&&this._mergeCell(o,E,r,n,r);E--)g.row=E;for(var S=n+1;S<=R&&this._mergeCell(o,n,r,S,r);S++)g.row2=S;for(;g.row<n&&!u[g.row].visible;)g.row++;if(!g.isSingleCell)return g}if(u[n].allowMerging){g=new t.CellRange(n,r),y=o._vrb;var x=0,H=c.length-1;r>=c.frozen?!l||a!=t.CellType.Cell&&a!=t.CellType.ColumnHeader||s._vtCols<c.length&&y&&(x=y.leftCol,H=y.rightCol):H=c.frozen-1;for(var P=r-1;P>=x&&this._mergeCell(o,n,P,n,r);P--)g.col=P;for(var z=r+1;z<=H&&this._mergeCell(o,n,r,n,z);z++)g.col2=z;for(;g.col<r&&!c[g.col].visible;)g.col++;if(!g.isSingleCell)return g}return null},o.prototype._mergeCell=function(e,i,o,n,r){var l=e.rows[i],s=e.rows[n];if(!l||!s)return!1;if(l instanceof t.GroupRow||l instanceof t._NewRowTemplate||s instanceof t.GroupRow||s instanceof t._NewRowTemplate)return!1;var a=e.grid.editableCollectionView,c=a?a.currentAddItem:null;if(c&&(l.dataItem==c||s.dataItem==c))return!1;if(i!=n&&e.rows.isFrozen(i)!=e.rows.isFrozen(n))return!1;if(o!=r&&e.columns.isFrozen(o)!=e.columns.isFrozen(r))return!1;if(i!=n){if(o>0&&(l.allowMerging&&this._mergeCell(e,i,o-1,i,o)||s.allowMerging&&this._mergeCell(e,n,o-1,n,o)))return!1;if(r<e.columns.length-1&&(l.allowMerging&&this._mergeCell(e,i,r,i,r+1)||s.allowMerging&&this._mergeCell(e,n,r,n,r+1)))return!1}return e.getCellData(i,o,!0)==e.getCellData(n,r,!0)},o}();t.MergeManager=o}(e.grid||(e.grid={}))}(wijmo||(wijmo={})),function(e){!function(t){"use strict";var i=function(){function i(o,n){var r;if(this._row=-1,this._col=-1,this._edge=0,n instanceof Element){if(e.closest(n,".wj-flexgrid")!=o.hostElement)return;o=n,this._target=n}if(!(o instanceof Element)||o instanceof t.FlexGrid){if(o instanceof t.FlexGrid)this._target=o.hostElement,r=this._g=o;else{if(!(o instanceof t.GridPanel))throw"First parameter should be a FlexGrid or GridPanel.";this._target=o.hostElement,this._p=o,r=this._g=this._p.grid}n instanceof MouseEvent&&(this._target=n.target,"mousedown"==n.type&&(r._rcBounds=null)),n=e.mouseToPage(n),this._pt=n.clone();var l=r.controlRect,s=r._szClient,a=r.topLeftCells,c=r._eTL,u=r.headersVisibility,h=t.HeadersVisibility,d=u&h.Row?a.columns.getTotalSize():0,p=u&h.Column?a.rows.getTotalSize():0,g=u&h.Column?p+c.offsetTop:0,f=r._eBL,_=f.offsetHeight;if(n.x-=l.left,n.y-=l.top,r.rightToLeft&&(n.x=l.width-n.x),this._p||n.x>=0&&n.y>=c.offsetTop&&s&&n.x<=s.width+d&&n.y<=s.height+p&&(n.y<g?this._p=n.x<d?r.topLeftCells:r.columnHeaders:n.y<f.offsetTop?this._p=n.x<d?r.rowHeaders:r.cells:this._p=n.x<d?r.bottomLeftCells:r.columnFooters),null!=this._p){var m=this._p.rows,w=this._p.columns,C=this._p.cellType,v=t.CellType,y=this._p._getFrozenPos(),b=C==v.TopLeft||C==v.ColumnHeader?p:C==v.BottomLeft||C==v.ColumnFooter?_:m.getTotalSize(),R=C==v.TopLeft||C==v.BottomLeft||C==v.RowHeader?d:w.getTotalSize();C==v.RowHeader||C==v.Cell?(n.y-=p,(n.y>y.y||y.y<=0)&&(n.y-=r._ptScrl.y,n.y+=this._p._getOffsetY())):C!=v.BottomLeft&&C!=v.ColumnFooter||(n.y-=f.offsetTop),C!=v.ColumnHeader&&C!=v.Cell&&C!=v.ColumnFooter||(n.x-=d,(n.x>y.x||y.x<=0)&&(n.x-=r._ptScrl.x)),C!=v.ColumnHeader&&C!=v.TopLeft||(n.y-=g-p),this._edge=0;var E=i._SZEDGE[this._g.isTouching?1:0];if(this._g.isTouching&&(E=i._SZEDGE[1],n.x-=E/2),this._row=n.y>b?-1:m.getItemAt(n.y),this._col=n.x>R?-1:w.getItemAt(n.x),this._row<0||this._col<0)return void(this._p=null);if(this._col>-1){var S=w[this._col];n.x-S.pos<=E&&(this._edge|=1);var x=S.pos+S.renderSize-n.x;x<=E&&(this._edge|=4,x<=E/2&&(this._edge|=16))}if(this._row>-1){var H=m[this._row];n.y-H.pos<=E&&(this._edge|=2);var P=H.pos+H.renderSize-n.y;P<=E&&(this._edge|=8,P<=E/2&&(this._edge|=32))}}}else{var z=e.closest(o,".wj-cell"),M=z?z[t.GridPanel._INDEX_KEY]:null;M&&(this._target=o,this._row=M.row,this._col=M.col,this._rng=M.rng,this._p=M.panel,this._g=M.panel.grid)}}return Object.defineProperty(i.prototype,"point",{get:function(){return this._pt},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"cellType",{get:function(){return this._p?this._p.cellType:t.CellType.None},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"panel",{get:function(){return this._p},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"grid",{get:function(){return this._p?this._p.grid:null},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"row",{get:function(){return this._row},enumerable:!0,configurable:!0}),i.prototype.getRow=function(){return this._p&&this._row>-1?this._p.rows[this._row]:null},Object.defineProperty(i.prototype,"col",{get:function(){return this._col},enumerable:!0,configurable:!0}),i.prototype.getColumn=function(e){var i=this._p,o=i&&this._col>-1?i.columns[this._col]:null;if(o&&e){var n=i.grid;o=i.cellType===t.CellType.ColumnHeader&&n._hasColumnGroups()?n._getColumnGroup(this._row,this._col):n._getBindingColumn(i,this._row,o)}return o},Object.defineProperty(i.prototype,"range",{get:function(){return this._rng||(this._rng=new t.CellRange(this._row,this._col)),this._rng},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"edgeLeft",{get:function(){return 0!=(1&this._edge)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"edgeTop",{get:function(){return 0!=(2&this._edge)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"edgeRight",{get:function(){return 0!=(4&this._edge)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"edgeFarRight",{get:function(){return 0!=(16&this._edge)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"edgeBottom",{get:function(){return 0!=(8&this._edge)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"edgeFarBottom",{get:function(){return 0!=(32&this._edge)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"target",{get:function(){return this._target},enumerable:!0,configurable:!0}),i._SZEDGE=[6,30],i}();t.HitTestInfo=i}(e.grid||(e.grid={}))}(wijmo||(wijmo={})),function(e){!function(t){t.softInput=function(){return e._getModule("wijmo.input")}}(e.grid||(e.grid={}))}(wijmo||(wijmo={})),function(e){!function(t){"use strict";var i=function(){function i(){}return i.prototype.updateCell=function(c,u,h,d,p,g){var f=c.grid,_=f.rightToLeft,m=c.rows,w=c.columns,C=m[u],v=w[h],y=u,b=h,R=C instanceof t.GroupRow?C:null,E=C instanceof t._NewRowTemplate?C:null,S=v.renderWidth,x=C.renderHeight,H=c.cellType,P="wj-cell",z="",M={display:""},T=t.CellType;(0!=g&&d.firstElementChild&&(1==d.childNodes.length&&"checkbox"==d.firstElementChild.type||(d.textContent="")),p&&!p.isSingleCell)&&(u=p.row,h=p.col,y=p.row2,b=p.col2,C=m[u],v=w[h],R=C instanceof t.GroupRow?C:null,x=(V=p.getRenderSize(c)).height,S=V.width);var I=f._getBindingColumn(c,u,v),D=I.dataType||C.dataType,A=I.dataMap||C.dataMap,j=H==T.Cell?f._getMapEditor(C,I):null,O=H==T.RowHeader||H==T.Cell&&(!R||f.childItemsPath),L=O&&j==t.DataMapEditor.RadioButtons,k=D==e.DataType.Boolean&&!A,B=I.isContentHtml||C.isContentHtml,N=v.pos,F=C.pos,G=f._ptScrl;if(f._useFrozenDiv()&&H==T.Cell&&!f.editRange)h<w.frozen&&y>=m.frozen?F+=G.y:u<m.frozen&&b>=w.frozen&&(N+=G.x);else{var V=f._szClient;y<m.frozen&&(F=Math.min(F,V.height),x=Math.min(x,Math.max(0,V.height-F)),F-=G.y),b<w.frozen&&(N=Math.min(N,V.width),S=Math.min(S,Math.max(0,V.width-N)),N-=G.x)}_?M.right=N+"px":M.left=N+"px",y>=m.frozen&&(F-=c._getOffsetY()),M.top=F+"px",M.width=S+"px",M.height=x+"px",M.zIndex="",(u<m.frozen||h<w.frozen)&&(M.zIndex=u<m.frozen&&h<w.frozen?2:1);var K=!1,W=f.alternatingRowStep;if(W&&(p&&p.row!=p.row2||(K=C.visibleIndex%(W+1)==0,1==W&&(K=!K))),H==T.Cell)R&&(P+=" wj-group"),K&&(P+=" wj-alt"),(u<m.frozen||h<w.frozen)&&(P+=" wj-frozen"),E&&(P+=" wj-new"),C.cssClass&&(P+=" "+C.cssClass),I.cssClass&&(P+=" "+I.cssClass);else{P+=" wj-header",K&&(P+=" wj-header-alt"),C.cssClass&&H==T.ColumnHeader&&(P+=" "+C.cssClass),I.cssClass&&H==T.RowHeader&&(P+=" "+I.cssClass);var q=!1;H!=T.ColumnHeader&&H!=T.TopLeft||f.allowResizing&t.AllowResizing.Columns&&(q=null!=f._mouseHdl._getResizeCol(c,b)),q||H!=T.RowHeader||f.allowResizing&t.AllowResizing.Rows&&(q=null!=f._mouseHdl._getResizeRow(c,y)),q&&(P+=" wj-big-header")}C.cssClassAll&&(P+=" "+C.cssClassAll),I.cssClassAll&&(P+=" "+I.cssClassAll);var U=t.SelectedState,J=c.getSelectedState(u,h,p);switch(J!=U.None&&H==T.Cell&&!k&&f.editRange&&f.editRange.contains(u,h)&&(J=U.None),J){case U.Active:P+=" wj-state-active";break;case U.Cursor:P+=" wj-state-selected wj-state-active";break;case U.Selected:P+=" wj-state-multi-selected"}y==m._lastFrozen&&(P+=" wj-frozen-row"),b==w._lastFrozen&&(P+=" wj-frozen-col"),(I.wordWrap||C.wordWrap)&&(P+=" wj-wrap"),(I.multiLine||C.multiLine)&&(P+=" wj-multiline");var Y=I.getAlignment(C);Y&&(z=" wj-align-"+Y);var X=H,$=f._isTransposed(),Z=(X==T.ColumnHeader&&!$||X==T.RowHeader&&$)&&f._hasColumnGroups()?f._getColumnGroup(u,h):null;if(Z&&Z.align&&(z=" wj-align-"+Z.align),M.paddingLeft=M.paddingRight=M.paddingTop=M.paddingBottom="",H==T.Cell&&f.rows.maxGroupLevel>-1&&h==w.firstVisibleIndex&&f.treeIndent){var Q=R?Math.max(0,R.level):m.maxGroupLevel+1,ee=Math.min(f.treeIndent*Q+f._cellPadLeft,S-f._cellPadHorz)+"px";_?M.paddingRight=ee:M.paddingLeft=ee}S<=f._cellPadHorz&&null==d.getAttribute(t.FlexGrid._WJS_MEASURE)&&(M.paddingLeft=M.paddingRight=0);var te=H==T.Cell&&h==w.firstVisibleIndex&&R&&R.hasChildren&&!n(f,u,h);if(te&&(z=""),0!=g){var ie=c.getCellData(u,h,!1),oe=c.getCellData(u,h,!0);if(te){var ne=s(R);oe=R.getGroupHeader()||e.escapeHtml(oe),d.innerHTML=ne.outerHTML+" "+oe}else if(H!=T.ColumnHeader||y!=f._getSortRowIndex()&&I==v)if(H==T.RowHeader&&!oe&&function(){var e=!1;if(h==f._getEditColumnIndex()){var i=f.editableCollectionView,n=i?i.currentEditItem:null;oe=d.innerHTML=n&&C.dataItem==n?a("pencil"):C instanceof t._NewRowTemplate?a("asterisk"):"",e=!0}var r=I._tpl;return r&&(o(r,d,ie,oe,C,I),e=!0),e}());else if(H!=T.Cell||D!=e.DataType.Boolean||A||R&&!e.isBoolean(ie))if(H==T.Cell&&!L&&n(f,u,h)){var re=I.inputType||C.inputType;if(re||(re=D!=e.DataType.Number||A?"text":"tel"),!A&&!I.mask&&!C.mask){var le=c.getCellData(u,h,!1);e.isNumber(le)&&(oe=function(t,i){i=i||"n";var o=e.Globalize._parseNumericFormat(i);switch(o.spec){case"d":case"x":break;case"e":i=i.replace(/[0-9]/g,"");break;default:i="p"==o.spec?"P15":"r",o.scale&&(i+=Array(o.scale/3+1).join(","))}return e.Globalize.formatNumber(t,i,!0)}(le,I.format||C.format))}d.innerHTML=(I.multiLine||C.multiLine)&&"checkbox"!=re?'<textarea wrap="soft"></textarea>':'<input type="'+re+'"/>';var se=d.children[0];e.addClass(se,"wj-grid-editor wj-form-control"),e.disableAutoComplete(se),B&&A&&!A.isEditable&&(oe=e.toPlainText(oe)),se.value=oe,se.tabIndex=-1,se.required=I.getIsRequired(C),e.setAttribute(se,"aria-required",se.required);var ae=I.maxLength||C.maxLength;ae&&(se.maxLength=ae),se.style.textAlign=I.getAlignment(C);var ce=I.mask||C.mask;ce&&(se["$WJ-MSKP"]=new e._MaskProvider(se,ce)),f.showPlaceholders&&(se.placeholder=I.header),f._edtHdl._edt=se}else{if(L){var ue=[],he=c.getCellData(u,h,!1);A.getDisplayValues(C.dataItem).forEach(function(t){var i=A.getKeyValue(t)==he?" checked":"",o=f.isReadOnly||C.isReadOnly||v.isReadOnly?" disabled":"",n=e.escapeHtml(t);ue.push('<label><input type="radio" tabindex="-1"'+i+o+' value="'+n+'"><span>'+n+"</span></label>")}),d.innerHTML=ue.join(" "),P+=" "+i._WJC_RADIOMAP}var de=O?I._tpl:null;if(de?o(de,d,ie,oe,C,I):L||(H==T.Cell&&B?d.innerHTML=oe:d.textContent=oe||""),Z&&Z.collapseTo){var pe=Z._rng;if(pe&&(H==T.ColumnHeader&&pe.columnSpan>1||H==T.RowHeader&&pe.rowSpan>1)){var ge=Z.isCollapsed;d.innerHTML='<div role="button" class="'+i._WJC_COLLAPSE+'">'+a(ge?"plus":"minus")+"</div>&nbsp;"+d.innerHTML,ge&&e.addClass(d,"wj-state-collapsed")}}}else{var fe=d.firstChild;f._isNativeCheckbox(fe)||(d.innerHTML='<label><input type="checkbox" class="'+i._WJC_CHECKBOX+'" tabindex="-1"/><span></span></label>',fe=d.querySelector("input")),e.setChecked(fe,ie),fe.disabled=!f.canEditCell(u,h),fe.disabled&&(fe.style.cursor="default"),f.editRange&&f.editRange.contains(u,h)&&(f._edtHdl._edt=fe)}else{d.innerHTML=e.escapeHtml(oe);var _e=I.currentSort;_e&&f.showSort&&(P+=" wj-sort-"+("+"==_e?"asc":"desc"),d.innerHTML+="&nbsp;"+function(e){var t=a("+"==e.currentSort?"up":"down"),i=e.grid.collectionView;if(i&&i.sortDescriptions.length>1){var o=e.currentSortIndex;o>-1&&(t+='<span class="wj-sort-index">'+(o+1)+"</span>")}return t}(I)),f.allowPinning&&e.contains(f.hostElement,d)&&l(d,h<f.frozenColumns)}if(j==t.DataMapEditor.DropDownList&&f.showDropDown&&f.canEditCell(u,h)&&t.softInput()){var me=r();d.insertBefore(me,d.firstChild),n(f,u,h)&&(P+=" wj-hasdropdown")}}if(H==T.RowHeader||H==T.ColumnHeader){var we=H==T.RowHeader?!R&&!E&&C.allowDragging&&0!=(f.allowDragging&t.AllowDragging.Rows):(Z||v).allowDragging&&0!=(f.allowDragging&t.AllowDragging.Columns);e.setAttribute(d,"draggable",we?"true":null)}P+=z,d.className!=P&&(d.className=P);var Ce=d.style;for(var ve in M)Ce[ve]!==M[ve]&&(Ce[ve]=M[ve]);if(f._edtHdl._edt&&f._edtHdl._edt.parentElement==d){var ye=f._root,be=ye.getBoundingClientRect(),Re=d.getBoundingClientRect(),Ee=be.top+ye.clientHeight-Re.top,Se=be.left+ye.clientWidth-Re.left;Re.height>Ee&&(d.style.height=Ee+"px"),Re.width>Se&&(d.style.width=Se+"px")}if((H==T.Cell||H==T.RowHeader)&&f._getShowErrors()){var xe=f._getError(c,u,h,!1);f._edtHdl._setCellError(d,xe)}if(f.itemFormatter&&f.itemFormatter(c,u,h,d),f.formatItem.hasHandlers){var He=i._fmtItemArgs;He?(He._p=c,He._rng.setRange(u,h,y,b),He._cell=d):He=i._fmtItemArgs=new t.FormatItemEventArgs(c,new t.CellRange(u,h,y,b),d),He._updateContent=!1!==g,f.onFormatItem(He)}},i.prototype.disposeCell=function(e){},i.prototype.getEditorValue=function(t){var i=t._edtHdl._edt;if(i instanceof HTMLInputElement)switch(i.type){case"checkbox":return i.checked;case"radio":return i.value}if(i instanceof HTMLInputElement||i instanceof HTMLTextAreaElement){var o=i["$WJ-MSKP"],n=o?o._applyMask():i.value,r=i.maxLength;if(e.isNumber(r)&&r>-1&&n.length>r){var l=e.culture.Globalize.numberFormat["%"]||"%",s=n.length&&n[n.length-1]==l;n=n.substr(0,r),s&&n.indexOf(l)<0&&(n+=l)}return n}return null},i._WJC_RADIOMAP="wj-radio-map",i._WJC_CHECKBOX="wj-cell-check",i._WJC_COLLAPSE="wj-elem-collapse",i._WJC_DROPDOWN="wj-elem-dropdown",i._WJC_PIN="wj-elem-pin",i._tplDdBtn=c(i._WJC_DROPDOWN,"down"),i._tplCtx={row:null,col:null,value:null,text:null,item:null},i}();function o(t,o,n,r,l,s){var a=i._tplCtx;a.value=n,a.text=r,a.item=l.dataItem,a.row=l,a.col=s;var c=e.isString(t)?e.evalTemplate(t,a):t(a,o);null!=c&&(o.innerHTML=c)}function n(e,t,i){return e.editRange&&e.editRange.contains(t,i)}function r(){var t=i._ddBtn;return t||(t=i._ddBtn=e.createElement(i._tplDdBtn),e.setAriaLabel(t,e.culture.FlexGrid.ariaLabels.toggleDropDown),e.setAttribute(t,"aria-expanded",!1)),t.cloneNode(!0)}function l(t,o){var n=c(i._WJC_PIN,"pin"),r=e.createElement(n);e.toggleClass(r,"wj-state-pinned",o),e.setAttribute(r,"aria-pressed",o),t.insertBefore(r,t.firstChild)}function s(t){var o=i._WJC_COLLAPSE,n=(t.isCollapsed?"":"down-")+(t.grid.rightToLeft?"left":"right"),r=e.createElement('<button class="wj-btn wj-btn-glyph '+o+'" type="button" tabindex="-1">'+a(n)+"</button>");return e.setAriaLabel(r,e.culture.FlexGrid.ariaLabels.toggleGroup),e.setAttribute(r,"aria-expanded",!t.isCollapsed),r}function a(e){return'<span class="wj-glyph-'+e+'"></span>'}function c(e,t){return'<button class="wj-btn wj-btn-glyph wj-right {cls}" type="button" tabindex="-1">{glyph}</button>'.replace("{cls}",e).replace("{glyph}",a(t))}t.CellFactory=i}(e.grid||(e.grid={}))}(wijmo||(wijmo={})),function(e){!function(t){"use strict";var i=function(){function i(i){var o=this;this._rng=null,this._edt=null,this._edItem=null,this._edtCanceled=!1,this._list=null,this._fullEdit=!1,this._evtInput=null,this._evtChange=null,this._cstEdtValue=null,this._validating=!1,this._g=i,this._evtInput=document.createEvent("HTMLEvents"),this._evtInput.initEvent("input",!0,!1),this._evtChange=document.createEvent("HTMLEvents"),this._evtChange.initEvent("change",!0,!1),i.selectionChanging.addHandler(function(e,t){if(o.finishEditing()){var n=i._selHdl.selection.row;if(n!=t.row){var r=i.rows.length;(n>-1&&n<r?i.rows[n].dataItem:null)!=(t.row>-1&&t.row<r?i.rows[t.row].dataItem:null)&&o._commitRowEdits()}}else t.cancel=!0}),i.lostFocus.addHandler(function(){var t=e.getActiveElement();t&&"fixed"==getComputedStyle(t).position?o.finishEditing():o._commitRowEdits()});var n=i.hostElement;i.addEventListener(n,"mousedown",function(e){if(!e.defaultPrevented&&0==e.button&&!i._mouseHdl._szRowCol){var n=i.hitTest(e);n.cellType!=t.CellType.Cell&&n.cellType!=t.CellType.None&&(o.finishEditing()||o.finishEditing(!0))}},!0),i.addEventListener(n,"compositionend",this._keypress.bind(this))}return i.prototype.startEditing=function(i,o,n,r,l){void 0===i&&(i=!0);var s=this._g,a=s._selHdl.selection;if(o=e.asNumber(o,!0,!0),n=e.isString(n)?s.columns.indexOf(n):e.asNumber(n,!0,!0),null==o&&(o=a.row),null==n&&(n=a.col),null==r&&(r=!0),!this._allowEdit(o,n))return!1;var c=s.getMergedRange(s.cells,o,n,!1);c||(c=new t.CellRange(o,n));var u=s.rows[o].dataItem;if(s.scrollIntoView(c.row,c.col,!0),!s.select(c,!0))return!1;if(!s.rows[o]||u!=s.rows[o].dataItem)return!1;if(this.activeEditor){if(c.equals(this._rng))return!0;if(!this.finishEditing())return!1}var h=new t.CellRangeEventArgs(s.cells,c,l);if(!s.onBeginningEdit(h))return!1;var d=s.editableCollectionView,p=!1;d&&((p=(u=s.rows[o].dataItem)!=d.currentEditItem)&&s.onRowEditStarting(h),d.editItem(u),p&&(s.onRowEditStarted(h),this._edItem=u));var g=s.rows[o],f=s._getBindingColumn(s.cells,o,s.columns[n]),_=f.dataMap||g.dataMap,m=t.DataMapEditor.RadioButtons,w=g.dataMap&&g.dataMapEditor==m||f.dataMap&&f.dataMapEditor==m;if(this._fullEdit=e.asBoolean(i),this._rng=c,this._list=null,_&&!w&&!f.editor){var C=_.getDisplayValues(u);(f.isContentHtml||g.isContentHtml)&&(C=C.map(function(t){return e.toPlainText(t)})),this._list=C}if(w){var v=s._activeCell||s.hostElement.querySelector(".wj-cell.wj-state-active");if(v){var y=l?l.target:null;y instanceof HTMLSpanElement&&(y=e.closest(y,"label")),y instanceof HTMLLabelElement&&(y=y.querySelector("input")),this._edt=y instanceof HTMLInputElement?y:v.querySelector("input"),this._updateRowHeaderCell(o)}}else c.isSingleCell?this._updateEditorCell(o,n,p):s.refresh(!1);var b=this._edt;if(b){if("checkbox"==b.type||"radio"==b.type)this._fullEdit=!1;else if(r){var R=0,E=b.value.length,S=!1,x=e.culture.Globalize.numberFormat["%"]||"%",H=s.getCellData(o,n,!1);if(e.isNumber(H)?S=b.value.indexOf(x)>-1:null==H&&(S=/^p/i.test(f.format))&&b.value.indexOf(x)<0&&(b.value+=x),S){var P=b.value;for(R=0,E=P.length;E>0&&(P[E-1]==x||" "==P[E-1]);)E--;for(;R<E&&P[R]==x;)R++}l&&"keydown"==l.type&&l.keyCode==e.Key.Space&&(R=E),e.setSelectionRange(b,R,E),e.isIE()&&"right"==b.style.textAlign&&(b.style.paddingRight="1px")}s.onPrepareCellForEdit(h)}return r&&!s.containsFocus()&&s.focus(),null!=b&&!b.disabled&&!b.readOnly},i.prototype.finishEditing=function(i){var o=this._edt;if(!o)return this._removeListBox(),!0;var n=this._g,r=this._rng,l=new t.CellEditEndingEventArgs(n.cells,r),s=n.containsFocus();if(!i){var a=n.hostElement.querySelector(".wj-control.wj-state-focused");if(a){var c=e.Control.getControl(a);c&&c.containsFocus()&&c.onLostFocus(l)}}if((l.cancel=i,!i&&n.validateEdits)&&(f=this._getValidationError())){l.cancel=!0;var u=n.cells.getCellElement(r.row,r.col);u&&(this._setCellError(u,f),l.stayInEditMode=!0)}if(this._cstEdtValue=null,l.data=n.cells.getCellData(r.topRow,r.leftCol,!1),!n.onCellEditEnding(l)&&l.stayInEditMode)return s?setTimeout(function(){o.select()}):o.select(),this._fullEdit=!0,!1;if(!l.cancel){for(var h=this._cstEdtValue,d=h&&!e.isUndefined(h.value)?h.value:n.cellFactory.getEditorValue(n),p=r.topRow;p<=r.bottomRow&&p<n.rows.length;p++)for(var g=r.leftCol;g<=r.rightCol&&g<n.columns.length;g++){var f,_=n._getBindingColumn(n.cells,p,n.columns[g]),m=n.rows[p],w=_&&_.dataMap||m&&m.dataMap,C=!w||w.serializeKeys;if(!n.cells.setCellData(p,g,d,C,!1)&&n.validateEdits)if(f=this._getValidationError(!0)){l.cancel=!0;var v=n.cells.getCellElement(r.row,r.col);return v&&(this._setCellError(v,f),l.stayInEditMode=!0),!1}}o.value==this._edtValue&&o.dispatchEvent(this._evtChange)}this._edt=null,this._rng=null,this._list=null,this._edtValue=null,this._edtCanceled=l.cancel,this._removeListBox();var y=e.closest(o,".wj-cell");return e.contains(y,e.getActiveElement())&&n._setFocusNoScroll(y),!l.cancel&&l.refresh&&n._refreshOnEdit?n.refresh(!1):this._updateEditorCell(r.row,r.col,!1),s&&n.focus(),n.onCellEditEnded(l),!0},i.prototype._setCustomEditorValue=function(e){this._cstEdtValue={value:e}},i.prototype._setCellError=function(t,i){var o=this._g;""==i&&(i=null),e.toggleClass(t,"wj-state-invalid",null!=i);var n=o.errorTip,r=o.activeEditor;n?(n.setTooltip(t,i),r&&e.contains(t,r)&&e.setAttribute(r,"title","")):e.setAttribute(t,"title",i),r&&t==o.activeCell&&!e.contains(t,r)&&n&&n.setTooltip(r,i)},Object.defineProperty(i.prototype,"activeEditor",{get:function(){return this._edt},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"editRange",{get:function(){return this._rng},enumerable:!0,configurable:!0}),i.prototype.getClipString=function(i,o,n,r){var l,s=this,a=this._g,c=a.selectionMode,u=[],h=0!=(o&t.ClipStringOptions.CSV),d=h?"\r\n":"\n",p=h?",":"\t",g=0!=(o&t.ClipStringOptions.InvisibleRows),f=t.SelectionMode,_=null!=i;if(!i&&c!=f.ListBox)for(var m=a.rows,w=0;w<m.length;w++)if(m[w].isSelected){c=f.ListBox;break}if(!i)switch(a._selHdl._expandSelection(),i=a.selection,c){case f.Row:case f.RowRange:case f.ListBox:i.col=0,i.col2=a.columns.length-1;break;case f.MultiRange:var C=a.selectedRanges;if(C.length>1){var v=this._sameCols(C),y=this._sameRows(C);if(v||y){(C=C.slice()).sort(function(e,t){var i=e.topRow-t.topRow;return i||e.leftCol-t.leftCol});for(var b=0;b<C.length;b++)for(var R=C[b],E=b+1;E<C.length;E++)R.contains(C[E])&&(C.splice(E,1),E--);if(v){var S=[];return C.forEach(function(e){S.push(s.getClipString(e,o,n,r)),n=!1}),S.join(d)}var x;if(y)return C.forEach(function(e){var t=s.getClipString(e,o,n,r).split(d);null==x?(x=t,r=!1):t.forEach(function(e,t){x[t]+=p+e})}),x.join(d)}}}var H=i.col>-1&&i.col2>-1;if(n&&H&&(l=a.columnHeaders).rows.forEach(function(e,t){if(g||e.isVisible){var n=s._getRowClipString(l,t,i,o,r);u.push(n)}}),i.row>-1&&i.row2>-1)if(l=a.cells,c!=f.ListBox||_){e.assert(i.bottomRow<l.rows.length,"Row index must be less than the number of rows.");for(b=i.topRow;b<=i.bottomRow;b++)if(g||l.rows[b].isVisible){var P=this._getRowClipString(l,b,i,o,r);u.push(P)}}else l.rows.forEach(function(e,t){if(e.isSelected&&(g||e.isVisible)){var n=s._getRowClipString(l,t,i,o,r);u.push(n)}});return u.join(d)},i.prototype._getRowClipString=function(i,o,n,r,l){var s=[],a=i.rows[o],c=t.ClipStringOptions,u=0!=(r&c.CSV),h=0!=(r&c.InvisibleColumns),d=0==(r&c.Unformatted),p=0!=(r&c.SkipMerged);if(a.isVisible){if(l)for(var g=i.cellType==t.CellType.ColumnHeader?i.grid.topLeftCells:i.grid.rowHeaders,f=0;f<g.columns.length;f++)if(h||g.columns[f].isVisible){var _=g.getCellData(o,f,!0);p&&this._skipMergedCell(i,null,o,f)&&(_=""),s.push(this._getCellClipString(_,r))}if(n.col>-1&&n.col2>-1){e.assert(n.rightCol<i.columns.length,"Column index must be less than the number of columns.");for(f=n.leftCol;f<=n.rightCol;f++){if(h||i.columns[f].isVisible)!(_=i.getCellData(o,f,d))&&a instanceof t.GroupRow&&f==i.columns.firstVisibleIndex&&(_=e.toPlainText(a.getGroupHeader())),p&&this._skipMergedCell(i,null,o,f)&&(_=""),s.push(this._getCellClipString(_,r))}}}return s.join(u?",":"\t")},i.prototype._skipMergedCell=function(e,t,i,o){var n=e.grid.getMergedRange(e,i,o,!1);return!(!n||(t&&(n.row=Math.max(t.topRow,n.row),n.col=Math.max(t.leftCol,n.col)),n.row==i&&n.col==o))},i.prototype._getCellClipString=function(i,o){e.isString(i)||(i=e.isDate(i)?i.toJSON():null!=i?i.toString():""),i=i.replace(/\t/g," ");var n=0!=(o&t.ClipStringOptions.QuoteAll);return(n=n||/\n|^"|"$/.test(i))||0==(o&t.ClipStringOptions.CSV)||(n=i.indexOf(",")>-1),n&&(i='"'+(i=i.replace(/"/g,'""'))+'"'),i},i.prototype._sameRows=function(e){for(var t=e[0],i=1;i<e.length;i++)if(e[i].topRow!=t.topRow||e[i].bottomRow!=t.bottomRow)return!1;return!0},i.prototype._sameCols=function(e){for(var t=e[0],i=1;i<e.length;i++)if(e[i].leftCol!=t.leftCol||e[i].rightCol!=t.rightCol)return!1;return!0},i.prototype.setClipString=function(i,o){var n=this,r=this._g,l=r.editableCollectionView,s=null==o,a=t.SelectionMode;if(s)switch(r._selHdl._expandSelection(),o=r.selection,r.selectionMode){case a.Row:case a.RowRange:case a.ListBox:o.col=0,o.col2=r.columns.length-1;break;case a.MultiRange:var c=r.selectedRanges;if(c.length>1)return l&&l.beginUpdate(),c.forEach(function(e){r.setClipString(i,e)}),l&&l.endUpdate(),void(r.selectedRanges=c)}o=e.asType(o,t.CellRange);var u=this._parseClipString(e.asString(i));!s&&u.length>o.rowSpan&&(u=u.slice(0,o.rowSpan)),this._expandClipRows(u,o);var h=s?new t.CellRange(o.topRow,o.leftCol,o.topRow+u.length-1,o.leftCol+u[0].length-1):o,d=new t.CellRangeEventArgs(r.cells,h,i);if(!r.onPasting(d))return!1;h=new t.CellRange(o.topRow,o.leftCol);var p=new t.CellRangeEventArgs(r.cells,new t.CellRange(o.topRow,-1)),g=!1,f=0,_=o.topRow,m=r.rows,w=r.columns,C=r._getRowsPerItem(),v=u.length>C,y=this._deferPaste(o,u.length);if(e.assert(C>=1,"Invalid RPI value = "+C),r.deferUpdate(function(){var i=-1;l&&y&&(i=l.currentPosition,l.beginUpdate());for(var s=0;s<u.length&&_<m.length;s++,_++){var a=m[_];if(a.isVisible){var c=a.dataItem,d=l?l.currentEditItem:null;if(d&&c!=d&&(r.onRowEditEnding(p),r.onRowEditEnded(p)),a instanceof t._NewRowTemplate&&l){if(y){if(a.dataItem=l.addNew(),p._rng.setRange(r.newRowAtTop?0:_,-1),!r.onRowEditStarting(p)){_--,l.cancelNew();continue}r.onRowEditStarted(p)}else if(1==C||(_+1)%C==1){if(p._rng.setRange(r.newRowAtTop?_%C:_,-1),!r.onRowEditStarting(p)){_--;continue}r.onRowEditStarted(p)}}else c!=d&&(p._rng.setRange(_,-1),r.onRowEditStarting(p),r.onRowEditStarted(p));for(var b=u[s],R=o.leftCol,E=0;E<b.length&&R<w.length;E++,R++){var S=w[R];if(S.isVisible){if(n._allowEdit(_,R)){var x=b[E],H=x.length;H>1&&'"'==x[0]&&'"'==x[H-1]&&x.indexOf("\n")>-1&&(x=x.substr(1,H-2));var P=S.maxLength||a.maxLength;P&&(x=x.substr(0,P));var z=new t.CellRangeEventArgs(r.cells,new t.CellRange(_+f,R),x);if(r.onPastingCell(z)){l&&(l.editItem(c),n._edItem=l.currentEditItem);var M=r.getCellData(_,R,!1),T=z.data,I=t.softInput();if(I){var D=r._getBindingColumn(r.cells,_,r.columns[R]),A=D.editor,j=null,O=null;A instanceof I.InputNumber?(j=A.clamp.bind(A),O=e.DataType.Number):(A instanceof I.InputDate||A instanceof I.InputTime)&&(j=A._clamp.bind(A),O=e.DataType.Date),j&&(T=e.changeType(T,O,D.format,M),e.getType(T)==O&&(T=j(T)))}r.setCellData(_,R,T)&&(z.data=M,r.onPastedCell(z),g=!0)}h.row2=Math.max(h.row2,_+f),h.col2=Math.max(h.col2,R)}}else E--}if(n._edItem&&l instanceof e.collections.CollectionView){var L=new e.collections.NotifyCollectionChangedEventArgs(e.collections.NotifyCollectionChangedAction.Change,n._edItem,_);l.onCollectionChanged(L)}a instanceof t._NewRowTemplate&&l&&(y?(a.dataItem=null,g?(p._rng.setRange(r.newRowAtTop?0:_,-1),r.onRowEditEnding(p),r.onRowEditEnded(p),_--,f++,l.commitNew()):l.cancelNew()):v&&C>1&&(_+1)%C==0&&g&&(p._rng.setRange(r.newRowAtTop?_%C:_,-1),r.onRowEditEnding(p),r.onRowEditEnded(p),_-=C,f++))}else s--}if(l)if(y)l.currentEditItem&&(l.commitEdit(),r.onRowEditEnding(p),r.onRowEditEnded(p)),l.moveCurrentToPosition(i),l.endUpdate(!0);else{var k=l.currentAddItem;!k&&0==o.row&&r.newRowAtTop&&m[0]instanceof t._NewRowTemplate&&(k=m[0].dataItem),k&&(l.editItem(k),n._edItem=k)}h.rowSpan>1&&0==h.topRow&&m[0]instanceof t._NewRowTemplate&&(h.row=h.row2=0),r.select(h)}),r.onPasted(d),g&&e.closest(r.hostElement,"form")){var b=document.createEvent("HTMLEvents"),R=e.createElement("<input>",r.hostElement);b.initEvent("change",!0,!1),R.dispatchEvent(b),e.removeChild(R)}},i.prototype._deferPaste=function(e,i){var o=this._g.rows,n=o.length;if(i>1){if(n>1&&o[0].dataItem!=o[1].dataItem)return!0;if(1==n&&o[0]instanceof t._NewRowTemplate)return!0}return!1},i.prototype._parseClipString=function(e){var t=[],i=(e=(e=e.replace(/\r\n/g,"\n").replace(/\r/g,"\n")).replace(/\n$/,"")).length,o=function(e){return"\n"===e||"\t"===e},n=0,r=0;for(n=0;n<i;n++){var l=!1,s=!1,a=!1;if('"'===e[n]){for(var c=!1,u=!1,h=n+1;h<i;h++){var d=e[h];if('"'===d){var p=h+1;if(p<i)o(e[p])&&(u=!0);else u=!0}else!c&&o(d)&&(c=!0);if(u)break}u&&c&&(l=!0)}for(r=n;r<i&&!a;r++){var g=e[r];'"'===g?l&&(s=!s):o(g)&&(s||(this._parseClipCell(t,e,n,r,"\n"==g),n=r,r==i-1&&(n=r+1),a=!0))}if(r==i){this._parseClipCell(t,e,n,r,!1);break}}return 0==t.length&&t.push([""]),t},i.prototype._parseClipCell=function(e,t,i,o,n){e.length||e.push([]);var r=t.substr(i,o-i),l=r.length;if(l>2&&'"'==r[0]&&'"'==r[l-1]){var s=r.substr(1,l-2),a=function(e){return s.indexOf(e)>-1};(a('""')||a("\t")||a("\n"))&&(r=s.replace(/""/g,'"'))}else"\t"==r&&(r="");e[e.length-1].push(r),n&&e.push([])},i.prototype._expandClipRows=function(e,t){for(var i=e.length,o=0,n=0;n<i;n++)o=Math.max(o,e[n].length);for(var r=this._g,l=0,s=0,a=t.topRow;a<=t.bottomRow;a++)r.rows[a].isVisible&&l++;for(var c=t.leftCol;c<=t.rightCol;c++)r.columns[c].isVisible&&s++;if((l>1||s>1)&&(1==l&&(l=i),1==s&&(s=o),s%o==0&&l%i==0)){for(c=o;c<s;c++)for(a=0;a<i;a++)e[a].push(e[a%i][c%o]);for(a=i;a<l;a++)e.push(e[a%i])}},i.prototype._updateEditorCell=function(t,i,o){var n=this._g,r=n.cells.getCellElement(t,i),l=n._useFrozenDiv()&&(t<n.frozenRows||i<n.frozenColumns);!r||l||n._hasPendingUpdates()?n.refresh(!1):n.onUpdatingView(new e.CancelEventArgs)&&(this._updateCell(r),(o||n._getHasValidation())&&this._updateRowHeaderCell(t),n.onUpdatedView())},i.prototype._updateRowHeaderCell=function(e){var i=this._g;if(i.headersVisibility&t.HeadersVisibility.Row){var o=i.rowHeaders,n=i._getEditColumnIndex(),r=o.getCellElement(e,n);r&&this._updateCell(r)}},i.prototype._updateCell=function(i){var o=new t.HitTestInfo(i,null),n=t.FlexGrid._WJS_UPDATING;o.panel&&(e.addClass(i,n),o.grid.cellFactory.updateCell(o.panel,o.row,o.col,i,o.range),e.removeClass(i,n))},i.prototype._getValidationError=function(t){var i=this,o=this._g,n="";if(o&&this._rng&&!this._validating){var r=this._rng.row,l=this._rng.col,s=o.activeEditor,a=o.cellFactory.getEditorValue(o),c=o.getCellData(r,l,!1);if(t&&(n=o._getError(o.cells,r,l,!0)),!n&&o._getHasValidation()){if(s&&(n=s.validationMessage),!n){var u=o.columns[l],h=o.rows[r];!o._getBindingColumn(o.cells,r,u).getIsRequired(h)||null!=a&&""!==a||(n=this._getRequiredMsg())}!n&&o.setCellData(r,l,a,!0,!1)&&(n=o._getError(o.cells,r,l,!1),o.setCellData(r,l,c,!1,!1))}if(!n){var d=e.Control.getControl(e.closest(s,".wj-control"));if(d&&d!=o&&d.invalidInput.hasHandlers){var p=function(e,t){t.cancel&&(n=o._getError(o.cells,r,l,!0)||i._getBadInputMsg(),t.cancel=!1)};this._validating=!0;var g=s.value;if(d.invalidInput.addHandler(p),d._containsFocus()){var f=e.closest(d.hostElement,".wj-cell");f&&f.focus()}d.onLostFocus(),d.invalidInput.removeHandler(p),s.value=g,s.select(),this._validating=!1}}}return n},i.prototype._getRequiredMsg=function(){if(!i._msgRequired){var e=document.createElement("input");e.required=!0,i._msgRequired=e.validationMessage}return i._msgRequired},i.prototype._getBadInputMsg=function(){if(!i._msgBadInput){var e=document.createElement("input");e.pattern="x",e.value="a",i._msgBadInput=e.validationMessage||"Bad Input"}return i._msgBadInput},i.prototype._allowEdit=function(e,i){var o=this._g;if(o.isReadOnly||o.selectionMode==t.SelectionMode.None)return!1;if(o.collectionView&&!o.editableCollectionView)return!1;if(null!=e){if(e<0||e>=o.rows.length)return!1;var n=o.rows[e];if(!n||n.isReadOnly||!n.isVisible)return!1}if(null!=i){if(i<0||i>=o.columns.length)return!1;var r=o._getBindingColumn(o.cells,e,o.columns[i]);if(!r||r.isReadOnly||!r.isVisible)return!1}return!0},i.prototype._commitRowEdits=function(){var e=this._g;if(this.finishEditing()&&this._edItem){var i=e.editableCollectionView;if(i&&(i.currentEditItem||i.currentAddItem)){var o=new t.CellRangeEventArgs(e.cells,e.selection);e.onRowEditEnding(o),i.commitEdit(),e.onRowEditEnded(o)}this._edItem=null}},i.prototype._keydown=function(t){var i=this._edt;switch(t.keyCode){case e.Key.F2:return this._fullEdit=!this._fullEdit,t.preventDefault(),!0;case e.Key.F4:return this._toggleListBox(t),t.preventDefault(),!0;case e.Key.Space:return!i||"checkbox"!=i.type||i.disabled||i.readOnly||(e.setChecked(i,i.indeterminate||!i.checked),this.finishEditing(),t.preventDefault()),!0;case e.Key.Enter:if(t.preventDefault(),i&&t.altKey){var o=t.target;if(o instanceof HTMLTextAreaElement&&"soft"==o.wrap){o.style.setProperty("ime-mode","auto","important");var n=o.value,r=o.selectionStart,l=o.selectionEnd;o.value=n.substr(0,r)+"\n"+n.substr(l),e.setSelectionRange(o,r+1),o.style.imeMode=""}return!0}return i&&this._lbx?(this._toggleListBox(t),!0):!this.finishEditing();case e.Key.Tab:return t.preventDefault(),!this.finishEditing();case e.Key.Escape:return t.preventDefault(),this.finishEditing(!0),!0;case e.Key.Up:case e.Key.Down:case e.Key.Left:case e.Key.Right:case e.Key.PageUp:case e.Key.PageDown:case e.Key.Home:case e.Key.End:if(this._lbx)return this._keydownListBox(t);if(t.altKey)switch(t.keyCode){case e.Key.Up:case e.Key.Down:return this._toggleListBox(t),t.preventDefault(),!0}if(this._fullEdit)switch(t.keyCode){case e.Key.PageUp:case e.Key.PageDown:t.preventDefault()}else if(this.finishEditing())return!1}return!0},i.prototype._keydownListBox=function(t){var i=!0;if(this._lbx)switch(t.keyCode){case e.Key.Up:t.altKey?this._toggleListBox(t):this._lbx.selectedIndex>0&&this._lbx.selectedIndex--;break;case e.Key.Down:t.altKey?this._toggleListBox(t):this._lbx.selectedIndex++;break;case e.Key.Home:case e.Key.PageUp:this._lbx.selectedIndex=0;break;case e.Key.End:case e.Key.PageDown:this._lbx.selectedIndex=this._lbx.collectionView.items.length-1;break;default:i=!1}return!!i&&(t.preventDefault(),!0)},i.prototype._keypress=function(t){if("AltLeft"!=t.code&&"AltRight"!=t.code){var i=this._edt,o=t.charCode||32,n=this._list;if(i&&"checkbox"!=i.type&&e.getActiveElement()==i&&n&&n.length>0&&o>=32){var r=i.selectionStart,l=i.value.substr(0,r);t.target==i&&t.charCode&&(l+=String.fromCharCode(t.charCode),r++);var s=this._findString(n,l,!0);if(s<0&&!this._g.caseSensitiveSearch&&(s=this._findString(n,l,!1)),s>-1){var a=this._lbx;a&&(a.selectedIndex=s),i.value=n[s],e.setSelectionRange(i,r,i.value.length),i.dispatchEvent(this._evtInput),t.preventDefault&&t.preventDefault()}}}else t.preventDefault()},i.prototype._findString=function(e,t,i){i||(t=t.toLowerCase());for(var o=0;o<e.length;o++){var n=e[o];if(null!=n&&(n=n.toString(),i||(n=n.toLowerCase()),0==n.indexOf(t)))return o}return-1},i.prototype._toggleListBox=function(e,i){var o=this._g,n=o._selHdl.selection,r=o.isTouching;if(i||(i=n),this._lbx&&(this._removeListBox(),n.intersects(i)))return o.activeEditor?o.activeEditor.focus():o.containsFocus()||o.focus(),!0;if(!i.isValid)return!1;var l=o.rows[i.row],s=o._getBindingColumn(o.cells,i.row,o.columns[i.col]),a=l.dataMap||s.dataMap,c=o._getMapEditor(l,s);if(!a||c!=t.DataMapEditor.DropDownList||!t.softInput())return!1;if(null!=s.editor)return!1;if(!i.intersects(o.editRange)&&!this.startEditing(!0,i.row,i.col,!r,e))return!1;var u=this._lbx=this._createListBox();return requestAnimationFrame(function(){return u.showSelection()}),r&&u.focus(),!0},i.prototype._createListBox=function(){var i=this,o=this._g,n=o.activeEditor,r=this._rng,l=o.rows[r.row],s=o._getBindingColumn(o.cells,r.row,o.columns[r.col]),a=s.isContentHtml||l.isContentHtml,c=s.dataMap||l.dataMap,u=s.dropDownCssClass||l.dropDownCssClass,h=document.createElement("div");this._removeListBox(),e.addClass(h,"wj-dropdown-panel wj-grid-listbox"),e.addClass(h,u);var d=n?n.value:o.getCellData(r.row,r.col,!0),p=new e.input.ListBox(h,{maxHeight:4*l.renderHeight,isContentHtml:a,itemsSource:c.getDisplayValues(l.dataItem),selectedValue:d});p.addEventListener(h,"keydown",function(t){switch(t.keyCode){case e.Key.Enter:case e.Key.Escape:i._removeListBox(),o.focus()}}),p.addEventListener(h,"click",function(){i._removeListBox(),o.focus(),i.finishEditing()}),p.gotFocus.addHandler(function(){p.containsFocus()&&n&&n.focus()}),p.selectedIndexChanged.addHandler(function(){var t=o.activeEditor;t&&(t.value=i._list[p.selectedIndex],t.dispatchEvent(i._evtInput),e.setSelectionRange(t,0,t.value.length))});var g=o.cells.getCellElement(r.row,r.col);if(g){e.showPopup(h,g,!1,!1,!1);var f=g.querySelector("."+t.CellFactory._WJC_DROPDOWN);e.setAttribute(f,"aria-expanded",!0)}else e.showPopup(h,o.getCellBoundingRect(r.row,r.col)),h[e.Control._OWNR_KEY]=o.hostElement;return p},i.prototype._removeListBox=function(){var t=this._lbx;t&&(this._lbx=null,e.hidePopup(t.hostElement,function(){t.dispose()}))},i._msgRequired="",i._msgBadInput="",i}();t._EditHandler=i}(e.grid||(e.grid={}))}(wijmo||(wijmo={})),function(e){!function(t){var i=function(){function i(i,o){this._col=e.asType(i,t.Column),this._ctl=o,this._tbx=o.hostElement.querySelector("input"),e.assert(this._col instanceof t.Column,"Invalid Column"),e.assert(this._ctl instanceof e.Control,"Invalid edit control"),e.assert(this._tbx instanceof HTMLInputElement,"Input element not found in editor");var n=this._ctl;this._prop=e.isUndefined(n.value)?e.isUndefined(n.checkedItems)?e.isUndefined(n.text)?null:"text":"checkedItems":"value",e.assert(null!=this._prop,"value, text properties not found in editor");var r=t.softInput();r&&(this._isDropDown=n instanceof r.DropDown,this._isComboBox=n instanceof r.ComboBox,this._isAutoComplete=n instanceof r.AutoComplete,this._isInputDateTime=n instanceof r.InputDateTime,this._isInputMask=n instanceof r.InputMask),this._updateFocusBnd=this._updateFocus.bind(this),this._keydownBnd=this._keydown.bind(this),this._cmpstartBnd=this._cmpstart.bind(this),this._mousedownBnd=this._mousedown.bind(this),this._connect(),this._col.gridChanged.addHandler(this._connect,this),this._hideEditor(),this._updateFocus()}return Object.defineProperty(i.prototype,"grid",{get:function(){return this._g},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"column",{get:function(){return this._col},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"control",{get:function(){return this._ctl},enumerable:!0,configurable:!0}),i.prototype.dispose=function(){this._disconnect(),this._isDropDown&&(this._isDropDown=!1),this._g=this._col=this._ctl=this._tbx=null},i.prototype._connect=function(){var e=this._col?this._col.grid:null;if(e!=this._g&&(this._disconnect(),e)){var t=e.hostElement,i=e.addEventListener.bind(e),o=this._updateFocusBnd;this._g=e,this._hideEditor(),this._updateFocus(),i(t,"keydown",this._keydownBnd,!0),i(t,"mousedown",this._mousedownBnd,!0),i(t,"mouseup",o,!0),i(t,"blur",o,!0),i(t,"focus",o),i(this._tbx,"compositionstart",this._cmpstartBnd),e.gotFocus.addHandler(o,this),e.selectionChanged.addHandler(o,this),e.prepareCellForEdit.addHandler(this._prepareCellForEdit,this),e.cellEditEnding.addHandler(this._cellEditEnding,this),e.cellEditEnded.addHandler(this._cellEditEnded,this)}},i.prototype._disconnect=function(){var e=this._g;if(e){var t=e.hostElement,i=e.removeEventListener.bind(e),o=this._updateFocusBnd;i(t,"keydown",this._keydownBnd),i(t,"mousedown",this._mousedownBnd),i(t,"mouseup",o),i(t,"blur",o),i(t,"focus",o),i(this._tbx,"compositionstart",this._cmpstartBnd),e.gotFocus.removeHandler(o,this),e.selectionChanged.removeHandler(o,this),e.prepareCellForEdit.removeHandler(this._prepareCellForEdit,this),e.cellEditEnding.removeHandler(this._cellEditEnding,this),e.cellEditEnded.removeHandler(this._cellEditEnded,this),this._g=null}},i.prototype._prepareCellForEdit=function(t,i){if(!i.cancel&&i.getColumn(!0)==this._col){var o=this.grid,n=this._ctl,r=this._tbx,l=this._prop,s=i.range,a=i.data,c=a?a.type:"",u=o.getCellData(s.row,s.col,"text"==l||this._isInputMask),h=!1;if(this._isComboBox&&(this._isAutoComplete&&(n._oldText=""),n.isRequired||(n.selectedIndex=-1,r.value=""),this._isInputDateTime&&n._setDropdown(n._ddDate)),"checkedItems"==l&&(n.showFilterInput&&(n.showFilterInput=!1,n.showFilterInput=!0),null!=u&&0!=u.length||(n[l]=[],n.selectedIndex=0)),null!=u||!n.isRequired)if(n[l]=u,this._isAutoComplete)clearTimeout(n._toSearch),(d=n.collectionView)&&(d.filter||n._rxHighlight)&&(n._rxHighlight=null,d.filter=null),u&&(n.selectedIndex=n._findNext(u,1,-1));switch(c){case"keydown":case"mousedown":var d;if(e.isUndefined(a.keyCode)||a.keyCode==e.Key.F4||a.altKey)if(h=this._isDropDown,this._isAutoComplete)if(null==u||e.isString(u))(d=n.collectionView)&&((d.filter||n._rxHighlight)&&(n._rxHighlight=null,d.filter=null),n.selectedIndex=u?n._findNext(u,1,-1):-1)}if(o.showPlaceholders&&!n.placeholder&&(r.placeholder=this._col.header),this._showEditor(),o._edtHdl._fullEdit=!0,0==c.indexOf("key")&&32==a.keyCode&&(e.setSelectionRange(r,r.value.length),a.preventDefault()),e.isIE()&&!o.imeEnabled)if("keypress"==c&&a.key)setTimeout(function(){r.value=a.key,e.setSelectionRange(r,1);var t=document.createEvent("HTMLEvents");t.initEvent("input",!0,!1),r.dispatchEvent(t)}),a.preventDefault();else if("compositionstart"==c){var p=r.value.length;e.setSelectionRange(r,p)}this._isDropDown&&(n.isDroppedDown=h)}},i.prototype._cellEditEnding=function(t,i){if(!i.cancel&&i.getColumn(!0)==this._col){var o=this.grid,n=this._ctl,r=this._prop;if(this._isAutoComplete){var l=n.selectedIndex;if(e.isNumber(l)&&l<0){var s=n.collectionView;s&&1==s.items.length?n.selectedIndex=0:this._col.isRequired&&(i.cancel=!0)}}!i.cancel&&r&&o._edtHdl._setCustomEditorValue(n[r])}},i.prototype._cellEditEnded=function(e,t){this._hideEditor(),this._updateFocus()},i.prototype._cmpstart=function(t){var i=this;e.isIE()?setTimeout(function(){i._activateEditor(t)}):this._activateEditor(t)},i.prototype._keydown=function(t){if(!t.defaultPrevented&&this._checkColumn(t.target))if(this.grid.activeEditor){if(t.keyCode==e.Key.Enter&&this._isDropDown){var i=this._ctl;i.isDroppedDown&&(i.isDroppedDown=!1,t.preventDefault(),t.stopImmediatePropagation())}}else if(this._isDropDown){var o=t.keyCode;switch(o){case e.Key.F4:case e.Key.Up:case e.Key.Down:(o==e.Key.F4||t.altKey)&&(this._activateEditor(t),t.preventDefault())}}},i.prototype._checkColumn=function(t){var i=this._g;if(e.contains(t,this._tbx)||null!=t&&this._imeEditor()===t){var o=i._selHdl.selection;return i._getBindingColumn(i.cells,o.row,i.columns[o.col])==this._col}return!1},i.prototype._mousedown=function(i){if(!i.defaultPrevented&&0==i.button&&!i.shiftKey&&!i.ctrlKey&&!i.metaKey&&this._isDropDown&&e.closestClass(i.target,t.CellFactory._WJC_DROPDOWN)){var o=this.grid,n=o.hitTest(i);n.getColumn(!0)==this._col&&(o.select(n.range),o.refresh(),this._activateEditor(i),i.preventDefault())}},i.prototype._activateEditor=function(e){var t=this.grid;if(!t.activeEditor){var i=t._selHdl.selection;if(i.isValid)return t.startEditing(!0,i.row,i.col,!0,e)}return!1},i.prototype._showEditor=function(){var t=this.grid,o=t.activeEditor,n=e.closest(o,".wj-cell");if(n){var r=this._tbx,l=this._ctl.hostElement;e.setCss(l,i._cssVisible),e.toggleClass(r,"wj-grid-ime",!1),n.innerHTML="",n.appendChild(l),t._edtHdl._edt=r,this._imeEditor()?this._initImeEditInput():(r.select(),r.focus(),o.value="")}},i.prototype._hideEditor=function(){var t=this.grid,o=this._ctl.hostElement,n=this._tbx;this._isDropDown&&(this._ctl.isDroppedDown=!1),n.setCustomValidity("");var r=n.value;n.value=r+" ",n.value=r,e.setCss(o,i._cssHidden),e.toggleClass(n,"wj-grid-ime",!0),t&&o.parentElement!=t._root&&t._root.appendChild(o)},i.prototype._updateFocus=function(){var t=this.grid;if(t&&!t.activeEditor){var i=t.hostElement,o=".wj-flexgrid",n=this._tbx,r=e.getActiveElement(),l=t._getTabIndex();if(e.closest(r,o)==i)if(e.closest(n,o)!=i)this._hideEditor();else if(!t.imeEnabled){var s=t._selHdl.selection,a=t._getBindingColumn(t.cells,s.row,t.columns[s.col]);a&&a==this._col&&t.canEditCell(s.row,s.col)?r!==n&&(n.tabIndex=l,n.select(),n.focus()):n.tabIndex>-1&&(n.tabIndex=-1,r==n&&t.focus(!0))}}},i.prototype._initImeEditInput=function(){var o=this,n=this._imeEditor();if(n){var r=this._tbx,l=r&&r.style.color,s=this._ctl,a=function(){if(n.removeEventListener("compositionend",a),e.setCss(n,t._ImeHandler._cssHidden),r){r.style.color=l;var c=function(){s.gotFocus.removeHandler(c),o._g._edtHdl._edt=r;var e=n.value;if(e){r.value=e,i._setSelectionRange(r,e.length,e.length);var t=document.createEvent("HTMLEvents");t.initEvent("input",!0,!1),r.dispatchEvent(t)}};s.gotFocus.addHandler(c),r.focus()}};n.addEventListener("compositionend",a),r&&(r.style.color="transparent")}},i._setSelectionRange=function(t,i,o){if(void 0===o&&(o=i),e.contains(document.body,t)&&!t.disabled&&"none"!=t.style.display)try{t.setSelectionRange(e.asNumber(i),e.asNumber(o),e.isIE()?null:"backward"),t.focus()}catch(e){}},i.prototype._imeEditor=function(){var t=this.grid;if(t&&t.imeEnabled){var i=e.getActiveElement();if(i&&(i instanceof HTMLInputElement||i instanceof HTMLTextAreaElement)&&e.hasClass(i,"wj-grid-ime"))return i}return null},i._cssHidden={position:"fixed",left:-32e3,top:-32e3,width:"1px",height:"1px",overflow:"hidden",border:"none"},i._cssVisible={position:"absolute",left:0,top:0,width:"100%",height:"100%"},i}();t._CustomEditor=i}(e.grid||(e.grid={}))}(wijmo||(wijmo={})),function(e){!function(t){"use strict";var i;!function(e){e[e.None=0]="None",e[e.MoveDown=1]="MoveDown",e[e.MoveAcross=2]="MoveAcross",e[e.Cycle=3]="Cycle",e[e.CycleOut=4]="CycleOut",e[e.CycleEditable=5]="CycleEditable"}(i=t.KeyAction||(t.KeyAction={}));var o=function(){function o(e){this._kaTab=i.None,this._kaEnter=i.MoveDown,this._g=e;var t=e.hostElement;e.addEventListener(t,"keypress",this._keypress.bind(this)),e.addEventListener(t,"keydown",this._keydown.bind(this))}return o.prototype._keydown=function(i){var o=this._g,n=o._edtHdl,r=o.selection,l=i.ctrlKey||i.metaKey,s=i.shiftKey,a=i.altKey,c=i.target,u=i.char||i.key,h=!0;if(!l&&!a&&u&&1==u.length&&e.closest(c,".wj-cell")&&c.firstElementChild&&(" "!=u||!s)){var d=c.querySelectorAll("."+t.CellFactory._WJC_RADIOMAP+" label input");if(d&&d.length){for(var p=-1,g=0;g<d.length;g++)if(d[g].checked){p=g;break}u=u.toLowerCase();for(g=0;g<d.length;g++){var f=d[(p+g+1)%d.length];if(" "==u||f.value.toLowerCase()[0]==u){f.click();break}}return void i.preventDefault()}}if(!o._wantsInput(c)){var _=e.tryCast(o.rows[r.row],t.GroupRow),m=o.editableCollectionView,w=o._getKeyCode(i),C=t.SelMove,v=t.SelectionMode,y=i.defaultPrevented&&!(c instanceof HTMLInputElement);if((o.isRangeValid(r)&&!y||l&&65==w)&&(!o.activeEditor||!n._keydown(i)||o._isNativeCheckbox(o.activeEditor))){if(o.autoClipboard){if(l&&(67==w||45==w)){var b=new t.CellRangeEventArgs(o.cells,r);if(o.onCopying(b)){var R=t.HeadersVisibility,E=0!=(o.copyHeaders&R.Column),S=0!=(o.copyHeaders&R.Row),x=o.getClipString(null,!1,E,S)+"\r\n";o._eFocus.focus(),e.Clipboard.copy(x),o.onCopied(b)}return void i.stopPropagation()}if(l&&86==w||s&&45==w)return o.isReadOnly||e.Clipboard.paste(function(e){o.setClipString(e)}),void i.stopPropagation()}switch((s||l)&&"Space"==i.code&&(w=e.Key.Space),w){case e.Key.Space:if(s&&r.isValid)switch(o.selectionMode){case v.CellRange:case v.MultiRange:case v.Row:case v.RowRange:case v.ListBox:o.select(new t.CellRange(r.row,0,r.row,o.columns.length-1),!1)}else if(l&&r.isValid)switch(o.selectionMode){case v.CellRange:case v.MultiRange:o.select(new t.CellRange(0,r.col,o.rows.length-1,r.col),!1)}else(h=this._startEditing(!0,i))&&setTimeout(function(){var t=o.activeEditor;t&&(t.disabled||t.readOnly&&!e.closest(t,".wj-control")?o.finishEditing():"checkbox"==t.type&&(e.setChecked(t,t.indeterminate||!t.checked),o.finishEditing()))}),h=!0;break;case 65:if(l)switch(o.selectionMode){case v.None:case v.Cell:break;default:o.selectAll()}else h=!1;break;case e.Key.Left:l||a?h=!1:r.isValid&&0==r.leftCol&&_&&!_.isCollapsed&&_.hasChildren?_.isCollapsed=!0:this._moveSel(C.None,l?C.Home:C.Prev,s);break;case e.Key.Right:l||i.altKey?h=!1:r.isValid&&0==r.leftCol&&_&&_.isCollapsed?_.isCollapsed=!1:this._moveSel(C.None,l?C.End:C.Next,s);break;case e.Key.Up:l?h=!1:i.altKey&&n._toggleListBox(i)?h=!0:this._moveSel(C.Prev,C.None,s);break;case e.Key.Down:l?h=!1:i.altKey&&n._toggleListBox(i)?h=!0:this._moveSel(C.Next,C.None,s);break;case e.Key.PageUp:if(this._moveSel(i.altKey?C.Home:C.PrevPage,C.None,s),o.rows.frozen&&o.selection.row<o.rows.frozen){var H=o.scrollPosition;H.y&&(o.scrollPosition=new e.Point(H.x,0))}break;case e.Key.PageDown:this._moveSel(i.altKey?C.End:C.NextPage,C.None,s);break;case e.Key.Home:this._moveSel(l?C.Home:C.None,C.Home,s);break;case e.Key.End:this._moveSel(l?C.End:C.None,C.End,s);break;case e.Key.Tab:h=this._performKeyAction(o.keyActionTab,s);break;case e.Key.Enter:h=this._performKeyAction(o.keyActionEnter,s),!s&&m&&null!=m.currentEditItem&&n._commitRowEdits();break;case e.Key.Escape:if(h=!1,m&&(m.currentAddItem||m.currentEditItem)){var P=new t.CellRangeEventArgs(o.cells,o.selection);P.cancel=!0,o.onRowEditEnding(P),m.currentAddItem&&m.cancelNew(),m.currentEditItem&&m.cancelEdit(),o.onRowEditEnded(P),h=!0}o._mouseHdl.resetMouseState();break;case e.Key.Delete:case e.Key.Back:h=this._deleteSel(i);break;case e.Key.F2:h=this._startEditing(!0,i);break;case e.Key.F4:h=n._toggleListBox(i);break;default:h=!1}h&&(o.containsFocus()||o.focus(),i.preventDefault(),i.stopPropagation())}}},o.prototype._performKeyAction=function(e,o){var n=i,r=t.SelMove;switch(e){case n.MoveDown:return this._moveSel(o?r.Prev:r.Next,r.None,!1),!0;case n.MoveAcross:return this._moveSel(r.None,o?r.Prev:r.Next,!1),!0;case n.Cycle:return this._moveSel(r.None,o?r.PrevCell:r.NextCell,!1),!0;case n.CycleEditable:return this._moveSel(r.None,o?r.PrevEditableCell:r.NextEditableCell,!1),!0;case n.CycleOut:var l=this._g.selection;return this._moveSel(r.None,o?r.PrevCell:r.NextCell,!1),!l.equals(this._g.selection)}return!1},o.prototype._keypress=function(t){var i=this,o=this._g;if(!o._wantsInput(t.target)&&!t.defaultPrevented){var n=o._edtHdl;if(o.activeEditor)n._keypress(t);else if(t.charCode>e.Key.Space&&"AltLeft"!=t.code&&"AltRight"!=t.code)if(this._startEditing(!1,t)&&o.activeEditor){var r=e.getActiveElement();if(r instanceof HTMLInputElement&&"checkbox"!=r.type||r instanceof HTMLTextAreaElement){var l=o._selHdl.selection,s=o.getCellData(l.row,l.col,!0),a=o.getCellData(l.row,l.col,!1),c=e.culture.Globalize.numberFormat["%"]||"%",u=String.fromCharCode(t.charCode),h=e.isNumber(a)&&s.indexOf(c)>-1||""==s&&r.value==c,d=!0,p=function(){r.value=h?u+c:u,e.setSelectionRange(r,1),r.dispatchEvent(n._evtInput),n._keypress(t),n._edtValue=r.value!=s?r.value:null};if(o.imeEnabled){var g=o._getBindingColumn(o.cells,l.row,o.columns[l.col]),f=g&&g._edt,_=f&&f.control;if(_&&!_._focus){var m=function(){_.gotFocus.removeHandler(m),d=!1,p()};_.gotFocus.addHandler(m)}}d&&p(),t.preventDefault()}}else if(o.autoSearch){var w=!1;l=o._selHdl.selection;if(t.charCode>32||32==t.charCode&&this._search){t.preventDefault(),this._search+=String.fromCharCode(t.charCode),this._toSearch&&clearTimeout(this._toSearch),this._toSearch=setTimeout(function(){i._toSearch=null,i._search=""},e.Control._SEARCH_DELAY);var C=this._findNext(l.row,l.col);C<0&&this._search.length>1&&(this._search=this._search[this._search.length-1],C=this._findNext(l.row,l.col)),C>-1&&(w=!0,o.select(C,l.col))}w||(this._search="")}}},o.prototype._findNext=function(t,i){var o=this._g,n=o.rows.length;(t<0||1==this._search.length)&&t++;var r=this._search,l=o.caseSensitiveSearch;l||(r=r.toLowerCase());for(var s=o.columns[i].isContentHtml,a=0;a<n;a++){var c=(t+a)%n,u=o.getCellData(c,i,!0).trim();if(s&&(u=e.toPlainText(u)),l||(u=u.toLowerCase()),0==u.indexOf(r))return c}return-1},o.prototype._moveSel=function(e,i,o){var n=this._g,r=n.selectionMode,l=n._selHdl;r!=t.SelectionMode.None&&(r==t.SelectionMode.MultiRange&&l.extendedSelection.clear(),l.moveSelection(e,i,o))},o.prototype._deleteSel=function(e){var i=this,o=this._g,n=o.rows,r=o.editableCollectionView,l=o.selection,s=[],a=new t.CellRange,c=new t.CellEditEndingEventArgs(o.cells,a,e),u=t.SelectionMode;if(!o._edtHdl._allowEdit())return!1;if(o.allowDelete&&(null==r||r.canRemove&&!r.isAddingNew&&!r.isEditingItem)&&0==(s=n.filter(function(e){return e.isSelected})).length)switch(o.selectionMode){case u.CellRange:case u.MultiRange:var h=o._getDeleteColumnIndex();o.selectedRanges.forEach(function(e){if(e.leftCol==h&&e.rightCol==o.columns.length-1)for(var t=e.topRow;t>-1&&t<=e.bottomRow;t++){var i=n[t];s.indexOf(i)<0&&s.push(i)}});break;case u.Row:l.topRow>-1&&s.push(n[l.topRow]);break;case u.RowRange:for(var d=l.topRow;d>-1&&d<=l.bottomRow;d++)s.push(n[d])}if(s.length>0){var p=0;if(o.deferUpdate(function(){r&&r.beginUpdate();for(var e=s.length-1;e>=0;e--){var i=s[e];i instanceof t._NewRowTemplate||(a.setRange(i.index,-1),o.onDeletingRow(c)&&(r&&i.dataItem?r.remove(i.dataItem):o.rows.removeAt(i.index),p++,o.onDeletedRow(c)))}r&&r.endUpdate(!1)}),p>0){var g=l.topRow;for(g=Math.min(g,o.rows.length-1);g>0&&o.rows[g]instanceof t._NewRowTemplate;)g--;l.row=l.row2=g,o.select(l,!1),o.childItemsPath&&r&&r.refresh()}return!0}return 0==s.length&&(o.deferUpdate(function(){var a=o.scrollPosition,c=-1;s=n.filter(function(e){return e.isSelected});var h=o.selectedRanges.length>1||s.length>1||l.isValid&&n[l.row].dataItem!=n[l.row2].dataItem;if(r&&r.beginUpdate(),s.length){var d=new t.CellRange(0,0,0,o.columns.length-1);s.forEach(function(t){d.row=d.row2=t.index,i._deleteRange(e,d),c=d.bottomRow})}else i._deleteRange(e,l),c=l.bottomRow,o.selectionMode==u.MultiRange&&o._selHdl.extendedSelection.forEach(function(t){i._deleteRange(e,t),c=t.bottomRow});if(o.select(l,!1),o.scrollPosition=a,r){if(h&&r.currentEditItem){r.commitEdit();var p=new t.CellRangeEventArgs(o.cells,new t.CellRange(c,-1));o.onRowEditEnding(p),o.onRowEditEnded(p)}r.endUpdate(!1)}}),!0)},o.prototype._deleteRange=function(e,i){for(var o=this._g,n=o.editableCollectionView,r=new t.CellRange,l=new t.CellEditEndingEventArgs(o.cells,r,e),s=new t.CellRangeEventArgs(o.cells,new t.CellRange(i.topRow,-1)),a=i.topRow;a<=i.bottomRow;a++){var c=o.rows[a];if(!c.isReadOnly)for(var u=i.leftCol;u<=i.rightCol;u++){var h=o._getBindingColumn(o.cells,a,o.columns[u]);if(!h.getIsRequired(c)&&!h.isReadOnly&&o.getCellData(a,u,!0)&&(r.setRange(a,u),l.cancel=!1,o.onBeginningEdit(l))){var d=c.dataItem,p=n?n.currentEditItem:null;p&&d!=p&&(o.onRowEditEnding(s),o.onRowEditEnded(s)),d!=p&&(s._rng.setRange(a,-1),o.onRowEditStarting(s),o.onRowEditStarted(s)),n&&(n.editItem(d),o._edtHdl._edItem=d),o.setCellData(a,u,"",!0,!1),o.onCellEditEnding(l),o.onCellEditEnded(l)}}}},o.prototype._startEditing=function(e,t,i,o){return this._g._edtHdl.startEditing(e,i,o,!0,t)},o}();t._KeyboardHandler=o}(e.grid||(e.grid={}))}(wijmo||(wijmo={})),function(e){!function(t){"use strict";var i,o,n="wj-flexgrid";!function(e){e[e.None=0]="None",e[e.Columns=1]="Columns",e[e.Rows=2]="Rows",e[e.Both=3]="Both",e[e.ColumnsAllCells=4|e.Columns]="ColumnsAllCells",e[e.RowsAllCells=4|e.Rows]="RowsAllCells",e[e.BothAllCells=4|e.Both]="BothAllCells"}(i=t.AllowResizing||(t.AllowResizing={})),function(e){e[e.None=0]="None",e[e.Headers=1]="Headers",e[e.Cells=2]="Cells",e[e.Both=3]="Both"}(t.AutoSizeMode||(t.AutoSizeMode={})),function(e){e[e.None=0]="None",e[e.Columns=1]="Columns",e[e.Rows=2]="Rows",e[e.Both=3]="Both"}(o=t.AllowDragging||(t.AllowDragging={}));var r=function(){function r(i){var o=this,r=i.hostElement,l=i.addEventListener.bind(i),s=i.removeEventListener.bind(i);this._g=i,this._dvMarker=e.createElement('<div class="wj-marker">&nbsp;</div>'),l(r,"mousedown",function(r){if(i._rcBounds=null,!r.defaultPrevented&&0==r.button){var u=r.target;if(!i.containsFocus()){var h=u instanceof HTMLElement&&u.tabIndex>-1?u:i._eFocus;i._setFocusNoScroll(h)}setTimeout(function(){r.defaultPrevented||i.focus()});var d=e.closestClass(u,n);if(d&&d!=i.hostElement||!i.activeEditor&&i._isInputElement(u)&&!o._hasRadioMap(r)&&!i._isNativeCheckbox(u)){var p=i.hitTest(r),g=t.CellType;switch(p.cellType){case g.Cell:i.select(p.range,!1),u instanceof HTMLElement&&"root"!=u.getAttribute("wj-part")&&u.focus();break;case g.ColumnHeader:case g.ColumnFooter:i.scrollIntoView(-1,p.col);break;case g.RowHeader:i.scrollIntoView(p.row,-1)}return void(e.isIE()&&p.cellType!=g.Cell&&i._isInputElement(u)&&u.focus())}var f=document;s(f,"mousemove"),s(f,"mouseup"),l(f,"mousemove",a),l(f,"mouseup",c),o._isDown=!0,o._mousedown(r)}});var a=function(e){o._mousemove(e)},c=function(e){o._isDown=!1,s(document,"mousemove"),s(document,"mouseup"),o._mouseup(e)};l(r,"mouseenter",function(e){i._rcBounds=null}),l(r,"mousemove",this._hover.bind(this)),l(r,"dblclick",this._dblclick.bind(this)),l(r,"click",this._click.bind(this)),l(r,"selectstart",function(e){i._isInputElement(e.target)||e.preventDefault()}),l(r,"wheel",function(t){if(!t.defaultPrevented&&t.deltaY&&!t.ctrlKey&&!t.metaKey){var o=i._root,r=t.deltaY;if((t.shiftKey?o.scrollWidth>o.clientWidth:o.scrollHeight>o.clientHeight)&&e.closestClass(t.target,n)==i.hostElement){switch(t.deltaMode){case 1:r=i.rows.defaultSize*(r<0?-1:1);break;case 2:r=(t.shiftKey?o.clientWidth:o.clientHeight)*(r<0?-1:1);break;case 0:default:e.isSafari()&&(r=e.clamp(r,-150,150))}i.containsFocus()||i._eFocus.focus(),i.finishEditing(!1)&&(t.shiftKey?o.scrollLeft+=r:o.scrollTop+=r),t.preventDefault(),t.stopImmediatePropagation()}}}),l(r,"dragstart",this._dragstart.bind(this)),l(r,"dragover",this._dragover.bind(this)),l(r,"dragleave",this._dragover.bind(this)),l(r,"drop",this._drop.bind(this)),l(r,"dragend",this._dragend.bind(this))}return r.prototype.resetMouseState=function(){var t=this._g,i=t.hostElement;this._updating&&(this._updating=!1,t.endUpdate()),this._dragSrc&&e.removeClass(this._dragSrc,"wj-state-dragsrc"),this._showDragMarker(null),i&&(i.style.cursor=""),e.isSafari()&&this._szRowCol&&t.invalidate(),t.removeEventListener(document,"mousemove"),t.removeEventListener(document,"mouseup"),this._eMouse=null,this._isDown=null,this._htDown=null,this._lbSelState=null,this._szRowCol=null,this._szArgs=null,t._rcBounds=null},r.prototype._mousedown=function(n){var r=this._g,l=n.target,s=r.hitTest(n),a=s.cellType,c=t.CellType,u=n.ctrlKey||n.metaKey;if(this._selDown=r.selection,this._ignoreClick=!1,s.panel==r.cells){if(e.closestClass(l,t.CellFactory._WJC_DROPDOWN)){var h=r.hitTest(l);return r._edtHdl._toggleListBox(n,h.range),n.preventDefault(),void(this._ignoreClick=!0)}var d=r.editRange;if(d&&d.contains(s.range))return}var p=e.getActiveElement();if(l!=p||!r._isInputElement(l)){if(a==c.None)return r.finishEditing(),void(l!=r._root&&l!=r._fCt&&r._edtHdl._commitRowEdits());if(this._htDown=s,this._eMouse=n,null!=this._szRowCol){var g=r._eFocus;return p!=g&&(g.tabIndex=0,g.focus()),this._ignoreClick=!0,void this._handleResizing(n)}var f=r.allowResizing,_=i;if((a==c.RowHeader||a==c.TopLeft)&&s.edgeBottom&&f&_.Rows&&this._getResizeRowHt(s))this._ignoreClick=!0;else if((a==c.ColumnHeader||a==c.TopLeft)&&s.edgeRight&&f&_.Columns&&this._getResizeColHt(s))this._ignoreClick=!0;else{var m=r.allowDragging,w=o;switch(a){case c.Cell:case c.RowHeader:u&&r.selectionMode==t.SelectionMode.ListBox&&(this._lbSelState=r.rows[s.row].isSelected,e.closest(l,".wj-elem-collapse")&&(this._lbSelState=!1)),this._mouseSelect(n,n.shiftKey),a!=c.RowHeader||m&w.Rows||(n.preventDefault(),r.focus());break;case c.ColumnHeader:r.allowSorting||m&w.Columns||e.closest(l,"button")||this._mouseSelect(n,n.shiftKey)}}}},r.prototype._mousemove=function(e){if(this._htDown&&!e.defaultPrevented){if(0==e.buttons&&this._eMouse&&e.timeStamp-this._eMouse.timeStamp>600)return void this.resetMouseState();if(this._eMouse=e,this._szRowCol)this._handleResizing(e);else{var i=this._g,n=i.allowDragging,r=o,l=t.CellType;switch(this._htDown.cellType){case l.Cell:this._mouseSelect(e,!0);break;case l.RowHeader:n&r.Rows||this._mouseSelect(e,!0);break;case l.ColumnHeader:n&r.Columns||i.allowSorting||this._mouseSelect(e,!0)}}}},r.prototype._mouseup=function(e){var i=this._g;if(!i.isTouching||!(this._dragSrc||e.target instanceof HTMLHtmlElement)){var o=i.hitTest(e),n=this._htDown;if(n&&!e.defaultPrevented&&(this._szArgs&&this._finishResizing(e),!this._szArgs&&o.panel==n.panel&&o.row==n.row&&o.col==n.col)){var r=o.getColumn();if(r)if(!(r._getFlag(t.RowColFlags.HasTemplate)&&!r.cellTemplate)){var l=o.target;if(l!=n.target&&l instanceof HTMLElement){if(n.target instanceof HTMLInputElement){var s=o.point,a=n.point;Math.abs(s.x-a.x)+Math.abs(s.y-a.y)<10&&(l=l.querySelector("input")||l)}var c=document.createEvent("Event");for(var u in c.initEvent("click",!0,!0),e)/Key$|X$|Y$|^button|^(x|y|which)$/.test(u)&&(c[u]=e[u]);l.dispatchEvent(c)}}}this.resetMouseState()}},r.prototype._click=function(i){if(this._ignoreClick&&(this._ignoreClick=!1,i.preventDefault()),!i.defaultPrevented){var o=this._g,n=i.target,r=o.hitTest(n),l=e.tryCast(n,HTMLInputElement),s="input."+t.CellFactory._WJC_CHECKBOX;if(!l){var a=e.closest(n,"label");a&&(l=a.querySelector(s))}if(!l&&o.bigCheckboxes&&(l=n.querySelector(s)),l!=o.activeEditor&&o._isNativeCheckbox(l)){if(r.panel==o.cells){var c=o.getCellData(r.row,r.col,!1);o.startEditing(!1,r.row,r.col,!1,i)?(o.activeEditor.checked=!c,o.finishEditing(),o.focus()):l.checked=c}return}if(this._hasRadioMap(i))return void this._handleClick(i);var u=i.ctrlKey||i.metaKey;if(o.rows.maxGroupLevel>-1&&e.closestClass(n,t.CellFactory._WJC_COLLAPSE)){var h=o.rows[r.row];if(r.panel==o.cells&&h instanceof t.GroupRow)return void(u?o.collapseGroupsToLevel(h.isCollapsed?h.level+1:h.level):h.isCollapsed=!h.isCollapsed)}if(!u&&!i.shiftKey&&!o.activeEditor&&r.panel==o.cells){var d=o._selHdl.selection;if(d.equals(this._selDown)&&r.range.contains(d))return void o.startEditing(!0,null,null,!0,i)}this._handleClick(i)}},r.prototype._handleClick=function(i){var o=this._g,n=i.target,r=o.hitTest(n),l=i.ctrlKey||i.metaKey,s=r.panel;if(!i.defaultPrevented&&r.grid==o){if(s==o.cells&&this._hasRadioMap(i)){var a=e.closest(n,"label"),c=a&&a.querySelector("input");return void(c&&!c.disabled&&o.startEditing(!1,r.row,r.col,!1,i)&&o.finishEditing()&&(o._edtHdl._edtCanceled?i.preventDefault():o.setCellData(r.row,r.col,a.textContent,!0,o.refreshOnEdit)))}if(!o._isInputElement(n)){if(s==o.topLeftCells){var u=t.SelectionMode;switch(o.selectionMode){case u.None:case u.Cell:break;default:o.selectAll()}return}if(s==o.columnHeaders){if(o.allowPinning&&e.closestClass(n,t.CellFactory._WJC_PIN))this._clickPin(i,r);else if(!o._isTransposed()&&e.closestClass(i.target,t.CellFactory._WJC_COLLAPSE)){if(f=o._getColumnGroup(r.row,r.col))if(l)for(var h=f.isCollapsed,d=f.level,p=[],g=0;g<o.columns.length;g++)(f=o._getColumnGroup(r.row,g))&&f.collapseTo&&f.level==d&&p.indexOf(f)<0&&(p.push(f),f.isCollapsed=!h);else f.isCollapsed=!f.isCollapsed}else n instanceof HTMLSpanElement&&n.parentElement instanceof HTMLLabelElement&&(n=n.parentElement.querySelector("input")),n instanceof HTMLInputElement||this._clickSort(i,r),o.focus();return}if(s==o.rowHeaders){var f;if(o._isTransposed()&&e.closestClass(i.target,t.CellFactory._WJC_COLLAPSE))if(f=o._getColumnGroup(r.row,r.col))if(l){h=f.isCollapsed,d=f.level,p=[];for(var _=0;_<o.rows.length;_++)(f=o._getColumnGroup(_,r.col))&&f.collapseTo&&f.level==d&&p.indexOf(f)<0&&(p.push(f),f.isCollapsed=!h)}else f.isCollapsed=!f.isCollapsed;return}if(s==o.cells){if(r.row<0)return void this._clickSort(i,r);if(e.closestClass(n,t.CellFactory._WJC_COLLAPSE)){var m=o.rows[r.row];return void(m instanceof t.GroupRow&&(l?o.collapseGroupsToLevel(m.isCollapsed?m.level+1:m.level):m.isCollapsed=!m.isCollapsed))}e.closestClass(n,t.CellFactory._WJC_DROPDOWN)&&o._edtHdl._toggleListBox(i,r.range)}}}},r.prototype._hasRadioMap=function(i){var o=i.target;if(e.closest(o,"label")){var r=e.closestClass(o,t.CellFactory._WJC_RADIOMAP);return e.closestClass(r,n)==this._g.hostElement}return!1},r.prototype._clickSort=function(i,o){var n=this._g,r=n.allowSorting,l=n.collectionView,s=l?l.sortDescriptions:null,a=i.ctrlKey||i.metaKey,c=i.shiftKey;if(l&&l.canSort&&r!=t.AllowSorting.None){var u=o.panel.columns[o.col],h=n._getBindingColumn(o.panel,o.row,u),d=h?h._getBindingSort():null;if(h.allowSorting&&d){if(u==h){var p=n.getMergedRange(o.panel,o.row,o.col,!1);if(p&&p.columnSpan>1)return}var g=new t.CellRangeEventArgs(o.panel,o.range,i);if(n.onSortingColumn(g)){n._edtHdl._commitRowEdits();for(var f=-1,_=null,m=0;m<s.length;m++)if(s[m].property==d){f=m,_=s[m];break}s.deferUpdate(function(){if(a&&c)s.clear();else if(_){var i=a;!i&&n.isTouching&&(i=0==_.ascending),i?s.removeAt(f):s[f]=new e.collections.SortDescription(d,!_.ascending)}else{r!=t.AllowSorting.MultiColumn&&s.clear();var o=new e.collections.SortDescription(d,!0);s.push(o)}}),n.onSortedColumn(g)}}}},r.prototype._clickPin=function(e,i){var o=this._g,n=o.columns,r=n.frozen,l=o.allowPinning;l==t.AllowPinning.Both&&(l=e.shiftKey?t.AllowPinning.ColumnRange:t.AllowPinning.SingleColumn);var s=new t.CellRangeEventArgs(o.cells,i.range);o.onPinningColumn(s)&&(l==t.AllowPinning.SingleColumn&&(i.col>=r?(n.moveElement(i.col,r,!1),n.frozen++):(n.moveElement(i.col,r-1,!1),n.frozen--)),l==t.AllowPinning.ColumnRange&&(i.col+1!=r?n.frozen=i.col+1:n.frozen=0),o.onPinnedColumn(s))},r.prototype._dblclick=function(e){if(!e.defaultPrevented){var o,n=this._g,r=n.hitTest(e),l=e.ctrlKey||e.metaKey,s=r.range,a=r.cellType,c=t.CellType,u=n.selection,h=n.allowResizing,d=i;if(r.edgeRight&&h&d.Columns){if(a==c.TopLeft)r.panel.columns[r.col].allowResizing&&(o=new t.CellRangeEventArgs(r.panel,new t.CellRange(-1,r.col)),n.onAutoSizingColumn(o)&&n.onResizingColumn(o)&&(this._ignoreClick=!0,n.autoSizeColumn(r.col,!0),n.onAutoSizedColumn(o),n.onResizedColumn(o),e.preventDefault()));else if(a==c.ColumnHeader||4&h){a==c.ColumnHeader&&l&&u.containsColumn(r.col)&&(s=u);for(var p=a==c.RowHeader||a==c.BottomLeft,g=s.leftCol;g<=s.rightCol;g++)r.panel.columns[g].allowResizing&&(o=new t.CellRangeEventArgs(r.panel,new t.CellRange(-1,g)),n.onAutoSizingColumn(o)&&n.onResizingColumn(o)&&(this._ignoreClick=!0,n.autoSizeColumn(g,p),n.onResizedColumn(o),n.onAutoSizedColumn(o),e.preventDefault()))}this.resetMouseState()}else if(r.edgeBottom&&h&d.Rows){if(a==c.TopLeft||a==c.BottomLeft){if(r.getRow().allowResizing){p=a==c.TopLeft||null;o=new t.CellRangeEventArgs(r.panel,new t.CellRange(r.row,-1)),n.onAutoSizingRow(o)&&n.onResizingRow(o)&&(this._ignoreClick=!0,n.autoSizeRow(r.row,p),n.onResizedRow(o),n.onAutoSizedRow(o),e.preventDefault())}}else if(a==c.RowHeader||4&h){var f=r.panel;p=f==n.columnHeaders||f==n.columnFooters&&null;l&&u.containsRow(r.row)&&f==n.cells&&(s=u);for(var _=s.topRow;_<=s.bottomRow;_++)f.rows[_].allowResizing&&(o=new t.CellRangeEventArgs(f,new t.CellRange(_,-1)),n.onAutoSizingRow(o)&&n.onResizingRow(o)&&(this._ignoreClick=!0,n.autoSizeRow(_,p),n.onResizedRow(o),n.onAutoSizedRow(o),e.preventDefault()))}this.resetMouseState()}else;}},r.prototype._hover=function(e){if(!this._isDown){var i=this._g,o=i.hitTest(e),n="";return this._szRowCol=this._getResizeColHt(o)||this._getResizeRowHt(o),this._szRowCol instanceof t.Column?n="col-resize":this._szRowCol instanceof t.Row&&(n="row-resize"),this._szStart=this._szRowCol?this._szRowCol.renderSize:0,i.hostElement.style.cursor=n,o}return null},r.prototype._getResizeColHt=function(e){var o,n=this._g.allowResizing,r=e.cellType,l=t.CellType;return n&i.Columns&&(r==l.ColumnHeader||r==l.TopLeft||4&n)&&(e.edgeRight&&(o=e.getColumn()),e.edgeFarRight&&(o=this._getResizeCol(e.panel,e.col)||e.getColumn()),e.edgeLeft&&(o=this._getResizeCol(e.panel,e.col,!0)||o)),o&&o.allowResizing?o:null},r.prototype._getResizeRowHt=function(e){var o,n=this._g.allowResizing,r=i,l=e.cellType,s=t.CellType;return n&r.Rows&&(l==s.RowHeader||l==s.TopLeft||4&n)&&(e.edgeBottom&&(o=e.getRow()),e.edgeFarBottom&&(o=this._getResizeRow(e.panel,e.row)||e.getRow()),e.edgeTop&&(o=this._getResizeRow(e.panel,e.row,!0)||o)),o&&o.allowResizing?o:null},r.prototype._getResizeCol=function(e,i,o){void 0===o&&(o=!1);var n=this._g,r=e.columns;if(o){for(var l=i-1;l>=0;l--){if((s=r[l]).isVisible)return this._asResizable(s)}if(r==n.columns&&0!=(n.headersVisibility&t.HeadersVisibility.Row))for(l=(r=n.rowHeaders.columns).length-1;l>=0;l--){if((s=r[l]).isVisible)return this._asResizable(s)}return null}for(l=i+1;l<r.length;l++){if((s=r[l]).isVisible)return this._asResizable(s)}if(i==r.length-1&&r==n.rowHeaders.columns){r=n.columns;for(l=0;l<r.length;l++){var s;if((s=r[l]).isVisible)return this._asResizable(s)}}return null},r.prototype._getResizeRow=function(e,i,o){void 0===o&&(o=!1);var n=this._g,r=e.rows;if(o){for(var l=i-1;l>=0;l--){if((s=r[l]).isVisible)return this._asResizable(s)}if(r==n.rows&&0!=(n.headersVisibility&t.HeadersVisibility.Column))for(l=(r=n.columnHeaders.rows).length-1;l>=0;l--){if((s=r[l]).isVisible)return this._asResizable(s)}return null}for(l=i+1;l<r.length;l++){if((s=r[l]).isVisible)return this._asResizable(s)}if(i==r.length-1&&r==n.columnHeaders.rows){r=n.rows;for(l=0;l<r.length;l++){var s;if((s=r[l]).isVisible)return this._asResizable(s)}}return null},r.prototype._asResizable=function(e){return 0==e.renderSize&&e.allowResizing?e:null},r.prototype._mouseSelect=function(i,o){var n=this,r=this._g;if(i&&this._htDown&&this._htDown.panel&&r.selectionMode!=t.SelectionMode.None){var l=new t.HitTestInfo(this._htDown.panel,i);this._handleSelection(l,o),!e.isIE9()&&i.button>=0&&i.target!=r._root&&((l=new t.HitTestInfo(r,i)).panel||setTimeout(function(){n._isDown&&n._eMouse&&n._mouseSelect(n._eMouse,o)},100))}},r.prototype._handleResizing=function(i){"mousedown"==i.type&&(e.isSafari()?e.setAttribute(i.target,"draggable",null):i.preventDefault());var o=this._szRowCol;if(o instanceof t.Column){var n=this._g,l=e.mouseToPage(i).x,s=Math.round(Math.max(r._SZ_MIN,this._szStart+(l-this._htDown.point.x)*(n.rightToLeft?-1:1)));if(o.renderSize!=s){if(null==this._szArgs){var a=n.rowHeaders.columns.indexOf(o)>-1?n.rowHeaders:n.cells;this._szArgs=new t.CellRangeEventArgs(a,new t.CellRange(-1,o.index))}this._szArgs.cancel=!1,n.onResizingColumn(this._szArgs)&&(n.deferResizing?this._showResizeMarker(s):o.width=s)}}var c=this._szRowCol;if(c instanceof t.Row){n=this._g;var u=e.mouseToPage(i).y;s=Math.round(Math.max(r._SZ_MIN,this._szStart+(u-this._htDown.point.y)));if(c.renderSize!=s){if(null==this._szArgs){a=n.columnHeaders.rows.indexOf(c)>-1?n.columnHeaders:n.columnFooters.rows.indexOf(c)>-1?n.columnFooters:n.cells;this._szArgs=new t.CellRangeEventArgs(a,new t.CellRange(c.index,-1))}this._szArgs.cancel=!1,n.onResizingRow(this._szArgs)&&(n.deferResizing?this._showResizeMarker(s):c.height=s)}}this._szArgs&&i.preventDefault()},r.prototype._dragstart=function(i){var n=this._g,r=this._htDown,l=o,s=t.CellType;if(r){if(this._dragSrc=null,this._htDrag=null,this._chldColGrpMarker=!1,!this._szRowCol){var a=new t.CellRangeEventArgs(r.panel,r.range),c=n.allowDragging,u=r.cellType,h=r.panel.rows,d=r.getColumn(!0);if(d&&d.allowDragging&&(u==s.ColumnHeader||u==s.TopLeft)&&c&l.Columns&&(n.onDraggingColumn(a)?this._dragSrc=i.target:i.preventDefault()),!this._dragSrc&&r.row>-1&&h[r.row].allowDragging){var p=h[r.row];p instanceof t.GroupRow||p instanceof t._NewRowTemplate||u==s.RowHeader&&c&l.Rows&&(n.onDraggingRow(a)?this._dragSrc=i.target:i.preventDefault())}}this._dragSrc&&i.dataTransfer&&!i.defaultPrevented&&(this._htDrag=r,e._startDrag(i.dataTransfer,"move"),i.stopPropagation(),e.addClass(this._dragSrc,"wj-state-dragsrc"),n.beginUpdate(),this._updating=!0)}},r.prototype._dragend=function(e){this._dragSrc=null,this._htDrag=null,this.resetMouseState()},r.prototype._dragover=function(i){var o=this._g,n=this._hitTest(i),r=this._dragSrc?this._htDrag:null,l=t.CellType,s=!1;if(r&&n.cellType==r.cellType){var a=new t.CellRangeEventArgs(n.panel,n.range,r);n.cellType==l.ColumnHeader&&o._hasColumnGroups()?(a.cancel=!o._canMoveColumnGroup(r.row,r.col,n.row,n.col),s=o.onDraggingColumnOver(a)):n.cellType==l.ColumnHeader?(a.cancel=!o.columns.canMoveElement(r.col,n.col),s=o.onDraggingColumnOver(a)):n.cellType==l.RowHeader?(a.cancel=!o.rows.canMoveElement(r.row,n.row),s=o.onDraggingRowOver(a)):n.cellType==l.TopLeft&&(a.cancel=!o.topLeftCells.columns.canMoveElement(r.col,n.col),s=o.onDraggingColumnOver(a))}if(s?(i.dataTransfer.dropEffect="move",i.preventDefault(),i.stopPropagation(),this._showDragMarker(n)):this._showDragMarker(null),r&&o.autoScroll){var c=o.controlRect,u=o.scrollPosition,h=e.Control._DRAG_SCROLL_EDGE,d=e.Control._DRAG_SCROLL_STEP;r.panel==o.columnHeaders?(i.pageX-c.left<h&&(u.x+=d),c.right-i.pageX<h&&(u.x-=d)):r.panel==o.rowHeaders&&(i.pageY-c.top<h&&(u.y+=d),c.bottom-i.pageY<h&&(u.y-=d)),u.equals(o._ptScrl)||(o.scrollPosition=u,o._rcBounds=null)}},r.prototype._drop=function(e){var i=this._g,o=this._hitTest(e),n=this._dragSrc?this._htDrag:null,r=t.CellType;if(n&&o.cellType==n.cellType){var l=i.selection,s=new t.CellRangeEventArgs(o.panel,o.range,n);o.cellType==r.ColumnHeader&&i._hasColumnGroups()?(i._moveColumnGroup(n.row,n.col,o.row,o.col,this._chldColGrpMarker),i.select(l.row,o.col),i.onDraggedColumn(s)):o.cellType==r.ColumnHeader?(i.columns.moveElement(n.col,o.col),i.select(l.row,o.col),i.onDraggedColumn(s)):o.cellType==r.RowHeader?(i.rows.moveElement(n.row,o.row),i.select(o.row,l.col),i.onDraggedRow(s)):o.cellType==r.TopLeft&&(i.topLeftCells.columns.moveElement(n.col,o.col),i.onDraggedColumn(s))}this.resetMouseState()},r.prototype._hitTest=function(e){var t=this._g;return t._rcBounds=null,t.hitTest(e)},r.prototype._showResizeMarker=function(i){var o,n=this._g,r=n._ptScrl,l=this._szArgs.panel.cellType,s=t.CellType,a=this._dvMarker,c=n.cells.hostElement;a.parentElement!=c&&c.appendChild(a),this._szRowCol instanceof t.Column?(o={left:this._szRowCol.pos+i-1,top:-1e3,right:"",bottom:0,width:3,height:""},l!=s.TopLeft&&l!=s.RowHeader||(o.left-=n._eTL.offsetWidth+r.x),l==s.Cell&&this._szRowCol.index<n.frozenColumns&&(o.left-=r.x),n.rightToLeft&&(o.left=c.clientWidth-o.left-o.width)):(o={left:-1e3,top:this._szRowCol.pos+i-1,right:0,bottom:"",width:"",height:3},l!=s.TopLeft&&l!=s.ColumnHeader||(o.top-=n._eTL.offsetHeight+r.y),l==s.Cell&&this._szRowCol.index<n.frozenRows&&(o.top-=r.y)),e.setCss(a,o)},r.prototype._showDragMarker=function(i){var o=this._dvMarker;if(!i||!i.panel)return e.removeChild(o),void(this._rngTarget=null);if(!i.range.equals(this._rngTarget)){this._rngTarget=i.range;var n=i.panel.hostElement;o.parentElement!=n&&n.appendChild(o);var l=this._g,s=l._ptScrl,a=t.CellType,c={left:0,top:0,width:6,height:6,right:"",bottom:""};switch(i.cellType){case a.ColumnHeader:var u=l._getColumnGroup(i.row,i.col);if(u){var h=u._rng,d=i.panel.rows,p=i.panel.columns;if(u.isEmpty&&null===u.binding){var g=d[h.bottomRow],f=p[h.leftCol],_=l.rightToLeft,m=_?o.parentElement.clientWidth-i.point.x:i.point.x,w=Math.max(f.renderWidth/5,r._SZ_MAX_COLGRP_EDGE),C=f.pos+w,v=f.pos+f.renderWidth-w,y=this._htDown&&i.col>this._htDown.col;if(!y&&m>C||y&&m<v){c.top=g.pos-c.height/2+g.renderHeight,c.left=_?o.parentElement.clientWidth-f.pos-f.renderWidth:f.pos,c.width=f.renderWidth,this._chldColGrpMarker=!0;break}}this._chldColGrpMarker=!1,c.top=0,c.height=0;for(var b=0;b<h.topRow;b++)c.top+=d[b].renderHeight;for(b=h.topRow;b<=h.bottomRow;b++)c.height+=d[b].renderHeight;if(c.left=0,this._htDown&&i.col>this._htDown.col){var R=p[h.rightCol];c.left=R.pos-c.width/2+R.renderWidth}else{var E=p[h.leftCol];c.left=E.pos-c.width/2}l.rightToLeft&&(c.left=o.parentElement.clientWidth-c.left-c.width);break}case a.TopLeft:case a.ColumnHeader:var S=i.panel.columns[i.col];c.left=S.pos-c.width/2,c.height=i.panel.height,this._htDown&&i.col>this._htDown.col&&(c.left+=S.renderWidth),i.cellType==a.ColumnHeader&&i.col<l.frozenColumns&&(c.left-=s.x),l.rightToLeft&&(c.left=o.parentElement.clientWidth-c.left-c.width);break;case a.RowHeader:var x=i.getRow();c.top=x.pos-c.height/2,c.width=i.panel.width,i.row>this._htDown.row&&(c.top+=x.renderHeight),i.row<l.frozenRows&&(c.top-=s.y)}e.setCss(o,c)}},r.prototype._finishResizing=function(i){var o=this._g,n=o.selection,l=this._szArgs,s=this._eMouse,a=s&&(s.ctrlKey||s.metaKey),c=t.CellType;if(l&&!l.cancel){if(l.col>-1){var u=l.col,h=e.mouseToPage(i).x,d=Math.round(Math.max(r._SZ_MIN,this._szStart+(h-this._htDown.point.x)*(this._g.rightToLeft?-1:1)));if(l.panel.columns[u].width=Math.round(d),o.onResizedColumn(l),a&&this._htDown.cellType==c.ColumnHeader&&n.containsColumn(u))for(var p=n.leftCol;p<=n.rightCol;p++)o.columns[p].allowResizing&&p!=u&&(l=new t.CellRangeEventArgs(o.cells,new t.CellRange(-1,p)),o.onResizingColumn(l)&&(o.columns[p].size=o.columns[u].size,o.onResizedColumn(l)));i.preventDefault()}if(l.row>-1){var g=l.row,f=e.mouseToPage(i).y;d=Math.round(Math.max(r._SZ_MIN,this._szStart+(f-this._htDown.point.y)));if(l.getRow().height=Math.round(d),o.onResizedRow(l),a&&this._htDown.cellType==c.RowHeader&&n.containsRow(g))for(var _=n.topRow;_<=n.bottomRow;_++)o.rows[_].allowResizing&&_!=g&&(l=new t.CellRangeEventArgs(o.cells,new t.CellRange(_,-1)),o.onResizingRow(l)&&(o.rows[_].size=o.rows[g].size,o.onResizedRow(l)));i.preventDefault()}}},r.prototype._handleSelection=function(i,o){var n=this._g,r=n._selHdl.selection,l=new t.CellRange(i.row,i.col),s=t.CellType,a=t.SelectionMode;if(l.isValid){if(null!=this._lbSelState)return n.rows[i.row].isSelected=!this._lbSelState,void n.scrollIntoView(i.row,i.col);switch(i.cellType){case s.RowHeader:l.col=0,l.col2=n.columns.length-1;break;case s.ColumnHeader:switch(n.selectionMode){case a.Row:case a.Cell:l.row=l.row2=r.row,o=!1;break;default:l.row=0,l.row2=n.rows.length-1}}if(o&&(n.anchorCursor?(l.row=r.row,l.col=r.col):(l.row2=r.row2,l.col2=r.col2),!l.isValid)){var c=this._htDown;c&&(l=new t.CellRange(c.row,c.col))}if(n.selectionMode==t.SelectionMode.MultiRange){var u=n._mouseHdl._eMouse,h=u&&(u.ctrlKey||u.metaKey),d=n._selHdl,p=d.selection,g=d.extendedSelection,f=i.panel!=n.cells;if(e.closest(u.target,".wj-elem-collapse")&&(h=!1),h){if(!o&&d._deselectRange(l))d.selection.isValid&&(l=null);else if(p.isValid&&(f||!p.intersects(l))){(f?this._splitRange(p):[p.clone()]).forEach(function(e){for(var t=!1,i=0;i<g.length&&!t;i++)g[i].equals(e)&&(t=!0);t||g.push(e)})}}else g.clear()}if(l)switch(n.select(l,!1),i.cellType){case s.RowHeader:n.scrollIntoView(i.row,-1);break;case s.ColumnHeader:n.scrollIntoView(-1,i.col);break;default:n.scrollIntoView(i.row,i.col)}else{var _=new t.CellRangeEventArgs(n.cells,new t.CellRange(i.row,i.col));n.onSelectionChanging(_),n.onSelectionChanged(_),n.invalidate()}}},r.prototype._splitRange=function(e){var i=this._g,o=i.columns.length,n=i.rows.length,r=[];if(e.columnSpan==o)for(var l=e.topRow;l<=e.bottomRow;l++)r.push(new t.CellRange(l,0,l,o-1));else if(e.rowSpan==n)for(var s=e.leftCol;s<=e.rightCol;s++)r.push(new t.CellRange(0,s,n-1,s));else r.push(e.clone());return r},r._SZ_MIN=0,r._SZ_MAX_COLGRP_EDGE=50,r}();t._MouseHandler=r}(e.grid||(e.grid={}))}(wijmo||(wijmo={})),function(e){e.grid||(e.grid={}),e._registerModule("wijmo.grid",e.grid)}(wijmo||(wijmo={}));
var wijmo,__extends=this&&this.__extends||function(){var e=function(t,s){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var s in t)t.hasOwnProperty(s)&&(e[s]=t[s])})(t,s)};return function(t,s){function i(){this.constructor=t}e(t,s),t.prototype=null===s?Object.create(s):(i.prototype=s.prototype,new i)}}();!function(e){!function(t){"use strict";var s=function(){function s(){this._externalCancellation=null}return Object.defineProperty(s.prototype,"sheets",{get:function(){return null==this._sheets&&(this._sheets=[]),this._sheets},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"styles",{get:function(){return null==this._styles&&(this._styles=[]),this._styles},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"definedNames",{get:function(){return null==this._definedNames&&(this._definedNames=[]),this._definedNames},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"colorThemes",{get:function(){return null==this._colorThemes&&(this._colorThemes=[]),this._colorThemes},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"reservedContent",{get:function(){return null==this._reservedContent&&(this._reservedContent={}),this._reservedContent},set:function(e){this._reservedContent=e},enumerable:!0,configurable:!0}),s.prototype.save=function(e){var i=t._xlsx.save(this),r=!(!this._reservedContent||!this._reservedContent.macros);return e&&s._saveToFile(i.base64,e,r),i.base64},s.prototype.saveAsync=function(i,r,l,n){var o=this;this.cancelAsync(function(){o._cs=e.isFunction(o._externalCancellation)?o._externalCancellation():new t._SyncPromise,t._xlsx.saveAsync(o,o._cs,l,n).then(function(t){if(i){var l=!(!o._reservedContent||!o._reservedContent.macros);s._saveToFile(t,i,l)}o._cs=null,e.isFunction(n)&&n(100),r&&r(t)},function(){return o._cs=null})})},s.prototype.cancelAsync=function(t){var s=this;this._cs?(this._cs.cancel(),setTimeout(function(){s._cs=null,e.isFunction(t)&&t()},100)):e.isFunction(t)&&t()},s.prototype.load=function(s,i){void 0===i&&(i=!0),e.isString(s)&&(s=this._getBase64String(s));var r=t._xlsx.load(s,i);this._deserialize(r),s=null,r=null},s.prototype.loadAsync=function(s,i,r,l){var n=this;void 0===l&&(l=!0),e.isString(s)&&(s=this._getBase64String(s)),t._xlsx.loadAsync(s,l).then(function(e){n._deserialize(e),s=null,e=null,i(n)}).catch(r)},s.prototype._serialize=function(){var e={sheets:[]};return e.sheets=this._serializeWorkSheets(),this._styles&&this._styles.length>0&&(e.styles=this._serializeWorkbookStyles()),this._reservedContent&&(e.reservedContent=this._reservedContent),null!=this.activeWorksheet&&!isNaN(this.activeWorksheet)&&this.activeWorksheet>=0&&(e.activeWorksheet=this.activeWorksheet),this.application&&(e.application=this.application),this.company&&(e.company=this.company),null!=this.created&&(e.created=this.created),this.creator&&(e.creator=this.creator),this.lastModifiedBy&&(e.lastModifiedBy=this.lastModifiedBy),null!=this.modified&&(e.modified=this.modified),this._definedNames&&this._definedNames.length>0&&(e.definedNames=this._serializeDefinedNames()),this._colorThemes&&this._colorThemes.length>0&&(e.colorThemes=this._colorThemes.slice()),e},s.prototype._deserialize=function(e){this._deserializeWorkSheets(e.sheets),e.styles&&e.styles.length>0&&this._deserializeWorkbookStyles(e.styles),this.activeWorksheet=e.activeWorksheet,this.application=e.application,this.company=e.company,this.created=e.created,this.creator=e.creator,this.lastModifiedBy=e.lastModifiedBy,this.modified=e.modified,this.reservedContent=e.reservedContent,e.definedNames&&e.definedNames.length>0&&this._deserializeDefinedNames(e.definedNames),e.colorThemes&&e.colorThemes.length>0&&(this._colorThemes=e.colorThemes.slice())},s.prototype._addWorkSheet=function(e,t){null==this._sheets&&(this._sheets=[]),null==t||isNaN(t)?this._sheets.push(e):this._sheets[t]=e},s._saveToFile=function(t,s,i){var r,l,n=i?"xlsm":"xlsx",o="xlsm"===n?"application/vnd.ms-excel.sheet.macroEnabled.12":"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";if((l=s.lastIndexOf("."))<0)s+="."+n;else{if(0===l)throw"Invalid file name.";""===(r=s.substring(l+1))?s+="."+n:r!==n&&(s+="."+n)}e.saveFile(new Blob([F.toArray(t)],{type:o}),s)},s.prototype._getBase64String=function(e){if(null==e||0===e.length)throw"Invalid xlsx file content.";var t=e.search(/base64,/i);return-1!==t?e.substring(t+7):e},s.toXlsxDateFormat=function(t){var s;if(1===t.length)switch(t){case"r":case"R":return"ddd, dd MMM yyyy HH:mm:ss &quot;GMT&quot;";case"u":return"yyyy-MM-dd&quot;T&quot;HH:mm:ss&quot;Z&quot;";case"o":case"O":s=(s=e.culture.Globalize.calendar.patterns[t]).replace(/f+k/gi,"000");break;default:s=e.culture.Globalize.calendar.patterns[t]}return s||(s=t),s=s.replace(/"/g,"").replace(/tt/,"AM/PM").replace(/t/,"A/P").replace(/M+/gi,function(e){return e.toLowerCase()}).replace(/g+y+/gi,function(e){return e.substring(0,e.indexOf("y"))+"e"}),/FY|Q/i.test(s)?"General":s},s.toXlsxNumberFormat=function(t){var s,i,r,l=t?t.toLowerCase():"";if(/^[ncpfdg]\d*.*,*$/.test(l)&&(s=l[0],i=this._formatMap[s]),i){var n=l.split(",");if("c"===s){var o=e.culture.Globalize.numberFormat.currency,a=t?t.match(/([a-z])(\d*)(,*)(.*)/i):null,h=a&&a[4]?a[4]:o.symbol;"​"===h&&(h="");var u=this._formatMap.n,c=o.pattern,f=c[0].replace("n",u).replace("$","{1}"),d=c[1].replace("n",u).replace("$","{1}");")"===f[f.length-1]&&(d+="_)"),i=(i=d+";"+f).replace(/\{1\}/g,h)}var m=-1;l.length>1?m=parseInt(n[0].substr(1)):"d"!==s&&(m=2);var p="";if(!isNaN(m))for(var g=0;g<m;g++)p+="0";for(g=0;g<n.length-1;g++)p+=",";r=p.length>0?"d"===s?i.replace(/\{0\}/g,p):i.replace(/\{0\}/g,(!isNaN(m)&&m>0?".":"")+p):"d"===s?i.replace(/\{0\}/g,"0"):i.replace(/\{0\}/g,"")}else r=l;return r},s.fromXlsxFormat=function(t){var s,i,r,l,n,o,a,h,u,c=[],f=e.culture.Globalize.numberFormat.currency.symbol;if(!t||"General"===t)return[""];for(i=(t=t.replace(/;@/g,"").replace(/&quot;?/g,"")).split(";"),l=0;l<i.length;l++){if(r=i[l],/[hsmy\:]/i.test(r))s=this._fromXlsxDateFormat(r);else if(o=r.lastIndexOf("."),a=r.lastIndexOf("0"),h=r.lastIndexOf(","),s=r.search(/\[\$([^\-\]]+)[^\]]*\]/)>-1||r.indexOf(f)>-1&&-1===r.search(/\[\$([\-\]]+)[^\]]*\]/)?"c":"%"===r[t.length-1]?"p":"n",s+=o>-1&&o<a?r.substring(o,a).length:"0",/^0+,*$/.test(r)&&(s="d"+((a=r.lastIndexOf("0"))+1)),h>-1&&a>-1&&a<h)for(u=r.substring(a+1,h+1).split(""),n=0;n<u.length;n++)s+=",";c.push(s)}return c},s._fromXlsxDateFormat=function(e){return e.replace(/\[\$\-.+\]/g,"").replace(/(\\)(.)/g,"$2").replace(/H+/g,function(e){return e.toLowerCase()}).replace(/m+/g,function(e){return e.toUpperCase()}).replace(/S+/g,function(e){return e.toLowerCase()}).replace(/AM\/PM/gi,"tt").replace(/A\/P/gi,"t").replace(/\.000/g,".fff").replace(/\.00/g,".ff").replace(/\.0/g,".f").replace(/\\[\-\s,]/g,function(e){return e.substring(1)}).replace(/Y+/g,function(e){return e.toLowerCase()}).replace(/D+/g,function(e){return e.toLowerCase()}).replace(/M+:?|:?M+/gi,function(e){return e.indexOf(":")>-1?e.toLowerCase():e}).replace(/g+e/gi,function(e){return e.substring(0,e.length-1)+"yy"})},s._parseCellFormat=function(e,t){return t?this.toXlsxDateFormat(e):this.toXlsxNumberFormat(e)},s._parseExcelFormat=function(t){if(null!=t){var s=t&&t.style&&t.style.format;if((null!=t.value||s)&&!isNaN(t.value)){var i=e.isNumber(t.value);return!i||s&&"General"!==s?t.isDate||e.isDate(t.value)||i||""===t.value||t.isNumber?this.fromXlsxFormat(s)[0]:s:e.isInt(t.value)?"d":"f2"}}},s.xlsxAddress=function(e,t,s,i,r){var l=s?"$":"",n=null==i?l:i?"$":"";return!0===r?"":(isNaN(t)?"":n+this._numAlpha(t))+(!1===r?"":isNaN(e)?"":l+(e+1).toString())},s.tableAddress=function(e){var t=e&&/^((\$?)([A-Za-z]+))?((\$?)(\d+))?$/.exec(e),s={};return t?(t[3]&&(s.col=this._alphaNum(t[3]),s.absCol=!!t[2]),t[6]&&(s.row=+t[6]-1,s.absRow=!!t[5]),s):null},s._parseHAlignToString=function(e){switch(e){case S.Left:return"left";case S.Center:return"center";case S.Right:return"right";case S.Justify:return"justify";default:return"general"}},s._parseStringToHAlign=function(e){var t=e?e.toLowerCase():"";return"left"===t?S.Left:"center"===t?S.Center:"right"===t?S.Right:"justify"===t?S.Justify:S.General},s._parseVAlignToString=function(e){switch(e){case C.Bottom:return"bottom";case C.Center:return"center";case C.Top:return"top";default:return null}},s._parseStringToVAlign=function(e){var t=e?e.toLowerCase():"";return"top"===t?C.Top:"center"===t?C.Center:"bottom"===t?C.Bottom:null},s._parseBorderTypeToString=function(e){switch(e){case k.Dashed:return"dashed";case k.Dotted:return"dotted";case k.Double:return"double";case k.Hair:return"hair";case k.Medium:return"medium";case k.MediumDashDotDotted:return"mediumDashDotDot";case k.MediumDashDotted:return"mediumDashDot";case k.MediumDashed:return"mediumDashed";case k.SlantedMediumDashDotted:return"slantDashDot";case k.Thick:return"thick";case k.Thin:return"thin";case k.ThinDashDotDotted:return"dashDotDot";case k.ThinDashDotted:return"dashDot";case k.None:default:return"none"}},s._parseStringToBorderType=function(e){return"dashed"===e?k.Dashed:"dotted"===e?k.Dotted:"double"===e?k.Double:"hair"===e?k.Hair:"medium"===e?k.Medium:"mediumDashDotDot"===e?k.MediumDashDotDotted:"mediumDashDot"===e?k.MediumDashDotted:"mediumDashed"===e?k.MediumDashed:"slantDashDot"===e?k.SlantedMediumDashDotted:"thick"===e?k.Thick:"thin"===e?k.Thin:"dashDotDot"===e?k.ThinDashDotDotted:"dashDot"===e?k.ThinDashDotted:null},s._escapeXML=function(e){return"string"==typeof e?e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"):""},s._unescapeXML=function(e){return"string"==typeof e?e.indexOf("&")>=0?e.replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/&#x27;/g,"'").replace(/&#x2F;/g,"/").replace(/&amp;/g,"&"):e:""},s._numAlpha=function(e){var t=Math.floor(e/26)-1;return(t>-1?this._numAlpha(t):"")+this._alphabet.charAt(e%26)},s._alphaNum=function(e){var t=0;return e&&(e=e.toUpperCase()),2===e.length&&(t=this._alphaNum(e.charAt(0))+1),26*t+this._alphabet.indexOf(e.substr(-1))},s.prototype._serializeWorkSheets=function(){var e,t,s=[];for(t=0;t<this._sheets.length;t++)(e=this._sheets[t])&&(s[t]=e._serialize());return s},s.prototype._serializeWorkbookStyles=function(){var e,t,s=[];for(t=0;t<this._styles.length;t++)(e=this._styles[t])&&(s[t]=e._serialize());return s},s.prototype._serializeDefinedNames=function(){var e,t,s=[];for(t=0;t<this._definedNames.length;t++)(e=this._definedNames[t])&&(s[t]=e._serialize());return s},s.prototype._serializeTableStyles=function(){var e,t,s=[];for(t=0;t<this._tableStyles.length;t++)(e=this._tableStyles[t])&&(s[t]=e._serialize());return s},s.prototype._deserializeWorkSheets=function(t){var s,r,l;for(this._sheets=[],e.assert(null!=t,"workSheets should not be null."),l=0;l<t.length;l++)(r=t[l])&&((s=new i)._deserialize(r),this._sheets[l]=s)},s.prototype._deserializeWorkbookStyles=function(e){var t,s,i;for(this._styles=[],i=0;i<e.length;i++)(s=e[i])&&((t=new u)._deserialize(s),this._styles[i]=t)},s.prototype._deserializeDefinedNames=function(e){var t,s,i;for(this._definedNames=[],i=0;i<e.length;i++)(s=e[i])&&((t=new p)._deserialize(s),this._definedNames[i]=t)},s.prototype._deserializeTableStyles=function(e){var t,s,i;for(this._tableStyles=[],i=0;i<e.length;i++)(s=e[i])&&((t=new y)._deserialize(s),this._tableStyles[i]=t)},s._alphabet="ABCDEFGHIJKLMNOPQRSTUVWXYZ",s._formatMap={n:"#,##0{0}",c:"{1}#,##0{0}_);({1}#,##0{0})",p:"#,##0{0}%",f:"0{0}",d:"{0}",g:"0{0}"},s}();t.Workbook=s;var i=function(){function e(){}return Object.defineProperty(e.prototype,"columns",{get:function(){return null==this._columns&&(this._columns=[]),this._columns},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rows",{get:function(){return null==this._rows&&(this._rows=[]),this._rows},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tables",{get:function(){return null==this._tables&&(this._tables=[]),this._tables},enumerable:!0,configurable:!0}),e.prototype._serialize=function(){var e;return this._checkEmptyWorkSheet()?null:(e={},this.style&&(e.style=this.style._serialize()),this._columns&&this._columns.length>0&&(e.columns=this._serializeWorkbookColumns()),this._rows&&this._rows.length>0&&(e.rows=this._serializeWorkbookRows()),this.frozenPane&&(e.frozenPane=this.frozenPane._serialize()),this.name&&(e.name=this.name),null!=this.summaryBelow&&(e.summaryBelow=this.summaryBelow),null!=this.visible&&(e.visible=this.visible),this._tables&&this._tables.length>0&&(e.tables=this._serializeTables()),this._extraColumn&&(e._extraColumn=this._extraColumn._serialize()),e)},e.prototype._deserialize=function(e){var t,s;e.style&&((s=new u)._deserialize(e.style),this.style=s),e.columns&&e.columns.length>0&&this._deserializeWorkbookColumns(e.columns),e.rows&&e.rows.length>0&&this._deserializeWorkbookRows(e.rows),e.frozenPane&&((t=new h)._deserialize(e.frozenPane),this.frozenPane=t),this.name=e.name,this.summaryBelow=e.summaryBelow,this.visible=e.visible,e.tables&&e.tables.length>0&&this._deserializeTables(e.tables),e._extraColumn&&(this._extraColumn=new l,this._extraColumn._deserialize(e._extraColumn))},e.prototype._addWorkbookColumn=function(e,t){null==this._columns&&(this._columns=[]),null==t||isNaN(t)?this._columns.push(e):this._columns[t]=e},e.prototype._addWorkbookRow=function(e,t){null==this._rows&&(this._rows=[]),null==t||isNaN(t)?this._rows.push(e):this._rows[t]=e},e.prototype._serializeWorkbookColumns=function(){var e,t,s=[];for(t=0;t<this._columns.length;t++)(e=this._columns[t])&&(s[t]=e._serialize());return s},e.prototype._serializeWorkbookRows=function(){var e,t,s=[];for(t=0;t<this._rows.length;t++)(e=this._rows[t])&&(s[t]=e._serialize());return s},e.prototype._serializeTables=function(){var e,t,s=[];for(t=0;t<this._tables.length;t++)(e=this._tables[t])&&(s[t]=e._serialize());return s},e.prototype._deserializeWorkbookColumns=function(e){var t,s,i;for(this._columns=[],i=0;i<e.length;i++)(t=e[i])&&((s=new r)._deserialize(t),this._columns[i]=s)},e.prototype._deserializeWorkbookRows=function(e){var t,s,i;for(this._rows=[],i=0;i<e.length;i++)(t=e[i])&&((s=new n)._deserialize(t),this._rows[i]=s)},e.prototype._deserializeTables=function(e){var t,s,i;for(this._tables=[],i=0;i<e.length;i++)(s=e[i])&&((t=new g)._deserialize(s),this._tables[i]=t)},e.prototype._checkEmptyWorkSheet=function(){return!(null!=this._rows||null!=this._columns||null!=this.visible||null!=this.summaryBelow||null!=this.frozenPane||null!=this.style||null!=this.name&&""!==this.name||null!=this._tables&&0!=this._tables.length)},e}();t.WorkSheet=i;var r=function(){function e(){}return e.prototype._serialize=function(){var e;return this._checkEmptyWorkbookColumn()?null:(e={},this.style&&(e.style=this.style._serialize()),null!=this.autoWidth&&(e.autoWidth=this.autoWidth),null!=this.width&&(e.width=this.width),null!=this.visible&&(e.visible=this.visible),e)},e.prototype._deserialize=function(e){var t;e.style&&((t=new u)._deserialize(e.style),this.style=t),this.autoWidth=e.autoWidth,this.visible=e.visible,this.width=e.width},e.prototype._checkEmptyWorkbookColumn=function(){return null==this.style&&null==this.width&&null==this.autoWidth&&null==this.visible},e}();t.WorkbookColumn=r;var l=function(e){function t(){return e.call(this)||this}return __extends(t,e),t.prototype._serialize=function(){var t=e.prototype._serialize.call(this);return t.min=this.min,t.max=this.max,t},t.prototype._deserialize=function(t){e.prototype._deserialize.call(this,t),this.min=t.min,this.max=t.max},t}(r);t._WorkbookExtraColumn=l;var n=function(){function e(){}return Object.defineProperty(e.prototype,"cells",{get:function(){return null==this._cells&&(this._cells=[]),this._cells},enumerable:!0,configurable:!0}),e.prototype._serialize=function(){var e;return this._checkEmptyWorkbookRow()?null:(e={},this._cells&&this._cells.length>0&&(e.cells=this._serializeWorkbookCells()),this.style&&(e.style=this.style._serialize()),null!=this.collapsed&&(e.collapsed=this.collapsed),null==this.groupLevel||isNaN(this.groupLevel)||(e.groupLevel=this.groupLevel),null==this.height||isNaN(this.height)||(e.height=this.height),null!=this.visible&&(e.visible=this.visible),e)},e.prototype._deserialize=function(e){var t;e.cells&&e.cells.length>0&&this._deserializeWorkbookCells(e.cells),e.style&&((t=new u)._deserialize(e.style),this.style=t),this.collapsed=e.collapsed,this.groupLevel=e.groupLevel,this.height=e.height,this.visible=e.visible},e.prototype._addWorkbookCell=function(e,t){null==this._cells&&(this._cells=[]),null==t||isNaN(t)?this._cells.push(e):this._cells[t]=e},e.prototype._serializeWorkbookCells=function(){var e,t,s=[];for(t=0;t<this._cells.length;t++)(e=this._cells[t])&&(s[t]=e._serialize());return s},e.prototype._deserializeWorkbookCells=function(e){var t,s,i;for(this._cells=[],i=0;i<e.length;i++)(t=e[i])&&((s=new o)._deserialize(t),this._cells[i]=s)},e.prototype._checkEmptyWorkbookRow=function(){return null==this._cells&&null==this.style&&null==this.collapsed&&null==this.visible&&(null==this.height||isNaN(this.height))&&(null==this.groupLevel||isNaN(this.groupLevel))},e}();t.WorkbookRow=n;var o=function(){function e(){}return e.prototype._serialize=function(){var e;return this._checkEmptyWorkbookCell()?null:(e={},this.style&&(e.style=this.style._serialize()),null!=this.value&&(e.value=this.value),this.formula&&(e.formula=this.formula),null!=this.isDate&&(e.isDate=this.isDate),null!=this.isNumber&&(e.isNumber=this.isNumber),null!=this.colSpan&&!isNaN(this.colSpan)&&this.colSpan>1&&(e.colSpan=this.colSpan),null!=this.rowSpan&&!isNaN(this.rowSpan)&&this.rowSpan>1&&(e.rowSpan=this.rowSpan),this.link&&(e.link=this.link),e.textRuns=T.serialize(this.textRuns),this.note&&(e.note=this.note._serialize()),e)},e.prototype._deserialize=function(e){var t;e.style&&((t=new u)._deserialize(e.style),this.style=t),this.value=e.value,this.formula=e.formula,this.isDate=e.isDate,this.isNumber=e.isNumber,this.colSpan=e.colSpan,this.rowSpan=e.rowSpan,this.link=e.link,this.textRuns=T.deserialize(e.textRuns),e.note&&(this.note=new a,this.note._deserialize(e.note))},e.prototype._checkEmptyWorkbookCell=function(){return null==this.style&&null==this.value&&null==this.isDate&&null==this.isNumber&&(null==this.formula||""===this.formula)&&(null==this.colSpan||isNaN(this.colSpan)||this.colSpan<=1)&&(null==this.rowSpan||isNaN(this.rowSpan)||this.rowSpan<=1)&&(null==this.link||""===this.link)},e}();t.WorkbookCell=o;var a=function(){function e(){}return e.prototype._serialize=function(){if(!(null!=this.text||this.textRuns&&this.textRuns.length))return null;var e={};return null!=this.author&&(e.author=this.author),null!=this.text&&(e.text=this.text),e.textRuns=T.serialize(this.textRuns),null!=this.visible&&(e.visible=this.visible),null!=this.offsetX&&(e.offsetX=this.offsetX),null!=this.offsetY&&(e.offsetY=this.offsetY),null!=this.width&&(e.width=this.width),null!=this.height&&(e.height=this.height),e},e.prototype._deserialize=function(e){this.author=e.author,this.text=e.text,this.textRuns=T.deserialize(e.textRuns),this.visible=e.visible,this.offsetX=e.offsetX,this.offsetY=e.offsetY,this.width=e.width,this.height=e.height},e}();t.WorkbookNote=a;var h=function(){function e(){}return e.prototype._serialize=function(){return null!=this.columns&&!isNaN(this.columns)&&0!==this.columns||null!=this.rows&&!isNaN(this.rows)&&0!==this.rows?{columns:this.columns,rows:this.rows}:null},e.prototype._deserialize=function(e){this.columns=e.columns,this.rows=e.rows},e}();t.WorkbookFrozenPane=h;var u=function(){function t(){}return t.prototype._serialize=function(){var t;return this._checkEmptyWorkbookStyle()?null:(t={},this.basedOn&&(t.basedOn=this.basedOn._serialize()),this.fill&&(t.fill=this.fill._serialize()),this.font&&(t.font=this.font._serialize()),this.borders&&(t.borders=this.borders._serialize()),this.format&&(t.format=this.format),null!=this.hAlign&&(t.hAlign=e.asEnum(this.hAlign,S,!1)),null!=this.vAlign&&(t.vAlign=e.asEnum(this.vAlign,C,!1)),null==this.indent||isNaN(this.indent)||(t.indent=this.indent),this.wordWrap&&(t.wordWrap=this.wordWrap),t)},t.prototype._deserialize=function(s){var i,r,l,n;s.basedOn&&((i=new t)._deserialize(s.basedOn),this.basedOn=i),s.fill&&((r=new f)._deserialize(s.fill),this.fill=r),s.font&&((l=new c)._deserialize(s.font),this.font=l),s.borders&&((n=new d)._deserialize(s.borders),this.borders=n),this.format=s.format,null!=s.hAlign&&(this.hAlign=e.asEnum(s.hAlign,S,!1)),null!=s.vAlign&&(this.vAlign=e.asEnum(s.vAlign,C,!1)),null==s.indent||isNaN(s.indent)||(this.indent=s.indent),s.wordWrap&&(this.wordWrap=s.wordWrap)},t.prototype._checkEmptyWorkbookStyle=function(){return null==this.basedOn&&null==this.fill&&null==this.font&&null==this.borders&&(null==this.format||""===this.format)&&null==this.hAlign&&null==this.vAlign&&null==this.wordWrap},t}();t.WorkbookStyle=u;var c=function(){function e(){}return e.prototype._serialize=function(){var e;return this._checkEmptyWorkbookFont()?null:(e={},null!=this.bold&&(e.bold=this.bold),null!=this.italic&&(e.italic=this.italic),null!=this.underline&&(e.underline=this.underline),this.color&&(e.color=this.color),this.family&&(e.family=this.family),null==this.size||isNaN(this.size)||(e.size=this.size),e)},e.prototype._deserialize=function(e){this.bold=e.bold,null!=e.color&&(this.color=e.color),this.family=e.family,this.italic=e.italic,this.size=e.size,this.underline=e.underline},e.prototype._checkEmptyWorkbookFont=function(){return null==this.bold&&null==this.italic&&null==this.underline&&(null==this.color||""===this.color)&&(null==this.family||""===this.family)&&(null==this.size||isNaN(this.size))},e}();t.WorkbookFont=c;var f=function(){function e(){}return e.prototype._serialize=function(){return this.color?{color:this.color}:null},e.prototype._deserialize=function(e){null!=e.color&&(this.color=e.color)},e}();t.WorkbookFill=f;var d=function(){function e(){}return e.prototype._serialize=function(){var e;return this._checkEmptyWorkbookBorder()?null:(e={},this.top&&(e.top=this.top._serialize()),this.bottom&&(e.bottom=this.bottom._serialize()),this.left&&(e.left=this.left._serialize()),this.right&&(e.right=this.right._serialize()),this.diagonal&&(e.diagonal=this.diagonal._serialize()),e)},e.prototype._deserialize=function(e){var t,s,i,r,l;e.top&&((t=new m)._deserialize(e.top),this.top=t),e.bottom&&((s=new m)._deserialize(e.bottom),this.bottom=s),e.left&&((i=new m)._deserialize(e.left),this.left=i),e.right&&((r=new m)._deserialize(e.right),this.right=r),e.diagonal&&((l=new m)._deserialize(e.diagonal),this.diagonal=l)},e.prototype._checkEmptyWorkbookBorder=function(){return null==this.top&&null==this.bottom&&null==this.left&&null==this.right&&null==this.diagonal},e}();t.WorkbookBorder=d;var m=function(){function t(){}return t.prototype._serialize=function(){var t;return null!=this.color&&""!==this.color||null!=this.style?(t={},this.color&&(t.color=this.color),null!=this.style&&(t.style=e.asEnum(this.style,k,!1)),t):null},t.prototype._deserialize=function(t){null==t.color&&null==t.style||(this.color=t.color,null!=t.style&&(this.style=e.asEnum(t.style,k,!1)))},t}();t.WorkbookBorderSetting=m;var p=function(){function e(){}return e.prototype._serialize=function(){var e;return null==this.name?null:(e={name:this.name,value:this.value},null!=this.sheetName&&(e.sheetName=this.sheetName),e)},e.prototype._deserialize=function(e){this.name=e.name,this.value=e.value,this.sheetName=e.sheetName},e}();t.DefinedName=p;var g=function(){function t(){}return Object.defineProperty(t.prototype,"columns",{get:function(){return null==this._columns&&(this._columns=[]),this._columns},enumerable:!0,configurable:!0}),t.prototype._serialize=function(){var e,t;return null==this.name||null==this.range||null==this._columns?null:(null!=this.style&&(t=this.style._serialize()),(e={name:this.name,range:this.range,showHeaderRow:this.showHeaderRow,showTotalRow:this.showTotalRow,style:t,showBandedColumns:this.showBandedColumns,showBandedRows:this.showBandedRows,alterFirstColumn:this.alterFirstColumn,alterLastColumn:this.alterLastColumn,columns:[]}).columns=this._serializeTableColumns(),e)},t.prototype._deserialize=function(e){var t;this.name=e.name,this.range=e.range,this.showHeaderRow=e.showHeaderRow,this.showTotalRow=e.showTotalRow,null!=e.style&&((t=new y)._deserialize(e.style),this.style=t),this.showBandedColumns=e.showBandedColumns,this.showBandedRows=e.showBandedRows,this.alterFirstColumn=e.alterFirstColumn,this.alterLastColumn=e.alterLastColumn,this._deserializeTableColumns(e.columns)},t.prototype._serializeTableColumns=function(){var e,t,s=[];for(t=0;t<this._columns.length;t++)(e=this._columns[t])&&(s[t]=e._serialize());return s},t.prototype._deserializeTableColumns=function(t){var s,i,r;for(e.assert(null!=t,"table Columns should not be null."),this._columns=[],r=0;r<t.length;r++)(i=t[r])&&((s=new _)._deserialize(i),this._columns[r]=s)},t}();t.WorkbookTable=g;var _=function(){function e(){}return e.prototype._serialize=function(){return null==this.name?null:{name:this.name,totalRowLabel:this.totalRowLabel,totalRowFunction:this.totalRowFunction,showFilterButton:this.showFilterButton}},e.prototype._deserialize=function(e){this.name=e.name,this.totalRowLabel=e.totalRowLabel,this.totalRowFunction=e.totalRowFunction,this.showFilterButton=e.showFilterButton},e}();t.WorkbookTableColumn=_;var y=function(){function e(){}return e.prototype._serialize=function(){var e;return this._checkEmptyWorkbookTableStyle()?null:(e={name:this.name},this.wholeTableStyle&&(e.wholeTableStyle=this.wholeTableStyle._serialize()),this.firstBandedColumnStyle&&(e.firstBandedColumnStyle=this.firstBandedColumnStyle._serialize()),this.firstBandedRowStyle&&(e.firstBandedRowStyle=this.firstBandedRowStyle._serialize()),this.secondBandedColumnStyle&&(e.secondBandedColumnStyle=this.secondBandedColumnStyle._serialize()),this.secondBandedRowStyle&&(e.secondBandedRowStyle=this.secondBandedRowStyle._serialize()),this.headerRowStyle&&(e.headerRowStyle=this.headerRowStyle._serialize()),this.totalRowStyle&&(e.totalRowStyle=this.totalRowStyle._serialize()),this.firstColumnStyle&&(e.firstColumnStyle=this.firstColumnStyle._serialize()),this.lastColumnStyle&&(e.lastColumnStyle=this.lastColumnStyle._serialize()),this.firstHeaderCellStyle&&(e.firstHeaderCellStyle=this.firstHeaderCellStyle._serialize()),this.lastHeaderCellStyle&&(e.lastHeaderCellStyle=this.lastHeaderCellStyle._serialize()),this.firstTotalCellStyle&&(e.firstTotalCellStyle=this.firstTotalCellStyle._serialize()),this.lastTotalCellStyle&&(e.lastTotalCellStyle=this.lastTotalCellStyle._serialize()),e)},e.prototype._deserialize=function(e){this.name=e.name,e.wholeTableStyle&&(this.wholeTableStyle=new v,this.wholeTableStyle._deserialize(e.wholeTableStyle)),e.firstBandedColumnStyle&&(this.firstBandedColumnStyle=new b,this.firstBandedColumnStyle._deserialize(e.firstBandedColumnStyle)),e.firstBandedRowStyle&&(this.firstBandedRowStyle=new b,this.firstBandedRowStyle._deserialize(e.firstBandedRowStyle)),e.secondBandedColumnStyle&&(this.secondBandedColumnStyle=new b,this.secondBandedColumnStyle._deserialize(e.secondBandedColumnStyle)),e.secondBandedRowStyle&&(this.secondBandedRowStyle=new b,this.secondBandedRowStyle._deserialize(e.secondBandedRowStyle)),e.headerRowStyle&&(this.headerRowStyle=new v,this.headerRowStyle._deserialize(e.headerRowStyle)),e.totalRowStyle&&(this.totalRowStyle=new v,this.totalRowStyle._deserialize(e.totalRowStyle)),e.firstColumnStyle&&(this.firstColumnStyle=new v,this.firstColumnStyle._deserialize(e.firstColumnStyle)),e.lastColumnStyle&&(this.lastColumnStyle=new v,this.lastColumnStyle._deserialize(e.lastColumnStyle)),e.firstHeaderCellStyle&&(this.firstHeaderCellStyle=new v,this.firstHeaderCellStyle._deserialize(e.firstHeaderCellStyle)),e.lastHeaderCellStyle&&(this.lastHeaderCellStyle=new v,this.lastHeaderCellStyle._deserialize(e.lastHeaderCellStyle)),e.firstTotalCellStyle&&(this.firstTotalCellStyle=new v,this.firstTotalCellStyle._deserialize(e.firstTotalCellStyle)),e.lastTotalCellStyle&&(this.lastTotalCellStyle=new v,this.lastTotalCellStyle._deserialize(e.lastTotalCellStyle))},e.prototype._checkEmptyWorkbookTableStyle=function(){return null==this.name||null==this.wholeTableStyle&&null==this.firstBandedColumnStyle&&null==this.firstBandedRowStyle&&null==this.secondBandedColumnStyle&&null==this.secondBandedRowStyle&&null==this.headerRowStyle&&null==this.totalRowStyle&&null==this.firstColumnStyle&&null==this.lastColumnStyle&&null==this.firstHeaderCellStyle&&null==this.lastHeaderCellStyle&&null==this.firstTotalCellStyle&&null==this.lastTotalCellStyle},e}();t.WorkbookTableStyle=y;var v=function(e){function t(){return e.call(this)||this}return __extends(t,e),t.prototype._deserialize=function(t){var s;e.prototype._deserialize.call(this,t),t.borders&&((s=new x)._deserialize(t.borders),this.borders=s)},t}(u);t.WorkbookTableCommonStyle=v;var b=function(e){function t(){return e.call(this)||this}return __extends(t,e),t.prototype._serialize=function(){var t;return(t=e.prototype._serialize.call(this)).size=this.size,t},t.prototype._deserialize=function(t){e.prototype._deserialize.call(this,t),null!=t.size&&(this.size=t.size)},t}(v);t.WorkbookTableBandedStyle=b;var x=function(e){function t(){return e.call(this)||this}return __extends(t,e),t.prototype._serialize=function(){var t;return null!=(t=e.prototype._serialize.call(this))||this.vertical&&this.horizontal||(t={}),this.vertical&&(t.vertical=this.vertical._serialize()),this.horizontal&&(t.horizontal=this.horizontal._serialize()),t},t.prototype._deserialize=function(t){var s,i;e.prototype._deserialize.call(this,t),t.vertical&&((s=new m)._deserialize(t.vertical),this.vertical=s),t.horizontal&&((i=new m)._deserialize(t.horizontal),this.horizontal=i)},t}(d);t.WorkbookTableBorder=x;var w=function(){function e(){}return e.prototype._serialize=function(){var e={text:this.text};return this.font&&(e.font=this.font._serialize()),e},e.prototype._deserialize=function(e){e.font&&(this.font=new c,this.font._deserialize(e.font)),this.text=e.text},e}();t.WorkbookTextRun=w;var S,C,k,F=function(){function e(){}return e.toArray=function(e){for(var t=atob(e),s=t.length,i=new Uint8Array(s),r=0;r<s;r++)i[r]=t.charCodeAt(r);return i},e}(),T=function(){function e(){}return e.deserialize=function(e){return e&&e.length?e.map(function(e){var t=new w;return t._deserialize(e),t}):null},e.serialize=function(e){return e&&e.length?e.map(function(e){return e._serialize()}):null},e}();!function(e){e[e.General=0]="General",e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right",e[e.Fill=4]="Fill",e[e.Justify=5]="Justify"}(S=t.HAlign||(t.HAlign={})),function(e){e[e.Top=0]="Top",e[e.Center=1]="Center",e[e.Bottom=2]="Bottom",e[e.Justify=3]="Justify"}(C=t.VAlign||(t.VAlign={})),function(e){e[e.Context=0]="Context",e[e.LeftToRight=1]="LeftToRight",e[e.RightToLeft=2]="RightToLeft"}(t.TextDirection||(t.TextDirection={})),function(e){e[e.Horizontal=0]="Horizontal",e[e.Vertical=1]="Vertical",e[e.RotateUp=2]="RotateUp",e[e.RotateDown=3]="RotateDown"}(t.TextOrientation||(t.TextOrientation={})),function(e){e[e.None=0]="None",e[e.Thin=1]="Thin",e[e.Medium=2]="Medium",e[e.Dashed=3]="Dashed",e[e.Dotted=4]="Dotted",e[e.Thick=5]="Thick",e[e.Double=6]="Double",e[e.Hair=7]="Hair",e[e.MediumDashed=8]="MediumDashed",e[e.ThinDashDotted=9]="ThinDashDotted",e[e.MediumDashDotted=10]="MediumDashDotted",e[e.ThinDashDotDotted=11]="ThinDashDotDotted",e[e.MediumDashDotDotted=12]="MediumDashDotDotted",e[e.SlantedMediumDashDotted=13]="SlantedMediumDashDotted"}(k=t.BorderStyle||(t.BorderStyle={}))}(e.xlsx||(e.xlsx={}))}(wijmo||(wijmo={})),function(e){!function(t){"use strict";t.useJSZip=function(e){JSZip=e};var s=function(){function s(){}return s.load=function(t,s){void 0===s&&(s=!0);var i=new JSZip;e.assert(null==i.loadAsync,"Please use JSZip 2.5 to load excel files synchronously.");var l,n=new r(i);return this._loadImpl(n,t,s).then(function(e){return l=e}),l},s.loadAsync=function(t,s){void 0===s&&(s=!0);var i=new JSZip;return e.assert(null!=i.loadAsync,"Please use JSZip 3.0 to load excel files asynchrounously."),this._loadImpl(i,t,s)},s.save=function(e){var t,s=Date.now();this._saveWorkbookToZip(e,null,!1).then(function(e){return t=e}),s=Date.now()-s;var i="";i=this._macroEnabled?"application/vnd.ms-excel.sheet.macroEnabled.12;":"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;";var r=Date.now(),l=t.generate({compression:"DEFLATE"});return{base64:l,zipTime:Date.now()-r,processTime:s,href:function(){return"data:"+i+"base64,"+l}}},s.saveAsync=function(t,s,i,r){var n=new l(s);return e.isFunction(r)&&r(0),this._saveWorkbookToZip(t,s,!0,function(t){e.isFunction(r)&&r(Math.round(o(t,0,100,0,90)))}).then(function(t){e.isFunction(r)&&r(91);var l=t.generateAsync({type:"base64",compression:"DEFLATE"});l.catch(function(e){i&&i(e),n.reject(e)}),l.then(function(t){s&&s.cancelled?n.cancel():(e.isFunction(r)&&r(100),n.resolve(t))})},function(e){n.reject(e)}),n},s._loadImpl=function(t,s,i){var r,l=this,n=this,o=Date.now(),a={sheets:[]},h=t.loadAsync(s,{base64:e.isString(s)}).then(function(e){return r=e});s=null;var u=h.constructor;return(h=(h=(h=(h=(h=(h=(h=(h=h.then(function(){var e=r.file("xl/theme/theme1.xml");if(e)return e.async("string").then(function(e){n._getTheme(e),a.colorThemes=n._colorThemes})})).then(function(){var e=r.file("xl/styles.xml");if(e)return e.async("string").then(function(e){n._getStyle(e,i),i&&(a.styles=n._styles,null!=n._tableStyles&&(a.tableStyles=n._tableStyles))})})).then(function(){var e=r.file("xl/sharedStrings.xml");if(e)return e.async("string").then(function(e){n._getSharedString(e)})})).then(function(){var e=r.file("xl/workbook.xml");if(e)return e.async("string").then(function(e){n._getWorkbook(e,a)})})).then(function(){n._tables=null;var e=u.resolve();return r.folder("xl/tables").forEach(function(t,s){null==n._tables&&(n._tables=[]),e=e.then(function(){return s.async("string").then(function(e){var t=n._getTable(e);t.fileName=s.name.substring(s.name.lastIndexOf("/")+1),n._tables.push(t)})})}),e})).then(function(){var e=r.file("docProps/core.xml");if(e)return e.async("string").then(function(e){n._getCoreSetting(e,a)})})).then(function(){var e=r.file("xl/vbaProject.bin");if(e)return e.async("uint8array").then(function(e){null==a.reservedContent&&(a.reservedContent={}),a.reservedContent.macros=e})})).then(function(){var e=u.resolve();return r.folder("xl/worksheets").forEach(function(t,s){if(t&&-1===t.indexOf("/")){var l=n._getSheetIndex(s.name);isNaN(l)||(e=e.then(function(){return s.async("string").then(function(e){n._getSheet(e,l-1,a,i);var t=r.file("xl/worksheets/_rels/sheet"+l+".xml.rels");if(t)return t.async("string").then(function(e){for(var t,s,i,o,h=e.split("<Relationship "),c=h.length;--c;){var f=h[c],d=n._getAttr(f,"Id");if(a.sheets[l-1].tableRIds&&-1!==a.sheets[l-1].tableRIds.indexOf(d))null==a.sheets[l-1].tables&&(a.sheets[l-1].tables=[]),a.sheets[l-1].tables.push(n._getSheetRelatedTable(f));else if(a.sheets[l-1].hyperlinkRIds)n._getSheetRelatedHyperlink(f,d,a.sheets[l-1]);else{var m=n._getAttr(f,"Type");/\/comments$/.test(m)?t={id:n._getAttr(f,"Id"),target:n._getAttr(f,"Target")}:/\/vmlDrawing$/.test(m)&&(s={id:n._getAttr(f,"Id"),target:n._getAttr(f,"Target")})}}if(t&&s)return i=a.sheets[l-1],o=u.resolve(),n._readNotes(i,t,s,r,o).then(function(){})})})}))}}),e})).then(function(){return a.processTime=Date.now()-o,r=null,l._sharedStrings=null,l._colorThemes=null,l._styles=null,l._sharedFormulas=null,l._borders=null,l._fonts=null,l._fills=null,l._contentTypes=null,l._props=null,l._xlRels=null,l._worksheets=null,l._tableStyles=null,l._dxfs=null,l._tables=null,l._notes=null,a})},s._readNotes=function(t,i,r,l,o){var a=this,h=function(e){return e&&e.replace(/^..\//,"xl/")},u=l.file(h(i.target));return u&&(o=o.then(function(){return u.async("string").then(function(i){for(var o=i.substring(i.indexOf("<authors>"),i.indexOf("</authors>")).split("<author>"),u=[],c=1;c<o.length;c++)u.push(o[c].substring(0,o[c].indexOf("</author>")));o=i.substring(i.indexOf("<commentList>"),i.indexOf("</commentList>")).split("<comment ");for(c=1;c<o.length;c++){var f=s._getAttr(o[c],"ref"),d=a._alphaNum(f.match(/[a-zA-Z]*/g)[0]),m=+f.match(/\d*/g).join("")-1,p=o[c],g=p.substring(p.indexOf("<text>")+"<text>".length,p.lastIndexOf("</text>")),_=a._extractTextRuns(g),y=t.rows[m].cells[d];null==y&&(t.rows[m].cells[d]=y={}),y.note={author:u[s._getAttr(p,"authorId")],textRuns:_,text:a._getTextOfTextRuns(_)}}var v=l.file(h(r.target));if(v)return v.async("string").then(function(s){var i={};s.substring(0,s.indexOf(">")).split("xmlns:").forEach(function(e){e.indexOf("vml")>=0?i.vml=e.substring(0,e.indexOf("=")):e.indexOf("office:office")>=0?i.office=e.substring(0,e.indexOf("=")):e.indexOf("office:excel")>=0&&(i.excel=e.substring(0,e.indexOf("=")))});for(var r=s.split("<"+i.vml+":shape "),l=new n(t),o=1;o<r.length;o++){var h=r[o],u=i.excel+":ClientData",c=h.indexOf(u);if(c>0){c+=u.length+1;var f=h.substring(c,h.indexOf("</"+u,c));if("Note"===a._getAttr(f,"ObjectType")){var d=+a._getElementValue(f,i.excel+":Row",null,null),m=+a._getElementValue(f,i.excel+":Column",null,null),p=t.rows[d].cells[m].note;e.assert(null!=p,"No related note was found, row=${row}, col=${col}."),p.visible=a._getElementValue(f,i.excel+":Visible",!1,!0);var g=a._getElementValue(f,i.excel+":Anchor",null,null).split(",").map(function(e){return parseFloat(e)});l.fromAnchor(g,p,d,m)}}}i=null})})})),o},s._saveWorkbookToZip=function(t,s,i,r){var n=this,o=new JSZip;i?e.assert(null!=o.generateAsync,"Please use JSZip 3.0 to save excel files asynchrounously."):e.assert(null==o.generateAsync,"Please use JSZip 2.5 to save excel files synchronously."),e.isFunction(r)&&r(0),o.folder("_rels").file(".rels",this._xmlDescription+this._generateRelsDoc());var a=o.folder("docProps"),h=o.folder("xl");this._colorThemes=t.colorThemes,h.folder("theme").file("theme1.xml",this._xmlDescription+this._generateThemeDoc()),this._macroEnabled=!(!t.reservedContent||!t.reservedContent.macros),this._macroEnabled&&h.file("vbaProject.bin",t.reservedContent.macros),a.file("core.xml",this._xmlDescription+this._generateCoreDoc(t)),this._sharedStrings=[[],0],this._styles=new Array(1),this._borders=new Array(1),this._fonts=new Array(1),this._fills=new Array(2),this._tableStyles=new Array,this._dxfs=new Array,this._contentTypes=[],this._props=[],this._xlRels=[],this._worksheets=[],this._tables=[],this._tableStyles=[],this._notes={};var u=new l(s);return this._generateWorksheets(t,h,s,i,r).then(function(){n._writeNotes(t.sheets,h),h.file("styles.xml",n._xmlDescription+n._generateStyleDoc()),o.file("[Content_Types].xml",n._xmlDescription+n._generateContentTypesDoc(t)),a.file("app.xml",n._xmlDescription+n._generateAppDoc(t)),h.folder("_rels").file("workbook.xml.rels",n._xmlDescription+n._generateWorkbookRels());var s=n._xmlDescription+n._generateSharedStringsDoc();n._sharedStrings=[[],0],h.file("sharedStrings.xml",s),s=null,h.file("workbook.xml",n._xmlDescription+n._generateWorkbook(t)),e.isFunction(r)&&r(100),u.resolve(o)}),u},s._writeNotes=function(t,s){var i=this;t.forEach(function(t,r){var l=i._notes[r];l&&(s.folder("drawings").file("vmlDrawing"+(r+1)+".vml",function(t){var s='<xml xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel">\r\n';s+='<o:shapelayout v:ext="edit">\r\n',s+='<o:idmap v:ext="edit" data="1"/>\r\n',s+="</o:shapelayout>\r\n",s+='<v:shapetype id="_x0000_t202" coordsize="21600,21600" o:spt="202" path="m,l,21600r21600,l21600,xe">\r\n',s+='<v:stroke joinstyle="miter"/>\r\n',s+='<v:path gradientshapeok="t" o:connecttype="rect"/>\r\n',s+="</v:shapetype>\r\n";var i=1e3*(r+1)+50,o=new n(t);return l.forEach(function(t,r){e.assert(t._row>=0&&t._col>=0,"Invalid cell's indicies.");var l=null==t.visible||!0===t.visible;s+='<v:shape id="_x0000_s'+i+++'" type="#_x0000_t202" style=\''+("position:absolute; visibility:"+(l?"visible":"hidden")+"; z-index:"+(r+1)+";")+'\' fillcolor="infoBackground [80]" o:insetmode="auto">\r\n',s+='<v:fill color2="infoBackground [80]"/>\r\n',s+='<v:shadow color="none [81]" obscured="t"/>\r\n',s+='<v:path o:connecttype="none"/>\r\n';var n="",a="";s+='<v:textbox style="'+(a+="mso-direction-alt:auto;")+'" ',s+=">\r\n",s+='<div style="'+(n+="text-align:left;")+'"></div>\r\n',s+="</v:textbox>\r\n",s+='<x:ClientData ObjectType="Note">\r\n',s+="<x:MoveWithCells/>\r\n",s+="<x:SizeWithCells/>\r\n",null==t.width&&(t.width=144),null==t.height&&(t.height=79),null==t.offsetX&&(t.offsetX=15),null==t.offsetY&&(t.offsetY=0==t._row?2:15);var h=o.toAnchor(t,t._row,t._col);s+="<x:Anchor>"+h.toString()+"</x:Anchor>\r\n",s+="<x:AutoFill>False</x:AutoFill>\r\n",s+="<x:Row>"+t._row+"</x:Row>\r\n",s+="<x:Column>"+t._col+"</x:Column>\r\n",l&&(s+="<x:Visible/>\r\n"),s+="</x:ClientData>\r\n",s+="</v:shape>\r\n"}),s+"</xml>"}(t)),s.file("comments"+(r+1)+".xml",function(e){var t='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r\n';t+='<comments xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="xr" xmlns:xr="http://schemas.microsoft.com/office/spreadsheetml/2014/revision">\r\n';var s={},r=[],n={family:"Tahoma",size:12};return l.forEach(function(e){var t=e.author||"";null==s[t]&&(s[t]=r.length,r.push(t))}),t+="<authors>\r\n",r.forEach(function(e){return t+="<author>"+e+"</author>\r\n"}),t+="</authors>\r\n",t+="<commentList>\r\n",l.forEach(function(e){var r=i._numAlpha(e._col)+(e._row+1);t+='<comment ref="'+r+'" authorId="'+s[e.author||""]+'" shapeId="0" xr:uid="'+function(){h>4294967295&&(h=0);var e=(65535&h|65536).toString(16).substr(1),t=(h>>16&65535|65536).toString(16).substr(1);return h++,"{00000000-0000-0000-0000"+t+e+"}"}()+'">\r\n',t+="<text>\r\n";var l=e.textRuns&&e.textRuns.length?e.textRuns:[{text:e.text}];l=l.map(function(e){return e.font=e.font||n,e}),t+=i._generateTextRuns(l,i._defaultFontName.toLowerCase()),t+="</text>",t+="</comment>\r\n"}),(t+="</commentList>\r\n")+"</comments>"}()))})},s._generateWorksheets=function(t,s,i,r,n){for(var o,a=this,h=s.folder("worksheets"),u=t.sheets.length,c=[],f=t.sheets.map(function(e){return e.rows.length}).reduce(function(e,t){return e+t}),d=t.sheets.map(function(e){return e.rows.length/f}),m=u-1,p=0,g=0,_=function(){var f=u;c.push(function(){var u=new l(i);return a._generateWorkSheet(f,t,h,i,r,function(t){e.isFunction(n)&&(t=Math.round(t*d[f]),m!==f&&(m=f,g+=p),p=t,n(g+t))}).then(function(){var e=t.sheets[f],i=e&&e.externalLinks,r=a._sheetHasNotes(f);if(e&&(e.tables&&e.tables.length>0||i&&i.length>0||r)){var l=1,n='<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">';if(r&&(n+='<Relationship Id="rId'+l+++'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing" Target="../drawings/vmlDrawing'+(f+1)+'.vml" />',n+='<Relationship Id="rId'+l+++'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments" Target="../comments'+(f+1)+'.xml" />'),i&&i.length>0&&(n+=a._generateHyperlinkRel(i,l),l+=i.length),e.tables&&e.tables.length>0){null==o&&(o=s.folder("tables"));for(var c=0;c<e.tables.length;c++){var d=e.tables[c];a._generateTable(d,o),n+='<Relationship Target="../tables/'+d.fileName+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/table" Id="rId'+(c+l)+'"/>'}}n+="</Relationships>",h.folder("_rels").file("sheet"+(f+1)+".xml.rels",a._xmlDescription+n)}u.resolve()}),u})};u--;)_();return l.serial(i,c).then(function(){e.isFunction(n)&&n(100)})},s._getSharedString=function(e){var s=e.split(/<si.*?>/g),i=s.length;for(this._sharedStrings=[];--i;)if(s[i].search(/<r>/gi)>-1)this._sharedStrings[i-1]=this._extractTextRuns(s[i]);else{var r=this._getElementValue(s[i],"t","","");this._sharedStrings[i-1]=t.Workbook._unescapeXML(r)}},s._extractTextRuns=function(e){for(var s=[],i=e.split(/<r>/g),r=1;r<i.length;r++){var l=void 0;-1!==i[r].indexOf("<rPr>")&&(l=this._getTextRunFont(i[r]));var n=this._getElementValue(i[r],"t","","");s.push({font:l,text:t.Workbook._unescapeXML(n)})}return s},s._getInlineString=function(e){for(var t=e.split("<t"),s=t.length,i="";--s;){var r=t[s];if(" "===r[0]||">"===r[0]){var l=r.indexOf("</t>");l>0&&(i=r.substring(r.indexOf(">")+1,l)+i)}}return i},s._convertDecimalEntities=function(t){if(e.isIE()&&-1!==t.indexOf("&#"))return t.replace(/&#(\d{1,7});/g,function(e,t){return a(t)});for(var s,i=0,r="";(s=t.indexOf("&#",i))>=0;){var l=t.indexOf(";",s+2);if(-1===l)break;var n=l-s-2;if(n>0&&n<8){var o=t.substr(s+2,n),h=+o;if(h!=o){r+=t.substr(i,2),i+=2;continue}r+=t.substring(i,s),r+=a(h)}else r+=t.substring(i,l+1);i=l+1}return i!==t.length&&(r+=t.substr(i)),r||t},s._getCoreSetting=function(e,t){var s,i;(i=e.indexOf("<dc:creator>"))>=0&&(s=e.substr(i+12),t.creator=s.substring(0,s.indexOf("</dc:creator>"))),(i=e.indexOf("<cp:lastModifiedBy>"))>=0&&(s=e.substr(i+19),t.lastModifiedBy=s.substring(0,s.indexOf("</cp:lastModifiedBy>"))),(i=e.indexOf('<dcterms:created xsi:type="dcterms:W3CDTF">'))>=0&&(s=e.substr(i+43),t.created=new Date(s.substring(0,s.indexOf("</dcterms:created>")))),(i=e.indexOf('<dcterms:modified xsi:type="dcterms:W3CDTF">'))>=0&&(s=e.substr(i+44),t.modified=new Date(s.substring(0,s.indexOf("</dcterms:modified>"))))},s._getWorkbook=function(e,t){var s,i,r,l,n,o,a,h,u=e.substring(e.indexOf("<bookViews>"),e.indexOf("</bookViews>")),c="",f=e.indexOf("<definedNames>");for(u&&(c=this._getAttr(u,"activeTab")),t.activeWorksheet=+c,o=(n=e.split("<sheet ")).length;--o;)a=this._getAttr(n[o],"name"),h="hidden"!==this._getAttr(n[o],"state"),t.sheets.unshift({name:a,visible:h,columns:[],rows:[]});if(f>-1)for(t.definedNames=[],o=(n=e.substring(f,e.indexOf("</definedNames>")).split("<definedName ")).length;--o;)a=this._getAttr(n[o],"name"),(i=n[o].match(/.*>.+(?=<\/definedName>)/))&&(i=i[0].replace(/(.*>)(.+)/,"$2"),i=isNaN(+i)?i:+i),s={name:a,value:i},""!==(r=this._getAttr(n[o],"localSheetId"))&&(l=t.sheets[+r])&&(s.sheetName=l.name),t.definedNames.unshift(s)},s._getTheme=function(e){e=e.substring(e.indexOf("<a:clrScheme"),e.indexOf("</a:clrScheme>")),this._colorThemes=this._defaultColorThemes.slice(),this._colorThemes[0]=this._getAttr(e.substring(e.indexOf("a:lt1"),e.indexOf("</a:lt1>")),"lastClr")||this._getAttr(e.substring(e.indexOf("a:lt1"),e.indexOf("</a:lt1>")),"val"),this._colorThemes[1]=this._getAttr(e.substring(e.indexOf("a:dk1"),e.indexOf("</a:dk1>")),"lastClr")||this._getAttr(e.substring(e.indexOf("a:dk1"),e.indexOf("</a:dk1>")),"val"),this._colorThemes[2]=this._getAttr(e.substring(e.indexOf("a:lt2"),e.indexOf("</a:lt2>")),"val"),this._colorThemes[3]=this._getAttr(e.substring(e.indexOf("a:dk2"),e.indexOf("</a:dk2>")),"val");for(var t=e.substring(e.indexOf("<a:accent1"),e.indexOf("</a:accent6>")).split("<a:accent"),s=t.length;--s;)this._colorThemes[s+3]=this._getAttr(t[s],"val")},s._getStyle=function(e,s){var i=[],r=[],l=[],n=this._numFmts.slice();this._styles=[];var o=e.indexOf("<numFmts");if(o>=0)for(var a=e.substring(o+8,e.indexOf("</numFmts>")).split("<numFmt"),h=a.length;--h;){var u=a[h];n[+this._getAttr(u,"numFmtId")]=this._getAttr(u,"formatCode")}if(s){if((o=e.indexOf("<fonts"))>=0){var c=e.substring(o,e.indexOf("</fonts>")).split("<font>");for(h=c.length;--h;){u=c[h];var f=this._getChildNodeValue(u,"sz"),d=void 0;i[h-1]={bold:/<b\s*\/>/.test(u)||"true"===this._getChildNodeValue(u,"b"),italic:/<i\s*\/>/.test(u)||"true"===this._getChildNodeValue(u,"i"),underline:/<u\s*\/>/.test(u)||!!(d=this._getChildNodeValue(u,"u"))&&"none"!==d,size:Math.round(f?96*+f/72:14),family:this._getChildNodeValue(u,"name"),color:this._getColor(u,!1)},f=null}}if((o=e.indexOf("<fills"))>=0){var m=e.substring(o,e.indexOf("</fills>")).split("<fill>");for(h=m.length;--h;)r[h-1]=this._getColor(m[h],!0)}if((o=e.indexOf("<borders"))>=0){var p=e.substring(o+8,e.indexOf("</borders>")).split("<border");for(h=p.length;--h;){u=p[h];l[h-1]={left:this._getEdgeBorder(u,"left"),right:this._getEdgeBorder(u,"right"),top:this._getEdgeBorder(u,"top"),bottom:this._getEdgeBorder(u,"bottom")}}}}if((o=e.indexOf("<cellXfs"))>=0){var g=e.substring(o,e.indexOf("</cellXfs>")).split("<xf");for(h=g.length;--h;){u=g[h];var _=+this._getAttr(u,"numFmtId"),y=n[_],v="unknown";y&&(/[hsmy\:]/i.test(y)?v="date":y.indexOf("0")>-1?v="number":"@"===y&&(v="string"));var b={formatCode:y,type:v,quotePrefix:1==+this._getAttr(u,"quotePrefix")};if(s){var x=(_=+this._getAttr(u,"fontId"))>0?i[_]:null,w=(_=+this._getAttr(u,"fillId"))>1?r[_]:null,S=(_=+this._getAttr(u,"borderId"))>0?l[_]:null;o=u.indexOf("<alignment"),b.font=x,b.fillColor=w,b.borders=S,b.hAlign=o>=0?t.Workbook._parseStringToHAlign(this._getAttr(u,"horizontal")):null,b.vAlign=o>=0?t.Workbook._parseStringToVAlign(this._getAttr(u,"vertical")):null,b.wordWrap=o>=0?"1"===this._getAttr(u,"wrapText"):null}this._styles.unshift(b)}}if(s&&e.indexOf("<tableStyle ")>-1){this._tableStyles=[];var C=e.substring(e.indexOf("<tableStyles "),e.indexOf("</tableStyles>")),k=e.substring(e.indexOf("<dxfs "),e.indexOf("</dxfs>"));this._getTableStyles(C,k.split("<dxf>"))}},s._getEdgeBorder=function(e,s){var i,r,l,n,o=e.indexOf("<"+s),a=e.indexOf("</"+s+">");if(o>=0){r=e.substring(o),r=a>=0?r.substring(0,a):r.substring(0,r.indexOf("/>"));var h=this._getAttr(r,"style");h&&(l=t.Workbook._parseStringToBorderType(h),n=this._getColor(r,!1),l===t.BorderStyle.Thin&&n&&"#c6c6c6"===n.toLowerCase()||((i={}).style=l,i.color=n))}return i},s._getSheet=function(s,i,r,l){var n,o=[];if(s.indexOf("<mergeCells")>-1)for(var a=s.substring(s.indexOf("<mergeCells"),s.indexOf("</mergeCells>")).split("<mergeCell "),h=a.length;--h;)2===(n=this._getAttr(a[h],"ref").split(":")).length&&o.unshift({topRow:+n[0].match(/\d*/g).join("")-1,leftCol:this._alphaNum(n[0].match(/[a-zA-Z]*/g)[0]),bottomRow:+n[1].match(/\d*/g).join("")-1,rightCol:this._alphaNum(n[1].match(/[a-zA-Z]*/g)[0])});this._getsBaseSharedFormulas(s);var u=s.split("<row "),c=r.sheets[i];if(u[0].indexOf("<dimension")>=0){var f=this._getAttr(u[0].substr(u[0].indexOf("<dimension")),"ref");f&&(f=f.substr(f.indexOf(":")+1),c.maxCol=this._alphaNum(f.match(/[a-zA-Z]*/g)[0])+1,c.maxRow=+f.match(/\d*/g).join(""))}var d,m=s.indexOf("<tableParts");if(m>-1){var p=s.substring(m,s.indexOf("</tableParts>")).split("<tablePart "),g=p.length;for(c.tableRIds=[];--g;)c.tableRIds.unshift(this._getAttr(p[g],"r:id"))}if(u.length>0&&u[0].indexOf("<pane")>-1&&"frozen"===this._getAttr(u[0].substr(u[0].indexOf("<pane")),"state")){var _=this._getAttr(u[0].substr(u[0].indexOf("<pane")),"ySplit"),y=this._getAttr(u[0].substr(u[0].indexOf("<pane")),"xSplit");c.frozenPane={rows:_?+_:NaN,columns:y?+y:NaN}}for(c.summaryBelow="0"!==this._getAttr(u[0],"summaryBelow"),h=u.length,u.length<=1?(c.maxCol=20,c.maxRow=200):(null==c.maxRow||c.maxRow<h-1)&&(c.maxRow=h-1);--h;){var v=c.rows[+this._getAttr(u[h],"r")-1]={visible:!0,groupLevel:NaN,cells:[]};if(u[h].substring(0,u[h].indexOf(">")).indexOf("hidden")>-1&&"1"===this._getAttr(u[h],"hidden")&&(v.visible=!1),"1"===this._getAttr(u[h],"customHeight")){var b=+this._getAttr(u[h].substring(0,u[h].indexOf(">")).replace("customHeight",""),"ht");v.height=96*b/72}var x=null;if("1"===this._getAttr(u[h],"customFormat"))(M=this._styles[+this._getAttr(u[h].substring(u[h].indexOf(" s=")),"s")]||{type:"General",formatCode:null}).formatCode&&"General"!==M.formatCode&&(x={format:M.formatCode&&"General"!==M.formatCode?M.formatCode:null}),l&&(M.font||M.fillColor||M.hAlign||M.vAlign||M.wordWrap||M.borders)&&((x=x||{}).font=M.font,x.fill={color:M.fillColor},x.borders=M.borders,x.hAlign=M.hAlign,x.vAlign=M.vAlign,x.wordWrap=M.wordWrap);v.style=x;var w=this._getAttr(u[h],"outlineLevel");v.groupLevel=w&&""!==w?+w:NaN,v.collapsed="1"===this._getAttr(u[h],"collapsed");var S=u[h].split("<c "),C=S.length;for((null==c.maxCol||c.maxCol<C-1)&&(c.maxCol=C-1);--C;){var k=S[C],F=null;(M=this._styles[+this._getAttr(k,"s")]||{type:"General",formatCode:null}).formatCode&&"General"!==M.formatCode&&(F={format:M.formatCode&&"General"!==M.formatCode?M.formatCode:null}),l&&(M.font||M.fillColor||M.hAlign||M.vAlign||M.wordWrap||M.borders)&&((F=F||{}).font=M.font,F.fill={color:M.fillColor},F.borders=M.borders,F.hAlign=M.hAlign,F.vAlign=M.vAlign,F.wordWrap=M.wordWrap);var T=this._getAttr(k.substring(0,k.indexOf(">")),"t")||M.type,z=null,A="inlineStr"===T||k.indexOf("<is>")>=0;A?(z=this._getInlineString(k),z=this._convertDecimalEntities(z)):(z=this._getElementValue(k,"v","",""),z=t.Workbook._unescapeXML(z));var R=null,O=null,D=null;k.indexOf("<f")>-1&&(k.indexOf("</f>")>-1?(R=k.match(/<f.*>.+(?=<\/f>)/))&&(R=R[0].replace(/(\<f.*>)(.+)/,"$2")):(O=this._getAttr(k,"si"))&&(D=this._getAttr(k,"r"),R=this._getSharedFormula(O,D))),null!=R&&(R=R.replace(/\[\#This Row\]\s*,\s*/gi,"@")),"str"===T||"e"===T||A||(z=z?+z:z),d=this._alphaNum(this._getAttr(k,"r").match(/[a-zA-Z]*/g)[0]);var N=null;switch(T){case"s":null!=(z=this._sharedStrings[z])&&(e.isString(z)?M&&M.quotePrefix&&(z="'"+z):(N=z.slice(),z=this._getTextOfTextRuns(N)));break;case"b":z=1===z;break;case"date":z=z?this._convertDate(z):""}e.isNumber(z)&&(null==F&&(F={format:""}),e.isInt(z)?F.format=F.format||"#,##0":F.format=F.format||"#,##0.00"),v.cells[d]={value:z,textRuns:N,isDate:"date"===T,isNumber:"number"===T,formula:t.Workbook._unescapeXML(R),style:F}}}var W=[],B=[];if(u.length>0&&u[0].indexOf("<cols>")>-1)for(var E=(W=u[0].substring(u[0].indexOf("<cols>")+6,u[0].indexOf("</cols>")).split("<col ")).length-1;E>0;E--){var I=this._parseCharWidthToPixel(+this._getAttr(W[E],"width")),M=null,L=null;W[E].indexOf("style")>-1&&(M=this._styles[+this._getAttr(W[E],"style")]||{type:"General",formatCode:null}),M&&M.formatCode&&"General"!==M.formatCode&&(L={format:M.formatCode&&"General"!==M.formatCode?M.formatCode:null}),l&&M&&(M.font||M.fillColor||M.hAlign||M.vAlign||M.wordWrap||M.borders)&&((L=L||{}).font=M.font,L.fill={color:M.fillColor},L.borders=M.borders,L.hAlign=M.hAlign,L.vAlign=M.vAlign,L.wordWrap=M.wordWrap);var P=+this._getAttr(W[E],"min"),H=+this._getAttr(W[E],"max");if(H>c.maxCol)c._extraColumn={min:P,max:H,width:I,style:L};else for(d=P-1;d<H&&d<c.maxCol;d++)B[d]={visible:"1"!==this._getAttr(W[E],"hidden"),autoWidth:"1"===this._getAttr(W[E],"bestFit"),width:I,style:L}}c.columns=B;var j,V=s.indexOf("<hyperlinks");if(V>-1)for(var X=s.substring(V,s.indexOf("</hyperlinks>")).split("<hyperlink "),G=X.length;--G;)this._getHyperlink(c,X[G]);if(c.frozenPane){if(!isNaN(c.frozenPane.rows))for(h=0;h<c.rows.length&&h<c.frozenPane.rows;h++)c.rows[h]&&!c.rows[h].visible&&c.frozenPane.rows++;if(!isNaN(c.frozenPane.columns))for(h=0;h<B.length&&h<c.frozenPane.columns;h++)B[h]&&!B[h].visible&&c.frozenPane.columns++}for(C=0;C<o.length;C++)j=o[C],c.rows[j.topRow]||(c.rows[j.topRow]={cells:[]}),c.rows[j.topRow].cells||(c.rows[j.topRow].cells=[]),c.rows[j.topRow].cells[j.leftCol]||(c.rows[j.topRow].cells[j.leftCol]={}),c.rows[j.topRow].cells[j.leftCol].rowSpan=j.bottomRow<c.maxRow?j.bottomRow-j.topRow+1:200,c.rows[j.topRow].cells[j.leftCol].colSpan=j.rightCol<c.maxCol?j.rightCol-j.leftCol+1:20},s._getTable=function(e){var t={};t.name=this._getAttr(e,"name"),t.range=this._getAttr(e,"ref");var s=this._getAttr(e,"headerRowCount");t.showHeaderRow=""==s||"1"===s;var i=this._getAttr(e,"totalsRowCount");t.showTotalRow="1"===i;var r=e.substring(e.indexOf("<tableStyleInfo")),l=this._getAttr(r,"name");this._isBuiltInStyleName(l)?t.style={name:l}:t.style=this._getTableStyleByName(l),t.showBandedColumns="1"===this._getAttr(r,"showColumnStripes"),t.showBandedRows="1"===this._getAttr(r,"showRowStripes"),t.alterFirstColumn="1"===this._getAttr(r,"showFirstColumn"),t.alterLastColumn="1"===this._getAttr(r,"showLastColumn");var n=e.split("<tableColumn ");t.columns=[];for(var o=1;o<n.length;o++){var a=n[o];t.columns.push(this._getTableColumn(a))}if(e.indexOf("filterColumn")>-1)for(var h=e.substring(e.indexOf("<autoFilter"),e.indexOf("</autoFilter>")).split("<filterColumn"),u=1;u<h.length;u++){var c=h[u],f=+this._getAttr(c,"colId");t.columns[f].showFilterButton="1"!==this._getAttr(c,"hiddenButton")}return t},s._getTableColumn=function(e){var t={};t.name=this._getAttr(e,"name");var s=this._getAttr(e,"totalsRowLabel");if(s)t.totalRowLabel=s;else{var i=this._getAttr(e,"totalsRowFunction");"custom"===i&&(i=e.substring(e.indexOf("<totalsRowFormula>")+2+"totalsRowFormula".length,e.indexOf("</totalsRowFormula>"))),t.totalRowFunction=i}return t},s._getSheetRelatedTable=function(e){var t=this._getAttr(e,"Target");t=t.substring(t.lastIndexOf("/")+1);for(var s=0;s<this._tables.length;s++){var i=this._tables[s];if(t===i.fileName)return i}return null},s._getSheetRelatedHyperlink=function(e,t,s){for(var i=0;i<s.hyperlinkRIds.length;i++){var r=s.hyperlinkRIds[i];if(r.rId===t){var l=this._getAttr(e,"Target");s.rows[r.ref.row]&&s.rows[r.ref.row].cells[r.ref.col]&&(s.rows[r.ref.row].cells[r.ref.col].link=l)}}},s._getTableStyles=function(e,t){for(var s=e.split("<tableStyle "),i=s.length;--i;){var r={},l=s[i];r.name=this._getAttr(l,"name");for(var n=l.split("<tableStyleElement "),o=n.length;--o;){var a=n[o],h=this._getAttr(a,"type");switch(h){case"firstRowStripe":h="firstBandedRowStyle";break;case"secondRowStripe":h="secondBandedRowStyle";break;case"firstColumnStripe":h="firstBandedColumnStyle";break;case"secondColumnStripe":h="secondBandedColumnStyle";break;default:h+="Style"}var u=this._getAttr(a,"dxfId");""!==u&&(r[h]=this._getTableStyleElement(t[+u+1]));var c=this._getAttr(a,"size");c&&(null==r[h]&&(r[h]={}),r[h].size=+c)}this._tableStyles.push(r)}},s._getTableStyleElement=function(e){var t=null,s=null,i=null,r=null,l=e.indexOf("<font>");if(l>=0){t=e.substring(l,e.indexOf("</font>"));var n=this._getChildNodeValue(t,"sz");s={bold:"1"===this._getChildNodeValue(t,"b"),italic:"1"===this._getChildNodeValue(t,"i"),underline:"1"===this._getChildNodeValue(t,"u"),size:Math.round(n?96*+n/72:14),family:this._getChildNodeValue(t,"name"),color:this._getColor(t,!1)}}return t=null,(l=e.indexOf("<fill>"))>=0&&(t=e.substring(l,e.indexOf("</fill>")),i={color:this._getColor(t,!0)}),t=null,(l=e.indexOf("<border>"))>=0&&(t=e.substring(l,e.indexOf("</border>")),r={left:this._getEdgeBorder(t,"left"),right:this._getEdgeBorder(t,"right"),top:this._getEdgeBorder(t,"top"),bottom:this._getEdgeBorder(t,"bottom"),vertical:this._getEdgeBorder(t,"vertical"),horizontal:this._getEdgeBorder(t,"horizontal")}),{font:s,fill:i,borders:r}},s._getTableStyleByName=function(e){var t,s;if(null==this._tableStyles||0===this._tableStyles.length)return null;for(t=0;t<this._tableStyles.length;t++)if((s=this._tableStyles[t])&&s.name.toLowerCase()===e.toLowerCase())return s;return null},s._getHyperlink=function(e,s){var i,r,l,n,o,a;if(null!=(i=this._getAttr(s,"ref"))){l=i.split(":"),null==(o=this._getAttr(s,"r:id"))&&(a=this._getAttr(s,"location"));for(var h=0;h<l.length;h++)r=l[h],n=t.Workbook.tableAddress(r),o?(null==e.hyperlinkRIds&&(e.hyperlinkRIds=[]),e.hyperlinkRIds.push({ref:n,rId:o})):a&&e.rows[n.row]&&e.rows[n.row].cells[n.col]&&(e.rows[n.row].cells[n.col].link=a)}},s._getTextRunFont=function(e){var t,s=this._getChildNodeValue(e,"sz");return{bold:e.indexOf("<b/>")>=0||"true"===this._getChildNodeValue(e,"b"),italic:e.indexOf("<i/>")>=0||"true"===this._getChildNodeValue(e,"i"),underline:e.indexOf("<u/>")>=0||(t=this._getChildNodeValue(e,"u"))&&"none"!==t,size:Math.round(s?96*+s/72:14),family:this._getChildNodeValue(e,"rFont"),color:this._getColor(e,!1)}},s._getTextOfTextRuns=function(e){var t,s,i="";for(t=0;t<e.length;t++)(s=e[t])&&(i+=s.text);return i},s._isBuiltInStyleName=function(e){var t;if(0===e.search(/TableStyleLight/i)){if(t=+e.substring(15),!isNaN(t)&&t>=1&&t<=21)return!0}else if(0===e.search(/TableStyleMedium/i)){if(t=+e.substring(16),!isNaN(t)&&t>=1&&t<=28)return!0}else if(0===e.search(/TableStyleDark/i)&&(t=+e.substring(14),!isNaN(t)&&t>=1&&t<=11))return!0;return!1},s._generateRelsDoc=function(){return'<Relationships xmlns="'+this._relationshipsNS+'"><Relationship Target="docProps/app.xml" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" Id="rId3"/><Relationship Target="docProps/core.xml" Type="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" Id="rId2"/><Relationship Target="xl/workbook.xml" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Id="rId1"/></Relationships>'},s._generateThemeDoc=function(){return'<a:theme name="Office Theme" xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main"><a:themeElements>'+this._generateClrScheme()+this._generateFontScheme()+this._generateFmtScheme()+"</a:themeElements><a:objectDefaults/><a:extraClrSchemeLst/></a:theme>"},s._generateClrScheme=function(){return null===this._colorThemes&&(this._colorThemes=[]),'<a:clrScheme name="Office"><a:dk1><a:sysClr lastClr="'+(this._colorThemes[1]||"000000")+'" val="windowText"/></a:dk1><a:lt1><a:sysClr lastClr="'+(this._colorThemes[0]||"FFFFFF")+'" val="window"/></a:lt1><a:dk2><a:srgbClr val="'+(this._colorThemes[3]||"1F497D")+'"/></a:dk2><a:lt2><a:srgbClr val="'+(this._colorThemes[2]||"EEECE1")+'"/></a:lt2><a:accent1><a:srgbClr val="'+(this._colorThemes[4]||"4F81BD")+'"/></a:accent1><a:accent2><a:srgbClr val="'+(this._colorThemes[5]||"C0504D")+'"/></a:accent2><a:accent3><a:srgbClr val="'+(this._colorThemes[6]||"9BBB59")+'"/></a:accent3><a:accent4><a:srgbClr val="'+(this._colorThemes[7]||"8064A2")+'"/></a:accent4><a:accent5><a:srgbClr val="'+(this._colorThemes[8]||"4BACC6")+'"/></a:accent5><a:accent6><a:srgbClr val="'+(this._colorThemes[9]||"F79646")+'"/></a:accent6><a:hlink><a:srgbClr val="0000FF"/></a:hlink><a:folHlink><a:srgbClr val="800080"/></a:folHlink></a:clrScheme>'},s._generateFontScheme=function(){return'<a:fontScheme name="Office"><a:majorFont><a:latin typeface="Cambria"/><a:ea typeface=""/><a:cs typeface=""/><a:font typeface="ＭＳ Ｐゴシック" script="Jpan"/><a:font typeface="맑은 고딕" script="Hang"/><a:font typeface="宋体" script="Hans"/><a:font typeface="新細明體" script="Hant"/><a:font typeface="Times New Roman" script="Arab"/><a:font typeface="Times New Roman" script="Hebr"/><a:font typeface="Tahoma" script="Thai"/><a:font typeface="Nyala" script="Ethi"/><a:font typeface="Vrinda" script="Beng"/><a:font typeface="Shruti" script="Gujr"/><a:font typeface="MoolBoran" script="Khmr"/><a:font typeface="Tunga" script="Knda"/><a:font typeface="Raavi" script="Guru"/><a:font typeface="Euphemia" script="Cans"/><a:font typeface="Plantagenet Cherokee" script="Cher"/><a:font typeface="Microsoft Yi Baiti" script="Yiii"/><a:font typeface="Microsoft Himalaya" script="Tibt"/><a:font typeface="MV Boli" script="Thaa"/><a:font typeface="Mangal" script="Deva"/><a:font typeface="Gautami" script="Telu"/><a:font typeface="Latha" script="Taml"/><a:font typeface="Estrangelo Edessa" script="Syrc"/><a:font typeface="Kalinga" script="Orya"/><a:font typeface="Kartika" script="Mlym"/><a:font typeface="DokChampa" script="Laoo"/><a:font typeface="Iskoola Pota" script="Sinh"/><a:font typeface="Mongolian Baiti" script="Mong"/><a:font typeface="Times New Roman" script="Viet"/><a:font typeface="Microsoft Uighur" script="Uigh"/><a:font typeface="Sylfaen" script="Geor"/></a:majorFont><a:minorFont><a:latin typeface="Calibri"/><a:ea typeface=""/><a:cs typeface=""/><a:font typeface="ＭＳ Ｐゴシック" script="Jpan"/><a:font typeface="맑은 고딕" script="Hang"/><a:font typeface="宋体" script="Hans"/><a:font typeface="新細明體" script="Hant"/><a:font typeface="Arial" script="Arab"/><a:font typeface="Arial" script="Hebr"/><a:font typeface="Tahoma" script="Thai"/><a:font typeface="Nyala" script="Ethi"/><a:font typeface="Vrinda" script="Beng"/><a:font typeface="Shruti" script="Gujr"/><a:font typeface="DaunPenh" script="Khmr"/><a:font typeface="Tunga" script="Knda"/><a:font typeface="Raavi" script="Guru"/><a:font typeface="Euphemia" script="Cans"/><a:font typeface="Plantagenet Cherokee" script="Cher"/><a:font typeface="Microsoft Yi Baiti" script="Yiii"/><a:font typeface="Microsoft Himalaya" script="Tibt"/><a:font typeface="MV Boli" script="Thaa"/><a:font typeface="Mangal" script="Deva"/><a:font typeface="Gautami" script="Telu"/><a:font typeface="Latha" script="Taml"/><a:font typeface="Estrangelo Edessa" script="Syrc"/><a:font typeface="Kalinga" script="Orya"/><a:font typeface="Kartika" script="Mlym"/><a:font typeface="DokChampa" script="Laoo"/><a:font typeface="Iskoola Pota" script="Sinh"/><a:font typeface="Mongolian Baiti" script="Mong"/><a:font typeface="Arial" script="Viet"/><a:font typeface="Microsoft Uighur" script="Uigh"/><a:font typeface="Sylfaen" script="Geor"/></a:minorFont></a:fontScheme>'},s._generateFmtScheme=function(){return'<a:fmtScheme name="Office">'+this._generateFillScheme()+this._generateLineStyles()+this._generateEffectScheme()+this._generateBgFillScheme()+"</a:fmtScheme>"},s._generateFillScheme=function(){return'<a:fillStyleLst><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="50000"/><a:satMod val="300000"/></a:schemeClr></a:gs><a:gs pos="35000"><a:schemeClr val="phClr"><a:tint val="37000"/><a:satMod val="300000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:satMod val="350000"/></a:schemeClr></a:gs></a:gsLst><a:lin scaled="1" ang="16200000"/></a:gradFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="51000"/><a:satMod val="130000"/></a:schemeClr></a:gs><a:gs pos="80000"><a:schemeClr val="phClr"><a:tint val="15000"/><a:satMod val="130000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="94000"/><a:satMod val="135000"/></a:schemeClr></a:gs></a:gsLst><a:lin scaled="1" ang="16200000"/></a:gradFill></a:fillStyleLst>'},s._generateLineStyles=function(){return'<a:lnStyleLst><a:ln algn="ctr" cmpd="sng" cap="flat" w="9525"><a:solidFill><a:schemeClr val="phClr"><a:shade val="9500"/><a:satMod val="105000"/></a:schemeClr></a:solidFill><a:prstDash val="solid"/></a:ln><a:ln algn="ctr" cmpd="sng" cap="flat" w="25400"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln><a:ln algn="ctr" cmpd="sng" cap="flat" w="38100"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln></a:lnStyleLst>'},s._generateEffectScheme=function(){return'<a:effectStyleLst><a:effectStyle><a:effectLst><a:outerShdw dir="5400000" rotWithShape="0" dist="23000" blurRad="40000"><a:srgbClr val="000000"><a:alpha val="38000"/></a:srgbClr></a:outerShdw></a:effectLst></a:effectStyle><a:effectStyle><a:effectLst><a:outerShdw dir="5400000" rotWithShape="0" dist="23000" blurRad="40000"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw></a:effectLst></a:effectStyle><a:effectStyle><a:effectLst><a:outerShdw dir="5400000" rotWithShape="0" dist="23000" blurRad="40000"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw></a:effectLst><a:scene3d><a:camera prst="orthographicFront"><a:rot rev="0" lon="0" lat="0"/></a:camera><a:lightRig dir="t" rig="threePt"><a:rot rev="1200000" lon="0" lat="0"/></a:lightRig></a:scene3d><a:sp3d><a:bevelT w="63500" h="25400"/></a:sp3d></a:effectStyle></a:effectStyleLst>'},s._generateBgFillScheme=function(){return'<a:bgFillStyleLst><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="40000"/><a:satMod val="350000"/></a:schemeClr></a:gs><a:gs pos="40000"><a:schemeClr val="phClr"><a:tint val="45000"/><a:shade val="99000"/><a:satMod val="350000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="20000"/><a:satMod val="255000"/></a:schemeClr></a:gs></a:gsLst><a:path path="circle"><a:fillToRect l="50000" t="-80000" r="50000" b="180000"/></a:path></a:gradFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:satMod val="300000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="80000"/><a:satMod val="200000"/></a:schemeClr></a:gs></a:gsLst><a:path path="circle"><a:fillToRect l="50000" t="50000" r="50000" b="50000"/></a:path></a:gradFill></a:bgFillStyleLst>'},s._generateCoreDoc=function(e){var t='<cp:coreProperties xmlns:cp="http://schemas.openxmlformats.org/package/2006/metadata/core-properties" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:dcmitype="http://purl.org/dc/dcmitype/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">';return e.creator?t+="<dc:creator>"+e.creator+"</dc:creator>":t+="<dc:creator/>",e.lastModifiedBy?t+="<cp:lastModifiedBy>"+e.lastModifiedBy+"</cp:lastModifiedBy>":t+="<cp:lastModifiedBy/>",t+='<dcterms:created xsi:type="dcterms:W3CDTF">'+(e.created||new Date).toISOString()+'</dcterms:created><dcterms:modified xsi:type="dcterms:W3CDTF">'+(e.modified||new Date).toISOString()+"</dcterms:modified></cp:coreProperties>"},s._generateSheetGlobalSetting=function(e,t,s){var i=t.rows&&t.rows[0]&&t.rows[0].cells?t.rows[0].cells.length:0,r=' xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"';this._sheetHasNotes(e)&&(r+=' xmlns:xdr="http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing" xmlns:x14="http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"'),r+=' xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x14ac" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac">',r+='<sheetPr><outlinePr summaryBelow="0"/></sheetPr>',r+='<dimension ref="A1'+(i>0?":"+this._numAlpha(i-1)+t.rows.length:"")+'"/>',r+='<sheetViews><sheetView workbookViewId="0"',e===s.activeWorksheet&&(r+=' tabSelected="1"');var l=0,n=0;return t.frozenPane&&((l=t.frozenPane.rows||0)||(n=t.frozenPane.columns||0))?(r+=">",r+='<pane state="frozen" activePane="'+(0!==l&&0!==n?"bottomRight":0!==l?"bottomLeft":"topRight")+'" topLeftCell="'+(this._numAlpha(n)+(l+1))+'" ySplit="'+l.toString()+'" xSplit="'+n.toString()+'"/>',r+="</sheetView>"):r+="/>",r+="</sheetViews>",r+='<sheetFormatPr defaultRowHeight="15" x14ac:dyDescent="0.25"/>'},s._generateCell=function(e,s,i,r,l,n){var o='<c r="'+this._numAlpha(s)+(e+1)+'" s="'+i.toString()+'"';r&&(o+=' t="'+r+'"');var a="";return n&&("="===n[0]&&(n=n.substring(1)),n=n.replace(/\@\s*/gi,"[#This Row], "),a+="<f>"+t.Workbook._escapeXML(n)+"</f>"),null!=l&&""!==l&&(a+="<v>"+l+"</v>"),o+(a?">"+a+"</c>":"/>")},s._generateMergeSetting=function(e){for(var t='<mergeCells count="'+e.length.toString()+'">',s=0;s<e.length;s++)t+='<mergeCell ref="'+e[s].join(":")+'"/>';return t+"</mergeCells>"},s._generateStyleDoc=function(){var e='<styleSheet xmlns="'+this._workbookNS+'" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x14ac">',t="",s="",i=[],r=0,l=0,n="",o="";o=this._generateFontStyle({},!0);var a="",h="";h+=this._generateFillStyle("none",null),h+=this._generateFillStyle("gray125",null);var u="",c="";c+=this._generateBorderStyle({});var f="",d="";for(d+=this._generateCellXfs(0,0,0,0,{});r<this._styles.length;){var m=this._styles[r];if(m){var p=0;if((m=JSON.parse(m)).format&&"General"!==m.format&&(p=this._numFmts.indexOf(m.format))<0){var g=i.indexOf(m.format);-1===g?(i.push(m.format),s+='<numFmt numFmtId="'+(p=164+l).toString()+'" formatCode="'+m.format+'"/>',l++):p=164+g}var _=0;if(m.borders){var y=JSON.stringify(m.borders);(_=this._borders.indexOf(y))<0&&(_=this._borders.push(y)-1,c+=this._generateBorderStyle(m.borders))}var v=0;if(m.font){var b=JSON.stringify(m.font);(v=this._fonts.indexOf(b))<0&&(v=this._fonts.push(b)-1,o+=this._generateFontStyle(m.font))}var x=0;if(m.fill&&m.fill.color){var w=JSON.stringify(m.fill);(x=this._fills.indexOf(w))<0&&(x=this._fills.push(w)-1,h+=this._generateFillStyle("solid",m.fill.color))}d+=this._generateCellXfs(p,_,v,x,m)}r++}i=null,l>0?(t='<numFmts count="'+l+'">',t+=s,t+="</numFmts>"):t='<numFmts count="0"/>',e+=t,n='<fonts count="'+this._fonts.length+'" x14ac:knownFonts="1">',n+=o,e+=n+="</fonts>",a='<fills count="'+this._fills.length+'">',a+=h,e+=a+="</fills>",u='<borders count="'+this._borders.length+'">',u+=c,e+=u+="</borders>",e+='<cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs>',f='<cellXfs count="'+this._styles.length+'">',f+=d,f+="</cellXfs>";var S="",C="";return this._tableStyles.length>0&&(this._getDxfs(),this._dxfs.length>0&&(S=this._generateDxfs()),C=this._generateTableStyles()),e+=f+'<cellStyles count="1"><cellStyle xfId="0" builtinId="0" name="Normal"/></cellStyles>'+(""===S?'<dxfs count="0"/>':S)+(""===C?'<tableStyles count="0" defaultTableStyle="TableStyleMedium9" defaultPivotStyle="PivotStyleLight16"/>':C)+'<extLst><ext uri="{EB79DEF2-80B8-43e5-95BD-54CBDDF9020C}"><x14ac:slicerStyles defaultSlicerStyle="SlicerStyleLight1" xmlns:x14="http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"/></ext></extLst></styleSheet>'},s._generateBorderStyle=function(e,t){void 0===t&&(t=!1);var s,i,r="<border>";for(var l in{left:0,right:0,top:0,bottom:0,diagonal:0,vertical:0,horizontal:0})(t||"vertical"!==l&&"horizontal"!==l)&&(e[l]?(s="<"+l+' style="'+e[l].style+'">',"",6===(i=(i=e[l].color)?"#"===i[0]?i.substring(1):i:"").length&&(i="FF"+i),i||(i="FF000000"),s+='<color rgb="'+i+'"/>',s+="</"+l+">"):s="<"+l+"/>",r+=s);return r+="</border>"},s._generateFontStyle=function(e,t,s){void 0===t&&(t=!1),void 0===s&&(s=!1);var i=s?"<rPr>":"<font>";return e.bold&&(i+="<b/>"),e.italic&&(i+="<i/>"),e.underline&&(i+="<u/>"),i+='<sz val="'+(e.size?Math.round(72*e.size/96):this._defaultFontSize)+'"/>',e.color?i+='<color rgb="FF'+this._parseColor(e.color).substring(1)+'"/>':i+='<color theme="1"/>',i+="<"+(s?"rFont":"name")+' val="'+(e.family||this._defaultFontName)+'" />',i+='<family val="2"/>',t&&(i+='<scheme val="minor"/>'),i+=s?"</rPr>":"</font>"},s._generateFillStyle=function(e,t,s){void 0===s&&(s=!1);var i,r='<fill><patternFill patternType="'+e+'">';return t&&(i=s?"<bgColor ":"<fgColor ",r+=i+='rgb="FF'+("#"===t[0]?t.substring(1):t)+'"/>'),r+="</patternFill></fill>"},s._generateCellXfs=function(e,t,s,i,r){var l='<xf xfId="0" ';if(l+='numFmtId="'+e.toString()+'" ',e>0&&(l+='applyNumberFormat="1" '),l+='borderId="'+t.toString()+'" ',t>0&&(l+='applyBorder="1" '),l+='fontId="'+s.toString()+'" ',s>0&&(l+='applyFont="1" '),l+='fillId="'+i.toString()+'" ',i>0&&(l+='applyFill="1" '),r.quotePrefix&&(l+='quotePrefix="1" '),r.hAlign||r.vAlign||r.indent||r.wordWrap){l+='applyAlignment="1">';var n="<alignment ";r.hAlign&&(n+='horizontal="'+r.hAlign+'" '),r.vAlign&&(n+='vertical="'+r.vAlign+'" '),r.indent&&(n+='indent="'+r.indent+'" '),r.wordWrap&&(n+='wrapText="1"'),l+=n+="/>",l+="</xf>"}else l+="/>";return l},s._generateContentTypesDoc=function(e){var t=this,s='<Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types">',i=e.sheets,r=i.reduce(function(e,s,i){return e||t._sheetHasNotes(i)},this._sheetHasNotes(0));this._macroEnabled&&(s+='<Default ContentType="application/vnd.ms-office.vbaProject" Extension="bin"/>'),r&&(s+='<Default Extension="vml" ContentType = "application/vnd.openxmlformats-officedocument.vmlDrawing" />'),s+='<Default ContentType="application/vnd.openxmlformats-package.relationships+xml" Extension="rels"/><Default ContentType="application/xml" Extension="xml"/><Override ContentType="'+(this._macroEnabled?"application/vnd.ms-excel.sheet.macroEnabled.main+xml":"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml")+'" PartName="/xl/workbook.xml"/>';for(var l=0;l<this._contentTypes.length;l++)s+=this._contentTypes[l];if(s+='<Override ContentType="application/vnd.openxmlformats-officedocument.theme+xml" PartName="/xl/theme/theme1.xml"/><Override ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml" PartName="/xl/styles.xml"/><Override ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml" PartName="/xl/sharedStrings.xml"/><Override ContentType="application/vnd.openxmlformats-package.core-properties+xml" PartName="/docProps/core.xml"/><Override ContentType="application/vnd.openxmlformats-officedocument.extended-properties+xml" PartName="/docProps/app.xml"/>',r){l=0;for(var n=0;l<i.length;l++)this._sheetHasNotes(l)&&(s+='<Override PartName="/xl/comments'+ ++n+'.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml"/>')}for(l=0;l<this._tables.length;l++)s+='<Override ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml" PartName="/xl/tables/'+this._tables[l]+'"/>';return s+="</Types>"},s._generateAppDoc=function(e){for(var t='<Properties xmlns:vt="http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes" xmlns="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties"><Application>'+(e.application||"wijmo.xlsx")+'</Application><DocSecurity>0</DocSecurity><ScaleCrop>false</ScaleCrop><HeadingPairs><vt:vector baseType="variant" size="2"><vt:variant><vt:lpstr>Worksheets</vt:lpstr></vt:variant><vt:variant><vt:i4>'+this._props.length+'</vt:i4></vt:variant></vt:vector></HeadingPairs><TitlesOfParts><vt:vector baseType="lpstr" size="'+this._props.length+'">',s=0;s<this._props.length;s++)t+="<vt:lpstr>"+this._props[s]+"</vt:lpstr>";return t+="</vt:vector></TitlesOfParts><Manager/><Company>"+(e.company||"GrapeCity, Inc.")+"</Company><LinksUpToDate>false</LinksUpToDate><SharedDoc>false</SharedDoc><HyperlinksChanged>false</HyperlinksChanged><AppVersion>1.0</AppVersion></Properties>"},s._generateWorkbookRels=function(){for(var e='<Relationships xmlns="'+this._relationshipsNS+'">',t=0;t<this._xlRels.length;t++)e+=this._xlRels[t];return e+='<Relationship Target="sharedStrings.xml" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings" Id="rId'+(this._xlRels.length+1)+'"/><Relationship Target="styles.xml" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Id="rId'+(this._xlRels.length+2)+'"/><Relationship Target="theme/theme1.xml" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme" Id="rId'+(this._xlRels.length+3)+'"/>',this._macroEnabled&&(e+='<Relationship Target="vbaProject.bin" Type="http://schemas.microsoft.com/office/2006/relationships/vbaProject" Id="rId'+(this._xlRels.length+4)+'"/>'),e+="</Relationships>"},s._generateWorkbook=function(e){for(var t='<workbook xmlns="'+this._workbookNS+'" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"><fileVersion rupBuild="9303" lowestEdited="5" lastEdited="5" appName="xl"/><workbookPr/><bookViews><workbookView xWindow="480" yWindow="60" windowWidth="18195" windowHeight="8505"'+(null!=e.activeWorksheet?' activeTab="'+e.activeWorksheet.toString()+'"':"")+"/></bookViews><sheets>",s=0;s<this._worksheets.length;s++)t+=this._worksheets[s];if(t+="</sheets>",e.definedNames&&e.definedNames.length>0){for(t+="<definedNames>",s=0;s<e.definedNames.length;s++){var i=-1;e.definedNames[s].sheetName&&(i=this._getSheetIndexBySheetName(e,e.definedNames[s].sheetName)),t+='<definedName name="'+e.definedNames[s].name+'" '+(i>-1?'localSheetId="'+i+'"':"")+">"+e.definedNames[s].value+"</definedName>"}t+="</definedNames>"}return t+='<calcPr fullCalcOnLoad="1"/></workbook>'},s._generateWorksheetRows=function(s,i,r,l,n,o,a,h,u,c){for(var f,d=this,m=r.rows,p=function(p,_){if(a&&a.cancelled)return{value:void 0};if(h&&p-i>100&&Date.now()-s>100)return setTimeout(function(){a&&a.cancelled||(u(Math.round((p+1)/m.length*100)),d._generateWorksheetRows(Date.now(),p,r,l,n,o,a,h,u,c))},0),{value:void 0};var y=-1,v=m[p]&&m[p].cells?m[p].cells.length:0,b=null;if(o.sheetData+='<row x14ac:dyDescent="0.25" r="'+(p+1).toString()+'"',m[p]&&(m[p].height&&(o.sheetData+=' customHeight="1" ht="'+(72*+m[p].height/96).toString()+'"'),m[p].groupLevel&&(o.sheetData+=' outlineLevel="'+m[p].groupLevel.toString()+'"'),b=m[p].style?g._cloneStyle(m[p].style):null)){(b=g._resolveStyleInheritance(b)).font&&b.font.color&&(b.font.color=g._parseColor(b.font.color)),b.fill&&b.fill.color&&(b.fill.color=g._parseColor(b.fill.color)),null==b.hAlign||e.isString(b.hAlign)||(b.hAlign=t.Workbook._parseHAlignToString(e.asEnum(b.hAlign,t.HAlign))),null==b.vAlign||e.isString(b.vAlign)||(b.vAlign=t.Workbook._parseVAlignToString(e.asEnum(b.vAlign,t.VAlign)));var x=JSON.stringify(b);(A=g._styles.indexOf(x))<0&&(A=g._styles.push(x)-1),o.sheetData+=' customFormat="1" s="'+A.toString()+'"'}for(m[p]&&!1===m[p].visible&&(o.sheetData+=' hidden="1"'),m[p]&&!0===m[p].collapsed&&(o.sheetData+=' collapsed="1"'),o.sheetData+=">";++y<v;){var w=m[p].cells[y];if(void 0!=w){var S="",C=-1,k=w?w.textRuns:null,F=w&&w.hasOwnProperty("value")?w.value:w,T=w&&w.style?g._cloneStyle(w.style):{};T=g._resolveStyleInheritance(T);var z=n[y];z&&(z=g._resolveStyleInheritance(z),T=g._extend(T,z)),b&&(T=g._extend(T,b)),l&&(l=g._resolveStyleInheritance(l),T=g._extend(T,l)),null==T.hAlign||e.isString(T.hAlign)||(T.hAlign=t.Workbook._parseHAlignToString(e.asEnum(T.hAlign,t.HAlign))),null==T.vAlign||e.isString(T.vAlign)||(T.vAlign=t.Workbook._parseVAlignToString(e.asEnum(T.vAlign,t.VAlign))),T.font&&T.font.color&&(T.font.color=g._parseColor(T.font.color)),T.fill&&T.fill.color&&(T.fill.color=g._parseColor(T.fill.color)),g._applyDefaultBorder(T),T.borders&&(T.borders=g._extend({},T.borders),g._parseBorder(T.borders,!!T.fill&&!!T.fill.color)),w&&w.isDate&&!e.isDate(F)&&(f=new Date(F),e.isDate(f)&&(F=f)),!e.isNumber(F)||!isNaN(F)&&isFinite(F)||(F=F.toString()),k||F&&e.isString(F)&&("@"===T.format||"General"===T.format||(+F).toString()!==F||!isFinite(+F))?(g._sharedStrings[1]++,"'"===(F=k?"{RichTextMark}"+JSON.stringify(k):F)[0]&&(T.quotePrefix=!0,F=F.substring(1)),(C=g._sharedStrings[0].indexOf(F))<0&&(C=g._sharedStrings[0].push(F)-1),F=C,S="s"):e.isBoolean(F)?(F=F?1:0,S="b"):e.isDate(F)?(F=g._convertDate(F),T.format=T.format||"mm-dd-yy"):e.isObject(F)&&(F=null);var A;x=JSON.stringify(T);(A=g._styles.indexOf(x))<0&&(A=g._styles.push(x)-1),w&&(null!=w.colSpan&&w.colSpan>1||null!=w.rowSpan&&w.rowSpan>1)&&(w.colSpan=w.colSpan||1,w.rowSpan=w.rowSpan||1,g._checkValidMergeCell(o.merges,p,w.rowSpan,y,w.colSpan)&&o.merges.push([g._numAlpha(y)+(p+1),g._numAlpha(y+w.colSpan-1)+(p+w.rowSpan)])),w&&w.link&&(null==o.hyperlinks&&(o.hyperlinks=[]),o.hyperlinks.push({ref:t.Workbook.xlsxAddress(p,y),value:F,href:w.link})),T=null,o.sheetData+=g._generateCell(p,y,A,S,F,w&&w.formula?w.formula:null)}}o.sheetData+="</row>"},g=this,_=i,y=m.length;_<y;_++){var v=p(_);if("object"==typeof v)return v.value}e.isFunction(c)&&c()},s._generateWorkSheet=function(e,s,i,r,n,o){var a=this,h=s.sheets[e];if(!h)throw"Worksheet should not be empty!";o(0),this._collectNotes(h,e);var u=new l(r),c=h.columns,f=this._cloneColumnsStyle(c),d=h.style?this._cloneStyle(h.style):null,m='<worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main"'+this._generateSheetGlobalSetting(e,h,s),p={hyperlinks:[],merges:[],sheetData:"<sheetData>"};return this._generateWorksheetRows(Date.now(),0,h,d,f,p,r,n,o,function(){var s=e+1;if(p.sheetData+="</sheetData>",c&&c.length>0){m+="<cols>";for(var r=0;r<c.length;r++)m+=a._generateWorksheetColumn(f[r],c[r],r);var l=h._extraColumn;l&&(l.min=Math.max(c.length,l.min),l.min<=l.max&&(m+=a._generateWorksheetColumn(l.style,l,-1))),m+="</cols>"}p.sheetData=m+p.sheetData,m=p.sheetData,p.sheetData=null,p.merges.length>0&&(m+=a._generateMergeSetting(p.merges));var n=1,d=0;a._sheetHasNotes(e)&&(d=n++);var g=p.hyperlinks;if(g&&g.length>0){m+="<hyperlinks>";for(r=0;r<g.length;r++)/\'?(\w+)\'?\!\$?[A-Za-z]{1,2}\$?\d+(:\$?[A-Za-z]{1,2}\$?\d+)?/.test(g[r].href)||/^\$?[A-Za-z]{1,2}\$?\d+(:\$?[A-Za-z]{1,2}\$?\d+)?$/.test(g[r].href)?m+='<hyperlink ref="'+g[r].ref+'" display="'+g[r].value+'" location="'+g[r].href+'"/>':(null==h.externalLinks&&(h.externalLinks=[]),h.externalLinks.push(g[r].href),m+='<hyperlink ref="'+g[r].ref+'" r:id="rId'+n+'"/>',n++);m+="</hyperlinks>"}if(m+='<pageMargins left="0.7" right="0.7" top="0.75" bottom="0.75" header="0.3" footer="0.3"/>',h.tables&&h.tables.length>0){m+='<tableParts count="'+h.tables.length+'">';for(r=0;r<h.tables.length;r++)m+='<tablePart r:id="rId'+n+'"/>',n++;m+="</tableParts>"}d>0&&(m+='<legacyDrawing r:id="rId'+d+'"/>'),m+="</worksheet>",i.file("sheet"+s+".xml",a._xmlDescription+m),m=null;var _='<Override ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml" PartName="/xl/worksheets/sheet'+s+'.xml"/>';a._contentTypes.unshift(_),a._props.unshift(t.Workbook._escapeXML(h.name)||"Sheet"+s);var y='<Relationship Target="worksheets/sheet'+s+'.xml" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Id="rId'+s+'"/>';a._xlRels.unshift(y);var v='<sheet r:id="rId'+s+'" sheetId="'+s+'" name="'+(t.Workbook._escapeXML(h.name)||"Sheet"+s)+'"'+(!1===h.visible?' state="hidden"':"")+"/>";a._worksheets.unshift(v),o(100),u.resolve()}),u},s._generateWorksheetColumn=function(s,i,r){var l=-1,n="";if(!this._isEmpty(s)){(s=this._resolveStyleInheritance(s)).font&&s.font.color&&(s.font.color=this._parseColor(s.font.color)),s.fill&&s.fill.color&&(s.fill.color=this._parseColor(s.fill.color)),null==s.hAlign||e.isString(s.hAlign)||(s.hAlign=t.Workbook._parseHAlignToString(e.asEnum(s.hAlign,t.HAlign))),null==s.vAlign||e.isString(s.vAlign)||(s.vAlign=t.Workbook._parseVAlignToString(e.asEnum(s.vAlign,t.VAlign)));var o=JSON.stringify(s);(l=this._styles.indexOf(o))<0&&(l=this._styles.push(o)-1)}if(!this._isEmpty(i)){var a=i.width;if(a=null!=a?"string"==typeof a&&a.indexOf("ch")>-1?this._parseCharCountToCharWidth(a.substring(0,a.indexOf("ch"))):this._parsePixelToCharWidth(a):8.43,-1==r)n+='<col min="'+i.min+'" max="'+i.max+'"';else{var h=(r+1).toString();n+='<col min="'+h+'" max="'+h+'"'}l>=0&&(n+=' style="'+l.toString()+'"'),a&&(n+=' width="'+a+'" customWidth="1"'),!1!==i.autoWidth&&(n+=' bestFit="1"'),!1===i.visible&&(n+=' hidden="1"'),n+="/>"}return n},s._generateSharedStringsDoc=function(){for(var e='<sst xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" count="'+this._sharedStrings[1]+'" uniqueCount="'+this._sharedStrings[0].length+'">',t=0;t<this._sharedStrings[0].length;t++){e+="<si>";var s=this._sharedStrings[0][t];if(s&&0===s.indexOf("{RichTextMark}"))try{var i=JSON.parse(s.substring(14));e+=this._generateTextRuns(i,this._defaultFontName.toLowerCase())+"</si>"}catch(t){e+=this._generatePlainText(s)+"</si>"}else e+=this._generatePlainText(s)+"</si>"}return e+"</sst>"},s._generateTextRuns=function(e,t){var s="";if(e&&e.length>0)for(var i=0;i<e.length;i++){s+="<r>";var r=e[i];if(r.font){var l=!r.font.family||r.font.family.toLowerCase()===t;s+=this._generateFontStyle(r.font,l,!0)}s+=this._generatePlainText(r.text),s+="</r>"}return s},s._generatePlainText=function(s){if(""===s)return"<t/>";var i="<t";return(e.isNullOrWhiteSpace(s)||/^\s+\w*|\w*\s+$/.test(s))&&(i+=' xml:space="preserve"'),i+=">"+t.Workbook._escapeXML(s)+"</t>"},s._generateTable=function(e,t){var s=this._tables.length+1,i="table"+s+".xml";e.fileName=i,this._tables.push(i);var r='<table ref="'+e.range+'" displayName="'+e.name+'" name="'+e.name+'" id="'+s+'" '+(!1===e.showHeaderRow?'headerRowCount="0" ':"")+(!0===e.showTotalRow?'totalsRowCount="1" ':'totalsRowShown="0" ')+' xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main">';!1!==e.showHeaderRow&&(r+=this._generateTableFilterSetting(e.range,e.showTotalRow,e.columns)),r+='<tableColumns count="'+e.columns.length+'">';for(var l="",n=0;n<e.columns.length;n++){var o=e.columns[n];l+='<tableColumn name="'+o.name+'" id="'+(n+1)+'" ',o.totalRowFunction?this._tableColumnFunctions.indexOf(o.totalRowFunction)>-1?l+='totalsRowFunction="'+o.totalRowFunction+'"/>':l+='totalsRowFunction="custom"><totalsRowFormula>'+o.totalRowFunction+"</totalsRowFormula></tableColumn>":l+=(o.totalRowLabel?'totalsRowLabel="'+o.totalRowLabel+'"':"")+"/>"}if(r+=l+"</tableColumns>",r+='<tableStyleInfo name="'+e.style.name+'" showColumnStripes="'+(e.showBandedColumns?"1":"0")+'" showRowStripes="'+(e.showBandedRows?"1":"0")+'" showLastColumn="'+(e.alterLastColumn?"1":"0")+'" showFirstColumn="'+(e.alterFirstColumn?"1":"0")+'"/></table>',!this._isBuiltInStyleName(e.style.name)){var a=JSON.stringify(e.style);-1===this._tableStyles.indexOf(a)&&this._tableStyles.push(a)}t.file(i,this._xmlDescription+r),r=null},s._generateTableFilterSetting=function(e,s,i){var r=e;if(s){var l=r.indexOf(":")+1,n=t.Workbook.tableAddress(r.substring(r.indexOf(":")+1));n.row-=1,r=r.substring(0,l)+t.Workbook.xlsxAddress(n.row,n.col)}for(var o='<autoFilter ref="'+r+'"',a="",h=0;h<i.length;h++)!1===i[h].showFilterButton&&(a+='<filterColumn hiddenButton="1" colId="'+h+'"/>');return o+=""===a?"/>":">"+a+"</autoFilter>"},s._generateHyperlinkRel=function(e,t){for(var s="",i=0;i<e.length;i++)s+='<Relationship TargetMode="External" Target="'+e[i]+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink" Id="rId'+(t+i)+'"/>';return s},s._getDxfs=function(){for(var t,s=this,i=0;i<this._tableStyles.length;i++)t=JSON.parse(this._tableStyles[i]),Object.keys(t).forEach(function(i){var r,l,n=t[i];n&&!e.isString(n)&&(s._isEmptyStyleEle(n)||(r=JSON.stringify(n),-1===(l=s._dxfs.indexOf(r))&&(l=s._dxfs.push(r)-1,n.styleIndex=l)))}),this._tableStyles[i]=t},s._generateDxfs=function(){for(var e,t='<dxfs count="'+this._dxfs.length+'">',s=0;s<this._dxfs.length;s++)t+="<dxf>",(e=JSON.parse(this._dxfs[s])).font&&(t+=this._generateFontStyle(e.font)),e.fill&&e.fill.color&&(t+=this._generateFillStyle("solid",e.fill.color,!0)),e.borders&&!this._isEmpty(e.borders)&&(e.borders=this._extend({},e.borders),this._parseBorder(e.borders,!1),t+=this._generateBorderStyle(e.borders,!0)),t+="</dxf>";return t+="</dxfs>"},s._generateTableStyles=function(){for(var t,s,i,r,l,n,o='<tableStyles count="'+this._tableStyles.length+'" defaultTableStyle="TableStyleMedium9" defaultPivotStyle="PivotStyleLight16">',a=0;a<this._tableStyles.length;a++){t=this._tableStyles[a],s=Object.keys(t),l="",n=0;for(var h=0;h<s.length;h++)if(r=t[i=s[h]],!e.isString(r)){switch(n++,l+="<tableStyleElement",null!=r.styleIndex&&(l+=' dxfId="'+r.styleIndex+'"'),i){case"firstBandedColumnStyle":l+=' type="firstColumnStripe"',null!=r.size&&(l+=' size="'+r.size+'"');break;case"secondBandedColumnStyle":l+=' type="secondColumnStripe"',null!=r.size&&(l+=' size="'+r.size+'"');break;case"firstBandedRowStyle":l+=' type="firstRowStripe"',null!=r.size&&(l+=' size="'+r.size+'"');break;case"secondBandedRowStyle":l+=' type="secondRowStripe"',null!=r.size&&(l+=' size="'+r.size+'"');break;default:l+=' type="'+i.substring(0,i.length-5)+'"'}l+="/>"}n>0&&(o+='<tableStyle count="'+n+'" name="'+t.name+'" pivot="0">',o+=l+"</tableStyle>")}return o+="</tableStyles>"},s._isEmptyStyleEle=function(t){return this._isEmpty(t.borders)&&(this._isEmpty(t.fill)||e.isNullOrWhiteSpace(t.fill.color))&&(this._isEmpty(t.font)||!0!==t.font.bold&&e.isNullOrWhiteSpace(t.font.color)&&e.isNullOrWhiteSpace(t.font.family)&&!0!==t.font.italic&&null==t.font.size&&!0!==t.font.underline)},s._getTableFileName=function(e,t){for(var s="",i=0;i<e.length;i++){var r=e[i];if(r.name===t){s=r.fileName;break}}return s},s._getColor=function(e,t){var s,i=-1,r=-1,l=-1;if(t&&-1===(i=e.search(/<fgcolor/i))&&-1===(r=e.search(/<bgcolor/i))||!t&&-1===(l=e.search(/<color/i)))return null;if(t){var n=i>=0?i:r,o=n>=0?e.search(/<\/fgc/i):e.indexOf(/<\/bgc/i);o=o>0?o:e.indexOf("/>"),e=e.substring(n,o)}else e=e.substring(l);if(-1!==e.indexOf("rgb="))(s=this._getAttr(e,"rgb"))&&8===s.length&&(s=s.substring(2));else if(-1!==e.indexOf("indexed")){var a=+this._getAttr(e,"indexed");s=this._indexedColors[a]||""}else if(-1!==e.indexOf("auto")&&"1"===this._getAttr(e,"auto"))s="#000000";else{var h,u=+this._getAttr(e,"theme");-1!==e.indexOf("tint")&&(h=+this._getAttr(e,"tint")),s=this._getThemeColor(u,h)}return s&&"#"===s[0]?s:"#"+s},s._getThemeColor=function(t,s){if(!this._colorThemes)return"#000000";var i=this._colorThemes[t];if(null!=s){var r=new e.Color("#"+i),l=r.getHsl();return l[2]=s<0?l[2]*(1+s):l[2]*(1-s)+(1-1*(1-s)),(r=e.Color.fromHsl(l[0],l[1],l[2])).toString().substring(1)}return i},s._parseColor=function(t){var s=this._parsedColors[t];if(!s){var i=new e.Color(t);i.a<1&&(i=e.Color.toOpaque(i)),this._parsedColors[t]=s=i.toString()}return s},s._getsBaseSharedFormulas=function(e){var t,s,i,r=e.match(/\<f[^<]*ref[^<]*>[^<]+(?=\<\/f>)/g);if(this._sharedFormulas=[],r&&r.length>0)for(var l=0;l<r.length;l++)t=r[l],s=this._getAttr(t,"si"),i=(i=this._getAttr(t,"ref"))?i.substring(0,i.indexOf(":")):"",t=t.replace(/(\<f.*>)(.+)/,"$2"),this._sharedFormulas[+s]=this._parseSharedFormulaInfo(i,t)},s._parseSharedFormulaInfo=function(e,s){var i,r,l,n,o,a=s.match(/(\'?\w+\'?\!)?(\$?[A-Za-z]+)(\$?\d+)/g);if(n=t.Workbook.tableAddress(e),a&&a.length>0){o=[];for(var h=0;h<a.length;h++)i=a[h],s=s.replace(i,"{"+h+"}"),(r=i.indexOf("!"))>0&&(l=i.substring(0,r),i=i.substring(r+1)),o[h]={cellAddress:t.Workbook.tableAddress(i),sheetRef:l}}return{cellRef:n,formula:s,formulaRefs:o}},s._getSharedFormula=function(e,s){var i,r,l,n,o,a,h,u,c,f,d,m;if(this._sharedFormulas&&this._sharedFormulas.length>0&&(i=this._sharedFormulas[+e])){if(c=i.formula,(f=i.formulaRefs)&&f.length>0){r=t.Workbook.tableAddress(s),h=i.cellRef?i.cellRef.row:0,u=i.cellRef?i.cellRef.col:0,l=r.row-h,n=r.col-u;for(var p=0;p<f.length;p++)o=(d=f[p]).cellAddress.row+(d.cellAddress.absRow?0:l),a=d.cellAddress.col+(d.cellAddress.absCol?0:n),m=t.Workbook.xlsxAddress(o,a,d.cellAddress.absRow,d.cellAddress.absCol),null!=d.sheetRef&&""!==d.sheetRef&&(m=d.sheetRef+"!"+m),c=c.replace("{"+p+"}",m)}return c}return""},s._convertDate=function(t){var s,i,r=new Date(1900,0,0),l=Date.UTC(1900,0,0),n="[object Date]"===Object.prototype.toString.call(t),o=6e4*((n?t.getTimezoneOffset():(new Date).getTimezoneOffset())-r.getTimezoneOffset()),a=r.getTime()-l-6e4*r.getTimezoneOffset();return n?(t.getTime()-r.getTime()-o+a)/864e5+1:e.isNumber(t)?(s=t>59?1:0,0!==(o=6e4*((i=new Date(1e3*Math.round((+r+864e5*(t-s))/1e3))).getTimezoneOffset()-r.getTimezoneOffset()))?new Date(1e3*Math.round((+r+o-a+864e5*(t-s))/1e3)):i):null},s._parseBorder=function(s,i){for(var r in{left:0,right:0,top:0,bottom:0,diagonal:0}){var l=s[r];l&&(e.isString(l.color)&&(l.color=this._parseColor(l.color)),null==l.style||e.isString(l.style)||(l.style=t.Workbook._parseBorderTypeToString(e.asEnum(l.style,t.BorderStyle,!1))),!i&&l.color&&"#c6c6c6"===l.color.toLowerCase()&&"thin"===l.style&&(s[r]=null))}},s._applyDefaultBorder=function(e){if(e.fill&&e.fill.color)for(var s in null==e.borders&&(e.borders={}),{left:0,right:0,top:0,bottom:0})null==e.borders[s]&&(e.borders[s]={style:t.BorderStyle.Thin,color:"#C6C6C6"})},s._resolveStyleInheritance=function(e){var t;if(!e.basedOn)return e;for(var s in e.basedOn)if("basedOn"===s)for(s in t=this._resolveStyleInheritance(e.basedOn)){var i=t[s];e[s]=null==e[s]?i:this._extend(e[s],i)}else{i=e.basedOn[s];e[s]=null==e[s]?i:this._extend(e[s],i)}return delete e.basedOn,e},s._parsePixelToCharWidth=function(e){return null==e||isNaN(+e)?null:((+e-5)/7*100+.5)/100},s._parseCharWidthToPixel=function(e){return null==e||isNaN(+e)?null:Math.floor((256*+e+128/7)/256*7)+5},s._parseCharCountToCharWidth=function(e){return null==e||isNaN(+e)?null:(7*+e+5)/7*256/256},s._numAlpha=function(e){var t=Math.floor(e/26)-1;return(t>-1?this._numAlpha(t):"")+this._alphabet.charAt(e%26)},s._alphaNum=function(e){return e.length>1?(this._alphabet.indexOf(e[0])+1)*Math.pow(26,e.length-1)+this._alphaNum(e.substring(1)):this._alphabet.indexOf(e)},s._typeOf=function(e){return{}.toString.call(e).match(/\s([a-zA-Z]+)/)[1].toLowerCase()},s._extend=function(t,s){if(e.isObject(t)&&e.isObject(s)){for(var i in s){var r=s[i];e.isObject(r)&&null!=t[i]?this._extend(t[i],r):null!=r&&null==t[i]&&(t[i]=r)}return t}return s},s._isEmpty=function(e){var t=Object.prototype.hasOwnProperty;if(null==e)return!0;if(e.length>0)return!1;if(0===e.length)return!0;for(var s in e)if(t.call(e,s))return!1;return!0},s._cloneStyle=function(e){var t;if(null==e||"object"!=typeof e)return e;for(var s in t={},e)e.hasOwnProperty(s)&&(t[s]=this._cloneStyle(e[s]));return t},s._cloneColumnsStyle=function(e){for(var t,s=[],i=0;i<e.length;i++)(t=e[i])&&t.style&&(s[i]=this._cloneStyle(t.style));return s},s._getSheetIndex=function(e){return+(e=e.substring(0,e.lastIndexOf(".xml"))).substring(e.lastIndexOf("sheet")+5)},s._checkValidMergeCell=function(e,t,s,i,r){for(var l=0;l<e.length;l++){var n=e[l],o=+n[0].match(/\d*/g).join("")-1,a=this._alphaNum(n[0].match(/[a-zA-Z]*/g)[0]),h=+n[1].match(/\d*/g).join("")-1,u=this._alphaNum(n[1].match(/[a-zA-Z]*/g)[0]);if(!(t>h||t+s-1<o||i>u||i+r-1<a))return!1}return!0},s._getAttr=function(e,t){var s=e.indexOf(t+'="');return s>=0?(s+=t.length+2,e.substring(s,e.indexOf('"',s))):""},s._getChildNodeValue=function(e,t){var s=e.indexOf(t+' val="');return s>=0?(s+=t.length+6,e.substring(s,e.indexOf('"',s))):""},s._getElementValue=function(e,t,s,i){var r=e.indexOf("<"+t);if(r>=0){var l=void 0;return(r=e.indexOf(">",r+1+t.length))>0&&"/"!==e[r-1]&&(l=e.substring(r+1,e.indexOf("</",r+1))),l||i}return s},s._getSubElement=function(e,t){if(e){var s=e.indexOf("<"+t);if(s>=0){var i=s+1+t.length,r=e.indexOf("</"+t,i);return r<0&&(r=e.indexOf("/>",i)),e.substring(i,r)}}},s._getSheetIndexBySheetName=function(e,t){for(var s=0;s<e.sheets.length;s++)if(e.sheets[s].name===t)return s;return-1},s._sheetHasNotes=function(e){return!!this._notes[e]},s._collectNotes=function(e,t){for(var s,i=e.rows,r=0,l=i.length;r<l;r++){var n=i[r];if(n)for(var o=0,a=n.cells.length;o<a;o++){var h=n.cells[o];if(h){var u=h.note;u&&(null!=u.text||u.textRuns&&u.textRuns.length>0)&&(s||(s=this._notes[t])||(this._notes[t]=s=[]),u._row=r,u._col=o,s.push(u))}}}},s._alphabet="ABCDEFGHIJKLMNOPQRSTUVWXYZ",s._indexedColors=["000000","FFFFFF","FF0000","00FF00","0000FF","FFFF00","FF00FF","00FFFF","000000","FFFFFF","FF0000","00FF00","0000FF","FFFF00","FF00FF","00FFFF","800000","008000","000080","808000","800080","008080","C0C0C0","808080","9999FF","993366","FFFFCC","CCFFFF","660066","FF8080","0066CC","CCCCFF","000080","FF00FF","FFFF00","00FFFF","800080","800000","008080","0000FF","00CCFF","CCFFFF","CCFFCC","FFFF99","99CCFF","FF99CC","CC99FF","FFCC99","3366FF","33CCCC","99CC00","FFCC00","FF9900","FF6600","666699","969696","003366","339966","003300","333300","993300","993366","333399","333333","000000","FFFFFF"],s._numFmts=["General","0","0.00","#,##0","#,##0.00",,,"$#,##0.00_);($#,##0.00)",,"0%","0.00%","0.00E+00","# ?/?","# ??/??","m/d/yyyy","d-mmm-yy","d-mmm","mmm-yy","h:mm AM/PM","h:mm:ss AM/PM","h:mm","h:mm:ss","m/d/yy h:mm",,,,,,,,,,,,,,,"#,##0 ;(#,##0)","#,##0 ;[Red](#,##0)","#,##0.00;(#,##0.00)","#,##0.00;[Red](#,##0.00)",,,,,"mm:ss","[h]:mm:ss","mmss.0","##0.0E+0","@"],s._tableColumnFunctions="average, count, countNums, max, min, stdDev, sum, var",s._xmlDescription='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>',s._workbookNS="http://schemas.openxmlformats.org/spreadsheetml/2006/main",s._relationshipsNS="http://schemas.openxmlformats.org/package/2006/relationships",s._defaultFontName="Calibri",s._defaultFontSize=11,s._macroEnabled=!1,s._defaultColorThemes=["FFFFFF","000000","EEECE1","1F497D","4F818D","C0504D","9BBB59","8064A2","4BACC6","F79646"],s._parsedColors={},s}();t._xlsx=s;var i=function(){function e(e){this.value=e}return e.prototype.then=function(t,s){return new e(t?t(this.value):null)},e.prototype.catch=function(e){return this.then(null,e)},e.resolve=function(){return new e},e}(),r=function(){function e(e){this._obj=e}return e.prototype.loadAsync=function(){for(var e,t=[],s=0;s<arguments.length;s++)t[s]=arguments[s];var r=(e=this._obj).load.apply(e,t);return new i(this._wrapOrNull(r))},e.prototype.file=function(){for(var e,t=[],s=0;s<arguments.length;s++)t[s]=arguments[s];var i=(e=this._obj).file.apply(e,t);return this._wrapOrNull(i)},Object.defineProperty(e.prototype,"name",{get:function(){return this._obj.name},enumerable:!0,configurable:!0}),e.prototype.async=function(){for(var e,t=[],s=0;s<arguments.length;s++)t[s]=arguments[s];return e=t&&t.length>0&&"uint8array"===t[0].toLowerCase()?this._obj.asUint8Array():this._obj.asText(),new i(e)},e.prototype.folder=function(e){var t=this._obj.folder(e);return this._wrapOrNull(t)},e.prototype.forEach=function(t){var s=this._obj.root,i=s.length,r=this._obj.files;for(var l in r)l.length>i&&l.substr(0,i).toLowerCase()===s&&t(l.substr(i),new e(r[l]))},e.prototype._wrapOrNull=function(t){return null!=t?new e(t):null},e}(),l=function(){function e(e,t){this._callbacks=[],this._cs=e,this._onCancel=t}return e.serial=function(t,s){s=s.slice();var i=new e(t),r=[],l=function(){i.cancelled?s=[]:s.length?s.shift()().then(function(e){r.push(e),l()},function(e){s=[],i.reject(e)}):i.resolve(r)};return l(),i},e.prototype.cancel=function(e){void 0===e&&(e=!0),this._cancelled=!0,e&&this._onCancel&&this._onCancel()},Object.defineProperty(e.prototype,"cancelled",{get:function(){return this._cancelled||this._cs&&this._cs.cancelled},enumerable:!0,configurable:!0}),e.prototype.then=function(e,t){return this._callbacks.push({onFulfilled:e,onRejected:t}),this._resolved&&this.resolve(this._resolved.value),this},e.prototype.catch=function(e){return this.then(null,e)},e.prototype.resolve=function(e){if(this.cancelled)return this;this._resolved={value:e};try{this.onFulfilled(e)}catch(e){this.onRejected(e)}return this},e.prototype.reject=function(e){return this.cancelled?this:(this.onRejected(e),this)},e.prototype.onFulfilled=function(e){for(;this._callbacks.length;){var t=this._callbacks[0];t.onFulfilled&&t.onFulfilled(e),this._callbacks.shift()}},e.prototype.onRejected=function(e){for(var t;t=this._callbacks.shift();)t.onRejected&&t.onRejected(e)},e}();t._SyncPromise=l;var n=function(){function e(e){this._colsWidthCnt=0,this._colsWidth=[],this._rowsHeightCnt=0,this._rowsHeight=[],this._cols=e.columns,this._rows=e.rows}return e.prototype.toAnchor=function(e,t,s){var i,r,l,n,o,a,h,u,c=e.offsetX,f=e.offsetY;if(c<0){var d=void 0;for(i=s,r=-c;i>=0&&!(r<=(d=this._getColWidth(i)));i--)r-=d;r=d-r}else for(i=s+1,r=c;r>=0;i++){if(r<=(d=this._getColWidth(i)))break;r-=d}if(f<0)for(l=t-1,n=-f;l>=0;l--){if(n<=(m=this._getRowHeight(l)))break;n-=m}else for(l=t,n=f;n>=0;l++){var m;if(n<=(m=this._getRowHeight(l)))break;n-=m}for(o=i,a=r+e.width;a>=0;o++){if(a<=(d=this._getColWidth(o)))break;a-=d}for(h=l,u=n+e.height;u>=0;h++){var p=this._getRowHeight(h);if(u<=p)break;u-=p}return[i,r,l,n,o,a,h,u]},e.prototype.fromAnchor=function(e,t,s,i){var r=e[0],l=e[1],n=e[2],o=e[3],a=e[4],h=e[5],u=e[6],c=e[7],f=0;if(i===r)f=-(this._getColWidth(i)-l);else if(r>i){f+=l;for(var d=i+1,m=r-1;d<=m;d++)f+=this._getColWidth(d)}else{for(d=r+1,m=i;d<=m;d++)f-=this._getColWidth(d);f-=this._getColWidth(r)-l}var p=0;if(s===n)p=o;else if(n>s){for(var g=s,_=n-1;g<=_;g++)p+=this._getRowHeight(g);p+=o}else{var y=n+1;for(_=s;y<_;y++)p-=this._getRowHeight(y);p-=this._getRowHeight(n)-o}var v=0;if(r===a)v=h-l;else{for(d=r+1,m=a-1;d<=m;d++)v+=this._getColWidth(d);v+=this._getColWidth(r)-l,v+=h}var b=0;if(n===u)b=c-o;else{var x=n+1;for(_=u-1;x<=_;x++)b+=this._getRowHeight(x);b+=this._getRowHeight(n)-o,b+=c}t.offsetX=f,t.offsetY=p,t.width=v,t.height=b},e.prototype._getColWidth=function(e){var t=this._colsWidth[e];if(null==t){this._colsWidthCnt>1e3&&(this._colsWidth=[],this._colsWidthCnt=0);var s=this._cols[e];t=!s||null==s.visible||s.visible?s&&null!=s.width?Math.max(s.width-5,0):64:0,this._colsWidth[e]=t,this._colsWidthCnt++}return t},e.prototype._getRowHeight=function(e){var t=this._rowsHeight[e];if(null==t){this._rowsHeightCnt>1e3&&(this._rowsHeight=[],this._rowsHeightCnt=0);var s=this._rows[e];t=!s||null==s.visible||s.visible?s&&null!=s.height?s.height:20:0,this._rowsHeight[e]=t,this._rowsHeightCnt++}return t},e}();function o(e,t,s,i,r){var l=s-t;return 0==l&&(l=1),(e-t)*((r-i)/l)+i}t._map=o;var a=String.fromCodePoint||function(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),e%1024+56320))},h=0}(e.xlsx||(e.xlsx={}))}(wijmo||(wijmo={})),function(e){e.xlsx||(e.xlsx={}),e._registerModule("wijmo.xlsx",e.xlsx)}(wijmo||(wijmo={}));
var wijmo,__extends=this&&this.__extends||function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function l(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(l.prototype=o.prototype,new l)}}();!function(e){!function(t){!function(t){t.softDetail=function(){return e._getModule("wijmo.grid.detail")},t.softMultiRow=function(){return e._getModule("wijmo.grid.multirow")},t.softTransposed=function(){return e._getModule("wijmo.grid.transposed")},t.softTransposedMultiRow=function(){return e._getModule("wijmo.grid.transposedmultirow")}}(t.xlsx||(t.xlsx={}))}(e.grid||(e.grid={}))}(wijmo||(wijmo={})),function(e){var t;(function(t){"use strict";var o=function(){function o(){}return o.save=function(t,o,l){var r=new e.xlsx.Workbook;return this._saveFlexGridToWorkbook(r,t,o,!1,null),l&&r.save(l),r},o.saveAsync=function(t,o,l,r,n,s,i){var a=this,u=new e.xlsx.Workbook;if(!i)return this._saveFlexGridToWorkbook(u,t,o,!1,null),l?u.saveAsync(l,function(t){e.isFunction(r)&&r(t,u)},n,null):e.isFunction(r)&&r(null,u),u;var d=null!=l;return this.cancelAsync(function(){var i,c=[t.collectionView&&t.collectionView.collectionChanged,t.columns&&t.columns.collectionChanged,t.rows&&t.rows.collectionChanged,t.resizedColumn,t.resizedRow],f=function(){return c.forEach(function(e){e&&e.removeHandler(h)})},h=function(){a._cs&&a._cs.cancel(!1),clearTimeout(i),i=setTimeout(function(){f(),u=null,a.saveAsync(t,o,l,r,n,s)},100)},p=function(){clearTimeout(i),a._cs=null,f()};a._cs=new e.xlsx._SyncPromise(null,p),c.forEach(function(e){e&&e.addHandler(h)}),a._saveFlexGridToWorkbook(u,t,o,!0,a._cs,function(t){e.isFunction(s)&&s(d?Math.round(e.xlsx._map(t,0,100,0,50)):t)}).then(function(){l?(u._externalCancellation=function(){return a._cs},u.saveAsync(l,function(t){p(),e.isFunction(r)&&r(t,u)},function(t){p(),e.isFunction(n)&&n(t)},function(t){e.isFunction(s)&&s(Math.round(e.xlsx._map(t,0,100,51,100)))})):(p(),e.isFunction(s)&&s(100),e.isFunction(r)&&r(null,u))},function(e){throw p(),e})}),null},o.cancelAsync=function(t){var o=this;this._cs?(this._cs.cancel(),setTimeout(function(){o._cs=null,e.isFunction(t)&&t()},100)):e.isFunction(t)&&t()},o.load=function(t,o,l){var r=this;if(o instanceof Blob)i(o,function(n){o=null;var s=new e.xlsx.Workbook;s.load(n,l?l.includeStyles:void 0),n=null,t.deferUpdate(function(){r._loadToFlexGrid(t,s,l),s=null})});else if(o instanceof e.xlsx.Workbook)t.deferUpdate(function(){r._loadToFlexGrid(t,o,l),o=null});else{if(!(o instanceof ArrayBuffer||e.isString(o)))throw"Invalid workbook.";var n=new e.xlsx.Workbook;n.load(o,l?l.includeStyles:void 0),o=null,t.deferUpdate(function(){r._loadToFlexGrid(t,n,l),n=null})}},o.loadAsync=function(t,o,l,r,n){var s=this;if(o instanceof Blob)i(o,function(i){o=null;var a=new e.xlsx.Workbook;a.loadAsync(i,function(){i=null,t.deferUpdate(function(){s._loadToFlexGrid(t,a,l),r&&r(a),a=null})},n,l?l.includeStyles:void 0)});else if(o instanceof e.xlsx.Workbook)t.deferUpdate(function(){s._loadToFlexGrid(t,o,l),r&&r(o),o=null});else{if(!(o instanceof ArrayBuffer||e.isString(o)))throw"Invalid workbook.";var a=new e.xlsx.Workbook;a.loadAsync(o,function(){o=null,t.deferUpdate(function(){s._loadToFlexGrid(t,a,l),r&&r(a),a=null})},n,l?l.includeStyles:void 0)}},o._saveFlexGridToWorkbook=function(o,r,i,a,u,d){var c=new e.xlsx._SyncPromise(u),f=new e.xlsx.WorkSheet,h=!i||null==i.includeColumnHeaders||i.includeColumnHeaders,p=!(!i||null==i.includeRowHeaders)&&i.includeRowHeaders,g=l.Cache,x=i?i.includeColumns:null,m=i?i.formatItem:null,w=[],v=i&&null!=i.convertHtmlEntities?e.asEnum(i.convertHtmlEntities,n):n.Auto;i&&(null!=i.includeCellStyles&&e._deprecated("includeCellStyles","includeStyles"),g=!1===e.asBoolean(null!=i.includeStyles?i.includeStyles:i.includeCellStyles,!0)?l.None:!1===e.asBoolean(i.quickCellStyles,!0)?l.Regular:l.Cache);var y=g===l.Cache?new s(500):null;null==this.hasCssText&&(this.hasCssText="cssText"in document.body.style);var _,b=r.wj_sheetInfo;if(f.name=i?i.sheetName:"",f.visible=!i||!1!==i.sheetVisible,b&&b.tables&&b.tables.length>0)for(var C=0;C<b.tables.length;C++)f.tables.push(b.tables[C]);b||g===l.None&&!m||((_=document.createElement("div")).style.visibility="hidden",_.setAttribute(e.grid.FlexGrid._WJS_MEASURE,"true"),r.hostElement.appendChild(_));var S=p?r.rowHeaders.columns.length:0,T=this._getPerRowColumnsSettings(r,p?[r.topLeftCells,r.columnHeaders]:[r.columnHeaders]),k=T.cols,R=t.softMultiRow()&&r instanceof t.softMultiRow().MultiRow?this._getPerRowColumnsSettings(r,p?[r.rowHeaders,r.cells]:[r.cells],r.rowsPerItem).cols:null,W=k.length,F=[[r.topLeftCells,r.columnHeaders],[r.rowHeaders,r.cells],[r.bottomLeftCells,r.columnFooters]];h||F.shift();var A=F.map(function(e){return e[1].rows.length}).reduce(function(e,t){return e+t});return k.length&&k[0].forEach(function(t,o){var l=T.bndCols[0][o];if(!(o>=S&&x)||x(l)){var r=new e.xlsx.WorkbookColumn;r._deserialize(t),f._addWorkbookColumn(r)}}),this._saveContentToWorksheet(u,a,Date.now(),0,{panels:F,panelIdx:0,globRowIdx:0,rowsOffset:0,totalRows:A},r,f,p,function(t){return t==e.grid.CellType.Cell&&R?R:k},g,_,w,y,x,v,m,function(e){d(Math.round(e/A*100))},function(){var t=new e.xlsx.WorkbookFrozenPane;t.rows=h?r.frozenRows+W:r.frozenRows,t.columns=p?r.frozenColumns+S:r.frozenColumns,f.frozenPane=t,o._addWorkSheet(f),b||g===l.None&&!m||(r.hostElement.removeChild(_),w.forEach(function(e){return e.forEach(function(e){e&&e.parentElement&&e.parentElement.removeChild(e)})})),y&&y.clear(),o.activeWorksheet=i?i.activeWorksheet:null,c.resolve()}),c},o._saveContentToWorksheet=function(t,o,l,r,n,s,i,a,u,d,c,f,h,p,g,x,m,w){for(var v=this,y=d?20:200,_=function(_){if(t&&t.cancelled)return{value:void 0};if(o&&_-r>y&&Date.now()-l>100)return setTimeout(function(){t&&t.cancelled||(m(_),v._saveContentToWorksheet(t,o,Date.now(),_,n,s,i,a,u,d,c,f,h,p,g,x,m,w))},0),{value:void 0};for(;_-n.rowsOffset>=n.panels[n.panelIdx][1].rows.length;)n.rowsOffset+=n.panels[n.panelIdx][1].rows.length,n.panelIdx++;var C=n.panels[n.panelIdx],S=C[0],T=C[1],k=_-n.rowsOffset,R=T.rows[k];if(T.cellType!==e.grid.CellType.Cell&&R.renderSize<=0||R instanceof e.grid._NewRowTemplate)return"continue";var W=0,F={},A=new e.xlsx.WorkbookRow,N=R instanceof e.grid.GroupRow,B=0;T.cellType===e.grid.CellType.Cell&&(N?B=R.level:s.rows.maxGroupLevel>-1&&(B=s.rows.maxGroupLevel+1));var D=u(T.cellType);a&&(W=b._parseFlexGridRowToSheetRow(S,F,k,0,D,d,c,f,h,N,B,p,g,x)),b._parseFlexGridRowToSheetRow(T,F,k,W,D,d,c,f,h,N,B,p,g,x),F.cells.length>0&&(A._deserialize(F),i._addWorkbookRow(A,n.globRowIdx)),n.globRowIdx++},b=this,C=r;C<n.totalRows;C++){var S=_(C);if("object"==typeof S)return S.value}e.isFunction(w)&&w()},o._loadToFlexGrid=function(o,l,r){if(t.softTransposedMultiRow()&&o instanceof t.softTransposedMultiRow().TransposedMultiRow)throw"Not supported.";r=r||{};var n,s=null!=o.wj_sheetInfo,i={},a=[],u=[],d={};o.itemsSource=null,o.columns.clear(),o.columnHeaders.rows.clear(),o.rows.clear(),o.frozenColumns=0,o.frozenRows=0;var c=null==r.sheetIndex||isNaN(r.sheetIndex)?0:r.sheetIndex;if(c<0||c>=l.sheets.length)throw"The sheet index option is out of the sheet range of current workbook.";if(null!=r.sheetName)for(var f=0;f<l.sheets.length;f++)if(r.sheetName===l.sheets[f].name){n=l.sheets[f];break}if(null!=(n=n||l.sheets[c]).rows){for(var h=this._getColumnCount(n.rows),p=this._getRowCount(n.rows,h),g=n.columns,x=0;x<h;x++)o.columns.push(new e.grid.Column),g[x]&&(isNaN(+g[x].width)||(o.columns[x].width=+g[x].width),g[x].visible||null==g[x].visible||(o.columns[x].visible=!!g[x].visible),g[x].style&&g[x].style.wordWrap&&(o.columns[x].wordWrap=g[x].style.wordWrap));var m,w=(null==r.includeColumnHeaders||r.includeColumnHeaders)&&n.rows.length>0,v=w?this._getColumnHeadersHeight(n):0,y=!1,_=[],b=n.frozenPane&&n.frozenPane.rows,C=n.frozenPane&&n.frozenPane.columns;b=e.isNumber(b)&&!isNaN(b)?b:null,C=e.isNumber(C)&&!isNaN(C)?C:null;for(var S=v;S<p;S++){var T=!1,k=null,R=n.rows[S];if(R)for(var W=S+1;W<n.rows.length;){var F=n.rows[W];if(F){(isNaN(R.groupLevel)&&!isNaN(F.groupLevel)||!isNaN(R.groupLevel)&&R.groupLevel<F.groupLevel)&&(T=!0);break}W++}if(T&&!n.summaryBelow)m&&(m.isCollapsed=y),(m=new e.grid.GroupRow).isReadOnly=!1,y=null!=R.collapsed&&R.collapsed,m.level=isNaN(R.groupLevel)?0:R.groupLevel,d[m.level]=y,this._checkParentCollapsed(d,m.level)&&m._setFlag(e.grid.RowColFlags.ParentCollapsed,!0),o.rows.push(m);else{var A=new e.grid.Row;R&&this._checkParentCollapsed(d,R.groupLevel)&&A._setFlag(e.grid.RowColFlags.ParentCollapsed,!0),o.rows.push(A)}for(R&&R.height&&!isNaN(R.height)&&(o.rows[S-v].height=R.height),x=0;x<h;x++)if(R){var N=R.cells[x],B=N?N.formula:null;B&&"="!==B[0]&&(B="="+B),N&&N.textRuns&&N.textRuns.length>0?(o.rows[S-v].isContentHtml=!0,o.setCellData(S-v,x,this._parseTextRunsToHTML(N.textRuns))):o.setCellData(S-v,x,B&&s?B:this._getItemValue(N)),T||this._setColumn(_,x,N);var D=S*h+x,H=N?N.style:null;if(H&&(k=null==k?!!H.wordWrap:k&&!!H.wordWrap,s)){var E=e.xlsx.Workbook._parseExcelFormat(N),M=void 0;if(H.hAlign)M=e.xlsx.Workbook._parseHAlignToString(e.asEnum(H.hAlign,e.xlsx.HAlign));else switch(this._getItemType(N)){case e.DataType.Number:M="right";break;case e.DataType.Boolean:M="center";break;default:M=E&&0===E.search(/[n,c,p]/i)?"right":"left"}if(i[D]={fontWeight:H.font&&H.font.bold?"bold":"none",fontStyle:H.font&&H.font.italic?"italic":"none",textDecoration:H.font&&H.font.underline?"underline":"none",textAlign:M,fontFamily:H.font&&H.font.family?H.font.family:"",fontSize:H.font&&H.font.size?H.font.size+"px":"",color:H.font&&H.font.color?H.font.color:"",backgroundColor:H.fill&&H.fill.color?H.fill.color:"",whiteSpace:H.wordWrap?"pre-wrap":"normal",format:E},H.borders&&(H.borders.left&&(this._parseBorderStyle(H.borders.left.style,"Left",i[D]),i[D].borderLeftColor=H.borders.left.color),H.borders.right&&(this._parseBorderStyle(H.borders.right.style,"Right",i[D]),i[D].borderRightColor=H.borders.right.color),H.borders.top&&(this._parseBorderStyle(H.borders.top.style,"Top",i[D]),i[D].borderTopColor=H.borders.top.color),H.borders.bottom&&(this._parseBorderStyle(H.borders.bottom.style,"Bottom",i[D]),i[D].borderBottomColor=H.borders.bottom.color)),H.fill&&H.fill.color){var I=i[D],z=H.borders,O=H.fill.color;z?(z.left&&z.left.color||(I.borderLeftColor=O),z.right&&z.right.color||x===C-1||(I.borderRightColor=O),z.top&&z.top.color||(I.borderTopColor=O),z.bottom&&z.bottom.color||S===b-1||(I.borderBottomColor=O)):(I.borderLeftColor=O,x!==C-1&&(I.borderRightColor=O),I.borderTopColor=O,S!==b-1&&(I.borderBottomColor=O))}H.font&&-1===u.indexOf(H.font.family)&&u.push(H.font.family)}s&&N&&e.isNumber(N.rowSpan)&&N.rowSpan>0&&e.isNumber(N.colSpan)&&N.colSpan>0&&(N.rowSpan>1||N.colSpan>1)&&a.push(new e.grid.CellRange(S,x,S+N.rowSpan-1,x+N.colSpan-1))}R&&(this._checkParentCollapsed(d,R.groupLevel)||R.visible||null==R.visible||(o.rows[S-v].visible=R.visible),o.rows[S-v].wordWrap=!!R.style&&!!R.style.wordWrap||!!k)}for(m&&(m.isCollapsed=y),null!=C&&(o.frozenColumns=C),null!=b&&(o.frozenRows=w&&b>0?b-1:b),x=0;x<o.columnHeaders.columns.length;x++){var j=_[x],L=o.columns[x];L.isRequired=!1,j&&(j.dataType===e.DataType.Boolean&&(L.dataType=j.dataType),L.format=j.format,L.align=j.hAlign,L.wordWrap=L.wordWrap||!!j.wordWrap)}for(f=0;f<Math.max(v,1);f++)o.columnHeaders.rows.push(new e.grid.Row);for(f=0;f<v;f++)for(var P=0;P<o.columnHeaders.columns.length;P++){var G=n.rows[f]?n.rows[f].cells[P]:null,V=G&&null!=G.value?G.value:"",U=o.columnHeaders.columns[P];if(V){var X=e.xlsx.Workbook._parseExcelFormat(G);V=e.Globalize.format(V,X)}U.header=U.header||V,o.columnHeaders.setCellData(f,P,V)}if(s){var Y=null==r.sheetVisible||r.sheetVisible;o.wj_sheetInfo.name=n.name,o.wj_sheetInfo.visible=!0===Y||!1!==n.visible,o.wj_sheetInfo.styledCells=i,o.wj_sheetInfo.mergedRanges=a,o.wj_sheetInfo.fonts=u,o.wj_sheetInfo.tables=n.tables}}},o._getColumnHeadersHeight=function(e){var t;if(!e||!(t=e.rows).length)return 0;if(!t[0])return 1;for(var o=0,l=1;o<t.length&&l>0;o++,l--){var r=t[o].cells.reduce(function(e,t){return Math.max(e,t.rowSpan||0)},1);r>l&&(l=r)}return o},o._escapePlainText=function(e){return null==e?"":""===e?"'":e&&("'"===e[0]||e.length>1&&"="===e[0]&&"="===e[1])?"'"+e:e},o._parseFlexGridRowToSheetRow=function(o,s,i,a,u,d,c,f,h,p,g,x,m,w){var v=o.grid,y=v.wj_sheetInfo,_=o.rows[i],b=0,C=y&&y.evaluateFormula;null==_.recordIndex?o.cellType===e.grid.CellType.ColumnHeader&&o.rows.length>1&&(b=Math.min(i,u.length-1)):b=_.recordIndex,s.cells||(s.cells=[]),s.visible=_.isVisible,s.height=_.renderHeight||o.rows.defaultSize,s.groupLevel=g,p&&(s.collapsed=_.isCollapsed),_.wordWrap&&(s.style={wordWrap:_.wordWrap});for(var S,T=_.constructor===e.grid.Row||_.constructor===e.grid._NewRowTemplate||t.softTransposed()&&v instanceof t.softTransposed().TransposedGrid&&_ instanceof e.grid.Row||t.softDetail()&&_.constructor===t.softDetail().DetailRow||t.softMultiRow()&&_.constructor===t.softMultiRow()._MultiRow||t.softTransposedMultiRow()&&_ instanceof t.softTransposedMultiRow()._MultiRow,k=t.softDetail()&&_.constructor===t.softDetail().DetailRow,R=0,W=Math.round(e.xlsx._xlsx._parsePixelToCharWidth(v.treeIndent)||0),F=function(e){return e*W};R<o.columns.length;R++){var A=void 0,N=void 0,B=void 0,D=1,H=1,E=!1,M=v._getBindingColumn(o,i,o.columns[R]),I=0;if(y&&o===v.cells){var z=i*o.columns.length+R;y.mergedRanges&&(A=this._getMergedRange(i,R,y.mergedRanges)),y.styledCells&&(N=y.styledCells[z])}else d!==l.None&&(B=this._getMeasureCell(o,R,c,f),N=(A=v.getMergedRange(o,i,R,!1))?this._getCellStyle(o,B,A.bottomRow,A.rightCol,h,!!w)||{}:this._getCellStyle(o,B,i,R,h,!!w)||{});if(A||(A=v.getMergedRange(o,i,R,!1)),A?i===A.topRow&&R===A.leftCol&&(H=A.bottomRow-A.topRow+1,D=this._getColSpan(o,A,x),E=!0):E=!0,!x||x(M)){var O=u[b]?u[b][R+a]:null,j=void 0,L=void 0,P=void 0,G=void 0,V=void 0,U=void 0,X=void 0;if(T||p){if(P=E?o.getCellData(i,R,!0):null,G=E?o.getCellData(i,R,!1):null,L=this._isFormula(P),j=null,V=e.isDate(G),N&&N.format?(U=N.format,/[hsmyt\:]/i.test(U)&&(V=!0),X=e.xlsx.Workbook._parseCellFormat(N.format,V)):O&&O.style&&O.style.format?(U=M.format,X=O.style.format):X=null,L&&null!=C&&e.isFunction(C)&&(j=C(P)),!X)if(V)X="m/d/yyyy";else if(e.isNumber(G)&&!M.dataMap)X=e.isInt(G)?"#,##0":"#,##0.00";else if(L){var Y=P.toLowerCase();Y.indexOf("now()")>-1?(X="m/d/yyyy h:mm",V=!0):Y.indexOf("today()")>-1||Y.indexOf("date(")>-1?(X="m/d/yyyy",V=!0):Y.indexOf("time(")>-1&&(X="h:mm AM/PM",V=!0)}else X="General"}else P=E?v.columnHeaders.getCellData(0,R,!0):null,X="General";var q=void 0;e.isString(P)&&-1!==P.indexOf("<span")&&(q=this._parseToTextRuns(P),P=null);var J=this._parseCellStyle(N)||{};if(o===v.cells&&p&&_.hasChildren&&R===v.columns.firstVisibleIndex){var K=void 0;if(L&&null!=j?K=j:(P?K=P:E&&(K=_.getGroupHeader()),K&&(K=K.replace(/<\/?\w+>/g,"").replace(/&#39;/g,"'"))),null==K&&!N)continue;!(V=e.isDate(K))&&U&&"d"===U.toLowerCase()&&e.isInt(K)&&(X="0"),K=e.isString(K)?e.xlsx.Workbook._unescapeXML(K):K,R===v.columns.firstVisibleIndex&&v.treeIndent&&(I=F(g)),S={value:K,isDate:V,formula:L?this._parseToExcelFormula(P,V):null,colSpan:D,rowSpan:H,style:this._extend(J,{format:X,font:v.childItemsPath?{}:{bold:!0},hAlign:e.xlsx.HAlign.Left,indent:I}),textRuns:q}}else{(p||m===n.Auto&&M.isContentHtml||m===n.Yes)&&(P=e.isString(P)?e.xlsx.Workbook._unescapeXML(P):P,G=e.isString(G)?e.xlsx.Workbook._unescapeXML(G):G),!V&&U&&"d"===U.toLowerCase()&&e.isInt(G)&&(X="0");var $=void 0;$=J&&J.hAlign?J.hAlign:O&&O.style&&null!=O.style.hAlign?e.asEnum(O.style.hAlign,e.xlsx.HAlign,!0):e.isDate(G)?e.xlsx.HAlign.Left:e.xlsx.HAlign.General,R!==v.columns.firstVisibleIndex||!v.treeIndent||$!==e.xlsx.HAlign.Left&&$!==e.xlsx.HAlign.General||(I=F(g)),S={value:L?j:"General"!==X||""===P&&null==G?this._escapePlainText(G):this._escapePlainText(P),isDate:V,formula:L?this._parseToExcelFormula(P,V):null,colSpan:R<v.columns.firstVisibleIndex?1:D,rowSpan:H,style:this._extend(J,{format:X,hAlign:$,vAlign:H>1?o===v.cells||!1===v.centerHeadersVertically?e.xlsx.VAlign.Top:e.xlsx.VAlign.Center:null,indent:I}),textRuns:q}}if(w&&w(new r(o,new e.grid.CellRange(i,R),B,c,f,h,S)),k){var Q=o.getCellElement(i,R);if(Q){var Z=_.detail;Q.appendChild(Z),e.Control.refreshAll(Z)}}s.cells.push(S)}}return a+R},o._parseCellStyle=function(t,o){if(void 0===o&&(o=!1),null==t)return null;var l=t.fontSize;l=l?+l.substring(0,l.indexOf("px")):null,isNaN(l)&&(l=null);var r=t.whiteSpace;r=!!r&&r.indexOf("pre")>-1;var n=t.textAlign;return"start"===n&&(n="rtl"===t.direction?"right":"left"),"end"===n&&(n="rtl"===t.direction?"left":"right"),{font:{bold:"bold"===t.fontWeight||+t.fontWeight>=700,italic:"italic"===t.fontStyle,underline:"underline"===(t.textDecorationStyle||t.textDecoration),family:this._parseToExcelFontFamily(t.fontFamily),size:l,color:t.color},fill:{color:t.backgroundColor},borders:this._parseBorder(t,o),hAlign:e.xlsx.Workbook._parseStringToHAlign(n),wordWrap:r}},o._parseBorder=function(e,t){var o={left:this._parseEgdeBorder(e,"Left"),right:this._parseEgdeBorder(e,"Right"),top:this._parseEgdeBorder(e,"Top"),bottom:this._parseEgdeBorder(e,"Bottom")};return t&&(o.vertical=this._parseEgdeBorder(e,"Vertical"),o.horizontal=this._parseEgdeBorder(e,"Horizontal")),o},o._parseEgdeBorder=function(t,o){var l,r=t["border"+o+"Style"],n=t["border"+o+"Width"];if(n&&(n=parseFloat(n)),r&&"none"!==r&&"hidden"!==r&&0!==n){switch(l={},r=r.toLowerCase()){case"dotted":l.style=n>1?e.xlsx.BorderStyle.MediumDashDotted:e.xlsx.BorderStyle.Dotted;break;case"dashed":l.style=n>1?e.xlsx.BorderStyle.MediumDashed:e.xlsx.BorderStyle.Dashed;break;case"double":l.style=e.xlsx.BorderStyle.Double;break;default:l.style=n>2?e.xlsx.BorderStyle.Thick:n>1?e.xlsx.BorderStyle.Medium:e.xlsx.BorderStyle.Thin}l.color=t["border"+o+"Color"]}return l},o._parseBorderStyle=function(t,o,l){var r="border"+o+"Style",n="border"+o+"Width";switch(t){case e.xlsx.BorderStyle.Dotted:case e.xlsx.BorderStyle.Hair:l[r]="dotted",l[n]="1px";break;case e.xlsx.BorderStyle.Dashed:case e.xlsx.BorderStyle.ThinDashDotDotted:case e.xlsx.BorderStyle.ThinDashDotted:l[r]="dashed",l[n]="1px";break;case e.xlsx.BorderStyle.MediumDashed:case e.xlsx.BorderStyle.MediumDashDotDotted:case e.xlsx.BorderStyle.MediumDashDotted:case e.xlsx.BorderStyle.SlantedMediumDashDotted:l[r]="dashed",l[n]="2px";break;case e.xlsx.BorderStyle.Double:l[r]="double",l[n]="3px";break;case e.xlsx.BorderStyle.Medium:l[r]="solid",l[n]="2px";break;case e.xlsx.BorderStyle.Thick:l[r]="solid",l[n]="3px";break;default:l[r]="solid",l[n]="1px"}},o._parseToExcelFontFamily=function(e){var t;return e&&(t=e.split(","))&&t.length>0&&(e=t[0].replace(/\"|\'/g,"")),e},o._parseToExcelFormula=function(t,o){var l=t.match(/(floor|ceiling)\([+-]?\d+\.?\d*\)/gi);if(l)for(var r=0;r<l.length;r++){var n=(i=l[r]).substring(0,i.lastIndexOf(")"))+", 1)";t=t.replace(i,n)}if(l=null,l=t.match(/text\(\"?\w+\"?\s*\,\s*\"\w+\"\)/gi)){var s=/\"?\w+\"?\s*\,\s*\"(\w+)\"/i;for(r=0;r<l.length;r++){var i,a=(i=l[r]).match(s);if(a&&2===a.length){var u=a[1];if(!/^d{1,4}?$/.test(u)){var d=e.xlsx.Workbook._parseCellFormat(u,o);n=i.replace(u,d),t=t.replace(i,n)}}}}return t},o._parseToTextRuns=function(e){for(var t=e.split("<span "),o=[],l=0;l<t.length;l++){var r=t[l],n=void 0;n=-1!==r.indexOf("</span>")?{text:r.substring(r.indexOf(">")+1,r.indexOf("</span>")),font:this._parseToTextRunFont(r.substring(r.indexOf('style="')+7,r.indexOf(';"')))}:{text:r},o.push(n)}return o},o._parseToTextRunFont=function(e){var t,o=e.split(";");if(o.length>0){for(var l=void 0,r=void 0,n=void 0,s=void 0,i=void 0,a=void 0,u=0;u<o.length;u++){var d=o[u].split(":");if(2===d.length)switch(d[1]=d[1].trim(),d[0]){case"font-size":s=+d[1].substring(0,d[1].indexOf("px")),isNaN(s)&&(s=null);break;case"font-weight":l="bold"===d[1]||+d[1]>=700;break;case"font-style":r="italic"===d[1];break;case"text-decoration-style":case"text-decoration":n="underline"===d[1];break;case"font-family":i=this._parseToExcelFontFamily(d[1]);break;case"color":a=d[1]}}t={bold:l,italic:r,underline:n,family:i,size:s,color:a}}return t},o._getMeasureCell=function(e,t,o,l){var r=l[e.cellType],n=r&&r[t],s=null==n;return n?this.hasCssText&&(n.style.cssText="",n.style.visibility="hidden"):(r||(l[e.cellType]=r=[]),r[t]=n=o.cloneNode()),!s&&n.parentElement||(e.hostElement.children.length>0?e.hostElement.children[0].appendChild(n):e.hostElement.appendChild(n)),n},o._getColumnSetting=function(t,o,l){var r=t;return null!=t.colspan&&(r=this._getRenderColumn(o,l)),r?{autoWidth:!0,width:r.renderWidth||l.defaultSize,visible:r.visible&&0!==r.width&&!r._getFlag(e.grid.RowColFlags.ParentCollapsed),style:{format:t.format?e.xlsx.Workbook._parseCellFormat(t.format,t.dataType===e.DataType.Date):"",hAlign:e.xlsx.Workbook._parseStringToHAlign(this._toExcelHAlign(r.getAlignment())),wordWrap:r.wordWrap}}:null},o._getPerRowColumnsSettings=function(e,t,o){var l=this,r=[],n=[];return t.forEach(function(s,i){for(var a=0,u=i>0?t[0].columns.length:0,d=function(t){return null!=o&&t>=o?"break":s.rows[t].renderSize<=0?"continue":(r[a]=r[a]||[],n[a]=n[a]||[],s.columns.forEach(function(o,i){var d=e._getBindingColumn(s,t,o),c=l._getColumnSetting(d,i,s.columns);c&&(r[a][u+i]=c,n[a][u+i]=d)}),void a++)},c=0;c<s.rows.length&&"break"!==d(c);c++);}),{cols:r,bndCols:n}},o._toExcelHAlign=function(e){return(e=e?e.trim().toLowerCase():e)?e.indexOf("center")>-1?"center":e.indexOf("right")>-1||e.indexOf("end")>-1?"right":e.indexOf("justify")>-1?"justify":"left":e},o._getColumnCount=function(t){for(var o=0,l=0;l<t.length;l++){var r=t[l]&&t[l].cells?t[l].cells:[];if(r&&r.length>0){var n=r.length;e.isInt(r[n-1].colSpan)&&r[n-1].colSpan>1&&(n=n+r[n-1].colSpan-1),n>o&&(o=n)}}return o},o._getRowCount=function(t,o){for(var l=t.length,r=l-1,n=0;n<o;n++)e:for(;r>=0;r--){var s=t[r],i=(s&&s.cells?s.cells:[])[n];if(i&&(null!=i.value&&""!==i.value||e.isInt(i.rowSpan)&&i.rowSpan>1)){e.isInt(i.rowSpan)&&i.rowSpan>1&&r+i.rowSpan>l&&(l=r+i.rowSpan);break e}}return l},o._numAlpha=function(e){var t=Math.floor(e/26)-1;return(t>-1?this._numAlpha(t):"")+String.fromCharCode(65+e%26)},o._getItemType=function(t){return null==t||null==t.value||isNaN(t.value)?null:e.getType(t.value)},o._setColumn=function(t,o,l){var r=t[o];if(r){var n=this._getItemType(l);if(r.dataType!==n&&r.dataType===e.DataType.Boolean&&n!==e.DataType.Boolean&&(r.dataType=n),l&&null!=l.value&&(!e.isString(l.value)||!e.isNullOrWhiteSpace(l.value))){var s=e.xlsx.Workbook._parseExcelFormat(l);s&&r.format!==s&&"General"!==s&&(r.format=s)}var i=void 0;l&&l.style&&(l.style.hAlign&&(i=e.xlsx.Workbook._parseHAlignToString(e.asEnum(l.style.hAlign,e.xlsx.HAlign))),null==r.wordWrap?r.wordWrap=!!l.style.wordWrap:r.wordWrap=r.wordWrap&&!!l.style.wordWrap),i||n!==e.DataType.Number||(i="right"),r.hAlign=i}else t[o]={dataType:this._getItemType(l),format:e.xlsx.Workbook._parseExcelFormat(l),hAlign:"",wordWrap:null}},o._getItemValue=function(t){if(null==t||null==t.value)return null;var o=t.value;return e.isString(o)&&"'"===o[0]&&(o=o.substr(1)),e.isNumber(o)&&isNaN(o)?"":o instanceof Date&&isNaN(o.getTime())?"":o},o._getCellStyle=function(e,t,o,l,r,n){var s,i=e.grid;try{var a=!(r&&!i.formatItem.hasHandlers&&!i.itemFormatter&&!n);i.cellFactory.updateCell(e,o,l,t,null,a),t.className=t.className.replace("wj-state-selected",""),t.className=t.className.replace("wj-state-multi-selected","")}catch(e){return null}if(r){var u=e.hostElement,d=t,c=d.style.cssText.split(/;\s+/).filter(function(e){var t=e.substring(0,e.indexOf(":"));return/^(color|background|border|font|text|whitespace)/i.test(t)}).join(";");do{c=d.className+c}while(d!==u&&(d=d.parentElement));(s=r.getValue(c))||(s=window.getComputedStyle(t),r.add(c,s))}else s=window.getComputedStyle(t);return s},o._parseTextRunsToHTML=function(e){for(var t="",o=0;o<e.length;o++){var l=e[o],r=l.font;t+=r?'<span style="'+(r.bold?"font-weight: bold;":"")+(r.italic?"font-style: italic;":"")+(r.underline?"text-decoration: underline;":"")+(r.family?"font-family: "+r.family+";":"")+(null!=r.size?"font-size: "+r.size+"px;":"")+(r.color?"color: "+r.color+";":"")+'">'+l.text+"</span>":l.text}return t},o._extend=function(t,o){for(var l in o){var r=o[l];e.isObject(r)&&t[l]?e.copy(t[l],r):t[l]=r}return t},o._checkParentCollapsed=function(e,t){var o=!1;return Object.keys(e).forEach(function(l){!0===e[l]&&!1===o&&!isNaN(t)&&+l<t&&(o=!0)}),o},o._getColSpan=function(e,t,o){for(var l=0,r=t.leftCol;r<=t.rightCol;r++)o&&!o(e.columns[r])||l++;return l},o._getRenderColumn=function(e,t){return e>=t.length?null:t[e]},o._getMergedRange=function(e,t,o){for(var l=0;l<o.length;l++){var r=o[l];if(e>=r.topRow&&e<=r.bottomRow&&t>=r.leftCol&&t<=r.rightCol)return r}return null},o._isFormula=function(e){return e&&"string"==typeof e&&e.length>1&&"="===e[0]&&"="!==e[1]},o}();t.FlexGridXlsxConverter=o;var l,r=function(e){function t(t,o,l,r,n,s,i){var a=e.call(this,t,o)||this;return a._cell=l,a._patternCell=r,a._xlsxCell=i,a._cellsCache=n,a._styleCache=s,a}return __extends(t,e),Object.defineProperty(t.prototype,"cell",{get:function(){return this._cell},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"xlsxCell",{get:function(){return this._xlsxCell},set:function(e){this._xlsxCell=e},enumerable:!0,configurable:!0}),t.prototype.getFormattedCell=function(){return this._cell||(this._cell=o._getMeasureCell(this.panel,this.col,this._patternCell,this._cellsCache),o._getCellStyle(this.panel,this._cell,this.row,this.col,this._styleCache,!0)),this._cell},t}(e.grid.CellRangeEventArgs);t.XlsxFormatItemEventArgs=r,function(e){e[e.None=0]="None",e[e.Regular=1]="Regular",e[e.Cache=2]="Cache"}(l||(l={}));var n,s=function(){function e(e){this._cache={},this._size=0,this._max=e}return e.prototype.add=function(e,t){this._size>=this._max&&this.clear(),this._cache[e]=this._cloneStyle(t),this._size++},e.prototype.clear=function(){this._cache={},this._size=0},e.prototype.getValue=function(e){return this._cache[e]||null},e.prototype.hasKey=function(e){return!!this._cache[e]},e.prototype._cloneStyle=function(e){if(!e)return null;for(var t={},o=function(e){return e.replace(/\-([a-z])/g,function(e,t,o){return o>0?t.toUpperCase():t})},l=0,r=e.length;l<r;l++){var n=e[l];t[o(n)]=e.getPropertyValue(n)}return t},e}();function i(e,t){if(e&&t)if(e.arrayBuffer)e.arrayBuffer().then(function(e){return t(e)});else{var o=new FileReader;o.onload=function(){t(o.result),o=null},o.readAsArrayBuffer(e)}}t._StyleCache=s,t._blobToBuffer=i,function(e){e[e.Auto=0]="Auto",e[e.No=1]="No",e[e.Yes=2]="Yes"}(n=t.HtmlEntityConversion||(t.HtmlEntityConversion={}))})((t=e.grid||(e.grid={})).xlsx||(t.xlsx={}))}(wijmo||(wijmo={})),function(e){!function(t){t.xlsx||(t.xlsx={}),e._registerModule("wijmo.grid.xlsx",e.grid.xlsx)}(e.grid||(e.grid={}))}(wijmo||(wijmo={}));
var wijmo;(function(n){var t;(function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.XlsxFormatItemEventArgs||(n.XlsxFormatItemEventArgs={}))})(t=n.xlsx||(n.xlsx={}))})(t=n.grid||(n.grid={}))})(wijmo||(wijmo={}));
var wijmo,__extends=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__assign=this&&this.__assign||function(){return(__assign=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};!function(t){t.pdf||(t.pdf={}),function(t){"object"==typeof localExports&&"undefined"!=typeof localModule?localModule.localExports=t():"function"==typeof localDefine&&localDefine.amd?localDefine([],t):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).PDFDocument=t()}(function(){return function t(e,n,r){function i(a,s){if(!n[a]){if(!e[a]){var u="function"==typeof localRequire&&localRequire;if(!s&&u)return u(a,!0);if(o)return o(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var l=n[a]={localExports:{}};e[a][0].call(l.localExports,function(t){return i(e[a][1][t]||t)},l,l.localExports,t,e,n,r)}return n[a].localExports}for(var o="function"==typeof localRequire&&localRequire,a=0;a<r.length;a++)i(r[a]);return i}({1:[function(t,e,n){(function(n){(function(){var r=t("restructure"),i=t("@babel/runtime-corejs2/core-js/object/define-property"),o=t("@babel/runtime-corejs2/core-js/object/keys"),a=t("@babel/runtime-corejs2/core-js/object/freeze"),s=t("@babel/runtime-corejs2/core-js/object/get-own-property-descriptor"),u=t("@babel/runtime-corejs2/core-js/map"),c=t("@babel/runtime-corejs2/core-js/array/is-array"),l=t("@babel/runtime-corejs2/core-js/string/from-code-point"),h=t("@babel/runtime-corejs2/core-js/set"),f=t("@babel/runtime-corejs2/core-js/array/from"),d=t("unicode-properties"),p=t("clone"),g=t("@babel/runtime-corejs2/core-js/promise"),_={logErrors:!1},m=[];function v(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function y(t,e,n){return e&&v(t.prototype,e),n&&v(t,n),t}function b(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,w(t,e)}function w(t,e){return(w=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function x(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function S(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return x(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?x(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function C(t,e,n,r,i){var o={};return Object.keys(r).forEach(function(t){o[t]=r[t]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(n,r){return r(t,e,n)||n},o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(t,e,o),o=null),o}function P(t,e,n){if(n.get){var r=n.get;n.get=function(){var t=r.call(this);return i(this,e,{value:t}),t}}else if("function"==typeof n.value){var o=n.value;return{get:function(){var t=new u;function n(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=n.length>0?n[0]:"value";if(t.has(i))return t.get(i);var a=o.apply(this,n);return t.set(i,a),a}return i(this,e,{value:n}),n}}}}_.registerFormat=function(t){m.push(t)},_.create=function(t,e){for(var n=0;n<m.length;n++){var i=m[n];if(i.probe(t)){var o=new i(new r.DecodeStream(t));return e?o.getFont(e):o}}throw new Error("Unknown font format")},_.defaultLanguage="en",_.setDefaultLanguage=function(t){void 0===t&&(t="en"),_.defaultLanguage=t};var k=new r.Struct({firstCode:r.uint16,entryCount:r.uint16,idDelta:r.int16,idRangeOffset:r.uint16}),E=new r.Struct({startCharCode:r.uint32,endCharCode:r.uint32,glyphID:r.uint32}),A=new r.Struct({startUnicodeValue:r.uint24,additionalCount:r.uint8}),T=new r.Struct({unicodeValue:r.uint24,glyphID:r.uint16}),j=new r.Array(A,r.uint32),O=new r.Array(T,r.uint32),L=new r.Struct({varSelector:r.uint24,defaultUVS:new r.Pointer(r.uint32,j,{type:"parent"}),nonDefaultUVS:new r.Pointer(r.uint32,O,{type:"parent"})}),I=new r.VersionedStruct(r.uint16,{0:{length:r.uint16,language:r.uint16,codeMap:new r.LazyArray(r.uint8,256)},2:{length:r.uint16,language:r.uint16,subHeaderKeys:new r.Array(r.uint16,256),subHeaderCount:function(t){return Math.max.apply(Math,t.subHeaderKeys)},subHeaders:new r.LazyArray(k,"subHeaderCount"),glyphIndexArray:new r.LazyArray(r.uint16,"subHeaderCount")},4:{length:r.uint16,language:r.uint16,segCountX2:r.uint16,segCount:function(t){return t.segCountX2>>1},searchRange:r.uint16,entrySelector:r.uint16,rangeShift:r.uint16,endCode:new r.LazyArray(r.uint16,"segCount"),reservedPad:new r.Reserved(r.uint16),startCode:new r.LazyArray(r.uint16,"segCount"),idDelta:new r.LazyArray(r.int16,"segCount"),idRangeOffset:new r.LazyArray(r.uint16,"segCount"),glyphIndexArray:new r.LazyArray(r.uint16,function(t){return(t.length-t._currentOffset)/2})},6:{length:r.uint16,language:r.uint16,firstCode:r.uint16,entryCount:r.uint16,glyphIndices:new r.LazyArray(r.uint16,"entryCount")},8:{reserved:new r.Reserved(r.uint16),length:r.uint32,language:r.uint16,is32:new r.LazyArray(r.uint8,8192),nGroups:r.uint32,groups:new r.LazyArray(E,"nGroups")},10:{reserved:new r.Reserved(r.uint16),length:r.uint32,language:r.uint32,firstCode:r.uint32,entryCount:r.uint32,glyphIndices:new r.LazyArray(r.uint16,"numChars")},12:{reserved:new r.Reserved(r.uint16),length:r.uint32,language:r.uint32,nGroups:r.uint32,groups:new r.LazyArray(E,"nGroups")},13:{reserved:new r.Reserved(r.uint16),length:r.uint32,language:r.uint32,nGroups:r.uint32,groups:new r.LazyArray(E,"nGroups")},14:{length:r.uint32,numRecords:r.uint32,varSelectors:new r.LazyArray(L,"numRecords")}}),B=new r.Struct({platformID:r.uint16,encodingID:r.uint16,table:new r.Pointer(r.uint32,I,{type:"parent",lazy:!0})}),N=new r.Struct({version:r.uint16,numSubtables:r.uint16,tables:new r.Array(B,"numSubtables")}),R=new r.Struct({version:r.int32,revision:r.int32,checkSumAdjustment:r.uint32,magicNumber:r.uint32,flags:r.uint16,unitsPerEm:r.uint16,created:new r.Array(r.int32,2),modified:new r.Array(r.int32,2),xMin:r.int16,yMin:r.int16,xMax:r.int16,yMax:r.int16,macStyle:new r.Bitfield(r.uint16,["bold","italic","underline","outline","shadow","condensed","extended"]),lowestRecPPEM:r.uint16,fontDirectionHint:r.int16,indexToLocFormat:r.int16,glyphDataFormat:r.int16}),D=new r.Struct({version:r.int32,ascent:r.int16,descent:r.int16,lineGap:r.int16,advanceWidthMax:r.uint16,minLeftSideBearing:r.int16,minRightSideBearing:r.int16,xMaxExtent:r.int16,caretSlopeRise:r.int16,caretSlopeRun:r.int16,caretOffset:r.int16,reserved:new r.Reserved(r.int16,4),metricDataFormat:r.int16,numberOfMetrics:r.uint16}),M=new r.Struct({advance:r.uint16,bearing:r.int16}),z=new r.Struct({metrics:new r.LazyArray(M,function(t){return t.parent.hhea.numberOfMetrics}),bearings:new r.LazyArray(r.int16,function(t){return t.parent.maxp.numGlyphs-t.parent.hhea.numberOfMetrics})}),F=new r.Struct({version:r.int32,numGlyphs:r.uint16,maxPoints:r.uint16,maxContours:r.uint16,maxComponentPoints:r.uint16,maxComponentContours:r.uint16,maxZones:r.uint16,maxTwilightPoints:r.uint16,maxStorage:r.uint16,maxFunctionDefs:r.uint16,maxInstructionDefs:r.uint16,maxStackElements:r.uint16,maxSizeOfInstructions:r.uint16,maxComponentElements:r.uint16,maxComponentDepth:r.uint16});function U(t,e,n){return void 0===n&&(n=0),1===t&&H[n]?H[n]:q[t][e]}var q=[["utf16be","utf16be","utf16be","utf16be","utf16be","utf16be"],["macroman","shift-jis","big5","euc-kr","iso-8859-6","iso-8859-8","macgreek","maccyrillic","symbol","Devanagari","Gurmukhi","Gujarati","Oriya","Bengali","Tamil","Telugu","Kannada","Malayalam","Sinhalese","Burmese","Khmer","macthai","Laotian","Georgian","Armenian","gb-2312-80","Tibetan","Mongolian","Geez","maccenteuro","Vietnamese","Sindhi"],["ascii"],["symbol","utf16be","shift-jis","gb18030","big5","wansung","johab",null,null,null,"utf16be"]],H={15:"maciceland",17:"macturkish",18:"maccroatian",24:"maccenteuro",25:"maccenteuro",26:"maccenteuro",27:"maccenteuro",28:"maccenteuro",30:"maciceland",37:"macromania",38:"maccenteuro",39:"maccenteuro",40:"maccenteuro",143:"macinuit",146:"macgaelic"},G=[[],{0:"en",30:"fo",60:"ks",90:"rw",1:"fr",31:"fa",61:"ku",91:"rn",2:"de",32:"ru",62:"sd",92:"ny",3:"it",33:"zh",63:"bo",93:"mg",4:"nl",34:"nl-BE",64:"ne",94:"eo",5:"sv",35:"ga",65:"sa",128:"cy",6:"es",36:"sq",66:"mr",129:"eu",7:"da",37:"ro",67:"bn",130:"ca",8:"pt",38:"cz",68:"as",131:"la",9:"no",39:"sk",69:"gu",132:"qu",10:"he",40:"si",70:"pa",133:"gn",11:"ja",41:"yi",71:"or",134:"ay",12:"ar",42:"sr",72:"ml",135:"tt",13:"fi",43:"mk",73:"kn",136:"ug",14:"el",44:"bg",74:"ta",137:"dz",15:"is",45:"uk",75:"te",138:"jv",16:"mt",46:"be",76:"si",139:"su",17:"tr",47:"uz",77:"my",140:"gl",18:"hr",48:"kk",78:"km",141:"af",19:"zh-Hant",49:"az-Cyrl",79:"lo",142:"br",20:"ur",50:"az-Arab",80:"vi",143:"iu",21:"hi",51:"hy",81:"id",144:"gd",22:"th",52:"ka",82:"tl",145:"gv",23:"ko",53:"mo",83:"ms",146:"ga",24:"lt",54:"ky",84:"ms-Arab",147:"to",25:"pl",55:"tg",85:"am",148:"el-polyton",26:"hu",56:"tk",86:"ti",149:"kl",27:"es",57:"mn-CN",87:"om",150:"az",28:"lv",58:"mn",88:"so",151:"nn",29:"se",59:"ps",89:"sw"},[],{1078:"af",16393:"en-IN",1159:"rw",1074:"tn",1052:"sq",6153:"en-IE",1089:"sw",1115:"si",1156:"gsw",8201:"en-JM",1111:"kok",1051:"sk",1118:"am",17417:"en-MY",1042:"ko",1060:"sl",5121:"ar-DZ",5129:"en-NZ",1088:"ky",11274:"es-AR",15361:"ar-BH",13321:"en-PH",1108:"lo",16394:"es-BO",3073:"ar",18441:"en-SG",1062:"lv",13322:"es-CL",2049:"ar-IQ",7177:"en-ZA",1063:"lt",9226:"es-CO",11265:"ar-JO",11273:"en-TT",2094:"dsb",5130:"es-CR",13313:"ar-KW",2057:"en-GB",1134:"lb",7178:"es-DO",12289:"ar-LB",1033:"en",1071:"mk",12298:"es-EC",4097:"ar-LY",12297:"en-ZW",2110:"ms-BN",17418:"es-SV",6145:"ary",1061:"et",1086:"ms",4106:"es-GT",8193:"ar-OM",1080:"fo",1100:"ml",18442:"es-HN",16385:"ar-QA",1124:"fil",1082:"mt",2058:"es-MX",1025:"ar-SA",1035:"fi",1153:"mi",19466:"es-NI",10241:"ar-SY",2060:"fr-BE",1146:"arn",6154:"es-PA",7169:"aeb",3084:"fr-CA",1102:"mr",15370:"es-PY",14337:"ar-AE",1036:"fr",1148:"moh",10250:"es-PE",9217:"ar-YE",5132:"fr-LU",1104:"mn",20490:"es-PR",1067:"hy",6156:"fr-MC",2128:"mn-CN",3082:"es",1101:"as",4108:"fr-CH",1121:"ne",1034:"es",2092:"az-Cyrl",1122:"fy",1044:"nb",21514:"es-US",1068:"az",1110:"gl",2068:"nn",14346:"es-UY",1133:"ba",1079:"ka",1154:"oc",8202:"es-VE",1069:"eu",3079:"de-AT",1096:"or",2077:"sv-FI",1059:"be",1031:"de",1123:"ps",1053:"sv",2117:"bn",5127:"de-LI",1045:"pl",1114:"syr",1093:"bn-IN",4103:"de-LU",1046:"pt",1064:"tg",8218:"bs-Cyrl",2055:"de-CH",2070:"pt-PT",2143:"tzm",5146:"bs",1032:"el",1094:"pa",1097:"ta",1150:"br",1135:"kl",1131:"qu-BO",1092:"tt",1026:"bg",1095:"gu",2155:"qu-EC",1098:"te",1027:"ca",1128:"ha",3179:"qu",1054:"th",3076:"zh-HK",1037:"he",1048:"ro",1105:"bo",5124:"zh-MO",1081:"hi",1047:"rm",1055:"tr",2052:"zh",1038:"hu",1049:"ru",1090:"tk",4100:"zh-SG",1039:"is",9275:"smn",1152:"ug",1028:"zh-TW",1136:"ig",4155:"smj-NO",1058:"uk",1155:"co",1057:"id",5179:"smj",1070:"hsb",1050:"hr",1117:"iu",3131:"se-FI",1056:"ur",4122:"hr-BA",2141:"iu-Latn",1083:"se",2115:"uz-Cyrl",1029:"cs",2108:"ga",2107:"se-SE",1091:"uz",1030:"da",1076:"xh",8251:"sms",1066:"vi",1164:"prs",1077:"zu",6203:"sma-NO",1106:"cy",1125:"dv",1040:"it",7227:"sms",1160:"wo",2067:"nl-BE",2064:"it-CH",1103:"sa",1157:"sah",1043:"nl",1041:"ja",7194:"sr-Cyrl-BA",1144:"ii",3081:"en-AU",1099:"kn",3098:"sr",1130:"yo",10249:"en-BZ",1087:"kk",6170:"sr-Latn-BA",4105:"en-CA",1107:"km",2074:"sr-Latn",9225:"en-029",1158:"quc",1132:"nso"}],W=new r.Struct({platformID:r.uint16,encodingID:r.uint16,languageID:r.uint16,nameID:r.uint16,length:r.uint16,string:new r.Pointer(r.uint16,new r.String("length",function(t){return U(t.platformID,t.encodingID,t.languageID)}),{type:"parent",relativeTo:function(t){return t.parent.stringOffset},allowNull:!1})}),Z=new r.Struct({length:r.uint16,tag:new r.Pointer(r.uint16,new r.String("length","utf16be"),{type:"parent",relativeTo:function(t){return t.stringOffset}})}),V=new r.VersionedStruct(r.uint16,{0:{count:r.uint16,stringOffset:r.uint16,records:new r.Array(W,"count")},1:{count:r.uint16,stringOffset:r.uint16,records:new r.Array(W,"count"),langTagCount:r.uint16,langTags:new r.Array(Z,"langTagCount")}}),X=["copyright","fontFamily","fontSubfamily","uniqueSubfamily","fullName","version","postscriptName","trademark","manufacturer","designer","description","vendorURL","designerURL","license","licenseURL",null,"preferredFamily","preferredSubfamily","compatibleFull","sampleText","postscriptCIDFontName","wwsFamilyName","wwsSubfamilyName"];V.process=function(t){for(var e,n={},r=S(this.records);!(e=r()).done;){var i=e.value,o=G[i.platformID][i.languageID];null==o&&null!=this.langTags&&i.languageID>=32768&&(o=this.langTags[i.languageID-32768].tag),null==o&&(o=i.platformID+"-"+i.languageID);var a=i.nameID>=256?"fontFeatures":X[i.nameID]||i.nameID;null==n[a]&&(n[a]={});var s=n[a];i.nameID>=256&&(s=s[i.nameID]||(s[i.nameID]={})),"string"!=typeof i.string&&"string"==typeof s[o]||(s[o]=i.string)}this.records=n},V.preEncode=function(){if(!c(this.records)){this.version=0;var t=[];for(var e in this.records){var r=this.records[e];"fontFeatures"!==e&&(t.push({platformID:3,encodingID:1,languageID:1033,nameID:X.indexOf(e),length:n.byteLength(r.en,"utf16le"),string:r.en}),"postscriptName"===e&&t.push({platformID:1,encodingID:0,languageID:0,nameID:X.indexOf(e),length:r.en.length,string:r.en}))}this.records=t,this.count=t.length,this.stringOffset=V.size(this,null,!1)}};var Y=new r.VersionedStruct(r.uint16,{header:{xAvgCharWidth:r.int16,usWeightClass:r.uint16,usWidthClass:r.uint16,fsType:new r.Bitfield(r.uint16,[null,"noEmbedding","viewOnly","editable",null,null,null,null,"noSubsetting","bitmapOnly"]),ySubscriptXSize:r.int16,ySubscriptYSize:r.int16,ySubscriptXOffset:r.int16,ySubscriptYOffset:r.int16,ySuperscriptXSize:r.int16,ySuperscriptYSize:r.int16,ySuperscriptXOffset:r.int16,ySuperscriptYOffset:r.int16,yStrikeoutSize:r.int16,yStrikeoutPosition:r.int16,sFamilyClass:r.int16,panose:new r.Array(r.uint8,10),ulCharRange:new r.Array(r.uint32,4),vendorID:new r.String(4),fsSelection:new r.Bitfield(r.uint16,["italic","underscore","negative","outlined","strikeout","bold","regular","useTypoMetrics","wws","oblique"]),usFirstCharIndex:r.uint16,usLastCharIndex:r.uint16},0:{},1:{typoAscender:r.int16,typoDescender:r.int16,typoLineGap:r.int16,winAscent:r.uint16,winDescent:r.uint16,codePageRange:new r.Array(r.uint32,2)},2:{typoAscender:r.int16,typoDescender:r.int16,typoLineGap:r.int16,winAscent:r.uint16,winDescent:r.uint16,codePageRange:new r.Array(r.uint32,2),xHeight:r.int16,capHeight:r.int16,defaultChar:r.uint16,breakChar:r.uint16,maxContent:r.uint16},5:{typoAscender:r.int16,typoDescender:r.int16,typoLineGap:r.int16,winAscent:r.uint16,winDescent:r.uint16,codePageRange:new r.Array(r.uint32,2),xHeight:r.int16,capHeight:r.int16,defaultChar:r.uint16,breakChar:r.uint16,maxContent:r.uint16,usLowerOpticalPointSize:r.uint16,usUpperOpticalPointSize:r.uint16}}),K=Y.versions;K[3]=K[4]=K[2];var J=new r.VersionedStruct(r.fixed32,{header:{italicAngle:r.fixed32,underlinePosition:r.int16,underlineThickness:r.int16,isFixedPitch:r.uint32,minMemType42:r.uint32,maxMemType42:r.uint32,minMemType1:r.uint32,maxMemType1:r.uint32},1:{},2:{numberOfGlyphs:r.uint16,glyphNameIndex:new r.Array(r.uint16,"numberOfGlyphs"),names:new r.Array(new r.String(r.uint8))},2.5:{numberOfGlyphs:r.uint16,offsets:new r.Array(r.uint8,"numberOfGlyphs")},3:{},4:{map:new r.Array(r.uint32,function(t){return t.parent.maxp.numGlyphs})}}),Q=new r.Struct({controlValues:new r.Array(r.int16)}),$=new r.Struct({instructions:new r.Array(r.uint8)}),tt=new r.VersionedStruct("head.indexToLocFormat",{0:{offsets:new r.Array(r.uint16)},1:{offsets:new r.Array(r.uint32)}});tt.process=function(){if(0===this.version)for(var t=0;t<this.offsets.length;t++)this.offsets[t]<<=1},tt.preEncode=function(){if(0===this.version)for(var t=0;t<this.offsets.length;t++)this.offsets[t]>>>=1};var et=new r.Struct({controlValueProgram:new r.Array(r.uint8)}),nt=new r.Array(new r.Buffer),rt={};rt.cmap=N,rt.head=R,rt.hhea=D,rt.hmtx=z,rt.maxp=F,rt.name=V,rt["OS/2"]=Y,rt.post=J,rt.fpgm=$,rt.loca=tt,rt.prep=et,rt["cvt "]=Q,rt.glyf=nt;var it,ot=new r.Struct({tag:new r.String(4),checkSum:r.uint32,offset:new r.Pointer(r.uint32,"void",{type:"global"}),length:r.uint32}),at=new r.Struct({tag:new r.String(4),numTables:r.uint16,searchRange:r.uint16,entrySelector:r.uint16,rangeShift:r.uint16,tables:new r.Array(ot,"numTables")});function st(t,e){for(var n=0,r=t.length-1;n<=r;){var i=n+r>>1,o=e(t[i]);if(o<0)r=i-1;else{if(!(o>0))return i;n=i+1}}return-1}function ut(t,e){for(var n=[];t<e;)n.push(t++);return n}at.process=function(){for(var t,e={},n=S(this.tables);!(t=n()).done;){var r=t.value;e[r.tag]=r}this.tables=e},at.preEncode=function(t){var e=[];for(var n in this.tables){var i=this.tables[n];i&&e.push({tag:n,checkSum:0,offset:new r.VoidPointer(rt[n],i),length:rt[n].size(i)})}this.tag="true",this.numTables=e.length,this.tables=e;var o=Math.floor(Math.log(this.numTables)/Math.LN2),a=Math.pow(2,o);this.searchRange=16*a,this.entrySelector=Math.log(a)/Math.LN2,this.rangeShift=16*this.numTables-this.searchRange};try{var ct=t("iconv-lite")}catch(t){}var lt=(C((it=function(){function t(t){if(this.encoding=null,this.cmap=this.findSubtable(t,[[3,10],[0,6],[0,4],[3,1],[0,3],[0,2],[0,1],[0,0]]),!this.cmap&&ct)for(var e,n=S(t.tables);!(e=n()).done;){var r=e.value,i=U(r.platformID,r.encodingID,r.table.language-1);ct.encodingExists(i)&&(this.cmap=r.table,this.encoding=i)}if(!this.cmap)throw new Error("Could not find a supported cmap table");this.uvs=this.findSubtable(t,[[0,5]]),this.uvs&&14!==this.uvs.version&&(this.uvs=null)}var e=t.prototype;return e.findSubtable=function(t,e){for(var n,r=S(e);!(n=r()).done;)for(var i,o=n.value,a=o[0],s=o[1],u=S(t.tables);!(i=u()).done;){var c=i.value;if(c.platformID===a&&c.encodingID===s)return c.table}return null},e.lookup=function(t,e){if(this.encoding){var n=ct.encode(l(t),this.encoding);t=0;for(var r=0;r<n.length;r++)t=t<<8|n[r]}else if(e){var i=this.getVariationSelector(t,e);if(i)return i}var o=this.cmap;switch(o.version){case 0:return o.codeMap.get(t)||0;case 4:for(var a=0,s=o.segCount-1;a<=s;){var u=a+s>>1;if(t<o.startCode.get(u))s=u-1;else{if(!(t>o.endCode.get(u))){var c=o.idRangeOffset.get(u),h=void 0;if(0===c)h=t+o.idDelta.get(u);else{var f=c/2+(t-o.startCode.get(u))-(o.segCount-u);0!==(h=o.glyphIndexArray.get(f)||0)&&(h+=o.idDelta.get(u))}return 65535&h}a=u+1}}return 0;case 8:throw new Error("TODO: cmap format 8");case 6:case 10:return o.glyphIndices.get(t-o.firstCode)||0;case 12:case 13:for(var d=0,p=o.nGroups-1;d<=p;){var g=d+p>>1,_=o.groups.get(g);if(t<_.startCharCode)p=g-1;else{if(!(t>_.endCharCode))return 12===o.version?_.glyphID+(t-_.startCharCode):_.glyphID;d=g+1}}return 0;case 14:throw new Error("TODO: cmap format 14");default:throw new Error("Unknown cmap format "+o.version)}},e.getVariationSelector=function(t,e){if(!this.uvs)return 0;var n=this.uvs.varSelectors.toArray(),r=st(n,function(t){return e-t.varSelector}),i=n[r];return-1!==r&&i.defaultUVS&&(r=st(i.defaultUVS,function(e){return t<e.startUnicodeValue?-1:t>e.startUnicodeValue+e.additionalCount?1:0})),-1!==r&&i.nonDefaultUVS&&-1!==(r=st(i.nonDefaultUVS,function(e){return t-e.unicodeValue}))?i.nonDefaultUVS[r].glyphID:0},e.getCharacterSet=function(){var t=this.cmap;switch(t.version){case 0:return ut(0,t.codeMap.length);case 4:for(var e=[],n=t.endCode.toArray(),r=0;r<n.length;r++){var i=n[r]+1,o=t.startCode.get(r);e.push.apply(e,ut(o,i))}return e;case 8:throw new Error("TODO: cmap format 8");case 6:case 10:return ut(t.firstCode,t.firstCode+t.glyphIndices.length);case 12:case 13:for(var a,s=[],u=S(t.groups.toArray());!(a=u()).done;){var c=a.value;s.push.apply(s,ut(c.startCharCode,c.endCharCode+1))}return s;case 14:throw new Error("TODO: cmap format 14");default:throw new Error("Unknown cmap format "+t.version)}},e.codePointsForGlyph=function(t){var e=this.cmap;switch(e.version){case 0:for(var n=[],r=0;r<256;r++)e.codeMap.get(r)===t&&n.push(r);return n;case 4:for(var i=[],o=0;o<e.segCount;o++)for(var a=e.endCode.get(o),s=e.startCode.get(o),u=e.idRangeOffset.get(o),c=e.idDelta.get(o),l=s;l<=a;l++){var h=0;if(0===u)h=l+c;else{var f=u/2+(l-s)-(e.segCount-o);0!==(h=e.glyphIndexArray.get(f)||0)&&(h+=c)}h===t&&i.push(l)}return i;case 12:for(var d,p=[],g=S(e.groups.toArray());!(d=g()).done;){var _=d.value;t>=_.glyphID&&t<=_.glyphID+(_.endCharCode-_.startCharCode)&&p.push(_.startCharCode+(t-_.glyphID))}return p;case 13:for(var m,v=[],y=S(e.groups.toArray());!(m=y()).done;){var b=m.value;t===b.glyphID&&v.push.apply(v,ut(b.startCharCode,b.endCharCode+1))}return v;default:throw new Error("Unknown cmap format "+e.version)}},t}()).prototype,"getCharacterSet",[P],s(it.prototype,"getCharacterSet"),it.prototype),C(it.prototype,"codePointsForGlyph",[P],s(it.prototype,"codePointsForGlyph"),it.prototype),it),ht=function(){function t(t){this.font=t}var e=t.prototype;return e.positionGlyphs=function(t,e){for(var n=0,r=0,i=0;i<t.length;i++)t[i].isMark?r=i:(n!==r&&this.positionCluster(t,e,n,r),n=r=i);return n!==r&&this.positionCluster(t,e,n,r),e},e.positionCluster=function(t,e,n,r){var i=t[n],o=i.cbox.copy();i.codePoints.length>1&&(o.minX+=(i.codePoints.length-1)*o.width/i.codePoints.length);for(var a=-e[n].xAdvance,s=0,u=this.font.unitsPerEm/16,c=n+1;c<=r;c++){var l=t[c],h=l.cbox,f=e[c],d=this.getCombiningClass(l.codePoints[0]);if("Not_Reordered"!==d){switch(f.xOffset=f.yOffset=0,d){case"Double_Above":case"Double_Below":f.xOffset+=o.minX-h.width/2-h.minX;break;case"Attached_Below_Left":case"Below_Left":case"Above_Left":f.xOffset+=o.minX-h.minX;break;case"Attached_Above_Right":case"Below_Right":case"Above_Right":f.xOffset+=o.maxX-h.width-h.minX;break;default:f.xOffset+=o.minX+(o.width-h.width)/2-h.minX}switch(d){case"Double_Below":case"Below_Left":case"Below":case"Below_Right":case"Attached_Below_Left":case"Attached_Below":"Attached_Below_Left"!==d&&"Attached_Below"!==d||(o.minY+=u),f.yOffset=-o.minY-h.maxY,o.minY+=h.height;break;case"Double_Above":case"Above_Left":case"Above":case"Above_Right":case"Attached_Above":case"Attached_Above_Right":"Attached_Above"!==d&&"Attached_Above_Right"!==d||(o.maxY+=u),f.yOffset=o.maxY-h.minY,o.maxY+=h.height}f.xAdvance=f.yAdvance=0,f.xOffset+=a,f.yOffset+=s}else a-=f.xAdvance,s-=f.yAdvance}},e.getCombiningClass=function(t){var e=d.getCombiningClass(t);if(3584==(-256&t))if("Not_Reordered"===e)switch(t){case 3633:case 3636:case 3637:case 3638:case 3639:case 3655:case 3660:case 3645:case 3662:return"Above_Right";case 3761:case 3764:case 3765:case 3766:case 3767:case 3771:case 3788:case 3789:return"Above";case 3772:return"Below"}else if(3642===t)return"Below_Right";switch(e){case"CCC10":case"CCC11":case"CCC12":case"CCC13":case"CCC14":case"CCC15":case"CCC16":case"CCC17":case"CCC18":case"CCC20":case"CCC22":return"Below";case"CCC23":return"Attached_Above";case"CCC24":return"Above_Right";case"CCC25":case"CCC19":return"Above_Left";case"CCC26":return"Above";case"CCC21":break;case"CCC27":case"CCC28":case"CCC30":case"CCC31":case"CCC33":case"CCC34":case"CCC35":case"CCC36":return"Above";case"CCC29":case"CCC32":return"Below";case"CCC103":return"Below_Right";case"CCC107":return"Above_Right";case"CCC118":return"Below";case"CCC122":return"Above";case"CCC129":case"CCC132":return"Below";case"CCC130":return"Above"}return e},t}(),ft=function(){function t(t,e,n,r){void 0===t&&(t=1/0),void 0===e&&(e=1/0),void 0===n&&(n=-1/0),void 0===r&&(r=-1/0),this.minX=t,this.minY=e,this.maxX=n,this.maxY=r}var e=t.prototype;return e.addPoint=function(t,e){Math.abs(t)!==1/0&&(t<this.minX&&(this.minX=t),t>this.maxX&&(this.maxX=t)),Math.abs(e)!==1/0&&(e<this.minY&&(this.minY=e),e>this.maxY&&(this.maxY=e))},e.copy=function(){return new t(this.minX,this.minY,this.maxX,this.maxY)},y(t,[{key:"width",get:function(){return this.maxX-this.minX}},{key:"height",get:function(){return this.maxY-this.minY}}]),t}(),dt={Caucasian_Albanian:"aghb",Arabic:"arab",Imperial_Aramaic:"armi",Armenian:"armn",Avestan:"avst",Balinese:"bali",Bamum:"bamu",Bassa_Vah:"bass",Batak:"batk",Bengali:["bng2","beng"],Bopomofo:"bopo",Brahmi:"brah",Braille:"brai",Buginese:"bugi",Buhid:"buhd",Chakma:"cakm",Canadian_Aboriginal:"cans",Carian:"cari",Cham:"cham",Cherokee:"cher",Coptic:"copt",Cypriot:"cprt",Cyrillic:"cyrl",Devanagari:["dev2","deva"],Deseret:"dsrt",Duployan:"dupl",Egyptian_Hieroglyphs:"egyp",Elbasan:"elba",Ethiopic:"ethi",Georgian:"geor",Glagolitic:"glag",Gothic:"goth",Grantha:"gran",Greek:"grek",Gujarati:["gjr2","gujr"],Gurmukhi:["gur2","guru"],Hangul:"hang",Han:"hani",Hanunoo:"hano",Hebrew:"hebr",Hiragana:"hira",Pahawh_Hmong:"hmng",Katakana_Or_Hiragana:"hrkt",Old_Italic:"ital",Javanese:"java",Kayah_Li:"kali",Katakana:"kana",Kharoshthi:"khar",Khmer:"khmr",Khojki:"khoj",Kannada:["knd2","knda"],Kaithi:"kthi",Tai_Tham:"lana",Lao:"lao ",Latin:"latn",Lepcha:"lepc",Limbu:"limb",Linear_A:"lina",Linear_B:"linb",Lisu:"lisu",Lycian:"lyci",Lydian:"lydi",Mahajani:"mahj",Mandaic:"mand",Manichaean:"mani",Mende_Kikakui:"mend",Meroitic_Cursive:"merc",Meroitic_Hieroglyphs:"mero",Malayalam:["mlm2","mlym"],Modi:"modi",Mongolian:"mong",Mro:"mroo",Meetei_Mayek:"mtei",Myanmar:["mym2","mymr"],Old_North_Arabian:"narb",Nabataean:"nbat",Nko:"nko ",Ogham:"ogam",Ol_Chiki:"olck",Old_Turkic:"orkh",Oriya:["ory2","orya"],Osmanya:"osma",Palmyrene:"palm",Pau_Cin_Hau:"pauc",Old_Permic:"perm",Phags_Pa:"phag",Inscriptional_Pahlavi:"phli",Psalter_Pahlavi:"phlp",Phoenician:"phnx",Miao:"plrd",Inscriptional_Parthian:"prti",Rejang:"rjng",Runic:"runr",Samaritan:"samr",Old_South_Arabian:"sarb",Saurashtra:"saur",Shavian:"shaw",Sharada:"shrd",Siddham:"sidd",Khudawadi:"sind",Sinhala:"sinh",Sora_Sompeng:"sora",Sundanese:"sund",Syloti_Nagri:"sylo",Syriac:"syrc",Tagbanwa:"tagb",Takri:"takr",Tai_Le:"tale",New_Tai_Lue:"talu",Tamil:["tml2","taml"],Tai_Viet:"tavt",Telugu:["tel2","telu"],Tifinagh:"tfng",Tagalog:"tglg",Thaana:"thaa",Thai:"thai",Tibetan:"tibt",Tirhuta:"tirh",Ugaritic:"ugar",Vai:"vai ",Warang_Citi:"wara",Old_Persian:"xpeo",Cuneiform:"xsux",Yi:"yi  ",Inherited:"zinh",Common:"zyyy",Unknown:"zzzz"};for(var pt in dt){var gt=dt[pt];if(c(gt))for(var _t,mt=S(gt);!(_t=mt()).done;)_t.value}for(var vt={arab:!0,hebr:!0,syrc:!0,thaa:!0,cprt:!0,khar:!0,phnx:!0,"nko ":!0,lydi:!0,avst:!0,armi:!0,phli:!0,prti:!0,sarb:!0,orkh:!0,samr:!0,mand:!0,merc:!0,mero:!0,mani:!0,mend:!0,nbat:!0,narb:!0,palm:!0,phlp:!0},yt=function(){function t(t,e,n,r,i){if(this.glyphs=t,this.positions=null,this.script=n,this.language=r||null,this.direction=i||function(t){return vt[t]?"rtl":"ltr"}(n),this.features={},c(e))for(var o,a=S(e);!(o=a()).done;){var s=o.value;this.features[s]=!0}else"object"==typeof e&&(this.features=e)}return y(t,[{key:"advanceWidth",get:function(){for(var t,e=0,n=S(this.positions);!(t=n()).done;)e+=t.value.xAdvance;return e}},{key:"advanceHeight",get:function(){for(var t,e=0,n=S(this.positions);!(t=n()).done;)e+=t.value.yAdvance;return e}},{key:"bbox",get:function(){for(var t=new ft,e=0,n=0,r=0;r<this.glyphs.length;r++){var i=this.glyphs[r],o=this.positions[r],a=i.bbox;t.addPoint(a.minX+e+o.xOffset,a.minY+n+o.yOffset),t.addPoint(a.maxX+e+o.xOffset,a.maxY+n+o.yOffset),e+=o.xAdvance,n+=o.yAdvance}return t}}]),t}(),bt=function(){function t(t){this.font=t,this.unicodeLayoutEngine=null,this.kernProcessor=null}var e=t.prototype;return e.layout=function(t,e,n,r,i){if("string"==typeof e&&(i=r,r=n,n=e,e=[]),"string"==typeof t){null==n&&(n=function(t){for(var e=t.length,n=0;n<e;){var r=t.charCodeAt(n++);if(55296<=r&&r<=56319&&n<e){var i=t.charCodeAt(n);56320<=i&&i<=57343&&(n++,r=((1023&r)<<10)+(1023&i)+65536)}var o=d.getScript(r);if("Common"!==o&&"Inherited"!==o&&"Unknown"!==o)return dt[o]}return dt.Unknown}(t));var o=this.font.glyphsForString(t)}else{if(null==n){for(var a,s=[],u=S(t);!(a=u()).done;){var c=a.value;s.push.apply(s,c.codePoints)}n=function(t){for(var e=0;e<t.length;e++){var n=t[e],r=d.getScript(n);if("Common"!==r&&"Inherited"!==r&&"Unknown"!==r)return dt[r]}return dt.Unknown}(s)}o=t}var l=new yt(o,e,n,r,i);return 0===o.length?(l.positions=[],l):(this.engine&&this.engine.setup&&this.engine.setup(l),this.substitute(l),this.position(l),this.hideDefaultIgnorables(l.glyphs,l.positions),this.engine&&this.engine.cleanup&&this.engine.cleanup(),l)},e.substitute=function(t){this.engine&&this.engine.substitute&&this.engine.substitute(t)},e.position=function(t){t.positions=t.glyphs.map(function(t){return new function(t,e,n,r){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0),void 0===r&&(r=0),this.xAdvance=t,this.yAdvance=e,this.xOffset=n,this.yOffset=r}(t.advanceWidth)});var e=null;this.engine&&this.engine.position&&(e=this.engine.position(t)),e||this.engine&&!this.engine.fallbackPosition||(this.unicodeLayoutEngine||(this.unicodeLayoutEngine=new ht(this.font)),this.unicodeLayoutEngine.positionGlyphs(t.glyphs,t.positions))},e.hideDefaultIgnorables=function(t,e){for(var n=this.font.glyphForCodePoint(32),r=0;r<t.length;r++)this.isDefaultIgnorable(t[r].codePoints[0])&&(t[r]=n,e[r].xAdvance=0,e[r].yAdvance=0)},e.isDefaultIgnorable=function(t){var e=t>>16;if(0===e)switch(t>>8){case 0:return 173===t;case 3:return 847===t;case 6:return 1564===t;case 23:return 6068<=t&&t<=6069;case 24:return 6155<=t&&t<=6158;case 32:return 8203<=t&&t<=8207||8234<=t&&t<=8238||8288<=t&&t<=8303;case 254:return 65024<=t&&t<=65039||65279===t;case 255:return 65520<=t&&t<=65528;default:return!1}else switch(e){case 1:return 113824<=t&&t<=113827||119155<=t&&t<=119162;case 14:return 917504<=t&&t<=921599;default:return!1}},e.getAvailableFeatures=function(t,e){var n=[];return this.engine&&n.push.apply(n,this.engine.getAvailableFeatures(t,e)),this.font.kern&&-1===n.indexOf("kern")&&n.push("kern"),n},e.stringsForGlyph=function(t){for(var e,n=new h,r=S(this.font._cmapProcessor.codePointsForGlyph(t));!(e=r()).done;){var i=e.value;n.add(l(i))}if(this.engine&&this.engine.stringsForGlyph)for(var o,a=S(this.engine.stringsForGlyph(t));!(o=a()).done;){var s=o.value;n.add(s)}return f(n)},t}(),wt={moveTo:"M",lineTo:"L",quadraticCurveTo:"Q",bezierCurveTo:"C",closePath:"Z"},xt=function(){function t(){this.commands=[],this._bbox=null,this._cbox=null}var e=t.prototype;return e.toFunction=function(){var t=this;return function(e){t.commands.forEach(function(t){return e[t.command].apply(e,t.args)})}},e.toSVG=function(){return this.commands.map(function(t){var e=t.args.map(function(t){return Math.round(100*t)/100});return""+wt[t.command]+e.join(" ")}).join("")},e.mapPoints=function(e){for(var n,r=new t,i=S(this.commands);!(n=i()).done;){for(var o=n.value,a=[],s=0;s<o.args.length;s+=2){var u=e(o.args[s],o.args[s+1]),c=u[0],l=u[1];a.push(c,l)}r[o.command].apply(r,a)}return r},e.transform=function(t,e,n,r,i,o){return this.mapPoints(function(a,s){return[a=t*a+n*s+i,s=e*a+r*s+o]})},e.translate=function(t,e){return this.transform(1,0,0,1,t,e)},e.rotate=function(t){var e=Math.cos(t),n=Math.sin(t);return this.transform(e,n,-n,e,0,0)},e.scale=function(t,e){return void 0===e&&(e=t),this.transform(t,0,0,e,0,0)},y(t,[{key:"cbox",get:function(){if(!this._cbox){for(var t,e=new ft,n=S(this.commands);!(t=n()).done;)for(var r=t.value,i=0;i<r.args.length;i+=2)e.addPoint(r.args[i],r.args[i+1]);this._cbox=a(e)}return this._cbox}},{key:"bbox",get:function(){if(this._bbox)return this._bbox;for(var t,e=new ft,n=0,r=0,i=function(t){return Math.pow(1-t,3)*w[k]+3*Math.pow(1-t,2)*t*x[k]+3*(1-t)*Math.pow(t,2)*C[k]+Math.pow(t,3)*P[k]},o=S(this.commands);!(t=o()).done;){var s=t.value;switch(s.command){case"moveTo":case"lineTo":var u=s.args,c=u[0],l=u[1];e.addPoint(c,l),n=c,r=l;break;case"quadraticCurveTo":case"bezierCurveTo":if("quadraticCurveTo"===s.command)var h=s.args,f=h[0],d=h[1],p=n+2/3*(f-n),g=r+2/3*(d-r),_=(y=h[2])+2/3*(f-y),m=(b=h[3])+2/3*(d-b);else var v=s.args,y=(p=v[0],g=v[1],_=v[2],m=v[3],v[4]),b=v[5];e.addPoint(y,b);for(var w=[n,r],x=[p,g],C=[_,m],P=[y,b],k=0;k<=1;k++){var E=6*w[k]-12*x[k]+6*C[k],A=-3*w[k]+9*x[k]-9*C[k]+3*P[k];if(s=3*x[k]-3*w[k],0!==A){var T=Math.pow(E,2)-4*s*A;if(!(T<0)){var j=(-E+Math.sqrt(T))/(2*A);0<j&&j<1&&(0===k?e.addPoint(i(j),e.maxY):1===k&&e.addPoint(e.maxX,i(j)));var O=(-E-Math.sqrt(T))/(2*A);0<O&&O<1&&(0===k?e.addPoint(i(O),e.maxY):1===k&&e.addPoint(e.maxX,i(O)))}}else{if(0===E)continue;var L=-s/E;0<L&&L<1&&(0===k?e.addPoint(i(L),e.maxY):1===k&&e.addPoint(e.maxX,i(L)))}}n=y,r=b}}return this._bbox=a(e)}}]),t}(),St=function(){var t=Pt[Ct];xt.prototype[t]=function(){this._bbox=this._cbox=null;for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.commands.push({command:t,args:n}),this}},Ct=0,Pt=["moveTo","lineTo","quadraticCurveTo","bezierCurveTo","closePath"];Ct<Pt.length;Ct++)St();var kt,Et,At=[".notdef",".null","nonmarkingreturn","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","Adieresis","Aring","Ccedilla","Eacute","Ntilde","Odieresis","Udieresis","aacute","agrave","acircumflex","adieresis","atilde","aring","ccedilla","eacute","egrave","ecircumflex","edieresis","iacute","igrave","icircumflex","idieresis","ntilde","oacute","ograve","ocircumflex","odieresis","otilde","uacute","ugrave","ucircumflex","udieresis","dagger","degree","cent","sterling","section","bullet","paragraph","germandbls","registered","copyright","trademark","acute","dieresis","notequal","AE","Oslash","infinity","plusminus","lessequal","greaterequal","yen","mu","partialdiff","summation","product","pi","integral","ordfeminine","ordmasculine","Omega","ae","oslash","questiondown","exclamdown","logicalnot","radical","florin","approxequal","Delta","guillemotleft","guillemotright","ellipsis","nonbreakingspace","Agrave","Atilde","Otilde","OE","oe","endash","emdash","quotedblleft","quotedblright","quoteleft","quoteright","divide","lozenge","ydieresis","Ydieresis","fraction","currency","guilsinglleft","guilsinglright","fi","fl","daggerdbl","periodcentered","quotesinglbase","quotedblbase","perthousand","Acircumflex","Ecircumflex","Aacute","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Oacute","Ocircumflex","apple","Ograve","Uacute","Ucircumflex","Ugrave","dotlessi","circumflex","tilde","macron","breve","dotaccent","ring","cedilla","hungarumlaut","ogonek","caron","Lslash","lslash","Scaron","scaron","Zcaron","zcaron","brokenbar","Eth","eth","Yacute","yacute","Thorn","thorn","minus","multiply","onesuperior","twosuperior","threesuperior","onehalf","onequarter","threequarters","franc","Gbreve","gbreve","Idotaccent","Scedilla","scedilla","Cacute","cacute","Ccaron","ccaron","dcroat"],Tt=(C((kt=function(){function t(t,e,n){this.id=t,this.codePoints=e,this._font=n,this.isMark=this.codePoints.length>0&&this.codePoints.every(d.isMark),this.isLigature=this.codePoints.length>1}var e=t.prototype;return e._getPath=function(){return new xt},e._getCBox=function(){return this.path.cbox},e._getBBox=function(){return this.path.bbox},e._getTableMetrics=function(t){if(this.id<t.metrics.length)return t.metrics.get(this.id);var e=t.metrics.get(t.metrics.length-1);return{advance:e?e.advance:0,bearing:t.bearings.get(this.id-t.metrics.length)||0}},e._getMetrics=function(t){if(this._metrics)return this._metrics;var e,n=this._getTableMetrics(this._font.hmtx),r=n.advance,i=n.bearing;if(this._font.vmtx)var o=this._getTableMetrics(this._font.vmtx),a=o.advance,s=o.bearing;else if(void 0!==t&&null!==t||(t=this.cbox),(e=this._font["OS/2"])&&e.version>0)a=Math.abs(e.typoAscender-e.typoDescender),s=e.typoAscender-t.maxY;else{var u=this._font.hhea;a=Math.abs(u.ascent-u.descent),s=u.ascent-t.maxY}return this._font._variationProcessor&&this._font.HVAR&&(r+=this._font._variationProcessor.getAdvanceAdjustment(this.id,this._font.HVAR)),this._metrics={advanceWidth:r,advanceHeight:a,leftBearing:i,topBearing:s}},e.getScaledPath=function(t){var e=1/this._font.unitsPerEm*t;return this.path.scale(e)},e._getName=function(){var t=this._font.post;if(!t)return null;switch(t.version){case 1:return At[this.id];case 2:var e=t.glyphNameIndex[this.id];return e<At.length?At[e]:t.names[e-At.length];case 2.5:return At[this.id+t.offsets[this.id]];case 4:return String.fromCharCode(t.map[this.id])}},e.render=function(t,e){t.save();var n=1/this._font.head.unitsPerEm*e;t.scale(n,n),this.path.toFunction()(t),t.fill(),t.restore()},y(t,[{key:"cbox",get:function(){return this._getCBox()}},{key:"bbox",get:function(){return this._getBBox()}},{key:"path",get:function(){return this._getPath()}},{key:"advanceWidth",get:function(){return this._getMetrics().advanceWidth}},{key:"advanceHeight",get:function(){return this._getMetrics().advanceHeight}},{key:"ligatureCaretPositions",get:function(){}},{key:"name",get:function(){return this._getName()}}]),t}()).prototype,"cbox",[P],s(kt.prototype,"cbox"),kt.prototype),C(kt.prototype,"bbox",[P],s(kt.prototype,"bbox"),kt.prototype),C(kt.prototype,"path",[P],s(kt.prototype,"path"),kt.prototype),C(kt.prototype,"advanceWidth",[P],s(kt.prototype,"advanceWidth"),kt.prototype),C(kt.prototype,"advanceHeight",[P],s(kt.prototype,"advanceHeight"),kt.prototype),C(kt.prototype,"name",[P],s(kt.prototype,"name"),kt.prototype),kt),jt=new r.Struct({numberOfContours:r.int16,xMin:r.int16,yMin:r.int16,xMax:r.int16,yMax:r.int16}),Ot=function(){function t(t,e,n,r){void 0===n&&(n=0),void 0===r&&(r=0),this.onCurve=t,this.endContour=e,this.x=n,this.y=r}return t.prototype.copy=function(){return new t(this.onCurve,this.endContour,this.x,this.y)},t}(),Lt=function(t,e,n){this.glyphID=t,this.dx=e,this.dy=n,this.pos=0,this.scaleX=this.scaleY=1,this.scale01=this.scale10=0},It=function(t){function e(e,n,r){return t.apply(this,arguments)||this}b(e,t);var n=e.prototype;return n._getCBox=function(t){if(this._font._variationProcessor&&!t)return this.path.cbox;var e=this._font._getTableStream("glyf");e.pos+=this._font.loca.offsets[this.id];var n=jt.decode(e),r=new ft(n.xMin,n.yMin,n.xMax,n.yMax);return a(r)},n._parseGlyphCoord=function(t,e,n,r){if(n){var i=t.readUInt8();r||(i=-i),i+=e}else i=r?e:e+t.readInt16BE();return i},n._decode=function(){var t=this._font.loca.offsets[this.id];if(t===this._font.loca.offsets[this.id+1])return null;var e=this._font._getTableStream("glyf");e.pos+=t;var n=e.pos,r=jt.decode(e);return r.numberOfContours>0?this._decodeSimple(r,e):r.numberOfContours<0&&this._decodeComposite(r,e,n),r},n._decodeSimple=function(t,e){t.points=[];var n=new r.Array(r.uint16,t.numberOfContours).decode(e);t.instructions=new r.Array(r.uint8,r.uint16).decode(e);for(var i=[],o=n[n.length-1]+1;i.length<o;){var a=e.readUInt8();if(i.push(a),8&a)for(var s=e.readUInt8(),u=0;u<s;u++)i.push(a)}for(var c=0;c<i.length;c++){a=i[c];var l=new Ot(!!(1&a),n.indexOf(c)>=0,0,0);t.points.push(l)}var h=0;for(c=0;c<i.length;c++)a=i[c],t.points[c].x=h=this._parseGlyphCoord(e,h,2&a,16&a);var f=0;for(c=0;c<i.length;c++)a=i[c],t.points[c].y=f=this._parseGlyphCoord(e,f,4&a,32&a);if(this._font._variationProcessor){var d=t.points.slice();d.push.apply(d,this._getPhantomPoints(t)),this._font._variationProcessor.transformPoints(this.id,d),t.phantomPoints=d.slice(-4)}},n._decodeComposite=function(t,e,n){void 0===n&&(n=0),t.components=[];for(var r=!1,i=32;32&i;){i=e.readUInt16BE();var o=e.pos-n,a=e.readUInt16BE();if(r||(r=0!=(256&i)),1&i)var s=e.readInt16BE(),u=e.readInt16BE();else s=e.readInt8(),u=e.readInt8();(h=new Lt(a,s,u)).pos=o,8&i?h.scaleX=h.scaleY=(e.readUInt8()<<24|e.readUInt8()<<16)/1073741824:64&i?(h.scaleX=(e.readUInt8()<<24|e.readUInt8()<<16)/1073741824,h.scaleY=(e.readUInt8()<<24|e.readUInt8()<<16)/1073741824):128&i&&(h.scaleX=(e.readUInt8()<<24|e.readUInt8()<<16)/1073741824,h.scale01=(e.readUInt8()<<24|e.readUInt8()<<16)/1073741824,h.scale10=(e.readUInt8()<<24|e.readUInt8()<<16)/1073741824,h.scaleY=(e.readUInt8()<<24|e.readUInt8()<<16)/1073741824),t.components.push(h)}if(this._font._variationProcessor){for(var c=[],l=0;l<t.components.length;l++){var h=t.components[l];c.push(new Ot(!0,!0,h.dx,h.dy))}c.push.apply(c,this._getPhantomPoints(t)),this._font._variationProcessor.transformPoints(this.id,c),t.phantomPoints=c.splice(-4,4);for(var f=0;f<c.length;f++){var d=c[f];t.components[f].dx=d.x,t.components[f].dy=d.y}}return r},n._getPhantomPoints=function(t){var e=this._getCBox(!0);null==this._metrics&&(this._metrics=Tt.prototype._getMetrics.call(this,e));var n=this._metrics,r=n.advanceWidth,i=n.advanceHeight,o=n.leftBearing,a=n.topBearing;return[new Ot(!1,!0,t.xMin-o,0),new Ot(!1,!0,t.xMin-o+r,0),new Ot(!1,!0,0,t.yMax+a),new Ot(!1,!0,0,t.yMax+a+i)]},n._getContours=function(){var t=this._decode();if(!t)return[];var e=[];if(t.numberOfContours<0)for(var n,r=S(t.components);!(n=r()).done;)for(var i=n.value,o=this._font.getGlyph(i.glyphID)._getContours(),a=0;a<o.length;a++)for(var s=o[a],u=0;u<s.length;u++){var c=s[u],l=c.x*i.scaleX+c.y*i.scale01+i.dx,h=c.y*i.scaleY+c.x*i.scale10+i.dy;e.push(new Ot(c.onCurve,c.endContour,l,h))}else e=t.points||[];t.phantomPoints&&!this._font.directory.tables.HVAR&&(this._metrics.advanceWidth=t.phantomPoints[1].x-t.phantomPoints[0].x,this._metrics.advanceHeight=t.phantomPoints[3].y-t.phantomPoints[2].y,this._metrics.leftBearing=t.xMin-t.phantomPoints[0].x,this._metrics.topBearing=t.phantomPoints[2].y-t.yMax);for(var f=[],d=[],p=0;p<e.length;p++){var g=e[p];d.push(g),g.endContour&&(f.push(d),d=[])}return f},n._getMetrics=function(){if(this._metrics)return this._metrics;var e=this._getCBox(!0);return t.prototype._getMetrics.call(this,e),this._font._variationProcessor&&!this._font.HVAR&&this.path,this._metrics},n._getPath=function(){for(var t=this._getContours(),e=new xt,n=0;n<t.length;n++){var r=t[n],i=r[0],o=r[r.length-1],a=0;if(i.onCurve){var s=null;a=1}else s=i=o.onCurve?o:new Ot(!1,!1,(i.x+o.x)/2,(i.y+o.y)/2);e.moveTo(i.x,i.y);for(var u=a;u<r.length;u++){var c=r[u],l=0===u?i:r[u-1];if(l.onCurve&&c.onCurve)e.lineTo(c.x,c.y);else if(l.onCurve&&!c.onCurve)s=c;else if(l.onCurve||c.onCurve){if(l.onCurve||!c.onCurve)throw new Error("Unknown TTF path state");e.quadraticCurveTo(s.x,s.y,c.x,c.y),s=null}else{var h=(l.x+c.x)/2,f=(l.y+c.y)/2;e.quadraticCurveTo(l.x,l.y,h,f);var s=c}}s&&e.quadraticCurveTo(s.x,s.y,i.x,i.y),e.closePath()}return e},e}(Tt),Bt=g.resolve(),Nt=function(){function t(t){this.font=t,this.glyphs=[],this.mapping={},this.includeGlyph(0)}var e=t.prototype;return e.includeGlyph=function(t){return"object"==typeof t&&(t=t.id),null==this.mapping[t]&&(this.glyphs.push(t),this.mapping[t]=this.glyphs.length-1),this.mapping[t]},e.encodeStream=function(){var t=this,e=new r.EncodeStream;return Bt.then(function(){return t.encode(e),e.end()}),e},t}(),Rt=function(){function t(){}return t.size=function(t){return t>=0&&t<=255?1:2},t.encode=function(t,e){e>=0&&e<=255?t.writeUInt8(e):t.writeInt16BE(e)},t}(),Dt=new r.Struct({numberOfContours:r.int16,xMin:r.int16,yMin:r.int16,xMax:r.int16,yMax:r.int16,endPtsOfContours:new r.Array(r.uint16,"numberOfContours"),instructions:new r.Array(r.uint8,r.uint16),flags:new r.Array(r.uint8,0),xPoints:new r.Array(Rt,0),yPoints:new r.Array(Rt,0)}),Mt=function(){function t(){}var e=t.prototype;return e.encodeSimple=function(t,e){void 0===e&&(e=[]);for(var n=[],i=[],o=[],a=[],s=0,u=0,c=0,l=0,h=0,f=0;f<t.commands.length;f++){for(var d=t.commands[f],p=0;p<d.args.length;p+=2){var g=d.args[p],_=d.args[p+1],m=0;if("quadraticCurveTo"===d.command&&2===p){var v=t.commands[f+1];if(v&&"quadraticCurveTo"===v.command){var y=(u+v.args[0])/2,b=(c+v.args[1])/2;if(g===y&&_===b)continue}}"quadraticCurveTo"===d.command&&0===p||(m|=1),m=this._encodePoint(g,u,i,m,2,16),(m=this._encodePoint(_,c,o,m,4,32))===l&&s<255?(a[a.length-1]|=8,s++):(s>0&&(a.push(s),s=0),a.push(m),l=m),u=g,c=_,h++}"closePath"===d.command&&n.push(h-1)}t.commands.length>1&&"closePath"!==t.commands[t.commands.length-1].command&&n.push(h-1);var w=t.bbox,x={numberOfContours:n.length,xMin:w.minX,yMin:w.minY,xMax:w.maxX,yMax:w.maxY,endPtsOfContours:n,instructions:e,flags:a,xPoints:i,yPoints:o},S=Dt.size(x),C=4-S%4,P=new r.EncodeStream(S+C);return Dt.encode(P,x),0!==C&&P.fill(0,C),P.buffer},e._encodePoint=function(t,e,n,r,i,o){var a=t-e;return t===e?r|=o:(-255<=a&&a<=255&&(r|=i,a<0?a=-a:r|=o),n.push(a)),r},t}(),zt=function(t){function e(e){var n;return(n=t.call(this,e)||this).glyphEncoder=new Mt,n}b(e,t);var r=e.prototype;return r._addGlyph=function(t){var e=this.font.getGlyph(t),r=e._decode(),i=this.font.loca.offsets[t],o=this.font.loca.offsets[t+1],a=this.font._getTableStream("glyf");a.pos+=i;var s=a.readBuffer(o-i);if(r&&r.numberOfContours<0){s=new n(s);for(var u,c=S(r.components);!(u=c()).done;){var l=u.value;t=this.includeGlyph(l.glyphID),s.writeUInt16BE(t,l.pos)}}else r&&this.font._variationProcessor&&(s=this.glyphEncoder.encodeSimple(e.path,r.instructions));return this.glyf.push(s),this.loca.offsets.push(this.offset),this.hmtx.metrics.push({advance:e.advanceWidth,bearing:e._getMetrics().leftBearing}),this.offset+=s.length,this.glyf.length-1},r.encode=function(t){this.glyf=[],this.offset=0,this.loca={offsets:[],version:this.font.loca.version},this.hmtx={metrics:[],bearings:[]};for(var e=0;e<this.glyphs.length;)this._addGlyph(this.glyphs[e++]);var n=p(this.font.maxp);n.numGlyphs=this.glyf.length,this.loca.offsets.push(this.offset);var r=p(this.font.head);r.indexToLocFormat=this.loca.version;var i=p(this.font.hhea);i.numberOfMetrics=this.hmtx.metrics.length,at.encode(t,{tables:{head:r,hhea:i,loca:this.loca,maxp:n,"cvt ":this.font["cvt "],prep:this.font.prep,glyf:this.glyf,hmtx:this.hmtx,fpgm:this.font.fpgm}})},e}(Nt),Ft=(C((Et=function(){function t(t,e){for(var n in void 0===e&&(e=null),this.defaultLanguage=null,this.stream=t,this.variationCoords=e,this._directoryPos=this.stream.pos,this._tables={},this._glyphs={},this._decodeDirectory(),this.directory.tables){var r=this.directory.tables[n];rt[n]&&r.length>0&&i(this,n,{get:this._getTable.bind(this,r)})}}t.probe=function(t){var e=t.toString("ascii",0,4);return"true"===e||"OTTO"===e||e===String.fromCharCode(0,1,0,0)};var e=t.prototype;return e.setDefaultLanguage=function(t){void 0===t&&(t=null),this.defaultLanguage=t},e._getTable=function(t){if(!(t.tag in this._tables))try{this._tables[t.tag]=this._decodeTable(t)}catch(e){_.logErrors&&(console.error("Error decoding table "+t.tag),console.error(e.stack))}return this._tables[t.tag]},e._getTableStream=function(t){var e=this.directory.tables[t];return e?(this.stream.pos=e.offset,this.stream):null},e._decodeDirectory=function(){return this.directory=at.decode(this.stream,{_startOffset:0})},e._decodeTable=function(t){var e=this.stream.pos,n=this._getTableStream(t.tag),r=rt[t.tag].decode(n,this,t.length);return this.stream.pos=e,r},e.getName=function(t,e){void 0===e&&(e=this.defaultLanguage||_.defaultLanguage);var n=this.name&&this.name.records[t];return n&&(n[e]||n[this.defaultLanguage]||n[_.defaultLanguage]||n.en||n[o(n)[0]])||null},e.hasGlyphForCodePoint=function(t){return!!this._cmapProcessor.lookup(t)},e.glyphForCodePoint=function(t){return this.getGlyph(this._cmapProcessor.lookup(t),[t])},e.glyphsForString=function(t){for(var e=[],n=t.length,r=0,i=-1,o=-1;r<=n;){var a=0,s=0;if(r<n){if(55296<=(a=t.charCodeAt(r++))&&a<=56319&&r<n){var u=t.charCodeAt(r);56320<=u&&u<=57343&&(r++,a=((1023&a)<<10)+(1023&u)+65536)}s=65024<=a&&a<=65039||917760<=a&&a<=917999?1:0}else r++;0===o&&1===s?e.push(this.getGlyph(this._cmapProcessor.lookup(i,a),[i,a])):0===o&&0===s&&e.push(this.glyphForCodePoint(i)),i=a,o=s}return e},e.layout=function(t,e,n,r,i){return this._layoutEngine.layout(t,e,n,r,i)},e.stringsForGlyph=function(t){return this._layoutEngine.stringsForGlyph(t)},e.getAvailableFeatures=function(t,e){return this._layoutEngine.getAvailableFeatures(t,e)},e._getBaseGlyph=function(t,e){return void 0===e&&(e=[]),this._glyphs[t]||this.directory.tables.glyf&&(this._glyphs[t]=new It(t,e,this)),this._glyphs[t]||null},e.getGlyph=function(t,e){return void 0===e&&(e=[]),this._glyphs[t]||this._getBaseGlyph(t,e),this._glyphs[t]||null},e.createSubset=function(){return new zt(this)},e.getVariation=function(e){if(!this.directory.tables.fvar||!(this.directory.tables.gvar&&this.directory.tables.glyf||this.directory.tables.CFF2))throw new Error("Variations require a font with the fvar, gvar and glyf, or CFF2 tables.");if("string"==typeof e&&(e=this.namedVariations[e]),"object"!=typeof e)throw new Error("Variation settings must be either a variation name or settings object.");var n=this.fvar.axis.map(function(t,n){var r=t.axisTag.trim();return r in e?Math.max(t.minValue,Math.min(t.maxValue,e[r])):t.defaultValue}),i=new r.DecodeStream(this.stream.buffer);i.pos=this._directoryPos;var o=new t(i,n);return o._tables=this._tables,o},e.getFont=function(t){return this.getVariation(t)},y(t,[{key:"postscriptName",get:function(){return this.getName("postscriptName")}},{key:"fullName",get:function(){return this.getName("fullName")}},{key:"familyName",get:function(){return this.getName("fontFamily")}},{key:"subfamilyName",get:function(){return this.getName("fontSubfamily")}},{key:"copyright",get:function(){return this.getName("copyright")}},{key:"version",get:function(){return this.getName("version")}},{key:"ascent",get:function(){return this.hhea.ascent}},{key:"descent",get:function(){return this.hhea.descent}},{key:"lineGap",get:function(){return this.hhea.lineGap}},{key:"underlinePosition",get:function(){return this.post.underlinePosition}},{key:"underlineThickness",get:function(){return this.post.underlineThickness}},{key:"italicAngle",get:function(){return this.post.italicAngle}},{key:"capHeight",get:function(){var t=this["OS/2"];return t?t.capHeight:this.ascent}},{key:"xHeight",get:function(){var t=this["OS/2"];return t?t.xHeight:0}},{key:"numGlyphs",get:function(){return this.maxp.numGlyphs}},{key:"unitsPerEm",get:function(){return this.head.unitsPerEm}},{key:"bbox",get:function(){return a(new ft(this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax))}},{key:"_cmapProcessor",get:function(){return new lt(this.cmap)}},{key:"characterSet",get:function(){return this._cmapProcessor.getCharacterSet()}},{key:"_layoutEngine",get:function(){return new bt(this)}},{key:"availableFeatures",get:function(){return this._layoutEngine.getAvailableFeatures()}},{key:"variationAxes",get:function(){var t={};if(!this.fvar)return t;for(var e,n=S(this.fvar.axis);!(e=n()).done;){var r=e.value;t[r.axisTag.trim()]={name:r.name.en,min:r.minValue,default:r.defaultValue,max:r.maxValue}}return t}},{key:"namedVariations",get:function(){var t={};if(!this.fvar)return t;for(var e,n=S(this.fvar.instance);!(e=n()).done;){for(var r=e.value,i={},o=0;o<this.fvar.axis.length;o++)i[this.fvar.axis[o].axisTag.trim()]=r.coord[o];t[r.name.en]=i}return t}},{key:"_variationProcessor",get:function(){return null}}]),t}()).prototype,"bbox",[P],s(Et.prototype,"bbox"),Et.prototype),C(Et.prototype,"_cmapProcessor",[P],s(Et.prototype,"_cmapProcessor"),Et.prototype),C(Et.prototype,"characterSet",[P],s(Et.prototype,"characterSet"),Et.prototype),C(Et.prototype,"_layoutEngine",[P],s(Et.prototype,"_layoutEngine"),Et.prototype),C(Et.prototype,"variationAxes",[P],s(Et.prototype,"variationAxes"),Et.prototype),C(Et.prototype,"namedVariations",[P],s(Et.prototype,"namedVariations"),Et.prototype),C(Et.prototype,"_variationProcessor",[P],s(Et.prototype,"_variationProcessor"),Et.prototype),Et),Ut=new r.VersionedStruct(r.uint32,{65536:{numFonts:r.uint32,offsets:new r.Array(r.uint32,"numFonts")},131072:{numFonts:r.uint32,offsets:new r.Array(r.uint32,"numFonts"),dsigTag:r.uint32,dsigLength:r.uint32,dsigOffset:r.uint32}}),qt=function(){function t(t){if(this.stream=t,"ttcf"!==t.readString(4))throw new Error("Not a TrueType collection");this.header=Ut.decode(t)}return t.probe=function(t){return"ttcf"===t.toString("ascii",0,4)},t.prototype.getFont=function(t){for(var e,n=S(this.header.offsets);!(e=n()).done;){var i=e.value,o=new r.DecodeStream(this.stream.buffer);o.pos=i;var a=new Ft(o);if(a.postscriptName===t)return a}return null},y(t,[{key:"fonts",get:function(){for(var t,e=[],n=S(this.header.offsets);!(t=n()).done;){var i=t.value,o=new r.DecodeStream(this.stream.buffer);o.pos=i,e.push(new Ft(o))}return e}}]),t}(),Ht=new r.String(r.uint8),Gt=(new r.Struct({len:r.uint32,buf:new r.Buffer("len")}),new r.Struct({id:r.uint16,nameOffset:r.int16,attr:r.uint8,dataOffset:r.uint24,handle:r.uint32})),Wt=new r.Struct({name:new r.String(4),maxTypeIndex:r.uint16,refList:new r.Pointer(r.uint16,new r.Array(Gt,function(t){return t.maxTypeIndex+1}),{type:"parent"})}),Zt=new r.Struct({length:r.uint16,types:new r.Array(Wt,function(t){return t.length+1})}),Vt=new r.Struct({reserved:new r.Reserved(r.uint8,24),typeList:new r.Pointer(r.uint16,Zt),nameListOffset:new r.Pointer(r.uint16,"void")}),Xt=new r.Struct({dataOffset:r.uint32,map:new r.Pointer(r.uint32,Vt),dataLength:r.uint32,mapLength:r.uint32}),Yt=function(){function t(t){this.stream=t,this.header=Xt.decode(this.stream);for(var e,n=S(this.header.map.typeList.types);!(e=n()).done;){for(var r,i=e.value,o=S(i.refList);!(r=o()).done;){var a=r.value;a.nameOffset>=0?(this.stream.pos=a.nameOffset+this.header.map.nameListOffset,a.name=Ht.decode(this.stream)):a.name=null}"sfnt"===i.name&&(this.sfnt=i)}}return t.probe=function(t){var e=new r.DecodeStream(t);try{var n=Xt.decode(e)}catch(t){return!1}for(var i,o=S(n.map.typeList.types);!(i=o()).done;)if("sfnt"===i.value.name)return!0;return!1},t.prototype.getFont=function(t){if(!this.sfnt)return null;for(var e,n=S(this.sfnt.refList);!(e=n()).done;){var i=e.value,o=this.header.dataOffset+i.dataOffset+4,a=new r.DecodeStream(this.stream.buffer.slice(o)),s=new Ft(a);if(s.postscriptName===t)return s}return null},y(t,[{key:"fonts",get:function(){for(var t,e=[],n=S(this.sfnt.refList);!(t=n()).done;){var i=t.value,o=this.header.dataOffset+i.dataOffset+4,a=new r.DecodeStream(this.stream.buffer.slice(o));e.push(new Ft(a))}return e}}]),t}();_.registerFormat(Ft),_.registerFormat(qt),_.registerFormat(Yt),e.localExports=_}).call(this)}).call(this,t("buffer").Buffer)},{"@babel/runtime-corejs2/core-js/array/from":2,"@babel/runtime-corejs2/core-js/array/is-array":3,"@babel/runtime-corejs2/core-js/map":4,"@babel/runtime-corejs2/core-js/object/define-property":5,"@babel/runtime-corejs2/core-js/object/freeze":6,"@babel/runtime-corejs2/core-js/object/get-own-property-descriptor":7,"@babel/runtime-corejs2/core-js/object/keys":8,"@babel/runtime-corejs2/core-js/promise":9,"@babel/runtime-corejs2/core-js/set":10,"@babel/runtime-corejs2/core-js/string/from-code-point":11,buffer:152,clone:123,"iconv-lite":151,restructure:250,"unicode-properties":125}],2:[function(t,e,n){e.localExports=t("core-js/library/fn/array/from")},{"core-js/library/fn/array/from":12}],3:[function(t,e,n){e.localExports=t("core-js/library/fn/array/is-array")},{"core-js/library/fn/array/is-array":13}],4:[function(t,e,n){e.localExports=t("core-js/library/fn/map")},{"core-js/library/fn/map":14}],5:[function(t,e,n){e.localExports=t("core-js/library/fn/object/define-property")},{"core-js/library/fn/object/define-property":15}],6:[function(t,e,n){e.localExports=t("core-js/library/fn/object/freeze")},{"core-js/library/fn/object/freeze":16}],7:[function(t,e,n){e.localExports=t("core-js/library/fn/object/get-own-property-descriptor")},{"core-js/library/fn/object/get-own-property-descriptor":17}],8:[function(t,e,n){e.localExports=t("core-js/library/fn/object/keys")},{"core-js/library/fn/object/keys":18}],9:[function(t,e,n){e.localExports=t("core-js/library/fn/promise")},{"core-js/library/fn/promise":19}],10:[function(t,e,n){e.localExports=t("core-js/library/fn/set")},{"core-js/library/fn/set":20}],11:[function(t,e,n){e.localExports=t("core-js/library/fn/string/from-code-point")},{"core-js/library/fn/string/from-code-point":21}],12:[function(t,e,n){t("../../modules/es6.string.iterator"),t("../../modules/es6.array.from"),e.localExports=t("../../modules/_core").Array.from},{"../../modules/_core":36,"../../modules/es6.array.from":100,"../../modules/es6.string.iterator":112}],13:[function(t,e,n){t("../../modules/es6.array.is-array"),e.localExports=t("../../modules/_core").Array.isArray},{"../../modules/_core":36,"../../modules/es6.array.is-array":101}],14:[function(t,e,n){t("../modules/es6.object.to-string"),t("../modules/es6.string.iterator"),t("../modules/web.dom.iterable"),t("../modules/es6.map"),t("../modules/es7.map.to-json"),t("../modules/es7.map.of"),t("../modules/es7.map.from"),e.localExports=t("../modules/_core").Map},{"../modules/_core":36,"../modules/es6.map":103,"../modules/es6.object.to-string":108,"../modules/es6.string.iterator":112,"../modules/es7.map.from":113,"../modules/es7.map.of":114,"../modules/es7.map.to-json":115,"../modules/web.dom.iterable":121}],15:[function(t,e,n){t("../../modules/es6.object.define-property");var r=t("../../modules/_core").Object;e.localExports=function(t,e,n){return r.defineProperty(t,e,n)}},{"../../modules/_core":36,"../../modules/es6.object.define-property":104}],16:[function(t,e,n){t("../../modules/es6.object.freeze"),e.localExports=t("../../modules/_core").Object.freeze},{"../../modules/_core":36,"../../modules/es6.object.freeze":105}],17:[function(t,e,n){t("../../modules/es6.object.get-own-property-descriptor");var r=t("../../modules/_core").Object;e.localExports=function(t,e){return r.getOwnPropertyDescriptor(t,e)}},{"../../modules/_core":36,"../../modules/es6.object.get-own-property-descriptor":106}],18:[function(t,e,n){t("../../modules/es6.object.keys"),e.localExports=t("../../modules/_core").Object.keys},{"../../modules/_core":36,"../../modules/es6.object.keys":107}],19:[function(t,e,n){t("../modules/es6.object.to-string"),t("../modules/es6.string.iterator"),t("../modules/web.dom.iterable"),t("../modules/es6.promise"),t("../modules/es7.promise.finally"),t("../modules/es7.promise.try"),e.localExports=t("../modules/_core").Promise},{"../modules/_core":36,"../modules/es6.object.to-string":108,"../modules/es6.promise":109,"../modules/es6.string.iterator":112,"../modules/es7.promise.finally":116,"../modules/es7.promise.try":117,"../modules/web.dom.iterable":121}],20:[function(t,e,n){t("../modules/es6.object.to-string"),t("../modules/es6.string.iterator"),t("../modules/web.dom.iterable"),t("../modules/es6.set"),t("../modules/es7.set.to-json"),t("../modules/es7.set.of"),t("../modules/es7.set.from"),e.localExports=t("../modules/_core").Set},{"../modules/_core":36,"../modules/es6.object.to-string":108,"../modules/es6.set":110,"../modules/es6.string.iterator":112,"../modules/es7.set.from":118,"../modules/es7.set.of":119,"../modules/es7.set.to-json":120,"../modules/web.dom.iterable":121}],21:[function(t,e,n){t("../../modules/es6.string.from-code-point"),e.localExports=t("../../modules/_core").String.fromCodePoint},{"../../modules/_core":36,"../../modules/es6.string.from-code-point":111}],22:[function(t,e,n){e.localExports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},{}],23:[function(t,e,n){e.localExports=function(){}},{}],24:[function(t,e,n){e.localExports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},{}],25:[function(t,e,n){var r=t("./_is-object");e.localExports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},{"./_is-object":55}],26:[function(t,e,n){var r=t("./_for-of");e.localExports=function(t,e){var n=[];return r(t,!1,n.push,n,e),n}},{"./_for-of":45}],27:[function(t,e,n){var r=t("./_to-iobject"),i=t("./_to-length"),o=t("./_to-absolute-index");e.localExports=function(t){return function(e,n,a){var s,u=r(e),c=i(u.length),l=o(a,c);if(t&&n!=n){for(;c>l;)if((s=u[l++])!=s)return!0}else for(;c>l;l++)if((t||l in u)&&u[l]===n)return t||l||0;return!t&&-1}}},{"./_to-absolute-index":89,"./_to-iobject":91,"./_to-length":92}],28:[function(t,e,n){var r=t("./_ctx"),i=t("./_iobject"),o=t("./_to-object"),a=t("./_to-length"),s=t("./_array-species-create");e.localExports=function(t,e){var n=1==t,u=2==t,c=3==t,l=4==t,h=6==t,f=5==t||h,d=e||s;return function(e,s,p){for(var g,_,m=o(e),v=i(m),y=r(s,p,3),b=a(v.length),w=0,x=n?d(e,b):u?d(e,0):void 0;b>w;w++)if((f||w in v)&&(_=y(g=v[w],w,m),t))if(n)x[w]=_;else if(_)switch(t){case 3:return!0;case 5:return g;case 6:return w;case 2:x.push(g)}else if(l)return!1;return h?-1:c||l?l:x}}},{"./_array-species-create":30,"./_ctx":38,"./_iobject":52,"./_to-length":92,"./_to-object":93}],29:[function(t,e,n){var r=t("./_is-object"),i=t("./_is-array"),o=t("./_wks")("species");e.localExports=function(t){var e;return i(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!i(e.prototype)||(e=void 0),r(e)&&null===(e=e[o])&&(e=void 0)),void 0===e?Array:e}},{"./_is-array":54,"./_is-object":55,"./_wks":98}],30:[function(t,e,n){var r=t("./_array-species-constructor");e.localExports=function(t,e){return new(r(t))(e)}},{"./_array-species-constructor":29}],31:[function(t,e,n){var r=t("./_cof"),i=t("./_wks")("toStringTag"),o="Arguments"==r(function(){return arguments}());e.localExports=function(t){var e,n,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),i))?n:o?r(e):"Object"==(a=r(e))&&"function"==typeof e.callee?"Arguments":a}},{"./_cof":32,"./_wks":98}],32:[function(t,e,n){var r={}.toString;e.localExports=function(t){return r.call(t).slice(8,-1)}},{}],33:[function(t,e,n){var r=t("./_object-dp").f,i=t("./_object-create"),o=t("./_redefine-all"),a=t("./_ctx"),s=t("./_an-instance"),u=t("./_for-of"),c=t("./_iter-define"),l=t("./_iter-step"),h=t("./_set-species"),f=t("./_descriptors"),d=t("./_meta").fastKey,p=t("./_validate-collection"),g=f?"_s":"size",_=function(t,e){var n,r=d(e);if("F"!==r)return t._i[r];for(n=t._f;n;n=n.n)if(n.k==e)return n};e.localExports={getConstructor:function(t,e,n,c){var l=t(function(t,r){s(t,l,e,"_i"),t._t=e,t._i=i(null),t._f=void 0,t._l=void 0,t[g]=0,void 0!=r&&u(r,n,t[c],t)});return o(l.prototype,{clear:function(){for(var t=p(this,e),n=t._i,r=t._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];t._f=t._l=void 0,t[g]=0},delete:function(t){var n=p(this,e),r=_(n,t);if(r){var i=r.n,o=r.p;delete n._i[r.i],r.r=!0,o&&(o.n=i),i&&(i.p=o),n._f==r&&(n._f=i),n._l==r&&(n._l=o),n[g]--}return!!r},forEach:function(t){p(this,e);for(var n,r=a(t,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(t){return!!_(p(this,e),t)}}),f&&r(l.prototype,"size",{get:function(){return p(this,e)[g]}}),l},def:function(t,e,n){var r,i,o=_(t,e);return o?o.v=n:(t._l=o={i:i=d(e,!0),k:e,v:n,p:r=t._l,n:void 0,r:!1},t._f||(t._f=o),r&&(r.n=o),t[g]++,"F"!==i&&(t._i[i]=o)),t},getEntry:_,setStrong:function(t,e,n){c(t,e,function(t,n){this._t=p(t,e),this._k=n,this._l=void 0},function(){for(var t=this._k,e=this._l;e&&e.r;)e=e.p;return this._t&&(this._l=e=e?e.n:this._t._f)?l(0,"keys"==t?e.k:"values"==t?e.v:[e.k,e.v]):(this._t=void 0,l(1))},n?"entries":"values",!n,!0),h(e)}}},{"./_an-instance":24,"./_ctx":38,"./_descriptors":40,"./_for-of":45,"./_iter-define":58,"./_iter-step":60,"./_meta":63,"./_object-create":66,"./_object-dp":67,"./_redefine-all":78,"./_set-species":82,"./_validate-collection":97}],34:[function(t,e,n){var r=t("./_classof"),i=t("./_array-from-iterable");e.localExports=function(t){return function(){if(r(this)!=t)throw TypeError(t+"#toJSON isn't generic");return i(this)}}},{"./_array-from-iterable":26,"./_classof":31}],35:[function(t,e,n){var r=t("./_global"),i=t("./_export"),o=t("./_meta"),a=t("./_fails"),s=t("./_hide"),u=t("./_redefine-all"),c=t("./_for-of"),l=t("./_an-instance"),h=t("./_is-object"),f=t("./_set-to-string-tag"),d=t("./_object-dp").f,p=t("./_array-methods")(0),g=t("./_descriptors");e.localExports=function(t,e,n,_,m,v){var y=r[t],b=y,w=m?"set":"add",x=b&&b.prototype,S={};return g&&"function"==typeof b&&(v||x.forEach&&!a(function(){(new b).entries().next()}))?(b=e(function(e,n){l(e,b,t,"_c"),e._c=new y,void 0!=n&&c(n,m,e[w],e)}),p("add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON".split(","),function(t){var e="add"==t||"set"==t;t in x&&(!v||"clear"!=t)&&s(b.prototype,t,function(n,r){if(l(this,b,t),!e&&v&&!h(n))return"get"==t&&void 0;var i=this._c[t](0===n?0:n,r);return e?this:i})}),v||d(b.prototype,"size",{get:function(){return this._c.size}})):(b=_.getConstructor(e,t,m,w),u(b.prototype,n),o.NEED=!0),f(b,t),S[t]=b,i(i.G+i.W+i.F,S),v||_.setStrong(b,t,m),b}},{"./_an-instance":24,"./_array-methods":28,"./_descriptors":40,"./_export":43,"./_fails":44,"./_for-of":45,"./_global":46,"./_hide":48,"./_is-object":55,"./_meta":63,"./_object-dp":67,"./_redefine-all":78,"./_set-to-string-tag":83}],36:[function(t,e,n){var r=e.localExports={version:"2.6.12"};"number"==typeof __e&&(__e=r)},{}],37:[function(t,e,n){var r=t("./_object-dp"),i=t("./_property-desc");e.localExports=function(t,e,n){e in t?r.f(t,e,i(0,n)):t[e]=n}},{"./_object-dp":67,"./_property-desc":77}],38:[function(t,e,n){var r=t("./_a-function");e.localExports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},{"./_a-function":22}],39:[function(t,e,n){e.localExports=function(t){if(void 0==t)throw TypeError("Can't call method on  "+t);return t}},{}],40:[function(t,e,n){e.localExports=!t("./_fails")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},{"./_fails":44}],41:[function(t,e,n){var r=t("./_is-object"),i=t("./_global").document,o=r(i)&&r(i.createElement);e.localExports=function(t){return o?i.createElement(t):{}}},{"./_global":46,"./_is-object":55}],42:[function(t,e,n){e.localExports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],43:[function(t,e,n){var r=t("./_global"),i=t("./_core"),o=t("./_ctx"),a=t("./_hide"),s=t("./_has"),u=function t(e,n,u){var c,l,h,f=e&t.F,d=e&t.G,p=e&t.S,g=e&t.P,_=e&t.B,m=e&t.W,v=d?i:i[n]||(i[n]={}),y=v.prototype,b=d?r:p?r[n]:(r[n]||{}).prototype;for(c in d&&(u=n),u)(l=!f&&b&&void 0!==b[c])&&s(v,c)||(h=l?b[c]:u[c],v[c]=d&&"function"!=typeof b[c]?u[c]:_&&l?o(h,r):m&&b[c]==h?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(h):g&&"function"==typeof h?o(Function.call,h):h,g&&((v.virtual||(v.virtual={}))[c]=h,e&t.R&&y&&!y[c]&&a(y,c,h)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.localExports=u},{"./_core":36,"./_ctx":38,"./_global":46,"./_has":47,"./_hide":48}],44:[function(t,e,n){e.localExports=function(t){try{return!!t()}catch(t){return!0}}},{}],45:[function(t,e,n){var r=t("./_ctx"),i=t("./_iter-call"),o=t("./_is-array-iter"),a=t("./_an-object"),s=t("./_to-length"),u=t("./core.get-iterator-method"),c={},l={};(n=e.localExports=function(t,e,n,h,f){var d,p,g,_,m=f?function(){return t}:u(t),v=r(n,h,e?2:1),y=0;if("function"!=typeof m)throw TypeError(t+" is not iterable!");if(o(m)){for(d=s(t.length);d>y;y++)if((_=e?v(a(p=t[y])[0],p[1]):v(t[y]))===c||_===l)return _}else for(g=m.call(t);!(p=g.next()).done;)if((_=i(g,v,p.value,e))===c||_===l)return _}).BREAK=c,n.RETURN=l},{"./_an-object":25,"./_ctx":38,"./_is-array-iter":53,"./_iter-call":56,"./_to-length":92,"./core.get-iterator-method":99}],46:[function(t,e,n){var r=e.localExports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},{}],47:[function(t,e,n){var r={}.hasOwnProperty;e.localExports=function(t,e){return r.call(t,e)}},{}],48:[function(t,e,n){var r=t("./_object-dp"),i=t("./_property-desc");e.localExports=t("./_descriptors")?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},{"./_descriptors":40,"./_object-dp":67,"./_property-desc":77}],49:[function(t,e,n){var r=t("./_global").document;e.localExports=r&&r.documentElement},{"./_global":46}],50:[function(t,e,n){e.localExports=!t("./_descriptors")&&!t("./_fails")(function(){return 7!=Object.defineProperty(t("./_dom-create")("div"),"a",{get:function(){return 7}}).a})},{"./_descriptors":40,"./_dom-create":41,"./_fails":44}],51:[function(t,e,n){e.localExports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},{}],52:[function(t,e,n){var r=t("./_cof");e.localExports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},{"./_cof":32}],53:[function(t,e,n){var r=t("./_iterators"),i=t("./_wks")("iterator"),o=Array.prototype;e.localExports=function(t){return void 0!==t&&(r.Array===t||o[i]===t)}},{"./_iterators":61,"./_wks":98}],54:[function(t,e,n){var r=t("./_cof");e.localExports=Array.isArray||function(t){return"Array"==r(t)}},{"./_cof":32}],55:[function(t,e,n){e.localExports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},{}],56:[function(t,e,n){var r=t("./_an-object");e.localExports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(e){var o=t.return;throw void 0!==o&&r(o.call(t)),e}}},{"./_an-object":25}],57:[function(t,e,n){var r=t("./_object-create"),i=t("./_property-desc"),o=t("./_set-to-string-tag"),a={};t("./_hide")(a,t("./_wks")("iterator"),function(){return this}),e.localExports=function(t,e,n){t.prototype=r(a,{next:i(1,n)}),o(t,e+" Iterator")}},{"./_hide":48,"./_object-create":66,"./_property-desc":77,"./_set-to-string-tag":83,"./_wks":98}],58:[function(t,e,n){var r=t("./_library"),i=t("./_export"),o=t("./_redefine"),a=t("./_hide"),s=t("./_iterators"),u=t("./_iter-create"),c=t("./_set-to-string-tag"),l=t("./_object-gpo"),h=t("./_wks")("iterator"),f=!([].keys&&"next"in[].keys()),d=function(){return this};e.localExports=function(t,e,n,p,g,_,m){u(n,e,p);var v,y,b,w=function(t){if(!f&&t in P)return P[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},x=e+" Iterator",S="values"==g,C=!1,P=t.prototype,k=P[h]||P["@@iterator"]||g&&P[g],E=k||w(g),A=g?S?w("entries"):E:void 0,T="Array"==e&&P.entries||k;if(T&&(b=l(T.call(new t)))!==Object.prototype&&b.next&&(c(b,x,!0),r||"function"==typeof b[h]||a(b,h,d)),S&&k&&"values"!==k.name&&(C=!0,E=function(){return k.call(this)}),r&&!m||!f&&!C&&P[h]||a(P,h,E),s[e]=E,s[x]=d,g)if(v={values:S?E:w("values"),keys:_?E:w("keys"),entries:A},m)for(y in v)y in P||o(P,y,v[y]);else i(i.P+i.F*(f||C),e,v);return v}},{"./_export":43,"./_hide":48,"./_iter-create":57,"./_iterators":61,"./_library":62,"./_object-gpo":70,"./_redefine":79,"./_set-to-string-tag":83,"./_wks":98}],59:[function(t,e,n){var r=t("./_wks")("iterator"),i=!1;try{var o=[7][r]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(t){}e.localExports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var o=[7],a=o[r]();a.next=function(){return{done:n=!0}},o[r]=function(){return a},t(o)}catch(t){}return n}},{"./_wks":98}],60:[function(t,e,n){e.localExports=function(t,e){return{value:e,done:!!t}}},{}],61:[function(t,e,n){e.localExports={}},{}],62:[function(t,e,n){e.localExports=!0},{}],63:[function(t,e,n){var r=t("./_uid")("meta"),i=t("./_is-object"),o=t("./_has"),a=t("./_object-dp").f,s=0,u=Object.isExtensible||function(){return!0},c=!t("./_fails")(function(){return u(Object.preventExtensions({}))}),l=function(t){a(t,r,{value:{i:"O"+ ++s,w:{}}})},h=e.localExports={KEY:r,NEED:!1,fastKey:function(t,e){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,r)){if(!u(t))return"F";if(!e)return"E";l(t)}return t[r].i},getWeak:function(t,e){if(!o(t,r)){if(!u(t))return!0;if(!e)return!1;l(t)}return t[r].w},onFreeze:function(t){return c&&h.NEED&&u(t)&&!o(t,r)&&l(t),t}}},{"./_fails":44,"./_has":47,"./_is-object":55,"./_object-dp":67,"./_uid":95}],64:[function(t,e,n){var r=t("./_global"),i=t("./_task").set,o=r.MutationObserver||r.WebKitMutationObserver,a=r.process,s=r.Promise,u="process"==t("./_cof")(a);e.localExports=function(){var t,e,n,c=function(){var r,i;for(u&&(r=a.domain)&&r.exit();t;){i=t.fn,t=t.next;try{i()}catch(r){throw t?n():e=void 0,r}}e=void 0,r&&r.enter()};if(u)n=function(){a.nextTick(c)};else if(!o||r.navigator&&r.navigator.standalone)if(s&&s.resolve){var l=s.resolve(void 0);n=function(){l.then(c)}}else n=function(){i.call(r,c)};else{var h=!0,f=document.createTextNode("");new o(c).observe(f,{characterData:!0}),n=function(){f.data=h=!h}}return function(r){var i={fn:r,next:void 0};e&&(e.next=i),t||(t=i,n()),e=i}}},{"./_cof":32,"./_global":46,"./_task":88}],65:[function(t,e,n){var r=t("./_a-function");e.localExports.f=function(t){return new function(t){var e,n;this.promise=new t(function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r}),this.resolve=r(e),this.reject=r(n)}(t)}},{"./_a-function":22}],66:[function(t,e,n){var r=t("./_an-object"),i=t("./_object-dps"),o=t("./_enum-bug-keys"),a=t("./_shared-key")("IE_PROTO"),s=function(){},u=function(){var e,n=t("./_dom-create")("iframe"),r=o.length;for(n.style.display="none",t("./_html").appendChild(n),n.src="javascript:",(e=n.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),u=e.F;r--;)delete u.prototype[o[r]];return u()};e.localExports=Object.create||function(t,e){var n;return null!==t?(s.prototype=r(t),n=new s,s.prototype=null,n[a]=t):n=u(),void 0===e?n:i(n,e)}},{"./_an-object":25,"./_dom-create":41,"./_enum-bug-keys":42,"./_html":49,"./_object-dps":68,"./_shared-key":84}],67:[function(t,e,n){var r=t("./_an-object"),i=t("./_ie8-dom-define"),o=t("./_to-primitive"),a=Object.defineProperty;n.f=t("./_descriptors")?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),i)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},{"./_an-object":25,"./_descriptors":40,"./_ie8-dom-define":50,"./_to-primitive":94}],68:[function(t,e,n){var r=t("./_object-dp"),i=t("./_an-object"),o=t("./_object-keys");e.localExports=t("./_descriptors")?Object.defineProperties:function(t,e){i(t);for(var n,a=o(e),s=a.length,u=0;s>u;)r.f(t,n=a[u++],e[n]);return t}},{"./_an-object":25,"./_descriptors":40,"./_object-dp":67,"./_object-keys":72}],69:[function(t,e,n){var r=t("./_object-pie"),i=t("./_property-desc"),o=t("./_to-iobject"),a=t("./_to-primitive"),s=t("./_has"),u=t("./_ie8-dom-define"),c=Object.getOwnPropertyDescriptor;n.f=t("./_descriptors")?c:function(t,e){if(t=o(t),e=a(e,!0),u)try{return c(t,e)}catch(t){}if(s(t,e))return i(!r.f.call(t,e),t[e])}},{"./_descriptors":40,"./_has":47,"./_ie8-dom-define":50,"./_object-pie":73,"./_property-desc":77,"./_to-iobject":91,"./_to-primitive":94}],70:[function(t,e,n){var r=t("./_has"),i=t("./_to-object"),o=t("./_shared-key")("IE_PROTO"),a=Object.prototype;e.localExports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},{"./_has":47,"./_shared-key":84,"./_to-object":93}],71:[function(t,e,n){var r=t("./_has"),i=t("./_to-iobject"),o=t("./_array-includes")(!1),a=t("./_shared-key")("IE_PROTO");e.localExports=function(t,e){var n,s=i(t),u=0,c=[];for(n in s)n!=a&&r(s,n)&&c.push(n);for(;e.length>u;)r(s,n=e[u++])&&(~o(c,n)||c.push(n));return c}},{"./_array-includes":27,"./_has":47,"./_shared-key":84,"./_to-iobject":91}],72:[function(t,e,n){var r=t("./_object-keys-internal"),i=t("./_enum-bug-keys");e.localExports=Object.keys||function(t){return r(t,i)}},{"./_enum-bug-keys":42,"./_object-keys-internal":71}],73:[function(t,e,n){n.f={}.propertyIsEnumerable},{}],74:[function(t,e,n){var r=t("./_export"),i=t("./_core"),o=t("./_fails");e.localExports=function(t,e){var n=(i.Object||{})[t]||Object[t],a={};a[t]=e(n),r(r.S+r.F*o(function(){n(1)}),"Object",a)}},{"./_core":36,"./_export":43,"./_fails":44}],75:[function(t,e,n){e.localExports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},{}],76:[function(t,e,n){var r=t("./_an-object"),i=t("./_is-object"),o=t("./_new-promise-capability");e.localExports=function(t,e){if(r(t),i(e)&&e.constructor===t)return e;var n=o.f(t);return(0,n.resolve)(e),n.promise}},{"./_an-object":25,"./_is-object":55,"./_new-promise-capability":65}],77:[function(t,e,n){e.localExports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},{}],78:[function(t,e,n){var r=t("./_hide");e.localExports=function(t,e,n){for(var i in e)n&&t[i]?t[i]=e[i]:r(t,i,e[i]);return t}},{"./_hide":48}],79:[function(t,e,n){e.localExports=t("./_hide")},{"./_hide":48}],80:[function(t,e,n){var r=t("./_export"),i=t("./_a-function"),o=t("./_ctx"),a=t("./_for-of");e.localExports=function(t){r(r.S,t,{from:function(t){var e,n,r,s,u=arguments[1];return i(this),(e=void 0!==u)&&i(u),void 0==t?new this:(n=[],e?(r=0,s=o(u,arguments[2],2),a(t,!1,function(t){n.push(s(t,r++))})):a(t,!1,n.push,n),new this(n))}})}},{"./_a-function":22,"./_ctx":38,"./_export":43,"./_for-of":45}],81:[function(t,e,n){var r=t("./_export");e.localExports=function(t){r(r.S,t,{of:function(){for(var t=arguments.length,e=new Array(t);t--;)e[t]=arguments[t];return new this(e)}})}},{"./_export":43}],82:[function(t,e,n){var r=t("./_global"),i=t("./_core"),o=t("./_object-dp"),a=t("./_descriptors"),s=t("./_wks")("species");e.localExports=function(t){var e="function"==typeof i[t]?i[t]:r[t];a&&e&&!e[s]&&o.f(e,s,{configurable:!0,get:function(){return this}})}},{"./_core":36,"./_descriptors":40,"./_global":46,"./_object-dp":67,"./_wks":98}],83:[function(t,e,n){var r=t("./_object-dp").f,i=t("./_has"),o=t("./_wks")("toStringTag");e.localExports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},{"./_has":47,"./_object-dp":67,"./_wks":98}],84:[function(t,e,n){var r=t("./_shared")("keys"),i=t("./_uid");e.localExports=function(t){return r[t]||(r[t]=i(t))}},{"./_shared":85,"./_uid":95}],85:[function(t,e,n){var r=t("./_core"),i=t("./_global"),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(e.localExports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:t("./_library")?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},{"./_core":36,"./_global":46,"./_library":62}],86:[function(t,e,n){var r=t("./_an-object"),i=t("./_a-function"),o=t("./_wks")("species");e.localExports=function(t,e){var n,a=r(t).constructor;return void 0===a||void 0==(n=r(a)[o])?e:i(n)}},{"./_a-function":22,"./_an-object":25,"./_wks":98}],87:[function(t,e,n){var r=t("./_to-integer"),i=t("./_defined");e.localExports=function(t){return function(e,n){var o,a,s=String(i(e)),u=r(n),c=s.length;return u<0||u>=c?t?"":void 0:(o=s.charCodeAt(u))<55296||o>56319||u+1===c||(a=s.charCodeAt(u+1))<56320||a>57343?t?s.charAt(u):o:t?s.slice(u,u+2):a-56320+(o-55296<<10)+65536}}},{"./_defined":39,"./_to-integer":90}],88:[function(t,e,n){var r,i,o,a=t("./_ctx"),s=t("./_invoke"),u=t("./_html"),c=t("./_dom-create"),l=t("./_global"),h=l.process,f=l.setImmediate,d=l.clearImmediate,p=l.MessageChannel,g=l.Dispatch,_=0,m={},v=function(){var t=+this;if(m.hasOwnProperty(t)){var e=m[t];delete m[t],e()}},y=function(t){v.call(t.data)};f&&d||(f=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return m[++_]=function(){s("function"==typeof t?t:Function(t),e)},r(_),_},d=function(t){delete m[t]},"process"==t("./_cof")(h)?r=function(t){h.nextTick(a(v,t,1))}:g&&g.now?r=function(t){g.now(a(v,t,1))}:p?(o=(i=new p).port2,i.port1.onmessage=y,r=a(o.postMessage,o,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(r=function(t){l.postMessage(t+"","*")},l.addEventListener("message",y,!1)):r="onreadystatechange"in c("script")?function(t){u.appendChild(c("script")).onreadystatechange=function(){u.removeChild(this),v.call(t)}}:function(t){setTimeout(a(v,t,1),0)}),e.localExports={set:f,clear:d}},{"./_cof":32,"./_ctx":38,"./_dom-create":41,"./_global":46,"./_html":49,"./_invoke":51}],89:[function(t,e,n){var r=t("./_to-integer"),i=Math.max,o=Math.min;e.localExports=function(t,e){return(t=r(t))<0?i(t+e,0):o(t,e)}},{"./_to-integer":90}],90:[function(t,e,n){var r=Math.ceil,i=Math.floor;e.localExports=function(t){return isNaN(t=+t)?0:(t>0?i:r)(t)}},{}],91:[function(t,e,n){var r=t("./_iobject"),i=t("./_defined");e.localExports=function(t){return r(i(t))}},{"./_defined":39,"./_iobject":52}],92:[function(t,e,n){var r=t("./_to-integer"),i=Math.min;e.localExports=function(t){return t>0?i(r(t),9007199254740991):0}},{"./_to-integer":90}],93:[function(t,e,n){var r=t("./_defined");e.localExports=function(t){return Object(r(t))}},{"./_defined":39}],94:[function(t,e,n){var r=t("./_is-object");e.localExports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":55}],95:[function(t,e,n){var r=0,i=Math.random();e.localExports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++r+i).toString(36))}},{}],96:[function(t,e,n){var r=t("./_global").navigator;e.localExports=r&&r.userAgent||""},{"./_global":46}],97:[function(t,e,n){var r=t("./_is-object");e.localExports=function(t,e){if(!r(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t}},{"./_is-object":55}],98:[function(t,e,n){var r=t("./_shared")("wks"),i=t("./_uid"),o=t("./_global").Symbol,a="function"==typeof o;(e.localExports=function(t){return r[t]||(r[t]=a&&o[t]||(a?o:i)("Symbol."+t))}).store=r},{"./_global":46,"./_shared":85,"./_uid":95}],99:[function(t,e,n){var r=t("./_classof"),i=t("./_wks")("iterator"),o=t("./_iterators");e.localExports=t("./_core").getIteratorMethod=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||o[r(t)]}},{"./_classof":31,"./_core":36,"./_iterators":61,"./_wks":98}],100:[function(t,e,n){var r=t("./_ctx"),i=t("./_export"),o=t("./_to-object"),a=t("./_iter-call"),s=t("./_is-array-iter"),u=t("./_to-length"),c=t("./_create-property"),l=t("./core.get-iterator-method");i(i.S+i.F*!t("./_iter-detect")(function(t){}),"Array",{from:function(t){var e,n,i,h,f=o(t),d="function"==typeof this?this:Array,p=arguments.length,g=p>1?arguments[1]:void 0,_=void 0!==g,m=0,v=l(f);if(_&&(g=r(g,p>2?arguments[2]:void 0,2)),void 0==v||d==Array&&s(v))for(n=new d(e=u(f.length));e>m;m++)c(n,m,_?g(f[m],m):f[m]);else for(h=v.call(f),n=new d;!(i=h.next()).done;m++)c(n,m,_?a(h,g,[i.value,m],!0):i.value);return n.length=m,n}})},{"./_create-property":37,"./_ctx":38,"./_export":43,"./_is-array-iter":53,"./_iter-call":56,"./_iter-detect":59,"./_to-length":92,"./_to-object":93,"./core.get-iterator-method":99}],101:[function(t,e,n){var r=t("./_export");r(r.S,"Array",{isArray:t("./_is-array")})},{"./_export":43,"./_is-array":54}],102:[function(t,e,n){var r=t("./_add-to-unscopables"),i=t("./_iter-step"),o=t("./_iterators"),a=t("./_to-iobject");e.localExports=t("./_iter-define")(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,i(1)):i(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},{"./_add-to-unscopables":23,"./_iter-define":58,"./_iter-step":60,"./_iterators":61,"./_to-iobject":91}],103:[function(t,e,n){var r=t("./_collection-strong"),i=t("./_validate-collection");e.localExports=t("./_collection")("Map",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{get:function(t){var e=r.getEntry(i(this,"Map"),t);return e&&e.v},set:function(t,e){return r.def(i(this,"Map"),0===t?0:t,e)}},r,!0)},{"./_collection":35,"./_collection-strong":33,"./_validate-collection":97}],104:[function(t,e,n){var r=t("./_export");r(r.S+r.F*!t("./_descriptors"),"Object",{defineProperty:t("./_object-dp").f})},{"./_descriptors":40,"./_export":43,"./_object-dp":67}],105:[function(t,e,n){var r=t("./_is-object"),i=t("./_meta").onFreeze;t("./_object-sap")("freeze",function(t){return function(e){return t&&r(e)?t(i(e)):e}})},{"./_is-object":55,"./_meta":63,"./_object-sap":74}],106:[function(t,e,n){var r=t("./_to-iobject"),i=t("./_object-gopd").f;t("./_object-sap")("getOwnPropertyDescriptor",function(){return function(t,e){return i(r(t),e)}})},{"./_object-gopd":69,"./_object-sap":74,"./_to-iobject":91}],107:[function(t,e,n){var r=t("./_to-object"),i=t("./_object-keys");t("./_object-sap")("keys",function(){return function(t){return i(r(t))}})},{"./_object-keys":72,"./_object-sap":74,"./_to-object":93}],108:[function(t,e,n){},{}],109:[function(t,e,n){var r,i,o,a,s=t("./_library"),u=t("./_global"),c=t("./_ctx"),l=t("./_classof"),h=t("./_export"),f=t("./_is-object"),d=t("./_a-function"),p=t("./_an-instance"),g=t("./_for-of"),_=t("./_species-constructor"),m=t("./_task").set,v=t("./_microtask")(),y=t("./_new-promise-capability"),b=t("./_perform"),w=t("./_user-agent"),x=t("./_promise-resolve"),S=u.TypeError,C=u.process,P=C&&C.versions,k=P&&P.v8||"",E=u.Promise,A="process"==l(C),T=function(){},j=i=y.f,O=!!function(){try{var e=E.resolve(1),n=(e.constructor={})[t("./_wks")("species")]=function(t){t(T,T)};return(A||"function"==typeof PromiseRejectionEvent)&&e.then(T)instanceof n&&0!==k.indexOf("6.6")&&-1===w.indexOf("Chrome/66")}catch(t){}}(),L=function(t){var e;return!(!f(t)||"function"!=typeof(e=t.then))&&e},I=function(t,e){if(!t._n){t._n=!0;var n=t._c;v(function(){for(var r=t._v,i=1==t._s,o=0,a=function(e){var n,o,a,s=i?e.ok:e.fail,u=e.resolve,c=e.reject,l=e.domain;try{s?(i||(2==t._h&&R(t),t._h=1),!0===s?n=r:(l&&l.enter(),n=s(r),l&&(l.exit(),a=!0)),n===e.promise?c(S("Promise-chain cycle")):(o=L(n))?o.call(n,u,c):u(n)):c(r)}catch(t){l&&!a&&l.exit(),c(t)}};n.length>o;)a(n[o++]);t._c=[],t._n=!1,e&&!t._h&&B(t)})}},B=function(t){m.call(u,function(){var e,n,r,i=t._v,o=N(t);if(o&&(e=b(function(){A?C.emit("unhandledRejection",i,t):(n=u.onunhandledrejection)?n({promise:t,reason:i}):(r=u.console)&&r.error&&r.error("Unhandled promise rejection",i)}),t._h=A||N(t)?2:1),t._a=void 0,o&&e.e)throw e.v})},N=function(t){return 1!==t._h&&0===(t._a||t._c).length},R=function(t){m.call(u,function(){var e;A?C.emit("rejectionHandled",t):(e=u.onrejectionhandled)&&e({promise:t,reason:t._v})})},D=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),I(e,!0))},M=function t(e){var n,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===e)throw S("Promise can't be resolved itself");(n=L(e))?v(function(){var i={_w:r,_d:!1};try{n.call(e,c(t,i,1),c(D,i,1))}catch(t){D.call(i,t)}}):(r._v=e,r._s=1,I(r,!1))}catch(t){D.call({_w:r,_d:!1},t)}}};O||(E=function(t){p(this,E,"Promise","_h"),d(t),r.call(this);try{t(c(M,this,1),c(D,this,1))}catch(t){D.call(this,t)}},(r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=t("./_redefine-all")(E.prototype,{then:function(t,e){var n=j(_(this,E));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=A?C.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&I(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new r;this.promise=t,this.resolve=c(M,t,1),this.reject=c(D,t,1)},y.f=j=function(t){return t===E||t===a?new o(t):i(t)}),h(h.G+h.W+h.F*!O,{Promise:E}),t("./_set-to-string-tag")(E,"Promise"),t("./_set-species")("Promise"),a=t("./_core").Promise,h(h.S+h.F*!O,"Promise",{reject:function(t){var e=j(this);return(0,e.reject)(t),e.promise}}),h(h.S+h.F*(s||!O),"Promise",{resolve:function(t){return x(s&&this===a?E:this,t)}}),h(h.S+h.F*!(O&&t("./_iter-detect")(function(t){E.all(t).catch(T)})),"Promise",{all:function(t){var e=this,n=j(e),r=n.resolve,i=n.reject,o=b(function(){var n=[],o=0,a=1;g(t,!1,function(t){var s=o++,u=!1;n.push(void 0),a++,e.resolve(t).then(function(t){u||(u=!0,n[s]=t,--a||r(n))},i)}),--a||r(n)});return o.e&&i(o.v),n.promise},race:function(t){var e=this,n=j(e),r=n.reject,i=b(function(){g(t,!1,function(t){e.resolve(t).then(n.resolve,r)})});return i.e&&r(i.v),n.promise}})},{"./_a-function":22,"./_an-instance":24,"./_classof":31,"./_core":36,"./_ctx":38,"./_export":43,"./_for-of":45,"./_global":46,"./_is-object":55,"./_iter-detect":59,"./_library":62,"./_microtask":64,"./_new-promise-capability":65,"./_perform":75,"./_promise-resolve":76,"./_redefine-all":78,"./_set-species":82,"./_set-to-string-tag":83,"./_species-constructor":86,"./_task":88,"./_user-agent":96,"./_wks":98}],110:[function(t,e,n){var r=t("./_collection-strong"),i=t("./_validate-collection");e.localExports=t("./_collection")("Set",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return r.def(i(this,"Set"),t=0===t?0:t,t)}},r)},{"./_collection":35,"./_collection-strong":33,"./_validate-collection":97}],111:[function(t,e,n){var r=t("./_export"),i=t("./_to-absolute-index"),o=String.fromCharCode,a=String.fromCodePoint;r(r.S+r.F*(!!a&&1!=a.length),"String",{fromCodePoint:function(t){for(var e,n=[],r=arguments.length,a=0;r>a;){if(e=+arguments[a++],i(e,1114111)!==e)throw RangeError(e+" is not a valid code point");n.push(e<65536?o(e):o(55296+((e-=65536)>>10),e%1024+56320))}return n.join("")}})},{"./_export":43,"./_to-absolute-index":89}],112:[function(t,e,n){var r=t("./_string-at")(!0);t("./_iter-define")(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},{"./_iter-define":58,"./_string-at":87}],113:[function(t,e,n){t("./_set-collection-from")("Map")},{"./_set-collection-from":80}],114:[function(t,e,n){t("./_set-collection-of")("Map")},{"./_set-collection-of":81}],115:[function(t,e,n){var r=t("./_export");r(r.P+r.R,"Map",{toJSON:t("./_collection-to-json")("Map")})},{"./_collection-to-json":34,"./_export":43}],116:[function(t,e,n){var r=t("./_export"),i=t("./_core"),o=t("./_global"),a=t("./_species-constructor"),s=t("./_promise-resolve");r(r.P+r.R,"Promise",{finally:function(t){var e=a(this,i.Promise||o.Promise),n="function"==typeof t;return this.then(n?function(n){return s(e,t()).then(function(){return n})}:t,n?function(n){return s(e,t()).then(function(){throw n})}:t)}})},{"./_core":36,"./_export":43,"./_global":46,"./_promise-resolve":76,"./_species-constructor":86}],117:[function(t,e,n){var r=t("./_export"),i=t("./_new-promise-capability"),o=t("./_perform");r(r.S,"Promise",{try:function(t){var e=i.f(this),n=o(t);return(n.e?e.reject:e.resolve)(n.v),e.promise}})},{"./_export":43,"./_new-promise-capability":65,"./_perform":75}],118:[function(t,e,n){t("./_set-collection-from")("Set")},{"./_set-collection-from":80}],119:[function(t,e,n){t("./_set-collection-of")("Set")},{"./_set-collection-of":81}],120:[function(t,e,n){var r=t("./_export");r(r.P+r.R,"Set",{toJSON:t("./_collection-to-json")("Set")})},{"./_collection-to-json":34,"./_export":43}],121:[function(t,e,n){t("./es6.array.iterator");for(var r=t("./_global"),i=t("./_hide"),o=t("./_iterators"),a=t("./_wks")("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),u=0;u<s.length;u++){var c=s[u],l=r[c],h=l&&l.prototype;h&&!h[a]&&i(h,a,c),o[c]=o.Array}},{"./_global":46,"./_hide":48,"./_iterators":61,"./_wks":98,"./es6.array.iterator":102}],122:[function(t,e,n){n.byteLength=function(t){var e=c(t),n=e[0],r=e[1];return 3*(n+r)/4-r},n.toByteArray=function(t){var e,n,r=c(t),a=r[0],s=r[1],u=new o(function(t,e,n){return 3*(e+n)/4-n}(0,a,s)),l=0,h=s>0?a-4:a;for(n=0;n<h;n+=4)e=i[t.charCodeAt(n)]<<18|i[t.charCodeAt(n+1)]<<12|i[t.charCodeAt(n+2)]<<6|i[t.charCodeAt(n+3)],u[l++]=e>>16&255,u[l++]=e>>8&255,u[l++]=255&e;return 2===s&&(e=i[t.charCodeAt(n)]<<2|i[t.charCodeAt(n+1)]>>4,u[l++]=255&e),1===s&&(e=i[t.charCodeAt(n)]<<10|i[t.charCodeAt(n+1)]<<4|i[t.charCodeAt(n+2)]>>2,u[l++]=e>>8&255,u[l++]=255&e),u},n.fromByteArray=function(t){for(var e,n=t.length,i=n%3,o=[],a=0,s=n-i;a<s;a+=16383)o.push(l(t,a,a+16383>s?s:a+16383));return 1===i?(e=t[n-1],o.push(r[e>>2]+r[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],o.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"=")),o.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,u=a.length;s<u;++s)r[s]=a[s],i[a.charCodeAt(s)]=s;function c(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function l(t,e,n){for(var i,o,a=[],s=e;s<n;s+=3)i=(t[s]<<16&16711680)+(t[s+1]<<8&65280)+(255&t[s+2]),a.push(r[(o=i)>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},{}],123:[function(t,e,n){(function(t){(function(){var n=function(){function e(n,i,o,a){"object"==typeof i&&(o=i.depth,a=i.prototype,i.filter,i=i.circular);var s=[],u=[],c=void 0!==t;return void 0===i&&(i=!0),void 0===o&&(o=1/0),function n(o,l){if(null===o)return null;if(0==l)return o;var h,f;if("object"!=typeof o)return o;if(e.__isArray(o))h=[];else if(e.__isRegExp(o))h=new RegExp(o.source,r(o)),o.lastIndex&&(h.lastIndex=o.lastIndex);else if(e.__isDate(o))h=new Date(o.getTime());else{if(c&&t.isBuffer(o))return h=t.allocUnsafe?t.allocUnsafe(o.length):new t(o.length),o.copy(h),h;void 0===a?(f=Object.getPrototypeOf(o),h=Object.create(f)):(h=Object.create(a),f=a)}if(i){var d=s.indexOf(o);if(-1!=d)return u[d];s.push(o),u.push(h)}for(var p in o){var g;f&&(g=Object.getOwnPropertyDescriptor(f,p)),g&&null==g.set||(h[p]=n(o[p],l-1))}return h}(n,o)}function n(t){return Object.prototype.toString.call(t)}function r(t){var e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),e}return e.clonePrototype=function(t){if(null===t)return null;var e=function(){};return e.prototype=t,new e},e.__objToStr=n,e.__isDate=function(t){return"object"==typeof t&&"[object Date]"===n(t)},e.__isArray=function(t){return"object"==typeof t&&"[object Array]"===n(t)},e.__isRegExp=function(t){return"object"==typeof t&&"[object RegExp]"===n(t)},e.__getRegExpFlags=r,e}();"object"==typeof e&&e.localExports&&(e.localExports=n)}).call(this)}).call(this,t("buffer").Buffer)},{buffer:152}],124:[function(t,e,n){var r=0,i=-3;function o(){this.table=new Uint16Array(16),this.trans=new Uint16Array(288)}var a=new o,s=new o,u=new Uint8Array(30),c=new Uint16Array(30),l=new Uint8Array(30),h=new Uint16Array(30),f=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),d=new o,p=new Uint8Array(320);function g(t,e,n,r){var i,o;for(i=0;i<n;++i)t[i]=0;for(i=0;i<30-n;++i)t[i+n]=i/n|0;for(o=r,i=0;i<30;++i)e[i]=o,o+=1<<t[i]}var _=new Uint16Array(16);function m(t,e,n,r){var i,o;for(i=0;i<16;++i)t.table[i]=0;for(i=0;i<r;++i)t.table[e[n+i]]++;for(t.table[0]=0,o=0,i=0;i<16;++i)_[i]=o,o+=t.table[i];for(i=0;i<r;++i)e[n+i]&&(t.trans[_[e[n+i]]++]=i)}function v(t){t.bitcount--||(t.tag=t.source[t.sourceIndex++],t.bitcount=7);var e=1&t.tag;return t.tag>>>=1,e}function y(t,e,n){if(!e)return n;for(;t.bitcount<24;)t.tag|=t.source[t.sourceIndex++]<<t.bitcount,t.bitcount+=8;var r=t.tag&65535>>>16-e;return t.tag>>>=e,t.bitcount-=e,r+n}function b(t,e){for(;t.bitcount<24;)t.tag|=t.source[t.sourceIndex++]<<t.bitcount,t.bitcount+=8;var n=0,r=0,i=0,o=t.tag;do{r=2*r+(1&o),o>>>=1,++i,n+=e.table[i],r-=e.table[i]}while(r>=0);return t.tag=o,t.bitcount-=i,e.trans[n+r]}function w(t,e,n){var r,i,o,a,s,u;for(r=y(t,5,257),i=y(t,5,1),o=y(t,4,4),a=0;a<19;++a)p[a]=0;for(a=0;a<o;++a){var c=y(t,3,0);p[f[a]]=c}for(m(d,p,0,19),s=0;s<r+i;){var l=b(t,d);switch(l){case 16:var h=p[s-1];for(u=y(t,2,3);u;--u)p[s++]=h;break;case 17:for(u=y(t,3,3);u;--u)p[s++]=0;break;case 18:for(u=y(t,7,11);u;--u)p[s++]=0;break;default:p[s++]=l}}m(e,p,0,r),m(n,p,r,i)}function x(t,e,n){for(;;){var i,o,a,s,f=b(t,e);if(256===f)return r;if(f<256)t.dest[t.destLen++]=f;else for(i=y(t,u[f-=257],c[f]),o=b(t,n),s=a=t.destLen-y(t,l[o],h[o]);s<a+i;++s)t.dest[t.destLen++]=t.dest[s]}}function S(t){for(var e,n;t.bitcount>8;)t.sourceIndex--,t.bitcount-=8;if((e=256*(e=t.source[t.sourceIndex+1])+t.source[t.sourceIndex])!==(65535&~(256*t.source[t.sourceIndex+3]+t.source[t.sourceIndex+2])))return i;for(t.sourceIndex+=4,n=e;n;--n)t.dest[t.destLen++]=t.source[t.sourceIndex++];return t.bitcount=0,r}!function(t,e){var n;for(n=0;n<7;++n)t.table[n]=0;for(t.table[7]=24,t.table[8]=152,t.table[9]=112,n=0;n<24;++n)t.trans[n]=256+n;for(n=0;n<144;++n)t.trans[24+n]=n;for(n=0;n<8;++n)t.trans[168+n]=280+n;for(n=0;n<112;++n)t.trans[176+n]=144+n;for(n=0;n<5;++n)e.table[n]=0;for(e.table[5]=32,n=0;n<32;++n)e.trans[n]=n}(a,s),g(u,c,4,3),g(l,h,2,1),u[28]=0,c[28]=258,e.localExports=function(t,e){var n,u,c=new function(t,e){this.source=t,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=e,this.destLen=0,this.ltree=new o,this.dtree=new o}(t,e);do{switch(n=v(c),y(c,2,0)){case 0:u=S(c);break;case 1:u=x(c,a,s);break;case 2:w(c,c.ltree,c.dtree),u=x(c,c.ltree,c.dtree);break;default:u=i}if(u!==r)throw new Error("Data error")}while(!n);return c.destLen<c.dest.length?"function"==typeof c.dest.slice?c.dest.slice(0,c.destLen):c.dest.subarray(0,c.destLen):c.dest}},{}],125:[function(t,e,n){var r=t("unicode-trie"),i=t("base64-js"),o={categories:["Cc","Zs","Po","Sc","Ps","Pe","Sm","Pd","Nd","Lu","Sk","Pc","Ll","So","Lo","Pi","Cf","No","Pf","Lt","Lm","Mn","Me","Mc","Nl","Zl","Zp","Cs","Co"],combiningClasses:["Not_Reordered","Above","Above_Right","Below","Attached_Above_Right","Attached_Below","Overlay","Iota_Subscript","Double_Below","Double_Above","Below_Right","Above_Left","CCC10","CCC11","CCC12","CCC13","CCC14","CCC15","CCC16","CCC17","CCC18","CCC19","CCC20","CCC21","CCC22","CCC23","CCC24","CCC25","CCC30","CCC31","CCC32","CCC27","CCC28","CCC29","CCC33","CCC34","CCC35","CCC36","Nukta","Virama","CCC84","CCC91","CCC103","CCC107","CCC118","CCC122","CCC129","CCC130","CCC132","Attached_Above","Below_Left","Left","Kana_Voicing","CCC26","Right"],scripts:["Common","Latin","Bopomofo","Inherited","Greek","Coptic","Cyrillic","Armenian","Hebrew","Arabic","Syriac","Thaana","Nko","Samaritan","Mandaic","Devanagari","Bengali","Gurmukhi","Gujarati","Oriya","Tamil","Telugu","Kannada","Malayalam","Sinhala","Thai","Lao","Tibetan","Myanmar","Georgian","Hangul","Ethiopic","Cherokee","Canadian_Aboriginal","Ogham","Runic","Tagalog","Hanunoo","Buhid","Tagbanwa","Khmer","Mongolian","Limbu","Tai_Le","New_Tai_Lue","Buginese","Tai_Tham","Balinese","Sundanese","Batak","Lepcha","Ol_Chiki","Braille","Glagolitic","Tifinagh","Han","Hiragana","Katakana","Yi","Lisu","Vai","Bamum","Syloti_Nagri","Phags_Pa","Saurashtra","Kayah_Li","Rejang","Javanese","Cham","Tai_Viet","Meetei_Mayek","null","Linear_B","Lycian","Carian","Old_Italic","Gothic","Old_Permic","Ugaritic","Old_Persian","Deseret","Shavian","Osmanya","Osage","Elbasan","Caucasian_Albanian","Linear_A","Cypriot","Imperial_Aramaic","Palmyrene","Nabataean","Hatran","Phoenician","Lydian","Meroitic_Hieroglyphs","Meroitic_Cursive","Kharoshthi","Old_South_Arabian","Old_North_Arabian","Manichaean","Avestan","Inscriptional_Parthian","Inscriptional_Pahlavi","Psalter_Pahlavi","Old_Turkic","Old_Hungarian","Hanifi_Rohingya","Old_Sogdian","Sogdian","Elymaic","Brahmi","Kaithi","Sora_Sompeng","Chakma","Mahajani","Sharada","Khojki","Multani","Khudawadi","Grantha","Newa","Tirhuta","Siddham","Modi","Takri","Ahom","Dogra","Warang_Citi","Nandinagari","Zanabazar_Square","Soyombo","Pau_Cin_Hau","Bhaiksuki","Marchen","Masaram_Gondi","Gunjala_Gondi","Makasar","Cuneiform","Egyptian_Hieroglyphs","Anatolian_Hieroglyphs","Mro","Bassa_Vah","Pahawh_Hmong","Medefaidrin","Miao","Tangut","Nushu","Duployan","SignWriting","Nyiakeng_Puachue_Hmong","Wancho","Mende_Kikakui","Adlam"],eaw:["N","Na","A","W","H","F"]},a="AAARAAAAAADwfAEAZXl5ONRt+/5bPVFZimRfKoTQJNm37CGE7Iw0j3UsTWKsoyI7kwyyTiEUzSD7NiEzhWYijH0wMVkHE4Mx49fzfo+3nuP4/fdZjvv+XNd5n/d9nef1WZvmKhTxiZndzDQBSEYQqxqKwnsKvGQucFh+6t6cJ792ePQBZv5S9yXSwkyjf/P4T7mTNnIAv1dOVhMlR9lflbUL9JeJguqsjvG9NTj/wLb566VAURnLo2vvRi89S3gW/33ihh2eXpDn40BIW7REl/7coRKIhAFlAiOtbLDTt6mMb4GzMF1gNnvX/sBxtbsAIjfztCNcQjcNDtLThRvuXu5M5g/CBjaLBE4lJm4qy/oZD97+IJryApcXfgWYlkvWbhfXgujOJKVu8B+ozqTLbxyJ5kNiR75CxDqfBM9eOlDMmGeoZ0iQbbS5VUplIwI+ZNXEKQVJxlwqjhOY7w3XwPesbLK5JZE+Tt4X8q8km0dzInsPPzbscrjBMVjF5mOHSeRdJVgKUjLTHiHqXSPkep8N/zFk8167KLp75f6RndkvzdfB6Uz3MmqvRArzdCbs1/iRZjYPLLF3U8Qs+H+Rb8iK51a6NIV2V9+07uJsTGFWpPz8J++7iRu2B6eAKlK/kujrLthwaD/7a6J5w90TusnH1JMAc+gNrql4aspOUG/RrsxUKmPzhHgP4Bleru+6Vfc/MBjgXVx7who94nPn7MPFrnwQP7g0k0Dq0h2GSKO6fTZ8nLodN1SiOUj/5EL/Xo1DBvRm0wmrh3x6phcJ20/9CuMr5h8WPqXMSasLoLHoufTmE7mzYrs6B0dY7KjuCogKqsvxnxAwXWvd9Puc9PnE8DOHT2INHxRlIyVHrqZahtfV2E/A2PDdtA3ewlRHMtFIBKO/T4IozWTQZ+mb+gdKuk/ZHrqloucKdsOSJmlWTSntWjcxVMjUmroXLM10I6TwDLnBq4LP69TxgVeyGsd8yHvhF8ydPlrNRSNs9EP7WmeuSE7Lu10JbOuQcJw/63sDp68wB9iwP5AO+mBpV0R5VDDeyQUFCel1G+4KHBgEVFS0YK+m2sXLWLuGTlkVAd97WwKKdacjWElRCuDRauf33l/yVcDF6sVPKeTes99FC1NpNWcpieGSV/IbO8PCTy5pbUR1U8lxzf4T+y6fZMxOz3LshkQLeeDSd0WmUrQgajmbktrxsb2AZ0ACw2Vgni+gV/m+KvCRWLg08Clx7uhql+v9XySGcjjOHlsp8vBw/e8HS7dtiqF6T/XcSXuaMW66GF1g4q9YyBadHqy3Y5jin1c7yZos6BBr6dsomSHxiUHanYtcYQwnMMZhRhOnaYJeyJzaRuukyCUh48+e/BUvk/aEfDp8ag+jD64BHxNnQ5v/E7WRk7eLjGV13I3oqy45YNONi/1op1oDr7rPjkhPsTXgUpQtGDPlIs55KhQaic9kSGs/UrZ2QKQOflB8MTEQxRF9pullToWO7Eplan6mcMRFnUu2441yxi23x+KqKlr7RWWsi9ZXMWlr8vfP3llk1m2PRj0yudccxBuoa7VfIgRmnFPGX6Pm1WIfMm/Rm4n/xTn8IGqA0GWuqgu48pEUO0U9nN+ZdIvFpPb7VDPphIfRZxznlHeVFebkd9l+raXy9BpTMcIUIvBfgHEb6ndGo8VUkxpief14KjzFOcaANfgvFpvyY8lE8lE4raHizLpluPzMks1hx/e1Hok5yV0p7qQH7GaYeMzzZTFvRpv6k6iaJ4yNqzBvN8J7B430h2wFm1IBPcqbou33G7/NWPgopl4Mllla6e24L3TOTVNkza2zv3QKuDWTeDpClCEYgTQ+5vEBSQZs/rMF50+sm4jofTgWLqgX1x3TkrDEVaRqfY/xZizFZ3Y8/DFEFD31VSfBQ5raEB6nHnZh6ddehtclQJ8fBrldyIh99LNnV32HzKEej04hk6SYjdauCa4aYW0ru/QxvQRGzLKOAQszf3ixJypTW3WWL6BLSF2EMCMIw7OUvWBC6A/gDc2D1jvBapMCc7ztx6jYczwTKsRLL6dMNXb83HS8kdD0pTMMj161zbVHkU0mhSHo9SlBDDXdN6hDvRGizmohtIyR3ot8tF5iUG4GLNcXeGvBudSFrHu+bVZb9jirNVG+rQPI51A7Hu8/b0UeaIaZ4UgDO68PkYx3PE2HWpKapJ764Kxt5TFYpywMy4DLQqVRy11I7SOLhxUFmqiEK52NaijWArIfCg6qG8q5eSiwRCJb1R7GDJG74TrYgx/lVq7w9++Kh929xSJEaoSse5fUOQg9nMAnIZv+7fwVRcNv3gOHI46Vb5jYUC66PYHO6lS+TOmvEQjuYmx4RkffYGxqZIp/DPWNHAixbRBc+XKE3JEOgs4jIwu/dSAwhydruOGF39co91aTs85JJ3Z/LpXoF43hUwJsb/M1Chzdn8HX8vLXnqWUKvRhNLpfAF4PTFqva1sBQG0J+59HyYfmQ3oa4/sxZdapVLlo/fooxSXi/dOEQWIWq8E0FkttEyTFXR2aNMPINMIzZwCNEheYTVltsdaLkMyKoEUluPNAYCM2IG3br0DLy0fVNWKHtbSKbBjfiw7Lu06gQFalC7RC9BwRMSpLYDUo9pDtDfzwUiPJKLJ2LGcSphWBadOI/iJjNqUHV7ucG8yC6+iNM9QYElqBR7ECFXrcTgWQ3eG/tCWacT9bxIkfmxPmi3vOd36KxihAJA73vWNJ+Y9oapXNscVSVqS5g15xOWND/WuUCcA9YAAg6WFbjHamrblZ5c0L6Zx1X58ZittGcfDKU697QRSqW/g+RofNRyvrWMrBn44cPvkRe2HdTu/Cq01C5/riWPHZyXPKHuSDDdW8c1XPgd6ogvLh20qEIu8c19sqr4ufyHrwh37ZN5MkvY1dsGmEz9pUBTxWrvvhNyODyX2Q1k/fbX/T/vbHNcBrmjgDtvBdtZrVtiIg5iXQuzO/DEMvRX8Mi1zymSlt92BGILeKItjoShJXE/H7xwnf0Iewb8BFieJ9MflEBCQYEDm8eZniiEPfGoaYiiEdhQxHQNr2AuRdmbL9mcl18Kumh+HEZLp6z+j35ML9zTbUwahUZCyQQOgQrGfdfQtaR/OYJ/9dYXb2TWZFMijfCA8Nov4sa5FFDUe1T68h4q08WDE7JbbDiej4utRMR9ontevxlXv6LuJTXt1YEv8bDzEt683PuSsIN0afvu0rcBu9AbXZbkOG3K3AhtqQ28N23lXm7S3Yn6KXmAhBhz+GeorJJ4XxO/b3vZk2LXp42+QvsVxGSNVpfSctIFMTR1bD9t70i6sfNF3WKz/uKDEDCpzzztwhL45lsw89H2IpWN10sXHRlhDse9KCdpP5qNNpU84cTY+aiqswqR8XZ9ea0KbVRwRuOGQU3csAtV2fSbnq47U6es6rKlWLWhg3s/B9C9g+oTyp6RtIldR51OOkP5/6nSy6itUVPcMNOp4M/hDdKOz3uK6srbdxOrc2cJgr1Sg02oBxxSky6V7JaG+ziNwlfqnjnvh2/uq1lKfbp+qpwq/D/5OI5gkFl5CejKGxfc2YVJfGqc4E0x5e9PHK2ukbHNI7/RZV6LNe65apbTGjoCaQls0txPPbmQbCQn+/upCoXRZy9yzorWJvZ0KWcbXlBxU/d5I4ERUTxMuVWhSMmF677LNN7NnLwsmKawXkCgbrpcluOl0WChR1qhtSrxGXHu251dEItYhYX3snvn1gS2uXuzdTxCJjZtjsip0iT2sDC0qMS7Bk9su2NyXjFK5/f5ZoWwofg3DtTyjaFqspnOOTSh8xK/CKUFS57guVEkw9xoQuRCwwEO9Lu9z2vYxSa9NFV8DvSxv2C4WYLYF8Nrc4DzWkzNsk81JJOlZ/LYJrGCoj4MmZpnf3AXmzxT4rtl9jsqljEyedz468SGKdBiQzyz/qWKEhFg45ZczlZZ3KGL3l6sn+3TTa3zMVMhPa1obGp/z+fvY0QXTrJTf1XAT3EtQdUfYYlmWZyvPZ/6rWwU7UOQei7pVE0osgN94Iy+T1+omE6z4Rh2O20FjgBeK2y1mcoFiMDOJvuZPn5Moy9fmFH3wyfKvn4+TwfLvt/lHTTVnvrtoUWRBiQXhiNM8nE6ZoWeux/Z0b2unRcdUzdDpmL7CAgd1ToRXwgmHTZOgiGtVT+xr1QH9ObebRTT4NzL+XSpLuuWp62GqQvJVTPoZOeJCb6gIwd9XHMftQ+Kc08IKKdKQANSJ1a2gve3JdRhO0+tNiYzWAZfd7isoeBu67W7xuK8WX7nhJURld98Inb0t/dWOSau/kDvV4DJo/cImw9AO2Gvq0F2n0M7yIZKL8amMbjYld+qFls7hq8Acvq97K2PrCaomuUiesu7qNanGupEl6J/iem8lyr/NMnsTr6o41PO0yhQh3hPFN0wJP7S830je9iTBLzUNgYH+gUZpROo3rN2qgCI+6GewpX8w8CH+ro6QrWiStqmcMzVa3vEel+3/dDxMp0rDv1Q6wTMS3K64zTT6RWzK1y643im25Ja7X2ePCV2mTswd/4jshZPo4bLnerqIosq/hy2bKUAmVn9n4oun1+a0DIZ56UhVwmZHdUNpLa8gmPvxS1eNvCF1T0wo1wKPdCJi0qOrWz7oYRTzgTtkzEzZn308XSLwUog4OWGKJzCn/3FfF9iA32dZHSv30pRCM3KBY9WZoRhtdK/ChHk6DEQBsfV6tN2o1Cn0mLtPBfnkS+qy1L2xfFe9TQPtDE1Be44RTl82E9hPT2rS2+93LFbzhQQO3C/hD2jRFH3BWWbasAfuMhRJFcTri73eE835y016s22DjoFJ862WvLj69fu2TgSF3RHia9D5DSitlQAXYCnbdqjPkR287Lh6dCHDapos+eFDvcZPP2edPmTFxznJE/EBLoQQ0Qmn9EkZOyJmHxMbvKYb8o21ZHmv5YLqgsEPk9gWZwYQY9wLqGXuax/8QlV5qDaPbq9pLPT1yp+zOWKmraEy1OUJI7zdEcEmvBpbdwLrDCgEb2xX8S/nxZgjK4bRi+pbOmbh8bEeoPvU/L9ndx9kntlDALbdAvp0O8ZC3zSUnFg4cePsw7jxewWvL7HRSBLUn6J7vTH9uld5N76JFPgBCdXGF221oEJk++XfRwXplLSyrVO7HFWBEs99nTazKveW3HpbD4dH/YmdAl+lwbSt8BQWyTG7jAsACI7bPPUU9hI9XUHWqQOuezHzUjnx5Qqs6T1qNHfTTHleDtmqK7flA9a0gz2nycIpz1FHBuWxKNtUeTdqP29Fb3tv+tl5JyBqXoR+vCsdzZwZUhf6Lu8bvkB9yQP4x7GGegB0ym0Lpl03Q7e+C0cDsm9GSDepCDji7nUslLyYyluPfvLyKaDSX4xpR+nVYQjQQn5F8KbY1gbIVLiK1J3mW90zTyR1bqApX2BlWh7KG8LAY9/S9nWC0XXh9pZZo6xuir12T43rkaGfQssbQyIslA7uJnSHOV22NhlNtUo0czxPAsXhh8tIQYaTM4l/yAlZlydTcXhlG22Gs/n3BxKBd/3ZjYwg3NaUurVXhNB+afVnFfNr9TbC9ksNdvwpNfeHanyJ8M6GrIVfLlYAPv0ILe4dn0Z+BJSbJkN7eZY/c6+6ttDYcIDeUKIDXqUSE42Xdh5nRbuaObozjht0HJ5H1e+em+NJi/+8kQlyjCbJpPckwThZeIF9/u7lrVIKNeJLCN/TpPAeXxvd31/CUDWHK9MuP1V1TJgngzi4V0qzS3SW3Qy5UiGHqg02wQa5tsEl9s/X9nNMosgLlUgZSfCBj1DiypLfhr9/r0nR0XY2tmhDOcUS4E7cqa4EJBhzqvpbZa35Q5Iz5EqmhYiOGDAYk606Tv74+KGfPjKVuP15rIzgW0I7/niOu9el/sn2bRye0gV+GrePDRDMHjwO1lEdeXH8N+UTO3IoN18kpI3tPxz+fY+n2MGMSGFHAx/83tKeJOl+2i+f1O9v6FfEDBbqrw+lpM8Anav7zHNr7hE78nXUtPNodMbCnITWA7Ma/IHlZ50F9hWge/wzOvSbtqFVFtkS8Of2nssjZwbSFdU+VO8z6tCEc9UA9ACxT5zIUeSrkBB/v1krOpm7bVMrGxEKfI6LcnpB4D8bvn2hDKGqKrJaVAJuDaBEY3F7eXyqnFWlOoFV/8ZLspZiZd7orXLhd4mhHQgbuKbHjJWUzrnm0Dxw/LJLzXCkh7slMxKo8uxZIWZfdKHlfI7uj3LP6ARAuWdF7ZmZ7daOKqKGbz5LxOggTgS39oEioYmrqkCeUDvbxkBYKeHhcLmMN8dMF01ZMb32IpL/cH8R7VHQSI5I0YfL14g9d7P/6cjB1JXXxbozEDbsrPdmL8ph7QW10jio+v7YsqHKQ6xrBbOVtxU0/nFfzUGZwIBLwyUvg49ii+54nv9FyECBpURnQK4Ox6N7lw5fsjdd5l/2SwBcAHMJoyjO1Pifye2dagaOwCVMqdJWAo77pvBe0zdJcTWu5fdzPNfV2p1pc7/JKQ8zhKkwsOELUDhXygPJ5oR8Vpk2lsCen3D3QOQp2zdrSZHjVBstDF/wWO98rrkQ6/7zt/Drip7OHIug1lomNdmRaHRrjmqeodn22sesQQPgzimPOMqC60a5+i/UYh51uZm+ijWkkaI2xjrBO2558DZNZMiuDQlaVAvBy2wLn/bR3FrNzfnO/9oDztYqxZrr7JMIhqmrochbqmQnKowxW29bpqTaJu7kW1VotC72QkYX8OoDDdMDwV1kJRk3mufgJBzf+iwFRJ7XWQwO5ujVglgFgHtycWiMLx5N+6XU+TulLabWjOzoao03fniUW0xvIJNPbk7CQlFZd/RCOPvgQbLjh5ITE8NVJeKt3HGr6JTnFdIzcVOlEtwqbIIX0IM7saC+4N5047MTJ9+Wn11EhyEPIlwsHE5utCeXRjQzlrR+R1Cf/qDzcNbqLXdk3J7gQ39VUrrEkS/VMWjjg+t2oYrqB0tUZClcUF6+LBC3EQ7KnGIwm/qjZX4GKPtjTX1zQKV6nPAb2t/Rza5IqKRf8i2DFEhV/YSifX0YwsiF6TQnp48Gr65TFq0zUe6LGjiY7fq0LSGKL1VnC6ESI2yxvt3XqBx53B3gSlGFeJcPbUbonW1E9E9m4NfuwPh+t5QjRxX34lvBPVxwQd7aeTd+r9dw5CiP1pt8wMZoMdni7GapYdo6KPgeQKcmlFfq4UYhvV0IBgeiR3RnTMBaqDqpZrTRyLdsp4l0IXZTdErfH0sN3dqBG5vRIx3VgCYcHmmkqJ8Hyu3s9K9uBD1d8cZUEx3qYcF5vsqeRpF1GOg8emeWM2OmBlWPdZ6qAXwm3nENFyh+kvXk132PfWAlN0kb7yh4fz2T7VWUY/hEXX5DvxGABC03XRpyOG8t/u3Gh5tZdpsSV9AWaxJN7zwhVglgII1gV28tUViyqn4UMdIh5t+Ea2zo7PO48oba0TwQbiSZOH4YhD578kPF3reuaP7LujPMsjHmaDuId9XEaZBCJhbXJbRg5VCk3KJpryH/+8S3wdhR47pdFcmpZG2p0Bpjp/VbvalgIZMllYX5L31aMPdt1J7r/7wbixt0Mnz2ZvNGTARHPVD+2O1D8SGpWXlVnP2ekgon55YiinADDynyaXtZDXueVqbuTi8z8cHHK325pgqM+mWZwzHeEreMvhZopAScXM14SJHpGwZyRljMlDvcMm9FZ/1e9+r/puOnpXOtc9Iu2fmgBfEP9cGW1Fzb1rGlfJ08pACtq1ZW18bf2cevebzVeHbaA50G9qoUp39JWdPHbYkPCRXjt4gzlq3Cxge28Mky8MoS/+On72kc+ZI2xBtgJytpAQHQ1zrEddMIVyR5urX6yBNu8v5lKC8eLdGKTJtbgIZ3ZyTzSfWmx9f+cvcJe8yM39K/djkp2aUTE/9m2Lj5jg7b8vdRAer7DO3SyLNHs1CAm5x5iAdh2yGJYivArZbCBNY88Tw+w+C1Tbt7wK3zl2rzTHo/D8/gb3c3mYrnEIEipYqPUcdWjnTsSw471O3EUN7Gtg4NOAs9PJrxm03VuZKa5xwXAYCjt7Gs01Km6T2DhOYUMoFcCSu7Hk1p3yP1eG+M3v3Q5luAze6WwBnZIYO0TCucPWK+UJ36KoJ8Y+vpavhLO8g5ed704IjlQdfemrMu//EvPYXTQSGIPPfiagJS9nMqP5IvkxN9pvuJz7h8carPXTKMq8jnTeL0STan6dnLTAqwIswcIwWDR2KwbGddAVN8SYWRB7kfBfBRkSXzvHlIF8D6jo64kUzYk5o/n8oLjKqat0rdXvQ86MkwQGMnnlcasqPPT2+mVtUGb32KuH6cyZQenrRG11TArcAl27+nvOMBDe++EKHf4YdyGf7mznzOz33cFFGEcv329p4qG2hoaQ8ULiMyVz6ENcxhoqGnFIdupcn7GICQWuw3yO3W8S33mzCcMYJ8ywc7U7rmaQf/W5K63Gr4bVTpXOyOp4tbaPyIaatBNpXqlmQUTSZXjxPr19+73PSaT+QnI35YsWn6WpfJjRtK8vlJZoTSgjaRU39AGCkWOZtifJrnefCrqwTKDFmuWUCukEsYcRrMzCoit28wYpP7kSVjMD8WJYQiNc2blMjuqYegmf6SsfC1jqz8XzghMlOX+gn/MKZmgljszrmehEa4V98VreJDxYvHr3j7IeJB9/sBZV41BWT/AZAjuC5XorlIPnZgBAniBEhanp0/0+qZmEWDpu8ige1hUPIyTo6T6gDEcFhWSoduNh8YSu65KgMOGBw7VlNYzNIgwHtq9KP2yyTVysqX5v12sf7D+vQUdR2dRDvCV40rIInXSLWT/yrC6ExOQxBJwIDbeZcl3z1yR5Rj3l8IGpxspapnvBL+fwupA3b6fkFceID9wgiM1ILB0cHVdvo/R4xg8yqKXT8efl0GnGX1/27FUYeUW2L/GNRGGWVGp3i91oaJkb4rybENHre9a2P5viz/yqk8ngWUUS+Kv+fu+9BLFnfLiLXOFcIeBJLhnayCiuDRSqcx0Qu68gVsGYc6EHD500Fkt+gpDj6gvr884n8wZ5o6q7xtL5wA0beXQnffWYkZrs2NGIRgQbsc5NB302SVx+R4ROvmgZaR8wBcji128BMfJ9kcvJ4DC+bQ57kRmv5yxgU4ngZfn0/JNZ8JBwxjTqS+s9kjJFG1unGUGLwMiIuXUD9EFhNIJuyCEAmVZSIGKH4G6v1gRR1LyzQKH2ZqiI1DnHMoDEZspbDjTeaFIAbSvjSq3A+n46y9hhVM8wIpnARSXyzmOD96d9UXvFroSPgGw1dq2vdEqDq9fJN1EbL2WulNmHkFDvxSO9ZT/RX/Bw2gA/BrF90XrJACereVfbV/YXaKfp77Nmx5NjEIUlxojsy7iN7nBHSZigfsbFyVOX1ZTeCCxvqnRSExP4lk5ZeYlRu9caaa743TWNdchRIhEWwadsBIe245C8clpaZ4zrPsk+OwXzxWCvRRumyNSLW5KWaSJyJU95cwheK76gr7228spZ3hmTtLyrfM2QRFqZFMR8/Q6yWfVgwTdfX2Ry4w3+eAO/5VT5nFb5NlzXPvBEAWrNZ6Q3jbH0RF4vcbp+fDngf/ywpoyNQtjrfvcq93AVb1RDWRghvyqgI2BkMr1rwYi8gizZ0G9GmPpMeqPerAQ0dJbzx+KAFM4IBq6iSLpZHUroeyfd9o5o+4fR2EtsZBoJORQEA4SW0CmeXSnblx2e9QkCHIodyqV6+g5ETEpZsLqnd/Na60EKPX/tQpPEcO+COIBPcQdszDzSiHGyQFPly/7KciUh1u+mFfxTCHGv9nn2WqndGgeGjQ/kr02qmTBX7Hc1qiEvgiSz1Tz/sy7Es29wvn6FrDGPP7asXlhOaiHxOctPvTptFA1kHFUk8bME7SsTSnGbFbUrssxrq70LhoSh5OwvQna+w84XdXhZb2sloJ4ZsCg3j+PrjJL08/JBi5zGd6ud/ZxhmcGKLOXPcNunQq5ESW92iJvfsuRrNYtawWwSmNhPYoFj2QqWNF0ffLpGt/ad24RJ8vkb5sXkpyKXmvFG5Vcdzf/44k3PBL/ojJ52+kWGzOArnyp5f969oV3J2c4Li27Nkova9VwRNVKqN0V+gV+mTHitgkXV30aWd3A1RSildEleiNPA+5cp+3+T7X+xfHiRZXQ1s4FA9TxIcnveQs9JSZ5r5qNmgqlW4zMtZ6rYNvgmyVcywKtu8ZxnSbS5vXlBV+NXdIfi3+xzrnJ0TkFL+Un8v1PWOC2PPFCjVPq7qTH7mOpzOYj/b4h0ceT+eHgr97Jqhb1ziVfeANzfN8bFUhPKBi7hJBCukQnB0aGjFTYLJPXL26lQ2b80xrOD5cFWgA8hz3St0e69kwNnD3+nX3gy12FjrjO+ddRvvvfyV3SWbXcxqNHfmsb9u1TV+wHTb9B07/L2sB8WUHJ9eeNomDyysEWZ0deqEhH/oWI2oiEh526gvAK1Nx2kIhNvkYR+tPYHEa9j+nd1VBpQP1uzSjIDO+fDDB7uy029rRjDC5Sk6aKczyz1D5uA9Lu+Rrrapl8JXNL3VRllNQH2K1ZFxOpX8LprttfqQ56MbPM0IttUheXWD/mROOeFqGUbL+kUOVlXLTFX/525g4faLEFO4qWWdmOXMNvVjpIVTWt650HfQjX9oT3Dg5Au6+v1/Ci78La6ZOngYCFPT1AUwxQuZ0yt5xKdNXLaDTISMTeCj16XTryhM36K2mfGRIgot71voWs8tTpL/f1rvcwv3LSDf+/G8THCT7NpfHWcW+lsF/ol8q9Bi6MezNTqp0rpp/kJRiVfNrX/w27cRRTu8RIIqtUblBMkxy4jwAVqCjUJkiPBj2cAoVloG8B2/N5deLdMhDb7xs5nhd3dubJhuj8WbaFRyu1L678DHhhA+rMimNo4C1kGpp0tD/qnCfCFHejpf0LJX43OTr578PY0tnIIrlWyNYyuR/ie6j2xNb1OV6u0dOX/1Dtcd7+ya9W+rY2LmnyQMtk8SMLTon8RAdwOaN2tNg5zVnDKlmVeOxPV2vhHIo9QEPV7jc3f+zVDquiNg1OaHX3cZXJDRY5MJpo+VanAcmqp4oasYLG+wrXUL5vJU0kqk2hGEskhP+Jjigrz1l6QnEwp6n8PMVeJp70Ii6ppeaK9GhF6fJE00ceLyxv08tKiPat4QdxZFgSbQknnEiCLD8Qc1rjazVKM3r3gXnnMeONgdz/yFV1q+haaN+wnF3Fn4uYCI9XsKOuVwDD0LsCO/f0gj5cmxCFcr7sclIcefWjvore+3aSU474cyqDVxH7w1RX3CHsaqsMRX17ZLgjsDXws3kLm2XJdM3Ku383UXqaHqsywzPhx7NFir0Fqjym/w6cxD2U9ypa3dx7Z12w/fi3Jps8sqJ8f8Ah8aZAvkHXvIRyrsxK7rrFaNNdNvjI8+3Emri195DCNa858anj2Qdny6Czshkn4N2+1m+k5S8sunX3Ja7I+JutRzg1mc2e9Yc0Zv9PZn1SwhxIdU9sXwZRTd/J5FoUm0e+PYREeHg3oc2YYzGf2xfJxXExt4pT3RfDRHvMXLUmoXOy63xv5pLuhOEax0dRgSywZ/GH+YBXFgCeTU0hZ8SPEFsn8punp1Kurd1KgXxUZ+la3R5+4ePGR4ZF5UQtOa83+Vj8zh80dfzbhxWCeoJnQ4dkZJM4drzknZOOKx2n3WrvJnzFIS8p0xeic+M3ZRVXIp10tV2DyYKwRxLzulPwzHcLlYTxl4PF7v8l106Azr+6wBFejbq/3P72C/0j78cepY9990/d4eAurn2lqdGKLU8FffnMw7cY7pVeXJRMU73Oxwi2g2vh/+4gX8dvbjfojn/eLVhhYl8GthwCQ50KcZq4z2JeW5eeOnJWFQEnVxDoG459TaC4zXybECEoJ0V5q1tXrQbDMtUxeTV6Pdt1/zJuc7TJoV/9YZFWxUtCf6Ou3Vd/vR/vG0138hJQrHkNeoep5dLe+6umcSquKvMaFpm3EZHDBOvCi0XYyIFHMgX7Cqp3JVXlxJFwQfHSaIUEbI2u1lBVUdlNw4Qa9UsLPEK94Qiln3pyKxQVCeNlx8yd7EegVNQBkFLabKvnietYVB4IPZ1fSor82arbgYec8aSdFMaIluYTYuNx32SxfrjKUdPGq+UNp5YpydoEG3xVLixtmHO9zXxKAnHnPuH2fPGrjx0GcuCDEU+yXUtXh6nfUL+cykws1gJ5vkfYFaFBr9PdCXvVf35OJQxzUMmWjv0W6uGJK11uAGDqSpOwCf6rouSIjPVgw57cJCOQ4b9tkI/Y5WNon9Swe72aZryKo8d+HyHBEdWJKrkary0LIGczA4Irq353Wc0Zga3om7UQiAGCvIl8GGyaqz5zH+1gMP5phWUCpKtttWIyicz09vXg76GxkmiGSMQ06Z9X8BUwqOtauDbPIf4rpK/yYoeAHxJ9soXS9VDe1Aw+awOOxaN8foLrif0TXBvQ55dtRtulRq9emFDBxlQcqKCaD8NeTSE7FOHvcjf/+oKbbtRqz9gbofoc2EzQ3pL6W5JdfJzAWmOk8oeoECe90lVMruwl/ltM015P/zIPazqvdvFmLNVHMIZrwiQ2tIKtGh6PDVH+85ew3caqVt2BsDv5rOcu3G9srQWd7NmgtzCRUXLYknYRSwtH9oUtkqyN3CfP20xQ1faXQl4MEmjQehWR6GmGnkdpYNQYeIG408yAX7uCZmYUic9juOfb+Re28+OVOB+scYK4DaPcBe+5wmji9gymtkMpKo4UKqCz7yxzuN8VIlx9yNozpRJpNaWHtaZVEqP45n2JemTlYBSmNIK1FuSYAUQ1yBLnKxevrjayd+h2i8PjdB3YY6b0nr3JuOXGpPMyh4V2dslpR3DFEvgpsBLqhqLDOWP4yEvIL6f21PpA7/8B",s=Math.log2||function(t){return Math.log(t)/Math.LN2},u=function(t){return s(t)+1|0},c=function(t,e){var n=u(t.categories.length-1),r=u(t.combiningClasses.length-1),i=u(t.scripts.length-1),o=u(t.eaw.length-1),a=r+i+o+10,s=i+o+10,c=o+10,l=(1<<n)-1,h=(1<<r)-1,f=(1<<i)-1,d=(1<<o)-1,p=function(n){var r=e.get(n);return t.categories[r>>a&l]};return{getCategory:p,getCombiningClass:function(n){var r=e.get(n);return t.combiningClasses[r>>s&h]},getScript:function(n){var r=e.get(n);return t.scripts[r>>c&f]},getEastAsianWidth:function(n){var r=e.get(n);return t.eaw[r>>10&d]},getNumericValue:function(t){var n=e.get(t),r=1023&n;if(0===r)return null;if(r<=50)return r-1;if(r<480)return((r>>4)-12)/(1+(15&r));if(r<768){n=(r>>5)-14;for(var i=2+(31&r);i>0;)n*=10,i--;return n}n=(r>>2)-191;for(var o=1+(3&r);o>0;)n*=60,o--;return n},isAlphabetic:function(t){var e=p(t);return"Lu"===e||"Ll"===e||"Lt"===e||"Lm"===e||"Lo"===e||"Nl"===e},isDigit:function(t){return"Nd"===p(t)},isPunctuation:function(t){var e=p(t);return"Pc"===e||"Pd"===e||"Pe"===e||"Pf"===e||"Pi"===e||"Po"===e||"Ps"===e},isLowerCase:function(t){return"Ll"===p(t)},isUpperCase:function(t){return"Lu"===p(t)},isTitleCase:function(t){return"Lt"===p(t)},isWhiteSpace:function(t){var e=p(t);return"Zs"===e||"Zl"===e||"Zp"===e},isBaseForm:function(t){var e=p(t);return"Nd"===e||"No"===e||"Nl"===e||"Lu"===e||"Ll"===e||"Lt"===e||"Lm"===e||"Lo"===e||"Me"===e||"Mc"===e},isMark:function(t){var e=p(t);return"Mn"===e||"Me"===e||"Mc"===e}}}(o,new r(i.toByteArray(a)));e.localExports=c},{"base64-js":122,"unicode-trie":126}],126:[function(t,e,n){var r=t("tiny-inflate"),i=t("./swap").swap32LE,o=function(){function t(t){var e="function"==typeof t.readUInt32BE&&"function"==typeof t.slice;if(e||t instanceof Uint8Array){var n;if(e)this.highStart=t.readUInt32LE(0),this.errorValue=t.readUInt32LE(4),n=t.readUInt32LE(8),t=t.slice(12);else{var o=new DataView(t.buffer);this.highStart=o.getUint32(0,!0),this.errorValue=o.getUint32(4,!0),n=o.getUint32(8,!0),t=t.subarray(12)}t=r(t,new Uint8Array(n)),t=r(t,new Uint8Array(n)),i(t),this.data=new Uint32Array(t.buffer)}else{var a=t;this.data=a.data,this.highStart=a.highStart,this.errorValue=a.errorValue}}return t.prototype.get=function(t){var e;return t<0||t>1114111?this.errorValue:t<55296||t>56319&&t<=65535?(e=(this.data[t>>5]<<2)+(31&t),this.data[e]):t<=65535?(e=(this.data[2048+(t-55296>>5)]<<2)+(31&t),this.data[e]):t<this.highStart?(e=this.data[2080+(t>>11)],e=((e=this.data[e+(t>>5&63)])<<2)+(31&t),this.data[e]):this.data[this.data.length-4]},t}();e.localExports=o},{"./swap":127,"tiny-inflate":124}],127:[function(t,e,n){var r=18===new Uint8Array(new Uint32Array([305419896]).buffer)[0],i=function(t,e,n){var r=t[e];t[e]=t[n],t[n]=r};e.localExports={swap32LE:function(t){r&&function(t){for(var e=t.length,n=0;n<e;n+=4)i(t,n,n+3),i(t,n+1,n+2)}(t)}}},{}],128:[function(t,e,n){n.byteLength=function(t){var e=c(t),n=e[0],r=e[1];return 3*(n+r)/4-r},n.toByteArray=function(t){var e,n,r=c(t),a=r[0],s=r[1],u=new o(function(t,e,n){return 3*(e+n)/4-n}(0,a,s)),l=0,h=s>0?a-4:a;for(n=0;n<h;n+=4)e=i[t.charCodeAt(n)]<<18|i[t.charCodeAt(n+1)]<<12|i[t.charCodeAt(n+2)]<<6|i[t.charCodeAt(n+3)],u[l++]=e>>16&255,u[l++]=e>>8&255,u[l++]=255&e;return 2===s&&(e=i[t.charCodeAt(n)]<<2|i[t.charCodeAt(n+1)]>>4,u[l++]=255&e),1===s&&(e=i[t.charCodeAt(n)]<<10|i[t.charCodeAt(n+1)]<<4|i[t.charCodeAt(n+2)]>>2,u[l++]=e>>8&255,u[l++]=255&e),u},n.fromByteArray=function(t){for(var e,n=t.length,i=n%3,o=[],a=0,s=n-i;a<s;a+=16383)o.push(l(t,a,a+16383>s?s:a+16383));return 1===i?(e=t[n-1],o.push(r[e>>2]+r[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],o.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"=")),o.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,u=a.length;s<u;++s)r[s]=a[s],i[a.charCodeAt(s)]=s;function c(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function l(t,e,n){for(var i,o,a=[],s=e;s<n;s+=3)i=(t[s]<<16&16711680)+(t[s+1]<<8&65280)+(255&t[s+2]),a.push(r[(o=i)>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},{}],129:[function(t,e,n){arguments[4][124][0].apply(n,arguments)},{dup:124}],130:[function(t,e,n){arguments[4][126][0].apply(n,arguments)},{"./swap":131,dup:126,"tiny-inflate":129}],131:[function(t,e,n){arguments[4][127][0].apply(n,arguments)},{dup:127}],132:[function(t,e,n){n.OP=0,n.CL=1,n.CP=2,n.QU=3,n.GL=4,n.NS=5,n.EX=6,n.SY=7,n.IS=8,n.PR=9,n.PO=10,n.NU=11,n.AL=12,n.HL=13,n.ID=14,n.IN=15,n.HY=16,n.BA=17,n.BB=18,n.B2=19,n.ZW=20,n.CM=21,n.WJ=22,n.H2=23,n.H3=24,n.JL=25,n.JV=26,n.JT=27,n.RI=28,n.EB=29,n.EM=30,n.ZWJ=31,n.CB=32,n.AI=33,n.BK=34,n.CJ=35,n.CR=36,n.LF=37,n.NL=38,n.SA=39,n.SG=40,n.SP=41,n.XX=42},{}],133:[function(t,e,n){var r=t("unicode-trie"),i=t("base64-js"),o=t("./classes"),a=o.BK,s=o.CR,u=o.LF,c=o.NL,l=o.SG,h=o.WJ,f=o.SP,d=o.ZWJ,p=o.BA,g=o.HY,_=o.NS,m=o.AI,v=o.AL,y=o.CJ,b=o.HL,w=o.RI,x=o.SA,S=o.XX,C=t("./pairs"),P=C.DI_BRK,k=C.IN_BRK,E=C.CI_BRK,A=C.CP_BRK,T=(C.PR_BRK,C.pairTable),j=new r(i.toByteArray("AAgOAAAAAABA2gAAAZ8OYPHtnQ2s1lUdx8/l3vvc+zz3uVzvhQuR4I23CMqRqdkbM42lqRlM1iSohrQaVjMmrZjmRIWEphOITWUtlbXhmI2GLowxC+cge6GcxrImw5oQtmmgWdpm37PnnD3nHs77y///gM/dPjv/8z9vv/M7v/P6//+f+71OQtaCu8AWsBc8BX4HngN/AX8LcI+DE+BNMKaLkB4w0GVPNxFxRgzxZiLsXHAhmAc+Ba4EC8FiId2XcP1V8E3wbXATuB3cBjaATeB+8BB4GDzC0lIew/Ve8BT4Lfg9+BN4AbwEjoFXwX8A6Ub9QBUMgkndjfCpcGd3N8Kp/4NwPwI+CS4FV4CFYDG4A+HL4K4AK1n81XDXsPTrwUZwH3iwuyHjdrg7wW7wC7APPNLZ8D8NDjL/IbiHWZqjcF8BJ8FbLPxpFr+z0nB7Kk09UAYqTSYypoARhhjXxCzEnSvFp3q+yCMPFy4W8rsM11eCa8ASsLzSrO/XcX0juEkq/3b4bxBsYS38d4EtQlrKVpZum3B/B653gT2Vht1TaPu+DncfjQeeAc+ztEeYewzuq+ANQZa3cd3do68nzz9GV3XkPx5MBjPAB8AF4BNgPrgcLADXgiVgObieybSSuavhrgHrwUZwH3iAhW2H+1PwmKYejwv3n8D1fokDwvUfwLPgr+Dv4GVwErwFOnsJ6QPjwNlgOng/OB98vJfZBdzLwGeZfxHcJb3+OlvO0lwPd6VH+tUBZd0qpblT8K9lNnYP7t0LHuht9Oftve48DH4GHge/Ar8GfwR/ZtdHLOn/IVz/y6PcNm3axMHHgbLlaNOmTZs2bdq0aXN68XoLyKDif72jz0N0dFQbZ3n0ulJtnKXxsLFVe/oJiHMOizcT7qSuxnnNubi+kOU9D+58cFW1cR74ObAI10tZuq/A/UZ19PkQZRXu3dKlL/tmKi9YC9aB74M7wXqwoR3WDmuHtcPaYcnDNoJ7wdZq48y0TLZVy6Xs+rdp08rErmN3oI/tAj+vhj+n24O0TyrS78e9g+AQeAG8JMU5Dv8J8CYYUyOkBgZqDbkmwh2plT/+rBrb4DVwwQDW0Qa2g2Ng8lmnhi2V7v0Q/mdBfRBr98HGve/CfRT8E/QOEXI5OFJt6OHL4MfgMOjsI+Q8QHoIuaav4Re5DWzuMLMPcV5keVCm1Qm5DjwIjoCp/YQs67fncyazqr+pnzZt2rR5p/Fov3nun4X5aG5NH35e7dQ1Cw/7KMIukdLOh/8qdu98zfkafS/rxsTvZZm4WlO/RYZ6U5bSubob86oi3gp2b6UlDxurFfpVYcpjjUKGdbXGu2Cv4fpuXG9h/h/B/QnYwfy74O4BTzA/PXvcX2ueKx6sjZbhEG3frsY6hr47eBTuK+ANjZ08hzzfFuT7N+jp09dxAX2Ps6/pp/Enwj/Sx+wV7lwWTs9AL9LkxdNf3KfW2SbDuemnkeZq8HnwBXAdy2MF3JWa/HTQ+qxGmlvBWrChb7R8tKxNLM/7hbrZeMggx3aE7fSUMze7W0yeMvgl08EBgy5+owl7xtEuchJa7+cTtj19L/FFQRd033qc5X8C7n8LsjNSV9/vqTfem6zXmzKOr9v38ZNZ/Blw5zjEF6HvWZZtG7628yHU8WP18so3cSnkugIsULTxtZp2b1W+CHmXJZCZ2vQKZtvfgvudevMd8dOBWwy2Ruu3DuF3B+hpc4E2nNr2t9ZHh28roC47mI53JupHu7vsZdrGz92QZW+98R3Ak8w9wMbgg55jMeUQ0hwGR8HLQvqTtM+AMdiT1fqb94dwPQmMgGlgNgubC/fDQrx5uL6E+T8DdyG7FvWxWNjvzWTplrF7X2PuDXDPEfKl52Q394+uwx3w/0DKf3G/vy7OJDbTtukKH4O29pc/FsQyTOwMgplgGmOGQxpXZgMsAUlnYwlGsPwjNXZN79G/MUIYmo2cxVx6JNLnSC+jLlCR/LkhrA5jCixTLp+2ZQfzD5P235x3OKo++V7N/Rx0sXagfb4qQO1zKoNf8zFikDRtmqfjcYektCKdkp+QvP1taub8W738VoPbh2gD3O+qM9mmxDRDlrRFUFS/PR3oCkyjI0SG0HaU1yq2ti3b7nJCdUHHfD5n8ftVop/DWp1Bod2GFdcV5trm7/4WIrR9awLyOt1Hp6LOKqT49X0ZY7Pr/qcmXMsy5axzhdjrbtOPHK6Ky+O46iN1u54JNiWPr2cSPnqok/D9VBn2l1Mncho6NvM+Le4hxX1bEbLq5Jfv6+IVaeut2MeKOkvw6XM55kdf+y6j76Wsuy0vX/kGGUWOa3J/KbN/pGoflz43rLhn01HovMPX26q8+f2qojzVOFp2+6TA1C42GWLWAap+6WovKh0U3R6x+k4tR0h/qBJ7+xc1HxXV/0NsWra5Mvq9Ts5UejfpwDZO5NoH8HHYdc11OvR/1zbJ3f9Nbeh6ni/KXPQzgCLHItO4FKN/37HHZXzMqesUenctL7f9u+StWyeKbRbSZ1OTcj7w7RO+441oB742P6tFkOWqRuZX99Aj35e2um587UKlkyEJ8V6XcD3I/BUFXSyd/EzENh6l3vfLz724S/86BDdmLZNqbTjocN80FpfFHNLsH7Fzi2hburUNfz4eMy7q5I3th67l69JPKpl3l8zZJVPG+kFep5n6UW7KLLvo8ulfBxk9fvjKahv3QnHdF+Xan8jzj2rtU0T5ZezP5P1FmWtlrvtuwc9tT1z/hq7/crUfXwdy+Yek+7KN8fk8h/wxa7uU5Nwnuu4f65Kft0fsuiV2L+drv6Y9XS5M+uVxytz7DXvoL5bU41/s3kleQ5n6YOx+YZCEzf2xsqvq4Ju2qH7hWs9U+/1U46NtPsk5Pst25fMehE7m1OcpuXDtS7b2km0sxfhh6lvD0nXZfZHC11o6m+J0Sf7xTPYRoR5yvHFk9LconaT53WSnwi/GpQwI0Pz4N56qdqDl1iyIMtBy2L8k1Oqml8nWIcQ1xTfZq2i3uvlhgiKtzzwn273LN1a8fuL3QvI3RC7pQ/cDYn+sGqhZwn3T1hLlLZJ6jI/Zz3J7l9uwRtzaRUzn8+6sq93k+P7PVLbqOzrVd5gmdOX5pnPVi9y+OcrzkSm0Liq55HuqcO7K393a2lalC7kOJt2ZbMjFHkLa2lZuiv5g0o3Jn8J+UuXvqrNY3cXK5ctAAhnon/icMlTWsQyfMnPodKxETF4x86oO3/kjJ/XANLJd5JDLpw+lKCtUBldd+uSj8rvel/OIrZ+r3l3T5Ojfpnrb9Mbz4eFjFeVMIWnGk5A66nSYQpcx7a6yOa4/VZwUMhelf1u9i0a2eRty31TZ9FRNfFV/kMPEfqfTk0oOVT4qeaYYylWh0tUUiaJsRPR3aqBh/LmYLD/96whwc8zDofbOZSqyj7jqqYwyfd0y9VZk2UXZSiq7ljGdo8rPwOUz3Apxex5hw/W9Gd2zDN0YZcN07i+eUxOpnuIYKPrpn6lPyPnzdzxU5+IqPY1j6M7SiaIMXZ3EdLH7Qd+5PTWyPPz3FDuEON3Cta2diJTWFq9buBbT2dCdheviqu7zZzOyPqaza5ubm6LKsZXvUm9b2HRy6jPUbgneJq2m/1T1V9nfdKK2Q9EefZgeiU0ntvVijnbQ6caG7/OvmDk41XyuW1/4vm+QWgZxzhNx1a8sk+97EDn0maI812ejofDvVfh+0WVNF/KMOOZ9IJfyY9+RMenHxX5s5eV4zz73s3xaRhnf8Mjtrau/yzuMofbG05f5PZXr/JHzvQ7f8VPO21f/ru3qqgdVPjH1t/Xx2PrLTATvKpCiy/Ndf6b8Vk/Ou4zv9WQZ3lcyOdcadU2b0t/CHSZ+v5vbar/JGws/s/DtDzn2Gz7w9Wmq9VkvaZ7V8N825mtTwu4PGOofW75qn8fLdXXldKY9ZIfgUvn5Xl18fmMrxwZ/n1S1Zy3D1nnZE5jL6ynLqtJhh+T67PHlfX7FM49YSKDsucrnuu2QrrmeUp3pFIHpjCs3Yn+itluVwvm7orb+5jrGi+PVe0jjXKyM/qySzXR2U9bcKq7Hc9Xbp+3K0oOsE5f9YFnycVsqo9w5UvlFnDOF2pvLM0VXW3Bpe105pjVZEfbkqhNbP7DJH7uf9+mPOW0q1u5c1ts5zjx1xLZLUWN3aDv7PhfJ2efK6B++upP7tO938qLthp4XprAV6orfw4bYqPx+icrOfNtPlCv0vDakTXXv4/D2cSnT1H+K7N9F95/UY4BoP7HnLqL8Jtt2rXOsPD5rAtf5UNcvRTv2aX9ux+JYYSsz9/qGlsl//5C/tyD/hqZtzRqyfhPLl+P6tF9s/eXfHnXBR76U809IX7Dps4h1mInY33FylV/+fbNBEvb7TTHjUqqxPHZ8pHkMCXnlaludvRetrxA9qsJV66dBT136tl9RNiGP2eJ4l+rd5lB7CXnPzHd8iF1bcfi7WalslOebam1kwkWftv6Sqj1M9pCzP9jmy5zjT+7xTkeNnPobR6ns1ofYsyeeRyudvciIfx0Ccjz5Ho9PNPFzy6yT07d9TP9/nJeTo31S6S10/Eo1h8boXjd++8gVqz+fNYgKHpZ6/i+i78eer6vmYptOYwiRUf6GJ9befSnznYYU8sd+r5NbP7n7iGnMUJ2FF21frmOa65iXon+m7sMh43jO/Iu0Nd95Ize5bEel11zzhE8binFVZ8kxfde3XkWNH642aatDSrtOIbfLuBFzHuDzm6Ku8vi2v09+KvsNrT//K8smOTWL35eQ36QR1yepf+cmdX71DPLmWMtOLghV2VM091OgaoMiy9DdF3+bSqUHVXjRnKNAlk8lr40UsvmU5yOPSj45rmtdphjy9LEtlasrS5c2tA+Yxu7YNnSdI3LmnatuNrt1ab/Q/F3LTEHRegwpx9TXi/qdQPG3s0z/FyK1TfiOu75lprar1HrPXX5q+VPJl6u/pqyfi+2EriV87N1njVDEuky11ojpa6b1S5FrthhCz3Ryn/H8Hw==")),O=function(t){switch(t){case m:return v;case x:case l:case S:return v;case y:return _;default:return t}},L=function(t){switch(t){case u:case c:return a;case f:return h;default:return t}},I=function(t,e){void 0===e&&(e=!1),this.position=t,this.required=e},B=function(){function t(t){this.string=t,this.pos=0,this.lastPos=0,this.curClass=null,this.nextClass=null,this.LB8a=!1,this.LB21a=!1,this.LB30a=0}var e=t.prototype;return e.nextCodePoint=function(){var t=this.string.charCodeAt(this.pos++),e=this.string.charCodeAt(this.pos);return 55296<=t&&t<=56319&&56320<=e&&e<=57343?(this.pos++,1024*(t-55296)+(e-56320)+65536):t},e.nextCharClass=function(){return O(j.get(this.nextCodePoint()))},e.getSimpleBreak=function(){switch(this.nextClass){case f:return!1;case a:case u:case c:return this.curClass=a,!1;case s:return this.curClass=s,!1}return null},e.getPairTableBreak=function(t){var e=!1;switch(T[this.curClass][this.nextClass]){case P:e=!0;break;case k:e=t===f;break;case E:if(!(e=t===f))return e=!1;break;case A:if(t!==f)return e}return this.LB8a&&(e=!1),!this.LB21a||this.curClass!==g&&this.curClass!==p?this.LB21a=this.curClass===b:(e=!1,this.LB21a=!1),this.curClass===w?(this.LB30a++,2==this.LB30a&&this.nextClass===w&&(e=!0,this.LB30a=0)):this.LB30a=0,this.curClass=this.nextClass,e},e.nextBreak=function(){if(null==this.curClass){var t=this.nextCharClass();this.curClass=L(t),this.nextClass=t,this.LB8a=t===d,this.LB30a=0}for(;this.pos<this.string.length;){this.lastPos=this.pos;var e=this.nextClass;if(this.nextClass=this.nextCharClass(),this.curClass===a||this.curClass===s&&this.nextClass!==u)return this.curClass=L(O(this.nextClass)),new I(this.lastPos,!0);var n=this.getSimpleBreak();if(null===n&&(n=this.getPairTableBreak(e)),this.LB8a=this.nextClass===d,n)return new I(this.lastPos)}if(this.pos>=this.string.length)return this.lastPos<this.string.length?(this.lastPos=this.string.length,new I(this.string.length)):null},t}();e.localExports=B},{"./classes":132,"./pairs":134,"base64-js":128,"unicode-trie":130}],134:[function(t,e,n){n.DI_BRK=0,n.IN_BRK=1,n.CI_BRK=2,n.CP_BRK=3,n.PR_BRK=4,n.pairTable=[[4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,4,4,4,4,4,4,4,4,4,4,4],[0,4,4,1,1,4,4,4,4,1,1,0,0,0,0,0,1,1,0,0,4,2,4,0,0,0,0,0,0,0,0,1,0],[0,4,4,1,1,4,4,4,4,1,1,1,1,1,0,0,1,1,0,0,4,2,4,0,0,0,0,0,0,0,0,1,0],[4,4,4,1,1,1,4,4,4,1,1,1,1,1,1,1,1,1,1,1,4,2,4,1,1,1,1,1,1,1,1,1,1],[1,4,4,1,1,1,4,4,4,1,1,1,1,1,1,1,1,1,1,1,4,2,4,1,1,1,1,1,1,1,1,1,1],[0,4,4,1,1,1,4,4,4,0,0,0,0,0,0,0,1,1,0,0,4,2,4,0,0,0,0,0,0,0,0,1,0],[0,4,4,1,1,1,4,4,4,0,0,0,0,0,0,1,1,1,0,0,4,2,4,0,0,0,0,0,0,0,0,1,0],[0,4,4,1,1,1,4,4,4,0,0,1,0,1,0,0,1,1,0,0,4,2,4,0,0,0,0,0,0,0,0,1,0],[0,4,4,1,1,1,4,4,4,0,0,1,1,1,0,0,1,1,0,0,4,2,4,0,0,0,0,0,0,0,0,1,0],[1,4,4,1,1,1,4,4,4,0,0,1,1,1,1,0,1,1,0,0,4,2,4,1,1,1,1,1,0,1,1,1,0],[1,4,4,1,1,1,4,4,4,0,0,1,1,1,0,0,1,1,0,0,4,2,4,0,0,0,0,0,0,0,0,1,0],[1,4,4,1,1,1,4,4,4,1,1,1,1,1,0,1,1,1,0,0,4,2,4,0,0,0,0,0,0,0,0,1,0],[1,4,4,1,1,1,4,4,4,1,1,1,1,1,0,1,1,1,0,0,4,2,4,0,0,0,0,0,0,0,0,1,0],[1,4,4,1,1,1,4,4,4,1,1,1,1,1,0,1,1,1,0,0,4,2,4,0,0,0,0,0,0,0,0,1,0],[0,4,4,1,1,1,4,4,4,0,1,0,0,0,0,1,1,1,0,0,4,2,4,0,0,0,0,0,0,0,0,1,0],[0,4,4,1,1,1,4,4,4,0,0,0,0,0,0,1,1,1,0,0,4,2,4,0,0,0,0,0,0,0,0,1,0],[0,4,4,1,0,1,4,4,4,0,0,1,0,0,0,0,1,1,0,0,4,2,4,0,0,0,0,0,0,0,0,1,0],[0,4,4,1,0,1,4,4,4,0,0,0,0,0,0,0,1,1,0,0,4,2,4,0,0,0,0,0,0,0,0,1,0],[1,4,4,1,1,1,4,4,4,1,1,1,1,1,1,1,1,1,1,1,4,2,4,1,1,1,1,1,1,1,1,1,0],[0,4,4,1,1,1,4,4,4,0,0,0,0,0,0,0,1,1,0,4,4,2,4,0,0,0,0,0,0,0,0,1,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0],[1,4,4,1,1,1,4,4,4,1,1,1,1,1,0,1,1,1,0,0,4,2,4,0,0,0,0,0,0,0,0,1,0],[1,4,4,1,1,1,4,4,4,1,1,1,1,1,1,1,1,1,1,1,4,2,4,1,1,1,1,1,1,1,1,1,1],[0,4,4,1,1,1,4,4,4,0,1,0,0,0,0,1,1,1,0,0,4,2,4,0,0,0,1,1,0,0,0,1,0],[0,4,4,1,1,1,4,4,4,0,1,0,0,0,0,1,1,1,0,0,4,2,4,0,0,0,0,1,0,0,0,1,0],[0,4,4,1,1,1,4,4,4,0,1,0,0,0,0,1,1,1,0,0,4,2,4,1,1,1,1,0,0,0,0,1,0],[0,4,4,1,1,1,4,4,4,0,1,0,0,0,0,1,1,1,0,0,4,2,4,0,0,0,1,1,0,0,0,1,0],[0,4,4,1,1,1,4,4,4,0,1,0,0,0,0,1,1,1,0,0,4,2,4,0,0,0,0,1,0,0,0,1,0],[0,4,4,1,1,1,4,4,4,0,0,0,0,0,0,0,1,1,0,0,4,2,4,0,0,0,0,0,1,0,0,1,0],[0,4,4,1,1,1,4,4,4,0,1,0,0,0,0,1,1,1,0,0,4,2,4,0,0,0,0,0,0,0,1,1,0],[0,4,4,1,1,1,4,4,4,0,1,0,0,0,0,1,1,1,0,0,4,2,4,0,0,0,0,0,0,0,0,1,0],[1,4,4,1,1,1,4,4,4,1,1,1,1,1,0,1,1,1,0,0,4,2,4,0,0,0,0,0,0,0,0,1,0],[0,4,4,1,1,0,4,4,4,0,0,0,0,0,0,0,0,0,0,0,4,2,4,0,0,0,0,0,0,0,0,1,0]]},{}],135:[function(t,e,n){(function(n){(function(){var r=t("@babel/runtime-corejs2/core-js/object/assign"),i=t("stream"),o=t("@babel/runtime-corejs2/core-js/array/is-array"),a=t("@babel/runtime-corejs2/core-js/object/keys"),s=t("zlib"),u=t("@babel/runtime-corejs2/core-js/parse-int"),c=t("@babel/runtime-corejs2/core-js/number/is-finite"),l=t("@babel/runtime-corejs2/core-js/json/stringify"),h=t("fontkit"),f=t("@babel/runtime-corejs2/core-js/object/create"),d=t("events"),p=t("linebreak"),g=t("png-js");function _(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function m(t,e,n){return(m=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function v(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,y(t,e)}function y(t,e){return(y=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function b(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function w(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return b(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var x,S,C,P,k,E,A=function(){function t(){}return t.prototype.toString=function(){throw new Error("Must be implemented by subclasses")},t}(),T=function(){function t(t){void 0===t&&(t={}),this._items={},this.limits="boolean"!=typeof t.limits||t.limits}var e=t.prototype;return e.add=function(t,e){return this._items[t]=e},e.get=function(t){return this._items[t]},e.toString=function(){var t=this,e=a(this._items).sort(function(e,n){return t._compareKeys(e,n)}),n=["<<"];if(this.limits&&e.length>1){var r=e[0],i=e[e.length-1];n.push("  /Limits "+I.convert([this._dataForKey(r),this._dataForKey(i)]))}n.push("  /"+this._keysName()+" [");for(var o,s=w(e);!(o=s()).done;){var u=o.value;n.push("    "+I.convert(this._dataForKey(u))+" "+I.convert(this._items[u]))}return n.push("]"),n.push(">>"),n.join("\n")},e._compareKeys=function(){throw new Error("Must be implemented by subclasses")},e._keysName=function(){throw new Error("Must be implemented by subclasses")},e._dataForKey=function(){throw new Error("Must be implemented by subclasses")},t}(),j=function(t,e){return(Array(e+1).join("0")+t).slice(-e)},O=/[\n\r\t\b\f()\\]/g,L={"\n":"\\n","\r":"\\r","\t":"\\t","\b":"\\b","\f":"\\f","\\":"\\\\","(":"\\(",")":"\\)"},I=function(){function t(){}return t.convert=function(e,r){if(void 0===r&&(r=null),"string"==typeof e)return"/"+e;if(e instanceof String){for(var i,a=e,s=!1,u=0,c=a.length;u<c;u++)if(a.charCodeAt(u)>127){s=!0;break}return i=s?function(t){var e=t.length;if(1&e)throw new Error("Buffer length must be even");for(var n=0,r=e-1;n<r;n+=2){var i=t[n];t[n]=t[n+1],t[n+1]=i}return t}(n.from("\ufeff"+a,"utf16le")):n.from(a.valueOf(),"ascii"),"("+(a=(a=r?r(i).toString("binary"):i.toString("binary")).replace(O,function(t){return L[t]}))+")"}if(n.isBuffer(e))return"<"+e.toString("hex")+">";if(e instanceof A||e instanceof T)return e.toString();if(e instanceof Date){var l="D:"+j(e.getUTCFullYear(),4)+j(e.getUTCMonth()+1,2)+j(e.getUTCDate(),2)+j(e.getUTCHours(),2)+j(e.getUTCMinutes(),2)+j(e.getUTCSeconds(),2)+"Z";return r&&(l=(l=r(n.from(l,"ascii")).toString("binary")).replace(O,function(t){return L[t]})),"("+l+")"}if(o(e))return"["+e.map(function(e){return t.convert(e,r)}).join(" ")+"]";if("[object Object]"==={}.toString.call(e)){var h=["<<"];for(var f in e){var d=e[f];h.push("/"+f+" "+t.convert(d,r))}return h.push(">>"),h.join("\n")}return"number"==typeof e?t.number(e):""+e},t.number=function(t){if(t>-1e21&&t<1e21)return Math.round(1e6*t)/1e6;throw new Error("unsupported number: "+t)},t}(),B=function(t){function e(e,n,r){var i;return void 0===r&&(r={}),(i=t.call(this)||this).document=e,i.id=n,i.data=r,i.gen=0,i.compress=i.document.compress&&!i.data.Filter,i.uncompressedLength=0,i.buffer=[],i}v(e,t);var r=e.prototype;return r.write=function(t){if(n.isBuffer(t)||(t=n.from(t+"\n","binary")),this.uncompressedLength+=t.length,null==this.data.Length&&(this.data.Length=0),this.buffer.push(t),this.data.Length+=t.length,this.compress)return this.data.Filter="FlateDecode"},r.end=function(t){return t&&this.write(t),this.finalize()},r.finalize=function(){this.offset=this.document._offset;var t=this.document._security?this.document._security.getEncryptFn(this.id,this.gen):null;this.buffer.length&&(this.buffer=n.concat(this.buffer),this.compress&&(this.buffer=s.deflateSync(this.buffer)),t&&(this.buffer=t(this.buffer)),this.data.Length=this.buffer.length),this.document._write(this.id+" "+this.gen+" obj"),this.document._write(I.convert(this.data,t)),this.buffer.length&&(this.document._write("stream"),this.document._write(this.buffer),this.buffer=[],this.document._write("\nendstream")),this.document._write("endobj"),this.document._refEnd(this)},r.toString=function(){return this.id+" "+this.gen+" R"},e}(A),N={top:72,left:72,bottom:72,right:72},R={"4A0":[4767.87,6740.79],"2A0":[3370.39,4767.87],A0:[2383.94,3370.39],A1:[1683.78,2383.94],A2:[1190.55,1683.78],A3:[841.89,1190.55],A4:[595.28,841.89],A5:[419.53,595.28],A6:[297.64,419.53],A7:[209.76,297.64],A8:[147.4,209.76],A9:[104.88,147.4],A10:[73.7,104.88],B0:[2834.65,4008.19],B1:[2004.09,2834.65],B2:[1417.32,2004.09],B3:[1000.63,1417.32],B4:[708.66,1000.63],B5:[498.9,708.66],B6:[354.33,498.9],B7:[249.45,354.33],B8:[175.75,249.45],B9:[124.72,175.75],B10:[87.87,124.72],C0:[2599.37,3676.54],C1:[1836.85,2599.37],C2:[1298.27,1836.85],C3:[918.43,1298.27],C4:[649.13,918.43],C5:[459.21,649.13],C6:[323.15,459.21],C7:[229.61,323.15],C8:[161.57,229.61],C9:[113.39,161.57],C10:[79.37,113.39],RA0:[2437.8,3458.27],RA1:[1729.13,2437.8],RA2:[1218.9,1729.13],RA3:[864.57,1218.9],RA4:[609.45,864.57],SRA0:[2551.18,3628.35],SRA1:[1814.17,2551.18],SRA2:[1275.59,1814.17],SRA3:[907.09,1275.59],SRA4:[637.8,907.09],EXECUTIVE:[521.86,756],FOLIO:[612,936],LEGAL:[612,1008],LETTER:[612,792],TABLOID:[792,1224]},D=function(){function t(t,e){void 0===e&&(e={}),this.document=t,this.size=e.size||"letter",this.layout=e.layout||"portrait","number"==typeof e.margin?this.margins={top:e.margin,left:e.margin,bottom:e.margin,right:e.margin}:(this.margins=e.margins||N,this.margins={top:this.margins.top,left:this.margins.left,bottom:this.margins.bottom,right:this.margins.right});var n=o(this.size)?this.size:R[this.size.toUpperCase()];this.width=n["portrait"===this.layout?0:1],this.height=n["portrait"===this.layout?1:0],this.content=this.document.ref(),this.resources=this.document.ref({ProcSet:["PDF","Text","ImageB","ImageC","ImageI"]}),this.dictionary=this.document.ref({Type:"Page",Parent:this.document._root.data.Pages,MediaBox:[0,0,this.width,this.height],Contents:this.content,Resources:this.resources,Tabs:"S"}),this.markings=[]}var e,n,r,i=t.prototype;return i.maxY=function(){return this.height-this.margins.bottom},i.write=function(t){return this.content.write(t)},i.end=function(){return this.dictionary.end(),this.resources.end(),this.content.end()},e=t,(n=[{key:"fonts",get:function(){var t=this.resources.data;return null!=t.Font?t.Font:t.Font={}}},{key:"xobjects",get:function(){var t=this.resources.data;return null!=t.XObject?t.XObject:t.XObject={}}},{key:"ext_gstates",get:function(){var t=this.resources.data;return null!=t.ExtGState?t.ExtGState:t.ExtGState={}}},{key:"patterns",get:function(){var t=this.resources.data;return null!=t.Pattern?t.Pattern:t.Pattern={}}},{key:"colorSpaces",get:function(){var t=this.resources.data;return t.ColorSpace||(t.ColorSpace={})}},{key:"annotations",get:function(){var t=this.dictionary.data;return null!=t.Annots?t.Annots:t.Annots=[]}},{key:"structParentTreeKey",get:function(){var t=this.dictionary.data;return null!=t.StructParents?t.StructParents:t.StructParents=this.document.createStructParentTreeNextKey()}}])&&_(e.prototype,n),r&&_(e,r),t}(),M=function(t){function e(){return t.apply(this,arguments)||this}v(e,t);var n=e.prototype;return n._compareKeys=function(t,e){return t.localeCompare(e)},n._keysName=function(){return"Names"},n._dataForKey=function(t){return new String(t)},e}(T),z=I.number,F=function(){function t(t){this.doc=t,this.stops=[],this.embedded=!1,this.transform=[1,0,0,1,0,0]}var e=t.prototype;return e.stop=function(t,e,n){if(null==n&&(n=1),e=this.doc._normalizeColor(e),0===this.stops.length)if(3===e.length)this._colorSpace="DeviceRGB";else if(4===e.length)this._colorSpace="DeviceCMYK";else{if(1!==e.length)throw new Error("Unknown color space");this._colorSpace="DeviceGray"}else if("DeviceRGB"===this._colorSpace&&3!==e.length||"DeviceCMYK"===this._colorSpace&&4!==e.length||"DeviceGray"===this._colorSpace&&1!==e.length)throw new Error("All gradient stops must use the same color space");return n=Math.max(0,Math.min(1,n)),this.stops.push([t,e,n]),this},e.setTransform=function(t,e,n,r,i,o){return this.transform=[t,e,n,r,i,o],this},e.embed=function(t){var e,n=this.stops.length;if(0!==n){this.embedded=!0,this.matrix=t;var r=this.stops[n-1];r[0]<1&&this.stops.push([1,r[1],r[2]]);for(var i=[],o=[],a=[],s=0;s<n-1;s++)o.push(0,1),s+2!==n&&i.push(this.stops[s+1][0]),e=this.doc.ref({FunctionType:2,Domain:[0,1],C0:this.stops[s+0][1],C1:this.stops[s+1][1],N:1}),a.push(e),e.end();1===n?e=a[0]:(e=this.doc.ref({FunctionType:3,Domain:[0,1],Functions:a,Bounds:i,Encode:o})).end(),this.id="Sh"+ ++this.doc._gradCount;var u=this.shader(e);u.end();var c=this.doc.ref({Type:"Pattern",PatternType:2,Shading:u,Matrix:this.matrix.map(z)});if(c.end(),this.stops.some(function(t){return t[2]<1})){var l=this.opacityGradient();l._colorSpace="DeviceGray";for(var h,f=w(this.stops);!(h=f()).done;){var d=h.value;l.stop(d[0],[d[2]])}l=l.embed(this.matrix);var p=[0,0,this.doc.page.width,this.doc.page.height],g=this.doc.ref({Type:"XObject",Subtype:"Form",FormType:1,BBox:p,Group:{Type:"Group",S:"Transparency",CS:"DeviceGray"},Resources:{ProcSet:["PDF","Text","ImageB","ImageC","ImageI"],Pattern:{Sh1:l}}});g.write("/Pattern cs /Sh1 scn"),g.end(p.join(" ")+" re f");var _=this.doc.ref({Type:"ExtGState",SMask:{Type:"Mask",S:"Luminosity",G:g}});_.end();var m=this.doc.ref({Type:"Pattern",PatternType:1,PaintType:1,TilingType:2,BBox:p,XStep:p[2],YStep:p[3],Resources:{ProcSet:["PDF","Text","ImageB","ImageC","ImageI"],Pattern:{Sh1:c},ExtGState:{Gs1:_}}});m.write("/Gs1 gs /Pattern cs /Sh1 scn"),m.end(p.join(" ")+" re f"),this.doc.page.patterns[this.id]=m}else this.doc.page.patterns[this.id]=c;return c}},e.apply=function(t){var e=this.doc._ctm,n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],u=this.transform,c=u[0],l=u[1],h=u[2],f=u[3],d=u[4],p=u[5],g=[n*c+i*l,r*c+o*l,n*h+i*f,r*h+o*f,n*d+i*p+a,r*d+o*p+s];this.embedded&&g.join(" ")===this.matrix.join(" ")||this.embed(g),this.doc._setColorSpace("Pattern",t);var _=t?"SCN":"scn";return this.doc.addContent("/"+this.id+" "+_)},t}(),U={PDFGradient:F,PDFLinearGradient:function(t){function e(e,n,r,i,o){var a;return(a=t.call(this,e)||this).x1=n,a.y1=r,a.x2=i,a.y2=o,a}v(e,t);var n=e.prototype;return n.shader=function(t){return this.doc.ref({ShadingType:2,ColorSpace:this._colorSpace,Coords:[this.x1,this.y1,this.x2,this.y2],Function:t,Extend:[!0,!0]})},n.opacityGradient=function(){return new e(this.doc,this.x1,this.y1,this.x2,this.y2)},e}(F),PDFRadialGradient:function(t){function e(e,n,r,i,o,a,s){var u;return(u=t.call(this,e)||this).doc=e,u.x1=n,u.y1=r,u.r1=i,u.x2=o,u.y2=a,u.r2=s,u}v(e,t);var n=e.prototype;return n.shader=function(t){return this.doc.ref({ShadingType:3,ColorSpace:this._colorSpace,Coords:[this.x1,this.y1,this.r1,this.x2,this.y2,this.r2],Function:t,Extend:[!0,!0]})},n.opacityGradient=function(){return new e(this.doc,this.x1,this.y1,this.r1,this.x2,this.y2,this.r2)},e}(F)},q=U.PDFGradient,H=U.PDFLinearGradient,G=U.PDFRadialGradient,W={initColor:function(){return this._opacityRegistry={},this._opacityCount=0,this._patternCount=0,this._gradCount=0},_normalizeColor:function(t){if("string"==typeof t)if("#"===t.charAt(0)){4===t.length&&(t=t.replace(/#([0-9A-F])([0-9A-F])([0-9A-F])/i,"#$1$1$2$2$3$3"));var e=u(t.slice(1),16);t=[e>>16,e>>8&255,255&e]}else Z[t]&&(t=Z[t]);return o(t)?(3===t.length?t=t.map(function(t){return t/255}):4===t.length&&(t=t.map(function(t){return t/100})),t):null},_setColor:function(t,e){return t instanceof q?(t.apply(e),!0):this._setColorCore(t,e)},_setColorCore:function(t,e){if(!(t=this._normalizeColor(t)))return!1;var n=e?"SCN":"scn",r=this._getColorSpace(t);return this._setColorSpace(r,e),t=t.join(" "),this.addContent(t+" "+n),!0},_setColorSpace:function(t,e){var n=e?"CS":"cs";return this.addContent("/"+t+" "+n)},_getColorSpace:function(t){return 4===t.length?"DeviceCMYK":"DeviceRGB"},fillColor:function(t,e){return this._setColor(t,!1)&&this.fillOpacity(e),this._fillColor=[t,e],this},strokeColor:function(t,e){return this._setColor(t,!0)&&this.strokeOpacity(e),this},opacity:function(t){return this._doOpacity(t,t),this},fillOpacity:function(t){return this._doOpacity(t,null),this},strokeOpacity:function(t){return this._doOpacity(null,t),this},_doOpacity:function(t,e){var n,r;if(null!=t||null!=e){null!=t&&(t=Math.max(0,Math.min(1,t))),null!=e&&(e=Math.max(0,Math.min(1,e)));var i=t+"_"+e;if(this._opacityRegistry[i]){var o=this._opacityRegistry[i];n=o[0],r=o[1]}else n={Type:"ExtGState"},null!=t&&(n.ca=t),null!=e&&(n.CA=e),(n=this.ref(n)).end(),r="Gs"+ ++this._opacityCount,this._opacityRegistry[i]=[n,r];return this.page.ext_gstates[r]=n,this.addContent("/"+r+" gs")}},linearGradient:function(t,e,n,r){return new H(this,t,e,n,r)},radialGradient:function(t,e,n,r,i,o){return new G(this,t,e,n,r,i,o)}},Z={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],grey:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};x=S=C=P=k=E=0;var V={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0},X={M:function(t,e){return x=e[0],S=e[1],C=P=null,k=x,E=S,t.moveTo(x,S)},m:function(t,e){return x+=e[0],S+=e[1],C=P=null,k=x,E=S,t.moveTo(x,S)},C:function(t,e){return x=e[4],S=e[5],C=e[2],P=e[3],t.bezierCurveTo.apply(t,e)},c:function(t,e){return t.bezierCurveTo(e[0]+x,e[1]+S,e[2]+x,e[3]+S,e[4]+x,e[5]+S),C=x+e[2],P=S+e[3],x+=e[4],S+=e[5]},S:function(t,e){return null===C&&(C=x,P=S),t.bezierCurveTo(x-(C-x),S-(P-S),e[0],e[1],e[2],e[3]),C=e[0],P=e[1],x=e[2],S=e[3]},s:function(t,e){return null===C&&(C=x,P=S),t.bezierCurveTo(x-(C-x),S-(P-S),x+e[0],S+e[1],x+e[2],S+e[3]),C=x+e[0],P=S+e[1],x+=e[2],S+=e[3]},Q:function(t,e){return C=e[0],P=e[1],x=e[2],S=e[3],t.quadraticCurveTo(e[0],e[1],x,S)},q:function(t,e){return t.quadraticCurveTo(e[0]+x,e[1]+S,e[2]+x,e[3]+S),C=x+e[0],P=S+e[1],x+=e[2],S+=e[3]},T:function(t,e){return null===C?(C=x,P=S):(C=x-(C-x),P=S-(P-S)),t.quadraticCurveTo(C,P,e[0],e[1]),C=x-(C-x),P=S-(P-S),x=e[0],S=e[1]},t:function(t,e){return null===C?(C=x,P=S):(C=x-(C-x),P=S-(P-S)),t.quadraticCurveTo(C,P,x+e[0],S+e[1]),x+=e[0],S+=e[1]},A:function(t,e){return Y(t,x,S,e),x=e[5],S=e[6]},a:function(t,e){return e[5]+=x,e[6]+=S,Y(t,x,S,e),x=e[5],S=e[6]},L:function(t,e){return x=e[0],S=e[1],C=P=null,t.lineTo(x,S)},l:function(t,e){return x+=e[0],S+=e[1],C=P=null,t.lineTo(x,S)},H:function(t,e){return x=e[0],C=P=null,t.lineTo(x,S)},h:function(t,e){return x+=e[0],C=P=null,t.lineTo(x,S)},V:function(t,e){return S=e[0],C=P=null,t.lineTo(x,S)},v:function(t,e){return S+=e[0],C=P=null,t.lineTo(x,S)},Z:function(t){return t.closePath(),x=k,S=E},z:function(t){return t.closePath(),x=k,S=E}},Y=function(t,e,n,r){for(var i,o=r[0],a=r[1],s=r[2],u=r[3],c=r[4],l=r[5],h=r[6],f=w(K(l,h,o,a,u,c,s,e,n));!(i=f()).done;){var d=i.value,p=J.apply(void 0,d);t.bezierCurveTo.apply(t,p)}},K=function(t,e,n,r,i,o,a,s,u){var c=a*(Math.PI/180),l=Math.sin(c),h=Math.cos(c);n=Math.abs(n),r=Math.abs(r);var f=(C=h*(s-t)*.5+l*(u-e)*.5)*C/(n*n)+(P=h*(u-e)*.5-l*(s-t)*.5)*P/(r*r);f>1&&(n*=f=Math.sqrt(f),r*=f);var d=h/n,p=l/n,g=-l/r,_=h/r,m=d*s+p*u,v=g*s+_*u,y=d*t+p*e,b=g*t+_*e,w=1/((y-m)*(y-m)+(b-v)*(b-v))-.25;w<0&&(w=0);var x=Math.sqrt(w);o===i&&(x=-x);var S=.5*(m+y)-x*(b-v),k=.5*(v+b)+x*(y-m),E=Math.atan2(v-k,m-S),A=Math.atan2(b-k,y-S)-E;A<0&&1===o?A+=2*Math.PI:A>0&&0===o&&(A-=2*Math.PI);for(var T=Math.ceil(Math.abs(A/(.5*Math.PI+.001))),j=[],O=0;O<T;O++){var L=E+O*A/T,I=E+(O+1)*A/T;j[O]=[S,k,L,I,n,r,l,h]}return j},J=function(t,e,n,r,i,o,a,s){var u=s*i,c=-a*o,l=a*i,h=s*o,f=.5*(r-n),d=8/3*Math.sin(.5*f)*Math.sin(.5*f)/Math.sin(f),p=t+Math.cos(n)-d*Math.sin(n),g=e+Math.sin(n)+d*Math.cos(n),_=t+Math.cos(r),m=e+Math.sin(r),v=_+d*Math.sin(r),y=m-d*Math.cos(r);return[u*p+c*g,l*p+h*g,u*v+c*y,l*v+h*y,u*_+c*m,l*_+h*m]},Q=function(){function t(){}return t.apply=function(t,e){!function(t,e){x=S=C=P=k=E=0;for(var n=0;n<t.length;n++){var r=t[n];"function"==typeof X[r.cmd]&&X[r.cmd](e,r.args)}}(function(t){for(var e,n,r=[],i=[],o="",a=!1,s=0,u=w(t);!(n=u()).done;){var c=n.value;if(null!=V[c])s=V[c],e&&(o.length>0&&(i[i.length]=+o),r[r.length]={cmd:e,args:i},i=[],o="",a=!1),e=c;else if(-1!==[" ",","].indexOf(c)||"-"===c&&o.length>0&&"e"!==o[o.length-1]||"."===c&&a){if(0===o.length)continue;i.length===s?(r[r.length]={cmd:e,args:i},i=[+o],"M"===e&&(e="L"),"m"===e&&(e="l")):i[i.length]=+o,a="."===c,o=-1!==["-","."].indexOf(c)?c:""}else o+=c,"."===c&&(a=!0)}return o.length>0&&(i.length===s?(r[r.length]={cmd:e,args:i},i=[+o],"M"===e&&(e="L"),"m"===e&&(e="l")):i[i.length]=+o),r[r.length]={cmd:e,args:i},r}(e),t)},t}(),$=I.number,tt=(Math.sqrt(2)-1)/3*4,et={initVector:function(){return this._ctm=[1,0,0,1,0,0],this._ctmStack=[]},save:function(){return this._ctmStack.push(this._ctm.slice()),this.addContent("q")},restore:function(){return this._ctm=this._ctmStack.pop()||[1,0,0,1,0,0],this.addContent("Q")},closePath:function(){return this.addContent("h")},lineWidth:function(t){return this.addContent($(t)+" w")},_CAP_STYLES:{BUTT:0,ROUND:1,SQUARE:2},lineCap:function(t){return"string"==typeof t&&(t=this._CAP_STYLES[t.toUpperCase()]),this.addContent(t+" J")},_JOIN_STYLES:{MITER:0,ROUND:1,BEVEL:2},lineJoin:function(t){return"string"==typeof t&&(t=this._JOIN_STYLES[t.toUpperCase()]),this.addContent(t+" j")},miterLimit:function(t){return this.addContent($(t)+" M")},dash:function(t,e){void 0===e&&(e={});var n=t;if(o(t)||(t=[t,e.space||t]),!t.every(function(t){return c(t)&&t>0}))throw new Error("dash("+l(n)+", "+l(e)+") invalid, lengths must be numeric and greater than zero");return t=t.map($).join(" "),this.addContent("["+t+"] "+$(e.phase||0)+" d")},undash:function(){return this.addContent("[] 0 d")},moveTo:function(t,e){return this.addContent($(t)+" "+$(e)+" m")},lineTo:function(t,e){return this.addContent($(t)+" "+$(e)+" l")},bezierCurveTo:function(t,e,n,r,i,o){return this.addContent($(t)+" "+$(e)+" "+$(n)+" "+$(r)+" "+$(i)+" "+$(o)+" c")},quadraticCurveTo:function(t,e,n,r){return this.addContent($(t)+" "+$(e)+" "+$(n)+" "+$(r)+" v")},rect:function(t,e,n,r){return this.addContent($(t)+" "+$(e)+" "+$(n)+" "+$(r)+" re")},roundedRect:function(t,e,n,r,i){null==i&&(i=0);var o=(i=Math.min(i,.5*n,.5*r))*(1-tt);return this.moveTo(t+i,e),this.lineTo(t+n-i,e),this.bezierCurveTo(t+n-o,e,t+n,e+o,t+n,e+i),this.lineTo(t+n,e+r-i),this.bezierCurveTo(t+n,e+r-o,t+n-o,e+r,t+n-i,e+r),this.lineTo(t+i,e+r),this.bezierCurveTo(t+o,e+r,t,e+r-o,t,e+r-i),this.lineTo(t,e+i),this.bezierCurveTo(t,e+o,t+o,e,t+i,e),this.closePath()},ellipse:function(t,e,n,r){null==r&&(r=n);var i=n*tt,o=r*tt,a=(t-=n)+2*n,s=(e-=r)+2*r,u=t+n,c=e+r;return this.moveTo(t,c),this.bezierCurveTo(t,c-o,u-i,e,u,e),this.bezierCurveTo(u+i,e,a,c-o,a,c),this.bezierCurveTo(a,c+o,u+i,s,u,s),this.bezierCurveTo(u-i,s,t,c+o,t,c),this.closePath()},circle:function(t,e,n){return this.ellipse(t,e,n)},arc:function(t,e,n,r,i,o){null==o&&(o=!1);var a=2*Math.PI,s=.5*Math.PI,u=i-r;Math.abs(u)>a?u=a:0!==u&&o!==u<0&&(u=(o?-1:1)*a+u);var c=Math.ceil(Math.abs(u)/s),l=u/c,h=l/s*tt*n,f=r,d=-Math.sin(f)*h,p=Math.cos(f)*h,g=t+Math.cos(f)*n,_=e+Math.sin(f)*n;this.moveTo(g,_);for(var m=0;m<c;m++){var v=g+d,y=_+p;f+=l,g=t+Math.cos(f)*n,_=e+Math.sin(f)*n;var b=g-(d=-Math.sin(f)*h),w=_-(p=Math.cos(f)*h);this.bezierCurveTo(v,y,b,w,g,_)}return this},polygon:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];this.moveTo.apply(this,e.shift()||[]);for(var r=0,i=e;r<i.length;r++){var o=i[r];this.lineTo.apply(this,o||[])}return this.closePath()},path:function(t){return Q.apply(this,t),this},_windingRule:function(t){return/even-?odd/.test(t)?"*":""},fill:function(t,e){return/(even-?odd)|(non-?zero)/.test(t)&&(e=t,t=null),t&&this.fillColor(t),this.addContent("f"+this._windingRule(e))},stroke:function(t){return t&&this.strokeColor(t),this.addContent("S")},fillAndStroke:function(t,e,n){null==e&&(e=t);var r=/(even-?odd)|(non-?zero)/;return r.test(t)&&(n=t,t=null),r.test(e)&&(n=e,e=t),t&&(this.fillColor(t),this.strokeColor(e)),this.addContent("B"+this._windingRule(n))},clip:function(t){return this.addContent("W"+this._windingRule(t)+" n")},transform:function(t,e,n,r,i,o){var a=this._ctm,s=a[0],u=a[1],c=a[2],l=a[3],h=a[4],f=a[5];a[0]=s*t+c*e,a[1]=u*t+l*e,a[2]=s*n+c*r,a[3]=u*n+l*r,a[4]=s*i+c*o+h,a[5]=u*i+l*o+f;var d=[t,e,n,r,i,o].map(function(t){return $(t)}).join(" ");return this.addContent(d+" cm")},translate:function(t,e){return this.transform(1,0,0,1,t,e)},rotate:function(t,e){var n;void 0===e&&(e={});var r=t*Math.PI/180,i=Math.cos(r),o=Math.sin(r),a=n=0;if(null!=e.origin){var s=e.origin,u=(a=s[0])*o+(n=s[1])*i;a-=a*i-n*o,n-=u}return this.transform(i,o,-o,i,a,n)},scale:function(t,e,n){var r;void 0===n&&(n={}),null==e&&(e=t),"object"==typeof e&&(n=e,e=t);var i=r=0;if(null!=n.origin){var o=n.origin;i=o[0],r=o[1],i-=t*i,r-=e*r}return this.transform(t,0,0,e,i,r)}},nt={402:131,8211:150,8212:151,8216:145,8217:146,8218:130,8220:147,8221:148,8222:132,8224:134,8225:135,8226:149,8230:133,8364:128,8240:137,8249:139,8250:155,710:136,8482:153,338:140,339:156,732:152,352:138,353:154,376:159,381:142,382:158},rt="space:exclam:quotedbl:numbersign:dollar:percent:ampersand:quoteright:parenleft:parenright:asterisk:plus:comma:hyphen:period:slash:zero:one:two:three:four:five:six:seven:eight:nine:colon:semicolon:less:equal:greater:question:at:A:B:C:D:E:F:G:H:I:J:K:L:M:N:O:P:Q:R:S:T:U:V:W:X:Y:Z:bracketleft:backslash:bracketright:asciicircum:underscore:quoteleft:a:b:c:d:e:f:g:h:i:j:k:l:m:n:o:p:q:r:s:t:u:v:w:x:y:z:braceleft:bar:braceright:asciitilde:exclamdown:cent:sterling:fraction:yen:florin:section:currency:quotesingle:quotedblleft:guillemotleft:guilsinglleft:guilsinglright:fi:fl:endash:dagger:daggerdbl:periodcentered:paragraph:bullet:quotesinglbase:quotedblbase:quotedblright:guillemotright:ellipsis:perthousand:questiondown:grave:acute:circumflex:tilde:macron:breve:dotaccent:dieresis:ring:cedilla:hungarumlaut:ogonek:caron:emdash:AE:ordfeminine:Lslash:Oslash:OE:ordmasculine:ae:dotlessi:lslash:oslash:oe:germandbls:Idieresis:eacute:abreve:uhungarumlaut:ecaron:Ydieresis:divide:Yacute:Acircumflex:aacute:Ucircumflex:yacute:scommaaccent:ecircumflex:Uring:Udieresis:aogonek:Uacute:uogonek:Edieresis:Dcroat:commaaccent:copyright:Emacron:ccaron:aring:Ncommaaccent:lacute:agrave:Tcommaaccent:Cacute:atilde:Edotaccent:scaron:scedilla:iacute:lozenge:Rcaron:Gcommaaccent:ucircumflex:acircumflex:Amacron:rcaron:ccedilla:Zdotaccent:Thorn:Omacron:Racute:Sacute:dcaron:Umacron:uring:threesuperior:Ograve:Agrave:Abreve:multiply:uacute:Tcaron:partialdiff:ydieresis:Nacute:icircumflex:Ecircumflex:adieresis:edieresis:cacute:nacute:umacron:Ncaron:Iacute:plusminus:brokenbar:registered:Gbreve:Idotaccent:summation:Egrave:racute:omacron:Zacute:Zcaron:greaterequal:Eth:Ccedilla:lcommaaccent:tcaron:eogonek:Uogonek:Aacute:Adieresis:egrave:zacute:iogonek:Oacute:oacute:amacron:sacute:idieresis:Ocircumflex:Ugrave:Delta:thorn:twosuperior:Odieresis:mu:igrave:ohungarumlaut:Eogonek:dcroat:threequarters:Scedilla:lcaron:Kcommaaccent:Lacute:trademark:edotaccent:Igrave:Imacron:Lcaron:onehalf:lessequal:ocircumflex:ntilde:Uhungarumlaut:Eacute:emacron:gbreve:onequarter:Scaron:Scommaaccent:Ohungarumlaut:degree:ograve:Ccaron:ugrave:radical:Dcaron:rcommaaccent:Ntilde:otilde:Rcommaaccent:Lcommaaccent:Atilde:Aogonek:Aring:Otilde:zdotaccent:Ecaron:Iogonek:kcommaaccent:minus:Icircumflex:ncaron:tcommaaccent:logicalnot:odieresis:udieresis:notequal:gcommaaccent:eth:zcaron:ncommaaccent:onesuperior:imacron:Euro:universal:existential:suchthat:asteriskmath:congruent:Alpha:Beta:Chi:Epsilon:Phi:Gamma:Eta:Iota:theta1:Kappa:Lambda:Mu:Nu:Omicron:Pi:Theta:Rho:Sigma:Tau:Upsilon:sigma1:Omega:Xi:Psi:Zeta:therefore:perpendicular:radicalex:alpha:beta:chi:delta:epsilon:phi:gamma:eta:iota:phi1:kappa:lambda:nu:omicron:pi:theta:rho:sigma:tau:upsilon:omega1:omega:xi:psi:zeta:similar:Upsilon1:minute:infinity:club:diamond:heart:spade:arrowboth:arrowleft:arrowup:arrowright:arrowdown:second:proportional:equivalence:approxequal:arrowvertex:arrowhorizex:carriagereturn:aleph:Ifraktur:Rfraktur:weierstrass:circlemultiply:circleplus:emptyset:intersection:union:propersuperset:reflexsuperset:notsubset:propersubset:reflexsubset:element:notelement:angle:gradient:registerserif:copyrightserif:trademarkserif:product:dotmath:logicaland:logicalor:arrowdblboth:arrowdblleft:arrowdblup:arrowdblright:arrowdbldown:angleleft:registersans:copyrightsans:trademarksans:parenlefttp:parenleftex:parenleftbt:bracketlefttp:bracketleftex:bracketleftbt:bracelefttp:braceleftmid:braceleftbt:braceex:angleright:integral:integraltp:integralex:integralbt:parenrighttp:parenrightex:parenrightbt:bracketrighttp:bracketrightex:bracketrightbt:bracerighttp:bracerightmid:bracerightbt:apple:a1:a2:a202:a3:a4:a5:a119:a118:a117:a11:a12:a13:a14:a15:a16:a105:a17:a18:a19:a20:a21:a22:a23:a24:a25:a26:a27:a28:a6:a7:a8:a9:a10:a29:a30:a31:a32:a33:a34:a35:a36:a37:a38:a39:a40:a41:a42:a43:a44:a45:a46:a47:a48:a49:a50:a51:a52:a53:a54:a55:a56:a57:a58:a59:a60:a61:a62:a63:a64:a65:a66:a67:a68:a69:a70:a71:a72:a73:a74:a203:a75:a204:a76:a77:a78:a79:a81:a82:a83:a84:a97:a98:a99:a100:a89:a90:a93:a94:a91:a92:a205:a85:a206:a86:a87:a88:a95:a96:a101:a102:a103:a104:a106:a107:a108:a112:a111:a110:a109:a120:a121:a122:a123:a124:a125:a126:a127:a128:a129:a130:a131:a132:a133:a134:a135:a136:a137:a138:a139:a140:a141:a142:a143:a144:a145:a146:a147:a148:a149:a150:a151:a152:a153:a154:a155:a156:a157:a158:a159:a160:a161:a163:a164:a196:a165:a192:a166:a167:a168:a169:a170:a171:a172:a173:a162:a174:a175:a176:a177:a178:a179:a193:a180:a199:a181:a200:a182:a201:a183:a184:a197:a185:a194:a198:a186:a195:a187:a188:a189:a190:a191".split(":"),it=".notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef space exclam quotedbl numbersign dollar percent ampersand quotesingle parenleft parenright asterisk plus comma hyphen period slash zero one two three four five six seven eight nine colon semicolon less equal greater question at A B C D E F G H I J K L M N O P Q R S T U V W X Y Z bracketleft backslash bracketright asciicircum underscore grave a b c d e f g h i j k l m n o p q r s t u v w x y z braceleft bar braceright asciitilde .notdef Euro .notdef quotesinglbase florin quotedblbase ellipsis dagger daggerdbl circumflex perthousand Scaron guilsinglleft OE .notdef Zcaron .notdef .notdef quoteleft quoteright quotedblleft quotedblright bullet endash emdash tilde trademark scaron guilsinglright oe .notdef zcaron ydieresis space exclamdown cent sterling currency yen brokenbar section dieresis copyright ordfeminine guillemotleft logicalnot hyphen registered macron degree plusminus twosuperior threesuperior acute mu paragraph periodcentered cedilla onesuperior ordmasculine guillemotright onequarter onehalf threequarters questiondown Agrave Aacute Acircumflex Atilde Adieresis Aring AE Ccedilla Egrave Eacute Ecircumflex Edieresis Igrave Iacute Icircumflex Idieresis Eth Ntilde Ograve Oacute Ocircumflex Otilde Odieresis multiply Oslash Ugrave Uacute Ucircumflex Udieresis Yacute Thorn germandbls agrave aacute acircumflex atilde adieresis aring ae ccedilla egrave eacute ecircumflex edieresis igrave iacute icircumflex idieresis eth ntilde ograve oacute ocircumflex otilde odieresis divide oslash ugrave uacute ucircumflex udieresis yacute thorn ydieresis".split(" "),ot=function(){function t(t){this.contents=t,this.bbox=this._parseFontBBox(t[1]),this.capHeight=t[2],this.xHeight=t[3],this.ascender=t[4],this.descender=t[5],this.glyphWidths=this._parseGlyphWidths(t[6]),this.charWidths=this._getCharWidths(),this.kernPairs=this._parseKerningPairs(t[7]),this.lineGap=this.bbox[3]-this.bbox[1]-(this.ascender-this.descender)}var e=t.prototype;return e.encodeText=function(t){for(var e=[],n=0,r=t.length;n<r;n++){var i=t.charCodeAt(n);i=nt[i]||i,e.push(i.toString(16))}return e},e.glyphsForString=function(t){for(var e=[],n=0,r=t.length;n<r;n++){var i=t.charCodeAt(n);e.push(this.characterToGlyph(i))}return e},e.characterToGlyph=function(t){return it[nt[t]||t]||".notdef"},e.widthOfGlyph=function(t){return this.glyphWidths[t]||0},e.getKernPair=function(t,e){return this.kernPairs[t+"\0"+e]||0},e.advancesForGlyphs=function(t){for(var e=[],n=0;n<t.length;n++){var r=t[n],i=t[n+1];e.push(this.widthOfGlyph(r)+this.getKernPair(r,i))}return e},e._parseFontBBox=function(t){for(var e=t.split(":"),n=[],r=0,i=e.length;r<i;r++)n.push(u(e[r]));return n},e._getCharWidths=function(){for(var t=[],e=0;e<=255;e++)t.push(this.glyphWidths[it[e]]);return t},e._parseGlyphWidths=function(t){var e=t.split(","),n={};if(1==e.length)for(var r=e[0].match(/(^\d+)-(\d+):(\d+)$/),i=u(r[1]),o=u(r[2]),a=u(r[3]),s=i;s<=o;s++)n[rt[s]]=a;else for(var c=0,l=0,h=e.length;l<h;l++){var f=e[l].split(":"),d=void 0;1===f.length?d=u(f[0]):(c=u(f[0]),d=u(f[1])),n[rt[c++]]=d}return n},e._parseKerningPairs=function(t){return{}},t}(),at=function(){function t(){}var e=t.prototype;return e.encode=function(){throw new Error("Must be implemented by subclasses")},e.widthOfString=function(){throw new Error("Must be implemented by subclasses")},e.ref=function(){return null!=this.dictionary?this.dictionary:this.dictionary=this.document.ref()},e.finalize=function(){if(!this.embedded&&null!=this.dictionary)return this.embed(),this.embedded=!0},e.embed=function(){throw new Error("Must be implemented by subclasses")},e.getAscender=function(t){return this.ascender/1e3*t},e.getBBox=function(t){return{llx:this.bbox[0]/1e3*t,lly:this.bbox[1]/1e3*t,urx:this.bbox[2]/1e3*t,ury:this.bbox[3]/1e3*t}},e.lineHeight=function(t,e){null==e&&(e=!1);var n=e?this.lineGap:0;return(this.ascender+n-this.descender)/1e3*t},t}(),st={Courier:function(){return'0, "-23:-250:715:805", 562, 426, 629, -157, "0-314:600"'},"Courier-Bold":function(){return'0, "-113:-250:749:801", 562, 439, 629, -157, "0-314:600"'},"Courier-Oblique":function(){return'-12, "-27:-250:849:805", 562, 426, 629, -157, "0-314:600"'},"Courier-BoldOblique":function(){return'-12, "-57:-250:869:801", 562, 439, 629, -157, "0-314:600"'},Helvetica:function(){return'0, "-166:-225:1000:931", 718, 523, 718, -207, "278,278,355,556,556,889,667,222,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,278,278,584,584,584,556,1015,667,667,722,722,667,611,778,722,278,500,667,556,833,722,778,667,778,722,667,611,722,667,944,667,667,611,278,278,278,469,556,222,556,556,500,556,556,278,556,556,222,222,500,222,833,556,556,556,556,333,500,278,556,500,722,500,500,500,334,260,334,584,333,556,556,167,556,556,556,556,191,333,556,333,333,500,500,556,556,556,278,537,350,222,333,333,556,1000,1000,611,333,333,333,333,333,333,333,333,333,333,333,333,333,1000,1000,370,556,778,1000,365,889,278,222,611,944,611,278,556,556,556,556,667,584,667,667,556,722,500,500,556,722,722,556,722,556,667,722,250,737,667,500,556,722,222,556,611,722,556,667,500,500,278,471,722,778,556,556,667,333,500,611,667,778,722,667,643,722,556,333,778,667,667,584,556,611,476,500,722,278,667,556,556,500,556,556,722,278,584,260,737,778,278,600,667,333,556,611,611,549,722,722,222,317,556,722,667,667,556,500,222,778,556,556,500,278,778,722,612,556,333,778,556,278,556,667,556,834,667,299,667,556,1000,556,278,278,556,834,549,556,556,722,667,556,556,834,667,667,778,400,556,722,556,453,722,333,722,556,722,556,667,667,667,778,500,667,278,500,584,278,556,278,584,556,556,549,556,556,500,556,333,278,556"'},"Helvetica-Bold":function(){return'0, "-170:-228:1003:962", 718, 532, 718, -207, "278,333,474,556,556,889,722,278,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,333,333,584,584,584,611,975,722,722,722,722,667,611,778,722,278,556,722,611,833,722,778,667,778,722,667,611,722,667,944,667,667,611,333,278,333,584,556,278,556,611,556,611,556,333,611,611,278,278,556,278,889,611,611,611,611,389,556,333,611,556,778,556,556,500,389,280,389,584,333,556,556,167,556,556,556,556,238,500,556,333,333,611,611,556,556,556,278,556,350,278,500,500,556,1000,1000,611,333,333,333,333,333,333,333,333,333,333,333,333,333,1000,1000,370,611,778,1000,365,889,278,278,611,944,611,278,556,556,611,556,667,584,667,722,556,722,556,556,556,722,722,556,722,611,667,722,250,737,667,556,556,722,278,556,611,722,556,667,556,556,278,494,722,778,611,556,722,389,556,611,667,778,722,667,743,722,611,333,778,722,722,584,611,611,494,556,722,278,667,556,556,556,611,611,722,278,584,280,737,778,278,600,667,389,611,611,611,549,722,722,278,389,556,722,722,722,556,500,278,778,611,556,556,278,778,722,612,611,333,778,611,278,611,667,611,834,667,400,722,611,1000,556,278,278,611,834,549,611,611,722,667,556,611,834,667,667,778,400,611,722,611,549,722,389,722,611,722,611,722,722,722,778,500,667,278,556,584,278,611,333,584,611,611,549,611,611,500,611,333,278,556"'},"Helvetica-Oblique":function(){return'-12, "-170:-225:1116:931", 718, 523, 718, -207, "278,278,355,556,556,889,667,222,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,278,278,584,584,584,556,1015,667,667,722,722,667,611,778,722,278,500,667,556,833,722,778,667,778,722,667,611,722,667,944,667,667,611,278,278,278,469,556,222,556,556,500,556,556,278,556,556,222,222,500,222,833,556,556,556,556,333,500,278,556,500,722,500,500,500,334,260,334,584,333,556,556,167,556,556,556,556,191,333,556,333,333,500,500,556,556,556,278,537,350,222,333,333,556,1000,1000,611,333,333,333,333,333,333,333,333,333,333,333,333,333,1000,1000,370,556,778,1000,365,889,278,222,611,944,611,278,556,556,556,556,667,584,667,667,556,722,500,500,556,722,722,556,722,556,667,722,250,737,667,500,556,722,222,556,611,722,556,667,500,500,278,471,722,778,556,556,667,333,500,611,667,778,722,667,643,722,556,333,778,667,667,584,556,611,476,500,722,278,667,556,556,500,556,556,722,278,584,260,737,778,278,600,667,333,556,611,611,549,722,722,222,317,556,722,667,667,556,500,222,778,556,556,500,278,778,722,612,556,333,778,556,278,556,667,556,834,667,299,667,556,1000,556,278,278,556,834,549,556,556,722,667,556,556,834,667,667,778,400,556,722,556,453,722,333,722,556,722,556,667,667,667,778,500,667,278,500,584,278,556,278,584,556,556,549,556,556,500,556,333,278,556"'},"Helvetica-BoldOblique":function(){return'-12, "-174:-228:1114:962", 718, 532, 718, -207, "278,333,474,556,556,889,722,278,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,333,333,584,584,584,611,975,722,722,722,722,667,611,778,722,278,556,722,611,833,722,778,667,778,722,667,611,722,667,944,667,667,611,333,278,333,584,556,278,556,611,556,611,556,333,611,611,278,278,556,278,889,611,611,611,611,389,556,333,611,556,778,556,556,500,389,280,389,584,333,556,556,167,556,556,556,556,238,500,556,333,333,611,611,556,556,556,278,556,350,278,500,500,556,1000,1000,611,333,333,333,333,333,333,333,333,333,333,333,333,333,1000,1000,370,611,778,1000,365,889,278,278,611,944,611,278,556,556,611,556,667,584,667,722,556,722,556,556,556,722,722,556,722,611,667,722,250,737,667,556,556,722,278,556,611,722,556,667,556,556,278,494,722,778,611,556,722,389,556,611,667,778,722,667,743,722,611,333,778,722,722,584,611,611,494,556,722,278,667,556,556,556,611,611,722,278,584,280,737,778,278,600,667,389,611,611,611,549,722,722,278,389,556,722,722,722,556,500,278,778,611,556,556,278,778,722,612,611,333,778,611,278,611,667,611,834,667,400,722,611,1000,556,278,278,611,834,549,611,611,722,667,556,611,834,667,667,778,400,611,722,611,549,722,389,722,611,722,611,722,722,722,778,500,667,278,556,584,278,611,333,584,611,611,549,611,611,500,611,333,278,556"'},"Times-Roman":function(){return'0, "-168:-218:1000:898", 662, 450, 683, -217, "250,333,408,500,500,833,778,333,333,333,500,564,250,333,250,278,500,500,500,500,500,500,500,500,500,500,278,278,564,564,564,444,921,722,667,667,722,611,556,722,722,333,389,722,611,889,722,722,556,722,667,556,611,722,722,944,722,722,611,333,278,333,469,500,333,444,500,444,500,444,333,500,500,278,278,500,278,778,500,500,500,500,333,389,278,500,500,722,500,500,444,480,200,480,541,333,500,500,167,500,500,500,500,180,444,500,333,333,556,556,500,500,500,250,453,350,333,444,444,500,1000,1000,444,333,333,333,333,333,333,333,333,333,333,333,333,333,1000,889,276,611,722,889,310,667,278,278,500,722,500,333,444,444,500,444,722,564,722,722,444,722,500,389,444,722,722,444,722,500,611,722,250,760,611,444,444,722,278,444,611,667,444,611,389,389,278,471,667,722,500,444,722,333,444,611,556,722,667,556,588,722,500,300,722,722,722,564,500,611,476,500,722,278,611,444,444,444,500,500,722,333,564,200,760,722,333,600,611,333,500,611,611,549,722,667,278,326,444,722,722,722,444,444,278,722,500,444,389,278,722,722,612,500,300,722,500,278,500,611,500,750,556,344,722,611,980,444,333,333,611,750,549,500,500,722,611,444,500,750,556,556,722,400,500,667,500,453,722,333,722,500,667,611,722,722,722,722,444,611,333,500,564,333,500,278,564,500,500,549,500,500,444,500,300,278,500"'},"Times-Bold":function(){return'0, "-168:-218:1000:935", 676, 461, 683, -217, "250,333,555,500,500,1000,833,333,333,333,500,570,250,333,250,278,500,500,500,500,500,500,500,500,500,500,333,333,570,570,570,500,930,722,667,722,722,667,611,778,778,389,500,778,667,944,722,778,611,778,722,556,667,722,722,1000,722,722,667,333,278,333,581,500,333,500,556,444,556,444,333,500,556,278,333,556,278,833,556,500,556,556,444,389,333,556,500,722,500,500,444,394,220,394,520,333,500,500,167,500,500,500,500,278,500,500,333,333,556,556,500,500,500,250,540,350,333,500,500,500,1000,1000,500,333,333,333,333,333,333,333,333,333,333,333,333,333,1000,1000,300,667,778,1000,330,722,278,278,500,722,556,389,444,500,556,444,722,570,722,722,500,722,500,389,444,722,722,500,722,556,667,722,250,747,667,444,500,722,278,500,667,722,500,667,389,389,278,494,722,778,556,500,722,444,444,667,611,778,722,556,672,722,556,300,778,722,722,570,556,667,494,500,722,278,667,500,444,444,556,556,722,389,570,220,747,778,389,600,667,444,500,667,667,549,722,722,278,416,444,722,722,722,444,444,278,778,500,500,389,278,778,722,612,556,300,778,556,278,500,667,556,750,556,394,778,667,1000,444,389,389,667,750,549,500,556,722,667,444,500,750,556,556,778,400,500,722,556,549,722,444,722,500,722,667,722,722,722,778,444,667,389,556,570,389,556,333,570,500,556,549,500,500,444,556,300,278,500"'},"Times-Italic":function(){return'-15.5, "-169:-217:1010:883", 653, 441, 683, -217, "250,333,420,500,500,833,778,333,333,333,500,675,250,333,250,278,500,500,500,500,500,500,500,500,500,500,333,333,675,675,675,500,920,611,611,667,722,611,611,722,722,333,444,667,556,833,667,722,611,722,611,500,556,722,611,833,611,556,556,389,278,389,422,500,333,500,500,444,500,444,278,500,500,278,278,444,278,722,500,500,500,500,389,389,278,500,444,667,444,444,389,400,275,400,541,389,500,500,167,500,500,500,500,214,556,500,333,333,500,500,500,500,500,250,523,350,333,556,556,500,889,1000,500,333,333,333,333,333,333,333,333,333,333,333,333,333,889,889,276,556,722,944,310,667,278,278,500,667,500,333,444,500,500,444,556,675,556,611,500,722,444,389,444,722,722,500,722,500,611,722,250,760,611,444,500,667,278,500,556,667,500,611,389,389,278,471,611,722,500,500,611,389,444,556,611,722,611,500,544,722,500,300,722,611,611,675,500,556,476,444,667,278,611,500,444,444,500,500,667,333,675,275,760,722,333,600,611,389,500,556,556,549,722,667,278,300,444,722,611,611,444,389,278,722,500,500,389,278,722,722,612,500,300,722,500,278,500,611,500,750,500,300,667,556,980,444,333,333,611,750,549,500,500,722,611,444,500,750,500,500,722,400,500,667,500,453,722,389,667,500,611,556,611,611,611,722,389,611,333,444,675,333,500,278,675,500,500,549,500,500,389,500,300,278,500"'},"Times-BoldItalic":function(){return'-15, "-200:-218:996:921", 669, 462, 683, -217, "250,389,555,500,500,833,778,333,333,333,500,570,250,333,250,278,500,500,500,500,500,500,500,500,500,500,333,333,570,570,570,500,832,667,667,667,722,667,667,722,778,389,500,667,611,889,722,722,611,722,667,556,611,722,667,889,667,611,611,333,278,333,570,500,333,500,500,444,500,444,333,500,556,278,278,500,278,778,556,500,500,500,389,389,278,556,444,667,500,444,389,348,220,348,570,389,500,500,167,500,500,500,500,278,500,500,333,333,556,556,500,500,500,250,500,350,333,500,500,500,1000,1000,500,333,333,333,333,333,333,333,333,333,333,333,333,333,1000,944,266,611,722,944,300,722,278,278,500,722,500,389,444,500,556,444,611,570,611,667,500,722,444,389,444,722,722,500,722,556,667,722,250,747,667,444,500,722,278,500,611,667,500,667,389,389,278,494,667,722,556,500,667,389,444,611,611,722,667,556,608,722,556,300,722,667,667,570,556,611,494,444,722,278,667,500,444,444,556,556,722,389,570,220,747,722,389,600,667,389,500,611,611,549,722,667,278,366,444,722,667,667,444,389,278,722,500,500,389,278,722,722,612,500,300,722,576,278,500,667,500,750,556,382,667,611,1000,444,389,389,611,750,549,500,556,722,667,444,500,750,556,556,722,400,500,667,556,549,722,389,722,500,667,611,667,667,667,722,389,667,389,500,606,389,556,278,606,500,556,549,500,500,389,556,300,278,500"'},Symbol:function(){return'0, "-180:-293:1090:1010", 0, 0, 0, 0, "250,333,315:713,3:500,316:549,5:833,778,317:439,8:333,333,318:500,11:549,250,300:549,14:250,278,500,500,500,500,500,500,500,500,500,500,278,278,549,549,549,444,319:549,722,667,722,250:612,323:611,763,603,722,333,631,722,686,889,722,722,768,741,556,592,611,690,439,768,645,795,611,59:333,345:863,61:333,346:658,63:500,347:500,631,549,549,494,439,521,411,603,329,603,549,549,254:576,360:521,549,549,521,549,603,439,576,713,686,493,686,494,91:480,200,480,373:549,314:750,374:620,247,270:549,98:167,376:713,100:500,377:753,753,753,753,1042,987,603,987,603,281:400,220:549,386:411,231:549,205:549,387:713,208:494,115:460,155:549,307:549,388:549,549,120:1000,390:603,1000,658,823,686,795,987,768,768,823,768,768,713,713,713,713,713,713,713,768,713,790,790,890,823,285:549,415:250,304:713,416:603,603,1042,987,603,987,603,185:494,423:329,790,790,786,225:713,427:384,384,384,384,384,384,494,494,494,494,329,274,686,686,686,384,384,384,384,384,384,494,494,494,790"'},ZapfDingbats:function(){return'0, "-1:-143:981:820", 0, 0, 0, 0, "278,452:974,961,974,980,719,789,790,791,690,960,939,549,855,911,933,911,945,974,755,846,762,761,571,677,763,760,759,754,494,552,537,577,692,786,788,788,790,793,794,816,823,789,841,823,833,816,831,923,744,723,749,790,792,695,776,768,792,759,707,708,682,701,826,815,789,789,707,687,696,689,786,787,713,791,785,791,873,761,762,762,759,759,892,892,788,784,438,138,277,415,392,392,668,668,390,390,317,317,276,276,509,509,410,410,234,234,334,334,732,544,544,910,667,760,760,776,595,694,626,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,894,838,1016,458,748,924,748,918,927,928,928,834,873,828,924,924,917,930,931,463,883,836,836,867,867,696,696,874,874,760,946,771,865,771,888,967,888,831,873,927,970,918"'}},ut=function(t){function e(e,n,r){var i;(i=t.call(this)||this).document=e,i.name=n,i.id=r,i.font=new ot(JSON.parse("["+st[i.name]()+',"'+i.getKerning(i.name)+'"]'));var o=i.font;return i.ascender=o.ascender,i.descender=o.descender,i.bbox=o.bbox,i.lineGap=o.lineGap,i.xHeight=o.xHeight,i.capHeight=o.capHeight,i}v(e,t);var n=e.prototype;return n.embed=function(){return this.dictionary.data={Type:"Font",BaseFont:this.name,Subtype:"Type1",Encoding:"WinAnsiEncoding"},this.dictionary.end()},n.encode=function(t){for(var e=this.font.encodeText(t),n=this.font.glyphsForString(""+t),r=this.font.advancesForGlyphs(n),i=[],o=0;o<n.length;o++){var a=n[o];i.push({xAdvance:r[o],yAdvance:0,xOffset:0,yOffset:0,advanceWidth:this.font.widthOfGlyph(a)})}return[e,i]},n.widthOfString=function(t,e){for(var n,r=this.font.glyphsForString(""+t),i=0,o=w(this.font.advancesForGlyphs(r));!(n=o()).done;)i+=n.value;return i*(e/1e3)},e.isStandardFont=function(t){return t in st},n.getKerning=function(t){return""},e}(at),ct=function(t){return("0000"+t.toString(16)).slice(-4)},lt=function(t){function e(e,n,r){var i;return(i=t.call(this)||this).document=e,i.font=n,i.id=r,i.subset=i.font.createSubset(),i.unicode=[[0]],i.widths=[i.font.getGlyph(0).advanceWidth],i.name=i.font.postscriptName,i.scale=1e3/i.font.unitsPerEm,i.ascender=i.font.ascent*i.scale,i.descender=i.font.descent*i.scale,i.xHeight=i.font.xHeight*i.scale,i.capHeight=i.font.capHeight*i.scale,i.lineGap=i.font.lineGap*i.scale,i.bbox=i.font.bbox,!1!==e.options.fontLayoutCache&&(i.layoutCache=f(null)),i}v(e,t);var n=e.prototype;return n.layoutRun=function(t,e){for(var n=this.font.layout(t,e),r=0;r<n.positions.length;r++){var i=n.positions[r];for(var o in i)i[o]*=this.scale;i.advanceWidth=n.glyphs[r].advanceWidth*this.scale}return n},n.layoutCached=function(t){if(!this.layoutCache)return this.layoutRun(t);var e;if(e=this.layoutCache[t])return e;var n=this.layoutRun(t);return this.layoutCache[t]=n,n},n.layout=function(t,e,n){if(e)return this.layoutRun(t,e);for(var r=n?null:[],i=n?null:[],o=0,a=[" ","\t"],s=!1,u=0,c=t.length,l=0;l<=c;l++){var h=a.indexOf(t.charAt(l))>=0;if(h&&l||s||l===c&&u<l){var f=this.layoutCached(t.slice(u,l));n||(r=r.concat(f.glyphs),i=i.concat(f.positions)),o+=f.advanceWidth,u=l}s=h}return{glyphs:r,positions:i,advanceWidth:o}},n.encode=function(t,e){for(var n=this.layout(t,e),r=n.glyphs,i=n.positions,o=[],a=0;a<r.length;a++){var s=r[a],u=this.subset.includeGlyph(s.id);o.push(("0000"+u.toString(16)).slice(-4)),null==this.widths[u]&&(this.widths[u]=s.advanceWidth*this.scale),null==this.unicode[u]&&(this.unicode[u]=s.codePoints)}return[o,i]},n.widthOfString=function(t,e,n){return this.layout(t,n,!0).advanceWidth*(e/1e3)},n.embed=function(){var t=this,e=null!=this.subset.cff,n=this.document.ref();e&&(n.data.Subtype="CIDFontType0C"),this.subset.encodeStream().on("data",function(t){return n.write(t)}).on("end",function(){return n.end()});var r=((null!=this.font["OS/2"]?this.font["OS/2"].sFamilyClass:void 0)||0)>>8,i=0;this.font.post.isFixedPitch&&(i|=1),1<=r&&r<=7&&(i|=2),i|=4,10===r&&(i|=8),this.font.head.macStyle.italic&&(i|=64);var o=[1,2,3,4,5,6].map(function(e){return String.fromCharCode((t.id.charCodeAt(e)||73)+17)}).join("")+"+"+this.font.postscriptName,a=this.font.bbox,s=this.document.ref({Type:"FontDescriptor",FontName:o,Flags:i,FontBBox:[a.minX*this.scale,a.minY*this.scale,a.maxX*this.scale,a.maxY*this.scale],ItalicAngle:this.font.italicAngle,Ascent:this.ascender,Descent:this.descender,CapHeight:(this.font.capHeight||this.font.ascent)*this.scale,XHeight:(this.font.xHeight||0)*this.scale,StemV:0});e?s.data.FontFile3=n:s.data.FontFile2=n,s.end();var u={Type:"Font",Subtype:"CIDFontType0",BaseFont:o,CIDSystemInfo:{Registry:new String("Adobe"),Ordering:new String("Identity"),Supplement:0},FontDescriptor:s,W:[0,this.widths]};e||(u.Subtype="CIDFontType2",u.CIDToGIDMap="Identity");var c=this.document.ref(u);return c.end(),this.dictionary.data={Type:"Font",Subtype:"Type0",BaseFont:o,Encoding:"Identity-H",DescendantFonts:[c],ToUnicode:this.toUnicodeCmap()},this.dictionary.end()},n.toUnicodeCmap=function(){for(var t,e=this.document.ref(),n=[],r=w(this.unicode);!(t=r()).done;){for(var i,o=[],a=w(t.value);!(i=a()).done;){var s=i.value;s>65535&&(s-=65536,o.push(ct(s>>>10&1023|55296)),s=56320|1023&s),o.push(ct(s))}n.push("<"+o.join(" ")+">")}return e.end("/CIDInit /ProcSet findresource begin\n12 dict begin\nbegincmap\n/CIDSystemInfo <<\n  /Registry (Adobe)\n  /Ordering (UCS)\n  /Supplement 0\n>> def\n/CMapName /Adobe-Identity-UCS def\n/CMapType 2 def\n1 begincodespacerange\n<0000><ffff>\nendcodespacerange\n1 beginbfrange\n<0000> <"+ct(n.length-1)+"> ["+n.join(" ")+"]\nendbfrange\nendcmap\nCMapName currentdict /CMap defineresource pop\nend\nend"),e},e}(at),ht=function(){function t(){}return t.open=function(t,e,r,i){var o;if("string"==typeof e&&ut.isStandardFont(e))return new ut(t,e,i);if(n.isBuffer(e)?o=h.create(e,r):e instanceof Uint8Array?o=h.create(n.from(e),r):e instanceof ArrayBuffer&&(o=h.create(n.from(new Uint8Array(e)),r)),null==o)throw new Error("Not a supported font format or standard PDF font.");return new lt(t,o,i)},t}(),ft={initFonts:function(t){void 0===t&&(t="Helvetica"),this._fontFamilies={},this._fontCount=0,this._fontSize=12,this._font=null,this._registeredFonts={},t&&this.font(t)},font:function(t,e,n){var r,i;if("number"==typeof e&&(n=e,e=null),"string"==typeof t&&this._registeredFonts[t]){r=t;var o=this._registeredFonts[t];t=o.src,e=o.family}else"string"!=typeof(r=e||t)&&(r=null);if(null!=n&&this.fontSize(n),i=this._fontFamilies[r])return this._font=i,this;var a="F"+ ++this._fontCount;return this._font=ht.open(this,t,e,a),(i=this._fontFamilies[this._font.name])?(this._font=i,this):(r&&(this._fontFamilies[r]=this._font),this._font.name&&(this._fontFamilies[this._font.name]=this._font),this)},fontSize:function(t){return this._fontSize=t,this},currentLineHeight:function(t){return null==t&&(t=!1),this._font.lineHeight(this._fontSize,t)},currentFontAscender:function(){return this._font.getAscender(this._fontSize)},currentFontBBox:function(){return this._font.getBBox(this._fontSize)},currentFontSize:function(){return this._fontSize},registerFont:function(t,e,n){return this._registeredFonts[t]={src:e,family:n},this}},dt=function(t){function e(e,n){var r;return(r=t.call(this)||this).document=e,r.indent=n.indent||0,r.characterSpacing=n.characterSpacing||0,r.wordSpacing=0===n.wordSpacing,r.columns=n.columns||1,r.columnGap=null!=n.columnGap?n.columnGap:18,r.lineWidth=(n.width-r.columnGap*(r.columns-1))/r.columns,r.spaceLeft=r.lineWidth,r.startX=r.document.x,r.startY=r.document.y,r.column=1,r.ellipsis=n.ellipsis,r.continuedX=0,r.features=n.features,null!=n.height?(r.height=n.height,r.maxY=r.startY+n.height):r.maxY=r.document.page.maxY(),r.on("firstLine",function(t){var e=r.continuedX||r.indent;return r.document.x+=e,r.lineWidth-=e,r.once("line",function(){if(r.document.x-=e,r.lineWidth+=e,t.continued&&!r.continuedX&&(r.continuedX=r.indent),!t.continued)return r.continuedX=0})}),r.on("lastLine",function(t){var e=t.align;return"justify"===e&&(t.align="left"),r.lastLine=!0,r.once("line",function(){return r.document.y+=t.paragraphGap||0,t.align=e,r.lastLine=!1})}),r}v(e,t);var n=e.prototype;return n.wordWidth=function(t){return this.document.widthOfString(t,this)+this.characterSpacing+this.wordSpacing},n.eachWord=function(t,e){for(var n,r=new p(t),i=null,o=f(null);n=r.nextBreak();){var a,s=t.slice((null!=i?i.position:void 0)||0,n.position),u=null!=o[s]?o[s]:o[s]=this.wordWidth(s);if(u>this.lineWidth+this.continuedX)for(var c=i,l={};s.length;){var h,d;u>this.spaceLeft?(h=Math.ceil(this.spaceLeft/(u/s.length)),d=(u=this.wordWidth(s.slice(0,h)))<=this.spaceLeft&&h<s.length):h=s.length;for(var g=u>this.spaceLeft&&h>0;g||d;)g?g=(u=this.wordWidth(s.slice(0,--h)))>this.spaceLeft&&h>0:(g=(u=this.wordWidth(s.slice(0,++h)))>this.spaceLeft&&h>0,d=u<=this.spaceLeft&&h<s.length);if(0===h&&this.spaceLeft===this.lineWidth&&(h=1),l.required=n.required||h<s.length,a=e(s.slice(0,h),u,l,c),c={required:!1},s=s.slice(h),u=this.wordWidth(s),!1===a)break}else a=e(s,u,n,i);if(!1===a)break;i=n}},n.wrap=function(t,e){var n=this;null!=e.indent&&(this.indent=e.indent),null!=e.characterSpacing&&(this.characterSpacing=e.characterSpacing),null!=e.wordSpacing&&(this.wordSpacing=e.wordSpacing),null!=e.ellipsis&&(this.ellipsis=e.ellipsis);var r=this.document.y+this.document.currentLineHeight(!0);(this.document.y>this.maxY||r>this.maxY)&&this.nextSection();var i="",o=0,a=0,s=0,u=this.document.y,c=function(){return e.textWidth=o+n.wordSpacing*(a-1),e.wordCount=a,e.lineWidth=n.lineWidth,u=n.document.y,n.emit("line",i,e,n),s++};return this.emit("sectionStart",e,this),this.eachWord(t,function(t,r,s,u){if((null==u||u.required)&&(n.emit("firstLine",e,n),n.spaceLeft=n.lineWidth),r<=n.spaceLeft&&(i+=t,o+=r,a++),s.required||r>n.spaceLeft){var l=n.document.currentLineHeight(!0);if(null!=n.height&&n.ellipsis&&n.document.y+2*l>n.maxY&&n.column>=n.columns){for(!0===n.ellipsis&&(n.ellipsis="…"),i=i.replace(/\s+$/,""),o=n.wordWidth(i+n.ellipsis);i&&o>n.lineWidth;)i=i.slice(0,-1).replace(/\s+$/,""),o=n.wordWidth(i+n.ellipsis);o<=n.lineWidth&&(i+=n.ellipsis),o=n.wordWidth(i)}return s.required&&(r>n.spaceLeft&&(c(),i=t,o=r,a=1),n.emit("lastLine",e,n)),c(),n.maxY-(n.document.y+l)<-1e-6&&!n.nextSection()?(a=0,i="",!1):s.required?(n.spaceLeft=n.lineWidth,i="",o=0,a=0):(n.spaceLeft=n.lineWidth-r,i=t,o=r,a=1)}return n.spaceLeft-=r}),a>0&&(this.emit("lastLine",e,this),c()),this.emit("sectionEnd",e,this),!0===e.continued?(s>1&&(this.continuedX=0),this.continuedX+=e.textWidth||0,this.document.y=u):this.document.x=this.startX},n.nextSection=function(t){if(this.emit("sectionEnd",t,this),++this.column>this.columns){if(null!=this.height)return!1;var e;this.document.continueOnNewPage(),this.column=1,this.startY=this.document.page.margins.top,this.maxY=this.document.page.maxY(),this.document.x=this.startX,this.document._fillColor&&(e=this.document).fillColor.apply(e,this.document._fillColor),this.emit("pageBreak",t,this)}else this.document.x+=this.lineWidth+this.columnGap,this.document.y=this.startY,this.emit("columnBreak",t,this);return this.emit("sectionStart",t,this),!0},e}(d.EventEmitter),pt=I.number,gt={initText:function(){return this._line=this._line.bind(this),this.x=0,this.y=0,this._lineGap=0},currentLineGap:function(){return this._lineGap},lineGap:function(t){return this._lineGap=t,this},moveDown:function(t){return null==t&&(t=1),this.y+=this.currentLineHeight(!0)*t+this._lineGap,this},moveUp:function(t){return null==t&&(t=1),this.y-=this.currentLineHeight(!0)*t+this._lineGap,this},_text:function(t,e,n,r,i){var o=this;r=this._initOptions(e,n,r),t=null==t?"":""+t,r.wordSpacing&&(t=t.replace(/\s{2,}/g," "));var a=function(){r.structParent&&r.structParent.add(o.struct(r.structType||"P",[o.markStructureContent(r.structType||"P")]))};if(r.width){var s=this._wrapper;s||((s=new dt(this,r)).on("line",i),s.on("firstLine",a)),this._wrapper=r.continued?s:null,this._textOptions=r.continued?r:null,s.wrap(t,r)}else for(var u,c=w(t.split("\n"));!(u=c()).done;){var l=u.value;a(),i(l,r)}return this},text:function(t,e,n,r){return this._text(t,e,n,r,this._line)},widthOfString:function(t,e){return void 0===e&&(e={}),this._font.widthOfString(t,this._fontSize,e.features)+(e.characterSpacing||0)*(t.length-1)},heightOfString:function(t,e){var n=this,r=this.x,i=this.y;(e=this._initOptions(e)).height=1/0;var o=e.lineGap||this._lineGap||0;this._text(t,this.x,this.y,e,function(){return n.y+=n.currentLineHeight(!0)+o});var a=this.y-i;return this.x=r,this.y=i,a},textAndMeasure:function(t,e,n,r,i){r=r||{},null===e&&(e=this.x,n=this.y);var o=this,a=this.x,s=this.y,u={width:0,height:0,charCount:0},c=r.lineGap||this._lineGap||0,l=r.columnGap||18,h=null===e?this.x:e,f=[],d=0;return i&&(r.structParent=null,null===r.height&&(r.height=1/0)),this._text(t,e,n,r,function(n,r,a){return u.charCount+=n.length,o.x===e&&(u.height+=o.currentLineHeight(!0)+c),r.textWidth&&(o.x>h&&(h=o.x,f[d++]=r.lineWidth),f[d]=Math.max(f[d]||0,r.textWidth)),i?a?o.y+=o.currentLineHeight(!0)+c:o.x+=o.widthOfString(t):o._line.apply(o,arguments)}),f.length?(f.forEach(function(t){return u.width+=t+l}),u.width-=l):u.width=this.x-a,!1===r.includeLastLineExternalLeading&&(u.height-=this.currentLineHeight(!0)-this.currentLineHeight(!1)),u.height=Math.max(0,u.height),i&&(this.x=a,this.y=s),u},list:function(t,e,n,r,i){var a=this,s=(r=this._initOptions(e,n,r)).listType||"bullet",u=Math.round(this._font.ascender/1e3*this._fontSize),c=u/2,l=r.bulletRadius||u/3,h=r.textIndent||("bullet"===s?5*l:2*u),f=r.bulletIndent||("bullet"===s?8*l:2*u),d=1,p=[],g=[],_=[];!function t(e){for(var n=1,r=0;r<e.length;r++){var i=e[r];o(i)?(d++,t(i),d--):(p.push(i),g.push(d),"bullet"!==s&&_.push(n++))}}(t),(i=new dt(this,r)).on("line",this._line),d=1;var m=0;return i.on("firstLine",function(){var t,e,n,o,u;if(r.structParent)if(r.structTypes){var p=r.structTypes;e=p[0],n=p[1],o=p[2]}else e="LI",n="Lbl",o="LBody";if(e?(t=a.struct(e),r.structParent.add(t)):r.structParent&&(t=r.structParent),(u=g[m++])!==d){var v=f*(u-d);a.x+=v,i.lineWidth-=v,d=u}switch(t&&(n||o)&&t.add(a.struct(n||o,[a.markStructureContent(n||o)])),s){case"bullet":a.circle(a.x-h+l,a.y+c,l),a.fill();break;case"numbered":case"lettered":var y=function(t){switch(s){case"numbered":return t+".";case"lettered":var e=String.fromCharCode((t-1)%26+65),n=Math.floor((t-1)/26+1);return Array(n+1).join(e)+"."}}(_[m-1]);a._fragment(y,a.x-h,a.y,r)}t&&n&&o&&t.add(a.struct(o,[a.markStructureContent(o)])),t&&t!==r.structParent&&t.end()}),i.on("sectionStart",function(){var t=h+f*(d-1);return a.x+=t,i.lineWidth-=t}),i.on("sectionEnd",function(){var t=h+f*(d-1);return a.x-=t,i.lineWidth+=t}),i.wrap(p.join("\n"),r),this},_initOptions:function(t,e,n){void 0===t&&(t={}),void 0===n&&(n={}),"object"==typeof t&&(n=t,t=null);var i=r({},n);if(this._textOptions)for(var o in this._textOptions){var a=this._textOptions[o];"continued"!==o&&void 0===i[o]&&(i[o]=a)}return null!=t&&(this.x=t),null!=e&&(this.y=e),!1!==i.lineBreak&&(null==i.width&&(i.width=this.page.width-this.x-this.page.margins.right),i.width=Math.max(i.width,0)),i.columns||(i.columns=0),null==i.columnGap&&(i.columnGap=18),i},_line:function(t,e,n){void 0===e&&(e={}),this._fragment(t,this.x,this.y,e);var r=e.lineGap||this._lineGap||0;return n?this.y+=this.currentLineHeight(!0)+r:this.x+=this.widthOfString(t)},_fragment:function(t,e,n,r){var i,o,a,s,u,c,l=this;if(0!==(t=(""+t).replace(/\n|\r/g,"")).length){var h=r.align||"left",f=r.wordSpacing||0,d=r.characterSpacing||0;if(r.width)switch(h){case"right":u=this.widthOfString(t.replace(/\s+$/,""),r),e+=r.lineWidth-u;break;case"center":e+=r.lineWidth/2-r.textWidth/2;break;case"justify":c=t.trim().split(/\s+/),u=this.widthOfString(t.replace(/\s+/g,""),r);var p=this.widthOfString(" ")+d;f=Math.max(0,(r.lineWidth-u)/Math.max(1,c.length-1)-p)}if("number"==typeof r.baseline)i=-r.baseline;else{switch(r.baseline){case"svg-middle":i=.5*this._font.xHeight;break;case"middle":case"svg-central":i=.5*(this._font.descender+this._font.ascender);break;case"bottom":case"ideographic":i=this._font.descender;break;case"alphabetic":i=0;break;case"mathematical":i=.5*this._font.ascender;break;case"hanging":i=.8*this._font.ascender;break;case"top":i=this._font.ascender;break;default:i=this._font.ascender}i=i/1e3*this._fontSize}var g,_=r.textWidth+f*(r.wordCount-1)+d*(t.length-1);if(null!=r.link&&this.link(e,n,_,this.currentLineHeight(),r.link),null!=r.goTo&&this.goTo(e,n,_,this.currentLineHeight(),r.goTo),null!=r.destination&&this.addNamedDestination(r.destination,"XYZ",e,n,null),r.underline){this.save(),r.stroke||this.strokeColor.apply(this,this._fillColor||[]);var m=this._fontSize<10?.5:Math.floor(this._fontSize/10);this.lineWidth(m);var v=n+this.currentLineHeight()-m;this.moveTo(e,v),this.lineTo(e+_,v),this.stroke(),this.restore()}if(r.strike){this.save(),r.stroke||this.strokeColor.apply(this,this._fillColor||[]);var y=this._fontSize<10?.5:Math.floor(this._fontSize/10);this.lineWidth(y);var b=n+this.currentLineHeight()/2;this.moveTo(e,b),this.lineTo(e+_,b),this.stroke(),this.restore()}this.save(),r.oblique&&(g="number"==typeof r.oblique?-Math.tan(r.oblique*Math.PI/180):-.25,this.transform(1,0,0,1,e,n),this.transform(1,0,g,1,-g*i,0),this.transform(1,0,0,1,-e,-n)),this.transform(1,0,0,-1,0,this.page.height),n=this.page.height-n-i,null==this.page.fonts[this._font.id]&&(this.page.fonts[this._font.id]=this._font.ref()),this.addContent("BT"),this.addContent("1 0 0 1 "+pt(e)+" "+pt(n)+" Tm"),this.addContent("/"+this._font.id+" "+pt(this._fontSize)+" Tf");var x=r.fill&&r.stroke?2:r.stroke?1:0;if(x&&this.addContent(x+" Tr"),d&&this.addContent(pt(d)+" Tc"),f){c=t.trim().split(/\s+/),f+=this.widthOfString(" ")+d,f*=1e3/this._fontSize,o=[],s=[];for(var S,C=w(c);!(S=C()).done;){var P=S.value,k=this._font.encode(P,r.features),E=k[0],A=k[1];o=o.concat(E);var T={},j=(s=s.concat(A))[s.length-1];for(var O in j){var L=j[O];T[O]=L}T.xAdvance+=f,s[s.length-1]=T}}else{var I=this._font.encode(t,r.features);o=I[0],s=I[1]}var B=this._fontSize/1e3,N=[],R=0,D=!1,M=function(t){if(R<t){var e=o.slice(R,t).join(""),n=s[t-1].xAdvance-s[t-1].advanceWidth;N.push("<"+e+"> "+pt(-n))}return R=t},z=function(t){if(M(t),N.length>0)return l.addContent("["+N.join(" ")+"] TJ"),N.length=0};for(a=0;a<s.length;a++){var F=s[a];F.xOffset||F.yOffset?(z(a),this.addContent("1 0 0 1 "+pt(e+F.xOffset*B)+" "+pt(n+F.yOffset*B)+" Tm"),z(a+1),D=!0):(D&&(this.addContent("1 0 0 1 "+pt(e)+" "+pt(n)+" Tm"),D=!1),F.xAdvance-F.advanceWidth!=0&&M(a+1)),e+=F.xAdvance*B}return z(a),this.addContent("ET"),this.restore()}}},_t=[65472,65473,65474,65475,65477,65478,65479,65480,65481,65482,65483,65484,65485,65486,65487],mt={1:"DeviceGray",3:"DeviceRGB",4:"DeviceCMYK"},vt=function(){function t(t,e){var n;if(this.data=t,this.label=e,65496!==this.data.readUInt16BE(0))throw"SOI not found in JPEG";for(var r=2;r<this.data.length&&(n=this.data.readUInt16BE(r),r+=2,-1===_t.indexOf(n));)r+=this.data.readUInt16BE(r);if(-1===_t.indexOf(n))throw"Invalid JPEG.";r+=2,this.bits=this.data[r++],this.height=this.data.readUInt16BE(r),r+=2,this.width=this.data.readUInt16BE(r),r+=2;var i=this.data[r++];this.colorSpace=mt[i],this.obj=null}return t.prototype.embed=function(t){if(!this.obj)return this.obj=t.ref({Type:"XObject",Subtype:"Image",BitsPerComponent:this.bits,Width:this.width,Height:this.height,ColorSpace:this.colorSpace,Filter:"DCTDecode"}),"DeviceCMYK"===this.colorSpace&&(this.obj.data.Decode=[1,0,1,0,1,0,1,0]),this.obj.end(this.data),this.data=null},t}(),yt=function(){function t(t,e){this.label=e,this.image=new g(t),this.width=this.image.width,this.height=this.image.height,this.imgData=this.image.imgData,this.obj=null}var e=t.prototype;return e.embed=function(t){var e=!1;if(this.document=t,!this.obj){var r=this.image.hasAlphaChannel,i=1===this.image.interlaceMethod;if(this.obj=this.document.ref({Type:"XObject",Subtype:"Image",BitsPerComponent:r?8:this.image.bits,Width:this.width,Height:this.height,Filter:"FlateDecode"}),!r){var o=this.document.ref({Predictor:i?1:15,Colors:this.image.colors,BitsPerComponent:this.image.bits,Columns:this.width});this.obj.data.DecodeParms=o,o.end()}if(0===this.image.palette.length)this.obj.data.ColorSpace=this.image.colorSpace;else{var a=this.document.ref();a.end(n.from(this.image.palette)),this.obj.data.ColorSpace=["Indexed","DeviceRGB",this.image.palette.length/3-1,a]}if(null!=this.image.transparency.grayscale){var s=this.image.transparency.grayscale;this.obj.data.Mask=[s,s]}else if(this.image.transparency.rgb){for(var u,c=[],l=w(this.image.transparency.rgb);!(u=l()).done;){var h=u.value;c.push(h,h)}this.obj.data.Mask=c}else{if(this.image.transparency.indexed)return e=!0,this.loadIndexedAlphaChannel();if(r)return e=!0,this.splitAlphaChannel()}if(i&&!e)return this.decodeData();this.finalize()}},e.finalize=function(){if(this.alphaChannel){var t=this.document.ref({Type:"XObject",Subtype:"Image",Height:this.height,Width:this.width,BitsPerComponent:8,Filter:"FlateDecode",ColorSpace:"DeviceGray",Decode:[0,1]});t.end(this.alphaChannel),this.obj.data.SMask=t}return this.obj.end(this.imgData),this.image=null,this.imgData=null},e.splitAlphaChannel=function(){var t=this;return this.image.decodePixels(function(e){for(var r,i,o=t.image.colors,a=t.width*t.height,u=n.alloc(a*o),c=n.alloc(a),l=i=r=0,h=e.length,f=16===t.image.bits?1:0;l<h;){for(var d=0;d<o;d++)u[i++]=e[l++],l+=f;c[r++]=e[l++],l+=f}return t.imgData=s.deflateSync(u),t.alphaChannel=s.deflateSync(c),t.finalize()})},e.loadIndexedAlphaChannel=function(){var t=this,e=this.image.transparency.indexed;return this.image.decodePixels(function(r){for(var i=n.alloc(t.width*t.height),o=0,a=0,u=r.length;a<u;a++)i[o++]=e[r[a]];return t.alphaChannel=s.deflateSync(i),t.finalize()})},e.decodeData=function(){var t=this;this.image.decodePixels(function(e){t.imgData=s.deflateSync(e),t.finalize()})},t}(),bt=function(){function t(){}return t.open=function(t,e){var r;if(n.isBuffer(t))r=t;else if(t instanceof ArrayBuffer)r=n.from(new Uint8Array(t));else{var i;if(i=/^data:.+;base64,(.*)$/.exec(t))r=n.from(i[1],"base64");else if(!r)return}if(255===r[0]&&216===r[1])return new vt(r,e);if(137===r[0]&&"PNG"===r.toString("ascii",1,4))return new yt(r,e);throw new Error("Unknown image format.")},t}(),wt={initImages:function(){return this._imageRegistry={},this._imageCount=0},image:function(t,e,n,r){var i,o,a,s,u,c;void 0===r&&(r={}),"object"==typeof e&&(r=e,e=null),e=null!=(u=null!=e?e:r.x)?u:this.x,n=null!=(c=null!=n?n:r.y)?c:this.y,"string"==typeof t&&(a=this._imageRegistry[t]),a||(a=t.width&&t.height?t:this.openImage(t)),a.obj||a.embed(this),null==this.page.xobjects[a.label]&&(this.page.xobjects[a.label]=a.obj);var l=.75*a.width,h=.75*a.height,f=r.width||l,d=r.height||h;if(r.width&&!r.height){var p=f/l;f=l*p,d=h*p}else if(r.height&&!r.width){var g=d/h;f=l*g,d=h*g}else if(r.scale)f=l*r.scale,d=h*r.scale;else if(r.fit){var _=r.fit;(s=l/h)>(o=_[0])/(i=_[1])?(f=o,d=o/s):(d=i,f=i*s)}else if(r.cover){var m=r.cover;(s=l/h)>(o=m[0])/(i=m[1])?(d=i,f=i*s):(f=o,d=o/s)}return(r.fit||r.cover)&&("center"===r.align?e=e+o/2-f/2:"right"===r.align&&(e=e+o-f),"center"===r.valign?n=n+i/2-d/2:"bottom"===r.valign&&(n=n+i-d)),null!=r.link&&this.link(e,n,f,d,r.link),null!=r.goTo&&this.goTo(e,n,f,d,r.goTo),null!=r.destination&&this.addNamedDestination(r.destination,"XYZ",e,n,null),this.y===n&&(this.y+=d),this.save(),this.transform(f,0,0,-d,e,n+d),this.addContent("/"+a.label+" Do"),this.restore(),this},openImage:function(t){var e;return"string"==typeof t&&(e=this._imageRegistry[t]),e||(e=bt.open(t,"I"+ ++this._imageCount),"string"==typeof t&&(this._imageRegistry[t]=e)),e}},xt={annotate:function(t,e,n,r,i){for(var o in i.Type="Annot",i.Rect=this._convertRect(t,e,n,r),i.Border=[0,0,0],"Link"===i.Subtype&&void 0===i.F&&(i.F=4),"Link"!==i.Subtype&&null==i.C&&(i.C=this._normalizeColor(i.color||[0,0,0])),delete i.color,"string"==typeof i.Dest&&(i.Dest=new String(i.Dest)),i){var a=i[o];i[o[0].toUpperCase()+o.slice(1)]=a}var s=this.ref(i);return this.page.annotations.push(s),s.end(),this},note:function(t,e,n,r,i,o){return void 0===o&&(o={}),o.Subtype="Text",o.Contents=new String(i),o.Name="Comment",null==o.color&&(o.color=[243,223,92]),this.annotate(t,e,n,r,o)},goTo:function(t,e,n,r,i,o){return void 0===o&&(o={}),o.Subtype="Link",o.A=this.ref({S:"GoTo",D:new String(i)}),o.A.end(),this.annotate(t,e,n,r,o)},link:function(t,e,n,r,i,o){if(void 0===o&&(o={}),o.Subtype="Link","number"==typeof i){var a=this._root.data.Pages.data;if(!(i>=0&&i<a.Kids.length))throw new Error("The document has no page "+i);o.A=this.ref({S:"GoTo",D:[a.Kids[i],"XYZ",null,null,null]}),o.A.end()}else o.A=this.ref({S:"URI",URI:new String(i)}),o.A.end();return this.annotate(t,e,n,r,o)},_markup:function(t,e,n,r,i){void 0===i&&(i={});var o=this._convertRect(t,e,n,r),a=o[0],s=o[1],u=o[2],c=o[3];return i.QuadPoints=[a,c,u,c,a,s,u,s],i.Contents=new String,this.annotate(t,e,n,r,i)},highlight:function(t,e,n,r,i){return void 0===i&&(i={}),i.Subtype="Highlight",null==i.color&&(i.color=[241,238,148]),this._markup(t,e,n,r,i)},underline:function(t,e,n,r,i){return void 0===i&&(i={}),i.Subtype="Underline",this._markup(t,e,n,r,i)},strike:function(t,e,n,r,i){return void 0===i&&(i={}),i.Subtype="StrikeOut",this._markup(t,e,n,r,i)},lineAnnotation:function(t,e,n,r,i){return void 0===i&&(i={}),i.Subtype="Line",i.Contents=new String,i.L=[t,this.page.height-e,n,this.page.height-r],this.annotate(t,e,n,r,i)},rectAnnotation:function(t,e,n,r,i){return void 0===i&&(i={}),i.Subtype="Square",i.Contents=new String,this.annotate(t,e,n,r,i)},ellipseAnnotation:function(t,e,n,r,i){return void 0===i&&(i={}),i.Subtype="Circle",i.Contents=new String,this.annotate(t,e,n,r,i)},textAnnotation:function(t,e,n,r,i,o){return void 0===o&&(o={}),o.Subtype="FreeText",o.Contents=new String(i),o.DA=new String,this.annotate(t,e,n,r,o)},_convertRect:function(t,e,n,r){var i=e;e+=r;var o=t+n,a=this._ctm,s=a[0],u=a[1],c=a[2],l=a[3],h=a[4],f=a[5];return[t=s*t+c*e+h,e=u*t+l*e+f,o=s*o+c*i+h,i=u*o+l*i+f]}},St=function(){function t(t,e,n,r,i){void 0===i&&(i={expanded:!1}),this.document=t,this.options=i,this.outlineData={},null!==r&&(this.outlineData.Dest=[r.dictionary,"Fit"]),null!==e&&(this.outlineData.Parent=e),null!==n&&(this.outlineData.Title=new String(n)),this.dictionary=this.document.ref(this.outlineData),this.children=[]}var e=t.prototype;return e.addItem=function(e,n){void 0===n&&(n={expanded:!1});var r=new t(this.document,this.dictionary,e,this.document.page,n);return this.children.push(r),r},e.endOutline=function(){if(this.children.length>0){this.options.expanded&&(this.outlineData.Count=this.children.length);var t=this.children[0],e=this.children[this.children.length-1];this.outlineData.First=t.dictionary,this.outlineData.Last=e.dictionary;for(var n=0,r=this.children.length;n<r;n++){var i=this.children[n];n>0&&(i.outlineData.Prev=this.children[n-1].dictionary),n<this.children.length-1&&(i.outlineData.Next=this.children[n+1].dictionary),i.endOutline()}}return this.dictionary.end()},t}(),Ct={initOutline:function(){return this.outline=new St(this,null,null,null)},endOutline:function(){if(this.outline.endOutline(),this.outline.children.length>0)return this._root.data.Outlines=this.outline.dictionary,this._root.data.PageMode="UseOutlines"}},Pt=function(){function t(t,e){this.refs=[{pageRef:t,mcid:e}]}return t.prototype.push=function(t){var e=this;t.refs.forEach(function(t){return e.refs.push(t)})},t}(),kt=function(){function t(t,e,n,r){var i=this;void 0===n&&(n={}),void 0===r&&(r=null),this.document=t,this._attached=!1,this._ended=!1,this._flushed=!1,this.dictionary=t.ref({S:e});var a=this.dictionary.data;(o(n)||this._isValidChild(n))&&(r=n,n={}),void 0!==n.title&&(a.T=new String(n.title)),void 0!==n.lang&&(a.Lang=new String(n.lang)),void 0!==n.alt&&(a.Alt=new String(n.alt)),void 0!==n.expanded&&(a.E=new String(n.expanded)),void 0!==n.actual&&(a.ActualText=new String(n.actual)),this._children=[],r&&(o(r)||(r=[r]),r.forEach(function(t){return i.add(t)}),this.end())}var e=t.prototype;return e.add=function(e){if(this._ended)throw new Error("Cannot add child to already-ended structure element");if(!this._isValidChild(e))throw new Error("Invalid structure element child");return e instanceof t&&(e.setParent(this.dictionary),this._attached&&e.setAttached()),e instanceof Pt&&this._addContentToParentTree(e),"function"==typeof e&&this._attached&&(e=this._contentForClosure(e)),this._children.push(e),this},e._addContentToParentTree=function(t){var e=this;t.refs.forEach(function(t){var n=t.pageRef,r=t.mcid;e.document.getStructParentTree().get(n.data.StructParents)[r]=e.dictionary})},e.setParent=function(t){if(this.dictionary.data.P)throw new Error("Structure element added to more than one parent");this.dictionary.data.P=t,this._flush()},e.setAttached=function(){var e=this;this._attached||(this._children.forEach(function(n,r){n instanceof t&&n.setAttached(),"function"==typeof n&&(e._children[r]=e._contentForClosure(n))}),this._attached=!0,this._flush())},e.end=function(){this._ended||(this._children.filter(function(e){return e instanceof t}).forEach(function(t){return t.end()}),this._ended=!0,this._flush())},e._isValidChild=function(e){return e instanceof t||e instanceof Pt||"function"==typeof e},e._contentForClosure=function(t){var e=this.document.markStructureContent(this.dictionary.data.S);return t(),this.document.endMarkedContent(),this._addContentToParentTree(e),e},e._isFlushable=function(){return!(!this.dictionary.data.P||!this._ended)&&this._children.every(function(e){return"function"!=typeof e&&(!(e instanceof t)||e._isFlushable())})},e._flush=function(){var t=this;!this._flushed&&this._isFlushable()&&(this.dictionary.data.K=[],this._children.forEach(function(e){return t._flushChild(e)}),this.dictionary.end(),this._children=[],this.dictionary.data.K=null,this._flushed=!0)},e._flushChild=function(e){var n=this;e instanceof t&&this.dictionary.data.K.push(e.dictionary),e instanceof Pt&&e.refs.forEach(function(t){var e=t.pageRef,r=t.mcid;n.dictionary.data.Pg||(n.dictionary.data.Pg=e),n.dictionary.data.Pg===e?n.dictionary.data.K.push(r):n.dictionary.data.K.push({Type:"MCR",Pg:e,MCID:r})})},t}(),Et=function(t){function e(){return t.apply(this,arguments)||this}v(e,t);var n=e.prototype;return n._compareKeys=function(t,e){return u(t)-u(e)},n._keysName=function(){return"Nums"},n._dataForKey=function(t){return u(t)},e}(T),At={initMarkings:function(t){this.structChildren=[],t.tagged&&(this.getMarkInfoDictionary().data.Marked=!0,this.getStructTreeRoot())},markContent:function(t,e){if(void 0===e&&(e=null),"Artifact"===t||e&&e.mcid){var n=0;for(this.page.markings.forEach(function(t){(n||t.structContent||"Artifact"===t.tag)&&n++});n--;)this.endMarkedContent()}if(!e)return this.page.markings.push({tag:t}),this.addContent("/"+t+" BMC"),this;this.page.markings.push({tag:t,options:e});var r={};return void 0!==e.mcid&&(r.MCID=e.mcid),"Artifact"===t&&("string"==typeof e.type&&(r.Type=e.type),o(e.bbox)&&(r.BBox=[e.bbox[0],this.page.height-e.bbox[3],e.bbox[2],this.page.height-e.bbox[1]]),o(e.attached)&&e.attached.every(function(t){return"string"==typeof t})&&(r.Attached=e.attached)),"Span"===t&&(e.lang&&(r.Lang=new String(e.lang)),e.alt&&(r.Alt=new String(e.alt)),e.expanded&&(r.E=new String(e.expanded)),e.actual&&(r.ActualText=new String(e.actual))),this.addContent("/"+t+" "+I.convert(r)+" BDC"),this},markStructureContent:function(t,e){void 0===e&&(e={});var n=this.getStructParentTree().get(this.page.structParentTreeKey),r=n.length;n.push(null),this.markContent(t,m({},e,{mcid:r}));var i=new Pt(this.page.dictionary,r);return this.page.markings.slice(-1)[0].structContent=i,i},endMarkedContent:function(){return this.page.markings.pop(),this.addContent("EMC"),this},struct:function(t,e,n){return void 0===e&&(e={}),void 0===n&&(n=null),new kt(this,t,e,n)},addStructure:function(t){var e=this.getStructTreeRoot();return t.setParent(e),t.setAttached(),this.structChildren.push(t),e.data.K||(e.data.K=[]),e.data.K.push(t.dictionary),this},initPageMarkings:function(t){var e=this;t.forEach(function(t){if(t.structContent){var n=t.structContent,r=e.markStructureContent(t.tag,t.options);n.push(r),e.page.markings.slice(-1)[0].structContent=n}else e.markContent(t.tag,t.options)})},endPageMarkings:function(t){var e=t.markings;return e.forEach(function(){return t.write("EMC")}),t.markings=[],e},getMarkInfoDictionary:function(){return this._root.data.MarkInfo||(this._root.data.MarkInfo=this.ref({})),this._root.data.MarkInfo},getStructTreeRoot:function(){return this._root.data.StructTreeRoot||(this._root.data.StructTreeRoot=this.ref({Type:"StructTreeRoot",ParentTree:new Et,ParentTreeNextKey:0})),this._root.data.StructTreeRoot},getStructParentTree:function(){return this.getStructTreeRoot().data.ParentTree},createStructParentTreeNextKey:function(){this.getMarkInfoDictionary();var t=this.getStructTreeRoot(),e=t.data.ParentTreeNextKey++;return t.data.ParentTree.add(e,[]),e},endMarkings:function(){var t=this._root.data.StructTreeRoot;t&&(t.end(),this.structChildren.forEach(function(t){return t.end()})),this._root.data.MarkInfo&&this._root.data.MarkInfo.end()}},Tt=function(t){function e(e){var n;switch(void 0===e&&(e={}),(n=t.call(this,e)||this).options=e,e.pdfVersion){case"1.4":n.version=1.4;break;case"1.5":n.version=1.5;break;case"1.6":n.version=1.6;break;case"1.7":case"1.7ext3":n.version=1.7;break;default:n.version=1.3}n.compress=null==n.options.compress||n.options.compress,n._pageBuffer=[],n._pageBufferStart=0,n._offsets=[],n._waiting=0,n._ended=!1,n._offset=0;var r=n.ref({Type:"Pages",Count:0,Kids:[]}),i=n.ref({Dests:new M});if(n._root=n.ref({Type:"Catalog",Pages:r,Names:i}),n.options.lang&&(n._root.data.Lang=new String(n.options.lang)),n.page=null,n.initColor(),n.initVector(),n.initFonts(e.font),n.initText(),n.initImages(),n.initOutline(),n.initMarkings(e),n.info={Producer:"PDFKit",Creator:"PDFKit",CreationDate:new Date},n.options.info)for(var o in n.options.info){var a=n.options.info[o];n.info[o]=a}n.options.displayTitle&&(n._root.data.ViewerPreferences=n.ref({DisplayDocTitle:!0}));var s=e.security;return n._id=s&&s.generateFileID(n.info),n._security=s&&s.create(function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(n),e),n._write("%PDF-"+n.version),n._write("%ÿÿÿÿ"),n.options.pageAdding&&n.on("pageAdding",n.options.pageAdding),n.options.pageAdded&&n.on("pageAdded",n.options.pageAdded),!1!==n.options.autoFirstPage&&n.addPage(),n}v(e,t);var r=e.prototype;return r.addPage=function(t){null==t&&(t=this.options),this.emit("pageAdding",this,t),this.options.bufferPages||this.flushPages(),this.page=new D(this,t),this._pageBuffer.push(this.page);var e=this._root.data.Pages.data;return e.Kids.push(this.page.dictionary),e.Count++,this.x=this.page.margins.left,this.y=this.page.margins.top,this._ctm=[1,0,0,1,0,0],this.transform(1,0,0,-1,0,this.page.height),this.emit("pageAdded",this),this},r.continueOnNewPage=function(t){var e=this.endPageMarkings(this.page);return this.addPage(t),this.initPageMarkings(e),this},r.bufferedPageRange=function(){return{start:this._pageBufferStart,count:this._pageBuffer.length}},r.switchToPage=function(t){var e;if(!(e=this._pageBuffer[t-this._pageBufferStart]))throw new Error("switchToPage("+t+") out of bounds, current buffer covers pages "+this._pageBufferStart+" to "+(this._pageBufferStart+this._pageBuffer.length-1));return this.page=e},r.flushPages=function(){var t=this._pageBuffer;this._pageBuffer=[],this._pageBufferStart+=t.length;for(var e,n=w(t);!(e=n()).done;){var r=e.value;this.endPageMarkings(r),r.end()}},r.addNamedDestination=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];0===n.length&&(n=["XYZ",null,null,null]),"XYZ"===n[0]&&null!==n[2]&&(n[2]=this.page.height-n[2]),n.unshift(this.page.dictionary),this._root.data.Names.data.Dests.add(t,n)},r.addNamedJavaScript=function(t,e){this._root.data.Names.data.JavaScript||(this._root.data.Names.data.JavaScript=new M);var n={JS:new String(e),S:"JavaScript"};this._root.data.Names.data.JavaScript.add(t,n)},r.ref=function(t){var e=new B(this,this._offsets.length+1,t);return this._offsets.push(null),this._waiting++,e},r._read=function(){},r._write=function(t){return n.isBuffer(t)||(t=n.from(t+"\n","binary")),this.push(t),this._offset+=t.length},r.addContent=function(t){return this.page.write(t),this},r._refEnd=function(t){if(this._offsets[t.id-1]=t.offset,0==--this._waiting&&this._ended)return this._finalize(),this._ended=!1},r.end=function(){for(var t in this.emit("ending"),this.flushPages(),this._info=this.ref(),this.info){var e=this.info[t];"string"==typeof e&&(e=new String(e));var n=this.ref(e);n.end(),this._info.data[t]=n}for(var r in this._info.end(),this._fontFamilies)this._fontFamilies[r].finalize();return this.endOutline(),this.endMarkings(),this._root.end(),this._root.data.Pages.end(),this._root.data.Names.end(),this._root.data.ViewerPreferences&&this._root.data.ViewerPreferences.end(),this._security&&this._security.end(),0===this._waiting?this._finalize():this._ended=!0},r._finalize=function(){var t=this._offset;this._write("xref"),this._write("0 "+(this._offsets.length+1)),this._write("0000000000 65535 f ");for(var e,n=w(this._offsets);!(e=n()).done;){var r=e.value;r=("0000000000"+r).slice(-10),this._write(r+" 00000 n ")}var i={Size:this._offsets.length+1,Root:this._root,Info:this._info};return this._id&&(i.ID=[this._id,this._id]),this._security&&(i.Encrypt=this._security.dictionary),this._write("trailer"),this._write(I.convert(i)),this._write("startxref"),this._write(""+t),this._write("%%EOF"),this.push(null)},r.toString=function(){return"[object PDFDocument]"},e}(i.Readable),jt=function(t){r(Tt.prototype,t)};jt(W),jt(et),jt(ft),jt(gt),jt(wt),jt(xt),jt(Ct),jt(At),Tt.LineWrapper=dt,e.localExports=Tt}).call(this)}).call(this,t("buffer").Buffer)},{"@babel/runtime-corejs2/core-js/array/is-array":136,"@babel/runtime-corejs2/core-js/json/stringify":137,"@babel/runtime-corejs2/core-js/number/is-finite":138,"@babel/runtime-corejs2/core-js/object/assign":139,"@babel/runtime-corejs2/core-js/object/create":140,"@babel/runtime-corejs2/core-js/object/keys":141,"@babel/runtime-corejs2/core-js/parse-int":142,buffer:152,events:210,fontkit:1,linebreak:133,"png-js":226,stream:243,zlib:150}],136:[function(t,e,n){arguments[4][3][0].apply(n,arguments)},{"core-js/library/fn/array/is-array":153,dup:3}],137:[function(t,e,n){e.localExports=t("core-js/library/fn/json/stringify")},{"core-js/library/fn/json/stringify":154}],138:[function(t,e,n){e.localExports=t("core-js/library/fn/number/is-finite")},{"core-js/library/fn/number/is-finite":155}],139:[function(t,e,n){e.localExports=t("core-js/library/fn/object/assign")},{"core-js/library/fn/object/assign":156}],140:[function(t,e,n){e.localExports=t("core-js/library/fn/object/create")},{"core-js/library/fn/object/create":157}],141:[function(t,e,n){arguments[4][8][0].apply(n,arguments)},{"core-js/library/fn/object/keys":158,dup:8}],142:[function(t,e,n){e.localExports=t("core-js/library/fn/parse-int")},{"core-js/library/fn/parse-int":159}],143:[function(t,e,n){(function(n){(function(){var r=t("object-assign");function i(t,e){if(t===e)return 0;for(var n=t.length,r=e.length,i=0,o=Math.min(n,r);i<o;++i)if(t[i]!==e[i]){n=t[i],r=e[i];break}return n<r?-1:r<n?1:0}function o(t){return n.Buffer&&"function"==typeof n.Buffer.isBuffer?n.Buffer.isBuffer(t):!(null==t||!t._isBuffer)}var a=t("util/"),s=Object.prototype.hasOwnProperty,u=Array.prototype.slice,c="foo"===function(){}.name;function l(t){return Object.prototype.toString.call(t)}function h(t){return!o(t)&&"function"==typeof n.ArrayBuffer&&("function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):!!t&&(t instanceof DataView||!!(t.buffer&&t.buffer instanceof ArrayBuffer)))}var f=e.localExports=v,d=/\s*function\s+([^\(\s]*)\s*/;function p(t){if(a.isFunction(t)){if(c)return t.name;var e=t.toString().match(d);return e&&e[1]}}function g(t,e){return"string"==typeof t?t.length<e?t:t.slice(0,e):t}function _(t){if(c||!a.isFunction(t))return a.inspect(t);var e=p(t);return"[Function"+(e?": "+e:"")+"]"}function m(t,e,n,r,i){throw new f.AssertionError({message:n,actual:t,expected:e,operator:r,stackStartFunction:i})}function v(t,e){t||m(t,!0,e,"==",f.ok)}function y(t,e,n,r){if(t===e)return!0;if(o(t)&&o(e))return 0===i(t,e);if(a.isDate(t)&&a.isDate(e))return t.getTime()===e.getTime();if(a.isRegExp(t)&&a.isRegExp(e))return t.source===e.source&&t.global===e.global&&t.multiline===e.multiline&&t.lastIndex===e.lastIndex&&t.ignoreCase===e.ignoreCase;if(null!==t&&"object"==typeof t||null!==e&&"object"==typeof e){if(h(t)&&h(e)&&l(t)===l(e)&&!(t instanceof Float32Array||t instanceof Float64Array))return 0===i(new Uint8Array(t.buffer),new Uint8Array(e.buffer));if(o(t)!==o(e))return!1;var s=(r=r||{actual:[],expected:[]}).actual.indexOf(t);return-1!==s&&s===r.expected.indexOf(e)||(r.actual.push(t),r.expected.push(e),function(t,e,n,r){if(null===t||void 0===t||null===e||void 0===e)return!1;if(a.isPrimitive(t)||a.isPrimitive(e))return t===e;if(n&&Object.getPrototypeOf(t)!==Object.getPrototypeOf(e))return!1;var i=b(t),o=b(e);if(i&&!o||!i&&o)return!1;if(i)return t=u.call(t),e=u.call(e),y(t,e,n);var s,c,l=S(t),h=S(e);if(l.length!==h.length)return!1;for(l.sort(),h.sort(),c=l.length-1;c>=0;c--)if(l[c]!==h[c])return!1;for(c=l.length-1;c>=0;c--)if(s=l[c],!y(t[s],e[s],n,r))return!1;return!0}(t,e,n,r))}return n?t===e:t==e}function b(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function w(t,e){if(!t||!e)return!1;if("[object RegExp]"==Object.prototype.toString.call(e))return e.test(t);try{if(t instanceof e)return!0}catch(t){}return!Error.isPrototypeOf(e)&&!0===e.call({},t)}function x(t,e,n,r){var i;if("function"!=typeof e)throw new TypeError('"block" argument must be a function');"string"==typeof n&&(r=n,n=null),i=function(t){var e;try{t()}catch(t){e=t}return e}(e),r=(n&&n.name?" ("+n.name+").":".")+(r?" "+r:"."),t&&!i&&m(i,n,"Missing expected exception"+r);var o="string"==typeof r,s=!t&&a.isError(i),u=!t&&i&&!n;if((s&&o&&w(i,n)||u)&&m(i,n,"Got unwanted exception"+r),t&&i&&n&&!w(i,n)||!t&&i)throw i}f.AssertionError=function(t){var e;this.name="AssertionError",this.actual=t.actual,this.expected=t.expected,this.operator=t.operator,t.message?(this.message=t.message,this.generatedMessage=!1):(this.message=g(_((e=this).actual),128)+" "+e.operator+" "+g(_(e.expected),128),this.generatedMessage=!0);var n=t.stackStartFunction||m;if(Error.captureStackTrace)Error.captureStackTrace(this,n);else{var r=new Error;if(r.stack){var i=r.stack,o=p(n),a=i.indexOf("\n"+o);if(a>=0){var s=i.indexOf("\n",a+1);i=i.substring(s+1)}this.stack=i}}},a.inherits(f.AssertionError,Error),f.fail=m,f.ok=v,f.equal=function(t,e,n){t!=e&&m(t,e,n,"==",f.equal)},f.notEqual=function(t,e,n){t==e&&m(t,e,n,"!=",f.notEqual)},f.deepEqual=function(t,e,n){y(t,e,!1)||m(t,e,n,"deepEqual",f.deepEqual)},f.deepStrictEqual=function(t,e,n){y(t,e,!0)||m(t,e,n,"deepStrictEqual",f.deepStrictEqual)},f.notDeepEqual=function(t,e,n){y(t,e,!1)&&m(t,e,n,"notDeepEqual",f.notDeepEqual)},f.notDeepStrictEqual=function t(e,n,r){y(e,n,!0)&&m(e,n,r,"notDeepStrictEqual",t)},f.strictEqual=function(t,e,n){t!==e&&m(t,e,n,"===",f.strictEqual)},f.notStrictEqual=function(t,e,n){t===e&&m(t,e,n,"!==",f.notStrictEqual)},f.throws=function(t,e,n){x(!0,t,e,n)},f.doesNotThrow=function(t,e,n){x(!1,t,e,n)},f.ifError=function(t){if(t)throw t},f.strict=r(function t(e,n){e||m(e,!0,n,"==",t)},f,{equal:f.strictEqual,deepEqual:f.deepStrictEqual,notEqual:f.notStrictEqual,notDeepEqual:f.notDeepStrictEqual}),f.strict.strict=f.strict;var S=Object.keys||function(t){var e=[];for(var n in t)s.call(t,n)&&e.push(n);return e}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"object-assign":214,"util/":146}],144:[function(t,e,n){"function"==typeof Object.create?e.localExports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:e.localExports=function(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},{}],145:[function(t,e,n){e.localExports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},{}],146:[function(t,e,n){(function(e,r){(function(){var i=/%[sdj%]/g;n.format=function(t){if(!m(t)){for(var e=[],n=0;n<arguments.length;n++)e.push(s(arguments[n]));return e.join(" ")}n=1;for(var r=arguments,o=r.length,a=String(t).replace(i,function(t){if("%%"===t)return"%";if(n>=o)return t;switch(t){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(t){return"[Circular]"}default:return t}}),u=r[n];n<o;u=r[++n])g(u)||!b(u)?a+=" "+u:a+=" "+s(u);return a},n.deprecate=function(t,i){if(v(r.process))return function(){return n.deprecate(t,i).apply(this,arguments)};if(!0===e.noDeprecation)return t;var o=!1;return function(){if(!o){if(e.throwDeprecation)throw new Error(i);e.traceDeprecation?console.trace(i):console.error(i),o=!0}return t.apply(this,arguments)}};var o,a={};function s(t,e){var r={seen:[],stylize:c};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),p(e)?r.showHidden=e:e&&n._extend(r,e),v(r.showHidden)&&(r.showHidden=!1),v(r.depth)&&(r.depth=2),v(r.colors)&&(r.colors=!1),v(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=u),l(r,t,r.depth)}function u(t,e){var n=s.styles[e];return n?"["+s.colors[n][0]+"m"+t+"["+s.colors[n][1]+"m":t}function c(t,e){return t}function l(t,e,r){if(t.customInspect&&e&&S(e.inspect)&&e.inspect!==n.inspect&&(!e.constructor||e.constructor.prototype!==e)){var i=e.inspect(r,t);return m(i)||(i=l(t,i,r)),i}var o=function(t,e){if(v(e))return t.stylize("undefined","undefined");if(m(e)){var n="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(n,"string")}return _(e)?t.stylize(""+e,"number"):p(e)?t.stylize(""+e,"boolean"):g(e)?t.stylize("null","null"):void 0}(t,e);if(o)return o;var a=Object.keys(e),s=function(t){var e={};return t.forEach(function(t,n){e[t]=!0}),e}(a);if(t.showHidden&&(a=Object.getOwnPropertyNames(e)),x(e)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return h(e);if(0===a.length){if(S(e)){var u=e.name?": "+e.name:"";return t.stylize("[Function"+u+"]","special")}if(y(e))return t.stylize(RegExp.prototype.toString.call(e),"regexp");if(w(e))return t.stylize(Date.prototype.toString.call(e),"date");if(x(e))return h(e)}var c,b="",C=!1,P=["{","}"];return d(e)&&(C=!0,P=["[","]"]),S(e)&&(b=" [Function"+(e.name?": "+e.name:"")+"]"),y(e)&&(b=" "+RegExp.prototype.toString.call(e)),w(e)&&(b=" "+Date.prototype.toUTCString.call(e)),x(e)&&(b=" "+h(e)),0!==a.length||C&&0!=e.length?r<0?y(e)?t.stylize(RegExp.prototype.toString.call(e),"regexp"):t.stylize("[Object]","special"):(t.seen.push(e),c=C?function(t,e,n,r,i){for(var o=[],a=0,s=e.length;a<s;++a)E(e,String(a))?o.push(f(t,e,n,r,String(a),!0)):o.push("");return i.forEach(function(i){i.match(/^\d+$/)||o.push(f(t,e,n,r,i,!0))}),o}(t,e,r,s,a):a.map(function(n){return f(t,e,r,s,n,C)}),t.seen.pop(),function(t,e,n){return t.reduce(function(t,e){return t+e.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?n[0]+(""===e?"":e+"\n ")+" "+t.join(",\n  ")+" "+n[1]:n[0]+e+" "+t.join(", ")+" "+n[1]}(c,b,P)):P[0]+b+P[1]}function h(t){return"["+Error.prototype.toString.call(t)+"]"}function f(t,e,n,r,i,o){var a,s,u;if((u=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?s=u.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):u.set&&(s=t.stylize("[Setter]","special")),E(r,i)||(a="["+i+"]"),s||(t.seen.indexOf(u.value)<0?(s=g(n)?l(t,u.value,null):l(t,u.value,n-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map(function(t){return"  "+t}).join("\n").substr(2):"\n"+s.split("\n").map(function(t){return"   "+t}).join("\n")):s=t.stylize("[Circular]","special")),v(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=t.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=t.stylize(a,"string"))}return a+": "+s}function d(t){return Array.isArray(t)}function p(t){return"boolean"==typeof t}function g(t){return null===t}function _(t){return"number"==typeof t}function m(t){return"string"==typeof t}function v(t){return void 0===t}function y(t){return b(t)&&"[object RegExp]"===C(t)}function b(t){return"object"==typeof t&&null!==t}function w(t){return b(t)&&"[object Date]"===C(t)}function x(t){return b(t)&&("[object Error]"===C(t)||t instanceof Error)}function S(t){return"function"==typeof t}function C(t){return Object.prototype.toString.call(t)}function P(t){return t<10?"0"+t.toString(10):t.toString(10)}n.debuglog=function(t){if(v(o)&&(o=e.env.NODE_DEBUG||""),t=t.toUpperCase(),!a[t])if(new RegExp("\\b"+t+"\\b","i").test(o)){var r=e.pid;a[t]=function(){var e=n.format.apply(n,arguments);console.error("%s %d: %s",t,r,e)}}else a[t]=function(){};return a[t]},n.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},n.isArray=d,n.isBoolean=p,n.isNull=g,n.isNullOrUndefined=function(t){return null==t},n.isNumber=_,n.isString=m,n.isSymbol=function(t){return"symbol"==typeof t},n.isUndefined=v,n.isRegExp=y,n.isObject=b,n.isDate=w,n.isError=x,n.isFunction=S,n.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},n.isBuffer=t("./support/isBuffer");var k=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function E(t,e){return Object.prototype.hasOwnProperty.call(t,e)}n.log=function(){var t,e;console.log("%s - %s",(t=new Date,e=[P(t.getHours()),P(t.getMinutes()),P(t.getSeconds())].join(":"),[t.getDate(),k[t.getMonth()],e].join(" ")),n.format.apply(n,arguments))},n.inherits=t("inherits"),n._extend=function(t,e){if(!e||!b(e))return t;for(var n=Object.keys(e),r=n.length;r--;)t[n[r]]=e[n[r]];return t}}).call(this)}).call(this,t("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./support/isBuffer":145,_process:228,inherits:144}],147:[function(t,e,n){arguments[4][122][0].apply(n,arguments)},{dup:122}],148:[function(t,e,n){arguments[4][108][0].apply(n,arguments)},{dup:108}],149:[function(t,e,n){(function(e,r){(function(){var i=t("pako/lib/zlib/messages"),o=t("pako/lib/zlib/zstream"),a=t("pako/lib/zlib/deflate.js"),s=t("pako/lib/zlib/inflate.js"),u=t("pako/lib/zlib/constants");for(var c in u)n[c]=u[c];function l(t){if(t<n.DEFLATE||t>n.UNZIP)throw new TypeError("Bad argument");this.mode=t,this.init_done=!1,this.write_in_progress=!1,this.pending_close=!1,this.windowBits=0,this.level=0,this.memLevel=0,this.strategy=0,this.dictionary=null}function h(t,e){for(var n=0;n<t.length;n++)this[e+n]=t[n]}n.NONE=0,n.DEFLATE=1,n.INFLATE=2,n.GZIP=3,n.GUNZIP=4,n.DEFLATERAW=5,n.INFLATERAW=6,n.UNZIP=7,l.prototype.init=function(t,e,r,i,u){switch(this.windowBits=t,this.level=e,this.memLevel=r,this.strategy=i,this.mode!==n.GZIP&&this.mode!==n.GUNZIP||(this.windowBits+=16),this.mode===n.UNZIP&&(this.windowBits+=32),this.mode!==n.DEFLATERAW&&this.mode!==n.INFLATERAW||(this.windowBits=-this.windowBits),this.strm=new o,this.mode){case n.DEFLATE:case n.GZIP:case n.DEFLATERAW:var c=a.deflateInit2(this.strm,this.level,n.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case n.INFLATE:case n.GUNZIP:case n.INFLATERAW:case n.UNZIP:c=s.inflateInit2(this.strm,this.windowBits);break;default:throw new Error("Unknown mode "+this.mode)}c===n.Z_OK?(this.write_in_progress=!1,this.init_done=!0):this._error(c)},l.prototype.params=function(){throw new Error("deflateParams Not supported")},l.prototype._writeCheck=function(){if(!this.init_done)throw new Error("write before init");if(this.mode===n.NONE)throw new Error("already finalized");if(this.write_in_progress)throw new Error("write already in progress");if(this.pending_close)throw new Error("close is pending")},l.prototype.write=function(t,n,r,i,o,a,s){this._writeCheck(),this.write_in_progress=!0;var u=this;return e.nextTick(function(){u.write_in_progress=!1;var e=u._write(t,n,r,i,o,a,s);u.callback(e[0],e[1]),u.pending_close&&u.close()}),this},l.prototype.writeSync=function(t,e,n,r,i,o,a){return this._writeCheck(),this._write(t,e,n,r,i,o,a)},l.prototype._write=function(t,e,i,o,u,c,l){if(this.write_in_progress=!0,t!==n.Z_NO_FLUSH&&t!==n.Z_PARTIAL_FLUSH&&t!==n.Z_SYNC_FLUSH&&t!==n.Z_FULL_FLUSH&&t!==n.Z_FINISH&&t!==n.Z_BLOCK)throw new Error("Invalid flush value");null==e&&(e=new r(0),o=0,i=0),u._set?u.set=u._set:u.set=h;var f=this.strm;switch(f.avail_in=o,f.input=e,f.next_in=i,f.avail_out=l,f.output=u,f.next_out=c,this.mode){case n.DEFLATE:case n.GZIP:case n.DEFLATERAW:var d=a.deflate(f,t);break;case n.UNZIP:case n.INFLATE:case n.GUNZIP:case n.INFLATERAW:d=s.inflate(f,t);break;default:throw new Error("Unknown mode "+this.mode)}return d!==n.Z_STREAM_END&&d!==n.Z_OK&&this._error(d),this.write_in_progress=!1,[f.avail_in,f.avail_out]},l.prototype.close=function(){this.write_in_progress?this.pending_close=!0:(this.pending_close=!1,this.mode===n.DEFLATE||this.mode===n.GZIP||this.mode===n.DEFLATERAW?a.deflateEnd(this.strm):s.inflateEnd(this.strm),this.mode=n.NONE)},l.prototype.reset=function(){switch(this.mode){case n.DEFLATE:case n.DEFLATERAW:var t=a.deflateReset(this.strm);break;case n.INFLATE:case n.INFLATERAW:t=s.inflateReset(this.strm)}t!==n.Z_OK&&this._error(t)},l.prototype._error=function(t){this.onerror(i[t]+": "+this.strm.msg,t),this.write_in_progress=!1,this.pending_close&&this.close()},n.Zlib=l}).call(this)}).call(this,t("_process"),t("buffer").Buffer)},{_process:228,buffer:152,"pako/lib/zlib/constants":217,"pako/lib/zlib/deflate.js":219,"pako/lib/zlib/inflate.js":221,"pako/lib/zlib/messages":223,"pako/lib/zlib/zstream":225}],150:[function(t,e,n){(function(e,r){(function(){var i=t("_stream_transform"),o=t("./binding"),a=t("util"),s=t("assert").ok;function u(t,e,n){var i=[],o=0;function a(){for(var e;null!==(e=t.read());)i.push(e),o+=e.length;t.once("readable",a)}function s(){var e=r.concat(i,o);i=[],n(null,e),t.close()}t.on("error",function(e){t.removeListener("end",s),t.removeListener("readable",a),n(e)}),t.on("end",s),t.end(e),a()}function c(t,e){if("string"==typeof e&&(e=new r(e)),!r.isBuffer(e))throw new TypeError("Not a string or buffer");var n=o.Z_FINISH;return t._processChunk(e,n)}function l(t){if(!(this instanceof l))return new l(t);m.call(this,t,o.DEFLATE)}function h(t){if(!(this instanceof h))return new h(t);m.call(this,t,o.INFLATE)}function f(t){if(!(this instanceof f))return new f(t);m.call(this,t,o.GZIP)}function d(t){if(!(this instanceof d))return new d(t);m.call(this,t,o.GUNZIP)}function p(t){if(!(this instanceof p))return new p(t);m.call(this,t,o.DEFLATERAW)}function g(t){if(!(this instanceof g))return new g(t);m.call(this,t,o.INFLATERAW)}function _(t){if(!(this instanceof _))return new _(t);m.call(this,t,o.UNZIP)}function m(t,e){if(this._opts=t=t||{},this._chunkSize=t.chunkSize||n.Z_DEFAULT_CHUNK,i.call(this,t),t.flush&&t.flush!==o.Z_NO_FLUSH&&t.flush!==o.Z_PARTIAL_FLUSH&&t.flush!==o.Z_SYNC_FLUSH&&t.flush!==o.Z_FULL_FLUSH&&t.flush!==o.Z_FINISH&&t.flush!==o.Z_BLOCK)throw new Error("Invalid flush flag: "+t.flush);if(this._flushFlag=t.flush||o.Z_NO_FLUSH,t.chunkSize&&(t.chunkSize<n.Z_MIN_CHUNK||t.chunkSize>n.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+t.chunkSize);if(t.windowBits&&(t.windowBits<n.Z_MIN_WINDOWBITS||t.windowBits>n.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+t.windowBits);if(t.level&&(t.level<n.Z_MIN_LEVEL||t.level>n.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+t.level);if(t.memLevel&&(t.memLevel<n.Z_MIN_MEMLEVEL||t.memLevel>n.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+t.memLevel);if(t.strategy&&t.strategy!=n.Z_FILTERED&&t.strategy!=n.Z_HUFFMAN_ONLY&&t.strategy!=n.Z_RLE&&t.strategy!=n.Z_FIXED&&t.strategy!=n.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+t.strategy);if(t.dictionary&&!r.isBuffer(t.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._binding=new o.Zlib(e);var a=this;this._hadError=!1,this._binding.onerror=function(t,e){a._binding=null,a._hadError=!0;var r=new Error(t);r.errno=e,r.code=n.codes[e],a.emit("error",r)};var s=n.Z_DEFAULT_COMPRESSION;"number"==typeof t.level&&(s=t.level);var u=n.Z_DEFAULT_STRATEGY;"number"==typeof t.strategy&&(u=t.strategy),this._binding.init(t.windowBits||n.Z_DEFAULT_WINDOWBITS,s,t.memLevel||n.Z_DEFAULT_MEMLEVEL,u,t.dictionary),this._buffer=new r(this._chunkSize),this._offset=0,this._closed=!1,this._level=s,this._strategy=u,this.once("end",this.close)}o.Z_MIN_WINDOWBITS=8,o.Z_MAX_WINDOWBITS=15,o.Z_DEFAULT_WINDOWBITS=15,o.Z_MIN_CHUNK=64,o.Z_MAX_CHUNK=1/0,o.Z_DEFAULT_CHUNK=16384,o.Z_MIN_MEMLEVEL=1,o.Z_MAX_MEMLEVEL=9,o.Z_DEFAULT_MEMLEVEL=8,o.Z_MIN_LEVEL=-1,o.Z_MAX_LEVEL=9,o.Z_DEFAULT_LEVEL=o.Z_DEFAULT_COMPRESSION,Object.keys(o).forEach(function(t){t.match(/^Z/)&&(n[t]=o[t])}),n.codes={Z_OK:o.Z_OK,Z_STREAM_END:o.Z_STREAM_END,Z_NEED_DICT:o.Z_NEED_DICT,Z_ERRNO:o.Z_ERRNO,Z_STREAM_ERROR:o.Z_STREAM_ERROR,Z_DATA_ERROR:o.Z_DATA_ERROR,Z_MEM_ERROR:o.Z_MEM_ERROR,Z_BUF_ERROR:o.Z_BUF_ERROR,Z_VERSION_ERROR:o.Z_VERSION_ERROR},Object.keys(n.codes).forEach(function(t){n.codes[n.codes[t]]=t}),n.Deflate=l,n.Inflate=h,n.Gzip=f,n.Gunzip=d,n.DeflateRaw=p,n.InflateRaw=g,n.Unzip=_,n.createDeflate=function(t){return new l(t)},n.createInflate=function(t){return new h(t)},n.createDeflateRaw=function(t){return new p(t)},n.createInflateRaw=function(t){return new g(t)},n.createGzip=function(t){return new f(t)},n.createGunzip=function(t){return new d(t)},n.createUnzip=function(t){return new _(t)},n.deflate=function(t,e,n){return"function"==typeof e&&(n=e,e={}),u(new l(e),t,n)},n.deflateSync=function(t,e){return c(new l(e),t)},n.gzip=function(t,e,n){return"function"==typeof e&&(n=e,e={}),u(new f(e),t,n)},n.gzipSync=function(t,e){return c(new f(e),t)},n.deflateRaw=function(t,e,n){return"function"==typeof e&&(n=e,e={}),u(new p(e),t,n)},n.deflateRawSync=function(t,e){return c(new p(e),t)},n.unzip=function(t,e,n){return"function"==typeof e&&(n=e,e={}),u(new _(e),t,n)},n.unzipSync=function(t,e){return c(new _(e),t)},n.inflate=function(t,e,n){return"function"==typeof e&&(n=e,e={}),u(new h(e),t,n)},n.inflateSync=function(t,e){return c(new h(e),t)},n.gunzip=function(t,e,n){return"function"==typeof e&&(n=e,e={}),u(new d(e),t,n)},n.gunzipSync=function(t,e){return c(new d(e),t)},n.inflateRaw=function(t,e,n){return"function"==typeof e&&(n=e,e={}),u(new g(e),t,n)},n.inflateRawSync=function(t,e){return c(new g(e),t)},a.inherits(m,i),m.prototype.params=function(t,r,i){if(t<n.Z_MIN_LEVEL||t>n.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+t);if(r!=n.Z_FILTERED&&r!=n.Z_HUFFMAN_ONLY&&r!=n.Z_RLE&&r!=n.Z_FIXED&&r!=n.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+r);if(this._level!==t||this._strategy!==r){var a=this;this.flush(o.Z_SYNC_FLUSH,function(){a._binding.params(t,r),a._hadError||(a._level=t,a._strategy=r,i&&i())})}else e.nextTick(i)},m.prototype.reset=function(){return this._binding.reset()},m.prototype._flush=function(t){this._transform(new r(0),"",t)},m.prototype.flush=function(t,n){var i=this._writableState;if(("function"==typeof t||void 0===t&&!n)&&(n=t,t=o.Z_FULL_FLUSH),i.ended)n&&e.nextTick(n);else if(i.ending)n&&this.once("end",n);else if(i.needDrain){var a=this;this.once("drain",function(){a.flush(n)})}else this._flushFlag=t,this.write(new r(0),"",n)},m.prototype.close=function(t){if(t&&e.nextTick(t),!this._closed){this._closed=!0,this._binding.close();var n=this;e.nextTick(function(){n.emit("close")})}},m.prototype._transform=function(t,e,n){var i,a=this._writableState,s=(a.ending||a.ended)&&(!t||a.length===t.length);if(null===!t&&!r.isBuffer(t))return n(new Error("invalid input"));s?i=o.Z_FINISH:(i=this._flushFlag,t.length>=a.length&&(this._flushFlag=this._opts.flush||o.Z_NO_FLUSH)),this._processChunk(t,i,n)},m.prototype._processChunk=function(t,e,n){var i=t&&t.length,o=this._chunkSize-this._offset,a=0,u=this,c="function"==typeof n;if(!c){var l,h=[],f=0;this.on("error",function(t){l=t});do{var d=this._binding.writeSync(e,t,a,i,this._buffer,this._offset,o)}while(!this._hadError&&_(d[0],d[1]));if(this._hadError)throw l;var p=r.concat(h,f);return this.close(),p}var g=this._binding.write(e,t,a,i,this._buffer,this._offset,o);function _(l,d){if(!u._hadError){var p=o-d;if(s(p>=0,"have should not go down"),p>0){var g=u._buffer.slice(u._offset,u._offset+p);u._offset+=p,c?u.push(g):(h.push(g),f+=g.length)}if((0===d||u._offset>=u._chunkSize)&&(o=u._chunkSize,u._offset=0,u._buffer=new r(u._chunkSize)),0===d){if(a+=i-l,i=l,!c)return!0;var m=u._binding.write(e,t,a,i,u._buffer,u._offset,u._chunkSize);return m.callback=_,void(m.buffer=t)}if(!c)return!1;n()}}g.buffer=t,g.callback=_},a.inherits(l,m),a.inherits(h,m),a.inherits(f,m),a.inherits(d,m),a.inherits(p,m),a.inherits(g,m),a.inherits(_,m)}).call(this)}).call(this,t("_process"),t("buffer").Buffer)},{"./binding":149,_process:228,_stream_transform:240,assert:143,buffer:152,util:249}],151:[function(t,e,n){arguments[4][108][0].apply(n,arguments)},{dup:108}],152:[function(t,e,n){(function(e,r){(function(){var r=t("base64-js"),i=t("ieee754"),o=t("isarray");function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(t,e){if(a()<e)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=u.prototype:(null===t&&(t=new u(e)),t.length=e),t}function u(t,e,n){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(t,e,n);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return h(this,t)}return c(this,t,e,n)}function c(t,e,n,r){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,n,r){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return e=void 0===n&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,n):new Uint8Array(e,n,r),u.TYPED_ARRAY_SUPPORT?(t=e).__proto__=u.prototype:t=f(t,e),t}(t,e,n,r):"string"==typeof e?function(t,e,n){if("string"==typeof n&&""!==n||(n="utf8"),!u.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|p(e,n),i=(t=s(t,r)).write(e,n);return i!==r&&(t=t.slice(0,i)),t}(t,e,n):function(t,e){if(u.isBuffer(e)){var n=0|d(e.length);return 0===(t=s(t,n)).length?t:(e.copy(t,0,0,n),t)}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(r=e.length)!=r?s(t,0):f(t,e);if("Buffer"===e.type&&o(e.data))return f(t,e.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function l(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function h(t,e){if(l(e),t=s(t,e<0?0:0|d(e)),!u.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function f(t,e){var n=e.length<0?0:0|d(e.length);t=s(t,n);for(var r=0;r<n;r+=1)t[r]=255&e[r];return t}function d(t){if(t>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|t}function p(t,e){if(u.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return z(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return F(t).length;default:if(r)return z(t).length;e=(""+e).toLowerCase(),r=!0}}function g(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function _(t,e,n,r,i){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof e&&(e=u.from(e,r)),u.isBuffer(e))return 0===e.length?-1:m(t,e,n,r,i);if("number"==typeof e)return e&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):m(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function m(t,e,n,r,i){var o,a=1,s=t.length,u=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;a=2,s/=2,u/=2,n/=2}function c(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){var l=-1;for(o=n;o<s;o++)if(c(t,o)===c(e,-1===l?0:o-l)){if(-1===l&&(l=o),o-l+1===u)return l*a}else-1!==l&&(o-=o-l),l=-1}else for(n+u>s&&(n=s-u),o=n;o>=0;o--){for(var h=!0,f=0;f<u;f++)if(c(t,o+f)!==c(e,f)){h=!1;break}if(h)return o}return-1}function v(t,e,n,r){n=Number(n)||0;var i=t.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a<r;++a){var s=parseInt(e.substr(2*a,2),16);if(isNaN(s))return a;t[n+a]=s}return a}function y(t,e,n,r){return U(z(e,t.length-n),t,n,r)}function b(t,e,n,r){return U(function(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}(e),t,n,r)}function w(t,e,n,r){return b(t,e,n,r)}function x(t,e,n,r){return U(F(e),t,n,r)}function S(t,e,n,r){return U(function(t,e){for(var n,r,i,o=[],a=0;a<t.length&&!((e-=2)<0);++a)n=t.charCodeAt(a),r=n>>8,i=n%256,o.push(i),o.push(r);return o}(e,t.length-n),t,n,r)}function C(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function P(t,e,n){n=Math.min(t.length,n);for(var r=[],i=e;i<n;){var o,a,s,u,c=t[i],l=null,h=c>239?4:c>223?3:c>191?2:1;if(i+h<=n)switch(h){case 1:c<128&&(l=c);break;case 2:128==(192&(o=t[i+1]))&&(u=(31&c)<<6|63&o)>127&&(l=u);break;case 3:o=t[i+1],a=t[i+2],128==(192&o)&&128==(192&a)&&(u=(15&c)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:o=t[i+1],a=t[i+2],s=t[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(u=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(l=u)}null===l?(l=65533,h=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=h}return function(t){var e=t.length;if(e<=k)return String.fromCharCode.apply(String,t);for(var n="",r=0;r<e;)n+=String.fromCharCode.apply(String,t.slice(r,r+=k));return n}(r)}n.Buffer=u,n.SlowBuffer=function(t){return+t!=t&&(t=0),u.alloc(+t)},n.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),n.kMaxLength=a(),u.poolSize=8192,u._augment=function(t){return t.__proto__=u.prototype,t},u.from=function(t,e,n){return c(null,t,e,n)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(t,e,n){return function(t,e,n,r){return l(e),e<=0?s(t,e):void 0!==n?"string"==typeof r?s(t,e).fill(n,r):s(t,e).fill(n):s(t,e)}(null,t,e,n)},u.allocUnsafe=function(t){return h(null,t)},u.allocUnsafeSlow=function(t){return h(null,t)},u.isBuffer=function(t){return!(null==t||!t._isBuffer)},u.compare=function(t,e){if(!u.isBuffer(t)||!u.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,r=e.length,i=0,o=Math.min(n,r);i<o;++i)if(t[i]!==e[i]){n=t[i],r=e[i];break}return n<r?-1:r<n?1:0},u.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(t,e){if(!o(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return u.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var r=u.allocUnsafe(e),i=0;for(n=0;n<t.length;++n){var a=t[n];if(!u.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i),i+=a.length}return r},u.byteLength=p,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)g(this,e,e+1);return this},u.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)g(this,e,e+3),g(this,e+1,e+2);return this},u.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)g(this,e,e+7),g(this,e+1,e+6),g(this,e+2,e+5),g(this,e+3,e+4);return this},u.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?P(this,0,t):function(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return T(this,e,n);case"utf8":case"utf-8":return P(this,e,n);case"ascii":return E(this,e,n);case"latin1":case"binary":return A(this,e,n);case"base64":return C(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}.apply(this,arguments)},u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===u.compare(this,t)},u.prototype.inspect=function(){var t="",e=n.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,e).match(/.{2}/g).join(" "),this.length>e&&(t+=" ... ")),"<Buffer "+t+">"},u.prototype.compare=function(t,e,n,r,i){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,r>>>=0,i>>>=0,this===t)return 0;for(var o=i-r,a=n-e,s=Math.min(o,a),c=this.slice(r,i),l=t.slice(e,n),h=0;h<s;++h)if(c[h]!==l[h]){o=c[h],a=l[h];break}return o<a?-1:a<o?1:0},u.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},u.prototype.indexOf=function(t,e,n){return _(this,t,e,n,!0)},u.prototype.lastIndexOf=function(t,e,n){return _(this,t,e,n,!1)},u.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-e;if((void 0===n||n>i)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return v(this,t,e,n);case"utf8":case"utf-8":return y(this,t,e,n);case"ascii":return b(this,t,e,n);case"latin1":case"binary":return w(this,t,e,n);case"base64":return x(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var k=4096;function E(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(127&t[i]);return r}function A(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(t[i]);return r}function T(t,e,n){var r,i=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>i)&&(n=i);for(var o="",a=e;a<n;++a)o+=(r=t[a])<16?"0"+r.toString(16):r.toString(16);return o}function j(t,e,n){for(var r=t.slice(e,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function O(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function L(t,e,n,r,i,o){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(n+r>t.length)throw new RangeError("Index out of range")}function I(t,e,n,r){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-n,2);i<o;++i)t[n+i]=(e&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function B(t,e,n,r){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-n,4);i<o;++i)t[n+i]=e>>>8*(r?i:3-i)&255}function N(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function R(t,e,n,r,o){return o||N(t,0,n,4),i.write(t,e,n,r,23,4),n+4}function D(t,e,n,r,o){return o||N(t,0,n,8),i.write(t,e,n,r,52,8),n+8}u.prototype.slice=function(t,e){var n,r=this.length;if(t=~~t,e=void 0===e?r:~~e,t<0?(t+=r)<0&&(t=0):t>r&&(t=r),e<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t),u.TYPED_ARRAY_SUPPORT)(n=this.subarray(t,e)).__proto__=u.prototype;else{var i=e-t;n=new u(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+t]}return n},u.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||O(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return r},u.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||O(t,e,this.length);for(var r=this[t+--e],i=1;e>0&&(i*=256);)r+=this[t+--e]*i;return r},u.prototype.readUInt8=function(t,e){return e||O(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,e){return e||O(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,e){return e||O(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,e){return e||O(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUInt32BE=function(t,e){return e||O(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||O(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*e)),r},u.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||O(t,e,this.length);for(var r=e,i=1,o=this[t+--r];r>0&&(i*=256);)o+=this[t+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},u.prototype.readInt8=function(t,e){return e||O(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){e||O(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(t,e){e||O(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(t,e){return e||O(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return e||O(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return e||O(t,4,this.length),i.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return e||O(t,4,this.length),i.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return e||O(t,8,this.length),i.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return e||O(t,8,this.length),i.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,e,n,r){t=+t,e|=0,n|=0,r||L(this,t,e,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[e]=255&t;++o<n&&(i*=256);)this[e+o]=t/i&255;return e+n},u.prototype.writeUIntBE=function(t,e,n,r){t=+t,e|=0,n|=0,r||L(this,t,e,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+n},u.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,1,255,0),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},u.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):I(this,t,e,!0),e+2},u.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):I(this,t,e,!1),e+2},u.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):B(this,t,e,!0),e+4},u.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):B(this,t,e,!1),e+4},u.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);L(this,t,e,n,i-1,-i)}var o=0,a=1,s=0;for(this[e]=255&t;++o<n&&(a*=256);)t<0&&0===s&&0!==this[e+o-1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},u.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);L(this,t,e,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},u.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,1,127,-128),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):I(this,t,e,!0),e+2},u.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):I(this,t,e,!1),e+2},u.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):B(this,t,e,!0),e+4},u.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):B(this,t,e,!1),e+4},u.prototype.writeFloatLE=function(t,e,n){return R(this,t,e,!0,n)},u.prototype.writeFloatBE=function(t,e,n){return R(this,t,e,!1,n)},u.prototype.writeDoubleLE=function(t,e,n){return D(this,t,e,!0,n)},u.prototype.writeDoubleBE=function(t,e,n){return D(this,t,e,!1,n)},u.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);var i,o=r-n;if(this===t&&n<e&&e<r)for(i=o-1;i>=0;--i)t[i+e]=this[i+n];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)t[i+e]=this[i+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+o),e);return o},u.prototype.fill=function(t,e,n,r){if("string"==typeof t){if("string"==typeof e?(r=e,e=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!u.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;var o;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(o=e;o<n;++o)this[o]=t;else{var a=u.isBuffer(t)?t:z(new u(t,r).toString()),s=a.length;for(o=0;o<n-e;++o)this[o+e]=a[o%s]}return this};var M=/[^+\/0-9A-Za-z-_]/g;function z(t,e){var n;e=e||1/0;for(var r=t.length,i=null,o=[],a=0;a<r;++a){if((n=t.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function F(t){return r.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(M,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function U(t,e,n,r){for(var i=0;i<r&&!(i+n>=e.length||i>=t.length);++i)e[i+n]=t[i];return i}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer)},{"base64-js":147,buffer:152,ieee754:211,isarray:213}],153:[function(t,e,n){arguments[4][13][0].apply(n,arguments)},{"../../modules/_core":164,"../../modules/es6.array.is-array":203,dup:13}],154:[function(t,e,n){var r=t("../../modules/_core"),i=r.JSON||(r.JSON={stringify:JSON.stringify});e.localExports=function(t){return i.stringify.apply(i,arguments)}},{"../../modules/_core":164}],155:[function(t,e,n){t("../../modules/es6.number.is-finite"),e.localExports=t("../../modules/_core").Number.isFinite},{"../../modules/_core":164,"../../modules/es6.number.is-finite":204}],156:[function(t,e,n){t("../../modules/es6.object.assign"),e.localExports=t("../../modules/_core").Object.assign},{"../../modules/_core":164,"../../modules/es6.object.assign":205}],157:[function(t,e,n){t("../../modules/es6.object.create");var r=t("../../modules/_core").Object;e.localExports=function(t,e){return r.create(t,e)}},{"../../modules/_core":164,"../../modules/es6.object.create":206}],158:[function(t,e,n){arguments[4][18][0].apply(n,arguments)},{"../../modules/_core":164,"../../modules/es6.object.keys":207,dup:18}],159:[function(t,e,n){t("../modules/es6.parse-int"),e.localExports=t("../modules/_core").parseInt},{"../modules/_core":164,"../modules/es6.parse-int":208}],160:[function(t,e,n){arguments[4][22][0].apply(n,arguments)},{dup:22}],161:[function(t,e,n){arguments[4][25][0].apply(n,arguments)},{"./_is-object":179,dup:25}],162:[function(t,e,n){arguments[4][27][0].apply(n,arguments)},{"./_to-absolute-index":196,"./_to-iobject":198,"./_to-length":199,dup:27}],163:[function(t,e,n){arguments[4][32][0].apply(n,arguments)},{dup:32}],164:[function(t,e,n){arguments[4][36][0].apply(n,arguments)},{dup:36}],165:[function(t,e,n){arguments[4][38][0].apply(n,arguments)},{"./_a-function":160,dup:38}],166:[function(t,e,n){arguments[4][39][0].apply(n,arguments)},{dup:39}],167:[function(t,e,n){arguments[4][40][0].apply(n,arguments)},{"./_fails":171,dup:40}],168:[function(t,e,n){arguments[4][41][0].apply(n,arguments)},{"./_global":172,"./_is-object":179,dup:41}],169:[function(t,e,n){arguments[4][42][0].apply(n,arguments)},{dup:42}],170:[function(t,e,n){arguments[4][43][0].apply(n,arguments)},{"./_core":164,"./_ctx":165,"./_global":172,"./_has":173,"./_hide":174,dup:43}],171:[function(t,e,n){arguments[4][44][0].apply(n,arguments)},{dup:44}],172:[function(t,e,n){arguments[4][46][0].apply(n,arguments)},{dup:46}],173:[function(t,e,n){arguments[4][47][0].apply(n,arguments)},{dup:47}],174:[function(t,e,n){arguments[4][48][0].apply(n,arguments)},{"./_descriptors":167,"./_object-dp":183,"./_property-desc":191,dup:48}],175:[function(t,e,n){arguments[4][49][0].apply(n,arguments)},{"./_global":172,dup:49}],176:[function(t,e,n){arguments[4][50][0].apply(n,arguments)},{"./_descriptors":167,"./_dom-create":168,"./_fails":171,dup:50}],177:[function(t,e,n){arguments[4][52][0].apply(n,arguments)},{"./_cof":163,dup:52}],178:[function(t,e,n){arguments[4][54][0].apply(n,arguments)},{"./_cof":163,dup:54}],179:[function(t,e,n){arguments[4][55][0].apply(n,arguments)},{dup:55}],180:[function(t,e,n){arguments[4][62][0].apply(n,arguments)},{dup:62}],181:[function(t,e,n){var r=t("./_descriptors"),i=t("./_object-keys"),o=t("./_object-gops"),a=t("./_object-pie"),s=t("./_to-object"),u=t("./_iobject"),c=Object.assign;e.localExports=!c||t("./_fails")(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=c({},t)[n]||Object.keys(c({},e)).join("")!=r})?function(t,e){for(var n=s(t),c=arguments.length,l=1,h=o.f,f=a.f;c>l;)for(var d,p=u(arguments[l++]),g=h?i(p).concat(h(p)):i(p),_=g.length,m=0;_>m;)d=g[m++],r&&!f.call(p,d)||(n[d]=p[d]);return n}:c},{"./_descriptors":167,"./_fails":171,"./_iobject":177,"./_object-gops":185,"./_object-keys":187,"./_object-pie":188,"./_to-object":200}],182:[function(t,e,n){arguments[4][66][0].apply(n,arguments)},{"./_an-object":161,"./_dom-create":168,"./_enum-bug-keys":169,"./_html":175,"./_object-dps":184,"./_shared-key":192,dup:66}],183:[function(t,e,n){arguments[4][67][0].apply(n,arguments)},{"./_an-object":161,"./_descriptors":167,"./_ie8-dom-define":176,"./_to-primitive":201,dup:67}],184:[function(t,e,n){arguments[4][68][0].apply(n,arguments)},{"./_an-object":161,"./_descriptors":167,"./_object-dp":183,"./_object-keys":187,dup:68}],185:[function(t,e,n){n.f=Object.getOwnPropertySymbols},{}],186:[function(t,e,n){arguments[4][71][0].apply(n,arguments)},{"./_array-includes":162,"./_has":173,"./_shared-key":192,"./_to-iobject":198,dup:71}],187:[function(t,e,n){arguments[4][72][0].apply(n,arguments)},{"./_enum-bug-keys":169,"./_object-keys-internal":186,dup:72}],188:[function(t,e,n){arguments[4][73][0].apply(n,arguments)},{dup:73}],189:[function(t,e,n){arguments[4][74][0].apply(n,arguments)},{"./_core":164,"./_export":170,"./_fails":171,dup:74}],190:[function(t,e,n){var r=t("./_global").parseInt,i=t("./_string-trim").trim,o=t("./_string-ws"),a=/^[-+]?0[xX]/;e.localExports=8!==r(o+"08")||22!==r(o+"0x16")?function(t,e){var n=i(String(t),3);return r(n,e>>>0||(a.test(n)?16:10))}:r},{"./_global":172,"./_string-trim":194,"./_string-ws":195}],191:[function(t,e,n){arguments[4][77][0].apply(n,arguments)},{dup:77}],192:[function(t,e,n){arguments[4][84][0].apply(n,arguments)},{"./_shared":193,"./_uid":202,dup:84}],193:[function(t,e,n){arguments[4][85][0].apply(n,arguments)},{"./_core":164,"./_global":172,"./_library":180,dup:85}],194:[function(t,e,n){var r=t("./_export"),i=t("./_defined"),o=t("./_fails"),a=t("./_string-ws"),s="["+a+"]",u=RegExp("^"+s+s+"*"),c=RegExp(s+s+"*$"),l=function(t,e,n){var i={},s=o(function(){return!!a[t]()||"​"!="​"[t]()}),u=i[t]=s?e(h):a[t];n&&(i[n]=u),r(r.P+r.F*s,"String",i)},h=l.trim=function(t,e){return t=String(i(t)),1&e&&(t=t.replace(u,"")),2&e&&(t=t.replace(c,"")),t};e.localExports=l},{"./_defined":166,"./_export":170,"./_fails":171,"./_string-ws":195}],195:[function(t,e,n){e.localExports="\t\n\v\f\r   ᠎             　\u2028\u2029\ufeff"},{}],196:[function(t,e,n){arguments[4][89][0].apply(n,arguments)},{"./_to-integer":197,dup:89}],197:[function(t,e,n){arguments[4][90][0].apply(n,arguments)},{dup:90}],198:[function(t,e,n){arguments[4][91][0].apply(n,arguments)},{"./_defined":166,"./_iobject":177,dup:91}],199:[function(t,e,n){arguments[4][92][0].apply(n,arguments)},{"./_to-integer":197,dup:92}],200:[function(t,e,n){arguments[4][93][0].apply(n,arguments)},{"./_defined":166,dup:93}],201:[function(t,e,n){arguments[4][94][0].apply(n,arguments)},{"./_is-object":179,dup:94}],202:[function(t,e,n){arguments[4][95][0].apply(n,arguments)},{dup:95}],203:[function(t,e,n){arguments[4][101][0].apply(n,arguments)},{"./_export":170,"./_is-array":178,dup:101}],204:[function(t,e,n){var r=t("./_export"),i=t("./_global").isFinite;r(r.S,"Number",{isFinite:function(t){return"number"==typeof t&&i(t)}})},{"./_export":170,"./_global":172}],205:[function(t,e,n){var r=t("./_export");r(r.S+r.F,"Object",{assign:t("./_object-assign")})},{"./_export":170,"./_object-assign":181}],206:[function(t,e,n){var r=t("./_export");r(r.S,"Object",{create:t("./_object-create")})},{"./_export":170,"./_object-create":182}],207:[function(t,e,n){arguments[4][107][0].apply(n,arguments)},{"./_object-keys":187,"./_object-sap":189,"./_to-object":200,dup:107}],208:[function(t,e,n){var r=t("./_export"),i=t("./_parse-int");r(r.G+r.F*(parseInt!=i),{parseInt:i})},{"./_export":170,"./_parse-int":190}],209:[function(t,e,n){function r(t){return Object.prototype.toString.call(t)}n.isArray=function(t){return Array.isArray?Array.isArray(t):"[object Array]"===r(t)},n.isBoolean=function(t){return"boolean"==typeof t},n.isNull=function(t){return null===t},n.isNullOrUndefined=function(t){return null==t},n.isNumber=function(t){return"number"==typeof t},n.isString=function(t){return"string"==typeof t},n.isSymbol=function(t){return"symbol"==typeof t},n.isUndefined=function(t){return void 0===t},n.isRegExp=function(t){return"[object RegExp]"===r(t)},n.isObject=function(t){return"object"==typeof t&&null!==t},n.isDate=function(t){return"[object Date]"===r(t)},n.isError=function(t){return"[object Error]"===r(t)||t instanceof Error},n.isFunction=function(t){return"function"==typeof t},n.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},n.isBuffer=t("buffer").Buffer.isBuffer},{buffer:152}],210:[function(t,e,n){function r(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function i(t){return"function"==typeof t}function o(t){return"object"==typeof t&&null!==t}function a(t){return void 0===t}e.localExports=r,r.EventEmitter=r,r.prototype._events=void 0,r.prototype._maxListeners=void 0,r.defaultMaxListeners=10,r.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||isNaN(t))throw TypeError("n must be a positive number");return this._maxListeners=t,this},r.prototype.emit=function(t){var e,n,r,s,u,c;if(this._events||(this._events={}),"error"===t&&(!this._events.error||o(this._events.error)&&!this._events.error.length)){if((e=arguments[1])instanceof Error)throw e;var l=new Error('Uncaught, unspecified "error" event. ('+e+")");throw l.context=e,l}if(a(n=this._events[t]))return!1;if(i(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:s=Array.prototype.slice.call(arguments,1),n.apply(this,s)}else if(o(n))for(s=Array.prototype.slice.call(arguments,1),r=(c=n.slice()).length,u=0;u<r;u++)c[u].apply(this,s);return!0},r.prototype.addListener=function(t,e){var n;if(!i(e))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",t,i(e.listener)?e.listener:e),this._events[t]?o(this._events[t])?this._events[t].push(e):this._events[t]=[this._events[t],e]:this._events[t]=e,o(this._events[t])&&!this._events[t].warned&&(n=a(this._maxListeners)?r.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[t].length>n&&(this._events[t].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[t].length),"function"==typeof console.trace&&console.trace()),this},r.prototype.on=r.prototype.addListener,r.prototype.once=function(t,e){if(!i(e))throw TypeError("listener must be a function");var n=!1;function r(){this.removeListener(t,r),n||(n=!0,e.apply(this,arguments))}return r.listener=e,this.on(t,r),this},r.prototype.removeListener=function(t,e){var n,r,a,s;if(!i(e))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(a=(n=this._events[t]).length,r=-1,n===e||i(n.listener)&&n.listener===e)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,e);else if(o(n)){for(s=a;s-- >0;)if(n[s]===e||n[s].listener&&n[s].listener===e){r=s;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[t]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",t,e)}return this},r.prototype.removeAllListeners=function(t){var e,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(e in this._events)"removeListener"!==e&&this.removeAllListeners(e);return this.removeAllListeners("removeListener"),this._events={},this}if(i(n=this._events[t]))this.removeListener(t,n);else if(n)for(;n.length;)this.removeListener(t,n[n.length-1]);return delete this._events[t],this},r.prototype.listeners=function(t){return this._events&&this._events[t]?i(this._events[t])?[this._events[t]]:this._events[t].slice():[]},r.prototype.listenerCount=function(t){if(this._events){var e=this._events[t];if(i(e))return 1;if(e)return e.length}return 0},r.listenerCount=function(t,e){return t.listenerCount(e)}},{}],211:[function(t,e,n){n.read=function(t,e,n,r,i){var o,a,s=8*i-r-1,u=(1<<s)-1,c=u>>1,l=-7,h=n?i-1:0,f=n?-1:1,d=t[e+h];for(h+=f,o=d&(1<<-l)-1,d>>=-l,l+=s;l>0;o=256*o+t[e+h],h+=f,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=r;l>0;a=256*a+t[e+h],h+=f,l-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,r),o-=c}return(d?-1:1)*a*Math.pow(2,o-r)},n.write=function(t,e,n,r,i,o){var a,s,u,c=8*o-i-1,l=(1<<c)-1,h=l>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,p=r?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=l):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),(e+=a+h>=1?f/u:f*Math.pow(2,1-h))*u>=2&&(a++,u/=2),a+h>=l?(s=0,a=l):a+h>=1?(s=(e*u-1)*Math.pow(2,i),a+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;t[n+d]=255&s,d+=p,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;t[n+d]=255&a,d+=p,a/=256,c-=8);t[n+d-p]|=128*g}},{}],212:[function(t,e,n){"function"==typeof Object.create?e.localExports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:e.localExports=function(t,e){if(e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}}},{}],213:[function(t,e,n){var r={}.toString;e.localExports=Array.isArray||function(t){return"[object Array]"==r.call(t)}},{}],214:[function(t,e,n){var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;e.localExports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(t){r[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var n,a,s=function(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(t),u=1;u<arguments.length;u++){for(var c in n=Object(arguments[u]))i.call(n,c)&&(s[c]=n[c]);if(r){a=r(n);for(var l=0;l<a.length;l++)o.call(n,a[l])&&(s[a[l]]=n[a[l]])}}return s}},{}],215:[function(t,e,n){var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;n.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var n=e.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var r in n)n.hasOwnProperty(r)&&(t[r]=n[r])}}return t},n.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var i={arraySet:function(t,e,n,r,i){if(e.subarray&&t.subarray)t.set(e.subarray(n,n+r),i);else for(var o=0;o<r;o++)t[i+o]=e[n+o]},flattenChunks:function(t){var e,n,r,i,o,a;for(r=0,e=0,n=t.length;e<n;e++)r+=t[e].length;for(a=new Uint8Array(r),i=0,e=0,n=t.length;e<n;e++)o=t[e],a.set(o,i),i+=o.length;return a}},o={arraySet:function(t,e,n,r,i){for(var o=0;o<r;o++)t[i+o]=e[n+o]},flattenChunks:function(t){return[].concat.apply([],t)}};n.setTyped=function(t){t?(n.Buf8=Uint8Array,n.Buf16=Uint16Array,n.Buf32=Int32Array,n.assign(n,i)):(n.Buf8=Array,n.Buf16=Array,n.Buf32=Array,n.assign(n,o))},n.setTyped(r)},{}],216:[function(t,e,n){e.localExports=function(t,e,n,r){for(var i=65535&t|0,o=t>>>16&65535|0,a=0;0!==n;){n-=a=n>2e3?2e3:n;do{o=o+(i=i+e[r++]|0)|0}while(--a);i%=65521,o%=65521}return i|o<<16|0}},{}],217:[function(t,e,n){e.localExports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],218:[function(t,e,n){var r=function(){for(var t,e=[],n=0;n<256;n++){t=n;for(var r=0;r<8;r++)t=1&t?3988292384^t>>>1:t>>>1;e[n]=t}return e}();e.localExports=function(t,e,n,i){var o=r,a=i+n;t^=-1;for(var s=i;s<a;s++)t=t>>>8^o[255&(t^e[s])];return-1^t}},{}],219:[function(t,e,n){var r,i=t("../utils/common"),o=t("./trees"),a=t("./adler32"),s=t("./crc32"),u=t("./messages"),c=0,l=1,h=3,f=4,d=5,p=0,g=1,_=-2,m=-3,v=-5,y=-1,b=1,w=2,x=3,S=4,C=0,P=2,k=8,E=9,A=15,T=8,j=286,O=30,L=19,I=2*j+1,B=15,N=3,R=258,D=R+N+1,M=32,z=42,F=69,U=73,q=91,H=103,G=113,W=666,Z=1,V=2,X=3,Y=4,K=3;function J(t,e){return t.msg=u[e],e}function Q(t){return(t<<1)-(t>4?9:0)}function $(t){for(var e=t.length;--e>=0;)t[e]=0}function tt(t){var e=t.state,n=e.pending;n>t.avail_out&&(n=t.avail_out),0!==n&&(i.arraySet(t.output,e.pending_buf,e.pending_out,n,t.next_out),t.next_out+=n,e.pending_out+=n,t.total_out+=n,t.avail_out-=n,e.pending-=n,0===e.pending&&(e.pending_out=0))}function et(t,e){o._tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,tt(t.strm)}function nt(t,e){t.pending_buf[t.pending++]=e}function rt(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function it(t,e){var n,r,i=t.max_chain_length,o=t.strstart,a=t.prev_length,s=t.nice_match,u=t.strstart>t.w_size-D?t.strstart-(t.w_size-D):0,c=t.window,l=t.w_mask,h=t.prev,f=t.strstart+R,d=c[o+a-1],p=c[o+a];t.prev_length>=t.good_match&&(i>>=2),s>t.lookahead&&(s=t.lookahead);do{if(c[(n=e)+a]===p&&c[n+a-1]===d&&c[n]===c[o]&&c[++n]===c[o+1]){o+=2,n++;do{}while(c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&o<f);if(r=R-(f-o),o=f-R,r>a){if(t.match_start=e,a=r,r>=s)break;d=c[o+a-1],p=c[o+a]}}}while((e=h[e&l])>u&&0!=--i);return a<=t.lookahead?a:t.lookahead}function ot(t){var e,n,r,o,u,c,l,h,f,d,p=t.w_size;do{if(o=t.window_size-t.lookahead-t.strstart,t.strstart>=p+(p-D)){i.arraySet(t.window,t.window,p,p,0),t.match_start-=p,t.strstart-=p,t.block_start-=p,e=n=t.hash_size;do{r=t.head[--e],t.head[e]=r>=p?r-p:0}while(--n);e=n=p;do{r=t.prev[--e],t.prev[e]=r>=p?r-p:0}while(--n);o+=p}if(0===t.strm.avail_in)break;if(c=t.strm,l=t.window,h=t.strstart+t.lookahead,f=o,d=void 0,(d=c.avail_in)>f&&(d=f),n=0===d?0:(c.avail_in-=d,i.arraySet(l,c.input,c.next_in,d,h),1===c.state.wrap?c.adler=a(c.adler,l,d,h):2===c.state.wrap&&(c.adler=s(c.adler,l,d,h)),c.next_in+=d,c.total_in+=d,d),t.lookahead+=n,t.lookahead+t.insert>=N)for(u=t.strstart-t.insert,t.ins_h=t.window[u],t.ins_h=(t.ins_h<<t.hash_shift^t.window[u+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[u+N-1])&t.hash_mask,t.prev[u&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=u,u++,t.insert--,!(t.lookahead+t.insert<N)););}while(t.lookahead<D&&0!==t.strm.avail_in)}function at(t,e){for(var n,r;;){if(t.lookahead<D){if(ot(t),t.lookahead<D&&e===c)return Z;if(0===t.lookahead)break}if(n=0,t.lookahead>=N&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+N-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==n&&t.strstart-n<=t.w_size-D&&(t.match_length=it(t,n)),t.match_length>=N)if(r=o._tr_tally(t,t.strstart-t.match_start,t.match_length-N),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=N){t.match_length--;do{t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+N-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else r=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(r&&(et(t,!1),0===t.strm.avail_out))return Z}return t.insert=t.strstart<N-1?t.strstart:N-1,e===f?(et(t,!0),0===t.strm.avail_out?X:Y):t.last_lit&&(et(t,!1),0===t.strm.avail_out)?Z:V}function st(t,e){for(var n,r,i;;){if(t.lookahead<D){if(ot(t),t.lookahead<D&&e===c)return Z;if(0===t.lookahead)break}if(n=0,t.lookahead>=N&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+N-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=N-1,0!==n&&t.prev_length<t.max_lazy_match&&t.strstart-n<=t.w_size-D&&(t.match_length=it(t,n),t.match_length<=5&&(t.strategy===b||t.match_length===N&&t.strstart-t.match_start>4096)&&(t.match_length=N-1)),t.prev_length>=N&&t.match_length<=t.prev_length){i=t.strstart+t.lookahead-N,r=o._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-N),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=i&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+N-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=N-1,t.strstart++,r&&(et(t,!1),0===t.strm.avail_out))return Z}else if(t.match_available){if((r=o._tr_tally(t,0,t.window[t.strstart-1]))&&et(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return Z}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(r=o._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<N-1?t.strstart:N-1,e===f?(et(t,!0),0===t.strm.avail_out?X:Y):t.last_lit&&(et(t,!1),0===t.strm.avail_out)?Z:V}function ut(t,e,n,r,i){this.good_length=t,this.max_lazy=e,this.nice_length=n,this.max_chain=r,this.func=i}function ct(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=P,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?z:G,t.adler=2===e.wrap?0:1,e.last_flush=c,o._tr_init(e),p):J(t,_)}function lt(t){var e,n=ct(t);return n===p&&((e=t.state).window_size=2*e.w_size,$(e.head),e.max_lazy_match=r[e.level].max_lazy,e.good_match=r[e.level].good_length,e.nice_match=r[e.level].nice_length,e.max_chain_length=r[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=N-1,e.match_available=0,e.ins_h=0),n}function ht(t,e,n,r,o,a){if(!t)return _;var s=1;if(e===y&&(e=6),r<0?(s=0,r=-r):r>15&&(s=2,r-=16),o<1||o>E||n!==k||r<8||r>15||e<0||e>9||a<0||a>S)return J(t,_);8===r&&(r=9);var u=new function(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=k,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(2*I),this.dyn_dtree=new i.Buf16(2*(2*O+1)),this.bl_tree=new i.Buf16(2*(2*L+1)),$(this.dyn_ltree),$(this.dyn_dtree),$(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(B+1),this.heap=new i.Buf16(2*j+1),$(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(2*j+1),$(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0};return t.state=u,u.strm=t,u.wrap=s,u.gzhead=null,u.w_bits=r,u.w_size=1<<u.w_bits,u.w_mask=u.w_size-1,u.hash_bits=o+7,u.hash_size=1<<u.hash_bits,u.hash_mask=u.hash_size-1,u.hash_shift=~~((u.hash_bits+N-1)/N),u.window=new i.Buf8(2*u.w_size),u.head=new i.Buf16(u.hash_size),u.prev=new i.Buf16(u.w_size),u.lit_bufsize=1<<o+6,u.pending_buf_size=4*u.lit_bufsize,u.pending_buf=new i.Buf8(u.pending_buf_size),u.d_buf=1*u.lit_bufsize,u.l_buf=3*u.lit_bufsize,u.level=e,u.strategy=a,u.method=n,lt(t)}r=[new ut(0,0,0,0,function(t,e){var n=65535;for(n>t.pending_buf_size-5&&(n=t.pending_buf_size-5);;){if(t.lookahead<=1){if(ot(t),0===t.lookahead&&e===c)return Z;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var r=t.block_start+n;if((0===t.strstart||t.strstart>=r)&&(t.lookahead=t.strstart-r,t.strstart=r,et(t,!1),0===t.strm.avail_out))return Z;if(t.strstart-t.block_start>=t.w_size-D&&(et(t,!1),0===t.strm.avail_out))return Z}return t.insert=0,e===f?(et(t,!0),0===t.strm.avail_out?X:Y):(t.strstart>t.block_start&&(et(t,!1),t.strm.avail_out),Z)}),new ut(4,4,8,4,at),new ut(4,5,16,8,at),new ut(4,6,32,32,at),new ut(4,4,16,16,st),new ut(8,16,32,32,st),new ut(8,16,128,128,st),new ut(8,32,128,256,st),new ut(32,128,258,1024,st),new ut(32,258,258,4096,st)],n.deflateInit=function(t,e){return ht(t,e,k,A,T,C)},n.deflateInit2=ht,n.deflateReset=lt,n.deflateResetKeep=ct,n.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?_:(t.state.gzhead=e,p):_},n.deflate=function(t,e){var n,i,a,u;if(!t||!t.state||e>d||e<0)return t?J(t,_):_;if(i=t.state,!t.output||!t.input&&0!==t.avail_in||i.status===W&&e!==f)return J(t,0===t.avail_out?v:_);if(i.strm=t,n=i.last_flush,i.last_flush=e,i.status===z)if(2===i.wrap)t.adler=0,nt(i,31),nt(i,139),nt(i,8),i.gzhead?(nt(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),nt(i,255&i.gzhead.time),nt(i,i.gzhead.time>>8&255),nt(i,i.gzhead.time>>16&255),nt(i,i.gzhead.time>>24&255),nt(i,9===i.level?2:i.strategy>=w||i.level<2?4:0),nt(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(nt(i,255&i.gzhead.extra.length),nt(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(t.adler=s(t.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=F):(nt(i,0),nt(i,0),nt(i,0),nt(i,0),nt(i,0),nt(i,9===i.level?2:i.strategy>=w||i.level<2?4:0),nt(i,K),i.status=G);else{var m=k+(i.w_bits-8<<4)<<8;m|=(i.strategy>=w||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(m|=M),m+=31-m%31,i.status=G,rt(i,m),0!==i.strstart&&(rt(i,t.adler>>>16),rt(i,65535&t.adler)),t.adler=1}if(i.status===F)if(i.gzhead.extra){for(a=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),tt(t),a=i.pending,i.pending!==i.pending_buf_size));)nt(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=U)}else i.status=U;if(i.status===U)if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),tt(t),a=i.pending,i.pending===i.pending_buf_size)){u=1;break}u=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,nt(i,u)}while(0!==u);i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),0===u&&(i.gzindex=0,i.status=q)}else i.status=q;if(i.status===q)if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),tt(t),a=i.pending,i.pending===i.pending_buf_size)){u=1;break}u=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,nt(i,u)}while(0!==u);i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),0===u&&(i.status=H)}else i.status=H;if(i.status===H&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&tt(t),i.pending+2<=i.pending_buf_size&&(nt(i,255&t.adler),nt(i,t.adler>>8&255),t.adler=0,i.status=G)):i.status=G),0!==i.pending){if(tt(t),0===t.avail_out)return i.last_flush=-1,p}else if(0===t.avail_in&&Q(e)<=Q(n)&&e!==f)return J(t,v);if(i.status===W&&0!==t.avail_in)return J(t,v);if(0!==t.avail_in||0!==i.lookahead||e!==c&&i.status!==W){var y=i.strategy===w?function(t,e){for(var n;;){if(0===t.lookahead&&(ot(t),0===t.lookahead)){if(e===c)return Z;break}if(t.match_length=0,n=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,n&&(et(t,!1),0===t.strm.avail_out))return Z}return t.insert=0,e===f?(et(t,!0),0===t.strm.avail_out?X:Y):t.last_lit&&(et(t,!1),0===t.strm.avail_out)?Z:V}(i,e):i.strategy===x?function(t,e){for(var n,r,i,a,s=t.window;;){if(t.lookahead<=R){if(ot(t),t.lookahead<=R&&e===c)return Z;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=N&&t.strstart>0&&(r=s[i=t.strstart-1])===s[++i]&&r===s[++i]&&r===s[++i]){a=t.strstart+R;do{}while(r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&i<a);t.match_length=R-(a-i),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=N?(n=o._tr_tally(t,1,t.match_length-N),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(n=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),n&&(et(t,!1),0===t.strm.avail_out))return Z}return t.insert=0,e===f?(et(t,!0),0===t.strm.avail_out?X:Y):t.last_lit&&(et(t,!1),0===t.strm.avail_out)?Z:V}(i,e):r[i.level].func(i,e);if(y!==X&&y!==Y||(i.status=W),y===Z||y===X)return 0===t.avail_out&&(i.last_flush=-1),p;if(y===V&&(e===l?o._tr_align(i):e!==d&&(o._tr_stored_block(i,0,0,!1),e===h&&($(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),tt(t),0===t.avail_out))return i.last_flush=-1,p}return e!==f?p:i.wrap<=0?g:(2===i.wrap?(nt(i,255&t.adler),nt(i,t.adler>>8&255),nt(i,t.adler>>16&255),nt(i,t.adler>>24&255),nt(i,255&t.total_in),nt(i,t.total_in>>8&255),nt(i,t.total_in>>16&255),nt(i,t.total_in>>24&255)):(rt(i,t.adler>>>16),rt(i,65535&t.adler)),tt(t),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?p:g)},n.deflateEnd=function(t){var e;return t&&t.state?(e=t.state.status)!==z&&e!==F&&e!==U&&e!==q&&e!==H&&e!==G&&e!==W?J(t,_):(t.state=null,e===G?J(t,m):p):_},n.deflateSetDictionary=function(t,e){var n,r,o,s,u,c,l,h,f=e.length;if(!t||!t.state)return _;if(2===(s=(n=t.state).wrap)||1===s&&n.status!==z||n.lookahead)return _;for(1===s&&(t.adler=a(t.adler,e,f,0)),n.wrap=0,f>=n.w_size&&(0===s&&($(n.head),n.strstart=0,n.block_start=0,n.insert=0),h=new i.Buf8(n.w_size),i.arraySet(h,e,f-n.w_size,n.w_size,0),e=h,f=n.w_size),u=t.avail_in,c=t.next_in,l=t.input,t.avail_in=f,t.next_in=0,t.input=e,ot(n);n.lookahead>=N;){r=n.strstart,o=n.lookahead-(N-1);do{n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+N-1])&n.hash_mask,n.prev[r&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=r,r++}while(--o);n.strstart=r,n.lookahead=N-1,ot(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=N-1,n.match_available=0,t.next_in=c,t.input=l,t.avail_in=u,n.wrap=s,p},n.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":215,"./adler32":216,"./crc32":218,"./messages":223,"./trees":224}],220:[function(t,e,n){e.localExports=function(t,e){var n,r,i,o,a,s,u,c,l,h,f,d,p,g,_,m,v,y,b,w,x,S,C,P,k;n=t.state,r=t.next_in,P=t.input,i=r+(t.avail_in-5),o=t.next_out,k=t.output,a=o-(e-t.avail_out),s=o+(t.avail_out-257),u=n.dmax,c=n.wsize,l=n.whave,h=n.wnext,f=n.window,d=n.hold,p=n.bits,g=n.lencode,_=n.distcode,m=(1<<n.lenbits)-1,v=(1<<n.distbits)-1;t:do{p<15&&(d+=P[r++]<<p,p+=8,d+=P[r++]<<p,p+=8),y=g[d&m];e:for(;;){if(d>>>=b=y>>>24,p-=b,0==(b=y>>>16&255))k[o++]=65535&y;else{if(!(16&b)){if(0==(64&b)){y=g[(65535&y)+(d&(1<<b)-1)];continue e}if(32&b){n.mode=12;break t}t.msg="invalid literal/length code",n.mode=30;break t}w=65535&y,(b&=15)&&(p<b&&(d+=P[r++]<<p,p+=8),w+=d&(1<<b)-1,d>>>=b,p-=b),p<15&&(d+=P[r++]<<p,p+=8,d+=P[r++]<<p,p+=8),y=_[d&v];n:for(;;){if(d>>>=b=y>>>24,p-=b,!(16&(b=y>>>16&255))){if(0==(64&b)){y=_[(65535&y)+(d&(1<<b)-1)];continue n}t.msg="invalid distance code",n.mode=30;break t}if(x=65535&y,p<(b&=15)&&(d+=P[r++]<<p,(p+=8)<b&&(d+=P[r++]<<p,p+=8)),(x+=d&(1<<b)-1)>u){t.msg="invalid distance too far back",n.mode=30;break t}if(d>>>=b,p-=b,x>(b=o-a)){if((b=x-b)>l&&n.sane){t.msg="invalid distance too far back",n.mode=30;break t}if(S=0,C=f,0===h){if(S+=c-b,b<w){w-=b;do{k[o++]=f[S++]}while(--b);S=o-x,C=k}}else if(h<b){if(S+=c+h-b,(b-=h)<w){w-=b;do{k[o++]=f[S++]}while(--b);if(S=0,h<w){w-=b=h;do{k[o++]=f[S++]}while(--b);S=o-x,C=k}}}else if(S+=h-b,b<w){w-=b;do{k[o++]=f[S++]}while(--b);S=o-x,C=k}for(;w>2;)k[o++]=C[S++],k[o++]=C[S++],k[o++]=C[S++],w-=3;w&&(k[o++]=C[S++],w>1&&(k[o++]=C[S++]))}else{S=o-x;do{k[o++]=k[S++],k[o++]=k[S++],k[o++]=k[S++],w-=3}while(w>2);w&&(k[o++]=k[S++],w>1&&(k[o++]=k[S++]))}break}}break}}while(r<i&&o<s);r-=w=p>>3,d&=(1<<(p-=w<<3))-1,t.next_in=r,t.next_out=o,t.avail_in=r<i?i-r+5:5-(r-i),t.avail_out=o<s?s-o+257:257-(o-s),n.hold=d,n.bits=p}},{}],221:[function(t,e,n){var r=t("../utils/common"),i=t("./adler32"),o=t("./crc32"),a=t("./inffast"),s=t("./inftrees"),u=0,c=1,l=2,h=4,f=5,d=6,p=0,g=1,_=2,m=-2,v=-3,y=-4,b=-5,w=8,x=1,S=2,C=3,P=4,k=5,E=6,A=7,T=8,j=9,O=10,L=11,I=12,B=13,N=14,R=15,D=16,M=17,z=18,F=19,U=20,q=21,H=22,G=23,W=24,Z=25,V=26,X=27,Y=28,K=29,J=30,Q=31,$=32,tt=852,et=592,nt=15;function rt(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function it(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=x,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new r.Buf32(tt),e.distcode=e.distdyn=new r.Buf32(et),e.sane=1,e.back=-1,p):m}function ot(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,it(t)):m}function at(t,e){var n,r;return t&&t.state?(r=t.state,e<0?(n=0,e=-e):(n=1+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?m:(null!==r.window&&r.wbits!==e&&(r.window=null),r.wrap=n,r.wbits=e,ot(t))):m}function st(t,e){var n,i;return t?(i=new function(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0},t.state=i,i.window=null,(n=at(t,e))!==p&&(t.state=null),n):m}var ut,ct,lt=!0;function ht(t){if(lt){var e;for(ut=new r.Buf32(512),ct=new r.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(s(c,t.lens,0,288,ut,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;s(l,t.lens,0,32,ct,0,t.work,{bits:5}),lt=!1}t.lencode=ut,t.lenbits=9,t.distcode=ct,t.distbits=5}function ft(t,e,n,i){var o,a=t.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new r.Buf8(a.wsize)),i>=a.wsize?(r.arraySet(a.window,e,n-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):((o=a.wsize-a.wnext)>i&&(o=i),r.arraySet(a.window,e,n-i,o,a.wnext),(i-=o)?(r.arraySet(a.window,e,n-i,i,0),a.wnext=i,a.whave=a.wsize):(a.wnext+=o,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=o))),0}n.inflateReset=ot,n.inflateReset2=at,n.inflateResetKeep=it,n.inflateInit=function(t){return st(t,nt)},n.inflateInit2=st,n.inflate=function(t,e){var n,tt,et,nt,it,ot,at,st,ut,ct,lt,dt,pt,gt,_t,mt,vt,yt,bt,wt,xt,St,Ct,Pt,kt=0,Et=new r.Buf8(4),At=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return m;(n=t.state).mode===I&&(n.mode=B),it=t.next_out,et=t.output,at=t.avail_out,nt=t.next_in,tt=t.input,ot=t.avail_in,st=n.hold,ut=n.bits,ct=ot,lt=at,St=p;t:for(;;)switch(n.mode){case x:if(0===n.wrap){n.mode=B;break}for(;ut<16;){if(0===ot)break t;ot--,st+=tt[nt++]<<ut,ut+=8}if(2&n.wrap&&35615===st){n.check=0,Et[0]=255&st,Et[1]=st>>>8&255,n.check=o(n.check,Et,2,0),st=0,ut=0,n.mode=S;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&st)<<8)+(st>>8))%31){t.msg="incorrect header check",n.mode=J;break}if((15&st)!==w){t.msg="unknown compression method",n.mode=J;break}if(ut-=4,xt=8+(15&(st>>>=4)),0===n.wbits)n.wbits=xt;else if(xt>n.wbits){t.msg="invalid window size",n.mode=J;break}n.dmax=1<<xt,t.adler=n.check=1,n.mode=512&st?O:I,st=0,ut=0;break;case S:for(;ut<16;){if(0===ot)break t;ot--,st+=tt[nt++]<<ut,ut+=8}if(n.flags=st,(255&n.flags)!==w){t.msg="unknown compression method",n.mode=J;break}if(57344&n.flags){t.msg="unknown header flags set",n.mode=J;break}n.head&&(n.head.text=st>>8&1),512&n.flags&&(Et[0]=255&st,Et[1]=st>>>8&255,n.check=o(n.check,Et,2,0)),st=0,ut=0,n.mode=C;case C:for(;ut<32;){if(0===ot)break t;ot--,st+=tt[nt++]<<ut,ut+=8}n.head&&(n.head.time=st),512&n.flags&&(Et[0]=255&st,Et[1]=st>>>8&255,Et[2]=st>>>16&255,Et[3]=st>>>24&255,n.check=o(n.check,Et,4,0)),st=0,ut=0,n.mode=P;case P:for(;ut<16;){if(0===ot)break t;ot--,st+=tt[nt++]<<ut,ut+=8}n.head&&(n.head.xflags=255&st,n.head.os=st>>8),512&n.flags&&(Et[0]=255&st,Et[1]=st>>>8&255,n.check=o(n.check,Et,2,0)),st=0,ut=0,n.mode=k;case k:if(1024&n.flags){for(;ut<16;){if(0===ot)break t;ot--,st+=tt[nt++]<<ut,ut+=8}n.length=st,n.head&&(n.head.extra_len=st),512&n.flags&&(Et[0]=255&st,Et[1]=st>>>8&255,n.check=o(n.check,Et,2,0)),st=0,ut=0}else n.head&&(n.head.extra=null);n.mode=E;case E:if(1024&n.flags&&((dt=n.length)>ot&&(dt=ot),dt&&(n.head&&(xt=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),r.arraySet(n.head.extra,tt,nt,dt,xt)),512&n.flags&&(n.check=o(n.check,tt,dt,nt)),ot-=dt,nt+=dt,n.length-=dt),n.length))break t;n.length=0,n.mode=A;case A:if(2048&n.flags){if(0===ot)break t;dt=0;do{xt=tt[nt+dt++],n.head&&xt&&n.length<65536&&(n.head.name+=String.fromCharCode(xt))}while(xt&&dt<ot);if(512&n.flags&&(n.check=o(n.check,tt,dt,nt)),ot-=dt,nt+=dt,xt)break t}else n.head&&(n.head.name=null);n.length=0,n.mode=T;case T:if(4096&n.flags){if(0===ot)break t;dt=0;do{xt=tt[nt+dt++],n.head&&xt&&n.length<65536&&(n.head.comment+=String.fromCharCode(xt))}while(xt&&dt<ot);if(512&n.flags&&(n.check=o(n.check,tt,dt,nt)),ot-=dt,nt+=dt,xt)break t}else n.head&&(n.head.comment=null);n.mode=j;case j:if(512&n.flags){for(;ut<16;){if(0===ot)break t;ot--,st+=tt[nt++]<<ut,ut+=8}if(st!==(65535&n.check)){t.msg="header crc mismatch",n.mode=J;break}st=0,ut=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),t.adler=n.check=0,n.mode=I;break;case O:for(;ut<32;){if(0===ot)break t;ot--,st+=tt[nt++]<<ut,ut+=8}t.adler=n.check=rt(st),st=0,ut=0,n.mode=L;case L:if(0===n.havedict)return t.next_out=it,t.avail_out=at,t.next_in=nt,t.avail_in=ot,n.hold=st,n.bits=ut,_;t.adler=n.check=1,n.mode=I;case I:if(e===f||e===d)break t;case B:if(n.last){st>>>=7&ut,ut-=7&ut,n.mode=X;break}for(;ut<3;){if(0===ot)break t;ot--,st+=tt[nt++]<<ut,ut+=8}switch(n.last=1&st,ut-=1,3&(st>>>=1)){case 0:n.mode=N;break;case 1:if(ht(n),n.mode=U,e===d){st>>>=2,ut-=2;break t}break;case 2:n.mode=M;break;case 3:t.msg="invalid block type",n.mode=J}st>>>=2,ut-=2;break;case N:for(st>>>=7&ut,ut-=7&ut;ut<32;){if(0===ot)break t;ot--,st+=tt[nt++]<<ut,ut+=8}if((65535&st)!=(st>>>16^65535)){t.msg="invalid stored block lengths",n.mode=J;break}if(n.length=65535&st,st=0,ut=0,n.mode=R,e===d)break t;case R:n.mode=D;case D:if(dt=n.length){if(dt>ot&&(dt=ot),dt>at&&(dt=at),0===dt)break t;r.arraySet(et,tt,nt,dt,it),ot-=dt,nt+=dt,at-=dt,it+=dt,n.length-=dt;break}n.mode=I;break;case M:for(;ut<14;){if(0===ot)break t;ot--,st+=tt[nt++]<<ut,ut+=8}if(n.nlen=257+(31&st),st>>>=5,ut-=5,n.ndist=1+(31&st),st>>>=5,ut-=5,n.ncode=4+(15&st),st>>>=4,ut-=4,n.nlen>286||n.ndist>30){t.msg="too many length or distance symbols",n.mode=J;break}n.have=0,n.mode=z;case z:for(;n.have<n.ncode;){for(;ut<3;){if(0===ot)break t;ot--,st+=tt[nt++]<<ut,ut+=8}n.lens[At[n.have++]]=7&st,st>>>=3,ut-=3}for(;n.have<19;)n.lens[At[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,Ct={bits:n.lenbits},St=s(u,n.lens,0,19,n.lencode,0,n.work,Ct),n.lenbits=Ct.bits,St){t.msg="invalid code lengths set",n.mode=J;break}n.have=0,n.mode=F;case F:for(;n.have<n.nlen+n.ndist;){for(;mt=(kt=n.lencode[st&(1<<n.lenbits)-1])>>>16&255,vt=65535&kt,!((_t=kt>>>24)<=ut);){if(0===ot)break t;ot--,st+=tt[nt++]<<ut,ut+=8}if(vt<16)st>>>=_t,ut-=_t,n.lens[n.have++]=vt;else{if(16===vt){for(Pt=_t+2;ut<Pt;){if(0===ot)break t;ot--,st+=tt[nt++]<<ut,ut+=8}if(st>>>=_t,ut-=_t,0===n.have){t.msg="invalid bit length repeat",n.mode=J;break}xt=n.lens[n.have-1],dt=3+(3&st),st>>>=2,ut-=2}else if(17===vt){for(Pt=_t+3;ut<Pt;){if(0===ot)break t;ot--,st+=tt[nt++]<<ut,ut+=8}ut-=_t,xt=0,dt=3+(7&(st>>>=_t)),st>>>=3,ut-=3}else{for(Pt=_t+7;ut<Pt;){if(0===ot)break t;ot--,st+=tt[nt++]<<ut,ut+=8}ut-=_t,xt=0,dt=11+(127&(st>>>=_t)),st>>>=7,ut-=7}if(n.have+dt>n.nlen+n.ndist){t.msg="invalid bit length repeat",n.mode=J;break}for(;dt--;)n.lens[n.have++]=xt}}if(n.mode===J)break;if(0===n.lens[256]){t.msg="invalid code -- missing end-of-block",n.mode=J;break}if(n.lenbits=9,Ct={bits:n.lenbits},St=s(c,n.lens,0,n.nlen,n.lencode,0,n.work,Ct),n.lenbits=Ct.bits,St){t.msg="invalid literal/lengths set",n.mode=J;break}if(n.distbits=6,n.distcode=n.distdyn,Ct={bits:n.distbits},St=s(l,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,Ct),n.distbits=Ct.bits,St){t.msg="invalid distances set",n.mode=J;break}if(n.mode=U,e===d)break t;case U:n.mode=q;case q:if(ot>=6&&at>=258){t.next_out=it,t.avail_out=at,t.next_in=nt,t.avail_in=ot,n.hold=st,n.bits=ut,a(t,lt),it=t.next_out,et=t.output,at=t.avail_out,nt=t.next_in,tt=t.input,ot=t.avail_in,st=n.hold,ut=n.bits,n.mode===I&&(n.back=-1);break}for(n.back=0;mt=(kt=n.lencode[st&(1<<n.lenbits)-1])>>>16&255,vt=65535&kt,!((_t=kt>>>24)<=ut);){if(0===ot)break t;ot--,st+=tt[nt++]<<ut,ut+=8}if(mt&&0==(240&mt)){for(yt=_t,bt=mt,wt=vt;mt=(kt=n.lencode[wt+((st&(1<<yt+bt)-1)>>yt)])>>>16&255,vt=65535&kt,!(yt+(_t=kt>>>24)<=ut);){if(0===ot)break t;ot--,st+=tt[nt++]<<ut,ut+=8}st>>>=yt,ut-=yt,n.back+=yt}if(st>>>=_t,ut-=_t,n.back+=_t,n.length=vt,0===mt){n.mode=V;break}if(32&mt){n.back=-1,n.mode=I;break}if(64&mt){t.msg="invalid literal/length code",n.mode=J;break}n.extra=15&mt,n.mode=H;case H:if(n.extra){for(Pt=n.extra;ut<Pt;){if(0===ot)break t;ot--,st+=tt[nt++]<<ut,ut+=8}n.length+=st&(1<<n.extra)-1,st>>>=n.extra,ut-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=G;case G:for(;mt=(kt=n.distcode[st&(1<<n.distbits)-1])>>>16&255,vt=65535&kt,!((_t=kt>>>24)<=ut);){if(0===ot)break t;ot--,st+=tt[nt++]<<ut,ut+=8}if(0==(240&mt)){for(yt=_t,bt=mt,wt=vt;mt=(kt=n.distcode[wt+((st&(1<<yt+bt)-1)>>yt)])>>>16&255,vt=65535&kt,!(yt+(_t=kt>>>24)<=ut);){if(0===ot)break t;ot--,st+=tt[nt++]<<ut,ut+=8}st>>>=yt,ut-=yt,n.back+=yt}if(st>>>=_t,ut-=_t,n.back+=_t,64&mt){t.msg="invalid distance code",n.mode=J;break}n.offset=vt,n.extra=15&mt,n.mode=W;case W:if(n.extra){for(Pt=n.extra;ut<Pt;){if(0===ot)break t;ot--,st+=tt[nt++]<<ut,ut+=8}n.offset+=st&(1<<n.extra)-1,st>>>=n.extra,ut-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){t.msg="invalid distance too far back",n.mode=J;break}n.mode=Z;case Z:if(0===at)break t;if(dt=lt-at,n.offset>dt){if((dt=n.offset-dt)>n.whave&&n.sane){t.msg="invalid distance too far back",n.mode=J;break}dt>n.wnext?(dt-=n.wnext,pt=n.wsize-dt):pt=n.wnext-dt,dt>n.length&&(dt=n.length),gt=n.window}else gt=et,pt=it-n.offset,dt=n.length;dt>at&&(dt=at),at-=dt,n.length-=dt;do{et[it++]=gt[pt++]}while(--dt);0===n.length&&(n.mode=q);break;case V:if(0===at)break t;et[it++]=n.length,at--,n.mode=q;break;case X:if(n.wrap){for(;ut<32;){if(0===ot)break t;ot--,st|=tt[nt++]<<ut,ut+=8}if(lt-=at,t.total_out+=lt,n.total+=lt,lt&&(t.adler=n.check=n.flags?o(n.check,et,lt,it-lt):i(n.check,et,lt,it-lt)),lt=at,(n.flags?st:rt(st))!==n.check){t.msg="incorrect data check",n.mode=J;break}st=0,ut=0}n.mode=Y;case Y:if(n.wrap&&n.flags){for(;ut<32;){if(0===ot)break t;ot--,st+=tt[nt++]<<ut,ut+=8}if(st!==(4294967295&n.total)){t.msg="incorrect length check",n.mode=J;break}st=0,ut=0}n.mode=K;case K:St=g;break t;case J:St=v;break t;case Q:return y;case $:default:return m}return t.next_out=it,t.avail_out=at,t.next_in=nt,t.avail_in=ot,n.hold=st,n.bits=ut,(n.wsize||lt!==t.avail_out&&n.mode<J&&(n.mode<X||e!==h))&&ft(t,t.output,t.next_out,lt-t.avail_out)?(n.mode=Q,y):(ct-=t.avail_in,lt-=t.avail_out,t.total_in+=ct,t.total_out+=lt,n.total+=lt,n.wrap&&lt&&(t.adler=n.check=n.flags?o(n.check,et,lt,t.next_out-lt):i(n.check,et,lt,t.next_out-lt)),t.data_type=n.bits+(n.last?64:0)+(n.mode===I?128:0)+(n.mode===U||n.mode===R?256:0),(0===ct&&0===lt||e===h)&&St===p&&(St=b),St)},n.inflateEnd=function(t){if(!t||!t.state)return m;var e=t.state;return e.window&&(e.window=null),t.state=null,p},n.inflateGetHeader=function(t,e){var n;return t&&t.state?0==(2&(n=t.state).wrap)?m:(n.head=e,e.done=!1,p):m},n.inflateSetDictionary=function(t,e){var n,r=e.length;return t&&t.state?0!==(n=t.state).wrap&&n.mode!==L?m:n.mode===L&&i(1,e,r,0)!==n.check?v:ft(t,e,r,r)?(n.mode=Q,y):(n.havedict=1,p):m},n.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":215,"./adler32":216,"./crc32":218,"./inffast":220,"./inftrees":222}],222:[function(t,e,n){var r=t("../utils/common"),i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],o=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],a=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];e.localExports=function(t,e,n,u,c,l,h,f){var d,p,g,_,m,v,y,b,w,x=f.bits,S=0,C=0,P=0,k=0,E=0,A=0,T=0,j=0,O=0,L=0,I=null,B=0,N=new r.Buf16(16),R=new r.Buf16(16),D=null,M=0;for(S=0;S<=15;S++)N[S]=0;for(C=0;C<u;C++)N[e[n+C]]++;for(E=x,k=15;k>=1&&0===N[k];k--);if(E>k&&(E=k),0===k)return c[l++]=20971520,c[l++]=20971520,f.bits=1,0;for(P=1;P<k&&0===N[P];P++);for(E<P&&(E=P),j=1,S=1;S<=15;S++)if(j<<=1,(j-=N[S])<0)return-1;if(j>0&&(0===t||1!==k))return-1;for(R[1]=0,S=1;S<15;S++)R[S+1]=R[S]+N[S];for(C=0;C<u;C++)0!==e[n+C]&&(h[R[e[n+C]]++]=C);if(0===t?(I=D=h,v=19):1===t?(I=i,B-=257,D=o,M-=257,v=256):(I=a,D=s,v=-1),L=0,C=0,S=P,m=l,A=E,T=0,g=-1,_=(O=1<<E)-1,1===t&&O>852||2===t&&O>592)return 1;for(;;){y=S-T,h[C]<v?(b=0,w=h[C]):h[C]>v?(b=D[M+h[C]],w=I[B+h[C]]):(b=96,w=0),d=1<<S-T,P=p=1<<A;do{c[m+(L>>T)+(p-=d)]=y<<24|b<<16|w|0}while(0!==p);for(d=1<<S-1;L&d;)d>>=1;if(0!==d?(L&=d-1,L+=d):L=0,C++,0==--N[S]){if(S===k)break;S=e[n+h[C]]}if(S>E&&(L&_)!==g){for(0===T&&(T=E),m+=P,j=1<<(A=S-T);A+T<k&&!((j-=N[A+T])<=0);)A++,j<<=1;if(O+=1<<A,1===t&&O>852||2===t&&O>592)return 1;c[g=L&_]=E<<24|A<<16|m-l|0}}return 0!==L&&(c[m+L]=S-T<<24|64<<16|0),f.bits=E,0}},{"../utils/common":215}],223:[function(t,e,n){e.localExports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],224:[function(t,e,n){var r=t("../utils/common"),i=4,o=0,a=1,s=2;function u(t){for(var e=t.length;--e>=0;)t[e]=0}var c=0,l=1,h=2,f=29,d=256,p=d+1+f,g=30,_=19,m=2*p+1,v=15,y=16,b=7,w=256,x=16,S=17,C=18,P=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],k=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],E=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],A=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],T=new Array(2*(p+2));u(T);var j=new Array(2*g);u(j);var O=new Array(512);u(O);var L=new Array(256);u(L);var I=new Array(f);u(I);var B,N,R,D=new Array(g);function M(t,e,n,r,i){this.static_tree=t,this.extra_bits=e,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=t&&t.length}function z(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function F(t){return t<256?O[t]:O[256+(t>>>7)]}function U(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function q(t,e,n){t.bi_valid>y-n?(t.bi_buf|=e<<t.bi_valid&65535,U(t,t.bi_buf),t.bi_buf=e>>y-t.bi_valid,t.bi_valid+=n-y):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=n)}function H(t,e,n){q(t,n[2*e],n[2*e+1])}function G(t,e){var n=0;do{n|=1&t,t>>>=1,n<<=1}while(--e>0);return n>>>1}function W(t,e,n){var r,i,o=new Array(v+1),a=0;for(r=1;r<=v;r++)o[r]=a=a+n[r-1]<<1;for(i=0;i<=e;i++){var s=t[2*i+1];0!==s&&(t[2*i]=G(o[s]++,s))}}function Z(t){var e;for(e=0;e<p;e++)t.dyn_ltree[2*e]=0;for(e=0;e<g;e++)t.dyn_dtree[2*e]=0;for(e=0;e<_;e++)t.bl_tree[2*e]=0;t.dyn_ltree[2*w]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function V(t){t.bi_valid>8?U(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function X(t,e,n,r){var i=2*e,o=2*n;return t[i]<t[o]||t[i]===t[o]&&r[e]<=r[n]}function Y(t,e,n){for(var r=t.heap[n],i=n<<1;i<=t.heap_len&&(i<t.heap_len&&X(e,t.heap[i+1],t.heap[i],t.depth)&&i++,!X(e,r,t.heap[i],t.depth));)t.heap[n]=t.heap[i],n=i,i<<=1;t.heap[n]=r}function K(t,e,n){var r,i,o,a,s=0;if(0!==t.last_lit)do{r=t.pending_buf[t.d_buf+2*s]<<8|t.pending_buf[t.d_buf+2*s+1],i=t.pending_buf[t.l_buf+s],s++,0===r?H(t,i,e):(H(t,(o=L[i])+d+1,e),0!==(a=P[o])&&q(t,i-=I[o],a),H(t,o=F(--r),n),0!==(a=k[o])&&q(t,r-=D[o],a))}while(s<t.last_lit);H(t,w,e)}function J(t,e){var n,r,i,o=e.dyn_tree,a=e.stat_desc.static_tree,s=e.stat_desc.has_stree,u=e.stat_desc.elems,c=-1;for(t.heap_len=0,t.heap_max=m,n=0;n<u;n++)0!==o[2*n]?(t.heap[++t.heap_len]=c=n,t.depth[n]=0):o[2*n+1]=0;for(;t.heap_len<2;)o[2*(i=t.heap[++t.heap_len]=c<2?++c:0)]=1,t.depth[i]=0,t.opt_len--,s&&(t.static_len-=a[2*i+1]);for(e.max_code=c,n=t.heap_len>>1;n>=1;n--)Y(t,o,n);i=u;do{n=t.heap[1],t.heap[1]=t.heap[t.heap_len--],Y(t,o,1),r=t.heap[1],t.heap[--t.heap_max]=n,t.heap[--t.heap_max]=r,o[2*i]=o[2*n]+o[2*r],t.depth[i]=(t.depth[n]>=t.depth[r]?t.depth[n]:t.depth[r])+1,o[2*n+1]=o[2*r+1]=i,t.heap[1]=i++,Y(t,o,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var n,r,i,o,a,s,u=e.dyn_tree,c=e.max_code,l=e.stat_desc.static_tree,h=e.stat_desc.has_stree,f=e.stat_desc.extra_bits,d=e.stat_desc.extra_base,p=e.stat_desc.max_length,g=0;for(o=0;o<=v;o++)t.bl_count[o]=0;for(u[2*t.heap[t.heap_max]+1]=0,n=t.heap_max+1;n<m;n++)(o=u[2*u[2*(r=t.heap[n])+1]+1]+1)>p&&(o=p,g++),u[2*r+1]=o,r>c||(t.bl_count[o]++,a=0,r>=d&&(a=f[r-d]),s=u[2*r],t.opt_len+=s*(o+a),h&&(t.static_len+=s*(l[2*r+1]+a)));if(0!==g){do{for(o=p-1;0===t.bl_count[o];)o--;t.bl_count[o]--,t.bl_count[o+1]+=2,t.bl_count[p]--,g-=2}while(g>0);for(o=p;0!==o;o--)for(r=t.bl_count[o];0!==r;)(i=t.heap[--n])>c||(u[2*i+1]!==o&&(t.opt_len+=(o-u[2*i+1])*u[2*i],u[2*i+1]=o),r--)}}(t,e),W(o,c,t.bl_count)}function Q(t,e,n){var r,i,o=-1,a=e[1],s=0,u=7,c=4;for(0===a&&(u=138,c=3),e[2*(n+1)+1]=65535,r=0;r<=n;r++)i=a,a=e[2*(r+1)+1],++s<u&&i===a||(s<c?t.bl_tree[2*i]+=s:0!==i?(i!==o&&t.bl_tree[2*i]++,t.bl_tree[2*x]++):s<=10?t.bl_tree[2*S]++:t.bl_tree[2*C]++,s=0,o=i,0===a?(u=138,c=3):i===a?(u=6,c=3):(u=7,c=4))}function $(t,e,n){var r,i,o=-1,a=e[1],s=0,u=7,c=4;for(0===a&&(u=138,c=3),r=0;r<=n;r++)if(i=a,a=e[2*(r+1)+1],!(++s<u&&i===a)){if(s<c)do{H(t,i,t.bl_tree)}while(0!=--s);else 0!==i?(i!==o&&(H(t,i,t.bl_tree),s--),H(t,x,t.bl_tree),q(t,s-3,2)):s<=10?(H(t,S,t.bl_tree),q(t,s-3,3)):(H(t,C,t.bl_tree),q(t,s-11,7));s=0,o=i,0===a?(u=138,c=3):i===a?(u=6,c=3):(u=7,c=4)}}u(D);var tt=!1;function et(t,e,n,i){q(t,(c<<1)+(i?1:0),3),function(t,e,n,i){V(t),i&&(U(t,n),U(t,~n)),r.arraySet(t.pending_buf,t.window,e,n,t.pending),t.pending+=n}(t,e,n,!0)}n._tr_init=function(t){tt||(function(){var t,e,n,r,i,o=new Array(v+1);for(n=0,r=0;r<f-1;r++)for(I[r]=n,t=0;t<1<<P[r];t++)L[n++]=r;for(L[n-1]=r,i=0,r=0;r<16;r++)for(D[r]=i,t=0;t<1<<k[r];t++)O[i++]=r;for(i>>=7;r<g;r++)for(D[r]=i<<7,t=0;t<1<<k[r]-7;t++)O[256+i++]=r;for(e=0;e<=v;e++)o[e]=0;for(t=0;t<=143;)T[2*t+1]=8,t++,o[8]++;for(;t<=255;)T[2*t+1]=9,t++,o[9]++;for(;t<=279;)T[2*t+1]=7,t++,o[7]++;for(;t<=287;)T[2*t+1]=8,t++,o[8]++;for(W(T,p+1,o),t=0;t<g;t++)j[2*t+1]=5,j[2*t]=G(t,5);B=new M(T,P,d+1,p,v),N=new M(j,k,0,g,v),R=new M(new Array(0),E,0,_,b)}(),tt=!0),t.l_desc=new z(t.dyn_ltree,B),t.d_desc=new z(t.dyn_dtree,N),t.bl_desc=new z(t.bl_tree,R),t.bi_buf=0,t.bi_valid=0,Z(t)},n._tr_stored_block=et,n._tr_flush_block=function(t,e,n,r){var u,c,f=0;t.level>0?(t.strm.data_type===s&&(t.strm.data_type=function(t){var e,n=4093624447;for(e=0;e<=31;e++,n>>>=1)if(1&n&&0!==t.dyn_ltree[2*e])return o;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return a;for(e=32;e<d;e++)if(0!==t.dyn_ltree[2*e])return a;return o}(t)),J(t,t.l_desc),J(t,t.d_desc),f=function(t){var e;for(Q(t,t.dyn_ltree,t.l_desc.max_code),Q(t,t.dyn_dtree,t.d_desc.max_code),J(t,t.bl_desc),e=_-1;e>=3&&0===t.bl_tree[2*A[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),u=t.opt_len+3+7>>>3,(c=t.static_len+3+7>>>3)<=u&&(u=c)):u=c=n+5,n+4<=u&&-1!==e?et(t,e,n,r):t.strategy===i||c===u?(q(t,(l<<1)+(r?1:0),3),K(t,T,j)):(q(t,(h<<1)+(r?1:0),3),function(t,e,n,r){var i;for(q(t,e-257,5),q(t,n-1,5),q(t,r-4,4),i=0;i<r;i++)q(t,t.bl_tree[2*A[i]+1],3);$(t,t.dyn_ltree,e-1),$(t,t.dyn_dtree,n-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,f+1),K(t,t.dyn_ltree,t.dyn_dtree)),Z(t),r&&V(t)},n._tr_tally=function(t,e,n){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&n,t.last_lit++,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(L[n]+d+1)]++,t.dyn_dtree[2*F(e)]++),t.last_lit===t.lit_bufsize-1},n._tr_align=function(t){q(t,l<<1,3),H(t,w,T),function(t){16===t.bi_valid?(U(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},{"../utils/common":215}],225:[function(t,e,n){e.localExports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],226:[function(t,e,n){(function(n){(function(){var r=t("fs"),i=t("zlib");e.localExports=function(){function t(t){var e;for(this.data=t,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.text={};;){var r=this.readUInt32(),i="";for(e=0;e<4;e++)i+=String.fromCharCode(this.data[this.pos++]);switch(i){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"PLTE":this.palette=this.read(r);break;case"IDAT":for(e=0;e<r;e++)this.imgData.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:this.transparency.indexed=this.read(r);var o=255-this.transparency.indexed.length;if(o>0)for(e=0;e<o;e++)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(r)[0];break;case 2:this.transparency.rgb=this.read(r)}break;case"tEXt":var a=this.read(r),s=a.indexOf(0),u=String.fromCharCode.apply(String,a.slice(0,s));this.text[u]=String.fromCharCode.apply(String,a.slice(s+1));break;case"IEND":switch(this.colorType){case 0:case 3:case 4:this.colors=1;break;case 2:case 6:this.colors=3}this.hasAlphaChannel=-1!==[4,6].indexOf(this.colorType);var c=this.colors+(this.hasAlphaChannel?1:0);switch(this.pixelBitlength=this.bits*c,this.colors){case 1:this.colorSpace="DeviceGray";break;case 3:this.colorSpace="DeviceRGB"}return void(this.imgData=new n(this.imgData));default:this.pos+=r}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}t.decode=function(e,n){return r.readFile(e,function(e,r){return new t(r).decode(function(t){return n(t)})})},t.load=function(e){return new t(r.readFileSync(e))};var e=t.prototype;return e.read=function(t){for(var e=new Array(t),n=0;n<t;n++)e[n]=this.data[this.pos++];return e},e.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},e.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},e.decodePixels=function(t){var e=this;return i.inflate(this.imgData,function(r,i){if(r)throw r;var o=e.width,a=e.height,s=e.pixelBitlength/8,u=new n(o*a*s),c=i.length,l=0;function h(t,e,r,h,f){void 0===f&&(f=!1);for(var d=Math.ceil((o-t)/r),p=Math.ceil((a-e)/h),g=s*d,_=f?u:new n(g*p),m=0,v=0;m<p&&l<c;){var y,b,w,x,S;switch(i[l++]){case 0:for(w=0;w<g;w++)_[v++]=i[l++];break;case 1:for(w=0;w<g;w++)y=i[l++],x=w<s?0:_[v-s],_[v++]=(y+x)%256;break;case 2:for(w=0;w<g;w++)y=i[l++],b=(w-w%s)/s,S=m&&_[(m-1)*g+b*s+w%s],_[v++]=(S+y)%256;break;case 3:for(w=0;w<g;w++)y=i[l++],b=(w-w%s)/s,x=w<s?0:_[v-s],S=m&&_[(m-1)*g+b*s+w%s],_[v++]=(y+Math.floor((x+S)/2))%256;break;case 4:for(w=0;w<g;w++){var C,P;y=i[l++],b=(w-w%s)/s,x=w<s?0:_[v-s],0===m?S=P=0:(S=_[(m-1)*g+b*s+w%s],P=b&&_[(m-1)*g+(b-1)*s+w%s]);var k=x+S-P,E=Math.abs(k-x),A=Math.abs(k-S),T=Math.abs(k-P);C=E<=A&&E<=T?x:A<=T?S:P,_[v++]=(y+C)%256}break;default:throw new Error("Invalid filter algorithm: "+i[l-1])}if(!f){var j=((e+m*h)*o+t)*s,O=m*g;for(w=0;w<d;w++){for(var L=0;L<s;L++)u[j++]=_[O++];j+=(r-1)*s}}m++}}return 1===e.interlaceMethod?(h(0,0,8,8),h(4,0,8,8),h(0,4,4,8),h(2,0,4,4),h(0,2,2,4),h(1,0,2,2),h(0,1,1,2)):h(0,0,1,1,!0),t(u)})},e.decodePalette=function(){for(var t=this.palette,e=t.length,r=this.transparency.indexed||[],i=new n(r.length+e),o=0,a=0,s=0;s<e;s+=3){var u;i[o++]=t[s],i[o++]=t[s+1],i[o++]=t[s+2],i[o++]=null!=(u=r[a++])?u:255}return i},e.copyToImageData=function(t,e){var n,r,i=this.colors,o=null,a=this.hasAlphaChannel;this.palette.length&&(o=this._decodedPalette||(this._decodedPalette=this.decodePalette()),i=4,a=!0);var s=t.data||t,u=s.length,c=o||e,l=n=0;if(1===i)for(;l<u;){r=o?4*e[l/4]:n;var h=c[r++];s[l++]=h,s[l++]=h,s[l++]=h,s[l++]=a?c[r++]:255,n=r}else for(;l<u;)r=o?4*e[l/4]:n,s[l++]=c[r++],s[l++]=c[r++],s[l++]=c[r++],s[l++]=a?c[r++]:255,n=r},e.decode=function(t){var e=this,r=new n(this.width*this.height*4);return this.decodePixels(function(n){return e.copyToImageData(r,n),t(r)})},t}()}).call(this)}).call(this,t("buffer").Buffer)},{buffer:152,fs:151,zlib:150}],227:[function(t,e,n){(function(t){(function(){void 0===t||!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.localExports={nextTick:function(e,n,r,i){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var o,a,s=arguments.length;switch(s){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick(function(){e.call(null,n)});case 3:return t.nextTick(function(){e.call(null,n,r)});case 4:return t.nextTick(function(){e.call(null,n,r,i)});default:for(o=new Array(s-1),a=0;a<o.length;)o[a++]=arguments[a];return t.nextTick(function(){e.apply(null,o)})}}}:e.localExports=t}).call(this)}).call(this,t("_process"))},{_process:228}],228:[function(t,e,n){var r,i,o=e.localExports={};function a(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function u(t){if(r===setTimeout)return setTimeout(t,0);if((r===a||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(e){return r.call(this,t,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:a}catch(t){r=a}try{i="function"==typeof clearTimeout?clearTimeout:s}catch(t){i=s}}();var c,l=[],h=!1,f=-1;function d(){h&&c&&(h=!1,c.length?l=c.concat(l):f=-1,l.length&&p())}function p(){if(!h){var t=u(d);h=!0;for(var e=l.length;e;){for(c=l,l=[];++f<e;)c&&c[f].run();f=-1,e=l.length}c=null,h=!1,function(t){if(i===clearTimeout)return clearTimeout(t);if((i===s||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(t);try{i(t)}catch(e){try{return i.call(null,t)}catch(e){return i.call(this,t)}}}(t)}}function g(t,e){this.fun=t,this.array=e}function _(){}o.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];l.push(new g(t,e)),1!==l.length||h||u(p)},g.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=_,o.addListener=_,o.once=_,o.off=_,o.removeListener=_,o.removeAllListeners=_,o.emit=_,o.prependListener=_,o.prependOnceListener=_,o.listeners=function(t){return[]},o.binding=function(t){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(t){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},{}],229:[function(t,e,n){e.localExports=t("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":230}],230:[function(t,e,n){var r=t("process-nextick-args"),i=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};e.localExports=h;var o=Object.create(t("core-util-is"));o.inherits=t("inherits");var a=t("./_stream_readable"),s=t("./_stream_writable");o.inherits(h,a);for(var u=i(s.prototype),c=0;c<u.length;c++){var l=u[c];h.prototype[l]||(h.prototype[l]=s.prototype[l])}function h(t){if(!(this instanceof h))return new h(t);a.call(this,t),s.call(this,t),t&&!1===t.readable&&(this.readable=!1),t&&!1===t.writable&&(this.writable=!1),this.allowHalfOpen=!0,t&&!1===t.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",f)}function f(){this.allowHalfOpen||this._writableState.ended||r.nextTick(d,this)}function d(t){t.end()}Object.defineProperty(h.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(h.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}}),h.prototype._destroy=function(t,e){this.push(null),this.end(),r.nextTick(e,t)}},{"./_stream_readable":232,"./_stream_writable":234,"core-util-is":209,inherits:212,"process-nextick-args":227}],231:[function(t,e,n){e.localExports=o;var r=t("./_stream_transform"),i=Object.create(t("core-util-is"));function o(t){if(!(this instanceof o))return new o(t);r.call(this,t)}i.inherits=t("inherits"),i.inherits(o,r),o.prototype._transform=function(t,e,n){n(null,t)}},{"./_stream_transform":233,"core-util-is":209,inherits:212}],232:[function(t,e,n){(function(n,r){(function(){var i=t("process-nextick-args");e.localExports=y;var o,a=t("isarray");y.ReadableState=v,t("events").EventEmitter;var s=function(t,e){return t.listeners(e).length},u=t("./internal/streams/stream"),c=t("safe-buffer").Buffer,l=r.Uint8Array||function(){},h=Object.create(t("core-util-is"));h.inherits=t("inherits");var f=t("util"),d=void 0;d=f&&f.debuglog?f.debuglog("stream"):function(){};var p,g=t("./internal/streams/BufferList"),_=t("./internal/streams/destroy");h.inherits(y,u);var m=["error","close","destroy","pause","resume"];function v(e,n){o=o||t("./_stream_duplex"),e=e||{};var r=n instanceof o;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,a=e.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(a||0===a)?a:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new g,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(p||(p=t("string_decoder/").StringDecoder),this.decoder=new p(e.encoding),this.encoding=e.encoding)}function y(e){if(o=o||t("./_stream_duplex"),!(this instanceof y))return new y(e);this._readableState=new v(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),u.call(this)}function b(t,e,n,r,i){var o,a=t._readableState;return null===e?(a.reading=!1,function(t,e){if(!e.ended){if(e.decoder){var n=e.decoder.end();n&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length)}e.ended=!0,C(t)}}(t,a)):(i||(o=function(t,e){var n,r;return r=e,c.isBuffer(r)||r instanceof l||"string"==typeof e||void 0===e||t.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}(a,e)),o?t.emit("error",o):a.objectMode||e&&e.length>0?("string"==typeof e||a.objectMode||Object.getPrototypeOf(e)===c.prototype||(e=function(t){return c.from(t)}(e)),r?a.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):w(t,a,e,!0):a.ended?t.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!n?(e=a.decoder.write(e),a.objectMode||0!==e.length?w(t,a,e,!1):k(t,a)):w(t,a,e,!1))):r||(a.reading=!1)),function(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||0===t.length)}(a)}function w(t,e,n,r){e.flowing&&0===e.length&&!e.sync?(t.emit("data",n),t.read(0)):(e.length+=e.objectMode?1:n.length,r?e.buffer.unshift(n):e.buffer.push(n),e.needReadable&&C(t)),k(t,e)}Object.defineProperty(y.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),y.prototype.destroy=_.destroy,y.prototype._undestroy=_.undestroy,y.prototype._destroy=function(t,e){this.push(null),e(t)},y.prototype.push=function(t,e){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof t&&((e=e||r.defaultEncoding)!==r.encoding&&(t=c.from(t,e),e=""),n=!0),b(this,t,e,!1,n)},y.prototype.unshift=function(t){return b(this,t,null,!0,!1)},y.prototype.isPaused=function(){return!1===this._readableState.flowing},y.prototype.setEncoding=function(e){return p||(p=t("string_decoder/").StringDecoder),this._readableState.decoder=new p(e),this._readableState.encoding=e,this};var x=8388608;function S(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!=t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=function(t){return t>=x?t=x:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function C(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(d("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?i.nextTick(P,t):P(t))}function P(t){d("emit readable"),t.emit("readable"),j(t)}function k(t,e){e.readingMore||(e.readingMore=!0,i.nextTick(E,t,e))}function E(t,e){for(var n=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(d("maybeReadMore read 0"),t.read(0),n!==e.length);)n=e.length;e.readingMore=!1}function A(t){d("readable nexttick read 0"),t.read(0)}function T(t,e){e.reading||(d("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),j(t),e.flowing&&!e.reading&&t.read(0)}function j(t){var e=t._readableState;for(d("flow",e.flowing);e.flowing&&null!==t.read(););}function O(t,e){return 0===e.length?null:(e.objectMode?n=e.buffer.shift():!t||t>=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):n=function(t,e,n){var r;return t<e.head.data.length?(r=e.head.data.slice(0,t),e.head.data=e.head.data.slice(t)):r=t===e.head.data.length?e.shift():n?function(t,e){var n=e.head,r=1,i=n.data;for(t-=i.length;n=n.next;){var o=n.data,a=t>o.length?o.length:t;if(a===o.length?i+=o:i+=o.slice(0,t),0==(t-=a)){a===o.length?(++r,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=o.slice(a));break}++r}return e.length-=r,i}(t,e):function(t,e){var n=c.allocUnsafe(t),r=e.head,i=1;for(r.data.copy(n),t-=r.data.length;r=r.next;){var o=r.data,a=t>o.length?o.length:t;if(o.copy(n,n.length-t,0,a),0==(t-=a)){a===o.length?(++i,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=o.slice(a));break}++i}return e.length-=i,n}(t,e),r}(t,e.buffer,e.decoder),n);var n}function L(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,i.nextTick(I,e,t))}function I(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function B(t,e){for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1}y.prototype.read=function(t){d("read",t),t=parseInt(t,10);var e=this._readableState,n=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return d("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?L(this):C(this),null;if(0===(t=S(t,e))&&e.ended)return 0===e.length&&L(this),null;var r,i=e.needReadable;return d("need readable",i),(0===e.length||e.length-t<e.highWaterMark)&&d("length less than watermark",i=!0),e.ended||e.reading?d("reading or ended",i=!1):i&&(d("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=S(n,e))),null===(r=t>0?O(t,e):null)?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&L(this)),null!==r&&this.emit("data",r),r},y.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))},y.prototype.pipe=function(t,e){var r=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=t;break;case 1:o.pipes=[o.pipes,t];break;default:o.pipes.push(t)}o.pipesCount+=1,d("pipe count=%d opts=%j",o.pipesCount,e);var u=e&&!1===e.end||t===n.stdout||t===n.stderr?y:l;function c(e,n){d("onunpipe"),e===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,d("cleanup"),t.removeListener("close",m),t.removeListener("finish",v),t.removeListener("drain",h),t.removeListener("error",_),t.removeListener("unpipe",c),r.removeListener("end",l),r.removeListener("end",y),r.removeListener("data",g),f=!0,!o.awaitDrain||t._writableState&&!t._writableState.needDrain||h())}function l(){d("onend"),t.end()}o.endEmitted?i.nextTick(u):r.once("end",u),t.on("unpipe",c);var h=function(t){return function(){var e=t._readableState;d("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&s(t,"data")&&(e.flowing=!0,j(t))}}(r);t.on("drain",h);var f=!1,p=!1;function g(e){d("ondata"),p=!1,!1!==t.write(e)||p||((1===o.pipesCount&&o.pipes===t||o.pipesCount>1&&-1!==B(o.pipes,t))&&!f&&(d("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,p=!0),r.pause())}function _(e){d("onerror",e),y(),t.removeListener("error",_),0===s(t,"error")&&t.emit("error",e)}function m(){t.removeListener("finish",v),y()}function v(){d("onfinish"),t.removeListener("close",m),y()}function y(){d("unpipe"),r.unpipe(t)}return r.on("data",g),function(t,e,n){if("function"==typeof t.prependListener)return t.prependListener(e,n);t._events&&t._events[e]?a(t._events[e])?t._events[e].unshift(n):t._events[e]=[n,t._events[e]]:t.on(e,n)}(t,"error",_),t.once("close",m),t.once("finish",v),t.emit("pipe",r),o.flowing||(d("pipe resume"),r.resume()),t},y.prototype.unpipe=function(t){var e=this._readableState,n={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,n),this);if(!t){var r=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o<i;o++)r[o].emit("unpipe",this,n);return this}var a=B(e.pipes,t);return-1===a?this:(e.pipes.splice(a,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,n),this)},y.prototype.on=function(t,e){var n=u.prototype.on.call(this,t,e);if("data"===t)!1!==this._readableState.flowing&&this.resume();else if("readable"===t){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&C(this):i.nextTick(A,this))}return n},y.prototype.addListener=y.prototype.on,y.prototype.resume=function(){var t=this._readableState;return t.flowing||(d("resume"),t.flowing=!0,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,i.nextTick(T,t,e))}(this,t)),this},y.prototype.pause=function(){return d("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(d("pause"),this._readableState.flowing=!1,this.emit("pause")),this},y.prototype.wrap=function(t){var e=this,n=this._readableState,r=!1;for(var i in t.on("end",function(){if(d("wrapped end"),n.decoder&&!n.ended){var t=n.decoder.end();t&&t.length&&e.push(t)}e.push(null)}),t.on("data",function(i){d("wrapped data"),n.decoder&&(i=n.decoder.write(i)),(!n.objectMode||null!==i&&void 0!==i)&&(n.objectMode||i&&i.length)&&(e.push(i)||(r=!0,t.pause()))}),t)void 0===this[i]&&"function"==typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));for(var o=0;o<m.length;o++)t.on(m[o],this.emit.bind(this,m[o]));return this._read=function(e){d("wrapped _read",e),r&&(r=!1,t.resume())},this},Object.defineProperty(y.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),y._fromList=O}).call(this)}).call(this,t("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./_stream_duplex":230,"./internal/streams/BufferList":235,"./internal/streams/destroy":236,"./internal/streams/stream":237,_process:228,"core-util-is":209,events:210,inherits:212,isarray:213,"process-nextick-args":227,"safe-buffer":242,"string_decoder/":244,util:148}],233:[function(t,e,n){e.localExports=o;var r=t("./_stream_duplex"),i=Object.create(t("core-util-is"));function o(t){if(!(this instanceof o))return new o(t);r.call(this,t),this._transformState={afterTransform:function(t,e){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=e&&this.push(e),r(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",a)}function a(){var t=this;"function"==typeof this._flush?this._flush(function(e,n){s(t,e,n)}):s(this,null,null)}function s(t,e,n){if(e)return t.emit("error",e);if(null!=n&&t.push(n),t._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(t._transformState.transforming)throw new Error("Calling transform done when still transforming");return t.push(null)}i.inherits=t("inherits"),i.inherits(o,r),o.prototype.push=function(t,e){return this._transformState.needTransform=!1,r.prototype.push.call(this,t,e)},o.prototype._transform=function(t,e,n){throw new Error("_transform() is not implemented")},o.prototype._write=function(t,e,n){var r=this._transformState;if(r.writecb=n,r.writechunk=t,r.writeencoding=e,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},o.prototype._read=function(t){var e=this._transformState;null!==e.writechunk&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0},o.prototype._destroy=function(t,e){var n=this;r.prototype._destroy.call(this,t,function(t){e(t),n.emit("close")})}},{"./_stream_duplex":230,"core-util-is":209,inherits:212}],234:[function(t,e,n){(function(n,r,i){(function(){var o=t("process-nextick-args");function a(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e,n){var r=t.entry;for(t.entry=null;r;){var i=r.callback;e.pendingcb--,i(n),r=r.next}e.corkedRequestsFree?e.corkedRequestsFree.next=t:e.corkedRequestsFree=t}(e,t)}}e.localExports=v;var s,u=!n.browser&&["v0.10","v0.9."].indexOf(n.version.slice(0,5))>-1?i:o.nextTick;v.WritableState=m;var c=Object.create(t("core-util-is"));c.inherits=t("inherits");var l,h={deprecate:t("util-deprecate")},f=t("./internal/streams/stream"),d=t("safe-buffer").Buffer,p=r.Uint8Array||function(){},g=t("./internal/streams/destroy");function _(){}function m(e,n){s=s||t("./_stream_duplex"),e=e||{};var r=n instanceof s;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var i=e.highWaterMark,c=e.writableHighWaterMark,l=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(c||0===c)?c:l,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var h=!1===e.decodeStrings;this.decodeStrings=!h,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var n=t._writableState,r=n.sync,i=n.writecb;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(n),e)!function(t,e,n,r,i){--e.pendingcb,n?(o.nextTick(i,r),o.nextTick(C,t,e),t._writableState.errorEmitted=!0,t.emit("error",r)):(i(r),t._writableState.errorEmitted=!0,t.emit("error",r),C(t,e))}(t,n,r,e,i);else{var a=x(n);a||n.corked||n.bufferProcessing||!n.bufferedRequest||w(t,n),r?u(b,t,n,a,i):b(t,n,a,i)}}(n,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function v(e){if(s=s||t("./_stream_duplex"),!(l.call(v,this)||this instanceof s))return new v(e);this._writableState=new m(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),f.call(this)}function y(t,e,n,r,i,o,a){e.writelen=r,e.writecb=a,e.writing=!0,e.sync=!0,n?t._writev(i,e.onwrite):t._write(i,o,e.onwrite),e.sync=!1}function b(t,e,n,r){n||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,r(),C(t,e)}function w(t,e){e.bufferProcessing=!0;var n=e.bufferedRequest;if(t._writev&&n&&n.next){var r=e.bufferedRequestCount,i=new Array(r),o=e.corkedRequestsFree;o.entry=n;for(var s=0,u=!0;n;)i[s]=n,n.isBuf||(u=!1),n=n.next,s+=1;i.allBuffers=u,y(t,e,!0,e.length,i,"",o.finish),e.pendingcb++,e.lastBufferedRequest=null,o.next?(e.corkedRequestsFree=o.next,o.next=null):e.corkedRequestsFree=new a(e),e.bufferedRequestCount=0}else{for(;n;){var c=n.chunk,l=n.encoding,h=n.callback;if(y(t,e,!1,e.objectMode?1:c.length,c,l,h),n=n.next,e.bufferedRequestCount--,e.writing)break}null===n&&(e.lastBufferedRequest=null)}e.bufferedRequest=n,e.bufferProcessing=!1}function x(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function S(t,e){t._final(function(n){e.pendingcb--,n&&t.emit("error",n),e.prefinished=!0,t.emit("prefinish"),C(t,e)})}function C(t,e){var n=x(e);return n&&(function(t,e){e.prefinished||e.finalCalled||("function"==typeof t._final?(e.pendingcb++,e.finalCalled=!0,o.nextTick(S,t,e)):(e.prefinished=!0,t.emit("prefinish")))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"))),n}c.inherits(v,f),m.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(m.prototype,"buffer",{get:h.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(l=Function.prototype[Symbol.hasInstance],Object.defineProperty(v,Symbol.hasInstance,{value:function(t){return!!l.call(this,t)||this===v&&t&&t._writableState instanceof m}})):l=function(t){return t instanceof this},v.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},v.prototype.write=function(t,e,n){var r,i=this._writableState,a=!1,s=!i.objectMode&&(r=t,d.isBuffer(r)||r instanceof p);return s&&!d.isBuffer(t)&&(t=function(t){return d.from(t)}(t)),"function"==typeof e&&(n=e,e=null),s?e="buffer":e||(e=i.defaultEncoding),"function"!=typeof n&&(n=_),i.ended?function(t,e){var n=new Error("write after end");t.emit("error",n),o.nextTick(e,n)}(this,n):(s||function(t,e,n,r){var i=!0,a=!1;return null===n?a=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||e.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(t.emit("error",a),o.nextTick(r,a),i=!1),i}(this,i,t,n))&&(i.pendingcb++,a=function(t,e,n,r,i,o){if(!n){var a=function(t,e,n){return t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=d.from(e,n)),e}(e,r,i);r!==a&&(n=!0,i="buffer",r=a)}var s=e.objectMode?1:r.length;e.length+=s;var u=e.length<e.highWaterMark;if(u||(e.needDrain=!0),e.writing||e.corked){var c=e.lastBufferedRequest;e.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:o,next:null},c?c.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else y(t,e,!1,s,r,i,o);return u}(this,i,s,t,e,n)),a},v.prototype.cork=function(){this._writableState.corked++},v.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.finished||t.bufferProcessing||!t.bufferedRequest||w(this,t))},v.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(v.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),v.prototype._write=function(t,e,n){n(new Error("_write() is not implemented"))},v.prototype._writev=null,v.prototype.end=function(t,e,n){var r=this._writableState;"function"==typeof t?(n=t,t=null,e=null):"function"==typeof e&&(n=e,e=null),null!==t&&void 0!==t&&this.write(t,e),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(t,e,n){e.ending=!0,C(t,e),n&&(e.finished?o.nextTick(n):t.once("finish",n)),e.ended=!0,t.writable=!1}(this,r,n)},Object.defineProperty(v.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),v.prototype.destroy=g.destroy,v.prototype._undestroy=g.undestroy,v.prototype._destroy=function(t,e){this.end(),e(t)}}).call(this)}).call(this,t("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("timers").setImmediate)},{"./_stream_duplex":230,"./internal/streams/destroy":236,"./internal/streams/stream":237,_process:228,"core-util-is":209,inherits:212,"process-nextick-args":227,"safe-buffer":242,timers:245,"util-deprecate":246}],235:[function(t,e,n){var r=t("safe-buffer").Buffer,i=t("util");e.localExports=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.head=null,this.tail=null,this.length=0}return t.prototype.push=function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length},t.prototype.unshift=function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},t.prototype.shift=function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(t){if(0===this.length)return"";for(var e=this.head,n=""+e.data;e=e.next;)n+=t+e.data;return n},t.prototype.concat=function(t){if(0===this.length)return r.alloc(0);if(1===this.length)return this.head.data;for(var e,n,i,o=r.allocUnsafe(t>>>0),a=this.head,s=0;a;)e=a.data,n=o,i=s,e.copy(n,i),s+=a.data.length,a=a.next;return o},t}(),i&&i.inspect&&i.inspect.custom&&(e.localExports.prototype[i.inspect.custom]=function(){var t=i.inspect({length:this.length});return this.constructor.name+" "+t})},{"safe-buffer":242,util:148}],236:[function(t,e,n){var r=t("process-nextick-args");function i(t,e){t.emit("error",e)}e.localExports={destroy:function(t,e){var n=this,o=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return o||a?(e?e(t):!t||this._writableState&&this._writableState.errorEmitted||r.nextTick(i,this,t),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(t){!e&&t?(r.nextTick(i,n,t),n._writableState&&(n._writableState.errorEmitted=!0)):e&&e(t)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},{"process-nextick-args":227}],237:[function(t,e,n){e.localExports=t("events").EventEmitter},{events:210}],238:[function(t,e,n){e.localExports=t("./readable").PassThrough},{"./readable":239}],239:[function(t,e,n){(n=e.localExports=t("./lib/_stream_readable.js")).Stream=n,n.Readable=n,n.Writable=t("./lib/_stream_writable.js"),n.Duplex=t("./lib/_stream_duplex.js"),n.Transform=t("./lib/_stream_transform.js"),n.PassThrough=t("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":230,"./lib/_stream_passthrough.js":231,"./lib/_stream_readable.js":232,"./lib/_stream_transform.js":233,"./lib/_stream_writable.js":234}],240:[function(t,e,n){e.localExports=t("./readable").Transform},{"./readable":239}],241:[function(t,e,n){e.localExports=t("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":234}],242:[function(t,e,n){var r=t("buffer"),i=r.Buffer;function o(t,e){for(var n in t)e[n]=t[n]}function a(t,e,n){return i(t,e,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.localExports=r:(o(r,n),n.Buffer=a),o(i,a),a.from=function(t,e,n){if("number"==typeof t)throw new TypeError("Argument must not be a number");return i(t,e,n)},a.alloc=function(t,e,n){if("number"!=typeof t)throw new TypeError("Argument must be a number");var r=i(t);return void 0!==e?"string"==typeof n?r.fill(e,n):r.fill(e):r.fill(0),r},a.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return i(t)},a.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return r.SlowBuffer(t)}},{buffer:152}],243:[function(t,e,n){e.localExports=i;var r=t("events").EventEmitter;function i(){r.call(this)}t("inherits")(i,r),i.Readable=t("readable-stream/readable.js"),i.Writable=t("readable-stream/writable.js"),i.Duplex=t("readable-stream/duplex.js"),i.Transform=t("readable-stream/transform.js"),i.PassThrough=t("readable-stream/passthrough.js"),i.Stream=i,i.prototype.pipe=function(t,e){var n=this;function i(e){t.writable&&!1===t.write(e)&&n.pause&&n.pause()}function o(){n.readable&&n.resume&&n.resume()}n.on("data",i),t.on("drain",o),t._isStdio||e&&!1===e.end||(n.on("end",s),n.on("close",u));var a=!1;function s(){a||(a=!0,t.end())}function u(){a||(a=!0,"function"==typeof t.destroy&&t.destroy())}function c(t){if(l(),0===r.listenerCount(this,"error"))throw t}function l(){n.removeListener("data",i),t.removeListener("drain",o),n.removeListener("end",s),n.removeListener("close",u),n.removeListener("error",c),t.removeListener("error",c),n.removeListener("end",l),n.removeListener("close",l),t.removeListener("close",l)}return n.on("error",c),t.on("error",c),n.on("end",l),n.on("close",l),t.on("close",l),t.emit("pipe",n),t}},{events:210,inherits:212,"readable-stream/duplex.js":229,"readable-stream/passthrough.js":238,"readable-stream/readable.js":239,"readable-stream/transform.js":240,"readable-stream/writable.js":241}],244:[function(t,e,n){var r=t("safe-buffer").Buffer,i=r.isEncoding||function(t){switch((t=""+t)&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"!=typeof e&&(r.isEncoding===i||!i(t)))throw new Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=u,this.end=c,e=4;break;case"utf8":this.fillLast=s,e=4;break;case"base64":this.text=l,this.end=h,e=3;break;default:return this.write=f,void(this.end=d)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(e)}function a(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function s(t){var e=this.lastTotal-this.lastNeed,n=function(t,e,n){if(128!=(192&e[0]))return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"�"}}(this,t);return void 0!==n?n:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function u(t,e){if((t.length-e)%2==0){var n=t.toString("utf16le",e);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function c(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,n)}return e}function l(t,e){var n=(t.length-e)%3;return 0===n?t.toString("base64",e):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-n))}function h(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function f(t){return t.toString(this.encoding)}function d(t){return t&&t.length?this.write(t):""}n.StringDecoder=o,o.prototype.write=function(t){if(0===t.length)return"";var e,n;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<t.length?e?e+this.text(t,n):this.text(t,n):e||""},o.prototype.end=function(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"�":e},o.prototype.text=function(t,e){var n=function(t,e,n){var r=e.length-1;if(r<n)return 0;var i=a(e[r]);return i>=0?(i>0&&(t.lastNeed=i-1),i):--r<n||-2===i?0:(i=a(e[r]))>=0?(i>0&&(t.lastNeed=i-2),i):--r<n||-2===i?0:(i=a(e[r]))>=0?(i>0&&(2===i?i=0:t.lastNeed=i-3),i):0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=n;var r=t.length-(n-this.lastNeed);return t.copy(this.lastChar,0,r),t.toString("utf8",e,r)},o.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},{"safe-buffer":242}],245:[function(t,e,n){(function(e,r){(function(){var i=t("process/browser.js").nextTick,o=Function.prototype.apply,a=Array.prototype.slice,s={},u=0;function c(t,e){this._id=t,this._clearFn=e}n.setTimeout=function(){return new c(o.call(setTimeout,window,arguments),clearTimeout)},n.setInterval=function(){return new c(o.call(setInterval,window,arguments),clearInterval)},n.clearTimeout=n.clearInterval=function(t){t.close()},c.prototype.unref=c.prototype.ref=function(){},c.prototype.close=function(){this._clearFn.call(window,this._id)},n.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},n.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},n._unrefActive=n.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},n.setImmediate="function"==typeof e?e:function(t){var e=u++,r=!(arguments.length<2)&&a.call(arguments,1);return s[e]=!0,i(function(){s[e]&&(r?t.apply(null,r):t.call(null),n.clearImmediate(e))}),e},n.clearImmediate="function"==typeof r?r:function(t){delete s[t]}}).call(this)}).call(this,t("timers").setImmediate,t("timers").clearImmediate)},{"process/browser.js":228,timers:245}],246:[function(t,e,n){(function(t){(function(){function n(e){try{if(!t.localStorage)return!1}catch(t){return!1}var n=t.localStorage[e];return null!=n&&"true"===String(n).toLowerCase()}e.localExports=function(t,e){if(n("noDeprecation"))return t;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw new Error(e);n("traceDeprecation")?console.trace(e):console.warn(e),r=!0}return t.apply(this,arguments)}}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],247:[function(t,e,n){arguments[4][144][0].apply(n,arguments)},{dup:144}],248:[function(t,e,n){arguments[4][145][0].apply(n,arguments)},{dup:145}],249:[function(t,e,n){arguments[4][146][0].apply(n,arguments)},{"./support/isBuffer":248,_process:228,dup:146,inherits:247}],250:[function(t,e,n){(function(){var e,r,i,o;for(e in n.EncodeStream=t("./src/EncodeStream"),n.DecodeStream=t("./src/DecodeStream"),n.Array=t("./src/Array"),n.LazyArray=t("./src/LazyArray"),n.Bitfield=t("./src/Bitfield"),n.Boolean=t("./src/Boolean"),n.Buffer=t("./src/Buffer"),n.Enum=t("./src/Enum"),n.Optional=t("./src/Optional"),n.Reserved=t("./src/Reserved"),n.String=t("./src/String"),n.Struct=t("./src/Struct"),n.VersionedStruct=t("./src/VersionedStruct"),i=t("./src/Number"))r=i[e],n[e]=r;for(e in o=t("./src/Pointer"))r=o[e],n[e]=r}).call(this)},{"./src/Array":251,"./src/Bitfield":252,"./src/Boolean":253,"./src/Buffer":254,"./src/DecodeStream":255,"./src/EncodeStream":256,"./src/Enum":257,"./src/LazyArray":258,"./src/Number":259,"./src/Optional":260,"./src/Pointer":261,"./src/Reserved":262,"./src/String":263,"./src/Struct":264,"./src/VersionedStruct":265}],251:[function(t,e,n){(function(){var n,r,i;r=t("./Number").Number,i=t("./utils"),n=function(){function t(t,e,n){this.type=t,this.length=e,this.lengthType=null!=n?n:"count"}return t.prototype.decode=function(t,e){var n,o,a,s,u,c;if(a=t.pos,s=[],n=e,null!=this.length&&(o=i.resolveLength(this.length,t,e)),this.length instanceof r&&(Object.defineProperties(s,{parent:{value:e},_startOffset:{value:a},_currentOffset:{value:0,writable:!0},_length:{value:o}}),n=s),null==o||"bytes"===this.lengthType)for(u=null!=o?t.pos+o:(null!=e?e._length:void 0)?e._startOffset+e._length:t.length;t.pos<u;)s.push(this.type.decode(t,n));else for(c=0;c<o;c+=1)s.push(this.type.decode(t,n));return s},t.prototype.size=function(t,e){var n,o,a,s;if(!t)return this.type.size(null,e)*i.resolveLength(this.length,null,e);for(o=0,this.length instanceof r&&(o+=this.length.size(),e={parent:e}),a=0,s=t.length;a<s;a++)n=t[a],o+=this.type.size(n,e);return o},t.prototype.encode=function(t,e,n){var i,o,a,s,u,c;for(i=n,this.length instanceof r&&((i={pointers:[],startOffset:t.pos,parent:n}).pointerOffset=t.pos+this.size(e,i),this.length.encode(t,e.length)),u=0,c=e.length;u<c;u++)a=e[u],this.type.encode(t,a,i);if(this.length instanceof r)for(o=0;o<i.pointers.length;)(s=i.pointers[o++]).type.encode(t,s.val)},t}(),e.localExports=n}).call(this)},{"./Number":259,"./utils":266}],252:[function(t,e,n){(function(){var t;t=function(){function t(t,e){this.type=t,this.flags=null!=e?e:[]}return t.prototype.decode=function(t){var e,n,r,i,o,a,s;for(i=this.type.decode(t),r={},n=o=0,a=(s=this.flags).length;o<a;n=++o)null!=(e=s[n])&&(r[e]=!!(i&1<<n));return r},t.prototype.size=function(){return this.type.size()},t.prototype.encode=function(t,e){var n,r,i,o,a,s;for(i=0,r=o=0,a=(s=this.flags).length;o<a;r=++o)null!=(n=s[r])&&e[n]&&(i|=1<<r);return this.type.encode(t,i)},t}(),e.localExports=t}).call(this)},{}],253:[function(t,e,n){(function(){var t;t=function(){function t(t){this.type=t}return t.prototype.decode=function(t,e){return!!this.type.decode(t,e)},t.prototype.size=function(t,e){return this.type.size(t,e)},t.prototype.encode=function(t,e,n){return this.type.encode(t,+e,n)},t}(),e.localExports=t}).call(this)},{}],254:[function(t,e,n){(function(){var n,r,i;i=t("./utils"),r=t("./Number").Number,n=function(){function t(t){this.length=t}return t.prototype.decode=function(t,e){var n;return n=i.resolveLength(this.length,t,e),t.readBuffer(n)},t.prototype.size=function(t,e){return t?t.length:i.resolveLength(this.length,null,e)},t.prototype.encode=function(t,e,n){return this.length instanceof r&&this.length.encode(t,e.length),t.writeBuffer(e)},t}(),e.localExports=n}).call(this)},{"./Number":259,"./utils":266}],255:[function(t,e,n){(function(n){(function(){(function(){var r,i;try{i=t("iconv-lite")}catch(t){}r=function(){var t;function e(t){this.buffer=t,this.pos=0,this.length=this.buffer.length}for(t in e.TYPES={UInt8:1,UInt16:2,UInt24:3,UInt32:4,Int8:1,Int16:2,Int24:3,Int32:4,Float:4,Double:8},n.prototype)"read"===t.slice(0,4)&&function(t){var n;n=e.TYPES[t.replace(/read|[BL]E/g,"")],e.prototype[t]=function(){var e;return e=this.buffer[t](this.pos),this.pos+=n,e}}(t);return e.prototype.readString=function(t,e){var r,o,a,s,u;switch(null==e&&(e="ascii"),e){case"utf16le":case"ucs2":case"utf8":case"ascii":return this.buffer.toString(e,this.pos,this.pos+=t);case"utf16be":for(a=s=0,u=(r=new n(this.readBuffer(t))).length-1;s<u;a=s+=2)o=r[a],r[a]=r[a+1],r[a+1]=o;return r.toString("utf16le");default:if(r=this.readBuffer(t),i)try{return i.decode(r,e)}catch(t){}return r}},e.prototype.readBuffer=function(t){return this.buffer.slice(this.pos,this.pos+=t)},e.prototype.readUInt24BE=function(){return(this.readUInt16BE()<<8)+this.readUInt8()},e.prototype.readUInt24LE=function(){return this.readUInt16LE()+(this.readUInt8()<<16)},e.prototype.readInt24BE=function(){return(this.readInt16BE()<<8)+this.readUInt8()},e.prototype.readInt24LE=function(){return this.readUInt16LE()+(this.readInt8()<<16)},e}(),e.localExports=r}).call(this)}).call(this)}).call(this,t("buffer").Buffer)},{buffer:152,"iconv-lite":151}],256:[function(t,e,n){(function(n){(function(){(function(){var r,i,o,a,s={}.hasOwnProperty;a=t("stream"),r=t("./DecodeStream");try{o=t("iconv-lite")}catch(t){}i=function(t){var e;function i(t){null==t&&(t=65536),i.__super__.constructor.apply(this,arguments),this.buffer=new n(t),this.bufferOffset=0,this.pos=0}for(e in function(t,e){for(var n in e)s.call(e,n)&&(t[n]=e[n]);function r(){this.constructor=t}r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype}(i,t),n.prototype)"write"===e.slice(0,5)&&function(t){var e;e=+r.TYPES[t.replace(/write|[BL]E/g,"")],i.prototype[t]=function(n){return this.ensure(e),this.buffer[t](n,this.bufferOffset),this.bufferOffset+=e,this.pos+=e}}(e);return i.prototype._read=function(){},i.prototype.ensure=function(t){if(this.bufferOffset+t>this.buffer.length)return this.flush()},i.prototype.flush=function(){if(this.bufferOffset>0)return this.push(new n(this.buffer.slice(0,this.bufferOffset))),this.bufferOffset=0},i.prototype.writeBuffer=function(t){return this.flush(),this.push(t),this.pos+=t.length},i.prototype.writeString=function(t,e){var r,i,a,s,u;switch(null==e&&(e="ascii"),e){case"utf16le":case"ucs2":case"utf8":case"ascii":return this.writeBuffer(new n(t,e));case"utf16be":for(a=s=0,u=(r=new n(t,"utf16le")).length-1;s<u;a=s+=2)i=r[a],r[a]=r[a+1],r[a+1]=i;return this.writeBuffer(r);default:if(o)return this.writeBuffer(o.encode(t,e));throw new Error("Install iconv-lite to enable additional string encodings.")}},i.prototype.writeUInt24BE=function(t){return this.ensure(3),this.buffer[this.bufferOffset++]=t>>>16&255,this.buffer[this.bufferOffset++]=t>>>8&255,this.buffer[this.bufferOffset++]=255&t,this.pos+=3},i.prototype.writeUInt24LE=function(t){return this.ensure(3),this.buffer[this.bufferOffset++]=255&t,this.buffer[this.bufferOffset++]=t>>>8&255,this.buffer[this.bufferOffset++]=t>>>16&255,this.pos+=3},i.prototype.writeInt24BE=function(t){return t>=0?this.writeUInt24BE(t):this.writeUInt24BE(t+16777215+1)},i.prototype.writeInt24LE=function(t){return t>=0?this.writeUInt24LE(t):this.writeUInt24LE(t+16777215+1)},i.prototype.fill=function(t,e){var r;return e<this.buffer.length?(this.ensure(e),this.buffer.fill(t,this.bufferOffset,this.bufferOffset+e),this.bufferOffset+=e,this.pos+=e):((r=new n(e)).fill(t),this.writeBuffer(r))},i.prototype.end=function(){return this.flush(),this.push(null)},i}(a.Readable),e.localExports=i}).call(this)}).call(this)}).call(this,t("buffer").Buffer)},{"./DecodeStream":255,buffer:152,"iconv-lite":151,stream:243}],257:[function(t,e,n){(function(){var t;t=function(){function t(t,e){this.type=t,this.options=null!=e?e:[]}return t.prototype.decode=function(t){var e;return e=this.type.decode(t),this.options[e]||e},t.prototype.size=function(){return this.type.size()},t.prototype.encode=function(t,e){var n;if(-1===(n=this.options.indexOf(e)))throw new Error("Unknown option in enum: "+e);return this.type.encode(t,n)},t}(),e.localExports=t}).call(this)},{}],258:[function(t,e,n){(function(){var n,r,i,o,a,s,u={}.hasOwnProperty;n=t("./Array"),o=t("./Number").Number,s=t("./utils"),a=t("util").inspect,i=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return function(t,e){for(var n in e)u.call(e,n)&&(t[n]=e[n]);function r(){this.constructor=t}r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype}(e,n),e.prototype.decode=function(t,e){var n,i,a;return i=t.pos,n=s.resolveLength(this.length,t,e),this.length instanceof o&&(e={parent:e,_startOffset:i,_currentOffset:0,_length:n}),a=new r(this.type,n,t,e),t.pos+=n*this.type.size(null,e),a},e.prototype.size=function(t,n){return t instanceof r&&(t=t.toArray()),e.__super__.size.call(this,t,n)},e.prototype.encode=function(t,n,i){return n instanceof r&&(n=n.toArray()),e.__super__.encode.call(this,t,n,i)},e}(),r=function(){function t(t,e,n,r){this.type=t,this.length=e,this.stream=n,this.ctx=r,this.base=this.stream.pos,this.items=[]}return t.prototype.get=function(t){var e;if(!(t<0||t>=this.length))return null==this.items[t]&&(e=this.stream.pos,this.stream.pos=this.base+this.type.size(null,this.ctx)*t,this.items[t]=this.type.decode(this.stream,this.ctx),this.stream.pos=e),this.items[t]},t.prototype.toArray=function(){var t,e,n,r;for(r=[],t=e=0,n=this.length;e<n;t=e+=1)r.push(this.get(t));return r},t.prototype.inspect=function(){return a(this.toArray())},t}(),e.localExports=i}).call(this)},{"./Array":251,"./Number":259,"./utils":266,util:249}],259:[function(t,e,n){(function(){var e,r,i,o={}.hasOwnProperty;e=t("./DecodeStream"),i=function(){function t(t,e){this.type=t,this.endian=null!=e?e:"BE",this.fn=this.type,"8"!==this.type[this.type.length-1]&&(this.fn+=this.endian)}return t.prototype.size=function(){return e.TYPES[this.type]},t.prototype.decode=function(t){return t["read"+this.fn]()},t.prototype.encode=function(t,e){return t["write"+this.fn](e)},t}(),n.Number=i,n.uint8=new i("UInt8"),n.uint16be=n.uint16=new i("UInt16","BE"),n.uint16le=new i("UInt16","LE"),n.uint24be=n.uint24=new i("UInt24","BE"),n.uint24le=new i("UInt24","LE"),n.uint32be=n.uint32=new i("UInt32","BE"),n.uint32le=new i("UInt32","LE"),n.int8=new i("Int8"),n.int16be=n.int16=new i("Int16","BE"),n.int16le=new i("Int16","LE"),n.int24be=n.int24=new i("Int24","BE"),n.int24le=new i("Int24","LE"),n.int32be=n.int32=new i("Int32","BE"),n.int32le=new i("Int32","LE"),n.floatbe=n.float=new i("Float","BE"),n.floatle=new i("Float","LE"),n.doublebe=n.double=new i("Double","BE"),n.doublele=new i("Double","LE"),r=function(t){function e(t,n,r){null==r&&(r=t>>1),e.__super__.constructor.call(this,"Int"+t,n),this._point=1<<r}return function(t,e){for(var n in e)o.call(e,n)&&(t[n]=e[n]);function r(){this.constructor=t}r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype}(e,i),e.prototype.decode=function(t){return e.__super__.decode.call(this,t)/this._point},e.prototype.encode=function(t,n){return e.__super__.encode.call(this,t,n*this._point|0)},e}(),n.Fixed=r,n.fixed16be=n.fixed16=new r(16,"BE"),n.fixed16le=new r(16,"LE"),n.fixed32be=n.fixed32=new r(32,"BE"),n.fixed32le=new r(32,"LE")}).call(this)},{"./DecodeStream":255}],260:[function(t,e,n){(function(){var t;t=function(){function t(t,e){this.type=t,this.condition=null==e||e}return t.prototype.decode=function(t,e){var n;if("function"==typeof(n=this.condition)&&(n=n.call(e,e)),n)return this.type.decode(t,e)},t.prototype.size=function(t,e){var n;return"function"==typeof(n=this.condition)&&(n=n.call(e,e)),n?this.type.size(t,e):0},t.prototype.encode=function(t,e,n){var r;if("function"==typeof(r=this.condition)&&(r=r.call(n,n)),r)return this.type.encode(t,e,n)},t}(),e.localExports=t}).call(this)},{}],261:[function(t,e,n){(function(){var e,r,i;i=t("./utils"),e=function(){function t(t,e,n){var r,i,o,a;if(this.offsetType=t,this.type=e,this.options=null!=n?n:{},"void"===this.type&&(this.type=null),null==(r=this.options).type&&(r.type="local"),null==(i=this.options).allowNull&&(i.allowNull=!0),null==(o=this.options).nullValue&&(o.nullValue=0),null==(a=this.options).lazy&&(a.lazy=!1),this.options.relativeTo&&"function"!=typeof this.options.relativeTo)throw new Error("The relativeTo option must be a function.")}return t.prototype.decode=function(t,e){var n,r,o,a,s,u,c;return(o=this.offsetType.decode(t,e))===this.options.nullValue&&this.options.allowNull?null:(s=function(){switch(this.options.type){case"local":return e._startOffset;case"immediate":return t.pos-this.offsetType.size();case"parent":return e.parent._startOffset;default:for(n=e;n.parent;)n=n.parent;return n._startOffset||0}}.call(this),this.options.relativeTo&&(s+=this.options.relativeTo(e)),a=o+s,null!=this.type?(u=null,c=this,r=function(){var n;return null!=u?u:(n=t.pos,t.pos=a,u=c.type.decode(t,e),t.pos=n,u)},this.options.lazy?new i.PropertyDescriptor({get:r}):r()):a)},t.prototype.size=function(t,e){var n,i;switch(n=e,this.options.type){case"local":case"immediate":break;case"parent":e=e.parent;break;default:for(;e.parent;)e=e.parent}if(null==(i=this.type)){if(!(t instanceof r))throw new Error("Must be a VoidPointer");i=t.type,t=t.value}return t&&e&&(e.pointerSize+=i.size(t,n)),this.offsetType.size()},t.prototype.encode=function(t,e,n){var i,o,a;if(i=n,null!=e){switch(this.options.type){case"local":o=n.startOffset;break;case"immediate":o=t.pos+this.offsetType.size(e,i);break;case"parent":o=(n=n.parent).startOffset;break;default:for(o=0;n.parent;)n=n.parent}if(this.options.relativeTo&&(o+=this.options.relativeTo(i.val)),this.offsetType.encode(t,n.pointerOffset-o),null==(a=this.type)){if(!(e instanceof r))throw new Error("Must be a VoidPointer");a=e.type,e=e.value}return n.pointers.push({type:a,val:e,parent:i}),n.pointerOffset+=a.size(e,i)}this.offsetType.encode(t,this.options.nullValue)},t}(),r=function(t,e){this.type=t,this.value=e},n.Pointer=e,n.VoidPointer=r}).call(this)},{"./utils":266}],262:[function(t,e,n){(function(){var n,r;r=t("./utils"),n=function(){function t(t,e){this.type=t,this.count=null!=e?e:1}return t.prototype.decode=function(t,e){t.pos+=this.size(null,e)},t.prototype.size=function(t,e){var n;return n=r.resolveLength(this.count,null,e),this.type.size()*n},t.prototype.encode=function(t,e,n){return t.fill(0,this.size(e,n))},t}(),e.localExports=n}).call(this)},{"./utils":266}],263:[function(t,e,n){(function(n){(function(){(function(){var r,i,o;r=t("./Number").Number,o=t("./utils"),i=function(){function t(t,e){this.length=t,this.encoding=null!=e?e:"ascii"}return t.prototype.decode=function(t,e){var n,r,i,a,s;return i=function(){if(null!=this.length)return o.resolveLength(this.length,t,e);for(n=t.buffer,i=t.length,a=t.pos;a<i&&0!==n[a];)++a;return a-t.pos}.call(this),"function"==typeof(r=this.encoding)&&(r=r.call(e,e)||"ascii"),s=t.readString(i,r),null==this.length&&t.pos<t.length&&t.pos++,s},t.prototype.size=function(t,e){var i,a;return t?("function"==typeof(i=this.encoding)&&(i=i.call(null!=e?e.val:void 0,null!=e?e.val:void 0)||"ascii"),"utf16be"===i&&(i="utf16le"),a=n.byteLength(t,i),this.length instanceof r&&(a+=this.length.size()),null==this.length&&a++,a):o.resolveLength(this.length,null,e)},t.prototype.encode=function(t,e,i){var o;if("function"==typeof(o=this.encoding)&&(o=o.call(null!=i?i.val:void 0,null!=i?i.val:void 0)||"ascii"),this.length instanceof r&&this.length.encode(t,n.byteLength(e,o)),t.writeString(e,o),null==this.length)return t.writeUInt8(0)},t}(),e.localExports=i}).call(this)}).call(this)}).call(this,t("buffer").Buffer)},{"./Number":259,"./utils":266,buffer:152}],264:[function(t,e,n){(function(){var n,r;r=t("./utils"),n=function(){function t(t){this.fields=null!=t?t:{}}return t.prototype.decode=function(t,e,n){var r,i;return null==n&&(n=0),r=this._setup(t,e,n),this._parseFields(t,r,this.fields),null!=(i=this.process)&&i.call(r,t),r},t.prototype._setup=function(t,e,n){var r;return r={},Object.defineProperties(r,{parent:{value:e},_startOffset:{value:t.pos},_currentOffset:{value:0,writable:!0},_length:{value:n}}),r},t.prototype._parseFields=function(t,e,n){var i,o,a;for(i in n)void 0!==(a="function"==typeof(o=n[i])?o.call(e,e):o.decode(t,e))&&(a instanceof r.PropertyDescriptor?Object.defineProperty(e,i,a):e[i]=a),e._currentOffset=t.pos-e._startOffset},t.prototype.size=function(t,e,n){var r,i,o,a,s;for(i in null==t&&(t={}),null==n&&(n=!0),r={parent:e,val:t,pointerSize:0},o=0,s=this.fields)null!=(a=s[i]).size&&(o+=a.size(t[i],r));return n&&(o+=r.pointerSize),o},t.prototype.encode=function(t,e,n){var r,i,o,a,s,u,c;for(o in null!=(u=this.preEncode)&&u.call(e,t),(r={pointers:[],startOffset:t.pos,parent:n,val:e,pointerSize:0}).pointerOffset=t.pos+this.size(e,r,!1),c=this.fields)null!=(s=c[o]).encode&&s.encode(t,e[o],r);for(i=0;i<r.pointers.length;)(a=r.pointers[i++]).type.encode(t,a.val,a.parent)},t}(),e.localExports=n}).call(this)},{"./utils":266}],265:[function(t,e,n){(function(){var n,r,i,o={}.hasOwnProperty;n=t("./Struct"),i=t("./utils"),r=function(t){function e(t,e){if(this.type=t,this.versions=null!=e?e:{},"string"==typeof this.type){var n=this.type.split(".");this.versionGetter=function(t){return i.resolveValueByPath(t,n)}}}return function(t,e){for(var n in e)o.call(e,n)&&(t[n]=e[n]);function r(){this.constructor=t}r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype}(e,n),e.prototype.decode=function(t,n,r){var i,o,a;if(null==r&&(r=0),o=this._setup(t,n,r),"string"==typeof this.type?o.version=this.versionGetter(n):o.version=this.type.decode(t),this.versions.header&&this._parseFields(t,o,this.versions.header),null==(i=this.versions[o.version]))throw new Error("Unknown version "+o.version);return i instanceof e?i.decode(t,n):(this._parseFields(t,o,i),null!=(a=this.process)&&a.call(o,t),o)},e.prototype.size=function(t,e,n){var r,i,o,a,s,u;if(null==n&&(n=!0),!t)throw new Error("Not a fixed size");if(r={parent:e,val:t,pointerSize:0},a=0,"string"!=typeof this.type&&(a+=this.type.size(t.version,r)),this.versions.header)for(o in u=this.versions.header)null!=(s=u[o]).size&&(a+=s.size(t[o],r));if(null==(i=this.versions[t.version]))throw new Error("Unknown version "+t.version);for(o in i)null!=(s=i[o]).size&&(a+=s.size(t[o],r));return n&&(a+=r.pointerSize),a},e.prototype.encode=function(t,e,n){var r,i,o,a,s,u,c,l;if(null!=(c=this.preEncode)&&c.call(e,t),(r={pointers:[],startOffset:t.pos,parent:n,val:e,pointerSize:0}).pointerOffset=t.pos+this.size(e,r,!1),"string"!=typeof this.type&&this.type.encode(t,e.version),this.versions.header)for(a in l=this.versions.header)null!=(u=l[a]).encode&&u.encode(t,e[a],r);for(a in i=this.versions[e.version])null!=(u=i[a]).encode&&u.encode(t,e[a],r);for(o=0;o<r.pointers.length;)(s=r.pointers[o++]).type.encode(t,s.val,s.parent)},e}(),e.localExports=r}).call(this)},{"./Struct":264,"./utils":266}],266:[function(t,e,n){(function(){var e,r;e=t("./Number").Number,n.resolveLength=function(t,n,r){var i;if("number"==typeof t?i=t:"function"==typeof t?i=t.call(r,r):r&&"string"==typeof t?i=r[t]:n&&t instanceof e&&(i=t.decode(n)),isNaN(i))throw new Error("Not a fixed size");return i},n.resolveValueByPath=function(t,e){"string"==typeof e&&(e=e.split("."));for(var n=0,r=e.length;null!=t&&n<r;n++)t=t[e[n]];return t},r=function(t){var e,n;for(e in null==t&&(t={}),this.enumerable=!0,this.configurable=!0,t)n=t[e],this[e]=n},n.PropertyDescriptor=r}).call(this)},{"./Number":259}]},{},[135])(135)})}(wijmo||(wijmo={})),function(t){!function(e){"use strict";e.softPdfSecurity=function(){return t._getModule("wijmo.pdf.security")}}(t.pdf||(t.pdf={}))}(wijmo||(wijmo={})),function(t){!function(e){"use strict";var n=function(){function e(){}return e.offset=function(t,e){var n=this;return this._processPath(t,function(t,r,i,o){return t=n._updateOffset(t,e,r,i,o)})},e.scale=function(t,e){return this._processPath(t,function(t,n,r,i){if("a"===n||"A"===n){var o=i%7;if(o>=2&&o<=4)return t}return t*e})},e._processPath=function(e,n){for(var r,i=this._getTokenizer(e),o="",a="",s=-1,u=-1;r=i();){if(1===r.length&&/[a-zA-Z]/.test(r))u++,o=r,s=-1;else{s++;var c=n(parseFloat(r),o,u,s);r=t.toFixed(c,7,!1)+""}a+=r+" "}return a},e._getTokenizer=function(t){var e=t.length,n=0;return function(){if(n>=e)return"";for(;n<e&&(/\s/.test(t[n])||","==t[n]);)n++;for(var r=n,i=!1,o=!1,a=!1;n<e;){var s=t[n];if("-"===s||"+"===s){if((a||o||i)&&(!(n>1)||"e"!==t[n-1]&&"E"!==t[n-1]))break;a=!0}else{if("."===s){if(o)break;o=!0}else{if(!/[0-9eE]/.test(s))break;i=!0}}n++}return n!=r?t.substr(r,n-r):t.substr(n++,1)}},e._updateOffset=function(t,e,n,r,i){var o=0;switch(n){case"m":0===r&&(0===i?o=-1:1===i&&(o=1));break;case"L":case"M":case"C":case"S":case"Q":case"T":o=i%2==0?-1:1;break;case"A":i%7==5?o=-1:i%7==6&&(o=1);break;case"H":o=-1;break;case"V":o=1}return o?-1===o?t+e.x:t+e.y:t},e}();e._PdfSvgPathHelper=n}(t.pdf||(t.pdf={}))}(wijmo||(wijmo={})),function(t){!function(e){"use strict";var n={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},r=function(e){function r(t){return e.call(this,t)||this}return __extends(r,e),r.prototype._parse=function(t){return e.prototype._parse.call(this,n[t.toLowerCase()]||t)},r.fromString=function(e){var n=new r(null);return n._parse(t.asString(e))?n:null},r}(t.Color);e._SafeColor=r}(t.pdf||(t.pdf={}))}(wijmo||(wijmo={})),function(t){!function(e){"use strict";var n=function(){function e(t,e,n){void 0===t&&(t=null),void 0===e&&(e=t),void 0===n&&(n=0),this.dash=t,this.gap=e,this.phase=n}return Object.defineProperty(e.prototype,"dash",{get:function(){return this._dash},set:function(e){this._dash=t.asNumber(e,!0,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gap",{get:function(){return this._gap},set:function(e){this._gap=t.asNumber(e,!0,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"phase",{get:function(){return this._phase},set:function(e){this._phase=t.asNumber(e,!1,!0)},enumerable:!0,configurable:!0}),e.prototype.clone=function(){return new e(this._dash,this._gap,this._phase)},e.prototype.equals=function(t){return t instanceof e&&this._dash===t.dash&&this._gap===t.gap&&this._phase===t.phase},e}();e.PdfDashPattern=n}(t.pdf||(t.pdf={}))}(wijmo||(wijmo={})),function(t){!function(e){"use strict";var n=function(t){function e(e){var n=t.call(this)||this;return n._chunks=e,n}return __extends(e,t),Object.defineProperty(e.prototype,"blob",{get:function(){return this._blob||(this._blob=new Blob(this._chunks,{type:"application/pdf"})),this._blob},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"chunks",{get:function(){return this._chunks},enumerable:!0,configurable:!0}),e}(t.EventArgs);e.PdfDocumentEndedEventArgs=n}(t.pdf||(t.pdf={}))}(wijmo||(wijmo={})),function(t){!function(t){"use strict";!function(t){t[t.Butt=0]="Butt",t[t.Round=1]="Round",t[t.Square=2]="Square"}(t.PdfLineCapStyle||(t.PdfLineCapStyle={})),function(t){t[t.Miter=0]="Miter",t[t.Round=1]="Round",t[t.Bevel=2]="Bevel"}(t.PdfLineJoinStyle||(t.PdfLineJoinStyle={})),function(t){t[t.NonZero=0]="NonZero",t[t.EvenOdd=1]="EvenOdd"}(t.PdfFillRule||(t.PdfFillRule={})),function(t){t[t.Portrait=0]="Portrait",t[t.Landscape=1]="Landscape"}(t.PdfPageOrientation||(t.PdfPageOrientation={})),function(t){t[t.Left=0]="Left",t[t.Center=1]="Center",t[t.Right=2]="Right"}(t.PdfImageHorizontalAlign||(t.PdfImageHorizontalAlign={})),function(t){t[t.Top=0]="Top",t[t.Center=1]="Center",t[t.Bottom=2]="Bottom"}(t.PdfImageVerticalAlign||(t.PdfImageVerticalAlign={})),function(t){t[t.Left=0]="Left",t[t.Center=1]="Center",t[t.Right=2]="Right",t[t.Justify=3]="Justify"}(t.PdfTextHorizontalAlign||(t.PdfTextHorizontalAlign={})),function(t){t[t.Alphabetic=0]="Alphabetic",t[t.Top=1]="Top",t[t.Hanging=2]="Hanging",t[t.Middle=3]="Middle",t[t.Ideographic=4]="Ideographic",t[t.Bottom=5]="Bottom"}(t.PdfTextBaseline||(t.PdfTextBaseline={})),function(t){t[t.A0=0]="A0",t[t.A1=1]="A1",t[t.A2=2]="A2",t[t.A3=3]="A3",t[t.A4=4]="A4",t[t.A5=5]="A5",t[t.A6=6]="A6",t[t.A7=7]="A7",t[t.A8=8]="A8",t[t.A9=9]="A9",t[t.A10=10]="A10",t[t.B0=11]="B0",t[t.B1=12]="B1",t[t.B2=13]="B2",t[t.B3=14]="B3",t[t.B4=15]="B4",t[t.B5=16]="B5",t[t.B6=17]="B6",t[t.B7=18]="B7",t[t.B8=19]="B8",t[t.B9=20]="B9",t[t.B10=21]="B10",t[t.C0=22]="C0",t[t.C1=23]="C1",t[t.C2=24]="C2",t[t.C3=25]="C3",t[t.C4=26]="C4",t[t.C5=27]="C5",t[t.C6=28]="C6",t[t.C7=29]="C7",t[t.C8=30]="C8",t[t.C9=31]="C9",t[t.C10=32]="C10",t[t.RA0=33]="RA0",t[t.RA1=34]="RA1",t[t.RA2=35]="RA2",t[t.RA3=36]="RA3",t[t.RA4=37]="RA4",t[t.SRA0=38]="SRA0",t[t.SRA1=39]="SRA1",t[t.SRA2=40]="SRA2",t[t.SRA3=41]="SRA3",t[t.SRA4=42]="SRA4",t[t.Executive=43]="Executive",t[t.Folio=44]="Folio",t[t.Legal=45]="Legal",t[t.Letter=46]="Letter",t[t.Tabloid=47]="Tabloid"}(t.PdfPageSize||(t.PdfPageSize={})),function(t){t[t.NotAllowed=0]="NotAllowed",t[t.AllowLowResolution=1]="AllowLowResolution",t[t.AllowHighResolution=2]="AllowHighResolution"}(t.PdfPrintPermission||(t.PdfPrintPermission={})),function(t){t[t.v1_3=0]="v1_3",t[t.v1_4=1]="v1_4",t[t.v1_5=2]="v1_5",t[t.v1_6=3]="v1_6",t[t.v1_7=4]="v1_7",t[t.v1_7Ext3=5]="v1_7Ext3"}(t.PdfVersion||(t.PdfVersion={})),function(t){t[t.Part=0]="Part",t[t.Art=1]="Art",t[t.Sect=2]="Sect",t[t.Div=3]="Div",t[t.BlockQuote=4]="BlockQuote",t[t.Caption=5]="Caption",t[t.NonStruct=6]="NonStruct",t[t.Private=7]="Private",t[t.H=8]="H",t[t.H1=9]="H1",t[t.H2=10]="H2",t[t.H3=11]="H3",t[t.H4=12]="H4",t[t.H5=13]="H5",t[t.H6=14]="H6",t[t.P=15]="P",t[t.L=16]="L",t[t.LI=17]="LI",t[t.Lbl=18]="Lbl",t[t.LBody=19]="LBody",t[t.Table=20]="Table",t[t.TR=21]="TR",t[t.TH=22]="TH",t[t.TD=23]="TD",t[t.THead=24]="THead",t[t.TBody=25]="TBody",t[t.TFoot=26]="TFoot",t[t.Span=27]="Span",t[t.Quote=28]="Quote",t[t.BibEntry=29]="BibEntry",t[t.Code=30]="Code",t[t.Ruby=31]="Ruby",t[t.RB=32]="RB",t[t.RT=33]="RT",t[t.RP=34]="RP",t[t.Warichu=35]="Warichu",t[t.WT=36]="WT",t[t.WP=37]="WP",t[t.Figure=38]="Figure",t[t.Formula=39]="Formula"}(t.PdfTagType||(t.PdfTagType={})),function(t){t[t.Pagination=0]="Pagination",t[t.Layout=1]="Layout"}(t.PdfArtifactType||(t.PdfArtifactType={})),function(t){t[t.Top=0]="Top",t[t.Bottom=1]="Bottom",t[t.Left=2]="Left",t[t.Right=3]="Right"}(t.PdfPageEdge||(t.PdfPageEdge={}))}(t.pdf||(t.pdf={}))}(wijmo||(wijmo={})),function(t){!function(t){"use strict";t._Errors={InvalidArg:function(t){return'Invalid argument: "'+t+'".'},InvalidFormat:function(t){return'"'+t+'" is not in the correct format.'},ValueCannotBeEmpty:function(t){return'Value cannot be empty: "'+t+'".'},PathStarted:"This method can not be used until the current path is finished.",BufferPagesMustBeEnabled:"The bufferPages property must be enabled to render headers and footers.",AbstractMethod:"This is an abstract method, it should not be called.",FontNameMustBeSet:"The font name must be set.",FontSourceMustBeStringArrayBuffer:"The font source must be of type string or ArrayBuffer.",FontSourceMustBeString:"The font source must be of type string.",FontSourceMustBeArrayBuffer:"The font source must be of type ArrayBuffer.",EmptyUrl:"URL can not be empty.",UndefinedMimeType:"MIME-type must be set.",InvalidImageDataUri:"Invalid Data URI. It should be base64 encoded string that represents JPG or PNG image.",InvalidImageFormat:"Invalid image format. Only JPG and PNG formats are supported.",SecurityRequirements:"The wijmo.pdf.security module must be added on page to use PDF encryption and permissions settings.",TaggedPdfRequirements:"Tagged PDF requires document version 1.4 or higher."}}(t.pdf||(t.pdf={}))}(wijmo||(wijmo={})),function(t){!function(t){"use strict";var e=function(){function e(){}return e.prototype.clone=function(){throw t._Errors.AbstractMethod},e.prototype.equals=function(e){throw t._Errors.AbstractMethod},e.prototype._getBrushObject=function(e){throw t._Errors.AbstractMethod},e}();t.PdfBrush=e}(t.pdf||(t.pdf={}))}(wijmo||(wijmo={})),function(t){!function(e){"use strict";var n=function(){function n(n,r,i,o,a,s){if(null==n&&(n=t.Color.fromRgba(0,0,0)),null==r&&(r=1),null==i&&(i=new e.PdfDashPattern(null,null,0)),null==o&&(o=e.PdfLineCapStyle.Butt),null==a&&(a=e.PdfLineJoinStyle.Miter),null==s&&(s=10),!t.isObject(n)||n instanceof t.Color||n instanceof e.PdfBrush)n instanceof e.PdfBrush?this.brush=n:this.color=n,this.width=r,this.cap=o,this.join=a,this.miterLimit=s,this.dashPattern=i;else{var u=n;this.color=u.color,this.brush=u.brush,this.width=null!=u.width?u.width:r,this.cap=null!=u.cap?u.cap:o,this.join=null!=u.join?u.join:a,this.miterLimit=null!=u.miterLimit?u.miterLimit:s,this.dashPattern=u.dashPattern||i}this._color=this._color||t.Color.fromRgba(0,0,0)}return Object.defineProperty(n.prototype,"color",{get:function(){return this._color},set:function(t){this._color=e._asColor(t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"brush",{get:function(){return this._brush},set:function(t){t=e._asPdfBrush(t,!0),this._brush=t?t.clone():null},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"width",{get:function(){return this._width},set:function(e){this._width=t.asNumber(e,!1,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"cap",{get:function(){return this._cap},set:function(n){this._cap=t.asEnum(n,e.PdfLineCapStyle)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"join",{get:function(){return this._join},set:function(n){this._join=t.asEnum(n,e.PdfLineJoinStyle)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"miterLimit",{get:function(){return this._miterLimit},set:function(e){this._miterLimit=t.asNumber(e,!1,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"dashPattern",{get:function(){return this._dashPattern},set:function(n){t.assert(n instanceof e.PdfDashPattern,e._Errors.InvalidArg("value")),this._dashPattern=n.clone()},enumerable:!0,configurable:!0}),n.prototype.clone=function(){var t=new n(this._color,this._width,this._dashPattern,this._cap,this._join,this._miterLimit);return t.brush=this._brush,t},n.prototype.equals=function(t){return t instanceof n&&this._color.equals(t._color)&&(this._brush?this._brush.equals(t._brush):this._brush===t._brush)&&this._width===t._width&&this._cap===t._cap&&this._join===t._join&&this._miterLimit===t._miterLimit&&this._dashPattern.equals(t._dashPattern)},n}();e.PdfPen=n}(t.pdf||(t.pdf={}))}(wijmo||(wijmo={})),function(t){!function(e){"use strict";var n=function(){function n(t,e,n,r){void 0===t&&(t="times"),void 0===e&&(e=10),void 0===n&&(n="normal"),void 0===r&&(r="normal"),this.family=t,this.size=e,this.style=n,this.weight=r}return Object.defineProperty(n.prototype,"family",{get:function(){return this._family},set:function(e){this._family=t.asString(e,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"size",{get:function(){return this._size},set:function(e){this._size=t.asNumber(e,!1,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"style",{get:function(){return this._style},set:function(r){(r=t.asString(r,!1))&&t.assert(!!n._KNOWN_STYLES[(r||"").toLowerCase()],e._Errors.InvalidArg("value")),this._style=r},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"weight",{get:function(){return this._weight},set:function(r){(r=t.asString(r,!1))&&t.assert(!!n._KNOWN_WEIGHTS[(r||"").toLowerCase()],e._Errors.InvalidArg("value")),this._weight=r},enumerable:!0,configurable:!0}),n.prototype.clone=function(){return new n(this.family,this.size,this.style,this.weight)},n.prototype.equals=function(t){return t instanceof n&&this._family===t._family&&this._size===t._size&&this._style===t._style&&this._weight===t._weight},n._DEF_NATIVE_NAME="Times-Roman",n._DEF_FAMILY_NAME="times",n._KNOWN_WEIGHTS={normal:1,bold:1,100:1,200:1,300:1,400:1,500:1,600:1,700:1,800:1,900:1},n._KNOWN_STYLES={normal:1,italic:1,oblique:1},n._DEF_PDFKIT_FONT=new n("helvetica",12),n._DEF_FONT=new n,n}();e.PdfFont=n}(t.pdf||(t.pdf={}))}(wijmo||(wijmo={})),function(t){!function(e){"use strict";var n=function(){function t(t){if(this._values=[],this._keys={},t)for(var e=0;e<t.length;e++){var n=t[e];this._keys[n.key]=e,this._values.push({key:n.key,value:n.value})}}return t.prototype.hasKey=function(t){var e=this._keys[t];return void 0!==e?this._values[e].value:null},t.prototype.add=function(t,e){return this.hasKey(t)?null:(this._keys[t]=this._values.length,this._values.push({key:t,value:e}),e)},t.prototype.each=function(t){if(t)for(var e=0;e<this._values.length;e++){var n=this._values[e];if(!1===t(n.key,n.value))break}},t.prototype.eachReverse=function(t){if(t)for(var e=this._values.length-1;e>=0;e--){var n=this._values[e];if(!1===t(n.key,n.value))break}},t}(),r=function(){function r(t){var e=this;this._fonts=new n([{key:"zapfdingbats",value:{attributes:{fantasy:!0},normal:{400:"ZapfDingbats"}}},{key:"symbol",value:{attributes:{serif:!0},normal:{400:"Symbol"}}},{key:"courier",value:{attributes:{serif:!0,monospace:!0},normal:{400:"Courier",700:"Courier-Bold"},oblique:{400:"Courier-Oblique",700:"Courier-BoldOblique"}}},{key:"helvetica",value:{attributes:{sansSerif:!0},normal:{400:"Helvetica",700:"Helvetica-Bold"},oblique:{400:"Helvetica-Oblique",700:"Helvetica-BoldOblique"}}},{key:"times",value:{attributes:{serif:!0},normal:{400:"Times-Roman",700:"Times-Bold"},italic:{400:"Times-Italic",700:"Times-BoldItalic"}}}]),this._weightNameToNum={normal:400,bold:700},this._findFontCache={},this._internalFontNames={},this._doc=t,this._fonts.each(function(t,n){var r=function(t){for(var n in t)e._internalFontNames[t[n]]=1};r(n.normal)||r(n.italic)||r(n.oblique)})}return r.prototype.registerFont=function(n){t.assert(!!n,e._Errors.ValueCannotBeEmpty("font")),t.asString(n.name),t.assert(n.source instanceof ArrayBuffer,e._Errors.FontSourceMustBeArrayBuffer),n=__assign({},n);var r=this._normalizeFontSelector(n.name,n.style,n.weight),i=this._fonts.hasKey(r.name);i||(i=this._fonts.add(r.name,{attributes:n}));var o=i[r.style];o||(o=i[r.style]={});var a=this._makeInternalName(r);return o[r.weight]||(this._doc.registerFont(a,n.source,n.family),this._findFontCache={},o[r.weight]=a,this._internalFontNames[a]=1),a},r.prototype.findFont=function(t,n,r){var i=this._normalizeFontSelector(t,n,r),o=this._makeInternalName(i);if(this._findFontCache[o])return this._findFontCache[o];i.name+=","+e.PdfFont._DEF_FAMILY_NAME;for(var a=0,s=i.name.split(",");a<s.length;a++){var u=this._findFont(s[a].replace(/["']/g,"").trim(),i.style,i.weight);if(u)return this._findFontCache[o]=u}return this._findFontCache[o]=this._internalFontNames[t]?t:e.PdfFont._DEF_NATIVE_NAME},r.prototype._normalizeFontSelector=function(t,n,r){return{name:(t||"").toLowerCase(),style:(n||e.PdfFont._DEF_FONT.style).toLowerCase(),weight:parseInt(this._weightNameToNum[r]||r)||parseInt(this._weightNameToNum[e.PdfFont._DEF_FONT.weight])}},r.prototype._findFont=function(t,e,n){var r,i=this,o=[];switch(e){case"italic":o=["italic","oblique","normal"];break;case"oblique":o=["oblique","italic","normal"];break;default:o=["normal","oblique","italic"]}switch(t){case"cursive":case"fantasy":case"monospace":case"serif":case"sans-serif":this._fonts.eachReverse(function(e,a){var s="sans-serif"===t?"sansSerif":t;if(a.attributes[s])for(var u=0;u<o.length;u++)if(r=i._findFontWeightFallback(e,o[u],n))return!1});break;default:if(this._fonts.hasKey(t))for(var a=0;a<o.length&&!r;a++)r=this._findFontWeightFallback(t,o[a],n)}return r},r.prototype._findFontWeightFallback=function(t,e,n,r){var i=this._fonts.hasKey(t);if(i&&i[e]){var o=i[e];if(o[n])return o[n];if(!r){for(var a in r=[],o)r.push(parseFloat(a));r.sort(function(t,e){return t-e})}if(n>500){for(var s=0,u=0;u<r.length;u++){if((l=r[u])>n)return o[l];s=l}if(s)return o[s]}else{if(!(n<400))return 400==n?o[500]?o[500]:this._findFontWeightFallback(t,e,300,r):o[400]?o[400]:this._findFontWeightFallback(t,e,300,r);var c=0;for(u=r.length-1;u>=0;u--){var l;if((l=r[u])<n)return o[l];c=l}if(c)return o[c]}}return null},r.prototype._makeInternalName=function(t){return t.name+"-"+t.style+"-"+t.weight},r}();e._PdfFontRegistrar=r}(t.pdf||(t.pdf={}))}(wijmo||(wijmo={})),function(t){!function(e){"use strict";e._IE="undefined"!=typeof window&&"ActiveXObject"in window;var n={"xx-small":7,"x-small":7.5,small:10,medium:12,large:13.5,"x-large":18,"xx-large":24};function r(e){return.75*t.asNumber(e)}e.saveBlob=function(e,n){t.saveFile(e,n)},e.ptToPx=function(e){return t.asNumber(e)/.75},e.pxToPt=r,e._asColor=function(n,r){var i;return void 0===r&&(r=!0),i=n?n instanceof t.Color?r?t.Color.fromRgba(n.r,n.g,n.b,n.a):n:e._SafeColor.fromString(n):t.Color.fromRgba(0,0,0),t.assert(i instanceof t.Color,e._Errors.InvalidArg("value")),i},e._asPdfPen=function(n,r){return void 0===r&&(r=!0),(t.isString(n)||n instanceof t.Color)&&(n=new e.PdfPen(n)),t.assert(null==n&&r||n instanceof e.PdfPen,e._Errors.InvalidArg("value")),n},e._asPdfBrush=function(n,r){return void 0===r&&(r=!0),(t.isString(n)||n instanceof t.Color)&&(n=new e.PdfSolidBrush(n)),t.assert(null==n&&r||n instanceof e.PdfBrush,e._Errors.InvalidArg("value")),n},e._asPdfFont=function(n,r){return void 0===r&&(r=!0),t.assert(null==n&&r||n instanceof e.PdfFont,e._Errors.InvalidArg("value")),n},e._asPt=function(i,o,a){void 0===o&&(o=!0),void 0===a&&(a=0);var s=!i&&0!==i;if(t.assert(!s||o,e._Errors.ValueCannotBeEmpty("value")),s)return a;if(t.isNumber(i)){if(i==i)return i}else if(t.isString(i)){if(n[i])return n[i];var u=parseFloat(i);if(u==u){if(i.match(/(px)$/i))return r(u);if(i==u||i.match(/(pt)$/i))return u}}t.assert(!1,e._Errors.InvalidFormat(i))},e._formatMacros=function(t,e){var n={},r=0;return t=(t=t.replace(/&&/g,function(t,e,i){return n[e-2*r+r]=!0,r++,"&"})).replace(/&\[(\S+?)\]/g,function(t,r,i,o){var a=e[r];return a&&!n[i]?a:t})},e._compare=function e(n,r){if(t.isObject(n)&&t.isObject(r)){for(var i in n)if(!i||"_"!==i[0]){var o=n[i];if(!(o&&t.isFunction(o.equals)?o.equals(r[i]):e(o,r[i])))return!1}return!0}if(t.isArray(n)&&t.isArray(r)){if(n.length!==r.length)return!1;for(var a=0;a<n.length;a++)if(!e(n[a],r[a]))return!1;return!0}return n===r},e._toTitleCase=function(t){return t?t.charAt(0).toUpperCase()+t.slice(1).toLowerCase():t}}(t.pdf||(t.pdf={}))}(wijmo||(wijmo={})),function(t){!function(t){"use strict";var e=!!(new XMLHttpRequest).overrideMimeType,n=function(){function n(){}return n.arrayBufferAsync=function(t,e,n){this._getData(t,{method:"GET",responseType:"arraybuffer",async:!0},e,n)},n.arrayBuffer=function(n,r){var i,o={method:"GET",async:!1};return t._IE||!e?(o.responseType="arraybuffer",this._getData(n,o,function(t,e){i=e},r)):(o.overrideMimeType="text/plain; charset=x-user-defined",this._getData(n,o,function(t,e){i=new ArrayBuffer(e.length);for(var n=new Uint8Array(i),r=0,o=e.length;r<o;r++)n[r]=255&e.charCodeAt(r)},r)),i},n.text=function(t,e){var n="";return this._getData(t,{method:"GET",async:!1},function(t,e){return n=e},e),n},n._getData=function(t,e,n,r){var i=new XMLHttpRequest;if(e=e||{},i.open(e.method,t,e.async,e.user,e.password),i.addEventListener("load",function(){if(4===i.readyState){var t=i.status;t>=200&&t<300||304===t?n&&n(i,i.response):r&&r(i)}}),e.headers)for(var o in e.headers)i.setRequestHeader(o,e.headers[o]);e.responseType&&(i.responseType=e.responseType),e.overrideMimeType&&i.overrideMimeType&&i.overrideMimeType(e.overrideMimeType),i.send(e.data)},n}();t._XhrHelper=n}(t.pdf||(t.pdf={}))}(wijmo||(wijmo={})),function(t){!function(e){"use strict";var n=function(){function n(){}return n.getDataUri=function(r){if(t.assert(!!(r=t.asString(r)),e._Errors.EmptyUrl),n.DATAURI_CACHE[r])return n.DATAURI_CACHE[r];var i="";if(0===r.indexOf("data:")){if(!r.match(/^data:image\/(png|jpeg|jpg);base64,/))throw e._Errors.InvalidImageDataUri;i=r}else{var o,a=e._XhrHelper.arrayBuffer(r,function(t){return o=t.statusText});if(o)throw o;try{var s=new Uint16Array(a,0,2);if(55551!==s[0]&&(20617!==s[0]||18254!==s[1]))throw"";var u=n._toBase64(a);i="data:"+(55551===s[0]?"image/jpeg":"image/png")+";base64,"+u}catch(t){throw e._Errors.InvalidImageFormat}}return n.DATAURI_CACHE[r]=i},n._toBase64=function(t){for(var e="",n=new Uint8Array(t),r=0;r<n.byteLength;r++)e+=String.fromCharCode(n[r]);return("undefined"!=typeof window?window:self).btoa(e)},n.DATAURI_CACHE={},n}();e._PdfImageHelper=n}(t.pdf||(t.pdf={}))}(wijmo||(wijmo={})),function(t){!function(e){"use strict";var n=function(){function n(){this._ctxProps={xo:0,yo:0,lineGap:0}}return Object.defineProperty(n.prototype,"x",{get:function(){this._switchCtx();var t=this._ndoc.x-this._offset.x;return this._saveCtx(),t},set:function(e){e=t.asNumber(e),this._switchCtx(),this._ndoc.x=e+this._offset.x,this._saveCtx()},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"y",{get:function(){this._switchCtx();var t=this._ndoc.y-this._offset.y;return this._saveCtx(),t},set:function(e){e=t.asNumber(e),this._switchCtx(),this._ndoc.y=e+this._offset.y,this._saveCtx()},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"lineGap",{get:function(){return this._ctxProps.lineGap},set:function(e){this._ctxProps.lineGap=e=t.asNumber(e,!1,!0),this._ndoc&&(this._switchCtx(),this._ndoc.lineGap(e),this._saveCtx())},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"height",{get:function(){var t=this._ndoc.page;return Math.max(0,t.height-t.margins.top-t.margins.bottom)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"width",{get:function(){var t=this._ndoc.page;return Math.max(t.width-t.margins.left-t.margins.right)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_heightCtm",{get:function(){return this.height/-this._ndoc._ctm[3]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_widthCtm",{get:function(){return this.width/this._ndoc._ctm[0]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"paths",{get:function(){return this._graphics},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"document",{get:function(){return this._pdfdoc},enumerable:!0,configurable:!0}),n.prototype.drawText=function(n,r,i,o){if(this._assertPathStarted(),n=t.asString(n)){o=o||{};var a,s=this._pdfdoc,u=this._ndoc,c=o.stroke&&o.fill?2:o.stroke?1:0;!o.strike&&!o.underline||o.stroke||(c=2),this._switchCtx();try{this._drawingText=!0,1&c||s._toggleBrush(e._asPdfBrush(o.brush)),3&c&&s._togglePen(e._asPdfPen(o.pen)),s._toggleFont(e._asPdfFont(o.font));var l=this._textOptionsToNative(o);a=null==r?u.textAndMeasure(n,null,null,l):u.textAndMeasure(n,t.asNumber(r)+this._offset.x,t.asNumber(i)+this._offset.y,l)}finally{this._drawingText=!1,this._saveCtx()}return{charCount:a.charCount||0,size:new t.Size(a.width||0,a.height||0)}}},n.prototype.drawImage=function(n,r,i,o){if(this._assertPathStarted(),!n)return this;t.isString(n)&&(n=e._PdfImageHelper.getDataUri(n)),this._switchCtx();try{var a={};if(o){switch(t.asEnum(o.align,e.PdfImageHorizontalAlign,!0)){case e.PdfImageHorizontalAlign.Center:a.align="center";break;case e.PdfImageHorizontalAlign.Right:a.align="right";break;default:a.align="left"}switch(t.asEnum(o.vAlign,e.PdfImageVerticalAlign,!0)){case e.PdfImageVerticalAlign.Center:a.valign="center";break;case e.PdfImageVerticalAlign.Bottom:a.valign="bottom";break;default:a.valign="top"}var s=t.asNumber(o.width,!0,!0),u=t.asNumber(o.height,!0,!0);s&&u&&t.asBoolean(o.stretchProportionally,!0)?a.fit=[s,u]:(a.width=s,a.height=u)}null==r?this._ndoc.image(n,a):this._ndoc.image(n,t.asNumber(r)+this._offset.x,t.asNumber(i)+this._offset.y,a)}finally{this._saveCtx()}return this},n.prototype.drawSvg=function(n,r,i,o){var a,s,u;if(o=o||{},this._assertPathStarted(),!(n=t.asString(n)))return this;if(n.indexOf("data:image/svg")>=0)u=n.substring(n.indexOf(",")+1),a=decodeURIComponent(Array.prototype.map.call(atob(u),function(t){return"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)}).join(""));else if(a=e._XhrHelper.text(n,function(t){return s=t.statusText}),s)throw s;if(!a)return this;var c,l,h=t.asNumber(o.width,!0,!0),f=t.asNumber(o.height,!0,!0),d=new e._SvgRenderer(a,this,h,f,t.asFunction(o.urlResolver)),p=null==i,g=(r=null!=r?r:this.x,i=null!=i?i:this.y,this.y),_=this.x,m=d.root.width.hasVal?d.root.width.val:void 0,v=d.root.height.hasVal?d.root.height.val:void 0;if((h||f)&&m&&v)if(c=h/m,l=f/v,h&&f){if(o.stretchProportionally){var y=Math.min(c,l);if(c===y)switch(t.asEnum(o.vAlign,e.PdfImageVerticalAlign,!0)){case e.PdfImageVerticalAlign.Center:i+=f/2-v*c/2;break;case e.PdfImageVerticalAlign.Bottom:i+=f-v*c}if(l===y)switch(t.asEnum(o.align,e.PdfImageHorizontalAlign,!0)){case e.PdfImageHorizontalAlign.Center:r+=h/2-m*l/2;break;case e.PdfImageHorizontalAlign.Right:r+=h-m*l}c=l=y}}else o.width?l=c:c=l;c=c||1,l=l||1,this._switchCtx(),this._pdfdoc.saveState();try{this.translate(r,i),this.scale(c,l),d.render()}finally{this._pdfdoc.restoreState(),this._saveCtx()}if(this.x=_,this.y=g,p){var b=null!=f?f:null!=v?v*l:void 0;this.y+=b||0}return this},n.prototype.lineHeight=function(t){this._pdfdoc._toggleFont(e._asPdfFont(t)),this._switchCtx();var n=this._ndoc.currentLineHeight();return this._saveCtx(),n},n.prototype.measureText=function(n,r,i){var o={};if(n=t.asString(n)){this._pdfdoc._toggleFont(e._asPdfFont(r)),this._switchCtx();try{o=this._ndoc.textAndMeasure(n,null,null,this._textOptionsToNative(i),!0)}finally{this._saveCtx()}}return{charCount:o.charCount||0,size:new t.Size(o.width||0,o.height||0)}},n.prototype.moveDown=function(n,r){if(void 0===n&&(n=1),n=t.asNumber(n,!1,!0)){this._pdfdoc._toggleFont(e._asPdfFont(r)),this._switchCtx();try{this._ndoc.moveDown(n)}finally{this._saveCtx()}}return this},n.prototype.moveUp=function(n,r){if(void 0===n&&(n=1),n=t.asNumber(n,!1,!0)){this._pdfdoc._toggleFont(e._asPdfFont(r)),this._switchCtx();try{this._ndoc.moveUp(n)}finally{this._saveCtx()}}return this},n.prototype.openImage=function(n){return(n=t.asString(n))?(n=e._PdfImageHelper.getDataUri(n),this._ndoc.openImage(n)):null},n.prototype.scale=function(e,n,r){void 0===n&&(n=e),this._assertPathStarted(),r=r||new t.Point(0,0);var i=t.asNumber(r.x)+this._offset.x,o=t.asNumber(r.y)+this._offset.y;return e=t.asNumber(e,!1),n=t.asNumber(n,!1),this._ndoc.scale(e,n,{origin:[i,o]}),this},n.prototype.translate=function(e,n){return this._assertPathStarted(),e=t.asNumber(e),n=t.asNumber(n),this._ndoc.translate(e,n),this},n.prototype.transform=function(e,n,r,i,o,a){this._assertPathStarted(),e=t.asNumber(e),n=t.asNumber(n),r=t.asNumber(r),i=t.asNumber(i),o=t.asNumber(o),a=t.asNumber(a);var s=this._offset.x,u=this._offset.y;return this._ndoc.transform(e,n,r,i,o-e*s+s-r*u,a-n*s-i*u+u),this},n.prototype.rotate=function(e,n){this._assertPathStarted(),n=n||new t.Point(0,0);var r=t.asNumber(n.x)+this._offset.x,i=t.asNumber(n.y)+this._offset.y;return e=t.asNumber(e),this._ndoc.rotate(e,{origin:[r,i]}),this},n.prototype.beginTagContent=function(n,r){var i=e.PdfTagType[t.asEnum(n,e.PdfTagType,!1)];return this._pdfdoc._document.markStructureContent(i,this._markedContentOptionsToNative(r))},n.prototype.endTagContent=function(){return this._pdfdoc._document.endMarkedContent(),this},n.prototype.tagContent=function(e,n,r){t.assert(t.isFunction(n),"callback must be a function.");var i=this.beginTagContent(e,r);return n(),this.endTagContent(),i},n.prototype.beginArtifact=function(t){return this._pdfdoc._document.markContent("Artifact",this._markedContentOptionsToNative(t)),this},n.prototype.endArtifact=function(){return this._pdfdoc._document.endMarkedContent(),this},n.prototype.artifact=function(e,n){return t.assert(t.isFunction(e),"callback must be a function."),this.beginArtifact(n),e(),this.endArtifact(),this},n.prototype._assertPathStarted=function(){t.assert(!this.paths._hasPathBuffer(),e._Errors.PathStarted)},n.prototype._initialize=function(n,r,i){this._pdfdoc=n,this._ndoc=n._document,this._offset=new t.Point(r,i),this._ctxProps={xo:r,yo:i,lineGap:this._ctxProps.lineGap},this._graphics=new e.PdfPaths(this._pdfdoc,this._offset)},n.prototype._isDrawingText=function(){return this._drawingText},n.prototype._switchCtx=function(){this._pdfdoc._switchTextFlowCtx(this._ctxProps)},n.prototype._saveCtx=function(){this._ctxProps=this._pdfdoc._getTextFlowCtxState()},n.prototype._markedContentOptionsToNative=function(n){var r=__assign({},n),i=n;if(i&&(null!=i.type&&(r.type=e.PdfArtifactType[t.asEnum(i.type,e.PdfArtifactType)]),null!=i.attached&&(r.attached=i.attached.map(function(n){return e.PdfPageEdge[t.asEnum(n,e.PdfPageEdge)]})),i.bbox)){t.assert(i.bbox instanceof t.Rect,"Rect expected.");var o=this._offset.x+i.bbox.left,a=this._offset.y+i.bbox.top;r.bbox=[o,a,o+i.bbox.width,a+i.bbox.height]}return r},n.prototype._textOptionsToNative=function(n){var r=__assign({},n=n||{});return null!=n.align&&(r.align=(e.PdfTextHorizontalAlign[t.asEnum(n.align,e.PdfTextHorizontalAlign)]||"").toLowerCase()),null!=n.baseline&&(r.baseline=(e.PdfTextBaseline[t.asEnum(n.baseline,e.PdfTextBaseline)]||"").toLowerCase()),r},n}();e.PdfPageArea=n}(t.pdf||(t.pdf={}))}(wijmo||(wijmo={})),function(t){!function(e){"use strict";var n=function(n){function r(e){var r=n.call(this)||this;return r.color=e||t.Color.fromRgba(0,0,0),r}return __extends(r,n),Object.defineProperty(r.prototype,"color",{get:function(){return this._color},set:function(t){this._color=e._asColor(t)},enumerable:!0,configurable:!0}),r.prototype.clone=function(){return new r(this._color)},r.prototype.equals=function(t){return t instanceof r&&this._color.equals(t._color)},r.prototype._getBrushObject=function(t){return this._color},r}(e.PdfBrush);e.PdfSolidBrush=n}(t.pdf||(t.pdf={}))}(wijmo||(wijmo={})),function(t){!function(e){"use strict";var n=function(){function n(t,n,r){this.text=t||"",this.font=n||new e.PdfFont,this.brush=e._asPdfBrush(r)||new e.PdfSolidBrush}return Object.defineProperty(n.prototype,"font",{get:function(){return this._font},set:function(t){t=e._asPdfFont(t,!0),this._font=t?t.clone():t},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"text",{get:function(){return this._text},set:function(e){this._text=t.asString(e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"brush",{get:function(){return this._brush},set:function(t){t=e._asPdfBrush(t),this._brush=t?t.clone():t},enumerable:!0,configurable:!0}),n.prototype.clone=function(){return new n(this.text,this.font,this.brush)},n.prototype.equals=function(t){return t instanceof n&&this._text===t.text&&(this._brush?this._brush.equals(t._brush):this._brush===t._brush)&&(this._font?this._font.equals(t._font):this._font===t._font)},n}();e.PdfRunningTitleDeclarativeContent=n}(t.pdf||(t.pdf={}))}(wijmo||(wijmo={})),function(t){!function(e){"use strict";var n=function(n){function r(r){var i=n.call(this)||this;return i._height=24,i._declarative=new e.PdfRunningTitleDeclarativeContent,i._heightChanged=new t.Event,t.copy(i,r),i}return __extends(r,n),Object.defineProperty(r.prototype,"declarative",{get:function(){return this._declarative},set:function(n){null!=n&&(t.assert(n instanceof e.PdfRunningTitleDeclarativeContent,e._Errors.InvalidArg("value")),n=n.clone()),this._declarative=n},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"height",{get:function(){return this._height},set:function(e){e!==this._height&&(this._height=t.asNumber(e,!1,!0),this._heightChanged.raise(this,t.EventArgs.empty))},enumerable:!0,configurable:!0}),r.prototype.drawText=function(t,e,r,i){return(i=i||{}).height=1/0,n.prototype.drawText.call(this,t,e,r,i)},r}(e.PdfPageArea);e.PdfRunningTitle=n}(t.pdf||(t.pdf={}))}(wijmo||(wijmo={})),function(t){!function(e){"use strict";var n=function(){function n(e,n,r){this.offset=e||0,this.color=n||t.Color.fromRgba(0,0,0),this.opacity=null==r?1:r}return Object.defineProperty(n.prototype,"offset",{get:function(){return this._offset},set:function(e){this._offset=t.clamp(t.asNumber(e,!1,!0),0,1)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"color",{get:function(){return this._color},set:function(t){this._color=e._asColor(t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"opacity",{get:function(){return this._opacity},set:function(e){this._opacity=t.clamp(t.asNumber(e,!1,!0),0,1)},enumerable:!0,configurable:!0}),n.prototype.clone=function(){return new n(this.offset,this.color,this.opacity)},n.prototype.equals=function(t){return t instanceof n&&this._offset===t._offset&&this._color.equals(t._color)&&this._opacity===t._opacity},n}();e.PdfGradientStop=n}(t.pdf||(t.pdf={}))}(wijmo||(wijmo={})),function(t){!function(e){"use strict";var n=function(n){function r(t,e){var r=n.call(this)||this;return r.stops=t||[],r.opacity=null==e?1:e,r}return __extends(r,n),Object.defineProperty(r.prototype,"opacity",{get:function(){return this._opacity},set:function(e){this._opacity=t.clamp(t.asNumber(e,!1,!0),0,1)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"stops",{get:function(){return this._stops},set:function(n){t.assert(t.isArray(n),e._Errors.InvalidArg("value")),this._stops=this._cloneStopsArray(n)},enumerable:!0,configurable:!0}),r.prototype.equals=function(t){return t instanceof r&&this._opacity===t.opacity&&e._compare(this._stops,t._stops)},r.prototype._cloneStopsArray=function(n){for(var r=[],i=0;i<n.length;i++){var o=n[i];t.assert(o instanceof e.PdfGradientStop,e._Errors.InvalidArg("stops["+i+"]")),r.push(n[i].clone())}return r},r}(e.PdfBrush);e.PdfGradientBrush=n}(t.pdf||(t.pdf={}))}(wijmo||(wijmo={})),function(t){!function(e){"use strict";var n=function(e){function n(t,n,r,i,o,a,s,u){var c=e.call(this,s,u)||this;return c.x1=t,c.y1=n,c.r1=r,c.x2=i,c.y2=o,c.r2=a,c}return __extends(n,e),Object.defineProperty(n.prototype,"x1",{get:function(){return this._x1},set:function(e){this._x1=t.asNumber(e,!1,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"y1",{get:function(){return this._y1},set:function(e){this._y1=t.asNumber(e,!1,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"r1",{get:function(){return this._r1},set:function(e){this._r1=t.asNumber(e,!1,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"x2",{get:function(){return this._x2},set:function(e){this._x2=t.asNumber(e,!1,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"y2",{get:function(){return this._y2},set:function(e){this._y2=t.asNumber(e,!1,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"r2",{get:function(){return this._r2},set:function(e){this._r2=t.asNumber(e,!1,!0)},enumerable:!0,configurable:!0}),n.prototype.clone=function(){return new n(this._x1,this._y1,this._r1,this._x2,this._y2,this._r2,this.stops,this.opacity)},n.prototype.equals=function(t){return t instanceof n&&this._x1===t._x1&&this._y1===t._y1&&this._r1===t._r1&&this._x2===t._x2&&this._y2===t._y2&&this._r2===t._r2&&e.prototype.equals.call(this,t)},n.prototype._getBrushObject=function(t){for(var e=t.document._document.radialGradient(this._x1+t._offset.x,this._y2+t._offset.y,this._r1,this._x2+t._offset.x,this._y2+t._offset.y,this._r2),n=this.stops,r=0;r<n.length;r++){var i=n[r];i&&e.stop(i.offset,[i.color.r,i.color.g,i.color.b],i.color.a)}return e},n}(e.PdfGradientBrush);e.PdfRadialGradientBrush=n}(t.pdf||(t.pdf={}))}(wijmo||(wijmo={})),function(t){!function(e){"use strict";var n=function(n){function r(r){var i=n.call(this)||this;i._docInitialized=!1,i._compress=!0,i._bufferPages=!0,i._chunks=[],i._pageIndex=-1,i._version=e.PdfVersion.v1_3,i._permissions={annotating:!1,contentAccessibility:!1,copying:!1,documentAssembly:!1,fillingForms:!1,modifying:!1,printing:e.PdfPrintPermission.NotAllowed},i._tagged=!1,i._displayTitle=!1,i._graphicsStack=[],i._currentGS={},i.info={author:void 0,creationDate:void 0,keywords:void 0,modDate:void 0,subject:void 0,title:void 0},i.pageSettings={layout:e.PdfPageOrientation.Portrait,size:e.PdfPageSize.Letter,margins:{top:72,left:72,bottom:72,right:72},_copy:function(t,e){if("size"===t)return this.size=e,!0}},i.ended=new t.Event,i.pageAdded=new t.Event,i._runtimeProperties=["pageIndex","x","y"],t.copy(i,r);var o=e.softPdfSecurity();if((i._ownerPassword||i._userPassword)&&!o)throw e._Errors.SecurityRequirements;if(i._tagged&&i._version<e.PdfVersion.v1_4)throw e._Errors.TaggedPdfRequirements;var a,s=function(t){i._doc=t,i._fontReg=new e._PdfFontRegistrar(i._doc)},u=function(){i.setPen(i._currentGS[i._pageIndex].pen),i.setBrush(i._currentGS[i._pageIndex].brush),i._curFont=e.PdfFont._DEF_PDFKIT_FONT,i.setFont(new e.PdfFont)},c=!1,l=i.permissions,h={compress:i._compress,bufferPages:i._bufferPages,pdfVersion:["1.3","1.4","1.5","1.6","1.7","1.7ext3"][i._version],ownerPassword:i._ownerPassword||void 0,security:o?o._PDFSecurity:null,permissions:{annotating:t.asBoolean(l.annotating,!0),contentAccessibility:t.asBoolean(l.contentAccessibility,!0),copying:t.asBoolean(l.copying,!0),documentAssembly:t.asBoolean(l.documentAssembly,!0),fillingForms:t.asBoolean(l.fillingForms,!0),modifying:t.asBoolean(l.modifying,!0),printing:(a=t.asEnum(l.printing,e.PdfPrintPermission,!0),a==e.PdfPrintPermission.AllowHighResolution?"highResolution":a==e.PdfPrintPermission.AllowLowResolution?"lowResolution":void 0)},userPassword:i._userPassword||void 0,tagged:i._tagged,displayTitle:i._displayTitle,lang:null==i._lang?void 0:t.asString(i._lang),pageAdding:i._ehOnPageAdding=function(t,e){i._docInitialized||(c=!0,s(t)),i._onPageAdding(t,e)},pageAdded:i._ehOnPageAdded=function(t){var n=i._isDrawingText()?i._currentGS[i._pageIndex].brush:new e.PdfSolidBrush;i._currentGS[++i._pageIndex]={pen:new e.PdfPen,brush:n},i._docInitialized||u(),i._onPageAdded(t)}};return i._setDocInfo(h.info={},i.info),i._doc=new PDFDocument(h),c||(s(i._doc),u()),i._doc.on("data",i._ehOnDocData=function(t){i._onDocData(t)}).on("ending",i._ehOnDocEnding=function(){i._onDocEnding()}).on("end",i._ehOnDocEnded=function(){i._onDocEnded()}),i._docInitialized=!0,i}return __extends(r,n),Object.defineProperty(r.prototype,"compress",{get:function(){return this._compress},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"bufferPages",{get:function(){return this._bufferPages},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"displayTitle",{get:function(){return this._displayTitle},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"footer",{get:function(){var t=this;return this._footer||(this._footer=new e.PdfRunningTitle({_heightChanged:function(){t._docInitialized&&t._resetAreasOffset(t._doc)}})),this._footer},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"header",{get:function(){var t=this;return this._header||(this._header=new e.PdfRunningTitle({_heightChanged:function(){t._docInitialized&&t._resetAreasOffset(t._doc)}})),this._header},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"lang",{get:function(){return this._lang},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"ownerPassword",{get:function(){return this._ownerPassword},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"pageIndex",{get:function(){return this._pageIndex},set:function(e){e=t.asNumber(e,!1,!0),this._pageIndex!==e&&(this._doc.switchToPage(e),this._pageIndex=e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"permissions",{get:function(){return this._permissions},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"tagged",{get:function(){return this._tagged},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"userPassword",{get:function(){return this._userPassword},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"version",{get:function(){return this._version},enumerable:!0,configurable:!0}),r.prototype.onEnded=function(t){this.ended&&this.ended.raise(this,t)},r.prototype.onPageAdded=function(t){this.pageAdded&&this.pageAdded.raise(this,t)},r.prototype.dispose=function(){this._doc&&(this._doc.removeListener("data",this._ehOnDocData).removeListener("ending",this._ehOnDocEnding).removeListener("end",this._ehOnDocEnded).removeListener("pageAdding",this._ehOnPageAdding).removeListener("pageAdded",this._ehOnPageAdded),this._doc=null,this._chunks=null)},Object.defineProperty(r.prototype,"currentPageSettings",{get:function(){var n=this._doc.page;return{layout:"landscape"===n.layout?e.PdfPageOrientation.Landscape:e.PdfPageOrientation.Portrait,size:t.isArray(n.size)?new t.Size(n.size[0],n.size[1]):e.PdfPageSize[n.size.match(/\d+/)?n.size:e._toTitleCase(n.size)],margins:{left:n.margins.left,right:n.margins.right,top:n.margins.top-this.header.height,bottom:n.margins.bottom-this.footer.height}}},enumerable:!0,configurable:!0}),r.prototype.addPage=function(t){var e=this._pageSettingsToNative(t||this.pageSettings);return this._doc.addPage(e),this},r.prototype.bufferedPageRange=function(){return this._doc.bufferedPageRange()},r.prototype.end=function(){this._doc.end()},r.prototype.setBrush=function(t){return this._assertAreasPathStarted(),this._setCurBrush(this._defBrush=e._asPdfBrush(t,!1).clone()),this},r.prototype.setPen=function(t){return this._assertAreasPathStarted(),this._setCurPen(this._defPen=e._asPdfPen(t,!1).clone()),this},r.prototype.setFont=function(t){return this._setCurFont(this._defFont=e._asPdfFont(t,!1).clone()),this},r.prototype._getFont=function(){return this._curFont},r.prototype.registerFont=function(n){var r;if(t.assert(!!n,e._Errors.ValueCannotBeEmpty("font")),t.isString(n.source)){var i;if(r=e._XhrHelper.arrayBuffer(n.source,function(t){return i=t.statusText||t.status}),null!=i)throw i}else{if(!(n.source instanceof ArrayBuffer))throw e._Errors.FontSourceMustBeStringArrayBuffer;r=n.source}return(n=__assign({},n)).source=r,this._fontReg.registerFont(n),this},r.prototype.registerFontAsync=function(n,r){var i=this;t.assert("string"==typeof n.source,e._Errors.FontSourceMustBeString),t.asFunction(r,!1),e._XhrHelper.arrayBufferAsync(n.source,function(t,e){var o=__assign({},n);o.source=e,i._fontReg.registerFont(o),r(n)})},r.prototype.saveState=function(){return this._assertAreasPathStarted(),this._graphicsStack.push(this._currentGS[this._pageIndex].pen.clone(),this._defPen.clone(),this._currentGS[this._pageIndex].brush.clone(),this._defBrush.clone()),this._doc.save(),this},r.prototype.restoreState=function(){return this._assertAreasPathStarted(),this._graphicsStack.length&&(this._defBrush=this._graphicsStack.pop(),this._currentGS[this._pageIndex].brush=this._graphicsStack.pop(),this._defPen=this._graphicsStack.pop(),this._currentGS[this._pageIndex].pen=this._graphicsStack.pop()),this._doc.restore(),this},r.prototype.tag=function(n,r,i){var o=e.PdfTagType[t.asEnum(n,e.PdfTagType,!1)];return this._doc.struct(o,i||void 0,r)},r.prototype.addTag=function(t){return this._doc.addStructure(t),this},r.prototype._copy=function(n,r){return"compress"===n?(this._compress=t.asBoolean(r),!0):"bufferPages"===n?(this._bufferPages=t.asBoolean(r),!0):"ownerPassword"===n?(this._ownerPassword=t.asString(r),!0):"userPassword"===n?(this._userPassword=t.asString(r),!0):"version"===n?(this._version=t.asEnum(r,e.PdfVersion),!0):"displayTitle"===n?(this._displayTitle=t.asBoolean(r),!0):"lang"===n?(this._lang=t.asString(r),!0):"tagged"===n?(this._tagged=t.asBoolean(r),!0):this._runtimeProperties.indexOf(n)>=0},Object.defineProperty(r.prototype,"_document",{get:function(){return this._doc},enumerable:!0,configurable:!0}),r.prototype._switchTextFlowCtx=function(t){this._doc.x=t.xo,this._doc.y=t.yo,this._doc.lineGap(t.lineGap)},r.prototype._getTextFlowCtxState=function(){return{xo:this._doc.x,yo:this._doc.y,lineGap:this._doc.currentLineGap()}},r.prototype._toggleBrush=function(t){t?this._setCurBrush(t):this._setCurBrush(this._defBrush)},r.prototype._togglePen=function(t){t?this._setCurPen(t):this._setCurPen(this._defPen)},r.prototype._toggleFont=function(t){t?this._setCurFont(t):this._setCurFont(this._defFont)},r.prototype._onDocData=function(t){this._chunks.push(t)},r.prototype._onDocEnding=function(){this._processHeadersFooters(),this._setDocInfo(this._doc.info,this.info)},r.prototype._setDocInfo=function(t,e){var n;e&&((n=e.author)&&(t.Author=n),(n=e.creationDate)&&(t.CreationDate=n),(n=e.keywords)&&(t.Keywords=n),(n=e.modDate)&&(t.ModDate=n),(n=e.subject)&&(t.Subject=n),(n=e.title)&&(t.Title=n))},r.prototype._onDocEnded=function(){if(e._IE&&this._chunks.length&&!this._chunks[0].buffer)for(var t=0;t<this._chunks.length;t++){for(var n=this._chunks[t],r=new Uint8Array(n.length),i=0;i<n.length;i++)r[i]=n[i];this._chunks[t]=r.buffer}this.onEnded(new e.PdfDocumentEndedEventArgs(this._chunks)),this._chunks=[]},r.prototype._onPageAdding=function(t,e){if(this.pageSettings){var n=this._pageSettingsToNative(this.pageSettings);e.layout=t.options.layout=n.layout,e.margins=t.options.margins=n.margins,e.size=t.options.size=n.size}},r.prototype._onPageAdded=function(e){e.page.originalMargins=__assign({},e.page.margins),this._resetAreasOffset(e),this.onPageAdded(t.EventArgs.empty)},r.prototype._assertAreasPathStarted=function(){this._docInitialized&&(this._assertPathStarted(),this.header._assertPathStarted(),this.footer._assertPathStarted())},r.prototype._pageSettingsToNative=function(n){var r={};if(n){var i=t.asEnum(n.layout,e.PdfPageOrientation,!0);null!=i&&(r.layout=(e.PdfPageOrientation[i]||"").toLowerCase());var o=n.margins;o&&(r.margins={left:t.asNumber(o.left,!1,!0),right:t.asNumber(o.right,!1,!0),top:t.asNumber(o.top,!1,!0),bottom:t.asNumber(o.bottom,!1,!0)});var a=n.size;null!=a&&(a instanceof t.Size?r.size=[t.asNumber(a.width,!1,!0),t.asNumber(a.height,!1,!0)]:(a=t.asEnum(a,e.PdfPageSize),r.size=(e.PdfPageSize[a]||"").toUpperCase()))}return r},r.prototype._processHeadersFooters=function(){var n=this.header,r=this.footer;if(n.height>0||r.height>0){var i=this._doc;t.assert(i.options.bufferPages,e._Errors.BufferPagesMustBeEnabled);for(var o=i.bufferedPageRange(),a=o.start;a<o.count;a++){var s={Page:a+1,Pages:o.count};this.pageIndex=a,this._renderHeaderFooter(n,s,!0),this._renderHeaderFooter(r,s,!1)}}},r.prototype._renderHeaderFooter=function(t,n,r){if(t.height>0&&t.declarative&&t.declarative.text){var i=e._formatMacros(t.declarative.text,n).split("\t");i.length>0&&i[0]&&this._renderHeaderFooterPart(t,i[0],e.PdfTextHorizontalAlign.Left,r),i.length>1&&i[1]&&this._renderHeaderFooterPart(t,i[1],e.PdfTextHorizontalAlign.Center,r),i.length>2&&i[2]&&this._renderHeaderFooterPart(t,i[2],e.PdfTextHorizontalAlign.Right,r)}},r.prototype._renderHeaderFooterPart=function(t,n,r,i){var o={font:t.declarative.font,brush:t.declarative.brush,width:t.width,height:t.height,align:r};if(this._tagged&&this.beginArtifact({type:e.PdfArtifactType.Pagination,attached:[i?e.PdfPageEdge.Top:e.PdfPageEdge.Bottom]}),i)this.header.drawText(n,0,0,o);else{o.includeLastLineExternalLeading=!1;var a=this.footer.measureText(n,o.font,o);this.footer.drawText(n,0,this.footer.height-a.size.height,o)}this._tagged&&this.endArtifact()},r.prototype._setCurBrush=function(t){this._currentGS[this.pageIndex].brush.equals(t)||(this._setNativeDocBrush(t,!1),this._currentGS[this.pageIndex].brush=t.clone())},r.prototype._setCurFont=function(t){if(!this._curFont.equals(t)){var n=this._fontReg.findFont(t.family,t.style,t.weight);this._doc.font(n,t.size||e.PdfFont._DEF_FONT.size),this._curFont=t.clone()}},r.prototype._setCurPen=function(t){var e=this._doc,n=this._currentGS[this.pageIndex].pen;!t.brush||n.brush&&n.brush.equals(t.brush)?(n.brush&&!t.brush||!n.brush&&!n.color.equals(t.color))&&e.strokeColor([t.color.r,t.color.g,t.color.b],t.color.a):this._setNativeDocBrush(t.brush,!0),n.width!==t.width&&e.lineWidth(t.width),n.miterLimit!==t.miterLimit&&e.miterLimit(t.miterLimit),n.cap!==t.cap&&e.lineCap(t.cap),n.join!==t.join&&e.lineJoin(t.join),n.dashPattern.equals(t.dashPattern)||(null!=t.dashPattern.dash?e.dash(t.dashPattern.dash,{space:t.dashPattern.gap,phase:t.dashPattern.phase}):null!=n.dashPattern.dash&&e.undash()),this._currentGS[this.pageIndex].pen=t.clone()},r.prototype._setNativeDocBrush=function(n,r){var i=this._doc,o=n._getBrushObject(this),a=1;o instanceof t.Color?(a=o.a,o=[o.r,o.g,o.b]):n instanceof e.PdfGradientBrush&&(a=n.opacity),r?i.strokeColor(o,a):i.fillColor(o,a)},r.prototype._resetAreasOffset=function(t){t.page.margins.top=t.page.originalMargins.top+this.header.height,t.y=t.page.margins.top,t.page.margins.bottom=t.page.originalMargins.bottom+this.footer.height,this._header._initialize(this,t.page.margins.left,t.page.originalMargins.top),this._initialize(this,t.page.margins.left,t.page.margins.top),this._footer._initialize(this,t.page.margins.left,t.page.height-t.page.margins.bottom)},r}(e.PdfPageArea);e.PdfDocument=n}(t.pdf||(t.pdf={}))}(wijmo||(wijmo={})),function(t){!function(e){"use strict";var n=function(){function n(t,e){this._pathBuffer=[],this._doc=t,this._ndoc=t._document,this._offset=e}return n.prototype.moveTo=function(e,n){return this._pathBuffer.push({func:this._ndoc.moveTo,params:[t.asNumber(e)+this._offset.x,t.asNumber(n)+this._offset.y]}),this},n.prototype.lineTo=function(e,n){return this._pathBuffer.push({func:this._ndoc.lineTo,params:[t.asNumber(e)+this._offset.x,t.asNumber(n)+this._offset.y]}),this},n.prototype.quadraticCurveTo=function(e,n,r,i){return this._pathBuffer.push({func:this._ndoc.quadraticCurveTo,params:[t.asNumber(e)+this._offset.x,t.asNumber(n)+this._offset.y,t.asNumber(r)+this._offset.x,t.asNumber(i)+this._offset.y]}),this},n.prototype.bezierCurveTo=function(e,n,r,i,o,a){return this._pathBuffer.push({func:this._ndoc.bezierCurveTo,params:[t.asNumber(e)+this._offset.x,t.asNumber(n)+this._offset.y,t.asNumber(r)+this._offset.x,t.asNumber(i)+this._offset.y,t.asNumber(o)+this._offset.x,t.asNumber(a)+this._offset.y]}),this},n.prototype.svgPath=function(n){if(n){var r=e._PdfSvgPathHelper.offset(t.asString(n),this._offset);this._pathBuffer.push({func:this._ndoc.path,params:[t.asString(r)]})}return this},n.prototype.closePath=function(){return this._writePathBuffer(),this._ndoc.closePath(),this},n.prototype.rect=function(e,n,r,i){return this._pathBuffer.push({func:this._ndoc.rect,params:[t.asNumber(e)+this._offset.x,t.asNumber(n)+this._offset.y,t.asNumber(r,!1,!0),t.asNumber(i,!1,!0)]}),this},n.prototype.roundedRect=function(e,n,r,i,o){return void 0===o&&(o=0),this._pathBuffer.push({func:this._ndoc.roundedRect,params:[t.asNumber(e)+this._offset.x,t.asNumber(n)+this._offset.y,t.asNumber(r,!1,!0),t.asNumber(i,!1,!0),t.asNumber(o,!1,!0)]}),this},n.prototype.ellipse=function(e,n,r,i){return void 0===i&&(i=r),this._pathBuffer.push({func:this._ndoc.ellipse,params:[t.asNumber(e)+this._offset.x,t.asNumber(n)+this._offset.y,t.asNumber(r,!1,!0),t.asNumber(i,!1,!0)]}),this},n.prototype.circle=function(e,n,r){return this._pathBuffer.push({func:this._ndoc.circle,params:[t.asNumber(e)+this._offset.x,t.asNumber(n)+this._offset.y,t.asNumber(r,!1,!0)]}),this},n.prototype.polygon=function(t){if(t)for(var e=0;e<t.length;e++){var n=t[e];n[0]=n[0]+this._offset.x,n[1]=n[1]+this._offset.y}return this._pathBuffer.push({func:this._ndoc.polygon,params:t}),this},n.prototype.clip=function(t){return void 0===t&&(t=e.PdfFillRule.NonZero),this._writePathBuffer(),this._ndoc.clip(t===e.PdfFillRule.EvenOdd?"even-odd":"non-zero"),this},n.prototype.fill=function(t,n){return this._doc._toggleBrush(e._asPdfBrush(t)),this._writePathBuffer(),this._ndoc.fill(n===e.PdfFillRule.EvenOdd?"even-odd":"non-zero"),this},n.prototype.fillAndStroke=function(t,n,r){return this._doc._toggleBrush(e._asPdfBrush(t)),this._doc._togglePen(e._asPdfPen(n)),this._writePathBuffer(),this._ndoc.fillAndStroke(r===e.PdfFillRule.EvenOdd?"even-odd":"non-zero"),this},n.prototype.stroke=function(t){return this._doc._togglePen(e._asPdfPen(t)),this._writePathBuffer(),this._ndoc.stroke(),this},n.prototype._hasPathBuffer=function(){return this._pathBuffer.length>0},n.prototype._writePathBuffer=function(){for(var t=this._ndoc,e=this._pathBuffer,n=0,r=e.length;n<r;n++){var i=e[n];i.func.apply(t,i.params)}this._pathBuffer=[]},n}();e.PdfPaths=n}(t.pdf||(t.pdf={}))}(wijmo||(wijmo={})),function(t){!function(t){"use strict";function e(t){return t&&(t=t.trim().replace(/\s+/gm," ")),t}function n(t,e){return t&&e&&!/(^[a-z][a-z0-9]*:)?\/\//i.test(t)&&(t=e(t)),t}t._compressSpaces=e,t._resolveUrlIfRelative=n;var r=function(){function t(t,e){this.selector=t,this.declarations={},this._fillDeclarations(e)}return t.prototype._fillDeclarations=function(t){var e=this;t&&t.split(";").forEach(function(t){if(t){var n=t.split(":");if(2===n.length){var r=n[0].trim().toLowerCase(),i=n[1].trim();if(r&&i){var o=/!important$/i.test(i);o&&(i=i.replace(/!important$/i,"").trim()),i&&(e.declarations[r]={value:i,important:o})}}}})},t}();t._SvgCssRule=r;var i=function(){function t(){}return t.matchesSelector=function(t,e){var n=!1;try{n=(t.matches||t.msMatchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector).call(t,e)}catch(t){}return n},t.getSpecificity=function(t){var e=0,n=0,r=0,i=function(e){var n=(t.match(e)||[]).length;return n&&(t=t.replace(e,"")),n};return t=t.replace(/:not\(([^\)]*)\)/g,function(t,e){return" "+e+" "}),n+=i(/(\[[^\]]+\])/g),e+=i(/(#[^\s\+>~\.\[:]+)/g),n+=i(/(\.[^\s\+>~\.\[:]+)/g),r+=i(/(::[^\s\+>~\.\[:]+|:first-line|:first-letter|:before|:after)/gi),n+=i(/(:[\w-]+\([^\)]*\))/gi),n+=i(/(:[^\s\+>~\.\[:]+)/g),t=(t=t.replace(/[\*\s\+>~]/g," ")).replace(/[#\.]/g," "),e<<16|n<<8|(r+=i(/([^\s\+>~\.\[:]+)/g))},t.getComputedStyle=function(t,n){var i=this,o={},a=[];if(t.className){a=[];for(var s=0,u=Object.keys(n);s<u.length;s++){var c=u[s];this.matchesSelector(t,c)&&a.push(n[c])}}a.sort(function(t,e){return i.getSpecificity(t.selector)-i.getSpecificity(e.selector)});var l=t.getAttribute("style");l&&a.push(new r("_inline_",e(l)));for(s=0;s<a.length;s++){var h=a[s],f=0;for(u=Object.keys(h.declarations);f<u.length;f++){var d=u[f],p=h.declarations[d];null!=o[d]&&!p.important&&o[d].important||(o[d]=p)}}var g={};for(s=0,u=Object.keys(o);s<u.length;s++){g[d=u[s]]=o[d].value}return g},t.registerFontFace=function(t,e,r){var i=e.declarations;i["font-family"]&&i.src&&i.src.value.split(",").every(function(e){if(e.match(/format\(\s*['"]?truetype['"]?\s*\)/i)){var o=e.match(/url\(\s*['"]?([^'"\)]+)['"]?\s*\)/i);if(o){var a=o[1].trim(),s=!1;if(a=n(a,r)){var u={name:i["font-family"].value,source:a,weight:i["font-weight"]?i["font-weight"].value.toLowerCase():"normal",style:i["font-style"]?i["font-style"].value.toLowerCase():"normal"};try{t.registerFont(u),s=!0}catch(t){}}return!s}}return!0})},t}();t._SvgCssHelper=i}(t.pdf||(t.pdf={}))}(wijmo||(wijmo={})),function(t){!function(e){"use strict;";var n=function(){function n(n,r,i,o,a){var s=this;this._elementsById={},this._registeredCssRules={},t.assert(null!=r,e._Errors.ValueCannotBeEmpty("svgString")),this._doc=r.document;var u=this._parse(n);u&&(this._svg=new e._SvgSvgElementImpl({area:r,urlResolver:a,getElement:this._getElementById.bind(this),registerCssRule:function(t){s._registerCssRule(t,a)}},null),this._copyAttributes(u,this._svg),this._buildTree(u,this._svg),this._svg.viewport=new t.Size(null!=i?i:r.width,null!=o?o:r.height))}return Object.defineProperty(n.prototype,"root",{get:function(){return this._svg},enumerable:!0,configurable:!0}),n.prototype.render=function(t){this._svg&&this._svg.render(t||this._svg.viewport)},n.prototype._parse=function(t){if(t){var e=new DOMParser;return e.async=!1,e.parseFromString(t,"text/xml").getElementsByTagName("svg")[0]}},n.prototype._buildTree=function(n,r,i){for(var o=0;n.childNodes&&o<n.childNodes.length;o++){var a=n.childNodes.item(o),s=a.nodeName;if(1===a.nodeType){var u=this._getClassName(s);if(t.pdf[u]){var c,l=new t.pdf[u](r.ctx,a);this._copyAttributes(a,l),r.appendNode(l),(c=a.getAttribute("id"))&&(this._elementsById[c]=l),this._buildTree(a,l,"text"===s||i&&"tspan"===s)}}else if(3===a.nodeType&&i){var h=a.textContent.trim();if(h){0!=o&&1===n.childNodes[o-1].nodeType&&a.textContent.match(/^\s/)&&r.appendNode(new e._SvgTspanElementImpl(r.ctx,null," "));var f=e._compressSpaces(a.textContent);r.appendNode(new e._SvgTspanElementImpl(r.ctx,null,f))}h&&!a.textContent.match(/\s$/)||r.appendNode(new e._SvgTspanElementImpl(r.ctx,null," "))}}},n.prototype._getClassName=function(t){return"_Svg"+t.charAt(0).toUpperCase()+t.substring(1)+"ElementImpl"},n.prototype._copyAttributes=function(t,n){for(var r=0;r<t.attributes.length;r++){var i=t.attributes.item(r);n.attr(i.name,i.value)}for(var o=e._SvgCssHelper.getComputedStyle(t,this._registeredCssRules),a=(r=0,Object.keys(o));r<a.length;r++){var s=a[r];n.attr(s,o[s])}},n.prototype._getElementById=function(t){return t=(t||"").replace("#",""),this._elementsById[t]},n.prototype._registerCssRule=function(t,n){"@"!==t.selector[0]?this._registeredCssRules[t.selector]=t:"@font-face"===t.selector&&e._SvgCssHelper.registerFontFace(this._doc,t,n)},n}();e._SvgRenderer=n}(t.pdf||(t.pdf={}))}(wijmo||(wijmo={})),function(t){!function(e){"use strict";var n=function(e){function n(t,n,r,i,o,a){var s=e.call(this,o,a)||this;return s.x1=t,s.y1=n,s.x2=r,s.y2=i,s}return __extends(n,e),Object.defineProperty(n.prototype,"x1",{get:function(){return this._x1},set:function(e){this._x1=t.asNumber(e,!1,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"y1",{get:function(){return this._y1},set:function(e){this._y1=t.asNumber(e,!1,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"x2",{get:function(){return this._x2},set:function(e){this._x2=t.asNumber(e,!1,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"y2",{get:function(){return this._y2},set:function(e){this._y2=t.asNumber(e,!1,!0)},enumerable:!0,configurable:!0}),n.prototype.clone=function(){return new n(this._x1,this._y1,this._x2,this._y2,this.stops,this.opacity)},n.prototype.equals=function(t){return t instanceof n&&this._x1===t._x1&&this._y1===t._y1&&this._x2===t._x2&&this._y2===t._y2&&e.prototype.equals.call(this,t)},n.prototype._getBrushObject=function(t){for(var e=t.document._document.linearGradient(this._x1+t._offset.x,this._y1+t._offset.y,this._x2+t._offset.x,this._y2+t._offset.y),n=this.stops,r=0;r<n.length;r++){var i=n[r];i&&e.stop(i.offset,[i.color.r,i.color.g,i.color.b],i.color.a)}return e},n}(e.PdfGradientBrush);e.PdfLinearGradientBrush=n}(t.pdf||(t.pdf={}))}(wijmo||(wijmo={})),function(t){t.pdf||(t.pdf={}),t._registerModule("wijmo.pdf",t.pdf)}(wijmo||(wijmo={})),function(t){!function(e){"use strict";var n;!function(t){t[t.Render=0]="Render",t[t.Ignore=1]="Ignore",t[t.Clip=2]="Clip"}(n=e._SvgRenderMode||(e._SvgRenderMode={}));var r=function(){function t(t,e,r){void 0===r&&(r=n.Render),this._children=[],this._attributes={},this._defRenderMode=r,this._ctx=t}return Object.defineProperty(t.prototype,"children",{get:function(){return this._children},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ctx",{get:function(){return this._ctx},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},set:function(t){this._parent=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"style",{get:function(){return this._style||(this._style=new e._SvgStyleAttributes(this)),this._style},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"viewport",{get:function(){return this._viewport},set:function(t){this._viewport=t.clone()},enumerable:!0,configurable:!0}),t.prototype.attr=function(t,e){return t=t.toLowerCase(),arguments.length>1&&(this._attributes[t]=e),this._attributes[t]},t.prototype.appendNode=function(t){t&&t!==this&&t.parent!==this&&(t.remove(),this.children.push(t),t.parent=this)},t.prototype.copyAttributesFrom=function(t,e){if(t){var n=t._attributes,r=this._attributes;for(var i in n)n.hasOwnProperty(i)&&null==r[i]&&(!e||e.indexOf(i)<0)&&(r[i]=n[i])}},t.prototype.clone=function(){var t=new(Function.prototype.bind.call(this.constructor,null,this.ctx,null));return t.copyAttributesFrom(this),this._children.forEach(function(e){t.appendNode(e.clone())}),t},t.prototype.remove=function(){var t=this.parent;if(t){for(var e=0;e<t.children.length;e++)if(t.children[e]===this){t.children.splice(e,1);break}this.parent=null}},t.prototype.clearAttr=function(t){delete this._attributes[t.toLowerCase()]},t.prototype.render=function(t,e){this._viewport=t.clone(),(this._curRenderMode=e||this._defRenderMode)!==n.Ignore&&this._render()},Object.defineProperty(t.prototype,"renderMode",{get:function(){return this._curRenderMode},enumerable:!0,configurable:!0}),t.prototype._render=function(){this._renderContent()},t.prototype._renderContent=function(){for(var t=0;t<this._children.length;t++)this._children[t].render(this.viewport,this.renderMode)},t}();e._SvgElementBase=r;var i=function(t){function r(r,i,o){void 0===o&&(o=n.Render);var a=t.call(this,r,i,o)||this;return a._clipPath=new e._SvgIdRefAttr(a,"clip-path"),a}return __extends(r,t),r.prototype._render=function(){var e,r=this.ctx.area;if(this._clipPath.val){var i=this.ctx.getElement(this._clipPath.val);(e=!!(i&&i instanceof p))&&(r.document.saveState(),i.render(this.viewport,n.Clip),r.paths.clip(this.style.clipRule.val))}t.prototype._render.call(this),e&&r.document.restoreState()},r}(r);e._SvgClippableElementBase=i;var o=function(t){function r(n,r){var i=t.call(this,n,r)||this;return i._transform=new e._SvgTransformAttr(i),i}return __extends(r,t),r.prototype._render=function(){var e=this._transform.hasVal&&this.renderMode!==n.Clip;e&&(this.ctx.area.document.saveState(),this._transform.apply(this)),t.prototype._render.call(this),e&&this.ctx.area.document.restoreState()},r}(i);e._SvgTransformableElementBase=o;var a=function(n){function r(){var t=null!==n&&n.apply(this,arguments)||this;return t._fill=!0,t._stroke=!0,t}return __extends(r,n),r.prototype._renderContent=function(){this._draw(),this.style.apply(this,this._fill,this._stroke)},r.prototype._draw=function(){t.assert(!1,e._Errors.AbstractMethod)},r}(o);e._SvgShapeElementBase=a;var s=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),n.prototype._draw=function(){var t=new e._SvgNumAttr(this,"r",0).val;if(t>0){var n=new e._SvgNumAttr(this,"cx",0,e._SvgNumConversion.Default,e._SvgLengthContext.Width).val,r=new e._SvgNumAttr(this,"cy",0,e._SvgNumConversion.Default,e._SvgLengthContext.Height).val;this.ctx.area.paths.circle(n,r,t)}},n}(a);e._SvgCircleElementImpl=s;var u=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),n.prototype._draw=function(){var t=new e._SvgNumAttr(this,"rx",0,e._SvgNumConversion.Default,e._SvgLengthContext.Width).val,n=new e._SvgNumAttr(this,"ry",0,e._SvgNumConversion.Default,e._SvgLengthContext.Height).val;if(t>0&&n>0){var r=new e._SvgNumAttr(this,"cx",0,e._SvgNumConversion.Default,e._SvgLengthContext.Width).val,i=new e._SvgNumAttr(this,"cy",0,e._SvgNumConversion.Default,e._SvgLengthContext.Height).val;this.ctx.area.paths.ellipse(r,i,t,n)}},n}(a);e._SvgEllipseElementImpl=u;var c=function(t){function n(e,n){var r=t.call(this,e,n)||this;return r._fill=!1,r}return __extends(n,t),n.prototype._draw=function(){var t=new e._SvgNumAttr(this,"x1",0,e._SvgNumConversion.Default,e._SvgLengthContext.Width).val,n=new e._SvgNumAttr(this,"y1",0,e._SvgNumConversion.Default,e._SvgLengthContext.Height).val,r=new e._SvgNumAttr(this,"x2",0,e._SvgNumConversion.Default,e._SvgLengthContext.Width).val,i=new e._SvgNumAttr(this,"y2",0,e._SvgNumConversion.Default,e._SvgLengthContext.Height).val;this.ctx.area.paths.moveTo(t,n).lineTo(r,i)},n}(a);e._SvgLineElementImpl=c;var l=function(t){function r(n,r){var i=t.call(this,n,r)||this;return i._d=new e._SvgStrAttr(i,"d"),i}return __extends(r,t),r.prototype._renderContent=function(){var r=this.ctx.area;if(this.renderMode===n.Clip){if(this._d.hasVal){var i=e._PdfSvgPathHelper.scale(this._d.val,.75);this.attr("d",i),this._d.reset()}t.prototype._renderContent.call(this)}else r.document.saveState(),r.scale(.75),t.prototype._renderContent.call(this),r.document.restoreState()},r.prototype._draw=function(){this._d.hasVal&&this.ctx.area.paths.svgPath(this._d.val)},r}(a);e._SvgPathElementImpl=l;var h=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),n.prototype._draw=function(){var t=new e._SvgPointsArrayAttr(this,"points");if(t.hasVal){var n=t.val,r=this.ctx.area;if(n.length>1){for(var i=0;i<n.length;i++)0==i?r.paths.moveTo(n[i].x,n[i].y):r.paths.lineTo(n[i].x,n[i].y);return!0}}return!1},n}(a);e._SvgPolylineElementImpl=h;var f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype._draw=function(){return!!t.prototype._draw.call(this)&&(this.ctx.area.paths.closePath(),!0)},e}(h);e._SvgPolygonElementImpl=f;var d=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),n.prototype._draw=function(){var t=new e._SvgNumAttr(this,"width",0,e._SvgNumConversion.Default,e._SvgLengthContext.Width).val,n=new e._SvgNumAttr(this,"height",0,e._SvgNumConversion.Default,e._SvgLengthContext.Height).val;if(t>0&&n>0){var r=new e._SvgNumAttr(this,"x",0,e._SvgNumConversion.Default,e._SvgLengthContext.Width).val,i=new e._SvgNumAttr(this,"y",0,e._SvgNumConversion.Default,e._SvgLengthContext.Height).val,o=Math.max(new e._SvgNumAttr(this,"rx",0,e._SvgNumConversion.Default,e._SvgLengthContext.Width).val,0),a=Math.max(new e._SvgNumAttr(this,"ry",0,e._SvgNumConversion.Default,e._SvgLengthContext.Height).val,0),s=this.ctx.area.paths;o||a?(o=Math.min(o||a,t/2),a=Math.min(a||o,n/2),s.moveTo(r+o,i),s.lineTo(r+t-o,i),s.quadraticCurveTo(r+t,i,r+t,i+a),s.lineTo(r+t,i+n-a),s.quadraticCurveTo(r+t,i+n,r+t-o,i+n),s.lineTo(r+o,i+n),s.quadraticCurveTo(r,i+n,r,i+n-a),s.lineTo(r,i+a),s.quadraticCurveTo(r,i,r+o,i)):s.rect(r,i,t,n)}},n}(a);e._SvgRectElementImpl=d;var p=function(t){function e(e,r){return t.call(this,e,r,n.Ignore)||this}return __extends(e,t),e}(r);e._SvgClipPathElementImpl=p;var g=function(t){function e(e,r){return t.call(this,e,r,n.Ignore)||this}return __extends(e,t),e}(i);e._SvgDefsElementImpl=g;var _=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e}(o);e._SvgGElementImpl=_;var m=function(r){function i(t,i){var o=r.call(this,t,i,n.Ignore)||this;return o._x1=new e._SvgStrAttr(o,"x1","0%"),o._x2=new e._SvgStrAttr(o,"x2","100%"),o._y1=new e._SvgStrAttr(o,"y1","0%"),o._y2=new e._SvgStrAttr(o,"y2","0%"),o._gradientUnits=new e._SvgStrAttr(o,"gradientUnits","objectBoundingBox"),o}return __extends(i,r),i.prototype.toBrush=function(n){for(var r=new t.Rect(new e._SvgNumAttr(n,"x",0,e._SvgNumConversion.Default,e._SvgLengthContext.Width).val,new e._SvgNumAttr(n,"y",0,e._SvgNumConversion.Default,e._SvgLengthContext.Height).val,new e._SvgNumAttr(n,"width",0,e._SvgNumConversion.Default,e._SvgLengthContext.Width).val,new e._SvgNumAttr(n,"height",0,e._SvgNumConversion.Default,e._SvgLengthContext.Height).val),i="objectBoundingBox"===this._gradientUnits.val?new t.Size(r.width,r.height):n.viewport.clone(),o=e._SvgNumAttr.parseValue(this._x1.val,e._SvgAttrType.Number,i,e._SvgLengthContext.Width,e._SvgNumConversion.Default),a=e._SvgNumAttr.parseValue(this._x2.val,e._SvgAttrType.Number,i,e._SvgLengthContext.Width,e._SvgNumConversion.Default),s=e._SvgNumAttr.parseValue(this._y1.val,e._SvgAttrType.Number,i,e._SvgLengthContext.Height,e._SvgNumConversion.Default),u=e._SvgNumAttr.parseValue(this._y2.val,e._SvgAttrType.Number,i,e._SvgLengthContext.Height,e._SvgNumConversion.Default),c=[],l=0;l<this.children.length;l++)if(this.children[l]instanceof v){var h=this.children[l];c.push(new e.PdfGradientStop(e._SvgNumAttr.parseValue(h.offset.val,e._SvgAttrType.Number,i,e._SvgLengthContext.Other,e._SvgNumConversion.Default),h.color.val,h.opacity.val))}return new e.PdfLinearGradientBrush(r.left+o,r.top+s,r.left+a,r.top+u,c)},i}(r);e._SvgLinearGradientElementImpl=m;var v=function(t){function r(r,i){var o=t.call(this,r,i,n.Ignore)||this;return o.color=new e._SvgColorAttr(o,"stop-color","black"),o.opacity=new e._SvgNumAttr(o,"stop-opacity",1,e._SvgNumConversion.None,void 0,!0),o.offset=new e._SvgStrAttr(o,"offset","0"),o}return __extends(r,t),r}(r);e._SvgStopElementImpl=v;var y=function(n){function r(t,r){var i=n.call(this,t,r)||this;return i._x=new e._SvgNumAttr(i,"x",0,e._SvgNumConversion.Default,e._SvgLengthContext.Width),i._y=new e._SvgNumAttr(i,"y",0,e._SvgNumConversion.Default,e._SvgLengthContext.Height),i._width=new e._SvgNumAttr(i,"width",0,e._SvgNumConversion.Default,e._SvgLengthContext.Width),i._height=new e._SvgNumAttr(i,"height",0,e._SvgNumConversion.Default,e._SvgLengthContext.Height),i._href=new e._SvgHRefAttr(i,"xlink:href"),i._par=new e._SvgPreserveAspectRatioAttr(i),i}return __extends(r,n),r.prototype._renderContent=function(){var n=this._width.val,r=this._height.val;if(n>0&&r>0&&this._href.hasVal){var i=e._resolveUrlIfRelative(this._href.val,this.ctx.urlResolver);if(i){this.ctx.area.document.saveState(),(this._x.val||this._y.val)&&this.ctx.area.translate(this._x.val,this._y.val),this.viewport=new t.Size(n,r);try{this._href.val.match(/\.svg$/i)?this._renderSvgImage(i):this._renderRasterImage(i)}catch(t){}this.ctx.area.document.restoreState()}}},r.prototype._renderSvgImage=function(t){var n,r=e._XhrHelper.text(t,function(t){return n=t.statusText});if(n)throw n;var i=new e._SvgRenderer(r,this.ctx.area),o=i.root;this.attr("viewBox",o.attr("viewBox")),o.clearAttr("viewBox"),o.clearAttr("x"),o.clearAttr("y"),o.clearAttr("width"),o.clearAttr("height"),o.clearAttr("preserveAspectRatio"),o.clearAttr("clip"),o.clearAttr("overflow"),this.ctx.area.paths.rect(0,0,this.viewport.width,this.viewport.height).clip();var a=new e._SvgScaleAttributes(this);i.render(a.apply(this))},r.prototype._renderRasterImage=function(t){var n=this.ctx.area.openImage(e._PdfImageHelper.getDataUri(t)),r=this._par.val,i=this.viewport.width,o=this.viewport.height,a={width:i,height:o,align:e.PdfImageHorizontalAlign.Left,vAlign:e.PdfImageVerticalAlign.Top};if("none"===r.align)a.stretchProportionally=!1;else if(a.stretchProportionally=!0,r.meet)r.align.match(/^xMid/)?a.align=e.PdfImageHorizontalAlign.Center:r.align.match(/^xMax/)&&(a.align=e.PdfImageHorizontalAlign.Right),r.align.match(/YMid$/)?a.vAlign=e.PdfImageVerticalAlign.Center:r.align.match(/YMax$/)&&(a.vAlign=e.PdfImageVerticalAlign.Bottom);else{var s=e.pxToPt(n.width),u=e.pxToPt(n.height),c=i/s,l=o/u;c>l?(a.width=s*c,a.height=u*c):(a.width=s*l,a.height=u*l);var h=0,f=0;r.align.match(/^xMid/)?h=-a.width/2+i/2:r.align.match(/^xMax/)&&(h=-a.width+i),r.align.match(/YMid$/)?f=-a.height/2+o/2:r.align.match(/YMax$/)&&(f=-a.height+o),this.ctx.area.paths.rect(0,0,this.viewport.width,this.viewport.height).clip(),(h||f)&&this.ctx.area.translate(h,f)}this.ctx.area.drawImage(n,0,0,a)},r}(o);e._SvgImageElementImpl=y;var b=function(t){function r(r,i){var o=t.call(this,r,i,n.Ignore)||this;if(i&&(!i.type||"text/css"===i.type)){for(var a="",s=0;s<i.childNodes.length;s++)a+=i.childNodes[s].textContent;var u=(a=(a=e._compressSpaces(a)).replace(/\/\*([^*]|\*+[^*/])*\*+\//gm,"")).match(/[^{}]*{[^}]*}/g);if(u)for(s=0;s<u.length;s++){var c=u[s].match(/([^{}]*){([^}]*)}/);if(c){var l=c[1].trim().split(","),h=c[2].trim();l.length&&h&&l.forEach(function(t){(t=t.trim())&&o.ctx.registerCssRule(new e._SvgCssRule(t,h))})}}}return o}return __extends(r,t),r}(r);e._SvgStyleElementImpl=b;var w=function(n){function r(t,r){var i=n.call(this,t,r)||this;return i._x=new e._SvgNumAttr(i,"x",0,e._SvgNumConversion.Default,e._SvgLengthContext.Width),i._y=new e._SvgNumAttr(i,"y",0,e._SvgNumConversion.Default,e._SvgLengthContext.Height),i._width=new e._SvgNumAttr(i,"width","100%",e._SvgNumConversion.Default,e._SvgLengthContext.Width),i._height=new e._SvgNumAttr(i,"height","100%",e._SvgNumConversion.Default,e._SvgLengthContext.Height),i._scale=new e._SvgScaleAttributes(i),i._overflow=new e._SvgStrAttr(i,"overflow","hidden"),i}return __extends(r,n),Object.defineProperty(r.prototype,"width",{get:function(){return this._width},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"height",{get:function(){return this._height},enumerable:!0,configurable:!0}),r.prototype._render=function(){var e=this.ctx.area;e.document.saveState();var r=this._width.val,i=this._height.val,o=this._x.val,a=this._y.val;this.parent&&(o||a)&&e.translate(o,a),this.viewport=new t.Size(r,i),"visible"!==this._overflow.val&&e.paths.rect(0,0,r,i).clip(),this.viewport=this._scale.apply(this),this.viewport.width>0&&this.viewport.height>0&&n.prototype._render.call(this),e.document.restoreState()},r}(i);e._SvgSvgElementImpl=w;var x=function(t){function e(e,r){return t.call(this,e,r,n.Ignore)||this}return __extends(e,t),e}(i);e._SvgSymbolElementImpl=x;var S=function(n){function r(t,r){var i=n.call(this,t,r)||this;return i._xlink=new e._SvgIdRefAttr(i,"xlink:href"),i}return __extends(r,n),r.prototype._render=function(){var e,n;if(this._xlink.hasVal&&(e=this.ctx.getElement(this._xlink.val))){var r=new _(this.ctx,null);if(r.parent=this.parent,r.copyAttributesFrom(this,["x","y","width","height","xlink:href"]),null!=this.attr("x")||null!=this.attr("y")){var i=t.format("translate({x},{y})",{x:this.attr("x")||0,y:this.attr("y")||0});r.attr("transform",(n=r.attr("transform"))?n+" "+i:i)}if(e instanceof x){var o=new w(this.ctx,null);o.copyAttributesFrom(e);for(var a=0;a<e.children.length;a++)o.appendNode(e.children[a].clone());r.appendNode(o),o.attr("width",this.attr("width")||"100%"),o.attr("height",this.attr("height")||"100%")}else e=e.clone(),r.appendNode(e),e instanceof w&&(null!=(n=this.attr("width"))&&e.attr("width",n),null!=(n=this.attr("height"))&&e.attr("height",n));r.render(this.viewport,this.renderMode)}},r}(r);e._SvgUseElementImpl=S;var C=function(t){function r(n,r){var i=t.call(this,n,r)||this;return i._x=new e._SvgNumAttr(i,"x",0,e._SvgNumConversion.Default,e._SvgLengthContext.Width),i._y=new e._SvgNumAttr(i,"y",0,e._SvgNumConversion.Default,e._SvgLengthContext.Height),i._dx=new e._SvgNumAttr(i,"dx",0,e._SvgNumConversion.Default,e._SvgLengthContext.Width),i._dy=new e._SvgNumAttr(i,"dy",0,e._SvgNumConversion.Default,e._SvgLengthContext.Height),i._textDecoration=new e._SvgTextDecorationAttr(i),i}return __extends(r,t),r.prototype._render=function(){this.renderMode===n.Render&&t.prototype._render.call(this)},r.prototype._renderContent=function(){var t=this;this._prepareNodes();for(var e=this._x.val+this._dx.val,n=this._y.val+this._dy.val,r=function(i,o){if(i._x.hasVal&&(e=i._x.val),i._y.hasVal&&(n=i._y.val),e+=i._dx.val,n+=i._dy.val,i._text)i._cx=e,i._cy=n,i._setDecorators(o),i.render(t.viewport,t.renderMode),e+=t.ctx.area.measureText(i._text,i.style.font.toFont(),{width:1/0,height:1/0,includeLastLineExternalLeading:!1}).size.width;else for(var a=0;a<i.children.length;a++){var s=o.slice();s.push({decoration:i._textDecoration,style:i.style}),r(i.children[a],s)}},i=0;i<this.children.length;i++)r(this.children[i],[{decoration:this._textDecoration,style:this.style}])},r.prototype._prepareNodes=function(){var t=function(e){for(var n=0;n<e.children.length;n++){var r=e.children[n];!r._text&&t(r)&&r.remove()}return 0===e.children.length},e=[],n=function(t){for(var r=0;r<t.children.length;r++){var i=t.children[r];i._text?e.push(i):n(i)}};t(this),n(this);for(var r=0;r<e.length;r++){var i=e.length;" "===e[r]._text&&(0===r||r===i-1||r<i-1&&" "===e[r+1]._text)&&(e[r].remove(),e.splice(r,1),r--)}},r}(o);e._SvgTextElementImpl=C;var P=function(n){function r(r,i,o){var a=n.call(this,r,i)||this;return a._textDecoration=new e._SvgTextDecorationAttr(a),a._text=t.asString(o),a._x=new e._SvgNumAttr(a,"x",0,e._SvgNumConversion.Default,e._SvgLengthContext.Width),a._y=new e._SvgNumAttr(a,"y",0,e._SvgNumConversion.Default,e._SvgLengthContext.Height),a._dx=new e._SvgNumAttr(a,"dx",0,e._SvgNumConversion.Default,e._SvgLengthContext.Width),a._dy=new e._SvgNumAttr(a,"dy",0,e._SvgNumConversion.Default,e._SvgLengthContext.Height),a._textDecoration=new e._SvgTextDecorationAttr(a),a}return __extends(r,n),r.prototype.clone=function(){var t=n.prototype.clone.call(this);return t._text=this._text,t},r.prototype._setDecorators=function(t){this._decorators=t},r.prototype._renderContent=function(){if(this._text){var t={font:this.style.font.toFont(),width:1/0,height:1/0,lineBreak:!1,fill:"none"!==this.style.fill.color.val,stroke:"none"!==this.style.stroke.color.val,baseline:e.PdfTextBaseline.Alphabetic};this._decorate(),(t.fill||t.stroke)&&(t.fill&&(t.brush=this.style.fill.toBrush(this)),t.stroke&&(t.pen=this.style.stroke.toPen(this)),this.ctx.area.drawText(this._text,this._cx,this._cy,t))}},r.prototype._decorate=function(){var t=this.ctx.area,e=!1;this._decorators.push({decoration:this._textDecoration,style:this.style});for(var n=0;n<this._decorators.length&&!e;n++)e=null!=this._decorators[n].decoration.val;if(e){t.document.saveState();for(var r,i=t.document._document,o=t.measureText(this._text,this.style.font.toFont(),{width:1/0,height:1/0,includeLastLineExternalLeading:!1}).size,a=Math.max(i.currentFontSize()/20,.1),s=i.currentFontAscender(),u=this._cx;r=this._decorators.shift();){var c=r.decoration.val;if(c){for(var l=0;l<c.length;l++){var h=this._cy-s;switch(c[l]){case"line-through":h=h+o.height/2-a/2;break;case"overline":h-=i.currentFontBBox().ury-i.currentFontAscender();break;case"underline":h=h+o.height-1.5*a}t.paths.rect(u,h,o.width,a)}r.style.apply(this,!0,!0)}}t.document.restoreState()}},r}(i);e._SvgTspanElementImpl=P}(t.pdf||(t.pdf={}))}(wijmo||(wijmo={})),function(t){!function(e){"use strict";var n,r,i;!function(t){t[t.Default=1]="Default",t[t.None=2]="None",t[t.Px=3]="Px"}(n=e._SvgNumConversion||(e._SvgNumConversion={})),function(t){t[t.Width=1]="Width",t[t.Height=2]="Height",t[t.Other=3]="Other"}(r=e._SvgLengthContext||(e._SvgLengthContext={})),function(t){t[t.Number=1]="Number",t[t.String=2]="String"}(i=e._SvgAttrType||(e._SvgAttrType={}));var o=function(){function o(i,o,a,s,u,c,l){void 0===s&&(s=void 0),void 0===u&&(u=n.Default),void 0===c&&(c=r.Other),void 0===l&&(l=!1),t.assert(!!i,e._Errors.ValueCannotBeEmpty("owner")),t.assert(!!o,e._Errors.ValueCannotBeEmpty("propName")),this._owner=i,this._propName=o,this._propType=a,this._defValue=s,this._inheritable=l,this._nc=u,this._pCtx=c,this._searchValue=!0}return o.parseValue=function(t,o,a,s,u){if(null==t)return t;if(o&i.Number){var c,l;if("number"==typeof t)c=t;else{var h=t.match(/^([\+-]?[\d\.]+)(em|ex|px|pt|pc|cm|mm|in|%)?$/);h&&(c=parseFloat(h[1]),l=h[2])}if(null!=c&&c==c){if(u!==n.Default){if(l)throw e._Errors.InvalidFormat(t);if(u===n.None)return c}switch(l){case"mm":return 72*c/25.4;case"cm":return 72*c/2.54;case"in":return 72*c;case"pt":return c;case"pc":return 12*c;case"%":switch(s){case r.Height:c*=a.height/100;break;case r.Width:c*=a.width/100;break;case r.Other:c*=Math.sqrt(a.width*a.width+a.height*a.height)/Math.sqrt(2)/100}return c;case"px":default:return.75*c}}}if(o&i.String)return t+"";throw e._Errors.InvalidFormat(t)},Object.defineProperty(o.prototype,"hasVal",{get:function(){return null!=this._val},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"val",{get:function(){if(null!=this._val)return this._val;var e=t.isFunction(this._defValue)?this._defValue.call(this,this._owner.ctx):this._defValue;return this._parse(e)},set:function(t){this._searchValue=!1,this._value=t},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"_val",{get:function(){if(this._searchValue){var t;this._searchValue=!1;for(var e=this._owner;e&&(t=e.attr(this._propName),this._inheritable&&(null==t||"inherit"==t));e=e.parent);this._value="inherit"===t?void 0:this._parse(t)}return this._value},enumerable:!0,configurable:!0}),o.prototype.reset=function(){this._value=void 0,this._searchValue=!0},o.prototype._parse=function(t,e){return t=o.parseValue(t,this._propType,this._owner.viewport,this._pCtx,e||this._nc)},o}();e._SvgAttr=o;var a=function(t){function e(e,o,a,s,u,c){return void 0===a&&(a=void 0),void 0===s&&(s=n.Default),void 0===u&&(u=r.Other),t.call(this,e,o,i.Number,a,s,u,c)||this}return __extends(e,t),e}(o);e._SvgNumAttr=a;var s=function(t){function e(e,n,r,o){return t.call(this,e,n,i.String,r,void 0,void 0,o)||this}return __extends(e,t),e}(o);e._SvgStrAttr=s;var u=function(t){function e(e,o,a,s){return void 0===a&&(a=void 0),void 0===s&&(s=!0),t.call(this,e,o,i.String,a,n.None,r.Other,s)||this}return __extends(e,t),e.prototype.asHref=function(){var t=this.val.match(/url\((.+)\)/);return t?t[1]:null},e.prototype._parse=function(e){if(""!==e&&"null"!==e&&"undefined"!==e)return t.prototype._parse.call(this,e)},e}(o);e._SvgColorAttr=u;var c=function(t){function e(e){return t.call(this,e,"stroke-dasharray",i.Number,void 0,n.Px,r.Other,!0)||this}return __extends(e,t),e.prototype._parse=function(e){var n,r=(e||"").trim().split(/[\s,]+/);if(r.length){n=[];try{for(var i=0;i<r.length;i++)r[i]&&n.push(t.prototype._parse.call(this,r[i]))}catch(t){return}return n.length?n:void 0}return n},e}(o);e._SvgDashArrayAttr=c;var l=function(n){function r(t,r){return n.call(this,t,r,i.String,e.PdfFillRule.NonZero,void 0,void 0,!0)||this}return __extends(r,n),r.prototype._parse=function(n){if(t.isNumber(n))return n;var r=(n||"").match(/(nonzero|evenodd)/i);return r?"nonzero"===r[1]?e.PdfFillRule.NonZero:e.PdfFillRule.EvenOdd:void 0},r}(o);e._SvgFillRuleAttr=l;var h=function(t){function e(e,n){return t.call(this,e,n)||this}return __extends(e,t),e.prototype._parse=function(t){var e=(t=(t||"").trim()).match(/url\((.+)\)/);return e&&(t=e[1].trim()),t=t.replace(/["']/g,"")},e}(s);e._SvgHRefAttr=h;var f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype._parse=function(e){if((e=t.prototype._parse.call(this,e))&&"#"===e[0])return e.substring(1)},e}(h);e._SvgIdRefAttr=f;var d=function(e){function r(t,r){return e.call(this,t,r,i.Number,void 0,n.Px)||this}return __extends(r,e),r.prototype._parse=function(n){var r,i=(n||"").trim().split(/[\s,]+/),o=2*Math.floor(i.length/2);if(o){r=[];try{for(var a=0;a<o-1;a+=2)r.push(new t.Point(e.prototype._parse.call(this,i[a]),e.prototype._parse.call(this,i[a+1])))}catch(t){return}}return r},r}(o);e._SvgPointsArrayAttr=d;var p=function(e){function r(t){return e.call(this,t,"transform",i.Number,void 0,n.None)||this}return __extends(r,e),r.prototype.apply=function(t){var e=t.ctx.area;this.hasVal&&this.val.forEach(function(t){t(e)})},r.prototype._parse=function(r){var i=this,o=[],a=(r||"").match(/((matrix|translate|scale|rotate|skewX|skewY)\([^\)]+\))+/g);if(a)for(var s=0;s<a.length;s++){var u=a[s].match(/(\w+)\(([^\)]+)\)/),c=[];try{u[2].trim().split(/[\s,]+/).forEach(function(t){t&&c.push(e.prototype._parse.call(i,t,n.None))})}catch(t){return}if(c.length)switch(u[1]){case"matrix":o.push(function(t,e,n,r,i,o){return function(a){a.transform(t,e,n,r,i,o)}}(c[0],c[1],c[2],c[3],e.prototype._parse.call(this,c[4],n.Px),e.prototype._parse.call(this,c[5],n.Px)));break;case"translate":o.push(function(t,e){return function(n){n.translate(t,e)}}(e.prototype._parse.call(this,c[0],n.Px),e.prototype._parse.call(this,c[1]||0,n.Px)));break;case"scale":o.push(function(t,e){return function(n){n.scale(t,e)}}(c[0],c[1]));break;case"rotate":o.push(function(t,e){return function(n){n.rotate(t,e)}}(c[0],new t.Point(e.prototype._parse.call(this,c[1]||0,n.Px),e.prototype._parse.call(this,c[2]||0,n.Px))));break;case"skewX":o.push(function(t){return function(e){e.transform(1,0,t,1,0,0)}}(Math.tan(c[0]*Math.PI/180)));break;case"skewY":o.push(function(t){return function(e){e.transform(1,t,0,1,0,0)}}(Math.tan(c[0]*Math.PI/180)))}}return o.length?o:void 0},r}(o);e._SvgTransformAttr=p;var g=function(t){function e(e){return t.call(this,e,"text-decoration",i.String,void 0,n.None)||this}return __extends(e,t),e.prototype._parse=function(t){var e,n=(t||"").trim().toLowerCase().split(/[\s,]+/);if(n.length){e=[];for(var r=0;r<n.length;r++)/line-through|overline|underline/.test(n[r])&&e.push(n[r])}return e&&e.length?e:void 0},e}(o);e._SvgTextDecorationAttr=g;var _=function(t){function e(e){return t.call(this,e,"viewBox",i.Number,void 0,n.Px)||this}return __extends(e,t),e.prototype._parse=function(e){var n,r=(e||"").trim().split(/[\s,]+/);return 4===r.length&&(n={minX:t.prototype._parse.call(this,r[0]),minY:t.prototype._parse.call(this,r[1]),width:t.prototype._parse.call(this,r[2]),height:t.prototype._parse.call(this,r[3])}),n},e}(o);e._SvgViewboxAttr=_;var m=function(t){function e(e){return t.call(this,e,"preserveAspectRatio",i.Number,"xMidYMid meet")||this}return __extends(e,t),e.prototype._parse=function(t){var e;if("string"==typeof t){var n=t.replace(/^defer\s+/,"").trim().split(/\s+/);e={align:n[0],meet:!("slice"===n[1])}}else e=t;return e},e}(o);e._SvgPreserveAspectRatioAttr=m;var v=function(){function e(t){this._owner=t,this.aspect=new m(this._owner),this.viewBox=new _(this._owner)}return e.prototype.apply=function(e){var n=e.ctx.area,r=e.viewport,i=this.viewBox.val;if(r&&i){if(i.width&&i.height){var o=this.aspect.val,a=r.width/i.width,s=r.height/i.height,u=Math.min(a,s),c=Math.max(a,s),l=i.width*(o.meet?u:c),h=i.height*(o.meet?u:c);if("none"===o.align)n.scale(a,s);else{var f=o.meet?u:c,d=0,p=0;o.align.match(/^xMid/)&&f===s?d=r.width/2-l/2:o.align.match(/^xMax/)&&f===s&&(d=r.width-l),o.align.match(/YMid$/)&&f===a?p=r.height/2-h/2:o.align.match(/YMax$/)&&f===a&&(p=r.height-h),(d||p)&&n.translate(d,p),o.meet?n.scale(u,u):n.scale(c,c),(i.minX||i.minY)&&n.translate(-i.minX,-i.minY)}}return new t.Size(i.width,i.height)}return r},e}();e._SvgScaleAttributes=v;var y=function(){function t(t){this._owner=t,this.color=new u(this._owner,"stroke","none"),this.dashArray=new c(this._owner),this.dashOffset=new a(this._owner,"stroke-dashoffset",0,n.Default,r.Other,!0),this.lineCap=new s(this._owner,"stroke-linecap","butt",!0),this.lineJoin=new s(this._owner,"stroke-linejoin","miter",!0),this.miterLimit=new a(this._owner,"stroke-miterlimit",4,n.None,r.Other,!0),this.opacity=new a(this._owner,"stroke-opacity",1,n.None,r.Other,!0),this.width=new a(this._owner,"stroke-width",1,n.Default,r.Other,!0)}return t.prototype.toPen=function(t){var n=new e._SafeColor(this.color.val);this.opacity.hasVal&&(n.a=this.opacity.val);var r=new e.PdfPen(n,this.width.val);if(this.dashArray.hasVal){var i=this.dashArray.val;i.length&&(r.dashPattern=new e.PdfDashPattern(i[0],i.length>1?i[1]:void 0,this.dashOffset.val))}switch(this.lineCap.val){case"butt":r.cap=e.PdfLineCapStyle.Butt;break;case"round":r.cap=e.PdfLineCapStyle.Round;break;case"square":r.cap=e.PdfLineCapStyle.Square}switch(this.lineJoin.val){case"miter":r.join=e.PdfLineJoinStyle.Miter;break;case"round":r.join=e.PdfLineJoinStyle.Round;break;case"bevel":r.join=e.PdfLineJoinStyle.Bevel}return r.miterLimit=this.miterLimit.val,r},t}();e._SvgStrokeAttributes=y;var b=function(){function t(t){this._owner=t,this.color=new u(this._owner,"fill","black"),this.opacity=new a(this._owner,"fill-opacity",1,n.None,void 0,!0),this.rule=new l(this._owner,"fill-rule")}return t.prototype.toBrush=function(t){var n,r=this.color.asHref();if(r&&t){var i=t.ctx.getElement(r);if(i instanceof e._SvgLinearGradientElementImpl)return i.toBrush(t)}return n=new e._SafeColor(this.color.val),this.opacity.hasVal&&(n.a=this.opacity.val),new e.PdfSolidBrush(n)},t}();e._SvgFillAttributes=b;var w=function(){function t(t){this._owner=t,this.family=new s(this._owner,"font-family",function(t){var e=t.area.document._getFont();return e?e.family:void 0},!0),this.size=new o(this._owner,"font-size",i.Number|i.String,"medium",void 0,r.Other,!0),this.style=new s(this._owner,"font-style","normal",!0),this.weight=new s(this._owner,"font-weight","normal",!0)}return t.prototype.toFont=function(){var t=e._asPt(this.size.val);return new e.PdfFont(this.family.val,t,this.style.val,this.weight.val)},t}();e._SvgFontAttributes=w;var x=function(){function n(t){this._owner=t,this.clipRule=new l(this._owner,"clip-rule"),this.fill=new b(this._owner),this.font=new w(this._owner),this.stroke=new y(this._owner)}return n.prototype.apply=function(n,r,i){var o=n.ctx.area;n.renderMode===e._SvgRenderMode.Clip||(r&&i&&"none"!==this.fill.color.val&&"none"!==this.stroke.color.val?o.paths.fillAndStroke(this.fill.toBrush(n),this.stroke.toPen(n),this.fill.rule.val):r&&"none"!==this.fill.color.val?o.paths.fill(this.fill.toBrush(n),this.fill.rule.val):i&&"none"!==this.stroke.color.val?o.paths.stroke(this.stroke.toPen(n)):o.paths.stroke(t.Color.fromRgba(0,0,0,0)))},n}();e._SvgStyleAttributes=x}(t.pdf||(t.pdf={}))}(wijmo||(wijmo={}));
var wijmo;!function(t){!function(t){!function(t){"use strict";var r=2147483647;function e(t){if(t>r)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,n.prototype),e}function n(t,r,n){if("number"==typeof t){if("string"==typeof r)throw new TypeError('The "string" argument must be of type string. Received type number');return function(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}(o=t),e(o<0?0:0|s(o))}var o;return i(t,r,n)}function i(t,r,i){if(ArrayBuffer.isView(t))return o(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(y(t,ArrayBuffer)||t&&y(t.buffer,ArrayBuffer))return a(t,r,i);if("undefined"!=typeof SharedArrayBuffer&&(y(t,SharedArrayBuffer)||t&&y(t.buffer,SharedArrayBuffer)))return a(t,r,i);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');var c=t.valueOf&&t.valueOf();if(null!=c&&c!==t)return n.from(c,r,i);var f=function(t){if(n.isBuffer(t)){var r=0|s(t.length),i=e(r);return 0===i.length?i:(t.copy(i,0,0,r),i)}if(void 0!==t.length)return"number"!=typeof t.length||function(t){return t!=t}(t.length)?e(0):o(t);if("Buffer"===t.type&&Array.isArray(t.data))return o(t.data)}(t);if(f)return f;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return n.from(t[Symbol.toPrimitive]("string"),r,i);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function o(t){for(var r=t.length<0?0:0|s(t.length),n=e(r),i=0;i<r;i+=1)n[i]=255&t[i];return n}function a(t,r,e){if(r<0||t.byteLength<r)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<r+(e||0))throw new RangeError('"length" is outside of buffer bounds');var i;return i=void 0===r&&void 0===e?new Uint8Array(t):void 0===e?new Uint8Array(t,r):new Uint8Array(t,r,e),Object.setPrototypeOf(i,n.prototype),i}function s(t){if(t>=r)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return 0|t}function c(t,r,e){e=Math.min(t.length,e);for(var n=[],i=r;i<e;){var o,a,s,c,u=t[i],h=null,p=u>239?4:u>223?3:u>191?2:1;if(i+p<=e)switch(p){case 1:u<128&&(h=u);break;case 2:128==(192&(o=t[i+1]))&&(c=(31&u)<<6|63&o)>127&&(h=c);break;case 3:o=t[i+1],a=t[i+2],128==(192&o)&&128==(192&a)&&(c=(15&u)<<12|(63&o)<<6|63&a)>2047&&(c<55296||c>57343)&&(h=c);break;case 4:o=t[i+1],a=t[i+2],s=t[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(c=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&c<1114112&&(h=c)}null===h?(h=65533,p=1):h>65535&&(h-=65536,n.push(h>>>10&1023|55296),h=56320|1023&h),n.push(h),i+=p}return function(t){var r=t.length;if(r<=f)return String.fromCharCode.apply(String,t);var e="",n=0;for(;n<r;)e+=String.fromCharCode.apply(String,t.slice(n,n+=f));return e}(n)}t.Buffer=n,n.from=function(t,r,e){return i(t,r,e)},Object.setPrototypeOf(n.prototype,Uint8Array.prototype),Object.setPrototypeOf(n,Uint8Array),n.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==n.prototype},n.prototype._isBuffer=!0,n.prototype.toString=function(){var t=this.length;return 0===t?"":0===arguments.length?c(this,0,t):function(t,r,e){var n=!1;if((void 0===r||r<0)&&(r=0),r>this.length)return"";if((void 0===e||e>this.length)&&(e=this.length),e<=0)return"";if((e>>>=0)<=(r>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return p(this,r,e);case"utf8":case"utf-8":return c(this,r,e);case"ascii":return u(this,r,e);case"latin1":case"binary":return h(this,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return d(this,r,e);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}.apply(this,arguments)};var f=4096;function u(t,r,e){var n="";e=Math.min(t.length,e);for(var i=r;i<e;++i)n+=String.fromCharCode(127&t[i]);return n}function h(t,r,e){var n="";e=Math.min(t.length,e);for(var i=r;i<e;++i)n+=String.fromCharCode(t[i]);return n}function p(t,r,e){var n=t.length;(!r||r<0)&&(r=0),(!e||e<0||e>n)&&(e=n);for(var i="",o=r;o<e;++o)i+=l[t[o]];return i}function d(t,r,e){for(var n=t.slice(r,e),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function y(t,r){return t instanceof r||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===r.name}n.prototype.slice=function(t,r){var e=this.length;t=~~t,r=void 0===r?e:~~r,t<0?(t+=e)<0&&(t=0):t>e&&(t=e),r<0?(r+=e)<0&&(r=0):r>e&&(r=e),r<t&&(r=t);var i=this.subarray(t,r)(Object).setPrototypeOf(i,n.prototype);return i},n.prototype.copy=function(t,r,e,i){if(!n.isBuffer(t))throw new TypeError("argument should be a Buffer");if(e||(e=0),i||0===i||(i=this.length),r>=t.length&&(r=t.length),r||(r=0),i>0&&i<e&&(i=e),i===e)return 0;if(0===t.length||0===this.length)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(e<0||e>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-r<i-e&&(i=t.length-r+e);var o=i-e;if(this===t&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(r,e,i);else if(this===t&&e<r&&r<i)for(var a=o-1;a>=0;--a)t[a+r]=this[a+e];else Uint8Array.prototype.set.call(t,this.subarray(e,i),r);return o};var l=function(){for(var t=new Array(256),r=0;r<16;++r)for(var e=16*r,n=0;n<16;++n)t[e+n]="0123456789abcdef"[r]+"0123456789abcdef"[n];return t}()}(t.security||(t.security={}))}(t.pdf||(t.pdf={}))}(wijmo||(wijmo={})),function(t){!function(t){!function(t){t.inRange=function(t,r){if(t<r[0])return!1;for(var e=0,n=r.length/2;e<=n;){var i=Math.floor((e+n)/2),o=2*i;if(t>=r[o]&&t<=r[o+1])return!0;t>r[o+1]?e=i+1:n=i-1}return!1}}(t.security||(t.security={}))}(t.pdf||(t.pdf={}))}(wijmo||(wijmo={})),function(t){!function(t){!function(t){var r=[545,545,564,591,686,687,751,767,848,863,880,883,886,889,891,893,895,899,907,907,909,909,930,930,975,975,1015,1023,1159,1159,1231,1231,1270,1271,1274,1279,1296,1328,1367,1368,1376,1376,1416,1416,1419,1424,1442,1442,1466,1466,1477,1487,1515,1519,1525,1547,1549,1562,1564,1566,1568,1568,1595,1599,1622,1631,1774,1775,1791,1791,1806,1806,1837,1839,1867,1919,1970,2304,2308,2308,2362,2363,2382,2383,2389,2391,2417,2432,2436,2436,2445,2446,2449,2450,2473,2473,2481,2481,2483,2485,2490,2491,2493,2493,2501,2502,2505,2506,2510,2518,2520,2523,2526,2526,2532,2533,2555,2561,2563,2564,2571,2574,2577,2578,2601,2601,2609,2609,2612,2612,2615,2615,2618,2619,2621,2621,2627,2630,2633,2634,2638,2648,2653,2653,2655,2661,2677,2688,2692,2692,2700,2700,2702,2702,2706,2706,2729,2729,2737,2737,2740,2740,2746,2747,2758,2758,2762,2762,2766,2767,2769,2783,2785,2789,2800,2816,2820,2820,2829,2830,2833,2834,2857,2857,2865,2865,2868,2869,2874,2875,2884,2886,2889,2890,2894,2901,2904,2907,2910,2910,2914,2917,2929,2945,2948,2948,2955,2957,2961,2961,2966,2968,2971,2971,2973,2973,2976,2978,2981,2983,2987,2989,2998,2998,3002,3005,3011,3013,3017,3017,3022,3030,3032,3046,3059,3072,3076,3076,3085,3085,3089,3089,3113,3113,3124,3124,3130,3133,3141,3141,3145,3145,3150,3156,3159,3167,3170,3173,3184,3201,3204,3204,3213,3213,3217,3217,3241,3241,3252,3252,3258,3261,3269,3269,3273,3273,3278,3284,3287,3293,3295,3295,3298,3301,3312,3329,3332,3332,3341,3341,3345,3345,3369,3369,3386,3389,3396,3397,3401,3401,3406,3414,3416,3423,3426,3429,3440,3457,3460,3460,3479,3481,3506,3506,3516,3516,3518,3519,3527,3529,3531,3534,3541,3541,3543,3543,3552,3569,3573,3584,3643,3646,3676,3712,3715,3715,3717,3718,3721,3721,3723,3724,3726,3731,3736,3736,3744,3744,3748,3748,3750,3750,3752,3753,3756,3756,3770,3770,3774,3775,3781,3781,3783,3783,3790,3791,3802,3803,3806,3839,3912,3912,3947,3952,3980,3983,3992,3992,4029,4029,4045,4046,4048,4095,4130,4130,4136,4136,4139,4139,4147,4149,4154,4159,4186,4255,4294,4303,4345,4346,4348,4351,4442,4446,4515,4519,4602,4607,4615,4615,4679,4679,4681,4681,4686,4687,4695,4695,4697,4697,4702,4703,4743,4743,4745,4745,4750,4751,4783,4783,4785,4785,4790,4791,4799,4799,4801,4801,4806,4807,4815,4815,4823,4823,4847,4847,4879,4879,4881,4881,4886,4887,4895,4895,4935,4935,4955,4960,4989,5023,5109,5120,5751,5759,5789,5791,5873,5887,5901,5901,5909,5919,5943,5951,5972,5983,5997,5997,6001,6001,6004,6015,6109,6111,6122,6143,6159,6159,6170,6175,6264,6271,6314,7679,7836,7839,7930,7935,7958,7959,7966,7967,8006,8007,8014,8015,8024,8024,8026,8026,8028,8028,8030,8030,8062,8063,8117,8117,8133,8133,8148,8149,8156,8156,8176,8177,8181,8181,8191,8191,8275,8278,8280,8286,8292,8297,8306,8307,8335,8351,8370,8399,8427,8447,8507,8508,8524,8530,8580,8591,9167,9215,9255,9279,9291,9311,9471,9471,9748,9749,9752,9752,9854,9855,9866,9984,9989,9989,9994,9995,10024,10024,10060,10060,10062,10062,10067,10069,10071,10071,10079,10080,10133,10135,10160,10160,10175,10191,10220,10223,11008,11903,11930,11930,12020,12031,12246,12271,12284,12287,12352,12352,12439,12440,12544,12548,12589,12592,12687,12687,12728,12783,12829,12831,12868,12880,12924,12926,13004,13007,13055,13055,13175,13178,13278,13279,13311,13311,19894,19967,40870,40959,42125,42127,42183,44031,55204,55295,64046,64047,64107,64255,64263,64274,64280,64284,64311,64311,64317,64317,64319,64319,64322,64322,64325,64325,64434,64466,64832,64847,64912,64913,64968,64975,65021,65023,65040,65055,65060,65071,65095,65096,65107,65107,65127,65127,65132,65135,65141,65141,65277,65278,65280,65280,65471,65473,65480,65481,65488,65489,65496,65497,65501,65503,65511,65511,65519,65528,65536,66303,66335,66335,66340,66351,66379,66559,66598,66599,66638,118783,119030,119039,119079,119081,119262,119807,119893,119893,119965,119965,119968,119969,119971,119972,119975,119976,119981,119981,119994,119994,119996,119996,120001,120001,120004,120004,120070,120070,120075,120076,120085,120085,120093,120093,120122,120122,120127,120127,120133,120133,120135,120137,120145,120145,120484,120487,120778,120781,120832,131069,173783,194559,195102,196605,196608,262141,262144,327677,327680,393213,393216,458749,458752,524285,524288,589821,589824,655357,655360,720893,720896,786429,786432,851965,851968,917501,917504,917504,917506,917535,917632,983037];t.isUnassignedCodePoint=function(e){return t.inRange(e,r)};var e=[173,173,847,847,6150,6150,6155,6155,6156,6156,6157,6157,8203,8203,8204,8204,8205,8205,8288,8288,65024,65024,65025,65025,65026,65026,65027,65027,65028,65028,65029,65029,65030,65030,65031,65031,65032,65032,65033,65033,65034,65034,65035,65035,65036,65036,65037,65037,65038,65038,65039,65039,65279,65279];t.isCommonlyMappedToNothing=function(r){return t.inRange(r,e)};var n=[160,160,5760,5760,8192,8192,8193,8193,8194,8194,8195,8195,8196,8196,8197,8197,8198,8198,8199,8199,8200,8200,8201,8201,8202,8202,8203,8203,8239,8239,8287,8287,12288,12288];t.isNonASCIISpaceCharacter=function(r){return t.inRange(r,n)};var i=[128,159,1757,1757,1807,1807,6158,6158,8204,8204,8205,8205,8232,8232,8233,8233,8288,8288,8289,8289,8290,8290,8291,8291,8298,8303,65279,65279,65529,65532,119155,119162],o=[64976,65007,65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1114110,1114111],a=[0,31,127,127,832,832,833,833,8206,8206,8207,8207,8234,8234,8235,8235,8236,8236,8237,8237,8238,8238,8298,8298,8299,8299,8300,8300,8301,8301,8302,8302,8303,8303,12272,12283,55296,57343,57344,63743,65529,65529,65530,65530,65531,65531,65532,65532,65533,65533,917505,917505,917536,917631,983040,1048573,1048576,1114109];t.isProhibitedCharacter=function(r){return t.inRange(r,n)||t.inRange(r,a)||t.inRange(r,i)||t.inRange(r,o)};var s=[1470,1470,1472,1472,1475,1475,1488,1514,1520,1524,1563,1563,1567,1567,1569,1594,1600,1610,1645,1647,1649,1749,1757,1757,1765,1766,1786,1790,1792,1805,1808,1808,1810,1836,1920,1957,1969,1969,8207,8207,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65020,65136,65140,65142,65276];t.isBidirectionalRAL=function(r){return t.inRange(r,s)};var c=[65,90,97,122,170,170,181,181,186,186,192,214,216,246,248,544,546,563,592,685,688,696,699,705,720,721,736,740,750,750,890,890,902,902,904,906,908,908,910,929,931,974,976,1013,1024,1154,1162,1230,1232,1269,1272,1273,1280,1295,1329,1366,1369,1375,1377,1415,1417,1417,2307,2307,2309,2361,2365,2368,2377,2380,2384,2384,2392,2401,2404,2416,2434,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2494,2496,2503,2504,2507,2508,2519,2519,2524,2525,2527,2529,2534,2545,2548,2554,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2622,2624,2649,2652,2654,2654,2662,2671,2674,2676,2691,2691,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2752,2761,2761,2763,2764,2768,2768,2784,2784,2790,2799,2818,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2877,2878,2880,2880,2887,2888,2891,2892,2903,2903,2908,2909,2911,2913,2918,2928,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3006,3007,3009,3010,3014,3016,3018,3020,3031,3031,3047,3058,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3137,3140,3168,3169,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3262,3262,3264,3268,3271,3272,3274,3275,3285,3286,3294,3294,3296,3297,3302,3311,3330,3331,3333,3340,3342,3344,3346,3368,3370,3385,3390,3392,3398,3400,3402,3404,3415,3415,3424,3425,3430,3439,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3535,3537,3544,3551,3570,3572,3585,3632,3634,3635,3648,3654,3663,3675,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3792,3801,3804,3805,3840,3863,3866,3892,3894,3894,3896,3896,3902,3911,3913,3946,3967,3967,3973,3973,3976,3979,4030,4037,4039,4044,4047,4047,4096,4129,4131,4135,4137,4138,4140,4140,4145,4145,4152,4152,4160,4183,4256,4293,4304,4344,4347,4347,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,4961,4988,5024,5108,5121,5750,5761,5786,5792,5872,5888,5900,5902,5905,5920,5937,5941,5942,5952,5969,5984,5996,5998,6e3,6016,6070,6078,6085,6087,6088,6100,6106,6108,6108,6112,6121,6160,6169,6176,6263,6272,6312,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8206,8206,8305,8305,8319,8319,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8509,8511,8517,8521,8544,8579,9014,9082,9109,9109,9372,9449,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12445,12447,12449,12538,12540,12543,12549,12588,12593,12686,12688,12727,12784,12828,12832,12867,12896,12923,12927,12976,12992,13003,13008,13054,13056,13174,13179,13277,13280,13310,13312,19893,19968,40869,40960,42124,44032,55203,55296,64045,64048,64106,64256,64262,64275,64279,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,66304,66334,66336,66339,66352,66378,66560,66597,66600,66637,118784,119029,119040,119078,119082,119142,119146,119154,119171,119172,119180,119209,119214,119261,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,12e4,120002,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120483,120488,120777,131072,173782,194560,195101,983040,1048573,1048576,1114109];t.isBidirectionalL=function(r){return t.inRange(r,c)}}(t.security||(t.security={}))}(t.pdf||(t.pdf={}))}(wijmo||(wijmo={})),function(t){!function(t){!function(t){var r=t.isNonASCIISpaceCharacter,e=t.isCommonlyMappedToNothing,n=function(t){return t.codePointAt(0)},i=function(t){return t[0]},o=function(t){return t[t.length-1]};function a(t){for(var r=[],e=t.length,n=0;n<e;n+=1){var i=t.charCodeAt(n);if(i>=55296&&i<=56319&&e>n+1){var o=t.charCodeAt(n+1);if(o>=56320&&o<=57343){r.push(1024*(i-55296)+o-56320+65536),n+=1;continue}}r.push(i)}return r}t.saslprep=function(s,c){if(void 0===c&&(c={}),"string"!=typeof s)throw new TypeError("Expected string.");if(0===s.length)return"";var f=a(s).map(function(t){return r(t)?32:t}).filter(function(t){return!e(t)}),u=function(){if(String.fromCodePoint)return String.fromCodePoint.apply(null,arguments);for(var t=[],r=0,e="",n=0,i=arguments.length;n!==i;++n){var o=+arguments[n];if(!(o<1114111&&o>>>0===o))throw RangeError("Invalid code point: "+o);o<=65535?r=t.push(o):(o-=65536,r=t.push(55296+(o>>10),o%1024+56320)),r>=16383&&(e+=String.fromCharCode.apply(null,t),t.length=0)}return e+String.fromCharCode.apply(null,t)}.apply(null,f).normalize("NFKC"),h=a(u);if(h.some(t.isProhibitedCharacter))throw new Error("Prohibited character, see https://tools.ietf.org/html/rfc4013#section-2.3");if(!0!==c.allowUnassigned&&h.some(t.isUnassignedCodePoint))throw new Error("Unassigned code point, see https://tools.ietf.org/html/rfc4013#section-2.5");var p=h.some(t.isBidirectionalRAL),d=h.some(t.isBidirectionalL);if(p&&d)throw new Error("String must not contain RandALCat and LCat at the same time, see https://tools.ietf.org/html/rfc3454#section-6");var y=t.isBidirectionalRAL(n(i(u))),l=t.isBidirectionalRAL(n(o(u)));if(p&&(!y||!l))throw new Error("Bidirectional RandALCat character must be the first and the last character of the string, see https://tools.ietf.org/html/rfc3454#section-6");return u}}(t.security||(t.security={}))}(t.pdf||(t.pdf={}))}(wijmo||(wijmo={})),function(t){!function(t){!function(t){var r,e,n,i;t.CryptoJS=function(t,r){var e;"undefined"!=typeof window&&window.crypto&&(e=window.crypto),!e&&"undefined"!=typeof window&&window.msCrypto&&(e=window.msCrypto);var n=function(){if(e){if("function"==typeof e.getRandomValues)try{return e.getRandomValues(new Uint32Array(1))[0]}catch(t){}if("function"==typeof e.randomBytes)try{return e.randomBytes(4).readInt32LE()}catch(t){}}throw new Error("Native crypto module could not be used to get secure random number.")},i=Object.create||function(){function t(){}return function(r){var e;return t.prototype=r,e=new t,t.prototype=null,e}}(),o={},a=o.lib={},s=a.Base={extend:function(t){var r=i(this);return t&&r.mixIn(t),r.hasOwnProperty("init")&&this.init!==r.init||(r.init=function(){r.$super.init.apply(this,arguments)}),r.init.prototype=r,r.$super=this,r},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var r in t)t.hasOwnProperty(r)&&(this[r]=t[r]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},c=a.WordArray=s.extend({init:function(t,r){t=this.words=t||[],this.sigBytes=void 0!=r?r:4*t.length},toString:function(t){return(t||u).stringify(this)},concat:function(t){var r=this.words,e=t.words,n=this.sigBytes,i=t.sigBytes;if(this.clamp(),n%4)for(var o=0;o<i;o++){var a=e[o>>>2]>>>24-o%4*8&255;r[n+o>>>2]|=a<<24-(n+o)%4*8}else for(o=0;o<i;o+=4)r[n+o>>>2]=e[o>>>2];return this.sigBytes+=i,this},clamp:function(){var r=this.words,e=this.sigBytes;r[e>>>2]&=4294967295<<32-e%4*8,r.length=t.ceil(e/4)},clone:function(){var t=s.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var r=[],e=0;e<t;e+=4)r.push(n());return new c.init(r,t)}}),f=o.enc={},u=f.Hex={stringify:function(t){for(var r=t.words,e=t.sigBytes,n=[],i=0;i<e;i++){var o=r[i>>>2]>>>24-i%4*8&255;n.push((o>>>4).toString(16)),n.push((15&o).toString(16))}return n.join("")},parse:function(t){for(var r=t.length,e=[],n=0;n<r;n+=2)e[n>>>3]|=parseInt(t.substr(n,2),16)<<24-n%8*4;return new c.init(e,r/2)}},h=f.Latin1={stringify:function(t){for(var r=t.words,e=t.sigBytes,n=[],i=0;i<e;i++){var o=r[i>>>2]>>>24-i%4*8&255;n.push(String.fromCharCode(o))}return n.join("")},parse:function(t){for(var r=t.length,e=[],n=0;n<r;n++)e[n>>>2]|=(255&t.charCodeAt(n))<<24-n%4*8;return new c.init(e,r)}},p=f.Utf8={stringify:function(t){try{return decodeURIComponent(escape(h.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return h.parse(unescape(encodeURIComponent(t)))}},d=a.BufferedBlockAlgorithm=s.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=p.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(r){var e,n=this._data,i=n.words,o=n.sigBytes,a=this.blockSize,s=o/(4*a),f=(s=r?t.ceil(s):t.max((0|s)-this._minBufferSize,0))*a,u=t.min(4*f,o);if(f){for(var h=0;h<f;h+=a)this._doProcessBlock(i,h);e=i.splice(0,f),n.sigBytes-=u}return new c.init(e,u)},clone:function(){var t=s.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0}),y=(a.Hasher=d.extend({cfg:s.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){d.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize()},blockSize:16,_createHelper:function(t){return function(r,e){return new t.init(e).finalize(r)}},_createHmacHelper:function(t){return function(r,e){return new y.HMAC.init(t,e).finalize(r)}}}),o.algo={});return o}(Math),function(r){var e=t.CryptoJS,n=e.lib,i=n.WordArray,o=n.Hasher,a=e.algo,s=[];!function(){for(var t=0;t<64;t++)s[t]=4294967296*r.abs(r.sin(t+1))|0}();var c=a.MD5=o.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(t,r){for(var e=0;e<16;e++){var n=r+e,i=t[n];t[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o=this._hash.words,a=t[r+0],c=t[r+1],d=t[r+2],y=t[r+3],l=t[r+4],v=t[r+5],g=t[r+6],m=t[r+7],w=t[r+8],_=t[r+9],S=t[r+10],C=t[r+11],B=t[r+12],A=t[r+13],b=t[r+14],k=t[r+15],x=o[0],E=o[1],R=o[2],J=o[3];E=p(E=p(E=p(E=p(E=h(E=h(E=h(E=h(E=u(E=u(E=u(E=u(E=f(E=f(E=f(E=f(E,R=f(R,J=f(J,x=f(x,E,R,J,a,7,s[0]),E,R,c,12,s[1]),x,E,d,17,s[2]),J,x,y,22,s[3]),R=f(R,J=f(J,x=f(x,E,R,J,l,7,s[4]),E,R,v,12,s[5]),x,E,g,17,s[6]),J,x,m,22,s[7]),R=f(R,J=f(J,x=f(x,E,R,J,w,7,s[8]),E,R,_,12,s[9]),x,E,S,17,s[10]),J,x,C,22,s[11]),R=f(R,J=f(J,x=f(x,E,R,J,B,7,s[12]),E,R,A,12,s[13]),x,E,b,17,s[14]),J,x,k,22,s[15]),R=u(R,J=u(J,x=u(x,E,R,J,c,5,s[16]),E,R,g,9,s[17]),x,E,C,14,s[18]),J,x,a,20,s[19]),R=u(R,J=u(J,x=u(x,E,R,J,v,5,s[20]),E,R,S,9,s[21]),x,E,k,14,s[22]),J,x,l,20,s[23]),R=u(R,J=u(J,x=u(x,E,R,J,_,5,s[24]),E,R,b,9,s[25]),x,E,y,14,s[26]),J,x,w,20,s[27]),R=u(R,J=u(J,x=u(x,E,R,J,A,5,s[28]),E,R,d,9,s[29]),x,E,m,14,s[30]),J,x,B,20,s[31]),R=h(R,J=h(J,x=h(x,E,R,J,v,4,s[32]),E,R,w,11,s[33]),x,E,C,16,s[34]),J,x,b,23,s[35]),R=h(R,J=h(J,x=h(x,E,R,J,c,4,s[36]),E,R,l,11,s[37]),x,E,m,16,s[38]),J,x,S,23,s[39]),R=h(R,J=h(J,x=h(x,E,R,J,A,4,s[40]),E,R,a,11,s[41]),x,E,y,16,s[42]),J,x,g,23,s[43]),R=h(R,J=h(J,x=h(x,E,R,J,_,4,s[44]),E,R,B,11,s[45]),x,E,k,16,s[46]),J,x,d,23,s[47]),R=p(R,J=p(J,x=p(x,E,R,J,a,6,s[48]),E,R,m,10,s[49]),x,E,b,15,s[50]),J,x,v,21,s[51]),R=p(R,J=p(J,x=p(x,E,R,J,B,6,s[52]),E,R,y,10,s[53]),x,E,S,15,s[54]),J,x,c,21,s[55]),R=p(R,J=p(J,x=p(x,E,R,J,w,6,s[56]),E,R,k,10,s[57]),x,E,g,15,s[58]),J,x,A,21,s[59]),R=p(R,J=p(J,x=p(x,E,R,J,l,6,s[60]),E,R,C,10,s[61]),x,E,d,15,s[62]),J,x,_,21,s[63]),o[0]=o[0]+x|0,o[1]=o[1]+E|0,o[2]=o[2]+R|0,o[3]=o[3]+J|0},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;e[i>>>5]|=128<<24-i%32;var o=r.floor(n/4294967296),a=n;e[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),e[14+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),t.sigBytes=4*(e.length+1),this._process();for(var s=this._hash,c=s.words,f=0;f<4;f++){var u=c[f];c[f]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return s},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});function f(t,r,e,n,i,o,a){var s=t+(r&e|~r&n)+i+a;return(s<<o|s>>>32-o)+r}function u(t,r,e,n,i,o,a){var s=t+(r&n|e&~n)+i+a;return(s<<o|s>>>32-o)+r}function h(t,r,e,n,i,o,a){var s=t+(r^e^n)+i+a;return(s<<o|s>>>32-o)+r}function p(t,r,e,n,i,o,a){var s=t+(e^(r|~n))+i+a;return(s<<o|s>>>32-o)+r}e.MD5=o._createHelper(c),e.HmacMD5=o._createHmacHelper(c)}(Math),function(r){var e=t.CryptoJS,n=e.lib,i=n.WordArray,o=n.Hasher,a=e.algo,s=[],c=[];!function(){function t(t){for(var e=r.sqrt(t),n=2;n<=e;n++)if(!(t%n))return!1;return!0}function e(t){return 4294967296*(t-(0|t))|0}for(var n=2,i=0;i<64;)t(n)&&(i<8&&(s[i]=e(r.pow(n,.5))),c[i]=e(r.pow(n,1/3)),i++),n++}();var f=[],u=a.SHA256=o.extend({_doReset:function(){this._hash=new i.init(s.slice(0))},_doProcessBlock:function(t,r){for(var e=this._hash.words,n=e[0],i=e[1],o=e[2],a=e[3],s=e[4],u=e[5],h=e[6],p=e[7],d=0;d<64;d++){if(d<16)f[d]=0|t[r+d];else{var y=f[d-15],l=(y<<25|y>>>7)^(y<<14|y>>>18)^y>>>3,v=f[d-2],g=(v<<15|v>>>17)^(v<<13|v>>>19)^v>>>10;f[d]=l+f[d-7]+g+f[d-16]}var m=n&i^n&o^i&o,w=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),_=p+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&u^~s&h)+c[d]+f[d];p=h,h=u,u=s,s=a+_|0,a=o,o=i,i=n,n=_+(w+m)|0}e[0]=e[0]+n|0,e[1]=e[1]+i|0,e[2]=e[2]+o|0,e[3]=e[3]+a|0,e[4]=e[4]+s|0,e[5]=e[5]+u|0,e[6]=e[6]+h|0,e[7]=e[7]+p|0},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;return e[i>>>5]|=128<<24-i%32,e[14+(i+64>>>9<<4)]=r.floor(n/4294967296),e[15+(i+64>>>9<<4)]=n,t.sigBytes=4*e.length,this._process(),this._hash},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});e.SHA256=o._createHelper(u),e.HmacSHA256=o._createHmacHelper(u)}(Math),r=t.CryptoJS,e=r.lib.Base,n=r.enc.Utf8,r.algo.HMAC=e.extend({init:function(t,r){t=this._hasher=new t.init,"string"==typeof r&&(r=n.parse(r));var e=t.blockSize,i=4*e;r.sigBytes>i&&(r=t.finalize(r)),r.clamp();for(var o=this._oKey=r.clone(),a=this._iKey=r.clone(),s=o.words,c=a.words,f=0;f<e;f++)s[f]^=1549556828,c[f]^=909522486;o.sigBytes=a.sigBytes=i,this.reset()},reset:function(){var t=this._hasher;t.reset(),t.update(this._iKey)},update:function(t){return this._hasher.update(t),this},finalize:function(t){var r=this._hasher,e=r.finalize(t);return r.reset(),r.finalize(this._oKey.clone().concat(e))}}),t.CryptoJS.lib.Cipher||function(r){var e=t.CryptoJS,n=e.lib,i=n.Base,o=n.WordArray,a=n.BufferedBlockAlgorithm,s=e.enc,c=(s.Utf8,s.Base64),f=e.algo.EvpKDF,u=n.Cipher=a.extend({cfg:i.extend(),createEncryptor:function(t,r){return this.create(this._ENC_XFORM_MODE,t,r)},createDecryptor:function(t,r){return this.create(this._DEC_XFORM_MODE,t,r)},init:function(t,r,e){this.cfg=this.cfg.extend(e),this._xformMode=t,this._key=r,this.reset()},reset:function(){a.reset.call(this),this._doReset()},process:function(t){return this._append(t),this._process()},finalize:function(t){return t&&this._append(t),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function t(t){return"string"==typeof t?w:g}return function(r){return{encrypt:function(e,n,i){return t(n).encrypt(r,e,n,i)},decrypt:function(e,n,i){return t(n).decrypt(r,e,n,i)}}}}()}),h=(n.StreamCipher=u.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),e.mode={}),p=n.BlockCipherMode=i.extend({createEncryptor:function(t,r){return this.Encryptor.create(t,r)},createDecryptor:function(t,r){return this.Decryptor.create(t,r)},init:function(t,r){this._cipher=t,this._iv=r}}),d=h.CBC=function(){var t=p.extend();function e(t,e,n){var i,o=this._iv;o?(i=o,this._iv=r):i=this._prevBlock;for(var a=0;a<n;a++)t[e+a]^=i[a]}return t.Encryptor=t.extend({processBlock:function(t,r){var n=this._cipher,i=n.blockSize;e.call(this,t,r,i),n.encryptBlock(t,r),this._prevBlock=t.slice(r,r+i)}}),t.Decryptor=t.extend({processBlock:function(t,r){var n=this._cipher,i=n.blockSize,o=t.slice(r,r+i);n.decryptBlock(t,r),e.call(this,t,r,i),this._prevBlock=o}}),t}(),y=(e.pad={}).Pkcs7={pad:function(t,r){for(var e=4*r,n=e-t.sigBytes%e,i=n<<24|n<<16|n<<8|n,a=[],s=0;s<n;s+=4)a.push(i);var c=o.create(a,n);t.concat(c)},unpad:function(t){var r=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=r}},l=(n.BlockCipher=u.extend({cfg:u.cfg.extend({mode:d,padding:y}),reset:function(){var t;u.reset.call(this);var r=this.cfg,e=r.iv,n=r.mode;this._xformMode==this._ENC_XFORM_MODE?t=n.createEncryptor:(t=n.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==t?this._mode.init(this,e&&e.words):(this._mode=t.call(n,this,e&&e.words),this._mode.__creator=t)},_doProcessBlock:function(t,r){this._mode.processBlock(t,r)},_doFinalize:function(){var t,r=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(r.pad(this._data,this.blockSize),t=this._process(!0)):(t=this._process(!0),r.unpad(t)),t},blockSize:4}),n.CipherParams=i.extend({init:function(t){this.mixIn(t)},toString:function(t){return(t||this.formatter).stringify(this)}})),v=(e.format={}).OpenSSL={stringify:function(t){var r=t.ciphertext,e=t.salt;return(e?o.create([1398893684,1701076831]).concat(e).concat(r):r).toString(c)},parse:function(t){var r,e=c.parse(t),n=e.words;return 1398893684==n[0]&&1701076831==n[1]&&(r=o.create(n.slice(2,4)),n.splice(0,4),e.sigBytes-=16),l.create({ciphertext:e,salt:r})}},g=n.SerializableCipher=i.extend({cfg:i.extend({format:v}),encrypt:function(t,r,e,n){n=this.cfg.extend(n);var i=t.createEncryptor(e,n),o=i.finalize(r),a=i.cfg;return l.create({ciphertext:o,key:e,iv:a.iv,algorithm:t,mode:a.mode,padding:a.padding,blockSize:t.blockSize,formatter:n.format})},decrypt:function(t,r,e,n){return n=this.cfg.extend(n),r=this._parse(r,n.format),t.createDecryptor(e,n).finalize(r.ciphertext)},_parse:function(t,r){return"string"==typeof t?r.parse(t,this):t}}),m=(e.kdf={}).OpenSSL={execute:function(t,r,e,n){n||(n=o.random(8));var i=f.create({keySize:r+e}).compute(t,n),a=o.create(i.words.slice(r),4*e);return i.sigBytes=4*r,l.create({key:i,iv:a,salt:n})}},w=n.PasswordBasedCipher=g.extend({cfg:g.cfg.extend({kdf:m}),encrypt:function(t,r,e,n){var i=(n=this.cfg.extend(n)).kdf.execute(e,t.keySize,t.ivSize);n.iv=i.iv;var o=g.encrypt.call(this,t,r,i.key,n);return o.mixIn(i),o},decrypt:function(t,r,e,n){n=this.cfg.extend(n),r=this._parse(r,n.format);var i=n.kdf.execute(e,t.keySize,t.ivSize,r.salt);return n.iv=i.iv,g.decrypt.call(this,t,r,i.key,n)}})}(),function(){if("function"==typeof ArrayBuffer){var r=t.CryptoJS.lib.WordArray,e=r.init;(r.init=function(t){if(t instanceof ArrayBuffer&&(t=new Uint8Array(t)),(t instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)&&(t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength)),t instanceof Uint8Array){for(var r=t.byteLength,n=[],i=0;i<r;i++)n[i>>>2]|=t[i]<<24-i%4*8;e.call(this,n,r)}else e.apply(this,arguments)}).prototype=r}}(),t.CryptoJS.pad.NoPadding={pad:function(){},unpad:function(){}},function(){var r=t.CryptoJS,e=r.lib.WordArray;r.enc.Base64={stringify:function(t){var r=t.words,e=t.sigBytes,n=this._map;t.clamp();for(var i=[],o=0;o<e;o+=3)for(var a=(r[o>>>2]>>>24-o%4*8&255)<<16|(r[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|r[o+2>>>2]>>>24-(o+2)%4*8&255,s=0;s<4&&o+.75*s<e;s++)i.push(n.charAt(a>>>6*(3-s)&63));var c=n.charAt(64);if(c)for(;i.length%4;)i.push(c);return i.join("")},parse:function(t){var r=t.length,n=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var o=0;o<n.length;o++)i[n.charCodeAt(o)]=o}var a=n.charAt(64);if(a){var s=t.indexOf(a);-1!==s&&(r=s)}return function(t,r,n){for(var i=[],o=0,a=0;a<r;a++)if(a%4){var s=n[t.charCodeAt(a-1)]<<a%4*2,c=n[t.charCodeAt(a)]>>>6-a%4*2,f=s|c;i[o>>>2]|=f<<24-o%4*8,o++}return e.create(i,o)}(t,r,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),function(){var r=t.CryptoJS,e=r.lib,n=e.Base,i=e.WordArray,o=r.algo,a=o.MD5,s=o.EvpKDF=n.extend({cfg:n.extend({keySize:4,hasher:a,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,r){for(var e,n=this.cfg,o=n.hasher.create(),a=i.create(),s=a.words,c=n.keySize,f=n.iterations;s.length<c;){e&&o.update(e),e=o.update(t).finalize(r),o.reset();for(var u=1;u<f;u++)e=o.finalize(e),o.reset();a.concat(e)}return a.sigBytes=4*c,a}});r.EvpKDF=function(t,r,e){return s.create(e).compute(t,r)}}(),function(){var r=t.CryptoJS,e=r.lib.BlockCipher,n=r.algo,i=[],o=[],a=[],s=[],c=[],f=[],u=[],h=[],p=[],d=[];!function(){for(var t=[],r=0;r<256;r++)t[r]=r<128?r<<1:r<<1^283;var e=0,n=0;for(r=0;r<256;r++){var y=n^n<<1^n<<2^n<<3^n<<4;y=y>>>8^255&y^99,i[e]=y,o[y]=e;var l=t[e],v=t[l],g=t[v],m=257*t[y]^16843008*y;a[e]=m<<24|m>>>8,s[e]=m<<16|m>>>16,c[e]=m<<8|m>>>24,f[e]=m;m=16843009*g^65537*v^257*l^16843008*e;u[y]=m<<24|m>>>8,h[y]=m<<16|m>>>16,p[y]=m<<8|m>>>24,d[y]=m,e?(e=l^t[t[t[g^l]]],n^=t[t[n]]):e=n=1}}();var y=[0,1,2,4,8,16,32,64,128,27,54],l=n.AES=e.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var t=this._keyPriorReset=this._key,r=t.words,e=t.sigBytes/4,n=4*((this._nRounds=e+6)+1),o=this._keySchedule=[],a=0;a<n;a++)a<e?o[a]=r[a]:(f=o[a-1],a%e?e>6&&a%e==4&&(f=i[f>>>24]<<24|i[f>>>16&255]<<16|i[f>>>8&255]<<8|i[255&f]):(f=i[(f=f<<8|f>>>24)>>>24]<<24|i[f>>>16&255]<<16|i[f>>>8&255]<<8|i[255&f],f^=y[a/e|0]<<24),o[a]=o[a-e]^f);for(var s=this._invKeySchedule=[],c=0;c<n;c++){a=n-c;if(c%4)var f=o[a];else f=o[a-4];s[c]=c<4||a<=4?f:u[i[f>>>24]]^h[i[f>>>16&255]]^p[i[f>>>8&255]]^d[i[255&f]]}}},encryptBlock:function(t,r){this._doCryptBlock(t,r,this._keySchedule,a,s,c,f,i)},decryptBlock:function(t,r){var e=t[r+1];t[r+1]=t[r+3],t[r+3]=e,this._doCryptBlock(t,r,this._invKeySchedule,u,h,p,d,o);e=t[r+1];t[r+1]=t[r+3],t[r+3]=e},_doCryptBlock:function(t,r,e,n,i,o,a,s){for(var c=this._nRounds,f=t[r]^e[0],u=t[r+1]^e[1],h=t[r+2]^e[2],p=t[r+3]^e[3],d=4,y=1;y<c;y++){var l=n[f>>>24]^i[u>>>16&255]^o[h>>>8&255]^a[255&p]^e[d++],v=n[u>>>24]^i[h>>>16&255]^o[p>>>8&255]^a[255&f]^e[d++],g=n[h>>>24]^i[p>>>16&255]^o[f>>>8&255]^a[255&u]^e[d++],m=n[p>>>24]^i[f>>>16&255]^o[u>>>8&255]^a[255&h]^e[d++];f=l,u=v,h=g,p=m}l=(s[f>>>24]<<24|s[u>>>16&255]<<16|s[h>>>8&255]<<8|s[255&p])^e[d++],v=(s[u>>>24]<<24|s[h>>>16&255]<<16|s[p>>>8&255]<<8|s[255&f])^e[d++],g=(s[h>>>24]<<24|s[p>>>16&255]<<16|s[f>>>8&255]<<8|s[255&u])^e[d++],m=(s[p>>>24]<<24|s[f>>>16&255]<<16|s[u>>>8&255]<<8|s[255&h])^e[d++];t[r]=l,t[r+1]=v,t[r+2]=g,t[r+3]=m},keySize:8});r.AES=e._createHelper(l)}(),function(){var r=t.CryptoJS,e=r.lib.StreamCipher,n=r.algo,i=n.RC4=e.extend({_doReset:function(){for(var t=this._key,r=t.words,e=t.sigBytes,n=this._S=[],i=0;i<256;i++)n[i]=i;i=0;for(var o=0;i<256;i++){var a=i%e,s=r[a>>>2]>>>24-a%4*8&255;o=(o+n[i]+s)%256;var c=n[i];n[i]=n[o],n[o]=c}this._i=this._j=0},_doProcessBlock:function(t,r){t[r]^=o.call(this)},keySize:8,ivSize:0});function o(){for(var t=this._S,r=this._i,e=this._j,n=0,i=0;i<4;i++){e=(e+t[r=(r+1)%256])%256;var o=t[r];t[r]=t[e],t[e]=o,n|=t[(t[r]+t[e])%256]<<24-8*i}return this._i=r,this._j=e,n}r.RC4=e._createHelper(i);var a=n.RC4Drop=i.extend({cfg:i.cfg.extend({drop:192}),_doReset:function(){i._doReset.call(this);for(var t=this.cfg.drop;t>0;t--)o.call(this)}});r.RC4Drop=e._createHelper(a)}(),t.CryptoJS.mode.ECB=((i=t.CryptoJS.lib.BlockCipherMode.extend()).Encryptor=i.extend({processBlock:function(t,r){this._cipher.encryptBlock(t,r)}}),i.Decryptor=i.extend({processBlock:function(t,r){this._cipher.decryptBlock(t,r)}}),i)}(t.security||(t.security={}))}(t.pdf||(t.pdf={}))}(wijmo||(wijmo={})),function(t){!function(t){!function(t){var r=function(){function r(t,r){if(void 0===r&&(r={}),!r.ownerPassword&&!r.userPassword)throw new Error("None of owner password and user password is defined.");this.document=t,this._setupEncryption(r)}return r.generateFileID=function(r){void 0===r&&(r={});var e=r.CreationDate.getTime()+"\n";for(var n in r)r.hasOwnProperty(n)&&(e+=n+": "+r[n]+"\n");return a(t.CryptoJS.MD5(e))},r.generateRandomWordArray=function(r){return t.CryptoJS.lib.WordArray.random(r)},r.create=function(t,e){return void 0===e&&(e={}),e.ownerPassword||e.userPassword?new r(t,e):null},r.prototype._setupEncryption=function(t){switch(t.pdfVersion){case"1.4":case"1.5":this.version=2;break;case"1.6":case"1.7":this.version=4;break;case"1.7ext3":this.version=5;break;default:this.version=1}var r={Filter:"Standard"};switch(this.version){case 1:case 2:case 4:this._setupEncryptionV1V2V4(this.version,r,t);break;case 5:this._setupEncryptionV5(r,t)}this.dictionary=this.document.ref(r)},r.prototype._setupEncryptionV1V2V4=function(r,i,s){var c,f;switch(r){case 1:c=2,this.keyBits=40,f=function(t){void 0===t&&(t={});var r=-64;t.printing&&(r|=4);t.modifying&&(r|=8);t.copying&&(r|=16);t.annotating&&(r|=32);return r}(s.permissions);break;case 2:c=3,this.keyBits=128,f=e(s.permissions);break;case 4:c=4,this.keyBits=128,f=e(s.permissions)}var u,h,p=n(s.userPassword),d=s.ownerPassword?n(s.ownerPassword):p,y=function(r,e,n,i){for(var o=i,a=r>=3?51:1,s=0;s<a;s++)o=t.CryptoJS.MD5(o);var c=o.clone();c.sigBytes=e/8;var f=n;a=r>=3?20:1;for(var s=0;s<a;s++){for(var u=Math.ceil(c.sigBytes/4),h=0;h<u;h++)c.words[h]=o.words[h]^(s|s<<8|s<<16|s<<24);f=t.CryptoJS.RC4.encrypt(f,c).ciphertext}return f}(c,this.keyBits,p,d);this.encryptionKey=function(r,e,n,i,a,s){for(var c=i.clone().concat(a).concat(t.CryptoJS.lib.WordArray.create([o(s)],4)).concat(t.CryptoJS.lib.WordArray.create(n)),f=r>=3?51:1,u=0;u<f;u++)(c=t.CryptoJS.MD5(c)).sigBytes=e/8;return c}(c,this.keyBits,this.document._id,p,y,f),2===c?(h=this.encryptionKey,u=t.CryptoJS.RC4.encrypt(n(),h).ciphertext):u=function(r,e){for(var i=e.clone(),o=t.CryptoJS.MD5(n().concat(t.CryptoJS.lib.WordArray.create(r))),a=0;a<20;a++){for(var s=Math.ceil(i.sigBytes/4),c=0;c<s;c++)i.words[c]=e.words[c]^(a|a<<8|a<<16|a<<24);o=t.CryptoJS.RC4.encrypt(o,i).ciphertext}return o.concat(t.CryptoJS.lib.WordArray.create(null,16))}(this.document._id,this.encryptionKey),i.V=r,r>=2&&(i.Length=this.keyBits),4===r&&(i.CF={StdCF:{AuthEvent:"DocOpen",CFM:"AESV2",Length:this.keyBits/8}},i.StmF="StdCF",i.StrF="StdCF"),i.R=c,i.O=a(y),i.U=a(u),i.P=f},r.prototype._setupEncryptionV5=function(n,s){this.keyBits=256;var c=e(s.permissions),f=i(s.userPassword),u=s.ownerPassword?i(s.ownerPassword):f;this.encryptionKey=(0,r.generateRandomWordArray)(32);var h=function(r,e){var n=e(8),i=e(8);return t.CryptoJS.SHA256(r.clone().concat(n)).concat(n).concat(i)}(f,r.generateRandomWordArray),p=function(r,e,n){var i=t.CryptoJS.SHA256(r.clone().concat(e)),o={mode:t.CryptoJS.mode.CBC,padding:t.CryptoJS.pad.NoPadding,iv:t.CryptoJS.lib.WordArray.create(null,16)};return t.CryptoJS.AES.encrypt(n,i,o).ciphertext}(f,t.CryptoJS.lib.WordArray.create(h.words.slice(10,12),8),this.encryptionKey),d=function(r,e,n){var i=n(8),o=n(8);return t.CryptoJS.SHA256(r.clone().concat(i).concat(e)).concat(i).concat(o)}(u,h,r.generateRandomWordArray),y=function(r,e,n,i){var o=t.CryptoJS.SHA256(r.clone().concat(e).concat(n)),a={mode:t.CryptoJS.mode.CBC,padding:t.CryptoJS.pad.NoPadding,iv:t.CryptoJS.lib.WordArray.create(null,16)};return t.CryptoJS.AES.encrypt(i,o,a).ciphertext}(u,t.CryptoJS.lib.WordArray.create(d.words.slice(10,12),8),h,this.encryptionKey),l=function(r,e,n){var i=t.CryptoJS.lib.WordArray.create([o(r),4294967295,1415668834],12).concat(n(4)),a={mode:t.CryptoJS.mode.ECB,padding:t.CryptoJS.pad.NoPadding};return t.CryptoJS.AES.encrypt(i,e,a).ciphertext}(c,this.encryptionKey,r.generateRandomWordArray);n.V=5,n.Length=this.keyBits,n.CF={StdCF:{AuthEvent:"DocOpen",CFM:"AESV3",Length:this.keyBits/8}},n.StmF="StdCF",n.StrF="StdCF",n.R=5,n.O=a(d),n.OE=a(y),n.U=a(h),n.UE=a(p),n.P=c,n.Perms=a(l)},r.prototype.getEncryptFn=function(e,n){var i,o;if(this.version<5&&(i=this.encryptionKey.clone().concat(t.CryptoJS.lib.WordArray.create([(255&e)<<24|(65280&e)<<8|e>>8&65280|255&n,(65280&n)<<16],5))),1===this.version||2===this.version){var s=t.CryptoJS.MD5(i);return s.sigBytes=Math.min(16,this.keyBits/8+5),function(r){return a(t.CryptoJS.RC4.encrypt(t.CryptoJS.lib.WordArray.create(r),s).ciphertext)}}o=4===this.version?t.CryptoJS.MD5(i.concat(t.CryptoJS.lib.WordArray.create([1933667412],4))):this.encryptionKey;var c=r.generateRandomWordArray(16),f={mode:t.CryptoJS.mode.CBC,padding:t.CryptoJS.pad.Pkcs7,iv:c};return function(r){return a(c.clone().concat(t.CryptoJS.AES.encrypt(t.CryptoJS.lib.WordArray.create(r),o,f).ciphertext))}},r.prototype.end=function(){this.dictionary.end()},r}();function e(t){void 0===t&&(t={});var r=-3904;return"lowResolution"===t.printing&&(r|=4),"highResolution"===t.printing&&(r|=2052),t.modifying&&(r|=8),t.copying&&(r|=16),t.annotating&&(r|=32),t.fillingForms&&(r|=256),t.contentAccessibility&&(r|=512),t.documentAssembly&&(r|=1024),r}function n(r){void 0===r&&(r="");for(var e=new t.Buffer(32),n=r.length,i=0;i<n&&i<32;){var o=r.charCodeAt(i);if(o>255)throw new Error("Password contains one or more invalid characters.");e[i]=o,i++}for(;i<32;)e[i]=s[i-n],i++;return t.CryptoJS.lib.WordArray.create(e)}function i(r){void 0===r&&(r=""),r=unescape(encodeURIComponent(t.saslprep(r)));for(var e=Math.min(127,r.length),n=new t.Buffer(e),i=0;i<e;i++)n[i]=r.charCodeAt(i);return t.CryptoJS.lib.WordArray.create(n)}function o(t){return(255&t)<<24|(65280&t)<<8|t>>8&65280|t>>24&255}function a(r){for(var e=[],n=0;n<r.sigBytes;n++)e.push(r.words[Math.floor(n/4)]>>8*(3-n%4)&255);return t.Buffer.from(e)}t._PDFSecurity=r;var s=[40,191,78,94,78,117,138,65,100,0,78,86,255,250,1,8,46,46,0,182,208,104,62,128,47,12,169,254,100,83,105,122]}(t.security||(t.security={}))}(t.pdf||(t.pdf={}))}(wijmo||(wijmo={})),function(t){!function(r){r.security||(r.security={}),t._registerModule("wijmo.pdf.security",t.pdf.security)}(t.pdf||(t.pdf={}))}(wijmo||(wijmo={}));
var wijmo,__extends=this&&this.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}();!function(e){!function(t){!function(t){"use strict";t.softGrid=function(){return e._getModule("wijmo.grid")},t.softDetail=function(){return e._getModule("wijmo.grid.detail")},t.softMultiRow=function(){return e._getModule("wijmo.grid.multirow")},t.softSheet=function(){return e._getModule("wijmo.grid.sheet")},t.softOlap=function(){return e._getModule("wijmo.olap")},t.softTransposed=function(){return e._getModule("wijmo.grid.transposed")},t.softTransposedMultiRow=function(){return e._getModule("wijmo.grid.transposedmultirow")}}(t.pdf||(t.pdf={}))}(e.grid||(e.grid={}))}(wijmo||(wijmo={})),function(e){!function(e){!function(e){"use strict";!function(e){e[e.ActualSize=0]="ActualSize",e[e.PageWidth=1]="PageWidth",e[e.SinglePage=2]="SinglePage"}(e.ScaleMode||(e.ScaleMode={})),function(e){e[e.All=0]="All",e[e.Selection=1]="Selection"}(e.ExportMode||(e.ExportMode={}))}(e.pdf||(e.pdf={}))}(e.grid||(e.grid={}))}(wijmo||(wijmo={})),function(e){!function(e){!function(e){"use strict";!function(e){e[e.None=0]="None",e[e.Cell=1]="Cell",e[e.ColumnHeader=2]="ColumnHeader",e[e.RowHeader=3]="RowHeader",e[e.TopLeft=4]="TopLeft",e[e.ColumnFooter=5]="ColumnFooter",e[e.BottomLeft=6]="BottomLeft"}(e._CellType||(e._CellType={}))}(e.pdf||(e.pdf={}))}(e.grid||(e.grid={}))}(wijmo||(wijmo={})),function(e){!function(t){!function(t){"use strict";t._merge=function t(r,o,n){if(void 0===n&&(n=!1),!r&&o&&(r={}),o&&r)for(var i in o){var l=o[i],s=r[i];if(e.isObject(l)){if(void 0===s||!e.isObject(s)&&n){if(e.isFunction(l.clone)){r[i]=s=l.clone();continue}r[i]=s={}}e.isObject(s)&&t(r[i],l,n)}else(void 0===s||n&&void 0!==l)&&(r[i]=l)}return r},t._combineColumns=function(e,t){return{aggregate:t.aggregate,binding:t.binding,name:t.name,dataType:t.dataType,wordWrap:t.wordWrap,multiLine:t.multiLine,getAlignment:function(){if("getAlignment"in t)return t.getAlignment()},index:e.index,visibleIndex:e.visibleIndex,isVisible:e.isVisible,renderWidth:e.renderWidth}},t._cloneStyle=function(e){if(!e)return null;for(var t={},r=function(e){return e.replace(/\-([a-z])/g,function(e,t,r){return r>0?t.toUpperCase():t})},o=0,n=e.length;o<n;o++){var i=e[o];t[r(i)]=e.getPropertyValue(i)}return t}}(t.pdf||(t.pdf={}))}(e.grid||(e.grid={}))}(wijmo||(wijmo={})),function(e){!function(t){!function(t){"use strict";var r=function(t){function r(r,o,n,i,l,s,a,u,c){var d=t.call(this)||this;return d.cancelBorders=!1,d._p=r,d._rng=o,"undefined"!=typeof HTMLElement&&(d._cell=e.asType(n,HTMLElement,!0)),d._canvas=i,d._clientRect=l,d._contentRect=s,d._style=a,d._getFormattedCell=u,d._getTextRect=c,d}return __extends(r,t),Object.defineProperty(r.prototype,"panel",{get:function(){return this._p},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"range",{get:function(){return this._rng.clone()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"row",{get:function(){return this._rng.row},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"col",{get:function(){return this._rng.col},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"data",{get:function(){return this._data},set:function(e){this._data=e},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"canvas",{get:function(){return this._canvas},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"cell",{get:function(){return this._cell},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"clientRect",{get:function(){return this._clientRect},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"contentRect",{get:function(){return this._contentRect},enumerable:!0,configurable:!0}),r.prototype.drawBackground=function(e){var t=this.clientRect;e&&t.width>0&&t.height>0&&this.canvas.paths.rect(t.left,t.top,t.width,t.height).fill(e||this.style.backgroundColor)},r.prototype.getFormattedCell=function(){return e.asFunction(this._getFormattedCell)()},Object.defineProperty(r.prototype,"tagContent",{get:function(){return this._tagContent},set:function(e){this._tagContent=e},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"style",{get:function(){return this._style},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"textTop",{get:function(){return!this._textRect&&e.isFunction(this._getTextRect)&&(this._textRect=this._getTextRect()),this._textRect?this._textRect.top:this._contentRect.top},enumerable:!0,configurable:!0}),r}(e.CancelEventArgs);t.PdfFormatItemEventArgs=r}(t.pdf||(t.pdf={}))}(e.grid||(e.grid={}))}(wijmo||(wijmo={})),function(e){var t;(function(t){"use strict";var r=function(){function r(){}return r.draw=function(r,o,n,i,l,s){e.assert(!!r,"The flex argument cannot be null."),e.assert(!!o,"The doc argument cannot be null."),null==(s=this._applyDefaultDrawSettings(s)).scaleMode&&(s.scaleMode=null==i?t.ScaleMode.ActualSize:null==l?t.ScaleMode.PageWidth:t.ScaleMode.SinglePage),this._drawInternal(r,o,n,i,l,s)},r._applyDefaultDrawSettings=function(e){return t._merge(t._merge({},e),r.DefaultDrawSettings)},r._drawInternal=function(t,r,n,i,l,s){var a=null!=n,u=new e.Size(r.width,r.height);n||(n=new e.Point(0,r.y)),e.isArray(s.embeddedFonts)&&s.embeddedFonts.forEach(function(e){r.registerFont(e)});var c=this._getRowsToRender(t,s),d=new o(t,s,c,this.BorderWidth,!0),f=new e.Rect(n.x||0,n.y||0,i||u.width,l||u.height),h=this._getScaleFactor(d,s.scaleMode,f);if(n.y>0&&this._canBreakRows(s.scaleMode)){var p=c.find(t.cells,function(e){return d.isRenderableRow(e)});if(p){var g=(f.height-f.top)*(1/h);(d.showColumnHeader?e.pdf.pxToPt(t.columnHeaders.height):0)+e.pdf.pxToPt(p.renderHeight)-this.BorderWidth>g&&(r.addPage(),f=new e.Rect(n.x||0,0,i||u.width,l||u.height))}}var _=this._getPages(d,c,f,s,a,h),w=(s.progress?this._getCellsCount(t,s,_):0)/s._progressMax,m=0,b=0,y=s.progress?function(){++m-b>=50&&(b=m,s.progress(m/w))}:null;s.progress&&s.progress(0);for(var C=0;C<_.length;C++){C>0&&r.addPage();var v=_[C],R=0===v.pageCol?f.left:0,x=0===v.pageRow?f.top:0;r.saveState(),r.paths.rect(0,0,r._widthCtm,r._heightCtm).clip(),r.scale(h,h,new e.Point(R,x)),r.translate(R,x);var T=new o(t,s,v.range,this.BorderWidth,C===_.length-1);T.render(r,y),r.restoreState(),r.x=R,r.y=x+T.renderSize.height*h}s.progress&&0<s._progressMax&&s.progress(s._progressMax)},r._getCellsCount=function(e,t,r){for(var n=0,i=0;i<r.length;i++)n+=new o(e,t,r[i].range,0,!1).getCellsCount();return n},r._getRowsToRender=function(e,r){var o=[];r.exportMode==t.ExportMode.All?o.push(new a(0,0,e.rows.length-1,e.columns.length-1)):o=e.getSelection();var n=new c(o);if(n.isValid&&!r.drawDetailRows){var i=[];n.forEach(e.cells,function(t,r,o){if(!e.isDetailRow(t)){var n=i.length;n&&i[n-1].bottomRow+1===o?i[n-1].row2++:i.push(new a(o,r.col,o,r.col2))}}),n=new c(i)}return n},r._getScaleFactor=function(e,r,o){var n=1;if(r==t.ScaleMode.ActualSize)return n;var i,l=e.renderSize;return r==t.ScaleMode.SinglePage?(i=Math.min(o.width/l.width,o.height/l.height))<1&&(n=i):(i=o.width/l.width)<1&&(n=i),n},r._canBreakRows=function(e){return e==t.ScaleMode.ActualSize||e==t.ScaleMode.PageWidth},r._getPages=function(r,o,n,i,l,s){var u=this,f=[],h=[],p=e.pdf.pxToPt,g=r.flex,_=r.showColumnHeader,w=r.showColumnFooter,m=r.showRowHeader,b=_?p(g.columnHeaders.height):0,y=w?p(g.columnFooters.height):0,C=m?p(g.rowHeaders.width):0,v=this._canBreakRows(i.scaleMode),R=i.scaleMode==t.ScaleMode.ActualSize,x=(n.width-n.left)*(1/s),T=(n.height-n.top)*(1/s),S=n.width*(1/s),P=n.height*(1/s),M=b,H=C,G=l&&i.scaleMode==t.ScaleMode.ActualSize,j=T;if(v){var z=0,O=0;o.forEach(g.cells,function(e,t,o,n){if(j=f.length?P:T,r.isRenderableRow(e)){var i=p(e.renderHeight);M+=i,(_||++z>1)&&(M-=u.BorderWidth),M>j?(G||b+i>j&&0===O?(f.push(n),M=b):(f.push(n-1),M=b+i),O=0,_&&(M-=u.BorderWidth)):O++}})}var F=Math.max(o.length()-1,0);if(f.length&&f[f.length-1]===F||f.push(F),w&&M+y>j&&f.push(-1),R)for(var L=0,A=o.leftCol;A<=o.rightCol;A++){var W=g.columns[A];if(r.isRenderableColumn(W)){var D=p(W.renderWidth),B=h.length?S:x;H+=D,(m||++L>1)&&(H-=this.BorderWidth),H>B&&(C+D>B||G?(h.push(A),H=C):(h.push(A-1),H=C+D),m&&(H-=this.BorderWidth))}}h.length&&h[h.length-1]===o.rightCol||h.push(o.rightCol);var E=[],V=!1,I=1,N=l&&i.maxPages>0?1:i.maxPages;for(A=0;A<f.length&&!V;A++)for(var k=0;k<h.length&&!V;k++,I++)if(!(V=I>N)){var J=0===A?0:f[A-1]+1,U=0===k?o.leftCol:h[k-1]+1,q=-1===f[A]?new c([new a(-1,U,-1,h[k])]):o.subrange(J,f[A]-J+1,U,h[k]);E.push(new d(q,k,A))}return E},r.BorderWidth=1,r.DefFont=new e.pdf.PdfFont,r.DefaultDrawSettings={customCellContent:!1,drawDetailRows:!1,exportMode:t.ExportMode.All,maxPages:Number.MAX_VALUE,repeatMergedValuesAcrossPages:!0,recalculateStarWidths:!0,styles:{cellStyle:{font:{family:r.DefFont.family,size:r.DefFont.size,style:r.DefFont.style,weight:r.DefFont.weight},padding:1.5,verticalAlign:"middle"},headerCellStyle:{font:{weight:"bold"}}},quickCellStyles:!0,_progressMax:1},r}();t._FlexGridPdfCoreConverter=r;var o=function(){function t(e,t,r,o,i){this._flex=e,this._borderWidth=o,this._lastPage=i,this._settings=t||{},this._topLeft=new n(this,e.topLeftCells,this.showRowHeader&&this.showColumnHeader?new c([new a(0,0,e.topLeftCells.rows.length-1,e.topLeftCells.columns.length-1)]):new c([]),o),this._rowHeader=new n(this,e.rowHeaders,this.showRowHeader?r.clone(0,e.rowHeaders.columns.length-1):new c([]),o),this._columnHeader=new n(this,e.columnHeaders,this.showColumnHeader?new c([new a(0,r.leftCol,e.columnHeaders.rows.length-1,r.rightCol)]):new c([]),o),this._cells=new n(this,e.cells,r,o),this._bottomLeft=new n(this,e.bottomLeftCells,this.showRowHeader&&this.showColumnFooter?new c([new a(0,0,e.bottomLeftCells.rows.length-1,e.bottomLeftCells.columns.length-1)]):new c([]),o),this._columnFooter=new n(this,e.columnFooters,this.showColumnFooter?new c([new a(0,r.leftCol,e.columnFooters.rows.length-1,r.rightCol)]):new c([]),o)}return Object.defineProperty(t.prototype,"settings",{get:function(){return this._settings},enumerable:!0,configurable:!0}),t.prototype.isRenderableRow=function(e){return this._flex.isRenderableRow(e)},t.prototype.isRenderableColumn=function(e){return this._flex.isRenderableColumn(e)},t.prototype.getCellsCount=function(){return this._topLeft.getCellsCount()+this._rowHeader.getCellsCount()+this._columnHeader.getCellsCount()+this._cells.getCellsCount()+this._bottomLeft.getCellsCount()+this._columnFooter.getCellsCount()},t.prototype.render=function(t,r){var o,n,l,s;t.tagged&&(o=n=l=s=new i(t,t.tag(e.pdf.PdfTagType.Table)),t.addTag(o.el),t.version>=e.pdf.PdfVersion.v1_5&&(o.el.add((n=new i(t,t.tag(e.pdf.PdfTagType.THead))).el),o.el.add((l=new i(t,t.tag(e.pdf.PdfTagType.TBody))).el),o.el.add((s=new i(t,t.tag(e.pdf.PdfTagType.TFoot))).el)));var a=Math.max(0,Math.max(this._topLeft.renderSize.width,this._rowHeader.renderSize.width)-this._borderWidth),u=Math.max(0,Math.max(this._topLeft.renderSize.height,this._columnHeader.renderSize.height)-this._borderWidth);this._topLeft.render(t,0,0,r,n),this._rowHeader.render(t,0,u,r,l),this._columnHeader.render(t,a,0,r,n),this._cells.render(t,a,u,r,l),u+=Math.max(0,this._cells.renderSize.height-this._borderWidth),this._bottomLeft.render(t,0,u,r,s),this._columnFooter.render(t,a,u,r,s)},Object.defineProperty(t.prototype,"flex",{get:function(){return this._flex},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"renderSize",{get:function(){var t=Math.max(this._topLeft.renderSize.height,this._columnHeader.renderSize.height)+Math.max(this._rowHeader.renderSize.height,this._cells.renderSize.height)+Math.max(this._bottomLeft.renderSize.height,this._columnFooter.renderSize.height),r=Math.max(this._topLeft.renderSize.width,this._rowHeader.renderSize.width)+Math.max(this._columnHeader.renderSize.width,this._cells.renderSize.width);return this._columnHeader.renderableRowsCount>0&&(t-=this._borderWidth),this._columnFooter.renderableRowsCount>0&&(t-=this._borderWidth),this._rowHeader.renderableColumnsCount>0&&(r-=this._borderWidth),new e.Size(r,t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showColumnHeader",{get:function(){return this._flex.showColumnHeader},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showRowHeader",{get:function(){return this._flex.showRowHeader},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showColumnFooter",{get:function(){return this._lastPage&&this._flex.showColumnFooter},enumerable:!0,configurable:!0}),t.prototype.alignMergedTextToTheTopRow=function(e){return this._flex.alignMergedTextToTheTopRow(e)},t.prototype.getColumn=function(e,t,r){return this._flex.getColumn(e,t,r)},t.prototype.isAlternatingRow=function(e){return this._flex.isAlternatingRow(e)},t.prototype.isGroupRow=function(e){return this._flex.isGroupRow(e)},t.prototype.isNewRow=function(e){return this._flex.isNewRow(e)},t.prototype.isExpandableGroupRow=function(e){return this._flex.isExpandableGroupRow(e)},t.prototype.isBooleanCell=function(e,t,r){return this._flex.isBooleanCell(e,t,r)},t.prototype.getCellStyle=function(e,t,r){return this._flex.getCellStyle(e,t,r)},t}(),n=function(r){function o(e,t,o,n){var i=r.call(this,e.flex,t,o)||this;return i._gr=e,i._borderWidth=n,i}return __extends(o,r),Object.defineProperty(o.prototype,"gr",{get:function(){return this._gr},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"renderSize",{get:function(){return null==this._renderSize&&(this._renderSize=this.size.clone(),this.renderableColumnsCount>1&&(this._renderSize.width-=this._borderWidth*(this.renderableColumnsCount-1)),this.renderableRowsCount>1&&(this._renderSize.height-=this._borderWidth*(this.renderableRowsCount-1))),this._renderSize},enumerable:!0,configurable:!0}),o.prototype._getRangeWidth=function(t,r){for(var o=0,n=0,i=this.panel,l=t;l<=r;l++){var s=i.columns[l];this._gr.isRenderableColumn(s)&&(n++,o+=s.renderWidth)}return o=e.pdf.pxToPt(o),n>1&&(o-=this._borderWidth*(n-1)),o},o.prototype._getRangeHeight=function(t,r){for(var o=0,n=0,i=this.panel,l=t;l<=r;l++){var s=i.rows[l];this._gr.isRenderableRow(s)&&(n++,o+=s.renderHeight)}return o=e.pdf.pxToPt(o),n>1&&(o-=this._borderWidth*(n-1)),o},o.prototype.getCellsCount=function(){var e=this,t=0,r=this.range,o=this.panel,n=new s(this._gr.flex);return r.isValid?(r.forEach(o,function(i,l,s){if(e._gr.isRenderableRow(i))for(var a=r.leftCol;a<=r.rightCol;a++)if(e._gr.isRenderableColumn(o.columns[a])){var u=!1,c=void 0,d=n.getMergedRange(o,s,a);if(d){var f=s===d.firstVisibleRow,h=a===d.leftCol,p=s===l.topRow,g=a===l.leftCol,_=d.rowSpan>1,w=d.columnSpan>1;(_&&w&&(f&&h||p&&g)||_&&!w&&(f||p)||!_&&w&&(h||g))&&(u=!0,w&&(c=Math.min(r.rightCol,d.rightCol)))}else u=!0;u&&t++,c&&(a=c)}}),t):t},o.prototype.render=function(r,o,n,i,a){var c=this,d=this.range;if(d.isValid){for(var f={},h=this.panel,p=new s(this._gr.flex),g=new u(h,0,0,0,0),_=new l(this,r,this._borderWidth),w=d.leftCol;w<=d.rightCol;w++)f[w]=n;d.forEach(h,function(n,l,s){if(c._gr.isRenderableRow(n))for(var u=a?a.getTR(s,h.cellType):null,w=o,m=d.leftCol;m<=d.rightCol;m++){var b=c.gr.getColumn(h,s,m);if(c._gr.isRenderableColumn(b)){var y,C=void 0,v=void 0,R=!1,x=void 0,T=c._gr.flex.getCellContent(c.panel,n,b,m),S=p.getMergedRange(h,s,m);if(S){if(s>=S.topRow){g.copyFrom(S);var P=s===S.firstVisibleRow,M=m===S.leftCol,H=s===l.topRow,G=m===l.leftCol,j=S.rowSpan>1,z=S.columnSpan>1;if((j&&z&&(P&&M||H&&G)||j&&!z&&(P||H)||!j&&z&&(M||G))&&(R=!0,y=P&&M||c.gr.settings.repeatMergedValuesAcrossPages?T:"",C=j?c._getRangeHeight(s,Math.min(S.bottomRow,l.bottomRow)):c._getRangeHeight(s,s),z)){v=c._getRangeWidth(Math.max(d.leftCol,S.leftCol),Math.min(d.rightCol,S.rightCol)),x=Math.min(d.rightCol,S.rightCol);for(var O=m+1;O<=x;O++)f[O]+=C-c._borderWidth}}else C=c._getRangeHeight(s,s);null==v&&(v=c._getRangeWidth(m,m))}else g.setRange(s,m,s,m),R=!0,y=T,C=c._getRangeHeight(s,s),v=c._getRangeWidth(m,m);if(R&&v>0&&C>0){var F=_.renderCell(y,n,b,g,new e.Rect(w,f[m],v,C));if(u){var L=r.tag(h.cellType===t._CellType.ColumnHeader||h.cellType==t._CellType.TopLeft?e.pdf.PdfTagType.TH:e.pdf.PdfTagType.TD);F&&L.add(F),u.add(L)}i&&i()}C&&(f[m]+=C-c._borderWidth),v&&(w+=v-c._borderWidth),x&&(m=x)}}})}},o}(function(){function t(e,t,r){this._flex=e,this._panel=t,this._range=r.clone()}return Object.defineProperty(t.prototype,"renderableRowsCount",{get:function(){var e=this;return null==this._renderableRowsCnt&&(this._renderableRowsCnt=0,this._range.forEach(this._panel,function(t){e._flex.isRenderableRow(t)&&e._renderableRowsCnt++})),this._renderableRowsCnt},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"renderableColumnsCount",{get:function(){if(null==this._renderableColumnsCnt&&(this._renderableColumnsCnt=0,this._range.isValid))for(var e=this._range.leftCol;e<=this._range.rightCol;e++)this._flex.isRenderableColumn(this._panel.columns[e])&&this._renderableColumnsCnt++;return this._renderableColumnsCnt},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){if(null==this._size){var t=this._range.getRenderSize(this._flex,this._panel);this._size=new e.Size(e.pdf.pxToPt(t.width),e.pdf.pxToPt(t.height))}return this._size},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"range",{get:function(){return this._range},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"panel",{get:function(){return this._panel},enumerable:!0,configurable:!0}),t}()),i=function(){function r(e,t){this.doc=e,this.tableSection=t,this._trh=[],this._trb=[],this._trf=[]}return Object.defineProperty(r.prototype,"el",{get:function(){return this.tableSection},enumerable:!0,configurable:!0}),r.prototype.getTR=function(r,o){var n=o===t._CellType.TopLeft||o===t._CellType.ColumnHeader?this._trh:o===t._CellType.RowHeader||o===t._CellType.Cell?this._trb:this._trf,i=n[r];return i||this.tableSection.add(n[r]=i=this.doc.tag(e.pdf.PdfTagType.TR)),i},r}(),l=function(){function r(t,r,o){this.InvisiblePen=new e.pdf.PdfPen(e.Color.fromRgba(0,0,0,0),0),this._pr=t,this._area=r,this._borderWidth=o}return r.prototype.renderCell=function(r,o,n,i,l){var s,a=this,u=this._pr.gr.flex,c=this._pr.panel,d=function(e){return u.getCell(c,i.topRow,i.leftCol,e)},f=null,h=this._pr.gr.getCellStyle(c,o,n),p=this._pr.gr.settings.customCellContent,g=e.isFunction(this._pr.gr.settings.formatItem);if(p){var _=u.getComputedStyle(c,f=d(g));h.color=_.color,h.backgroundColor=_.backgroundColor;var w=u.getComputedDefBorderColor();h.borderLeftColor="none"!=_.borderLeftStyle?_.borderLeftColor:w,h.borderRightColor="none"!=_.borderRightStyle?_.borderRightColor:w,h.borderTopColor="none"!=_.borderTopStyle?_.borderTopColor:w,h.borderBottomColor="none"!=_.borderBottomStyle?_.borderBottomColor:w,h.font=new e.pdf.PdfFont(_.fontFamily,e.pdf._asPt(_.fontSize,!0,void 0),_.fontStyle,_.fontWeight),h.textAlign=_.textAlign}if(h.font&&!(h.font instanceof e.pdf.PdfFont)){var m=h.font;h.font=new e.pdf.PdfFont(m.family,m.size,m.style,m.weight)}if(h.boxSizing="border-box",h.borderWidth=this._borderWidth,h.borderStyle="solid",p||this._pr.gr.isExpandableGroupRow(o)&&0===n.visibleIndex||(h.textAlign=n.getAlignment(o)),c.cellType===t._CellType.Cell&&u.rows.maxGroupLevel>=0&&i.leftCol===u.columns.firstVisibleIndex){var b=u.isGroupRow(o)?Math.max(o.level,0):u.rows.maxGroupLevel+1,y=e.pdf._asPt(h.paddingLeft||h.padding),C=e.pdf.pxToPt(b*u.treeIndent);h.paddingLeft=y+C}var v,R=this._measureCell(r,c,o,n,h,l),x=i.rowSpan>1&&i.visibleRowsCount>1&&this._pr.gr.alignMergedTextToTheTopRow(c)?new e.Rect(R.contentRect.left,R.contentRect.top,R.contentRect.width,R.contentRect.height/(i.visibleRowsCount||1)):R.contentRect,T=!0,S=!0;return g&&((s=new t.PdfFormatItemEventArgs(c,i,f,this._area,R.rect,R.contentRect,h,function(){return f||d(!0)},function(){return R.textRect=a._calculateTextRect(r,c,o,n,x,h)})).data=r,this._pr.gr.settings.formatItem(s),s.data!==r&&(r=e.asString(s.data),R.textRect=null),T=!s.cancel,S=!s.cancelBorders,v=s.tagContent),T&&!R.textRect&&(R.textRect=this._calculateTextRect(r,c,o,n,x,h)),this._renderCell(r,o,n,i,R,h,T,S,null==v)||v},r.prototype._renderCell=function(t,r,o,n,i,l,s,a,u){if(s||a){var c,d=this._area.document.tagged,f=this._area.document;if(d&&f.beginArtifact({type:e.pdf.PdfArtifactType.Layout}),this._renderEmptyCell(i,l,s,a),d&&f.endArtifact(),s){u=!0===d&&!0===u;var h=void 0;this._isBooleanCellAndValue(t,this._pr.panel,r,o)?(u&&(c=f.tag(e.pdf.PdfTagType.Span,null,{actual:t.toString()}),h=f.beginTagContent(e.pdf.PdfTagType.Span)),this._renderBooleanCell(t,i,l)):(u&&(c=f.tag(e.pdf.PdfTagType.P),h=f.beginTagContent(e.pdf.PdfTagType.P)),this._renderTextCell(t,i,l)),u&&(f.endTagContent(),c.add(h))}return c}},r.prototype._isBooleanCellAndValue=function(e,t,r,o){return this._pr.gr.isBooleanCell(t,r,o)&&this._isBoolean(e)},r.prototype._isBoolean=function(t){var r=e.isString(t)&&t.toLowerCase();return"true"===r||"false"===r||!0===t||!1===t},r.prototype._measureCell=function(t,r,o,n,i,l){this._decompositeStyle(i);var s=l.left,a=l.top,u=l.height,c=l.width,d=this._parseBorder(i),f=d.left.width,h=d.top.width,p=d.bottom.width,g=d.right.width,_=this._parsePadding(i),w=0,m=0,b=0,y=0;if("content-box"===i.boxSizing||void 0===i.boxSizing)w=_.top+u+_.bottom,m=_.left+c+_.right,b=u,y=c;else{if("border-box"!==i.boxSizing)throw"Invalid value: "+i.boxSizing;e.pdf._IE&&i instanceof CSSStyleDeclaration?(w=_.top+_.bottom+u,m=_.left+_.right+c):(w=Math.max(u-h-p,0),m=Math.max(c-f-g,0)),b=Math.max(w-_.top-_.bottom,0),y=Math.max(m-_.left-_.right,0)}return{rect:l=new e.Rect(s,a,c,u),clientRect:new e.Rect(s+f,a+h,m,w),contentRect:new e.Rect(s+f+_.left,a+h+_.top,y,b),textRect:null}},r.prototype._decompositeStyle=function(e){var t;e&&((t=e.borderColor)&&(e.borderLeftColor||(e.borderLeftColor=t),e.borderRightColor||(e.borderRightColor=t),e.borderTopColor||(e.borderTopColor=t),e.borderBottomColor||(e.borderBottomColor=t)),(t=e.borderWidth)&&(e.borderLeftWidth||(e.borderLeftWidth=t),e.borderRightWidth||(e.borderRightWidth=t),e.borderTopWidth||(e.borderTopWidth=t),e.borderBottomWidth||(e.borderBottomWidth=t)),(t=e.borderStyle)&&(e.borderLeftStyle||(e.borderLeftStyle=t),e.borderRightStyle||(e.borderRightStyle=t),e.borderTopStyle||(e.borderTopStyle=t),e.borderBottomStyle||(e.borderBottomStyle=t)),(t=e.padding)&&(e.paddingLeft||(e.paddingLeft=t),e.paddingRight||(e.paddingRight=t),e.paddingTop||(e.paddingTop=t),e.paddingBottom||(e.paddingBottom=t)))},r.prototype._parseBorder=function(t){var r={left:{width:0},top:{width:0},bottom:{width:0},right:{width:0}};return"none"!==t.borderLeftStyle&&(r.left={width:e.pdf._asPt(t.borderLeftWidth),style:t.borderLeftStyle,color:t.borderLeftColor}),"none"!==t.borderTopStyle&&(r.top={width:e.pdf._asPt(t.borderTopWidth),style:t.borderTopStyle,color:t.borderTopColor}),"none"!==t.borderBottomStyle&&(r.bottom={width:e.pdf._asPt(t.borderBottomWidth),style:t.borderBottomStyle,color:t.borderBottomColor}),"none"!==t.borderRightStyle&&(r.right={width:e.pdf._asPt(t.borderRightWidth),style:t.borderRightStyle,color:t.borderRightColor}),r},r.prototype._parsePadding=function(t){return{left:e.pdf._asPt(t.paddingLeft),top:e.pdf._asPt(t.paddingTop),bottom:e.pdf._asPt(t.paddingBottom),right:e.pdf._asPt(t.paddingRight)}},r.prototype._renderEmptyCell=function(t,r,o,n){var i=t.rect.left,l=t.rect.top,s=t.clientRect.width,a=t.clientRect.height,u=t.clientRect.left-t.rect.left,c=t.clientRect.top-t.rect.top,d=t.rect.top+t.rect.height-(t.clientRect.top+t.clientRect.height),f=t.rect.left+t.rect.width-(t.clientRect.left+t.clientRect.width);if(o=o&&r.backgroundColor&&s>0&&a>0,n&&(u||f||d||c)){var h=r.borderLeftColor||r.borderColor,p=r.borderRightColor||r.borderColor,g=r.borderTopColor||r.borderColor,_=r.borderBottomColor||r.borderColor;if(u&&c&&d&&f&&u===f&&u===d&&u===c&&h===p&&h===_&&h===g){var w=u,m=w/2,b=this._area.paths.rect(i+m,l+m,s+w,a+w);if(o)return void b.fillAndStroke(r.backgroundColor,new e.pdf.PdfPen(h,w));b.stroke(new e.pdf.PdfPen(h,w))}else u&&this._area.paths.polygon([[i,l],[i+u,l+c],[i+u,l+c+a],[i,l+c+a+d]]).fill(h),c&&this._area.paths.polygon([[i,l],[i+u,l+c],[i+u+s,l+c],[i+u+s+f,l]]).fill(g),f&&this._area.paths.polygon([[i+u+s+f,l],[i+u+s,l+c],[i+u+s,l+c+a],[i+u+s+f,l+c+a+d]]).fill(p),d&&this._area.paths.polygon([[i,l+c+a+d],[i+u,l+c+a],[i+u+s,l+c+a],[i+u+s+f,l+c+a+d]]).fill(_)}o&&this._area.paths.rect(t.clientRect.left,t.clientRect.top,t.clientRect.width,t.clientRect.height).fillAndStroke(r.backgroundColor,this.InvisiblePen)},r.prototype._renderBooleanCell=function(t,r,o){if(!(!r.textRect||r.textRect.height<=0||r.textRect.width<=0)){var n=r.textRect.left,i=r.textRect.top,l=r.textRect.height;if(this._area.paths.rect(n,i,l,l).fillAndStroke(e.Color.fromRgba(255,255,255),new e.pdf.PdfPen(void 0,.5)),!0===e.changeType(t,e.DataType.Boolean,"")){var s=l/20,a=l-.5-2*s,u=l/8;this._area.document.saveState(),this._area.translate(n+.25+s,i+.25+s).paths.moveTo(u/2,.6*a).lineTo(a-.6*a,a-u).lineTo(a-u/2,u/2).stroke(new e.pdf.PdfPen(void 0,u)),this._area.document.restoreState()}}},r.prototype._renderTextCell=function(t,r,o){!t||!r.textRect||r.textRect.height<=0||r.textRect.width<=0||this._area.drawText(t,r.textRect.left,r.textRect.top,{brush:o.color,font:o.font,height:r.textRect.height,width:r.textRect.width,align:"center"===o.textAlign?e.pdf.PdfTextHorizontalAlign.Center:"right"===o.textAlign?e.pdf.PdfTextHorizontalAlign.Right:"justify"===o.textAlign?e.pdf.PdfTextHorizontalAlign.Justify:e.pdf.PdfTextHorizontalAlign.Left})},r.prototype._calculateTextRect=function(t,r,o,n,i,l){if(null!=t&&!e.isString(t))return null;var s=i.clone();if(this._isBooleanCellAndValue(t,r,o,n)){var a=this._getTextLineHeight(l.font);switch(l.verticalAlign){case"middle":s.top=i.top+i.height/2-a/2;break;case"bottom":s.top=i.top+i.height-a}switch(l.textAlign){case"justify":case"center":s.left=i.left+i.width/2-a/2;break;case"right":s.left=i.left+i.width-a}s.height=s.width=a}else if(s.height>0&&s.width>0)switch(l.verticalAlign){case"bottom":if((c=this._area.measureText(t,l.font,{height:s.height,width:s.width})).size.height<s.height){var u=(d=this._area.document._document).currentLineHeight(!0)-d.currentLineHeight(!1);s.top+=s.height-c.size.height-u,s.height=c.size.height}break;case"middle":var c,d;if((c=this._area.measureText(t,l.font,{height:s.height,width:s.width})).size.height<s.height)u=(d=this._area.document._document).currentLineHeight(!0)-d.currentLineHeight(!1),s.top+=s.height/2-(c.size.height-u)/2,s.height=c.size.height}return s},r.prototype._getTextLineHeight=function(e){return this._area.lineHeight(e)},r}();t._CellRenderer=l;var s=function(){function e(e){this._columns={},this._flex=e}return e.prototype.getMergedRange=function(e,t,r){var o=this._columns[r];if(o&&t>=o.topRow&&t<=o.bottomRow)return o;var n=this._flex.getMergedRange(e,t,r),i=e.columns,l=e.rows;if(n&&!n.isSingleCell&&(!i[n.col].isVisible||!i[n.col2].isVisible||!l[n.row].isVisible||!l[n.row2].isVisible)){for(n=n.clone();n.col<n.col2&&!i[n.col].isVisible;)n.col++;for(;n.col2>n.col&&!i[n.col2].isVisible;)n.col2--;for(;n.row<n.row2&&!l[n.row].isVisible;)n.row++;for(;n.row2>n.row&&!l[n.row2].isVisible;)n.row2--}return n&&n.isSingleCell&&(n=null),this._columns[r]=n?new u(e,n):null},e}(),a=function(){function t(e,t,r,o){"number"==typeof e?(this._row=e,this._col=t,this._row2=r,this._col2=o):(this._row=e.row,this._col=e.col,this._row2=e.row2,this._col2=e.col2),(this._row<0||this._row2<0)&&(this._row=this._row2=-1),(this._col<0||this._col2<0)&&(this._col=this._col2=-1)}return Object.defineProperty(t.prototype,"row",{get:function(){return this._row},set:function(e){this._row=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"col",{get:function(){return this._col},set:function(e){this._col=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"row2",{get:function(){return this._row2},set:function(e){this._row2=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"col2",{get:function(){return this._col2},set:function(e){this._col2=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"topRow",{get:function(){return Math.min(this._row,this._row2)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bottomRow",{get:function(){return Math.max(this._row,this._row2)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"leftCol",{get:function(){return Math.min(this._col,this._col2)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rightCol",{get:function(){return Math.max(this._col,this._col2)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"columnSpan",{get:function(){return Math.abs(this._col2-this._col)+1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rowSpan",{get:function(){return Math.abs(this._row2-this._row)+1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isValid",{get:function(){return this._row>-1&&this._col>-1&&this._row2>-1&&this._col2>-1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isSingleCell",{get:function(){return this._row===this._row2&&this._col===this._col2},enumerable:!0,configurable:!0}),t.prototype.copyFrom=function(e){this.setRange(e.row,e.col,e.row2,e.col2)},t.prototype.clone=function(){return new t(this._row,this._col,this._row2,this._col2)},t.prototype.getRenderSize=function(t,r){var o=new e.Size(0,0);if(this.isValid){for(var n=this.topRow;n<=this.bottomRow;n++){var i=r.rows[n];t.isRenderableRow(i)&&(o.height+=i.renderHeight)}for(var l=this.leftCol;l<=this.rightCol;l++){var s=r.columns[l];t.isRenderableColumn(s)&&(o.width+=s.renderWidth)}}return o},t.prototype.setRange=function(t,r,o,n){void 0===t&&(t=-1),void 0===r&&(r=-1),void 0===o&&(o=t),void 0===n&&(n=r),this._row=e.asInt(t),this._col=e.asInt(r),this._row2=e.asInt(o),this._col2=e.asInt(n)},t}();t._CellRange=a;var u=function(e){function t(t,r,o,n,i){var l=e.call(this,r,o,n,i)||this;if(l.firstVisibleRow=-1,l.visibleRowsCount=0,t){var s=l.topRow,a=l.bottomRow,u=t.rows.length;if(u>0)for(var c=s;c<=a&&c<u;c++)t.rows[c].isVisible&&(l.firstVisibleRow<0&&(l.firstVisibleRow=c),l.visibleRowsCount++)}return l}return __extends(t,e),t.prototype.copyFrom=function(t){e.prototype.copyFrom.call(this,t),this.firstVisibleRow=t.firstVisibleRow,this.visibleRowsCount=t.visibleRowsCount},t.prototype.clone=function(){return new t(null,this.row,this.col,this.row2,this.col2)},t}(a);t._CellRangeExt=u;var c=function(){function t(e){this._ranges=e||[]}return t.prototype.length=function(){for(var e=0,t=0;t<this._ranges.length;t++){var r=this._ranges[t];r.isValid&&(e+=r.bottomRow-r.topRow+1)}return e},Object.defineProperty(t.prototype,"isValid",{get:function(){return this._ranges.length&&this._ranges[0].isValid},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"leftCol",{get:function(){return this._ranges.length?this._ranges[0].leftCol:-1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rightCol",{get:function(){return this._ranges.length?this._ranges[0].rightCol:-1},enumerable:!0,configurable:!0}),t.prototype.clone=function(e,r){for(var o=[],n=0;n<this._ranges.length;n++){var i=this._ranges[n].clone();arguments.length>0&&(i.col=e),arguments.length>1&&(i.col2=r),o.push(i)}return new t(o)},t.prototype.getRenderSize=function(t,r){for(var o=new e.Size(0,0),n=0;n<this._ranges.length;n++){var i=this._ranges[n].getRenderSize(t,r);o.width=Math.max(o.width,i.width),o.height+=i.height}return o},t.prototype.find=function(e,t){var r=null;return this.forEach(e,function(e){if(!0===t(e))return r=e,!1}),r},t.prototype.forEach=function(e,t){for(var r=0,o=!1,n=0;n<this._ranges.length&&!o;n++){var i=this._ranges[n];if(i.isValid)for(var l=i.topRow;l<=i.bottomRow&&!o;l++)o=!1===t(e.rows[l],i,l,r++)}},t.prototype.subrange=function(e,r,o,n){var i=[];if(e>=0&&r>0)for(var l=0,s=0,u=0;u<this._ranges.length&&r>0;u++,l=s+1){var c=this._ranges[u];if(!(e>(s=l+(c.bottomRow-c.topRow)))){var d=e>l?c.topRow+(e-l):c.topRow,f=Math.min(c.bottomRow,d+r-1),h=arguments.length>2?o:c.leftCol,p=arguments.length>2?n:c.rightCol;i.push(new a(d,h,f,p)),r-=f-d+1}}return new t(i)},t}(),d=function(){function e(e,t,r){this._col=t,this._row=r,this._range=e}return Object.defineProperty(e.prototype,"range",{get:function(){return this._range},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pageCol",{get:function(){return this._col},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pageRow",{get:function(){return this._row},enumerable:!0,configurable:!0}),e}()})((t=e.grid||(e.grid={})).pdf||(t.pdf={}))}(wijmo||(wijmo={})),function(e){var t;(function(t){"use strict";var r,o="wj-pdf-fake-cell";function n(){r&&(e.removeChild(r),r=null)}t._removeFakeCell=n;var i=function(){function r(){}return r.draw=function(e,t,r,o,n){this.drawToPosition(e,t,null,r,o,n)},r.drawToPosition=function(r,o,i,l,s,a){e.assert(!!r,"The flex argument cannot be null."),e.assert(!!o,"The doc argument cannot be null.");var u,c=t.softGrid()&&r instanceof t.softGrid().FlexGrid,d=r;try{a=t._FlexGridPdfCoreConverter._applyDefaultDrawSettings(a);var f=r;c&&(a&&a.recalculateStarWidths&&(u=d.columns.getTotalSize(),d.columns._updateStarSizes(e.pdf.ptToPx(o.width))),f=this._getFlexGridAdapter(d,a)),t._FlexGridPdfCoreConverter.draw(f,o,i,l,s,a)}finally{n(),c&&a&&a.recalculateStarWidths&&d.columns._updateStarSizes(u)}},r.export=function(t,r,o){e.assert(!!t,"The flex argument cannot be null."),e.assert(!!r,"The fileName argument cannot be empty.");var n=(o=this._applyDefaultExportSettings(o)).documentOptions.ended;o.documentOptions.ended=function(t,l){o.progress&&o.progress(1),n&&!1===n.apply(i,[t,l])||e.pdf.saveBlob(l.blob,r),t.dispose()};var i=new e.pdf.PdfDocument(o.documentOptions);this.drawToPosition(t,i,null,null,null,o),i.end()},r._getFlexGridAdapter=function(e,r){return new(t.softMultiRow()&&e instanceof t.softMultiRow().MultiRow&&a||t.softSheet()&&e instanceof t.softSheet().FlexSheet&&s||t.softOlap()&&e instanceof t.softOlap().PivotGrid&&u||t.softTransposed()&&e instanceof t.softTransposed().TransposedGrid&&c||t.softTransposedMultiRow()&&e instanceof t.softTransposedMultiRow().TransposedMultiRow&&d||l)(e,r)},r._applyDefaultExportSettings=function(e){return t._merge(t._merge({},e),this._DefaultExportSettings)},r._DefaultExportSettings=t._merge({scaleMode:t.ScaleMode.PageWidth,documentOptions:{compress:!1,pageSettings:{margins:{left:36,right:36,top:18,bottom:18}}},_progressMax:.9},t._FlexGridPdfCoreConverter.DefaultDrawSettings),r}();t.FlexGridPdfConverter=i;var l=function(){function n(e,t){this._defBorderColor=null,this._flex=e,this._settings=t,t.quickCellStyles&&(this._styleCache=new f(500))}return Object.defineProperty(n.prototype,"flex",{get:function(){return this._flex},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"settings",{get:function(){return this._settings},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"columns",{get:function(){return this._flex.columns},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"rows",{get:function(){return this._flex.rows},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"bottomLeftCells",{get:function(){return this._flex.bottomLeftCells},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"cells",{get:function(){return this._flex.cells},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"columnFooters",{get:function(){return this._flex.columnFooters},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"columnHeaders",{get:function(){return this._flex.columnHeaders},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"rowHeaders",{get:function(){return this._flex.rowHeaders},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"topLeftCells",{get:function(){return this._flex.topLeftCells},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"treeIndent",{get:function(){return this._flex.treeIndent},enumerable:!0,configurable:!0}),n.prototype.getSelection=function(){var e=[],r=this._flex.selection,o=t.softGrid();switch(this._flex.selectionMode){case o.SelectionMode.None:break;case o.SelectionMode.Cell:case o.SelectionMode.CellRange:e.push(new t._CellRange(r.row,r.col,r.row2,r.col2));break;case o.SelectionMode.Row:e.push(new t._CellRange(r.topRow,0,r.topRow,this._flex.cells.columns.length-1));break;case o.SelectionMode.RowRange:e.push(new t._CellRange(r.topRow,0,r.bottomRow,this._flex.cells.columns.length-1));break;case o.SelectionMode.ListBox:for(var n=-1,i=0;i<this._flex.rows.length;i++)this._flex.rows[i].isSelected?(n<0&&(n=i),i===this._flex.rows.length-1&&e.push(new t._CellRange(n,0,i,this._flex.cells.columns.length-1))):(n>=0&&e.push(new t._CellRange(n,0,i-1,this._flex.cells.columns.length-1)),n=-1)}return e},n.prototype.getCell=function(e,n,i,l){var s=e.getCellElement(n,i);return s||(s=function(e){r||((r=document.createElement("div")).setAttribute(o,"true"),t.softGrid()&&r.setAttribute(t.softGrid().FlexGrid._WJS_MEASURE,"true"));var n=r.style;n.cssText="",n.position="absolute",n.overflow="hidden",n.width="1px",n.height="1px",n.clipPath="inset(100%)",n.clip="rect(0 0 0 0)";var i=e.hostElement,l=i.children.length?i.children[0]:i;return r.parentNode!==l&&l.appendChild(r),r}(e),this._flex.cellFactory.updateCell(e,n,i,s,null,l)),s},n.prototype.getComputedDefBorderColor=function(){if(null==this._defBorderColor){var e=window.getComputedStyle(this._flex.hostElement);this._defBorderColor="none"!=e.borderRightStyle?e.borderRightColor:"none"!=e.borderBottomStyle?e.borderBottomColor:"none"!=e.borderLeftStyle?e.borderLeftColor:"none"!=e.borderTopStyle?e.borderTopColor:"rgba(0,0,0,0.2)"}return this._defBorderColor},n.prototype.getComputedStyle=function(e,r){var n,i=null==r.getAttribute(o),l=r.className,s=l.indexOf("wj-state-selected")>=0||l.indexOf("wj-state-multi-selected")>=0;if(s&&(r.className=l.replace("wj-state-selected","").replace("wj-state-multi-selected","")),this._styleCache){var a=e.hostElement,u=r.style.cssText.split(/;\s+/).filter(function(e){var t=e.substring(0,e.indexOf(":"));return/^(color|background-color|border-color|border-left-color|border-right-color|border-top-color|border-bottom-color|font|textAlign)/i.test(t)}).join(";"),c=r;do{u=c.className+u}while(c!==a&&(c=c.parentElement));(n=this._styleCache.getValue(u))||(n=window.getComputedStyle(r),n=this._styleCache.add(u,n))}else n=t._cloneStyle(window.getComputedStyle(r));return i&&s&&(r.className=l),n},n.prototype.getMergedRange=function(e,r,o){var n=this._flex.getMergedRange(e,r,o,!1);return n?new t._CellRange(n.row,n.col,n.row2,n.col2):null},Object.defineProperty(n.prototype,"showColumnHeader",{get:function(){return!!(this._flex.headersVisibility&t.softGrid().HeadersVisibility.Column)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"showRowHeader",{get:function(){return!!(this._flex.headersVisibility&t.softGrid().HeadersVisibility.Row)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"showColumnFooter",{get:function(){return this._flex.columnFooters.rows.length>0},enumerable:!0,configurable:!0}),n.prototype.alignMergedTextToTheTopRow=function(e){return!1},n.prototype.getCellData=function(e,t,r){return e.getCellData(t,r,!0)},n.prototype.getCellContent=function(r,o,n,i){var l,s=t.softGrid();if(this.settings.customCellContent){var a=this.getCell(r,o.index,i,!0);!(l=(l=a.innerText.trim()).replace(/\r/gm,"").replace(/\n+/gm,"\n"))&&this.isBooleanCell(r,o,n)&&(l=null==(l=this._extractCheckboxValue(a))?"":l+"")}else{var u=n.isContentHtml;l=this.getCellData(r,o.index,i),this.isGroupRow(o)&&r.cellType===s.CellType.Cell&&n.index===r.columns.firstVisibleIndex&&(u=!0,l||(l=o.getGroupHeader())),u&&(l=e.toPlainText(l).trim())}return l},n.prototype.isBooleanCell=function(r,o,n){return n.dataType===e.DataType.Boolean&&r.cellType===t.softGrid().CellType.Cell&&(!this.isExpandableGroupRow(o)||n.visibleIndex>0)},n.prototype.getColumn=function(e,t,r){return e.columns[r]},n.prototype.isAlternatingRow=function(e){var t=!1,r=this._flex.alternatingRowStep;return r&&(t=e.visibleIndex%(r+1)==0,1==r&&(t=!t)),t},n.prototype.isGroupRow=function(e){return e instanceof t.softGrid().GroupRow},n.prototype.isNewRow=function(e){return e instanceof t.softGrid()._NewRowTemplate},n.prototype.isDetailRow=function(e){return t.softDetail()&&e instanceof t.softDetail().DetailRow},n.prototype.isExpandableGroupRow=function(e){return e instanceof t.softGrid().GroupRow&&e.hasChildren},n.prototype.isRenderableRow=function(e){return e.isVisible&&e.renderHeight>0&&!this.isNewRow(e)},n.prototype.isRenderableColumn=function(e){return e.isVisible&&e.renderWidth>0},n.prototype.getCellStyle=function(e,r,o){var n=this.settings.styles,i=t._merge({},n.cellStyle),l=this._flex,s=t.softGrid();switch(e.cellType){case s.CellType.Cell:this.isExpandableGroupRow(r)?t._merge(i,n.groupCellStyle,!0):this.isAlternatingRow(r)&&t._merge(i,n.altCellStyle,!0);break;case s.CellType.ColumnHeader:case s.CellType.RowHeader:case s.CellType.TopLeft:case s.CellType.BottomLeft:t._merge(i,n.headerCellStyle,!0);break;case s.CellType.ColumnFooter:t._merge(i,n.headerCellStyle,!0),t._merge(i,n.footerCellStyle,!0)}return!this.settings.customCellContent&&l._getShowErrors()&&l._getError(e,r.index,o.index)&&t._merge(i,n.errorCellStyle,!0),i},n.prototype._extractCheckboxValue=function(e){var t=e.querySelector("input[type=checkbox]");if(t&&"none"!==t.style.display&&"hidden"!==t.style.visibility)return t.checked},n}(),s=function(r){function o(){return null!==r&&r.apply(this,arguments)||this}return __extends(o,r),o.prototype.getCellData=function(e,o,n){return e.cellType===t.softGrid().CellType.Cell?e.rows[o]instanceof t.softSheet().HeaderRow?this.flex.columnHeaders.getCellData(o,n,!0):this.flex.getCellValue(o,n,!0):r.prototype.getCellData.call(this,e,o,n)},o.prototype.getCellStyle=function(o,n,i){var l=r.prototype.getCellStyle.call(this,o,n,i),s=this.flex.selectedSheet.findTable(n.index,i.index);if(s){var a=s.getRange(),u=n.index-a.topRow,c=i.index-a.leftCol,d=s._getTableCellAppliedStyles(u,c);d&&(d.font=new e.pdf.PdfFont(d.fontFamily,e.pdf._asPt(d.fontSize,!0,void 0),d.fontStyle,d.fontWeight)),t._merge(l,d,!0)}return l},Object.defineProperty(o.prototype,"showColumnHeader",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"showRowHeader",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"showColumnFooter",{get:function(){return!1},enumerable:!0,configurable:!0}),o}(l),a=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return __extends(r,e),r.prototype.getColumn=function(r,o,n){var i=e.prototype.getColumn.call(this,r,o,n),l=this.flex.getBindingColumn(r,o,n);return t._combineColumns(i,l)},r.prototype.isAlternatingRow=function(r){if(r instanceof t.softMultiRow()._MultiRow){var o=!1,n=this.flex.alternatingRowStep;return n&&(o=r.dataIndex%(n+1)==0,1==n&&(o=!o)),o}return e.prototype.isAlternatingRow.call(this,r)},r}(l),u=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return __extends(r,e),r.prototype.alignMergedTextToTheTopRow=function(e){var r=t.softGrid();return!this.flex.centerHeadersVertically&&(e.cellType===r.CellType.ColumnHeader||e.cellType===r.CellType.RowHeader)},r}(l),c=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return __extends(r,e),r.prototype.getColumn=function(r,o,n){var i=e.prototype.getColumn.call(this,r,o,n);if(r.cellType!=t.softGrid().CellType.Cell)return i;var l=r.grid._getBindingColumn(r,o,i);return l?t._combineColumns(i,l):i},r}(l),d=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return __extends(r,e),r.prototype.getColumn=function(r,o,n){var i=e.prototype.getColumn.call(this,r,o,n);if(r.cellType!=t.softGrid().CellType.Cell)return i;var l=this.flex.getBindingColumn(r,o,n);return l?t._combineColumns(i,l):i},r}(l),f=function(){function e(e){this._cache={},this._size=0,this._max=e}return e.prototype.add=function(e,r){this._size>=this._max&&this.clear();var o=this._cache[e]=t._cloneStyle(r);return this._size++,o},e.prototype.clear=function(){this._cache={},this._size=0},e.prototype.getValue=function(e){return this._cache[e]||null},e.prototype.hasKey=function(e){return!!this._cache[e]},e}()})((t=e.grid||(e.grid={})).pdf||(t.pdf={}))}(wijmo||(wijmo={})),function(e){var t;(function(t){"use strict";var r;!function(e){e[e.Done=1]="Done",e[e.Progress=2]="Progress"}(r||(r={}));var o=function(e){function t(t){var r=e.call(this)||this;return r._buf=t,r}return __extends(t,e),Object.defineProperty(t.prototype,"blob",{get:function(){return this._blob||(this._blob=new Blob([new Uint8Array(this._buf)],{type:"application/pdf"})),this._blob},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"buffer",{get:function(){return this._buf},enumerable:!0,configurable:!0}),t}(e.EventArgs);t.PdfWebWorkerExportDoneEventArgs=o;var n=function(){function n(){}return n.exportGrid=function(r,o,n,i,l,s){(i=t.FlexGridPdfConverter._applyDefaultExportSettings(i)).progress=i.progress||s,this.addGrid(r,o,"",i),this.export(r,i.documentOptions,function(t){e.isFunction(l)&&!1===l(t)||e.pdf.saveBlob(t.blob,n)},s)},n.export=function(t,n,i,l){t.addEventListener("message",function n(s){var a=s.data;switch(a.status){case r.Done:t.removeEventListener("message",n),e.isFunction(i)&&i(new o(a.data));break;case r.Progress:l&&l(a.data);break;default:throw"Unknown status: "+a.status}});var s=this._clientDataToArrayBuffer(t);t.postMessage({content:s,settings:n},[s]),this._clearClientData(t)},n.addGrid=function(e,t,r,o){var n=this._gridToJson(t,o);this._addClientData(e,JSON.stringify(n),r,o,!0)},n.addImage=function(t,r,o,n){var i=e.isString(r)&&r.indexOf("data:image/svg")>=0?r:e.pdf._PdfImageHelper.getDataUri(r);this._addClientData(t,i,o,n)},n.addString=function(e,t,r){this._addClientData(e,t,r,null)},n.serializeGrid=function(e,t){var r=this._gridToJson(e,t);return u(JSON.stringify(r))},n._addClientData=function(t,r,o,n,i){void 0===i&&(i=!1),e.asType(t,Worker),e.asString(o),e.asString(r,!0);var l=t;l.clientData=l.clientData||{},l.clientData[o]={content:r,settings:n?JSON.stringify(n):null};var s=l.clientData[o];i&&(s.isGrid=!0,s.progressMessaging=!!n&&e.isFunction(n.progress))},n._clearClientData=function(e){delete e.clientData},n._clientDataToArrayBuffer=function(e){var t=e;return u(JSON.stringify(t.clientData||{}))},n._gridToJson=function(r,o){var n,i;o=t.FlexGridPdfConverter._applyDefaultExportSettings(o);try{return n=new e.pdf.PdfDocument(o.documentOptions),o&&o.recalculateStarWidths&&(i=r.columns.getTotalSize(),r.columns._updateStarSizes(e.pdf.ptToPx(n.width))),this._getJsonConverter(r,o).convert()}finally{t._removeFakeCell(),o&&o.recalculateStarWidths&&r.columns._updateStarSizes(i),null!=n&&(n.dispose(),n=null)}},n._getJsonConverter=function(e,r){return new(t.softMultiRow()&&e instanceof t.softMultiRow().MultiRow&&d||t.softOlap()&&e instanceof t.softOlap().PivotGrid&&f||t.softTransposed()&&e instanceof t.softTransposed().TransposedGrid&&h||t.softTransposedMultiRow()&&e instanceof t.softTransposedMultiRow().TransposedMultiRow&&p||c)(e,r,t.FlexGridPdfConverter._getFlexGridAdapter(e,r))},n}();t.PdfWebWorkerClient=n;var i,l,s=function(){function o(){}return o.initExportGrid=function(){var e=this;this.initExport(function(r,o){var n=o[""];n.progressMessaging&&(n.settings._progressMax=t.FlexGridPdfConverter._DefaultExportSettings._progressMax,n.settings.progress=function(t){e.sendExportProgress(t)},r.ended.addHandler(function(){e.sendExportProgress(1)})),t.FlexGridPdfConverter.draw(n.content,r,null,null,n.settings),r.end()})},o.initExport=function(t){self.addEventListener("message",function n(i){self.removeEventListener("message",n);var l=i.data,s=JSON.parse(a(l.content)),u=l.settings||{};u.ended=function(t,o){!function(t,r){e.asFunction(r);var o=new FileReader;o.onload=function(e){r(e.target.result)},o.readAsArrayBuffer(t)}(o.blob,function(e){self.postMessage({data:e,status:r.Done},[e])})};var c=new e.pdf.PdfDocument(u);Object.keys(s).forEach(function(e){var t=s[e];t.settings&&(t.settings=JSON.parse(t.settings)),t.isGrid&&(t.settings&&o._disableUnsupportedFeatures(t.settings),t.content=o._deserializeGridFromString(t.content,t.settings))}),t(c,s)})},o.sendExportProgress=function(t){t=e.clamp(t,0,1),self.postMessage({data:t,status:r.Progress})},o.deserializeGrid=function(e,t){return this._deserializeGridFromString(a(e),t)},o._deserializeGridFromString=function(e,r){return this._getJsonAdapter(JSON.parse(e),t.FlexGridPdfConverter._applyDefaultExportSettings(r))},o._disableUnsupportedFeatures=function(e){e.customCellContent=!1},o._getJsonAdapter=function(e,t){switch(e.typeName){case"MultiRow":return new R(e,t);case"PivotGrid":return new C(e,t);case"TransposedGrid":return new x(e,t);case"TransposedMultiRow":return new T(e,t);default:return new y(e,t)}},o}();function a(e){for(var t=new Uint16Array(e),r="",o=0,n=t.length;o<n;o++)r+=String.fromCharCode(t[o]);return r}function u(e){for(var t=new ArrayBuffer(2*e.length),r=new Uint16Array(t),o=0,n=e.length;o<n;o++)r[o]=e.charCodeAt(o);return t}t.PdfWebWorker=s,function(e){e[e.None=0]="None",e[e.Alternate=1]="Alternate",e[e.Group=2]="Group",e[e.ExpandableGroup=4]="ExpandableGroup",e[e.New=8]="New",e[e.Visible=16]="Visible",e[e.Detail=32]="Detail"}(i||(i={})),function(e){e[e.None=0]="None",e[e.Visible=1]="Visible"}(l||(l={}));var c=function(){function r(e,t,r){this._flex=e,this._settings=t,this._adapter=r}return r.prototype.convert=function(){var e={};return e.typeName=this._getTypeName(this._flex),e.selection=this._serializeSelection(),e.showColumnFooter=this.adapter.showColumnFooter,e.showColumnHeader=this.adapter.showColumnHeader,e.showRowHeader=this.adapter.showRowHeader,e.treeIndent=this._flex.treeIndent,e.bottomLeftCells=this._serializePanel(this._flex.bottomLeftCells),e.cells=this._serializePanel(this._flex.cells),e.columnFooters=this._serializePanel(this._flex.columnFooters),e.columnHeaders=this._serializePanel(this._flex.columnHeaders),e.rowHeaders=this._serializePanel(this._flex.rowHeaders),e.topLeftCells=this._serializePanel(this._flex.topLeftCells),e},Object.defineProperty(r.prototype,"adapter",{get:function(){return this._adapter},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"flex",{get:function(){return this._flex},enumerable:!0,configurable:!0}),r.prototype._getTypeName=function(e){return e.constructor.toString().match(/function\s*(\w+)/)[1]},r.prototype._getRowState=function(e){var r=i.None;return this.adapter.isAlternatingRow(e)&&(r|=i.Alternate),e instanceof t.softGrid().GroupRow&&(r|=i.Group),this.adapter.isDetailRow(e)&&(r|=i.Detail),this.adapter.isExpandableGroupRow(e)&&(r|=i.ExpandableGroup),e instanceof t.softGrid()._NewRowTemplate&&(r|=i.New),e.isVisible&&(r|=i.Visible),r},r.prototype._getColumnState=function(e){var t=l.None;return e.isVisible&&(t|=l.Visible),t},r.prototype._serializeSelection=function(){for(var e=this.adapter.getSelection(),t=[],r=0;r<e.length;r++){var o=e[r];t.push([o.row,o.col,o.row2,o.col2])}return t},r.prototype._serializeColumns=function(e){for(var t=[],r=0,o=(e||[]).length;r<o;r++){var n=e[r],i=null;if(n){i={aggregate:n.aggregate,renderWidth:n.renderWidth,visibleIndex:n.visibleIndex};var s=n.getAlignment();s&&(i.alignment=s);var a=this._getColumnState(n);a!==l.None&&(i.state=a),n.binding&&(i.binding=n.binding),null!=n.dataType&&(i.dataType=n.dataType),null!=n.name&&(i.name=n.name),n.wordWrap&&(i.wordWrap=!0),n.multiLine&&(i.multiLine=!0)}t.push(i)}return t},r.prototype._serializePanel=function(r){var o=this,n={cellType:r.cellType,height:r.height,width:r.width};n.mergedRanges=this._serializeMergedRanges(r),n.columns=this._serializeColumns(r.columns),n.columnsFirstVisibleIndex=r.columns.firstVisibleIndex,n.rows=[],n.rowsMaxGroupLevel=r.rows.maxGroupLevel;for(var l=!this._settings.customCellContent&&this._flex._getShowErrors(),s=function(s,u,c){var d=r.rows[s],f={renderHeight:d.renderHeight};n.rows.push(f);var h=function(t){if(t.align)return t.align;if(!t.dataMap)switch(t.dataType){case e.DataType.Boolean:return"center";case e.DataType.Number:return"right"}return null}(d);h&&(f.alignment=h),d instanceof t.softGrid().GroupRow&&(f.level=d.level);var p=a._getRowState(d);p!==i.None&&(f.state=p),d.binding&&(f.binding=d.binding),null!=d.dataType&&(f.dataType=d.dataType),d.wordWrap&&(f.wordWrap=!0),d.multiLine&&(f.multiLine=!0),f.cells=[];for(var g=t.softGrid(),_=function(n){var i=a._adapter.getCellContent(r,r.rows[s],r.columns[n],n);if(e.isFunction(a._settings.formatItem)){var u=new t.PdfFormatItemEventArgs(r,new g.CellRange(s,n),null,null,null,null,null,function(){return o._adapter.getCell(r,s,n,!0)},null);u.data=i,a._settings.formatItem(u),u.data!==i&&(i=u.data)}f.cells[n]=i,l&&a._flex._getError(r,s,n)&&(f.errors||(f.errors={}),f.errors[n]=1)},w=0;w<c;w++)_(w)},a=this,u=0,c=r.rows.length,d=r.columns.length;u<c;u++)s(u,0,d);return n},r.prototype._serializeMergedRanges=function(e){for(var t=[],r=[],o=0;o<e.columns.length;o++)r[o]=0;for(var n=0;n<e.rows.length;n++)for(var i=0;i<e.columns.length;i++)if(!(n<r[i])){var l=e.grid.getMergedRange(e,n,i);if(null!=l&&!l.isSingleCell){t.push([l.row,l.col,l.row2,l.col2]);for(var s=l.col;s<=l.col2;s++)r[s]=l.row2+1;l.col===l.col2||(i=l.col2)}}return t},r}(),d=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return __extends(r,e),r.prototype.convert=function(){var t=e.prototype.convert.call(this);return t.rowsPerItem=this.flex.rowsPerItem,t},r.prototype._serializePanel=function(t){var r=e.prototype._serializePanel.call(this,t);return r.cellGroups=this._serializeCellGroup(t),r},r.prototype._serializeCellGroup=function(e){var r=[],o=[],n=t.softGrid(),i=this.flex.rowsPerItem;e.cellType!==n.CellType.TopLeft&&e.cellType!==n.CellType.ColumnHeader||(i=e.rows.length);for(var l=0;l<i;l++){o[l]=[];for(var s=0;s<e.columns.length;s++){var a=this.flex.getBindingColumn(e,l,s),u=r.indexOf(a);o[l][s]=u<0?r.push(a)-1:u}}return{bindingColumns:this._serializeColumns(r),mappings:o}},r}(c),f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.convert=function(){var t=e.prototype.convert.call(this);return t.centerHeadersVertically=this.flex.centerHeadersVertically,t},t}(c),h=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return __extends(r,e),r.prototype.convert=function(){for(var r=e.prototype.convert.call(this),o=new Array(this.flex.cells.rows.length),n=this.flex.cells,i=t.softGrid(),l=0,s=n.rows.length;l<s;l++){var a=n.rows[l].dataItem,u=a&&a._rowInfo;u instanceof i.Column||(u=t._combineColumns(u,u)),o[l]=u}return r.rowInfo=this._serializeColumns(o),r},r}(c),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.convert=function(){var t=e.prototype.convert.call(this);return t.cellGroups=this._serializeCellGroup(),t.columnsPerItem=this.flex.columnsPerItem,t},t.prototype._serializeCellGroup=function(){for(var e=[],t=[],r=this.flex.columnsPerItem,o=this.flex.cells,n=0;n<o.rows.length;n++){t[n]=[];for(var i=0;i<r;i++){var l=this.flex.getBindingColumn(o,n,i),s=e.indexOf(l);t[n][i]=s<0?e.push(l)-1:s}}return{bindingColumns:this._serializeColumns(e),mappings:t}},t}(c),g=function(){function e(e,t){this.index=t,this.binding=e.binding,this.dataType=e.dataType,this.alignment=e.alignment,this.level=e.level,this.renderHeight=e.renderHeight,this.cells=e.cells,this.wordWrap=e.wordWrap||!1,this.multiLine=e.multiLine||!1,this.errors=e.errors,this._state=e.state}return Object.defineProperty(e.prototype,"isAlternatingRow",{get:function(){return(this._state&i.Alternate)!==i.None},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isGroupRow",{get:function(){return(this._state&i.Group)!==i.None},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isDetailRow",{get:function(){return(this._state&i.Detail)!==i.None},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isExpandableGroupRow",{get:function(){return(this._state&i.ExpandableGroup)!==i.None},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isNewRow",{get:function(){return(this._state&i.New)!==i.None},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isVisible",{get:function(){return(this._state&i.Visible)!==i.None},enumerable:!0,configurable:!0}),e}(),_=function(){function e(e,t){this.index=t,this.binding=e.binding,this.dataType=e.dataType,this.aggregate=e.aggregate,this.name=e.name,this.renderWidth=e.renderWidth,this.visibleIndex=e.visibleIndex,this.wordWrap=e.wordWrap||!1,this.multiLine=e.multiLine||!1,this._alignment=e.alignment,this._state=e.state}return e.prototype.getAlignment=function(e){return this._alignment?this._alignment:e&&e.alignment?e.alignment:""},Object.defineProperty(e.prototype,"isVisible",{get:function(){return(this._state&l.Visible)!==l.None},enumerable:!0,configurable:!0}),e}(),w=function(e,t){void 0===t&&(t=-1),this.maxGroupLevel=t,this.length=e.length;for(var r=0;r<e.length;r++)this[r]=new g(e[r],r)},m=function(e,t){void 0===t&&(t=-1),this.firstVisibleIndex=t,this.length=e.length;for(var r=0;r<e.length;r++){var o=e[r];this[r]=o?new _(e[r],r):null}},b=function(){function e(e){this.height=e.height,this.width=e.width,this.cellType=e.cellType,this.columns=new m(e.columns,e.columnsFirstVisibleIndex),this.rows=new w(e.rows,e.rowsMaxGroupLevel),this._mergedRanges=this._deserializeMergedRanges(e.mergedRanges)}return e.prototype.getCellData=function(e,t){return this.rows[e].cells[t]},e.prototype.getMergedRange=function(e,t){var r=this._mergedRanges[e];if(r)for(var o=0,n=r.length;o<n;o++){var i=r[o];if(t>=i.col&&t<=i.col2)return i}return null},e.prototype._deserializeMergedRanges=function(e){var r=[];e=e||[];for(var o=0,n=this.rows.length;o<n;o++)r[o]=[];for(o=0,n=e.length;o<n;o++)for(var i=e[o],l=new t._CellRange(i[0],i[1],i[2],i[3]),s=l.row;s<=l.row2;s++)r[s].push(l);return r},e}(),y=function(){function r(e,r){this.settings=r,this.bottomLeftCells=this.deserializePanel(e.bottomLeftCells),this.cells=this.deserializePanel(e.cells),this.columnFooters=this.deserializePanel(e.columnFooters),this.columnHeaders=this.deserializePanel(e.columnHeaders),this.rowHeaders=this.deserializePanel(e.rowHeaders),this.topLeftCells=this.deserializePanel(e.topLeftCells),this.treeIndent=e.treeIndent,this.showColumnFooter=e.showColumnFooter,this.showColumnHeader=e.showColumnHeader,this.showRowHeader=e.showRowHeader,this._selection=[];for(var o=0;o<e.selection.length;o++){var n=e.selection[o];this._selection.push(new t._CellRange(n[0],n[1],n[2],n[3]))}}return Object.defineProperty(r.prototype,"columns",{get:function(){return this.cells.columns},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"rows",{get:function(){return this.cells.rows},enumerable:!0,configurable:!0}),r.prototype.getSelection=function(){return this._selection},r.prototype.getCell=function(e,t,r,o){throw"Not implemented"},r.prototype.getComputedDefBorderColor=function(){throw"Not implemented"},r.prototype.getComputedStyle=function(e,t){throw"Not implemented"},r.prototype.getMergedRange=function(e,t,r){return e.getMergedRange(t,r)},r.prototype.alignMergedTextToTheTopRow=function(e){return!1},r.prototype.getCellData=function(e,t,r){return e.getCellData(t,r)},r.prototype.getCellContent=function(e,t,r,o){return this.getCellData(e,t.index,o)},r.prototype.isBooleanCell=function(r,o,n){return n.dataType===e.DataType.Boolean&&r.cellType===t._CellType.Cell&&!this.isExpandableGroupRow(o)},r.prototype.getColumn=function(e,t,r){return e.columns[r]},r.prototype.isAlternatingRow=function(e){return e.isAlternatingRow},r.prototype.isGroupRow=function(e){return e.isGroupRow},r.prototype.isNewRow=function(e){return e.isNewRow},r.prototype.isDetailRow=function(e){return e.isDetailRow},r.prototype.isExpandableGroupRow=function(e){return e.isExpandableGroupRow},r.prototype.isRenderableRow=function(e){return e.isVisible&&e.renderHeight>0&&!this.isNewRow(e)},r.prototype.isRenderableColumn=function(e){return e.isVisible&&e.renderWidth>0},r.prototype.getCellStyle=function(e,r,o){var n=this.settings.styles,i=t._merge({},n.cellStyle);switch(e.cellType){case t._CellType.Cell:this.isExpandableGroupRow(r)?t._merge(i,n.groupCellStyle,!0):this.isAlternatingRow(r)&&t._merge(i,n.altCellStyle,!0);break;case t._CellType.ColumnHeader:case t._CellType.RowHeader:case t._CellType.TopLeft:case t._CellType.BottomLeft:t._merge(i,n.headerCellStyle,!0);break;case t._CellType.ColumnFooter:t._merge(i,n.headerCellStyle,!0),t._merge(i,n.footerCellStyle,!0)}return r.errors&&r.errors[o.index]&&t._merge(i,n.errorCellStyle,!0),i},r.prototype.deserializePanel=function(e){return new b(e)},r}(),C=function(e){function r(t,r){var o=e.call(this,t,r)||this;return o._centerHeadersVertically=t.centerHeadersVertically,o}return __extends(r,e),r.prototype.alignMergedTextToTheTopRow=function(e){return!this._centerHeadersVertically&&(e.cellType===t._CellType.ColumnHeader||e.cellType===t._CellType.RowHeader)},r}(y),v=function(e){function r(t){var r=e.call(this,t)||this;return t.cellGroups&&(r._cellGroups={bindingColumns:new m(t.cellGroups.bindingColumns),mappings:t.cellGroups.mappings}),r}return __extends(r,e),r.prototype.getColumn=function(e,r,o){var n=this.columns[r];if(this._cellGroups){this.cellType!==t._CellType.ColumnHeader&&this.cellType!==t._CellType.BottomLeft&&(e%=o);var i=this._cellGroups.bindingColumns[this._cellGroups.mappings[e][r]];return t._combineColumns(n,i)}return n},r}(b),R=function(e){function t(t,r){var o=e.call(this,t,r)||this;return o._rowsPerItem=t.rowsPerItem,o}return __extends(t,e),t.prototype.deserializePanel=function(e){return new v(e)},t.prototype.getColumn=function(e,t,r){return e.getColumn(t,r,this._rowsPerItem)},t}(y),x=function(e){function r(t,r){var o=e.call(this,t,r)||this;return o._rowInfo=new m(t.rowInfo),o}return __extends(r,e),r.prototype.getColumn=function(r,o,n){var i=e.prototype.getColumn.call(this,r,o,n);if(r.cellType!==t._CellType.Cell)return i;var l=this._rowInfo[o];return l?t._combineColumns(i,l):i},r}(y),T=function(e){function r(t,r){var o=e.call(this,t,r)||this;return o._columnsPerItem=t.columnsPerItem,t.cellGroups&&(o._cellGroups={bindingColumns:new m(t.cellGroups.bindingColumns),mappings:t.cellGroups.mappings}),o}return __extends(r,e),r.prototype.getColumn=function(r,o,n){var i=e.prototype.getColumn.call(this,r,o,n);if(this._cellGroups&&r.cellType===t._CellType.Cell){n%=this._columnsPerItem;var l=this._cellGroups.bindingColumns[this._cellGroups.mappings[o][n]];return t._combineColumns(i,l)}return i},r}(y)})((t=e.grid||(e.grid={})).pdf||(t.pdf={}))}(wijmo||(wijmo={})),function(e){!function(t){t.pdf||(t.pdf={}),e._registerModule("wijmo.grid.pdf",e.grid.pdf)}(e.grid||(e.grid={}))}(wijmo||(wijmo={}));
var wijmo;(function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.PdfDocument||(n.PdfDocument={}))})(t=n.pdf||(n.pdf={}))})(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.PdfPageArea||(n.PdfPageArea={}))})(t=n.pdf||(n.pdf={}))}(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.PdfDocumentEndedEventArgs||(n.PdfDocumentEndedEventArgs={}))})(t=n.pdf||(n.pdf={}))}(wijmo||(wijmo={}));
var wijmo;(function(n){var t;(function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n._PDFSecurity||(n._PDFSecurity={}))})(t=n.security||(n.security={}))})(t=n.pdf||(n.pdf={}))})(wijmo||(wijmo={}));
var wijmo;(function(n){var t;(function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.PdfFormatItemEventArgs||(n.PdfFormatItemEventArgs={}))})(t=n.pdf||(n.pdf={}))})(t=n.grid||(n.grid={}))})(wijmo||(wijmo={}));
var __extends=this&&this.__extends||function(){var n=function(t,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r(){this.constructor=t}if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(t,i);t.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}}(),c1;(function(n){var t;(function(n){var t=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(wijmo.grid.FlexGrid);n.FlexGrid=t})(t=n.grid||(n.grid={}))})(c1||(c1={}));
var __extends=this&&this.__extends||function(){var n=function(t,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r(){this.constructor=t}if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(t,i);t.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}}(),c1;(function(n){var t;(function(t){var i;(function(i){var o=function(t){function r(){return t!==null&&t.apply(this,arguments)||this}return __extends(r,t),Object.defineProperty(r.prototype,"_controlType",{get:function(){return u},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"_initializerType",{get:function(){return n.mvc.grid._Initializer},enumerable:!1,configurable:!0}),r.prototype._getExtensionTypes=function(){var n=t.prototype._getExtensionTypes.call(this);return n.push(i._ItemTemplateProvider,i._Validator,i._SortHelper,i._MaskLayer,i._VirtualScrolling,i._UpdateHelper),n},r}(t._ControlWrapper),f,e,r,u;i._FlexGridWrapper=o;f=function(){function n(){}return n}();i.HeaderTemplateCell=f;e=function(){function n(){}return n}();i.HeaderTemplate=e;r=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),Object.defineProperty(t.prototype,"groupColumnsList",{get:function(){return this._groupColumnsList},set:function(n){this._groupColumnsList=n},enumerable:!1,configurable:!0}),t.prototype.getMergedRange=function(n,t,i,r){if(this._groupColumnsList&&n.cellType==wijmo.grid.CellType.ColumnHeader&&t>=0&&i>=0)for(var u=0;u<this._groupColumnsList.length;++u)if(this._groupColumnsList[u].contains(t,i))return this._groupColumnsList[u];return this.mmOld?this.mmOld.getMergedRange(n,t,i,r):null},t}(wijmo.grid.MergeManager);i.MVCMergeManager=r;u=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),Object.defineProperty(t.prototype,"headerTemplate",{get:function(){return this._headerTemplate},set:function(n){var u,i,f,t;if(n==null){this.collectionView.beginUpdate();u=this.columnHeaders.rows[this.columnHeaders.rows.length-1];this.columnHeaders.rows.clear();this.mergeManager.mmOld=null;this.mergeManager=null;this.columnHeaders.rows.push(u);u=null;this.collectionView.endUpdate();this._headerTemplate=null;return}for(this.allowDragging=wijmo.grid.AllowDragging.None,t=0;t<n.cells.length;++t)n.cells[t].row===undefined&&(n.cells[t].row=0),n.cells[t].col===undefined&&(n.cells[t].col=0),wijmo.assert(n.cells[t].col<=this.columnHeaders.columns.length-1,"column position must not greater than last column position value = (columns length - 1)"),n.cells[t].colSpan=Math.min(n.cells[t].colSpan,this.columnHeaders.columns.length-n.cells[t].col);for(this._headerTemplate=n,t=0;t<n.rowCount-1;++t)this.columnHeaders.rows.push(new wijmo.grid.Row);for(i=new r,f=[],t=0;t<n.cells.length;++t)this.columnHeaders.setCellData(n.cells[t].row,n.cells[t].col,n.cells[t].title),f.push(new wijmo.grid.CellRange(n.cells[t].row,n.cells[t].col,n.cells[t].row+n.cells[t].rowSpan-1,n.cells[t].col+n.cells[t].colSpan-1));i.groupColumnsList=f;i.mmOld=this.mergeManager;this.mergeManager=i},enumerable:!1,configurable:!0}),t.prototype._getSortDescriptorKeyMvc=function(){return"FlexGridSort"},t.prototype._getFlatColumnsMvc=function(n){return n.columns},t.prototype._getLayoutGroupsMvc=function(n){var i=[],r,t=n.columns;return t&&t.length&&(r={cells:t},i.push(r)),i},t.prototype._getBindingColumns=function(){var n=[];return this.columns.forEach(function(t){n.push(t)}),n},t.prototype._getColumnTypes=function(n){return this.collectionView._initialItemsCount!=null?wijmo.getTypes(n,this.collectionView._initialItemsCount):wijmo.getTypes(n)},t.prototype._getBindingColumnMvc=function(n,t){return this.columns[t]},t.prototype._getBindingColumnFromCellRangeMvc=function(n){return this.columns[n.col]},t.prototype._getRowsPerItemMvc=function(){return 1},t.prototype._getSortCellMvc=function(n,t,i){return{groupIndex:-1,cellIndex:t,cell:i}},t.prototype.getMergedRange=function(t,i,r,u){var e,f,o;if(t.cellType===wijmo.grid.CellType.ColumnHeader&&this._headerTemplate&&this._headerTemplate.cells){for(e=new wijmo.grid.CellRange(i,r),f=0;f<this._headerTemplate.cells.length;f++)if(o=new wijmo.grid.CellRange(this._headerTemplate.cells[f].row,this._headerTemplate.cells[f].col,this._headerTemplate.cells[f].row+this._headerTemplate.cells[f].rowSpan-1,this._headerTemplate.cells[f].col+this._headerTemplate.cells[f].colSpan-1),o.contains(e))return o;return e}return n.prototype.getMergedRange.call(this,t,i,r,u)},Object.defineProperty(t.prototype,"defaultRowSize",{get:function(){return this.rows.defaultSize},set:function(n){this.rows.defaultSize=n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultColumnSize",{get:function(){return this.columns.defaultSize},set:function(n){this.columns.defaultSize=n},enumerable:!1,configurable:!0}),t}(n.grid.FlexGrid);i.FlexGrid=u})(i=t.grid||(t.grid={}))})(t=n.mvc||(n.mvc={}))})(c1||(c1={}));
var __extends=this&&this.__extends||function(){var n=function(t,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r(){this.constructor=t}if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(t,i);t.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}}(),c1;(function(n){var t;(function(t){var i;(function(i){var r=function(r){function u(i){var u=r.call(this,i)||this;return u._columnFootersRowHeaderText="Σ",u._grid=i,n.documentReady(function(){i.invalidate()}),t._overrideMethod(i,"refresh",null,u._afterRefresh.bind(u)),u}return __extends(u,r),u.prototype._afterRefresh=function(){this._suspendedOpts&&this._grid.collectionView&&(!t.DataSourceManager._isRemoteSource(this._grid.collectionView)||this._isInitialized?this._processSuspendedOpts():this._isInitialized=!0)},u.prototype._beforeInitializeControl=function(n){n&&this._filterOptions(n)},u.prototype._afterInitializeControl=function(t){if(this._showColumnFooters&&t.itemsSource&&(this._grid.columnFooters.rows.push(new wijmo.grid.GroupRow),this._grid.bottomLeftCells.setCellData(0,0,this._columnFootersRowHeaderText||"")),t.frozenRows){var i=wijmo.tryCast(this._grid.collectionView,n.mvc.collections.RemoteCollectionView);i&&(i._frozenRows=t.frozenRows)}this._proccessColumnsEditor();this._disableCalculatedFieldsSorting()},u.prototype._filterOptions=function(n){this._filterPinningOptions(n);this._filterSortOptions(n);this._filterItemsSourceOptions(n);this._filterDataMapOptions(n);this._filterSuspendedOpts(n);this._filterColumnFootersOpts(n);this._filterOtherOptions(n);n&&delete n.showAlternatingRows},u.prototype._filterOtherOptions=function(n){var t=n.defaultTypeWidth,r;if(t){for(r in t)i.FlexGrid._defTypeWidth[r]=t[r];delete n.defaultTypeWidth}},u.prototype._filterSortOptions=function(n){n.sortingType>=0?(n.allowSorting=n.sortingType,delete n.sortingType):n.allowSorting==!1?n.allowSorting=wijmo.grid.AllowSorting.None:n.allowSorting==!0&&(n.allowSorting=wijmo.grid.AllowSorting.SingleColumn)},u.prototype._filterPinningOptions=function(n){n.pinningType>=0?(n.allowPinning=n.pinningType,delete n.pinningType):n.allowPinning==!1?n.allowPinning=wijmo.grid.AllowPinning.None:n.allowPinning==!0&&(n.allowPinning=wijmo.grid.AllowPinning.SingleColumn)},u.prototype._filterItemsSourceOptions=function(t){wijmo.tryCast(t.itemsSource,wijmo.collections.CollectionView)==null&&wijmo.isArray(t.itemsSource)?t.itemsSource=new n.mvc.collections.CallbackCollectionView({sourceCollection:t.itemsSource,uniqueId:null,disableServerRead:!0}):t.itemsSource==null&&delete t.itemsSource},u.prototype._filterDataMapOptions=function(n){var r,t,i,u,o,f,e;r=this._grid._getFlatColumnsMvc(n);r&&r.length&&r.forEach(function(n){t=n.dataMap;t&&(u=t.mapChanged,o=t.sortByDisplayValues,i=new wijmo.grid.DataMap(t.itemsSource,t.selectedValuePath,t.displayMemberPath),u&&i.mapChanged.addHandler(u),i.sortByDisplayValues=o===!0,t.hasOwnProperty("isEditable")&&(i.isEditable=t.isEditable),n.dataMap=i);f=n.editor;f&&(e=wijmo.Control.getControl("#"+f),e&&(n.editor=e))})},u.prototype._filterSuspendedOpts=function(n){var t=this;this._suspendedOpts=null;u._SUSPENDED_OPTIONS.forEach(function(i){return t._filterSuspendedOpt(i,n)})},u.prototype._filterSuspendedOpt=function(n,t){typeof t[n]!="undefined"&&(this._suspendedOpts||(this._suspendedOpts={}),this._suspendedOpts[n]=t[n],delete t[n])},u.prototype._filterColumnFootersOpts=function(n){typeof n.showColumnFooters!="undefined"&&(this._showColumnFooters=!!n.showColumnFooters,delete n.showColumnFooters);typeof n.columnFootersRowHeaderText!="undefined"&&(this._columnFootersRowHeaderText=n.columnFootersRowHeaderText,delete n.columnFootersRowHeaderText)},u.prototype._proccessColumnsEditor=function(){var t=this._grid._getBindingColumns(),i,n,r;t&&t.length&&t.forEach(function(t){i=t.editor;i&&(n=i.inputElement,n&&(r=t._edt,r._tbx=n,n.addEventListener("compositionstart",r._cmpstartBnd)))})},u.prototype._disableCalculatedFieldsSorting=function(){var n=this._grid._getBindingColumns(),t=wijmo.tryCast(this._grid.collectionView,wijmo.collections.CollectionView),i;n&&n.length&&t&&(i=t.calculatedFields,!t._disableServerRead&&i&&n.forEach(function(n){n.binding&&i[n.binding]&&(n.allowSorting=!1)}))},u.prototype._processSuspendedOpts=function(){var i=this._grid,t,n;if(this._suspendedOpts){for(t in this._suspendedOpts){n=this._suspendedOpts[t];switch(t){case"scrollPosition":n?i.scrollIntoView(n.x||0,n.y||0):i[t]=new wijmo.Point;break;case"selection":i[t]=n?new wijmo.grid.CellRange(n.row,n.col,n.row2,n.col2):new wijmo.grid.CellRange;break;case"selectionMode":i[t]=n}}this._suspendedOpts=null}},u._SUSPENDED_OPTIONS=["scrollPosition","selection","selectionMode"],u}(n.mvc._Initializer);i._Initializer=r})(i=t.grid||(t.grid={}))})(t=n.mvc||(n.mvc={}))})(c1||(c1={}));
var c1;(function(n){var t;(function(t){var i;(function(i){var r=function(){function r(n){this._grid=wijmo.asType(n,wijmo.grid.FlexGrid,!1);t._overrideMethod(n,i._Initializer._INITIAL_NAME,null,this._afterInitialize.bind(this))}return r.prototype._afterInitialize=function(n){var t=this;n&&(this._addHandlers(),this._grid.itemsSourceChanged.addHandler(function(){t._removeHandlers();t._addHandlers()}))},r.prototype._addHandlers=function(){var t,i;this._collectionView=this._grid.collectionView;t=wijmo.tryCast(this._collectionView,n.mvc.collections.RemoteCollectionView);t?(t.beginQuery.addHandler(this._updateMaskLayer,this),t.endQuery.addHandler(this._updateMaskLayer,this)):(i=wijmo.tryCast(this._collectionView,wijmo.odata.ODataCollectionView),i&&(i.loading.addHandler(this._updateMaskLayer,this),i.loaded.addHandler(this._updateMaskLayer,this)));this._updateMaskLayer()},r.prototype._removeHandlers=function(){var i=wijmo.tryCast(this._collectionView,n.mvc.collections.RemoteCollectionView),t;i?(i.beginQuery.removeHandler(this._updateMaskLayer,this),i.endQuery.removeHandler(this._updateMaskLayer,this)):(t=wijmo.tryCast(this._collectionView,wijmo.odata.ODataCollectionView),t&&(t.loading.removeHandler(this._updateMaskLayer,this),t.loaded.removeHandler(this._updateMaskLayer,this)))},r.prototype._updateMaskLayer=function(){t.DataSourceManager._isQueringData(this._grid.collectionView)?this._showMaskLayer():this._hideMaskLayer()},r.prototype._showMaskLayer=function(){this._maskLayer||(this._maskLayer=this._createMaskLayer());this._maskLayer.style.display="inline-block"},r.prototype._hideMaskLayer=function(){this._maskLayer&&(this._maskLayer.style.display="none")},r.prototype._createMaskLayer=function(){var r=this._grid.cells.hostElement.parentElement.parentElement,t,i,n;if(!r)throw"the grid container doesn't exist.";return i=wijmo.getElementRect(r),t=document.createElement("div"),n=t.style,n.left="0px",n.top="0px",n.width=i.width+"px",n.height=i.height+"px",n.lineHeight=i.height+"px",n.display="none",t.innerText="loading...",r.appendChild(t),wijmo.addClass(t,"c1-grid-mask"),t},r}();i._MaskLayer=r})(i=t.grid||(t.grid={}))})(t=n.mvc||(n.mvc={}))})(c1||(c1={}));
var c1;(function(n){var t;(function(n){var t;(function(t){var i=function(){function t(t){this._needToRemoveAllMultiRowNewRowTemplates=!1;this._grid=wijmo.asType(t,wijmo.grid.FlexGrid,!1);t.pasting.addHandler(this._onPasting,this);t.pastingCell.addHandler(this._onPastingCell,this);t.pasted.addHandler(this._onPasted,this);var i=t._keyHdl;i&&n._overrideMethod(i,"_deleteSel",this._beforeDeleteSel.bind(this),this._afterDeleteSel.bind(this))}return t.prototype._onPasting=function(){this._pastingItem=null;var n=this._grid.collectionView;n&&(n._isPasting=!0)},t.prototype._onPastingCell=function(n,t){var r=this._grid.collectionView,i,u;t.panel.cellType===wijmo.grid.CellType.Cell&&r&&(u=this._grid.rows[t.row],i=u?r.items[u.dataIndex]:null,i&&(this._pastingItem&&this._pastingItem!=i&&r.commitEdit(),this._pastingItem=i,r.editItem(i)))},t.prototype._onPasted=function(){this._pastingItem&&(this._pastingItem=null);var n=this._grid.collectionView;n&&(n._isPasting=!1)},t.prototype._afterDeleteSel=function(){this._needToRemoveAllMultiRowNewRowTemplates&&(this._updateNewRowTemplate(),this._needToRemoveAllMultiRowNewRowTemplates=!1);var n=this._grid,t=n.selection,i=n.collectionView;!n.newRowAtTop||!i||i.items.length||n.selectedRows[t.row2]instanceof wijmo.grid._NewRowTemplate||(t.row=t.row2=0,n.select(t,!1))},t.prototype._beforeDeleteSel=function(){if(this._grid.newRowAtTop&&this._grid.allowDelete&&this._grid.selection&&this._grid.selectedRows.length!=0)for(var n=0,t=this._grid.selectedRows;n<t.length;n++)if(this._needToRemoveAllMultiRowNewRowTemplates=this._needToRemoveAllMultiRowNewRowTemplates||t[n]instanceof wijmo.grid._NewRowTemplate,this._needToRemoveAllMultiRowNewRowTemplates)break},t.prototype._updateNewRowTemplate=function(){for(var t,n=0,i=this._grid.rows;n<i.length;n++)i[n]instanceof wijmo.grid._NewRowTemplate&&(i.removeAt(n),n--);t=this._grid._addHdl;t&&t._nrt&&(t._nrt.dataItem=null);t.updateNewRowTemplate()},t.prototype._commitEdit=function(){var n=this._grid.collectionView;n.commitEdit()},t}();t._UpdateHelper=i})(t=n.grid||(n.grid={}))})(t=n.mvc||(n.mvc={}))})(c1||(c1={}));
var c1;(function(n){var t;(function(t){var i;(function(i){var r=function(){function r(n){this._grid=wijmo.asType(n,wijmo.grid.FlexGrid,!1);t._overrideMethod(n,i._Initializer._INITIAL_NAME,null,this._afterInitialize.bind(this));t._overrideMethod(n,"refresh",null,this._afterRefresh.bind(this))}return r.prototype._afterInitialize=function(n){var t=this;n&&(this._addHandlers(),this._grid.itemsSourceChanged.addHandler(function(){t._removeHandlers();t._addHandlers()}))},r.prototype._addHandlers=function(){this._collectionView=this._grid.collectionView;this._remoteCV=wijmo.tryCast(this._collectionView,n.mvc.collections.RemoteCollectionView);t.DataSourceManager._isDynamicalLoading(this._collectionView)&&(this._grid.scrollPositionChanged.addHandler(this._scrollingToCurrentView,this),this._remoteCV&&(this._grid.draggingRow.addHandler(this._draggingRow,this),this._grid.draggedRow.addHandler(this._draggedRow,this)))},r.prototype._removeHandlers=function(){t.DataSourceManager._isDynamicalLoading(this._collectionView)&&(this._grid.scrollPositionChanged.removeHandler(this._scrollingToCurrentView,this),this._remoteCV&&(this._grid.draggingRow.removeHandler(this._draggingRow,this),this._grid.draggedRow.removeHandler(this._draggedRow,this)))},r.prototype._afterRefresh=function(){t.DataSourceManager._isDynamicalLoading(this._grid.collectionView)&&this._scrollingToCurrentView()},r.prototype._draggingRow=function(n,t){var i,r;this._remoteCV&&(this._remoteCV._clearReservedItems(),t.row>=0&&t.row<this._grid.rows.length&&(i=this._grid.rows[t.row].dataItem,i&&(r=this._remoteCV.sourceCollection.indexOf(i),r>-1&&this._remoteCV._addReservedItem(r))))},r.prototype._draggedRow=function(){this._remoteCV&&this._remoteCV._clearReservedItems()},r.prototype._scrollingToCurrentView=function(){var n=this._grid.viewRange;n.row>=0&&n.row2>=0&&this._setWindow(n.row,n.row2)},r.prototype._prepareRequest=function(n,t,i){var u=this,f=this._grid,r;n&&window.setTimeout(function(){r=f.viewRange;r.row==t&&r.row2==i?u._requestItems(n,t,i):u._prepareRequest(n,r.row,r.row2)},100)},r.prototype._setWindow=function(t,i){var u=wijmo.tryCast(this._grid.collectionView,n.mvc.collections.RemoteCollectionView),r;if(u){this._prepareRequest(u,t,i);return}r=wijmo.tryCast(this._grid.collectionView,wijmo.odata.ODataCollectionView);r&&r.setWindow(t,i)},r.prototype._requestItems=function(n,t,i){var r=this._grid._getRowsPerItemMvc(),u=Math.floor(t/r),f=Math.ceil(i/r);n.requestItems(u,f)},r}();i._VirtualScrolling=r})(i=t.grid||(t.grid={}))})(t=n.mvc||(n.mvc={}))})(c1||(c1={}));
var c1;(function(n){var t;(function(t){var i;(function(i){var r=function(){function r(n){this._grid=wijmo.asType(n,wijmo.grid.FlexGrid,!1);var r=this._grid.collectionView;r instanceof wijmo.odata.ODataCollectionView||(t._overrideMethod(n,i._Initializer._INITIAL_NAME,null,this._afterInitialize.bind(this)),t._overrideMethod(n,"_bindColumns",null,this._afterBindColumns.bind(this)),t._overrideMethod(n,"onSortingColumn",null,this._afterOnSortingColumn.bind(this)))}return r.prototype._afterInitialize=function(n){var t=this;n&&(this._storeColumns(),this._addHandlers(),this._grid.itemsSourceChanged.addHandler(function(){t._removeHandlers();t._addHandlers()}))},r.prototype._addHandlers=function(){if(this._collectionView=this._grid.collectionView,this._isServerReadRemoteCollectionView()){var t=wijmo.tryCast(this._collectionView,n.mvc.collections.RemoteCollectionView);t.queryData.addHandler(this._collectSortSettings,this)}},r.prototype._removeHandlers=function(){if(this._isServerReadRemoteCollectionView()){var t=wijmo.tryCast(this._collectionView,n.mvc.collections.RemoteCollectionView);t.queryData.removeHandler(this._collectSortSettings,this)}},r.prototype._isServerReadRemoteCollectionView=function(){var t=wijmo.tryCast(this._collectionView,n.mvc.collections.RemoteCollectionView);return t&&t._isDisableServerRead&&!t._isDisableServerRead()},r.prototype._afterBindColumns=function(){this._storeColumns()},r.prototype._storeColumns=function(){this._originalColumns=[];for(var n=0;n<this._grid.columns.length;n++)this._originalColumns.push(this._grid.columns[n])},r.prototype._afterOnSortingColumn=function(n){var t;n.cancel||(this._sortingRowIndex=n.row,t=this._grid.columns[n.col],this._sortingOriginalColumnIndex=this._originalColumns.indexOf(t))},r.prototype._collectSortSettings=function(n,t){if(n.sortDescriptions&&n.sortDescriptions.length){var i=this._getSortSettings();i&&i.length&&(t.extraRequestData=t.extraRequestData||{},t.extraRequestData[this._grid._getSortDescriptorKeyMvc()]=i)}},r.prototype._getSortSettings=function(){var t,n,i=[],r;return this._sortingOriginalColumnIndex!=null&&(t=this._grid._getSortCellMvc(this._sortingRowIndex,this._sortingOriginalColumnIndex,this._originalColumns[this._sortingOriginalColumnIndex]),n=t.cell,n&&(n.sortMemberPath==null||n.sortMemberPath==n.binding)&&n.dataMap&&n.dataMap.sortByDisplayValues&&(r={group:t.groupIndex,index:t.cellIndex,binding:n.binding,dataMap:{selectedValuePath:n.dataMap.selectedValuePath,displayMemberPath:n.dataMap.displayMemberPath}},i.push(r))),i},r}();i._SortHelper=r})(i=t.grid||(t.grid={}))})(t=n.mvc||(n.mvc={}))})(c1||(c1={}));
var c1;(function(n){var t;(function(t){var i;(function(i){var r=function(){function r(n){this._windowWidth=window.innerWidth;this._isRaiseRowEditEvent=!1;this._imeKeyPressBnd=this._imeKeyPress.bind(this);this._isToggleDropDown=!1;this._grid=wijmo.asType(n,wijmo.grid.FlexGrid,!1);t._overrideMethod(n,i._Initializer._INITIAL_NAME,this._beforeInitialize.bind(this),this._afterInitialize.bind(this))}return r.prototype._beforeInitialize=function(n){n&&this._processTemplates(n)},r.prototype._afterInitialize=function(n){var t=this;n&&(this._addHandlers(),this._grid.itemsSourceChanged.addHandler(function(){t._removeHandlers();t._applyTemplates()}))},r.prototype._addHandlers=function(){this._collectionView=wijmo.tryCast(this._grid.collectionView,wijmo.collections.CollectionView);this._collectionView&&(this._collectionView.items&&this._collectionView.items.length>0?this._applyTemplates():this._collectionView.collectionChanged.addHandler(this._applyTemplatesOnce,this))},r.prototype._applyTemplatesOnce=function(){var n=this;setTimeout(function(){n._collectionView.collectionChanged.removeHandler(n._applyTemplatesOnce,n)});this._applyTemplates()},r.prototype._removeHandlers=function(){(this._collectionView.collectionChanged.removeHandler(this._applyTemplatesOnce,this),this._templates)&&(this._removeEditTemplateHandlers(),this._grid.formatItem.removeHandler(this._applyCellTemplates,this))},r.prototype._processTemplates=function(n){this._processPanelTemplates(n);this._processColumnsTempaltes(n)},r.prototype._processPanelTemplates=function(n){for(var u=["rowHeadersTemplate","columnHeadersTemplate","cellsTemplate","topLeftCellsTemplate","columnFootersTemplate","bottomLeftCellsTemplate"],f=["RowHeader","ColumnHeader","Cell","TopLeft","ColumnFooter","BottomLeft"],e=u.length,i,r,t=0;t<e;t++)r=u[t],i=n[r],i&&delete n[r],i!=null&&this._updateTemplates(f[t],i)},r.prototype._processColumnsTempaltes=function(n,t){var s=this,i,r,e,u,f,o;t===void 0&&(t=0);e=0;o="cellTemplate";this._layoutDefinition=i=this._grid._getLayoutGroupsMvc(n);i&&i.length&&i.forEach(function(n){u=t;r=n.cells;r&&r.length&&r.forEach(function(n){if(f=n[o],f&&delete n[o],f!=null&&s._updateTemplates("Cell",f,e,u),n.template&&(n.cellTemplate=n.template,delete n.template),n.templateFunction){var t=wijmo.grid.cellmaker.CellMaker;n.cellTemplate=n.templateFunction.call(t,t);delete n.templateFunction}n.columns&&s._processColumnsTempaltes(n,u);u++});e++})},r.prototype._getGroupCell=function(n){var i=this._layoutDefinition,t,f=0,r,o=0,e=null,u=this._grid.getColumn(n);if(u&&u.binding)return i&&i.length&&i.forEach(function(n){r=o;t=n.cells;t&&t.length&&t.forEach(function(n){n.binding==u.binding&&(e={groupIndex:f,cellIndex:r,cell:null});r++});f++}),e},r.prototype._updateTemplates=function(n,t,i,r){i===void 0&&(i=-1);r===void 0&&(r=-1);var u,f=i===-1&&r===-1?"-1":i+"_"+r;t!=null&&(this._templates||(this._templates={}),u=this._templates[n],u||(u={}),u[f]=t,this._templates[n]=u)},r.prototype._applyTemplates=function(){var n,i;if(this._templates){this._celltemplates={};t.Utils.copy(this._celltemplates,this._templates);for(n in this._celltemplates)i=this._celltemplates[n],n==="Cell"&&(i=this._updateCellsTemplate(n,i),this._celltemplates[n]=i);this._addEditTemplateHandlers();this._grid.formatItem.addHandler(this._applyCellTemplates,this);this._processF4()}},r.prototype._updateCellsTemplate=function(n,t){var i,r={},f,s=this._grid,u,e,o;for(i in t)parseInt(i)!=-1?(u=i.split("_"),e=parseInt(u[0]),o=parseInt(u[1]),f=this._grid._getBindingColumnMvc(e,o),r[n+f._hash]=t[i]):r[i]=t[i];return r},r.prototype._applyCellTemplates=function(t,i){var u,f,e,s,h,r;if(this._celltemplates&&!i._cell.classList.contains("wj-detail")&&!i._cell.classList.contains("wj-group")&&(u=i.panel.cellType,f=this._isEditing(u,i.row,i.col),u!==wijmo.grid.CellType.Cell||!f)&&(e=wijmo.grid.CellType[u],s=this._celltemplates[e],s)&&(h=this._grid._getBindingColumnFromCellRangeMvc(i),r=this._getCellTemplate(e,h._hash,s),r)){var c=r.templateId||r.templateContent,l=r.editTemplateId||r.editTemplateContent,o={row:i.row,column:i.col},a="";i.cell&&i.cell.style&&i.cell.style.visibility==="hidden"&&(a="hidden");o[n.mvc.Template.UID]=this._getUnqiueIdentifier()+"_"+e+"_r"+i.row+"_c"+i.col+a;o[n.mvc.Template.DATACONTEXT]=this._grid.rows[i.row].dataItem;!f&&c?c.applyTo(i.cell,o):f&&l&&l.applyTo(i.cell,o)}},r.prototype._resizeWindow=function(){if(/Android/.test(navigator.userAgent)){if(this._windowWidth==window.innerWidth)return;this._windowWidth=window.innerWidth}!!this._activeEdt&&(this._containsFocus(this._activeEdt)||this._containsFocus(this._activeEdt.firstElementChild))&&(this._closeEditor(!0),this._grid.focus())},r._hasEditTemplate=function(n){var i,t;for(i in n)if(t=n[i],t&&(t.editTemplateId||t.editTemplateContent))return!0;return!1},r.prototype._getCellTemplate=function(n,t,i){var u,n,r;return wijmo.grid.CellType[n]==wijmo.grid.CellType.Cell&&(u=n+t,r=i[u]),r==null&&(r=i["-1"]),r},r.prototype._getGroupCellTemplate=function(n,t,i,r){var f,n,u;return wijmo.grid.CellType[n]==wijmo.grid.CellType.Cell&&(f=t+"_"+i,u=r[f]),u==null&&(u=r["-1"]),u},r.prototype._processF4=function(){var i=this,t=this._grid,n=t._edtHdl,r=t.isTouching,u=n._toggleListBox.bind(n);n._toggleListBox=function(n,t){return!u(n,t)&&(i._isToggleDropDown=!0,!this.startEditing(!0,null,null,!r,n))?!1:!0}},r.prototype._addEditTemplateHandlers=function(){var t=this,n;this._celltemplates&&this._celltemplates.Cell&&(n=this._celltemplates.Cell,r._hasEditTemplate(n)&&(window.addEventListener("resize",this._resizeWindow.bind(this)),this._grid.beginningEdit.addHandler(this._applyCellEditTemplate,this),this._grid.scrollPositionChanged.addHandler(this._scrollHandler,this),this._grid.prepareCellForEdit.addHandler(this._saveEdit,this),this._grid.cellEditEnded.addHandler(this._processColumnEditor,this),this._grid.selectionChanging.addHandler(this._saveEdit,this),this._grid.selectionChanging.addHandler(function(n,i){i.row!=n.selection.row&&t._raiseRowEditsEvent()}),this._grid.imeEnabled&&this._grid.addEventListener(this._grid.hostElement,"compositionupdate",this._imeKeyPressBnd)))},r.prototype._removeEditTemplateHandlers=function(){var n=this;window.removeEventListener("resize",this._resizeWindow.bind(this));this._grid.beginningEdit.removeHandler(this._applyCellEditTemplate,this);this._grid.scrollPositionChanged.removeHandler(this._scrollHandler,this);this._grid.prepareCellForEdit.removeHandler(this._saveEdit,this);this._grid.cellEditEnded.removeHandler(this._processColumnEditor,this);this._grid.selectionChanging.removeHandler(this._saveEdit,this);this._grid.selectionChanging.removeHandler(function(t,i){i.row!=t.selection.row&&n._raiseRowEditsEvent()});this._grid.imeEnabled&&this._grid.removeEventListener(this._grid.hostElement,"compositionupdate",this._imeKeyPressBnd)},r.prototype._scrollHandler=function(n,t){this._closeEditor(!t.cancel)},r.prototype._saveEdit=function(){this._activeEdt&&this._editedItemIndex!=null&&(this._closeEditor(!0),this._grid.focus())},r.prototype._processColumnEditor=function(n,t){var r=this._grid._getBindingColumnFromCellRangeMvc(t),i=r.editor,u=this._getCellTemplate("Cell",r._hash,this._celltemplates.Cell);i&&i instanceof wijmo.input.DropDown&&(i.isDroppedDown=!1);u||(this._isRaiseRowEditEvent=!1);this._imeChar=null},r.prototype._getUnqiueIdentifier=function(){return this._grid.hostElement.id||n.mvc._getUniqueId(this._grid)},r.prototype._getCellBoundingRect=function(n,t){var r=this._grid,i=r.cells.getCellBoundingRect(n,t),f,u;return r.rightToLeft&&!wijmo.isIE()&&(i.left+=r._root.offsetWidth-r._root.clientWidth),f=r.cells.getCellElement(n,t),f&&(u=f.getBoundingClientRect(),r.rightToLeft&&(i.left+=i.width-u.width,i.top+=i.height-u.height-1),i.width=u.width+1,i.height=u.height+1),i},r.prototype._imeKeyPress=function(n){var t=n.data;this._imeChar=!this._imeChar&&t&&t.length>0?t.charAt(t.length-1):null},r.prototype._putImeChar=function(n){n?this._imeInput=n:n=this._imeInput;n&&this._imeChar&&n.value!=this._imeChar&&(n.value=this._imeChar,setTimeout(this._putImeChar.bind(this),50))},r.prototype._applyCellEditTemplate=function(t,i){var f=this,s,y,g,c,w,h,o,v,r,e,p,k,d,u;if(!i.cancel&&(s=i.data,!s||s.keyCode!=wijmo.Key.Delete)&&(this._layoutDefinition?(y=this._getGroupCell(i.col),y&&(c=this._getGroupCellTemplate("Cell",y.groupIndex,y.cellIndex,this._templates.Cell))):(g=this._grid._getBindingColumnFromCellRangeMvc(i),c=this._getCellTemplate("Cell",g._hash,this._celltemplates.Cell)),c)&&(w=c.editTemplateId||c.editTemplateContent,w)){var l=i.col,a=i.row,b={row:a,column:l};(b[n.mvc.Template.UID]=this._getUnqiueIdentifier()+"_Cell_r"+a+"_c"+l,b[n.mvc.Template.DATACONTEXT]=t.rows[a].dataItem,i.cancel=!0,h=t._getCvIndex(a),h<0)||(this._editedItemIndex!=h||this._editedColIndex!=l)&&(this._editedItemIndex=h,this._editedColIndex=l,this._rng=i.range,this._isRaiseRowEditEvent=!1,o=document.createElement("div"),document.body.appendChild(o),o.addEventListener("keydown",function(n){switch(n.keyCode){case wijmo.Key.Enter:case wijmo.Key.Tab:n.preventDefault();f._closeEditor(!0);wijmo.isIE()?setTimeout(function(){t.focus()},0):t.focus();var i=document.createEvent("HTMLEvents");i.initEvent("keydown",!0,!0);i.ctrlKey=n.ctrlKey;i.shiftKey=n.shiftKey;i.keyCode=n.keyCode;t.hostElement.dispatchEvent(i);break;case wijmo.Key.Escape:f._closeEditor(!1);wijmo.isIE()?setTimeout(function(){t.focus()},0):t.focus()}}),v=this._getCellBoundingRect(a,l),wijmo.setCss(o,{position:"absolute",left:v.left-1+pageXOffset,top:v.top-1+pageYOffset,width:v.width+1,height:v.height+1,borderRadius:"0px",zIndex:"2"}),w.applyTo(o,b),r=o.firstElementChild,e=wijmo.Control.getControl(r),this._listenLostFocus(e),this._activeEdt=o,r!=null&&(p={},r.style.width||(p.width="100%"),r.style.height||(p.height="100%"),wijmo.setCss(r,p)),k=t.collectionView.items[h],d=!1,t.collectionView&&k&&setTimeout(function(){var n,e;if(h==f._editedItemIndex){t.onRowEditStarting(i);t.collectionView.editItem(k);t.onRowEditStarted(i);d&&u&&(n=r.querySelector("input.wj-form-control"),n||(n=r.querySelector("input")),!n&&r instanceof HTMLInputElement&&(n=r),n&&(e=n.value.indexOf(u),e>=0&&(e+=u.length,wijmo.setSelectionRange(n,e,e))))}},100),u=s&&s.charCode>32?String.fromCharCode(s.charCode):null,e&&u&&e.focus(),setTimeout(function(){var n,i;e&&u||r.focus();t.imeEnabled&&f._imeChar&&(u=f._imeChar);u?(n=r.querySelector("input.wj-form-control"),n||(n=r.querySelector("input")),!n&&r instanceof HTMLInputElement&&(n=r),n instanceof HTMLInputElement&&(t.imeEnabled&&f._imeChar?f._putImeChar(n):n.value=u,wijmo.setSelectionRange(n,u.length,u.length),i=document.createEvent("HTMLEvents"),i.initEvent("input",!0,!1),n.dispatchEvent(i),d=!0)):e&&(e.focus(),f._isToggleDropDown&&e instanceof wijmo.input.DropDown&&(f._isToggleDropDown=!1,e.isDroppedDown=!0))},50))}},r.prototype._listenLostFocus=function(n){var t=this,i;n&&(i=function(){setTimeout(function(){n.lostFocus.removeHandler(i,t);!n.containsFocus()&&t._activeEdt&&t._activeEdt.firstElementChild===n.hostElement&&t._closeEditor(!0)})},n.lostFocus.addHandler(i,this))},r.prototype._containsFocus=function(n){var t=wijmo.Control.getControl(n);return t?t.containsFocus():wijmo.contains(n,document.activeElement)},r.prototype._closeEditor=function(n){var e,h,r;if(this._activeEdt&&this._editedItemIndex!=null){var f=this._activeEdt,s=this._editedItemIndex,o=f.parentElement;if(this._activeEdt=null,this._editedItemIndex=null,this._editedColIndex=null,o){var i=this._grid,u=new wijmo.grid.CellEditEndingEventArgs(i.cells,this._rng),t=wijmo.Control.getControl(f.firstElementChild);u.cancel=!n;i.onCellEditEnding(u);u.cancel||t!=null&&(t instanceof wijmo.input.DropDown&&(e=t,e._commitText&&e._commitText()),h=i.selection,r=this._collectionView,r.editItem(r.items[s]),t instanceof wijmo.input.MultiSelect?wijmo.isUndefined(t.checkedItems)||i.setCellData(this._rng.row,this._rng.col,t.checkedItems):wijmo.isUndefined(t.value)?wijmo.isUndefined(t.text)||i.setCellData(this._rng.row,this._rng.col,t.text):i.setCellData(this._rng.row,this._rng.col,t.value),r.commitEdit(),r.commitNew());t instanceof wijmo.input.DropDown&&(t.isDroppedDown=!1);o.removeChild(f);this._rng=null;this._isRaiseRowEditEvent=!0;i.onCellEditEnded(u)}}},r.prototype._isEditing=function(n,t,i){var r=!1;if(this._grid.isReadOnly)return!1;switch(n){case wijmo.grid.CellType.RowHeader:r=this._isCellEditing(t);break;case wijmo.grid.CellType.ColumnHeader:r=this._isCellEditing(-1,i);break;case wijmo.grid.CellType.Cell:r=this._isCellEditing(t,i);break;case wijmo.grid.CellType.TopLeft:r=this._isCellEditing()}return r},r.prototype._isCellEditing=function(n,t){n===void 0&&(n=-1);t===void 0&&(t=-1);var i=this._grid.editRange;return i==null?!1:n!=-1&&t!=-1?i.contains(n,t):n!=-1?i.containsRow(n):t!=-1?i.containsColumn(t):!0},r.prototype._raiseRowEditsEvent=function(){var n=this._grid,i=n.editableCollectionView,t;i&&this._isRaiseRowEditEvent&&(t=new wijmo.grid.CellEditEndingEventArgs(n.cells,n.selection),setTimeout(function(){n.onRowEditEnding(t);n.onRowEditEnded(t);n.invalidate()}));this._isRaiseRowEditEvent=!1},r}();i._ItemTemplateProvider=r})(i=t.grid||(t.grid={}))})(t=n.mvc||(n.mvc={}))})(c1||(c1={}));
var c1;(function(n){var t;(function(n){var t;(function(t){var i=function(){function i(i){this._grid=wijmo.asType(i,wijmo.grid.FlexGrid,!1);n._overrideMethod(i,t._Initializer._INITIAL_NAME,this._beforeInitialize.bind(this));n._overrideMethod(i,"onPrepareCellForEdit",null,this._afterOnPrepareCellForEdit.bind(this));n._overrideMethod(i,"onCellEditEnding",this._beforeOnCellEditEnding.bind(this));n._overrideMethod(i,"onCellEditEnded",null,this._afterOnCellEditEnded.bind(this))}return i.prototype._beforeInitialize=function(n){n&&n.validationAttributesMap&&(this._validationAttributesMap=n.validationAttributesMap,delete n.validationAttributesMap)},i.prototype._afterOnPrepareCellForEdit=function(n){var i=this._grid.activeEditor,f=this._grid._getBindingColumnFromCellRangeMvc(n),e=f.binding,u,o,s,h,r,c,t;if(e&&!f.dataMap&&f.dataType!==wijmo.DataType.Boolean){for(o in this._validationAttributesMap)if(o.toLowerCase()==e.toLowerCase()){u=this._validationAttributesMap[o];break}if(!u){this._grid._imeHdl&&(s=this._grid._imeHdl._tbx,s&&(s.style.opacity="1"));return}for(h in u)i.setAttribute(h,u[h]);if(i.setAttribute("name",e),r=window.jQuery,r&&r.validator&&r.validator.unobtrusive&&(r(i).wrap("<form><\/form>"),wijmo.isIE()&&document.activeElement==null&&window.focus(),this._validatedEditor=i,c=r("textarea.wj-grid-editor.wj-form-control.wj-grid-ime"),c&&c.css("opacity",0),this._focusEditor(i),r.validator.unobtrusive.parse(i.form),t=r(i.form).data("validator"),t&&t.settings)){t.settings.errorPlacement=function(n,i){var r=i.closest("div");r.removeClass(t.settings.validClass);r.addClass(t.settings.errorClass);r.attr("title",n.text())};t.settings.success=function(n,i){var u=r(i).closest("div");u.removeClass(t.settings.errorClass);u.addClass(t.settings.validClass);u.attr("title","")};r(i).on("input",function(){t.element(i)});setTimeout(function(){t.element(i)})}}},i.prototype._focusEditor=function(n){var r;if(n.type!="checkbox"){n.focus();var f,e,i=0,t=this._grid,u=!1,o=event instanceof KeyboardEvent;o&&(r=event,f=r.type=="keydown",e=r.type=="keypress",i=r.charCode||r.keyCode,u=e===!0&&i>wijmo.Key.Space&&i!==wijmo.Key.F2);wijmo.isIE()?setTimeout(function(){var e;if(document.activeElement==n)f===!0&&i==wijmo.Key.F2&&n instanceof HTMLInputElement&&n.value&&wijmo.setSelectionRange(n,0,n.value.length);else if(n.focus(),n instanceof HTMLInputElement&&(n.value&&wijmo.setSelectionRange(n,0,n.value.length),u)){var r=t.selection,o=t.getCellData(r.row,r.col,!0),s=t.getCellData(r.row,r.col,!1);n.value=String.fromCharCode(i);wijmo.isNumber(s)&&o.indexOf("%")>-1&&(n.value+="%");wijmo.setSelectionRange(n,1);e=document.createEvent("HTMLEvents");e.initEvent("input",!0,!1);n.dispatchEvent(e)}}):t.imeEnabled&&u&&setTimeout(function(){var u;n.focus();var r=t.selection,f=t.getCellData(r.row,r.col,!0),e=t.getCellData(r.row,r.col,!1);n.value=String.fromCharCode(i);wijmo.isNumber(e)&&f.indexOf("%")>-1&&(n.value+="%");u=document.createEvent("HTMLEvents");u.initEvent("input",!0,!1)})}},i.prototype._beforeOnCellEditEnding=function(n){var t=this._grid,i,r;n.cancel||(this._isInnerCheckBoxEditor=t.activeEditor&&t.activeEditor.type=="checkbox"&&wijmo.contains(t.hostElement,t.activeEditor),this._editor=t.activeEditor,i=window.jQuery,i&&this._validatedEditor&&(r=i(this._validatedEditor.form).data("validator"),r&&(n.cancel=!r.element(this._validatedEditor),n.cancel||(t.activeEditor.value=this._validatedEditor.value))))},i.prototype._afterOnCellEditEnded=function(n){var t=this._grid,n;if(this._validatedEditor=null,!this._editor||n.cancel||this._isInnerCheckBoxEditor){this._isInnerCheckBoxEditor=!1;this._editor=null;return}this._editor=null;this._isInnerCheckBoxEditor=!1},i}();t._Validator=i})(t=n.grid||(n.grid={}))})(t=n.mvc||(n.mvc={}))})(c1||(c1={}));
var wijmo;(function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.CellRange||(n.CellRange={}))})(t=n.grid||(n.grid={}))})(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.DataMap||(n.DataMap={}))})(t=n.grid||(n.grid={}))}(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.FlexGrid||(n.FlexGrid={}))})(t=n.grid||(n.grid={}))}(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.GridPanel||(n.GridPanel={}))})(t=n.grid||(n.grid={}))}(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.HitTestInfo||(n.HitTestInfo={}))})(t=n.grid||(n.grid={}))}(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.MergeManager||(n.MergeManager={}))})(t=n.grid||(n.grid={}))}(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.Column||(n.Column={}))})(t=n.grid||(n.grid={}))}(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.GroupRow||(n.GroupRow={}))})(t=n.grid||(n.grid={}))}(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.Row||(n.Row={}))})(t=n.grid||(n.grid={}))}(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.RowCol||(n.RowCol={}))})(t=n.grid||(n.grid={}))}(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.CellEditEndingEventArgs||(n.CellEditEndingEventArgs={}))})(t=n.grid||(n.grid={}))}(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.CellRangeEventArgs||(n.CellRangeEventArgs={}))})(t=n.grid||(n.grid={}))}(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.FormatItemEventArgs||(n.FormatItemEventArgs={}))})(t=n.grid||(n.grid={}))}(wijmo||(wijmo={}));
var wijmo,__extends=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}();!function(t){!function(e){"use strict";var i=function(){function e(e,i,n,r,s){this._volumes=t.asArray(e),this._xVals=t.asArray(i),this._xDataMin=t.asNumber(n,!0,!1),this._xDataMax=t.asNumber(r,!0,!1),this._xDataType=t.asEnum(s,t.DataType,!0),this._calcData=[],this._init()}return e.prototype.convert=function(i,n,r){var s=void 0,a=this._calcData.length,o=-1;if(this._hasXs&&this._xDataType===t.DataType.Date){if(-1===(o=this._xVals.indexOf(i)))for(var h=0;h<this._xVals.length;h++){if(h<this._xVals.length-1&&this._xVals[h]<=i&&i<=this._xVals[h+1]){o=h;break}if(0===h&&i<=this._xVals[h]){o=h;break}if(h===this._xVals.length-1&&this._xVals[h]<=i){o=h;break}}-1===o&&(o=this._xVals.indexOf(Math.floor(i)),o=t.clamp(o,0,a-1))}else this._hasXs?-1===(o=this._xVals.indexOf(i))&&(o=this._xVals.indexOf(Math.floor(i)),o=t.clamp(o,0,a-1)):o=t.clamp(Math.round(i),0,a-1);return 0<=o&&o<a&&(this._hasXs&&(i=e.convertToRange(i,0,a-1,this._xDataMin,this._xDataMax)),s=((s=this._calcData[o].value+(i-o)*this._calcData[o].width-.5*this._calcData[o].width)-(n=this._getXVolume(n)))/((r=this._getXVolume(r))-n)),s},e.prototype.convertBack=function(t,i,n){var r,s=void 0,a=this._calcData.length,o=-1;for(r=0;r<a;r++)if(this._calcData[r].x1<=t&&t<=this._calcData[r].x2||0===r&&t<=this._calcData[r].x2||r===a-1&&this._calcData[r].x1<=t){o=r;break}return 0<=o&&o<a&&(s=t/this._calcData[o].width-this._calcData[o].value/this._calcData[o].width+.5+r,this._hasXs&&(s=e.convertToRange(s,this._xDataMin,this._xDataMax,0,a-1))),s},e.prototype._init=function(){this._hasXs=null!==this._xVals&&this._xVals.length>0,this._hasXs&&!t.isNumber(this._xDataMin)&&(this._xDataMin=Math.min.apply(null,this._xVals)),this._hasXs&&!t.isNumber(this._xDataMax)&&(this._xDataMax=Math.max.apply(null,this._xVals)),this._hasXs&&(this._hasXs=t.isNumber(this._xDataMin)&&t.isNumber(this._xDataMax)),this._hasXs&&this._xDataType===t.DataType.Date&&this._fillGaps();var e=0,i=0,n=null!==this._volumes&&this._volumes.length>0?this._volumes.length:0;for(i=0;i<n;i++)e+=this._volumes[i]||0;var r,s,a=0;for(i=0;i<n;i++)r=a+(s=(this._volumes[i]||0)/e),this._calcData.push({value:r,width:s,x1:a,x2:r}),a=this._calcData[i].value},e.prototype._getXVolume=function(i){var n=this._calcData.length,r=-1;if(this._hasXs){r=this._xVals.indexOf(i);for(var s=0;s<this._xVals.length;s++){if(s<this._xVals.length-1&&this._xVals[s]<=i&&i<=this._xVals[s+1]){r=s;break}if(0===s&&i<=this._xVals[s]){r=s;break}if(s===this._xVals.length-1&&this._xVals[s]<=i){r=s;break}}}return this._hasXs&&(i=e.convertToRange(i,0,n-1,this._xDataMin,this._xDataMax)),-1===r&&(r=t.clamp(Math.round(i),0,n-1)),this._calcData[r].value+(i-r)*this._calcData[r].width-.5*this._calcData[r].width},e.convertToRange=function(t,e,i,n,r){return e===i||n===r?0:(t-n)*(i-e)/(r-n)+e},e.prototype._fillGaps=function(){if(!(this._xDataType!==t.DataType.Date||null===this._xVals||this._xVals.length<=0)){var e,i=this._xDataMin,n=this._xDataMax;for(e=1;i<n;e++)(i=new Date(i)).setDate(i.getDate()+1),(i=i.valueOf())!==this._xVals[e]&&(this._xVals.splice(e,0,i),this._volumes.splice(e,0,0))}},e}();e._VolumeHelper=i}(t.chart||(t.chart={}))}(wijmo||(wijmo={})),function(t){!function(e){"use strict";var i=function(){function e(e,i,n){this.k=.002,this._a=[],this._b=[],this._c=[],this._d=[],this.m=[[-.5,1.5,-1.5,.5],[1,-2.5,2,-.5],[-.5,0,.5,0],[0,1,0,0]],this._x=e,this._y=i;var r=this._len=n||Math.min(e.length,i.length);if(r>3)for(var s=0;s<r-1;s++){var a=0==s?new t.Point(e[s],i[s]):new t.Point(e[s-1],i[s-1]),o=new t.Point(e[s],i[s]),h=new t.Point(e[s+1],i[s+1]),l=s==r-2?new t.Point(e[s+1],i[s+1]):new t.Point(e[s+2],i[s+2]),c=new t.Point,u=new t.Point,_=new t.Point,p=new t.Point;c.x=a.x*this.m[0][0]+o.x*this.m[0][1]+h.x*this.m[0][2]+l.x*this.m[0][3],u.x=a.x*this.m[1][0]+o.x*this.m[1][1]+h.x*this.m[1][2]+l.x*this.m[1][3],_.x=a.x*this.m[2][0]+o.x*this.m[2][1]+h.x*this.m[2][2]+l.x*this.m[2][3],p.x=a.x*this.m[3][0]+o.x*this.m[3][1]+h.x*this.m[3][2]+l.x*this.m[3][3],c.y=a.y*this.m[0][0]+o.y*this.m[0][1]+h.y*this.m[0][2]+l.y*this.m[0][3],u.y=a.y*this.m[1][0]+o.y*this.m[1][1]+h.y*this.m[1][2]+l.y*this.m[1][3],_.y=a.y*this.m[2][0]+o.y*this.m[2][1]+h.y*this.m[2][2]+l.y*this.m[2][3],p.y=a.y*this.m[3][0]+o.y*this.m[3][1]+h.y*this.m[3][2]+l.y*this.m[3][3],this._a.push(c),this._b.push(u),this._c.push(_),this._d.push(p)}}return e.prototype.calculatePoint=function(t){var e=Math.floor(t);e<0&&(e=0),e>this._len-2&&(e=this._len-2);var i=t-e;return{x:((this._a[e].x*i+this._b[e].x)*i+this._c[e].x)*i+this._d[e].x,y:((this._a[e].y*i+this._b[e].y)*i+this._c[e].y)*i+this._d[e].y}},e.prototype.calculate=function(){if(this._len<=3)return{xs:this._x,ys:this._y};var t=[],e=[],i=this.calculatePoint(0);t.push(i.x),e.push(i.y);for(var n=this._len*this.k,r=n;r<=this._len-1;r+=n){var s=this.calculatePoint(r);(Math.abs(i.x-s.x)>=3||Math.abs(i.y-s.y)>=3)&&(t.push(s.x),e.push(s.y),i=s)}return{xs:t,ys:e}},e}();e._Spline=i}(t.chart||(t.chart={}))}(wijmo||(wijmo={})),function(t){!function(t){"use strict";var e=function(){function t(){}return t._isExtended=function(e){return-1!==this._values(t.Diverging).indexOf(e)||-1!==this._values(t.Qualitative).indexOf(e)||-1!==this._values(t.SequentialSingle).indexOf(e)||-1!==this._values(t.SequentialMulti).indexOf(e)},t._values=function(t){return Object.keys(t).map(function(e){return t[e]})},t.standard=["#88bde6","#fbb258","#90cd97","#f6aac9","#bfa554","#bc99c7","#eddd46","#f07e6e","#8c8c8c"],t.cocoa=["#466bb0","#c8b422","#14886e","#b54836","#6e5944","#8b3872","#73b22b","#b87320","#141414"],t.coral=["#84d0e0","#f48256","#95c78c","#efa5d6","#ba8452","#ab95c2","#ede9d0","#e96b7d","#888888"],t.dark=["#005fad","#f06400","#009330","#e400b1","#b65800","#6a279c","#d5a211","#dc0127","#000000"],t.highcontrast=["#ff82b0","#0dda2c","#0021ab","#bcf28c","#19c23b","#890d3a","#607efd","#1b7700","#000000"],t.light=["#ddca9a","#778deb","#cb9fbb","#b5eae2","#7270be","#a6c7a7","#9e95c7","#95b0c7","#9b9b9b"],t.midnight=["#83aaca","#e37849","#14a46a","#e097da","#a26d54","#a584b7","#d89c54","#e86996","#2c343b"],t.modern=["#2d9fc7","#ec993c","#89c235","#e377a4","#a68931","#a672a6","#d0c041","#e35855","#68706a"],t.organic=["#9c88d9","#a3d767","#8ec3c0","#e9c3a9","#91ab36","#d4ccc0","#61bbd8","#e2d76f","#80715a"],t.slate=["#7493cd","#f99820","#71b486","#e4a491","#cb883b","#ae83a4","#bacc5c","#e5746a","#505d65"],t.zen=["#7bb5ae","#e2d287","#92b8da","#eac4cb","#7b8bbd","#c7d189","#b9a0c8","#dfb397","#a9a9a9"],t.cyborg=["#2a9fd6","#77b300","#9933cc","#ff8800","#cc0000","#00cca3","#3d6dcc","#525252","#000000"],t.superhero=["#5cb85c","#f0ad4e","#5bc0de","#d9534f","#9f5bde","#46db8c","#b6b86e","#4e5d6c","#2b3e4b"],t.flatly=["#18bc9c","#3498db","#f39c12","#6cc1be","#99a549","#8f54b5","#e74c3c","#8a9899","#2c3e50"],t.darkly=["#375a7f","#00bc8c","#3498db","#f39c12","#e74c3c","#8f61b3","#b08725","#4a4949","#000000"],t.cerulan=["#033e76","#87c048","#59822c","#53b3eb","#fc6506","#d42323","#e3bb00","#cccccc","#222222"],t.Qualitative={Accent:["#7fc97f","#beaed4","#fdc086","#ffff99","#386cb0","#f0027f","#bf5b17","#666666"],Dark2:["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02","#a6761d","#666666"],Paired:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00"],Pastel1:["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6","#ffffcc","#e5d8bd","#fddaec"],Pastel2:["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4","#e6f5c9","#fff2ae","#f1e2cc","#cccccc"],Set1:["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33","#a65628","#f781bf"],Set2:["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854","#ffd92f","#e5c494","#b3b3b3"],Set3:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5"]},t.Diverging={BrBG:["#543005","#8c510a","#bf812d","#dfc27d","#f6e8c3","#f5f5f5","#c7eae5","#80cdc1","#35978f","#01665e","#003c30"],PiYG:["#8e0152","#c51b7d","#de77ae","#f1b6da","#fde0ef","#f7f7f7","#e6f5d0","#b8e186","#7fbc41","#4d9221","#276419"],PRGn:["#40004b","#762a83","#9970ab","#c2a5cf","#e7d4e8","#f7f7f7","#d9f0d3","#a6dba0","#5aae61","#1b7837","#00441b"],PuOr:["#7f3b08","#b35806","#e08214","#fdb863","#fee0b6","#f7f7f7","#d8daeb","#b2abd2","#8073ac","#542788","#2d004b"],RdBu:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#f7f7f7","#d1e5f0","#92c5de","#4393c3","#2166ac","#053061"],RdGy:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#ffffff","#e0e0e0","#bababa","#878787","#4d4d4d","#1a1a1a"],RdYlBu:["#a50026","#d73027","#f46d43","#fdae61","#fee090","#ffffbf","#e0f3f8","#abd9e9","#74add1","#4575b4","#313695"],RdYlGn:["#a50026","#d73027","#f46d43","#fdae61","#fee08b","#ffffbf","#d9ef8b","#a6d96a","#66bd63","#1a9850","#006837"],Spectral:["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"]},t.SequentialSingle={Blues:["#f7fbff","#deebf7","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#08519c","#08306b"],Greens:["#f7fcf5","#e5f5e0","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#006d2c","#00441b"],Greys:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"],Oranges:["#fff5eb","#fee6ce","#fdd0a2","#fdae6b","#fd8d3c","#f16913","#d94801","#a63603","#7f2704"],Purples:["#fcfbfd","#efedf5","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#54278f","#3f007d"],Reds:["#fff5f0","#fee0d2","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#a50f15","#67000d"]},t.SequentialMulti={BuGn:["#f7fcfd","#e5f5f9","#ccece6","#99d8c9","#66c2a4","#41ae76","#238b45","#006d2c","#00441b"],BuPu:["#f7fcfd","#e0ecf4","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b"],GnBu:["#f7fcf0","#e0f3db","#ccebc5","#a8ddb5","#7bccc4","#4eb3d3","#2b8cbe","#0868ac","#084081"],OrRd:["#fff7ec","#fee8c8","#fdd49e","#fdbb84","#fc8d59","#ef6548","#d7301f","#b30000","#7f0000"],PuBu:["#fff7fb","#ece7f2","#d0d1e6","#a6bddb","#74a9cf","#3690c0","#0570b0","#045a8d","#023858"],PuBuGn:["#fff7fb","#ece2f0","#d0d1e6","#a6bddb","#67a9cf","#3690c0","#02818a","#016c59","#014636"],PuRd:["#f7f4f9","#e7e1ef","#d4b9da","#c994c7","#df65b0","#e7298a","#ce1256","#980043","#67001f"],RdPu:["#fff7f3","#fde0dd","#fcc5c0","#fa9fb5","#f768a1","#dd3497","#ae017e","#7a0177","#49006a"],YlGn:["#ffffe5","#f7fcb9","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#006837","#004529"],YlGnBu:["#ffffd9","#edf8b1","#c7e9b4","#7fcdbb","#41b6c4","#1d91c0","#225ea8","#253494","#081d58"],YlOrBr:["#ffffe5","#fff7bc","#fee391","#fec44f","#fe9929","#ec7014","#cc4c02","#993404","#662506"],YlOrRd:["#ffffcc","#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#bd0026","#800026"]},t}();t.Palettes=e}(t.chart||(t.chart={}))}(wijmo||(wijmo={})),function(t){!function(t){"use strict"}(t.chart||(t.chart={}))}(wijmo||(wijmo={})),function(t){!function(e){"use strict";var i=function(){function e(e){this._row=0,this._col=0,this._rect=new t.Rect(0,0,0,0),t.copy(this,e)}return Object.defineProperty(e.prototype,"row",{get:function(){return this._row},set:function(e){e!=this._row&&(this._row=t.asInt(e,!0,!0),this._invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"column",{get:function(){return this._col},set:function(e){e!=this._col&&(this._col=t.asInt(e,!0,!0),this._invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this._name},set:function(e){e!=this._name&&(this._name=t.asString(e,!0))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this._width},set:function(t){t!=this._width&&(this._width=t,this._invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this._height},set:function(t){t!=this._height&&(this._height=t,this._invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"style",{get:function(){return this._style},set:function(t){t!=this._style&&(this._style=t,this._invalidate())},enumerable:!0,configurable:!0}),e.prototype._invalidate=function(){this._chart&&this._chart.invalidate()},e.prototype._render=function(t){t.drawRect(this._rect.left,this._rect.top,this._rect.width,this._rect.height,null,this.style)},e.prototype._setPlotX=function(t,e){this._rect.left=t,this._rect.width=e},e.prototype._setPlotY=function(t,e){this._rect.top=t,this._rect.height=e},e}();e.PlotArea=i;var n,r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.getPlotArea=function(t){var e=this.indexOf(t);return e>-1?this[e]:null},e.prototype.indexOf=function(t){for(var e=0;e<this.length;e++)if(this[e].name==t)return e;return-1},e.prototype._getWidth=function(t){for(var e=0;e<this.length;e++){var i=this[e];if(i.column==t&&0==i.row)return i.width}},e.prototype._getHeight=function(t){for(var e=0;e<this.length;e++){var i=this[e];if(i.row==t&&0==i.column)return i.height}},e.prototype._calculateWidths=function(t,e){if(e<=0)throw"ncols";for(var i=[],n=0;n<e;n++){var r=this._getWidth(n);i[n]=new s(r)}return this._calculateLengths(t,e,i)},e.prototype._calculateHeights=function(t,e){if(e<=0)throw"nrows";for(var i=[],n=0;n<e;n++){var r=this._getHeight(n);i[n]=new s(r)}return this._calculateLengths(t,e,i)},e.prototype._calculateLengths=function(t,e,i){for(var n=[e],r=0,s=0,a=0;a<e;a++)i[a].isAbsolute?(n[a]=i[a].value,r+=n[a]):i[a].isStar?s+=i[a].value:i[a].isAuto&&s++;var o=(t-r)/s;for(a=0;a<e;a++)i[a].isStar?n[a]=o*i[a].value:i[a].isAuto&&(n[a]=o),n[a]<0&&(n[a]=0);return n},e}(t.collections.ObservableArray);e.PlotAreaCollection=r,function(t){t[t.Auto=0]="Auto",t[t.Pixel=1]="Pixel",t[t.Star=2]="Star"}(n||(n={}));var s=function(){function t(t){void 0===t&&(t=null),this._unitType=n.Auto,t&&((t=t.toString()).indexOf("*")>=0?(this._unitType=n.Star,t=t.replace("*",""),this._value=parseFloat(t),isNaN(this._value)&&(this._value=1)):(this._unitType=n.Pixel,this._value=parseFloat(t),isNaN(this._value)&&(this._unitType=n.Auto,this._value=1)))}return Object.defineProperty(t.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isStar",{get:function(){return this._unitType==n.Star},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isAbsolute",{get:function(){return this._unitType==n.Pixel},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isAuto",{get:function(){return this._unitType==n.Auto},enumerable:!0,configurable:!0}),t}()}(t.chart||(t.chart={}))}(wijmo||(wijmo={})),function(t){!function(e){"use strict";var i=function(){function i(e){this._strokeWidth=1,this._fontSize=null,this._fontFamily=null,this._savedGradient={},this._bbCache={},this._baseUrl="",this._cssPriority=!0,this._readOnly=!1,this._isRtl=!1,this._precision=1,this._element=e,this._create(),this._element&&this._element.appendChild(this._svg);var n=navigator.userAgent.toLowerCase();void 0===i._isff&&(i._isff=n.indexOf("firefox")>=0),void 0===i._isSafari&&(i._isSafari=n.indexOf("safari")>-1&&-1==n.indexOf("chrome")),this._baseUrl=window.location.pathname.replace(window.location.hash,""),"file:"==window.location.protocol&&(t.isIE()||t.isEdge())&&(this._baseUrl="file:"+this._baseUrl)}return i.prototype.attach=function(t){this._element=t,t&&(t.insertBefore(this._svg,t.childNodes[0]),t.appendChild(this._svg))},i.prototype.detach=function(){for(this._element&&this._element.removeChild(this._svg);this._svg.firstChild;)t.removeChild(this._svg.firstChild)},i.prototype.beginRender=function(){for(;this._svg.firstChild;)t.removeChild(this._svg.firstChild);this._savedGradient={},this._bbCache={},this._svg.appendChild(this._defs),this._svg.appendChild(this._textGroup),this._isRtl=this._checkRtl()},i.prototype.endRender=function(){t.removeChild(this._textGroup)},i.prototype.setViewportSize=function(t,e){this._svg.setAttribute("width",t.toString()),this._svg.setAttribute("height",e.toString())},Object.defineProperty(i.prototype,"element",{get:function(){return this._svg},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"fill",{get:function(){return this._fill},set:function(t){this._fill=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"fontSize",{get:function(){return this._fontSize},set:function(t){this._fontSize=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"fontFamily",{get:function(){return this._fontFamily},set:function(t){this._fontFamily=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"stroke",{get:function(){return this._stroke},set:function(t){this._stroke=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"strokeWidth",{get:function(){return this._strokeWidth},set:function(t){this._strokeWidth=void 0===t?null:t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"textFill",{get:function(){return this._textFill},set:function(t){this._textFill=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"cssPriority",{get:function(){return this._cssPriority},set:function(t){this._cssPriority=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"readOnly",{get:function(){return this._readOnly},set:function(t){this._readOnly=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"precision",{get:function(){return this._precision},set:function(e){this._precision=t.asNumber(e)},enumerable:!0,configurable:!0}),i.prototype.addClipRect=function(t,e){if(t&&e){var n=this.precision,r=document.createElementNS(i.svgNS,"clipPath"),s=document.createElementNS(i.svgNS,"rect");s.setAttribute("x",(t.left-1).toFixed(n)),s.setAttribute("y",(t.top-1).toFixed(n)),s.setAttribute("width",(t.width+2).toFixed(n)),s.setAttribute("height",(t.height+2).toFixed(n)),r.appendChild(s),r.setAttribute("id",e),this._svg.appendChild(r)}},i.prototype.drawEllipse=function(t,e,n,r,s,a){var o=document.createElementNS(i.svgNS,"ellipse"),h=this.precision;return this._applyColor(o,"stroke",this._stroke),null!==this._strokeWidth&&this._setAttribute(o,"stroke-width",this._strokeWidth.toString()),this._applyColor(o,"fill",this._fill),o.setAttribute("cx",t.toFixed(h)),o.setAttribute("cy",e.toFixed(h)),o.setAttribute("rx",n.toFixed(h)),o.setAttribute("ry",r.toFixed(h)),s&&o.setAttribute("class",s),this._applyStyle(o,a),this._appendChild(o),o},i.prototype.drawRect=function(t,e,n,r,s,a,o){var h=document.createElementNS(i.svgNS,"rect"),l=this.precision;return this._applyColor(h,"fill",this._fill),this._applyColor(h,"stroke",this._stroke),null!==this._strokeWidth&&this._setAttribute(h,"stroke-width",this._strokeWidth.toString()),h.setAttribute("x",t.toFixed(l)),h.setAttribute("y",e.toFixed(l)),n>0&&n<.05?h.setAttribute("width","0.1"):h.setAttribute("width",n.toFixed(l)),r>0&&r<.05?h.setAttribute("height","0.1"):h.setAttribute("height",r.toFixed(l)),o&&this._setClipPath(h,o),s&&h.setAttribute("class",s),this._applyStyle(h,a),this._appendChild(h),h},i.prototype.drawLine=function(t,e,n,r,s,a){var o=document.createElementNS(i.svgNS,"line"),h=this.precision;return this._applyColor(o,"stroke",this._stroke),null!==this._strokeWidth&&this._setAttribute(o,"stroke-width",this._strokeWidth.toString()),o.setAttribute("x1",t.toFixed(h)),o.setAttribute("x2",n.toFixed(h)),o.setAttribute("y1",e.toFixed(h)),o.setAttribute("y2",r.toFixed(h)),s&&o.setAttribute("class",s),this._applyStyle(o,a),this._appendChild(o),o},i.prototype.drawLines=function(t,e,n,r,s,a){if(t&&e){var o=a||Math.min(t.length,e.length);if(o>0){var h=document.createElementNS(i.svgNS,"polyline"),l=this.precision;this._applyColor(h,"stroke",this._stroke),null!==this._strokeWidth&&this._setAttribute(h,"stroke-width",this._strokeWidth.toString()),h.setAttribute("fill","none");for(var c="",u=0;u<o;u++)c+=t[u].toFixed(l)+","+e[u].toFixed(l)+" ";return h.setAttribute("points",c),n&&h.setAttribute("class",n),s&&this._setClipPath(h,s),this._applyStyle(h,r),this._appendChild(h),h}}return null},i.prototype.drawSplines=function(t,n,r,s,a,o){if(t&&n){var h=new e._Spline(t,n,o).calculate(),l=h.xs,c=h.ys,u=Math.min(l.length,c.length);if(u>0){var _=document.createElementNS(i.svgNS,"polyline"),p=this.precision;this._applyColor(_,"stroke",this._stroke),null!==this._strokeWidth&&this._setAttribute(_,"stroke-width",this._strokeWidth.toString()),_.setAttribute("fill","none");for(var d="",f=0;f<u;f++)d+=l[f].toFixed(p)+","+c[f].toFixed(p)+" ";return _.setAttribute("points",d),r&&_.setAttribute("class",r),a&&this._setClipPath(_,a),this._applyStyle(_,s),this._appendChild(_),_}}return null},i.prototype.drawPolygon=function(t,e,n,r,s){if(t&&e){var a=Math.min(t.length,e.length);if(a>0){var o=document.createElementNS(i.svgNS,"polygon"),h=this.precision;this._applyColor(o,"stroke",this._stroke),null!==this._strokeWidth&&this._setAttribute(o,"stroke-width",this._strokeWidth.toString()),this._applyColor(o,"fill",this._fill);for(var l="",c=0;c<a;c++)l+=t[c].toFixed(h)+","+e[c].toFixed(h)+" ";return o.setAttribute("points",l),n&&o.setAttribute("class",n),s&&this._setClipPath(o,s),this._applyStyle(o,r),this._appendChild(o),o}}return null},i.prototype.drawPieSegment=function(e,n,r,s,a,o,h,l){if(a>=2*Math.PI)return this.drawEllipse(e,n,r,r,o,h);var c=document.createElementNS(i.svgNS,"path"),u=this.precision;this._applyColor(c,"fill",this._fill),this._applyColor(c,"stroke",this._stroke),null!==this._strokeWidth&&this._setAttribute(c,"stroke-width",this._strokeWidth.toString());var _=new t.Point(e,n);_.x+=r*Math.cos(s),_.y+=r*Math.sin(s);var p=s+a,d=new t.Point(e,n);d.x+=r*Math.cos(p),d.y+=r*Math.sin(p);var f=" 0 0,1 ";Math.abs(a)>Math.PI&&(f=" 0 1,1 ");var g="M "+_.x.toFixed(u)+","+_.y.toFixed(u);return g+=" A "+r.toFixed(u)+","+r.toFixed(u)+f,g+=d.x.toFixed(u)+","+d.y.toFixed(u),g+=" L "+e.toFixed(u)+","+n.toFixed(u)+" z",c.setAttribute("d",g),l&&this._setClipPath(c,l),o&&c.setAttribute("class",o),this._applyStyle(c,h),this._appendChild(c),c},i.prototype.drawDonutSegment=function(e,n,r,s,a,o,h,l,c){var u=!1;o>=2*Math.PI&&(u=!0,o-=.001);var _=document.createElementNS(i.svgNS,"path"),p=this.precision+2;this._applyColor(_,"fill",this._fill),this._applyColor(_,"stroke",this._stroke),null!==this._strokeWidth&&this._setAttribute(_,"stroke-width",this._strokeWidth.toString());var d=new t.Point(e,n);d.x+=r*Math.cos(a),d.y+=r*Math.sin(a);var f=a+o,g=new t.Point(e,n);g.x+=r*Math.cos(f),g.y+=r*Math.sin(f);var m=new t.Point(e,n);m.x+=s*Math.cos(f),m.y+=s*Math.sin(f);var y=new t.Point(e,n);y.x+=s*Math.cos(a),y.y+=s*Math.sin(a);var b=" 0 0,1 ",v=" 0 0,0 ";Math.abs(o)>Math.PI&&(b=" 0 1,1 ",v=" 0 1,0 ");var x="M "+d.x.toFixed(p)+","+d.y.toFixed(p);return x+=" A "+r.toFixed(p)+","+r.toFixed(p)+b,x+=g.x.toFixed(p)+","+g.y.toFixed(p),x+=u?" M "+m.x.toFixed(p)+","+m.y.toFixed(p):" L "+m.x.toFixed(p)+","+m.y.toFixed(p),x+=" A "+s.toFixed(p)+","+s.toFixed(p)+v,x+=y.x.toFixed(p)+","+y.y.toFixed(p),u||(x+=" z"),_.setAttribute("d",x),c&&this._setClipPath(_,c),h&&_.setAttribute("class",h),this._applyStyle(_,l),this._appendChild(_),_},i.prototype.drawString=function(e,i,n,r){var s=this._createText(i,e),a=this.precision;n&&s.setAttribute("class",n),this._applyStyle(s,r),this._appendChild(s);var o,h=this._getKey(e,n,this._groupCls);return this._bbCache[h]?(o=this._bbCache[h],s.setAttribute("y",(i.y-(o.y+o.height)).toFixed(a))):(o=this._getBBox(s),s.setAttribute("y",(i.y-(o.y+o.height-i.y)).toFixed(a))),this._isRtl&&!t.isIE()&&s.setAttribute("x",(i.x+o.width).toFixed(a)),s},i.prototype.drawStringRotated=function(e,n,r,s,a,o){var h=this._createText(n,e),l=this.precision;a&&h.setAttribute("class",a),this._applyStyle(h,o);var c=document.createElementNS(i.svgNS,"g");c.setAttribute("transform","rotate("+s.toFixed(l)+","+r.x.toFixed(l)+","+r.y.toFixed(l)+")"),c.appendChild(h),this._appendChild(c);var u=this._getBBox(h);return h.setAttribute("y",(n.y-(u.y+u.height-n.y)).toFixed(l)),this._isRtl&&!t.isIE()&&h.setAttribute("x",(n.x+u.width).toFixed(l)),h},i.prototype.measureString=function(e,i,n,r){var s=new t.Size(0,0);if(!this._fontFamily&&!this._fontSize){var a=this._getKey(e,i,n);if(this._bbCache[a])return this._bbCache[a]}if(this.cssPriority)this._fontSize&&this._text.setAttribute("font-size",this._fontSize),this._fontFamily&&this._text.setAttribute("font-family",this._fontFamily);else{var o="";this._fontSize&&(o+="font-size:"+this._fontSize+";"),this._fontFamily&&(o+="font-family:"+this._fontFamily+";"),o.length>0&&this._text.setAttribute("style",o)}i&&this._text.setAttribute("class",i),n&&this._textGroup.setAttribute("class",n),this._applyStyle(this._text,r),this._setText(this._text,e);var h=this._getBBox(this._text);if(s.width=h.width,s.height=h.height,this._text.removeAttribute("font-size"),this._text.removeAttribute("font-family"),this._text.removeAttribute("class"),this._text.removeAttribute("style"),r)for(var l in r)this._text.removeAttribute(this._deCase(l));if(this._textGroup.removeAttribute("class"),this._text.textContent=null,!this._fontFamily&&!this._fontSize){var c=this._getKey(e,i,n);this._bbCache[c]={x:h.x,y:h.y+1e3,width:h.width,height:h.height}}return s},i.prototype.startGroup=function(t,e,n){void 0===n&&(n=!1);var r=document.createElementNS(i.svgNS,"g");return t&&(r.setAttribute("class",t),this._groupCls=t),e&&this._setClipPath(r,e),this._appendChild(r),n&&r.transform.baseVal.appendItem(this._svg.createSVGTransform()),this._group=r,r},i.prototype.endGroup=function(){if(this._group){var t=this._group.parentNode;t==this._svg?(this._group=null,this._groupCls=null):(this._group=t,this._groupCls=this._getClass(this._group))}},i.prototype.drawImage=function(t,e,n,r,s){var a=document.createElementNS(i.svgNS,"image"),o=this.precision;return a.setAttributeNS(i.xlinkNS,"href",t),a.setAttribute("x",e.toFixed(o)),a.setAttribute("y",n.toFixed(o)),a.setAttribute("width",r.toFixed(o)),a.setAttribute("height",s.toFixed(o)),this._appendChild(a),a},i.prototype._setClipPath=function(e,n){e.setAttribute("clip-path","url(#"+n+")"),i._isSafari&&t.setCss(e,{"-webkit-clip-path":"url(#"+n+")"})},i.prototype._appendChild=function(t){if(!this.readOnly){var e=this._group;e||(e=this._svg),e.appendChild(t)}},i.prototype._create=function(){this._svg=document.createElementNS(i.svgNS,"svg"),this._defs=document.createElementNS(i.svgNS,"defs"),this._svg.appendChild(this._defs),this._text=this._createText(new t.Point(-1e3,-1e3),""),this._textGroup=document.createElementNS(i.svgNS,"g"),this._textGroup.appendChild(this._text),this._svg.appendChild(this._textGroup)},i.prototype._setText=function(t,e){var i=e?e.toString():null;if(i&&i.indexOf("tspan")>=0)try{t.textContent=null;for(var n=new DOMParser,r='<svg xmlns="http://www.w3.org/2000/svg">'+i+"</svg>",s=n.parseFromString(r,"text/xml").documentElement.firstChild;s;)t.appendChild(t.ownerDocument.importNode(s,!0)),s=s.nextSibling}catch(t){throw new Error("Error parsing XML string.")}else t.textContent=i},i.prototype._getKey=function(t,e,i){return t+(e||"")+(i||"")},i.prototype._createText=function(t,e){var n=document.createElementNS(i.svgNS,"text"),r=this.precision;if(this._setText(n,e),n.setAttribute("x",t.x.toFixed(r)),n.setAttribute("y",t.y.toFixed(r)),this.cssPriority)null!=this._textFill&&n.setAttribute("fill",this._textFill),this._fontSize&&n.setAttribute("font-size",this._fontSize),this._fontFamily&&n.setAttribute("font-family",this._fontFamily);else{var s="";null!=this._textFill&&(s+="fill:"+this._textFill+";"),this._fontSize&&(s+="font-size:"+this._fontSize+";"),this._fontFamily&&(s+="font-family:"+this._fontFamily+";"),s.length>0&&n.setAttribute("style",s)}return n},i.prototype._applyStyle=function(t,e){if(e)for(var i in e)"fill"===i||"stroke"===i?this._applyColor(t,i,e[i]):t.setAttribute(this._deCase(i),e[i])},i.prototype._deCase=function(t){return t.replace(/[A-Z]/g,function(t){return"-"+t.toLowerCase()})},i.prototype._getClass=function(t){var e;if(t)for(var i=t;i&&!(e=i.getAttribute("class"));i=i.parentNode);return e},i.prototype._getBBox=function(t){if(!i._isff)return t.getBBox();try{return t.getBBox()}catch(t){return{x:0,y:0,width:0,height:0}}},i.prototype._applyColor=function(e,r,s){var a=n.tryParse(s);if(null!=a){if(!t.isString(a)){if(null==this._savedGradient[s]){var o,h="gc"+(1e6*Math.random()).toFixed();null!=a.x1?(o=document.createElementNS(i.svgNS,"linearGradient"),["x1","y1","x2","y2","gradientUnits"].forEach(function(t){null!=a[t]&&o.setAttribute(t,a[t])})):null!=a.r&&(o=document.createElementNS(i.svgNS,"radialGradient"),["cx","cy","r","fx","fy","fr","gradientUnits"].forEach(function(t){null!=a[t]&&o.setAttribute(t,a[t])})),a.colors&&a.colors&&a.colors.length>0&&a.colors.forEach(function(t){var e=document.createElementNS(i.svgNS,"stop");null!=t.color&&e.setAttribute("stop-color",t.color),null!=t.offset&&e.setAttribute("offset",t.offset),null!=t.opacity&&e.setAttribute("stop-opacity",t.opacity),o.appendChild(e)}),o.setAttribute("id",h),this._defs.appendChild(o),this._savedGradient[s]=h}a="url("+this._baseUrl+"#"+this._savedGradient[s]+")"}this.cssPriority?e.setAttribute(r,a):this._addInlineStyle(e,r,a)}},i.prototype._addInlineStyle=function(t,e,i){var n=t.getAttribute("style");n?t.setAttribute("style",n+e+":"+i+";"):t.setAttribute("style",e+":"+i+";")},i.prototype._setAttribute=function(t,e,i){this.cssPriority?t.setAttribute(e,i):this._addInlineStyle(t,e,i)},i.prototype._checkRtl=function(){return this._element&&t.hasClass(this._element,"wj-rtl")},i.svgNS="http://www.w3.org/2000/svg",i.xlinkNS="http://www.w3.org/1999/xlink",i}();e._SvgRenderEngine=i;var n=function(){function t(){}return t.tryParse=function(e){if(t.parsedColor[e])return t.parsedColor[e];if(null==e||-1===e.indexOf("-")||-1!==e.indexOf("var("))return e;var i,n=e.replace(/\s+/g,"").split(/\-/g),r=n[0][0],s=!1,a=n[0].match(/\(\S+\)/);if(!a||0==a.length)return e;var o=a[0].replace(/[\(\\)]/g,"").split(/\,/g);"l"===r||"L"===r?(i={x1:"0",y1:"0",x2:"0",y2:"0",colors:[]},"l"===r&&(s=!0),["x1","y1","x2","y2"].forEach(function(t,e){null!=o[e]&&(i[t]=s?100*+o[e]+"%":o[e]+"")})):"r"!==r&&"R"!==r||(i={cx:"0",cy:"0",r:"0",colors:[]},"r"===r&&(s=!0),["cx","cy","r","fx","fy","fr"].forEach(function(t,e){null!=o[e]&&""!==o[e]&&(i[t]=s?100*+o[e]+"%":o[e]+"")})),s||(i.gradientUnits="userSpaceOnUse"),t.parsedColor[e]=i;var h=n.length-1;return n.forEach(function(t,e){t.indexOf(")")>-1&&(t=t.match(/\)\S+/)[0].replace(")",""));var n=t.split(":"),r={color:"black"};null!=n[0]&&(r.color=n[0]),null!=n[1]?r.offset=s?100*+n[1]+"%":n[1]+"":r.offset=e/h*100+"%",null!=n[2]&&(r.opacity=n[2]),i.colors.push(r)}),i},t.parsedColor={},t}(),r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e}(i);e.SvgRenderEngine=r}(t.chart||(t.chart={}))}(wijmo||(wijmo={})),function(t){!function(e){"use strict";var i=function(){function i(i){this._position=e.Position.Right,this._title="",this._titleAlign="left",this._titlePadding=5,this._areas=new Array,this._sz=new t.Size,this._colRowLens=[],this._orient=e.Orientation.Auto,this._chart=i}return Object.defineProperty(i.prototype,"position",{get:function(){return this._position},set:function(i){(i=t.asEnum(i,e.Position))!=this._position&&(this._position=i,this._invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"title",{get:function(){return this._title},set:function(e){e!=this._title&&(this._title=t.asString(e,!1),this._invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"titleAlign",{get:function(){return this._titleAlign},set:function(e){if(e!=this._titleAlign){var i=t.asString(e,!1);this._titleAlign="right"===i?"right":"center"===i?"center":"left",this._invalidate()}},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"orientation",{get:function(){return this._orient},set:function(i){(i=t.asEnum(i,e.Orientation))!=this._orient&&(this._orient=i,this._invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"maxSize",{get:function(){return this._maxSz},set:function(i){if(i!=this._maxSz){if(t.isNumber(i))this._maxSz=i;else if(t.isString(i)){var n=t.asString(i);t.assert(e.FlexChartBase._endsWith(n,"px")||e.FlexChartBase._endsWith(n,"%"),"number with unit (px or %) expected."),this._maxSz=n}else i&&t.assert(!1,"number or string expected.");this._invalidate()}},enumerable:!0,configurable:!0}),i.prototype._getDesiredSize=function(t,i,n,r){if(i==e.Position.None)return null;var s=this.orientation==e.Orientation.Auto?i==e.Position.Right||i==e.Position.Left:this.orientation==e.Orientation.Vertical,a=this._chart._getDesiredLegendSize(t,s,n,r);if(null!=a){if(this.title.length>0){var o=t.measureString(this.title,"wj-title","wj-legend");a.height+=o.height+this._titlePadding,o.width>a.width&&(a.width=o.width)}this._sz=a}return a},i.prototype._getPosition=function(t,i){return this.position==e.Position.Auto?t>=i?e.Position.Right:e.Position.Bottom:this.position},i.prototype._render=function(t,i,n,r,s){this._areas=[];var a=this.orientation==e.Orientation.Auto?n==e.Position.Right||n==e.Position.Left:this.orientation==e.Orientation.Vertical;if(t.fill="transparent",t.stroke=null,t.drawRect(i.x,i.y,this._sz.width,this._sz.height),this.title.length){var o=i.clone(),h=t.measureString(this.title,"wj-title`");o.y+=h.height,"right"===this.titleAlign?o.x=i.x+r-h.width:"center"===this.titleAlign&&(o.x=i.x+.5*(r-h.width)),t.drawString(this.title,o,"wj-title");var l=h.height+this._titlePadding;i.y+=l,s-=l}this._chart._renderLegend(t,i,this._areas,a,r,s)},i.prototype._hitTest=function(t){for(var i=this._areas,n=0;n<i.length;n++)if(i[n]&&e.FlexChartBase._contains(i[n],t))return n;return null},i.prototype._invalidate=function(){this._chart&&this._chart.invalidate()},i.prototype._getMaxSize=function(i){var n=this.maxSize;if(t.isNumber(n)){if((s=t.asNumber(n,!0))>0)return Math.min(s,i)}else{var r=t.asString(n,!0);if(r)if(e.FlexChartBase._endsWith(r,"px")){if((s=parseFloat(r.replace("px","")))>0)return Math.min(s,i)}else if(e.FlexChartBase._endsWith(r,"%")){var s;if((s=parseFloat(r.replace("%","")))>0)return i*Math.min(s,100)/100}}return.5*i},i}();e.Legend=i}(t.chart||(t.chart={}))}(wijmo||(wijmo={})),function(t){!function(e){"use strict";var i=function(){return function(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this.x=t,this.y=e}}();e.DataPoint=i;var n=function(t){function e(e){var i=t.call(this)||this;return i._engine=e,i}return __extends(e,t),Object.defineProperty(e.prototype,"engine",{get:function(){return this._engine},enumerable:!0,configurable:!0}),e}(t.CancelEventArgs);e.RenderEventArgs=n;var r,s,a,o=function(t){function e(e,i,n){var r=t.call(this,e)||this;return r._index=i,r._count=n,r}return __extends(e,t),Object.defineProperty(e.prototype,"index",{get:function(){return this._index},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"count",{get:function(){return this._count},enumerable:!0,configurable:!0}),e}(n);e.SeriesRenderingEventArgs=o,function(t){t[t.Png=0]="Png",t[t.Jpeg=1]="Jpeg",t[t.Svg=2]="Svg"}(r=e.ImageFormat||(e.ImageFormat={})),function(t){t[t.None=0]="None",t[t.Series=1]="Series",t[t.Point=2]="Point"}(s=e.SelectionMode||(e.SelectionMode={})),function(t){t[t.None=0]="None",t[t.Left=1]="Left",t[t.Top=2]="Top",t[t.Right=3]="Right",t[t.Bottom=4]="Bottom",t[t.Auto=5]="Auto"}(a=e.Position||(e.Position={})),function(t){t[t.Auto=0]="Auto",t[t.Vertical=1]="Vertical",t[t.Horizontal=2]="Horizontal"}(e.Orientation||(e.Orientation={}));var h=function(i){function n(){var n=null!==i&&i.apply(this,arguments)||this;return n._palette=null,n._selectionMode=s.None,n._defPalette=e.Palettes.standard,n._notifyCurrentChanged=!0,n._legendHost=null,n._needBind=!1,n._skipLightClr=!1,n.rendering=new t.Event,n.rendered=new t.Event,n.itemsSourceChanging=new t.Event,n.itemsSourceChanged=new t.Event,n.selectionChanged=new t.Event,n}return __extends(n,i),Object.defineProperty(n.prototype,"itemsSource",{get:function(){return this._items},set:function(e){if(this._items!=e){var i=new t.CancelEventArgs;if(!this.onItemsSourceChanging(i))return;this._cv&&(this._cv.currentChanged.removeHandler(this._cvCurrentChanged,this),this._cv.collectionChanged.removeHandler(this._cvCollectionChanged,this),this._cv=null),this._items=e,this._cv=t.asCollectionView(e),null!=this._cv&&(this._cv.currentChanged.addHandler(this._cvCurrentChanged,this),this._cv.collectionChanged.addHandler(this._cvCollectionChanged,this)),this._clearCachedValues(),this.onItemsSourceChanged(i),this._bindChart()}},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"collectionView",{get:function(){return this._cv},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"palette",{get:function(){return this._palette},set:function(i){i!=this._palette&&(this._palette=t.asArray(i),this._skipLightClr=e.Palettes._isExtended(this._palette),this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"plotMargin",{get:function(){return this._plotMargin},set:function(t){t!=this._plotMargin&&(this._plotMargin=t,this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"legend",{get:function(){return this._legend},set:function(i){i!=this._legend&&(this._legend=t.asType(i,e.Legend),null!=this._legend&&(this._legend._chart=this))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"header",{get:function(){return this._header},set:function(e){e!=this._header&&(this._header=t.asString(e,!0),this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"footer",{get:function(){return this._footer},set:function(e){e!=this._footer&&(this._footer=t.asString(e,!0),this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"headerStyle",{get:function(){return this._headerStyle},set:function(t){t!=this._headerStyle&&(this._headerStyle=t,this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"footerStyle",{get:function(){return this._footerStyle},set:function(t){t!=this._footerStyle&&(this._footerStyle=t,this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"selectionMode",{get:function(){return this._selectionMode},set:function(e){(e=t.asEnum(e,s))!=this._selectionMode&&(this._selectionMode=e,this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"itemFormatter",{get:function(){return this._itemFormatter},set:function(e){e!=this._itemFormatter&&(this._itemFormatter=t.asFunction(e),this.invalidate())},enumerable:!0,configurable:!0}),n.prototype.onRendering=function(t){this.rendering.raise(this,t)},n.prototype.onRendered=function(t){this.rendered.raise(this,t)},n.prototype.onItemsSourceChanging=function(t){return this.itemsSourceChanging.raise(this,t),!t.cancel},n.prototype.onItemsSourceChanged=function(t){this.itemsSourceChanged.raise(this,t)},n.prototype.saveImageToFile=function(t){var e,i,n,s;t&&0!==t.length&&-1!==t.indexOf(".")||(t="image.png"),s=t.split("."),e=s[0],i=s[1].toLowerCase(),n=r[i[0].toUpperCase()+i.substring(1)],this.saveImageToDataUrl(n,function(t){c.downloadImage(t,e,i)})},n.prototype.saveImageToDataUrl=function(e,i){var n=t.asEnum(e,r,!1),s=r[n].toLowerCase();s&&s.length&&this._exportToImage(s,function(t){i.call(i,t)})},n.prototype._exportToImage=function(e,i){var n,r=this,s=new Image,a=this._currentRenderEngine.element;n=c.getDataUri(a,this),"svg"===e?i.call(null,n):(s.onload=function(){var n,o=document.createElement("canvas"),h=a.parentNode||a,l=t.getElementRect(h);o.width=l.width,o.height=l.height;var c=o.getContext("2d"),u=r._bgColor(r.hostElement);r._isTransparent(u)&&(u="#ffffff"),c.fillStyle=u,c.fillRect(0,0,l.width,l.height);var _=window.getComputedStyle(h,null).getPropertyValue("padding-left").replace("px",""),p=window.getComputedStyle(h,null).getPropertyValue("padding-top").replace("px","");c.drawImage(s,+_||0,+p||0),n=o.toDataURL("image/"+e),i.call(null,n),o=null},s.src=n)},n.prototype.refresh=function(t){void 0===t&&(t=!0),i.prototype.refresh.call(this,t),this.isUpdating||this._refreshChart()},n.prototype.onSelectionChanged=function(t){this.selectionChanged.raise(this,t)},n.prototype.onLostFocus=function(t){this._tooltip&&this._tooltip.isVisible&&this._tooltip.hide(),i.prototype.onLostFocus.call(this,t)},n.prototype._cvCollectionChanged=function(t,e){this._clearCachedValues(),this._bindChart()},n.prototype._cvCurrentChanged=function(t,e){this._notifyCurrentChanged&&this._bindChart()},n.prototype._bgColor=function(t){if(!t)return"transparent";var e=getComputedStyle(t).backgroundColor;return this._isTransparent(e)?this._bgColor(t.parentElement):e},n.prototype._isTransparent=function(e){var i=new t.Color(e);return 0==i.a&&0==i.b&&0==i.g&&0==i.r},n.prototype._getColor=function(t){var e=this._defPalette;return null!=this._palette&&this._palette.length>0&&(e=this._palette),e[t%e.length]},n.prototype._getColorLight=function(t){var e=this._getColor(t);return this._skipLightClr||(e=this._getLightColor(e)),e},n.prototype._getLightColor=function(e){var i=new t.Color(e);return null!=i&&-1===e.indexOf("-")&&(1==i.a&&-1==e.indexOf("rgba")&&-1==e.indexOf("hsla")&&(i.a*=.7),e=i.toString()),e},n.prototype._bindChart=function(){this._needBind=!0,this.invalidate()},n.prototype._clearCachedValues=function(){},n.prototype._renderEls=function(e,i,r,s,a){void 0===r&&(r=!0),void 0===s&&(s=null),void 0===a&&(a=!1);var o=i.width,h=i.height;if(0!=o){(isNaN(o)||o<0)&&(o=n._WIDTH),(h<=0||isNaN(h))&&(h=n._HEIGHT);var l=o>0&&h>0;if(l&&e.setViewportSize(o,h),e.beginRender(),e.cssPriority=!0,l){if(this._rectChart=new t.Rect(0,0,o,h),this._prepareRender(),s){var c=e.stroke,u=e.fill;e.fill=s,e.stroke=null,e.drawRect(0,0,o,h),e.fill=u,e.stroke=c}var _=new t.Rect(0,0,o,h);this._chartRectId="chartRect"+(1e6*Math.random()).toFixed(),e.addClipRect(_,this._chartRectId),this._renderHeader(e,_),this._renderFooter(e,_),this._renderLegends(e,_),this._renderChart(e,_,r)}e.endRender()}},n.prototype._render=function(t,e,i){void 0===e&&(e=!0),void 0===i&&(i=null);var n=this._getHostSize();if(this._h){var r=n.height-this._h;r>=4&&r<=6&&!1!==this._isPCUnit("height")&&(n.height=this._h)}this._h=n.height,this._renderEls(t,n,e,i)},n.prototype._isPCUnit=function(t){var e=null,i=this.hostElement;if(i&&i.computedStyleMap){var n=i.computedStyleMap();if(n){var r=n.get(t);r&&(e="percent"==r.unit)}}return e},n.prototype._renderHidden=function(i,r){void 0===i&&(i=null),void 0===r&&(r=null);var s=document.createElement("div");t.addClass(s,this.hostElement.getAttribute("class")||""),s.style.visibility="hidden";var a=new e._SvgRenderEngine(s);if(document.body.appendChild(s),!i){var o=this._getHostComputedStyle(),h=0,l=0;o&&(h=this._parsePx(o.width),l=this._parsePx(o.height),0==h&&(h=n._WIDTH),0==l&&(l=n._HEIGHT),h-=this._parsePx(o.paddingLeft),h-=this._parsePx(o.paddingRight),l-=this._parsePx(o.paddingTop),l-=this._parsePx(o.paddingBottom),h-=this._parsePx(o.borderLeftWidth),h-=this._parsePx(o.borderRightWidth),l-=this._parsePx(o.borderTopWidth),l-=this._parsePx(o.borderBottomWidth)),0==h&&(h=n._WIDTH),0==l&&(l=n._HEIGHT),i=new t.Size(h,l)}return this._renderEls(a,i,!0,r,!0),t.removeChild(s),a.element},n.prototype._renderHeader=function(t,e){t.startGroup(n._CSS_HEADER,this._chartRectId),e=this._drawTitle(t,e,this.header,this.headerStyle,!1),t.endGroup()},n.prototype._renderFooter=function(t,e){t.startGroup(n._CSS_FOOTER,this._chartRectId),e=this._drawTitle(t,e,this.footer,this.footerStyle,!0),t.endGroup()},n.prototype._renderLegends=function(e,i){var r,s,o=this.legend,h=i.width,l=i.height,c=o._getPosition(h,l);switch(r=o._getDesiredSize(e,c,h,l),c){case a.Right:h-=r.width,s=new t.Point(h,i.top+.5*(l-r.height));break;case a.Left:i.left+=r.width,h-=r.width,s=new t.Point(0,i.top+.5*(l-r.height));break;case a.Top:l-=r.height,s=new t.Point(.5*(h-r.width),i.top),i.top+=r.height;break;case a.Bottom:l-=r.height,s=new t.Point(.5*(h-r.width),i.top+l)}if(i.width=h,i.height=l,r){this._rectLegend=new t.Rect(s.x,s.y,r.width,r.height);var u="legRect"+(1e6*Math.random()).toFixed();e.addClipRect(this._rectLegend,u),this._legendHost=e.startGroup(n._CSS_LEGEND,u),this.legend._render(e,s,c,r.width,r.height),e.endGroup()}else this._legendHost=null,this._rectLegend=null},n.prototype._prepareRender=function(){},n.prototype._renderChart=function(t,e,i){},n.prototype._performBind=function(){},n.prototype._getDesiredLegendSize=function(t,e,i,n){return null},n.prototype._renderLegend=function(t,e,i,n,r,s){},n.prototype._getHitTestItem=function(t){return null},n.prototype._getHitTestValue=function(t,e){return null},n.prototype._getHitTestLabel=function(t){return null},n.prototype._refreshChart=function(){this._needBind&&(this._needBind=!1,this._performBind()),this.hostElement&&this._render(this._currentRenderEngine)},n.prototype._drawTitle=function(e,i,r,s,a){var o=n._CSS_TITLE,h=a?n._CSS_FOOTER:n._CSS_HEADER,l=null;if(a?this._rectFooter=null:this._rectHeader=null,null!=r){var c=null,u=null,_=null,p=null;s&&(s.fontSize&&(c=s.fontSize),s.foreground&&(u=s.foreground),s.fill&&(u=s.fill),s.fontFamily&&(_=s.fontFamily),s.halign&&(p=s.halign)),e.fontSize=c,e.fontFamily=_,l=e.measureString(r,o,h,s),i.height-=l.height,u||(u=n._FG),e.textFill=u,a?("left"==p?n._renderText(e,r,new t.Point(i.left,i.bottom),0,0,o,h,s):"right"==p?n._renderText(e,r,new t.Point(i.left+i.width,i.bottom),2,0,o,h,s):n._renderText(e,r,new t.Point(i.left+.5*i.width,i.bottom),1,0,o,h,s),this._rectFooter=new t.Rect(i.left,i.bottom,i.width,l.height)):(this._rectHeader=new t.Rect(i.left,i.top,i.width,l.height),i.top+=l.height,"left"==p?n._renderText(e,r,new t.Point(i.left,0),0,0,o,h,s):"right"==p?n._renderText(e,r,new t.Point(i.left+i.width,0),2,0,o,h,s):n._renderText(e,r,new t.Point(i.left+.5*i.width,0),1,0,o,h,s)),e.textFill=null,e.fontSize=null,e.fontFamily=null}return i},n.prototype.pageToControl=function(t,e){return this._toControl(t,e)},n.prototype._toControl=function(e,i){t.isNumber(e)&&t.isNumber(i)?e=new t.Point(e,i):e instanceof MouseEvent&&(e=t.mouseToPage(e)),t.asType(e,t.Point);var n=e.clone(),r=this._getHostOffset();n.x-=r.x,n.y-=r.y;var s=this._currentRenderEngine?this._currentRenderEngine.element:null;if(null!=s){var a=s.getBoundingClientRect(),o=parseFloat(s.getAttribute("width")),h=parseFloat(s.getAttribute("height"));a.width!=o&&(n.x*=o/a.width),a.height!=h&&(n.y*=h/a.height)}var l=this._getHostComputedStyle();if(l){var c=parseInt(l.paddingLeft.replace("px",""));c&&!isNaN(c)&&(n.x-=c);var u=parseInt(l.paddingTop.replace("px",""));u&&!isNaN(u)&&(n.y-=u)}return n},n.prototype._highlightItems=function(e,i,n){if(n)for(var r=0;r<e.length;r++)t.addClass(e[r],i);else for(r=0;r<e.length;r++)t.removeClass(e[r],i)},n.prototype._parseMargin=function(e){var i={};if(t.isNumber(e)&&!isNaN(e))i.top=i.bottom=i.left=i.right=t.asNumber(e);else if(t.isString(e)){var n=t.asString(e).split(" ",4),r=NaN,s=NaN,a=NaN,o=NaN;n&&(4==n.length?(r=parseFloat(n[0]),o=parseFloat(n[1]),s=parseFloat(n[2]),a=parseFloat(n[3])):2==n.length?(r=s=parseFloat(n[0]),a=o=parseFloat(n[1])):1==n.length&&(r=s=a=o=parseFloat(n[1])),isNaN(r)||(i.top=r),isNaN(s)||(i.bottom=s),isNaN(a)||(i.left=a),isNaN(o)||(i.right=o))}return i},n.prototype._showToolTip=function(t,e){var i=this,n=this._tooltip.showDelay;i._clearTimeouts(),i.isDisabled||(t||i._tooltip.hide(),n>0?i._toShow=setTimeout(function(){i._tooltip.show(i.hostElement,t,e),i._tooltip.hideDelay>0&&(i._toHide=setTimeout(function(){i._tooltip.hide()},i._tooltip.hideDelay))},n):(i._tooltip.show(i.hostElement,t,e),i._tooltip.hideDelay>0&&(i._toHide=setTimeout(function(){i._tooltip.hide()},i._tooltip.hideDelay))))},n.prototype._hideToolTip=function(){this._clearTimeouts(),this._tooltip.hide()},n.prototype._clearTimeouts=function(){this._toShow&&(clearTimeout(this._toShow),this._toShow=null),this._toHide&&(clearTimeout(this._toHide),this._toHide=null)},n.prototype._getHostOffset=function(){var e=t.getElementRect(this.hostElement);return new t.Point(e.left,e.top)},n.prototype._getHostSize=function(){var e=new t.Size,i=this.hostElement,n=this._getHostComputedStyle(),r=i.offsetWidth,s=i.offsetHeight;return n&&(r-=this._parsePx(n.paddingLeft),r-=this._parsePx(n.paddingRight),s-=this._parsePx(n.paddingTop),s-=this._parsePx(n.paddingBottom),r-=this._parsePx(n.borderLeftWidth),r-=this._parsePx(n.borderRightWidth),s-=this._parsePx(n.borderTopWidth),s-=this._parsePx(n.borderBottomWidth),e.width=r,e.height=s),e},n.prototype._parsePx=function(t){var e=parseFloat(t.replace("px",""));return isNaN(e)?0:e},n.prototype._getHostComputedStyle=function(){var t=this.hostElement;return t&&t.ownerDocument&&t.ownerDocument.defaultView?t.ownerDocument.defaultView.getComputedStyle(this.hostElement):null},n.prototype._find=function(t,e){for(var i=[],n=0;n<t.childElementCount;n++){var r=t.childNodes.item(n);if(e.indexOf(r.nodeName)>=0)i.push(r);else{var s=this._find(r,e);if(s.length>0)for(var a=0;a<s.length;a++)i.push(s[a])}}return i},n.prototype._getLegendSize=function(t,e){return Math.min(e,this.legend._getMaxSize(t))},n._contains=function(t,e){return!(!t||!e)&&(e.x>=t.left&&e.x<=t.right&&e.y>=t.top&&e.y<=t.bottom)},n._intersects=function(t,e){return!(t.left>e.right||t.right<e.left||t.top>e.bottom||t.bottom<e.top)},n._toOADate=function(t){return t.valueOf()},n._fromOADate=function(t){return new Date(t)},n._renderText=function(e,i,n,r,s,a,o,h,l){var c=e.measureString(i,a,o,h),u=n.x,_=n.y;switch(r){case 1:u-=.5*c.width;break;case 2:u-=c.width}switch(s){case 1:_+=.5*c.height;break;case 0:_+=c.height}var p=new t.Rect(u,_-c.height,c.width,c.height);return l?l(p)?(e.drawString(i,new t.Point(u,_),a,h),p):null:(e.drawString(i,new t.Point(u,_),a,h),p)},n._renderRotatedText=function(e,i,n,r,s,a,o,h,l,c){var u=e.measureString(i,h,l,c),_=n.x,p=n.y;switch(r){case 1:_-=.5*u.width;break;case 2:_-=u.width}switch(s){case 1:p+=.5*u.height;break;case 0:p+=u.height}return e.drawStringRotated(i,new t.Point(_,p),a,o,h,c)},n._endsWith=function(t,e){if(t&&e){var i=t.length-e.length;return i>=0&&t.indexOf(e,i)===i}return!1},n._WIDTH=300,n._HEIGHT=200,n._SELECTION_THRESHOLD=15,n._CSS_LEGEND="wj-legend",n._CSS_HEADER="wj-header",n._CSS_FOOTER="wj-footer",n._CSS_TITLE="wj-title",n._CSS_LABEL="wj-label",n._CSS_SELECTION="wj-state-selected",n._CSS_PLOT_AREA="wj-plot-area",n._FG="#666",n._epoch=new Date(1899,11,30).getTime(),n._msPerDay=864e5,n}(t.Control);e.FlexChartBase=h;var l=function(){function e(){this._keys={},this._keys.seriesName=null,this._keys.pointIndex=null,this._keys.x=null,this._keys.y=null,this._keys.value=null,this._keys.name=null}return e.prototype.replace=function(e,i){var n=this;return t.format(e,{},function(t,e,r,s){return n.getValue(e,i,r)})},e.prototype.getValue=function(e,i,n){switch(e){case"seriesName":return i.series?i.series.name:"";case"pointIndex":return null!=i.pointIndex?i.pointIndex.toFixed():"";case"x":return n?t.Globalize.format(i.x,n):i._xfmt;case"y":return n?t.Globalize.format(i.y,n):i._yfmt;case"value":return n?t.Globalize.format(i.value,n):i._getValueFmt();case"name":return i.name}if(i.item){0==e.indexOf("item.")&&(e=e.substr(5));var r=i.item[e];if(!t.isUndefined(r))return n?t.Globalize.format(r,n):r}return""},e}();e._KeyWords=l;var c=function(){function e(){}return e.downloadImage=function(e,i,n){var r=document.createElement("a"),s="image/"+n;if(navigator.msSaveOrOpenBlob){e=e.substring(e.indexOf(",")+1);var a,o,h,l=atob(e),c=[];for(a=0;a<l.length;a+=512){o=l.slice(a,a+512);for(var u=new Array(o.length),_=0;_<o.length;_++)u[_]=o.charCodeAt(_);var p=new Uint8Array(u);c.push(p)}h=new Blob(c,{type:s}),navigator.msSaveOrOpenBlob(h,i+"."+n)}else r.download=i+"."+n,r.href=e,document.body.appendChild(r),r.addEventListener("click",function(e){t.removeChild(r)}),r.click()},e.getDataUri=function(i,n){var r,s,a,o,l,c,u,_,p,d,f=document.createElement("div"),g=i.cloneNode(!0),m=!1;if("svg"==i.tagName?(s=(r=t.getElementRect(i.parentNode||i)).width||0,a=r.height||0,0==s&&(m=!0),o=i.viewBox.baseVal&&0!==i.viewBox.baseVal.width?i.viewBox.baseVal.width:s,l=i.viewBox.baseVal&&0!==i.viewBox.baseVal.height?i.viewBox.baseVal.height:a):(s=(c=i.getBBox()).x+c.width,a=c.y+c.height,g.setAttribute("transform",g.getAttribute("transform").replace(/translate\(.*?\)/,"")),o=s,l=a,(_=document.createElementNS("http://www.w3.org/2000/svg","svg")).appendChild(g),g=_),m){var y=n._renderHidden(),b=n._getHostComputedStyle(),v=0,x=0;b&&(v=n._parsePx(b.width),x=n._parsePx(b.height)),0==v&&(v=h._WIDTH),0==x&&(x=h._HEIGHT),o=s=v,l=a=x,g=y.cloneNode(!0)}g.setAttribute("version","1.1"),g.setAttributeNS(e.xmlns,"xmlns","http://www.w3.org/2000/svg"),g.setAttributeNS(e.xmlns,"xmlns:xlink","http://www.w3.org/1999/xlink"),g.setAttribute("width",s),g.setAttribute("height",a),g.setAttribute("viewBox","0 0 "+o+" "+l),t.addClass(g,i.parentNode&&i.parentNode.getAttribute("class")||""),f.appendChild(g),u=e.getStyles(i),u+=".wj-flexchart{margin:0px;padding:0px;border:none;width:"+s+"px;height:"+a+"px;}\n",(p=document.createElement("style")).setAttribute("type","text/css"),p.innerHTML="<![CDATA[\n"+u+"\n]]>",(d=document.createElement("defs")).appendChild(p),g.insertBefore(d,g.firstChild),t.isIE()||g.querySelectorAll("foreignObject").forEach(function(t){g.removeChild(t)});var w=n._currentRenderEngine.canvas;if(w){var S=document.createElementNS("http://www.w3.org/2000/svg","image");S.setAttribute("width",w.width),S.setAttribute("height",w.height),S.setAttribute("href",w.toDataURL()),g.insertBefore(S,g.firstChild),n.invalidate()}return"data:image/svg+xml;base64,"+window.btoa(window.unescape(encodeURIComponent(e.doctype+f.innerHTML)))},e.getStyles=function(t){var e="",i=document.styleSheets;return null==i||0===i.length?null:([].forEach.call(i,function(i){var n;try{if(null==i.cssRules||0===i.cssRules.length)return!0}catch(t){if("SecurityError"==t.name)return console.log("SecurityError. Can't read: "+i.href),!0}n=i.cssRules,[].forEach.call(n,function(i){var n,r=i.style;if(null==r)return!0;try{n=".wj-flexchart"==i.selectorText||t.querySelector(i.selectorText)}catch(t){console.warn('Invalid CSS selector "'+i.selectorText+'"',t)}n?e+=i.selectorText+" { "+r.cssText+" }\n":i.cssText.match(/^@font-face/)&&(e+=i.cssText+"\n")})}),e)},e.doctype='<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">',e.xmlns="http://www.w3.org/2000/xmlns/",e}(),u=function(e){function i(){var t=e.call(this)||this;return t._content="<b>{seriesName}</b><br/>{x} {y}",t._threshold=15,t}return __extends(i,e),Object.defineProperty(i.prototype,"content",{get:function(){return this._content},set:function(t){t!=this._content&&(this._content=t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"threshold",{get:function(){return this._threshold},set:function(e){e!=this._threshold&&(this._threshold=t.asNumber(e))},enumerable:!0,configurable:!0}),i.prototype.show=function(t,n,r){e.prototype.show.call(this,t,n,r);var s=i._eTip;s&&s.style&&(s.style.pointerEvents="none")},i}(t.Tooltip);e.ChartTooltip=u}(t.chart||(t.chart={}))}(wijmo||(wijmo={})),function(t){!function(e){"use strict";var i,n;!function(t){t[t.None=0]="None",t[t.Left=1]="Left",t[t.Top=2]="Top",t[t.Right=3]="Right",t[t.Bottom=4]="Bottom",t[t.Center=5]="Center"}(i=e.LabelPosition||(e.LabelPosition={})),function(t){t[t.None=0]="None",t[t.Inside=1]="Inside",t[t.Center=2]="Center",t[t.Outside=3]="Outside",t[t.Radial=4]="Radial",t[t.Circular=5]="Circular"}(n=e.PieLabelPosition||(e.PieLabelPosition={}));var r=function(e){function i(t,i,n,r){var s=e.call(this,t)||this;return s.cancel=!1,s._ht=i,s._pt=n,s._text=r,s}return __extends(i,e),Object.defineProperty(i.prototype,"point",{get:function(){return this._pt},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"text",{get:function(){return this._text},set:function(e){this._text=t.asString(e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"hitTestInfo",{get:function(){return this._ht},enumerable:!0,configurable:!0}),i}(e.RenderEventArgs);e.DataLabelRenderEventArgs=r;var s=function(){function e(){this.rendering=new t.Event}return Object.defineProperty(e.prototype,"content",{get:function(){return this._content},set:function(t){t!=this._content&&(this._content=t,this._invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"border",{get:function(){return this._bdr},set:function(e){e!=this._bdr&&(this._bdr=t.asBoolean(e,!0),this._invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"offset",{get:function(){return this._off},set:function(e){e!=this._off&&(this._off=t.asNumber(e,!0),this._invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"connectingLine",{get:function(){return this._line},set:function(e){e!=this._line&&(this._line=t.asBoolean(e,!0),this._invalidate())},enumerable:!0,configurable:!0}),e.prototype.onRendering=function(t){return this.rendering.raise(this,t),!t.cancel},e.prototype._invalidate=function(){this._chart&&this._chart.invalidate()},e}();e.DataLabelBase=s;var a=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t._pos=i.Top,t}return __extends(n,e),Object.defineProperty(n.prototype,"position",{get:function(){return this._pos},set:function(e){(e=t.asEnum(e,i))!=this._pos&&(this._pos=e,this._invalidate())},enumerable:!0,configurable:!0}),n}(s);e.DataLabel=a;var o=function(e){function i(){var t=null!==e&&e.apply(this,arguments)||this;return t._pos=n.Center,t}return __extends(i,e),Object.defineProperty(i.prototype,"position",{get:function(){return this._pos},set:function(e){(e=t.asEnum(e,n))!=this._pos&&(this._pos=e,this._invalidate())},enumerable:!0,configurable:!0}),i}(s);e.PieDataLabel=o}(t.chart||(t.chart={}))}(wijmo||(wijmo={})),function(t){!function(e){"use strict";var i,n,r;!function(t){t[t.X=0]="X",t[t.Y=1]="Y"}(i=e.AxisType||(e.AxisType={})),function(t){t[t.Auto=0]="Auto",t[t.Show=1]="Show"}(n=e.OverlappingLabels||(e.OverlappingLabels={})),function(t){t[t.None=0]="None",t[t.Outside=1]="Outside",t[t.Inside=2]="Inside",t[t.Cross=3]="Cross"}(r=e.TickMark||(e.TickMark={}));var s=function(){function s(a){this._GRIDLINE_WIDTH=1,this._LINE_WIDTH=1,this._TICK_WIDTH=1,this._TICK_HEIGHT=4,this._TICK_OVERLAP=1,this._TICK_LABEL_DISTANCE=4,this._minorGrid=!1,this._labels=!0,this._isTimeAxis=!1,this._labelPadding=5,this._actualLabels=[],this.rangeChanged=new t.Event,this._customConvert=null,this._customConvertBack=null,this.__uniqueId=s._id++,this._position=a,a==e.Position.Bottom||a==e.Position.Top?this._axisType=i.X:this._axisType=i.Y,this._minorTickMarks=r.None,this._overlap=n.Auto}return Object.defineProperty(s.prototype,"hostElement",{get:function(){return this._hostElement},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"actualMin",{get:function(){return this._isTimeAxis?new Date(this._actualMin):this._actualMin},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"actualMax",{get:function(){return this._isTimeAxis?new Date(this._actualMax):this._actualMax},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"min",{get:function(){return this._min},set:function(e){e!=this._min&&(t.isDate(e)?this._min=t.asDate(e,!0):this._min=t.asNumber(e,!0),this._invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"max",{get:function(){return this._max},set:function(e){e!=this._max&&(t.isDate(e)?this._max=t.asDate(e,!0):this._max=t.asNumber(e,!0),this._invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"reversed",{get:function(){return this._reversed},set:function(e){this._reversed!=e&&(this._reversed=t.asBoolean(e),this._invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"position",{get:function(){return this._position},set:function(n){(n=t.asEnum(n,e.Position,!1))!=this._position&&(this._position=n,this._position==e.Position.Bottom||this._position==e.Position.Top?this._axisType=i.X:this._position!=e.Position.Left&&this._position!=e.Position.Right||(this._axisType=i.Y),this._invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"majorUnit",{get:function(){return this._majorUnit},set:function(e){e!=this._majorUnit&&(this._majorUnit=t.asNumber(e,!0),this._invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"minorUnit",{get:function(){return this._minorUnit},set:function(e){e!=this._minorUnit&&(this._minorUnit=t.asNumber(e,!0),this._invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"name",{get:function(){return this._name},set:function(e){e!=this._name&&(this._name=t.asString(e,!0))},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"title",{get:function(){return this._title},set:function(e){e!=this._title&&(this._title=t.asString(e,!0),this._invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"format",{get:function(){return this._format},set:function(e){e!=this._format&&(this._format=t.asString(e,!0),this._invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"majorGrid",{get:function(){return this._majorGrid},set:function(e){e!=this._majorGrid&&(this._majorGrid=t.asBoolean(e,!0),this._invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"majorTickMarks",{get:function(){return this._majorTickMarks},set:function(e){(e=t.asEnum(e,r,!0))!=this._majorTickMarks&&(this._majorTickMarks=e,this._invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"minorGrid",{get:function(){return this._minorGrid},set:function(e){e!=this._minorGrid&&(this._minorGrid=t.asBoolean(e,!0),this._invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"minorTickMarks",{get:function(){return this._minorTickMarks},set:function(e){(e=t.asEnum(e,r,!0))!=this._minorTickMarks&&(this._minorTickMarks=e,this._invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"axisLine",{get:function(){return void 0===this._axisLine?this.axisType==i.X:this._axisLine},set:function(e){e!=this._axisLine&&(this._axisLine=t.asBoolean(e,!0),this._invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"labels",{get:function(){return this._labels},set:function(e){e!=this._labels&&(this._labels=t.asBoolean(e,!0),this._invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"labelAlign",{get:function(){return this._labelAlign},set:function(e){e!=this._labelAlign&&(this._labelAlign=t.asString(e,!0),this._invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"labelAngle",{get:function(){return this._labelAngle},set:function(e){e!=this._labelAngle&&(this._labelAngle=t.asNumber(e,!0),this._invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"origin",{get:function(){return this._origin},set:function(e){e!=this._origin&&(this._origin=t.asNumber(e,!0),this._invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"overlappingLabels",{get:function(){return this._overlap},set:function(e){(e=t.asEnum(e,n,!0))!=this._overlap&&(this._overlap=e,this._invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"itemsSource",{get:function(){return this._items},set:function(e){this._items!=e&&(this._cv&&(this._cv.collectionChanged.removeHandler(this._cvCollectionChanged,this),this._cv=null),this._items=e,this._cv=t.asCollectionView(e),null!=this._cv&&this._cv.collectionChanged.addHandler(this._cvCollectionChanged,this))},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"binding",{get:function(){return this._binding},set:function(e){e!=this._binding&&(this._binding=t.asString(e,!0),this._invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"itemFormatter",{get:function(){return this._ifmt},set:function(e){this._ifmt!=e&&(this._ifmt=t.asFunction(e,!0),this._invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"logBase",{get:function(){return this._logBase},set:function(e){e!=this._logBase&&(this._logBase=t.asNumber(e,!0,!0),this._invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"axisLabels",{get:function(){return this._actualLabels},enumerable:!0,configurable:!0}),s.prototype._getLogBase=function(){return this._chart&&this._chart._stacking===e.Stacking.Stacked100pc?0:this.logBase},s.prototype._isLogAxis=function(){var t=this._getLogBase();return null!=t&&t>0},Object.defineProperty(s.prototype,"plotArea",{get:function(){return this._parea},set:function(i){i!=this._parea&&(this._parea=t.asType(i,e.PlotArea,!0),this._invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"labelPadding",{get:function(){return this._labelPadding},set:function(e){e!=this._labelPadding&&(this._labelPadding=t.asNumber(e,!0,!0),this._invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"_groupClass",{get:function(){return this.axisType===i.X?e.FlexChartCore._CSS_AXIS_X:e.FlexChartCore._CSS_AXIS_Y},enumerable:!0,configurable:!0}),s.prototype.onRangeChanged=function(t){this.rangeChanged.raise(this,t)},s.prototype._getPosition=function(){if(this.axisType==i.X){if(this.position==e.Position.Auto)return e.Position.Bottom}else if(this.axisType==i.Y&&this.position==e.Position.Auto)return e.Position.Left;return this.position},s.prototype._isOverlapped=function(t,e,n,r){var s=this._lbls;if(null!=s&&s.length>1)for(var a=s.length,o=this._values&&this._values.length==a?this._values:null,h=0,l=0,c=0;c<a;c++){var u=o?o[c]:c;if(u>=this._actualMin&&u<=this._actualMax){var _=e*(u-this._actualMin)/(this._actualMax-this._actualMin),p=t.measureString(s[c],n,this._groupClass);if(this.axisType==i.X){if(c>0&&Math.abs(_-h)<.5*(p.width+l))return!0;h=_,l=p.width}else this.axisType,i.Y}}return!1},s.prototype._getHeight=function(n,s){this._actualAngle=null;var a=e.FlexChartCore._CSS_LABEL,o=e.FlexChartCore._CSS_TITLE,h=.1*(this._actualMax-this._actualMin),l=this._lbls,c=this.labelAngle;if(this.labels&&this._chart._getChartType()!==e.ChartType.Funnel){if(h=this._updateAutoFormat(h),null!=l&&l.length>0){var u=l.length,_=this._values&&this._values.length==u?this._values:null;this._annoSize=new t.Size;for(var p=0;p<u;p++){if((m=_?_[p]:p)>=this._actualMin&&m<=this._actualMax){var d=l[p],f=a;if(this.itemFormatter)d=(y=this._getFormattedItem(n,m,d,new t.Point,a,!0)).text,f=y.cls;var g=n.measureString(d,f,this._groupClass);this.axisType,i.X,g.width>this._annoSize.width&&(this._annoSize.width=g.width),g.height>this._annoSize.height&&(this._annoSize.height=g.height)}}null==c&&this.axisType==i.X&&(this._isOverlapped(n,Math.max(10,s-this._annoSize.width),a,this.axisType)?c=this._actualAngle=-45:this._actualAngle=0)}else{var m=this._actualMin-h;d=this._formatValue(m),f=a;if(this.itemFormatter)d=(y=this._getFormattedItem(n,m,d,new t.Point,a,!0)).text,f=a;var y;g=n.measureString(d,f,this._groupClass);if(this._annoSize=g,m=this._actualMax+h,d=this._formatValue(m),f=a,this.itemFormatter)d=(y=this._getFormattedItem(n,m,d,new t.Point,a,!0)).text,f=a;(g=n.measureString(d,f,this._groupClass)).width>this._annoSize.width&&(this._annoSize.width=g.width),g.height>this._annoSize.height&&(this._annoSize.height=g.height)}if(c){c>90?c=90:c<-90&&(c=-90);var b=c*Math.PI/180,v=this._annoSize.width,x=this._annoSize.height;this._annoSize.width=v*Math.abs(Math.cos(b))+x*Math.abs(Math.sin(b)),this._annoSize.height=v*Math.abs(Math.sin(b))+x*Math.abs(Math.cos(b))}}else this._annoSize=new t.Size(8,8);var w=2*(this._labelPadding||5);this._axisType==i.X?w+=this._annoSize.height:w+=this._annoSize.width+this._TICK_LABEL_DISTANCE+2;var S=this._TICK_HEIGHT,P=this._TICK_OVERLAP,C=this.majorTickMarks;if(C==r.Outside?P=1:C==r.Inside?P=-1:C==r.Cross&&(P=0),null==C&&(C=r.Outside),C!=r.None&&(w+=.5*(1+P)*S),this._title){d=this._title;this._szTitle=n.measureString(d,o,this._groupClass),w+=this._szTitle.height}return n.fontSize=null,w},s.prototype._updateAutoFormat=function(e){if(this._isTimeAxis){var i=this.format,n=.001*this._getActualRange()/10,r=new h(n*h.TicksPerSecond),s=t.isNumber(this._majorUnit)?h.fromDays(this._majorUnit):l.NiceTimeSpan(r,i);i||(this._tfmt=l.GetTimeDefaultFormat(1e3*s.TotalSeconds,0)),e=s.TotalSeconds}return e},s.prototype._getActualRange=function(){return this._actualMax-this._actualMin},s.prototype._updateActualLimitsByChartType=function(t,i,n){if(t&&t.length>0&&!this._isTimeAxis){var r=this._chart._getChartType();r!=e.ChartType.Column&&r!=e.ChartType.Bar&&(i-=.5,n+=.5)}return{min:i,max:n}},s.prototype._updateActualLimits=function(n,r,s,a,o){void 0===a&&(a=null),void 0===o&&(o=null);var h=this._actualMin,l=this._actualMax;this._isTimeAxis=n==t.DataType.Date;var c=this._updateActualLimitsByChartType(a,r,s);r=c.min,s=c.max;var u=this._min,_=this._max;t.isDate(u)&&(u=u.valueOf()),t.isDate(_)&&(_=_.valueOf());var p=this._chart&&this._chart._stacking!==e.Stacking.Stacked100pc;p||(p=this._chart._isRotated()?this.axisType==i.Y:this.axisType==i.X);var d=this._actualMin=null!=u&&p?u:r;if(d==(this._actualMax=null!=_&&p?_:s))if(void 0!==u&&void 0===_)this._actualMax+=1;else if(void 0===u&&void 0!==_)this._actualMin-=1;else if(0===d)this._actualMax=1;else{var f=Math.abs(d);f<1?(this._actualMin-=f,this._actualMax+=f):(this._actualMin-=1,this._actualMax+=1)}if(this._getLogBase()>0){var g=this.logBase,m=Math.log(g);if(!this._max){var y=Math.ceil(Math.log(this._actualMax)/m);this._actualMax=Math.pow(g,y)}if(!this._min){var b=Math.floor(Math.log(this._actualMin)/m);this._actualMin=Math.pow(g,b)}(this._actualMin<=0||!t.isNumber(this._actualMin))&&(this._actualMin=1),this._actualMax<this._actualMin?this._actualMax=this._actualMin+1:this._actualMax===this._actualMin&&(this._actualMin=.1*this._actualMax)}if((h!=this._actualMin&&(t.isNumber(h)||t.isNumber(this._actualMin))||l!=this._actualMax&&(t.isNumber(l)||t.isNumber(this._actualMax)))&&this.onRangeChanged(),this._items){this._values=[],this._lbls=[];var v=this._items.length,x="value",w="text";if(this.binding){var S=this.binding.split(",");2==S.length&&(x=S[0],w=S[1])}for(var P=0;P<v;P++){var C=this._items[P],T=C[x];t.isNumber(T)?(this._values.push(T),this._lbls.push(C[w])):t.isDate(T)&&(this._values.push(T.getTime()),this._lbls.push(C[w]))}}else this._lbls=a,this._values=o},s.prototype._layout=function(e,n){var r=this.axisType==i.Y;this._plotrect=n,this._axrect=r?new t.Rect(e.left,e.top,e.height,e.width):e},s.prototype._hasVisibileSeries=function(){for(var t,i=this._chart.series,n=0,r=i.length;n<r;n++)if((t=i[n].visibility)==e.SeriesVisibility.Plot||t==e.SeriesVisibility.Visible)return!0;return!1},s.prototype._render=function(i){if(this.position!=e.Position.None&&this._hasVisibileSeries()){this.axisLabels.length=0,this._vals={};var n=0;this.labelAngle&&((n=this.labelAngle)>90?n=90:n<-90&&(n=-90)),null==this.labelAngle&&null!=this._actualAngle&&(n=this._actualAngle);var a=e.FlexChartCore._FG,o=this._actualMax-this._actualMin;if(t.isNumber(o)){var h=this._calcMajorUnit();0==h&&(h=.1*this._niceTickNumber(o));var l=Math.min(s.MAX_MAJOR,Math.floor(o/h)+1),c=[],u=[];this._rects=[],this._vals.major=c,this._vals.hasLbls=[];var _=Math.floor(this._actualMin/h)*h;_<this._actualMin&&(_+=h);var p=!1;if(this._lbls&&this._lbls.length>0)if(u=this._lbls,0==this._values.length){p=!0;for(var d=0;d<u.length;d++)c.push(d)}else c=this._values;else this._isTimeAxis?this._createTimeLabels(_,l,c,u):this._getLogBase()?this._createLogarithmicLabels(this._actualMin,this._actualMax,this.majorUnit,c,u,!0):this._createLabels(_,l,h,c,u);l=Math.min(c.length,u.length),i.textFill=a;var f=this._TICK_HEIGHT,g=this._TICK_OVERLAP,m=this.majorTickMarks;null==m&&(m=r.Outside),m==r.Outside?g=1:m==r.Inside?g=-1:m==r.Cross&&(g=0);var y=.5*(g-1)*f,b=.5*(1+g)*f;for(d=0;d<l;d++){var v=!0,x=c[d],w=u[d],S=this.labels;if(S&&(p||this.itemsSource)&&this.majorUnit&&d%this.majorUnit!=0&&(S=!1),x>=this._actualMin&&x<=this._actualMax){var P=i.textFill;v=this._renderLabelsAndTicks(i,d,x,w,n,m,S,y,b),i.textFill=P}this._vals.hasLbls.push(v),v&&this.axisLabels.push(w)}}(this.minorGrid||this.minorTickMarks!=r.None)&&this._renderMinor(i,c,p),i.stroke=a,i.fontSize=null,this._renderLineAndTitle(i),i.stroke=null,i.fontSize=null,i.textFill=null,i.strokeWidth=null}},s.prototype._renderLineAndTitle=function(n){var r=this._getPosition(),s=this.axisType==i.Y,a=r!=e.Position.Top&&r!=e.Position.Right,o=e.FlexChartCore._CSS_TITLE,h=e.FlexChartCore._CSS_LINE;if(s)if(a){if(this._title){var l=new t.Point(this._axrect.left+.5*this._szTitle.height,this._axrect.top+.5*this._axrect.height);e.FlexChartCore._renderRotatedText(n,this._title,l,1,1,l,-90,o,this._groupClass)}this.axisLine&&n.drawLine(this._axrect.right,this._axrect.top,this._axrect.right,this._axrect.bottom,h)}else{if(this._title){l=new t.Point(this._axrect.right-.5*this._szTitle.height,this._axrect.top+.5*this._axrect.height);e.FlexChartCore._renderRotatedText(n,this._title,l,1,1,l,90,o,this._groupClass)}this.axisLine&&n.drawLine(this._axrect.left,this._axrect.top,this._axrect.left,this._axrect.bottom,h)}else a?(this.axisLine&&n.drawLine(this._axrect.left,this._axrect.top,this._axrect.right,this._axrect.top,h),this._title&&e.FlexChartCore._renderText(n,this._title,new t.Point(this._axrect.left+.5*this._axrect.width,this._axrect.bottom),1,2,o)):(this.axisLine&&n.drawLine(this._axrect.left,this._axrect.bottom,this._axrect.right,this._axrect.bottom,h),this._title&&e.FlexChartCore._renderText(n,this._title,new t.Point(this._axrect.left+.5*this._axrect.width,this._axrect.top),1,0,o))},s.prototype._renderMinor=function(t,n,r){var s=this._getPosition(),a=this.axisType==i.Y,o=s!=e.Position.Top&&s!=e.Position.Right;if(this._getLogBase()){if(this.minorUnit>0){var h=[];this._createLogarithmicLabels(this._actualMin,this._actualMax,this.minorUnit,h,null,!1);for(var l=[],c=0;c<h.length;c++){var u=h[c];-1==n.indexOf(u)&&u>this._actualMin&&l.push(u)}this._renderMinors(t,l,a,o)}}else this._createMinors(t,n,a,o,r)},s.prototype._renderRotatedText=function(t,i,n,r,s,a,o,h,l,c,u){if(this.itemFormatter){var _=this._getFormattedItem(t,i,n,r,l);_?(n=_.text,l=_.cls):n=null}e.FlexChartCore._renderRotatedText(t,n,r,s,a,o,h,l,c,u)},s.prototype._getFormattedItem=function(t,n,r,s,a,o){if(void 0===o&&(o=!1),this.itemFormatter){var h=s.clone();this._plotrect&&(this.axisType==i.X?this.position==e.Position.Top?h.y=this._plotrect.top:h.y=this._plotrect.bottom:this.position==e.Position.Right?h.x=this._plotrect.right:h.x=this._plotrect.left);var l={val:n,text:r,pos:h,cls:a};return o&&(t.readOnly=!0),l=this.itemFormatter(t,l),o&&(t.readOnly=!1),l}},s.prototype._renderLabelsAndTicks=function(s,a,o,h,l,c,u,_,p){var d=this._getPosition(),f=!1,g=this.axisType==i.Y,m=d!=e.Position.Top&&d!=e.Position.Right,y=this.labelPadding||5,b=this._TICK_WIDTH,v=this._getLabelAlign(g),x=e.FlexChartCore._CSS_LABEL,w=e.FlexChartCore._CSS_GRIDLINE,S=e.FlexChartCore._CSS_TICK,P=e.FlexChartCore._FG,C=e.FlexChartCore._FG,T=this._GRIDLINE_WIDTH,M=o!=this._actualMin&&this.majorGrid;if(g){var A=this.convert(o);if(M&&(s.stroke=P,s.strokeWidth=T,s.drawLine(this._plotrect.left,A,this._plotrect.right,A,w)),s.stroke=C,s.strokeWidth=b,m){if(u){f=!0;var N=new t.Point(this._axrect.right-p-this._TICK_LABEL_DISTANCE-y,A);l>0?90==l?this._renderRotatedText(s,o,h,N,1,0,N,l,x,this._groupClass):this._renderRotatedText(s,o,h,N,2,1,N,l,x,this._groupClass):l<0?-90==l?this._renderRotatedText(s,o,h,N,1,2,N,l,x,this._groupClass):this._renderRotatedText(s,o,h,N,2,1,N,l,x,this._groupClass):f=this._renderLabel(s,o,h,N,2,v,x)}c!=r.None&&f&&s.drawLine(this._axrect.right-_,A,this._axrect.right-p,A,S)}else{if(u){f=!0;N=new t.Point(this._axrect.left+p+this._TICK_LABEL_DISTANCE+y,A);l>0?90==l?this._renderRotatedText(s,o,h,N,1,2,N,l,x,this._groupClass):this._renderRotatedText(s,o,h,N,0,1,N,l,x,this._groupClass):l<0?-90==l?this._renderRotatedText(s,o,h,N,1,0,N,l,x,this._groupClass):this._renderRotatedText(s,o,h,N,0,1,N,l,x,this._groupClass):f=this._renderLabel(s,o,h,N,0,v,x)}c!=r.None&&f&&s.drawLine(this._axrect.left+_,A,this._axrect.left+p,A,S)}}else{var L=this.convert(o);if(this.overlappingLabels==n.Auto&&this._xCross(L)&&(u=!1),M&&u&&(s.stroke=P,s.strokeWidth=T,s.drawLine(L,this._plotrect.top,L,this._plotrect.bottom,w)),s.stroke=C,s.strokeWidth=b,m){if(u){N=new t.Point(L,this._axrect.top+p+y);f=0!=l?this._renderRotatedLabel(s,o,h,N,v,l,x,m):this._renderLabel(s,o,h,N,v,0,x)}c!=r.None&&f&&(L=this.convert(o),s.drawLine(L,this._axrect.top+_,L,this._axrect.top+p,S))}else{if(u){N=new t.Point(L,this._axrect.bottom-p-y);f=0!=l?this._renderRotatedLabel(s,o,h,N,v,l,x,m):this._renderLabel(s,o,h,N,v,2,x)}c!=r.None&&f&&(L=this.convert(o),s.drawLine(L,this._axrect.bottom-_,L,this._axrect.bottom-p,S))}}return f},s.prototype._xCross=function(t){for(var e=this._rects.length,i=0;i<e;i++){var n=this._rects[i];if(t>=n.left&&t<=n.right)return!0}return!1},s.prototype._createMinors=function(e,i,n,r,a){if(i&&i.length>1){for(var o=this.majorUnit?this._isTimeAxis?24*this.majorUnit*3600*1e3:this.majorUnit:i[1]-i[0],h=t.isNumber(this.minorUnit)?this._isTimeAxis?24*this.minorUnit*3600*1e3:this.minorUnit:.5*o,l=[],c=i[0];c>this._actualMin&&l.length<s.MAX_MINOR;c-=h)-1==i.indexOf(c)&&l.push(c);for(c=i[0]+h;c<this._actualMax&&l.length<s.MAX_MINOR;c+=h)-1==i.indexOf(c)?l.push(c):a&&this.majorUnit&&c%this.majorUnit!=0&&l.push(c);this._renderMinors(e,l,n,r)}},s.prototype._renderMinors=function(t,i,n,s){var a=this._TICK_HEIGHT,o=this._TICK_WIDTH,h=this._TICK_OVERLAP,l=e.FlexChartCore._FG,c=this.minorTickMarks,u=!0;this._vals.minor=i,c==r.Outside?h=1:c==r.Inside?h=-1:c==r.Cross?h=0:u=!1;for(var _=.5*(h-1)*a,p=.5*(1+h)*a,d=i?i.length:0,f=this.minorGrid,g=this._plotrect,m=this._GRIDLINE_WIDTH,y=e.FlexChartCore._FG,b=e.FlexChartCore._CSS_GRIDLINE_MINOR,v=e.FlexChartCore._CSS_TICK_MINOR,x=0;x<d;x++)if(i[x]>=this.actualMin&&i[x]<=this.actualMax)if(n){var w=this.convert(i[x]);u&&(t.stroke=l,t.strokeWidth=o,s?t.drawLine(this._axrect.right-_,w,this._axrect.right-p,w,v):t.drawLine(this._axrect.left+_,w,this._axrect.left+p,w,v)),f&&(t.stroke=y,t.strokeWidth=m,t.drawLine(g.left,w,g.right,w,b))}else{var S=this.convert(i[x]);u&&(t.stroke=l,t.strokeWidth=o,s?t.drawLine(S,this._axrect.top+_,S,this._axrect.top+p,v):t.drawLine(S,this._axrect.bottom-_,S,this._axrect.bottom-p,v)),f&&(t.stroke=y,t.strokeWidth=m,t.drawLine(S,g.top,S,g.bottom,b))}},s.prototype._renderLabel=function(i,r,s,a,o,h,l){var c=!1;if(this.itemFormatter){var u=this._getFormattedItem(i,r,s,a,l);u?(s=u.text,l=u.cls):s=null}if(s){var _=this._rects,p=this.overlappingLabels==n.Auto&&!t.isNumber(this._actualAngle),d=e.FlexChartCore._renderText(i,s,a,o,h,l,this._groupClass,null,function(t){if(p)for(var i=_.length,n=0;n<i;n++)if(e.FlexChartCore._intersects(_[n],t))return!1;return!0});d&&(d.left+=4,d.width+=8,_.push(d),c=!0)}return c},s.prototype._renderRotatedLabel=function(i,r,s,a,o,h,l,c){if(this.itemFormatter){var u=this._getFormattedItem(i,r,s,a,l);u?(s=u.text,l=u.cls):s=null}if(s){var _=i.measureString(s,l,this._groupClass),p=.5*_.height,d=.5*_.width*Math.abs(Math.sin(h*Math.PI/180)),f=.5*_.width,g=.5*(_.width*Math.abs(Math.cos(h*Math.PI/180))+_.height*Math.abs(Math.sin(h*Math.PI/180))),m=new t.Point(a.x,a.y),y=new t.Point(a.x,a.y);this.labelAlign||(o=90==h||-90==h?1:c?h>0?0:2:h>0?2:0),c?(a.y+=p+d,m.y+=p+d-.5*_.height):(a.y-=p+d-_.height,m.y-=p+d-.5*_.height);var b=0;2===o?(m.x-=g,a.x-=f+g,b=m.x+g-_.height-2):0===o?(m.x+=g,a.x-=f-g,b=m.x-g):(a.x-=f,b=m.x-_.height/2);var v=new t.Rect(b,y.y,_.height+2,_.width),x=this._rects;if(this.overlappingLabels==n.Auto)for(var w=x.length,S=0;S<w;S++)if(e.FlexChartCore._intersects(x[S],v))return!1;return e.FlexChartCore._renderRotatedText(i,s,a,0,2,m,h,l,this._groupClass),this._rects.push(v),!0}return!1},s.prototype._getLabelAlign=function(t){var e=1;if(this.labelAlign){var i=this.labelAlign.toLowerCase();t?"top"==i?e=0:"bottom"==i&&(e=2):"left"==i?e=0:"right"==i&&(e=2)}return e},s.prototype.convert=function(t,e,n){var r=null==e?this._actualMax:e,s=null==n?this._actualMin:n;if(r==s||!this._axrect)return 0;var a=this._axrect.left,o=this._axrect.width,h=this._axrect.top,l=this._axrect.height;if(null!=this._customConvert){var c=this._customConvert(t,s,r);return this.axisType==i.Y?h+c*l:a+c*o}if(this._getLogBase()){if(t<=0)return NaN;var u=Math.log(r/s);return this._reversed?this.axisType==i.Y?h+Math.log(t/s)/u*l:a+o-Math.log(t/s)/u*o:this.axisType==i.Y?h+l-Math.log(t/s)/u*l:a+Math.log(t/s)/u*o}return this._reversed?this.axisType==i.Y?h+(t-s)/(r-s)*l:a+o-(t-s)/(r-s)*o:this.axisType==i.Y?h+l-(t-s)/(r-s)*l:a+(t-s)/(r-s)*o},s.prototype.convertBack=function(t){if(this._actualMax==this._actualMin)return 0;var e=this._plotrect.left,n=this._plotrect.width,r=this._plotrect.top,s=this._plotrect.height,a=this._actualMax-this._actualMin,o=this._getLogBase();if(null!=this._customConvertBack)return this.axisType==i.Y?this._customConvertBack((t-r)/s,this._actualMin,this._actualMax):this._customConvertBack((t-e)/n,this._actualMin,this._actualMax);if(o){var h=0;return h=this._reversed?this.axisType==i.Y?(t-r)/s:1-(t-e)/n:this.axisType==i.Y?1-(t-r)/s:(t-e)/n,Math.pow(o,(Math.log(this._actualMin)+(Math.log(this._actualMax)-Math.log(this._actualMin))*h)/Math.log(o))}return this._reversed?this.axisType==i.Y?this._actualMin+(t-r)*a/s:this._actualMin+(e+n-t)*a/n:this.axisType==i.Y?this._actualMax-(t-r)*a/s:this._actualMin+(t-e)*a/n},Object.defineProperty(s.prototype,"axisType",{get:function(){var t=this._chart;if(t){if(t.axisX==this)return i.X;if(t.axisY==this)return i.Y}return this._axisType},enumerable:!0,configurable:!0}),s.prototype._getMinNum=function(){return this._actualMin},s.prototype._getMaxNum=function(){return this._actualMax},s.prototype._invalidate=function(){this._chart&&this._chart.invalidate()},s.prototype._cvCollectionChanged=function(t,e){this._invalidate()},s.prototype._createLabels=function(e,i,n,r,s){for(var a=0;a<i;a++){var o=(e+n*a).toFixed(14),h=parseFloat(o),l=this._formatAxisValue(h),c=s.indexOf(l);if(c>=0&&!t.isNumber(this.majorUnit)&&!this._format){var u=parseFloat(l);Math.abs(u-h)<Math.abs(u-r[c])&&(r[c]=h)}else r.push(h),s.push(l)}},s.prototype._createLogarithmicLabels=function(t,i,n,r,s,a){var o=this._getLogBase(),h=Math.log(o),l=Math.floor(Math.log(t)/h),c=Math.ceil(Math.log(i)/h),u=o,_=!0;n>0&&(_=!1,u=n),u<o&&(u=o);var p=(c-l+1)*o/u,d=1;if(a){var f=this._getPosition(),g=this._getAnnoNumber(f==e.Position.Left||f==e.Position.Right);p>g?d=Math.floor(p/g+1):_&&(p<=.2*g?u=.2*o:p<=.1*g&&(u=.1*o))}for(var m=l;m<=c;m+=d){if(_)for(var y=Math.pow(o,m),b=0;b*u<o-1;b++){var v;(v=y*(1+b*u))>=t&&v<=i&&(0==b?(r.unshift(v),s&&s.unshift(this._formatValue(v))):(r.push(v),s&&s.push(this._formatValue(v))))}else(v=Math.pow(u,m))>=t&&v<=i&&(r.push(v),s&&s.push(this._formatValue(v)))}},s.prototype._createTimeLabels=function(e,n,r,s){var a=this._actualMin,o=this._actualMax,c=new Date(a),u=new Date(o),_=this._format,p=this._getAnnoNumber(this._axisType==i.Y);p>10&&(p=10);var d=.001*(this._actualMax-this._actualMin)/p,f=new h(d*h.TicksPerSecond),g=t.isNumber(this._majorUnit)?h.fromDays(this._majorUnit):l.NiceTimeSpan(f,_);_||(this._tfmt=_=l.GetTimeDefaultFormat(1e3*g.TotalSeconds,0));var m=g.Ticks,y=l.RoundTime(a,g.TotalDays,!1);isFinite(y)&&(a=y);var b=l.RoundTime(o,g.TotalDays,!0);isFinite(b)&&(o=b);var v=new Date(a);new Date(o);if(g.TotalDays>=365&&!t.isNumber(this._majorUnit)){(v=new Date(c.getFullYear(),0,1))<c&&v.setFullYear(v.getFullYear()+1);var x=g.TotalDays/365;x-=x%1;for(var w=v;w<=u&&x;w.setFullYear(w.getFullYear()+x)){var S=w.valueOf();r.push(S),s.push(this._formatValue(S))}}else if(g.TotalDays>=30&&!t.isNumber(this._majorUnit)){(v=new Date(c.getFullYear(),c.getMonth(),1))<c&&v.setMonth(v.getMonth()+1);var P=g.TotalDays/30;P-=P%1;for(w=v;w<=u;w.setMonth(w.getMonth()+P)){S=w.valueOf();r.push(S),s.push(this._formatValue(S))}}else{var C=1e3*m/h.TicksPerSecond,T=(w=v,c.getTime()-w.getTime());for(T>C&&(w=new Date(w.getTime()+Math.floor(T/C)*C));w<=u&&C;w=new Date(w.getTime()+C)){(S=w.valueOf()+T)>=c.valueOf()&&(r.push(S),s.push(this._formatValue(S)))}}},s.prototype._formatValue=function(e){if(this._isTimeAxis)return this._format?t.Globalize.format(new Date(e),this._format):t.Globalize.format(new Date(e),this._tfmt);if(this._format)return t.Globalize.format(e,this._format);var i=e==Math.round(e)?"n0":"n";return t.Globalize.format(e,i)},s.prototype._formatAxisValue=function(e,i){if(void 0===i&&(i=void 0),this._isTimeAxis)return this._format?t.Globalize.format(new Date(e),this._format):t.Globalize.format(new Date(e),this._tfmt);if(this._format)return t.Globalize.format(e,this._format);if(t.isNumber(e)){var n=this._findFormat(e,i);return t.Globalize.format(e,n)}return e},s.prototype._findFormat=function(t,e){void 0===e&&(e=void 0);var i=t==Math.round(t)?"n0":"n";if(void 0!==e&&(i+=e.toString()),"n"==i){var n=t.toFixed(14),r=n.search(".");if(r>=0){e=1;for(var s=n.length-1;s>=r;s--)if("0"!=n[s]){e=s-r-1;break}i+=e.toString()}}return i},s.prototype._calcMajorUnit=function(){var e=this._majorUnit;if(!t.isNumber(e)){var n=this._actualMax-this._actualMin,r=this._nicePrecision(n),s=n/this._getAnnoNumber(this.axisType==i.Y);(e=this._niceNumber(2*s,-r,!0))<s&&(e=this._niceNumber(s,1-r,!1)),e<s&&(e=this._niceTickNumber(s))}return e},s.prototype._getAnnoNumber=function(t){var e=t?this._annoSize.height:this._annoSize.width,i=t?this._axrect.height:this._axrect.width;if(e>0&&i>0){var n=Math.floor(i/(e+6));return n<=0&&(n=1),n}return 10},s.prototype._nicePrecision=function(e){if(!t.isNumber(e)||e<=0)return 0;var i,n=Math.log(e)/Math.LN10;i=n>=0?Math.floor(n):Math.ceil(n);var r=e/Math.pow(10,i);return r<3&&(i=1-i,(r=e/Math.pow(10,i))<3&&(i+=1)),i},s.prototype._niceTickNumber=function(t){if(0==t)return t;t<0&&(t=-t);var e=Math.log(t)/Math.LN10,i=Math.floor(e),n=t/Math.pow(10,i),r=10;return n<=1?r=1:n<=2?r=2:n<=5&&(r=5),r*Math.pow(10,i)},s.prototype._niceNumber=function(t,e,i){if(0==t)return t;t<0&&(t=-t);var n=t/Math.pow(10,e),r=10;return i?n<1.5?r=1:n<3?r=2:n<4.5?r=4:n<7&&(r=5):n<=1?r=1:n<=2?r=2:n<=5&&(r=5),r*Math.pow(10,e)},Object.defineProperty(s.prototype,"_uniqueId",{get:function(){return this.__uniqueId},enumerable:!0,configurable:!0}),s.MAX_MAJOR=1e3,s.MAX_MINOR=2e3,s._id=0,s}();e.Axis=s;var a,o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.getAxis=function(t){var e=this.indexOf(t);return e>-1?this[e]:null},e.prototype.indexOf=function(t){for(var e=0;e<this.length;e++)if(this[e].name==t)return e;return-1},e}(t.collections.ObservableArray);e.AxisCollection=o,function(t){t[t.tickf7=-7]="tickf7",t[t.tickf6=-6]="tickf6",t[t.tickf5=-5]="tickf5",t[t.tickf4=-4]="tickf4",t[t.tickf3=-3]="tickf3",t[t.tickf2=-2]="tickf2",t[t.tickf1=-1]="tickf1",t[t.second=1]="second",t[t.minute=60]="minute",t[t.hour=3600]="hour",t[t.day=86400]="day",t[t.week=604800]="week",t[t.month=2678400]="month",t[t.year=31536e3]="year",t[t.maxtime=Number.MAX_VALUE]="maxtime"}(a||(a={}));var h=function(){function t(t){this.ticks=t}return Object.defineProperty(t.prototype,"Ticks",{get:function(){return this.ticks},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"TotalSeconds",{get:function(){return this.ticks/1e7},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"TotalDays",{get:function(){return this.ticks/1e7/86400},enumerable:!0,configurable:!0}),t.fromSeconds=function(e){return new t(1e7*e)},t.fromDays=function(e){return new t(1e7*e*24*60*60)},t.TicksPerSecond=1e7,t}(),l=function(){function i(i){t.isDate(i)?this.init(i):t.isNumber(i)&&this.init(e.FlexChartCore._fromOADate(i))}return i.prototype.init=function(t){this.year=t.getFullYear(),this.month=t.getMonth(),this.day=t.getDate(),this.hour=t.getHours(),this.minute=t.getMinutes(),this.second=t.getSeconds()},i.prototype.getTimeAsDateTime=function(){this.hour>=24&&(this.hour-=24,this.day+=1),this.month<0?(-1-this.day,this.month=1):this.month>11&&(this.month-12,this.month=12),this.day<1?(-1-this.day,this.day=1):this.day>28&&2==this.month?(this.day-28,this.day=28):this.day>30&&(4==this.month||4==this.month||6==this.month||9==this.month||11==this.month)?(this.day-30,this.day=30):this.day>31&&(this.day-31,this.day=31),this.second>59&&(this.second-59,this.second=59);return this.minute>59&&(this.minute-59,this.minute=59),new Date(this.year,this.month,this.day,this.hour,this.minute,this.second)},i.prototype.getTimeAsDouble=function(){return this.getTimeAsDateTime().valueOf()},i.tround=function(t,e,i){var n=t/e*e;return n-=n%1,i&&n!=t&&(n+=e-=e%1),n},i.RoundTime=function(t,e,n){var r=24*e*60*60;if(r>0){var s=new i(t);return r<a.minute?(s.second=this.tround(s.second,r,n),s.getTimeAsDouble()):(s.second=0,r<a.hour?(r/=a.minute,s.minute=this.tround(s.minute,r,n),s.getTimeAsDouble()):(s.minute=0,r<a.day?(r/=a.hour,s.hour=this.tround(s.hour,r,n),s.getTimeAsDouble()):(s.hour=0,r<a.month?(r/=a.day,s.day=this.tround(s.day,r,n),s.getTimeAsDouble()):(s.day=1,r<a.year?(r/=a.month,1!=s.month&&(s.month=this.tround(s.month,r,n)),s.getTimeAsDouble()):(s.month=1,r/=a.year,s.year=this.tround(s.year,r,n),s.getTimeAsDouble())))))}var o=t,h=o-r,l=h/e*e;return n&&l!=h&&(l+=e),o=r+l},i.TimeSpanFromTmInc=function(t){var e=h.fromSeconds(1);if(t!=a.maxtime)if(t>a.tickf1)e=h.fromSeconds(t);else{var i=t,n=1;for(i+=7;i>0;)n*=10,i--;e=new h(n)}return e},i.manualTimeInc=function(t){var e=a.second;if(null==t||0==t.length)return e;var i=t.indexOf("f");if(i>=0){var n=-1;if(i>0&&"%"==t.substr(i-1,1))n=-1;else for(var r=1;r<6&&!(i+r>=t.length);r++){if("f"!=t.substr(i+r,1))break;n--}e=n}else t.indexOf("s")>=0?e=a.second:t.indexOf("m")>=0?e=a.minute:t.indexOf("h")>=0||t.indexOf("H")?e=a.hour:t.indexOf("d")>=0?e=a.day:t.indexOf("M")>=0?e=a.month:t.indexOf("y")>=0&&(e=a.year);return e},i.getNiceInc=function(t,e,i){for(var n=0;n<t.length;n++){var r=t[n]*i;if(e<=r)return r}return 0},i.NiceTimeSpan=function(t,e){var n=a.second;null!=e&&e.length>0&&(n=i.manualTimeInc(e));var r=0,s=0;if(n<a.second&&t.TotalSeconds<10){for(r=t.Ticks,s=i.TimeSpanFromTmInc(n).Ticks;r>10*s;)s*=10;var o=s;return r>o&&(o*=2),r>o&&(o=5*s),r>o&&(o=10*s),new h(o)}if(0==(r=Math.ceil(t.TotalSeconds)))return i.TimeSpanFromTmInc(n);if(s=1,n<a.minute){if(r<a.minute&&0!=(s=i.getNiceInc([1,2,5,10,15,30],r,n)))return h.fromSeconds(s);n=a.minute}if(n<a.hour){if(r<a.hour&&0!=(s=i.getNiceInc([1,2,5,10,15,30],r,n)))return h.fromSeconds(s);n=a.hour}if(n<a.day){if(r<a.day&&0!=(s=i.getNiceInc([1,3,6,12],r,n)))return h.fromSeconds(s);n=a.day}if(n<a.month){if(r<a.month&&0!=(s=i.getNiceInc([1,2,7,14],r,n)))return h.fromSeconds(s);n=a.month}if(n<a.year){if(r<a.year&&0!=(s=i.getNiceInc([1,2,3,4,6],r,n)))return h.fromSeconds(s);n=a.year}return r<(s=100*a.year)&&0==(s=i.getNiceInc([1,2,5,10,20,50],r,n))&&(s=100*a.year),h.fromSeconds(s)},i.NiceTimeUnit=function(t,e){var n=h.fromDays(t);return(n=i.NiceTimeSpan(n,e)).TotalDays},i.GetTimeDefaultFormat=function(e,i){if(!t.isNumber(e)||!t.isNumber(i))return"";var n="s",r=h.fromSeconds(.001*(e-i)),s=r.TotalSeconds;if(s>=a.year)n="yyyy";else if(s>=a.month)n="MMM yyyy";else if(s>=a.day)n="MMM d";else if(s>=a.hour)n="ddd H:mm";else if(s>=.5*a.hour)n="H:mm";else if(s>=1)n="H:mm:ss";else if(s>0){var o=r.Ticks;for(n="s.";o<h.TicksPerSecond;)o*=10,n+="f"}return n},i.secInYear=86400,i}()}(t.chart||(t.chart={}))}(wijmo||(wijmo={})),function(t){!function(e){"use strict";var i,n=function(){function t(t,e,i,n){this._seriesIndex=t,this._pointIndex=e,this._dataX=i,this._dataY=n}return Object.defineProperty(t.prototype,"seriesIndex",{get:function(){return this._seriesIndex},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pointIndex",{get:function(){return this._pointIndex},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dataX",{get:function(){return this._dataX},set:function(t){t!==this._dataX&&(this._dataX=t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dataY",{get:function(){return this._dataY},set:function(t){t!==this._dataY&&(this._dataY=t)},enumerable:!0,configurable:!0}),t}();e._DataPoint=n,function(t){t[t.X=0]="X",t[t.Y=1]="Y",t[t.XY=2]="XY"}(i=e._MeasureOption||(e._MeasureOption={}));var r=function(){function e(t){this._rect=t}return Object.defineProperty(e.prototype,"rect",{get:function(){return this._rect},enumerable:!0,configurable:!0}),e.prototype.contains=function(t){var e=this._rect;return t.x>=e.left&&t.x<=e.right&&t.y>=e.top&&t.y<=e.bottom},e.prototype.pointDistance=function(t,e,n){var r=e.x-t.x,s=e.y-t.y;return n==i.X?Math.abs(r):n==i.Y?Math.abs(s):Math.sqrt(r*r+s*s)},e.prototype.distance=function(e){var n=i.XY;isNaN(e.x)||null===e.x?n=i.Y:(isNaN(e.y)||null===e.y)&&(n=i.X);var r=this._rect;return e.x<r.left?e.y<r.top?this.pointDistance(e,new t.Point(r.left,r.top),n):e.y>r.bottom?this.pointDistance(e,new t.Point(r.left,r.bottom),n):n==i.Y?0:r.left-e.x:e.x>r.right?e.y<r.top?this.pointDistance(e,new t.Point(r.right,r.top),n):e.y>r.bottom?this.pointDistance(e,new t.Point(r.right,r.bottom),n):n==i.Y?0:e.x-r.right:n==i.X?0:e.y<r.top?r.top-e.y:e.y>r.bottom?e.y-r.bottom:0},e}();e._RectArea=r;var s=function(){function t(t,e){this._center=t,this.setRadius(e)}return t.prototype.setRadius=function(t){this._rad=t,this._rad2=t*t},Object.defineProperty(t.prototype,"center",{get:function(){return this._center},enumerable:!0,configurable:!0}),t.prototype.contains=function(t){var e=this._center.x-t.x,i=this._center.y-t.y;return e*e+i*i<=this._rad2},t.prototype.distance=function(t){var e=isNaN(t.x)?0:this._center.x-t.x,i=isNaN(t.y)?0:this._center.y-t.y,n=e*e+i*i;return n<=this._rad2?0:Math.sqrt(n)-this._rad},t}();e._CircleArea=s;var a=function(){function i(t,e){this._x=[],this._y=[],this._x=t,this._y=e}return i.prototype.contains=function(t){return!1},i.prototype.distance=function(i){for(var n=NaN,r=0;r<this._x.length-1;r++){var s=e.FlexChartCore._dist(i,new t.Point(this._x[r],this._y[r]),new t.Point(this._x[r+1],this._y[r+1]));(isNaN(n)||s<n)&&(n=s)}return n},i}();e._LinesArea=a;var o=function(){return function(){}}();e._HitResult=o;var h=function(){function i(t){this._map={},this._chart=t}return i.prototype.add=function(t,e){this._map[e]&&(t.tag||(t.tag=new n(e,NaN,NaN,NaN)),this._map[e].push(t))},i.prototype.clear=function(){this._map={};for(var t=this._chart.series,i=0;i<t.length;i++)t[i].hitTest===e.Series.prototype.hitTest&&(this._map[i]=new Array)},i.prototype.hitTest=function(e,i){void 0===i&&(i=!1);for(var n=null,r=Number.MAX_VALUE,s=this._chart.series.length-1;s>=0;s--){var h=this._map[s];if(h){for(var l=h.length-1;l>=0;l--){var c=h[l];if(!t.tryCast(c,a)||i){var u=c.distance(e);if(u<r&&(n=c,0==(r=u)))break}}if(0==r)break}}if(n){var _=new o;return _.area=n,_.distance=r,_}return null},i.prototype.hitTestSeries=function(t,e){var i=null,n=Number.MAX_VALUE,r=this._map[e];if(r)for(var s=r.length-1;s>=0;s--){var a=r[s],h=a.distance(t);if(h<n&&(i=a,0==(n=h)))break}if(i){var l=new o;return l.area=i,l.distance=n,l}return null},i}();e._HitTester=h}(t.chart||(t.chart={}))}(wijmo||(wijmo={})),function(t){!function(e){"use strict";var i;!function(t){t[t.PlotArea=0]="PlotArea",t[t.AxisX=1]="AxisX",t[t.AxisY=2]="AxisY",t[t.ChartArea=3]="ChartArea",t[t.Legend=4]="Legend",t[t.Header=5]="Header",t[t.Footer=6]="Footer",t[t.Series=7]="Series",t[t.SeriesSymbol=8]="SeriesSymbol",t[t.DataLabel=9]="DataLabel",t[t.None=10]="None"}(i=e.ChartElement||(e.ChartElement={}));var n=function(){function n(t,e,n){this._pointIndex=null,this._chartElement=i.None,this._chart=t,this._pt=e,this._chartElement=n}return Object.defineProperty(n.prototype,"chart",{get:function(){return this._chart},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"point",{get:function(){return this._pt},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"series",{get:function(){return this._series},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"pointIndex",{get:function(){return this._pointIndex},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"chartElement",{get:function(){return this._chartElement},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"distance",{get:function(){return this._dist},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"item",{get:function(){if(null==this._item&&null!==this.pointIndex)if(null!=this.series)this._item=this.series._getItem(this.pointIndex);else{var t=this._chart._getHitTestItem(this.pointIndex);t&&(this._item=t)}return this._item},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"x",{get:function(){return void 0===this._x&&(this._x=this._getValue(1,!1)),this._x},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"y",{get:function(){return void 0===this._y&&(this._y=this._getValue(0,!1)),this._y},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"value",{get:function(){var t=this._chart._getHitTestValue(this.pointIndex,this._groupIndex);return null!=t?t:this.series&&null!=this.series._getValue?this.series._getValue(this.pointIndex):this.y},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"name",{get:function(){if(void 0===this._name){var t=this._chart._getHitTestLabel(this.pointIndex);return null==t?this.series.name:t.toString()}return this._name},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"groupIndex",{get:function(){return this._groupIndex},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_xfmt",{get:function(){return void 0===this.__xfmt&&(this.__xfmt=this._getValue(1,!0)),this.__xfmt},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"_yfmt",{get:function(){return void 0===this.__yfmt&&(this.__yfmt=this._getValue(0,!0)),this.__yfmt},enumerable:!0,configurable:!0}),n.prototype._setData=function(t,e){this._series=t,this._pointIndex=e},n.prototype._setDataGroup=function(t,e){this._groupIndex=t,this._pointIndex=e},n.prototype._setDataPoint=function(i){if(i=t.asType(i,e._DataPoint,!0)){this._pointIndex=i.pointIndex;var n=t.asType(this._chart,e.FlexChartCore,!0),r=i.seriesIndex;null!==r&&r>=0&&r<n.series.length&&(this._series=n.series[r]),null!=i.item&&(this._item=i.item),null!=i.x&&(this._x=i.x),null!=i.y&&(this._y=i.y),null!=i.xfmt&&(this.__xfmt=i.xfmt),null!=i.yfmt&&(this.__yfmt=i.yfmt),null!=i.name&&(this._name=i.name)}},n.prototype._getValueFmt=function(){var e=this.value;if(null!=e){if(null==this.series){var i=e==Math.round(e)?"{val:n0}":"{val:n}";return t.format(i,{val:e})}e=this._chart._isRotated()?this.ax._formatValue(e):this.ay._formatValue(e)}return e},n.prototype._getValue=function(e,i){var n=this._chart._getHitTestValue(this.pointIndex,this.groupIndex);if(null!==n)return n;var r=null,s=this._chart,a=this.pointIndex,o=s._isRotated();if(null!==this.series&&null!==a){var h=this.series.getValues(e),l=this.series.getDataType(e);h&&this.pointIndex<h.length?(r=h[this.pointIndex],l!=t.DataType.Date||i||(r=new Date(r))):1==e&&(s._xlabels&&s._xlabels.length>0&&a<s._xlabels.length?r=s._xlabels[a]:s._xvals&&a<s._xvals.length&&(r=s._xvals[a],s._xDataType!=t.DataType.Date||i||(r=new Date(r))))}return null!==r&&i&&(o?0==e?r=this.ax._formatValue(r):1==e&&(r=this.ay._formatValue(r)):0==e?r=this.ay._formatValue(r):1==e&&(r=this.ax._formatValue(r))),r},Object.defineProperty(n.prototype,"ax",{get:function(){return this.series.axisX?this.series.axisX:this._chart.axisX},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"ay",{get:function(){return this.series.axisY?this.series.axisY:this._chart.axisY},enumerable:!0,configurable:!0}),n}();e.HitTestInfo=n}(t.chart||(t.chart={}))}(wijmo||(wijmo={})),function(t){!function(e){"use strict";var i,n;!function(t){t[t.Visible=0]="Visible",t[t.Plot=1]="Plot",t[t.Legend=2]="Legend",t[t.Hidden=3]="Hidden"}(i=e.SeriesVisibility||(e.SeriesVisibility={})),function(t){t[t.Dot=0]="Dot",t[t.Box=1]="Box"}(n=e.Marker||(e.Marker={}));var r=function(){return function(){}}();e.DataArray=r;var s=function(e){function i(i){var n=e.call(this)||this;return n._series=t.asType(i,a),n}return __extends(i,e),Object.defineProperty(i.prototype,"series",{get:function(){return this._series},enumerable:!0,configurable:!0}),i}(t.EventArgs);e.SeriesEventArgs=s;var a=function(){function a(e){this._altStyle=null,this._symbolMarker=n.Dot,this._visibility=i.Visible,this._interpolateNulls=null,this._cache={},this.rendering=new t.Event,this.rendered=new t.Event,this.initialize(e)}return Object.defineProperty(a.prototype,"interpolateNulls",{get:function(){return null==this._interpolateNulls?this._chart&&this._chart.interpolateNulls:this._interpolateNulls},set:function(e){e!=this._interpolateNulls&&(this._interpolateNulls=t.asBoolean(e,!0),this._invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"style",{get:function(){return this._style},set:function(t){t!=this._style&&(this._style=t,this._invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"altStyle",{get:function(){return this._altStyle},set:function(t){t!=this._altStyle&&(this._altStyle=t,this._invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"symbolStyle",{get:function(){return this._symbolStyle},set:function(t){t!=this._symbolStyle&&(this._symbolStyle=t,this._invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"symbolSize",{get:function(){return this._symbolSize},set:function(e){e!=this._symbolSize&&(this._symbolSize=t.asNumber(e,!0,!0),this._invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"symbolMarker",{get:function(){return this._symbolMarker},set:function(e){(e=t.asEnum(e,n,!0))!=this._symbolMarker&&(this._symbolMarker=e,this._invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"binding",{get:function(){return this._binding?this._binding:this._chart?this._chart.binding:null},set:function(e){e!=this._binding&&(this._binding=t.asString(e,!0),this._clearValues(),this._invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"bindingX",{get:function(){return this._bindingX?this._bindingX:this._chart?this._chart.bindingX:null},set:function(e){e!=this._bindingX&&(this._bindingX=t.asString(e,!0),this._clearValues(),this._invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"name",{get:function(){return this._name},set:function(t){this._name=t},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"itemsSource",{get:function(){return this._itemsSource},set:function(e){e!=this._itemsSource&&(this._cv&&(this._cv.currentChanged.removeHandler(this._cvCurrentChanged,this),this._cv.collectionChanged.removeHandler(this._cvCollectionChanged,this),this._cv=null),this._itemsSource=e,this._cv=t.asCollectionView(e),null!=this._cv&&(this._cv.currentChanged.addHandler(this._cvCurrentChanged,this),this._cv.collectionChanged.addHandler(this._cvCollectionChanged,this)),this._clearValues(),this._itemsSource=e,this._invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"collectionView",{get:function(){return this._cv?this._cv:this._chart?this._chart.collectionView:null},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"chart",{get:function(){return this._chart},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"hostElement",{get:function(){return this._hostElement},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"legendElement",{get:function(){return this._legendElement},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"cssClass",{get:function(){return this._cssClass},set:function(e){this._cssClass=t.asString(e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"visibility",{get:function(){return this._visibility},set:function(e){(e=t.asEnum(e,i))!=this._visibility&&(this._visibility=e,this._clearValues(),this._invalidate(),this._chart&&this._chart.onSeriesVisibilityChanged(new s(this)))},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"tooltipContent",{get:function(){return this._tooltipContent},set:function(t){t!=this._tooltipContent&&(this._tooltipContent=t)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"itemFormatter",{get:function(){return this._itemFormatter},set:function(e){e!=this._itemFormatter&&(this._itemFormatter=t.asFunction(e),this._invalidate())},enumerable:!0,configurable:!0}),a.prototype.hitTest=function(e,i){return t.isNumber(e)&&t.isNumber(i)?e=new t.Point(e,i):e instanceof MouseEvent&&(e=new t.Point(e.pageX,e.pageY)),t.asType(e,t.Point),this._chart?this._chart._hitTestSeries(e,this._chart.series.indexOf(this)):null},a.prototype.getPlotElement=function(t){if(this.hostElement&&t<this._pointIndexes.length){var e=this._pointIndexes[t];if(e<this.hostElement.childNodes.length)return this.hostElement.childNodes[e]}return null},Object.defineProperty(a.prototype,"axisX",{get:function(){return this._axisX},set:function(i){if(i!=this._axisX){if(this._axisX=t.asType(i,e.Axis,!0),this._axisX){var n=this._axisX._chart=this._chart;n&&-1==n.axes.indexOf(this._axisX)&&n.axes.push(this._axisX)}this._invalidate()}},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"axisY",{get:function(){return this._axisY},set:function(i){if(i!=this._axisY){if(this._axisY=t.asType(i,e.Axis,!0),this._axisY){var n=this._axisY._chart=this._chart;n&&-1==n.axes.indexOf(this._axisY)&&n.axes.push(this._axisY)}this._invalidate()}},enumerable:!0,configurable:!0}),a.prototype.initialize=function(e){t.copy(this,e)},a.prototype.pointToData=function(e){return t.asType(e,t.Point),(e=e.clone()).x=this._getAxisX().convertBack(e.x),e.y=this._getAxisY().convertBack(e.y),e},a.prototype.dataToPoint=function(e){return t.asType(e,t.Point),(e=e.clone()).x=this._getAxisX().convert(e.x),e.y=this._getAxisY().convert(e.y),e},a.prototype.onRendering=function(t,i,n){var r=new e.SeriesRenderingEventArgs(t,i,n);return this.rendering.raise(this,r),r.cancel},a.prototype.onRendered=function(t){this.rendered.raise(this,new e.RenderEventArgs(t))},Object.defineProperty(a.prototype,"_chart",{get:function(){return this.__chart},set:function(t){t!==this.__chart&&(this.__chart=t)},enumerable:!0,configurable:!0}),a.prototype._getSymbolSize=function(){return null!=this.symbolSize?this.symbolSize:this.chart.symbolSize},Object.defineProperty(a.prototype,"_plotter",{get:function(){return this.chart&&!this.__plotter&&(this.__plotter=this.chart._getPlotter(this)),this.__plotter},set:function(t){t!=this.__plotter&&(this.__plotter=t)},enumerable:!0,configurable:!0}),a.prototype.getDataType=function(t){return 0==t?this._valueDataType:1==t?this._xvalueDataType:null},a.prototype.getValues=function(t){if(0==t){if(null==this._values)if(this._valueDataType=null,null!=this._cv){var e=this._bindValues(this._cv.items,this._getBinding(0));this._values=e.values,this._valueDataType=e.dataType}else if(null!=this.binding&&null!=this._chart&&null!=this._chart.collectionView){e=this._bindValues(this._chart.collectionView.items,this._getBinding(0));this._values=e.values,this._valueDataType=e.dataType}return this._values}if(1==t){if(null==this._xvalues){this._xvalueDataType=null;if(null!=this.bindingX)if(null!=this._cv){e=this._bindValues(this._cv.items,this.bindingX,!0);this._xvalueDataType=e.dataType,this._xvalues=e.values}else{if(null==this._bindingX)return null;if(null!=this._chart&&null!=this._chart.collectionView){e=this._bindValues(this._chart.collectionView.items,this.bindingX,!0);this._xvalueDataType=e.dataType,this._xvalues=e.values}}}return this._xvalues}return null},a.prototype.drawLegendItem=function(t,i,n){var r=this._getChartType();null==r&&(r=this._chart._getChartType());var s=this._getLegendStyle(this.style);r===e.ChartType.Funnel?this._drawFunnelLegendItem(t,i,n,s,this.symbolStyle):this._drawLegendItem(t,i,r,this.name,s,this.symbolStyle)},a.prototype._getLegendStyle=function(t){if(t){var e={};return t.fill&&(e.fill=t.fill),t.stroke&&(e.stroke=t.stroke),e}},a.prototype.measureLegendItem=function(t,i){var n=this._getChartType();return null==n&&(n=this._chart._getChartType()),n===e.ChartType.Funnel?this._measureLegendItem(t,this._getFunnelLegendName(i)):this._measureLegendItem(t,this.name)},a.prototype.legendItemLength=function(){var t=this._getChartType();return null==t&&(t=this._chart._getChartType()),t===e.ChartType.Funnel?this._chart._xlabels&&this._chart._xlabels.length?this._chart._xlabels.length:this._chart._xvals&&this._chart._xvals.length?this._chart._xvals.length:1:1},a.prototype.getDataRect=function(t,e){return null},a.prototype._getChartType=function(){return this._chartType},a.prototype._clearValues=function(){this._values=null,this._xvalues=null,this.__plotter=null,this._cache={}},a.prototype._getBinding=function(t){var e=this.binding;if(e){var i=this.chart?this.chart._bindingSeparator:",";if(i){var n=e.split(i);n&&n.length>t&&(e=n[t].trim())}}return e},a.prototype._getBindingValues=function(t){if(this._cache[t])return this._cache[t];var e;null!=this._cv?e=this._cv.items:null!=this._chart&&null!=this._chart.collectionView&&(e=this._chart.collectionView.items);var i=this._bindValues(e,this._getBinding(t));return this._cache[t]=i.values},a.prototype._getItem=function(t){var e=null,i=null;return null!=this.itemsSource?i=null!=this._cv?this._cv.items:this.itemsSource:null!=this._chart.itemsSource&&(i=null!=this._chart.collectionView?this._chart.collectionView.items:this._chart.itemsSource),null!=i&&(e=i[t]),e},a.prototype._getLength=function(){var t=0,e=null;return null!=this.itemsSource?e=null!=this._cv?this._cv.items:this.itemsSource:null!=this._chart.itemsSource&&(e=null!=this._chart.collectionView?this._chart.collectionView.items:this._chart.itemsSource),null!=e&&(t=e.length),t},a.prototype._setPointIndex=function(t,e){this._pointIndexes[t]=e},a.prototype._getDataRect=function(){var e=this.getValues(0),i=this.getValues(1);if(e){for(var n=NaN,r=NaN,s=NaN,a=NaN,o=e.length,h=0;h<o;h++){var l=e[h];if(isFinite(l)&&(isNaN(r)?r=a=l:l<r?r=l:l>a&&(a=l)),i){var c=i[h];isFinite(c)&&(isNaN(n)?n=s=c:c<n?n=c:l>a&&(s=c))}}if(i||(n=0,s=o-1),!isNaN(r))return new t.Rect(n,r,s-n,a-r)}return null},a.prototype._isCustomAxisX=function(){return!!this._axisX&&(!this._chart||this._axisX!=this.chart.axisX)},a.prototype._isCustomAxisY=function(){return!!this._axisY&&(!this._chart||this._axisY!=this.chart.axisY)},a.prototype._getAxisX=function(){var t=null;return this.axisX?t=this.axisX:this.chart&&(t=this.chart.axisX),t},a.prototype._getAxisY=function(){var t=null;return this.axisY?t=this.axisY:this.chart&&(t=this.chart.axisY),t},a.prototype._measureLegendItem=function(i,n){var r=new t.Size;if(r.width=a._LEGEND_ITEM_WIDTH,r.height=a._LEGEND_ITEM_HEIGHT,this._name){var s=i.measureString(n,e.FlexChartCore._CSS_LABEL,e.FlexChartCore._CSS_LEGEND);r.width+=s.width,r.height<s.height&&(r.height=s.height)}return r.width+=3*a._LEGEND_ITEM_MARGIN,r.height+=2*a._LEGEND_ITEM_MARGIN,r},a.prototype._drawFunnelLegendItem=function(i,n,r,s,o){i.strokeWidth=1;var h=a._LEGEND_ITEM_MARGIN,l=null,c=null;null===l&&(l=this._chart._getColorLight(r)),null===c&&(c=this._chart._getColor(r)),i.fill=l,i.stroke=c;var u=n.top+.5*n.height,_=a._LEGEND_ITEM_WIDTH,p=a._LEGEND_ITEM_HEIGHT,d=this._getFunnelLegendName(r);i.drawRect(n.left+h,u-.5*p,_,p,null,o||s),null!=d&&e.FlexChartCore._renderText(i,d,new t.Point(n.left+p+2*h,u),0,1,e.FlexChartCore._CSS_LABEL,e.FlexChartCore._CSS_LEGEND)},a.prototype._getFunnelLegendName=function(i){var n,r=this._chart;return r._xlabels&&r._xlabels.length&&i<r._xlabels.length?n=r._xlabels[i]:r._xvals&&r._xvals.length&&i<r._xvals.length&&(n=r._xvals[i],r._xDataType===t.DataType.Date&&(n=e.FlexChartCore._fromOADate(n))),null==n&&(n=this.name),n.toString()},a.prototype._drawLegendItem=function(i,r,s,o,h,l){i.strokeWidth=1;var c=a._LEGEND_ITEM_MARGIN,u=null,_=null;null===u&&(u=this._chart._getColorLight(this._chart.series.indexOf(this))),null===_&&(_=this._chart._getColor(this._chart.series.indexOf(this))),i.fill=u,i.stroke=_;var p=r.top+.5*r.height,d=a._LEGEND_ITEM_WIDTH,f=a._LEGEND_ITEM_HEIGHT;switch(s){case e.ChartType.Area:case e.ChartType.SplineArea:case e.ChartType.StepArea:i.drawRect(r.left+c,p-.5*f,d,f,null,h);break;case e.ChartType.Bar:case e.ChartType.Column:i.drawRect(r.left+c,p-.5*f,d,f,null,l||h);break;case e.ChartType.Scatter:case e.ChartType.Bubble:var g=.3*d,m=.3*f;this.symbolMarker==n.Box?i.drawRect(r.left+c+.5*d-g,p-m,2*g,2*m,null,l||h):i.drawEllipse(r.left+.5*d+c,p,g,m,null,l||h);break;case e.ChartType.Line:case e.ChartType.Spline:case e.ChartType.Step:i.drawLine(r.left+c,p,r.left+d+c,p,null,h);break;case e.ChartType.LineSymbols:case e.ChartType.SplineSymbols:case e.ChartType.StepSymbols:g=.3*d,m=.3*f;this.symbolMarker==n.Box?i.drawRect(r.left+c+.5*d-g,p-m,2*g,2*m,null,l||h):i.drawEllipse(r.left+.5*d+c,p,g,m,null,l||h),i.drawLine(r.left+c,p,r.left+d+c,p,null,h);break;case e.ChartType.Candlestick:case e.ChartType.HighLowOpenClose:i.drawLine(r.left+c,p,r.left+d+c,p,null,l||h)}this._name&&e.FlexChartCore._renderText(i,o,new t.Point(r.left+f+2*c,p),0,1,e.FlexChartCore._CSS_LABEL,e.FlexChartCore._CSS_LEGEND)},a.prototype._cvCollectionChanged=function(t,e){this._clearValues(),this._invalidate()},a.prototype._cvCurrentChanged=function(t,e){this._chart&&this._chart._notifyCurrentChanged&&this._invalidate()},a.prototype._bindValues=function(e,i,n){var s,a,o;if(void 0===n&&(n=!1),null!=e){var h=e.length;s=new Array(e.length);for(var l=i?new t.Binding(i):null,c=0;c<h;c++){o=null;var u=e[c];null!=l&&(u=l.getValue(u)),t.isArray(u)&&u.length>0&&(o=u,u=u[0]),t.isNumber(u)?(s[c]=u,a=t.DataType.Number):t.isDate(u)?(s[c]=u.valueOf(),a=t.DataType.Date):n&&u&&(s[c]=c,a=t.DataType.Number),t.isArray(o)&&o.length>0&&(s[c]=o)}}var _=new r;return _.values=s,_.dataType=a,_},a.prototype._invalidate=function(){this._chart&&this._chart.invalidate()},a.prototype._indexToPoint=function(e){if(e>=0&&e<this._values.length){var i=this._values[e],n=this._xvalues?this._xvalues[e]:e;return new t.Point(n,i)}return null},a.prototype._getSymbolFill=function(t){var e=null;return this.symbolStyle&&(e=this.symbolStyle.fill),!e&&this.style&&(e=this.style.fill),!e&&this.chart&&(e=this.chart._getColorLight(t)),e},a.prototype._getSymbolStroke=function(t){var e=null;return this.symbolStyle&&(e=this.symbolStyle.stroke),!e&&this.style&&(e=this.style.stroke),!e&&this.chart&&(e=this.chart._getColor(t)),e},a.prototype._getAltSymbolStroke=function(t){var e=null;return this.altStyle&&(e=this.altStyle.stroke),e},a.prototype._getAltSymbolFill=function(t){var e=null;return this.altStyle&&(e=this.altStyle.fill),e},a.prototype._renderLabels=function(t,e,i,n){this._plotter&&this._plotter._renderLabels(t,this,e,i,n)},a._LEGEND_ITEM_WIDTH=10,a._LEGEND_ITEM_HEIGHT=10,a._LEGEND_ITEM_MARGIN=4,a._DEFAULT_SYM_SIZE=10,a}();e.SeriesBase=a}(t.chart||(t.chart={}))}(wijmo||(wijmo={})),function(t){!function(e){"use strict";var i=function(i){function n(){return null!==i&&i.apply(this,arguments)||this}return __extends(n,i),Object.defineProperty(n.prototype,"chartType",{get:function(){return this._chartType},set:function(i){(i=t.asEnum(i,e.ChartType,!0))!=this._chartType&&(this._chartType=i,this._invalidate())},enumerable:!0,configurable:!0}),n}(e.SeriesBase);e.Series=i}(t.chart||(t.chart={}))}(wijmo||(wijmo={})),function(t){!function(e){"use strict";var i=function(i){function a(n,r){var s=i.call(this,n,null,!0)||this;s._areas=[],s._keywords=new e._KeyWords,s._startAngle=0,s._innerRadius=0,s._offset=0,s._reversed=!1,s._isAnimated=!1,s._selectedItemPosition=e.Position.None,s._selectedItemOffset=0,s._pieGroups=[],s._rotationAngles=[],s._centers=[new t.Point],s._selectedOffset=new t.Point,s._selectedIndex=-1,s._angles=[],s._colRowLens=[],s._titles=void 0,s._values=[],s._labels=[],s._pels=[],s._sum=0,s._sums=[],s._bindingSeparator=",",s.applyTemplate("wj-control wj-flexchart wj-flexpie",null,null),s._currentRenderEngine=new e._SvgRenderEngine(s.hostElement),s._legend=new e.Legend(s),s._tooltip=new e.ChartTooltip,s._tooltip.content="<b>{name}</b><br/>{value}",s._tooltip.showDelay=0,s._lbl=new e.PieDataLabel,s._lbl._chart=s;var a=s;return s.hostElement.addEventListener("mousemove",function(e){var i=a._tooltip;if(i.content&&!a.isTouching){var n=a.hitTest(e);if(n.distance<=i.threshold){var r=a._getLabelContent(n,a.tooltip.content);a._showToolTip(r,new t.Rect(e.clientX,e.clientY,5,5))}else a._hideToolTip()}}),s.hostElement.addEventListener("click",function(i){var n=!0;if(a.selectionMode==e.SelectionMode.Point){var r=a.hitTest(i),s=e.FlexChartBase._SELECTION_THRESHOLD;a.tooltip&&a.tooltip.threshold&&(s=a.tooltip.threshold),r.distance<=s?(r.pointIndex!=a._selectionIndex&&a.selectedItemPosition!=e.Position.None&&(n=!1),r.pointIndex!=a._selectionIndex&&a._select(r.pointIndex,!0)):a._selectedIndex>=0&&a._select(null)}if(n&&a.isTouching){var o=a._tooltip;if(o.content)if((r=a.hitTest(i)).distance<=o.threshold){var h=a._getLabelContent(r,a.tooltip.content);a._showToolTip(h,new t.Rect(i.clientX,i.clientY,5,5))}else a._hideToolTip()}}),s.hostElement.addEventListener("mouseleave",function(t){a._hideToolTip()}),s.deferUpdate(function(){return s.initialize(r)}),s}return __extends(a,i),Object.defineProperty(a.prototype,"binding",{get:function(){return this._binding},set:function(e){e!=this._binding&&(this._binding=t.asString(e,!0),this._bindChart())},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"bindingName",{get:function(){return this._bindingName},set:function(e){e!=this._bindingName&&(this._bindingName=t.asString(e,!0),this._bindChart())},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"startAngle",{get:function(){return this._startAngle},set:function(e){e!=this._startAngle&&(this._startAngle=t.asNumber(e,!0),this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"offset",{get:function(){return this._offset},set:function(e){e!=this._offset&&(this._offset=t.asNumber(e,!0),this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"innerRadius",{get:function(){return this._innerRadius},set:function(e){e!=this._innerRadius&&(this._innerRadius=t.asNumber(e,!0),this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"innerTextStyle",{get:function(){return this._innerTextStyle},set:function(t){t!=this._innerText&&(this._innerTextStyle=t,this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"innerText",{get:function(){return this._innerText},set:function(t){t!=this._innerText&&(this._innerText=t,this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"reversed",{get:function(){return this._reversed},set:function(e){e!=this._reversed&&(this._reversed=t.asBoolean(e,!0),this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"selectedItemPosition",{get:function(){return this._selectedItemPosition},set:function(i){(i=t.asEnum(i,e.Position,!0))!=this._selectedItemPosition&&(this._selectedItemPosition=i,this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"selectedItemOffset",{get:function(){return this._selectedItemOffset},set:function(e){e!=this._selectedItemOffset&&(this._selectedItemOffset=t.asNumber(e,!0),this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"isAnimated",{get:function(){return this._isAnimated},set:function(t){t!=this._isAnimated&&(this._isAnimated=t)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"tooltip",{get:function(){return this._tooltip},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"dataLabel",{get:function(){return this._lbl},set:function(t){t!=this._lbl&&(this._lbl=t,this._lbl&&(this._lbl._chart=this))},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"selectedIndex",{get:function(){return this._selectedIndex},set:function(e){if(e!=this._selectedIndex){var i=t.asNumber(e,!0);this._select(i,!0)}},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"titles",{get:function(){return this._titles},set:function(t){t!==this._titles&&(this._titles=t,this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"chartsPerLine",{get:function(){return this._chartsPerLine},set:function(e){e!=this._chartsPerLine&&(this._chartsPerLine=t.asNumber(e,!0,!0),this.invalidate())},enumerable:!0,configurable:!0}),a.prototype._getLabelsForLegend=function(){return this._labels},a.prototype.hitTest=function(t,i){var n=this._toControl(t,i),r=new e.HitTestInfo(this,n),s=null;if(e.FlexChartBase._contains(this._rectHeader,n))r._chartElement=e.ChartElement.Header;else if(e.FlexChartBase._contains(this._rectFooter,n))r._chartElement=e.ChartElement.Footer;else if(e.FlexChartBase._contains(this._rectLegend,n))r._chartElement=e.ChartElement.Legend,null!==(s=this.legend._hitTest(n))&&s>=0&&s<this._areas.length&&r._setData(null,s);else if(e.FlexChartBase._contains(this._rectChart,n)){for(var a,o=this._areas.length,h=NaN,l=0;l<o;l++){var c=n.clone(),u=this._areas[l],_=this._rotationAngles[u.gi];if(0!=_){var p=this._centers[u.gi],d=p.x,f=p.y,g=-d+c.x,m=-f+c.y,y=Math.sqrt(g*g+m*m),b=Math.atan2(m,g)-_*Math.PI/180;c.x=d+y*Math.cos(b),c.y=f+y*Math.sin(b)}l==this._selectedIndex&&(c.x-=this._selectedOffset.x,c.y-=this._selectedOffset.y);var v=this._areas[l];if(v.contains(c)&&(r._setDataGroup(u.gi,v.tag),r._dist=0,l!=this._selectedIndex))break;var x=v.distance(c);void 0!==x&&(isNaN(h)||x<h)&&(h=x,a=v)}0!==r._dist&&null!=a&&(r._setDataGroup(a.gi,a.tag),r._dist=h),r._chartElement=e.ChartElement.ChartArea}else r._chartElement=e.ChartElement.None;return r},a.prototype._performBind=function(){if(this._initData(),this._cv){this._selectionIndex=this._cv.currentPosition;var t=this._cv.items;if(t){for(var e=t.length,i=this._getBindings(),n=0;n<i.length;n++)this._values[n]=[],this._sums[n]=0;for(var r=0;r<e;r++){var s=t[r];for(n=0;n<i.length;n++)this._sums[n]+=Math.abs(this._getBindData(s,this._values[n],0==n?this._labels:null,i[n],this.bindingName))}}}},a.prototype._getBindings=function(){var t=[],e=this.binding;if(e){var i=this._bindingSeparator;i&&(t=e.split(i))}return t},a.prototype._initData=function(){this._sum=0,this._sums=[],this._values=[],this._labels=[]},a.prototype._getBindData=function(e,i,n,r,s){var a,o=0,h=r?new t.Binding(r):null;h&&(a=h.getValue(e));o=0;t.isNumber(a)?o=t.asNumber(a):a&&(o=parseFloat(a.toString())),!isNaN(o)&&isFinite(o)?i.push(o):(o=0,i.push(o));var l=s?new t.Binding(s):null;if(n)if(l&&e){var c=l.getValue(e);c&&(c=c.toString()),n.push(c)}else n.push(o.toString());return o},a.prototype._render=function(t,n,r){void 0===n&&(n=!0),void 0===r&&(r=null),this._selectionAnimationID&&clearInterval(this._selectionAnimationID),this.onRendering(new e.RenderEventArgs(t)),i.prototype._render.call(this,t,n,r)},a.prototype._prepareRender=function(){this._areas=[]},a.prototype._renderChart=function(i,n,r){var s=this._rectChart.clone(),o=(new t.Size(s.width,s.height),n.width),h=n.height,l=this._parseMargin(this.plotMargin),c=this.dataLabel,u=c.content&&c.position==e.PieLabelPosition.Outside,_=u?(t.isNumber(c.offset)?c.offset:0)+24:0;isNaN(l.left)&&(l.left=u?_:a._MARGIN),isNaN(l.right)&&(l.right=u?_:a._MARGIN),isNaN(l.top)&&(l.top=u?_:a._MARGIN),isNaN(l.bottom)&&(l.bottom=u?_:a._MARGIN),n.top+=l.top;h=n.height-(l.top+l.bottom);n.height=h>0?h:24,n.left+=l.left;o=n.width-(l.left+l.right);n.width=o>0?o:24;var p=this._getBindings(),d=this.titles;void 0===d&&p.length>1&&(d=p);var f=this._layout(i,n,d,p.length);this._angles=[],this._pels=[],this._pieGroups=[],this._rotationAngles=[];for(var g=0;g<p.length;g++){var m=f[g];d&&g<d.length&&d[g]&&e.FlexChartBase._renderText(i,d[g],new t.Point(m.left+.5*m.width,m.top),1,2,a._CSS_GROUP_TITLE);var y=i.startGroup("wj-slice-group",null,!0);this._pieGroups.push(y),this._renderData(i,m,g,y),i.endGroup(),this._rotationAngles.push(0)}this._highlightCurrent(),this.innerText&&this._renderInnerText(i),this.dataLabel.content&&this.dataLabel.position!=e.PieLabelPosition.None&&this._renderLabels(i),this.onRendered(new e.RenderEventArgs(i))},a.prototype._layout=function(e,i,n,r){var s=0,o=r,h=1,l=0;if(n)for(var c=0;c<n.length;c++)l=Math.max(l,e.measureString(n[c],a._CSS_GROUP_TITLE).height);var u=Math.floor(this.chartsPerLine);if(u>0){o=Math.min(r,u),h=Math.ceil(r/o);var _=Math.floor(i.width/o),p=Math.floor(i.height/h)-l;s=Math.min(_,p)}else for(var d=1;d<=r;d++){var f=Math.floor((r+(d-1))/d);_=Math.floor(i.width/d),p=Math.floor(i.height/f);(p-=l)<_&&(_=p),_>s&&(s=_,o=d,h=f)}for(var g=[],m=.5*(i.width-s*o),y=.5*(i.height-(s+l)*h),b=0;b<h;b++)for(var v=0;v<o;v++)g.push(new t.Rect(i.left+s*v+8+m,i.top+(s+l)*b+8+y+l,s-16,s-16));return g},a.prototype._getDesiredLegendSize=function(e,i,n,r){var s=new t.Size,a=(new t.Size(n,r),this._getLabelsForLegend()),o=a.length,h=0,l=0;this._colRowLens=[];for(var c=0;c<o;c++){var u=this._measureLegendItem(e,a[c]);i?(l+u.height>r&&(s.height=r,this._colRowLens.push(h),h=0,l=0),h<u.width&&(h=u.width),l+=u.height):(h+u.width>n&&(s.width=n,this._colRowLens.push(l),l=0,h=0),l<u.height&&(l=u.height),h+=u.width)}return i?(s.height<l&&(s.height=l),this._colRowLens.push(h),s.width=this._colRowLens.reduce(function(t,e){return t+e},0),s.width=this._getLegendSize(n,s.width)):(s.width<h&&(s.width=h),this._colRowLens.push(l),s.height=this._colRowLens.reduce(function(t,e){return t+e},0),s.height=this._getLegendSize(r,s.height)),s},a.prototype._renderLegend=function(e,i,n,r,s,a){for(var o=this._rectLegend,h=this._getLabelsForLegend(),l=h.length,c=0,u=i.clone(),_=0;_<l;_++){var p=this._measureLegendItem(e,h[_]);r?u.y+p.height>o.top+o.height+1&&(u.x+=this._colRowLens[c],c++,u.y=i.y):u.x+p.width>o.left+o.width+1&&(u.y+=this._colRowLens[c],c++,u.x=i.x);var d=new t.Rect(u.x,u.y,p.width,p.height);this._drawLegendItem(e,d,_,h[_]),n.push(d),r?u.y+=p.height:u.x+=p.width}},a.prototype._renderData=function(e,i,n,r){var s=this._sums[n],a=this.startAngle+180,o=this.innerRadius,h=this.offset;if(o>1&&(o=1),s>0){var l=a*Math.PI/180,c=i.left+.5*i.width,u=i.top+.5*i.height,_=Math.min(.5*i.width,.5*i.height);this._centers[n]=new t.Point(c,u);var p=Math.max(h,this.selectedItemOffset);p>0&&(h*=_/=1+p),this._radius=_;var d=o*_;this._renderPie(e,n,_,d,l,h)}},a.prototype._renderPie=function(t,e,i,n,r,s){this._renderSlices(t,this._values[e],this._sums[e],e,i,n,r,2*Math.PI,s)},a.prototype._getCenter=function(){return this._centers[0]},a.prototype._renderSlices=function(t,e,i,n,r,s,a,o,h){for(var l,c,u,_=e.length,p=0,d=a,f=1==this.reversed,g=this._centers[n],m=0;m<_;m++)e[m]>0&&p++;var y=1===p?360:359.9/360;for(m=0;m<_;m++){c=g.x,u=g.y,l=t.startGroup("wj-slice"),t.fill=this._getColorLight(m),t.stroke=this._getColor(m);var b=Math.abs(e[m]),v=Math.abs(b-i)<1e-10?o:o*b/i;v=Math.min(v,o*y);var x=f?d-.5*v:d+.5*v;h>0&&v<o&&(c+=h*Math.cos(x),u+=h*Math.sin(x)),this._renderSlice(t,c,u,x,n,m,r,s,d,v,o),f?d-=v:d+=v,t.endGroup(),this._pels.push(l)}},a.prototype._renderSlice=function(i,n,r,s,a,o,h,l,c,u,_){var p=this,d=!!this.reversed;if(this._angles.push(s),this.itemFormatter){var f=new e.HitTestInfo(this,new t.Point(n+h*Math.cos(s),r+h*Math.sin(s)),e.ChartElement.SeriesSymbol);f._setData(null,o),this.itemFormatter(i,f,function(){p._drawSlice(i,a,o,d,n,r,h,l,c,u)}),i.cssPriority=!0}else this._drawSlice(i,a,o,d,n,r,h,l,c,u)},a.prototype._getSelectedItemOffset=function(t,e){var i=0,n=0,r=0;return t==this._selectedIndex&&this.selectedItemOffset>0&&(r=this.selectedItemOffset),r>0&&(i=Math.cos(e)*r*this._radius,n=Math.sin(e)*r*this._radius),{x:i,y:n}},a.prototype._renderInnerText=function(i){for(var n=this.innerText,r=this.innerTextStyle,s=0;s<this._centers.length;s++){var o=this._centers[s],h=void 0;(h=t.isFunction(n)?n(s):t.isArray(n)?t.asString(n[s]):t.asString(n))&&(h=t.format(h,{total:this._sums[s],binding:this._getBindings()[s]}),r&&(i.cssPriority=!1),a._renderText(i,h,o,1,1,e.FlexChartBase._CSS_TITLE,null,r),i.cssPriority=!0)}},a.prototype._renderLabels=function(i){var r=this._areas.length,s=this.dataLabel,a=s.position,o="wj-data-label",h=this._rotationAngles,l=s.connectingLine,c=s.offset?s.offset:0;i.stroke="null",i.fill="transparent",i.strokeWidth=1,i.startGroup("wj-data-labels");for(var u=0;u<r;u++){var _=this._areas[u];if(_){var p=_.radius,d=_.langle+h[_.gi],f=1,g=1;a==e.PieLabelPosition.Center||a===e.PieLabelPosition.Radial||a===e.PieLabelPosition.Circular?p*=.5*(1+(_.innerRadius||0)/_.radius):((d=n.clampAngle(d))<=-170||d>=170?(f=2,g=1):d>=-100&&d<=-80?(f=1,g=2):d>=-10&&d<=10?(f=0,g=1):d>=80&&d<=100?(f=1,g=0):-180<d&&d<-90?(f=2,g=2):-90<=d&&d<0?(f=0,g=2):0<d&&d<90?(f=0,g=0):90<d&&d<180&&(f=2,g=0),a==e.PieLabelPosition.Inside&&(f=2-f,g=2-g)),d*=Math.PI/180;var m=_.gi?u-_.gi*this._values[0].length:u,y=this._getSelectedItemOffset(m,d),b=y.x,v=y.y,x=p;a==e.PieLabelPosition.Outside?x+=c:a==e.PieLabelPosition.Inside&&(x-=c);var w=_.center.x,S=_.center.y,P=this._centers[_.gi],C=w-P.x,T=S-P.y;if(0!=this._rotationAngles[_.gi]){var M=Math.sqrt(C*C+T*T),A=Math.atan2(T,C)+this._rotationAngles[_.gi]*Math.PI/180;w=P.x+M*Math.cos(A),S=P.y+M*Math.sin(A)}var N=new t.Point(w+b+x*Math.cos(d),S+v+x*Math.sin(d));s.border&&a!=e.PieLabelPosition.Center&&(0==f?N.x+=2:2==f&&(N.x-=2),0==g?N.y+=2:2==g&&(N.y-=2));var L=new e.HitTestInfo(this,N);L._setDataGroup(_.gi,_.tag);var E=this._getLabelContent(L,s.content),I=new e.DataLabelRenderEventArgs(i,L,N,E);if(s.onRendering&&(s.onRendering(I)?(E=I.text,N=I.point):E=null),E){var k,D=180*Math.atan2(S-N.y,w-N.x)/Math.PI;if(D=(D+360)%360,a===e.PieLabelPosition.Radial||a===e.PieLabelPosition.Circular?(a===e.PieLabelPosition.Radial?D>90&&D<270&&(D+=180):(D>180&&D<360&&(D+=180),D-=90),(k=e.FlexChartBase._renderRotatedText(i,E,N,f,g,N,D,o).getBBox()).left=k.x,k.top=k.y):k=e.FlexChartBase._renderText(i,E,N,f,g,o),s.border&&i.drawRect(k.left-2,k.top-2,k.width+4,k.height+4,"wj-data-label-border"),l){var R=new t.Point(w+b+p*Math.cos(d),S+v+p*Math.sin(d));i.drawLine(N.x,N.y,R.x,R.y,"wj-data-label-line")}}i.cssPriority=!0}}i.endGroup()},a.prototype._drawSlice=function(e,i,n,a,o,h,l,c,u,_){var p;a?c>0?(0!=_&&e.drawDonutSegment(o,h,l,c,u-_,_),(p=new s(new t.Point(o,h),l,c,u-_,_,this.startAngle)).tag=n,this._areas.push(p)):(0!=_&&e.drawPieSegment(o,h,l,u-_,_),(p=new r(new t.Point(o,h),l,u-_,_,this.startAngle)).tag=n,this._areas.push(p)):(c>0?(0!=_&&e.drawDonutSegment(o,h,l,c,u,_),(p=new s(new t.Point(o,h),l,c,u,_,this.startAngle)).tag=n,this._areas.push(p)):(0!=_&&e.drawPieSegment(o,h,l,u,_),(p=new r(new t.Point(o,h),l,u,_,this.startAngle)).tag=n,this._areas.push(p)),u+=_),p&&(p.gi=i)},a.prototype._measureLegendItem=function(i,n){var r=new t.Size;if(r.width=e.Series._LEGEND_ITEM_WIDTH,r.height=e.Series._LEGEND_ITEM_HEIGHT,n){var s=i.measureString(n,e.FlexChartBase._CSS_LABEL,e.FlexChartBase._CSS_LEGEND);r.width+=s.width,r.height<s.height&&(r.height=s.height)}return r.width+=3*e.Series._LEGEND_ITEM_MARGIN,r.height+=2*e.Series._LEGEND_ITEM_MARGIN,r},a.prototype._drawLegendItem=function(i,n,r,s){i.strokeWidth=1;var a=e.Series._LEGEND_ITEM_MARGIN,o=null,h=null;null===o&&(o=this._getColorLight(r)),null===h&&(h=this._getColor(r)),i.fill=o,i.stroke=h;var l=n.top+.5*n.height,c=e.Series._LEGEND_ITEM_WIDTH,u=e.Series._LEGEND_ITEM_HEIGHT;i.drawRect(n.left+a,l-.5*u,c,u,null),null!=s&&e.FlexChartBase._renderText(i,s.toString(),new t.Point(n.left+u+2*a,l),0,1,e.FlexChartBase._CSS_LABEL)},a.prototype._getLabelContent=function(e,i){return t.isString(i)?this._keywords.replace(i,e):t.isFunction(i)?i(e):null},a.prototype._select=function(t,i){if(void 0===i&&(i=!1),this._highlight(!1,this._selectionIndex),this._selectionIndex=t,this.selectionMode==e.SelectionMode.Point){var n=this._cv;n&&(this._notifyCurrentChanged=!1,n.moveCurrentToPosition(t),this._notifyCurrentChanged=!0)}null==t?(this._selectedIndex=-1,this.invalidate()):this.isAnimated&&this.selectedItemPosition!=e.Position.None||!(this.selectedItemOffset>0||this.selectedItemPosition!=e.Position.None)?this._highlight(!0,this._selectionIndex,i):(this._selectedIndex=t,this.invalidate()),this.onSelectionChanged()},a.prototype._highlightCurrent=function(){if(this.selectionMode!=e.SelectionMode.None){var t=-1,i=this._cv;i&&(t=i.currentPosition),this._highlight(!0,t)}},a.prototype._highlight=function(t,i,n){if(void 0===n&&(n=!1),this.selectionMode==e.SelectionMode.Point&&void 0!==i&&null!==i&&i>=0)if(t){for(var r=[],s=0;s<this._pieGroups.length;s++){if(p=this._pels[i+s*this._values[0].length]){p.parentNode.appendChild(p);var a=this._find(p,["ellipse"]);this._highlightItems(this._find(p,["path","ellipse"]),e.FlexChartBase._CSS_SELECTION,t)}var o=this._angles[i+s*this._values[0].length];if(this.selectedItemPosition!=e.Position.None&&0!=o){var h=0;this.selectedItemPosition==e.Position.Left?h=180:this.selectedItemPosition==e.Position.Top?h=-90:this.selectedItemPosition==e.Position.Bottom&&(h=90);var l=h*Math.PI/180-o;l*=180/Math.PI,n&&this.isAnimated?r.push(l):(this._rotationAngles[s]=l,this._pieGroups[s].transform.baseVal.getItem(0).setRotate(l,this._centers[s].x,this._centers[s].y))}var c=this.selectedItemOffset;if(c>0&&a&&0==a.length){var u=this._selectedOffset.x=Math.cos(o)*c*this._radius,_=this._selectedOffset.y=Math.sin(o)*c*this._radius;p&&p.setAttribute("transform","translate("+u.toFixed()+","+_.toFixed()+")")}this._selectedIndex=i}r.length>0&&this._animateSelectionAngle(r,.5)}else{for(s=0;s<this._pieGroups.length;s++){var p;(p=this._pels[i+s*this._values[0].length])&&(p.parentNode.insertBefore(p,p.parentNode.childNodes.item(i)),p.removeAttribute("transform"),this._highlightItems(this._find(p,["path","ellipse"]),e.FlexChartBase._CSS_SELECTION,t))}this._selectedIndex==i&&(this._selectedIndex=-1)}},a.prototype._animateSelectionAngle=function(i,r){var s=this,a=s._pieGroups;s._selectionAnimationID&&clearInterval(this._selectionAnimationID),this._selectionAnimationID=t.animate(function(t){if(a==s._pieGroups){for(var r=0;r<a.length;r++){var o=n.clampAngle(s._rotationAngles[r]),h=n.clampAngle(i[r])-o,l=o;s._rotationAngles[r]=o=l+h*t,a[r].transform.baseVal.getItem(0).setRotate(o,s._centers[r].x,s._centers[r].y)}1==t&&clearInterval(s._selectionAnimationID),t>.99&&(s.selectedItemOffset>0||s.selectedItemPosition!=e.Position.None)&&s.invalidate()}},1e3*r)},a.prototype._getHitTestItem=function(t){var e=null,i=null;return(e=null!=this._cv?this._cv.items:this.itemsSource)&&t<e.length&&(i=e[t]),i},a.prototype._getHitTestValue=function(t,e){return void 0==e&&(e=0),this._values[e][t]},a.prototype._getHitTestLabel=function(t){return this._labels[t]},a._MARGIN=4,a._CSS_GROUP_TITLE="wj-label",a}(e.FlexChartBase);e.FlexPie=i;var n=function(){function t(){}return t.clampAngle=function(t,e){void 0===e&&(e=0);var i=(t+180)%360-180;return i<-180+(e<0?e+360:e)&&(i+=360),i},t}(),r=function(){function t(t,e,i,r,s){void 0===s&&(s=0),this._isFull=!1,this._center=t,this._radius=e,this._originAngle=i,this._originSweep=r,r>=2*Math.PI&&(this._isFull=!0),this._sweep=.5*r*180/Math.PI,this._angle=n.clampAngle(180*i/Math.PI+this._sweep),this._radius2=e*e,this._startAngle=s}return t.prototype.contains=function(t){var e=t.x-this._center.x,i=t.y-this._center.y;if(e*e+i*i<=this._radius2){var r=180*Math.atan2(i,e)/Math.PI,s=n.clampAngle(this._angle,this._startAngle)-n.clampAngle(r,this._startAngle);if(this._isFull||Math.abs(s)<=this._sweep)return!0}return!1},t.prototype.distance=function(t){if(this.contains(t))return 0;var e=t.x-this._center.x,i=t.y-this._center.y,r=e*e+i*i,s=180*Math.atan2(i,e)/Math.PI,a=n.clampAngle(this._angle,this._startAngle)-n.clampAngle(s,this._startAngle);return this._isFull||Math.abs(a)<=this._sweep?Math.sqrt(r)-this._radius:void 0},Object.defineProperty(t.prototype,"center",{get:function(){return this._center},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"radius",{get:function(){return this._radius},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"langle",{get:function(){return this._angle},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"angle",{get:function(){return this._originAngle},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"sweep",{get:function(){return this._originSweep},enumerable:!0,configurable:!0}),t}();e._PieSegment=r;var s=function(){function t(t,e,i,r,s,a){void 0===a&&(a=0),this._isFull=!1,this._center=t,this._radius=e,this._iradius=i,this._originAngle=r,this._originSweep=s,s>=2*Math.PI&&(this._isFull=!0),this._sweep=.5*s*180/Math.PI,this._angle=n.clampAngle(180*r/Math.PI+this._sweep),this._radius2=e*e,this._iradius2=i*i,this._startAngle=a}return t.prototype.contains=function(t){var e=t.x-this._center.x,i=t.y-this._center.y,r=e*e+i*i;if(r>=this._iradius2&&r<=this._radius2){var s=180*Math.atan2(i,e)/Math.PI,a=n.clampAngle(this._angle,this._startAngle)-n.clampAngle(s,this._startAngle);if(this._isFull||Math.abs(a)<=this._sweep)return!0}return!1},t.prototype.distance=function(t){if(this.contains(t))return 0},Object.defineProperty(t.prototype,"center",{get:function(){return this._center},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"radius",{get:function(){return this._radius},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"langle",{get:function(){return this._angle},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"angle",{get:function(){return this._originAngle},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"sweep",{get:function(){return this._originSweep},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"innerRadius",{get:function(){return this._iradius},enumerable:!0,configurable:!0}),t}();e._DonutSegment=s}(t.chart||(t.chart={}))}(wijmo||(wijmo={})),function(t){!function(e){"use strict";var i=function(){function i(){this._DEFAULT_WIDTH=2,this._DEFAULT_SYM_SIZE=10,this.clipping=!0}return i.prototype.clear=function(){this.seriesCount=0,this.seriesIndex=0},i.prototype._renderLabels=function(i,n,r,s,a){var o=r.length,h=s.dataLabel,l=h.border,c=h.offset,u=h.connectingLine;void 0===c&&(c=u?16:0),l&&(c-=2);for(var _=0;_<o;_++){var p=r[_],d=t.asType(p.tag,e._DataPoint,!0);d&&!p.ignoreLabel&&this._renderLabel(i,p,d,s,h,n,c,a)}},i.prototype._renderLabel=function(t,i,n,r,s,a,o,h){var l=null==s.position?e.LabelPosition.Top:s.position,c=s.border,u=s.connectingLine,_=new e.HitTestInfo(r,d);_._setDataPoint(n);var p=r._getLabelContent(_,s.content),d=this._getLabelPoint(a,n);if(this._getPointAndPosition(d,l,i,r),r._plotRect.contains(d)){var f=new e.DataLabelRenderEventArgs(t,_,d,p);if(s.onRendering&&(s.onRendering(f)?(p=f.text,d=f.point):p=null),p){var g=this._renderLabelAndBorder(t,p,l,o,d,u,2,c);if(g){var m=new e._RectArea(g);m.tag=n,h.push(m)}}t.cssPriority=!0}},i.prototype._getPointAndPosition=function(t,i,n,r){if(n instanceof e._RectArea){var s=n;r._isRotated()?t.y=s.rect.top+.5*s.rect.height:t.x=s.rect.left+.5*s.rect.width}},i.prototype._getLabelPoint=function(e,i){var n=e._getAxisX(),r=e._getAxisY();return new t.Point(n.convert(i.dataX),r.convert(i.dataY))},i.prototype._renderLabelAndBorder=function(t,i,n,r,s,a,o,h){var l,c="wj-data-label",u="wj-data-label-line",_=e.FlexChartCore._CSS_DATA_LABELS;switch(n){case e.LabelPosition.Top:a&&t.drawLine(s.x,s.y,s.x,s.y-r,u),s.y-=o+r,l=e.FlexChartCore._renderText(t,i,s,1,2,c,_);break;case e.LabelPosition.Bottom:a&&t.drawLine(s.x,s.y,s.x,s.y+r,u),s.y+=o+r,l=e.FlexChartCore._renderText(t,i,s,1,0,c,_);break;case e.LabelPosition.Left:a&&t.drawLine(s.x,s.y,s.x-r,s.y,u),s.x-=o+r,l=e.FlexChartCore._renderText(t,i,s,2,1,c,_);break;case e.LabelPosition.Right:a&&t.drawLine(s.x,s.y,s.x+r,s.y,u),s.x+=o+r,l=e.FlexChartCore._renderText(t,i,s,0,1,c,_);break;case e.LabelPosition.Center:l=e.FlexChartCore._renderText(t,i,s,1,1,c,_)}return h&&l&&t.drawRect(l.left-o,l.top-o,l.width+2*o,l.height+2*o,"wj-data-label-border"),l},i.prototype.getOption=function(e,i){var n=this.chart._options;if(i&&(n=n?n[i]:null),n&&!t.isUndefined(n[e])&&null!==n[e])return n[e]},i.prototype.getNumOption=function(e,i){var n=this.chart._options;if(i&&(n=n?n[i]:null),n&&n[e])return t.asNumber(n[e],!0)},i.prototype.getItemFormatter=function(t){if(t instanceof e.SeriesBase){var i=t;return i.itemFormatter?i.itemFormatter:this.chart.itemFormatter}return this.chart.itemFormatter},i.cloneStyle=function(t,e){if(!t)return t;var i={};for(var n in t)e&&e.indexOf(n)>=0||(i[n]=t[n]);return i},i.prototype.isValid=function(i,n,r,s){return isFinite(i)&&isFinite(n)&&e.FlexChartCore._contains(this.chart._plotRect,new t.Point(i,n))},i.prototype.load=function(){},i.prototype.unload=function(){},i.prototype._createSteps=function(t,e,i){var n=this.getOption("position","step"),r=i||t.length,s=[],a=[],o=this.chart._isRotated();if("center"==n)if(o)for(var h=0;h<r;h++){var l=0==h?e[h+1]-e[h]:e[h]-e[h-1],c=h==r-1?e[h]-e[h-1]:e[h+1]-e[h];s.push(t[h]),a.push(e[h]-.5*l),s.push(t[h]),a.push(e[h]+.5*c)}else for(h=0;h<r;h++){var u=0==h?t[h+1]-t[h]:t[h]-t[h-1],_=h==r-1?t[h]-t[h-1]:t[h+1]-t[h];s.push(t[h]-.5*u),a.push(e[h]),s.push(t[h]+.5*_),a.push(e[h])}else if("end"==n)for(h=0;h<r;h++)h>0&&(o?(s.push(t[h]),a.push(e[h-1])):(s.push(t[h-1]),a.push(e[h]))),s.push(t[h]),a.push(e[h]);else for(h=0;h<r;h++)s.push(t[h]),a.push(e[h]),h<r-1&&(o?(s.push(t[h]),a.push(e[h+1])):(s.push(t[h+1]),a.push(e[h])));return{x:s,y:a}},i}();e._BasePlotter=i}(t.chart||(t.chart={}))}(wijmo||(wijmo={})),function(t){!function(e){"use strict";var i,n;!function(t){t[t.Column=0]="Column",t[t.Bar=1]="Bar",t[t.Scatter=2]="Scatter",t[t.Line=3]="Line",t[t.LineSymbols=4]="LineSymbols",t[t.Area=5]="Area",t[t.Bubble=6]="Bubble",t[t.Candlestick=7]="Candlestick",t[t.HighLowOpenClose=8]="HighLowOpenClose",t[t.Spline=9]="Spline",t[t.SplineSymbols=10]="SplineSymbols",t[t.SplineArea=11]="SplineArea",t[t.Funnel=12]="Funnel",t[t.Step=13]="Step",t[t.StepSymbols=14]="StepSymbols",t[t.StepArea=15]="StepArea"}(i=e.ChartType||(e.ChartType={})),function(t){t[t.None=0]="None",t[t.Stacked=1]="Stacked",t[t.Stacked100pc=2]="Stacked100pc"}(n=e.Stacking||(e.Stacking={}));var r=function(r){function o(i,s){var h=r.call(this,i,null,!0)||this;h._series=new t.collections.ObservableArray,h._axes=new e.AxisCollection,h._pareas=new e.PlotAreaCollection,h._interpolateNulls=!1,h._legendToggle=!1,h._symbolSize=10,h._dataInfo=new a,h.__barPlotter=null,h.__linePlotter=null,h.__areaPlotter=null,h.__bubblePlotter=null,h.__financePlotter=null,h.__funnelPlotter=null,h._plotters=[],h._rotated=!1,h._stacking=n.None,h._xlabels=[],h._xvals=[],h._lblAreas=[],h._colRowLens=[],h._selectedEls=[],h._markers=[],h._bindingSeparator=",",h.seriesVisibilityChanged=new t.Event,h.applyTemplate("wj-control wj-flexchart",null,null);var l=h;return l._series.collectionChanged.addHandler(function(){for(var i=l._series,n=0;n<i.length;n++){var r=t.tryCast(i[n],e.SeriesBase);if(!r)throw"chartSeries array must contain SeriesBase objects.";r._chart=l,r.axisX&&null==r.axisX._chart&&(r.axisX._chart=l,l.axes.push(r.axisX)),r.axisY&&null==r.axisY._chart&&(r.axisY._chart=l,l.axes.push(r.axisY))}l.invalidate()}),h._currentRenderEngine=new e._SvgRenderEngine(h.hostElement),h._hitTester=new e._HitTester(h),h._legend=new e.Legend(h),h._tooltip=new e.ChartTooltip,h._tooltip.showDelay=0,h._lbl=new e.DataLabel,h._lbl._chart=h,h._initAxes(),l._axes.collectionChanged.addHandler(function(){for(var i=l._axes,n=0;n<i.length;n++){var r=t.tryCast(i[n],e.Axis);if(!r)throw"axes array must contain Axis objects.";r._chart=l}l.invalidate()}),l._pareas.collectionChanged.addHandler(function(){for(var i=l._pareas,n=0;n<i.length;n++){var r=t.tryCast(i[n],e.PlotArea);if(!r)throw"plotAreas array must contain PlotArea objects.";r._chart=l}l.invalidate()}),h._keywords=new e._KeyWords,h.hostElement.addEventListener("click",function(t){var e=l._tooltip;e.content&&l.isTouching&&l._updateTooltip(e,t)}),h.hostElement.addEventListener("mousemove",function(t){var e=l._tooltip;e.content&&!l.isTouching&&l._updateTooltip(e,t)}),h.hostElement.addEventListener("mouseleave",function(t){l._hideToolTip()}),h.hostElement.addEventListener("click",function(t){if(l.selectionMode!=e.SelectionMode.None){var i=l._hitTestData(t),n=o._SELECTION_THRESHOLD;l.tooltip&&l.tooltip.threshold&&(n=l.tooltip.threshold),i.distance<=n&&i.series?l._select(i.series,i.pointIndex):l.selectionMode==e.SelectionMode.Series&&(i=l.hitTest(t)).chartElement==e.ChartElement.Legend&&i.series?l._select(i.series,null):l._select(null,null)}!0===l.legendToggle&&(i=l.hitTest(t)).chartElement==e.ChartElement.Legend&&i.series&&(i.series.visibility==e.SeriesVisibility.Legend?i.series.visibility=e.SeriesVisibility.Visible:i.series.visibility==e.SeriesVisibility.Visible&&(i.series.visibility=e.SeriesVisibility.Legend),l.focus())}),h.deferUpdate(function(){return h.initialize(s)}),h}return __extends(o,r),o.prototype.initialize=function(i){if(i&&i.renderEngine){var n=t.asType(this._currentRenderEngine,e._SvgRenderEngine,!0);n&&n.detach(),this._currentRenderEngine=null}r.prototype.initialize.call(this,i)},o.prototype._initAxes=function(){this._axisX=new e.Axis(e.Position.Bottom),this._axisY=new e.Axis(e.Position.Left),this._axisX.majorGrid=!1,this._axisX.name="axisX",this._axisY.majorGrid=!0,this._axisY.majorTickMarks=e.TickMark.None,this._axisY.name="axisY",this._axisX._chart=this,this._axisY._chart=this,this._axes.push(this._axisX),this._axes.push(this._axisY)},Object.defineProperty(o.prototype,"series",{get:function(){return this._series},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"axes",{get:function(){return this._axes},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"axisX",{get:function(){return this._axisX},set:function(i){if(i!=this._axisX){var n=this._axisX=t.asType(i,e.Axis);this.beginUpdate(),n&&(void 0===n.majorGrid&&(n.majorGrid=!1),void 0===n.name&&(n.name="axisX"),void 0==n.position&&(n.position=e.Position.Bottom),n._axisType=e.AxisType.X,n._chart=this),this.endUpdate()}},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"axisY",{get:function(){return this._axisY},set:function(i){if(i!=this._axisY){var n=this._axisY=t.asType(i,e.Axis);this.beginUpdate(),n&&(void 0===n.majorGrid&&(n.majorGrid=!0),void 0===n.name&&(n.name="axisY"),n.majorTickMarks=e.TickMark.None,void 0==n.position&&(n.position=e.Position.Left),n._axisType=e.AxisType.Y,n._chart=this),this.endUpdate()}},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"plotAreas",{get:function(){return this._pareas},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"binding",{get:function(){return this._binding},set:function(e){e!=this._binding&&(this._binding=t.asString(e,!0),this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"bindingX",{get:function(){return this._bindingX},set:function(e){e!=this._bindingX&&(this._bindingX=t.asString(e,!0),this._bindChart())},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"symbolSize",{get:function(){return this._symbolSize},set:function(e){e!=this._symbolSize&&(this._symbolSize=t.asNumber(e,!1,!0),this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"interpolateNulls",{get:function(){return this._interpolateNulls},set:function(e){e!=this._interpolateNulls&&(this._interpolateNulls=t.asBoolean(e),this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"legendToggle",{get:function(){return this._legendToggle},set:function(e){e!=this._legendToggle&&(this._legendToggle=t.asBoolean(e))},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"tooltip",{get:function(){return this._tooltip},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"dataLabel",{get:function(){return this._lbl},set:function(i){i!=this._lbl&&(this._lbl=t.asType(i,e.DataLabel),this._lbl&&(this._lbl._chart=this))},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"selection",{get:function(){return this._selection},set:function(i){i!=this._selection&&(this._selection=t.asType(i,e.SeriesBase,!0),this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"renderEngine",{get:function(){return this._currentRenderEngine},set:function(i){if(i!=this._currentRenderEngine){var n=t.asType(this._currentRenderEngine,e._SvgRenderEngine,!0);n&&n.detach(),this._currentRenderEngine=i;var r=t.asType(this._currentRenderEngine,e._SvgRenderEngine,!0);r&&r.attach(this.hostElement),this.refresh()}},enumerable:!0,configurable:!0}),o.prototype.onSeriesVisibilityChanged=function(t){this.seriesVisibilityChanged.raise(this,t)},o.prototype.hitTest=function(t,n){var r=this._toControl(t,n),s=new e.HitTestInfo(this,r),a=null;if(o._contains(this._rectHeader,r))s._chartElement=e.ChartElement.Header;else if(o._contains(this._rectFooter,r))s._chartElement=e.ChartElement.Footer;else if(o._contains(this._rectLegend,r))s._chartElement=e.ChartElement.Legend,null!==(a=this.legend._hitTest(r))&&a>=0&&a<this.series.length&&(this._getChartType()===i.Bar?s._setData(this.series[this.series.length-1-a]):s._setData(this.series[a]));else if(o._contains(this._rectChart,r)){var h=this._hitTestLabels(r);if(h)s._chartElement=e.ChartElement.DataLabel,s._dist=0,s._setDataPoint(h.tag);else{for(var l=this._hitTester.hitTest(r),c=null,u=null,_=this.series.length-1;_>=0;_--)if(this.series[_].hitTest!==e.Series.prototype.hitTest){var p=this.series[_].hitTest(t);if(p&&((!c||p.distance<c.distance)&&(c=p,u=_),0===p.distance))break}l&&l.area?c&&c.distance<l.distance?s=c:c&&c.distance==l.distance&&u>l.area.tag.seriesIndex?s=c:(s._setDataPoint(l.area.tag),s._dist=l.distance):c&&(s=c);var d=!1;this.axes.some(function(t){if(o._contains(t._axrect,r))return t.axisType===e.AxisType.X?s._chartElement=e.ChartElement.AxisX:s._chartElement=e.ChartElement.AxisY,d=!0,!0}),d||(o._contains(this._plotRect,r)?s._chartElement=e.ChartElement.PlotArea:o._contains(this._rectChart,r)&&(s._chartElement=e.ChartElement.ChartArea))}}else s._chartElement=e.ChartElement.None;return s},o.prototype.pointToData=function(e,i){return t.isNumber(e)&&t.isNumber(i)&&(e=new t.Point(e,i)),e instanceof MouseEvent?(e=new t.Point(e.pageX,e.pageY),e=this._toControl(e)):e=e.clone(),e.x=this.axisX.convertBack(e.x),e.y=this.axisY.convertBack(e.y),e},o.prototype.dataToPoint=function(e,i){t.isNumber(e)&&t.isNumber(i)&&(e=new t.Point(e,i)),t.asType(e,t.Point);var n=e.clone();return n.x=this.axisX.convert(n.x),n.y=this.axisY.convert(n.y),n},o.prototype.dispose=function(){this._markers.forEach(function(t){return t.remove()}),this._markers=[],r.prototype.dispose.call(this)},o.prototype._copy=function(e,i){if("series"==e){this.series.clear();for(var n=t.asArray(i),r=0;r<n.length;r++){var s=this._createSeries();t.copy(s,n[r]),this.series.push(s)}return!0}return!1},o.prototype._createSeries=function(){return new e.Series},o.prototype._clearCachedValues=function(){for(var t=0;t<this._series.length;t++){var e=this._series[t];null==e.itemsSource&&e._clearValues()}},o.prototype._performBind=function(){if(this._xDataType=null,this._xlabels.splice(0),this._xvals.splice(0),this._cv){var e=this._cv.items;if(e){for(var i=e.length,n=this.bindingX?new t.Binding(this.bindingX):null,r=0;r<i;r++){var s=e[r];if(n){var a=n.getValue(s);t.isNumber(a)?(this._xvals.push(t.asNumber(a)),this._xDataType=t.DataType.Number):t.isDate(a)&&(this._xvals.push(t.asDate(a).valueOf()),this._xDataType=t.DataType.Date),this._xlabels.push(a)}}this._xvals.length==i?this._xlabels.splice(0):this._xvals.splice(0)}}},o.prototype._hitTestSeries=function(t,i){var n=this._toControl(t),r=new e.HitTestInfo(this,n),s=this._hitTester.hitTestSeries(n,i);return s&&s.area&&(r._setDataPoint(s.area.tag),r._chartElement=e.ChartElement.PlotArea,r._dist=s.distance),r},o.prototype._hitTestData=function(t){var i=this._toControl(t),n=new e.HitTestInfo(this,i),r=this._hitTester.hitTest(i,!0);return r&&r.area&&(n._setDataPoint(r.area.tag),n._dist=r.distance),n},o.prototype._hitTestLabels=function(t){for(var e=null,i=this._lblAreas.length,n=0;n<i;n++)if(this._lblAreas[n].contains(t)){e=this._lblAreas[n];break}return e},o._dist2=function(t,e){var i=t.x-e.x,n=t.y-e.y;return i*i+n*n},o._dist=function(t,e,i){return Math.sqrt(o._distToSegmentSquared(t,e,i))},o._distToSegmentSquared=function(e,i,n){var r=o._dist2(i,n);if(0==r)return o._dist2(e,i);var s=((e.x-i.x)*(n.x-i.x)+(e.y-i.y)*(n.y-i.y))/r;return s<0?o._dist2(e,i):s>1?o._dist2(e,n):o._dist2(e,new t.Point(i.x+s*(n.x-i.x),i.y+s*(n.y-i.y)))},o.prototype._isRotated=function(){return this._getChartType()==i.Bar?!this._rotated:this._rotated},o.prototype._getChartType=function(){return null},o.prototype._prepareRender=function(){this._hitTester.clear()},o.prototype._renderChart=function(n,r,s){var a=this._rectChart.clone(),h=new t.Size(a.width,a.height);r.width,r.height;this._selectedEls.length=0,(v=this._getPlotter(null)).stacking=this._stacking,this._curPlotter!=v&&(this._curPlotter&&this._curPlotter.unload(),this._curPlotter=v),v.load();var l=this._isRotated();this._dataInfo.analyse(this._series,l,v.stacking,this._xvals.length>0?this._xvals:null,this.axisX._getLogBase()>0,this.axisY._getLogBase()>0);var c=v.adjustLimits(this._dataInfo,r.clone());if(l){var u=this._dataInfo.getDataTypeX();u||(u=this._xDataType),this.axisX._updateActualLimits(this._dataInfo.getDataTypeY(),c.left,c.right),this.axisY._updateActualLimits(u,c.top,c.bottom,this._xlabels,this._xvals)}else{var _=this._dataInfo.getDataTypeX();_||(_=this._xDataType),this.axisX._updateActualLimits(_,c.left,c.right,this._xlabels,this._xvals),this.axisY._updateActualLimits(this._dataInfo.getDataTypeY(),c.top,c.bottom)}var p=this._getAxes();if(this._updateAuxAxes(p,l),this._layout(r,h,n),n.startGroup(o._CSS_PLOT_AREA),n.fill="transparent",n.stroke=null,this.plotAreas.length>0)for(var d=0;d<this.plotAreas.length;d++){this.plotAreas[d]._render(n)}else{var f=this._plotRect;n.drawRect(f.left,f.top,f.width,f.height)}n.endGroup();var g=this._series.length;this._clearPlotters();var m={};for(d=0;d<g;d++){var y=this._series[d];if(((C=y.visibility)==e.SeriesVisibility.Visible||C==e.SeriesVisibility.Plot)&&y.getValues(0)){var b=y._getAxisY(),v=this._getPlotter(y);if(!b||b==this.axisY||v instanceof e._BarPlotter)v.seriesCount++;else{var x=b._uniqueId;m[x]?m[x].count+=1:m[x]={count:1,index:0}}}}if(this.onRendering(new e.RenderEventArgs(n)),this._getChartType()!==i.Funnel)for(d=0;d<p.length;d++){var w=p[d];P=w.axisType==e.AxisType.X?n.startGroup(o._CSS_AXIS_X,this._chartRectId):n.startGroup(o._CSS_AXIS_Y,this._chartRectId),w._hostElement=s?P:w._hostElement,w._render(n),n.endGroup()}n.startGroup("wj-series-group"),this._plotrectId="plotRect"+(1e6*Math.random()).toFixed(),n.addClipRect(this._plotRect,this._plotrectId);for(d=0;d<g;d++){var S=this._series[d];S._pointIndexes=[];v=this._getPlotter(S);S._plotter=v;var P=n.startGroup(S.cssClass,v.clipping?this._plotrectId:null);S._hostElement=s?P:S._hostElement;var C=S.visibility,T=S.axisX,M=S.axisY;if(T||(T=this.axisX),M||(M=this.axisY),C==e.SeriesVisibility.Visible||C==e.SeriesVisibility.Plot){var A,N,L=m[M._uniqueId];!L||v instanceof e._BarPlotter?(A=v.seriesIndex,N=v.seriesCount,v.seriesIndex++,S.onRendering(n,A,N)||v.plotSeries(n,T,M,S,this,A,N)):(A=L.index,N=L.count,L.index++,S.onRendering(n,A,N)||v.plotSeries(n,T,M,S,this,A,N)),S.onRendered(n)}n.endGroup()}n.endGroup(),this._lblAreas=[],this.dataLabel.content&&this.dataLabel.position!=e.LabelPosition.None&&this._renderLabels(n),this._highlightCurrent(),this.onRendered(new e.RenderEventArgs(n))},o.prototype._getDesiredLegendSize=function(i,n,r,s){var a=new t.Size,o=this.series,h=o.length,l=0,c=0;this._colRowLens=[];for(var u=0;u<h;u++){var _=t.tryCast(o[u],e.SeriesBase),p=_.visibility;if(_.name&&p!=e.SeriesVisibility.Hidden&&p!=e.SeriesVisibility.Plot)for(var d=_.legendItemLength(),f=0;f<d;f++){var g=_.measureLegendItem(i,f);n?(l+g.height>s&&(a.height=s,this._colRowLens.push(c),c=0,l=0),c<g.width&&(c=g.width),l+=g.height):(c+g.width>r&&(a.width=r,this._colRowLens.push(l),l=0,c=0),l<g.height&&(l=g.height),c+=g.width)}}return n?(a.height<l&&(a.height=l),this._colRowLens.push(c),a.width=this._colRowLens.reduce(function(t,e){return t+e},0),a.width=this._getLegendSize(r,a.width)):(a.width<c&&(a.width=c),this._colRowLens.push(l),a.height=this._colRowLens.reduce(function(t,e){return t+e},0),a.height=this._getLegendSize(s,a.height)),a},o.prototype._renderLegend=function(i,n,r,s,a,o){var h,l=this.series,c=l.length,u=n.clone(),_=0;if(this._legendReversed())for(var p=c-1;p>=0;p--)h=t.tryCast(l[p],e.SeriesBase),_=this._renderLegendElements(i,h,n,u,r,s,a,o,_);else for(p=0;p<c;p++)h=t.tryCast(l[p],e.SeriesBase),_=this._renderLegendElements(i,h,n,u,r,s,a,o,_)},o.prototype._legendReversed=function(){var t=!1,e=this._getChartType();return(e===i.Bar||e===i.Column&&this._rotated)&&(this._stacking!==n.None||this.axisY.reversed||(t=!0)),t},o.prototype._renderLegendElements=function(i,n,r,s,a,o,h,l,c){var u=this._rectLegend,_=c;if(!n)return _;var p=n.visibility;if(!n.name||p==e.SeriesVisibility.Hidden||p==e.SeriesVisibility.Plot)return n._legendElement=null,a.push(null),_;var d=n.legendItemLength(),f=i.startGroup(n.cssClass);p==e.SeriesVisibility.Legend?(f.setAttribute("opacity","0.5"),n._legendElement=f):p==e.SeriesVisibility.Visible?n._legendElement=f:n._legendElement=null;for(var g=0;g<d;g++){var m=n.measureLegendItem(i,g);o?s.y+m.height>u.top+u.height+1&&(s.x+=this._colRowLens[_],_++,s.y=r.y):s.x+m.width>u.left+u.width+1&&(s.y+=this._colRowLens[_],_++,s.x=r.x);var y=new t.Rect(s.x,s.y,m.width,m.height);p!=e.SeriesVisibility.Legend&&p!=e.SeriesVisibility.Visible||n.drawLegendItem(i,y,g),a.push(y),o?s.y+=m.height:s.x+=m.width}return i.endGroup(),_},o.prototype._renderLabels=function(t){var e=this.series,i=e.length;t.stroke="null",t.fill="transparent",t.strokeWidth=1;var n=o._CSS_DATA_LABELS;t.startGroup(n);for(var r=0;r<i;r++){var s=e[r],a=this._hitTester._map[r];a&&s._renderLabels(t,a,this,this._lblAreas)}t.endGroup()},o.prototype._getAxes=function(){for(var t=[this.axisX,this.axisY],e=this.series.length,i=0;i<e;i++){var n=this.series[i],r=n.axisX;r&&-1===t.indexOf(r)&&t.push(r);var s=n.axisY;s&&-1===t.indexOf(s)&&t.push(s)}return t},o.prototype._clearPlotters=function(){for(var t=this._plotters.length,e=0;e<t;e++)this._plotters[e].clear()},o.prototype._initPlotter=function(t){t.chart=this,t.dataInfo=this._dataInfo,t.hitTester=this._hitTester,this._plotters.push(t)},Object.defineProperty(o.prototype,"_barPlotter",{get:function(){return null===this.__barPlotter&&(this.__barPlotter=new e._BarPlotter,this._initPlotter(this.__barPlotter)),this.__barPlotter},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"_linePlotter",{get:function(){return null===this.__linePlotter&&(this.__linePlotter=new e._LinePlotter,this._initPlotter(this.__linePlotter)),this.__linePlotter},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"_areaPlotter",{get:function(){return null===this.__areaPlotter&&(this.__areaPlotter=new e._AreaPlotter,this._initPlotter(this.__areaPlotter)),this.__areaPlotter},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"_bubblePlotter",{get:function(){return null===this.__bubblePlotter&&(this.__bubblePlotter=new e._BubblePlotter,this._initPlotter(this.__bubblePlotter)),this.__bubblePlotter},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"_financePlotter",{get:function(){return null===this.__financePlotter&&(this.__financePlotter=new e._FinancePlotter,this._initPlotter(this.__financePlotter)),this.__financePlotter},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"_funnelPlotter",{get:function(){return null===this.__funnelPlotter&&(this.__funnelPlotter=new e._FunnelPlotter,this._initPlotter(this.__funnelPlotter)),this.__funnelPlotter},enumerable:!0,configurable:!0}),o.prototype._getPlotter=function(t){var e,n=this._getChartType(),r=!1;if(t){var s=t._getChartType();null!==s&&void 0!==s&&s!=n&&(n=s,r=!0)}switch(n){case i.Column:this._barPlotter.isVolume=!1,this._barPlotter.width=.7,e=this._barPlotter;break;case i.Bar:this._barPlotter.rotated=!this._rotated,this._barPlotter.isVolume=!1,this._barPlotter.width=.7,e=this._barPlotter;break;case i.Line:this._linePlotter.hasSymbols=!1,this._linePlotter.hasLines=!0,this._linePlotter.isSpline=!1,this._linePlotter.isStep=!1,e=this._linePlotter;break;case i.Scatter:this._linePlotter.hasSymbols=!0,this._linePlotter.hasLines=!1,this._linePlotter.isSpline=!1,this._linePlotter.isStep=!1,e=this._linePlotter;break;case i.LineSymbols:this._linePlotter.hasSymbols=!0,this._linePlotter.hasLines=!0,this._linePlotter.isSpline=!1,this._linePlotter.isStep=!1,e=this._linePlotter;break;case i.Area:this._areaPlotter.isSpline=!1,this._areaPlotter.isStep=!1,e=this._areaPlotter;break;case i.Bubble:e=this._bubblePlotter;break;case i.Candlestick:(a=this._financePlotter).isCandle=!0,a.isEqui=!1,a.isArms=!1,a.isVolume=!1,e=a;break;case i.HighLowOpenClose:var a;(a=this._financePlotter).isCandle=!1,a.isEqui=!1,a.isArms=!1,a.isVolume=!1,e=a;break;case i.Spline:this._linePlotter.hasSymbols=!1,this._linePlotter.hasLines=!0,this._linePlotter.isSpline=!0,this._linePlotter.isStep=!1,e=this._linePlotter;break;case i.SplineSymbols:this._linePlotter.hasSymbols=!0,this._linePlotter.hasLines=!0,this._linePlotter.isSpline=!0,this._linePlotter.isStep=!1,e=this._linePlotter;break;case i.SplineArea:this._areaPlotter.isSpline=!0,this._areaPlotter.isStep=!1,e=this._areaPlotter;break;case i.Funnel:e=this._funnelPlotter;break;case i.Step:this._linePlotter.hasSymbols=!1,this._linePlotter.hasLines=!0,this._linePlotter.isSpline=!1,this._linePlotter.isStep=!0,e=this._linePlotter;break;case i.StepSymbols:this._linePlotter.hasSymbols=!0,this._linePlotter.hasLines=!0,this._linePlotter.isSpline=!1,this._linePlotter.isStep=!0,e=this._linePlotter;break;case i.StepArea:this._areaPlotter.isSpline=!1,this._areaPlotter.isStep=!0,e=this._areaPlotter;break;default:throw"Invalid chart type."}return e.rotated=this._rotated,n==i.Bar&&(e.rotated=!e.rotated),r&&(e.rotated=this._isRotated()),e},o.prototype._layout=function(t,e,i){this.plotAreas.length>0?this._layoutMultiple(t,e,i):this._layoutSingle(t,e,i)},o.prototype._layoutSingle=function(i,n,r){for(var s=i.width,a=i.height,o=new t.Size(s,.75*a),h=new t.Size(a,.75*s),l=0,c=0,u=s,_=a,p=0,d=0,f=s,g=a,m=this._getAxes(),y=this.axisY._getHeight(r,a),b=0;b<m.length;b++){var v=(A=m[b]).origin,x=A._getPosition();if(A.axisType==e.AxisType.X){(C=A._getHeight(r,Math.max(10,s-y)))>o.height&&(C=o.height),A._desiredSize=new t.Size(o.width,C);var w=A._hasOrigin=t.isNumber(v)&&v>this.axisY._getMinNum()&&v<this.axisY._getMaxNum(),S=Math.min(.25*s,A._annoSize.width);if(x==e.Position.Bottom)if(l=Math.max(l,.5*S),u=Math.min(u,s-.5*S),w){var P=this._convertY(v,d,g);g-=Math.max(0,P+C-g)}else g-=C;else if(x==e.Position.Top)if(l=Math.max(l,.5*S),u=Math.min(u,s-.5*S),w){P=this._convertY(v,d,g);d+=Math.max(0,d-(P-C))}else d+=C}else if(A.axisType==e.AxisType.Y){var C;(C=A===this.axisX?y:A._getHeight(r,a))>h.height&&(C=h.height),A._desiredSize=new t.Size(h.width,C);w=A._hasOrigin=t.isNumber(v)&&v>this.axisX._getMinNum()&&v<this.axisX._getMaxNum();if(x==e.Position.Left)if(A._actualAngle<0?_=Math.min(_,a-A._annoSize.height):A._actualAngle>0?c=Math.max(c,A._annoSize.height):(c=Math.max(c,A._annoSize.height),_=Math.min(_,a-A._annoSize.height)),w){var T=this._convertX(v,p,f);p+=Math.max(0,p-(T-C))}else p+=C;else if(x==e.Position.Right)if(A._actualAngle>0?_=Math.min(_,a-A._annoSize.height):A._actualAngle<0?c=Math.max(c,A._annoSize.height):(c=Math.max(c,A._annoSize.height),_=Math.min(_,a-A._annoSize.height)),w){T=this._convertX(v,p,f);f-=Math.max(0,T+C-f)}else f-=C}}var M=this._parseMargin(this.plotMargin);l=p=isNaN(M.left)?Math.max(l,p)+i.left:M.left,u=f=isNaN(M.right)?Math.min(u,f)+i.left:n.width-M.right,c=d=isNaN(M.top)?Math.max(c,d)+i.top:M.top,_=g=isNaN(M.bottom)?Math.min(_,g)+i.top:n.height-M.bottom,s=Math.max(1,u-l),a=Math.max(1,_-c),this._plotRect=new t.Rect(l,c,s,a),_<=c&&(g=d+1),r.stroke=null;for(b=0;b<m.length;b++){var A;v=(A=m[b]).origin,x=A._getPosition();if(A.axisType==e.AxisType.X){var N;if(A._hasOrigin){P=this._convertY(v,this._plotRect.top,this._plotRect.bottom);x==e.Position.Bottom?(N=new t.Rect(l,P,s,A._desiredSize.height),g+=Math.max(0,N.bottom-this._plotRect.bottom)):x==e.Position.Top?(N=new t.Rect(l,P-A._desiredSize.height,s,A._desiredSize.height),d-=Math.max(0,this._plotRect.top-N.top)):N=new t.Rect(l,P,s,1)}else x==e.Position.Bottom?(N=new t.Rect(l,g,s,A._desiredSize.height),g+=A._desiredSize.height):x==e.Position.Top?(N=new t.Rect(l,d-A._desiredSize.height,s,A._desiredSize.height),d-=A._desiredSize.height):N=new t.Rect(l,d,s,1);A._layout(N,this._plotRect)}else if(A.axisType==e.AxisType.Y){var L;if(A._hasOrigin){T=this._convertX(v,this._plotRect.left,this._plotRect.right);x==e.Position.Left?(L=new t.Rect(T-A._desiredSize.height,c,a,A._desiredSize.height),p-=A._desiredSize.height):x==e.Position.Right?(L=new t.Rect(T,c,a,A._desiredSize.height),f+=A._desiredSize.height):L=new t.Rect(T,c,a,1)}else x==e.Position.Left?(L=new t.Rect(p-A._desiredSize.height,c,a,A._desiredSize.height),p-=A._desiredSize.height):x==e.Position.Right?(L=new t.Rect(f,c,a,A._desiredSize.height),f+=A._desiredSize.height):L=new t.Rect(p,c,a,1);A._layout(L,this._plotRect)}}},o.prototype._layoutMultiple=function(i,n,r){for(var a=i.width,o=i.height,h=[],l=[],c=this._getAxes(),u=c.length,_=0;_<u;_++){if((M=c[_])._plotrect=null,M.axisType==e.AxisType.X){for(var p=M.plotArea?M.plotArea.column:0;h.length<=p;)h.push(new s);h[p].axes.push(M)}else if(M.axisType==e.AxisType.Y){for(var d=M.plotArea?M.plotArea.row:0;l.length<=d;)l.push(new s);l[d].axes.push(M)}}for(var f=h.length,g=l.length,m=new t.Size(a,.3*o),y=new t.Size(o,.3*a),b=0,v=0,x=a,w=o,S=0;S<f;S++){(k=h[S]).right=a,k.bottom=o;for(_=0;_<k.axes.length;_++){var P=(M=k.axes[_])._getHeight(r,M.axisType==e.AxisType.X?a:o);P>m.height&&(P=m.height);var C=new t.Size(m.width,P);M._desiredSize=C,0==S&&(k.left=Math.max(k.left,.5*M._annoSize.width)),S==f-1&&(k.right=Math.min(k.right,a-.5*M._annoSize.width)),(V=M._getPosition())==e.Position.Bottom?k.bottom-=C.height:V==e.Position.Top&&(k.top+=C.height)}}for(var T=0;T<g;T++){(k=l[T]).right=a,k.bottom=o;for(_=0;_<k.axes.length;_++){var M=k.axes[_],A=new t.Size(y.width,M._getHeight(r,M.axisType==e.AxisType.X?a:o));A.height>y.height&&(A.height=y.height),M._desiredSize=A,0==T&&(k.top=Math.max(k.top,.5*M._annoSize.width)),T==g-1&&(k.bottom=Math.min(k.bottom,o-.5*M._annoSize.width)),(V=M._getPosition())==e.Position.Left?k.left+=A.height:V==e.Position.Right&&(k.right-=A.height)}}var N=0,L=0,E=a,I=o;for(S=0;S<f;S++){var k=h[S];N=Math.max(N,k.left),L=Math.max(L,k.top),E=Math.min(E,k.right),I=Math.min(I,k.bottom)}for(T=0;T<g;T++){k=l[T];N=Math.max(N,k.left),L=Math.max(L,k.top),E=Math.min(E,k.right),I=Math.min(I,k.bottom)}N=b=Math.max(b,N),E=x=Math.min(x,E),L=v=Math.max(v,L),I=w=Math.min(w,I),this._plotRect=new t.Rect(b,v,x-b,w-v);var D=this._plotRect.clone(),R=b,O=this.plotAreas._calculateWidths(this._plotRect.width,f);for(S=0;S<f;S++){I=w,L=v;k=h[S];var F=O[S];for(_=0;_<k.axes.length;_++){var j,V=(M=k.axes[_])._getPosition(),B=new t.Rect(R,D.top,F,D.height);V==e.Position.Bottom?(j=new t.Rect(R,I,F,M._desiredSize.height),I+=M._desiredSize.height):V==e.Position.Top&&(j=new t.Rect(R,L-M._desiredSize.height,F,M._desiredSize.height),L-=M._desiredSize.height),M._layout(j,B)}for(_=0;_<this.plotAreas.length;_++){(H=this.plotAreas[_]).column==S&&H._setPlotX(R,F)}R+=F}var X=v,Y=this.plotAreas._calculateHeights(this._plotRect.height,g);for(T=0;T<g;T++){N=b,E=x;k=l[T];var z=Y[T];for(_=0;_<k.axes.length;_++){var G;V=(M=k.axes[_])._getPosition(),B=new t.Rect(D.left,X,D.width,z);M._plotrect?(B.left=M._plotrect.left,B.width=M._plotrect.width):O&&O.length>0&&(B.width=O[0]),V==e.Position.Left?(G=new t.Rect(N-M._desiredSize.height,X,z,M._desiredSize.height),N-=M._desiredSize.height):V==e.Position.Right&&(G=new t.Rect(E,X,z,M._desiredSize.height),E+=M._desiredSize.height),M._layout(G,B)}for(_=0;_<this.plotAreas.length;_++){var H;(H=this.plotAreas[_]).row==T&&H._setPlotY(X,z)}X+=z}},o.prototype._convertX=function(t,e,i){var n=this.axisX;return n.reversed?i-(i-e)*(t-n._getMinNum())/(n._getMaxNum()-n._getMinNum()):e+(i-e)*(t-n._getMinNum())/(n._getMaxNum()-n._getMinNum())},o.prototype._convertY=function(t,e,i){var n=this.axisY;return n.reversed?e+(i-e)*(t-n._getMinNum())/(n._getMaxNum()-n._getMinNum()):i-(i-e)*(t-n._getMinNum())/(n._getMaxNum()-n._getMinNum())},o.prototype._getLabelContent=function(e,i){return t.isString(i)?this._keywords.replace(i,e):t.isFunction(i)?i(e):null},o.prototype._select=function(t,i){var n=!1;if(t==this._selection&&i==this._selectionIndex||(n=!0),this._selection&&this._highlight(this._selection,!1,this._selectionIndex),this._selection=t,this._selectionIndex=i,this._selection&&this._highlight(this._selection,!0,this._selectionIndex),this.selectionMode==e.SelectionMode.Point){var r=t?t.collectionView:this._cv;r&&(this._notifyCurrentChanged=!1,r.moveCurrentToPosition(t?i:-1),this._notifyCurrentChanged=!0)}n&&this.onSelectionChanged()},o.prototype._highlightCurrent=function(){if(this.selectionMode!=e.SelectionMode.None){var t=this._selection,i=-1;if(t){var n=t.collectionView;n||(n=this._cv),n&&(i=n.currentPosition),this._highlight(t,!0,i)}}},o.prototype._highlight=function(i,n,r){if(i=t.asType(i,e.SeriesBase,!0),this.selectionMode==e.SelectionMode.Series){var s=this.series.indexOf(i),a=i.hostElement;n?a.parentNode.appendChild(a):a.parentNode.insertBefore(a,a.parentNode.childNodes.item(s));var h=this._find(a,["rect","ellipse","polyline","polygon","line","path"]);this._highlightItems(h,o._CSS_SELECTION,n),i.legendElement&&this._highlightItems(this._find(i.legendElement,["rect","ellipse","line"]),o._CSS_SELECTION,n)}else if(this.selectionMode==e.SelectionMode.Point){s=this.series.indexOf(i),a=i.hostElement;if(n){a.parentNode.appendChild(a);var l=i.getPlotElement(r);if(l)if(l instanceof SVGElement){if("g"!=l.nodeName&&(this._highlightItems([l],o._CSS_SELECTION,n),this._selectedEls.push(l)),(h=this._find(l,["line","rect","ellipse","path","polygon"])).length>0){this._highlightItems(h,o._CSS_SELECTION,n);for(var c=0;c<h.length;c++)this._selectedEls.push(h[c])}}else if(Array.isArray(l)){this._highlightItems(l,o._CSS_SELECTION,n);for(c=0;c<l.length;c++)this._selectedEls.push(l[c])}}else a.parentNode.insertBefore(a,a.parentNode.childNodes.item(s)),this._selectedEls.length>0&&(this._highlightItems(this._selectedEls,o._CSS_SELECTION,n),this._selectedEls.length=0)}},o.prototype._updateTooltip=function(e,i){var n,r=this.hitTest(i);if(r.distance<=e.threshold){var s=e.content;if(r.series){var a=r.series.tooltipContent;(a||""===a)&&(s=a)}n=this._getLabelContent(r,s)}n?this._showToolTip(n,new t.Rect(i.clientX,i.clientY,5,5)):this._hideToolTip()},o.prototype._updateAuxAxes=function(i,n){for(var r=2;r<i.length;r++){var s=i[r];s._chart=this;for(var a,o,h=[],l=0;l<this.series.length;l++){var c=this.series[l];c.axisX!=s&&c.axisY!=s||h.push(c)}for(l=0;l<h.length;l++){var u=h[l].getDataRect()||h[l]._getDataRect();u&&(s.axisType==e.AxisType.X&&!n||s.axisType==e.AxisType.Y&&n?((void 0===a||u.left<a)&&(a=u.left),(void 0===o||u.right>o)&&(o=u.right)):((void 0===a||u.top<a)&&(a=u.top),(void 0===o||u.bottom>o)&&(o=u.bottom)))}var _=h[0].getDataType(0);null==_&&(_=t.DataType.Number),i[r]._updateActualLimits(_,a,o)}},o._CSS_AXIS_X="wj-axis-x",o._CSS_AXIS_Y="wj-axis-y",o._CSS_LINE="wj-line",o._CSS_GRIDLINE="wj-gridline",o._CSS_TICK="wj-tick",o._CSS_GRIDLINE_MINOR="wj-gridline-minor",o._CSS_TICK_MINOR="wj-tick-minor",o._CSS_DATA_LABELS="wj-data-labels",o}(e.FlexChartBase);e.FlexChartCore=r;var s=function(){function t(){this._axes=new Array,this.left=0,this.right=0,this.top=0,this.bottom=0}return Object.defineProperty(t.prototype,"axes",{get:function(){return this._axes},enumerable:!0,configurable:!0}),t}(),a=function(){function r(){this.stackAbs={},this._xvals=null}return r.prototype.analyse=function(r,s,a,o,h,l){var c=this;this.minY=NaN,this.maxY=NaN,this.minX=NaN,this.maxX=NaN,this.minXp=NaN,this.minYp=NaN,this.dx=0;var u={},_={},p={};if(this.dataTypeX=null,this.dataTypeY=null,this._xvals=o,null!=o)for(var d=o.length,f=0;f<d;f++){var g=o[f];if((isNaN(this.minX)||this.minX>g)&&(this.minX=g),(isNaN(this.maxX)||this.maxX<g)&&(this.maxX=g),g>0&&(isNaN(this.minXp)||this.minXp>g)&&(this.minXp=g),f>0){var m=Math.abs(g-o[f-1]);!isNaN(m)&&(m<this.dx||0==this.dx)&&(this.dx=m)}}var y,b,v,x,w,S,P,C,T,M,A,N=function(){if(y=r[f],b=y._getChartType(),v=void 0!==y.chartType,(x=y.visibility)==e.SeriesVisibility.Hidden||x==e.SeriesVisibility.Legend)return"continue";if((w=y.getDataRect())&&(!isNaN(L.minX)&&L.minX<w.left&&(S=w.right,w.left=L.minX,w.width=S-L.minX),!isNaN(L.maxX)&&L.maxX>w.right&&(w.width=L.maxX-w.left),y._isCustomAxisY()||(!isNaN(L.minY)&&L.minY<w.top&&(S=w.bottom,w.top=L.minY,w.height=S-L.minY),!isNaN(L.maxY)&&L.maxY>w.bottom&&(w.height=L.maxY-w.top))),P=null,s?y._isCustomAxisY()||(P=y.getValues(1)):y._isCustomAxisX()||(P=y.getValues(1)),P){L.dataTypeX||(L.dataTypeX=y.getDataType(1));for(var h=0;h<P.length;h++)C=P[h],isFinite(C)&&((isNaN(L.minX)||L.minX>C)&&(L.minX=C),(isNaN(L.maxX)||L.maxX<C)&&(L.maxX=C),h>0&&(!b||b==i.Column||b==i.Bar)&&(m=Math.abs(C-P[h-1]),!isNaN(m)&&m>0&&(m<L.dx||0==L.dx)&&(L.dx=m)))}if(T=null,M=!1,s?(M=y._isCustomAxisX(),T=y.getValues(0)):(M=y._isCustomAxisY(),T=y.getValues(0)),T&&(L.dataTypeY||M||(L.dataTypeY=y.getDataType(0)),isNaN(L.minX)?L.minX=0:P||o||(L.minX=Math.min(L.minX,0)),isNaN(L.maxX)?L.maxX=T.length-1:P||o||(L.maxX=Math.max(L.maxX,T.length-1)),!M))for(var l=a==n.None||v,d=function(e){var i=T[e],n=P?t.asNumber(P[e],!0):o?t.asNumber(o[e],!0):e;t.isArray(i)?i.forEach(function(t){c._parseYVal(t,n,l,p,u,_)}):L._parseYVal(i,n,l,p,u,_)},g=0;g<T.length;g++)d(g);(A=y.getDataRect(new t.Rect(L.minX,L.minY,L.maxX-L.minX,L.maxY-L.minY),w))&&(L.minX=A.left,L.maxX=A.right,M||(L.minY=A.top,L.maxY=A.bottom))},L=this;for(f=0;f<r.length;f++)N();if(a==n.Stacked){for(var E in u)u[E]>this.maxY&&(this.maxY=u[E]);for(var E in _)_[E]<this.minY&&(this.minY=_[E])}else if(a==n.Stacked100pc){for(var E in this.minY=0,this.maxY=0,p){var I=p[E];if(isFinite(I)&&0!=I){var k=u[E],D=_[E];isFinite(k)&&(k=Math.max(k/I,this.maxY))>this.maxY&&(this.maxY=k),isFinite(D)&&(D=Math.min(D/I,this.minY))<this.minY&&(this.minY=D)}}this.minY==this.maxY&&(this.minY=0,this.maxY=1)}this.stackAbs=p,h&&(s?this.minY=isNaN(this.minYp)?1:this.minYp:this.minX=isNaN(this.minXp)?1:this.minXp),l&&(s?this.minX=isNaN(this.minXp)?1:this.minXp:this.minY=isNaN(this.minYp)?1:this.minYp)},r.prototype._parseYVal=function(t,e,i,n,r,s){isFinite(t)&&(null!=t&&(isNaN(this.minY)||this.minY>t)&&(this.minY=t),null!=t&&(isNaN(this.maxY)||this.maxY<t)&&(this.maxY=t),t>0&&(isNaN(this.minYp)||this.minYp>t)&&(this.minYp=t),i||(t>0?isNaN(r[e])?r[e]=t:r[e]+=t:isNaN(s[e])?s[e]=t:s[e]+=t,isNaN(n[e])?n[e]=Math.abs(t):n[e]+=Math.abs(t)))},r.prototype.getMinY=function(){return this.minY},r.prototype.getMaxY=function(){return this.maxY},r.prototype.getMinX=function(){return this.minX},r.prototype.getMaxX=function(){return this.maxX},r.prototype.getMinXp=function(){return this.minXp},r.prototype.getMinYp=function(){return this.minYp},r.prototype.getDeltaX=function(){return this.dx},r.prototype.getDataTypeX=function(){return this.dataTypeX},r.prototype.getDataTypeY=function(){return this.dataTypeY},r.prototype.getStackedAbsSum=function(t){var e=this.stackAbs[t];return isFinite(e)?e:0},r.prototype.getXVals=function(){return this._xvals},r.isValid=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var i=t.length,n=0;n<i;n++)if(!isFinite(t[n]))return!1;return!0},r}();e._DataInfo=a}(t.chart||(t.chart={}))}(wijmo||(wijmo={})),function(t){!function(e){"use strict";var i=function(i){function n(t,n){var r=i.call(this,t,null)||this;return r._chartType=e.ChartType.Column,r.initialize(n),r}return __extends(n,i),n.prototype._getChartType=function(){return this._chartType},Object.defineProperty(n.prototype,"chartType",{get:function(){return this._chartType},set:function(i){(i=t.asEnum(i,e.ChartType))!=this._chartType&&(this._chartType=i,this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"rotated",{get:function(){return this._rotated},set:function(e){e!=this._rotated&&(this._rotated=t.asBoolean(e),this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"stacking",{get:function(){return this._stacking},set:function(i){(i=t.asEnum(i,e.Stacking))!=this._stacking&&(this._stacking=i,this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"options",{get:function(){return this._options},set:function(t){t!=this._options&&(this._options=t,this.invalidate())},enumerable:!0,configurable:!0}),n}(e.FlexChartCore);e.FlexChart=i}(t.chart||(t.chart={}))}(wijmo||(wijmo={})),function(t){!function(e){"use strict";var i=function(i){function n(){var t=i.call(this)||this;return t.stacking=e.Stacking.None,t.isSpline=!1,t.isStep=!1,t.stackPos={},t.stackNeg={},t}return __extends(n,i),n.prototype.adjustLimits=function(i,n){this.dataInfo=i;for(var r=i.getMinX(),s=i.getMinY(),a=i.getMaxX(),o=i.getMaxY(),h=0;h<this.chart.series.length;h++){var l=this.chart.series[h];if(this._isRange(l)){var c=l._getChartType();if(!c||c==e.ChartType.Area)for(var u=l._getBindingValues(1),_=0;_<u.length;_++)u[_]>o?o=u[_]:u[_]<s&&(s=u[_])}}if(this.isSpline){var p=.1*(o-s);this.chart.axisY._getLogBase()||(s-=p),o+=p}return this.rotated?new t.Rect(s,r,o-s,a-r):new t.Rect(r,s,a-r,o-s)},n.prototype.clear=function(){i.prototype.clear.call(this),this.stackNeg={},this.stackPos={}},n.prototype.plotSeries=function(i,n,r,s,a,o,h,l){var c=s;if(this._isRange(c))this.plotSeriesRanged(i,n,r,s,a,o,h,l);else{var u=[],_=this.chart.series.indexOf(s),p=s.getValues(0),d=s.getValues(1);if(p){var f=p.length;if(f){d||(d=this.dataInfo.getXVals());var g=!0;d?d.length<f&&(f=d.length):(g=!1,d=new Array(f));var m=new Array,y=new Array,b=new Array,v=new Array,x=this.stacking!=e.Stacking.None&&!c._isCustomAxisY(),w=this.stacking==e.Stacking.Stacked100pc&&!c._isCustomAxisY();void 0!==c._getChartType()&&(x=w=!1);for(var S=this.rotated,P=!1,C=c.interpolateNulls,T=null,M=null,A=this.chart._plotRect,N=0;N<f;N++){var L=g?d[N]:N,E=p[N];if((null===T||L>T)&&(T=L),(null===M||L<M)&&(M=L),e._DataInfo.isValid(L,E)){var I=S?r.convert(L):n.convert(L);if(x){if(w)E/=this.dataInfo.getStackedAbsSum(L);var k=0;E>=0?(k=isNaN(this.stackPos[L])?0:this.stackPos[L],E=this.stackPos[L]=k+E):(k=isNaN(this.stackNeg[L])?0:this.stackNeg[L],E=this.stackNeg[L]=k+E),S?(k<n.actualMin&&(k=n.actualMin),b.push(n.convert(k)),v.push(I)):(b.push(I),k<r.actualMin&&(k=r.actualMin),v.push(r.convert(k)))}if(S){var D=n.convert(E);if(isNaN(I)||isNaN(D))P=!0,x||!0===C||(m.push(void 0),y.push(void 0));else if(m.push(D),y.push(I),e.FlexChartCore._contains(A,new t.Point(D,I)))(R=new e._CircleArea(new t.Point(D,I),this._DEFAULT_SYM_SIZE)).tag=new e._DataPoint(_,N,E,L),this.hitTester.add(R,_)}else{var R;D=r.convert(E);if(isNaN(I)||isNaN(D))P=!0,x||!0===C||(m.push(void 0),y.push(void 0));else if(m.push(I),y.push(D),e.FlexChartCore._contains(A,new t.Point(I,D)))(R=new e._CircleArea(new t.Point(I,D),this._DEFAULT_SYM_SIZE)).tag=new e._DataPoint(_,N,L,E),this.hitTester.add(R,_)}}else P=!0,x||!0===C||(m.push(void 0),y.push(void 0))}l&&m.forEach(function(e,i){null!=e&&u.push(new t.Point(e,y[i]))});var O=this._DEFAULT_WIDTH,F=a._getColorLight(_),j=a._getColor(_),V=e._BasePlotter.cloneStyle(s.style,["fill"]),B=e._BasePlotter.cloneStyle(s.style,["stroke"]);if(!x&&!0!==C&&P){var X=[],Y=[];for(N=0;N<f;N++)if(void 0===m[N]){if(X.length>1)X=(z=this._modifyPoints(X,Y)).x,Y=z.y,i.stroke=j,i.strokeWidth=O,i.fill="none",i.drawLines(X,Y,null,V),this.hitTester.add(new e._LinesArea(X,Y),_),S?(X.push(n.convert(n.actualMin),n.convert(n.actualMin)),Y.push(r.convert(r.actualMax),r.convert(r.actualMin))):(X.push(X[X.length-1],X[0]),Y.push(r.convert(r.actualMin),r.convert(r.actualMin))),i.fill=F,i.stroke="none",i.drawPolygon(X,Y,null,B,this.chart._plotrectId);X=[],Y=[]}else X.push(m[N]),Y.push(y[N]);if(X.length>1)X=(z=this._modifyPoints(X,Y)).x,Y=z.y,i.stroke=j,i.strokeWidth=O,i.fill="none",i.drawLines(X,Y,null,V),this.hitTester.add(new e._LinesArea(X,Y),_),S?(X.push(n.convert(n.actualMin),n.convert(n.actualMin)),Y.push(r.convert(r.actualMax),r.convert(r.actualMin))):(X.push(X[X.length-1],X[0]),Y.push(r.convert(r.actualMin),r.convert(r.actualMin))),i.fill=F,i.stroke="none",i.drawPolygon(X,Y,null,B,this.chart._plotrectId)}else{var z;if(m=(z=this._modifyPoints(m,y)).x,y=z.y,x){var G=this._modifyPoints(b,v);b=G.x,v=G.y,m=m.concat(b.reverse()),y=y.concat(v.reverse())}else S?(m.push(n.convert(n.actualMin),n.convert(n.actualMin)),y.push(y[y.length-1],y[0])):(m.push(m[m.length-1],m[0]),y.push(r.convert(r.actualMin),r.convert(r.actualMin)));i.fill=F,i.stroke="none",i.drawPolygon(m,y,null,B,this.chart._plotrectId),x?(m=m.slice(0,m.length-b.length),y=y.slice(0,y.length-v.length)):(m=m.slice(0,m.length-2),y=y.slice(0,y.length-2)),i.stroke=j,i.strokeWidth=O,i.fill="none",i.drawLines(m,y,null,V,this.chart._plotrectId),this.hitTester.add(new e._LinesArea(m,y),_)}this._drawSymbols(i,s,_),l&&u&&u.length&&l(u)}}}},n.prototype._isRange=function(t){var e=this.chart?this.chart._bindingSeparator:",",i=null==t.binding?null:t.binding.split(e);return null!=i&&2==i.length},n.prototype._modifyPoints=function(t,e){var i={x:t,y:e};if(this.isSpline){var n=this._convertToSpline(t,e);i.x=n.xs,i.y=n.ys}else if(this.isStep){var r=this._createSteps(t,e);i.x=r.x,i.y=r.y}return i},n.prototype.plotSeriesRanged=function(i,n,r,s,a,o,h,l){var c=[],u=this.chart.series.indexOf(s),_=s,p=s.getValues(0),d=s.getValues(1),f=_._getBindingValues(1);if(p){var g=p.length;if(g){d||(d=this.dataInfo.getXVals());var m=!0;d?d.length<g&&(g=d.length):(m=!1,d=new Array(g));for(var y=new Array,b=new Array,v=new Array,x=this.rotated,w=!1,S=_.interpolateNulls,P=this.chart._plotRect,C=0;C<g;C++){var T=m?d[C]:C,M=p[C],A=f[C];if(e._DataInfo.isValid(T,M,A)){var N=x?r.convert(T):n.convert(T);if(x){var L=n.convert(M),E=n.convert(A);if(isNaN(N)||isNaN(L))w=!0,!0!==S&&(y.push(void 0),b.push(void 0),v.push(void 0));else{if(y.push(L),b.push(N),v.push(E),e.FlexChartCore._contains(P,new t.Point(L,N)))(I=new e._CircleArea(new t.Point(L,N),this._DEFAULT_SYM_SIZE)).tag=new e._DataPoint(u,C,M,T),this.hitTester.add(I,u);if(e.FlexChartCore._contains(P,new t.Point(E,N)))(I=new e._CircleArea(new t.Point(E,N),this._DEFAULT_SYM_SIZE)).tag=new e._DataPoint(u,C,A,T),this.hitTester.add(I,u)}}else{L=r.convert(M),E=r.convert(A);if(isNaN(N)||isNaN(L))w=!0,!0!==S&&(y.push(void 0),b.push(void 0),v.push(void 0));else{var I;if(y.push(N),b.push(L),v.push(E),e.FlexChartCore._contains(P,new t.Point(N,L)))(I=new e._CircleArea(new t.Point(N,L),this._DEFAULT_SYM_SIZE)).tag=new e._DataPoint(u,C,T,M),this.hitTester.add(I,u);if(e.FlexChartCore._contains(P,new t.Point(N,E)))(I=new e._CircleArea(new t.Point(N,E),this._DEFAULT_SYM_SIZE)).tag=new e._DataPoint(u,C,T,A),this.hitTester.add(I,u)}}}else w=!0,!0!==S&&(y.push(void 0),b.push(void 0),v.push(void 0))}l&&y.forEach(function(e,i){null!=e&&c.push(new t.Point(e,b[i]))});var k=this._DEFAULT_WIDTH,D=a._getColorLight(u),R=a._getColor(u),O=e._BasePlotter.cloneStyle(s.style,["fill"]),F=e._BasePlotter.cloneStyle(s.style,["stroke"]);if(!0!==S&&w){var j=[],V=[],B=[];for(C=0;C<g;C++)if(void 0===y[C]){if(j.length>1){var X=x?B.slice(0).reverse():j.slice(0).reverse(),Y=x?V.slice(0).reverse():B.slice(0).reverse();this._drawRangedArea(i,j,V,X,Y,D,R,k,F,O),this.hitTester.add(new e._LinesArea(j,V),u),this.hitTester.add(new e._LinesArea(X,Y),u)}j=[],V=[],B=[]}else j.push(y[C]),V.push(b[C]),B.push(v[C]);if(j.length>1){X=x?B.slice(0).reverse():j.slice(0).reverse(),Y=x?V.slice(0).reverse():B.slice(0).reverse();this._drawRangedArea(i,j,V,X,Y,D,R,k,F,O),this.hitTester.add(new e._LinesArea(j,V),u),this.hitTester.add(new e._LinesArea(X,Y),u)}}else{var z=x?v.slice(0).reverse():y.slice(0).reverse(),G=x?b.slice(0).reverse():v.slice(0).reverse();this._drawRangedArea(i,y,b,z,G,D,R,k,F,O),this.hitTester.add(new e._LinesArea(y,b),u),this.hitTester.add(new e._LinesArea(z,G),u)}this._drawSymbols(i,s,u),l&&c&&c.length&&l(c)}}},n.prototype._drawRangedArea=function(t,e,i,n,r,s,a,o,h,l){if(this.isSpline){var c=this._convertToSpline(e,i),u=this._convertToSpline(n,r);e=c.xs,i=c.ys,n=u.xs,r=u.ys}e=e.concat(n),i=i.concat(r),t.fill=s,t.stroke="none",t.drawPolygon(e,i,null,h),e=e.slice(0,e.length-n.length),i=i.slice(0,i.length-r.length),t.stroke=a,t.strokeWidth=o,t.fill="none",t.drawLines(e,i,null,l),t.drawLines(n,r,null,l)},n.prototype._convertToSpline=function(t,i){if(t&&i){var n=new e._Spline(t,i).calculate();return{xs:n.xs,ys:n.ys}}return{xs:t,ys:i}},n.prototype._drawSymbols=function(i,n,r){var s=this.getItemFormatter(n);if(null!=s){for(var a=this.hitTester._map[r],o=0;o<a.length;o++){var h=t.tryCast(a[o],e._CircleArea);if(h){var l=h.tag;i.startGroup();var c=new e.HitTestInfo(this.chart,h.center,e.ChartElement.SeriesSymbol);c._setDataPoint(l),s(i,c,function(){}),i.endGroup()}}i.cssPriority=!0}},n}(e._BasePlotter);e._AreaPlotter=i}(t.chart||(t.chart={}))}(wijmo||(wijmo={})),function(t){!function(e){"use strict";var i=function(i){function n(){var t=null!==i&&i.apply(this,arguments)||this;return t.origin=0,t.width=.7,t.isVolume=!1,t._volHelper=null,t.stackPosMap={},t.stackNegMap={},t.stacking=e.Stacking.None,t}return __extends(n,i),n.prototype.clear=function(){i.prototype.clear.call(this),this.stackNegMap[this.chart.axisY._uniqueId]={},this.stackPosMap[this.chart.axisY._uniqueId]={},this._volHelper=null},n.prototype.load=function(){if(i.prototype.load.call(this),this.isVolume){var n,r,s,a,o,h,l,c,u=null,_=null;for(h=0;h<this.chart.series.length;h++){if(o=(n=this.chart.series[h]).getDataType(1)||n.chart._xDataType,r=n._getAxisX(),(s=null===(s=n._getChartType())||t.isUndefined(s)?this.chart._getChartType():s)===e.ChartType.Column){var p=this.chart?this.chart._bindingSeparator:",",d=n.binding.split(p).length-1;a=n._getBindingValues(d)}else a=s===e.ChartType.Candlestick?n._getBindingValues(4):null;var f;if(o===t.DataType.Date)for(l=[],c=[],h=0;h<n._getLength();h++)f=n._getItem(h)[n.bindingX].valueOf(),l.push(f),c.push({value:f,text:t.Globalize.format(new Date(f),r.format||"d")});else l=this.dataInfo.getXVals();if(u=this.dataInfo.getMinX(),_=this.dataInfo.getMaxX(),a&&a.length>0){this._volHelper=new e._VolumeHelper(a,l,u,_,o),r._customConvert=this._volHelper.convert.bind(this._volHelper),r._customConvertBack=this._volHelper.convertBack.bind(this._volHelper),c&&c.length>0&&(this._itemsSource=r.itemsSource=c);break}}}},n.prototype.unload=function(){var t;i.prototype.unload.call(this);for(var e=0;e<this.chart.series.length;e++)(t=this.chart.series[e]._getAxisX())&&(t._customConvert=null,t._customConvertBack=null,t.itemsSource&&t.itemsSource==this._itemsSource&&(this._itemsSource=t.itemsSource=null))},n.prototype.adjustLimits=function(i,n){this.dataInfo=i;var r=i.getMinX(),s=i.getMaxX(),a=i.getMinY(),o=i.getMaxY(),h=i.getDeltaX();h<=0&&(h=1);var l=!1;!this.isVolume||this.chart._getChartType()!==e.ChartType.Column&&this.chart._getChartType()!==e.ChartType.Candlestick?this.unload():this.load();for(var c=0;c<this.chart.series.length;c++){var u=this.chart.series[c],_=u._getChartType();if((_=null===_||t.isUndefined(_)?this.chart._getChartType():_)===e.ChartType.Column||_===e.ChartType.Bar)if(this._isRange(u))u._getBindingValues(1).forEach(function(t){t<a?a=t:t>o&&(o=t)});l||"BoxWhisker"==u.constructor.name||(l=!0)}return this.rotated?(!this.chart.axisY._getLogBase()&&i.getDataTypeY()!==t.DataType.Date&&l&&(this.origin>o?o=this.origin:this.origin<a&&(a=this.origin)),new t.Rect(a,r-.5*h,o-a,s-r+h)):(!this.chart.axisY._getLogBase()&&i.getDataTypeY()!==t.DataType.Date&&l&&(this.origin>o?o=this.origin:this.origin<a&&(a=this.origin)),new t.Rect(r-.5*h,a,s-r+h,o-a))},n.prototype._isRange=function(t){var e=this.chart?this.chart._bindingSeparator:",",i=(null==t.binding?"":t.binding.split(e)).length-1;return this.isVolume?2===i:1===i},n.prototype.plotSeries=function(i,n,r,s,a,o,h,l){var c=[],u=this.chart.series.indexOf(s),_=t.asType(s,e.SeriesBase),p=this.chart._options,d=this.width,f=0;if(o=o||0,h=h||1,p&&p.groupWidth){var g=p.groupWidth;if(t.isNumber(g)){var m=t.asNumber(g);isFinite(m)&&m>0&&(f=m,d=1)}else if(t.isString(g)){var y=t.asString(g);if(y&&y.indexOf("%")>=0){y=y.replace("%","");m=parseFloat(y);isFinite(m)&&(m<0?m=0:m>100&&(m=100),f=0,d=m/100)}else{m=parseFloat(y);isFinite(m)&&m>0&&(f=m,d=1)}}}var b=d/h,v=_._getAxisY()._uniqueId,x=this.stackNegMap[v],w=this.stackPosMap[v],S=s.getValues(0),P=s.getValues(1),C=this._isRange(_),T=_._bindValues(null==_._cv?null==this.chart.collectionView?null:this.chart.collectionView.items:_._cv.items,_._getBinding(1)).values;if(S){if(P||(P=this.dataInfo.getXVals()),P){var M=this.dataInfo.getDeltaX();M>0&&(d*=M,b*=M)}var A=_._getSymbolFill(u),N=_._getAltSymbolFill(u)||A,L=_._getSymbolStroke(u),E=_._getAltSymbolStroke(u)||L,I=S.length;null!=P&&(I=Math.min(I,P.length));var k,D,R=this.origin,O=0,F=this.stacking!=e.Stacking.None,j=this.stacking==e.Stacking.Stacked100pc;void 0!==_._getChartType()&&(F=j=!1);var V=this.getItemFormatter(s),B=n._actualMin,X=n._actualMax,Y=r._actualMin,z=r._actualMax;if(this.rotated){R<B?R=B:R>X&&(R=X),_._isCustomAxisY()&&(F=j=!1);for(U=n.convert(R),q=0;q<I;q++){J=P?P[q]:q,Q=S[q],Z=U;if(this._getSymbolOrigin&&(Z=r.convert(this._getSymbolOrigin(R,q))),C&&T&&T.length){$=T[q];e._DataInfo.isValid($)&&(Z=n.convert($))}if(this._getSymbolStyles)A=(K=this._getSymbolStyles(q))&&K.fill?K.fill:A,N=K&&K.fill?K.fill:N,L=K&&K.stroke?K.fill:L,E=K&&K.stroke?K.fill:E;if(k=Q>0?A:N,D=Q>0?L:E,i.fill=k,i.stroke=D,e._DataInfo.isValid(J,Q))if(F){et=J+.5*d;if((tt=J-.5*d)<Y&&et<Y||tt>z&&et>z)continue;if(tt=r.convert(Math.max(tt,Y)),et=r.convert(Math.min(et,z)),j)Q/=this.dataInfo.getStackedAbsSum(J);nt=0;if(Q>=0?(nt=isNaN(w[J])?0:w[J],ot=n.convert(nt),it=n.convert(nt+Q),w[J]=nt+Q):(nt=isNaN(x[J])?0:x[J],ot=n.convert(nt),it=n.convert(nt+Q),x[J]=nt+Q),l&&c.push(new t.Point(it,r.convert(J))),!e._DataInfo.isValid(ot,it))continue;rt=new t.Rect(Math.min(ot,it),Math.min(tt,et),Math.abs(it-ot),Math.abs(et-tt));if(f>0){(ut=1-f/rt.height)<0&&(ut=0);var G=rt.top+.5*rt.height;rt.top+=(G-rt.top)*ut,rt.height=Math.min(f,rt.height)}at=new e._RectArea(rt);this.drawSymbol(i,rt,s,q,new t.Point(it,rt.top+.5*rt.height),V),s._setPointIndex(q,O),O++,at.tag=new e._DataPoint(u,q,nt+Q,J),this.hitTester.add(at,u)}else{et=J-.5*d+(o+1)*b;if((tt=J-.5*d+o*b)<Y&&et<Y||tt>z&&et>z)continue;tt=r.convert(Math.max(tt,Y)),et=r.convert(Math.min(et,z));var H=n.convert(Q);if(!e._DataInfo.isValid(H,tt,et))continue;var W=new t.Rect(Math.min(H,Z),Math.min(tt,et),Math.abs(Z-H),Math.abs(et-tt));if(l&&c.push(new t.Point(H,(tt+et)/2)),f>0){(ut=1-(ct=f/h)/W.height)<0&&(ut=0);G=r.convert(J);W.top+=(G-W.top)*ut,W.height=Math.min(ct,W.height)}at=new e._RectArea(W);this.drawSymbol(i,W,s,q,new t.Point(H,W.top+.5*W.height),V),s._setPointIndex(q,O),O++,at.tag=new e._DataPoint(u,q,Q,J),this.hitTester.add(at,u)}else l&&c.push(null)}}else{R<Y?R=Y:R>z&&(R=z);var U=r.convert(R);_._isCustomAxisY()&&(F=j=!1);for(var q=0;q<I;q++){var K,Z=U,J=P?P[q]:q,Q=S[q];if(this._getSymbolOrigin&&(Z=r.convert(this._getSymbolOrigin(R,q,I))),C&&T&&T.length){var $=T[q];e._DataInfo.isValid($)&&(Z=r.convert($))}if(this._getSymbolStyles)A=(K=this._getSymbolStyles(q,I))&&K.fill?K.fill:A,N=K&&K.fill?K.fill:N,L=K&&K.stroke?K.stroke:L,E=K&&K.stroke?K.stroke:E;if(k=Q>0?A:N,D=Q>0?L:E,i.fill=k,i.stroke=D,i.strokeWidth=null,e._DataInfo.isValid(J,Q))if(F){var tt,et,it=J+.5*d;if((ot=J-.5*d)<B&&it<B||ot>X&&it>X)continue;if(ot=n.convert(ot),it=n.convert(it),!e._DataInfo.isValid(ot,it))continue;if(j)Q/=this.dataInfo.getStackedAbsSum(J);var nt=0;if(Q>=0?(nt=isNaN(w[J])?0:w[J],tt=r.convert(Math.max(nt,Y)),et=r.convert(Math.max(nt+Q,Y)),w[J]=nt+Q):(nt=isNaN(x[J])?0:x[J],tt=r.convert(nt),et=r.convert(nt+Q),x[J]=nt+Q),l&&c.push(new t.Point(n.convert(J),et)),!e._DataInfo.isValid(tt,et))continue;var rt=new t.Rect(Math.min(ot,it),Math.min(tt,et),Math.abs(it-ot),Math.abs(et-tt));if(f>0){(ut=1-f/rt.width)<0&&(ut=0);var st=rt.left+.5*rt.width;rt.left+=(st-rt.left)*ut,rt.width=Math.min(f,rt.width)}var at=new e._RectArea(rt);this.drawSymbol(i,rt,s,q,new t.Point(rt.left+.5*rt.width,et),V),s._setPointIndex(q,O),O++,at.tag=new e._DataPoint(u,q,J,nt+Q),this.hitTester.add(at,u)}else{var ot,it=J-.5*d+(o+1)*b;if((ot=J-.5*d+o*b)<B&&it<B||ot>X&&it>X)continue;ot=n.convert(ot),it=n.convert(it);var ht=r.convert(Q);if(!e._DataInfo.isValid(ht,ot,it))continue;var lt=new t.Rect(Math.min(ot,it),Math.min(ht,Z),Math.abs(it-ot),Math.abs(Z-ht));if(l&&c.push(new t.Point((ot+it)/2,ht)),f>0){var ct,ut;(ut=1-(ct=f/h)/lt.width)<0&&(ut=0);st=n.convert(J);lt.left+=(st-lt.left)*ut,lt.width=Math.min(ct,lt.width)}var at=new e._RectArea(lt);this.drawSymbol(i,lt,s,q,new t.Point(lt.left+.5*lt.width,ht),V),s._setPointIndex(q,O),O++,at.tag=new e._DataPoint(u,q,J,Q),this.hitTester.add(at,u)}else l&&c.push(null)}}l&&c&&c.length&&l(c)}},n.prototype.drawSymbol=function(t,i,n,r,s,a){var o=this;if(a){t.startGroup();var h=new e.HitTestInfo(this.chart,s,e.ChartElement.SeriesSymbol);h._setData(n,r),a(t,h,function(){o.drawDefaultSymbol(t,i,n)}),t.cssPriority=!0,t.endGroup()}else this.drawDefaultSymbol(t,i,n)},n.prototype.drawDefaultSymbol=function(t,e,i){t.drawRect(e.left,e.top,e.width,e.height,null,i.symbolStyle)},n}(e._BasePlotter);e._BarPlotter=i}(t.chart||(t.chart={}))}(wijmo||(wijmo={})),function(t){!function(e){"use strict";var i=function(i){function r(){var t=null!==i&&i.apply(this,arguments)||this;return t.stacking=e.Stacking.None,t}return __extends(r,i),r.prototype.adjustLimits=function(e,i){this.dataInfo=e;var n=e.getMinX(),r=e.getMinY(),s=e.getMaxX(),a=e.getMaxY();return new t.Rect(n,r,s-n,a-r)},r.prototype.plotSeries=function(i,r,s,a,o,h,l,c){var u=this.chart.series.indexOf(a);if(!(u>0)){var _,p,d,f,g,m=t.asType(a,e.SeriesBase),y=this.chart._options,b=a.getValues(0),v=a.getValues(1),x=this.chart._plotRect,w=y&&y.funnel&&null!=y.funnel.neckWidth?y.funnel.neckWidth:.2,S=y&&y.funnel&&null!=y.funnel.neckHeight?y.funnel.neckHeight:0,P=w*x.width,C=0,T=0,M=0,A=0,N=x.left,L=x.top,E=x.width,I=x.height;if(b){this.rotated&&(L+=x.height),P=P||1,v||(v=this.dataInfo.getXVals());var k=b.length;null!=v&&(k=Math.min(k,v.length));var D=0;for(C=0;C<k;C++)e._DataInfo.isValid(b[C])&&(T+=b[C],b[C]>D&&(D=b[C]));var R,O,F=0;if(y&&y.funnel&&"rectangle"===y.funnel.type&&D>0){S=I/k,w=E;var j=E/D;for(C=0;C<k;C++){var V=v?v[C]:C,B=b[C],X=m._getSymbolFill(C),Y=m._getAltSymbolFill(C)||X,z=m._getSymbolStroke(C),G=m._getAltSymbolStroke(C)||z;if(this._getSymbolStyles)X=(U=this._getSymbolStyles(C,k))&&U.fill?U.fill:X,Y=U&&U.fill?U.fill:Y,z=U&&U.stroke?U.stroke:z,G=U&&U.stroke?U.stroke:G;if(R=B>0?X:Y,O=B>0?z:G,i.fill=R,i.stroke=O,e._DataInfo.isValid(V)&&e._DataInfo.isValid(B)){j||(j=E/B);var H=j*B;N+=(w-H)/2,this.rotated&&(L-=S),i.drawRect(N,L,H,S),W=new n(new t.Point(N,L),H,S,H,S),this.rotated||(L+=S),w=H,W.tag=new e._DataPoint(u,C,V,B),this.hitTester.add(W,u),a._setPointIndex(C,F),F++}}}else for(M=x.left+x.width*(1-w)/2,A=x.top+x.height*(this.rotated?S:1-S),p=(1-w)*x.width/2/(x.height*(1-S)),!isNaN(p)&&isFinite(p)||(E=P,N=M,L=A),_=x.width*w*x.height+x.width*(1-w)/2*x.height*(1-S),C=0;C<k;C++){V=v?v[C]:C,B=b[C];var W,U,q=[],K=[];X=m._getSymbolFill(C),Y=m._getAltSymbolFill(C)||X,z=m._getSymbolStroke(C),G=m._getAltSymbolStroke(C)||z;if(this._getSymbolStyles)X=(U=this._getSymbolStyles(C,k))&&U.fill?U.fill:X,Y=U&&U.fill?U.fill:Y,z=U&&U.stroke?U.stroke:z,G=U&&U.stroke?U.stroke:G;if(R=B>0?X:Y,O=B>0?z:G,i.fill=R,i.stroke=O,e._DataInfo.isValid(V)&&e._DataInfo.isValid(B)){var Z=_*B/T;E>P?(f=this._getTrapezoidOffsetY(E,Z,p),this.rotated?L-f>A?(q=[N,N+(d=p*f),N+E-d,N+E],K=[L,L-f,L-f,L],W=new n(new t.Point(N,L-f),E,f,E-2*d,0,!0),E-=2*d,N+=d,L-=f):(d=p*(f=L-A),g=(Z-=this._getTrapezoidArea(E,p,f))/P,q.push(N,N+d,N+d,N+d+P,N+d+P,N+E),K.push(L,L-f,L-f-g,L-f-g,L-f,L),W=new n(new t.Point(N,L-f-g),E,f+g,P,g,!0),E=P,N+=d,L=L-f-g):L+f<A?(q=[N,N+(d=p*f),N+E-d,N+E],K=[L,L+f,L+f,L],W=new n(new t.Point(N,L),E,f,E-2*d,0),E-=2*d,N+=d,L+=f):(d=p*(f=A-L),g=(Z-=this._getTrapezoidArea(E,p,f))/P,q.push(N,N+d,N+d,N+d+P,N+d+P,N+E),K.push(L,L+f,L+f+g,L+f+g,L+f,L),W=new n(new t.Point(N,L),E,f+g,P,g),E=P,N+=d,L=L+f+g),i.drawPolygon(q,K)):(g=Z/P,this.rotated&&(L-=g),i.drawRect(N,L,E,g),W=new n(new t.Point(N,L),P,g,P,g),this.rotated||(L+=g)),W.tag=new e._DataPoint(u,C,V,B),this.hitTester.add(W,u),a._setPointIndex(C,F),F++}}}}},r.prototype._getTrapezoidArea=function(t,e,i){var n=i*e;return n*i+(t-2*n)*i},r.prototype._getTrapezoidOffsetY=function(t,e,i){var n=Math.pow(t/2/i,2)-e/i;return t/2/i-Math.sqrt(n>=0?n:0)},r.prototype.drawDefaultSymbol=function(t,e,i){t.drawRect(e.left,e.top,e.width,e.height,null,i.symbolStyle)},r.prototype._getPointAndPosition=function(t,i,n,r){var s=n;t.x=s.center.x,t.y=s.center.y,i=null==i?e.LabelPosition.Center:i},r}(e._BasePlotter);e._FunnelPlotter=i;var n=function(){function e(e,i,n,r,s,a){void 0===a&&(a=!1),this._startPoint=e,this._width=i,this._height=n,this._neckWidth=r,this._neckHeight=s,this._center=new t.Point(this._startPoint.x+i/2,this._startPoint.y+n/2),this._offsetX=(i-r)/2,this._offsetY=n-s,this._rotated=a}return e.prototype.contains=function(t){var e=this._startPoint,i=this._offsetX,n=this._offsetY;if(this._rotated){if(t.x>=e.x&&t.x<=e.x+this._width&&t.y>=e.y&&t.y<=e.y+this._height){if(t.x>=e.x+i&&t.x<=e.x+this._width-i)return!0;if(t.y<e.y+this._neckHeight)return!1;if(t.x<this._center.x)return(e.y+this._height-t.y)/(t.x-e.x)<n/i;if(t.x>this._center.x)return(e.y+this._height-t.y)/(e.x+this._width-t.x)<n/i}}else if(t.x>=e.x&&t.x<=e.x+this._width&&t.y>=e.y&&t.y<=e.y+this._height){if(t.x>=e.x+i&&t.x<=e.x+this._width-i)return!0;if(t.y>e.y+n)return!1;if(t.x<this._center.x)return(t.y-e.y)/(t.x-e.x)<n/i;if(t.x>this._center.x)return(t.y-e.y)/(e.x+this._width-t.x)<n/i}return!1},e.prototype.distance=function(t){if(this.contains(t))return 0;var e=this._startPoint,i=this._width,n=this._height,r=this._offsetX,s=this._offsetY;if(this._rotated){if(t.y>e.y+n)return t.x<e.x?Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y+n-t.y,2)):t.x>e.x+i?Math.sqrt(Math.pow(t.x-e.x-i,2)+Math.pow(e.y+n-t.y,2)):t.y-e.y-n;if(t.y<e.y)return t.x<e.x+r?Math.sqrt(Math.pow(e.x+r-t.x,2)+Math.pow(t.y-e.y-n,2)):t.x>e.x+i-r?Math.sqrt(Math.pow(t.x-e.x-i+r,2)+Math.pow(t.y-e.y-n,2)):e.y-t.y;if(!(t.y<e.y+n-s))return t.x<e.x+r?Math.min(Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(t.y-e.y-n,2)),Math.sqrt(Math.pow(t.x-r/2-e.x,2)+Math.pow(t.y-n+s/2-e.y,2)),Math.sqrt(Math.pow(t.x-r-e.x,2)+Math.pow(t.y-n+s-e.y,2))):Math.min(Math.sqrt(Math.pow(t.x-i-e.x,2)+Math.pow(t.y-n-e.y,2)),Math.sqrt(Math.pow(t.x-i+r/2-e.x,2)+Math.pow(t.y-n+s/2-e.y,2)),Math.sqrt(Math.pow(t.x-i+r-e.x,2)+Math.pow(t.y-n+s-e.y,2)));if(t.x<e.x+r)return e.x+r-t.x;if(t.x>e.x+i-r)return t.x-e.x-i+r}else{if(t.y<e.y)return t.x<e.x?Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)):t.x>e.x+i?Math.sqrt(Math.pow(t.x-e.x-i,2)+Math.pow(e.y-t.y,2)):e.y-t.y;if(t.y>e.y+n)return t.x<e.x+r?Math.sqrt(Math.pow(e.x+r-t.x,2)+Math.pow(t.y-e.y-n,2)):t.x>e.x+i-r?Math.sqrt(Math.pow(t.x-e.x-i+r,2)+Math.pow(t.y-e.y-n,2)):t.y-e.y-n;if(!(t.y>e.y+s))return t.x<e.x+r?Math.min(Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(t.y-e.y,2)),Math.sqrt(Math.pow(t.x-r/2-e.x,2)+Math.pow(t.y-s/2-e.y,2)),Math.sqrt(Math.pow(t.x-r-e.x,2)+Math.pow(t.y-s-e.y,2))):Math.min(Math.sqrt(Math.pow(t.x-i-e.x,2)+Math.pow(t.y-e.y,2)),Math.sqrt(Math.pow(t.x-i+r/2-e.x,2)+Math.pow(t.y-s/2-e.y,2)),Math.sqrt(Math.pow(t.x-i+r-e.x,2)+Math.pow(t.y-s-e.y,2)));if(t.x<e.x+r)return e.x+r-t.x;if(t.x>e.x+i-r)return t.x-e.x-i+r}},Object.defineProperty(e.prototype,"center",{get:function(){return this._center},enumerable:!0,configurable:!0}),e}();e._FunnelSegment=n}(t.chart||(t.chart={}))}(wijmo||(wijmo={})),function(t){!function(e){"use strict";var i=function(i){function n(){var t=null!==i&&i.apply(this,arguments)||this;return t.isCandle=!0,t.isArms=!1,t.isEqui=!1,t.isVolume=!1,t._volHelper=null,t._symWidth=.7,t}return __extends(n,i),n.prototype.clear=function(){i.prototype.clear.call(this),this._volHelper=null},n.prototype.load=function(){if(i.prototype.load.call(this),this.isVolume){var n,r,s,a,o,h,l,c,u=null,_=null;for(h=0;h<this.chart.series.length;h++){var p;if(o=(n=this.chart.series[h]).getDataType(1)||n.chart._xDataType,r=n._getAxisX(),a=(s=null===(s=n._getChartType())||t.isUndefined(s)?this.chart._getChartType():s)===e.ChartType.Column?n._getBindingValues(1):s===e.ChartType.Candlestick?n._getBindingValues(4):null,o===t.DataType.Date)for(l=[],c=[],h=0;h<n._getLength();h++)p=n._getItem(h)[n.bindingX].valueOf(),l.push(p),c.push({value:p,text:t.Globalize.format(new Date(p),r.format||"d")});else l=this.dataInfo.getXVals();if(u=this.dataInfo.getMinX(),_=this.dataInfo.getMaxX(),a&&a.length>0){this._volHelper=new e._VolumeHelper(a,l,u,_,o),r._customConvert=this._volHelper.convert.bind(this._volHelper),r._customConvertBack=this._volHelper.convertBack.bind(this._volHelper),c&&c.length>0&&(this._itemsSource=r.itemsSource=c);break}}}},n.prototype.unload=function(){var t;i.prototype.unload.call(this);for(var e=0;e<this.chart.series.length;e++)(t=this.chart.series[e]._getAxisX())&&(t._customConvert=null,t._customConvertBack=null,t.itemsSource&&t.itemsSource==this._itemsSource&&(this._itemsSource=t.itemsSource=null))},n.prototype.parseSymbolWidth=function(e){if(this._isPixel=void 0,e)if(t.isNumber(e)){var i=t.asNumber(e);isFinite(i)&&i>0&&(this._symWidth=i,this._isPixel=!0)}else if(t.isString(e)){var n=t.asString(e);if(n&&n.indexOf("%")>=0){n=n.replace("%","");var r=parseFloat(n);isFinite(r)&&(r<0?r=0:r>100&&(r=100),this._symWidth=r/100,this._isPixel=!1)}else{r=parseFloat(e);isFinite(r)&&r>0&&(this._symWidth=r,this._isPixel=!0)}}},n.prototype.adjustLimits=function(i,n){this.dataInfo=i;var r=i.getMinX(),s=i.getMinY(),a=i.getMaxX(),o=i.getMaxY(),h=i.getDeltaX(),l=this.chart._xDataType;h<=0&&(h=1);var c=this.chart.series,u=c.length,_=0;this.parseSymbolWidth(this.symbolWidth),!this.isVolume||this.chart._getChartType()!==e.ChartType.Column&&this.chart._getChartType()!==e.ChartType.Candlestick?this.unload():this.load();for(var p=0;p<u;p++){var d=c[p];if(!d._isCustomAxisY()){var f=d._getBinding(1),g=d._getBinding(2),m=d._getBinding(3),y=d._getLength();if(y){var b=d._getSymbolSize();b>_&&(_=b);for(var v=0;v<y;v++){var x=d._getItem(v);if(x)[f?x[f]:null,g?x[g]:null,m?x[m]:null].forEach(function(t){e._DataInfo.isValid(t)&&null!==t&&((isNaN(s)||t<s)&&(s=t),(isNaN(o)||t>o)&&(o=t))})}}}}var w=a-r,S=this.chart._plotRect;if(S&&S.width&&!this.isVolume){isNaN(b)&&(b=d._getSymbolSize()),b+=2;var P=S.width/(S.width-b)*w;r-=.5*(P-w),w=P}return!(l===t.DataType.Date&&this.isVolume||l===t.DataType.Number)||this.chart._getChartType()!==e.ChartType.Column&&this.chart._getChartType()!==e.ChartType.Candlestick?this.chart._isRotated()?new t.Rect(s,r,o-s,w):new t.Rect(r,s,w,o-s):new t.Rect(r-.5*h,s,a-r+h,o-s)},n.prototype.plotSeries=function(i,n,r,s,a,o,h,l){var c=this,u=t.asType(s,e.SeriesBase),_=this.chart.series.indexOf(s),p=s.getValues(0),d=s.getValues(1),f=this._symWidth,g=this.chart._isRotated();if(p){if(d||(d=this.dataInfo.getXVals()),d){var m=this.dataInfo.getDeltaX();m>0&&!1===this._isPixel&&(f*=m)}var y=p.length,b=!0;d?y=Math.min(y,d.length):(b=!1,d=new Array(y));var v=this._DEFAULT_WIDTH,x=u._getSymbolFill(_),w=u._getAltSymbolFill(_)||"transparent",S=u._getSymbolStroke(_),P=u._getAltSymbolStroke(_)||S,C=void 0===this._isPixel?u._getSymbolSize():f;i.stroke=S,i.strokeWidth=v,i.fill=x;for(var T,M,A=u._getBinding(1),N=u._getBinding(2),L=u._getBinding(3),E=g?r.actualMin:n.actualMin,I=g?r.actualMax:n.actualMax,k=0,D=null,R=null,O=this.getItemFormatter(s),F=0;F<y;F++)if(D=u._getItem(F)){var j=b?d[F]:F;if(e._DataInfo.isValid(j)&&E<=j&&j<=I){var V=p[F],B=A?D[A]:null,X=N?D[N]:null,Y=L?D[L]:null;if(i.startGroup(),this.isEqui&&null!==R?R[L]!==D[L]&&(T=R[L]<D[L]?w:x,M=R[L]<D[L]?P:S):(T=X<Y?w:x,M=X<Y?P:S),i.fill=T,i.stroke=M,i.strokeWidth=v,O){var z=new e.HitTestInfo(this.chart,new t.Point(n.convert(j),r.convert(V)),e.ChartElement.SeriesSymbol);z._setData(u,F),O(i,z,function(){c._drawSymbol(i,n,r,_,F,T,C,j,V,B,X,Y)}),i.cssPriority=!0}else this._drawSymbol(i,n,r,_,F,T,C,j,V,B,X,Y);i.endGroup(),s._setPointIndex(F,k),k++}R=D}}},n.prototype._drawSymbol=function(i,n,r,s,a,o,h,l,c,u,_,p){var d,f=null,g=null,m=null,y=null,b=this.chart._isRotated(),v=b?new e._DataPoint(s,a,c,l):new e._DataPoint(s,a,l,c);if(b){var x=r;r=n,n=x}if(!1===this._isPixel&&(m=n.convert(l-.5*h))>(y=n.convert(l+.5*h))){var w=m;m=y,y=w}l=n.convert(l),!1!==this._isPixel&&(m=l-.5*h,y=l+.5*h),this.isCandle?(e._DataInfo.isValid(_)&&e._DataInfo.isValid(p)&&(_=r.convert(_),p=r.convert(p),g=(f=Math.min(_,p))+Math.abs(_-p),b?(i.drawRect(f,m,g-f||1,y-m||1),d=new e._RectArea(new t.Rect(f,m,g-f||1,y-m||1))):(i.drawRect(m,f,y-m||1,g-f||1),d=new e._RectArea(new t.Rect(m,f,y-m||1,g-f||1))),d.tag=v,this.hitTester.add(d,s)),e._DataInfo.isValid(c)&&(c=r.convert(c),null!==f&&(b?(i.drawLine(g,l,c,l),d.rect.width=d.rect.width+c):(i.drawLine(l,f,l,c),d.rect.top=c,d.rect.height=d.rect.height+c))),e._DataInfo.isValid(u)&&(u=r.convert(u),null!==g&&(b?(i.drawLine(f,l,u,l),d.rect.left=u,d.rect.width=d.rect.width+u):(i.drawLine(l,g,l,u),d.rect.height=d.rect.height+u)))):this.isEqui?e._DataInfo.isValid(c)&&e._DataInfo.isValid(u)&&(c=r.convert(c),u=r.convert(u),g=(f=Math.min(c,u))+Math.abs(c-u),i.drawRect(m,f,y-m||1,g-f||1),(d=new e._RectArea(new t.Rect(m,f,y-m||1,g-f||1))).tag=v,this.hitTester.add(d,s)):this.isArms?(e._DataInfo.isValid(_)&&e._DataInfo.isValid(p)&&(_=r.convert(_),p=r.convert(p),g=(f=Math.min(_,p))+Math.abs(_-p),i.drawRect(m,f,y-m||1,g-f||1)),e._DataInfo.isValid(c)&&null!==f&&(c=r.convert(c),i.drawLine(l,f,l,c)),e._DataInfo.isValid(u)&&null!==g&&(u=r.convert(u),i.drawLine(l,g,l,u)),e._DataInfo.isValid(c)&&e._DataInfo.isValid(u)&&(i.fill="transparent",g=(f=Math.min(c,u))+Math.abs(c-u),i.drawRect(m,f,y-m||1,g-f||1),(d=new e._RectArea(new t.Rect(m,f,y-m||1,g-f||1))).tag=v,this.hitTester.add(d,s))):(e._DataInfo.isValid(c)&&e._DataInfo.isValid(u)&&(c=r.convert(c),u=r.convert(u),g=(f=Math.min(c,u))+Math.abs(c-u),b?(i.drawLine(u,l,c,l),d=new e._RectArea(new t.Rect(f,m,g-f||1,y-m||1))):(i.drawLine(l,u,l,c),d=new e._RectArea(new t.Rect(m,f,y-m||1,g-f||1))),d.tag=v,this.hitTester.add(d,s)),e._DataInfo.isValid(_)&&(_=r.convert(_),b?i.drawLine(_,m,_,l):i.drawLine(m,_,l,_)),e._DataInfo.isValid(p)&&(p=r.convert(p),b?i.drawLine(p,l,p,y):i.drawLine(l,p,y,p)))},n}(e._BasePlotter);e._FinancePlotter=i}(t.chart||(t.chart={}))}(wijmo||(wijmo={})),function(t){!function(e){"use strict";var i,n,r,s=new(function(){function e(){this._moveMarker=function(t){var e=t.currentTarget,i=this._markers,n=e.getAttribute("data-markerIndex");null!=n&&i[n].forEach(function(e){e._moveMarker(t)})},this._markers=[],this._bindMoveMarker=this._moveMarker.bind(this)}return e.prototype.attach=function(e){var i,n,r=e.chart.hostElement,s=this._markers,a=r.getAttribute("data-markerIndex");null!=a?(n=s[a])&&t.isArray(n)?n.push(e):(s[a]=[e],this._bindMoveEvent(r)):(i=s.length,n=[e],s.push(n),r.setAttribute("data-markerIndex",i),this._bindMoveEvent(r))},e.prototype.detach=function(t){var e,i,n=t.chart.hostElement,r=this._markers,s=n.getAttribute("data-markerIndex");null!=s&&((e=(i=r[s]).indexOf(t))>-1&&i.splice(e,1),0===i.length&&((e=r.indexOf(i))>-1&&(r[e]=void 0),this._unbindMoveEvent(n)))},e.prototype._unbindMoveEvent=function(t){var e=this._bindMoveMarker;t.removeEventListener("mousemove",e),"ontouchstart"in window&&t.removeEventListener("touchmove",e)},e.prototype._bindMoveEvent=function(t){var e=this._bindMoveMarker;t.addEventListener("mousemove",e),"ontouchstart"in window&&t.addEventListener("touchmove",e)},e}());!function(t){t[t.None=0]="None",t[t.Vertical=1]="Vertical",t[t.Horizontal=2]="Horizontal",t[t.Both=3]="Both"}(i=e.LineMarkerLines||(e.LineMarkerLines={})),function(t){t[t.None=0]="None",t[t.Move=1]="Move",t[t.Drag=2]="Drag"}(n=e.LineMarkerInteraction||(e.LineMarkerInteraction={})),function(t){t[t.Auto=2]="Auto",t[t.Right=0]="Right",t[t.Left=1]="Left",t[t.Bottom=4]="Bottom",t[t.Top=6]="Top"}(r=e.LineMarkerAlignment||(e.LineMarkerAlignment={}));var a=function(){function a(e,i){this._wrapperMousedown=null,this._wrapperMouseup=null,this.positionChanged=new t.Event;this._chart=e,e._markers.push(this),e.rendered.addHandler(this._initialize,this),this._resetDefaultValue(),t.copy(this,i),this._initialize()}return Object.defineProperty(a.prototype,"chart",{get:function(){return this._chart},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"isVisible",{get:function(){return this._isVisible},set:function(e){e!==this._isVisible&&(this._isVisible=t.asBoolean(e),this._marker&&this._toggleVisibility())},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"seriesIndex",{get:function(){return this._seriesIndex},set:function(e){e!==this._seriesIndex&&(this._seriesIndex=t.asNumber(e,!0))},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"horizontalPosition",{get:function(){return this._horizontalPosition},set:function(e){if(e!==this._horizontalPosition){if(this._horizontalPosition=t.asNumber(e,!0),this._horizontalPosition<0||this._horizontalPosition>1)throw"horizontalPosition's value should be in (0, 1).";this._marker&&this._updateMarkerPosition()}},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"x",{get:function(){var t=this._chart.axisX,e=this.chart.pageToControl(this._targetPoint);return t.convertBack(e.x)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"y",{get:function(){var t=this._chart.axisY,e=this.chart.pageToControl(this._targetPoint);return t.convertBack(e.y)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"content",{get:function(){return this._content},set:function(e){e!==this._content&&(this._content=t.asFunction(e),this._updateMarkerPosition())},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"verticalPosition",{get:function(){return this._verticalPosition},set:function(e){if(e!==this._verticalPosition){if(this._verticalPosition=t.asNumber(e,!0),this._verticalPosition<0||this._verticalPosition>1)throw"verticalPosition's value should be in (0, 1).";this._marker&&this._updateMarkerPosition()}},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"alignment",{get:function(){return this._alignment},set:function(t){t!==this._alignment&&(this._alignment=t,this._marker&&this._updatePositionByAlignment())},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"lines",{get:function(){return this._lines},set:function(e){(e=t.asEnum(e,i))!=this._lines&&(this._lines=e,this._marker&&this._resetLinesVisibility())},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"interaction",{get:function(){return this._interaction},set:function(e){(e=t.asEnum(e,n))!=this._interaction&&(this._marker&&this._detach(),this._interaction=e,this._marker&&this._attach(),this._toggleElesDraggableClass(this._interaction==n.Drag))},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"dragThreshold",{get:function(){return this._dragThreshold},set:function(e){e!=this._dragThreshold&&(this._dragThreshold=t.asNumber(e))},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"dragContent",{get:function(){return this._dragContent},set:function(e){e!==this._dragContent&&(this._dragContent=t.asBoolean(e)),t.toggleClass(this._dragEle,a._CSS_LINE_DRAGGABLE,this._interaction===n.Drag&&this._dragContent&&this._lines!==i.None)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"dragLines",{get:function(){return this._dragLines},set:function(e){e!=this._dragLines&&(this._dragLines=t.asBoolean(e))},enumerable:!0,configurable:!0}),a.prototype.onPositionChanged=function(t){this.positionChanged.raise(this,t)},a.prototype.remove=function(){var t=this._chart;this._marker&&(t.rendered.removeHandler(this._initialize,this),this._detach(),this._removeMarker(),this._wrapperMoveMarker=null,this._wrapperMousedown=null,this._wrapperMouseup=null)},a.prototype._attach=function(){var e=this._chart.hostElement;this._interaction!==n.None?t.addClass(e,a._CSS_TOUCH_DISABLED):t.removeClass(e,a._CSS_TOUCH_DISABLED),s.attach(this),this._attachDrag()},a.prototype._attachDrag=function(){this._interaction===n.Drag&&(this._wrapperMousedown||(this._wrapperMousedown=this._onMousedown.bind(this)),this._wrapperMouseup||(this._wrapperMouseup=this._onMouseup.bind(this)),this._toggleDragEventAttach(!0))},a.prototype._detach=function(){t.removeClass(this._chart.hostElement,a._CSS_TOUCH_DISABLED),s.detach(this),this._detachDrag()},a.prototype._detachDrag=function(){this._interaction===n.Drag&&this._toggleDragEventAttach(!1)},a.prototype._toggleDragEventAttach=function(t){var e=this._chart.hostElement,i=t?"addEventListener":"removeEventListener";e[i]("mousedown",this._wrapperMousedown),document[i]("mouseup",this._wrapperMouseup),"ontouchstart"in window&&e[i]("touchstart",this._wrapperMousedown),"ontouchend"in window&&document[i]("touchend",this._wrapperMouseup)},a.prototype._onMousedown=function(e){var i,r,s,o,h,l=this._getEventPoint(e);this._interaction===n.Drag&&(o=!(0===(i=t.getElementRect(this._hLine)).width||0===i.height),h=!(0===(r=t.getElementRect(this._vLine)).width||0===r.height),s=t.getElementRect(this._markerContent),this._dragContent&&this._pointInRect(l,s)?(this._capturedEle=this._markerContent,this._contentDragStartPoint=new t.Point(l.x,l.y),this._mouseDownCrossPoint=new t.Point(this._targetPoint.x,this._targetPoint.y)):o&&(Math.abs(i.top-l.y)<=this._dragThreshold||Math.abs(l.y-i.top-i.height)<=this._dragThreshold||l.y>=i.top&&l.y<=i.top+i.height)?(this._capturedEle=this._hLine,this._contentDragStartPoint=void 0,t.addClass(this._chart.hostElement,a._CSS_LINE_DRAGGABLE)):h&&(Math.abs(r.left-l.x)<=this._dragThreshold||Math.abs(l.x-r.left-r.width)<=this._dragThreshold||l.x>=r.left&&l.x<=r.left+r.width)&&(this._capturedEle=this._vLine,this._contentDragStartPoint=void 0,t.addClass(this._chart.hostElement,a._CSS_LINE_DRAGGABLE)),e.preventDefault())},a.prototype._onMouseup=function(e){var n=this._alignment===r.Auto&&this._capturedEle===this._markerContent&&this._lines!==i.None;this._capturedEle=void 0,this._contentDragStartPoint=void 0,this._mouseDownCrossPoint=void 0,n&&(this._updatePositionByAlignment(),this._updatePositionByAlignment()),t.removeClass(this._chart.hostElement,a._CSS_LINE_DRAGGABLE)},a.prototype._moveMarker=function(r){var s,a,o,h,l,c,u=this._chart,_=this._getEventPoint(r),p=this._plotRect,d=this._interaction===n.Drag,f=this._lines===i.Horizontal,g=this._lines===i.Vertical,m=this._seriesIndex,y=t.getElementRect(u.hostElement);if(p&&this._isVisible&&this._interaction!==n.None&&(this._interaction!==n.Drag||this._capturedEle&&this._lines!==i.None)){if(d&&(this._contentDragStartPoint?(_.x=f?this._targetPoint.x:this._mouseDownCrossPoint.x+_.x-this._contentDragStartPoint.x,_.y=g?this._targetPoint.y:this._mouseDownCrossPoint.y+_.y-this._contentDragStartPoint.y):f||!this._dragLines&&this._capturedEle===this._hLine?_.x=this._targetPoint.x:(g||!this._dragLines&&this._capturedEle===this._vLine)&&(_.y=this._targetPoint.y)),d&&this._lines===i.Horizontal||!this._dragLines&&this._capturedEle===this._hLine){if(_.y<=p.top||_.y>=p.top+p.height)return}else if(d&&this._lines===i.Vertical||!this._dragLines&&this._capturedEle===this._vLine){if(_.x<=p.left||_.x>=p.left+p.width)return}else if(_.x<=p.left||_.y<=p.top||_.x>=p.left+p.width||_.y>=p.top+p.height)return;if(null!=m&&m>=0&&m<u.series.length){if(null==(a=(s=u.series[m]).hitTest(new t.Point(_.x,NaN)))||null==a.x||null==a.y)return;o=s.axisX||u.axisX,h=s._getAxisY(),l=t.isDate(a.x)?e.FlexChartCore._toOADate(a.x):a.x,l=t.isString(l)?a.pointIndex:l,c=t.isDate(a.y)?e.FlexChartCore._toOADate(a.y):a.y;var b=this._getElementPaddingValuee(u.hostElement,"padding-left"),v=this._getElementPaddingValuee(u.hostElement,"padding-top");_.x=o.convert(l)+b+y.left,this.chart._stacking!=e.Stacking.None&&(c=this._calcStackedValue(m,l,c)),_.y=h.convert(c)+v+y.top}this._updateMarkerPosition(_),r.preventDefault()}},a.prototype._calcStackedValue=function(t,i,n){for(var r=n,s=this.chart._stacking==e.Stacking.Stacked100pc,a=0;a<t;a++){var o=this.chart.series[a],h=o.getValues(1),l=o.getValues(0);if(l)for(var c=0;c<l.length;c++){if(i===(h?h[c]:c)){isFinite(l[c])&&(s||this._sign(n)==this._sign(l[c]))&&(r+=l[c]);break}}}return s&&r&&(r/=this.chart._dataInfo.getStackedAbsSum(i))>1&&(r=1),r},a.prototype._sign=function(t){return t>0?1:t<0?-1:0},a.prototype._getElementPaddingValuee=function(t,e){return+window.getComputedStyle(t,null).getPropertyValue(e).replace("px","")},a.prototype._show=function(t){(t||this._marker).style.display="block"},a.prototype._hide=function(t){(t||this._marker).style.display="none"},a.prototype._toggleVisibility=function(){this._isVisible?this._show():this._hide()},a.prototype._resetDefaultValue=function(){this._isVisible=!0,this._alignment=r.Auto,this._lines=i.None,this._interaction=n.None,this._horizontalPosition=null,this._verticalPosition=null,this._content=null,this._seriesIndex=null,this._dragThreshold=15,this._dragContent=!1,this._dragLines=!1,this._targetPoint=new t.Point},a.prototype._initialize=function(){var i,n=this._chart.hostElement.querySelector("."+e.FlexChartCore._CSS_PLOT_AREA);this._plot=n,this._marker||this._createMarker(),n&&(this._plotRect=t.getElementRect(n),i=n.getBBox(),this._plotRect.width=i.width,this._plotRect.height=i.height,this._updateMarkerSize(),this._updateLinesSize()),this._updateMarkerPosition(),this._wrapperMoveMarker=this._moveMarker.bind(this),this._attach()},a.prototype._createMarker=function(){var e,i;e=document.createElement("div"),t.addClass(e,a._CSS_MARKER),(i=this._getContainer()).appendChild(e),this._markerContainer=i,this._marker=e,this._createChildren()},a.prototype._removeMarker=function(){var t=this._markerContainer;t.removeChild(this._marker),this._content=null,this._hLine=null,this._vLine=null,t.hasChildNodes()||(this._chart.hostElement.removeChild(this._markerContainer),this._markerContainer=null),this._marker=null},a.prototype._getContainer=function(){var t=this._chart.hostElement.querySelector(a._CSS_MARKER_CONTAINER);return t||(t=this._createContainer()),t},a.prototype._createContainer=function(){var e=document.createElement("div"),i=this._chart.hostElement;return t.addClass(e,a._CSS_MARKER_CONTAINER),i.insertBefore(e,i.firstChild),e},a.prototype._createChildren=function(){var e,i,r,s,o=this._marker;(s=document.createElement("div")).style.position="absolute",s.style.height="100%",s.style.width="100%",o.appendChild(s),this._dragEle=s,e=document.createElement("div"),t.addClass(e,a._CSS_MARKER_CONTENT),o.appendChild(e),this._markerContent=e,i=document.createElement("div"),t.addClass(i,a._CSS_MARKER_HLINE),o.appendChild(i),this._hLine=i,r=document.createElement("div"),t.addClass(r,a._CSS_MARKER_VLINE),o.appendChild(r),this._vLine=r,this._toggleElesDraggableClass(this._interaction===n.Drag),this._resetLinesVisibility()},a.prototype._toggleElesDraggableClass=function(e){t.toggleClass(this._hLine,a._CSS_LINE_DRAGGABLE,e),t.toggleClass(this._vLine,a._CSS_LINE_DRAGGABLE,e),t.toggleClass(this._dragEle,a._CSS_LINE_DRAGGABLE,e&&this._dragContent&&this._lines!==i.None)},a.prototype._updateMarkerSize=function(){var e=this._plotRect,i=this._chart.hostElement,n=window.getComputedStyle(i,null),r=t.getElementRect(i);this._marker&&(this._marker.style.marginTop=e.top-r.top-(parseFloat(n.getPropertyValue("padding-top"))||0)+"px",this._marker.style.marginLeft=e.left-r.left-(parseFloat(n.getPropertyValue("padding-left"))||0)+"px")},a.prototype._updateLinesSize=function(){var t=this._plotRect;this._hLine&&this._vLine&&(this._hLine.style.width=t.width+"px",this._vLine.style.height=t.height+"px")},a.prototype._resetLinesVisibility=function(){this._hLine&&this._vLine&&(this._hide(this._hLine),this._hide(this._vLine),this._lines!==i.Horizontal&&this._lines!==i.Both||this._show(this._hLine),this._lines!==i.Vertical&&this._lines!==i.Both||this._show(this._vLine))},a.prototype._updateMarkerPosition=function(t){var e,i,r=this._plotRect,s=this._targetPoint,a=!1;this._interaction,n.Drag;this._plot&&(e=r.left+r.width*(this._horizontalPosition||0),i=r.top+r.height*(this._verticalPosition||0),null==this._horizontalPosition&&t&&(e=t.x),null==this._verticalPosition&&t&&(i=t.y),e===s.x&&i===s.y||(a=!0),s.x=e,s.y=i,this._toggleVisibility(),this._content&&this._updateContent(),a&&this._raisePositionChanged(e,i),this._updatePositionByAlignment(!!t))},a.prototype._updateContent=function(){var t,e=this._chart,i=this._targetPoint,n=e.hitTest(i);t=this._content.call(null,n,i),this._markerContent.innerHTML=t||""},a.prototype._raisePositionChanged=function(e,i){this._plotRect;this.onPositionChanged(new t.Point(e,i))},a.prototype._updatePositionByAlignment=function(t){var e=this._alignment,i=this._targetPoint,s=this._marker,a=0,o=0,h=s.clientWidth,l=s.clientHeight,c=this._plotRect;this._plot&&(!this._capturedEle||this._capturedEle&&this._capturedEle!==this._markerContent?(e===r.Auto?(i.x+h+12>c.left+c.width&&i.x-h>=0&&(o=h),a=l,i.y-l<c.top&&(a=0)):(1==(1&e)&&(o=h),2==(2&e)&&(a=l)),this._interaction===n.Move&&0===a&&0===o&&null==this.verticalPosition&&(o=-12)):(parseInt(this._hLine.style.top)>0&&(a=l),parseInt(this._vLine.style.left)>0&&(o=h)),s.style.left=i.x-o-c.left+"px",s.style.top=i.y-a-c.top+"px",this._hLine.style.top=a+"px",this._hLine.style.left=c.left-i.x+o+"px",this._vLine.style.top=c.top-i.y+a+"px",this._vLine.style.left=o+"px")},a.prototype._getEventPoint=function(e){return e instanceof MouseEvent?new t.Point(e.pageX,e.pageY):new t.Point(e.changedTouches[0].pageX,e.changedTouches[0].pageY)},a.prototype._pointInRect=function(t,e){return!(!t||!e)&&(t.x>=e.left&&t.x<=e.left+e.width&&t.y>=e.top&&t.y<=e.top+e.height)},a._CSS_MARKER="wj-chart-linemarker",a._CSS_MARKER_HLINE="wj-chart-linemarker-hline",a._CSS_MARKER_VLINE="wj-chart-linemarker-vline",a._CSS_MARKER_CONTENT="wj-chart-linemarker-content",a._CSS_MARKER_CONTAINER="wj-chart-linemarker-container",a._CSS_LINE_DRAGGABLE="wj-chart-linemarker-draggable",a._CSS_TOUCH_DISABLED="wj-flexchart-touch-disabled",a}();e.LineMarker=a}(t.chart||(t.chart={}))}(wijmo||(wijmo={})),function(t){!function(e){"use strict";var i=function(i){function n(){var t=i.call(this)||this;return t.hasSymbols=!1,t.hasLines=!0,t.isSpline=!1,t.isStep=!1,t.stacking=e.Stacking.None,t.stackPos={},t.stackNeg={},t.clipping=!1,t}return __extends(n,i),n.prototype.clear=function(){i.prototype.clear.call(this),this.stackNeg={},this.stackPos={}},n.prototype.adjustLimits=function(e,i){this.dataInfo=e;var n=e.getMinX(),r=e.getMinY(),s=e.getMaxX(),a=e.getMaxY();if(this.isSpline&&!this.chart.axisY._getLogBase()){var o=.1*(a-r);r-=o,a+=o}return this.rotated?new t.Rect(r,n,a-r,s-n):new t.Rect(n,r,s-n,a-r)},n.prototype.plotSeries=function(i,n,r,s,a,o,h,l){var c=[],u=t.asType(s,e.SeriesBase),_=this.chart.series.indexOf(s),p=s.getValues(0),d=s.getValues(1);if(p){d||(d=this.dataInfo.getXVals());var f=e._BasePlotter.cloneStyle(s.style,["fill"]),g=p.length,m=!0;d?g=Math.min(g,d.length):(m=!1,d=new Array(g));var y=this._DEFAULT_WIDTH,b=u._getSymbolFill(_),v=u._getAltSymbolFill(_)||b,x=u._getSymbolStroke(_),w=u._getAltSymbolStroke(_)||x,S=u._getSymbolSize();i.stroke=x,i.strokeWidth=y,i.fill=b;var P=new Float64Array(g),C=new Float64Array(g),T=0,M=new Int8Array(g),A=0,N=this.rotated,L=this.stacking!=e.Stacking.None&&!u._isCustomAxisY(),E=this.stacking==e.Stacking.Stacked100pc&&!u._isCustomAxisY();void 0!==u._getChartType()&&(L=E=!1);for(var I=u.interpolateNulls,k=!1,D=this.getItemFormatter(s),R=0;R<g;R++){var O=m?d[R]:R,F=p[R];if(isFinite(O)&&isFinite(F)){if(L){if(E)F/=this.dataInfo.getStackedAbsSum(O);if(F>=0){var j=isNaN(this.stackPos[O])?0:this.stackPos[O];F=this.stackPos[O]=j+F}else{j=isNaN(this.stackNeg[O])?0:this.stackNeg[O];F=this.stackNeg[O]=j+F}}var V;if(N){V=new e._DataPoint(_,R,F,O);var B=n.convert(F);F=r.convert(O),O=B}else V=new e._DataPoint(_,R,O,F),O=n.convert(O),F=r.convert(F);if(isNaN(O)||isNaN(F))k=!0,!0!==I&&(P[T]=NaN,C[T++]=NaN),M[A++]=1,l&&c.push(null);else{P[T]=O,C[T++]=F,A++,l&&c.push(new t.Point(O,F));var X=new e._CircleArea(new t.Point(O,F),.5*S);X.tag=V,this.hitTester.add(X,_)}}else k=!0,!0!==I&&(P[T]=NaN,C[T++]=NaN),M[A++]=1,l&&c.push(null)}var Y=0;if(this.hasLines)if(i.fill=null,k&&!0!==I){var z=[],G=[];for(R=0;R<g;R++)isNaN(P[R])?(z.length>1&&(this._drawLines(i,z,G,null,f,this.chart._plotrectId),this.hitTester.add(new e._LinesArea(z,G),_),Y++),z=[],G=[]):(z.push(P[R]),G.push(C[R]));z.length>1&&(this._drawLines(i,z,G,null,f,this.chart._plotrectId),this.hitTester.add(new e._LinesArea(z,G),_),Y++)}else this._drawLines(i,P,C,null,f,this.chart._plotrectId,T),this.hitTester.add(new e._LinesArea(P,C),_),Y++;if(this.hasSymbols&&S>0||D){i.fill=b;var H=0;for(R=0;R<g;R++)if(!I||!M[R]){O=P[H],F=C[H];(!1===this.hasLines||D)&&(i.fill=p[R]>0?b:v,i.stroke=p[R]>0?x:w,i.strokeWidth=y),this.isValid(O,F,n,r)&&(this._drawSymbol(i,O,F,S,u,R,D),s._setPointIndex(R,Y),Y++),H++}}l&&c&&c.length&&l(c)}},n.prototype._drawLines=function(t,e,i,n,r,s,a){if(this.isSpline&&a>3)t.drawSplines(e,i,n,r,s,a);else if(this.isStep){var o=this._createSteps(e,i,a);e=o.x,i=o.y,t.drawLines(e,i,n,r,s)}else t.drawLines(e,i,n,r,s,a)},n.prototype._drawSymbol=function(i,n,r,s,a,o,h){var l=this;if(h){i.startGroup();var c=new e.HitTestInfo(this.chart,new t.Point(n,r),e.ChartElement.SeriesSymbol);c._setData(a,o),h(i,c,function(){l.hasSymbols&&s>0&&l._drawDefaultSymbol(i,n,r,s,a.symbolMarker,a.symbolStyle)}),i.cssPriority=!0,i.endGroup()}else this._drawDefaultSymbol(i,n,r,s,a.symbolMarker,a.symbolStyle)},n.prototype._drawDefaultSymbol=function(t,i,n,r,s,a){s==e.Marker.Dot?t.drawEllipse(i,n,.5*r,.5*r,null,a):s==e.Marker.Box&&t.drawRect(i-.5*r,n-.5*r,r,r,null,a)},n}(e._BasePlotter);e._LinePlotter=i}(t.chart||(t.chart={}))}(wijmo||(wijmo={})),function(t){!function(e){"use strict";var i=function(i){function n(){var t=i.call(this)||this;return t._MIN_SIZE=5,t._MAX_SIZE=30,t.hasLines=!1,t.hasSymbols=!0,t.clipping=!0,t}return __extends(n,i),n.prototype.adjustLimits=function(t,n){var r=this.getNumOption("minSize","bubble");this._minSize=r||this._MIN_SIZE;var s=this.getNumOption("maxSize","bubble");this._maxSize=s||this._MAX_SIZE;for(var a=this.chart.series,o=a.length,h=NaN,l=NaN,c=0;c<o;c++){if((y=a[c])._getChartType()==e.ChartType.Bubble||null==y._getChartType()&&y._chart._getChartType()==e.ChartType.Bubble)if(b=y._getBindingValues(1))for(var u=b.length,_=0;_<u;_++)isFinite(b[_])&&((isNaN(h)||b[_]<h)&&(h=b[_]),(isNaN(l)||b[_]>l)&&(l=b[_]))}this._minValue=h,this._maxValue=l;var p=i.prototype.adjustLimits.call(this,t,n),d=n.left,f=n.right,g=n.top,m=n.bottom;for(c=0;c<o;c++){var y;if((y=a[c])._getChartType()==e.ChartType.Bubble||null==y._getChartType()&&y._chart._getChartType()==e.ChartType.Bubble){var b=y._getBindingValues(1),v=y.getValues(1),x=y.getValues(0);if(b&&v&&x){var w=b.length;for(_=0;_<w;_++){var S=v?v[_]:_,P=x[_],C=b[_];e._DataInfo.isValid(S,P,C)&&(S=n.left+n.width*(S-p.left)/p.width,P=n.top+n.height*(P-p.top)/p.height,S-(C=this._minSize+(this._maxSize-this._minSize)*(C-h)/(l-h))<d&&(d=S-C),S+C>f&&(f=S+C),P-C<g&&(g=P-C),P+C>m&&(m=P+C))}}}}d=n.left-d+5,f=f-n.right+5,g=n.top-g+5,m=m-n.bottom+5;var T=this.chart.axisX,M=this.chart.axisY;if(!T._isLogAxis())if(this.stacking==e.Stacking.Stacked100pc&&this.rotated){var A=(n.width-this._maxSize)/p.width;p.left-=.5*this._maxSize/A,p.width+=this._maxSize/A}else{A=(n.width-(d+f))/p.width;p.left-=d/A,p.width+=(d+f)/A}if(!M._isLogAxis())if(this.stacking!=e.Stacking.Stacked100pc||this.rotated){N=(n.height-(g+m))/p.height;p.top-=g/N,p.height+=(g+m)/N}else{var N=(n.height-this._maxSize)/p.height;p.top-=.5*this._maxSize/N,p.height+=this._maxSize/N}return p},n.prototype._drawSymbol=function(i,n,r,s,a,o,h){var l=this;if(null==this._minSize){var c=this.getNumOption("minSize","bubble");this._minSize=c||this._MIN_SIZE}if(null==this._maxSize){var u=this.getNumOption("maxSize","bubble");this._maxSize=u||this._MAX_SIZE}var _=a._getItem(o);if(_){var p=a._getBinding(1);if(p){s=_[p];if(isFinite(s)){null==s&&(s=this._minValue);var d=this._minValue==this._maxValue?1:Math.sqrt((s-this._minValue)/(this._maxValue-this._minValue));if(s=this._minSize+(this._maxSize-this._minSize)*d,h){var f=new e.HitTestInfo(this.chart,new t.Point(n,r),e.ChartElement.SeriesSymbol);f._setData(a,o),i.startGroup(),h(i,f,function(){l._drawDefaultSymbol(i,n,r,s,a.symbolMarker,a.symbolStyle)}),i.endGroup()}else this._drawDefaultSymbol(i,n,r,s,a.symbolMarker,a.symbolStyle);var g=this.hitTester._map[this.chart.series.indexOf(a)];if(null!=g)for(var m=g.length-1;m>=0;m--){var y=g[m];if(y.tag&&y.tag.pointIndex==o){var b=t.tryCast(y,e._CircleArea);b&&b.setRadius(.5*s)}}}}}},n}(e._LinePlotter);e._BubblePlotter=i}(t.chart||(t.chart={}))}(wijmo||(wijmo={})),function(t){t.chart||(t.chart={}),t._registerModule("wijmo.chart",t.chart)}(wijmo||(wijmo={}));
var wijmo,__extends=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}();!function(t){var e;(function(e){"use strict";var i=function(e){function i(i){var n=e.call(this)||this;return n._startLabel="Start",n._relativeData=!0,n._connectorLines=!1,n._showTotal=!1,n._totalLabel="Total",n._getXValues=!1,n._showIntermediateTotal=!1,n._intermediateTotalPos=[],n._chartType=t.chart.ChartType.Bar,n.tooltipContent="<b>{seriesName}</b><br/>{x} {value}",n.rendering.addHandler(n._rendering,n),n.initialize(i),n}return __extends(i,e),Object.defineProperty(i.prototype,"relativeData",{get:function(){return this._relativeData},set:function(e){e!=this._relativeData&&(this._relativeData=t.asBoolean(e,!0),this._invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"start",{get:function(){return this._start},set:function(e){e!=this._start&&(this._start=t.asNumber(e,!0),this._invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"startLabel",{get:function(){return this._startLabel},set:function(e){e!=this._startLabel&&(this._startLabel=t.asString(e,!1),this._invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"showTotal",{get:function(){return this._showTotal},set:function(e){e!=this._showTotal&&(this._showTotal=t.asBoolean(e,!0),this._invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"totalLabel",{get:function(){return this._totalLabel},set:function(e){e!=this._totalLabel&&(this._totalLabel=t.asString(e,!1),this._invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"showIntermediateTotal",{get:function(){return this._showIntermediateTotal},set:function(e){e!=this._showIntermediateTotal&&(this._showIntermediateTotal=t.asBoolean(e,!1),this._invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"intermediateTotalPositions",{get:function(){return this._intermediateTotalPositions},set:function(e){e!=this._intermediateTotalPositions&&(this._intermediateTotalPositions=t.asArray(e,!0),this._invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"intermediateTotalLabels",{get:function(){return this._intermediateTotalLabels},set:function(e){e!=this._intermediateTotalLabels&&(t.assert(null==e||t.isArray(e)||t.isString(e),"Array or string expected."),this._intermediateTotalLabels=e,this._invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"connectorLines",{get:function(){return this._connectorLines},set:function(e){e!=this._connectorLines&&(this._connectorLines=t.asBoolean(e,!0),this._invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"styles",{get:function(){return this._styles},set:function(t){t!=this._styles&&(this._styles=t,this._invalidate())},enumerable:!0,configurable:!0}),i.prototype.getValues=function(i){var n,r,a,s,o=this,l=[],u=0;if(n=e.prototype.getValues.call(this,i),0===i){if(!this._yValues){l=[];var h=null!=this.start?this.start:0,c=0,f=n&&n.length||0;if(this.relativeData){for(;c<f;c++)h+=isNaN(n[c])?0:n[c],l.push(h);this._yValues=l}else{for(;c<f;c++)h=isNaN(n[c])?0:n[c],l.push(h);this._yValues=l}(r=this._yValues)&&r.length>0&&(this.showIntermediateTotal&&this.intermediateTotalPositions&&this.intermediateTotalPositions.length>0&&(this._intermediateTotalPos=r.slice(),this.intermediateTotalPositions.reduceRight(function(t,e){var i=0===e?r[0]:r[e-1];return r.length>e?(r.splice(e,0,i),o._intermediateTotalPos.splice(e,0,!0)):r.length===e&&(r.push(i),o._intermediateTotalPos.push(!0)),0},0)),null!=this.start&&(r.splice(0,0,this.start),this._intermediateTotalPos.splice(0,0,!1)),this.showTotal&&r&&r.push(r[r.length-1]))}return this._yValues}if(!this._xValues&&this._getXValues&&(this._xValues=n&&n.slice(),this._getXValues=!1,this._xValues&&this._xValues.length>1&&(f=this._xValues.length,s=this._xValues[f-1],u=Math.abs(this._xValues[f-1]-this._xValues[f-2])),this.chart&&this.chart._xlabels&&this.chart._xlabels.length)){if(a=this.chart._xlabels,this.showIntermediateTotal&&this.intermediateTotalPositions&&this.intermediateTotalPositions.length>0){var _=this.intermediateTotalLabels;_&&this.intermediateTotalPositions.reduceRight(function(e,i,n){var r="";return r=t.isString(_)?_:_[n]||"",a.length>i?a.splice(i,0,r):a.length===i&&a.push(r),u&&(s+=u,o._xValues.push(s)),0},0)}null!=this.start&&(a.splice(0,0,this.startLabel),u&&(s+=u,this._xValues.push(s))),this.showTotal&&(a.push(this.totalLabel),u&&(s+=u,this._xValues.push(s)))}return this._xValues},i.prototype.legendItemLength=function(){return this.showTotal?3:2},i.prototype.measureLegendItem=function(e,i){var n=this._getName(i);return n?this._measureLegendItem(e,n):new t.Size(0,0)},i.prototype.drawLegendItem=function(e,i,n){var r=this._getLegendStyles(n);this._getName(n)&&this._drawLegendItem(e,i,t.chart.ChartType.Bar,this._getName(n),r,this.symbolStyle)},i.prototype._clearValues=function(){e.prototype._clearValues.call(this),this._xValues=null,this._yValues=null,this._wfstyle=null,this._getXValues=!0,this._intermediateTotalPos=[],this.chart&&this.chart._performBind()},i.prototype._invalidate=function(){e.prototype._invalidate.call(this),this._clearValues()},i.prototype._getXOffset=function(){return null!=this.start?1:0},i.prototype._getYOffset=function(t){return this.getValues(0)[t+this._getXOffset()]},i.prototype._getValue=function(t){var e=t;if(null!=this.start){if(0==t)return this.start;t--}return this.showIntermediateTotal&&this.intermediateTotalPositions&&this._intermediateTotalPos[e],this.getValues(0)[e]},i.prototype._getItem=function(t){var i=null;if(null!=this.start&&(0==t?(i={})[this.binding]=this.start:t--),this.showIntermediateTotal&&this.intermediateTotalPositions){var n=this._intermediateTotalPos;if(!0===n[t])return(i={})[this.binding]=this.getValues(0)[t],i;for(var r=t,a=0;a<t;a++)!0===n[a]&&r--;t=r}return i||!(i=e.prototype._getItem.call(this,t))&&this.showTotal&&this._yValues&&this._yValues.length>0&&((i={})[this.binding]=this._yValues[this._yValues.length-1]),i},i.prototype._rendering=function(t,e){var n=this;e.cancel=!0,this._wfstyle=null;var r,a,s,o,l,u,h=this.chart,c=this._getAxisY(),f=this._getAxisX(),_=c.origin||0,p=e.engine;if(this._barPlotter=h._getPlotter(this),s=this._barPlotter.rotated,this._barPlotter._getSymbolOrigin||(this._barPlotter._getSymbolOrigin=function(t,e,i){return 0===e?t:!0===n._intermediateTotalPos[e]?t:e===i-1&&n.showTotal?t:n._yValues[e-1]}),this._barPlotter._getSymbolStyles||(this._barPlotter._getSymbolStyles=function(t,e){var i=n._getStyles();return 0===t&&null!=n.start?i.start:!0===n._intermediateTotalPos[t]?i.intermediateTotal:t===e-1&&n.showTotal?i.total:0==t?n._yValues[t]<0?i.falling:i.rising:n._yValues[t]<n._yValues[t-1]?i.falling:i.rising}),this._barPlotter.plotSeries(p,f,c,t,h,0,1),this.connectorLines&&(o=this._barPlotter.hitTester._map[0])&&o.length){for(p.startGroup(i.CSS_CONNECTOR_LINE_GROUP),u=this._yValues[0]<_,l=o[0].rect,r=1,a=o.length;r<a;r++)!0===this._intermediateTotalPos[r]&&r!==a-1||(this._drawConnectorLine(p,s,l,o[r].rect,u),l=o[r].rect,u=this._yValues[r]<this._yValues[r-1]);p.endGroup()}},i.prototype._getStyles=function(){if(this._wfstyle)return this._wfstyle;var t=this._chart.series.indexOf(this),e=this._getSymbolFill(t),i=this._getSymbolStroke(t),n=this.styles||{};return this._wfstyle={start:this._getStyleByKey(n,"start",e,i),intermediateTotal:this._getStyleByKey(n,"intermediateTotal",e,i),total:this._getStyleByKey(n,"total",e,i),falling:this._getStyleByKey(n,"falling","red","red"),rising:this._getStyleByKey(n,"rising","green","green")},this._wfstyle},i.prototype._getStyleByKey=function(t,e,i,n){return{fill:t[e]&&t[e].fill?t[e].fill:i,stroke:t[e]&&t[e].stroke?t[e].stroke:n}},i.prototype._drawConnectorLine=function(e,n,r,a,s){var o=new t.Point,l=new t.Point,u=this.chart.axisY.reversed,h=this.chart.axisX.reversed;u^=s,n?(u?(o.x=r.left,l.x=r.left):(o.x=r.left+r.width,l.x=r.left+r.width),h?(o.y=r.top,l.y=a.top+a.height):(o.y=r.top+r.height,l.y=a.top)):(u?(o.y=r.top+r.height,l.y=r.top+r.height):(o.y=r.top,l.y=r.top),h?(o.x=r.left+r.width,l.x=a.left):(o.x=r.left,l.x=a.left+a.width)),e.drawLine(o.x,o.y,l.x,l.y,i.CSS_CONNECTOR_LINE,this.styles&&this.styles.connectorLines||{stroke:"black"})},i.prototype._getLegendStyles=function(t){if(t<0||null===this.styles)return null;var e=this._getStyles();return 0===t?e.rising:1===t?e.falling:e.total},i.prototype._getName=function(t){var e=void 0;if(this.name)if(this.name.indexOf(",")){var i=this.name.split(",");i&&i.length-1>=t&&(e=i[t].trim())}else e=this.name;return e},i.CSS_CONNECTOR_LINE_GROUP="water-fall-connector-lines",i.CSS_CONNECTOR_LINE="water-fall-connector-line",i.CSS_ENDLABEL="water-fall-end-label",i}(t.chart.SeriesBase);e.Waterfall=i})((e=t.chart||(t.chart={})).analytics||(e.analytics={}))}(wijmo||(wijmo={})),function(t){!function(e){!function(e){"use strict";var i=function(e){function i(i){var n=e.call(this)||this;return n._chartType=t.chart.ChartType.Line,n._sampleCount=100,n.initialize(i),n}return __extends(i,e),Object.defineProperty(i.prototype,"sampleCount",{get:function(){return this._sampleCount},set:function(e){(e=t.asNumber(e,!1,!0))!=this._sampleCount&&(this._sampleCount=e,this._invalidate())},enumerable:!0,configurable:!0}),i.prototype.approximate=function(t){return 0},i.prototype.getValues=function(t){var i=this.binding,n=this.bindingX;return i!==this._bind&&(this._bind=i,this.binding=i),n!==this._bindX&&(this._bindX=n,this.bindingX=n),null==this._originYValues&&(this._originYValues=e.prototype.getValues.call(this,0)),null==this._originXValues&&(this._originXValues=e.prototype.getValues.call(this,1)),null==this._originXValues||null==this._originYValues?null:(e.prototype.getValues.call(this,t),null!=this._xValues&&null!=this._yValues||this._calculateValues(),0===t?this._yValues||null:1===t?this._xValues||null:void 0)},i.prototype._calculateValues=function(){},i.prototype._invalidate=function(){e.prototype._invalidate.call(this),this._clearCalculatedValues()},i.prototype._clearValues=function(){e.prototype._clearValues.call(this),this._originXValues=null,this._originYValues=null,this._clearCalculatedValues()},i.prototype._clearCalculatedValues=function(){this._xValues=null,this._yValues=null},i}(t.chart.SeriesBase);e.TrendLineBase=i}(e.analytics||(e.analytics={}))}(t.chart||(t.chart={}))}(wijmo||(wijmo={})),function(t){!function(e){!function(e){"use strict";var i;!function(t){t[t.Simple=0]="Simple",t[t.Weighted=1]="Weighted",t[t.Exponential=2]="Exponential",t[t.Triangular=3]="Triangular"}(i=e.MovingAverageType||(e.MovingAverageType={}));var n=function(e){function n(n){var r=e.call(this)||this;return r._chartType=t.chart.ChartType.Line,r._type=i.Simple,r._period=2,r.initialize(n),r}return __extends(n,e),Object.defineProperty(n.prototype,"type",{get:function(){return this._type},set:function(e){(e=t.asEnum(e,i,!1))!=this._type&&(this._type=e,this._invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"period",{get:function(){return this._period},set:function(e){(e=t.asNumber(e,!1,!0))!=this._period&&(this._period=t.asNumber(e,!1,!0),this._invalidate())},enumerable:!0,configurable:!0}),n.prototype._checkPeriod=function(){var e=this.period,i=this._originXValues;e<=1&&t.assert(!1,"period must be greater than 1."),i&&i.length&&e>=i.length&&t.assert(!1,"period must be less than itemSource's length.")},n.prototype._calculateValues=function(){this._type;var t="_calculate"+i[this._type],e=[],n=[];this._checkPeriod(),this[t]&&this[t].call(this,e,n),this._yValues=n,this._xValues=e},n.prototype._calculateSimple=function(t,e,i){void 0===i&&(i=!1);for(var n=this._originXValues,r=this._originYValues,a=n.length,s=this._period,o=0,l=0;l<a;l++)o+=r[l]||0,l>=s&&(o-=r[l-s]||0),l>=s-1?(t.push(n[l]),e.push(o/s)):i&&(t.push(n[l]),e.push(o/(l+1)))},n.prototype._calculateWeighted=function(t,e){for(var i=this._originXValues,n=this._originYValues,r=i.length,a=this._period,s=a*(a+1)/2,o=0,l=0,u=0;u<r;u++)u>0&&(o+=n[u-1]||0),u>a&&(o-=n[u-a-1]||0),u<a-1?l+=(n[u]||0)*(u+1):(l+=(n[u]||0)*a,u>a-1&&(l-=o),t.push(i[u]),e.push(l/s))},n.prototype._calculateExponential=function(t,e){for(var i=this._originXValues,n=this._originYValues,r=i.length,a=this._period,s=0,o=0;o<r;o++)o<=a-2?(s+=n[o]||0,o===a-2&&(s/=a-1)):(s+=2/(a+1)*((n[o]||0)-s),t.push(i[o]),e.push(s))},n.prototype._calculateTriangular=function(t,e){var i=this._period,n=[],r=[],a=0;this._calculateSimple(n,r,!0);for(var s=0,o=n.length;s<o;s++)a+=r[s]||0,s>=i&&(a-=r[s-i]||0),s>=i-1&&(t.push(n[s]),e.push(a/i))},n}(e.TrendLineBase);e.MovingAverage=n}(e.analytics||(e.analytics={}))}(t.chart||(t.chart={}))}(wijmo||(wijmo={})),function(t){!function(e){!function(e){"use strict";var i,n=function(){function e(){}return e.round=function(t,e){if(!t)return 0;var i=Math.pow(10,e||2);return Math.round(t*i)/i},e.avg=function(t){return e.sum(t)/t.length},e.sum=function(e){return(e=t.asArray(e,!1)).reduce(function(t,e){return t+e},0)},e.sumOfPow=function(e,i){return e=t.asArray(e,!1),i=t.asNumber(i,!1),e.reduce(function(t,e){return t+Math.pow(e,i)},0)},e.sumProduct=function(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];i.length;var r,a,s=0,o=[];for((i=t.asArray(i,!1)).forEach(function(e,i){e=t.asArray(e,!1),0===i?s=e.length:t.assert(e.length===s,"The length of the arrays must be equal")}),r=0;r<s;r++)a=1,i.some(function(e,i){var n=e[r];if(!n||!t.isNumber(n))return a=0,!0;a*=n}),o.push(a);return e.sum(o)},e.variance=function(i){i=t.asArray(i,!1);var n,r=e.avg(i);return n=i.map(function(t){return t-r}),e.sumOfSquares(n)/(i.length-1)},e.covariance=function(i,n){i=t.asArray(i,!1),n=t.asArray(n,!1),t.assert(i.length===n.length,"Length of arrays must be equal");var r,a=e.avg(i),s=e.avg(n),o=i.length,l=0;for(r=0;r<o;r++)l+=(i[r]-a)*(n[r]-s)/o;return l},e.min=function(e){return Math.min.apply(Math,t.asArray(e,!1))},e.max=function(e){return Math.max.apply(Math,t.asArray(e,!1))},e.square=function(e){return Math.pow(t.asNumber(e,!1),2)},e.sumOfSquares=function(t){return e.sumOfPow(t,2)},e.stdDev=function(t){return Math.sqrt(e.variance(t))},e}();!function(t){t[t.Linear=0]="Linear",t[t.Exponential=1]="Exponential",t[t.Logarithmic=2]="Logarithmic",t[t.Power=3]="Power",t[t.Fourier=4]="Fourier",t[t.Polynomial=5]="Polynomial",t[t.MinX=6]="MinX",t[t.MinY=7]="MinY",t[t.MaxX=8]="MaxX",t[t.MaxY=9]="MaxY",t[t.AverageX=10]="AverageX",t[t.AverageY=11]="AverageY"}(i=e.TrendLineFitType||(e.TrendLineFitType={}));var r=function(e){function n(t){var n=e.call(this)||this;return n._fitType=i.Linear,n._order=2,n.initialize(t),n}return __extends(n,e),Object.defineProperty(n.prototype,"fitType",{get:function(){return this._fitType},set:function(e){(e=t.asEnum(e,i,!1))!=this._fitType&&(this._fitType=e,this._invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"order",{get:function(){return this._order},set:function(e){e!=this._order&&(this._order=t.asNumber(e,!1,!0),this._invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"coefficients",{get:function(){return this._helper?this._helper.coefficients:null},enumerable:!0,configurable:!0}),n.prototype.approximate=function(t){return this._helper?this._helper.approximate(t):NaN},n.prototype.getEquation=function(t){return(this._helper?this._helper.getEquation(t):"").replace(/\S(\+|\-)\d/g,function(t){return t[0]+" "+t[1]+" "+t[2]})},n.prototype._calculateValues=function(){var t=i[this._fitType];if(y[t]){var e=!1,n=this._originXValues;0==this._chart._xvals.length&&this._chart._xlabels.length>0&&(n=this._originXValues.map(function(t){return t+1}),e=!0);var r=new y[t](this._originYValues,n,this.sampleCount,this.order);r._isXString=e;var a=r.calculateValues();this._yValues=a[0],this._xValues=a[1],this._helper=r}},n}(e.TrendLineBase);e.TrendLine=r;var a=function(){function t(t,e){this._x=t,this._y=e}return Object.defineProperty(t.prototype,"x",{get:function(){return this._x},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"y",{get:function(){return this._y},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minX",{get:function(){return null==this._minX&&(this._minX=n.min(this._x)),this._minX},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minY",{get:function(){return null==this._minY&&(this._minY=n.min(this._y)),this._minY},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxX",{get:function(){return null==this._maxX&&(this._maxX=n.max(this._x)),this._maxX},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxY",{get:function(){return null==this._maxY&&(this._maxY=n.max(this._y)),this._maxY},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"averageX",{get:function(){return null==this._averageX&&(this._averageX=n.avg(this._x)),this._averageX},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"averageY",{get:function(){return null==this._averageY&&(this._averageY=n.avg(this._y)),this._averageY},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"sumX",{get:function(){return null==this._sumX&&(this._sumX=n.sum(this._x)),this._sumX},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"sumY",{get:function(){return null==this._sumY&&(this._sumY=n.sum(this._y)),this._sumY},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"LogX",{get:function(){return null==this._logX&&(this._logX=this._x.map(function(t){return Math.log(t)})),this._logX},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"LogY",{get:function(){return null==this._logY&&(this._logY=this._y.map(function(t){return Math.log(t)})),this._logY},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"sumLogX",{get:function(){return null==this._sumLogX&&(this._sumLogX=n.sum(this.LogX)),this._sumLogX},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"sumLogY",{get:function(){return null==this._sumLogY&&(this._sumLogY=n.sum(this.LogY)),this._sumLogY},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"sumOfSquareX",{get:function(){return null==this._sumOfSquareX&&(this._sumOfSquareX=n.sumOfSquares(this._x)),this._sumOfSquareX},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"sumOfSquareY",{get:function(){return null==this._sumOfSquareY&&(this._sumOfSquareY=n.sumOfSquares(this._y)),this._sumOfSquareY},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"sumOfSquareLogX",{get:function(){return null==this._sumOfSquareLogX&&(this._sumOfSquareLogX=n.sumOfSquares(this.LogX)),this._sumOfSquareLogX},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"sumOfSquareLogY",{get:function(){return null==this._sumOfSquareLogY&&(this._sumOfSquareLogY=n.sumOfSquares(this.LogY)),this._sumOfSquareLogY},enumerable:!0,configurable:!0}),t.prototype.sumProduct=function(t,e){return null==this._sumProduct&&(this._sumProduct=n.sumProduct(t,e)),this._sumProduct},t}(),s=function(){function e(e,i,n){this._coefficients=[],this.y=t.asArray(e),this.x=t.asArray(i),t.assert(e.length===i.length,"Length of X and Y arrays are not equal"),this.count=n||e.length,this._calculator=new a(i,e),this.xMin=this._calculator.minX,this.xMax=this._calculator.maxX}return Object.defineProperty(e.prototype,"calculator",{get:function(){return this._calculator},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"y",{get:function(){return this._y},set:function(e){e!==this.y&&(this._y=t.asArray(e,!1))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"x",{get:function(){return this._x},set:function(e){e!==this.x&&(this._x=t.asArray(e,!1))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"count",{get:function(){return this._count},set:function(e){e!==this.count&&(this._count=t.asInt(e,!1,!0))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"xMin",{get:function(){return this._xMin},set:function(e){e!==this.xMin&&(this._xMin=t.asNumber(e,!1))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"xMax",{get:function(){return this._xMax},set:function(e){e!==this.xMax&&(this._xMax=t.asNumber(e,!1))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"coefficients",{get:function(){return this._coefficients},enumerable:!0,configurable:!0}),e.prototype._calculateCoefficients=function(){var t=this.calcB(),e=this.calcA(t);this._coefficients.push(e,t)},e.prototype.calculateValues=function(){for(var t=(this.xMax-this.xMin)/(this.count-1),e=[[],[]],i=0;i<this.count;i++){var n=this.xMin+t*i,r=this.calcY(n);e[0].push(r),this._isXString?e[1].push(n-1):e[1].push(n)}return e},e.prototype.calcA=function(t){var e=this.y.length,i=this.calculator.sumX;return(this.calculator.sumY-(t=t||this.calcB())*i)/e},e.prototype.calcB=function(){var t=this.y.length,e=this.calculator,i=e.sumProduct(e.x,e.y),r=e.sumX;return(t*i-r*e.sumY)/(t*e.sumOfSquareX-n.square(r))},e.prototype.calcY=function(t){var e=this.coefficients;return e[0]+e[1]*t},e.prototype.approximate=function(t){return this.calcY(t)},e.prototype.getEquation=function(t){t=t||this._defaultEquationFmt;return this._getEquation(t)},e.prototype._getEquation=function(t){var e=[];return this.coefficients.forEach(function(i){e.push(t(i))}),this._concatEquation(e)},e.prototype._concatEquation=function(t){return""},e.prototype._defaultEquationFmt=function(t){var e,i=Math.abs(t),n=String(i),r=0;return i>=1e5?(e=String(Math.round(i)).length-1,Math.round(t/Number("1e"+e))+"e"+e):i<1e-4?(e=n.indexOf("e")>-1?Math.abs(+n.substring(n.indexOf("e")+1)):n.match(/\.0+/)[0].length,Math.round(t*Number("1e"+e))+"e-"+e):(r=t>0?6:7,i>=1e4&&r--,String(+String(t).substring(0,r)))},e}(),o=function(e){function i(t,i,n,r){var a=e.call(this,t,i,n)||this;return a._calculateCoefficients(),a.yOffset=r,a}return __extends(i,e),Object.defineProperty(i.prototype,"yOffset",{get:function(){return this._yOffset},set:function(e){e!==this.yOffset&&(this._yOffset=t.asNumber(e,!0))},enumerable:!0,configurable:!0}),i.prototype.calcA=function(t){return null!=this.yOffset?this.yOffset:e.prototype.calcA.call(this,t)},i.prototype.calcB=function(){return null!=this.yOffset?this._calculateBSimple():e.prototype.calcB.call(this)},i.prototype._calculateBSimple=function(){var t=this.calculator,e=t.sumProduct(t.x,t.y),i=t.sumX,n=t.sumOfSquareX;return(e-this.yOffset*i)/n},i.prototype._calculateCoefficients=function(){var t=this.calcB(),e=this.calcA(t);this.coefficients.push(t,e)},i.prototype.calcY=function(t){var e=this.coefficients;return e[0]*t+e[1]},i.prototype._concatEquation=function(t){return"y = "+t[0]+"x"+(this.coefficients[1]>=0?"+":"")+t[1]},i}(s),l=function(t){function e(e,i,n){var r=t.call(this,e,i,n)||this;return r._calculateCoefficients(),r}return __extends(e,t),e.prototype.calcA=function(t){var e=this.y.length,i=this.calculator,n=i.sumY,r=i.sumLogX;return(n-(t=t||this.calcB())*r)/e},e.prototype.calcB=function(){var t=this.y.length,e=this.calculator,i=e.sumProduct(e.y,e.LogX),r=e.sumY,a=e.sumLogX;return(t*i-r*a)/(t*e.sumOfSquareLogX-n.square(a))},e.prototype._calculateCoefficients=function(){var t=this.calcB(),e=this.calcA(t);this.coefficients.push(t,e)},e.prototype.calcY=function(t){var e=this.coefficients;return Math.log(t)*e[0]+e[1]},e.prototype._concatEquation=function(t){return"y = "+t[0]+"ln(x)"+(this.coefficients[1]>=0?"+":"")+t[1]},e}(s),u=function(t){function e(e,i,n){var r=t.call(this,e,i,n)||this;return r._calculateCoefficients(),r}return __extends(e,t),e.prototype.calcA=function(){var t=this.y.length,e=this.calculator,i=e.sumLogY,r=e.sumOfSquareX,a=e.sumX,s=e.sumProduct(e.x,e.LogY);return Math.exp((i*r-a*s)/(t*r-n.square(a)))},e.prototype.calcB=function(){var t=this.y.length,e=this.calculator,i=e.sumLogY,r=e.sumOfSquareX,a=e.sumX;return(t*e.sumProduct(e.x,e.LogY)-a*i)/(t*r-n.square(a))},e.prototype.calcY=function(t){var e=this.coefficients;return e[0]*Math.exp(e[1]*t)},e.prototype._concatEquation=function(t){return"y = "+t[0]+"e<sup>"+t[1]+"x</sup>"},e}(s),h=function(t){function e(e,i,n){var r=t.call(this,e,i,n)||this;return r._calculateCoefficients(),r}return __extends(e,t),e.prototype.calcA=function(t){var e=this.calculator,i=this.y.length,n=e.sumLogX,r=e.sumLogY;t=t||this.calcB();return Math.exp((r-t*n)/i)},e.prototype.calcB=function(){var t=this.y.length,e=this.calculator,i=e.sumProduct(e.LogX,e.LogY),r=e.sumLogX;return(t*i-r*e.sumLogY)/(t*e.sumOfSquareLogX-n.square(r))},e.prototype.calcY=function(t){var e=this.coefficients;return e[0]*Math.pow(t,e[1])},e.prototype._concatEquation=function(t){return"y = "+t[0]+"x<sup>"+t[1]+"</sup>"},e}(s),c=function(e){function i(t,i,n,r){var a=e.call(this,t,i,n)||this;return a._order=null==r?2:r,a._basis=[],a._calculateCoefficients(),a}return __extends(i,e),Object.defineProperty(i.prototype,"basis",{get:function(){return this._basis},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"order",{get:function(){return this._order},set:function(e){this._order=t.asNumber(e,!0)},enumerable:!0,configurable:!0}),i.prototype._calculateCoefficients=function(){this._coefficients.length=this.order,this._createBasis(),this._normalizeAndSolveGauss()},i.prototype._createBasis=function(){var t=this.x.length,e=this.order;if(t<2)throw"Incompatible data: Less than 2 data points.";if(e<1)throw"Incompatible data: Less than 1 coefficient in the fit";if(e>t)throw"Incompatible data: Number of data points less than number of terms"},i.prototype._normalizeAndSolveGauss=function(){var t=[];if(this._computeNormalEquations(t),this._genDefValForArray(t,0),!this._solveGauss(t))throw"Incompatible data: No solution."},i.prototype._genDefValForArray=function(t,e){var i=t.length+1;t.forEach(function(t){for(var n=0;n<i;n++)null==t[n]&&(t[n]=e)})},i.prototype._computeNormalEquations=function(t){var e,i,n,r,a=this.y,s=this.basis,o=this.order,l=a.length;for(e=0;e<o;e++)for(n=0,null==t[e]&&(t[e]=[]),a.forEach(function(t,i){n+=t*s[i][e]}),t[e][o]=n,i=e;i<o;i++){for(n=0,r=0;r<l;r++)n+=s[r][i]*s[r][e];null==t[i]&&(t[i]=[]),t[i][e]=n,t[e][i]=n}},i.prototype._solveGauss=function(t){var e,i,n=t.length,r=this._coefficients,a=!0;if(r.length<n||t[0].length<n+1)throw"Dimension of matrix is not correct.";if(t.some(function(e,r){var s,o,l=r,u=Math.abs(e[r]);for(i=r+1;i<n;i++)u<(s=Math.abs(t[i][r]))&&(u=s,l=i);if(!(u>0))return a=!1,!0;for(i=r;i<=n;i++)o=t[r][i],t[r][i]=t[l][i],t[l][i]=o;for(l=r+1;l<n;l++)for(o=t[l][r]/e[r],t[l][r]=0,i=r+1;i<=n;i++)t[l][i]-=o*e[i]}),a)for(e=n-1;e>=0;e--){for(r[e]=t[e][n],i=e+1;i<n;i++)r[e]-=t[e][i]*r[i];r[e]=r[e]/t[e][e]}return a},i}(s),f=function(t){function e(e,i,n,r){return t.call(this,e,i,n,r)||this}return __extends(e,t),Object.defineProperty(e.prototype,"coefficients",{get:function(){return this._coefficients.slice(0).reverse()},enumerable:!0,configurable:!0}),e.prototype.calcY=function(t){var e=0,i=1;return this._coefficients.forEach(function(n,r){r>0&&(i*=t),e+=n*i}),e},e.prototype._calculateCoefficients=function(){this._coefficients;this.order++,t.prototype._calculateCoefficients.call(this),this.order--},e.prototype._createBasis=function(){t.prototype._createBasis.call(this);var e=this.x,i=this.basis,n=this.order;e.forEach(function(t,e){i[e]=[1];for(var r=1;r<=n;r++)i[e][r]=t*i[e][r-1]})},e.prototype._concatEquation=function(t){var e="y = ",i=t.length,n=this.coefficients;return t.forEach(function(t,r){var a,s=i-1-r;0===s?e+=t:1===s?(a=n[r+1]>=0?"+":"",e+=t+"x"+a):(a=n[r+1]>=0?"+":"",e+=t+"x<sup>"+s+"</sup>"+a)}),e},e}(c),_=function(t){function e(e,i,n,r){return r=null==r?i.length:r,t.call(this,e,i,n,r)||this}return __extends(e,t),e.prototype._createBasis=function(){t.prototype._createBasis.call(this);var e=this.x,i=this.basis,n=this.order;e.forEach(function(t,e){var r,a;for(i[e]=[1],r=1;r<n;r++)a=Math.floor((r+1)/2),r%2==1?i[e].push(Math.cos(a*t)):i[e].push(Math.sin(a*t))})},e.prototype.calcY=function(t){var e;return this._coefficients.forEach(function(i,n){var r,a=Math.floor((n+1)/2);0===n?e=i:(r=a*t,e+=n%2==1?i*Math.cos(r):i*Math.sin(r))}),e},e.prototype._concatEquation=function(t){var e="y = ",i=t.length,n=this.coefficients;return t.forEach(function(t,r){var a=r===i-1?"":n[r+1]>=0?"+":"",s="",o=Math.ceil(r/2);if(0===r)e+=t+a;else{s=r%2==1?"cos":"sin";s+="("+(1===o?"":String(o))+"x)",e+=t+s+a}}),e},e}(c),p=function(t){function e(e,i,n){var r=t.call(this,e,i,n)||this;return r._calculateCoefficients(),r}return __extends(e,t),e.prototype._setVal=function(t){this._val=t},e.prototype.calcY=function(t){return this._val},e}(s),y={TrendHelperBase:s,Linear:o,Exponential:u,Logarithmic:l,Power:h,Polynomial:f,Fourier:_,MinX:function(t){function e(e,i,n){return t.call(this,e,i,n)||this}return __extends(e,t),e.prototype.calculateValues=function(){var t,e,i=this.xMin,r=n.min(this.y),a=n.max(this.y);return this._isXString&&(i-=1),t=[i,i],e=[r,a],this._setVal(i),[e,t]},e.prototype.getEquation=function(t){var e=this.xMin;return this._isXString&&(e-=1),t&&(e=t(e)),"x = "+e},e}(p),MinY:function(t){function e(e,i,n){return t.call(this,e,i,n)||this}return __extends(e,t),e.prototype.calculateValues=function(){var t,e,i=this.xMin,r=this.xMax,a=n.min(this.y);return this._isXString&&(i-=1,r-=1),t=[i,r],e=[a,a],this._setVal(a),[e,t]},e.prototype.getEquation=function(t){var e=n.min(this.y);return t&&(e=t(e)),"y = "+e},e}(p),MaxX:function(t){function e(e,i,n){return t.call(this,e,i,n)||this}return __extends(e,t),e.prototype.calculateValues=function(){var t,e,i=this.xMax,r=n.min(this.y),a=n.max(this.y);return this._isXString&&(i-=1),t=[i,i],e=[r,a],this._setVal(i),[e,t]},e.prototype.getEquation=function(t){var e=this.xMax;return this._isXString&&(e-=1),t&&(e=t(e)),"x = "+e},e}(p),MaxY:function(t){function e(e,i,n){return t.call(this,e,i,n)||this}return __extends(e,t),e.prototype.calculateValues=function(){var t,e,i=this.xMin,r=this.xMax,a=n.max(this.y);return this._isXString&&(i-=1,r-=1),t=[i,r],e=[a,a],this._setVal(a),[e,t]},e.prototype.getEquation=function(t){var e=n.max(this.y);return t&&(e=t(e)),"y = "+e},e}(p),AverageX:function(t){function e(e,i,n){return t.call(this,e,i,n)||this}return __extends(e,t),e.prototype.calculateValues=function(){var t,e,i=n.avg(this.x),r=n.min(this.y),a=n.max(this.y);return this._isXString&&(i-=1),t=[i,i],e=[r,a],this._setVal(i),[e,t]},e.prototype._getEquation=function(t){var e=n.avg(this.x);return this._isXString&&(e-=1),t&&(e=t(e))," x ="+e},e.prototype._defaultEquationFmt=function(e){return Math.abs(e)<1e5?t.prototype._defaultEquationFmt.call(this,e):""+n.round(e,2)},e}(p),AverageY:function(t){function e(e,i,n){return t.call(this,e,i,n)||this}return __extends(e,t),e.prototype.calculateValues=function(){var t,e,i=n.avg(this.y),r=this.xMin,a=this.xMax;return this._isXString&&(r-=1,a-=1),t=[r,a],e=[i,i],this._setVal(i),[e,t]},e.prototype._getEquation=function(t){return"y = "+t(n.avg(this.y))},e.prototype._defaultEquationFmt=function(e){return Math.abs(e)<1e5?t.prototype._defaultEquationFmt.call(this,e):""+n.round(e,2)},e}(p)}}(e.analytics||(e.analytics={}))}(t.chart||(t.chart={}))}(wijmo||(wijmo={})),function(t){!function(e){!function(e){"use strict";var i=function(e){function i(i){var n=e.call(this)||this;return n._min=0,n._max=1,n.initialize(i),null==n.itemsSource&&(n.itemsSource=[new t.Point(0,0)]),n}return __extends(i,e),Object.defineProperty(i.prototype,"min",{get:function(){return this._min},set:function(e){this._min!==e&&(this._min=t.asNumber(e,!1),this._invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"max",{get:function(){return this._max},set:function(e){this._max!==e&&(this._max=t.asNumber(e,!1),this._invalidate())},enumerable:!0,configurable:!0}),i.prototype.getValues=function(t){return null!=this._xValues&&null!=this._yValues||this._calculateValues(),0===t?this._yValues||null:1===t?this._xValues||null:void 0},i.prototype._calculateValues=function(){for(var t,e=this.sampleCount,i=[],n=[],r=(this.max-this.min)/(e-1),a=0;a<e;a++)t=a===e-1?this.max:this.min+r*a,i[a]=this._calculateX(t),n[a]=this._calculateY(t);this._yValues=n,this._xValues=i},i.prototype._validateValue=function(t){return isFinite(t)?t:Number.NaN},i.prototype._calculateValue=function(t,e){var i;try{i=t(e)}catch(t){i=Number.NaN}return this._validateValue(i)},i.prototype._calculateX=function(t){return 0},i.prototype._calculateY=function(t){return 0},i}(e.TrendLineBase);e.FunctionSeries=i;var n=function(e){function i(t){return e.call(this,t)||this}return __extends(i,e),Object.defineProperty(i.prototype,"func",{get:function(){return this._func},set:function(e){e&&this._func!==e&&(this._func=t.asFunction(e,!1),this._invalidate())},enumerable:!0,configurable:!0}),i.prototype._calculateX=function(t){return t},i.prototype._calculateY=function(t){return this._calculateValue(this.func,t)},i.prototype.approximate=function(t){return this._calculateValue(this.func,t)},i}(i);e.YFunctionSeries=n;var r=function(e){function i(t){return e.call(this,t)||this}return __extends(i,e),Object.defineProperty(i.prototype,"xFunc",{get:function(){return this._xFunc},set:function(e){e&&this._xFunc!==e&&(this._xFunc=t.asFunction(e,!1),this._invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"yFunc",{get:function(){return this._yFunc},set:function(e){e&&this._yFunc!==e&&(this._yFunc=t.asFunction(e,!1),this._invalidate())},enumerable:!0,configurable:!0}),i.prototype._calculateX=function(t){return this._calculateValue(this.xFunc,t)},i.prototype._calculateY=function(t){return this._calculateValue(this.yFunc,t)},i.prototype.approximate=function(e){var i=this._calculateValue(this.xFunc,e),n=this._calculateValue(this.yFunc,e);return new t.Point(i,n)},i}(i);e.ParametricFunctionSeries=r}(e.analytics||(e.analytics={}))}(t.chart||(t.chart={}))}(wijmo||(wijmo={})),function(t){var e;(function(e){"use strict";var i,n,r;!function(t){t[t.FixedValue=0]="FixedValue",t[t.Percentage=1]="Percentage",t[t.StandardDeviation=2]="StandardDeviation",t[t.StandardError=3]="StandardError",t[t.Custom=4]="Custom"}(i=e.ErrorAmount||(e.ErrorAmount={})),function(t){t[t.Cap=0]="Cap",t[t.NoCap=1]="NoCap"}(n=e.ErrorBarEndStyle||(e.ErrorBarEndStyle={})),function(t){t[t.Both=0]="Both",t[t.Minus=1]="Minus",t[t.Plus=2]="Plus"}(r=e.ErrorBarDirection||(e.ErrorBarDirection={}));var a=function(e){function a(t){var a=e.call(this)||this;return a._errorAmount=i.FixedValue,a._endStyle=n.Cap,a._direction=r.Both,a.rendering.addHandler(a._rendering,a),a.initialize(t),a}return __extends(a,e),Object.defineProperty(a.prototype,"value",{get:function(){return this._value},set:function(t){t!=this._value&&(this._value=t,this._invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"errorAmount",{get:function(){return this._errorAmount},set:function(e){(e=t.asEnum(e,i,!0))!=this._errorAmount&&(this._errorAmount=e,this._invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"errorBarStyle",{get:function(){return this._errorBarStyle},set:function(t){t!=this._errorBarStyle&&(this._errorBarStyle=t,this._invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"endStyle",{get:function(){return this._endStyle},set:function(e){(e=t.asEnum(e,n,!0))!=this._endStyle&&(this._endStyle=e,this._invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"direction",{get:function(){return this._direction},set:function(e){(e=t.asEnum(e,r,!0))!=this._direction&&(this._direction=e,this._invalidate())},enumerable:!0,configurable:!0}),a.prototype.getDataRect=function(e,n){if(!e)return null;this._chart;var r,a=this.errorAmount,s=0,o=0;this._paddings=[],this._calculateErrorValue();var l,u,h=this.getValues(0),c=e.top,f=e.bottom;if(!h)return e;for(l=0,r=h.length;l<r;l++){var _={plus:0,val:0,minus:0},p=this._value||0;switch(u=h[l],a){case i.Custom:(_=this._getCustomValue(l)).val=u,this._paddings.push(_);break;case i.FixedValue:this._paddings.push({plus:p,minus:p,val:u});break;case i.Percentage:this._paddings.push({plus:u*p,minus:u*p,val:u});break;case i.StandardDeviation:this._paddings.push({plus:this._errorValue*p,minus:this._errorValue*p,val:u});break;case i.StandardError:this._paddings.push({plus:this._errorValue,minus:this._errorValue,val:u})}(isNaN(c)||c>u-_.minus)&&(c=u-_.minus),(isNaN(f)||f<u+_.plus)&&(f=u+_.plus)}switch(a){case i.FixedValue:s=p,o=p;break;case i.Percentage:s=c*p,o=f*p;break;case i.StandardDeviation:s=this._errorValue*p,o=this._errorValue*p;break;case i.StandardError:s=this._errorValue,o=this._errorValue}return this._showPlus&&(f+=o),this._showMinus&&(c-=s),new t.Rect(e.left,c,e.width,f-c)},a.prototype._getCustomValue=function(e){var i,n=this.value,r={minus:0,val:0,plus:0};return null!=this._minusBindingValues||null!=this._plusBindingValues?(r.minus=this._minusBindingValues&&this._minusBindingValues[e]||0,r.plus=this._plusBindingValues&&this._plusBindingValues[e]||0,r):null==n?r:(t.isArray(n)?((i=n[e])&&i.minus&&(r.minus=i.minus),i&&i.plus&&(r.plus=i.plus)):t.isNumber(n)?(r.minus=n,r.plus=n):(n.minus&&(r.minus=n.minus),n.plus&&(r.plus=n.plus)),r)},a.prototype._calculateErrorValue=function(){var t=0,e=0,n=0;if(this._errorAmount===i.StandardDeviation||this._errorAmount===i.StandardError){var r=this.getValues(0);null!=r&&(r.forEach(function(i){t+=i,e++}),n=t/e,this._mean=n,t=0,r.forEach(function(e){t+=Math.pow(e-n,2)}),this._errorValue=Math.sqrt(t/(e-1))),this._errorAmount==i.StandardError&&(this._errorValue=this._errorValue/Math.sqrt(e))}},a.prototype._clearValues=function(){this.__errorValue=null,this._mean=null,this._plusBindingValues=null,this._minusBindingValues=null,e.prototype._clearValues.call(this)},a.prototype.getValues=function(t){if(0==t&&this.errorAmount===i.Custom){var n=this._getBinding(1),r=this._getBinding(2);if((null==this._plusBindingValues||null==this._minusBindingValues)&&n&&r)if(null!=this._cv){if(n){var a=this._bindValues(this._cv.items,n);this._plusBindingValues=a.values}if(r){var s=this._bindValues(this._cv.items,r);this._minusBindingValues=s.values}}else null!=this.binding&&null!=this._chart&&null!=this._chart.collectionView&&(n&&(a=this._bindValues(this._chart.collectionView.items,n),this._plusBindingValues=a.values),r&&(s=this._bindValues(this._chart.collectionView.items,r),this._minusBindingValues=s.values))}return e.prototype.getValues.call(this,t)},Object.defineProperty(a.prototype,"_chart",{get:function(){return this.__chart},set:function(t){t!==this.__chart&&(this.__chart=t)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"_errorValue",{get:function(){return this.__errorValue},set:function(t){t!=this.__errorValue&&(this.__errorValue=t)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"_showPlus",{get:function(){return this.direction===r.Both||this.direction===r.Plus},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"_showMinus",{get:function(){return this.direction===r.Both||this.direction===r.Minus},enumerable:!0,configurable:!0}),a.prototype._rendering=function(e,r){var a=this;this._errorBarEles=[],r.cancel=!0;var s=this.chart,o=s._plotRect,l=this._getAxisY(),u=this._getAxisX(),h=(l.origin,r.engine),c=s.series.indexOf(this),f=this._plotter;f.plotSeries(h,u,l,this,s,r.index,r.count,function(e){var r,_,p,y=a._paddings,m=a._showPlus,d=a._showMinus,g=s._isRotated(),b=a.errorBarStyle&&a.errorBarStyle["stroke-width"]||2;p=(_=g?u:l).actualMax,r=_.convert(p);var v=h.stroke,x=h.strokeWidth;h.stroke="black",h.strokeWidth=1;var P=a.chart._plotrectId;h.startGroup(null,P),e&&e.length&&e.forEach(function(e,s){if(null!=e&&null!=e.x&&null!=e.y){var l=y[s],u=l&&l.minus||0,v=l&&l.plus||0,x=Math.abs(_.convert(p-u)-r),P=Math.abs(_.convert(p+v)-r),w=new t.Point(e.x,e.y),S=new t.Point(e.x,e.y);g?(a.errorAmount===i.StandardDeviation&&(e=new t.Point(_.convert(a._mean),e.y),w.x=e.x,S.x=e.x),d&&(w.x=w.x-x),m&&(S.x=S.x+P)):(a.errorAmount===i.StandardDeviation&&(e=new t.Point(e.x,_.convert(a._mean)),w.y=e.y,S.y=e.y),d&&(w.y=w.y+x),m&&(S.y=S.y-P));var V=void 0;V=g?new t.Rect(w.x,w.y-b,Math.abs(S.x-w.x),2*b):new t.Rect(S.x-b,S.y,2*b,Math.abs(S.y-w.y));var M=new t.chart._RectArea(V);M.ignoreLabel=!0;var O=new t.chart._DataPoint(c,s,s,l.val);M.tag=O,f.hitTester.add(M,c);var L=[h.drawLine(w.x,w.y,S.x,S.y,"error-bar",a.errorBarStyle)];if(a._errorBarEles[s]=L,a.endStyle===n.Cap){if(m){var C=void 0;g?S.x<=o.right&&(C=h.drawLine(S.x,S.y-b,S.x,S.y+b,"error-bar",a.errorBarStyle),L.push(C)):S.y>=o.top&&(C=h.drawLine(S.x-b,S.y,S.x+b,S.y,"error-bar",a.errorBarStyle),L.push(C))}if(d){var E=void 0;g?w.x>=o.left&&(E=h.drawLine(w.x,w.y-b,w.x,w.y+b,"error-bar",a.errorBarStyle),L.push(E)):w.y<=o.bottom&&(E=h.drawLine(w.x-b,w.y,w.x+b,w.y,"error-bar",a.errorBarStyle),L.push(E))}}}}),h.endGroup(),h.stroke=v,h.strokeWidth=x})},a.prototype.getPlotElement=function(t){if(this.hostElement&&t<this._pointIndexes.length){var e=null==this._errorBarEles[t]?[]:this._errorBarEles[t].slice(),i=this._pointIndexes[t];return i<this.hostElement.childNodes.length&&e.push(this.hostElement.childNodes[i]),e}return null},a}(t.chart.Series);e.ErrorBar=a})((e=t.chart||(t.chart={})).analytics||(e.analytics={}))}(wijmo||(wijmo={})),function(t){!function(e){!function(e){"use strict";t._addCultureInfo("FlexChartAnalytics",{BreakEven:{profitArea:"Profit Area",lossArea:"Loss Area",safetyMargin:"Safety Margin",salesRevenue:"Sales Revenue",totalCost:"Total Cost",fixedCost:"Fixed Cost",variableCost:"Variable Cost",marginalProfit:"Marginal Profit",breakEven:"Break Even"}});var i=function(e){function i(i){var n=e.call(this)||this;n.rendering.addHandler(n._rendering,n),n.style={fill:"rgba(0,255,0,0.5)",strokeWidth:0},n.altStyle={fill:"rgba(255,0,0,0.5)",strokeWidth:0},n.tooltipContent="{y}",n.initialize(i),n._chartType=t.chart.ChartType.Line;var r=t.culture.FlexChartAnalytics.BreakEven;return n.name=r.profitArea+","+r.lossArea+","+r.safetyMargin+","+r.salesRevenue+","+r.totalCost+","+r.fixedCost+","+r.variableCost+","+r.marginalProfit+","+r.breakEven,n}return __extends(i,e),Object.defineProperty(i.prototype,"fixedCost",{get:function(){return this._fixedCost},set:function(e){e!=this._fixedCost&&(this._fixedCost=t.asNumber(e,!0,!0),this._invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"variableCost",{get:function(){return this._variableCost},set:function(e){e!=this._variableCost&&(this._variableCost=t.asNumber(e,!0,!0),this._invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"salesPrice",{get:function(){return this._salesPrice},set:function(e){e!=this._salesPrice&&(this._salesPrice=t.asNumber(e,!0,!0),this._invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"styles",{get:function(){return this._styles},set:function(t){t!==this._styles&&(this._styles=t,this._invalidate())},enumerable:!0,configurable:!0}),i.prototype.getValues=function(t){var e=this.salesPrice-this.variableCost;if(0==e)return null;for(var i=1.3*(this.fixedCost/e),n=[],r=0;r<10;r++)0==t?n.push(r*i/10*this.salesPrice):1==t&&n.push(r*i/10);return n},i.prototype._rendering=function(t,e){this.chart._plotRect;var i=e.engine,n=this.chart.axisX,r=this.chart.axisY,a=this.getValues(1),s=this.getValues(0),o=this.salesPrice-this.variableCost,l=this.fixedCost/o,u=this.fixedCost+s[s.length-1]-o*a[a.length-1],h=this.chart._plotrectId;i.startGroup(null,h),this.style&&this.style.fill&&(i.fill=this.style.fill,i.drawPolygon([n.convert(a[a.length-1]),n.convert(l),n.convert(a[a.length-1])],[r.convert(s[s.length-1]),r.convert(l*this.salesPrice),r.convert(u)]),i.fill=null),this.altStyle&&this.altStyle.fill&&(i.fill=this.altStyle.fill,i.drawPolygon([n.convert(a[0]),n.convert(l),n.convert(a[0])],[r.convert(0),r.convert(l*this.salesPrice),r.convert(this.fixedCost)]),i.fill=null);var c=this.styles?this.styles.safetyMargin:void 0,f=this.styles?this.styles.salesRevenue:void 0,_=this.styles?this.styles.totalCost:void 0,p=this.styles?this.styles.fixedCost:void 0,y=this.styles?this.styles.variableCost:void 0,m=this.styles?this.styles.marginalProfit:void 0,d=this.styles?this.styles.breakEven:void 0;c&&c.fill&&(i.fill=c.fill,i.drawPolygon([n.convert(a[a.length-1]),n.convert(l),n.convert(a[a.length-1])],[r.convert(a[a.length-1]*(this.salesPrice-this.variableCost)),r.convert(this.fixedCost),r.convert(this.fixedCost)]),i.fill=null),f&&(this._setStyle(i,f),i.drawLine(n.convert(0),r.convert(0),n.convert(a[a.length-1]),r.convert(s[s.length-1]))),_&&(this._setStyle(i,_),i.drawLine(n.convert(a[0]),r.convert(this.fixedCost),n.convert(a[a.length-1]),r.convert(u))),p&&(this._setStyle(i,p),i.drawLine(n.convert(a[0]),r.convert(this.fixedCost),n.convert(a[a.length-1]),r.convert(this.fixedCost))),y&&(this._setStyle(i,y),i.drawLine(n.convert(a[0]),r.convert(0),n.convert(a[a.length-1]),r.convert(a[a.length-1]*this.variableCost))),m&&(this._setStyle(i,m),i.drawLine(n.convert(a[0]),r.convert(0),n.convert(a[a.length-1]),r.convert(a[a.length-1]*(this.salesPrice-this.variableCost)))),d&&(this._setStyle(i,d),i.drawLine(n.convert(l),r.convert(0),n.convert(l),r.convert(l*this.salesPrice)),i.drawLine(n.convert(0),r.convert(l*this.salesPrice),n.convert(l),r.convert(l*this.salesPrice))),i.endGroup()},i.prototype._setStyle=function(t,e){t.stroke=e.stroke,t.strokeWidth=e.strokeWidth?e.strokeWidth:3},i.prototype._getName=function(t){var e=void 0;if(this.name)if(this.name.indexOf(",")){var i=this.name.split(",");i&&i.length-1>=t&&(e=i[t].trim())}else e=this.name;return e},i.prototype.legendItemLength=function(){return 9},i.prototype._getStyle=function(t){var e=null;switch(t){case 0:e=this.style;break;case 1:e=this.altStyle;break;case 2:e=this.styles?this.styles.safetyMargin:null;break;case 3:e=this.styles?this.styles.salesRevenue:null;break;case 4:e=this.styles?this.styles.totalCost:null;break;case 5:e=this.styles?this.styles.fixedCost:null;break;case 6:e=this.styles?this.styles.variableCost:null;break;case 7:e=this.styles?this.styles.marginalProfit:null;break;case 8:e=this.styles?this.styles.breakEven:null}return e},i.prototype.measureLegendItem=function(e,i){var n=this._getName(i),r=new t.Size(0,0),a=this._getStyle(i);return n&&a&&(r=this._measureLegendItem(e,this._getName(i))),r},i.prototype.drawLegendItem=function(t,e,i){var n=this._getStyle(i),r=this._getName(i);r&&n&&this._drawLegendItem(t,e,i<3?5:3,r,n,this.symbolStyle)},i}(t.chart.SeriesBase);e.BreakEven=i}(e.analytics||(e.analytics={}))}(t.chart||(t.chart={}))}(wijmo||(wijmo={})),function(t){var e;(function(e){"use strict";var i;!function(t){t[t.InclusiveMedian=0]="InclusiveMedian",t[t.ExclusiveMedian=1]="ExclusiveMedian"}(i=e.QuartileCalculation||(e.QuartileCalculation={}));var n=function(e){function n(n){var r=e.call(this)||this;return r._groupWidth=.8,r._gapWidth=.1,r._showInnerPoints=!1,r._showOutliers=!1,r._quartileCalculation=i.InclusiveMedian,r._chartType=t.chart.ChartType.Bar,r.rendering.addHandler(r._rendering,r),r.initialize(n),r}return __extends(n,e),n.prototype._initProperties=function(e){t.copy(this,e)},n.prototype._clearValues=function(){e.prototype._clearValues.call(this)},Object.defineProperty(n.prototype,"quartileCalculation",{get:function(){return this._quartileCalculation},set:function(e){(e=t.asEnum(e,i,!0))!=this._quartileCalculation&&(this._quartileCalculation=e,this._invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"groupWidth",{get:function(){return this._groupWidth},set:function(e){e!=this._groupWidth&&e>=0&&e<=1&&(this._groupWidth=t.asNumber(e,!0),this._invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"gapWidth",{get:function(){return this._gapWidth},set:function(e){e!=this._gapWidth&&e>=0&&e<=1&&(this._gapWidth=t.asNumber(e,!0),this._invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"showMeanLine",{get:function(){return this._showMeanLine},set:function(e){e!=this._showMeanLine&&(this._showMeanLine=t.asBoolean(e,!0),this._invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"meanLineStyle",{get:function(){return this._meanLineStyle},set:function(t){t!=this._meanLineStyle&&(this._meanLineStyle=t,this._invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"showMeanMarker",{get:function(){return this._showMeanMarker},set:function(e){e!=this._showMeanMarker&&(this._showMeanMarker=t.asBoolean(e,!0),this._invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"meanMarkerStyle",{get:function(){return this._meanMarkerStyle},set:function(t){t!=this._meanMarkerStyle&&(this._meanMarkerStyle=t,this._invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"showInnerPoints",{get:function(){return this._showInnerPoints},set:function(e){e!=this._showInnerPoints&&(this._showInnerPoints=t.asBoolean(e,!0),this._invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"showOutliers",{get:function(){return this._showOutliers},set:function(e){e!=this._showOutliers&&(this._showOutliers=t.asBoolean(e,!0),this._invalidate())},enumerable:!0,configurable:!0}),n.prototype._rendering=function(e,i){var n=this;i.cancel=!0;var a,s,o=this,l=o.chart,u=(o.chart,o._getAxisX()),h=o._getAxisY(),c=i.index,f=i.count,_=i.engine,p=this._plotter,y=l.series.indexOf(o),m=t.asType(o,t.chart.SeriesBase),d=this.quartileCalculation,g=this.showOutliers,b=this.groupWidth,v=(null==this.gapWidth?.2:this.gapWidth)/2;c=c||0;var x=b/(f=f||1),P=o.getValues(0),w=o.getValues(1);if(P){if(w||(w=p.dataInfo.getXVals()),w){var S=p.dataInfo.getDeltaX();S>0&&(b*=S,x*=S)}var V=m._getSymbolFill(y),M=m._getAltSymbolFill(y)||V,O=m._getSymbolStroke(y),L=m._getAltSymbolStroke(y)||O,C=P.length;null!=w&&(C=Math.min(C,w.length));var E,X,j=0,B=0,T=p.getItemFormatter(o);if(p.rotated){(j=u.origin||j)<u.actualMin?j=u.actualMin:j>u.actualMax&&(j=u.actualMax),u.convert(j);var q=h.actualMin,Y=h.actualMax;for(I=0;I<C;I++){if(D=w?w[I]:I,null==(F=P[I])||0===F.length)return;if(p._getSymbolOrigin&&h.convert(p._getSymbolOrigin(j,I)),p._getSymbolStyles&&(V=(Q=p._getSymbolStyles(I))&&Q.fill?Q.fill:V,M=Q&&Q.fill?Q.fill:M,O=Q&&Q.stroke?Q.fill:O,L=Q&&Q.stroke?Q.fill:L),E=F[0]>0?V:M,X=F[0]>0?O:L,_.fill=E,_.stroke=X,t.chart._DataInfo.isValid(D)&&t.isArray(F)&&F.length>0&&t.chart._DataInfo.isValid(F[0])){var A=D-.5*b+c*x,k=D-.5*b+(c+1)*x;if(k-=W=(k-A)*v,(A+=W)<q&&k<q||A>Y&&k>Y)continue;A=h.convert(A),k=h.convert(k),K=new r(F,d,g),U={min:u.convert(K.min),max:u.convert(K.max),firstQuartile:u.convert(K.firstQuartile),median:u.convert(K.median),thirdQuartile:u.convert(K.thirdQuartile),mean:u.convert(K.mean),outlierPoints:this._convertPoints(K.outlierPoints,u),innerPoints:this._convertPoints(K.innerPoints,u)},J=new t.Rect(Math.min(U.min,U.max),Math.min(A,k),Math.abs(U.max-U.min),Math.abs(k-A)),Z=new t.chart._RectArea(J);var N={min:Math.min(A,k),median:(A+k)/2,max:Math.max(k,A)};T?(_.startGroup(),(z=new t.chart.HitTestInfo(l,new t.Point((U.min+U.max)/2,N.median),t.chart.ChartElement.SeriesSymbol))._setData(o,I),T(_,z,function(){n._drawBoxWhisker(_,U,N,a,s,o),a=U,s=N}),_.endGroup()):(this._drawBoxWhisker(_,U,N,a,s,o),a=U,s=N),o._setPointIndex(I,B),B++,(H=new t.chart._DataPoint(y,I,F,D)).item=K,Z.tag=H,p.hitTester.add(Z,y),K.outlierPoints&&K.outlierPoints.length&&K.outlierPoints.forEach(function(e,i){var n=U.outlierPoints[i],r=new t.chart._CircleArea(new t.Point(n,J.top+J.height/2),2);r.tag=H,p.hitTester.add(r,y)})}}}else{(j=h.origin||j)<h.actualMin?j=h.actualMin:j>h.actualMax&&(j=h.actualMax),h.convert(j),u.actualMin,u.actualMax;for(var I=0;I<C;I++){var F,Q,D=w?w[I]:I;if(null==(F=P[I])||0===F.length)return;if(p._getSymbolOrigin&&h.convert(p._getSymbolOrigin(j,I,C)),p._getSymbolStyles&&(V=(Q=p._getSymbolStyles(I,C))&&Q.fill?Q.fill:V,M=Q&&Q.fill?Q.fill:M,O=Q&&Q.stroke?Q.stroke:O,L=Q&&Q.stroke?Q.stroke:L),E=F[0]>0?V:M,X=F[0]>0?O:L,_.fill=E,_.stroke=X,t.chart._DataInfo.isValid(D)&&t.isArray(F)&&F.length>0&&t.chart._DataInfo.isValid(F[0])){var W,R=D-.5*b+c*x,G=D-.5*b+(c+1)*x;if(R+=W=(G-R)*v,G-=W,R=u.convert(R),G=u.convert(G),!t.chart._DataInfo.isValid(R)||!t.chart._DataInfo.isValid(G))continue;var z,H,K=new r(F,d,g),U={min:h.convert(K.min),max:h.convert(K.max),firstQuartile:h.convert(K.firstQuartile),median:h.convert(K.median),thirdQuartile:h.convert(K.thirdQuartile),mean:h.convert(K.mean),outlierPoints:this._convertPoints(K.outlierPoints,h),innerPoints:this._convertPoints(K.innerPoints,h)},J=new t.Rect(Math.min(R,G),Math.min(U.min,U.max),Math.abs(G-R),Math.abs(U.max-U.min)),Z=new t.chart._RectArea(J),$={min:Math.min(R,G),median:(R+G)/2,max:Math.max(R,G)};T?(_.startGroup(),(z=new t.chart.HitTestInfo(l,new t.Point($.median,(U.min+U.max)/2),t.chart.ChartElement.SeriesSymbol))._setData(o,I),T(_,z,function(){n._drawBoxWhisker(_,$,U,a,s,o),a=$,s=U}),_.endGroup()):(this._drawBoxWhisker(_,$,U,a,s,o),a=$,s=U),o._setPointIndex(I,B),B++,(H=new t.chart._DataPoint(y,I,D,F)).item=K,Z.tag=H,p.hitTester.add(Z,y),K.outlierPoints&&K.outlierPoints.length&&K.outlierPoints.forEach(function(e,i){var n=U.outlierPoints[i],r=new t.chart._CircleArea(new t.Point(J.left+J.width/2,n),2);r.tag=H,p.hitTester.add(r,y)})}}}}},n.prototype._convertPoints=function(t,e){return t.map(function(t){return e.convert(t)})},n.prototype._drawBoxWhisker=function(t,e,i,n,r,a){var s=a.symbolStyle,o=this.showInnerPoints,l=this.showOutliers,u=this.showMeanLine,h=this.meanLineStyle,c=this.showMeanMarker,f=this.meanMarkerStyle,_=this._plotter;if(t.startGroup("box-plot"),t.strokeWidth=1,_.rotated){if(t.drawLine(e.min,(i.min+i.median)/2,e.min,(i.max+i.median)/2,null,s),t.drawLine(e.min,i.median,e.firstQuartile,i.median,null,s),t.drawRect(Math.min(e.firstQuartile,e.thirdQuartile),Math.min(i.min,i.max),Math.abs(e.thirdQuartile-e.firstQuartile),Math.abs(i.max-i.min),null,s),t.drawLine(e.median,i.min,e.median,i.max,null,s),t.drawLine(e.max,i.median,e.thirdQuartile,i.median,null,s),t.drawLine(e.max,(i.min+i.median)/2,e.max,(i.max+i.median)/2,null,s),u&&n&&r&&t.drawLine(e.mean,i.median,n.mean,r.median,"box-whisker-mean-line",h||s),c){var p=Math.abs(i.median-i.min)/2;t.drawLine(e.mean-p,i.median-p,e.mean+p,i.median+p,null,f||s),t.drawLine(e.mean+p,i.median-p,e.mean-p,i.median+p,null,f||s)}l&&e.outlierPoints.forEach(function(e){t.drawPieSegment(e,i.median,2,0,2*Math.PI,null,s)}),o&&e.innerPoints.forEach(function(e){t.drawPieSegment(e,i.median,2,0,2*Math.PI,null,s)})}else t.drawLine((e.min+e.median)/2,i.min,(e.max+e.median)/2,i.min,null,s),t.drawLine(e.median,i.min,e.median,i.firstQuartile,null,s),t.drawRect(Math.min(e.min,e.max),Math.min(i.firstQuartile,i.thirdQuartile),Math.abs(e.max-e.min),Math.abs(i.thirdQuartile-i.firstQuartile),null,s),t.drawLine(e.min,i.median,e.max,i.median,null,s),t.drawLine(e.median,i.max,e.median,i.thirdQuartile,null,s),t.drawLine((e.min+e.median)/2,i.max,(e.max+e.median)/2,i.max,null,s),u&&n&&r&&t.drawLine(e.median,i.mean,n.median,r.mean,"box-whisker-mean-line",h||s),c&&(p=Math.abs(e.median-e.min)/2,t.drawLine(e.median-p,i.mean-p,e.median+p,i.mean+p,null,f||s),t.drawLine(e.median-p,i.mean+p,e.median+p,i.mean-p,null,f||s)),l&&i.outlierPoints.forEach(function(i){t.drawPieSegment(e.median,i,2,0,2*Math.PI,null,s)}),o&&i.innerPoints.forEach(function(i){t.drawPieSegment(e.median,i,2,0,2*Math.PI,null,s)});t.endGroup()},n.prototype._renderLabels=function(e,i,n,r){var a=this,s=this,o=this._plotter,l=i.length,u=n.dataLabel,h=u.border,c=u.offset,f=u.connectingLine,_="dataY";o.rotated&&(_="dataX"),void 0===c&&(c=f?16:0),h&&(c-=2);for(var p=[],y=0;y<l;y++){var m=i[y],d=m.tag,g=t.asType(d,t.chart._DataPoint,!0);if(g&&-1==p.indexOf(g)){p.push(g);var b=d.item,v=d.y;if(d[_]=b.min,d.yfmt=b.min,d.y=b.min,this._plotter._renderLabel(e,m,g,n,u,s,c,r),d[_]=b.firstQuartile,d.yfmt=b.firstQuartile,d.y=b.firstQuartile,this._plotter._renderLabel(e,m,g,n,u,s,c,r),d[_]=b.median,d.yfmt=b.median,d.y=b.median,this._plotter._renderLabel(e,m,g,n,u,s,c,r),d[_]=b.thirdQuartile,d.yfmt=b.thirdQuartile,d.y=b.thirdQuartile,this._plotter._renderLabel(e,m,g,n,u,s,c,r),d[_]=b.max,d.yfmt=b.max,d.y=b.max,this._plotter._renderLabel(e,m,g,n,u,s,c,r),this.showMeanMarker){var x=Number(b.mean.toFixed(2));d[_]=x,d.yfmt=x,d.y=x,this._plotter._renderLabel(e,m,g,n,u,s,c,r)}b.showOutliers&&b.outlierPoints&&b.outlierPoints.forEach(function(t){d[_]=t,d.yfmt=t,d.y=t,a._plotter._renderLabel(e,m,g,n,u,s,c,r)}),d.y=v}}},n}(t.chart.SeriesBase);e.BoxWhisker=n;var r=function(){function t(t,e,i){this._outlierPoints=[],this._innerPoints=[],this._data=t,this._quartileCalculation=e,this._showOutliers=i,this._parse()}return Object.defineProperty(t.prototype,"showOutliers",{get:function(){return this._showOutliers},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return this._min},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return this._max},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"mean",{get:function(){return this._mean},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstQuartile",{get:function(){return this._firstQuartile},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"thirdQuartile",{get:function(){return this._thirdQuartile},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"median",{get:function(){return this._median},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"outlierPoints",{get:function(){return this._outlierPoints},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"innerPoints",{get:function(){return this._innerPoints},enumerable:!0,configurable:!0}),t.prototype._parse=function(){var t=this,e=this._data.length,n=this._data,r=0;this._outlierPoints=[],this._innerPoints=[],n.sort(function(t,e){return t-e}),n.some(function(e){return null!=e&&(t._min=e,!0)}),this._max=null==n[e-1]?0:n[e-1],this._quartileCalculation===i.InclusiveMedian?(this._firstQuartile=this._quartileInc(n,.25),this._median=this._quartileInc(n,.5),this._thirdQuartile=this._quartileInc(n,.75)):(this._firstQuartile=this._quartileExc(n,.25),this._median=this._quartileExc(n,.5),this._thirdQuartile=this._quartileExc(n,.75)),this._iqr=1.5*Math.abs(this._thirdQuartile-this._firstQuartile);var a=this._firstQuartile-this._iqr,s=this._thirdQuartile+this._iqr;if(this._showOutliers){var o=this._max;this._max=this._min,this._min=o,this._data.forEach(function(e){r+=e,e<a||e>s?t._outlierPoints.push(e):(e<t._min&&(t._min=e),e>t._max&&(t._max=e))})}else r=this._data.reduce(function(t,e){return t+e},0);this._innerPoints=this._data.filter(function(e){if(e>t._min&&e<t._max)return!0}),this._mean=r/e},t.prototype._quartileInc=function(t,e){var i,n,r,a,s=t.length;return 1===s?t[0]:(a=(i=(s-1)*e+1)-(n=Math.floor(i)),(r=t[n-1])+(t[n]-r)*a)},t.prototype._quartileExc=function(t,e){var i,n,r,a,s=t.length;return 1===s?t[0]:2===s?t[Math.round(e)]:(a=(i=(s+1)*e)-(n=Math.floor(i)),(r=t[n-1])+(t[n]-r)*a)},t}();e._BoxPlot=r})((e=t.chart||(t.chart={})).analytics||(e.analytics={}))}(wijmo||(wijmo={})),function(t){!function(e){e.analytics||(e.analytics={}),t._registerModule("wijmo.chart.analytics",t.chart.analytics)}(t.chart||(t.chart={}))}(wijmo||(wijmo={}));
var wijmo,__extends=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();!function(t){!function(e){!function(e){"use strict";var i=function(){function e(){}return e.parseDataToHierarchical=function(i,r,a,n){var o,s=[];return i instanceof t.collections.CollectionView&&i.groups.length>0?s=e.parseGroupCV(i,r):i.length>0&&(t.isString(a)&&a.indexOf(",")>-1&&(a=a.split(",")),n?s=e.parseItems(i,r,a,n):(o=e.convertFlatData(i,r,a),s=e.parseItems(o,"value",a,"items"))),s},e.parseGroupCV=function(t,e){for(var i=[],r=0,a=t.groups.length;r<a;r++){var n=this.parseGroups(t.groups[r],e);i.push(n)}return i},e.parseGroups=function(e,i){var r={};if(r.name=e.name,r.nameField=e.groupDescription.propertyName,r.item=e.items,e.groups&&e.groups.length){r.items=[];for(var a=0,n=e.groups.length;a<n;a++){var o=this.parseGroups(e.groups[a],i);r.items.push(o)}}else e.isBottomLevel&&(r.value=e.getAggregate(t.Aggregate.Sum,i));return r},e.parseItems=function(t,i,r,a){var n,o=[],s=t.length;for(n=0;n<s;n++)o.push(e.parseItem(t[n],i,r,a));return o},e.isFlatItem=function(e,i){return!t.isArray(e[i])},e.convertFlatData=function(i,r,a){var n,o,s=[],l={},h=i.length;for(n=0;n<h;n++)o=i[n],e.convertFlatItem(l,o,r,t.isArray(a)?a:[a]);return e.convertFlatToHierarchical(s,l),s},e.convertFlatToHierarchical=function(t,i){var r=i.flatDataOrder;r&&r.forEach(function(r){var a,n={},o=i[r];n[i.field]=r,o.flatDataOrder?(a=[],e.convertFlatToHierarchical(a,o),n.items=a):n.value=o,t.push(n)})},e.convertFlatItem=function(i,r,a,n){var o,s,l,h;return s=(o=n.slice()).shift(),null!=(l=null==(s=t.isString(s)?s.trim():s)?a:r[s])&&(0===o.length?(i[l]=r[a]||0,i.flatDataOrder?i.flatDataOrder.push(l):i.flatDataOrder=[l],i.field=s):(null==i[l]&&(i[l]={},i.flatDataOrder?i.flatDataOrder.push(l):i.flatDataOrder=[l],i.field=s),h=i[l],e.convertFlatItem(h,r,a,o)||(i[l]=r[a])),!0)},e.parseItem=function(i,r,a,n){var o,s,l,h,c,u={};return t.isArray(n)?h=(c=n.slice()).length?c.shift().trim():"":(c=n,h=n),t.isArray(a)?(s=null==(s=(o=a.slice()).shift())?s:s.trim(),u.nameField=null==s?r:s,u.name=null==s?i[r]:i[s],l=i[h],0===o.length?u.value=i[r]:l&&t.isArray(l)&&l.length>0?u.items=e.parseItems(l,r,o,c):u.value=i[r]||0):(u.nameField=null==a?r:a,u.name=null==a?i[r]:i[a],null!=(l=i[h])&&t.isArray(l)&&l.length>0?u.items=e.parseItems(l,r,a,c):u.value=i[r]),u.item=i,u},e.parseFlatItem=function(t,e,i,r){t.items||(t.items=[])},e}();e.HierarchicalUtil=i}(e.hierarchical||(e.hierarchical={}))}(t.chart||(t.chart={}))}(wijmo||(wijmo={})),function(t){!function(e){!function(e){"use strict";var i;!function(t){t[t.Squarified=0]="Squarified",t[t.Horizontal=1]="Horizontal",t[t.Vertical=2]="Vertical"}(i=e.TreeMapType||(e.TreeMapType={}));var r=function(r){function s(e,i){var a=r.call(this,e,null,!0)||this;return a._values=[],a._labels=[],a._areas=[],a._sum=0,a._keywords=new t.chart._KeyWords,a._processedData=[],a._depth=1,a._itemIndex=0,a._processedItem=[],a._maxDepth=-1,a._tmItems=[],a._colRowLens=[],a._defPalette=[{titleColor:"#033884",maxColor:"#1450a7",minColor:"#83b3f9"},{titleColor:"#a83100",maxColor:"#dc4a0d",minColor:"#ffb190"},{titleColor:"#006658",maxColor:"#008d7a",minColor:"#7deddf"},{titleColor:"#a10046",maxColor:"#df0061",minColor:"#ff8cbe"},{titleColor:"#784d08",maxColor:"#99681a",minColor:"#efc989"},{titleColor:"#54156f",maxColor:"#722a90",minColor:"#cf95e7"},{titleColor:"#998605",maxColor:"#c2ac19",minColor:"#ffef8b"},{titleColor:"#9a0005",maxColor:"#c80c14",minColor:"#ff888d"}],a.applyTemplate("wj-control wj-flexchart wj-treemap",null,null),a._currentRenderEngine=new t.chart._SvgRenderEngine(a.hostElement),a._legend=new t.chart.Legend(a),a._legend.position=t.chart.Position.None,a._tooltip=new t.chart.ChartTooltip,a._tooltip.content="<b>{name}</b><br/>{value}",a._tooltip.showDelay=0,a._lbl=new t.chart.DataLabel,a._lbl.position=t.chart.LabelPosition.Center,a._lbl._chart=a,a.hostElement.addEventListener("mousemove",function(t){a.isTouching||a._toogleTooltip(t)}),a.hostElement.addEventListener("click",function(e){var i=!0;if(a.maxDepth>0){var r=a.hitTest(e),n=t.chart.FlexChart._SELECTION_THRESHOLD;if(a.tooltip&&a.tooltip.threshold&&(n=a.tooltip.threshold),r.distance<=n&&r.pointIndex>=-1&&r.pointIndex<a._areas.length){var o=a._areas[r.pointIndex];a._currentItem!=o.item&&(a._currentItem=o.item,a._refreshChart(),i=!1)}}i&&a.isTouching&&a._toogleTooltip(e)}),a.hostElement.addEventListener("contextmenu",function(e){if(a.maxDepth>0){var i=a.hitTest(e),r=t.chart.FlexChart._SELECTION_THRESHOLD;a.tooltip&&a.tooltip.threshold&&(r=a.tooltip.threshold),i.distance<=r&&a._rollUp()}return e.preventDefault(),!1}),a.hostElement.addEventListener("mouseleave",function(){a._hideToolTip()}),a.deferUpdate(function(){return a.initialize(i)}),a}return __extends(s,r),s.prototype._rollUp=function(){this._currentItem=this._currentItem&&this._currentItem.parent?this._currentItem.parent:null,this._refreshChart()},s.prototype._toogleTooltip=function(e){var i=this._tooltip;if(i.content){var r=this.hitTest(e);if(r.distance<=i.threshold){var a=this._getLabelContent(r,this.tooltip.content);this._showToolTip(a,new t.Rect(e.clientX,e.clientY,5,5))}else this._hideToolTip()}},Object.defineProperty(s.prototype,"selectionMode",{get:function(){return t.chart.SelectionMode.None},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"_treeMapItems",{get:function(){return this._tmItems},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"tooltip",{get:function(){return this._tooltip},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"binding",{get:function(){return this._binding},set:function(e){e!=this._binding&&(this._binding=t.asString(e,!0),this._bindChart())},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"type",{get:function(){return null==this._type?i.Squarified:this._type},set:function(e){(e=t.asEnum(e,i))!=this._type&&(this._type=e,this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"bindingName",{get:function(){return this._bindingName},set:function(e){e!=this._bindingName&&(t.assert(null==e||t.isArray(e)||t.isString(e),"bindingName should be an array or a string."),this._bindingName=e,this._bindChart())},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"dataLabel",{get:function(){return this._lbl},set:function(t){t!=this._lbl&&(this._lbl=t,this._lbl&&(this._lbl._chart=this))},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"childItemsPath",{get:function(){return this._childItemsPath},set:function(e){e!=this._childItemsPath&&(t.assert(null==e||t.isArray(e)||t.isString(e),"childItemsPath should be an array or a string."),this._childItemsPath=e,this._bindChart())},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"maxDepth",{get:function(){return this._maxDepth},set:function(e){e!=this._maxDepth&&(this._maxDepth=t.asNumber(e,!0),this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"palette",{get:function(){return this._palette},set:function(e){e!=this._palette&&(this._palette=t.asArray(e),this._tmItems&&this._tmItems.length>0&&this._calculateColorForItems(this._tmItems),this.invalidate())},enumerable:!0,configurable:!0}),s.prototype._initData=function(){this._sum=0,this._tmItems=[],this._currentItem=null,this._values=[],this._labels=[],this._processedData=[],this._depth=1,this._processedItem=[]},s.prototype._performBind=function(){var t;this._initData(),this._cv&&(t=this._cv.items,this._cv.groups&&this._cv.groups.length?this._processedData=e.HierarchicalUtil.parseDataToHierarchical(this._cv,this.binding,this.bindingName,this.childItemsPath):t&&(this._processedData=e.HierarchicalUtil.parseDataToHierarchical(t,this.binding,this.bindingName,this.childItemsPath)),this._processedData&&this._processedData.length&&(this._sum=this._calculateValueAndDepth(this._processedData,1),this._sortData(this._processedData),this._values=[],this._getTMItemsAndLabelsAndValues(this._processedData,this._tmItems,1,null),this._calculateColorForItems(this._tmItems)))},s.prototype._sortData=function(t){var e=this;t.forEach(function(t){t.items&&e._sortData(t.items)}),t.sort(function(t,e){return e.value-t.value})},s.prototype._getTMItemsAndLabelsAndValues=function(t,e,i,r,n){var o=this;t&&t.length>0&&t.forEach(function(t,n){var s,l=new a;l.items=[],l.parent=r,l.depth=i,t.items&&o._getTMItemsAndLabelsAndValues(t.items,l.items,i+1,l),s=t.name?t.name:t.value.toString(),l.label=s,l.value=t.value,null!=r&&(t.value>r.maxValue&&(r.maxValue=t.value),t.value<r.minValue&&(r.minValue=t.value)),e.push(l),o._labels.push(s),o._values.push(t.value)})},s.prototype._calculateColorForItems=function(e,i,r){var a=this,o=r;e.forEach(function(e,r){var s=i;1===e.depth&&(s=a._getColor(r)),e.palette=s;var l=e.palette;if(t.isString(l)){var h=l,c=a._getLightColor(h);e.titleFill=h,e.titleStroke=h,e.fill=c,e.stroke=h}else if(l.maxColor&&l.minColor&&l.titleColor)if(e.titleFill=l.titleColor,e.titleStroke=l.titleColor,null==e.parent)e.fill=l.maxColor,e.stroke=l.maxColor;else{null==o&&(o=new n(l.minColor,e.minValue,l.maxColor,e.maxValue));var u=o._calculateColorByVal(e.value,!0).toString();e.fill=u,e.stroke=u}if(e.items&&e.items.length>0){var _=new n(l.minColor,e.minValue,l.maxColor,e.maxValue);a._calculateColorForItems(e.items,s,_)}})},s.prototype._getBindData=function(e,i,r){var a,n=0;r&&(a=e[r]);n=0;return t.isNumber(a)?n=t.asNumber(a):a&&(n=parseFloat(a.toString())),!isNaN(n)&&isFinite(n)?i.push(n):(n=0,i.push(n)),n},s.prototype._calculateValueAndDepth=function(t,e){var i=this,r=0,a=this._values;return this._depth<e&&(this._depth=e),t.forEach(function(t){var n;t.items?(n=i._calculateValueAndDepth(t.items,e+1),t.value=n,a.push(n)):(n=i._getBindData(t,a,"value"),t.value=n),r+=n}),r},s.prototype._prepareRender=function(){this._areas=[]},s.prototype._renderChart=function(e,i,r){var a,n,o,l=this._rectChart.clone();new t.Size(l.width,l.height);this.onRendering(new t.chart.RenderEventArgs(e));var h=i.width,c=i.height;this._tmGroup=e.startGroup(null,null,!0);var u=this._parseMargin(this.plotMargin);this.dataLabel;isNaN(u.left)&&(u.left=s._MARGIN),isNaN(u.right)&&(u.right=s._MARGIN),isNaN(u.top)&&(u.top=s._MARGIN),isNaN(u.bottom)&&(u.bottom=s._MARGIN),i.top+=u.top;c=i.height-(u.top+u.bottom);i.height=c>0?c:24,i.left+=u.left;h=i.width-(u.left+u.right);i.width=h>0?h:24,this._plotRect=i,a=this._currentItem?[this._currentItem]:this._tmItems,n=null==this._currentItem||this.maxDepth<1?this.maxDepth:this._currentItem&&this._currentItem.items&&this._currentItem.items.length&&this.maxDepth>1?this.maxDepth:this.maxDepth+1,o=this._currentItem?this._currentItem.value:this._sum,this._renderTreeMap(e,i,this._tmGroup,a,o,n),e.endGroup(),this.dataLabel.content&&this.dataLabel.position!=t.chart.LabelPosition.None&&this._renderLabels(e),this.onRendered(new t.chart.RenderEventArgs(e))},s.prototype._renderTreeMap=function(t,e,i,r,a,n){a>0&&(this._itemIndex=0,this._resetItemRects(this._tmItems),this._calculateItemRects(e,r,a,1,n),this._renderHierarchicalTreeMapItems(t,i,e,this._tmItems,a,1,n))},s.prototype._resetItemRects=function(e){var i=this;e.forEach(function(e){e.rect=new t.Rect(0,0,0,0),e.isTitle=!1,e.type=i.type,e.items&&e.items.length&&i._resetItemRects(e.items)})},s.prototype._calculateItemRects=function(t,e,r,a,n){var s=this;switch(this.type){case i.Horizontal:o.horizontal(e,t,r);break;case i.Vertical:o.vertical(e,t,r);break;case i.Squarified:o.squarified(e,t,r)}e.forEach(function(t,e){t.rect.clone();t.items&&t.items.length&&(a===n||a>n&&n>=1||(t.isTitle=!0,s._calculateItemRects(t.itemsRect,t.items,t.value,a+1,n)))})},s.prototype._renderHierarchicalTreeMapItems=function(e,i,r,a,n,o,l){var h,c,u,_,d,p=a.length;this.type;if(0!==p)for(var m=0;m<p;m++)h=e.startGroup(s._CSS_ITEMDEPTH+o),c=a[m],u=Math.abs(c.value),_=c.rect,c.draw(e),d=new t.chart._RectArea(_),c.items&&this._renderHierarchicalTreeMapItems(e,h,c.itemsRect,c.items,u,o+1,l),d.tag=this._itemIndex,d.name=c.label,d.value=u,d.item=c,this._areas.push(d),this._itemIndex++,e.endGroup()},s.prototype._renderLabels=function(e){var i,r=this._areas.length,a=this.dataLabel,n=a.position,o=a.connectingLine,s=a.border,l=a.offset||0;e.stroke="null",e.fill="transparent",e.strokeWidth=1,e.startGroup("wj-data-labels");for(var h=0;h<r;h++){var c=this._areas[h];if(c){var u=c.rect,_=new t.chart.HitTestInfo(this,i);_._setData(null,h);var d=this._getLabelContent(_,a.content);if(i=new t.Point(u.left+u.width/2,u.top+u.height/2),d&&u.width>0&&u.height>0){var p=new t.chart.DataLabelRenderEventArgs(e,_,i,d);a.onRendering(p)&&(d=p.text,i=p.point,this._renderLabelAndBorder(e,c,u,d,n,l,i,o,2,s))}}}e.endGroup()},s.prototype._renderLabelAndBorder=function(e,i,r,a,n,o,s,l,h,c){var u,_="wj-data-label",d="wj-data-label-line";switch(n){case t.chart.LabelPosition.Top:l&&e.drawLine(s.x,s.y,s.x,s.y-o,d),s.y-=h+o,u=this._renderText(e,i,r,a,s,1,2,_);break;case t.chart.LabelPosition.Bottom:l&&e.drawLine(s.x,s.y,s.x,s.y+o,d),s.y+=h+o,u=this._renderText(e,i,r,a,s,1,0,_);break;case t.chart.LabelPosition.Left:l&&e.drawLine(s.x,s.y,s.x-o,s.y,d),s.x-=h+o,u=this._renderText(e,i,r,a,s,2,1,_);break;case t.chart.LabelPosition.Right:l&&e.drawLine(s.x,s.y,s.x+o,s.y,d),s.x+=h+o,u=this._renderText(e,i,r,a,s,0,1,_);break;case t.chart.LabelPosition.Center:u=this._renderText(e,i,r,a,s,1,1,_)}return c&&u&&e.drawRect(u.left-h,u.top-h,u.width+2*h,u.height+2*h,"wj-data-label-border"),u},s.prototype._renderText=function(e,r,a,n,o,s,l,h){var c,u=n,_=r.item;return c=e.measureString(n,h),this.type===i.Horizontal&&_.isTitle?(c.width>a.height&&(u=this._cutText(n,c.width,a.height)),t.chart.FlexChart._renderRotatedText(e,u,o,s,l,o,-90,h),null):(c.width>a.width&&(u=this._cutText(n,c.width,a.width)),t.chart.FlexChart._renderText(e,u,o,s,l,h))},s.prototype._cutText=function(t,e,i){var r="",a=t.length,n=Math.floor((1-(e-i)/e)*a);return t.length>0&&(r=t[0]+(n>1?t.substring(1,n-1)+"..":"")),r},s.prototype._measureLegendItem=function(e,i){var r=new t.Size;if(r.width=t.chart.Series._LEGEND_ITEM_WIDTH,r.height=t.chart.Series._LEGEND_ITEM_HEIGHT,i){var a=e.measureString(i,t.chart.FlexChart._CSS_LABEL,t.chart.FlexChart._CSS_LEGEND);r.width+=a.width,r.height<a.height&&(r.height=a.height)}return r.width+=3*t.chart.Series._LEGEND_ITEM_MARGIN,r.height+=2*t.chart.Series._LEGEND_ITEM_MARGIN,r},s.prototype._getDesiredLegendSize=function(e,i,r,a){var n=new t.Size,o=(new t.Size(r,a),this._tmItems.length),s=0,l=0;this._colRowLens=[];for(var h=0;h<o;h++){var c=this._measureLegendItem(e,this._tmItems[h].label);i?(l+c.height>a&&(n.height=a,this._colRowLens.push(s),s=0,l=0),s<c.width&&(s=c.width),l+=c.height):(s+c.width>r&&(n.width=r,this._colRowLens.push(l),l=0,s=0),l<c.height&&(l=c.height),s+=c.width)}return i?(n.height<l&&(n.height=l),this._colRowLens.push(s),n.width=this._colRowLens.reduce(function(t,e){return t+e},0),n.width=this._getLegendSize(r,n.width)):(n.width<s&&(n.width=s),this._colRowLens.push(l),n.height=this._colRowLens.reduce(function(t,e){return t+e},0),n.height=this._getLegendSize(a,n.height)),n},s.prototype._renderLegend=function(e,i,r,a,n,o){for(var s,l=this._rectLegend,h=this._tmItems.length,c=0,u=i.clone(),_=0;_<h;_++){s=this._tmItems[_].label;var d=this._measureLegendItem(e,s);a?u.y+d.height>l.top+l.height+1&&(u.x+=this._colRowLens[c],c++,u.y=i.y):u.x+d.width>l.left+l.width+1&&(u.y+=this._colRowLens[c],c++,u.x=i.x);var p=new t.Rect(u.x,u.y,d.width,d.height);this._drawLegendItem(e,p,_,s),r.push(p),a?u.y+=d.height:u.x+=d.width}},s.prototype._drawLegendItem=function(e,i,r,a){e.strokeWidth=1;var n=t.chart.Series._LEGEND_ITEM_MARGIN,o=this._getColor(r),s=o&&o.maxColor?o.maxColor:o,l=this._getLightColor(s);e.fill=s,e.stroke=l;var h=i.top+.5*i.height,c=t.chart.Series._LEGEND_ITEM_WIDTH,u=t.chart.Series._LEGEND_ITEM_HEIGHT;e.drawRect(i.left+n,h-.5*u,c,u,null),a&&t.chart.FlexChart._renderText(e,a,new t.Point(i.left+u+2*n,h),0,1,t.chart.FlexChart._CSS_LABEL)},s.prototype._getLabelContent=function(e,i){return t.isString(i)?this._keywords.replace(i,e):t.isFunction(i)?i(e):null},s.prototype.hitTest=function(e,i){var r=this._toControl(e,i),a=new t.chart.HitTestInfo(this,r),n=null;if(t.chart.FlexChart._contains(this._rectHeader,r))a._chartElement=t.chart.ChartElement.Header;else if(t.chart.FlexChart._contains(this._rectFooter,r))a._chartElement=t.chart.ChartElement.Footer;else if(t.chart.FlexChart._contains(this._rectLegend,r))a._chartElement=t.chart.ChartElement.Legend,null!==(n=this.legend._hitTest(r))&&n>=0&&n<this._areas.length&&a._setData(null,n);else if(t.chart.FlexChart._contains(this._rectChart,r)){for(var o,s=this._areas.length,l=NaN,h=0;h<s;h++){var c=r.clone(),u=this._areas[h];u.contains(c)&&(a._setData(null,u.tag),a._dist=0);var _=u.distance(c);void 0!==_&&(isNaN(l)||_<l)&&(l=_,o=u)}0!==a._dist&&null!=o&&(a._setData(null,o.tag),a._dist=l),a._chartElement=t.chart.ChartElement.ChartArea}else a._chartElement=t.chart.ChartElement.None;return a},s.prototype._getHitTestItem=function(t){var e=null,i=null;return(e=null!=this._cv?this._cv.items:this.itemsSource)&&t<e.length&&(i=e[t]),i},s.prototype._getHitTestValue=function(t){return this._values[t]},s.prototype._getHitTestLabel=function(t){return this._labels[t]},s._CSS_ITEMDEPTH="wj-treemap-item-depth",s._MARGIN=0,s}(t.chart.FlexChartBase);e.TreeMap=r;var a=function(){function e(){this.items=[],this.maxValue=Number.MIN_VALUE,this.minValue=Number.MAX_VALUE}return e.prototype.draw=function(t){var i=this.rect;t.strokeWidth=0,this.isTitle?(t.fill=this.titleFill,t.stroke=this.titleStroke):(t.fill=this.fill,t.stroke=this.stroke),t.drawRect(i.left,i.top,i.width,i.height,e._CLASSNAME)},Object.defineProperty(e.prototype,"itemsRect",{get:function(){var e=this.rect,r=this._rect,a=1===this.depth?2:.5;return this.isTitle?this.type===i.Horizontal?new t.Rect(e.left+e.width+1,e.top,r.width-e.width-2*a,e.height+1):new t.Rect(e.left,e.top+e.height+1,e.width+1,r.height-e.height-2*a):new t.Rect(0,0,0,0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rect",{get:function(){var e=this._rect,r=1===this.depth?2:.5,a=e.width,n=e.height,o=e.left,s=e.top;return this.isTitle?(this.type===i.Horizontal?(a=e.width>20?20:a,a=Math.max(20,a-2*r),n=n>2*r?n-2*r:0):(n=e.height>20?20:n,n=Math.max(20,n-2*r),a=a>2*r?a-2*r:0),o+=r,s+=r):(a=a>2*r?a-2*r:0,n=n>2*r?n-2*r:0),new t.Rect(o,s,a,n)},set:function(t){t!=this._rect&&(this._rect=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isTitle",{get:function(){return this._isTitle},set:function(e){var i=t.asBoolean(e,!0);i!==this._isTitle&&(this._isTitle=i)},enumerable:!0,configurable:!0}),e._CLASSNAME="wj-treemap-item",e}(),n=function(){function e(e,i,r,a,n,o){this.minColor=new t.Color(e),this.minColorValue=i,this.maxColor=new t.Color(r),this.maxColorValue=a,this.midColorValue=this.originalMidColorValue=o,this._calculateMidColorValue(),this.midColor=this.originalMidColor=new t.Color(n),this._calculateMidColor()}return e.prototype._resetminColor=function(e){this.minColor=new t.Color(e),this._calculateMidColor()},e.prototype._resetmidColor=function(e){this.midColor=this.originalMidColor=new t.Color(e),this._calculateMidColor()},e.prototype._resetmaxColor=function(e){this.maxColor=new t.Color(e),this._calculateMidColor()},e.prototype._resetminColorValue=function(t){this.minColorValue=t,this._calculateMidColorValue()},e.prototype._resetmidColorValue=function(t){this.midColorValue=this.originalMidColorValue=t,this._calculateMidColorValue()},e.prototype._resetmaxColorValue=function(t){this.maxColorValue=t,this._calculateMidColorValue()},e.prototype._calculateMidColorValue=function(){null==this.originalMidColorValue&&(this.midColorValue=(this.maxColorValue+this.minColorValue)/2)},e.prototype._calculateMidColor=function(){null==this.originalMidColor&&(this.midColor=this._calculateColorByVal(this.midColorValue,!0))},e.prototype._calculateColorByVal=function(e,i){void 0===i&&(i=!1);var r=this.maxColor,a=this.minColor,n=this.maxColorValue,o=this.minColorValue;if(e>=this.maxColorValue)return new t.Color(r.toString());if(e<=this.minColorValue)return new t.Color(a.toString());if(!i){if(e===this.midColorValue)return new t.Color(this.midColor.toString());e<this.midColorValue?(r=this.midColor,n=this.midColorValue):(a=this.midColor,o=this.midColorValue)}return this._getColor(e,r,n,a,o)},e.prototype._getColor=function(e,i,r,a,n){return t.Color.fromRgba(this._getValueByRatio(e,i.r,r,a.r,n),this._getValueByRatio(e,i.g,r,a.g,n),this._getValueByRatio(e,i.b,r,a.b,n),this._getValueByRatio(e,i.a,r,a.a,n))},e.prototype._getValueByRatio=function(t,e,i,r,a){return Math.abs(r+Math.round((t-a)*(e-r)/(i-a)))},e}(),o=function(){function e(){}return e.squarified=function(t,i,r){var a=t.slice(),n=i.clone(),o=n.width*n.height/r;do{var s=e.getRowedItems(a,n,o);e.layoutRowedItems(i,s,n,n.width>n.height)}while(a.length)},e.horizontal=function(t,i,r){var a=i.clone();t.forEach(function(t){var n=[{item:t,val:t.value*i.width*i.height/r}];e.layoutRowedItems(i,n,a,!1)})},e.vertical=function(t,i,r){var a=i.clone();t.forEach(function(t){var n=[{item:t,val:t.value*i.width*i.height/r}];e.layoutRowedItems(i,n,a,!0)})},e.getNarrowLen=function(t){return Math.min(t.width,t.height)},e.getRowedItem=function(t,e,i){return{item:t,val:i*t.value}},e.getRowedItems=function(t,i,r){var a=t.shift(),n=[],o=[],s=e.getNarrowLen(i),l=e.getRowedItem(a,i,r);if(n.push(l),o.push(l),t.length>0)do{if(o.push(e.getRowedItem(t[0],i,r)),!(e.worst(n,s)>e.worst(o,s)))break;n=o.slice(),t.shift()}while(t.length);return n},e.layoutRowedItems=function(i,r,a,n){var o,s=a.left,l=a.top,h=s+a.width,c=l+a.height,u=e.sumRowedArray(r);n?(o=0===a.height?0:u/a.height,s+o>=h&&(o=h-s),r.forEach(function(e,i){var a=0===o?0:e.val/o;(l+a>c||i===r.length-1)&&(a=c-l);var n=new t.Rect(s,l,o,a);e.item.rect=n,l+=a}),a.left+=o,a.width-=o):(o=0===a.width?0:u/a.width,l+o>=c&&(o=c-l),r.forEach(function(e,i){var a=0===o?0:e.val/o;(s+a>h||i===r.length-1)&&(a=h-s);var n=new t.Rect(s,l,a,o);e.item.rect=n,s+=a}),a.top+=o,a.height-=o)},e.sumRowedArray=function(t){for(var e=0,i=t.length,r=0;r<i;r++)e+=t[r].val;return e},e.worst=function(t,i){var r,a,n=e.sumRowedArray(t),o=n*n,s=i*i;return r=a=t[0].val,t.forEach(function(t,e){t.val>r?r=t.val:t.val<a&&(a=t.val)}),Math.max(s*r/o,o/(s*a))},e}()}(e.hierarchical||(e.hierarchical={}))}(t.chart||(t.chart={}))}(wijmo||(wijmo={})),function(t){!function(e){!function(e){"use strict";var i=function(i){function r(t,e){var r=i.call(this,t,e)||this;return r._selectionIndex=0,r.applyTemplate("wj-sunburst",null,null),r.initialize(e),r.refresh(),r}return __extends(r,i),Object.defineProperty(r.prototype,"bindingName",{get:function(){return this._bindName},set:function(e){e!=this._bindName&&(t.assert(null==e||t.isArray(e)||t.isString(e),"bindingName should be an array or a string."),this._bindName=e,this._bindChart())},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"childItemsPath",{get:function(){return this._childItemsPath},set:function(e){e!=this._childItemsPath&&(t.assert(null==e||t.isArray(e)||t.isString(e),"childItemsPath should be an array or a string."),this._childItemsPath=e,this._bindChart())},enumerable:!0,configurable:!0}),r.prototype._initData=function(){i.prototype._initData.call(this),this._processedData=[],this._level=1,this._legendLabels=[],this._processedItem=[],this._values[0]=[]},r.prototype._performBind=function(){var t,i=this;this._initData(),this._cv&&(t=this._cv.items,this._cv.groups&&this._cv.groups.length?this._processedData=e.HierarchicalUtil.parseDataToHierarchical(this._cv,this.binding,this.bindingName,this.childItemsPath):t&&(this._processedData=e.HierarchicalUtil.parseDataToHierarchical(t,this.binding,this.bindingName,this.childItemsPath)),this._processedData&&this._processedData.length&&(this._sums[0]=this._sum=this._calculateValueAndLevel(this._processedData,1),this._processedData.forEach(function(t){i._legendLabels.push(t.name)})))},r.prototype._calculateValueAndLevel=function(t,e){var i=this,r=0,a=this._values[0],n=this._labels;return this._level<e&&(this._level=e),t.forEach(function(t){var o;t.items?(o=i._calculateValueAndLevel(t.items,e+1),t.value=o,a.push(o),n.push(t.name)):(o=i._getBindData(t,a,n,"value","name"),t.value=o),r+=o}),r},r.prototype._renderPie=function(t,e,i,r,a,n){var o=this._getCenter();this._sliceIndex=0,this._parentRef={},this._renderHierarchicalSlices(t,o.x,o.y,this._processedData,this._sum,i,r,a,2*Math.PI,n,1)},r.prototype._renderHierarchicalSlices=function(t,e,i,r,a,n,o,s,l,h,c){var u,_,d,p,m,f,g,v,C,b,y=r.length,w=s,I=1==this.reversed;d=(n-o)/this._level,u=n-(this._level-c)*d,_=o+(c-1)*d;for(var x=0;x<y;x++){if(v=e,C=i,g=t.startGroup("wj-slice slice-level"+c),1===c&&(t.fill=this._getColorLight(x),t.stroke=this._getColor(x)),m=r[x],f=Math.abs(m.value),p=Math.abs(f-a)<1e-10?l:l*f/a,b=I?w-.5*p:w+.5*p,h>0&&p<l&&(v+=h*Math.cos(b),C+=h*Math.sin(b)),m.items){var L=this._sliceIndex;for(this._renderHierarchicalSlices(t,v,C,m.items,f,n,o,w,p,0,c+1);L<this._sliceIndex;L++)null==this._parentRef[L]&&(this._parentRef[L]=this._sliceIndex)}this._renderSlice(t,v,C,b,0,this._sliceIndex,u,_,w,p,l),this._processedItem.push(m.item),this._sliceIndex++,I?w-=p:w+=p,t.endGroup(),this._pels.push(g)}},r.prototype._getLabelsForLegend=function(){return this._legendLabels||[]},r.prototype._highlightCurrent=function(){this.selectionMode!=t.chart.SelectionMode.None&&this._highlight(!0,this._selectionIndex)},r.prototype.hitTest=function(e,r){var a=i.prototype.hitTest.call(this,e,r),n=this._toControl(e,r);if(t.chart.FlexChartBase._contains(this._rectChart,n)){var o=a.pointIndex,s=this._processedItem[o],l=new t.chart._DataPoint(null,o,null,null);l.item=s,a._setDataPoint(l)}return a},r.prototype._getSelectedItemOffset=function(t,e){var i=0,r=0,a=0;if(this.selectedItemOffset>0)if(t==this.selectedIndex)a=this.selectedItemOffset;else{var n=this._getSelectedParentIndex(t);if(null!=n){var o=this._areas[n];this.dataLabel.position;a=this.selectedItemOffset,e=((e=o.langle+this._rotationAngles[0])%360+360)%360,e*=Math.PI/180}}return a>0&&(i=Math.cos(e)*a*this._radius,r=Math.sin(e)*a*this._radius),{x:i,y:r}},r.prototype._getSelectedParentIndex=function(t){var e=this._parentRef[t];return null!=e?e===this.selectedIndex?e:this._getSelectedParentIndex(e):null},r}(t.chart.FlexPie);e.Sunburst=i}(e.hierarchical||(e.hierarchical={}))}(t.chart||(t.chart={}))}(wijmo||(wijmo={})),function(t){!function(e){e.hierarchical||(e.hierarchical={}),t._registerModule("wijmo.chart.hierarchical",t.chart.hierarchical)}(t.chart||(t.chart={}))}(wijmo||(wijmo={}));
var wijmo,__extends=this&&this.__extends||function(){var t=function(e,a){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var a in e)e.hasOwnProperty(a)&&(t[a]=e[a])})(e,a)};return function(e,a){function r(){this.constructor=e}t(e,a),e.prototype=null===a?Object.create(a):(r.prototype=a.prototype,new r)}}();!function(t){!function(e){!function(e){"use strict";var a=function(a){function r(){return null!==a&&a.apply(this,arguments)||this}return __extends(r,a),Object.defineProperty(r.prototype,"chartType",{get:function(){return this._finChartType},set:function(a){(a=t.asEnum(a,e.RadarChartType,!0))!=this._finChartType&&(this._finChartType=a,this._invalidate())},enumerable:!0,configurable:!0}),r.prototype._getChartType=function(){var a;switch(this.chartType){case e.RadarChartType.Area:a=t.chart.ChartType.Area;break;case e.RadarChartType.Line:a=t.chart.ChartType.Line;break;case e.RadarChartType.Column:a=t.chart.ChartType.Column;break;case e.RadarChartType.LineSymbols:a=t.chart.ChartType.LineSymbols;break;case e.RadarChartType.Scatter:a=t.chart.ChartType.Scatter}return a},r}(t.chart.SeriesBase);e.FlexRadarSeries=a}(e.radar||(e.radar={}))}(t.chart||(t.chart={}))}(wijmo||(wijmo={})),function(t){var e;(function(e){"use strict";var a=function(e){function a(){var t=null!==e&&e.apply(this,arguments)||this;return t.isArea=!1,t}return __extends(a,e),a.prototype._getLabelPoint=function(t,e){var a=t._getAxisX(),r=t._getAxisY(),i=a.convert(e.dataX),n=r.convert(e.dataY);return this.chart._convertPoint(n,i)},a.prototype.plotSeries=function(e,a,r,i,n,s,o){var l=t.asType(i,t.chart.SeriesBase),h=this.chart,c=l._getChartType()||h._getChartType(),_=h.series.indexOf(i),u=i.getValues(0),p=i.getValues(1);if(u){p||(p=this.dataInfo.getXVals());var d=t.chart._BasePlotter.cloneStyle(i.style,["fill"]),g=u.length,y=!0;p?g=Math.min(g,p.length):(y=!1,p=new Array(g));var f=this._DEFAULT_WIDTH,v=l._getSymbolFill(_),x=l._getAltSymbolFill(_)||v,m=l._getSymbolStroke(_),A=l._getAltSymbolStroke(_)||m,P=l._getSymbolSize();e.stroke=m,e.strokeWidth=f,e.fill=v;var b=new Array,T=new Array,L=r.actualMax,M=this.stacking!=t.chart.Stacking.None&&!l._isCustomAxisY(),C=this.stacking==t.chart.Stacking.Stacked100pc&&!l._isCustomAxisY();void 0!==l._getChartType()&&(M=C=!1);for(var k=l.interpolateNulls,S=!1,w=this.getItemFormatter(i),I=0;I<g;I++){var N=y?p[I]:I,R=null==u[I]?0:u[I];if(t.chart._DataInfo.isValid(N)&&t.chart._DataInfo.isValid(R)){if(M)if(C&&(R/=this.dataInfo.getStackedAbsSum(N)),R>=0){var X=isNaN(this.stackPos[N])?0:this.stackPos[N];R=this.stackPos[N]=X+R}else X=isNaN(this.stackNeg[N])?0:this.stackNeg[N],R=this.stackNeg[N]=X+R;var F;R=Math.min(R,L),F=new t.chart._DataPoint(_,I,N,R);var D=a.convert(N),j=r.convert(R),O=this.chart._convertPoint(j,D);if(N=O.x,R=O.y,isNaN(N)||isNaN(R))S=!0,!0!==k&&(b.push(void 0),T.push(void 0));else{b.push(N),T.push(R);var V=new t.chart._CircleArea(new t.Point(N,R),.5*P);V.tag=F,this.hitTester.add(V,_)}}else S=!0,!0!==k&&(b.push(void 0),T.push(void 0))}var Y=0;if(this.hasLines)if(this.isArea?e.fill=v||n._getColorLight(_):e.fill="none",S&&!0!==k){var G=[],E=[];for(I=0;I<g;I++)void 0===b[I]?(G.push(void 0),E.push(0)):(G.push(b[I]),E.push(T[I]));G.length>1&&(h._isPolar&&c!==t.chart.ChartType.Area?this._drawLines(e,G,E,null,d,this.chart._plotrectId):(h.totalAngle<360&&(G.push(h._center.x),E.push(h._center.y)),e.drawPolygon(G,E,null,d,this.chart._plotrectId)),this.hitTester.add(new t.chart._LinesArea(G,E),_),Y++)}else h._isPolar&&c!==t.chart.ChartType.Area?this._drawLines(e,b,T,null,d,this.chart._plotrectId):(h.totalAngle<360&&(b.push(h._center.x),T.push(h._center.y)),e.drawPolygon(b,T,null,d,this.chart._plotrectId)),this.hitTester.add(new t.chart._LinesArea(b,T),_),Y++;for(e.fill=v,I=0;I<g;I++)N=b[I],R=T[I],!1===this.hasLines&&(e.fill=u[I]>0?v:x,e.stroke=u[I]>0?m:A),this.isValid(N,R,a,r)&&((this.hasSymbols||w)&&P>0&&this._drawSymbol(e,N,R,P,l,I,w),i._setPointIndex(I,Y),Y++)}},a}(t.chart._LinePlotter);e._RadarLinePlotter=a})((e=t.chart||(t.chart={})).radar||(e.radar={}))}(wijmo||(wijmo={})),function(t){var e;(function(e){"use strict";var a=function(e){function a(){return null!==e&&e.apply(this,arguments)||this}return __extends(a,e),a.prototype.adjustLimits=function(e,a){this.dataInfo=e;var r=e.getMinX(),i=e.getMinY(),n=e.getMaxX(),s=e.getMaxY(),o=e.getDeltaX();return o<=0&&(o=1),this.chart.totalAngle<360&&(o=0),this.unload(),this.chart.axisY._getLogBase()||(this.origin>s?s=this.origin:this.origin<i&&(i=this.origin)),new t.Rect(r,i,n-r+o,s-i)},a.prototype._getLabelPoint=function(t,e){var a=t._getAxisX(),r=t._getAxisY(),i=a.convert(e.dataX),n=r.convert(e.dataY);return this.chart._convertPoint(n,i)},a.prototype.plotSeries=function(e,a,r,i,n,s,o){var l=this.chart.series.indexOf(i),h=t.asType(i,t.chart.SeriesBase),c=(this.chart._options,this.width),_=this.chart,u=-90*Math.PI/180;s=s||0;var p,d=h._getAxisY()._uniqueId,g=(this.stackNegMap[d],this.stackPosMap[d]),y=this.stacking!=t.chart.Stacking.None,f=this.stacking==t.chart.Stacking.Stacked100pc,v=i.getValues(0),x=i.getValues(1);if(v){var m;x||(x=this.dataInfo.getXVals()),(m=x?_.totalAngle/x.length:_.totalAngle/(a.actualMax-a.actualMin))>0&&(c=y?m*c*Math.PI/180:m*Math.pow(c,s+1)*Math.PI/180);var A=h._getSymbolFill(l),P=h._getAltSymbolFill(l)||A,b=h._getSymbolStroke(l),T=h._getAltSymbolStroke(l)||b,L=v.length;null!=x&&(L=Math.min(L,x.length));var M,C,k=this.origin,S=0;void 0!==h._getChartType()&&(y=f=!1),k<r.actualMin?k=r.actualMin:k>r.actualMax&&(k=r.actualMax),r.convert(k);var w=a.actualMin,I=a.actualMax,N=r.actualMax;h._isCustomAxisY()&&(y=f=!1),_._areas[l]||(_._areas[l]=[]);for(var R=0;R<L;R++){var X=x?x[R]:R,F=null==v[R]?0:v[R];if(this._getSymbolOrigin&&r.convert(this._getSymbolOrigin(k,R,L)),this._getSymbolStyles){var D=this._getSymbolStyles(R,L);A=D&&D.fill?D.fill:A,P=D&&D.fill?D.fill:P,b=D&&D.stroke?D.stroke:b,T=D&&D.stroke?D.stroke:T}if(M=F>0?A:P,C=F>0?b:T,e.fill=M,e.stroke=C,t.chart._DataInfo.isValid(X)&&t.chart._DataInfo.isValid(F)){if(y){var j,O,V=X-.5*c,Y=X+.5*c;if(V<w&&Y<w||V>I&&Y>I)continue;if(V=a.convert(V),Y=a.convert(Y),!t.chart._DataInfo.isValid(V)||!t.chart._DataInfo.isValid(Y))continue;f&&(F/=this.dataInfo.getStackedAbsSum(X));var G=isNaN(g[X])?0:g[X];j=G,O=G+F,g[X]=G+F;var E=a.convert(X),B=r.convert(j),W=r.convert(O);E-=c/2,e.drawDonutSegment(_._center.x,_._center.y,W,B,E+u,c,null,h.symbolStyle),(p=new t.chart._DonutSegment(new t.Point(_._center.x,_._center.y),W,B,E+u,c,_.startAngle||0)).tag=new t.chart._DataPoint(l,R,X,G+F),this.hitTester.add(p,l)}else{E=a.convert(X);var H=r.convert(Math.min(F,N));_._convertPoint(H,E),E-=c/2,e.drawPieSegment(_._center.x,_._center.y,H,E+u,c,null,h.symbolStyle),(p=new t.chart._PieSegment(new t.Point(_._center.x,_._center.y),H,E+u,c,_.startAngle)).tag=new t.chart._DataPoint(l,R,X,F),this.hitTester.add(p,l)}_._areas[l].push(p),i._setPointIndex(R,S),S++}}}},a}(t.chart._BarPlotter);e._RadarBarPlotter=a})((e=t.chart||(t.chart={})).radar||(e.radar={}))}(wijmo||(wijmo={})),function(t){!function(e){!function(e){"use strict";var a;!function(t){t[t.Column=0]="Column",t[t.Scatter=1]="Scatter",t[t.Line=2]="Line",t[t.LineSymbols=3]="LineSymbols",t[t.Area=4]="Area"}(a=e.RadarChartType||(e.RadarChartType={}));var r=function(r){function i(t,e){var i=r.call(this,t,e)||this;return i._chartType=a.Line,i._startAngle=0,i._totalAngle=360,i._reversed=!1,i._areas=[],i}return __extends(i,r),Object.defineProperty(i.prototype,"_radarLinePlotter",{get:function(){return null==this.__radarLinePlotter&&(this.__radarLinePlotter=new e._RadarLinePlotter,this._initPlotter(this.__radarLinePlotter)),this.__radarLinePlotter},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_radarColumnPlotter",{get:function(){return null==this.__radarColumnPlotter&&(this.__radarColumnPlotter=new e._RadarBarPlotter,this._initPlotter(this.__radarColumnPlotter)),this.__radarColumnPlotter},enumerable:!0,configurable:!0}),i.prototype._initAxes=function(){r.prototype._initAxes.call(this),this.axes.pop(),this.axes.pop(),this.axisX=new e.FlexRadarAxis(t.chart.Position.Bottom),this.axisX.majorGrid=!0,this.axisY=new e.FlexRadarAxis(t.chart.Position.Left),this.axisY.majorTickMarks=t.chart.TickMark.Outside,this.axes.push(this.axisX),this.axes.push(this.axisY)},i.prototype._layout=function(e,a,i){r.prototype._layout.call(this,e,a,i);var n=this.axisX._height;this._plotRect.top+=n/2;var s=this._plotRect;this._radius=Math.min(Math.max(20,s.width-n),s.height)/2,this._center=new t.Point(s.left+s.width/2,s.top+s.height/2)},Object.defineProperty(i.prototype,"chartType",{get:function(){return this._chartType},set:function(e){(e=t.asEnum(e,a))!=this._chartType&&(this._chartType=e,this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"startAngle",{get:function(){return this._startAngle},set:function(e){e!=this._startAngle&&(this._startAngle=t.asNumber(e,!0),this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"totalAngle",{get:function(){return this._totalAngle},set:function(e){e!=this._totalAngle&&e>=0&&(this._totalAngle=t.asNumber(e,!0),this._totalAngle<=0&&(t.assert(!1,"totalAngle must be greater than 0."),this._totalAngle=0),this._totalAngle>360&&(t.assert(!1,"totalAngle must be less than or equal to 360."),this._totalAngle=360),this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"reversed",{get:function(){return this._reversed},set:function(e){e!=this._reversed&&(this._reversed=t.asBoolean(e,!0),this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"stacking",{get:function(){return this._stacking},set:function(e){(e=t.asEnum(e,t.chart.Stacking))!=this._stacking&&(this._stacking=e,this.invalidate())},enumerable:!0,configurable:!0}),i.prototype.onRendered=function(t){var e=this.axisX,a=this.axisY;e&&e._renderLabels(t.engine),a&&a._renderLabels(t.engine),r.prototype.onRendered.call(this,t)},i.prototype._getChartType=function(){var e=t.chart.ChartType.Line;switch(this.chartType){case a.Area:e=t.chart.ChartType.Area;break;case a.Line:e=t.chart.ChartType.Line;break;case a.Column:e=t.chart.ChartType.Column;break;case a.LineSymbols:e=t.chart.ChartType.LineSymbols;break;case a.Scatter:e=t.chart.ChartType.Scatter}return e},i.prototype._getPlotter=function(t){var e=this.chartType,i=null;if(t){var n=t.chartType;null!=n&&n!=e&&(e=n,!0)}switch(e){case a.Line:this._radarLinePlotter.hasSymbols=!1,this._radarLinePlotter.hasLines=!0,this._radarLinePlotter.isArea=!1,i=this._radarLinePlotter;break;case a.LineSymbols:this._radarLinePlotter.hasSymbols=!0,this._radarLinePlotter.hasLines=!0,this._radarLinePlotter.isArea=!1,i=this._radarLinePlotter;break;case a.Area:this._radarLinePlotter.hasSymbols=!1,this._radarLinePlotter.hasLines=!0,this._radarLinePlotter.isArea=!0,i=this._radarLinePlotter;break;case a.Scatter:this._radarLinePlotter.hasSymbols=!0,this._radarLinePlotter.hasLines=!1,this._radarLinePlotter.isArea=!1,i=this._radarLinePlotter;break;case a.Column:this._radarColumnPlotter.isVolume=!1,this._radarColumnPlotter.width=.8,i=this._radarColumnPlotter;break;default:i=r.prototype._getPlotter.call(this,t)}return i},i.prototype._convertPoint=function(e,a){var r=new t.Point,i=this._center;return r.x=i.x+e*Math.sin(a),r.y=i.y-e*Math.cos(a),r},i.prototype._createSeries=function(){return new e.FlexRadarSeries},i.prototype._clearCachedValues=function(){r.prototype._clearCachedValues.call(this),this._isPolar=!1,this._areas=[]},i.prototype._performBind=function(){if(this._xDataType=null,this._xlabels.splice(0),this._xvals.splice(0),this._cv){var e=this._cv.items;if(e){for(var a=e.length,r=0;r<a;r++){var i=e[r],n=this.bindingX?new t.Binding(this.bindingX):null;if(n){var s=n.getValue(i);t.isNumber(s)?(this._xvals.push(t.asNumber(s)),this._xDataType=t.DataType.Number):t.isDate(s)&&(this._xDataType=t.DataType.Date),this._xlabels.push(s)}}this._xvals.length==a?this._xlabels.splice(0):this._xvals.splice(0)}}this._xDataType===t.DataType.Number&&(this._isPolar=!0)},i.prototype._prepareRender=function(){r.prototype._prepareRender.call(this),this._areas=[]},i}(t.chart.FlexChartCore);e.FlexRadar=r}(e.radar||(e.radar={}))}(t.chart||(t.chart={}))}(wijmo||(wijmo={})),function(t){var e;(function(e){"use strict";var a=function(e){function a(){var t=null!==e&&e.apply(this,arguments)||this;return t._points=[],t._axisLabels=[],t}return __extends(a,e),a.prototype._render=function(t){this._hasVisibileSeries()&&e.prototype._render.call(this,t)},a.prototype._renderLabels=function(e){var a=this,r=this._axisLabels;if(r.length){var i=this.axisType==t.chart.AxisType.X?"wj-axis-x-labels "+t.chart.FlexChart._CSS_AXIS_X:"wj-axis-y-labels "+t.chart.FlexChart._CSS_AXIS_Y;e.startGroup(i),r.forEach(function(r){var i=r.labelAngle;i>0?t.chart.FlexChart._renderRotatedText(e,r.text,r.pos,r.align,r.vAlign,r.pos,i,r.class):i<0?t.chart.FlexChart._renderRotatedText(e,r.text,r.pos,r.align,r.vAlign,r.pos,i,r.class):a._renderLabel(e,r.val,r.text,r.pos,r.align,r.vAlign,r.class)}),e.endGroup(),this._axisLabels=[]}},a.prototype._getHeight=function(a,r){var i=e.prototype._getHeight.call(this,a,r);return this._axisType==t.chart.AxisType.Y&&(i=4),this._height=2*i,this._height},a.prototype._getActualRange=function(){return this._isTimeAxis&&null!=this.__actualMax&&null!=this.__actualMin?this.__actualMax-this.__actualMin:e.prototype._getActualRange.call(this)},a.prototype._updateActualLimits=function(a,r,i,n,s){var o=this;void 0===n&&(n=null),void 0===s&&(s=null),e.prototype._updateActualLimits.call(this,a,r,i,n,s);var l,h=this._chart,c=this._lbls,_=this.actualMin.valueOf?this.actualMin.valueOf():this.actualMin,u=this.actualMax.valueOf?this.actualMax.valueOf():this.actualMax;this._lbls&&this===h.axisX&&(h._angles=[],this._isTimeAxis&&0===this._lbls.length&&this._values.forEach(function(t){c.push(o._formatValue(t))}),l=c.length,h.totalAngle<360&&(l-=1),c.forEach(function(t,e){var a=_+e/l*(u-_),r=h.startAngle+e/l*h.totalAngle;isNaN(r)||isNaN(a)||h._angles.push({value:o.convert(a),angle:r}),o._isTimeAxis?((null==o.__actualMin||o.__actualMin>t)&&(o.__actualMin=t),(null==o.__actualMax||o.__actualMax<t)&&(o.__actualMax=t)):null==o.__actualMin&&null==o.__actualMax||(o.__actualMin=null,o.__actualMax=null)}),this._isTimeAxis&&this._lbls.length>0&&(this._updateAutoFormat(0),this._lbls=c.map(function(e){var a=t.asDate(e).valueOf();return o._formatValue(a)})))},a.prototype._updateActualLimitsByChartType=function(e,a,r){var i=this._chart;if(i._getChartType()!=t.chart.ChartType.Column&&360===i.totalAngle&&this.axisType===t.chart.AxisType.X)if(this._isTimeAxis){var n=(i._xlabels.length||i._xvals.length)-1;r+=(r-a)/(n=n<1?1:n)}else i._isPolar||(r+=1);return{min:a,max:r}},a.prototype._isOverlapped=function(t,e,a,r){return!1},a.prototype.convert=function(e,a,r){var i=null==a?this.actualMax:a,n=null==r?this.actualMin:r,s=this._chart;if(!s)return NaN;if(i==n)return 0;if(this.axisType===t.chart.AxisType.X)return s.reversed?(s.startAngle-(e-n)/(i-n)*s.totalAngle)*Math.PI/180:(s.startAngle+(e-n)/(i-n)*s.totalAngle)*Math.PI/180;if(this._getLogBase()){if(e<=0)return NaN;var o=Math.log(i/n);return Math.log(e/n)/o*s._radius}return(e-n)/(i-n)*s._radius},a.prototype._renderLineAndTitle=function(e){var a=this._chart,r=t.chart.FlexChart._CSS_LINE,i=(a.startAngle-90)*Math.PI/180,n=a.totalAngle*Math.PI/180,s=a._radius;this.axisType===t.chart.AxisType.X&&this.axisLine&&(e.stroke=t.chart.FlexChart._FG,a._isPolar?(i=a.reversed?i-n:i,e.drawPieSegment(a._center.x,a._center.y,s,i,n,r)):this._renderPolygon(e,s,r))},a.prototype._renderPolygon=function(t,e,a){var r=this._chart,i=r._angles,n=i.length,s=r.axisX.minorGrid,o=[],l=[];if(i.forEach(function(t,a){if(s&&a>0){var n=r._convertPoint(e,t.value-(t.value-i[a-1].value)/2);o.push(n.x),l.push(n.y)}var h=r._convertPoint(e,t.value);o.push(h.x),l.push(h.y)}),r.totalAngle<360)o.push(r._center.x),l.push(r._center.y);else if(s&&n>=2){var h=r._convertPoint(e,i[n-1].value-(i[n-2].value-i[n-1].value)/2);o.push(h.x),l.push(h.y)}t.drawPolygon(o,l,a)},a.prototype._renderMinors=function(e,a,r,i){var n,s=this,o=this._chart,l=t.chart.FlexChart._CSS_GRIDLINE_MINOR,h=this.minorGrid,c=o._angles,_=c.length,u=o.axisX.minorGrid,p=t.chart.FlexChart._FG,d=this._GRIDLINE_WIDTH,g=(o.startAngle,Math.PI,o.totalAngle,Math.PI,this._TICK_OVERLAP),y=this.minorTickMarks,f=!0;this._vals.minor=a,y==t.chart.TickMark.Outside?g=1:y==t.chart.TickMark.Inside?g=-1:y==t.chart.TickMark.Cross?g=0:f=!1,this.axisType==t.chart.AxisType.Y?(e.stroke=p,e.strokeWidth=d,a.forEach(function(t){var a=s.convert(t);if(h&&s._renderYGridLine(e,o,a,l),f&&(c.forEach(function(t,r){if(u&&r>0){n=t.value-(t.value-c[r-1].value)/2;var i=o._convertPoint(a,n);s._drawMinorTickLength(e,g,n,i)}n=t.value;var l=o._convertPoint(a,n);s._drawMinorTickLength(e,g,n,l)}),u&&_>=2)){n=c[_-1].value-(c[_-2].value-c[_-1].value)/2;var r=o._convertPoint(a,n);s._drawMinorTickLength(e,g,n,r)}})):(e.stroke=p,e.strokeWidth=d,a.forEach(function(t){var a=s.convert(t);h&&(s._renderXGridLine(e,o,a,l),f&&s._drawMinorTickLength(e,g,a-Math.PI/2,o._convertPoint(o._radius,a)))}))},a.prototype._drawMinorTickLength=function(e,a,r,i){var n=this._TICK_HEIGHT,s=t.chart.FlexChart._CSS_TICK_MINOR,o=.5*(a-1)*n*Math.cos(r),l=.5*(1+a)*n*Math.cos(r),h=.5*(a-1)*n*Math.sin(r),c=.5*(1+a)*n*Math.sin(r);e.drawLine(i.x+o,i.y+h,i.x+l,i.y+c,s)},a.prototype._renderLabelsAndTicks=function(e,a,r,i,n,s,o,l,h){this._points=[],n=this.labelAngle||0;var c,_=this._chart,u=this.labelPadding||2,p=t.chart.FlexChart._CSS_LABEL,d=t.chart.FlexChart._CSS_GRIDLINE,g=t.chart.FlexChart._CSS_TICK,y=t.chart.FlexChart._FG,f=this._TICK_WIDTH,v=this.majorGrid,x=t.chart.FlexChart._FG,m=this._GRIDLINE_WIDTH,A=_.startAngle*Math.PI/180,P=(_.totalAngle,Math.PI,1);if(this.axisType==t.chart.AxisType.Y){v=r!=this.actualMin&&v&&r!=this.actualMax;var b=this.convert(r),T=_._convertPoint(b,A);if(v&&(e.stroke=x,e.strokeWidth=m,this._renderYGridLine(e,_,b,d)),e.stroke=y,e.strokeWidth=f,o){(c=(_.startAngle%360+360)%360)<=90&&c>=75||c>=270&&c<=285?P=2:(c>90&&c<=105||c<270&&c>=255)&&(P=0);var L=new t.Point(T.x-u-Math.abs(l-h),T.y);this._axisLabels.push({val:r,text:i,pos:L,align:2,vAlign:P,labelAngle:n,class:p})}s!=t.chart.TickMark.None&&e.drawLine(T.x-h*Math.cos(A),T.y-h*Math.sin(A),T.x-l*Math.cos(A),T.y-l*Math.sin(A),g)}else{var M,C,k,S=this.convert(r);if(v&&(e.stroke=x,e.strokeWidth=m,this._renderXGridLine(e,_,S,d)),e.stroke=y,e.strokeWidth=f,o)L=_._convertPoint(_._radius+u,S),M=_._angles&&_._angles.length?_._angles[a].angle:_.startAngle+(r-this.actualMin)*_.totalAngle/(this.actualMax-this.actualMin),M=(M%=360)>=0?M:M+360,C=this._getXLabelVAlign(M),k=this._getXLabelAlign(M),_._isPolar&&(i=this._formatValue(M)),n>0?t.chart.FlexChart._renderRotatedText(e,i,L,k,C,L,n,p):n<0?t.chart.FlexChart._renderRotatedText(e,i,L,k,C,L,n,p):this._renderLabel(e,r,i,L,k,C,p);s!=t.chart.TickMark.None&&this._renderXTick(e,_,S,g,l,h)}return!0},a.prototype._renderXGridLine=function(t,e,a,r){var i=e._center,n=e._convertPoint(e._radius,a);t.drawLine(i.x,i.y,n.x,n.y,r)},a.prototype._renderXTick=function(t,e,a,r,i,n){var s,o;e._center,s=e._convertPoint(e._radius+i,a),o=e._convertPoint(e._radius+n,a),t.drawLine(s.x,s.y,o.x,o.y,r)},a.prototype._renderYGridLine=function(t,e,a,r){e._angles;var i=e._center,n=e.startAngle*Math.PI/180,s=e.totalAngle*Math.PI/180;e._isPolar?(n=(e.startAngle-90)*Math.PI/180,n=e.reversed?n-s:n,t.drawPieSegment(i.x,i.y,a,n,s,r)):this._renderPolygon(t,a,r)},a.prototype._getXLabelVAlign=function(t){var e=1,a=this._chart,r=a.startAngle;return a.reversed&&(t=(360+r+(r%360-t%360))%360),0===t?e=2:180===t&&(e=0),e},a.prototype._getXLabelAlign=function(t){var e=0,a=this._chart,r=a.startAngle;return a.reversed&&(t=(360+r+(r%360-t%360))%360),t>0&&t<180?e=-1:t>180&&t<360&&(e=1),e+1},a.prototype._createTimeLabels=function(a,r,i,n){var s=this;if(this._axisType==t.chart.AxisType.Y)e.prototype._createTimeLabels.call(this,a,r,i,n);else{var o=this._values;if(this.format,!o||0===o.length)return;o.forEach(function(t){i.push(t),n.push(s._formatValue(t))})}},a.prototype._niceNumber=function(t,a,r){var i=this._chart,n=this.actualMax-this.actualMin,s=i.totalAngle;return s>360&&(s%=360),i._isPolar?s%8==0?n/8:s%6==0?n/6:s%4==0?n/4:s%3==0?n/3:s%2==0?n/2:e.prototype._niceNumber.call(this,t,a,r):e.prototype._niceNumber.call(this,t,a,r)},a}(t.chart.Axis);e.FlexRadarAxis=a})((e=t.chart||(t.chart={})).radar||(e.radar={}))}(wijmo||(wijmo={})),function(t){!function(e){e.radar||(e.radar={}),t._registerModule("wijmo.chart.radar",t.chart.radar)}(t.chart||(t.chart={}))}(wijmo||(wijmo={}));
var wijmo;!function(t){!function(e){!function(e){"use strict";var n=function(){function e(e,n){void 0===n&&(n=!1),this._strokeWidth=1,this._fontSize=null,this._fontFamily=null,this._cssPriority=!0,this._readOnly=!1,this._applyCanvasClip=function(t,e){var n=this._canvasRect[e];n&&(t.beginPath(),t.rect(n.left,n.top,n.width,n.height),t.clip(),t.closePath())},this._applyCanvasStyles=function(t,e,n,i,r){var a,s,l,o=this._canvas.getContext("2d"),h=this.stroke,p=this.fill,c=this.strokeWidth;e&&void 0!==e.stroke&&(h=e.stroke),e&&void 0!==e.fill&&(p=this._getOpacityColor(e.fill,e["fill-opacity"])),t&&(s=window.getComputedStyle(t),l=t.getBBox()),r?s?(o.fillStyle=s.fill,a=s.fontStyle+" "+s.fontWeight+" "+s.fontSize+" "+s.fontFamily,o.font=a):this.fontSize?(o.fillStyle=this.textFill,o.font=this.fontSize+" "+(this.fontFamily||"sans-serif")):this._canvasDefaultFont&&(o.fillStyle=this._canvasDefaultFont.textFill,a=this._canvasDefaultFont.fontSize+" "+this._canvasDefaultFont.fontFamily,o.font=a,o.font.replace(/\"/g,"'")!==a.replace(/\"/g,"'")&&(a=this._canvasDefaultFont.fontSize+" "+(o.font.split(" ")[1]||"sans-serif"),o.font=a)):(s&&(h=s.stroke&&"none"!==s.stroke?s.stroke:h,p=s.fill&&"none"!==s.fill?this._getOpacityColor(s.fill,s["fill-opacity"]):p,c=s.strokeWidth?s.strokeWidth:c),"none"!==h&&null!=h&&(this._applyColor("strokeStyle",h,l),o.lineWidth=+c.replace(/px/g,""),o.stroke()),i&&null!=p&&"transparent"!==p&&"none"!==p&&(this._applyColor("fillStyle",p,l),o.fill()))};this._element=e,this._canvas=document.createElement("canvas"),this._svgEngine=new t.chart._SvgRenderEngine(e),this._element.appendChild(this._canvas),this._applyCSSStyles=n}return e.prototype.beginRender=function(){var t,e=this._svgEngine.element,n=this._element;this._applyCSSStyles&&(this._svgEngine.beginRender(),n=e),this._element.appendChild(e),this._canvasRect={},t=window.getComputedStyle(n),this._canvasDefaultFont={fontSize:t.fontSize,fontFamily:t.fontFamily,textFill:t.color}},e.prototype.endRender=function(){this._applyCSSStyles&&this._svgEngine.endRender(),this._svgEngine.element.parentNode.removeChild(this._svgEngine.element)},e.prototype.setViewportSize=function(t,e){var n=this._canvas;n.getContext("2d"),this.fill;this._applyCSSStyles&&this._svgEngine.setViewportSize(t,e),n.width=t,n.height=e},Object.defineProperty(e.prototype,"element",{get:function(){return this._canvas},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fill",{get:function(){return this._fill},set:function(t){this._svgEngine.fill=t,this._fill=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fontSize",{get:function(){return this._fontSize},set:function(t){this._svgEngine.fontSize=t;var e=null==t||isNaN(t)?t:t+"px";this._fontSize=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fontFamily",{get:function(){return this._fontFamily},set:function(t){this._svgEngine.fontFamily=t,this._fontFamily=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"stroke",{get:function(){return this._stroke},set:function(t){this._svgEngine.stroke=t,this._stroke=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"strokeWidth",{get:function(){return this._strokeWidth},set:function(t){this._svgEngine.strokeWidth=t,this._strokeWidth=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"textFill",{get:function(){return this._textFill},set:function(t){this._svgEngine.textFill=t,this._textFill=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cssPriority",{get:function(){return this._cssPriority},set:function(t){this._svgEngine.cssPriority=t,this._cssPriority=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readOnly",{get:function(){return this._readOnly},set:function(t){this._readOnly=t},enumerable:!0,configurable:!0}),e.prototype.addClipRect=function(t,e){t&&e&&(this._applyCSSStyles&&this._svgEngine.addClipRect(t,e),this._canvasRect[e]=t.clone())},e.prototype.drawEllipse=function(t,e,n,i,r,a){if(!this.readOnly){var s,l=this._canvas.getContext("2d");return this._applyCSSStyles&&(s=this._svgEngine.drawEllipse(t,e,n,i,r,a)),l.save(),l.beginPath(),l.ellipse?l.ellipse(t,e,n,i,0,0,2*Math.PI):(l.translate(t,e),l.scale(1,i/n),l.translate(-t,-e),l.arc(t,e,n,0,2*Math.PI),l.scale(1,1)),this._applyCanvasStyles(s,a,r,!0),l.restore(),s}},e.prototype.drawRect=function(t,e,n,i,r,a,s){if(!this.readOnly){var l,o=this._canvas.getContext("2d");return this._applyCSSStyles&&(l=this._svgEngine.drawRect(t,e,n,i,r,a,s)),o.save(),this._applyCanvasClip(o,s),o.beginPath(),o.rect(t,e,n,i),this._applyCanvasStyles(l,a,r,!0),o.restore(),l}},e.prototype.drawLine=function(t,e,n,i,r,a){if(!this.readOnly){var s,l=this._canvas.getContext("2d");return this._applyCSSStyles&&(s=this._svgEngine.drawLine(t,e,n,i,r,a)),l.save(),l.beginPath(),l.moveTo(t,e),l.lineTo(n,i),this._applyCanvasStyles(s,a,r),l.restore(),s}},e.prototype.drawLines=function(t,e,n,i,r,a){if(t&&e&&0!==t.length&&0!==e.length&&!this.readOnly){var s,l,o=this._canvas.getContext("2d"),h=a||Math.min(t.length,e.length);for(this._applyCSSStyles&&(s=this._svgEngine.drawLines([0,1],[1,0],n,i,r)),o.save(),this._applyCanvasClip(o,r),o.beginPath(),o.moveTo(t[0],e[0]),l=1;l<h;l++)o.lineTo(t[l],e[l]);return this._applyCanvasStyles(s,i,n),o.restore(),s}},e.prototype.drawSplines=function(e,n,i,r,a,s){if(e&&n&&0!==e.length&&0!==n.length&&!this.readOnly){var l,o,h=this._canvas.getContext("2d"),p=new t.chart._Spline(e,n,s).calculate(),c=p.xs,f=p.ys,y=Math.min(c.length,f.length);for(this._applyCSSStyles&&(l=this._svgEngine.drawSplines([0,1],[1,0],i,r,a)),h.save(),this._applyCanvasClip(h,a),h.beginPath(),h.moveTo(c[0],f[0]),o=1;o<y;o++)h.lineTo(c[o],f[o]);return this._applyCanvasStyles(l,r,i),h.restore(),l}},e.prototype.drawPolygon=function(t,e,n,i,r){if(t&&e&&0!==t.length&&0!==e.length&&!this.readOnly){var a,s,l=this._canvas.getContext("2d"),o=Math.min(t.length,e.length);for(this._applyCSSStyles&&(a=this._svgEngine.drawPolygon(t,e,n,i,r)),l.save(),this._applyCanvasClip(l,r),l.beginPath(),l.moveTo(t[0],e[0]),s=1;s<o;s++)l.lineTo(t[s],e[s]);return l.closePath(),this._applyCanvasStyles(a,i,n,!0),l.restore(),a}},e.prototype.drawPieSegment=function(t,e,n,i,r,a,s,l){if(!this.readOnly){var o,h=this._canvas.getContext("2d"),p=i,c=i+r;return this._applyCSSStyles&&(o=this._svgEngine.drawPieSegment(t,e,n,i,r,a,s,l)),h.save(),this._applyCanvasClip(h,l),h.beginPath(),h.moveTo(t,e),h.arc(t,e,n,p,c,!1),h.lineTo(t,e),this._applyCanvasStyles(o,s,a,!0),h.restore(),o}},e.prototype.drawDonutSegment=function(e,n,i,r,a,s,l,o,h){if(!this.readOnly){var p,c,f,y=this._canvas.getContext("2d"),g=a,u=a+s;return this._applyCSSStyles&&(p=this._svgEngine.drawDonutSegment(e,n,i,r,a,s,l,o,h)),(c=new t.Point(e,n)).x+=r*Math.cos(g),c.y+=r*Math.sin(g),(f=new t.Point(e,n)).x+=r*Math.cos(u),f.y+=r*Math.sin(u),y.save(),this._applyCanvasClip(y,h),y.beginPath(),y.moveTo(c.x,c.y),y.arc(e,n,i,g,u,!1),y.lineTo(f.x,f.y),y.arc(e,n,r,u,g,!0),this._applyCanvasStyles(p,o,l,!0),y.restore(),p}},e.prototype.drawString=function(t,e,n,i){if(!this.readOnly){var r,a=this._canvas.getContext("2d");return this._applyCSSStyles&&(r=this._svgEngine.drawString(t,e,n,i)),a.save(),a.textBaseline="bottom",this._applyCanvasStyles(r,i,n,!0,!0),a.fillText(t,e.x,e.y),a.restore(),r}},e.prototype.drawStringRotated=function(t,e,n,i,r,a){if(!this.readOnly){var s,l=this._canvas.getContext("2d");l.measureText(t);return this._applyCSSStyles&&(s=this._svgEngine.drawStringRotated(t,e,n,i,r,a)),l.save(),l.textBaseline="bottom",l.translate(n.x,n.y),l.rotate(Math.PI/180*i),l.translate(-n.x,-n.y),this._applyCanvasStyles(s,a,r,!0,!0),l.fillText(t,e.x,e.y),l.restore(),s}},e.prototype.measureString=function(e,n,i,r){var a,s=s=this._canvas.getContext("2d");return this._applyCSSStyles?this._svgEngine.measureString(e,n,i,r):(this._applyCanvasStyles(null,null,n,!0,!0),a=s.measureText(e).width,new t.Size(a,1.5*parseInt(s.font)))},e.prototype.startGroup=function(t,e,n){void 0===n&&(n=!1);var i,r=this._canvas.getContext("2d");return this._applyCSSStyles&&(i=this._svgEngine.startGroup(t,e,n)),r.save(),this._applyCanvasClip(r,e),i},e.prototype.endGroup=function(){this._applyCSSStyles&&this._svgEngine.endGroup(),this._canvas.getContext("2d").restore()},e.prototype.drawImage=function(t,e,n,i,r){if(!this.readOnly){var a,s=this._canvas.getContext("2d"),l=new Image;return this._applyCSSStyles&&(a=this._svgEngine.drawImage(t,e,n,i,r)),l.onload=function(){s.drawImage(l,e,n,i,r)},l.src=t,a}},e.prototype._getOpacityColor=function(e,n){var i=new t.Color(e);return e.indexOf("url")>-1?this.fill:e.indexOf("-")>-1?(this.fill=e,e):(null!=n&&1===i.a&&(i.a=isNaN(n)?1:Number(n)),i.toString())},e.prototype._applyColor=function(e,n,r){var a=i.tryParse(n),s=this._canvas.getContext("2d");if(null!=a)if(t.isString(a)||null==r)s[e]=a;else{var l;if(null!=a.x1)l=a.relative?s.createLinearGradient(r.x+a.x1*r.width,r.y+a.y1*r.height,r.x+a.x2*r.width,r.y+a.y2*r.height):s.createLinearGradient(a.x1,a.y1,a.x2,a.y2);else if(null!=a.r)if(a.relative){var o=r.x+a.cx*r.width,h=r.y+a.cy*r.height,p=a.r*r.width,c=a.r*r.height/p,f=r.x+(null==a.fx?a.cx:a.fx)*r.width,y=r.y+(null==a.fy?a.cy:a.fy)*r.height,g=(null==a.fr?0:a.fr)*r.width,u=(null==a.fr?0:a.fr)*r.height,d=Math.min(g,u);l=s.createRadialGradient(f,y/c,d,o,h/c,p),s.setTransform(1,0,0,c,0,0)}else l=s.createRadialGradient(null==a.fx?a.cx:a.fx,null==a.fy?a.cy:a.fy,a.fr||0,a.cx,a.cy,a.r);a.colors&&a.colors.length>0&&null!=l&&a.colors.forEach(function(e){var n=new t.Color("#000000");null!=e.color&&(n=e.color),null!=e.opacity&&(n.a=e.opacity),l.addColorStop(e.offset,n.toString())}),s[e]=l}},e}();e._CanvasRenderEngine=n;var i=function(){function e(){}return e.tryParse=function(n){if(e.parsedColor[n])return e.parsedColor[n];if(null==n||-1===n.indexOf("-"))return n;var i,r=n.replace(/\s+/g,"").split(/\-/g),a=r[0][0],s=!1,l=r[0].match(/\(\S+\)/)[0].replace(/[\(\\)]/g,"").split(/\,/g);"l"===a||"L"===a?(i={x1:"0",y1:"0",x2:"0",y2:"0",colors:[]},"l"===a&&(s=!0),["x1","y1","x2","y2"].forEach(function(t,e){null!=l[e]&&(i[t]=+l[e])})):"r"!==a&&"R"!==a||(i={cx:"0",cy:"0",r:"0",colors:[]},"r"===a&&(s=!0),["cx","cy","r","fx","fy","fr"].forEach(function(t,e){null!=l[e]&&""!==l[e]&&(i[t]=+l[e])})),i.relative=s,e.parsedColor[n]=i;var o=r.length-1;return r.forEach(function(e,n){e.indexOf(")")>-1&&(e=e.match(/\)\S+/)[0].replace(")",""));var r=e.split(":"),a={color:new t.Color("#000000")};null!=r[0]&&(a.color=t.Color.fromString(r[0])),null!=r[1]?a.offset=+r[1]:a.offset=n/o,null!=r[2]&&(a.opacity=+r[2]),i.colors.push(a)}),i},e.parsedColor={},e}();if(t.chart.FlexChartBase&&t.chart.FlexChartBase.prototype&&t.chart.FlexChartBase.prototype._exportToImage){var r=t.chart.FlexChartBase.prototype._exportToImage;t.chart.FlexChartBase.prototype._exportToImage=function(t,e){if("svg"!==t){var i=this._bgColor(this.hostElement);this._isTransparent(i)&&(i="#ffffff");var a,s,l=new n(this.hostElement,!0);this._render(l,!1,i),a=(s=l.element).toDataURL("image/"+t),s.parentNode.removeChild(s),e.call(null,a),s=null,l=null}else r.call(this,t,e)}}}(e.render||(e.render={}))}(t.chart||(t.chart={}))}(wijmo||(wijmo={})),function(t){!function(e){e.render||(e.render={}),t._registerModule("wijmo.chart.render",t.chart.render)}(t.chart||(t.chart={}))}(wijmo||(wijmo={}));
var wijmo,__extends=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();!function(t){!function(t){!function(t){"use strict";var e=function(){function t(){}return t.prototype.earcut=function(t,e,i){void 0===e&&(e=null),void 0===i&&(i=null),i=i||2;var r,n,o,s,a,h,u,f=e&&e.length,l=f?e[0]*i:t.length,p=this.linkedList(t,0,l,i,!0),c=[];if(!p||p.next===p.prev)return c;if(f&&(p=this.eliminateHoles(t,e,p,i)),t.length>80*i){r=o=t[0],n=s=t[1];for(var v=i;v<l;v+=i)a=t[v],h=t[v+1],a<r&&(r=a),h<n&&(n=h),a>o&&(o=a),h>s&&(s=h);u=0!==(u=Math.max(o-r,s-n))?1/u:0}return this.earcutLinked(p,c,i,r,n,u),c},t.prototype.linkedList=function(t,e,i,r,n){var o,s;if(n===this.signedArea(t,e,i,r)>0)for(o=e;o<i;o+=r)s=this.insertNode(o,t[o],t[o+1],s);else for(o=i-r;o>=e;o-=r)s=this.insertNode(o,t[o],t[o+1],s);return s&&this.equals(s,s.next)&&(this.removeNode(s),s=s.next),s},t.prototype.filterPoints=function(t,e){if(void 0===e&&(e=null),!t)return t;e||(e=t);var i,r=t;do{if(i=!1,r.steiner||!this.equals(r,r.next)&&0!==this.area(r.prev,r,r.next))r=r.next;else{if(this.removeNode(r),(r=e=r.prev)===r.next)break;i=!0}}while(i||r!==e);return e},t.prototype.earcutLinked=function(t,e,i,r,n,o,s){if(void 0===s&&(s=null),t){!s&&o&&this.indexCurve(t,r,n,o);for(var a,h,u=t;t.prev!==t.next;)if(a=t.prev,h=t.next,o?this.isEarHashed(t,r,n,o):this.isEar(t))e.push(a.i/i),e.push(t.i/i),e.push(h.i/i),this.removeNode(t),t=h.next,u=h.next;else if((t=h)===u){s?1===s?(t=this.cureLocalIntersections(this.filterPoints(t),e,i),this.earcutLinked(t,e,i,r,n,o,2)):2===s&&this.splitEarcut(t,e,i,r,n,o):this.earcutLinked(this.filterPoints(t),e,i,r,n,o,1);break}}},t.prototype.isEar=function(t){var e=t.prev,i=t,r=t.next;if(this.area(e,i,r)>=0)return!1;for(var n=t.next.next;n!==t.prev;){if(this.pointInTriangle(e.x,e.y,i.x,i.y,r.x,r.y,n.x,n.y)&&this.area(n.prev,n,n.next)>=0)return!1;n=n.next}return!0},t.prototype.isEarHashed=function(t,e,i,r){var n=t.prev,o=t,s=t.next;if(this.area(n,o,s)>=0)return!1;for(var a=n.x<o.x?n.x<s.x?n.x:s.x:o.x<s.x?o.x:s.x,h=n.y<o.y?n.y<s.y?n.y:s.y:o.y<s.y?o.y:s.y,u=n.x>o.x?n.x>s.x?n.x:s.x:o.x>s.x?o.x:s.x,f=n.y>o.y?n.y>s.y?n.y:s.y:o.y>s.y?o.y:s.y,l=this.zOrder(a,h,e,i,r),p=this.zOrder(u,f,e,i,r),c=t.prevZ,v=t.nextZ;c&&c.z>=l&&v&&v.z<=p;){if(c!==t.prev&&c!==t.next&&this.pointInTriangle(n.x,n.y,o.x,o.y,s.x,s.y,c.x,c.y)&&this.area(c.prev,c,c.next)>=0)return!1;if(c=c.prevZ,v!==t.prev&&v!==t.next&&this.pointInTriangle(n.x,n.y,o.x,o.y,s.x,s.y,v.x,v.y)&&this.area(v.prev,v,v.next)>=0)return!1;v=v.nextZ}for(;c&&c.z>=l;){if(c!==t.prev&&c!==t.next&&this.pointInTriangle(n.x,n.y,o.x,o.y,s.x,s.y,c.x,c.y)&&this.area(c.prev,c,c.next)>=0)return!1;c=c.prevZ}for(;v&&v.z<=p;){if(v!==t.prev&&v!==t.next&&this.pointInTriangle(n.x,n.y,o.x,o.y,s.x,s.y,v.x,v.y)&&this.area(v.prev,v,v.next)>=0)return!1;v=v.nextZ}return!0},t.prototype.cureLocalIntersections=function(t,e,i){var r=t;do{var n=r.prev,o=r.next.next;!this.equals(n,o)&&this.intersects(n,r,r.next,o)&&this.locallyInside(n,o)&&this.locallyInside(o,n)&&(e.push(n.i/i),e.push(r.i/i),e.push(o.i/i),this.removeNode(r),this.removeNode(r.next),r=t=o),r=r.next}while(r!==t);return this.filterPoints(r)},t.prototype.splitEarcut=function(t,e,i,r,n,o){var s=t;do{for(var a=s.next.next;a!==s.prev;){if(s.i!==a.i&&this.isValidDiagonal(s,a)){var h=this.splitPolygon(s,a);return s=this.filterPoints(s,s.next),h=this.filterPoints(h,h.next),this.earcutLinked(s,e,i,r,n,o),void this.earcutLinked(h,e,i,r,n,o)}a=a.next}s=s.next}while(s!==t)},t.prototype.eliminateHoles=function(t,e,i,r){var n,o,s,a,h,u=[];for(n=0,o=e.length;n<o;n++)s=e[n]*r,a=n<o-1?e[n+1]*r:t.length,(h=this.linkedList(t,s,a,r,!1))===h.next&&(h.steiner=!0),u.push(this.getLeftmost(h));for(u.sort(this.compareX),n=0;n<u.length;n++)this.eliminateHole(u[n],i),i=this.filterPoints(i,i.next);return i},t.prototype.compareX=function(t,e){return t.x-e.x},t.prototype.eliminateHole=function(t,e){if(e=this.findHoleBridge(t,e)){var i=this.splitPolygon(e,t);this.filterPoints(e,e.next),this.filterPoints(i,i.next)}},t.prototype.findHoleBridge=function(t,e){var i,r=e,n=t.x,o=t.y,s=-1/0;do{if(o<=r.y&&o>=r.next.y&&r.next.y!==r.y){var a=r.x+(o-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(a<=n&&a>s){if(s=a,a===n){if(o===r.y)return r;if(o===r.next.y)return r.next}i=r.x<r.next.x?r:r.next}}r=r.next}while(r!==e);if(!i)return null;if(n===s)return i;var h,u=i,f=i.x,l=i.y,p=1/0;r=i;do{n>=r.x&&r.x>=f&&n!==r.x&&this.pointInTriangle(o<l?n:s,o,f,l,o<l?s:n,o,r.x,r.y)&&(h=Math.abs(o-r.y)/(n-r.x),this.locallyInside(r,t)&&(h<p||h===p&&(r.x>i.x||r.x===i.x&&this.sectorContainsSector(i,r)))&&(i=r,p=h)),r=r.next}while(r!==u);return i},t.prototype.sectorContainsSector=function(t,e){return this.area(t.prev,t,e.prev)<0&&this.area(e.next,t,t.next)<0},t.prototype.indexCurve=function(t,e,i,r){var n=t;do{null===n.z&&(n.z=this.zOrder(n.x,n.y,e,i,r)),n.prevZ=n.prev,n.nextZ=n.next,n=n.next}while(n!==t);n.prevZ.nextZ=null,n.prevZ=null,this.sortLinked(n)},t.prototype.sortLinked=function(t){var e,i,r,n,o,s,a,h,u=1;do{for(i=t,t=null,o=null,s=0;i;){for(s++,r=i,a=0,e=0;e<u&&(a++,r=r.nextZ);e++);for(h=u;a>0||h>0&&r;)0!==a&&(0===h||!r||i.z<=r.z)?(n=i,i=i.nextZ,a--):(n=r,r=r.nextZ,h--),o?o.nextZ=n:t=n,n.prevZ=o,o=n;i=r}o.nextZ=null,u*=2}while(s>1);return t},t.prototype.zOrder=function(t,e,i,r,n){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-i)*n)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-r)*n)|e<<8))|e<<4))|e<<2))|e<<1))<<1},t.prototype.getLeftmost=function(t){var e=t,i=t;do{(e.x<i.x||e.x===i.x&&e.y<i.y)&&(i=e),e=e.next}while(e!==t);return i},t.prototype.pointInTriangle=function(t,e,i,r,n,o,s,a){return(n-s)*(e-a)-(t-s)*(o-a)>=0&&(t-s)*(r-a)-(i-s)*(e-a)>=0&&(i-s)*(o-a)-(n-s)*(r-a)>=0},t.prototype.isValidDiagonal=function(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!this.intersectsPolygon(t,e)&&(this.locallyInside(t,e)&&this.locallyInside(e,t)&&this.middleInside(t,e)&&(this.area(t.prev,t,e.prev)||this.area(t,e.prev,e))||this.equals(t,e)&&this.area(t.prev,t,t.next)>0&&this.area(e.prev,e,e.next)>0)},t.prototype.area=function(t,e,i){return(e.y-t.y)*(i.x-e.x)-(e.x-t.x)*(i.y-e.y)},t.prototype.equals=function(t,e){return t.x===e.x&&t.y===e.y},t.prototype.intersects=function(t,e,i,r){var n=this.sign(this.area(t,e,i)),o=this.sign(this.area(t,e,r)),s=this.sign(this.area(i,r,t)),a=this.sign(this.area(i,r,e));return n!==o&&s!==a||(!(0!==n||!this.onSegment(t,i,e))||(!(0!==o||!this.onSegment(t,r,e))||(!(0!==s||!this.onSegment(i,t,r))||!(0!==a||!this.onSegment(i,e,r)))))},t.prototype.onSegment=function(t,e,i){return e.x<=Math.max(t.x,i.x)&&e.x>=Math.min(t.x,i.x)&&e.y<=Math.max(t.y,i.y)&&e.y>=Math.min(t.y,i.y)},t.prototype.sign=function(t){return t>0?1:t<0?-1:0},t.prototype.intersectsPolygon=function(t,e){var i=t;do{if(i.i!==t.i&&i.next.i!==t.i&&i.i!==e.i&&i.next.i!==e.i&&this.intersects(i,i.next,t,e))return!0;i=i.next}while(i!==t);return!1},t.prototype.locallyInside=function(t,e){return this.area(t.prev,t,t.next)<0?this.area(t,e,t.next)>=0&&this.area(t,t.prev,e)>=0:this.area(t,e,t.prev)<0||this.area(t,t.next,e)<0},t.prototype.middleInside=function(t,e){var i=t,r=!1,n=(t.x+e.x)/2,o=(t.y+e.y)/2;do{i.y>o!=i.next.y>o&&i.next.y!==i.y&&n<(i.next.x-i.x)*(o-i.y)/(i.next.y-i.y)+i.x&&(r=!r),i=i.next}while(i!==t);return r},t.prototype.splitPolygon=function(t,e){var r=new i(t.i,t.x,t.y),n=new i(e.i,e.x,e.y),o=t.next,s=e.prev;return t.next=e,e.prev=t,r.next=o,o.prev=r,n.next=r,r.prev=n,s.next=n,n.prev=s,n},t.prototype.insertNode=function(t,e,r,n){var o=new i(t,e,r);return n?(o.next=n.next,o.prev=n,n.next.prev=o,n.next=o):(o.prev=o,o.next=o),o},t.prototype.removeNode=function(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)},t.prototype.deviation=function(t,e,i,r){var n=e&&e.length,o=n?e[0]*i:t.length,s=Math.abs(this.signedArea(t,0,o,i));if(n)for(var a=0,h=e.length;a<h;a++){var u=e[a]*i,f=a<h-1?e[a+1]*i:t.length;s-=Math.abs(this.signedArea(t,u,f,i))}var l=0;for(a=0;a<r.length;a+=3){var p=r[a]*i,c=r[a+1]*i,v=r[a+2]*i;l+=Math.abs((t[p]-t[v])*(t[c+1]-t[p+1])-(t[p]-t[c])*(t[v+1]-t[p+1]))}return 0===s&&0===l?0:Math.abs((l-s)/s)},t.prototype.signedArea=function(t,e,i,r){for(var n=0,o=e,s=i-r;o<i;o+=r)n+=(t[s]-t[o])*(t[o+1]+t[s+1]),s=o;return n},t.prototype.flatten=function(t){for(var e=t[0][0].length,i={vertices:[],holes:[],dimensions:e},r=0,n=0;n<t.length;n++){for(var o=0;o<t[n].length;o++)for(var s=0;s<e;s++)i.vertices.push(t[n][o][s]);n>0&&(r+=t[n-1].length,i.holes.push(r))}return i},t}();t._EarCut=e;var i=function(){return function(t,e,i){this.i=t,this.x=e,this.y=i,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}}()}(t.webgl||(t.webgl={}))}(t.chart||(t.chart={}))}(wijmo||(wijmo={})),function(t){!function(e){!function(e){var i=function(e){function i(t){var i=e.call(this,t)||this;return i.primitives=[],i.clipRects={},i.init(),i}return __extends(i,e),i.prototype.beginRender=function(){e.prototype.beginRender.call(this),this.isIE?this.element.appendChild(this.canvas):this.element.appendChild(this.foCanvas);var t=this.gl;t.viewport(0,0,t.canvas.width,t.canvas.height),t.clearColor(0,0,0,0),t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT),t.enable(t.BLEND),t.blendFuncSeparate(t.SRC_ALPHA,t.ONE_MINUS_SRC_ALPHA,t.ONE,t.ONE_MINUS_SRC_ALPHA),this.primitives.forEach(function(t){return t.beginRender()}),this.clipRects={}},i.prototype.setViewportSize=function(t,i){e.prototype.setViewportSize.call(this,t,i),this.foCanvas&&(this.foCanvas.setAttribute("width",t.toString()),this.foCanvas.setAttribute("height",i.toString()));var r=this.gl;r.canvas.width=t,r.canvas.height=i},i.prototype.endRender=function(){if(this.primitives.forEach(function(t){return t.endRender()}),e.prototype.endRender.call(this),this.isIE){var t=document.createElementNS(i.svgns,"image");t.setAttribute("width",this.gl.canvas.width),t.setAttribute("height",this.gl.canvas.height),t.setAttribute("href",this.canvas.toDataURL()),this.element.appendChild(t),this.canvas.parentNode==this.element&&this.element.removeChild(this.canvas)}},i.prototype.drawEllipse=function(i,r,n,o,s,a){return this.useSvg?e.prototype.drawEllipse.call(this,i,r,n,o,s,a):(this.edraw.drawEllipse(new t.Rect(i-n,r-o,2*n,2*o),this.fill),null)},i.prototype.drawRect=function(i,r,n,o,s,a,h){return"wj-plot-area"==this._groupCls||this.useSvg?e.prototype.drawRect.call(this,i,r,n,o,s,a,h):(this.rdraw.drawRect(new t.Rect(i,r,n,o),this.fill),null)},i.prototype.drawLines=function(t,e,i,r,n,o){return this.ldraw.drawLines(t,e,o,this.stroke,n?this.clipRects[n]:null),null},i.prototype.drawPolygon=function(t,i,r,n,o){return this.useSvg?e.prototype.drawPolygon.call(this,t,i,r,n,o):(this.adraw.drawPolygon(t,i,this.fill,o?this.clipRects[o]:null),null)},i.prototype.addClipRect=function(t,i){e.prototype.addClipRect.call(this,t,i),t&&i&&(this.clipRects[i]=t)},i.prototype.init=function(){if(this.canvas=document.createElement("canvas"),this.gl=this.canvas.getContext("webgl",{preserveDrawingBuffer:!0}),this.gl){this.canvas.setAttribute("style","margin:0px;padding:0px;border:none");var t=document.createElementNS("http://www.w3.org/1999/xhtml","div");t.setAttribute("style","margin:0px;padding:0px;border:none"),this.foCanvas=document.createElementNS(i.svgns,"foreignObject"),t.appendChild(this.canvas),this.foCanvas.appendChild(t)}else this.gl=this.canvas.getContext("experimental-webgl"),this.isIE=!0,this.canvas.setAttribute("style","visibility:hidden;position:absolute;top:-1000px;margin:0px;padding:0px;border:none");this.rdraw=new n(this.gl),this.edraw=new o(this.gl),this.ldraw=new s(this.gl),this.adraw=new a(this.gl),this.primitives.push(this.rdraw,this.edraw,this.ldraw,this.adraw)},i.svgns="http://www.w3.org/2000/svg",i}(t.chart._SvgRenderEngine);e.WebGLRenderEngine=i;var r=function(){function t(t){this._vsSource="\n    attribute vec2 a_position;\n    \n    uniform vec2 u_resolution;\n    \n    void main() {\n      vec2 zeroToOne = a_position / u_resolution;\n      vec2 zeroToTwo = zeroToOne * 2.0;\n      vec2 clipSpace = zeroToTwo - 1.0;\n      gl_Position = vec4(clipSpace * vec2(1, -1), 0, 1);\n    }\n    ",this._fsSource="\n    precision mediump float;\n    uniform vec4 u_color;\n    void main() {\n      gl_FragColor = u_color;\n    }\n    ",this.gl=t}return t.prototype.init=function(){var t=this.gl;this.shaderProgram=this.initShaderProgram(this.vsSource,this.fsSource),this.positionAttributeLocation=t.getAttribLocation(this.shaderProgram,"a_position"),this.resolutionUniformLocation=t.getUniformLocation(this.shaderProgram,"u_resolution"),this.colorLocation=t.getUniformLocation(this.shaderProgram,"u_color"),t.useProgram(this.shaderProgram),this.positionBuffer=t.createBuffer()},t.prototype.beginRender=function(){var t=this.gl;t.useProgram(this.shaderProgram),t.uniform2f(this.resolutionUniformLocation,t.canvas.width,t.canvas.height)},t.prototype.endRender=function(){this.flush()},t.prototype.flush=function(){},t.prototype.initShaderProgram=function(t,e){var i=this.gl,r=this.loadShader(i.VERTEX_SHADER,t),n=this.loadShader(i.FRAGMENT_SHADER,e),o=i.createProgram();return i.attachShader(o,r),i.attachShader(o,n),i.linkProgram(o),i.getProgramParameter(o,i.LINK_STATUS)?o:(alert("Unable to initialize the shader program: "+i.getProgramInfoLog(o)),null)},t.prototype.loadShader=function(t,e){var i=this.gl,r=i.createShader(t);return i.shaderSource(r,e),i.compileShader(r),i.getShaderParameter(r,i.COMPILE_STATUS)?r:(alert("An error occurred compiling the shaders: "+i.getShaderInfoLog(r)),i.deleteShader(r),null)},Object.defineProperty(t.prototype,"vsSource",{get:function(){return this._vsSource},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fsSource",{get:function(){return this._fsSource},enumerable:!0,configurable:!0}),t}(),n=function(e){function i(t){var i=e.call(this,t)||this;return i.BUFFER_SIZE=1e4,i.bufRects=[],i.bufLen=0,i.init(),i}return __extends(i,e),i.prototype.initBuffers=function(){if(!this.buffer){var t=this.gl;this.buffer=new Float32Array(12*this.BUFFER_SIZE),this.bufRects=new Array(this.BUFFER_SIZE),t.enableVertexAttribArray(this.positionAttributeLocation),t.bindBuffer(t.ARRAY_BUFFER,this.positionBuffer),t.vertexAttribPointer(this.positionAttributeLocation,2,t.FLOAT,!1,0,0),t.bufferData(t.ARRAY_BUFFER,4*this.buffer.length,t.DYNAMIC_DRAW)}},i.prototype.drawRect=function(t,e){this.initBuffers(),e!==this.previousFill&&(this.flush(),this.previousFill=e),this.bufRects[this.bufLen++]=t,this.bufLen>=this.BUFFER_SIZE&&this.flush()},i.prototype.flush=function(){if(0!=this.bufLen){var e=this.gl;e.useProgram(this.shaderProgram);var i=new t.Color(this.previousFill);e.uniform4f(this.colorLocation,i.r/255,i.g/255,i.b/255,i.a),e.enableVertexAttribArray(this.positionAttributeLocation),e.bindBuffer(e.ARRAY_BUFFER,this.positionBuffer),e.vertexAttribPointer(this.positionAttributeLocation,2,e.FLOAT,!1,0,0),this.setData(),e.enableVertexAttribArray(this.positionAttributeLocation),e.bindBuffer(e.ARRAY_BUFFER,this.positionBuffer),e.vertexAttribPointer(this.positionAttributeLocation,2,e.FLOAT,!1,0,0),e.drawArrays(e.TRIANGLES,0,6*this.bufLen),this.bufLen=0}},i.prototype.setData=function(){for(var t=this.gl,e=this.bufLen,i=this.buffer,r=0;r<e;r++){var n=this.bufRects[r],o=n.left,s=n.right,a=n.top,h=n.bottom,u=12*r;i[u]=o,i[u+1]=a,i[u+2]=s,i[u+3]=a,i[u+4]=o,i[u+5]=h,i[u+6]=o,i[u+7]=h,i[u+8]=s,i[u+9]=a,i[u+10]=s,i[u+11]=h}t.bufferSubData(t.ARRAY_BUFFER,0,i.subarray(0,12*e))},i}(r),o=function(e){function i(t){var i=e.call(this,t)||this;i.NTRIANGLES=12,i.BUFFER_SIZE=1e4,i.bufRects=new Array(i.BUFFER_SIZE),i.bufLen=0,i.sin1=new Float32Array(i.NTRIANGLES),i.sin2=new Float32Array(i.NTRIANGLES),i.cos1=new Float32Array(i.NTRIANGLES),i.cos2=new Float32Array(i.NTRIANGLES),i.data=new Float32Array(i.BUFFER_SIZE*i.NTRIANGLES*6);for(var r=2*Math.PI/i.NTRIANGLES,n=0;n<i.NTRIANGLES;n++){var o=r*n;i.sin1[n]=Math.sin(o),i.cos1[n]=Math.cos(o),i.sin2[n]=Math.sin(o+r),i.cos2[n]=Math.cos(o+r)}return i.init(),t.enableVertexAttribArray(i.positionAttributeLocation),t.bindBuffer(t.ARRAY_BUFFER,i.positionBuffer),t.vertexAttribPointer(i.positionAttributeLocation,2,t.FLOAT,!1,0,0),t.bufferData(t.ARRAY_BUFFER,4*i.data.length,t.DYNAMIC_DRAW),i}return __extends(i,e),i.prototype.drawEllipse=function(t,e){e!==this.previousFill&&(this.flush(),this.previousFill=e),this.bufRects[this.bufLen++]=t,this.bufLen>=this.BUFFER_SIZE&&this.flush()},i.prototype.flush=function(){if(0!=this.bufLen){var e=this.gl;e.useProgram(this.shaderProgram);var i=new t.Color(this.previousFill);e.uniform4f(this.colorLocation,i.r/255,i.g/255,i.b/255,i.a),e.enableVertexAttribArray(this.positionAttributeLocation),e.bindBuffer(e.ARRAY_BUFFER,this.positionBuffer),e.vertexAttribPointer(this.positionAttributeLocation,2,e.FLOAT,!1,0,0),this.setData(),e.enableVertexAttribArray(this.positionAttributeLocation),e.bindBuffer(e.ARRAY_BUFFER,this.positionBuffer),e.vertexAttribPointer(this.positionAttributeLocation,2,e.FLOAT,!1,0,0),e.drawArrays(e.TRIANGLES,0,this.bufLen*this.NTRIANGLES*3),this.bufLen=0}},i.prototype.setData=function(){for(var t=this.gl,e=this.bufLen,i=this.data,r=0,n=0;n<e;n++)for(var o=this.bufRects[n],s=.5*o.width,a=.5*o.height,h=o.left+s,u=o.top+a,f=0;f<this.NTRIANGLES;f++)i[r=6*(n*this.NTRIANGLES+f)]=h,i[r+1]=u,i[r+2]=h+s*this.sin1[f],i[r+3]=u+a*this.cos1[f],i[r+4]=h+s*this.sin2[f],i[r+5]=u+a*this.cos2[f];t.bufferSubData(t.ARRAY_BUFFER,0,i.subarray(0,r+6))},i}(r),s=(function(e){function i(t){var i=e.call(this,t)||this;return i.BUFFER_SIZE=1e5,i.bufferLen=0,i._vsSource1="\n    attribute vec2 a_position;\n    uniform vec2 u_resolution;\n    void main() {\n      vec2 zeroToOne = a_position / u_resolution;\n      vec2 zeroToTwo = zeroToOne * 2.0;\n      vec2 clipSpace = zeroToTwo - 1.0;\n      gl_Position = vec4(clipSpace * vec2(1, -1), 0, 1);\n      gl_PointSize = 5.0;\n    }\n    ",i.init(),i}__extends(i,e),i.prototype.initBuffers=function(){if(!this.buffer){var t=this.gl;this.buffer=new Float32Array(this.BUFFER_SIZE),t.enableVertexAttribArray(this.positionAttributeLocation),t.bindBuffer(t.ARRAY_BUFFER,this.positionBuffer),t.vertexAttribPointer(this.positionAttributeLocation,2,t.FLOAT,!1,0,0),t.bufferData(t.ARRAY_BUFFER,4*this.buffer.length,t.DYNAMIC_DRAW)}},i.prototype.drawPoint=function(t,e){this.initBuffers(),e!==this.previousFill&&(this.flush(),this.previousFill=e),this.buffer[this.bufferLen++]=t.x,this.buffer[this.bufferLen++]=t.y,this.bufferLen>=this.BUFFER_SIZE&&this.flush()},i.prototype.flush=function(){if(0!=this.bufferLen){var e=this.gl;e.useProgram(this.shaderProgram);var i=new t.Color(this.previousFill);e.uniform4f(this.colorLocation,i.r/255,i.g/255,i.b/255,i.a>0?1:0),e.enableVertexAttribArray(this.positionAttributeLocation),e.bindBuffer(e.ARRAY_BUFFER,this.positionBuffer),e.vertexAttribPointer(this.positionAttributeLocation,2,e.FLOAT,!1,0,0),e.bufferSubData(e.ARRAY_BUFFER,0,this.buffer.subarray(0,this.bufferLen)),e.drawArrays(e.POINTS,0,this.bufferLen/2),this.bufferLen=0}},Object.defineProperty(i.prototype,"vsSource",{get:function(){return this._vsSource1},enumerable:!0,configurable:!0})}(r),function(e){function i(t){var i=e.call(this,t)||this;return i.BUFFER_SIZE=1e6,i.init(),i}return __extends(i,e),i.prototype.initBuffers=function(){if(!this.buffer){var t=this.gl;this.buffer=new Float32Array(4*this.BUFFER_SIZE),t.enableVertexAttribArray(this.positionAttributeLocation),t.bindBuffer(t.ARRAY_BUFFER,this.positionBuffer),t.vertexAttribPointer(this.positionAttributeLocation,2,t.FLOAT,!1,0,0),t.bufferData(t.ARRAY_BUFFER,4*this.buffer.length,t.DYNAMIC_DRAW)}},i.prototype.drawLines=function(e,i,r,n,o){void 0===o&&(o=null),this.initBuffers();var s=r||e.length,a=this.gl;a.useProgram(this.shaderProgram),o&&(a.enable(a.SCISSOR_TEST),a.scissor(o.left,a.canvas.height-o.bottom,o.width+1,o.height+1));var h=new t.Color(n);a.uniform4f(this.colorLocation,h.r/255,h.g/255,h.b/255,h.a>0?1:0),a.enableVertexAttribArray(this.positionAttributeLocation),a.bindBuffer(a.ARRAY_BUFFER,this.positionBuffer),a.vertexAttribPointer(this.positionAttributeLocation,2,a.FLOAT,!1,0,0);for(var u=0;u<s;u++)this.buffer[2*u]=e[u],this.buffer[2*u+1]=i[u];a.bufferSubData(a.ARRAY_BUFFER,0,this.buffer.subarray(0,2*s)),a.enableVertexAttribArray(this.positionAttributeLocation),a.bindBuffer(a.ARRAY_BUFFER,this.positionBuffer),a.vertexAttribPointer(this.positionAttributeLocation,2,a.FLOAT,!1,0,0),a.drawArrays(a.LINE_STRIP,0,s),o&&a.disable(a.SCISSOR_TEST)},i}(r)),a=function(i){function r(t){var r=i.call(this,t)||this;return r.earcut=new e._EarCut,r.BUFFER_SIZE=1e6,r.init(),r}return __extends(r,i),r.prototype.initBuffers=function(){if(!this.buffer){var t=this.gl;this.buffer=new Float32Array(4*this.BUFFER_SIZE),t.enableVertexAttribArray(this.positionAttributeLocation),t.bindBuffer(t.ARRAY_BUFFER,this.positionBuffer),t.vertexAttribPointer(this.positionAttributeLocation,2,t.FLOAT,!1,0,0),t.bufferData(t.ARRAY_BUFFER,4*this.buffer.length,t.DYNAMIC_DRAW)}},r.prototype.drawPolygon=function(e,i,r,n){void 0===n&&(n=null),this.initBuffers();for(var o=e.length,s=[],a=0;a<o;a++)s.push(e[a]),s.push(i[a]);var h=this.earcut.earcut(s),u=this.gl;u.useProgram(this.shaderProgram),n&&(u.enable(u.SCISSOR_TEST),u.scissor(n.left,u.canvas.height-n.bottom,n.width,n.height));var f=new t.Color(r);u.uniform4f(this.colorLocation,f.r/255,f.g/255,f.b/255,f.a>0?1:0),u.enableVertexAttribArray(this.positionAttributeLocation),u.bindBuffer(u.ARRAY_BUFFER,this.positionBuffer),u.vertexAttribPointer(this.positionAttributeLocation,2,u.FLOAT,!1,0,0);var l=0;for(a=0;a<h.length;a++)this.buffer[l++]=s[2*h[a]],this.buffer[l++]=s[2*h[a]+1];u.bufferSubData(u.ARRAY_BUFFER,0,this.buffer.subarray(0,l)),u.enableVertexAttribArray(this.positionAttributeLocation),u.bindBuffer(u.ARRAY_BUFFER,this.positionBuffer),u.vertexAttribPointer(this.positionAttributeLocation,2,u.FLOAT,!1,0,0),u.drawArrays(u.TRIANGLES,0,h.length),n&&u.disable(u.SCISSOR_TEST)},r}(r)}(e.webgl||(e.webgl={}))}(t.chart||(t.chart={}))}(wijmo||(wijmo={})),function(t){!function(e){e.webgl||(e.webgl={}),t._registerModule("wijmo.chart.webgl",t.chart.webgl)}(t.chart||(t.chart={}))}(wijmo||(wijmo={}));
var wijmo,__extends=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}();!function(t){!function(t){!function(t){"use strict";var e=function(){function t(){}return Object.defineProperty(t.prototype,"point",{get:function(){return this._pt},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this._item},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"geoPoint",{get:function(){return this._map?this._map.convertBack(this.point):null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"chartElement",{get:function(){return this._chartElement},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"map",{get:function(){return this._map},enumerable:!0,configurable:!0}),t}();t.MapHitTestInfo=e}(t.map||(t.map={}))}(t.chart||(t.chart={}))}(wijmo||(wijmo={})),function(t){!function(e){!function(e){"use strict";var i=function(){return function(){}}();e._DrawOptions=i;var n=function(e){function i(t){var i=e.call(this,t)||this;return i.scale=1,i.element.setAttribute("xmlns:wj-map","http://www.grapecity.com/wijmo"),i}return __extends(i,e),i.prototype.drawPolygon2=function(e,i){var n=e?e.className:null,r=e?e.clipPath:null,o=e?e.style:null,s=this.precision;if(i&&i.length>0){var a=document.createElementNS("http://www.w3.org/2000/svg","path");this._applyColor(a,"stroke",this.stroke);var h=this.strokeWidth;null!==h&&(t.isIE()&&(h*=this.scale),this._setAttribute(a,"stroke-width",h.toString())),this._applyColor(a,"fill",this.fill);for(var c="",l=0;l<i.length;l++){var u=i[l],p=u.length/2;if(p>1){c+=" M "+u[0].toFixed(s)+" "+u[1].toFixed(s);for(var f=1;f<p;f++)c+=" L "+u[2*f].toFixed(s)+" "+u[2*f+1].toFixed(s);c+=" Z"}}return this._setAttribute(a,"d",c),n&&a.setAttribute("class",n),r&&this._setClipPath(a,r),this._applyStyle(a,o),this._appendChild(a),a.setAttribute("vector-effect","non-scaling-stroke"),a}return null},i}(t.chart.SvgRenderEngine);e._SvgMapRenderEngine=n}(e.map||(e.map={}))}(t.chart||(t.chart={}))}(wijmo||(wijmo={})),function(t){!function(e){!function(e){"use strict";var i=function(){function t(t,e){this.min=t,this.max=e}return Object.defineProperty(t.prototype,"range",{get:function(){return this.max-this.min},enumerable:!0,configurable:!0}),t.prototype.norm=function(t){return(t-this.min)/this.range},t}();e._Range=i;var n=function(){function e(){}return e.getRange=function(e,n){if(e&&n){for(var r=e.length,o=NaN,s=NaN,a=0;a<r;a++){var h=e[a];if(h){var c=void 0;c=t.isFunction(n)?n(h):n.getValue(h),t.isString(c)&&(c=parseFloat(c)),isFinite(c)&&((isNaN(o)||c<o)&&(o=c),(isNaN(s)||c>s)&&(s=c))}}if(!isNaN(o)&&!isNaN(s))return new i(o,s)}return null},e}();e._Utils=n}(e.map||(e.map={}))}(t.chart||(t.chart={}))}(wijmo||(wijmo={})),function(t){!function(e){!function(e){"use strict";var i=function(){function i(e){this._clrs=[],this._clrUnknown="transparent",this.colors=t.chart.Palettes.SequentialSingle.Greys,this.initialize(e)}return i.prototype.initialize=function(e){t.copy(this,e)},i.prototype.convert=function(t,e){return void 0===e&&(e=!0),isFinite(t)&&0!=this._clrs.length?(this._range&&e&&(t=this._range.norm(t)),this.scale&&(t=this.scale(t)),2==this._clrs.length?this._interpolate(this._clrs[0],this._clrs[1],t):this._clrSpline.interpolate(t).toString()):this.colorUnknown},Object.defineProperty(i.prototype,"scale",{get:function(){return this._scale},set:function(t){this._scale!=t&&(this._scale=t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"binding",{get:function(){return this._binding},set:function(t){this._binding!=t&&(this._binding=t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"colorUnknown",{get:function(){return this._clrUnknown},set:function(e){this._clrUnknown!=e&&(this._clrUnknown=t.asString(e))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"colors",{get:function(){return this._colors},set:function(e){if(this._colors!=e){this._clrs=[];var i=this._colors=e;if(i){for(var n=0;n<i.length;n++)this._clrs.push(new t.Color(i[n]));this._clrSpline=new r(this._clrs)}}},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"format",{get:function(){return this._fmt},set:function(e){this._fmt!=e&&(this._fmt=t.asString(e,!0))},enumerable:!0,configurable:!0}),i.prototype.domain=function(i){t.isFunction(this.binding)?this._range=e._Utils.getRange(i,this.binding):this._range=e._Utils.getRange(i,new t.Binding(this.binding))},i.prototype.getValue=function(e){return t.isFunction(this.binding)?this.binding(e):new t.Binding(this.binding).getValue(e)},i.prototype._interpolate=function(e,i,n){var r=1-(n=t.clamp(n,0,1));return t.Color.fromRgba(e.r*r+i.r*n,e.g*r+i.g*n,e.b*r+i.b*n,e.a*r+i.a*n).toString()},i.prototype._drawLegend=function(t,e,i){n.draw(t,this,e,i)},i.prototype._measureLegend=function(t,e,i,r){return n.measure(t,this,e,i,r)},i}();e.ColorScale=i;var n=function(){function e(){}return e.measure=function(e,i,n,r,o){var s=n?new t.Size(this.itemSize,o-120):new t.Size(r-80,this.itemSize),a=this._getValues(i),h=a.length;if(a.length){for(var c=new t.Size,l=0;l<h;l++){var u=this._getLabel(i,a[l]),p=e.measureString(u);c.width=Math.max(c.width,p.width),c.height=Math.max(c.height,p.height)}c.width&&c.height&&(n?s.width+=c.width+this.marginText:s.height+=c.height+this.marginText)}return s},e.draw=function(e,i,n,r){e.stroke="transparent";var o=this._getValues(i);if(r){for(var s=(n=n.inflate(0,-10)).height/100,a=0;a<100;a++)e.fill=i.convert((a+.5)/100,!1),e.drawRect(n.left,n.top+a*s,this.itemSize,s+1);if(o.length){e.stroke="black";for(a=0;a<o.length;a++){var h=o[a],c=i._range.norm(h),l=n.top+c*n.height,u=this._getLabel(i,h),p=e.measureString(u);e.drawString(u,new t.Point(n.left+this.itemSize+this.marginText,l+.5*p.height)),e.drawLine(n.left,l,n.left+this.itemSize,l)}}}else{var f=(n=n.inflate(-20,0)).width/100;s=0;if(o.length)for(a=0;a<o.length;a++){h=o[a],c=i._range.norm(h);i.scale&&(c=i.scale(c));var m=n.left+c*n.width;u=this._getLabel(i,h),p=e.measureString(u);s=Math.max(s,p.height),e.drawString(this._getLabel(i,h),new t.Point(m-.5*p.width,n.top+p.height))}s&&(s+=this.marginText);for(a=0;a<100;a++)e.fill=i.convert((a+.5)/100,!1),e.drawRect(n.left+a*f,n.top+s,f+1,this.itemSize);if(o.length){e.stroke="black";for(a=0;a<o.length;a++){h=o[a],c=i._range.norm(h);i.scale&&(c=i.scale(c));m=n.left+c*n.width;e.drawLine(m,n.bottom-this.itemSize,m,n.bottom)}}}},e._getValues=function(t){var e=[],i=t._range;if(i)for(var n=this._calcDelta(i.range),r=Math.round(i.min/n)*n;r<=i.max;r+=n)r<i.min||e.push(r);return e},e._getLabel=function(e,i){return e.format?t.Globalize.formatNumber(i,e.format):i.toString()},e._calcDelta=function(t){var e=this._nicePrecision(t),i=t/10,n=this._niceNumber(2*i,-e,!0);return n<i&&(n=this._niceNumber(i,1-e,!1)),n<i&&(n=this._niceTickNumber(i)),n},e._nicePrecision=function(e){if(!t.isNumber(e)||e<=0)return 0;var i,n=Math.log(e)/Math.LN10;i=n>=0?Math.floor(n):Math.ceil(n);var r=e/Math.pow(10,i);return r<3&&(i=1-i,(r=e/Math.pow(10,i))<3&&(i+=1)),i},e._niceTickNumber=function(t){if(0==t)return t;t<0&&(t=-t);var e=Math.log(t)/Math.LN10,i=Math.floor(e),n=t/Math.pow(10,i),r=10;return n<=1?r=1:n<=2?r=2:n<=5&&(r=5),r*Math.pow(10,i)},e._niceNumber=function(t,e,i){if(0==t)return t;t<0&&(t=-t);var n=t/Math.pow(10,e),r=10;return i?n<1.5?r=1:n<3?r=2:n<4.5?r=4:n<7&&(r=5):n<=1?r=1:n<=2?r=2:n<=5&&(r=5),r*Math.pow(10,e)},e.itemSize=20,e.marginText=4,e}(),r=function(){function e(t){this._clrs=t;for(var e=t.length,i=[],n=[],r=[],s=[],a=0;a<e;a++){var h=t[a],c=a/(e-1);i.push(c),n.push(h.r),r.push(h.g),s.push(h.b)}this._rsp=new o(i,n),this._gsp=new o(i,r),this._bsp=new o(i,s)}return e.prototype.interpolate=function(e){e=t.clamp(e,0,1);var i=this._rsp.calculate(e),n=this._gsp.calculate(e),r=this._bsp.calculate(e);return t.Color.fromRgba(i,n,r)},e}(),o=function(){function e(e,i,n){this.k=.002,this._a=[],this._b=[],this._c=[],this._d=[],this.m=[[-.5,1.5,-1.5,.5],[1,-2.5,2,-.5],[-.5,0,.5,0],[0,1,0,0]],this._x=e,this._y=i;var r=this._len=n||Math.min(e.length,i.length);if(r>3)for(var o=0;o<r-1;o++){var s=0==o?new t.Point(e[o],i[o]):new t.Point(e[o-1],i[o-1]),a=new t.Point(e[o],i[o]),h=new t.Point(e[o+1],i[o+1]),c=o==r-2?new t.Point(e[o+1],i[o+1]):new t.Point(e[o+2],i[o+2]),l=new t.Point,u=new t.Point,p=new t.Point,f=new t.Point;l.x=s.x*this.m[0][0]+a.x*this.m[0][1]+h.x*this.m[0][2]+c.x*this.m[0][3],u.x=s.x*this.m[1][0]+a.x*this.m[1][1]+h.x*this.m[1][2]+c.x*this.m[1][3],p.x=s.x*this.m[2][0]+a.x*this.m[2][1]+h.x*this.m[2][2]+c.x*this.m[2][3],f.x=s.x*this.m[3][0]+a.x*this.m[3][1]+h.x*this.m[3][2]+c.x*this.m[3][3],l.y=s.y*this.m[0][0]+a.y*this.m[0][1]+h.y*this.m[0][2]+c.y*this.m[0][3],u.y=s.y*this.m[1][0]+a.y*this.m[1][1]+h.y*this.m[1][2]+c.y*this.m[1][3],p.y=s.y*this.m[2][0]+a.y*this.m[2][1]+h.y*this.m[2][2]+c.y*this.m[2][3],f.y=s.y*this.m[3][0]+a.y*this.m[3][1]+h.y*this.m[3][2]+c.y*this.m[3][3],this._a.push(l),this._b.push(u),this._c.push(p),this._d.push(f)}}return e.prototype.calculate=function(t){t*=this._len-1;var e=Math.floor(t);e<0&&(e=0),e>this._len-2&&(e=this._len-2);var i=t-e;this._a[e].x,this._b[e].x,this._c[e].x,this._d[e].x;return((this._a[e].y*i+this._b[e].y)*i+this._c[e].y)*i+this._d[e].y},e}()}(e.map||(e.map={}))}(t.chart||(t.chart={}))}(wijmo||(wijmo={})),function(t){!function(e){!function(e){"use strict";var i=function(i){function r(r,o){var s=i.call(this,r,null,!0)||this;s._layers=new t.collections.ObservableArray,s._center=new t.Point,s._zoom=1,s._zoomStep=.5,s._offset=new t.Point,s._proj=new n,s._touchStartH=s._touchStart.bind(s),s._touchMoveH=s._touchMove.bind(s),s._touchEndH=s._touchEnd.bind(s),s._touchCancelH=s._touchCancel.bind(s),s._mouseWheelH=s._mouseWheel.bind(s),s._handleTouch=!1;var a=s.hostElement;s.applyTemplate("wj-control wj-flexchart wj-flexmap",null,null),s._currentRenderEngine=new e._SvgMapRenderEngine(a);var h=t.createElement("<div></div>",null,{position:"relative"});s._overlay=t.createElement("<div></div>",h,{position:"absolute",left:"90%",bottom:"90%"}),t.createElement('<button class="wj-btn"><span class="wj-glyph-plus"></span></button>',s._overlay).addEventListener("click",function(){return s.zoom+=s._zoomStep}),t.createElement('<button class="wj-btn"><span class="wj-glyph-minus"></span></button>',s._overlay).addEventListener("click",function(){return s.zoom-=s._zoomStep}),t.addClass(a,"wj-flexchart-touch-disabled"),a.appendChild(h),s._legend=new t.chart.Legend(s),s._legend.position=t.chart.Position.None,s._tooltip=new t.chart.ChartTooltip,s.tooltip.content=null;var c=s;return s.layers.collectionChanged.addHandler(function(){s.layers.forEach(function(t){return t.map=c}),s.invalidate()}),s.addEventListener(a,"click",function(t){if(!c.isDisabled){var e=c._tooltip;e.content&&c.isTouching&&c._updateTooltip(e,t)}}),s.addEventListener(a,"mousedown",function(e){c.isDisabled||0==e.button&&(s.focus(),s._dragStart=new t.Point(e.pageX,e.pageY),s._hideToolTip())}),s.addEventListener(a,"mousemove",function(e){if(!c.isDisabled)if(c._dragStart){var i=s.convertBack(s._toControl(c._dragStart)),n=s.convertBack(s._toControl(e));s.center=new t.Point(s.center.x-n.x+i.x,s.center.y-n.y+i.y),s._dragStart=new t.Point(e.pageX,e.pageY)}else{var r=c._tooltip;r.content&&!c.isTouching&&c._updateTooltip(r,e)}}),s.addEventListener(a,"mouseup",function(t){s._dragStart=null}),s.addEventListener(a,"mouseleave",function(t){t.target==c.hostElement&&(s._dragStart=null,c._hideToolTip())}),s.addEventListener(a,"touchstart",s._touchStartH),s.addEventListener(a,"touchmove",s._touchMoveH),s.addEventListener(a,"touchcancel",s._touchCancelH),s.addEventListener(a,"touchend",s._touchEndH),s.addEventListener(a,"wheel",s._mouseWheelH),s.initialize(o),s.refresh(),s}return __extends(r,i),Object.defineProperty(r.prototype,"layers",{get:function(){return this._layers},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"center",{get:function(){return this._center},set:function(t){this._center!=t&&(this._center=t,this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"zoom",{get:function(){return this._zoom},set:function(t){t<1&&(t=1),this._zoom!=t&&(this._zoom=t,this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"tooltip",{get:function(){return this._tooltip},enumerable:!0,configurable:!0}),r.prototype.convert=function(t){return this._convertMercator(t)},r.prototype.convertBack=function(t){return this._convertMercatorBack(t)},r.prototype.hitTest=function(i,n){var r=this._toControl(i,n),o=new e.MapHitTestInfo;if(t.chart.FlexChartBase._contains(this._rectHeader,r))o._chartElement=t.chart.ChartElement.Header;else if(t.chart.FlexChartBase._contains(this._rectFooter,r))o._chartElement=t.chart.ChartElement.Footer;else if(t.chart.FlexChartBase._contains(this._rectLegend,r))o._chartElement=t.chart.ChartElement.Legend;else if(t.chart.FlexChartBase._contains(this._rectChart,r)){var s=void 0;if(i instanceof MouseEvent)s=document.elementFromPoint(i.x,i.y);else{var a=this._getHostOffset();s=document.elementFromPoint(a.x+r.x,a.y+r.y)}var h=s.getAttribute("wj-map:id");null!=h&&(o._item=this._getItemById(h))}return o},r.prototype.zoomTo=function(e){var i=this._proj.maxY,n=Math.max(e.top,-i),r=Math.min(e.bottom,i),o=this.convert(new t.Point(e.left,n)),s=this.convert(new t.Point(e.right,r));if(t.chart._DataInfo.isValid(o.x,o.y,s.x,s.y)){var a=new t.Point(.5*(o.x+s.x),.5*(o.y+s.y));this.center=this.convertBack(a),o=this.convert(new t.Point(e.left,n)),s=this.convert(new t.Point(e.right,r));var h=this._mapRect.width/Math.abs(s.x-o.x),c=this._mapRect.height/Math.abs(s.y-o.y);this.zoom*=this.zoom+Math.log(Math.min(h,c))*Math.LOG2E}},r.prototype.invalidate=function(t){t&&this.layers.forEach(function(t){t._clearCache&&t._clearCache()}),i.prototype.invalidate.call(this,t)},r.prototype._renderChart=function(e,i,n){this.onRendering(new t.chart.RenderEventArgs(e));var r=i.width,o=i.height,s=this._parseMargin(this.plotMargin);isNaN(s.left)&&(s.left=8),isNaN(s.right)&&(s.right=8),isNaN(s.top)&&(s.top=8),isNaN(s.bottom)&&(s.bottom=8),i.top+=s.top,o=i.height-(s.top+s.bottom),i.height=o>0?o:24,i.left+=s.left,r=i.width-(s.left+s.right),i.width=r>0?r:24;var a="mapRect"+(1e6*Math.random()).toFixed();e.addClipRect(i,a);var h=e.startGroup(null,a,!0);this._mapRect=i.clone();var c=this._size=.5*Math.min(i.width,i.height);this._offset.x=this._mapRect.left,this._offset.y=this._mapRect.top,i.width>2*c?this._offset.x=.5*i.width-c+this._mapRect.left:i.height>2*this._size&&(this._offset.y=.5*i.height-c+this._mapRect.top);var l=Math.pow(2,this.zoom),u=this._proj.convert(this.center);u.x=u.x*l*c-c,u.y=u.y*l*c-c,this._offset.x-=u.x,this._offset.y-=u.y,e.precision=6;for(var p=0;p<this.layers.length;p++){var f=1/(l*c);e.scale=f;var m=e.element.createSVGTransform(),_=e.element.createSVGMatrix();_.a=_.d=l*c,_.b=_.c=0,_.e=this._offset.x,_.f=this._offset.y,m.setMatrix(_),this.layers[p].render(e,m,h)}e.endGroup();var d=this._rectChart.bottom-this._mapRect.bottom;this._overlay.style.left=(this._mapRect.right-80).toString()+"px",this._overlay.style.bottom=d.toString()+"px",this.onRendered(new t.chart.RenderEventArgs(e))},r.prototype._getDesiredLegendSize=function(e,i,n,r){for(var o=new t.Size,s=0;s<this.layers.length;s++){var a=this.layers[s];if(a.colorScale){a.getAllFeatures?a.colorScale.domain(a.getAllFeatures()):a.colorScale.domain(a.itemsSource);var h=a.colorScale._measureLegend(e,i,n,r);h&&h.width&&h.height&&(o=h)}}return o},r.prototype._renderLegend=function(e,i,n,r,o,s){var a=new t.Rect(i.x,i.y,o,s);this.layers.forEach(function(t){t.colorScale&&t.colorScale._drawLegend(e,a,r)})},r.prototype._copy=function(e,i){if("layers"==e){this.layers.clear();for(var n=t.asArray(i),r=0;r<n.length;r++)this.layers.push(n[r]);return!0}return!1},r.prototype._updateTooltip=function(e,i){var n=e.content;if(n){var r=document.elementFromPoint(i.x,i.y),o=r?r.getAttribute("wj-map:id"):null;if(null!=o){var s=this._getItemById(o);s&&(t.isFunction(n)&&(n=n(s)),n=t.format(n,s))}else n=null}n&&n.trim().length>0?this._showToolTip(n,new t.Rect(i.clientX,i.clientY,5,5)):this._hideToolTip()},r.prototype._getItemById=function(t){for(var e=0;e<this.layers.length;e++){var i=this.layers[e];if(i._getFeatureById){if(n=i._getFeatureById(t))return n.properties}else if(i.getItemById){var n;if(n=i.getItemById(t))return n}}return null},r.prototype._convertMercator=function(t){var e=Math.pow(2,this.zoom)*this._size,i=this._proj.convert(t);return i.x*=e,i.y*=e,i.x+=this._offset.x,i.y+=this._offset.y,i},r.prototype._convertMercatorBack=function(t){var e=Math.pow(2,this.zoom)*this._size,i=this._proj,n=t.clone();return n.x-=this._offset.x,n.y-=this._offset.y,n.x/=e,n.y/=e,n=i.convertBack(n)},r.prototype._touchStart=function(e){if(!this.isDisabled){switch(e.touches.length){case 1:this._handleTouch=!0,this._dragStart=new t.Point(e.touches[0].pageX,e.touches[0].pageY);break;case 2:this._dragStart=null,this._handleTouch=!0,this._touch1=new t.Point(e.touches[0].pageX,e.touches[0].pageY),this._touch2=new t.Point(e.touches[1].pageX,e.touches[1].pageY)}this._handleTouch&&this._hideToolTip()}},r.prototype._touchMove=function(e){if(!this.isDisabled)if(this._handleTouch&&e.preventDefault(),this._dragStart){var i=this.convertBack(this._toControl(this._dragStart)),n=this.convertBack(this._toControl(e.touches[0].pageX,e.touches[0].pageY));this.center=new t.Point(this.center.x-n.x+i.x,this.center.y-n.y+i.y),this._dragStart=new t.Point(e.touches[0].pageX,e.touches[0].pageY)}else if(this._touch1&&this._touch2){var r=new t.Point(e.touches[0].pageX,e.touches[0].pageY),o=new t.Point(e.touches[1].pageX,e.touches[1].pageY),s=this._dist(this._touch1,this._touch2),a=this._dist(r,o);Math.abs(a-s)>1&&(this.zoom+=Math.log2(a/s),this._touch1=r,this._touch2=o)}},r.prototype._dist=function(t,e){var i=t.x-e.x,n=t.y-e.y;return Math.sqrt(i*i+n*n)},r.prototype._touchEnd=function(t){this._handleTouch=!1,this._dragStart=this._touch1=this._touch2=null},r.prototype._touchCancel=function(t){this._handleTouch=!1,this._dragStart=this._touch1=this._touch2=null},r.prototype._mouseWheel=function(t){if(!this.isDisabled){t.preventDefault(),this._hideToolTip();var e=-t.deltaY;e=e>0?.1:-.1,this.zoom+=e}},r}(t.chart.FlexChartBase);e.FlexMap=i;var n=function(){function e(){this.maxY=(2*Math.atan(Math.exp(Math.PI))-.5*Math.PI)/r.toRadians}return e.prototype.convert=function(e){var i=this._convertX(e.x),n=Math.abs(e.y)>this.maxY?(e.y>0?1:-1)*this.maxY:e.y;return n=this._convertY(n),new t.Point(i,n)},e.prototype.convertBack=function(e){var i=this._convertBackX(e.x),n=this._convertBackY(e.y);return new t.Point(i,n)},e.prototype._convertX=function(t){return(t*r.toRadians+Math.PI)/r.pi2},e.prototype._convertBackX=function(t){return(t*r.pi2-Math.PI)/r.toRadians},e.prototype._convertY=function(t){return(Math.PI+Math.log(Math.tan(r.pi4-.5*t*r.toRadians)))/r.pi2},e.prototype._convertBackY=function(t){return-(2*Math.atan(Math.exp(t*r.pi2-Math.PI))-.5*Math.PI)/r.toRadians},e}(),r=function(){function t(){}return t.toRadians=Math.PI/180,t.pi4=.25*Math.PI,t.pi2=2*Math.PI,t}()}(e.map||(e.map={}))}(t.chart||(t.chart={}))}(wijmo||(wijmo={})),function(t){!function(t){!function(t){"use strict"}(t.map||(t.map={}))}(t.chart||(t.chart={}))}(wijmo||(wijmo={})),function(t){!function(e){!function(e){var i=function(){function e(){this.itemsSourceChanged=new t.Event}return Object.defineProperty(e.prototype,"map",{get:function(){return this._map},set:function(t){this._map=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"style",{get:function(){return this._style},set:function(t){this._style!=t&&(this._style=t,this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"itemsSource",{get:function(){return this._items},set:function(t){this._setItems(t)},enumerable:!0,configurable:!0}),e.prototype.onItemsSourceChanged=function(t){this.itemsSourceChanged.raise(this,t)},Object.defineProperty(e.prototype,"url",{get:function(){return this._url},set:function(e){this._url!=e&&(this._url=t.asString(e,!0),this._loadUrl())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"colorScale",{get:function(){return this._colorScale},set:function(t){this._colorScale!=t&&(this._colorScale=t,this._clearCache(),this.invalidate())},enumerable:!0,configurable:!0}),e.prototype.render=function(t,e,i){},e.prototype.invalidate=function(){this.map&&this.map.invalidate()},e.prototype.initialize=function(e){t.copy(this,e)},e.prototype._applyStyle=function(t){this.style&&(t.fill=this.style.fill,t.stroke=this.style.stroke,t.strokeWidth=this.style.strokeWidth)},e.prototype._clearCache=function(){},e.prototype._loadUrl=function(){var e=this;this.url?t.httpRequest(this.url,{success:function(t){return e.itemsSource=JSON.parse(t.responseText)}}):this.itemsSource=null},e.prototype._setItems=function(e){this._items!=e&&(this._clearCache(),this._items=e,this.onItemsSourceChanged(new t.EventArgs),this.invalidate())},e}();e.MapLayerBase=i}(e.map||(e.map={}))}(t.chart||(t.chart={}))}(wijmo||(wijmo={})),function(t){!function(e){!function(e){"use strict";var i=function(i){function n(t){var e=i.call(this)||this;return e._symbolSize=5,e._symbolMinSize=5,e._symbolMaxSize=50,e._index=0,e._prefix="_",e._elMap={},e._hasBindings=!1,e.style={stroke:"grey",strokeWidth:.5,fill:"transparent"},e.initialize(t),e}return __extends(n,i),Object.defineProperty(n.prototype,"symbolSize",{get:function(){return this._symbolSize},set:function(e){this._symbolSize!=e&&(this._symbolSize=t.asNumber(e),this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"symbolMinSize",{get:function(){return this._symbolMinSize},set:function(e){this._symbolMinSize!=e&&(this._symbolMinSize=t.asNumber(e),this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"symbolMaxSize",{get:function(){return this._symbolMaxSize},set:function(e){this._symbolMaxSize!=e&&(this._symbolMaxSize=t.asNumber(e),this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"itemsSource",{get:function(){return this._items},set:function(t){this._setItems(t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"binding",{get:function(){return this._binding},set:function(e){this._binding!=e&&(this._binding=t.asString(e,!0),this.parseBindings(),this.invalidate())},enumerable:!0,configurable:!0}),n.prototype.render=function(t,i,n){this._elMap={},this._index=0,this._prefix=this.map.layers.indexOf(this).toString()+"_";var r=t.startGroup();this.map,this.map._mapRect;this._applyStyle(t);var o=this.itemsSource,s=o?o.length:0,a=this._xBnd,h=this._yBnd,c=this._cBnd,l=this._szBnd;l&&(this._szRange=e._Utils.getRange(o,l));var u=this.colorScale;if(u&&u.domain(o),a&&h||c)for(var p=0;p<s;p++){var f=o[p];if(f){var m=this.getItemPos(f);m&&(u&&(t.fill=u.convert(u.getValue(f))),this.renderItem(t,f,m.x,m.y))}this._index++}return t.endGroup(),r},n.prototype.renderItem=function(e,i,n,r){if(t.isNumber(n)&&t.isNumber(r)){var o=this.map.convert(new t.Point(n,r));if(isFinite(o.x)&&isFinite(o.y)){var s=this.symbolSize;if(this._szRange){var a=this._szBnd.getValue(i);a=Math.sqrt((a-this._szRange.min)/this._szRange.range),s=this.symbolMinSize+(this.symbolMaxSize-this.symbolMinSize)*a}if(isFinite(s)){var h=e.drawEllipse(o.x,o.y,.5*s,.5*s);h.setAttribute("vector-effect","non-scaling-stroke");var c=this.createId();this.setId(h,c),this._elMap[c]=h}}}},n.prototype.getItemById=function(e){var i=this.itemsSource;if(i&&this._elMap[e]){var n=parseInt(e.split("_")[1]);if(t.isNumber(n)&&n<i.length)return i[n]}return null},n.prototype.getGeoBBox=function(){var e=this.itemsSource,i=e?e.length:0;if(this._hasBindings){for(var n=NaN,r=NaN,o=NaN,s=NaN,a=0;a<i;a++){var h=e[a];if(h){var c=this.getItemPos(h);c&&(isFinite(c.x)&&((isNaN(n)||c.x<n)&&(n=c.x),(isNaN(r)||c.x>r)&&(r=c.x)),isFinite(c.y)&&((isNaN(o)||c.y<o)&&(o=c.y),(isNaN(s)||c.y>s)&&(s=c.y)))}}if(!isNaN(n)&&!isNaN(o))return new t.Rect(n,o,r-n,s-o)}return null},n.prototype.getItemPos=function(e){var i=this._xBnd,n=this._yBnd,r=this._cBnd;if(r){var o=r.getValue(e);if(o){var s=o.split(",");if(s&&s.length>=2){var a=parseFloat(s[0]),h=parseFloat(s[1]);if(isFinite(a)&&isFinite(h))return new t.Point(a,h)}}}else{a=i.getValue(e),h=n.getValue(e);if(t.isString(a)&&(a=parseFloat(a)),t.isString(h)&&(h=parseFloat(h)),isFinite(a)&&isFinite(h))return new t.Point(a,h)}return null},n.prototype.setId=function(t,e){t&&e&&t.setAttribute("wj-map:id",e)},n.prototype.createId=function(){return this._prefix+this._index.toString()},n.prototype.parseBindings=function(){var e=this.binding;if(this._xBnd=this._yBnd=this._szBnd=null,this._hasBindings=!1,e){var i=e.split(",");1==i.length?(this._cBnd=new t.Binding(i[0].trim()),this._hasBindings=!0):i.length>=2&&(this._xBnd=new t.Binding(i[0].trim()),this._yBnd=new t.Binding(i[1].trim()),this._hasBindings=!0,i.length>=3&&(this._szBnd=new t.Binding(i[2].trim())))}},n}(e.MapLayerBase);e.ScatterMapLayer=i}(e.map||(e.map={}))}(t.chart||(t.chart={}))}(wijmo||(wijmo={})),function(t){!function(e){!function(e){"use strict";var i=function(){function e(){this._map={},this._index=0,this.prefix="_",this.hasPoints=!1,this.symbolSize=5}return e.prototype.convert=function(t){return this.converter&&(t=this.converter.convert(t)),t},e.prototype.render=function(t,e,i){if(void 0===i&&(i=null),this._map={},this._index=0,this.hasPoints=!1,e)switch(e.type){case"Point":case"MultiPoint":case"LineString":case"MultiLineString":case"Polygon":case"MultiPolygon":case"GeometryCollection":this.renderGeometry(t,e);break;case"Feature":this.renderFeature(t,e,i);break;case"FeatureCollection":if(e.features)for(var n=0;n<e.features.length;n++)this.renderFeature(t,e.features[n],i)}},e.prototype.renderFeature=function(t,e,i){if(void 0===i&&(i=null),e&&e.geometry){i&&i(t,e);var n=this.createId();this.renderGeometry(t,e.geometry,n),this._map[n]=e,this._index++}},e.prototype.renderGeometry=function(t,e,i){if(void 0===i&&(i=null),e)switch(e.type){case"Point":this.renderPoint(t,e,i),this.hasPoints=!0;break;case"MultiPoint":this.renderMultiPoint(t,e,i),this.hasPoints=!0;break;case"LineString":this.renderLineString(t,e,i);break;case"MultiLineString":this.renderMultiLineString(t,e,i);break;case"Polygon":this.renderPolygon(t,e,i);break;case"MultiPolygon":this.renderMultiPolygon(t,e,i);break;case"GeometryCollection":if(e.geometries)for(var n=0;n<e.geometries.length;n++)this.renderGeometry(t,e.geometries[n],i)}},e.prototype.renderPoint=function(e,i,n){if(void 0===n&&(n=null),i&&i.coordinates&&i.coordinates.length>=2){var r=new t.Point(i.coordinates[0],i.coordinates[1]);r=this.convert(r);var o=e.scale*this.symbolSize,s=e.drawEllipse(r.x,r.y,o,o);s.setAttribute("vector-effect","non-scaling-stroke"),this.setAttribute(s,n)}},e.prototype.renderMultiPoint=function(e,i,n){if(void 0===n&&(n=null),i&&i.coordinates)for(var r=i.coordinates,o=i.coordinates.length,s=0;s<o;s++){var a=new t.Point(r[s][0],r[s][1]);a=this.convert(a);var h=e.scale*this.symbolSize,c=e.drawEllipse(a.x,a.y,h,h);this.setAttribute(c,n)}},e.prototype.renderLineString=function(e,i,n){if(void 0===n&&(n=null),i&&i.coordinates){for(var r=i.coordinates,o=i.coordinates.length,s=[],a=[],h=0;h<o;h++){var c=new t.Point(r[h][0],r[h][1]);c=this.convert(c),s.push(c.x),a.push(c.y)}var l=e.drawLines(s,a);this.setAttribute(l,n)}},e.prototype.renderMultiLineString=function(e,i,n){if(void 0===n&&(n=null),i&&i.coordinates)for(var r=i.coordinates,o=r.length,s=0;s<o;s++){for(var a=r[s],h=[],c=[],l=0;l<a.length;l++){var u=new t.Point(a[l][0],a[l][1]);u=this.convert(u),h.push(u.x),c.push(u.y)}var p=e.drawLines(h,c);this.setAttribute(p,n)}},e.prototype.renderMultiPolygon=function(e,i,n){if(void 0===n&&(n=null),i&&i.coordinates)for(var r=i.coordinates,o=r.length,s=e,a=0;a<o;a++){for(var h=r[a],c=(h.length,[]),l=0;l<1;l++){for(var u=h[l],p=[],f=0;f<u.length;f++){var m=new t.Point(u[f][0],u[f][1]);m=this.convert(m),p.push(m.x),p.push(m.y)}c.push(p)}var _=s.drawPolygon2(null,c);this.setAttribute(_,n)}},e.prototype.renderPolygon=function(e,i,n){if(void 0===n&&(n=null),i&&i.coordinates){for(var r=i.coordinates,o=r.length,s=e,a=[],h=0;h<o;h++){for(var c=r[h],l=[],u=0;u<c.length;u++){var p=new t.Point(c[u][0],c[u][1]);p=this.convert(p),l.push(p.x),l.push(p.y)}a.push(l)}var f=s.drawPolygon2(null,a);this.setAttribute(f,n)}},e.prototype.getFeatureById=function(t){return this._map[t]},e.prototype.getAllFeatures=function(t){var e=[];if(t)switch(t.type){case"Feature":e.push(t);break;case"FeatureCollection":if(t.features)for(var i=0;i<t.features.length;i++)e.push(t.features[i])}return e},e.prototype.getBBox=function(t){var e=null;if(t)switch(t.type){case"Point":case"MultiPoint":case"LineString":case"MultiLineString":case"Polygon":case"MultiPolygon":case"GeometryCollection":e=this.getGeometryBBox(t);break;case"Feature":e=this.getGeometryBBox(t.geometry);break;case"FeatureCollection":if(t.features)for(var i=0;i<t.features.length;i++){var n=this.getGeometryBBox(t.features[i].geometry,e);n&&(e=n)}}return e},e.prototype.getGeometryBBox=function(t,e){var i=null;if(t)switch(t.type){case"Point":case"MultiPoint":case"LineString":case"MultiLineString":case"Polygon":case"MultiPolygon":var n=t.coordinates,r=this.flat(n,10);i=this.getRect(r,e);break;case"GeometryCollection":if(t.geometries)for(var o=0;o<t.geometries.length;o++)(i=this.getGeometryBBox(t.geometries[o],e))&&(e=i.clone())}return i},e.prototype.getRect=function(e,i){var n=null;if(e){var r=NaN,o=NaN,s=NaN,a=NaN;i&&(r=i.left,o=i.right,s=i.top,a=i.bottom);for(var h=e.length/2,c=0;c<h;c++){var l=e[2*c],u=e[2*c+1];(isNaN(r)||l<r)&&(r=l),(isNaN(o)||l>o)&&(o=l),(isNaN(s)||u<s)&&(s=u),(isNaN(a)||u>a)&&(a=u)}isNaN(r)||isNaN(s)||(n=new t.Rect(r,s,o-r,a-s))}return n},e.prototype.setAttribute=function(t,e){t&&e&&t.setAttribute("wj-map:id",e)},e.prototype.createId=function(){return this.prefix+this._index.toString()},e.prototype.flat=function(t,e){if(t.flat)return t.flat(e);for(var i=t.slice(),n=[];i.length;){var r=i.pop();Array.isArray(r)?i.push.apply(i,r):n.push(r)}return n.reverse()},e}();e._GeoJsonRender=i}(e.map||(e.map={}))}(t.chart||(t.chart={}))}(wijmo||(wijmo={})),function(t){!function(e){!function(e){"use strict";var i=function(i){function n(t){var n=i.call(this)||this;return n._render=new e._GeoJsonRender,n._symbolSize=5,n.style={stroke:"gray",fill:"transparent",strokeWidth:.5},t&&n.initialize(t),n}return __extends(n,i),Object.defineProperty(n.prototype,"itemFormatter",{get:function(){return this._ifmt},set:function(e){this._ifmt!=e&&(this._ifmt=t.asFunction(e,!0),this._clearCache(),this.invalidate())},enumerable:!0,configurable:!0}),n.prototype.getAllFeatures=function(){return this._render.getAllFeatures(this.itemsSource)},n.prototype.render=function(t,e,i){this._render.hasPoints&&this._clearCache();var n=this._g;if(n)i.appendChild(n);else{n=t.startGroup(),this._render.symbolSize=this.symbolSize,this._render.converter=this.map._proj;var r=this.colorScale;r&&r.domain(this.getAllFeatures()),this._applyStyle(t),this._render.prefix=this.map.layers.indexOf(this).toString()+"_",r?this._render.render(t,this.itemsSource,function(t,e){t.fill=r.convert(r.getValue(e))}):this._render.render(t,this.itemsSource,this.itemFormatter),t.endGroup(),this._g=n}return 0==n.transform.baseVal.numberOfItems?n.transform.baseVal.appendItem(e):n.transform.baseVal.replaceItem(e,0),n},n.prototype.getGeoBBox=function(t){return t?this._render.getBBox(t):this._render.getBBox(this.itemsSource)},Object.defineProperty(n.prototype,"symbolSize",{get:function(){return this._symbolSize},set:function(e){this._symbolSize!=e&&(this._symbolSize=t.asNumber(e),this.invalidate())},enumerable:!0,configurable:!0}),n.prototype._clearCache=function(){this._g=null},n.prototype._getFeatureById=function(t){return this._render.getFeatureById(t)},n}(e.MapLayerBase);e.GeoMapLayer=i}(e.map||(e.map={}))}(t.chart||(t.chart={}))}(wijmo||(wijmo={})),function(t){!function(e){!function(e){"use strict";var i=function(e){function i(){var t=e.call(this)||this;return t.style={stroke:"lightgrey",strokeWidth:.5,fill:"lightgrey"},t}return __extends(i,e),i.prototype.render=function(e,i,n){var r=e.startGroup("wj-flexmap-geogrid"),o=this.map,s=this.map._mapRect,a="wj-label";this._applyStyle(e);for(var h=-180;h<=180;h+=30){var c=o.convert(new t.Point(h,-85)),l=o.convert(new t.Point(h,85));if(this.isValid(c)&&this.isValid(l)){var u=h.toString(),p=e.measureString(u,a);e.drawString(u,new t.Point(c.x-.5*p.width,s.top+p.height),a);e.drawLine(c.x,c.y,l.x,l.y)}}for(var f=s.left,m=-80;m<=80;m+=20){c=o.convert(new t.Point(-180,m)),l=o.convert(new t.Point(180,m));if(this.isValid(c)&&this.isValid(l)){u=f.toString(),p=e.measureString(u,a);e.drawString(m.toString(),new t.Point(f,c.y+.5*p.height),a);e.drawLine(c.x,c.y,l.x,l.y)}}return e.endGroup(),r},i.prototype.isValid=function(t){return isFinite(t.x)&&isFinite(t.y)},i}(e.MapLayerBase);e.GeoGridLayer=i}(e.map||(e.map={}))}(t.chart||(t.chart={}))}(wijmo||(wijmo={})),function(t){!function(e){e.map||(e.map={}),t._registerModule("wijmo.chart.map",t.chart.map)}(t.chart||(t.chart={}))}(wijmo||(wijmo={}));
var __extends=this&&this.__extends||function(){var n=function(t,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r(){this.constructor=t}if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(t,i);t.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}}(),c1;(function(n){var t;(function(n){var i=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(wijmo.chart.FlexChart),t;n.FlexChart=i;t=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(wijmo.chart.FlexPie);n.FlexPie=t})(t=n.chart||(n.chart={}))})(c1||(c1={}));
var __extends=this&&this.__extends||function(){var n=function(t,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r(){this.constructor=t}if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(t,i);t.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}}(),c1;(function(n){var t;(function(t){var i;(function(i){var u=function(n){function i(){return n!==null&&n.apply(this,arguments)||this}return __extends(i,n),i.prototype._beforeInitializeControl=function(n){var f=this,i,r,u;n.itemsSource instanceof wijmo.collections.CollectionView&&(i=n.itemsSource,t.DataSourceManager._isRemoteSource(i)&&i.isEmpty&&(r=this.control,f._beforeBeginUpdate(n),r.beginUpdate(),u=function(){f._beforeEndUpdate(n);r.endUpdate();setTimeout(function(){i.collectionChanged.removeHandler(u)},0)},i.collectionChanged.addHandler(u)))},i.prototype._beforeBeginUpdate=function(){},i.prototype._beforeEndUpdate=function(){},i}(t._Initializer),r,o,s,h,f,e,c,l,a;i._FlexChartBaseInitializer=u;r=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(t._ControlWrapper);i._FlexChartBaseWrapper=r;o=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t.prototype._beforeInitializeControl=function(n){n&&n.titles&&(n.titles=this._splitOutsideQuotes(n.titles,","))},t.prototype._afterInitializeControl=function(t){n.prototype._afterInitializeControl.call(this,t);var i=this.control;i._isInitialized=!0;i.invalidate()},t.prototype._beforeBeginUpdate=function(n){this._selectedIndex=-1;n&&n.selectedIndex&&(this._selectedIndex=n.selectedIndex,delete n.selectedIndex)},t.prototype._beforeEndUpdate=function(){if(this._selectedIndex!=-1){var t=this.control.selectionChanged,n=this.control;n.selectionChanged=new wijmo.Event;this.control.selectedIndex=this._selectedIndex;n.selectionChanged=t}},t.prototype._splitOutsideQuotes=function(n,t){for(var s,u=n.split(t),o=[],f=-1,e,r,i=0;i<u.length;i++)if(r=u[i].trim(),r.charAt(0)=='"')r.length>1&&r.charAt(r.length-1)=='"'?o.push(r.slice(1,r.length-1)):(f=i,e=u[i]);else if(f>=0&&r.charAt(r.length-1)=='"'){for(s=f+1;s<i+1;s++)e+=t+u[s];e=e.trim().slice(1,e.length-1);o.push(e);f=-1}else f<0&&o.push(u[i]);if(f>=0)for(i=f;i<u.length;i++)o.push(u[i]);return o},t}(u);i._FlexPieInitializer=o;s=function(t){function i(){return t!==null&&t.apply(this,arguments)||this}return __extends(i,t),Object.defineProperty(i.prototype,"_initializerType",{get:function(){return n.mvc.chart._FlexPieInitializer},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"_controlType",{get:function(){return n.mvc.chart.FlexPie},enumerable:!1,configurable:!0}),i}(r);i._FlexPieWrapper=s;h=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t.prototype.refresh=function(t){(t===void 0&&(t=!0),this._isInitialized)&&n.prototype.refresh.call(this,t)},t}(n.chart.FlexPie);i.FlexPie=h;f=function(t){function i(){var n=t!==null&&t.apply(this,arguments)||this;return n._extraSeriesList=[],n}return __extends(i,t),i.prototype._beforeInitializeControl=function(i){var r=this;t.prototype._beforeInitializeControl.call(this,i);r._prepareInitialOptions(i);r._seriesLength=i.series?i.series.length:0;r._prepareExtraSeriesList(i);i&&i.renderEngine&&(i.renderEngine==1?i.renderEngine=new n.chart.webgl.WebGLRenderEngine:delete i.renderEngine)},i.prototype._afterInitializeControl=function(n){var t=this,o,f,u=t.control,r=u.series,i,e;if(t._setPlotArea(n.axisX,u.axisX),t._setPlotArea(n.axisY,u.axisY),t._extraSeriesList&&t._extraSeriesList.length>0){for(u.beginUpdate(),i=0;i<t._seriesLength;i++)e=t._extraSeriesList[i],e&&r.splice(i,0,e);u.endUpdate()}for(i=0;i<t._seriesLength;i++)f=t._seriesRenderingList[i],f&&typeof f=="function"&&r[i].rendering.addHandler(f),t._setPlotArea(r[i].axisX,r[i].axisX),t._setPlotArea(r[i].axisY,r[i].axisY);t._selectedIndex!=null&&n.selectionMode===wijmo.chart.SelectionMode.Series&&r&&r[t._selectedIndex]&&(o=r[t._selectedIndex],u.selection=o)},i.prototype._setPlotArea=function(n,t){var i=this.control;n&&n._plotAreaIndex!=null&&(t.plotArea=i.plotAreas[n._plotAreaIndex])},i.prototype._prepareInitialOptions=function(t){var i=this;t&&(i._prepareExtraOptions(t),i._prepareAxes(t.axisX),t.axisX&&(n._addEvent(i.control.axisX.rangeChanged,t.axisX.rangeChanged),delete t.axisX.rangeChanged),t.axisY&&(i._prepareAxes(t.axisY),n._addEvent(i.control.axisY.rangeChanged,t.axisY.rangeChanged),delete t.axisY.rangeChanged),i._prepareSelection(t),i._prepareTitleContent(t),i._prepareSeriesAxes(t.series),i._preparePloteAreas(t._plotAreas))},i.prototype._preparePloteAreas=function(n){var i,u,t,r;if(n)for(i=wijmo.asArray(n),u=this.control,t=0;t<i.length;t++)r=new wijmo.chart.PlotArea,wijmo.copy(r,i[t]),u.plotAreas.push(r)},i.prototype._prepareExtraOptions=function(){throw"Should implement this method in the derived class.";},i.prototype._prepareAxes=function(n){n&&n.itemsSource&&(n.itemsSource=n.itemsSource.items||n.itemsSource)},i.prototype._prepareSelection=function(n){var t=0,i=n?n.series:undefined;if(this._selectedIndex=n?n.selectionIndex:undefined,delete n.selectionIndex,this._seriesRenderingList=[],i&&i.length)for(;t<i.length;t++)this._seriesRenderingList[t]=i[t].rendering,delete i[t].rendering},i.prototype._prepareTitleContent=function(n){if(n&&n.tooltip&&n.tooltip.content){var t=n.tooltip.content;typeof window[t]=="function"&&(n.tooltip.content=window[t])}},i.prototype._prepareSeriesAxes=function(n){var u=this,t,i,r;if(n&&n.length)for(t=0;t<n.length;t++)i=u._createAxisObj(n[t].axisX,wijmo.chart.Position.Bottom),i&&(n[t].axisX=i),r=u._createAxisObj(n[t].axisY,wijmo.chart.Position.Left),r&&(n[t].axisY=r)},i.prototype._createAxisObj=function(t,i){var o=this,r,f=["min","max","axisLine","format","itemFormatter","labelAngle","labels","majorGrid","minorGrid","origin","reversed","majorUnit","minorUnit","name","title","majorTickMarks","minorTickMarks","overlappingLabels","binding","itemsSource","_plotAreaIndex"],u,e;if(!t)return undefined;switch(t.position){case"None":case 0:r=new wijmo.chart.Axis(0);break;case"Left":case 1:r=new wijmo.chart.Axis(1);break;case"Top":case 2:r=new wijmo.chart.Axis(2);break;case"Right":case 3:r=new wijmo.chart.Axis(3);break;case"Bottom":case 4:r=new wijmo.chart.Axis(4);break;default:r=new wijmo.chart.Axis(i)}for(o._prepareAxes(t),u=0;u<f.length;u++)e=t[f[u]],e!=null&&(r[f[u]]=e);return n._addEvent(r.rangeChanged,t.rangeChanged),delete t.rangeChanged,r},i.prototype._prepareExtraSeriesList=function(n){var e=this,t,i=n.series?n.series.concat():null,f,r,u,o;if(i&&i.length){for(f=[],t=0;t<i.length;t++)if(i[t].extraSeriesTypeName){if(i[t].bindingX||(i[t].bindingX=n.bindingX),i[t].extraSeriesTypeName=="BreakEven"){r="stroke-width";u="strokeWidth";this._changePropertyName(i[t].style,r,u);this._changePropertyName(i[t].altStyle,r,u);this._changePropertyName(i[t].symbolStyle,r,u);for(o in i[t].styles)this._changePropertyName(i[t].styles[o],r,u)}e._extraSeriesList[t]=e._createExtraSeriesObj(i[t])}else f.push(i[t]);n.series=f}},i.prototype._changePropertyName=function(n,t,i){n&&t!==i&&n.hasOwnProperty(t)&&(n[i]=n[t],delete n[t])},i.prototype._createExtraSeriesObj=function(n){var i,t,f=n.extraSeriesTypeName,u=["func","xFunc","yFunc"],r;for(delete n.extraSeriesTypeName,i=0;i<u.length;i++)r=n[u[i]],r&&typeof window[r]=="function"&&(n[u[i]]=window[r]);switch(f){case"TrendLine":t=new wijmo.chart.analytics.TrendLine;break;case"MovingAverage":t=new wijmo.chart.analytics.MovingAverage;break;case"YFunctionSeries":t=new wijmo.chart.analytics.YFunctionSeries;break;case"ParametricFunctionSeries":t=new wijmo.chart.analytics.ParametricFunctionSeries;break;case"Fibonacci":t=new wijmo.chart.finance.analytics.Fibonacci;break;case"FibonacciArcs":t=new wijmo.chart.finance.analytics.FibonacciArcs;break;case"FibonacciFans":t=new wijmo.chart.finance.analytics.FibonacciFans;break;case"FibonacciTimeZones":t=new wijmo.chart.finance.analytics.FibonacciTimeZones;break;case"BollingerBands":t=new wijmo.chart.finance.analytics.BollingerBands;break;case"ATR":t=new wijmo.chart.finance.analytics.ATR;break;case"CCI":t=new wijmo.chart.finance.analytics.CCI;break;case"Envelopes":t=new wijmo.chart.finance.analytics.Envelopes;break;case"Macd":t=new wijmo.chart.finance.analytics.Macd;break;case"MacdHistogram":t=new wijmo.chart.finance.analytics.MacdHistogram;break;case"Stochastic":t=new wijmo.chart.finance.analytics.Stochastic;break;case"WilliamsR":t=new wijmo.chart.finance.analytics.WilliamsR;break;case"RSI":t=new wijmo.chart.finance.analytics.RSI;break;case"Waterfall":t=new wijmo.chart.analytics.Waterfall;break;case"BoxWhisker":t=new wijmo.chart.analytics.BoxWhisker;break;case"ErrorBar":t=new wijmo.chart.analytics.ErrorBar;break;case"BreakEven":t=new wijmo.chart.analytics.BreakEven}return wijmo.copy(t,n),t},i}(u);i._FlexChartCoreInitializer=f;e=function(t){function i(){return t!==null&&t.apply(this,arguments)||this}return __extends(i,t),Object.defineProperty(i.prototype,"_initializerType",{get:function(){return n.mvc.chart._FlexChartCoreInitializer},enumerable:!1,configurable:!0}),i}(r);i._FlexChartCoreWrapper=e;c=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t.prototype._prepareExtraOptions=function(n){var t=n.options,r,u,i={};t&&(r=t.bubbleMaxSize,u=t.bubbleMinSize,(r!=null||u!=null)&&(i.bubble={minSize:u,maxSize:r}),t.funnel!=null&&(i.funnel=t.funnel),t.step!=null&&(i.step=t.step),n.options=i)},t}(f);i._FlexChartInitializer=c;l=function(t){function i(){return t!==null&&t.apply(this,arguments)||this}return __extends(i,t),Object.defineProperty(i.prototype,"_initializerType",{get:function(){return n.mvc.chart._FlexChartInitializer},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"_controlType",{get:function(){return n.mvc.chart.FlexChart},enumerable:!1,configurable:!0}),i}(e);i._FlexChartWrapper=l;a=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(n.chart.FlexChart);i.FlexChart=a})(i=t.chart||(t.chart={}))})(t=n.mvc||(n.mvc={}))})(c1||(c1={}));
var __extends=this&&this.__extends||function(){var n=function(t,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r(){this.constructor=t}if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(t,i);t.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}}(),c1;(function(n){var t;(function(n){var t;(function(n){var i=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(wijmo.chart.hierarchical.Sunburst),t;n.Sunburst=i;t=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(wijmo.chart.hierarchical.TreeMap);n.TreeMap=t})(t=n.hierarchical||(n.hierarchical={}))})(t=n.chart||(n.chart={}))})(c1||(c1={}));
var __extends=this&&this.__extends||function(){var n=function(t,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r(){this.constructor=t}if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(t,i);t.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}}(),c1;(function(n){var t;(function(t){var i;(function(i){var r;(function(r){var h=function(t){function i(){return t!==null&&t.apply(this,arguments)||this}return __extends(i,t),Object.defineProperty(i.prototype,"_controlType",{get:function(){return n.mvc.chart.hierarchical.Sunburst},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"_initializerType",{get:function(){return n.mvc.chart.hierarchical._SunburstInitializer},enumerable:!1,configurable:!0}),i}(i._FlexPieWrapper),u,f,e,o,s;r._SunburstWrapper=h;u=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t.prototype._beforeInitializeControl=function(n){var t=n.childItemsPath;t&&t.indexOf(",")>0&&(n.childItemsPath=t.split(","))},t.prototype._afterInitializeControl=function(t){n.prototype._afterInitializeControl.call(this,t);var i=this.control;i._isInitialized=!0;i.invalidate()},t}(t._Initializer);r._SunburstInitializer=u;f=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t.prototype.refresh=function(t){(t===void 0&&(t=!0),this._isInitialized)&&n.prototype.refresh.call(this,t)},t}(n.chart.hierarchical.Sunburst);r.Sunburst=f;e=function(t){function i(){return t!==null&&t.apply(this,arguments)||this}return __extends(i,t),Object.defineProperty(i.prototype,"_controlType",{get:function(){return n.mvc.chart.hierarchical.TreeMap},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"_initializerType",{get:function(){return n.mvc.chart.hierarchical._TreeMapInitializer},enumerable:!1,configurable:!0}),i}(i._FlexChartBaseWrapper);r._TreeMapWrapper=e;o=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t.prototype._beforeInitializeControl=function(n){var i=n.childItemsPath,t;i&&i.length==1&&(n.childItemsPath=i[0]);t=n.bindingName;t&&t.length==1&&(n.bindingName=t[0])},t.prototype._afterInitializeControl=function(t){n.prototype._afterInitializeControl.call(this,t);var i=this.control;i._isInitialized=!0;i.invalidate()},t}(t._Initializer);r._TreeMapInitializer=o;s=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t.prototype.refresh=function(t){(t===void 0&&(t=!0),this._isInitialized)&&n.prototype.refresh.call(this,t)},t}(n.chart.hierarchical.TreeMap);r.TreeMap=s})(r=i.hierarchical||(i.hierarchical={}))})(i=t.chart||(t.chart={}))})(t=n.mvc||(n.mvc={}))})(c1||(c1={}));
var __extends=this&&this.__extends||function(){var n=function(t,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r(){this.constructor=t}if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(t,i);t.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}}(),c1;(function(n){var t;(function(n){var t;(function(n){var t=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(wijmo.chart.radar.FlexRadar);n.FlexRadar=t})(t=n.radar||(n.radar={}))})(t=n.chart||(n.chart={}))})(c1||(c1={}));
var __extends=this&&this.__extends||function(){var n=function(t,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r(){this.constructor=t}if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(t,i);t.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}}(),c1;(function(n){var t;(function(t){var i;(function(t){var i;(function(i){var u=function(t){function i(){return t!==null&&t.apply(this,arguments)||this}return __extends(i,t),Object.defineProperty(i.prototype,"_controlType",{get:function(){return n.mvc.chart.radar.FlexRadar},enumerable:!1,configurable:!0}),i}(t._FlexChartWrapper),r;i._FlexRadarWrapper=u;r=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(n.chart.radar.FlexRadar);i.FlexRadar=r})(i=t.radar||(t.radar={}))})(i=t.chart||(t.chart={}))})(t=n.mvc||(n.mvc={}))})(c1||(c1={}));
var __extends=this&&this.__extends||function(){var n=function(t,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r(){this.constructor=t}if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(t,i);t.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}}(),c1;(function(n){var t;(function(n){var t;(function(n){var t=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(wijmo.chart.webgl.WebGLRenderEngine);n.WebGLRenderEngine=t})(t=n.webgl||(n.webgl={}))})(t=n.chart||(n.chart={}))})(c1||(c1={}));
var __extends=this&&this.__extends||function(){var n=function(t,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r(){this.constructor=t}if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(t,i);t.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}}(),c1;(function(n){var t;(function(t){var i;(function(t){var i;(function(t){var i=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(n.chart.webgl.WebGLRenderEngine);t.WebGLRenderEngine=i})(i=t.webgl||(t.webgl={}))})(i=t.chart||(t.chart={}))})(t=n.mvc||(n.mvc={}))})(c1||(c1={}));
var __extends=this&&this.__extends||function(){var n=function(t,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r(){this.constructor=t}if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(t,i);t.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}}(),c1;(function(n){var t;(function(n){var t;(function(n){var t=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(wijmo.chart.map.FlexMap);n.FlexMap=t})(t=n.map||(n.map={}))})(t=n.chart||(n.chart={}))})(c1||(c1={}));
var __extends=this&&this.__extends||function(){var n=function(t,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r(){this.constructor=t}if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(t,i);t.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}}(),c1;(function(n){var t;(function(t){var i;(function(i){var r;(function(i){var f=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),Object.defineProperty(t.prototype,"_controlType",{get:function(){return u},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_initializerType",{get:function(){return r},enumerable:!1,configurable:!0}),t}(t._ControlWrapper),r,u;i._FlexMapWrapper=f;r=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t.prototype._beforeInitializeControl=function(t){var i=this;n.prototype._beforeInitializeControl.call(this,t);t&&i._prepareExtraMapLayerList(t)},t.prototype._prepareExtraMapLayerList=function(n){var f=this,t,u,i=n.layers?n.layers.concat():null,r;if(i&&i.length){for(r=[],t=0;t<i.length;t++)u=f._createExtraMapLayerObj(i[t]),r.push(u);n.layers=r}},t.prototype._createExtraMapLayerObj=function(n){var t,e=n.extraMapLayerTypeName,f,r,u,i;delete n.extraMapLayerTypeName;switch(e){case"GeoGridLayer":t=new wijmo.chart.map.GeoGridLayer;break;case"GeoMapLayer":t=new wijmo.chart.map.GeoMapLayer;break;case"ScatterMapLayer":t=new wijmo.chart.map.ScatterMapLayer}return f=n.itemsSource,f&&(t=JSON.parse(f),delete n.itemsSource),r=n.colorScale,r&&(u=new wijmo.chart.map.ColorScale,i=r.binding,i&&(typeof i!="function"&&typeof window[i]=="function"&&(i=window[i]),u.binding=i,delete r.binding),wijmo.copy(u,r),t.colorScale=u,delete n.colorScale),wijmo.copy(t,n),t},t}(n.mvc._Initializer);i._FlexMapInitializer=r;u=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(n.chart.map.FlexMap);i.FlexMap=u})(r=i.map||(i.map={}))})(i=t.chart||(t.chart={}))})(t=n.mvc||(n.mvc={}))})(c1||(c1={}));
var wijmo;!function(t){var i;(function(i){var e,s;!function(t){t[t.Zoom=0]="Zoom",t[t.Pan=1]="Pan"}(e=i.MouseAction||(i.MouseAction={})),function(t){t[t.X=0]="X",t[t.Y=1]="Y",t[t.XY=2]="XY"}(s=i.InteractiveAxes||(i.InteractiveAxes={}));var n=function(){function i(i,n){this._chart=null,this._zoomEle=null,this._overlayEle=null,this._wrapperMousedown=null,this._wrapperMouseMove=null,this._wrapperMouseup=null,this._wrapperPointerdown=null,this._wrapperPointerMove=null,this._wrapperPointerup=null,this._wrapperTouchStart=null,this._wrapperTouchMove=null,this._wrapperTouchEnd=null,this._wrapperMouseWheel=null,this._startFirstPt=null,this._minX=null,this._maxX=null,this._minY=null,this._maxY=null,this._threadHold=20,this._clip={},this._selection={},this._startPointers=[],this._mvPointers=[],this._pinchStartEvents=[],this._minXRange=null,this._minYRange=null,this._innerUpdating=!1,this._lastMinX=null,this._lastMaxX=null,this._lastMinY=null,this._lastMaxY=null,this._mouseAction=e.Zoom,this._interactiveAxes=s.X,this._enable=!0,this._scaleX=1,this._scaleY=1,this._posX=0,this._posY=0,i||t.assert(!1,"The FlexChart cannot be null."),this._chart=i,t.copy(this,n),this._initialize()}return Object.defineProperty(i.prototype,"mouseAction",{get:function(){return this._mouseAction},set:function(i){this._mouseAction=t.asEnum(i,e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"interactiveAxes",{get:function(){return this._interactiveAxes},set:function(i){i!==this._interactiveAxes&&(this._interactiveAxes=t.asEnum(i,s))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"enable",{get:function(){return this._enable},set:function(i){i!==this._enable&&(this._enable=t.asBoolean(i,!0))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"scaleX",{get:function(){return this._scaleX},set:function(i){i!==this._scaleX&&(this._scaleX=i<0?0:i>1?1:t.asNumber(i),this._seriesGroup&&this._initAxisRangeWithPosAndScale(!0))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"scaleY",{get:function(){return this._scaleY},set:function(i){i!==this._scaleY&&(this._scaleY=i<0?0:i>1?1:t.asNumber(i),this._seriesGroup&&this._initAxisRangeWithPosAndScale(!1))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"posX",{get:function(){return this._posX},set:function(i){i!==this._posX&&(this._posX=i<0?0:i>1?1:t.asNumber(i),this._seriesGroup&&this._initAxisRangeWithPosAndScale(!0))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"posY",{get:function(){return this._posY},set:function(i){i!==this._posY&&(this._posY=i<0?0:i>1?1:t.asNumber(i),this._seriesGroup&&this._initAxisRangeWithPosAndScale(!1))},enumerable:!0,configurable:!0}),i.prototype.remove=function(){this._zoomEle&&(this._chart.hostElement.removeChild(this._zoomEle),this._zoomEle=null),t.removeClass(this._chart.hostElement,i._CSS_TOUCH_DISABLED),this._switchEvent(!1),this._wrapperMousedown=null,this._wrapperMouseMove=null,this._wrapperMouseup=null,this._wrapperPointerdown=null,this._wrapperPointerMove=null,this._wrapperPointerup=null,this._wrapperTouchStart=null,this._wrapperTouchMove=null,this._wrapperTouchEnd=null,this._wrapperMouseWheel=null},i.prototype.reset=function(){var t=this._chart,i=t.axisX,e=t.axisY;this._maxX&&(i.max=this._maxX),this._minX&&(i.min=this._minX),this._maxY&&(e.max=this._maxY),this._minY&&(e.min=this._minY),this._initAxisRangeWithPosAndScale(!0),this._initAxisRangeWithPosAndScale(!1)},i.prototype._refreshChart=function(){var t=this._chart,i=t.axisX,e=t.axisY;this._minX=this._getAxisMin(i),this._maxX=this._getAxisMax(i),this._minY=this._getAxisMin(e),this._maxY=this._getAxisMax(e),this._minXRange=.005*(this._maxX-this._minX),this._minYRange=.005*(this._maxY-this._minY),this._initAxisRangeWithPosAndScale(!0),this._initAxisRangeWithPosAndScale(!1)},i.prototype._initialize=function(){var e=this._chart.hostElement;this._zoomEle=t.createElement('<div class="'+i._CSS_ZOOM+'"><div class="'+i._CSS_ZOOM_OVERLAY+'"></div>'),this._zoomEle.style.visibility="visible",e.appendChild(this._zoomEle),t.addClass(e,i._CSS_TOUCH_DISABLED),this._overlayEle=this._zoomEle.querySelector("."+i._CSS_ZOOM_OVERLAY),this._wrapperMousedown=this._onMousedown.bind(this),this._wrapperMouseMove=this._onMouseMove.bind(this),this._wrapperMouseup=this._onMouseup.bind(this),this._wrapperPointerdown=this._onPointerdown.bind(this),this._wrapperPointerMove=this._onPointerMove.bind(this),this._wrapperPointerup=this._onPointerup.bind(this),this._wrapperMouseWheel=this._onMouseWheel.bind(this),this._wrapperTouchStart=this._onTouchStart.bind(this),this._wrapperTouchMove=this._onTouchMove.bind(this),this._wrapperTouchEnd=this._onTouchEnd.bind(this),this._switchEvent(!0)},i.prototype._switchEvent=function(t){var i=this._chart.hostElement,e=t?"addEventListener":"removeEventListener",s=t?"addHandler":"removeHandler";i&&(i[e]("mousedown",this._wrapperMousedown),i[e]("mousemove",this._wrapperMouseMove),document[e]("mouseup",this._wrapperMouseup),"onpointerdown"in window&&(i[e]("pointerdown",this._wrapperPointerdown),i[e]("pointermove",this._wrapperPointerMove),document[e]("pointerup",this._wrapperPointerup)),i[e]("wheel",this._wrapperMouseWheel),"ontouchstart"in window&&(i[e]("touchstart",this._wrapperTouchStart),i[e]("touchmove",this._wrapperTouchMove),document[e]("touchend",this._wrapperTouchEnd)),this._chart.rendered[s](this._refresh,this))},i.prototype._refresh=function(){var i,e,s,n=this._chart,a=n.axisX,h=n.axisY,o=n.hostElement;this._seriesGroup=o.querySelector(".wj-series-group"),i=o.querySelector("."+t.chart.FlexChart._CSS_PLOT_AREA),this._plotOffset=t.getElementRect(i),this._plotBox=i.getBBox(),this._zoomEleOffset=t.getElementRect(this._zoomEle),this._overlayEle&&this._overlayEle.removeAttribute("style"),this._innerUpdating?this._innerUpdating=!1:(e=!1,s=!1,(null===this._minX||isNaN(this._minX)||0===this._minX||-1===this._minX||this._lastMinX!==this._getAxisMin(a))&&(this._minX=this._getAxisMin(a),null===this._minX||isNaN(this._minX)||0===this._minX||-1===this._minX||(e=!0)),(null===this._maxX||isNaN(this._maxX)||0===this._maxX||-1===this._maxX||this._lastMaxX!==this._getAxisMax(a))&&(this._maxX=this._getAxisMax(a),null===this._maxX||isNaN(this._maxX)||0===this._maxX||-1===this._maxX||(e=!0)),(null===this._minY||isNaN(this._minY)||this._lastMinY!==this._getAxisMin(h))&&(this._minY=this._getAxisMin(h),isNaN(this._minY)||(s=!0)),(null===this._maxY||isNaN(this._maxY)||this._lastMaxY!==this._getAxisMax(h))&&(this._maxY=this._getAxisMax(h),isNaN(this._maxY)||(s=!0)),this._minXRange=.005*(this._maxX-this._minX),this._minYRange=.005*(this._maxY-this._minY),e&&null!==this._scaleX&&void 0!==this._scaleX&&1!==this._scaleX&&null!==this._posX&&void 0!==this._posX&&0!==this._posX&&this._initAxisRangeWithPosAndScale(!0),s&&null!==this._scaleY&&void 0!==this._scaleY&&1!==this._scaleY&&null!==this._posY&&void 0!==this._posY&&0!==this._posY&&this._initAxisRangeWithPosAndScale(!1))},i.prototype._onMousedown=function(t){this._enable&&(this._disabledOthersInteraction(!0),this._mouseDown(t),t.preventDefault())},i.prototype._onMouseMove=function(t){this._enable&&(this._mouseMove(t),t.preventDefault())},i.prototype._onMouseup=function(t){this._enable&&(this._mouseup(t),this._disabledOthersInteraction(!1))},i.prototype._onMouseWheel=function(t){var i=-t.deltaY>0?.05:-.05;this._enable&&(this._scaling=!0,this._interactiveAxes!==s.X&&this._interactiveAxes!==s.XY||this._updateAxisByChg(!0,i,-i),this._interactiveAxes!==s.Y&&this._interactiveAxes!==s.XY||this._updateAxisByChg(!1,i,-i),this._scaling=!1,t.preventDefault())},i.prototype._mouseDown=function(s){this._startFirstPt=this._getPoint(s),this._updatePoint(this._startFirstPt),this._mouseAction===e.Zoom?this._initOverlay():(this._seriesGroup.setAttribute("clip-path","url(#"+this._chart._plotrectId+")"),t.toggleClass(this._chart.hostElement,i._CSS_PANABLE,this._mouseAction===e.Pan))},i.prototype._mouseMove=function(i){var s;this._startFirstPt&&(s=this._getPoint(i),this._updatePoint(s),this._endPoint=new t.Point(s.x,s.y),this._mouseAction===e.Zoom?this._updateOverLay(s):(this._panning=!0,this._panningChart(s.x-this._startFirstPt.x,s.y-this._startFirstPt.y)))},i.prototype._mouseup=function(s){var n=this._endPoint;if(this._chart.axisX,!this._startFirstPt||!n)return t.removeClass(this._chart.hostElement,i._CSS_PANABLE),void this._reset();this._mouseAction===e.Zoom?(this._zoomedChart(n),this._reset()):(this._pannedChart(n.x-this._startFirstPt.x,n.y-this._startFirstPt.y),this._reset()),t.removeClass(this._chart.hostElement,i._CSS_PANABLE)},i.prototype._onPointerdown=function(t){if(this._enable){switch(this._disabledOthersInteraction(!0),t.pointerType){case"touch":this._pointerDown(t);break;case"mouse":this._mouseDown(t)}t.preventDefault()}},i.prototype._onPointerMove=function(t){if(this._enable){switch(t.pointerType){case"touch":this._pointerMove(t);break;case"mouse":this._mouseMove(t)}t.preventDefault()}},i.prototype._onPointerup=function(t){if(this._enable){switch(t.pointerType){case"touch":this._pointerUp(t);break;case"mouse":this._mouseup(t)}this._disabledOthersInteraction(!1),t.preventDefault()}},i.prototype._pointerDown=function(t){t.preventManipulation&&t.preventManipulation(),this._seriesGroup.setAttribute("clip-path","url(#"+this._chart._plotrectId+")"),this._startPointers.push({id:t.pointerId,x:t.pageX,y:t.pageY}),1===this._startPointers.length?(this._scaling=!1,this._panning=!0):2===this._startPointers.length&&(this._panning=!1,this._scaling=!0,this._startDistance={x:this._startPointers[0].x-this._startPointers[1].x,y:this._startPointers[0].y-this._startPointers[1].y})},i.prototype._pointerMove=function(i){var e,n,a,h,o=new t.Point(i.pageX,i.pageY),r={},_={};if(i.preventManipulation&&i.preventManipulation(),this._panning){if(!this._pointInPlotArea(o))return;this._endPoint=new t.Point(i.pageX,i.pageY),this._panningChart(this._endPoint.x-this._startPointers[0].x,this._endPoint.y-this._startPointers[0].y)}else this._scaling&&(e=this._startPointers[0].id+"",n=this._startPointers[1].id+"",this._mvPointers[i.pointerId+""]={x:i.pageX,y:i.pageY},this._mvPointers[e]&&this._mvPointers[n]&&(Math.abs(this._startDistance.x)>this._threadHold&&this._interactiveAxes!==s.Y&&(a=this._mvPointers[e].x-this._plotOffset.left,h=this._startPointers[0].x-this._plotOffset.left,_.x=Math.abs((this._mvPointers[e].x-this._mvPointers[n].x)/this._startDistance.x),r.x=a-_.x*h,this._clip.x=(this._plotBox.x-a)/_.x+h,this._selection.w=this._plotBox.width/_.x),Math.abs(this._startDistance.y)>this._threadHold&&this._interactiveAxes!==s.X&&(a=this._mvPointers[e].y-this._plotOffset.top,h=this._startPointers[0].y-this._plotOffset.top,_.y=Math.abs((this._mvPointers[e].y-this._mvPointers[n].y)/this._startDistance.y),r.y=a-_.y*h,this._clip.y=(this._plotBox.y-a)/_.y+h,this._selection.h=this._plotBox.height/_.y),this._scalingChart(_,r)))},i.prototype._pointerUp=function(t){t.preventManipulation&&t.preventManipulation(),this._panning?(this._endPoint&&this._pannedChart(this._endPoint.x-this._startPointers[0].x,this._endPoint.y-this._startPointers[0].y),this._reset()):this._scaling&&(this._scaledChart(t),this._reset())},i.prototype._onTouchStart=function(t){if(this._enable)return this._disabledOthersInteraction(!0),1==t.touches.length?(this._scaling=!1,this._panning=!0,this._startFirstPt=this._getPoint(t)):2==t.touches.length&&(this._pinchStartEvents=this._getTouchPair(t),this._startDistance=this._touchDistance(t),this._panning=!1,this._scaling=!0),this._seriesGroup&&this._seriesGroup.setAttribute("clip-path","url(#"+this._chart._plotrectId+")"),this._chart._hideToolTip(),!0},i.prototype._onTouchMove=function(i){if(this._enable){var e,n,a,h,o,r={},_={},l=i.touches[0],c=new t.Point(l.pageX,l.pageY);if(i.preventDefault(),this._panning){if(this._startFirstPt){if(!this._pointInPlotArea(c))return;this._endPoint=new t.Point(l.pageX,l.pageY),this._panningChart(this._endPoint.x-this._startFirstPt.x,this._endPoint.y-this._startFirstPt.y)}}else this._scaling&&(a=this._touchDistance(i),h=this._getTouchPair(i)[0],o=this._pinchStartEvents[0],Math.abs(this._startDistance.x)>this._threadHold&&this._interactiveAxes!==s.Y&&(e=h.pageX-this._plotOffset.left,n=o.pageX-this._plotOffset.left,r.x=Math.abs(a.x/this._startDistance.x),_.x=e-r.x*n,this._clip.x=(this._plotBox.x-e)/r.x+n,this._selection.w=this._plotBox.width/r.x),Math.abs(this._startDistance.y)>this._threadHold&&this._interactiveAxes!==s.X&&(e=h.pageY-this._plotOffset.top,n=o.pageY-this._plotOffset.top,r.y=Math.abs(a.y/this._startDistance.y),_.y=e-r.y*n,this._clip.y=(this._plotBox.y-e)/r.y+n,this._selection.h=this._plotBox.height/r.y),this._scalingChart(r,_));return!0}},i.prototype._onTouchEnd=function(t){if(this._enable){var i=this._endPoint;if(this._panning){if(!this._startFirstPt||!i)return void this._reset();this._pannedChart(i.x-this._startFirstPt.x,i.y-this._startFirstPt.y)}else this._scaling&&this._scaledChart(t);return this._reset(),this._disabledOthersInteraction(!1),!0}},i.prototype._initOverlay=function(){switch(this._zoomEle.style.visibility="visible",this._interactiveAxes){case s.X:this._overlayEle.style.left=this._startFirstPt.x-this._zoomEleOffset.left+"px",this._overlayEle.style.top=this._plotOffset.top-this._zoomEleOffset.top+"px";break;case s.Y:this._overlayEle.style.left=this._plotBox.x+"px",this._overlayEle.style.top=this._startFirstPt.y-this._zoomEleOffset.top+"px";break;case s.XY:this._overlayEle.style.left=this._startFirstPt.x-this._zoomEleOffset.left+"px",this._overlayEle.style.top=this._startFirstPt.y-this._zoomEleOffset.top+"px"}},i.prototype._updateOverLay=function(i){var e=this._startFirstPt.x-i.x,n=this._startFirstPt.y-i.y,a={};switch(this._interactiveAxes){case s.X:if(Math.abs(e)<this._threadHold)return;a=e<=0?{width:Math.abs(e)+"px",height:this._plotBox.height+"px"}:{left:i.x-this._zoomEleOffset.left+"px",width:e+"px",height:this._plotBox.height+"px"};break;case s.Y:if(Math.abs(n)<this._threadHold)return;a=n<=0?{height:Math.abs(n)+"px",width:this._plotBox.width+"px"}:{top:i.y-this._zoomEleOffset.top+"px",height:n+"px",width:this._plotBox.width+"px"};break;case s.XY:Math.abs(e)>=this._threadHold&&(a.width=Math.abs(e)+"px",e>0&&(a.left=i.x-this._zoomEleOffset.left+"px")),Math.abs(n)>=this._threadHold&&(a.height=Math.abs(n)+"px",n>0&&(a.top=i.y-this._zoomEleOffset.top+"px"))}t.setCss(this._overlayEle,a)},i.prototype._updatePoint=function(t){var i=this._plotOffset;t.x<i.left&&(t.x=i.left),t.x>i.left+i.width&&(t.x=i.left+i.width),t.y<i.top&&(t.y=i.top),t.y>i.top+i.height&&(t.y=i.top+i.height)},i.prototype._pointInPlotArea=function(t){var i=this._plotOffset;return t.x>=i.left&&t.x<=i.left+i.width&&t.y>=i.top&&t.y<=i.top+i.height},i.prototype._zoomedChart=function(t){t&&(this._interactiveAxes!==s.X&&this._interactiveAxes!==s.XY||this._zoomedAxis(t,!0),this._interactiveAxes!==s.Y&&this._interactiveAxes!==s.XY||this._zoomedAxis(t,!1),this._startFirstPt=null)},i.prototype._zoomedAxis=function(t,i){var e,s,n=i?this._chart.axisX:this._chart.axisY,a=i?"x":"y",h=i?"left":"top";t&&Math.abs(this._startFirstPt[a]-t[a])>this._threadHold&&(e=n.convertBack(this._startFirstPt[a]-this._plotOffset[h]+this._plotBox[a]),(s=n.convertBack(t[a]-this._plotOffset[h]+this._plotBox[a]))-e!=0&&this._updateAxisRange(n,Math.min(e,s),Math.max(e,s)))},i.prototype._panningChart=function(t,i){var e=this._chart.axisX,n=this._chart.axisY,a=this._getTransFormGroups();t=Math.abs(t)<this._threadHold?0:t,i=Math.abs(i)<this._threadHold?0:i,this._interactiveAxes===s.X&&(i=0),this._interactiveAxes===s.Y&&(t=0);var h=e.reversed?-t:t;h>0&&e.actualMin.valueOf()===this._minX&&(t=0),h<0&&e.actualMax.valueOf()===this._maxX&&(t=0);var o=n.reversed?-i:i;o>0&&n.actualMax.valueOf()===this._maxY&&(i=0),o<0&&n.actualMin.valueOf()===this._minY&&(i=0);for(var r=0;r<a.length;r++)a[r].setAttribute("transform","translate("+t+","+i+")")},i.prototype._pannedChart=function(t,i){this._interactiveAxes!==s.X&&this._interactiveAxes!==s.XY||this._updateAxisByDistance(!0,t),this._interactiveAxes!==s.Y&&this._interactiveAxes!==s.XY||this._updateAxisByDistance(!1,-i)},i.prototype._scalingChart=function(t,i){var e,s,n,a=this._chart.axisX,h=this._chart.axisY,o=void 0!==i.x?i.x:0,r=void 0!==i.y?i.y:0;if(t){e=this._getTransFormGroups(),void 0!==t.x&&t.x<1&&a.actualMin.valueOf()===this._minX&&a.actualMax.valueOf()===this._maxX&&(t.x=1,o=0),void 0!==t.y&&t.y<1&&h.actualMin.valueOf()===this._minY&&h.actualMax.valueOf()===this._maxY&&(t.y=1,r=0),s=void 0!==t.x?t.x:1,n=void 0!==t.y?t.y:1;for(var _=0;_<e.length;_++)e[_].setAttribute("transform","translate("+o+", "+r+") scale("+s+", "+n+")")}},i.prototype._scaledChart=function(t){var i,e,n=this._chart,a=n.axisX,h=n.axisY;if(this._clip){if(this._interactiveAxes!==s.Y&&void 0!==this._clip.x){if((i=Math.max(this._minX,a.convertBack(this._clip.x)))>(e=Math.min(this._maxX,a.convertBack(this._clip.x+this._selection.w)))){var o=i;i=e,e=o}i-e!=0&&this._updateAxisRange(a,i,e)}this._interactiveAxes!==s.X&&void 0!==this._clip.y&&(e=Math.min(this._maxY,h.convertBack(this._clip.y)),(i=Math.max(this._minY,h.convertBack(this._clip.y+this._selection.h)))>e&&(o=i,i=e,e=o),i-e!=0&&this._updateAxisRange(h,i,e))}},i.prototype._updateAxisByDistance=function(t,i){var e,s=t?this._chart.axisX:this._chart.axisY,n=t?this._minX:this._minY,a=t?this._maxX:this._maxY,h=s.actualMin.valueOf(),o=s.actualMax.valueOf();if(0!==i){var r=s.reversed?-i:i;if(r>0&&n===h||r<0&&a===o)return this._innerUpdating=!0,void this._chart.invalidate();e=i/(t?this._plotBox.width:this._plotBox.height),this._updateAxisByChg(t,-e,-e)}},i.prototype._updateAxisByChg=function(t,i,e){var s,n,a=t?this._chart.axisX:this._chart.axisY,h=t?this._minX:this._minY,o=t?this._maxX:this._maxY,r=(a.actualMin.valueOf(),a.actualMax.valueOf(),this._chart._plotRect),_=t?r.left:r.top,l=t?r.width:r.height,c=t?this._minXRange:this._minYRange;if(!isNaN(i)&&!isNaN(e)){if(this._panning){if(a.reversed?i<0?(s=t?a.convertBack(_+i*l):a.convertBack(_+l-i*l))>o?(s=o,n=t?a.convertBack(a.convert(s)+l):a.convertBack(a.convert(s)-l)):n=t?a.convertBack(_+l+e*l):a.convertBack(_-e*l):(n=t?a.convertBack(_+l+e*l):a.convertBack(_-e*l))<h?(n=h,s=t?a.convertBack(a.convert(n)-l):a.convertBack(a.convert(n)+l)):s=t?a.convertBack(_+i*l):a.convertBack(_+l-i*l):i<0?(s=t?a.convertBack(_+i*l):a.convertBack(_+l-i*l))<h?(s=h,n=t?a.convertBack(a.convert(s)+l):a.convertBack(a.convert(s)-l)):n=t?a.convertBack(_+l+e*l):a.convertBack(_-e*l):(n=t?a.convertBack(_+l+e*l):a.convertBack(_-e*l))>o?(n=o,s=t?a.convertBack(a.convert(n)-l):a.convertBack(a.convert(n)+l)):s=t?a.convertBack(_+i*l):a.convertBack(_+l-i*l),s>n){var p=s;s=n,n=p}}else this._scaling&&((s=t?a.convertBack(_+i*l):a.convertBack(_+l-i*l))>(n=t?a.convertBack(_+l+e*l):a.convertBack(_-e*l))&&(p=s,s=n,n=p),s<h&&(s=h),n>o&&(n=o),n-s<c&&(s=n-c));this._updateAxisRange(a,s,n)}},i.prototype._initAxisRangeWithPosAndScale=function(t){var i,e,s,n;t?(i=this._maxX-this._minX,isNaN(i)||(e=i*this._scaleX,n=(s=this._minX+this._posX*(i-e))+e,this._innerUpdating=!0,this._chart.axisX.min=s,this._chart.axisX.max=n,this._lastMinX=s,this._lastMaxX=n)):(i=this._maxY-this._minY,isNaN(i)||(e=i*this._scaleY,n=(s=this._minY+this._posY*(i-e))+e,this._innerUpdating=!0,this._chart.axisY.min=s,this._chart.axisY.max=n,this._lastMinY=s,this._lastMaxY=n))},i.prototype._updateAxisRange=function(t,i,e){this._chart.beginUpdate(),t.min=i,t.max=e,t===this._chart.axisX?(this._lastMinX=i,this._lastMaxX=e):(this._lastMinY=i,this._lastMaxY=e),this._innerUpdating=!0,this._chart.endUpdate()},i.prototype._reset=function(){this._scaling=!1,this._panning=!1,this._startDistance=0,this._startFirstPt=null,this._pinchStartEvents=[],this._startPointers=[],this._mvPointers=[],this._endPoint=null,this._clip={},this._selection={}},i.prototype._getAxisMin=function(i){return t.isDate(i.actualMin)?i.actualMin.valueOf():i.actualMin},i.prototype._getAxisMax=function(i){return t.isDate(i.actualMax)?i.actualMax.valueOf():i.actualMax},i.prototype._getTransFormGroups=function(){var t=this._seriesGroup.querySelectorAll("g[clip-path]");return 0===t.length&&(t=this._seriesGroup.querySelectorAll("g")),t},i.prototype._disabledOthersInteraction=function(e){var s=this._chart.hostElement;if(null!==s&&void 0!==s)for(var n=s.querySelectorAll(".wj-chart-linemarker-container"),a=0;a<n.length;a++)e?t.addClass(n[a],i._CSS_BLOCK_INTERACTION):t.removeClass(n[a],i._CSS_BLOCK_INTERACTION)},i.prototype._getPoint=function(i){return i instanceof MouseEvent?new t.Point(i.pageX,i.pageY):new t.Point(i.changedTouches[0].pageX,i.changedTouches[0].pageY)},i.prototype._getTouchPair=function(i){var e=[];return t.isArray(i)?(e[0]=i[0],e[1]=i[1]):"touchend"===i.type?1===i.touches.length?(e[0]=i.touches[0],e[1]=i.changedTouches[0]):0===i.touches.length&&(e[0]=i.changedTouches[0],e[1]=i.changedTouches[1]):(e[0]=i.touches[0],e[1]=i.touches[1]),e},i.prototype._touchDistance=function(t){var i=this._getTouchPair(t),e=0,s=0;return i[0]&&void 0!==i[0].pageX&&i[1]&&void 0!==i[1].pageX&&(e=i[0].pageX-i[1].pageX),i[0]&&void 0!==i[0].pageY&&i[1]&&void 0!==i[1].pageY&&(s=i[0].pageY-i[1].pageY),{x:e,y:s}},i._CSS_ZOOM="wj-zoom",i._CSS_ZOOM_OVERLAY="wj-zoom-overlay",i._CSS_PANABLE="wj-panable",i._CSS_TOUCH_DISABLED="wj-flexchart-touch-disabled",i._CSS_BLOCK_INTERACTION="wj-block-other-interaction",i}();i.ChartGestures=n})((i=t.chart||(t.chart={})).interaction||(i.interaction={}))}(wijmo||(wijmo={})),function(t){var i;(function(i){"use strict";var e=function(){function i(i,e,s,n){this._isVisible=!0,this._buttonsVisible=!0,this._minScale=0,this._maxScale=1,this._seamless=!1,this._rsContainer=null,this._rsEle=null,this._decBtn=null,this._incBtn=null,this._rsContent=null,this._minHandler=null,this._rangeHandler=null,this._maxHandler=null,this._wrapperSliderMousedown=null,this._wrapperDocMouseMove=null,this._wrapperDocMouseup=null,this._wrapperBtnMousedown=null,this._wrapperRangeSpaceMousedown=null,this._wrapperRangeMouseleave=null,this._isTouch=!1,this._slidingInterval=null,this._rangeSliderRect=null,this._isHorizontal=!0,this._isBtnMousedown=!1,this._needSpaceClick=!1,this._hasButtons=!0,this._movingEle=null,this._movingOffset=null,this._range=null,this._startPt=null,this._minPos=0,this._maxPos=1,this.rangeChanged=new t.Event,this.rangeChanging=new t.Event,i||t.assert(!1,"The container cannot be null."),this._isTouch="ontouchstart"in window,this._needSpaceClick=e,this._hasButtons=s,t.copy(this,n),this._createSlider(i)}return Object.defineProperty(i.prototype,"buttonsVisible",{get:function(){return this._buttonsVisible},set:function(i){if(i!=this._buttonsVisible){if(this._buttonsVisible=t.asBoolean(i),!this._rsContainer||!this._hasButtons)return;this._refresh()}},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"isHorizontal",{get:function(){return this._isHorizontal},set:function(i){if(i!=this._isHorizontal){if(this._isHorizontal=t.asBoolean(i),!this._rsContainer)return;this._invalidate()}},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"isVisible",{get:function(){return this._isVisible},set:function(i){if(i!=this._isVisible){if(this._isVisible=t.asBoolean(i),!this._rsContainer)return;this._rsContainer.style.visibility=this._isVisible?"visible":"hidden"}},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"minScale",{get:function(){return this._minScale},set:function(i){i>=0&&i!=this._minScale&&(this._minScale=t.asNumber(i))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"maxScale",{get:function(){return this._maxScale},set:function(i){i>=0&&i!=this._maxScale&&(this._maxScale=t.asNumber(i))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"seamless",{get:function(){return this._seamless},set:function(i){i!=this._seamless&&(this._seamless=t.asBoolean(i))},enumerable:!0,configurable:!0}),i.prototype.onRangeChanged=function(t){this.rangeChanged.raise(this,t)},i.prototype.onRangeChanging=function(t){this.rangeChanging.raise(this,t)},Object.defineProperty(i.prototype,"_isSliding",{get:function(){return null!==this._startPt},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"_handleWidth",{get:function(){return this._minHandler.offsetWidth},enumerable:!0,configurable:!0}),i.prototype._createSlider=function(e){var s=this._isHorizontal?i._HRANGESLIDER:i._VRANGESLIDER,n=this._isHorizontal?"wj-glyph-left":"wj-glyph-down",a=this._isHorizontal?"wj-glyph-right":"wj-glyph-up";this._rsContainer=e,this._rsContainer.style.visibility=this._isVisible?"visible":"hidden",this._rsEle=t.createElement('<div class="wj-chart-rangeslider '+s+'"></div>'),this._rsContainer.appendChild(this._rsEle),this._hasButtons&&(this._decBtn=t.createElement('<button class="wj-rangeslider-decbtn wj-btn wj-btn-default" type="button" tabindex="-1"><span class="'+n+" "+i._RANGESLIDER_DECBTN+'"></span></button>'),this._rsEle.appendChild(this._decBtn),this._incBtn=t.createElement('<button class="wj-rangeslider-incbtn wj-btn wj-btn-default" type="button" tabindex="-1"><span class="'+a+" "+i._RANGESLIDER_INCBTN+'"></span></button>'),this._rsEle.appendChild(this._incBtn)),this._rsContent=t.createElement('<div class="wj-rangeslider-content"><div class="wj-rangeslider-rangehandle"></div><div class="wj-rangeslider-minhandle"></div><div class="wj-rangeslider-maxhandle"></div>'),this._rsEle.appendChild(this._rsContent),this._minHandler=this._rsContent.querySelector("."+i._RANGESLIDER_MINHANDLE),this._rangeHandler=this._rsContent.querySelector("."+i._RANGESLIDER_RANGEHANDLE),this._maxHandler=this._rsContent.querySelector("."+i._RANGESLIDER_MAXHANDLE),this._wrapperSliderMousedown=this._onSliderMousedown.bind(this),this._wrapperDocMouseMove=this._onDocMouseMove.bind(this),this._wrapperDocMouseup=this._onDocMouseup.bind(this),this._wrapperRangeSpaceMousedown=this._onRangeSpaceMousedown.bind(this),this._wrapperRangeMouseleave=this._onRangeMouseleave.bind(this),this._wrapperBtnMousedown=this._onBtnMousedown.bind(this),this._switchEvent(!0)},i.prototype._switchEvent=function(t){var i=t?"addEventListener":"removeEventListener";this._rsContainer&&(this._needSpaceClick&&this._rsEle[i]("mousedown",this._wrapperRangeSpaceMousedown),this._rsEle[i]("mouseleave",this._wrapperRangeMouseleave),this._rsContent[i]("mousedown",this._wrapperSliderMousedown),this._hasButtons&&(this._decBtn[i]("mousedown",this._wrapperBtnMousedown),this._incBtn[i]("mousedown",this._wrapperBtnMousedown)),document[i]("mousemove",this._wrapperDocMouseMove),document[i]("mouseup",this._wrapperDocMouseup),"ontouchstart"in window&&(this._needSpaceClick&&this._rsEle[i]("touchstart",this._wrapperRangeSpaceMousedown),this._rsContent[i]("touchstart",this._wrapperSliderMousedown),this._hasButtons&&(this._decBtn[i]("touchstart",this._wrapperBtnMousedown),this._incBtn[i]("touchstart",this._wrapperBtnMousedown)),document[i]("touchmove",this._wrapperDocMouseMove),document[i]("touchend",this._wrapperDocMouseup)))},i.prototype._onSliderMousedown=function(e){if(this._isVisible){var s=t.getElementRect(this._rsContent);this._plotBox={x:s.left,y:s.top,width:s.width,height:s.height},this._movingEle=e.srcElement||e.target,this._startPt=e instanceof MouseEvent?new t.Point(e.pageX,e.pageY):new t.Point(e.changedTouches[0].pageX,e.changedTouches[0].pageY),t.removeClass(this._minHandler,i._RANGESLIDER_HANDLE_ACTIVE),t.removeClass(this._maxHandler,i._RANGESLIDER_HANDLE_ACTIVE),this._movingOffset=t.getElementRect(this._movingEle),this._movingEle!=this._rangeHandler?(this._isHorizontal?this._movingOffset.left+=.5*this._movingEle.offsetWidth:this._movingOffset.top+=.5*this._movingEle.offsetHeight,t.addClass(this._movingEle,i._RANGESLIDER_HANDLE_ACTIVE)):this._range=this._maxPos-this._minPos,e.preventDefault()}},i.prototype._onDocMouseMove=function(i){if(this._isVisible&&this._startPt){var e=i instanceof MouseEvent?new t.Point(i.pageX,i.pageY):new t.Point(i.changedTouches[0].pageX,i.changedTouches[0].pageY);this._onMove(e)}},i.prototype._onMove=function(e){var s,n=this._startPt,a=this._movingOffset,h=this._plotBox,o=this._range,r=this._movingEle,_=this._minHandler,l=this._rangeHandler,c=this._maxHandler;n&&a&&((s=this._isHorizontal?(a.left+e.x-n.x-h.x)/h.width:1-(a.top+e.y-n.y-h.y)/h.height)<0?s=0:s>1&&(s=1),r===_?this._seamless&&0===this._minScale&&s>=this._maxPos?(this._minPos=this._maxPos,this._movingEle=c,t.removeClass(this._minHandler,i._RANGESLIDER_HANDLE_ACTIVE),t.addClass(this._maxHandler,i._RANGESLIDER_HANDLE_ACTIVE)):(s>this._maxPos-this._minScale&&(s=this._maxPos-this._minScale),s<this._maxPos-this._maxScale&&(s=this._maxPos-this._maxScale),this._minPos=s):r===c?this._seamless&&0===this._minScale&&s<=this._minPos?(this._maxPos=this._minPos,this._movingEle=_,t.removeClass(this._maxHandler,i._RANGESLIDER_HANDLE_ACTIVE),t.addClass(this._minHandler,i._RANGESLIDER_HANDLE_ACTIVE)):(s<this._minPos+this._minScale&&(s=this._minPos+this._minScale),s>this._minPos+this._maxScale&&(s=this._minPos+this._maxScale),this._maxPos=s):r===l&&(this._isHorizontal?(this._minPos=s,this._maxPos=this._minPos+o,this._maxPos>=1&&(this._maxPos=1,this._minPos=this._maxPos-o)):(this._maxPos=s,this._minPos=this._maxPos-o,this._minPos<=0&&(this._minPos=0,this._maxPos=this._minPos+o))),this._updateElesPosition(),this.onRangeChanging())},i.prototype._onDocMouseup=function(e){this._isVisible&&(this._clearInterval(),this._isBtnMousedown=!1,this._startPt&&(this.onRangeChanged(),this._startPt=null,this._movingOffset=null),t.removeClass(this._minHandler,i._RANGESLIDER_HANDLE_ACTIVE),t.removeClass(this._maxHandler,i._RANGESLIDER_HANDLE_ACTIVE))},i.prototype._onRangeSpaceMousedown=function(i){var e=i instanceof MouseEvent?new t.Point(i.pageX,i.pageY):new t.Point(i.changedTouches[0].pageX,i.changedTouches[0].pageY),s=t.getElementRect(this._rsContent),n=t.getElementRect(this._rangeHandler),a=i.srcElement||i.target,h=0;i.stopPropagation(),i.preventDefault(),a!==this._rsContent&&a!==this._rsEle||(this._isHorizontal?(h=n.width/s.width,e.x<n.left?h*=-1:e.x>n.left+n.width&&(h*=1)):(h=n.height/s.height,e.y<n.top?h*=1:e.y>n.top+n.height&&(h*=-1)),0!==h&&this._doSliding(h,e))},i.prototype._onRangeMouseleave=function(t){t.stopPropagation(),t.preventDefault(),this._isBtnMousedown&&(this._clearInterval(),this.onRangeChanged())},i.prototype._onBtnMousedown=function(e){var s=e.srcElement||e.target,n=0;if(e.stopPropagation(),e.preventDefault(),t.hasClass(s,i._RANGESLIDER_DECBTN)){if(0===this._minPos)return;n=-.05}else if(t.hasClass(s,i._RANGESLIDER_INCBTN)){if(1===this._maxPos)return;n=.05}this._isBtnMousedown=!0,0!==n&&this._doSliding(n)},i.prototype._refresh=function(i){var e,s,n=0,a=t.getElementRect(this._rsContainer);i&&(this._rangeSliderRect=i),this._rangeSliderRect&&(this._hasButtons&&this._buttonsVisible?(this._decBtn.style.display="block",this._incBtn.style.display="block",n=this._isHorizontal?this._decBtn.offsetWidth+this._minHandler.offsetWidth/2:this._decBtn.offsetHeight+this._minHandler.offsetHeight/2):(this._hasButtons&&(this._decBtn.style.display="none",this._incBtn.style.display="none"),n=this._isHorizontal?this._minHandler.offsetWidth/2:this._minHandler.offsetHeight/2),e=this._getRsRect(),this._isHorizontal?(e.left-=this._minHandler.offsetWidth/2,e.width+=this._minHandler.offsetWidth,s={left:n,width:e.width-2*n}):(e.top-=this._minHandler.offsetHeight/2,e.height+=this._minHandler.offsetHeight,s={top:n,height:e.height-2*n}),t.setCss(this._rsEle,e),t.setCss(this._rsContent,s),a=t.getElementRect(this._rsContent),this._plotBox={x:a.left,y:a.top,width:a.width,height:a.height},this._updateElesPosition())},i.prototype._updateElesPosition=function(){var t,i,e,s=this._minHandler,n=(this._rangeHandler,this._maxHandler),a=this._plotBox,h=this._isHorizontal;a&&(t=h?{left:this._minPos*a.width-.5*s.offsetWidth}:{top:(1-this._minPos)*a.height-.5*n.offsetHeight},i=h?{left:this._minPos*a.width,width:(this._maxPos-this._minPos)*a.width}:{top:(1-this._maxPos)*a.height,height:(this._maxPos-this._minPos)*a.height},e=h?{left:this._maxPos*a.width-.5*n.offsetWidth}:{top:(1-this._maxPos)*a.height-.5*s.offsetHeight},this._refreshSlider(t,i,e))},i.prototype._refreshSlider=function(i,e,s){t.setCss(this._minHandler,i),t.setCss(this._rangeHandler,e),t.setCss(this._maxHandler,s)},i.prototype._invalidate=function(){var e,s;this._rsContainer&&(e=this._isHorizontal?i._HRANGESLIDER:i._VRANGESLIDER,s=this._isHorizontal?i._VRANGESLIDER:i._HRANGESLIDER,t.removeClass(this._rsEle,s),t.addClass(this._rsEle,e),[this._rsEle,this._rsContent,this._minHandler,this._maxHandler,this._rangeHandler].forEach(function(t){t.removeAttribute("style")}),this._refresh())},i.prototype._changeRange=function(t){var i=this._maxPos-this._minPos;t<0&&0===this._minPos||t>0&&1===this._maxPos||(t<0?(this._minPos+=t,this._minPos=this._minPos<0?0:this._minPos,this._maxPos=this._minPos+i):(this._maxPos+=t,this._maxPos=this._maxPos>1?1:this._maxPos,this._minPos=this._maxPos-i),this._updateElesPosition())},i.prototype._doSliding=function(i,e){t.getElementRect(this._rsContent),t.getElementRect(this._rangeHandler),this._clearInterval(),this._startPt=new t.Point,this._changeRange(i),this.onRangeChanged(),this._setSlidingInterval(i,e)},i.prototype._setSlidingInterval=function(i,e){var s,n=this;this._slidingInterval=window.setInterval(function(){if(e)if(t.getElementRect(n._rsContent),s=t.getElementRect(n._rangeHandler),n._isHorizontal){if(e.x>=s.left&&e.x<=s.left+s.width)return void n._clearInterval()}else if(e.y>=s.top&&e.y<=s.top+s.height)return void n._clearInterval();n._changeRange(i),n.onRangeChanged()},200)},i.prototype._clearInterval=function(){this._slidingInterval&&window.clearInterval(this._slidingInterval)},i.prototype._getRsRect=function(){var t=this._rangeSliderRect,i={};if(t)return["left","top","width","height"].forEach(function(e){t[e]&&(i[e]=t[e])}),i},i._HRANGESLIDER="wj-chart-hrangeslider",i._VRANGESLIDER="wj-chart-vrangeslider",i._RANGESLIDER_DECBTN="wj-rangeslider-decbtn",i._RANGESLIDER_INCBTN="wj-rangeslider-incbtn",i._RANGESLIDER_RANGEHANDLE="wj-rangeslider-rangehandle",i._RANGESLIDER_MINHANDLE="wj-rangeslider-minhandle",i._RANGESLIDER_MAXHANDLE="wj-rangeslider-maxhandle",i._RANGESLIDER_HANDLE_ACTIVE="wj-rangeslider-handle-active",i}();i._RangeSlider=e})((i=t.chart||(t.chart={})).interaction||(i.interaction={}))}(wijmo||(wijmo={})),function(t){var i;(function(i){"use strict";var e;!function(t){t[t.X=0]="X",t[t.Y=1]="Y"}(e=i.Orientation||(i.Orientation={}));var s=function(){function s(i,s){this._isVisible=!0,this._orientation=e.X,this._seamless=!1,this._minScale=0,this._maxScale=1,this.rangeChanged=new t.Event,this._chart=t.asType(i,t.chart.FlexChartCore,!1),this._createRangeSelector(),t.copy(this,s)}return Object.defineProperty(s.prototype,"isVisible",{get:function(){return this._isVisible},set:function(i){i!=this._isVisible&&(this._isVisible=t.asBoolean(i),this._rangeSlider&&(this._rangeSlider.isVisible=i))},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"min",{get:function(){return this._min},set:function(i){if((i=t.asNumber(i,!0,!1))!=this._min){var e=!1;null==i||void 0===i||isNaN(i)||null==this._max?(this._min=i,e=!0):(i<=this._max||void 0===this._max)&&(this._min=i,e=!0),this._rangeSlider&&e&&this._changeRange()}},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"max",{get:function(){return this._max},set:function(i){if((i=t.asNumber(i,!0,!1))!=this._max){var e=!1;null==i||isNaN(i)?(this._max=i,e=!0):(i>=this._min||void 0===this._min)&&(this._max=i,e=!0),this._rangeSlider&&e&&this._changeRange()}},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"orientation",{get:function(){return this._orientation},set:function(i){(i=t.asEnum(i,e))!==this._orientation&&(this._orientation=i,this._rangeSlider&&(this._rangeSlider.isHorizontal=i==e.X))},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"seamless",{get:function(){return this._seamless},set:function(i){(i=t.asBoolean(i,!0))!=this._seamless&&(this._seamless=i,this._rangeSlider&&(this._rangeSlider.seamless=i))},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"minScale",{get:function(){return this._minScale},set:function(i){(i=t.asNumber(i))<=1&&i>=0&&i!=this._minScale&&i<this._maxScale&&(this._minScale=i,this._rangeSlider&&(this._rangeSlider.minScale=t.asNumber(i),this._updateMinAndMaxWithScale(!0)))},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"maxScale",{get:function(){return this._maxScale},set:function(i){(i=t.asNumber(i))<=1&&i>=0&&i!=this._maxScale&&i>this._minScale&&(this._maxScale=i,this._rangeSlider&&(this._rangeSlider.maxScale=t.asNumber(i),this._updateMinAndMaxWithScale(!0)))},enumerable:!0,configurable:!0}),s.prototype.remove=function(){this._rangeSelectorEle&&(this._chart.hostElement.removeChild(this._rangeSelectorEle),this._switchEvent(!1),this._rangeSelectorEle=null,this._rangeSlider=null)},s.prototype.onRangeChanged=function(t){this.rangeChanged.raise(this,t)},s.prototype._createRangeSelector=function(){var s=this._chart.hostElement,n=this._orientation===e.X;this._rangeSelectorEle=t.createElement('<div class="wj-chart-rangeselector-container"></div>'),this._rangeSlider=new i._RangeSlider(this._rangeSelectorEle,!1,!1,{isHorizontal:n,isVisible:this._isVisible,seamless:this._seamless}),s.appendChild(this._rangeSelectorEle),this._switchEvent(!0)},s.prototype._switchEvent=function(t){var i=t?"addHandler":"removeHandler";this._chart.hostElement&&(this._rangeSlider.rangeChanged[i](this._updateRange,this),this._chart.rendered[i](this._refresh,this))},s.prototype._refresh=function(){var i,e,s,n=this._chart.hostElement,a=t.getElementRect(this._rangeSelectorEle);i=n.querySelector("."+t.chart.FlexChart._CSS_PLOT_AREA),e=t.getElementRect(i),(s=i.getBBox())&&s.width&&s.height&&(this._adjustMinAndMax(),this._rangeSlider._refresh({left:s.x,top:e.top-a.top,width:s.width,height:s.height}))},s.prototype._adjustMinAndMax=function(){var i=this._chart,s=this._rangeSlider,n=this._min,a=this._max,h=this._orientation===e.X?i.axisX:i.axisY,o=t.isDate(h.actualMin)?h.actualMin.valueOf():h.actualMin,r=t.isDate(h.actualMax)?h.actualMax.valueOf():h.actualMax;this._min=null===n||isNaN(n)||void 0===n||n<o||n>r?o:n,this._max=null===a||isNaN(a)||void 0===a||a<o||a>r?r:a;var _=this._chart._plotRect;if(_){var l=void 0,c=void 0;this._orientation===e.X?(l=(h.convert(this._min)-_.left)/_.width,c=(h.convert(this._max)-_.left)/_.width):(l=(_.top-h.convert(this._min))/_.height+1,c=(_.top-h.convert(this._max))/_.height+1),s._minPos=isNaN(l)?0:l,s._maxPos=isNaN(c)?1:c,this._updateMinAndMaxWithScale(!1)}},s.prototype._updateMinAndMaxWithScale=function(t){var i,e=this._rangeSlider,s=!1;if(0!==this._minScale&&e._minPos+this._minScale>e._maxPos&&((i=e._minPos+this._minScale)>1?(e._maxPos=1,e._minPos=1-this._minScale):e._maxPos=i,s=!0),1!==this._maxScale&&e._minPos+this._maxScale<e._maxPos&&((i=e._minPos+this._maxScale)>1?(e._maxPos=1,e._minPos=1-this._maxScale):e._maxPos=i,s=!0),s){var n=this._getMinAndMax();this._min=n.min,this._max=n.max,t&&this._rangeSelectorEle&&(this._rangeSlider._refresh(),this.onRangeChanged())}},s.prototype._changeRange=function(){this._adjustMinAndMax(),this._rangeSelectorEle&&(this._rangeSlider._refresh(),this.onRangeChanged())},s.prototype._updateRange=function(){var t;this._rangeSlider,t=this._chart,this._orientation===e.X?t.axisX:t.axisY;var i=this._getMinAndMax();this._min=i.min,this._max=i.max,this.onRangeChanged()},s.prototype._getMinAndMax=function(){var t=this._rangeSlider,i=this._chart,s=i._plotRect,n=null,a=null;return s&&(this._orientation===e.X?(n=i.axisX.convertBack(s.left+t._minPos*s.width),a=i.axisX.convertBack(s.left+t._maxPos*s.width)):(n=i.axisY.convertBack(s.top+(1-t._minPos)*s.height),a=i.axisY.convertBack(s.top+(1-t._maxPos)*s.height))),{min:n,max:a}},s}();i.RangeSelector=s})((i=t.chart||(t.chart={})).interaction||(i.interaction={}))}(wijmo||(wijmo={})),function(t){!function(i){i.interaction||(i.interaction={}),t._registerModule("wijmo.chart.interaction",t.chart.interaction)}(t.chart||(t.chart={}))}(wijmo||(wijmo={}));
var __extends=this&&this.__extends||function(){var n=function(t,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r(){this.constructor=t}if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(t,i);t.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}}(),c1;(function(n){var t;(function(n){var t;(function(n){var i=function(n){function t(t,i){var r=n.call(this,t,i)||this;return r.__chart=t,r}return __extends(t,n),t.prototype.initialize=function(n){wijmo.copy(this,n);this.__chart.refresh()},t.prototype._copy=function(n,t){return n==="rangeChanged"?(typeof t=="function"&&this.rangeChanged.addHandler(t),!0):!1},t}(wijmo.chart.interaction.RangeSelector),t;n.RangeSelector=i;t=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(wijmo.chart.interaction.ChartGestures);n.ChartGestures=t})(t=n.interaction||(n.interaction={}))})(t=n.chart||(n.chart={}))})(c1||(c1={}));
var __extends=this&&this.__extends||function(){var n=function(t,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r(){this.constructor=t}if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(t,i);t.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}}(),c1;(function(n){var t;(function(t){var i;(function(t){var i;(function(t){var r=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(n.chart.interaction.RangeSelector),i;t.RangeSelector=r;i=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(n.chart.interaction.ChartGestures);t.ChartGestures=i})(i=t.interaction||(t.interaction={}))})(i=t.chart||(t.chart={}))})(t=n.mvc||(n.mvc={}))})(c1||(c1={}));
var wijmo;(function(n){var t;(function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.ChartGestures||(n.ChartGestures={}))})(t=n.interaction||(n.interaction={}))})(t=n.chart||(n.chart={}))})(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.RangeSelector||(n.RangeSelector={}))})(t=n.interaction||(n.interaction={}))})(t=n.chart||(n.chart={}))}(wijmo||(wijmo={}));
var wijmo;(function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.FlexChartCore||(n.FlexChartCore={}))})(t=n.chart||(n.chart={}))})(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.FlexChartBase||(n.FlexChartBase={}))})(t=n.chart||(n.chart={}))}(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.FlexChart||(n.FlexChart={}))})(t=n.chart||(n.chart={}))}(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.Axis||(n.Axis={}))})(t=n.chart||(n.chart={}))}(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.DataLabelBase||(n.DataLabelBase={}))})(t=n.chart||(n.chart={}))}(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.DataLabel||(n.DataLabel={}))})(t=n.chart||(n.chart={}))}(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.PieDataLabel||(n.PieDataLabel={}))})(t=n.chart||(n.chart={}))}(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.ChartTooltip||(n.ChartTooltip={}))})(t=n.chart||(n.chart={}))}(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.FlexPie||(n.FlexPie={}))})(t=n.chart||(n.chart={}))}(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.HitTestInfo||(n.HitTestInfo={}))})(t=n.chart||(n.chart={}))}(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.IRenderEngine||(n.IRenderEngine={}))})(t=n.chart||(n.chart={}))}(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.Legend||(n.Legend={}))})(t=n.chart||(n.chart={}))}(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.LineMarker||(n.LineMarker={}))})(t=n.chart||(n.chart={}))}(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.PlotArea||(n.PlotArea={}))})(t=n.chart||(n.chart={}))}(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.SeriesBase||(n.SeriesBase={}))})(t=n.chart||(n.chart={}))}(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.Series||(n.Series={}))})(t=n.chart||(n.chart={}))}(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.SeriesEventArgs||(n.SeriesEventArgs={}))})(t=n.chart||(n.chart={}))}(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.RenderEventArgs||(n.RenderEventArgs={}))})(t=n.chart||(n.chart={}))}(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.SeriesRenderingEventArgs||(n.SeriesRenderingEventArgs={}))})(t=n.chart||(n.chart={}))}(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.DataLabelRenderEventArgs||(n.DataLabelRenderEventArgs={}))})(t=n.chart||(n.chart={}))}(wijmo||(wijmo={}));
var wijmo;(function(n){var t;(function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.BoxWhisker||(n.BoxWhisker={}))})(t=n.analytics||(n.analytics={}))})(t=n.chart||(n.chart={}))})(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.ErrorBar||(n.ErrorBar={}))})(t=n.analytics||(n.analytics={}))})(t=n.chart||(n.chart={}))}(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.FunctionSeries||(n.FunctionSeries={}))})(t=n.analytics||(n.analytics={}))})(t=n.chart||(n.chart={}))}(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.ParametricFunctionSeries||(n.ParametricFunctionSeries={}))})(t=n.analytics||(n.analytics={}))})(t=n.chart||(n.chart={}))}(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.YFunctionSeries||(n.YFunctionSeries={}))})(t=n.analytics||(n.analytics={}))})(t=n.chart||(n.chart={}))}(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.MovingAverage||(n.MovingAverage={}))})(t=n.analytics||(n.analytics={}))})(t=n.chart||(n.chart={}))}(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.TrendLineBase||(n.TrendLineBase={}))})(t=n.analytics||(n.analytics={}))})(t=n.chart||(n.chart={}))}(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.TrendLine||(n.TrendLine={}))})(t=n.analytics||(n.analytics={}))})(t=n.chart||(n.chart={}))}(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.Waterfall||(n.Waterfall={}))})(t=n.analytics||(n.analytics={}))})(t=n.chart||(n.chart={}))}(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.BreakEven||(n.BreakEven={}))})(t=n.analytics||(n.analytics={}))})(t=n.chart||(n.chart={}))}(wijmo||(wijmo={}));
var wijmo;(function(n){var t;(function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.Sunburst||(n.Sunburst={}))})(t=n.hierarchical||(n.hierarchical={}))})(t=n.chart||(n.chart={}))})(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.TreeMap||(n.TreeMap={}))})(t=n.hierarchical||(n.hierarchical={}))})(t=n.chart||(n.chart={}))}(wijmo||(wijmo={}));
var wijmo;(function(n){var t;(function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.FlexRadar||(n.FlexRadar={}))})(t=n.radar||(n.radar={}))})(t=n.chart||(n.chart={}))})(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.FlexRadarAxis||(n.FlexRadarAxis={}))})(t=n.radar||(n.radar={}))})(t=n.chart||(n.chart={}))}(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.FlexRadarSeries||(n.FlexRadarSeries={}))})(t=n.radar||(n.radar={}))})(t=n.chart||(n.chart={}))}(wijmo||(wijmo={}));
var wijmo;(function(n){var t;(function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.WebGLRenderEngine||(n.WebGLRenderEngine={}))})(t=n.webgl||(n.webgl={}))})(t=n.chart||(n.chart={}))})(wijmo||(wijmo={}));
var wijmo;(function(n){var t;(function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.FlexMap||(n.FlexMap={}))})(t=n.map||(n.map={}))})(t=n.chart||(n.chart={}))})(wijmo||(wijmo={}));
var wijmo,__extends=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}();!function(t){var e;(function(e){"use strict";var i;!function(t){t[t.None=0]="None",t[t.Condition=1]="Condition",t[t.Value=2]="Value",t[t.Both=3]="Both"}(i=e.FilterType||(e.FilterType={}));var n=function(){function n(e,n){this._showIcons=!0,this._showSort=!0,this._defFilterType=i.Both,this._xValueSearch=!0,this.filterApplied=new t.Event,this.editingFilter=new t.Event,this.filterChanging=new t.Event,this.filterChanged=new t.Event,this._filters=[],this._g=t.asType(e,t.grid.FlexGrid,!1),this._g.formatItem.addHandler(this._formatItem.bind(this)),this._g.itemsSourceChanged.addHandler(this.clear.bind(this));var r=this._g.hostElement;e.addEventListener(r,"mousedown",this._mousedown.bind(this),!0),e.addEventListener(r,"click",this._click.bind(this),!0),e.addEventListener(r,"keydown",this._keydown.bind(this),!0),this._g.invalidate(),t.copy(this,n)}return Object.defineProperty(n.prototype,"grid",{get:function(){return this._g},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"filterColumns",{get:function(){return this._filterColumns},set:function(e){this._filterColumns=t.asArray(e),this.clear()},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"showFilterIcons",{get:function(){return this._showIcons},set:function(e){e!=this.showFilterIcons&&(this._showIcons=t.asBoolean(e),this._g&&this._g.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"showSortButtons",{get:function(){return this._showSort},set:function(e){this._showSort=t.asBoolean(e)},enumerable:!0,configurable:!0}),n.prototype.getColumnFilter=function(t,i){if(void 0===i&&(i=!0),t=this._asColumn(t)){for(var n=0;n<this._filters.length;n++)if(this._filters[n].column==t)return this._filters[n];if(i&&t.binding){var r=new e.ColumnFilter(this,t);return this._filters.push(r),r}}return null},Object.defineProperty(n.prototype,"defaultFilterType",{get:function(){return this._defFilterType},set:function(e){(e=t.asEnum(e,i,!1))!=this.defaultFilterType&&(this._defFilterType=e,this._g.invalidate(),this.clear())},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"exclusiveValueSearch",{get:function(){return this._xValueSearch},set:function(e){this._xValueSearch=t.asBoolean(e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"filterDefinition",{get:function(){var t=this,e={defaultFilterType:this.defaultFilterType,filters:[]};return this._filters.forEach(function(i){var n=i.conditionFilter,r=i.valueFilter,l=r.uniqueValues&&r.uniqueValues.length;if(i&&i.column&&i.column.binding&&(i.isActive||l||i.filterType!=t.defaultFilterType)){var a={binding:i.column.binding};if(n.isActive){var o=n.condition1,s=n.condition2;a={binding:i.column.binding,type:"condition",condition1:{operator:o.operator,value:o.value},and:n.and,condition2:{operator:s.operator,value:s.value}}}else(r.isActive||l)&&(a={binding:i.column.binding,type:"value",uniqueValues:r.uniqueValues,sortValues:r.sortValues,maxValues:r.maxValues,exclusiveValueSearch:r.exclusiveValueSearch,showValues:r.showValues});i.filterType!=t.defaultFilterType&&(a.filterType=i.filterType),e.filters.push(a)}}),JSON.stringify(e)},set:function(e){if(e=t.asString(e),this.clear(),e){var n=JSON.parse(e);this.defaultFilterType=n.defaultFilterType;for(var r=function(e){var r=n.filters[e],a=l._asColumn(r.binding);a||(a=new t.grid.Column({binding:r.binding}));var o=l.getColumnFilter(a,!0);if(o)switch(null!=r.filterType&&(o.filterType=t.asEnum(r.filterType,i)),r.type){case"condition":var s=o.conditionFilter;s.condition1.value=a.dataType==t.DataType.Date?t.changeType(r.condition1.value,a.dataType,null):r.condition1.value,s.condition1.operator=r.condition1.operator,s.and=r.and,s.condition2.value=a.dataType==t.DataType.Date?t.changeType(r.condition2.value,a.dataType,null):r.condition2.value,s.condition2.operator=r.condition2.operator;break;case"value":var u=o.valueFilter;u.uniqueValues=r.uniqueValues,["sortValues","maxValues","exclusiveValueSearch"].forEach(function(t){null!=r[t]&&(u[t]=r[t])}),u.showValues=r.showValues}},l=this,a=0;a<n.filters.length;a++)r(a)}this.apply()},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"activeEditor",{get:function(){return t.Control.getControl(this._divEdt)},enumerable:!0,configurable:!0}),n.prototype.editColumnFilter=function(i,n,r){var l=this,a=this._g;this.closeEditor(),i=this._asColumn(i);var o=new t.grid.CellRangeEventArgs(a.cells,new t.grid.CellRange(-1,i.index));if(this.onEditingFilter(o)){var s=t.createElement('<div class="wj-dropdown-panel"></div>'),u=this.getColumnFilter(i),c=new e.ColumnFilterEditor(s,u,this.showSortButtons);if(this._divEdt=s,this._edtCol=i,a.rightToLeft&&(s.dir="rtl"),this.onFilterChanging(o)){o.cancel=!0,c.filterChanged.addHandler(function(){o.cancel=!1,setTimeout(function(){o.cancel||l.apply()})}),c.buttonClicked.addHandler(function(){l.closeEditor(),a.focus(),l.onFilterChanged(o)}),c.lostFocus.addHandler(function(){setTimeout(function(){var e=t.Control.getControl(l._divEdt);e&&!e.containsFocus()&&l.closeEditor()},10)});var d=n?n.col:i.index,p=a.columns[d];n||p&&p.binding==i.binding||(d=a.selection.leftCol),a._edtHdl._commitRowEdits(),a.scrollIntoView(-1,d,!0);var h=a.columnHeaders,f=n&&n.panel==h?n.row:h.rows.length-1,_=d,v=r||h.getCellElement(f,_),b=v?null:h.getCellBoundingRect(f,_);v?t.showPopup(s,v,!1,!1,!1):t.showPopup(s,b),this._setAriaExpanded(v,!0),this._setAriaExpanded(a.cells.getCellElement(-1,_),!0);for(var g=c.hostElement.querySelectorAll("input"),y=0;y<g.length;y++){var m=g[y];if(m.offsetHeight>0&&m.tabIndex>-1&&!m.disabled){m.focus();break}}c.containsFocus()||c.focus()}else this._divEdt=this._edtCol=null}},n.prototype._setAriaExpanded=function(e,i){if(e){var r=e.querySelector("."+n._WJC_FILTER);t.setAttribute(r,"aria-expanded",i)}},n.prototype.closeEditor=function(){var e=this._g,i=t.Control.getControl(this._divEdt),n=this._edtCol;if(i&&t.hidePopup(i.hostElement,function(){i.dispose()}),n){var r=e.columnHeaders,l=r.rows.length?r.getCellElement(r.rows.length-1,n.index):null;this._setAriaExpanded(l,!1),l=e.cells.getCellElement(-1,n.index),this._setAriaExpanded(l,!1)}this._divEdt=null,this._edtCol=null},n.prototype.apply=function(){var e=this._g.collectionView;if(e){var i=this._g.editableCollectionView;i&&(i.commitEdit(),i.commitNew()),e.filter=this._filter.bind(this)}var n=e?e.updateFilterDefinition:null;t.isFunction(n)&&n.call(e,this),this.onFilterApplied()},n.prototype.clear=function(){this._filters.length&&(this._filters=[],this.apply())},n.prototype.onFilterApplied=function(t){this.filterApplied.raise(this,t)},n.prototype.onEditingFilter=function(t){return this.editingFilter.raise(this,t),!t.cancel},n.prototype.onFilterChanging=function(t){return this.filterChanging.raise(this,t),!t.cancel},n.prototype.onFilterChanged=function(t){this.filterChanged.raise(this,t)},n.prototype._asColumn=function(e){return t.isString(e)?this._g.getColumn(e,!0):t.isNumber(e)?this._g.columns[e]:t.asType(e,t.grid.Column,!1)},n.prototype._filter=function(t){for(var e=this._filters,i=0;i<e.length;i++){var r=e[i];if(r.column!=n._skipColumn&&!r.apply(t))return!1}return!0},n.prototype._formatItem=function(e,n){if(n.panel==e.columnHeaders){var r=this._g,l=r.getMergedRange(n.panel,n.row,n.col)||new t.grid.CellRange(n.row,n.col),a=r.columns[l.col],o=r._getBindingColumn(n.panel,n.row,a),s=n.cell;if(l.row2==n.panel.rows.length-1||a!=o){var u=this.getColumnFilter(o,this.defaultFilterType!=i.None),c=this._filterColumns;c&&c.length&&c.indexOf(o.binding)<0&&c.indexOf(o.name)<0&&(u=null),u?(t.toggleClass(s,"wj-filter-on",u.isActive),t.toggleClass(s,"wj-filter-off",!u.isActive)):(t.removeClass(s,"wj-filter-on"),t.removeClass(s,"wj-filter-off")),u&&u.filterType!=i.None&&(this._showIcons&&this._addFilterButton(o,u,s),0==n.row&&(s=r.cells.getCellElement(-1,n.col))&&this._addFilterButton(a,u,s))}}},n.prototype._addFilterButton=function(e,i,r){var l=n._WJC_FILTER,a=t.createElement('<button class="wj-btn wj-btn-glyph wj-right '+l+'" type="button" tabindex="-1"><span class="wj-glyph-filter"></span></button>');t.setAriaLabel(a,t.culture.FlexGridFilter.ariaLabels.edit+" "+e.header),t.setAttribute(a,"aria-haspopup","dialog"),t.setAttribute(a,"aria-expanded",!1),t.setAttribute(a,"aria-describedby",e.describedById),t.setAttribute(a,"aria-pressed",i.isActive),r.querySelector("."+l)||(1==r.children.length&&(r=r.querySelector("div")||r),r.insertBefore(a,r.firstChild))},n.prototype._mousedown=function(t){this._edtColPrev=this._edtCol},n.prototype._click=function(t){this._toggleEditor(t)&&(t.stopPropagation(),t.preventDefault())},n.prototype._toggleEditor=function(e){var i=this;if(!e.defaultPrevented&&0==e.button)if(t.closestClass(e.target,n._WJC_FILTER)){var r=this._g,l=r.hitTest(e.target);if(l.panel||(l=r.hitTest(e)),l.panel==r.columnHeaders||l.panel==r.cells&&-1==l.row){var a=r.getMergedRange(l.panel,l.row,l.col)||new t.grid.CellRange(l.row,l.col),o=r.columns[a.col],s=r._getBindingColumn(l.panel,l.row,o);return this._divEdt&&this._edtCol==s?(this.closeEditor(),r.focus()):s!=this._edtColPrev&&setTimeout(function(){i.editColumnFilter(s,l)},this._divEdt?100:0),!0}}else this.closeEditor();return!1},n.prototype._keydown=function(e){if(!e.defaultPrevented&&!e.ctrlKey&&e.altKey&&(e.keyCode==t.Key.Down||e.keyCode==t.Key.Up)){var n=this.grid,r=n.selection,l=r.col>-1?n.columns[r.col]:null,a=l?n._getBindingColumn(n.cells,r.row,l):null,o=a&&a.dataMap&&a.dataMapEditor==t.grid.DataMapEditor.DropDownList;if(a&&a.editor instanceof t.input.DropDown&&(o=!0),a&&!o){var s=this.getColumnFilter(a,!1);s&&s.filterType!=i.None&&(this.editColumnFilter(a),e.preventDefault(),e.stopPropagation())}}},n._WJC_FILTER="wj-elem-filter",n}();e.FlexGridFilter=n})((e=t.grid||(t.grid={})).filter||(e.filter={}))}(wijmo||(wijmo={})),function(t){!function(t){!function(t){"use strict"}(t.filter||(t.filter={}))}(t.grid||(t.grid={}))}(wijmo||(wijmo={})),function(t){!function(e){!function(e){"use strict";var i=function(){function i(t){this._c1=new e.FilterCondition(this),this._c2=new e.FilterCondition(this),this._and=!0,this._col=t}return Object.defineProperty(i.prototype,"condition1",{get:function(){return this._c1},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"condition2",{get:function(){return this._c2},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"and",{get:function(){return this._and},set:function(e){this._and=t.asBoolean(e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dataMap",{get:function(){return this._map},set:function(e){this._map=t.asType(e,t.grid.DataMap,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"column",{get:function(){return this._col},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"isActive",{get:function(){return this._c1.isActive||this._c2.isActive},enumerable:!0,configurable:!0}),i.prototype.apply=function(i){var n=this._col,r=this._c1,l=this._c2,a=!1,o=!1;if(!n||!n._binding||!this.isActive)return!0;i=n._binding.getValue(i);var s=this.dataMap||n.dataMap;if(s)i=s.getDisplayValue(i);else if(t.isDate(i)){a=!this._hasTimePart(),o=!this._hasDatePart();var u=e.FilterCondition._refDateTime;a?i=t.DateTime.fromDateTime(i,u):o&&(i=t.DateTime.fromDateTime(u,i))}else if(t.isNumber(i)){var c=t.Globalize,d=n.format,p=c.formatNumber(i,d);i=c.parseFloat(p,d)}var h=r.apply(i,a,o),f=l.apply(i,a,o);return r.isActive&&l.isActive?this._and?h&&f:h||f:r.isActive?h:!l.isActive||f},i.prototype.clear=function(){this._c1.clear(),this._c2.clear(),this.and=!0},i.prototype._hasDatePart=function(){var e=this._col.format;return!e||(e=t.culture.Globalize.calendar.patterns[e]||e,/[yMd]+/.test(e))},i.prototype._hasTimePart=function(){var e=this._col.format;return!!e&&(e=t.culture.Globalize.calendar.patterns[e]||e,/[Hmst]+/.test(e))},i.prototype.implementsInterface=function(t){return"IColumnFilter"==t},i}();e.ConditionFilter=i}(e.filter||(e.filter={}))}(t.grid||(t.grid={}))}(wijmo||(wijmo={})),function(t){!function(e){!function(e){"use strict";var i=function(i){function n(n,r){var l=i.call(this,n)||this;l._canApply=!1,l.canApplyChanged=new t.Event,l._filter=t.asType(r,e.ConditionFilter,!1);var a=l.getTemplate();l.applyTemplate("wj-control wj-conditionfilter-editor",a,{_divHdr:"div-hdr",_divCmb1:"div-cmb1",_divVal1:"div-val1",_btnAnd:"btn-and",_btnOr:"btn-or",_spAnd:"sp-and",_spOr:"sp-or",_divCmb2:"div-cmb2",_divVal2:"div-val2"});var o=t.culture.FlexGridFilter,s=o.ariaLabels;t.setAriaLabel(l._btnAnd,s.and),t.setAriaLabel(l._btnOr,s.or),t.setText(l._divHdr,o.header),t.setText(l._spAnd,o.and),t.setText(l._spOr,o.or),l._cmb1=l._createOperatorCombo(l._divCmb1,s.op1),l._cmb2=l._createOperatorCombo(l._divCmb2,s.op2),l._val1=l._createValueInput(l._divVal1,s.val1),l._val2=l._createValueInput(l._divVal2,s.val2),l._val1.isDisabled=!0,l._cmb1.selectedIndexChanged.addHandler(function(t,e){l._val1.isDisabled=null==t.selectedValue,l.canApply=!l._val1.isDisabled||!l._val2.isDisabled}),l._val2.isDisabled=!0,l._cmb2.selectedIndexChanged.addHandler(function(t,e){l._val2.isDisabled=null==t.selectedValue,l.canApply=!l._val1.isDisabled||!l._val2.isDisabled});var u=l.hostElement;return l.addEventListener(u,"change",l._btnAndOrChanged.bind(l)),l.addEventListener(u,"keydown",l._keydown.bind(l)),setTimeout(function(){l.updateEditor()}),l}return __extends(n,i),Object.defineProperty(n.prototype,"filter",{get:function(){return this._filter},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"canApply",{get:function(){return this._canApply},set:function(t){t!=this._canApply&&(this._canApply=t,this.onCanApplyChanged())},enumerable:!0,configurable:!0}),n.prototype.updateEditor=function(){var e=this._filter.condition1,i=this._filter.condition2;this._cmb1.selectedValue=e.operator,this._cmb2.selectedValue=i.operator,this._val1 instanceof t.input.ComboBox&&!(this._val1 instanceof t.input.InputTime)?(this._val1.text=t.changeType(e.value,t.DataType.String),this._val2.text=t.changeType(i.value,t.DataType.String)):(this._val1.value=e.value,this._val2.value=i.value);var n=this._filter.and;this._checkRadio(this._btnAnd,n),this._checkRadio(this._btnOr,!n)},n.prototype.clearEditor=function(){this._cmb1.selectedValue=this._cmb2.selectedValue=null,this._val1.text=this._val2.text=null,this._checkRadio(this._btnAnd,!0),this._checkRadio(this._btnOr,!1)},Object.defineProperty(n.prototype,"isEditorClear",{get:function(){return null==this._cmb1.selectedValue&&!this._val1.text&&null==this._cmb2.selectedValue&&!this._val2.text},enumerable:!0,configurable:!0}),n.prototype.updateFilter=function(){var t=this._filter.condition1,e=this._filter.condition2;t.operator=this._cmb1.selectedValue,e.operator=this._cmb2.selectedValue,"value"in this._val1?(t.value=this._val1.value,e.value=this._val2.value):(t.value=this._getComboValue(this._val1),e.value=this._getComboValue(this._val2)),this._filter.and=this._btnAnd.checked},n.prototype.onCanApplyChanged=function(t){this.canApplyChanged.raise(this,t)},n.prototype._getComboValue=function(t){return t.selectedIndex>-1?t.selectedValue:t.text},n.prototype._createOperatorCombo=function(e,i){var n=this._filter.column,r=t.culture.FlexGridFilter,l=r.stringOperators,a=t.DataType;this._filter.dataMap||n.dataMap||(n.dataType==a.Date?l=r.dateOperators:n.dataType==a.Number?l=r.numberOperators:n.dataType==a.Boolean&&(l=r.booleanOperators));var o=new t.input.ComboBox(e,{itemsSource:l,displayMemberPath:"name",selectedValuePath:"op"});return t.setAriaLabel(o.inputElement,i),o},n.prototype._createValueInput=function(e,i){var n=this._filter,r=n.column,l=n.dataMap||r.dataMap,a=null,o=t.DataType;return r.dataType==o.Date?(a=n._hasDatePart()?n._hasTimePart()?new t.input.InputDateTime(e):new t.input.InputDate(e):new t.input.InputTime(e)).format=r.format:r.dataType!=o.Number||l?(a=new t.input.ComboBox(e),l?(a.itemsSource=l.getDisplayValues(),a.isEditable=!0,a.caseSensitiveSearch=!!r.grid&&r.grid.caseSensitiveSearch):r.dataType==o.Boolean&&(a.itemsSource=[!0,!1])):(a=new t.input.InputNumber(e)).format=r.format,a.isRequired=!1,t.setAriaLabel(a.inputElement,i),a},n.prototype._btnAndOrChanged=function(t){var e=t.target==this._btnAnd,i=t.target==this._btnOr;(e||i)&&(this._checkRadio(this._btnAnd,e),this._checkRadio(this._btnOr,i))},n.prototype._checkRadio=function(e,i){e.checked=i,t.setAttribute(e,"aria-checked",i.toString()),t.setAttribute(e,"tabindex",i?null:"-1")},n.prototype._keydown=function(e){var i=e.target==this._btnAnd,n=e.target==this._btnOr;if(i||n)switch(e.keyCode){case t.Key.Left:case t.Key.Right:case t.Key.Up:case t.Key.Down:var r=i?this._btnOr:this._btnAnd;r.click(),r.focus(),e.preventDefault()}},n.controlTemplate='<div><div wj-part="div-hdr"></div><div wj-part="div-cmb1"></div><br/><div wj-part="div-val1"></div><br/><div role="radiogroup" style="text-align:center"><label><input wj-part="btn-and" type="radio" role="radio"> <span wj-part="sp-and"></span> </label>&nbsp;&nbsp;&nbsp;<label><input wj-part="btn-or" type="radio" role="radio"> <span wj-part="sp-or"></span> </label></div><div wj-part="div-cmb2"></div><br/><div wj-part="div-val2"></div><br/></div>',n}(t.Control);e.ConditionFilterEditor=i}(e.filter||(e.filter={}))}(t.grid||(t.grid={}))}(wijmo||(wijmo={})),function(t){!function(e){!function(e){"use strict";var i,n=function(){function e(t){this._op=null,this._filter=t}return Object.defineProperty(e.prototype,"operator",{get:function(){return this._op},set:function(e){this._op=t.asEnum(e,i,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._val},set:function(e){this._val=e,this._strVal=t.isString(e)?this._getCaseString(e):null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isActive",{get:function(){switch(this._op){case null:return!1;case i.EQ:case i.NE:return!0;default:return null!=this._val||null!=this._strVal}},enumerable:!0,configurable:!0}),e.prototype.clear=function(){this.operator=null,this.value=null},e.prototype.apply=function(n,r,l){var a=this._strVal||this._val;t.isString(n)&&(n=this._getCaseString(n)),t.isString(a)&&null==n&&(n=""),t.isDate(a)&&(r?a=t.DateTime.fromDateTime(a,e._refDateTime):l&&(a=t.DateTime.fromDateTime(e._refDateTime,a)));var o=i;switch(this._op){case null:return!0;case o.EQ:return null!=n&&null!=a?n.valueOf()==a.valueOf():n==a;case o.NE:return null!=n&&null!=a?n.valueOf()!=a.valueOf():n!=a;case o.GT:return n>a;case o.GE:return n>=a;case o.LT:return n<a;case o.LE:return n<=a;case o.BW:return!(null==this._strVal||!t.isString(n))&&0==n.indexOf(this._strVal);case o.EW:return!!(null!=this._strVal&&t.isString(n)&&n.length>=this._strVal.length)&&n.substr(n.length-this._strVal.length)==a;case o.CT:return!(null==this._strVal||!t.isString(n))&&n.indexOf(this._strVal)>-1;case o.NC:return!(null==this._strVal||!t.isString(n))&&n.indexOf(this._strVal)<0}throw"Unknown operator"},e.prototype._getCaseString=function(t){var e=this._filter.column,i=e?e.grid:null;return i&&i.caseSensitiveSearch?t:t.toLowerCase()},e._refDateTime=new Date(2e3,0,1,0,0,0),e}();e.FilterCondition=n,function(t){t[t.EQ=0]="EQ",t[t.NE=1]="NE",t[t.GT=2]="GT",t[t.GE=3]="GE",t[t.LT=4]="LT",t[t.LE=5]="LE",t[t.BW=6]="BW",t[t.EW=7]="EW",t[t.CT=8]="CT",t[t.NC=9]="NC"}(i=e.Operator||(e.Operator={}))}(e.filter||(e.filter={}))}(t.grid||(t.grid={}))}(wijmo||(wijmo={})),function(t){!function(e){!function(e){"use strict";var i=function(){function i(t){this._values=null,this._filterText=null,this._xValueSearch=!0,this._maxValues=250,this._uniqueValues=null,this._sortValues=!0,this._col=t}return Object.defineProperty(i.prototype,"showValues",{get:function(){return this._values},set:function(t){this._values=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"filterText",{get:function(){return this._filterText},set:function(e){this._filterText=t.asString(e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"exclusiveValueSearch",{get:function(){return this._xValueSearch},set:function(e){this._xValueSearch=t.asBoolean(e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"maxValues",{get:function(){return this._maxValues},set:function(e){this._maxValues=t.asNumber(e,!1,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"uniqueValues",{get:function(){return this._uniqueValues},set:function(e){this._uniqueValues=t.asArray(e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"sortValues",{get:function(){return this._sortValues},set:function(e){this._sortValues=t.asBoolean(e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dataMap",{get:function(){return this._map},set:function(e){this._map=t.asType(e,t.grid.DataMap,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"column",{get:function(){return this._col},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"isActive",{get:function(){return null!=this._values&&Object.keys(this._values).length>0},enumerable:!0,configurable:!0}),i.prototype.apply=function(e){var i=this.column;return!(i&&i._binding&&this._values&&Object.keys(this._values).length)||(e=i._binding.getValue(e),e=this.dataMap?this.dataMap.getDisplayValue(e)||"":i.dataMap?i.dataMap.getDisplayValue(e)||"":t.Globalize.format(e,i.format),void 0!=this._values[e])},i.prototype.clear=function(){this.showValues=null,this.filterText=null},i.prototype.getUniqueValues=function(i){void 0===i&&(i=!0);var n=[],r=this.column,l=t.Globalize.format;if(this.uniqueValues)return this.uniqueValues.forEach(function(t){n.push({value:t,text:l(t,r.format)})}),n;var a={},o=r.collectionView,s=o?o.sourceCollection:[];if(i&&o&&o.sourceCollection&&o.filter)try{e.FlexGridFilter._skipColumn=this._col;for(var u=[],c=0;c<s.length;c++)o.filter(s[c])&&u.push(s[c]);s=u}finally{e.FlexGridFilter._skipColumn=null}for(c=0;c<s.length;c++){var d=r._binding.getValue(s[c]),p=this.dataMap?this.dataMap.getDisplayValue(d)||"":r.dataMap?r.dataMap.getDisplayValue(d)||"":l(d,r.format);a[p]||(a[p]=!0,n.push({value:d,text:p}))}return n},i.prototype.implementsInterface=function(t){return"IColumnFilter"==t},i}();e.ValueFilter=i}(e.filter||(e.filter={}))}(t.grid||(t.grid={}))}(wijmo||(wijmo={})),function(t){!function(e){!function(e){"use strict";var i=function(i){function n(n,r){var l=i.call(this,n)||this;l._canApply=!1,l.canApplyChanged=new t.Event,l._filter=t.asType(r,e.ValueFilter,!1);var a=l.getTemplate();l.applyTemplate("wj-control wj-valuefilter-editor",a,{_divFilter:"div-filter",_cbSelectAll:"cb-select-all",_spSelectAll:"sp-select-all",_divValues:"div-values"}),l._cbSelectAll.tabIndex=0;var o=t.culture.FlexGridFilter;t.setText(l._spSelectAll,o.selectAll);var s=l._view=new t.collections.CollectionView(null,{sortNulls:t.collections.SortNulls.First,filter:l._filterValues.bind(l)});if(r.sortValues){var u=r.column.dataMap||r.dataMap?"text":"value",c=r.column.dataType!=t.DataType.Boolean;s.sortDescriptions.push(new t.collections.SortDescription(u,c))}return s.collectionChanged.addHandler(l._updateSelectAllCheck,l),l._filterText="",l._rxFilter=null,l._cmbFilter=new t.input.ComboBox(l._divFilter,{isRequired:!1,placeholder:o.search}),l._lbValues=new t.input.ListBox(l._divValues,{displayMemberPath:"text",checkedMemberPath:"show",itemsSource:l._view,itemFormatter:function(t,e){return e||o.null},checkedItemsChanged:function(t){return l._updateSelectAllCheck()}}),t.setAriaLabel(l._cmbFilter.inputElement,o.ariaLabels.search),l._cmbFilter.inputElement.addEventListener("input",l._filterTextChanged.bind(l)),l._cbSelectAll.addEventListener("click",l._cbSelectAllClicked.bind(l)),l.updateEditor(),l._initialItems=l._lbValues.checkedItems,l}return __extends(n,i),Object.defineProperty(n.prototype,"filter",{get:function(){return this._filter},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"canApply",{get:function(){return this._canApply},set:function(t){t!=this._canApply&&(this._canApply=t,this.onCanApplyChanged())},enumerable:!0,configurable:!0}),n.prototype.updateEditor=function(){var e=this,i=this._filter.column,n=this._filter.getUniqueValues(!0);this._lbValues.isContentHtml=i.isContentHtml;var r=this._filter.showValues;if(r&&0!=Object.keys(r).length){for(var l in r)for(var a=0;a<n.length;a++)if(n[a].text==l){n[a].show=!0;break}}else n.forEach(function(t){return t.show=!0});var o=this._filter.filterText||"",s=this._getCaseSensitive();this._cmbFilter.text=o,this._filterText=s?o:o.toLowerCase(),this._rxFilter=o?new RegExp(t.escapeRegExp(o),s?"":"i"):null;var u=this._view;u.pageSize=this._filter.maxValues,u.sourceCollection=n,setTimeout(function(){e._adjustWidths()},0)},n.prototype.clearEditor=function(t){void 0===t&&(t=!0),this._cmbFilter.text="",this._filterText="",this._rxFilter=null;var e=this._view;e.pageSize=0,e.items.forEach(function(e){e.show=t}),e.moveCurrentTo(-1),e.refresh(),e.pageSize=this._filter.maxValues},Object.defineProperty(n.prototype,"isEditorClear",{get:function(){return!this._filterText&&!this._cbSelectAll.indeterminate},enumerable:!0,configurable:!0}),n.prototype.updateFilter=function(){var t=null,e=this._getItems();if(this._filterText||this._cbSelectAll.indeterminate){t={};for(var i=0;i<e.length;i++){var n=e[i];n.show&&(t[n.text]=!0)}}var r=this._filter;r.showValues=t,r.filterText=this._filterText},n.prototype.onCanApplyChanged=function(t){this.canApplyChanged.raise(this,t)},n.prototype._getCaseSensitive=function(){var t=this._filter.column,e=t?t.grid:null;return e&&e.caseSensitiveSearch},n.prototype._getItems=function(){return this._filter.exclusiveValueSearch?this._view.items:this._view.sourceCollection},n.prototype._filterTextChanged=function(){var e=this;this._toFilter&&clearTimeout(this._toFilter),this._toFilter=setTimeout(function(){var i=e._cmbFilter.text,n=e._getCaseSensitive();if(n||(i=i.toLowerCase()),i!=e._filterText){if(e._filterText=i,e._rxFilter=i?new RegExp(t.escapeRegExp(i),n?"":"i"):null,e._view.refresh(),!i){var r=e._initialItems;if(r.length&&e._view.sourceCollection.indexOf(r[0])>-1)return e._lbValues.checkedItems=e._initialItems,void e._updateSelectAllCheck()}e._filter.exclusiveValueSearch?(e._cbSelectAll.checked=!0,e._cbSelectAllClicked()):e._updateSelectAllCheck()}},t.Control._SEARCH_DELAY)},n.prototype._filterValues=function(t){var e=this._rxFilter;return null==e||null==t||e.test(t.text)},n.prototype._cbSelectAllClicked=function(){for(var t=this._cbSelectAll.checked,e=this._divValues.scrollTop,i=this._getItems(),n=0;n<i.length;n++)i[n].show=t;this._view.refresh(),this._divValues.scrollTop=e},n.prototype._updateSelectAllCheck=function(){for(var e=this._getItems(),i=0,n=0,r=0;r<e.length&&(e[r].show?i++:n++,!i||!n);r++);t.setChecked(this._cbSelectAll,i&&n?null:i>0),this.canApply=i>0},n.prototype._adjustWidths=function(){var t=this._lbValues.hostElement;if(t.offsetHeight>0){var e=0,i=t.querySelectorAll(".wj-listbox-item label");if(i.length){for(var n=0;n<i.length;n++)e=Math.max(e,i[n].scrollWidth);if(e){var r=t.querySelectorAll(".wj-listbox-item");if(r.length){var l=r[0],a=getComputedStyle(l),o=parseFloat(a.paddingLeft)+parseFloat(a.paddingRight);for(n=0;n<r.length;n++)r[n].style.width=e+o+"px"}}}}},n.controlTemplate='<div><div wj-part="div-filter"></div><div class="wj-listbox-item"><label><input wj-part="cb-select-all" type="checkbox"> <span wj-part="sp-select-all"></span></label></div><div wj-part="div-values"></div></div>',n}(t.Control);e.ValueFilterEditor=i}(e.filter||(e.filter={}))}(t.grid||(t.grid={}))}(wijmo||(wijmo={})),function(t){!function(e){!function(e){"use strict";var i=function(){function i(t,i){this._owner=t,this._col=i,this._valueFilter=new e.ValueFilter(i),this._valueFilter.exclusiveValueSearch=t.exclusiveValueSearch,this._conditionFilter=new e.ConditionFilter(i)}return Object.defineProperty(i.prototype,"filterType",{get:function(){return null!=this._filterType?this._filterType:this._owner.defaultFilterType},set:function(i){if((i=t.asEnum(i,e.FilterType,!0))!=this._filterType){var n=this.isActive;this.clear(),this._filterType=i,n?this._owner.apply():this._col.grid&&this._col.grid.invalidate()}},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dataMap",{get:function(){return this.conditionFilter.dataMap||this.valueFilter.dataMap},set:function(t){this.conditionFilter.dataMap=t,this.valueFilter.dataMap=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"valueFilter",{get:function(){return this._valueFilter},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"conditionFilter",{get:function(){return this._conditionFilter},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"column",{get:function(){return this._col},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"isActive",{get:function(){return this._conditionFilter.isActive||this._valueFilter.isActive},enumerable:!0,configurable:!0}),i.prototype.apply=function(t){return this._conditionFilter.apply(t)&&this._valueFilter.apply(t)},i.prototype.clear=function(){this._valueFilter.clear(),this._conditionFilter.clear()},i.prototype.implementsInterface=function(t){return"IColumnFilter"==t},i}();e.ColumnFilter=i}(e.filter||(e.filter={}))}(t.grid||(t.grid={}))}(wijmo||(wijmo={})),function(t){!function(e){!function(e){"use strict";t._addCultureInfo("FlexGridFilter",{ariaLabels:{edit:"Edit Filter for Column",dialog:"Filter Editor for Column",asc:"Sort Column in Ascending Order",dsc:"Sort Column in Descending Order",search:"Search Item List",op1:"First Condition Operator",val1:"First Condition Value",and:"Require both Conditions",or:"Require either Condition",op2:"Second Condition Operator",val2:"Second Condition Value"},ascending:"↑ Ascending",descending:"↓ Descending",apply:"Apply",cancel:"Cancel",clear:"Clear",conditions:"Filter by Condition",values:"Filter by Value",search:"Search",selectAll:"Select All",null:"(nothing)",header:"Show items where the value",and:"And",or:"Or",stringOperators:[{name:"(not set)",op:null},{name:"Equals",op:e.Operator.EQ},{name:"Does not equal",op:e.Operator.NE},{name:"Begins with",op:e.Operator.BW},{name:"Ends with",op:e.Operator.EW},{name:"Contains",op:e.Operator.CT},{name:"Does not contain",op:e.Operator.NC}],numberOperators:[{name:"(not set)",op:null},{name:"Equals",op:e.Operator.EQ},{name:"Does not equal",op:e.Operator.NE},{name:"Is Greater than",op:e.Operator.GT},{name:"Is Greater than or equal to",op:e.Operator.GE},{name:"Is Less than",op:e.Operator.LT},{name:"Is Less than or equal to",op:e.Operator.LE}],dateOperators:[{name:"(not set)",op:null},{name:"Equals",op:e.Operator.EQ},{name:"Is Before",op:e.Operator.LT},{name:"Is After",op:e.Operator.GT}],booleanOperators:[{name:"(not set)",op:null},{name:"Equals",op:e.Operator.EQ},{name:"Does not equal",op:e.Operator.NE}]});var i=function(i){function n(n,r,l){void 0===l&&(l=!0);var a=i.call(this,n,null,!0)||this;a.filterChanged=new t.Event,a.buttonClicked=new t.Event,a._filter=t.asType(r,e.ColumnFilter);var o=a.getTemplate();a.applyTemplate("wj-control wj-content wj-columnfiltereditor",o,{_divSort:"div-sort",_btnAsc:"btn-asc",_btnDsc:"btn-dsc",_divType:"div-type",_aVal:"a-val",_aCnd:"a-cnd",_divEdtVal:"div-edt-val",_divEdtCnd:"div-edt-cnd",_btnApply:"btn-apply",_btnCancel:"btn-cancel",_btnClear:"btn-clear"});var s=t.culture.FlexGridFilter,u=s.ariaLabels,c=a.hostElement,d=a.filter.column,p=d.grid.collectionView;t.setAttribute(c,"role","dialog"),t.setAriaLabel(c,u.dialog+" "+d.header),t.setAriaLabel(a._btnAsc,u.asc),t.setAriaLabel(a._btnDsc,u.dsc),t.setText(a._btnAsc,s.ascending),t.setText(a._btnDsc,s.descending),t.setText(a._aVal,s.values),t.setText(a._aCnd,s.conditions),t.setText(a._btnApply,s.apply),t.setText(a._btnCancel,s.cancel),t.setText(a._btnClear,s.clear);var h=a.filter.conditionFilter.isActive||0==(r.filterType&e.FilterType.Value)?e.FilterType.Condition:e.FilterType.Value;a._showFilter(h),l&&p&&p.canSort||(a._divSort.style.display="none"),a._updateSortButtonState();var f=a._btnClicked.bind(a);return a._btnApply.addEventListener("click",f),a._btnCancel.addEventListener("click",f),a._btnClear.addEventListener("click",f),a._btnAsc.addEventListener("click",f),a._btnDsc.addEventListener("click",f),a._aVal.addEventListener("click",f),a._aCnd.addEventListener("click",f),a.addEventListener(c,"keydown",function(e){if(!e.defaultPrevented){var i=e.target.tagName.match(/^(a|button)$/i);switch(e.keyCode){case t.Key.Space:i&&(a._btnClicked(e),e.preventDefault());break;case t.Key.Enter:i?a._btnClicked(e):(a.updateFilter(),a.onFilterChanged(),a.onButtonClicked()),e.preventDefault();break;case t.Key.Escape:a.onButtonClicked(),e.preventDefault();break;case t.Key.Tab:t.moveFocus(a.hostElement,e.shiftKey?-1:1),e.preventDefault()}}}),a.addEventListener(window,"resize",function(){a.isTouching||a._wasTouching||a.onButtonClicked()}),a}return __extends(n,i),Object.defineProperty(n.prototype,"filter",{get:function(){return this._filter},enumerable:!0,configurable:!0}),n.prototype.updateEditor=function(){this._edtVal&&this._edtVal.updateEditor(),this._edtCnd&&this._edtCnd.updateEditor()},n.prototype.updateFilter=function(){switch(this._getFilterType()){case e.FilterType.Value:this._edtVal.updateFilter(),this.filter.conditionFilter.clear();break;case e.FilterType.Condition:this._edtCnd.updateFilter(),this.filter.valueFilter.clear()}},n.prototype.onFilterChanged=function(t){this.filterChanged.raise(this,t)},n.prototype.onButtonClicked=function(t){this.buttonClicked.raise(this,t)},n.prototype._showFilter=function(i){var n=this;this._wasTouching=this.isTouching,i==e.FilterType.Value&&null==this._edtVal&&(this._edtVal=new e.ValueFilterEditor(this._divEdtVal,this.filter.valueFilter),this._edtVal.canApplyChanged.addHandler(function(e){t.enable(n._btnApply,n._edtVal.canApply)})),i==e.FilterType.Condition&&null==this._edtCnd&&(this._edtCnd=new e.ConditionFilterEditor(this._divEdtCnd,this.filter.conditionFilter),this._edtCnd.canApplyChanged.addHandler(function(e){t.enable(n._btnApply,n._edtCnd.canApply)})),0!=(i&this.filter.filterType)&&(i==e.FilterType.Value?(this._divEdtVal.style.display="",this._divEdtCnd.style.display="none",this._enableLink(this._aVal,!1),this._enableLink(this._aCnd,!0),this._edtVal.focus(),t.enable(this._btnApply,this._edtVal.canApply)):(this._divEdtVal.style.display="none",this._divEdtCnd.style.display="",this._enableLink(this._aVal,!0),this._enableLink(this._aCnd,!1),this._edtCnd.focus(),t.enable(this._btnApply,this._edtCnd.canApply)));var r=this._divType.style;switch(this.filter.filterType){case e.FilterType.None:case e.FilterType.Condition:case e.FilterType.Value:r.display="none";break;default:r.display=""}},n.prototype._enableLink=function(e,i){t.toggleClass(e,"wj-state-disabled",!i),t.setAttribute(e,"href",i?"":null),t.setAttribute(e,"disabled",i?null:"disabled")},n.prototype._updateSortButtonState=function(){var e=this.filter.column,i=e?e.currentSort:"",n="wj-state-active";t.toggleClass(this._btnAsc,n,"+"==i),t.toggleClass(this._btnDsc,n,"-"==i)},n.prototype._getFilterType=function(){var t=e.FilterType;return"none"!=this._divEdtVal.style.display?t.Value:t.Condition},n.prototype._btnClicked=function(i){var n=this,r=i.target;if(i.preventDefault(),i.stopPropagation(),!t.hasClass(r,"wj-state-disabled")){if(r==this._aVal)return this._showFilter(e.FilterType.Value),void t.moveFocus(this._edtVal.hostElement,0);if(r==this._aCnd)return this._showFilter(e.FilterType.Condition),void t.moveFocus(this._edtCnd.hostElement,0);if(r==this._btnAsc||r==this._btnDsc){var l=this.filter.column,a=l.sortMemberPath||l.binding,o=l.grid.collectionView.sortDescriptions;o.deferUpdate(function(){o.clear(),o.push(new t.collections.SortDescription(a,i.target==n._btnAsc))}),this._updateSortButtonState()}r==this._btnApply?(this.updateFilter(),this.onFilterChanged()):r==this._btnClear?this.filter.isActive&&(this.filter.clear(),this.onFilterChanged()):this.updateEditor(),this.onButtonClicked()}},n.controlTemplate='<div><div wj-part="div-sort" class="wj-sort-buttons"><button wj-part="btn-asc" class="wj-btn"></button>&nbsp;&nbsp;&nbsp;<button wj-part="btn-dsc" class="wj-btn"></button></div><div wj-part="div-type" class="wj-filtertype"><a wj-part="a-cnd" href="" draggable="false"></a>&nbsp;|&nbsp;<a wj-part="a-val" href="" draggable="false"></a></div><div wj-part="div-edt-val" tabindex="-1"></div><div wj-part="div-edt-cnd" tabindex="-1"></div><div style="text-align:right;margin-top:10px"><button wj-part="btn-apply" class="wj-btn"></button>&nbsp;&nbsp;<button wj-part="btn-cancel" class="wj-btn"></button>&nbsp;&nbsp;<button wj-part="btn-clear" class="wj-btn"></button></div></div>',n}(t.Control);e.ColumnFilterEditor=i}(e.filter||(e.filter={}))}(t.grid||(t.grid={}))}(wijmo||(wijmo={})),function(t){!function(e){e.filter||(e.filter={}),t._registerModule("wijmo.grid.filter",t.grid.filter)}(t.grid||(t.grid={}))}(wijmo||(wijmo={}));
var __extends=this&&this.__extends||function(){var n=function(t,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r(){this.constructor=t}if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(t,i);t.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}}(),c1;(function(n){var t;(function(n){var t;(function(n){var t=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(wijmo.grid.filter.FlexGridFilter);n.FlexGridFilter=t})(t=n.filter||(n.filter={}))})(t=n.grid||(n.grid={}))})(c1||(c1={}));
var __extends=this&&this.__extends||function(){var n=function(t,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r(){this.constructor=t}if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(t,i);t.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}}(),c1;(function(n){var t;(function(t){var i;(function(i){var r;(function(i){var r="__trueTypeShowValues",e=function(n,t){return n[r]=t},o=function(n){return n[r]},u="__columnData",f=function(n,t){return n[u]=t},s=function(n){return n[u]||[]},h=function(i){function r(n){var t=i.call(this,n)||this;return t._flexGrid=wijmo.asType(n,wijmo.grid.FlexGrid,!1),t._addHandlers(),t._flexGrid.itemsSourceChanged.addHandler(function(){t._removeHandlers();t._addHandlers()}),t}return __extends(r,i),r.prototype._addHandlers=function(){this._collectionView=wijmo.asType(this._flexGrid.collectionView,n.mvc.collections.RemoteCollectionView,!0);this._collectionView&&this._collectionView._isDisableServerRead&&!this._collectionView._isDisableServerRead()&&this._collectionView.queryData.addHandler(this._collectFilters,this)},r.prototype._removeHandlers=function(){this._collectionView&&this._collectionView.queryData.removeHandler(this._collectFilters,this)},r.prototype.initialize=function(n){var u=this,t,f,r,i;if(n){if(r=n.columnFilters?"columnFilters":"filterColumns",t=n[r],delete n[r],wijmo.copy(u,n),t)for(f=t.length,i=0;i<f;i++)u._createColumnFilter(t[i]);this._disableCalculatedFieldsFiltering()}},r.prototype._createColumnFilter=function(n){var t=this,i=t.getColumnFilter(t._getColumn(n.column),!0);return i.filterType=n.filterType,t._updateValueFilter(i.valueFilter,n.valueFilter),i},r.prototype._disableCalculatedFieldsFiltering=function(){var i=this,n=wijmo.tryCast(this._flexGrid.collectionView,wijmo.collections.CollectionView),t;n&&!n._disableServerRead&&(t=n.calculatedFields,t&&Object.keys(t).forEach(function(n){var t=i.getColumnFilter(i._getColumn(n),!0);t&&(t.filterType=0)}))},r.prototype._processDataMapOptions=function(n){if(n){var i,r,t=n.dataMap;t&&(i=new wijmo.grid.DataMap(t.itemsSource,t.selectedValuePath,t.displayMemberPath),r=t.mapChanged,r&&i.mapChanged.addHandler(r),i.sortByDisplayValues=t.sortByDisplayValues===!0,n.dataMap=i)}},r.prototype._updateValueFilter=function(n,t){t&&(this._processDataMapOptions(t),wijmo.copy(n,t))},r.prototype._shouldGetAllColumnData=function(n){var i=this,t=i._collectionView,r=i.getColumnFilter(n),u=r.filterType;return u&wijmo.grid.filter.FilterType.Value&&t&&t._isDisableServerRead&&!t._isDisableServerRead()&&!r.valueFilter.uniqueValues},r.prototype.editColumnFilter=function(n,t,r){for(var v=this,s,u,y,p=[],h,o,c=v._collectionView,w,l,d,a,g=document.body.getElementsByClassName("wj-columnfiltereditor"),b,k;g.length>0;)b=g[0],b.parentNode.removeChild(b);if((i.prototype.editColumnFilter.call(this,n,t,r),s=document.body.getElementsByClassName("wj-columnfiltereditor")[0],s)&&(y=wijmo.Control.getControl('.wj-columnfiltereditor [wj-part="div-edt-val"] [wj-part="div-values"]'),y)){if(u=y.itemsSource,l=function(){e(o,u.items)},a=function(n){n===undefined&&(n=[],u.sourceCollection&&u.sourceCollection.forEach(function(t){return n.push(t.value)}));f(o,n)},o=v.getColumnFilter(n),w=wijmo.Control.getControl('.wj-columnfiltereditor [wj-part="div-edt-val"] [wj-part="div-filter"]'),w&&w.textChanged.addHandler(function(){setTimeout(l,600)}),!v._shouldGetAllColumnData(n)){l();a();return}c&&c._isDisableServerRead&&!c._isDisableServerRead()&&a();k=document.querySelector('.wj-columnfiltereditor [wj-part="btn-apply"]');k&&k.addEventListener("click",function(){l()});d=s.style.left;s.style.left="-9999px";h=o.valueFilter.showValues;c.getColumnData(n.binding,!0,function(t){var e,f,r,i,c;for(e in t.columnData){if(f=t.columnData[e],r=n.dataMap?n.dataMap.getDisplayValue(f):wijmo.Globalize.format(f,n.format),r=o.valueFilter.dataMap?o.valueFilter.dataMap.getDisplayValue(r):r,i={value:f,text:r},h&&Object.keys(h).length!==0)for(c in h)i.text.toString()===c&&(i.show=!0);else i.show=!0;p.some(function(n){return n.text===i.text})||p.push(i)}a(t.columnData);u.sourceCollection=p;u.moveCurrentToPosition(0);wijmo.isFirefox()||(s.style.left=d)})}},r.prototype._getColumn=function(n){for(var u=this,r=u._flexGrid._getBindingColumns(),f=r.length,i,n=n.toLowerCase(),t=0;t<f;t++)if(i=r[t],i.name&&i.name.toLowerCase()===n)return i;for(t=0;t<r.length;t++)if(i=r[t],i.binding&&i.binding.toLowerCase()===n)return i},r.prototype._getServerComponentName=function(){return"FlexGridFilter"},r.prototype._collectFilters=function(n,t){t.extraRequestData==null&&(t.extraRequestData={});t.extraRequestData[this._getServerComponentName()]=this._getFilterSettings()},r.prototype._getFilterSettings=function(){for(var i=this,r=i._flexGrid._getBindingColumns(),f=r.length,u=[],t,n=0;n<f;n++)t=i.getColumnFilter(r[n],!1),t&&t.isActive&&u.push(i._getColumnFilterSetting(t));return u},r.prototype._getColumnFilterSetting=function(t){var i=t.column,u=this,r={};if(i.binding)return r.column=i.binding,r.format=i.format,t.conditionFilter.isActive&&n.mvc.Utils.extend(r,{conditionFilter:{and:t.conditionFilter.and,condition1:u._getConditionSetting(t.conditionFilter.condition1,i),condition2:u._getConditionSetting(t.conditionFilter.condition2,i)}}),t.valueFilter.isActive&&n.mvc.Utils.extend(r,{valueFilter:{showValues:u._getShowValues(t)}}),r},r.prototype._getShowValuesFromFilterDefinition=function(n){var i,t,r;return!n||!n.valueFilter?[]:n.valueFilter.isActive?n.valueFilter.showValues?(i=[],t=n.valueFilter.showValues,t&&Object.keys(t).length>0&&(r=n.column.binding,this._collectionView.items.forEach(function(u){if(u.hasOwnProperty(r)){var f=u[r],e=wijmo.Globalize.format(f,n.column.format);t.hasOwnProperty(e)&&t[e]&&i.push(f)}})),i):[]:[]},r.prototype._getShowValues=function(n){var t=[],r,u=o(n),e,c=!1,h,l,a,i,v;if(u)for(r=0;r<u.length;r++)e=u[r],e&&e.show&&t.push(e.value);if(t.length||(t=s(n)),u||t.length||(t=this._getShowValuesFromFilterDefinition(n),c=!0),n.valueFilter&&!n.valueFilter.exclusiveValueSearch&&(t=this._getShowValuesFromFilterDefinition(n)),h=n.column,h.dataType===wijmo.DataType.Date)for(l=this._getDateKind(h),a=t.length,i=0;i<a;i++)v=t[i],v&&(t[i].dateKind=l);return c&&f(n,t),t},r.prototype._getDateKind=function(n){if(n.dataType===wijmo.DataType.Date){var i=n.binding?new wijmo.Binding(n.binding):null;if(i!=null)return this._collectionView._dataInfo!=null?i.getValue(this._collectionView._dataInfo):t.DateKind.Unspecified}},r.prototype._getConditionSetting=function(n,t){var i=n.value;return t.dataType===wijmo.DataType.Boolean?i=wijmo.changeType(i,wijmo.DataType.Boolean,null):t.dataType===wijmo.DataType.Date&&i instanceof Date&&(i.dateKind=this._getDateKind(t)),{operator:n.operator,value:i}},r}(n.grid.filter.FlexGridFilter);i.FlexGridFilter=h})(r=i.filter||(i.filter={}))})(i=t.grid||(t.grid={}))})(t=n.mvc||(n.mvc={}))})(c1||(c1={}));
var wijmo;(function(n){var t;(function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.ConditionFilter||(n.ConditionFilter={}))})(t=n.filter||(n.filter={}))})(t=n.grid||(n.grid={}))})(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.ValueFilter||(n.ValueFilter={}))})(t=n.filter||(n.filter={}))})(t=n.grid||(n.grid={}))}(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.ColumnFilter||(n.ColumnFilter={}))})(t=n.filter||(n.filter={}))})(t=n.grid||(n.grid={}))}(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.FlexGridFilter||(n.FlexGridFilter={}))})(t=n.filter||(n.filter={}))})(t=n.grid||(n.grid={}))}(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.FilterCondition||(n.FilterCondition={}))})(t=n.filter||(n.filter={}))})(t=n.grid||(n.grid={}))}(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.ColumnFilterEditor||(n.ColumnFilterEditor={}))})(t=n.filter||(n.filter={}))})(t=n.grid||(n.grid={}))}(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.ConditionFilterEditor||(n.ConditionFilterEditor={}))})(t=n.filter||(n.filter={}))})(t=n.grid||(n.grid={}))}(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.ValueFilterEditor||(n.ValueFilterEditor={}))})(t=n.filter||(n.filter={}))})(t=n.grid||(n.grid={}))}(wijmo||(wijmo={}));
var wijmo,__extends=this&&this.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function i(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}();!function(e){!function(t){!function(t){"use strict";t.softGridFilter=function(){return e._getModule("wijmo.grid.filter")}}(t.grouppanel||(t.grouppanel={}))}(e.grid||(e.grid={}))}(wijmo||(wijmo={})),function(e){!function(t){!function(t){"use strict";e._addCultureInfo("GroupPanel",{dragDrop:"Drag and Drop columns here to create Groups."});var r=function(r){function i(t,i){var n=r.call(this,t)||this;n._hideGroupedCols=!0,n._showDragGlyphs=!0,n._maxGroups=6,n._hiddenCols=[],n._placeholder=null,n._dragEndBnd=n._dragEnd.bind(n);var o=n.getTemplate();n.applyTemplate("wj-grouppanel wj-control",o,{_divMarkers:"div-markers",_divPH:"div-ph"}),e.setCss(n._divMarkers.parentElement,{width:"100%",height:"100%",minHeight:"1em",overflow:"hidden",cursor:"default"});var l=n.hostElement,s=n.addEventListener.bind(n);return s(l,"dragstart",n._dragStart.bind(n)),s(l,"dragover",n._dragOver.bind(n)),s(l,"drop",n._drop.bind(n)),s(l,"dragend",n._dragEndBnd),s(l,"click",n._click.bind(n)),n.initialize(i),n}return __extends(i,r),Object.defineProperty(i.prototype,"hideGroupedColumns",{get:function(){return this._hideGroupedCols},set:function(t){t!=this._hideGroupedCols&&(this._hideGroupedCols=e.asBoolean(t))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"showDragGlyphs",{get:function(){return this._showDragGlyphs},set:function(t){t!=this._showDragGlyphs&&(this._showDragGlyphs=e.asBoolean(t),this.refresh())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"maxGroups",{get:function(){return this._maxGroups},set:function(t){if(t!=this._maxGroups){this._maxGroups=e.asNumber(t);var r=this._gds,i=this._maxGroups;r&&i>-1&&i<r.length&&r.splice(i,r.length-i)}},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"placeholder",{get:function(){return this._placeholder},set:function(e){e!=this._placeholder&&(this._placeholder=e,this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"grid",{get:function(){return this._g},set:function(t){if((t=e.asType(t,e.grid.FlexGrid,!0))!=this._g){var r=this._g;r&&(r.draggingColumn.removeHandler(this._draggingColumn),r.itemsSourceChanging.removeHandler(this._itemsSourceChanging),r.itemsSourceChanged.removeHandler(this._itemsSourceChanged),r.columns.collectionChanged.removeHandler(this._itemsSourceChanged),r.removeEventListener(r.hostElement,"dragend",this._dragEndBnd)),r=this._g=t,this._hiddenCols=[],r&&(r.draggingColumn.addHandler(this._draggingColumn,this),r.itemsSourceChanging.addHandler(this._itemsSourceChanging,this),r.itemsSourceChanged.addHandler(this._itemsSourceChanged,this),r.columns.collectionChanged.addHandler(this._itemsSourceChanged,this),r.addEventListener(r.hostElement,"dragend",this._dragEndBnd)),this._itemsSourceChanged(r,null)}},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"collectionView",{get:function(){return this._g?this._g.collectionView:null},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"filter",{get:function(){return this._filter},set:function(r){if((r=e.asType(r,t.softGridFilter().FlexGridFilter,!0))!=this._filter){var i=this._filter;i&&(i.filterApplied.removeHandler(this.refresh,this),i.filterChanged.removeHandler(this._filterChanged,this)),(i=this._filter=r)&&(i.filterApplied.addHandler(this.refresh,this),i.filterChanged.addHandler(this._filterChanged,this)),this.refresh()}},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"groupDescriptionCreator",{get:function(){return this._gdc},set:function(e){this._gdc=e},enumerable:!0,configurable:!0}),i.prototype.refresh=function(){if(r.prototype.refresh.call(this),this._divMarkers.innerHTML="",this._dragMarker=this._dragCol=null,this._gds){for(var t=this._g,i=t.columnHeaders,n=0;n<this._gds.length;n++){var o=this._gds[n],l=-1,s=-1;if(o instanceof e.collections.PropertyGroupDescription)for(var a=i.rows.length-1;a>=0&&s<0;a--)for(var d=0;d<i.columns.length&&s<0;d++){if((u=t._getBindingColumn(i,a,i.columns[d]))&&u.binding==o.propertyName){s=d,l=a;break}}if(s>-1&&l>-1){var h=document.createElement("div");if(t.cellFactory.updateCell(this._g.columnHeaders,l,s,h),h.setAttribute("class","wj-cell wj-header wj-groupmarker"),e.setCss(h,{position:"static",display:"inline-block",verticalAlign:"top",left:"",right:"",top:"",width:"",height:"",paddingLeft:"",paddingRight:""}),e.removeChild(h.querySelector(".wj-elem-filter")),e.removeChild(h.querySelector(".wj-column-selector")),this.showDragGlyphs){var g=e.createElement('<span class="wj-glyph-drag"></span>');h.insertBefore(g,h.firstChild)}var u=t._getBindingColumn(i,l,i.columns[s]),c=this._getColumnFilter(u);if(c){var p=e.createElement('<span class="wj-filter wj-glyph-filter"></span>',h);e.toggleClass(p,"wj-filter-on",c.isActive),e.toggleClass(p,"wj-filter-off",!c.isActive)}e.createElement('<span class="wj-remove">&times;</span>',h),this._divMarkers.appendChild(h)}}this._divPH.textContent=null!=this._placeholder?this._placeholder:e.culture.GroupPanel.dragDrop;var f=this._divMarkers.children.length>0;this._divPH.style.display=f?"none":"",this._divMarkers.style.display=f?"":"none"}},i.prototype.hitTest=function(t){var r=t instanceof HTMLElement?t:t instanceof MouseEvent?t.target:null;e.assert(null!=r,"MouseEvent or Element expected");var i=e.closest(r,".wj-cell");if(e.hasClass(i,"wj-cell")){var n=this._getElementIndex(i);return this._gds&&n>-1?this._gds[n]:null}return null},i.prototype._filterChanged=function(){this._filterMarker=null},i.prototype._getColumnFilter=function(e){var t=this._filter,r=null;return t&&(r=t.filterColumns&&t.filterColumns.indexOf(e.binding)<0?null:t.getColumnFilter(e)),r},i.prototype._editFilter=function(t){var r=this._gds,i=this._getElementIndex(t),n=r&&i>-1?r[i]:null,o=n instanceof e.collections.PropertyGroupDescription?n.propertyName:null,l=o?this._g.getColumn(o):null;l&&this._filter.editColumnFilter(l,null,t)},i.prototype._addGroup=function(t,r){for(var i=this._getIndex(r),n=this._gds,o=this._maxGroups,l=0;l<n.length;l++){var s=n[l];if(s instanceof e.collections.PropertyGroupDescription&&s.propertyName==t.binding){n.removeAt(l),l<i&&i--;break}}if(o>-1)for(l=o-1;l<n.length;l++)this._removeGroup(l,n),l<i&&i--;if(o<0||n.length<o){var a=this._gdc?this._gdc(t.binding):null;a||(a=new e.collections.PropertyGroupDescription(t.binding)),n.insert(i,a),t&&this.hideGroupedColumns&&(t.visible=!1,this._hiddenCols.push(t))}},i.prototype._moveGroup=function(e,t){var r=this._gds,i=this._getElementIndex(this._dragMarker),n=this._getIndex(t);n>i&&n--,n>=this._gds.length&&(n=this._gds.length),i!=n&&r.deferUpdate(function(){var e=r[i];r.removeAt(i),r.insert(n,e)})},i.prototype._removeGroup=function(t,r){void 0===r&&(r=this._gds);var i=r&&t>-1?r[t]:null,n=i instanceof e.collections.PropertyGroupDescription?i.propertyName:null,o=n?this._g.columns.getColumn(n):null;if(o){o.visible=!0;var l=this._hiddenCols,s=l.indexOf(o);s>-1&&l.splice(s,1)}i&&r.removeAt(t)},i.prototype._getIndex=function(e){for(var t=e.clientX,r=this._divMarkers.children,i=0;i<r.length;i++){var n=r[i].getBoundingClientRect();if((t-n.left)*(t-n.right)<0)return i}return r.length},i.prototype._getElementIndex=function(e){if(e&&e.parentElement)for(var t=e.parentElement.children,r=0;r<t.length;r++)if(t[r]==e)return r;return-1},i.prototype._draggingColumn=function(e,t){var r=this._g,i=r._getBindingColumn(t.panel,t.row,r.columns[t.col]);this._dragCol=i.binding?i:null},i.prototype._itemsSourceChanging=function(e,t){this._hiddenCols.forEach(function(e){e.visible=!0}),this._hiddenCols=[]},i.prototype._itemsSourceChanged=function(e,t){this._view&&this._view.collectionChanged.removeHandler(this._collectionChanged),this._view=this._g?this._g.collectionView:null,this._gds=this._view?this._view.groupDescriptions:null,this._view&&this._view.collectionChanged.addHandler(this._collectionChanged,this),this.invalidate()},i.prototype._collectionChanged=function(t,r){r.action==e.collections.NotifyCollectionChangedAction.Reset&&this.invalidate()},i.prototype._dragStart=function(t){e._startDrag(t.dataTransfer,"move"),this._dragMarker=t.target,this._dragCol=null},i.prototype._dragOver=function(e){(this._dragCol||this._dragMarker)&&(e.dataTransfer.dropEffect="move",e.preventDefault(),e.stopPropagation())},i.prototype._drop=function(e){this._dragMarker?this._moveGroup(this._dragMarker,e):this._dragCol&&this._addGroup(this._dragCol,e)},i.prototype._dragEnd=function(e){this._dragMarker=this._dragCol=null},i.prototype._click=function(t){var r=t.target,i=e.closest(r,".wj-cell");if(e.hasClass(i,"wj-cell"))if(e.hasClass(r,"wj-filter")){if(i!=this._filterMarker)return this._editFilter(i),void(this._filterMarker=i)}else if(e.hasClass(r,"wj-remove")){var n=this._getElementIndex(i);this._removeGroup(n)}else this._updateSort(t,i);this._filterMarker=null,this.hostElement.focus()},i.prototype._updateSort=function(t,r){var i=this,n=this._g,o=n.collectionView;if(o&&o.canSort&&n.allowSorting!=e.grid.AllowSorting.None){var l=this._getElementIndex(r),s=this._gds[l],a=s instanceof e.collections.PropertyGroupDescription?s.propertyName:null,d=a?n.getColumn(a):null;if(d&&d.allowSorting){for(var h=d.sortMemberPath||d.binding,g=-1,u=o.sortDescriptions,c=0;c<u.length;c++)if(u[c].property==h){g=c;break}var p=new e.grid.CellRangeEventArgs(n.columnHeaders,new e.grid.CellRange(0,d.index),t);if(n.onSortingColumn(p)){var f=t.ctrlKey||t.metaKey,_=t.shiftKey;u.deferUpdate(function(){if(f&&_)u.clear();else if(g<0){i._g.allowSorting!=e.grid.AllowSorting.MultiColumn&&u.clear();var t=new e.collections.SortDescription(h,!0);u.push(t)}else{var r=u[g].ascending;if(f||i.isTouching&&!r)u.splice(g,1);else{t=new e.collections.SortDescription(h,!r);u.splice(g,1,t)}}}),n.onSortedColumn(p)}}}},i.controlTemplate='<div><div wj-part="div-ph"></div><div wj-part="div-markers"></div></div>',i}(e.Control);t.GroupPanel=r}(t.grouppanel||(t.grouppanel={}))}(e.grid||(e.grid={}))}(wijmo||(wijmo={})),function(e){!function(t){t.grouppanel||(t.grouppanel={}),e._registerModule("wijmo.grid.grouppanel",e.grid.grouppanel)}(e.grid||(e.grid={}))}(wijmo||(wijmo={}));
var __extends=this&&this.__extends||function(){var n=function(t,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r(){this.constructor=t}if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(t,i);t.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}}(),c1;(function(n){var t;(function(n){var t;(function(n){var t=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(wijmo.grid.grouppanel.GroupPanel);n.GroupPanel=t})(t=n.grouppanel||(n.grouppanel={}))})(t=n.grid||(n.grid={}))})(c1||(c1={}));
var __extends=this&&this.__extends||function(){var n=function(t,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r(){this.constructor=t}if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(t,i);t.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}}(),c1;(function(n){var t;(function(t){var i;(function(t){var i;(function(t){var i=function(t){function i(n,i){var r=t.call(this,n)||this;return r.grid=i,r}return __extends(i,t),i.prototype.initialize=function(t){if(t){if(t.selector&&delete t.selector,t.filter){var i=t.filter;t.filter=new n.mvc.grid.filter.FlexGridFilter(this.grid);t.filter.initialize(i)}wijmo.copy(this,t)}},i}(n.grid.grouppanel.GroupPanel);t.GroupPanel=i})(i=t.grouppanel||(t.grouppanel={}))})(i=t.grid||(t.grid={}))})(t=n.mvc||(n.mvc={}))})(c1||(c1={}));
var wijmo;(function(n){var t;(function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.GroupPanel||(n.GroupPanel={}))})(t=n.grouppanel||(n.grouppanel={}))})(t=n.grid||(n.grid={}))})(wijmo||(wijmo={}));
var wijmo,__extends=this&&this.__extends||function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}();!function(e){!function(t){!function(t){"use strict";var i=function(e){function t(t){var i=e.call(this)||this;return i.isReadOnly=!0,i}return __extends(t,e),Object.defineProperty(t.prototype,"detail",{get:function(){return this._detail},set:function(e){this._detail=e},enumerable:!0,configurable:!0}),t}(e.grid.Row);t.DetailRow=i}(t.detail||(t.detail={}))}(e.grid||(e.grid={}))}(wijmo||(wijmo={})),function(e){var t;(function(t){"use strict";var i=function(i){function r(e){var t=i.call(this)||this;return t._originalMergeManager=e.mergeManager,t}return __extends(r,i),r.prototype.getMergedRange=function(i,r,a,l){switch(void 0===l&&(l=!0),i.cellType){case e.grid.CellType.Cell:if(i.rows[r]instanceof t.DetailRow)return i.columns.frozen>0&&i.grid&&(i.grid.cloneFrozenCells=!1),new e.grid.CellRange(r,0,r,i.columns.length-1);break;case e.grid.CellType.RowHeader:var s=n(i,r),d=o(i,r),c=i.rows[r].dataItem;!c&&r>0&&i.rows[r]instanceof t.DetailRow&&(c=i.rows[r-1].dataItem);for(var u=r;u>0&&i.rows[u-1].dataItem==c&&n(i,u-1)==s&&o(i,u-1)==d;)u--;for(var h=r;h<i.rows.length-1&&i.rows[h+1].dataItem==c&&n(i,h+1)==s&&o(i,h+1)==d;)h++;return h<i.rows.length-1&&i.rows[h+1]instanceof t.DetailRow&&n(i,h+1)==s&&o(i,h+1)==d&&h++,u!=h?new e.grid.CellRange(u,a,h,a):null}return this._originalMergeManager.getMergedRange(i,r,a,l)},r}(e.grid.MergeManager);function n(e,t){return t<e.rows.frozen}function o(t,i){return t.rows[i]instanceof e.grid._NewRowTemplate}t.DetailMergeManager=i})((t=e.grid||(e.grid={})).detail||(t.detail={}))}(wijmo||(wijmo={})),function(e){var t;(function(t){"use strict";var i,n;e._addCultureInfo("FlexGridDetailProvider",{ariaLabels:{toggleDetail:"Toggle Row Detail"}}),function(e){e[e.None=0]="None",e[e.ToggleDetail=1]="ToggleDetail"}(i=t.KeyAction||(t.KeyAction={})),function(e){e[e.Code=0]="Code",e[e.Selection=1]="Selection",e[e.ExpandSingle=2]="ExpandSingle",e[e.ExpandMulti=3]="ExpandMulti"}(n=t.DetailVisibilityMode||(t.DetailVisibilityMode={}));var o=function(){function o(o,r){var a=this;this._maxHeight=null,this._mode=n.ExpandSingle,this._animated=!1,this._keyActionEnter=i.None,this._g=o,o.mergeManager=new t.DetailMergeManager(o),o.rowHeaders.hostElement.addEventListener("click",this._hdrClick.bind(this)),o.rowHeaders.hostElement.addEventListener("mousedown",function(e){var t=o.editableCollectionView;(o.activeEditor||t&&t.currentEditItem)&&(a._hdrClick(e),e.preventDefault())}),setTimeout(function(){o.formatItem.addHandler(a._formatItem,a)},100),o.selectionChanged.addHandler(this._selectionChanged,this),o.resizedRow.addHandler(this._resizedRow,this),o.loadingRows.addHandler(function(){return a.hideDetail()}),o.deletingRow.addHandler(function(e,t){a.hideDetail(t.row)}),o.updatedView.addHandler(this._handleFrozenCells,this),o.cloneFrozenCells=!1,o.draggingRow.addHandler(function(e,i){i.row<e.rows.length-1&&e.rows[i.row+1]instanceof t.DetailRow&&(i.cancel=!0,a.hideDetail(i.row))}),o.hostElement.addEventListener("keydown",function(t){if(t.keyCode==e.Key.Enter&&a._keyActionEnter==i.ToggleDetail){var n=a._g.selection.row;a._toggleRowDetail(n)&&t.preventDefault()}},!0),o._root.addEventListener("scroll",function(){e.Control.refreshAll(o._root)}),e.copy(this,r)}return Object.defineProperty(o.prototype,"grid",{get:function(){return this._g},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"detailVisibilityMode",{get:function(){return this._mode},set:function(t){(t=e.asEnum(t,n))!=this._mode&&(this._mode=t,this.hideDetail(),this._g.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"maxHeight",{get:function(){return this._maxHeight},set:function(t){(t=e.asNumber(t,!0))!=this._maxHeight&&(this._maxHeight=t,this.hideDetail())},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"isAnimated",{get:function(){return this._animated},set:function(t){t!=this._animated&&(this._animated=e.asBoolean(t))},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"keyActionEnter",{get:function(){return this._keyActionEnter},set:function(t){this._keyActionEnter=e.asEnum(t,i)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"createDetailCell",{get:function(){return this._createDetailCellFn},set:function(t){this._createDetailCellFn=e.asFunction(t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"disposeDetailCell",{get:function(){return this._disposeDetailCellFn},set:function(t){this._disposeDetailCellFn=e.asFunction(t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"rowHasDetail",{get:function(){return this._rowHasDetailFn},set:function(t){(t=e.asFunction(t,!0))!=this._rowHasDetailFn&&(this._rowHasDetailFn=t,this.hideDetail(),this._g.invalidate())},enumerable:!0,configurable:!0}),o.prototype.getDetailRow=function(e){for(var i=this._g.rows,n=this._toIndex(e),o=i[n].dataItem;n<i.length;n++){var r=i[n];if(r instanceof t.DetailRow)return r;if(r.dataItem!=o)return null}return null},o.prototype.isDetailVisible=function(e){return null!=this.getDetailRow(e)},o.prototype.isDetailAvailable=function(e){return e=this._toIndex(e),this._hasDetail(e)},o.prototype.hideDetail=function(i){var n=this._g,o=n.rows;if(null!=i){for(var r=this._toIndex(i);!(o[r]instanceof t.DetailRow)&&r<o.length-1;)r++;var a=o[r];if(a instanceof t.DetailRow){var l=a.detail.parentElement;if(l)for(var s=l.querySelectorAll(".wj-control"),d=0;d<s.length;d++){var c=e.Control.getControl(s[d]);c&&c.containsFocus()&&n.focus(!0)}var u=this.disposeDetailCell;!!u&&u(a)||e.Control.disposeAll(a.detail),o.removeAt(r)}}else for(var h=0;h<o.length;h++)o[h]instanceof t.DetailRow&&this.hideDetail(h)},o.prototype.showDetail=function(i,n){void 0===n&&(n=!1);var o=this._g,r=o.rows,a=this._toIndex(i);a>0&&r[a]instanceof t.DetailRow&&a--;for(var l=r[a].dataItem;a<r.length-1&&r[a+1].dataItem==l;)a++;if(n){for(var s=o.selection,d=!1,c=0;c<r.length-1;c++)c!=a&&r[c+1]instanceof t.DetailRow&&(this.hideDetail(c),c<a&&a--,c<s.row&&(s.row--,s.row2--,d=!0));d&&o.select(s,!1)}if(!this.isDetailVisible(a)&&this._hasDetail(a)){var u=new t.DetailRow(r[a]),h=this._createDetailCell(r[a]);if(u.detail=h,h){r.insert(a+1,u);var g=o.containsFocus();if(this._animated){var f=h.style;f.transform="translateY(-100%)",f.opacity="0",e.animate(function(t){t<1?(f.transform="translateY("+(100*-(1-t)).toFixed(0)+"%)",f.opacity=(t*t).toString()):(f.transform=f.opacity="",e.Control.invalidateAll(h),g&&o.scrollIntoView(a+1,-1))})}else g&&o.scrollIntoView(a+1,-1,!0)}}},o.prototype._sizeDetailRow=function(t){var i=this._g,n=t.detail;e.Control.refreshAll(n);var o=n.offsetHeight+i._cellPadVert+1,r=this._maxHeight;e.isNumber(r)&&r>0&&o>r&&(o=r),t.height=o,n.style.height||(n.style.height="100%");var a=n.querySelector(".wj-flexgrid");a&&!a.style.height&&(a.style.height="100%")},o.prototype._handleFrozenCells=function(){var t=this._g,i=t.hostElement,n=e.Control.getControl(i.querySelector(".wj-flexgrid"));if(n instanceof e.grid.FlexGrid&&(n.frozenRows||n.frozenColumns)){e.setCss([t._eTL,t._eBL,t._eCHdr,t._eCFtr,t._eRHdr,t._eMarquee],{zIndex:"13"});for(var o=i.querySelectorAll(".wj-frozen"),r=0;r<o.length;r++){var a=o[r];if(e.closest(a,".wj-flexgrid")==i){var l=parseInt(a.style.zIndex);a.style.zIndex=(l%10+10).toString()}}}},o.prototype._toIndex=function(t){return t instanceof e.grid.Row?t.index:e.asNumber(t)},o.prototype._hdrClick=function(t){if(!t.defaultPrevented&&0==t.button&&e.closestClass(t.target,o._WJC_DETAIL)){var i=n;switch(this._mode){case i.ExpandMulti:case i.ExpandSingle:var r=this._g,a=r.hitTest(t.target);a.panel||(a=r.hitTest(t)),a.panel&&this._toggleRowDetail(a.row)&&t.preventDefault()}}},o.prototype._toggleRowDetail=function(t){if(t>-1){if(this.isDetailVisible(t))return this.hideDetail(t),!0;if(this._hasDetail(t)){var i=this._g;return i.select(new e.grid.CellRange(t,0,t,i.columns.length-1)),this.showDetail(t,this._mode==n.ExpandSingle),!0}}return!1},o.prototype._selectionChanged=function(e,t){var i=this;this._mode==n.Selection&&(this._toSel&&clearTimeout(this._toSel),this._toSel=setTimeout(function(){var t=e._selHdl.selection.row;t>-1?i.showDetail(t,!0):i.hideDetail()},300))},o.prototype._formatItem=function(i,r){var a=this._g,l=r.cell,s=r.getRow(),d=n;if(r.panel==a.cells&&s instanceof t.DetailRow&&null!=s.detail&&(e.hasClass(l,"wj-detail")||(e.addClass(l,"wj-detail"),l.textContent="",l.style.textAlign=l.style.zIndex="",l.className=l.className.replace(/wj\-align\-[\S]+/g,""),l.appendChild(s.detail),null==s.height?this._sizeDetailRow(s):e.Control.refreshAll(s.detail))),r.panel==a.rowHeaders&&0==r.col&&this._hasDetail(r.row))switch(l.style.cursor="",this._mode){case d.ExpandMulti:case d.ExpandSingle:var c=this.isDetailVisible(r.row),u=c?"minus":"plus",h=o._WJC_DETAIL;l.innerHTML='<div class="wj-btn wj-btn-glyph '+h+'" role="button" tabindex="-1"><span class="wj-glyph-'+u+'"></span></div>';var g=l.children[0],f=e.culture.FlexGridDetailProvider.ariaLabels.toggleDetail;e.setAriaLabel(g,f),e.setAttribute(g,"aria-expanded",c)}},o.prototype._resizedRow=function(i,n){var o=n.getRow();o instanceof t.DetailRow&&o.detail&&e.Control.refreshAll(o.detail)},o.prototype._hasDetail=function(t){var i=this._g.rows[t];return e.isFunction(this._rowHasDetailFn)?this._rowHasDetailFn(i):this._isRegularRow(i)},o.prototype._isRegularRow=function(i){return!(i instanceof e.grid._NewRowTemplate||i instanceof t.DetailRow||i instanceof e.grid.GroupRow&&!this._g.childItemsPath)},o.prototype._createDetailCell=function(e){return this.createDetailCell?this.createDetailCell(e):null},o._WJC_DETAIL="wj-elem-detail",o}();t.FlexGridDetailProvider=o})((t=e.grid||(e.grid={})).detail||(t.detail={}))}(wijmo||(wijmo={})),function(e){!function(t){t.detail||(t.detail={}),e._registerModule("wijmo.grid.detail",e.grid.detail)}(e.grid||(e.grid={}))}(wijmo||(wijmo={}));
var __extends=this&&this.__extends||function(){var n=function(t,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r(){this.constructor=t}if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(t,i);t.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}}(),c1;(function(n){var t;(function(n){var t;(function(n){var t=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(wijmo.grid.detail.FlexGridDetailProvider);n.FlexGridDetailProvider=t})(t=n.detail||(n.detail={}))})(t=n.grid||(n.grid={}))})(c1||(c1={}));
var __extends=this&&this.__extends||function(){var n=function(t,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r(){this.constructor=t}if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(t,i);t.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}}(),c1;(function(n){var t;(function(t){var i;(function(t){var i;(function(t){var i=function(t){function i(){return t!==null&&t.apply(this,arguments)||this}return __extends(i,t),i.prototype.initialize=function(t){var i=this;i.uniqueId=i.grid.hostElement.id;i.template=t.detailRowTemplateId||t.detailRowTemplateContent;t&&(!t.createDetailCell&&i.template&&(t.createDetailCell=function(t){var r,u={};return r=document.createElement("div"),i.grid.hostElement.appendChild(r),u[n.mvc.Template.DATACONTEXT]=t.dataItem,i.template.applyTo(r,u),r.parentElement.removeChild(r),r}),delete t.detailRowTemplateId,delete t.detailRowTemplateContent,wijmo.copy(i,t),i.detailVisibilityMode===wijmo.grid.detail.DetailVisibilityMode.Selection&&i.showDetail(i.grid.selection.row,!0))},i}(n.grid.detail.FlexGridDetailProvider);t.FlexGridDetailProvider=i})(i=t.detail||(t.detail={}))})(i=t.grid||(t.grid={}))})(t=n.mvc||(n.mvc={}))})(c1||(c1={}));
var wijmo;(function(n){var t;(function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.DetailMergeManager||(n.DetailMergeManager={}))})(t=n.detail||(n.detail={}))})(t=n.grid||(n.grid={}))})(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.DetailRow||(n.DetailRow={}))})(t=n.detail||(n.detail={}))})(t=n.grid||(n.grid={}))}(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.FlexGridDetailProvider||(n.FlexGridDetailProvider={}))})(t=n.detail||(n.detail={}))})(t=n.grid||(n.grid={}))}(wijmo||(wijmo={}));
var wijmo,__extends=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();!function(t){!function(e){!function(e){"use strict";var n=function(e){function n(n,i){var r=e.call(this,n)||this;r._delay=t.Control._SEARCH_DELAY,r._cssMatch="wj-state-match",r._searchAllColumns=!1,r._rxSrch=null,r._rxHilite=null;var o=r.getTemplate();return r.applyTemplate("wj-control wj-content wj-flexgridsearch",o,{_tbx:"input",_btn:"btn"},"input"),r._filterBnd=r._filter.bind(r),r._tbx.addEventListener("input",function(){r._toSearch&&clearTimeout(r._toSearch),r._toSearch=setTimeout(function(){r._toSearch=null,r._applySearch()},r._delay)}),r._btn.addEventListener("click",function(){r._toSearch&&clearTimeout(r._toSearch),r._toSearch=null,r._tbx.value="",r._applySearch(),r.containsFocus()&&r._tbx.focus()}),r.initialize(i),r}return __extends(n,e),Object.defineProperty(n.prototype,"grid",{get:function(){return this._g},set:function(e){if((e=t.asType(e,t.grid.FlexGrid,!0))!=this._g){var n=this._g;n&&(n.formatItem.removeHandler(this._formatItem),n.itemsSourceChanged.removeHandler(this._itemsSourceChanged)),n=this._g=e,this._itemsSourceChanged(),n&&(n.formatItem.addHandler(this._formatItem,this),n.itemsSourceChanged.addHandler(this._itemsSourceChanged,this))}},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"inputElement",{get:function(){return this._tbx},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"text",{get:function(){return this._tbx.value},set:function(e){e!=this.text&&(this._tbx.value=t.asString(e),this._applySearch())},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"delay",{get:function(){return this._delay},set:function(e){this._delay=t.asNumber(e,!1,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"placeholder",{get:function(){return this._tbx.placeholder},set:function(t){this._tbx.placeholder=t},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"cssMatch",{get:function(){return this._cssMatch},set:function(e){this._cssMatch=t.asString(e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"searchAllColumns",{get:function(){return this._searchAllColumns},set:function(e){this._searchAllColumns=t.asBoolean(e)},enumerable:!0,configurable:!0}),n.prototype._formatItem=function(e,n){if(this._rxHilite&&this._cssMatch&&n.panel==e.cells&&!n.getColumn()._getFlag(t.grid.RowColFlags.HasTemplate)&&!n.cell.querySelector("input")){var i=n.cell.innerHTML;this._rxHilite.test(i)&&(n.cell.innerHTML=i.replace(this._rxHilite,'<span class="'+this._cssMatch+'">$1</span>'))}},n.prototype._itemsSourceChanged=function(){this._cv&&this._cv.filters.remove(this._filterBnd);var e=this._g?this._g.collectionView:null;this._cv=e instanceof t.collections.CollectionView?e:null,this._cv&&this._cv.filters.push(this._filterBnd)},n.prototype._applySearch=function(){var e=this._g;this._rxSrch=this._rxHilite=null;var n=t.escapeRegExp(this.text).split(" ").filter(function(t){return t});if(n.length){var r=e&&e.caseSensitiveSearch?"g":"gi";this._rxSrch=new RegExp("(?=.*"+n.join(")(?=.*")+")",r),n=n.map(function(e){return function(e){e&&t.isString(e)&&(e=e.replace(/[&<>]/g,function(t){return i[t]}));return null!=e?e.toString():""}(e)}),this._rxHilite=new RegExp("("+n.join("|")+")(?![^<]*>)",r)}var o=e?e.collectionView:null;o instanceof t.collections.CollectionView&&o.refresh()},n.prototype._filter=function(t){if(this._rxSrch&&this._g){var e=this._getItemText(t);return this._rxSrch.test(e)}return!0},n.prototype._getItemText=function(e){for(var n=[],i=this._g._getBindingColumns(),r=0;r<i.length;r++){var o=i[r],s=o._binding;if(s&&(o.visible||this.searchAllColumns)){var a=s.getValue(e);a=o.dataMap?o.dataMap.getDisplayValue(a):t.Globalize.format(a,o.format),o.isContentHtml&&(a=t.toPlainText(a)),a&&n.push(a)}}return n.join(" ")},n.controlTemplate='<div class="wj-template"><div class="wj-input"><div class="wj-input-group wj-input-btn-visible"><input wj-part="input" type="text" class="wj-form-control"/><span wj-part="btn" class="wj-input-group-btn"><button class="wj-btn wj-btn-default" tabindex="-1">&times</button></span></div></div></div>',n}(t.Control);e.FlexGridSearch=n;var i={"&":"&amp;","<":"&lt;",">":"&gt;"}}(e.search||(e.search={}))}(t.grid||(t.grid={}))}(wijmo||(wijmo={})),function(t){!function(e){e.search||(e.search={}),t._registerModule("wijmo.grid.search",t.grid.search)}(t.grid||(t.grid={}))}(wijmo||(wijmo={}));
var __extends=this&&this.__extends||function(){var n=function(t,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r(){this.constructor=t}if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(t,i);t.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}}(),c1;(function(n){var t;(function(n){var t;(function(n){var t=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(wijmo.grid.search.FlexGridSearch);n.FlexGridSearch=t})(t=n.search||(n.search={}))})(t=n.grid||(n.grid={}))})(c1||(c1={}));
var __extends=this&&this.__extends||function(){var n=function(t,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r(){this.constructor=t}if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(t,i);t.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}}(),c1;(function(n){var t;(function(t){var i;(function(i){var r;(function(i){var f=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),Object.defineProperty(t.prototype,"_controlType",{get:function(){return u},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_initializerType",{get:function(){return r},enumerable:!1,configurable:!0}),t}(t._ControlWrapper),r,u;i._FlexGridSearchWrapper=f;r=function(t){function i(){return t!==null&&t.apply(this,arguments)||this}return __extends(i,t),i.prototype._beforeInitializeControl=function(n){if(t.prototype._beforeInitializeControl.call(this,n),n){var r=n.grid,i;r&&(i=wijmo.Control.getControl("#"+r),i&&(n.grid=i))}},i.prototype._afterInitializeControl=function(i){var r,u,f;t.prototype._afterInitializeControl.call(this,i);r=this.control;u=r.grid?r.grid.collectionView:null;u instanceof n.mvc.collections.RemoteCollectionView&&u._flexGridSearchs.push(r);f=r._applySearch;r._applySearch=function(){(r.text||"")!=(r._lastText||"")&&(f.apply(r,null),r._lastText=r.text)}},i}(n.mvc._Initializer);i._FlexGridSearchInitializer=r;u=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(n.grid.search.FlexGridSearch);i.FlexGridSearch=u})(r=i.search||(i.search={}))})(i=t.grid||(t.grid={}))})(t=n.mvc||(n.mvc={}))})(c1||(c1={}));
var wijmo;(function(n){var t;(function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.FlexGridSearch||(n.FlexGridSearch={}))})(t=n.search||(n.search={}))})(t=n.grid||(n.grid={}))})(wijmo||(wijmo={}));
var wijmo,__extends=this&&this.__extends||function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}();!function(e){var t;(function(t){var i="wj-column-selector",o=function(){function t(t,i){this._col=null,this._grid=null,this._isFixedCol=!1,this._isBound=!1,this._showCheckAll=!0,this._clickBnd=this._click.bind(this),this._mousedownBnd=this._mousedown.bind(this),this.columnChanging=new e.Event,this.columnChanged=new e.Event,this.itemChecked=new e.Event,this._initialize(),this.column=this._getColumn(t),e.copy(this,i)}return Object.defineProperty(t.prototype,"column",{get:function(){return this._col},set:function(t){if((t=this._getColumn(t))!=this._col&&this.onColumnChanging(new e.CancelEventArgs)){var i=this._grid;if(i){var o=i.hostElement;i.formatItem.removeHandler(this._formatItem,this),i.removeEventListener(o,"click",this._clickBnd),i.removeEventListener(o,"mousedown",this._mousedownBnd)}var n=this._col=e.asType(t,e.grid.Column,!0);this._grid=i=n?n.grid:null,this._isFixedCol=!!i&&i.columns.indexOf(n)<0,n&&!this._isBound&&(n.allowMerging=!1),i&&!this._isBound&&(i.selectionMode=e.grid.SelectionMode.Cell),i&&(o=i.hostElement,i.formatItem.addHandler(this._formatItem,this),i.addEventListener(o,"click",this._clickBnd,!0),i.addEventListener(o,"mousedown",this._mousedownBnd,!0)),this.onColumnChanged()}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showCheckAll",{get:function(){return this._showCheckAll},set:function(t){t!=this._showCheckAll&&(this._showCheckAll=e.asBoolean(t),this._grid&&this._grid.invalidate())},enumerable:!0,configurable:!0}),t.prototype.onColumnChanging=function(e){return this.columnChanging.raise(this,e),!e.cancel},t.prototype.onColumnChanged=function(e){this.columnChanged.raise(this,e)},t.prototype.onItemChecked=function(e){this.itemChecked.raise(this,e)},t.prototype._initialize=function(){},t.prototype._click=function(t){if(!t.defaultPrevented&&t.target instanceof HTMLElement){var o=this._grid,n=this._col,s=t.target,r=o.hitTest(s);if(n&&r&&r.getColumn()==n){if(s instanceof HTMLInputElement&&e.hasClass(s,i)){var l=void 0,c=r.panel.rows,d=c[r.range.topRow];if(c==o.columnHeaders.rows){if(l=new e.grid.CellRange(0,0,o.rows.length-1,0),this._isBound){var a=o.selection;a.col=a.col2=n.index,o.select(a)}}else l=this._isGroupRow(d)?d.getCellRange():r.range;return l.isValid&&(this._setRangeChecked(s.checked,l),this.onItemChecked()),o.invalidate(),void t.preventDefault()}if(e.hasClass(s,"wj-cell")&&o.bigCheckboxes&&this._isBound&&(this._isFixedCol||this._isGroupRow(r.getRow()))){var h=s.querySelector("input."+i);h instanceof HTMLInputElement&&(h.click(),t.preventDefault())}}}},t.prototype._mousedown=function(t){var i=this._grid,o=this._col,n=i.editableCollectionView;if(this._isBound&&o&&n&&n.currentEditItem){var s=i.hitTest(t);if(s.getColumn()==o&&this._isGroupRow(s.getRow())){var r=e.closestClass(t.target,"wj-column-selector-group");r instanceof HTMLInputElement&&r.click()}}},t.prototype._isGroupRow=function(t){return t instanceof e.grid.GroupRow&&(!this._grid.childItemsPath||t.getCellRange().rowSpan>1)},t.prototype._getRowChecked=function(e,t){void 0===t&&(t=e);for(var i=0,o=0,n=this._col._binding,s=e;s<=t&&(!i||!o);s++){var r=this._grid.rows[s],l=r.dataItem;l&&!this._isGroupRow(r)&&((this._isBound?n.getValue(l):r.isSelected)?i++:o++)}return!(!i||o)||!(o&&!i)&&null},t.prototype._setRangeChecked=function(t,i){var o=this,n=this._grid,s=n.rows,r=this._col,l=r?r._binding:null,c=n.selection,d=this._isBound?n.editableCollectionView:null;if(!this._isBound||!n.isReadOnly&&d&&l){var a=!1;if(d){var h=!0;d instanceof e.collections.CollectionView&&!d.refreshOnEdit&&(h=!1),h&&(a=!0,d.beginUpdate())}n.deferUpdate(function(){for(var c=i.bottomRow;c>=i.topRow;c--){var a=s[c],h=a.dataItem;if(h)if(o._isGroupRow(a))n.childItemsPath&&!o._isBound&&(a.isSelected=t);else if(o._isBound){if(h[r.binding]!=t){d&&d.editItem(h);var u=new e.grid.CellRange(c,r.index),g=new e.grid.CellEditEndingEventArgs(n.cells,u,h[r.binding]);n.onCellEditEnding(g)&&(l.setValue(h,t),n.onCellEditEnded(g))}}else a.isSelected=t}}),d&&(d.commitEdit(),a&&d.endUpdate(),n.selection=c)}},t.prototype._formatItem=function(t,o){var n=o.getColumn(),s=t.editRange;if(n&&n==this._col&&(!s||!s.contains(o.row,o.col))&&o.panel.rows!=t.columnFooters.rows){var r=o.getRow(),l=o.cell,c="",d=void 0;if(o.panel.rows==t.columnHeaders.rows)this._showCheckAll&&o.range.bottomRow==o.panel.rows.length-1&&(d=this._getRowChecked(0,t.rows.length-1),c=i+" wj-column-selector-group");else if(this._isGroupRow(r)){var a=r.getCellRange();d=this._getRowChecked(a.row,a.row2),c=i+" wj-column-selector-group"}else r.dataItem&&!this._isBound&&(d=this._getRowChecked(o.row),c=i);if(c){if(this._isFixedCol||this._isBound&&this._isGroupRow(r)&&n.aggregate&&n.index>t.columns.firstVisibleIndex){var h=l.querySelector("."+e.grid.CellFactory._WJC_COLLAPSE);l.textContent="",h&&l.appendChild(h)}var u=e.createElement('<label><input type="checkbox" class="'+c+'" tabindex="-1"><span></span></label>'),g=u.querySelector("input");e.setChecked(g,d),this._isBound&&(n.isReadOnly||t.selectionMode==e.grid.SelectionMode.None)&&(g.disabled=!0,g.style.cursor="default"),l.insertBefore(u,l.firstChild)}}},t.prototype._getColumn=function(t){if(t instanceof e.grid.FlexGrid){var i=t,o=i.rowHeaders.columns;t=i.headersVisibility&e.grid.HeadersVisibility.Row&&o.length?o[0]:i.columns[0]}return this._grid&&(e.isString(t)||e.isNumber(t))&&(t=this._grid.getColumn(t)),t instanceof e.grid.Column?t:null},t}();t.Selector=o;var n=function(t){function i(e,i){return t.call(this,e,i)||this}return __extends(i,t),i.prototype.onColumnChanged=function(i){var o=this.column,n=o?o.dataType:null;e.assert(!o||null==n||n==e.DataType.Boolean,"BooleanChecker should be bound to boolean columns"),t.prototype.onColumnChanged.call(this,i)},i.prototype._initialize=function(){this._isBound=!0},i}(o);t.BooleanChecker=n})((t=e.grid||(e.grid={})).selector||(t.selector={}))}(wijmo||(wijmo={})),function(e){!function(t){t.selector||(t.selector={}),e._registerModule("wijmo.grid.selector",e.grid.selector)}(e.grid||(e.grid={}))}(wijmo||(wijmo={}));
var __extends=this&&this.__extends||function(){var n=function(t,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r(){this.constructor=t}if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(t,i);t.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}}(),c1;(function(n){var t;(function(n){var t;(function(n){var i=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(wijmo.grid.selector.Selector),t;n.Selector=i;t=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(wijmo.grid.selector.BooleanChecker);n.BooleanChecker=t})(t=n.selector||(n.selector={}))})(t=n.grid||(n.grid={}))})(c1||(c1={}));
var __extends=this&&this.__extends||function(){var n=function(t,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r(){this.constructor=t}if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(t,i);t.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}}(),c1;(function(n){var t;(function(t){var i;(function(i){var r;(function(i){var u=function(n){function t(t){var i=n.call(this,t)||this;return i._flexGrid=wijmo.asType(t,wijmo.grid.FlexGrid,!1),i}return __extends(t,n),t.prototype.initialize=function(n){var t=this,i,r;n&&(i=n.column,i&&(r=t._flexGrid.getColumn(i),r&&(t.column=r),delete n.column),wijmo.copy(t,n))},t}(n.grid.selector.Selector),r;i.Selector=u;r=function(n){function i(i){var r=n.call(this)||this;return r._flexGrid=wijmo.asType(i,wijmo.grid.FlexGrid,!1),t._overrideMethod(r,"_setRangeChecked",r._beforeSetRangeChecked.bind(r),r._afterSetRangeChecked.bind(r)),r}return __extends(i,n),i.prototype.initialize=function(n){var t=this,i,r;n&&(i=n.column,i&&(r=t._flexGrid.getColumn(i),r&&(t.column=r),delete n.column),wijmo.copy(t,n))},i.prototype._beforeSetRangeChecked=function(){var n=this._isBound?this._flexGrid.editableCollectionView:null;n&&(this._disableServerRead=n._disableServerRead,n._disableServerRead=!0)},i.prototype._afterSetRangeChecked=function(){var n=this._isBound?this._flexGrid.editableCollectionView:null;n&&(n._disableServerRead=this._disableServerRead)},i}(n.grid.selector.BooleanChecker);i.BooleanChecker=r})(r=i.selector||(i.selector={}))})(i=t.grid||(t.grid={}))})(t=n.mvc||(n.mvc={}))})(c1||(c1={}));
var wijmo;(function(n){var t;(function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.Selector||(n.Selector={}))})(t=n.selector||(n.selector={}))})(t=n.grid||(n.grid={}))})(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.BooleanChecker||(n.BooleanChecker={}))})(t=n.selector||(n.selector={}))})(t=n.grid||(n.grid={}))}(wijmo||(wijmo={}));
var wijmo;!function(e){!function(t){!function(t){var n,r;!function(e){e[e.Line=0]="Line",e[e.Column=1]="Column",e[e.WinLoss=2]="WinLoss"}(n=t.SparklineType||(t.SparklineType={})),function(e){e[e.None=0]="None",e[e.First=1]="First",e[e.Last=2]="Last",e[e.High=4]="High",e[e.Low=8]="Low",e[e.Negative=16]="Negative"}(r=t.SparklineMarkers||(t.SparklineMarkers={}));var a=function(){function t(){}return t.makeButton=function(n){return function(r,a){r.col.isReadOnly=!0,a.innerHTML="";var i=e.format('<button type="button" tabindex="-1">{txt}</button>',{txt:t._getOptionText(n,"text",r,r.text)});return t._createElement(a,i,n,r),null}},t.makeLink=function(n){return function(r,a){r.col.isReadOnly=!0,a.innerHTML="";var i=e.format('<a href="{href}" tabindex="-1">{txt}</a>',{txt:t._getOptionText(n,"text",r,r.text),href:t._getOptionText(n,"href",r,"#")});return t._createElement(a,i,n,r),null}},t.makeSparkline=function(n){return function(r,a){r.col.isReadOnly=!0,a.innerHTML="";var i=e.format("<div><svg><g>{spark}</g></svg></div>",{spark:t._getSparkline(r.value,n)});return t._createElement(a,i,n,r),null}},t.makeImage=function(n){return function(r,a){r.col.isReadOnly=!0,a.innerHTML="";var i=e.format('<img src="{src}"></div>',{src:t._getOptionText(n,"src",r,r.text)});return t._createElement(a,i,n,r),null}},t.makeRating=function(n){return function(r,a){var i=r.col,l=e.grid.DataMapEditor,o=i.cssClass||"",s=t._WJC_CellMaker;if(!i.dataMap||i.dataMapEditor!=l.RadioButtons||o.indexOf(s)<0){for(var u=n?n.range:null,c=[],m=(u=u&&e.isArray(u)&&u.length>1&&u[1]>u[0]?u:[0,5])[0];m<=u[1];m++)c.push(m);i.dataMap=new e.grid.DataMap(c),i.dataMapEditor=l.RadioButtons,o.indexOf(s)<0&&(i.cssClass=(o+" "+s).trim())}if(n&&n.label){var f=t._getOptionText(n,"label",r);a.setAttribute("aria-label",f.trim())}var g=a.querySelectorAll("label"),x=!!n&&n.showZeros,d=null==a.querySelector("input:checked");for(m=0;m<g.length;m++){var h=(f=g[m]).querySelector("input");e.toggleClass(f,"wj-chk-hidden","0"==h.value&&!x),e.toggleClass(f,"wj-chk-off",d),d=d||null!=f.querySelector("input:checked")}return null}},t._getOptionText=function(t,n,r,a){void 0===a&&(a="");var i=t?t[n]:"";return i?e.evalTemplate(i,r):a},t._createElement=function(n,r,a,i){var l=e.createElement(r,n),o=t._WJC_CellMaker;if(a&&a.cssClass&&(o+=" "+t._getOptionText(a,"cssClass",i)),l.className=o.trim(),a&&a.label){var s=t._getOptionText(a,"label",i);l.setAttribute("aria-label",s.trim()),l instanceof HTMLImageElement&&l.setAttribute("alt",s.trim())}if(a&&a.attributes)for(var u in a.attributes)l.setAttribute(u,a.attributes[u]);return a&&e.isFunction(a.click)&&(l.onclick=t._handleClick.bind({options:a,ctx:t._cloneContext(i)})),l},t._cloneContext=function(t){if(e.isFunction(Object.assign))return Object.assign({},t);var n={};for(var r in t)n[r]=t[r];return n},t._handleClick=function(t){var n=this.options;if(e.isFunction(n.click)){t.preventDefault();var r=this.ctx;n.click(t,r)}},t._getSparkline=function(a,i){var l="",o=n,s=r,u=null!=(i=i||{}).type?i.type:o.Line,c=null!=i.markers?i.markers:s.None,m=e.isNumber(i.baseValue)?i.baseValue:u==o.Line?null:0,f=e.isNumber(i.maxPoints)?i.maxPoints:null;if(a instanceof Array&&a.length>1){u==o.WinLoss&&(a=a.map(function(t){return e.isBoolean(t)?t?1:-1:e.isNumber(t)?t>0?1:t<0?-1:null:null}));var g=t._scaleValues(a,m,f),x=g.points,d=g.base,h=100/(x.length-(u==o.Line?1:0)),k=h>4?h-2:h,v=h-k;switch(u){case o.Column:case o.WinLoss:for(var b=0;b<x.length;b++){var p=x[b];null!=p&&(l+=e.format("<rect {cls}x={x}% y={y}% width={w}% height={h}% />",{x:(b*h+v).toFixed(2),y:Math.min(d,p),w:k.toFixed(2),h:Math.abs(d-p),cls:t._getMarkers(c,g,b)}))}break;case o.Line:for(b=0;b<x.length-1;b++){var M=x[b],_=x[b+1];null!=M&&null!=_&&(l+=e.format("<line x1={x1}% y1={y1}% x2={x2}% y2={y2}% />",{x1:Math.round(h*b),y1:M,x2:Math.round(h*(b+1)),y2:_}));var y=t._getMarkers(c,g,b),L='<circle {cls}cx={x}% cy={y}% r="3"/>';y&&(l+=e.format(L,{x:Math.round(h*b),y:M,cls:y})),b==x.length-2&&(y=t._getMarkers(c,g,b+1))&&(l+=e.format(L,{x:Math.round(h*(b+1)),y:_,cls:y}))}}null!=m&&u!=o.WinLoss&&(l+=e.format('<line class="x-axis" x1=0% y1={base}% x2=100% y2={base}% />',{base:g.base}))}return l},t._scaleValues=function(t,n,r){var a,i,l=[];if(r&&r>1&&t.length>r&&(t=t.slice(0,r)),t.forEach(function(t){e.isNumber(t)&&(a=!e.isNumber(a)||t<a?t:a,i=!e.isNumber(i)||t>i?t:i)}),e.isNumber(a)&&e.isNumber(i)){null!=n?(a=Math.min(a,n),i=Math.max(i,n)):n=a>0?a:i<0?i:0,a==i&&(a--,i++);var o=i-a;t.forEach(function(t){l.push(e.isNumber(t)?100-Math.round((t-a)/o*100):null)}),n=100-Math.round((n-a)/o*100)}return{min:a,max:i,base:n,points:l,data:t}},t._getMarkers=function(e,t,n){var a="",i=r;if(e){var l=t.data,o="wj-marker-";0!=(e&i.First)&&0==n&&(a+=o+"first "),0!=(e&i.Last)&&n==l.length-1&&(a+=o+"last "),0!=(e&i.High)&&l[n]==t.max&&(a+=o+"high "),0!=(e&i.Low)&&l[n]==t.min&&(a+=o+"low "),0!=(e&i.Negative)&&l[n]<0&&(a+=o+"negative ")}return a?'class="wj-marker '+a.trim()+'"':""},t._WJC_CellMaker="wj-cell-maker",t}();t.CellMaker=a}(t.cellmaker||(t.cellmaker={}))}(e.grid||(e.grid={}))}(wijmo||(wijmo={})),function(e){!function(t){t.cellmaker||(t.cellmaker={}),e._registerModule("wijmo.grid.cellmaker",e.grid.cellmaker)}(e.grid||(e.grid={}))}(wijmo||(wijmo={}));
var __extends=this&&this.__extends||function(){var n=function(t,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r(){this.constructor=t}if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(t,i);t.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}}(),c1;(function(n){var t;(function(n){var t;(function(n){var t=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(wijmo.grid.cellmaker.CellMaker);n.CellMaker=t})(t=n.cellmaker||(n.cellmaker={}))})(t=n.grid||(n.grid={}))})(c1||(c1={}));
var __extends=this&&this.__extends||function(){var n=function(t,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r(){this.constructor=t}if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(t,i);t.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}}(),c1;(function(n){var t;(function(t){var i;(function(t){var i;(function(t){var i=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(n.grid.cellmaker.CellMaker);t.CellMaker=i})(i=t.cellmaker||(t.cellmaker={}))})(i=t.grid||(t.grid={}))})(t=n.mvc||(n.mvc={}))})(c1||(c1={}));
var wijmo;(function(n){var t;(function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.CellMaker||(n.CellMaker={}))})(t=n.cellmaker||(n.cellmaker={}))})(t=n.grid||(n.grid={}))})(wijmo||(wijmo={}));
var wijmo,__extends=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();!function(t){!function(e){!function(e){e.softFinancial=function(){return t._getModule("wijmo.chart.finance")},e.softRadar=function(){return t._getModule("wijmo.chart.radar")}}(e.animation||(e.animation={}))}(t.chart||(t.chart={}))}(wijmo||(wijmo={})),function(t){var e;(function(e){var n,i;!function(t){t[t.Linear=0]="Linear",t[t.Swing=1]="Swing",t[t.EaseInQuad=2]="EaseInQuad",t[t.EaseOutQuad=3]="EaseOutQuad",t[t.EaseInOutQuad=4]="EaseInOutQuad",t[t.EaseInCubic=5]="EaseInCubic",t[t.EaseOutCubic=6]="EaseOutCubic",t[t.EaseInOutCubic=7]="EaseInOutCubic",t[t.EaseInQuart=8]="EaseInQuart",t[t.EaseOutQuart=9]="EaseOutQuart",t[t.EaseInOutQuart=10]="EaseInOutQuart",t[t.EaseInQuint=11]="EaseInQuint",t[t.EaseOutQuint=12]="EaseOutQuint",t[t.EaseInOutQuint=13]="EaseInOutQuint",t[t.EaseInSine=14]="EaseInSine",t[t.EaseOutSine=15]="EaseOutSine",t[t.EaseInOutSine=16]="EaseInOutSine",t[t.EaseInExpo=17]="EaseInExpo",t[t.EaseOutExpo=18]="EaseOutExpo",t[t.EaseInOutExpo=19]="EaseInOutExpo",t[t.EaseInCirc=20]="EaseInCirc",t[t.EaseOutCirc=21]="EaseOutCirc",t[t.EaseInOutCirc=22]="EaseInOutCirc",t[t.EaseInBack=23]="EaseInBack",t[t.EaseOutBack=24]="EaseOutBack",t[t.EaseInOutBack=25]="EaseInOutBack",t[t.EaseInBounce=26]="EaseInBounce",t[t.EaseOutBounce=27]="EaseOutBounce",t[t.EaseInOutBounce=28]="EaseInOutBounce",t[t.EaseInElastic=29]="EaseInElastic",t[t.EaseOutElastic=30]="EaseOutElastic",t[t.EaseInOutElastic=31]="EaseInOutElastic"}(n=e.Easing||(e.Easing={})),function(t){t[t.All=0]="All",t[t.Point=1]="Point",t[t.Series=2]="Series"}(i=e.AnimationMode||(e.AnimationMode={}));var a=function(){function a(n,i){this._play=!0,this.ended=new t.Event;var a=this,o=n.hostElement,u=new t.Size(o.offsetWidth,o.offsetHeight);a._chart=n,a._updateEventArgs=[],n instanceof t.chart.FlexPie?a._animation=new r(n,a._updateEventArgs):(e.softRadar()&&n instanceof e.softRadar().FlexRadar?a._animation=new c(n,a._updateEventArgs):n instanceof t.chart.FlexChartCore&&(a._animation=new s(n,a._updateEventArgs)),a._chartType=n.chartType),t.assert(void 0!==a._animation,"Animation is not supported"),a._initOptions(i),n.beginUpdate(),window.setTimeout(function(){n.rendered.addHandler(a._playAnimation,a),n.endUpdate()},0),a._setCV(n.collectionView),window.addEventListener("resize",function(e){var n=new t.Size(o.offsetWidth,o.offsetHeight);u.equals(n)||(a._play=!1,u=n)})}return a.prototype._initOptions=function(t){t&&(t.duration&&(this.duration=t.duration),t.easing&&(this.easing=t.easing),t.animationMode&&(this.animationMode=t.animationMode))},a.prototype._setCV=function(t){this._cv=t,this._animation._clearState()},Object.defineProperty(a.prototype,"animationMode",{get:function(){return this._animation.animationMode},set:function(e){(e=t.asEnum(e,i))!=this.animationMode&&(this._animation.animationMode=e)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"easing",{get:function(){return this._animation.easing},set:function(e){(e=t.asEnum(e,n))!=this.easing&&(this._animation.easing=e)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"duration",{get:function(){return this._animation.duration},set:function(e){(e=t.asNumber(e))!=this.duration&&(this._animation.duration=e)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"axisAnimation",{get:function(){return this._animation.axisAnimation},set:function(e){(e=t.asBoolean(e))!=this.axisAnimation&&(this._animation.axisAnimation=e)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"chart",{get:function(){return this._chart},enumerable:!0,configurable:!0}),a.prototype._playAnimation=function(){var e=this,n=e._chart,i=n.chartType;e._cv!==n.collectionView&&e._setCV(n.collectionView),null!=e._chartType&&e._chartType!==i&&(e._chartType=i,e._animation._clearState()),e._play?e._animation.playAnimation(function(){return e.ended.raise(e,t.EventArgs.empty)}):e._play=!0},a.prototype.animate=function(){var t=this._chart;if(t){var e=t.itemsSource;t.beginUpdate(),t.itemsSource=null,t.itemsSource=e,t.endUpdate()}},a}();e.ChartAnimation=a;var o=function(){function e(t,e){this._axisAnimation=!0,this._chart=t,this._timers=[]}return Object.defineProperty(e.prototype,"animationMode",{get:function(){return this._animationMode||i.All},set:function(e){(e=t.asEnum(e,i,!1))!==this._animationMode&&(this._clearState(),this._animationMode=e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"easing",{get:function(){return null==this._easing?n.Swing:this._easing},set:function(e){e!==this._easing&&(this._easing=t.asEnum(e,n,!1))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"duration",{get:function(){return this._duration||400},set:function(e){e!==this._duration&&(this._duration=t.asNumber(e,!1,!0))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"axisAnimation",{get:function(){return!!this._axisAnimation},set:function(e){e!==this._axisAnimation&&(this._axisAnimation=t.asBoolean(e,!1))},enumerable:!0,configurable:!0}),e.prototype.playAnimation=function(t){},e.prototype._clearState=function(){this._previousState&&(this._previousState=null),this._currentState&&(this._currentState=null)},e.prototype._setInitState=function(t,e,n){var i=u.parseAttrs(e,n);u.setElementAttr(t,i,0)},e.prototype._getAnimation=function(t,e){return t[e]||(t[e]=[]),t[e]},e.prototype._toggleVisibility=function(t,e){e?u.playAnimation(t,{opacity:0},{opacity:1},null,n.Swing,100):t.setAttribute("opacity","0")},e.prototype._toggleDataLabelVisibility=function(t){var e=this._chart.hostElement,n=e&&e.querySelector(".wj-data-labels");n&&this._toggleVisibility(n,t)},e.prototype._playAnimation=function(e,n){var i,a=this,o=this,r=o.duration,s=o.easing,c=e.length;o._toggleDataLabelVisibility(!1),i=o._getDurationAndDelay(e.length,r),this._timers&&this._timers.length&&(this._timers.forEach(function(t){return window.clearInterval(t)}),this._timers.length=0),e.forEach(function(e,r){var l;e&&(l=window.setTimeout(function(){var l;e.forEach(function(e,h){if(e&&e.ele){if(r===c-1&&0===h){var p=e.done;e.done=function(){o._toggleDataLabelVisibility(!0),p&&p(),n&&n()}}t.isArray(e.ele)?(l=u.playAnimations(e.ele,e.from,e.to,e.done,s,i.duration),a._timers=a._timers.concat.apply(l)):(l=u.playAnimation(e.ele,e.from,e.to,e.done,s,i.duration),a._timers.push(l))}})},i.delay*r),a._timers.push(l))})},e.prototype._getDurationAndDelay=function(t,e){var n={duration:e,delay:0};return t>1&&(this._previousState?(n.duration=e/t,n.delay=e/t):(n.duration=.5*e,n.delay=.5*e/(t-1))),n},e}(),r=function(t){function e(e,n){var i=t.call(this,e,n)||this;return e.selectionChanged.addHandler(i._selectionChanged,i),i}return __extends(e,t),e.prototype._selectionChanged=function(){this._isSelectionChanged=!0},e.prototype._clearState=function(){t.prototype._clearState.call(this),this._isSelectionChanged=!1},e.prototype._getElementRotate=function(t){var e,n=t.getAttribute("transform");return n&&n.indexOf("rotate")>-1?1==(n=(n=n.replace("rotate(","").replace(")","")).indexOf(",")>-1?n.split(",").map(function(t){return+t}):n.split(" ").map(function(t){return+t})).length&&(e=this._chart._areas[0].center,n.push(e.x,e.y)):n=[0,(e=this._chart._areas[0].center).x,e.y],n},e.prototype._getDurationAndDelay=function(t,e){var n={duration:e,delay:0};return this.animationMode===i.Point&&t>1&&(n.duration=e/t,n.delay=e/t),n},e.prototype.playAnimation=function(e){t.prototype.playAnimation.call(this,e);var n=[];this._playPieAnimation(n),n.length&&this._playAnimation(n,e)},e.prototype._playPieAnimation=function(t){var e=this._chart,n=!0;if(this._previousState=this._currentState,this._currentState={areas:e._areas,pels:e._pels,rotate:e._pels.length&&this._getElementRotate(e._pels[0].parentNode)},this._previousState&&(n=!1),this._isSelectionChanged)return e.isAnimated||this._playSelectPieAnimation(t),void(this._isSelectionChanged=!1);n?this._playLoadPieAnimation(t):this._playUpdatePieAnimation(t)},e.prototype._playSelectPieAnimation=function(t){if(null!=this._previousState){var e,n,i,a=this._chart._pels[0].parentNode,o=this._previousState.rotate,r=this._getElementRotate(a),s=o[0],c=r[0];s!==c&&(s-c>180?r[0]+=360:c-s>180&&(o[0]+=360),e=this._getAnimation(t,0),n={rotate:o},i={rotate:r},this._setInitState(a,n,i),e.push({ele:a,from:n,to:i}))}},e.prototype._playUpdatePieAnimation=function(t){var e,n,i,a,o=this._chart,r=this._previousState,s=o._areas,c=o._pels,l=r.areas.length,h=s.length,p=Math.max(h,l),m=this._getAnimation(t,0),d=0;if(0!==h&&0!==l)for(this._playSelectPieAnimation(t),e=0;e<p;e++)n={},c[e]&&c[e].childNodes&&c[e].childNodes.length>0&&(e<h&&e<l&&(i=s[0],0===e&&(d=i.angle),1===l?c[e].childNodes[0].setAttribute("d",u.getPathDescOfPie(i.center.x,i.center.y,i.radius,d,2*Math.PI,i.innerRadius||0)):c[e].childNodes[0].setAttribute("d",r.pels[e].childNodes[0].getAttribute("d"))),e<h?(i=s[e],n.to={pie:[i.center.x,i.center.y,i.radius,i.angle,i.sweep,i.innerRadius||0]},n.ele=c[e].childNodes[0]):(i=s[0],a=r.pels[e],n.to={pie:[i.center.x,i.center.y,i.radius,d+2*Math.PI,0,i.innerRadius||0]},c[0].parentNode.appendChild(a),n.done=function(t){return function(){t.parentNode.removeChild(t)}}(a),n.ele=a.childNodes[0]),e<l?(i=r.areas[e],n.from={pie:[i.center.x,i.center.y,i.radius,i.angle,i.sweep,i.innerRadius||0]}):(c[e].childNodes[0].setAttribute("d",u.getPathDescOfPie(i.center.x,i.center.y,i.radius,2*Math.PI+d,0,i.innerRadius||0)),i=r.areas[0],n.from={pie:[i.center.x,i.center.y,i.radius,2*Math.PI+d,0,i.innerRadius||0]}),m.push(n))},e.prototype._playLoadPieAnimation=function(t){var e=this,n=e._chart,a=e.animationMode,o=n._areas;n._pels.forEach(function(n,r){var s,c=n.childNodes[0],u={},l={};c&&(a===i.Point?(e._parsePathByAngle(o[r],u,l),s=e._getAnimation(t,r)):(e._parsePathByRadius(o[r],u,l),s=e._getAnimation(t,0)),e._setInitState(c,u,l),s.push({ele:c,from:u,to:l}))})},e.prototype._parsePathByRadius=function(t,e,n){var i,a,o=t.center.x,r=t.center.y,s=t.radius,c=t.angle,u=t.sweep;i=[o,r,0,c,u,0],a=[o,r,s,c,u,t.innerRadius||0],e.pie=i,n.pie=a},e.prototype._parsePathByAngle=function(t,e,n){var i,a,o=t.center.x,r=t.center.y,s=t.radius,c=t.angle,u=t.sweep,l=t.innerRadius;i=[o,r,s,c,0,l||0],a=[o,r,s,c,u,l||0],e.pie=i,e["stroke-width"]=0,n.pie=a,n["stroke-width"]=1},e}(o),s=function(a){function o(t,e){return a.call(this,t,e)||this}return __extends(o,a),o.prototype._clearState=function(){a.prototype._clearState.call(this),this._prevAxesStates&&(this._prevAxesStates=null),this._currAxesStates&&(this._currAxesStates=null)},o.prototype.playAnimation=function(t){a.prototype.playAnimation.call(this,t);var n,i,o,r,s,c,u,l,h,p=!0,m=this._chart,d=e.softFinancial()&&m instanceof e.softFinancial().FinancialChart,f=m.series,_=f.length,y=[];for(this._previousState=this._currentState,this._previousXVal=this._currentXVal,this._currentState=[],this._addStart=0,this._removeStart=0,this._currentXVal=m._xlabels.slice(),this._previousState&&this._previousState.length&&(p=!1,s=(c=this._previousState).length,u=this._previousXVal,l=this._currentXVal,u.length>2&&l.length>2&&((n=l.indexOf(u[0]))>0&&n<l.length-2?l[n+1]===u[1]&&l[n+2]===u[2]&&(this._addStart=n):(n=u.indexOf(l[0]))>0&&n<u.length-2&&u[n+1]===l[1]&&u[n+2]===l[2]&&(this._removeStart=n))),n=0;n<_;n++)if(r=null!=(i=f[n])._getChartType()?i._getChartType():m._getChartType(),o=this._getChartType(r),this._currentState.push({seriesType:r,ele:i.hostElement}),d)this._playDefaultAnimation(y,n);else{if(h=c&&c[n],"Default"===o){this._playDefaultAnimation(y,n);continue}if(p||h&&h.seriesType!==r||h&&h.ele&&(""==h.ele.innerHTML||0===h.ele.childNodes.length))this._playLoadAnimation(y,n,o);else if(this._playUpdateAnimation(y,n,o,i,h&&h.ele||null),n===_-1&&n<s-1)for(n++;n<=s-1;n++)this._playUpdateAnimation(y,n,o,null,h.ele)}this._adjustAnimations(o,y),y.length&&this._playAnimation(y,t),this.axisAnimation&&!d&&this._playAxesAnimation()},o.prototype._playAxesAnimation=function(){var e,n,i,a=this._chart.axes,o=a.length;for(this._prevAxesStates=this._currAxesStates,this._currAxesStates=[],n=0;n<o;n++)(e=a[n]).hostElement&&this._currAxesStates.push({ele:e.hostElement,vals:e._vals,axis:e,maxValue:t.isDate(e.actualMax)?e.actualMax.getTime():e.actualMax,minValue:t.isDate(e.actualMin)?e.actualMin.getTime():e.actualMin});if(this._prevAxesStates)for(i=Math.max(this._prevAxesStates.length,this._currAxesStates.length),n=0;n<i;n++)this._playAxisAnimation(this._prevAxesStates[n],this._currAxesStates[n])},o.prototype._playAxisAnimation=function(t,e){var n,i=[],a=[];e&&e.maxValue-e.minValue&&(n=this._parseAxisState(e),this._convertAxisAnimation(i,n.major,e.axis,t.maxValue,t.minValue),this._convertAxisAnimation(i,n.minor,e.axis,t.maxValue,t.minValue)),t&&t.maxValue-t.minValue&&(n=this._parseAxisState(t),this._convertAxisAnimation(a,n.major,t.axis),this._convertAxisAnimation(a,n.minor,t.axis)),i&&a&&this._combineAxisAnimations(i,a),this._playCurrAxisAnimation(i),this._playPrevAxisAnimation(a)},o.prototype._combineAxisAnimations=function(t,e){var n,i,a=this,o=e.length;for(n=o-1;n>=0;n--)(i=e[n]).text&&t.some(function(t){if(t.text&&t.text===i.text)return a._combineAxisAnimation(t,i),e.splice(n,1),!0})},o.prototype._combineAxisAnimation=function(t,e){var n=this;["label","majorGrid","tick"].forEach(function(i){t[i]&&e[i]&&n._resetExistAxisAttrs(t[i],e[i])})},o.prototype._resetExistAxisAttrs=function(t,e){var n=t.ele,i=e.ele,a={},o={};["x","y","x1","x2","y1","y2"].forEach(function(t){var e=n.getAttribute(t),r=i.getAttribute(t);e!==r&&(a[t]=r,o[t]=e)}),t.calcPos=a,t.elePos=o},o.prototype._convertAxisAnimation=function(e,n,i,a,o){var r,s=this,c=i.hostElement,u=i.axisType==t.chart.AxisType.Y;n.forEach(function(t,n){var l=i.convert(t.val,a,o);isNaN(l)||(r={},t.majorGrid&&(r.majorGrid=s._getAxisAnimationAttrs(t.majorGrid,c,l,u)),t.label&&(r.label=s._getAxisAnimationAttrs(t.label,c,l,u),r.text=t.label.innerHTML||t.label.textContent),t.tick&&(r.tick=s._getAxisAnimationAttrs(t.tick,c,l,u)),e.push(r))})},o.prototype._getAxisAnimationAttrs=function(t,e,n,i){var a,o,r;return a={ele:t,parent:e,elePos:{},calcPos:{}},"text"===t.nodeName?(o=i?"y":"x",r=Number(t.getAttribute(o)),a.elePos[o]=r,a.calcPos[o]=n):(o=i?"y1":"x1",r=Number(t.getAttribute(o)),i?(a.elePos={y1:r,y2:r},a.calcPos={y1:n,y2:n}):(a.elePos={x1:r,x2:r},a.calcPos={x1:n,x2:n})),a.elePos.opacity=1,a.calcPos.opacity=0,a},o.prototype._playCurrAxisAnimation=function(t){var e=this.duration;t&&0!==t.length&&t.forEach(function(t){["majorGrid","label","tick"].forEach(function(i){var a=t[i];if(a){a.parent;var o=a.ele,r=a.elePos,s=a.calcPos;u.playAnimation(o,s,r,null,n.Swing,e)}})})},o.prototype._playPrevAxisAnimation=function(t){var e=this.duration;t&&0!==t.length&&t.forEach(function(t){["majorGrid","label","tick"].forEach(function(i){var a=t[i];if(a){var o=a.parent,r=a.ele,s=a.elePos,c=a.calcPos;o.appendChild(r),u.playAnimation(r,s,c,function(){r.parentNode===o&&o.removeChild(r)},n.Swing,e)}})})},o.prototype._parseAxisState=function(e){if(null==e)return null;var n,i,a,o=e.vals,r=e.axis,s=r.axisType==t.chart.AxisType.Y,c=e.ele.childNodes,u=0,l=[],h=[];return o&&(n=o.major,i=o.minor,a=o.hasLbls),n&&n.forEach(function(e,n){var i,o={},h=!!a[n];l.push(o),o.val=e,i=c[u],r.majorGrid&&t.hasClass(i,t.chart.FlexChart._CSS_GRIDLINE)&&(o.majorGrid=i,i=c[++u]),s?(h&&i&&r.majorTickMarks!==t.chart.TickMark.None&&t.hasClass(i,t.chart.FlexChart._CSS_TICK)&&(o.tick=i,i=c[++u]),h&&i&&(t.hasClass(i,t.chart.FlexChart._CSS_LABEL)||i.querySelector("."+t.chart.FlexChart._CSS_LABEL))&&(o.label=i,u++)):(h&&i&&(t.hasClass(i,t.chart.FlexChart._CSS_LABEL)||i.querySelector("."+t.chart.FlexChart._CSS_LABEL))&&(o.label=i,i=c[++u]),h&&i&&r.majorTickMarks!==t.chart.TickMark.None&&t.hasClass(i,t.chart.FlexChart._CSS_TICK)&&(o.tick=i,u++))}),i&&i.forEach(function(e,n){var i,a={};h.push(a),a.val=e,i=c[u],r.minorTickMarks!==t.chart.TickMark.None&&t.hasClass(i,t.chart.FlexChart._CSS_TICK_MINOR)&&(a.tick=i,i=c[++u]),r.minorGrid&&t.hasClass(i,t.chart.FlexChart._CSS_GRIDLINE_MINOR)&&(a.majorGrid=i,u++)}),{major:l,minor:h}},o.prototype._playLoadAnimation=function(t,e,n){this["_playLoad"+n+"Animation"](t,e)},o.prototype._playUpdateAnimation=function(t,e,n,i,a){null==i||null==a?null==i?this["_play"+n+"RemoveAnimation"](t,a):this["_play"+n+"AddAnimation"](t,i):this["_play"+n+"MoveAnimation"](t,i,a)},o.prototype._adjustAnimations=function(t,e){var n,i=e.length;if("Column"===t||"Bar"===t)for(n=i-1;n>=0;n--)null==e[n]&&e.splice(n,1)},o.prototype._getChartType=function(e){var n="Default",i=this._chart._isRotated();switch(e){case t.chart.ChartType.Scatter:case t.chart.ChartType.Bubble:case t.chart.ChartType.Candlestick:case t.chart.ChartType.HighLowOpenClose:n="Scatter";break;case t.chart.ChartType.Column:case t.chart.ChartType.Bar:n=i?"Bar":"Column";break;case t.chart.ChartType.Line:case t.chart.ChartType.LineSymbols:case t.chart.ChartType.Area:case t.chart.ChartType.Spline:case t.chart.ChartType.SplineSymbols:case t.chart.ChartType.SplineArea:n="Line";break;default:n="Default"}return n},o.prototype._playLoadLineAnimation=function(t,e){var n,a=this,o=a._chart.series[e],r=a.animationMode,s=o.hostElement;r===i.Point?a._playDefaultAnimation(t,e):(n=r===i.All?a._getAnimation(t,0):a._getAnimation(t,e),[].slice.call(s.childNodes).forEach(function(t){a._setLineRiseDiveAnimation(n,t,!0)}))},o.prototype._setLineRiseDiveAnimation=function(t,e,n){var i,a,o,r,s,c,u,l=this,h=this,p=h._chart,m=e.nodeName,d=[],f=[],_=h._chart._plotRect,y=_.top+_.height,A=_.left,g={},v={};if("g"===m&&e.childNodes)[].slice.call(e.childNodes).forEach(function(e){l._setLineRiseDiveAnimation(t,e,n)});else{if("polyline"===m||"polygon"===m){for(o=(c=e.points).length||c.numberOfItems,r=0;r<o;r++)s=c[r]||c.getItem(r),p.rotated?d.push({x:A,y:s.y}):d.push({x:s.x,y:y}),f.push({x:s.x,y:s.y});g[m]=d,v[m]=f}else"ellipse"!==m&&"rect"!==m||(h._toggleVisibility(e,!1),n&&(u=function(){h._toggleVisibility(e,!0)}));i=n?g:v,a=n?v:g,h._setInitState(e,i,a),t.push({ele:e,from:i,to:a,done:u})}},o.prototype._setLineMoveAnimation=function(t,e,n,i,a){if(null!=e&&null!=n){var o,r,s,c,u,l,h,p,m,d=e.nodeName,f=[],_=[],y={},A={};for(m="polygon"===d,s=e.points,l=n.points,o=s.length||s.numberOfItems,c=l.length||l.numberOfItems,p=Math.max(o,c),h=0;h<p;h++)h<o&&(r=s[h]||s.getItem(h),f.push({x:r.x,y:r.y})),h<c&&(u=l[h]||l.getItem(h),_.push({x:u.x,y:u.y}));this._addStart?(this._adjustStartLinePoints(this._addStart,f,s),o+=this._addStart):this._removeStart&&(this._adjustStartLinePoints(this._removeStart,_,l),c+=this._removeStart),c>o?this._adjustEndLinePoints(c,o,f,s,m):c<o&&this._adjustEndLinePoints(o,c,_,l,m),y[d]=f,A[d]=_,this._setInitState(i,y,A),t.push({ele:i,from:y,to:A,done:a})}},o.prototype._adjustStartLinePoints=function(t,e,n){for(var i=n[0]||n.getItem(0);t;)e.splice(0,0,{x:i.x,y:i.y}),t--},o.prototype._adjustEndLinePoints=function(t,e,n,i,a){var o,r,s;for(a&&(i.length>=3||i.numberOfItems>=3)?(r=n.pop(),o=n.pop(),s=i[i.length-3]||i.getItem(i.numberOfItems-3)):(i.length>0||i.numberOfItems>0)&&(s=i[i.length-1]||i.getItem(i.numberOfItems-1));t>e&&s;)n.push({x:s.x,y:s.y}),e++;a&&r&&o&&(n.push(o),n.push(r))},o.prototype._playLineRemoveAnimation=function(t,e){var n,i=this,a=i._chart.series[0].hostElement.parentNode,o=i._getAnimation(t,0);a.appendChild(e),[].slice.call(e.childNodes).forEach(function(t){i._setLineRiseDiveAnimation(o,t,!1)}),o.length&&(n=o[0].done,o[0].done=function(){e&&e.parentNode===a&&a.removeChild(e),n&&n()})},o.prototype._playLineAddAnimation=function(t,e){var n=this,i=e.hostElement,a=this._getAnimation(t,0);[].slice.call(i.childNodes).forEach(function(t){n._setLineRiseDiveAnimation(a,t,!0)})},o.prototype._playLineMoveAnimation=function(t,e,n){var i,a,o,r,s=this,c=(s._chart,s._getAnimation(t,0)),u=[];i=e.hostElement,a=[].slice.call(n.childNodes),[].slice.call(i.childNodes).forEach(function(t,e){r=t.nodeName,o=a[e],"g"===r&&t.nodeChilds?[].slice.call(t.nodeChilds).forEach(function(t,e){o&&(u.push(t),s._toggleVisibility(t,!1))}):"polygon"===r||"polyline"===r?s._setLineMoveAnimation(c,o,t,t,0===e?function(){u.forEach(function(t){s._toggleVisibility(t,!0)}),u=null}:null):o&&(u.push(t),s._toggleVisibility(t,!1))})},o.prototype._playLoadColumnAnimation=function(t,e){this._playLoadBarAnimation(t,e,!0)},o.prototype._playLoadBarAnimation=function(t,e,n){void 0===n&&(n=!1);var a=this,o=a._chart.series[e],r=a.animationMode,s=o.hostElement;[].slice.call(s.childNodes).forEach(function(o,s){var c,u=o.nodeName;c=r===i.Point?a._getAnimation(t,s):r===i.Series?a._getAnimation(t,e):a._getAnimation(t,0),"g"===u?o.childNodes&&[].slice.call(o.childNodes).forEach(function(t,e){a._setLoadBarAnimation(c,t,n)}):a._setLoadBarAnimation(c,o,n)})},o.prototype._setBarAnimation=function(t,e,n,i,a){this._setInitState(e,n,i),t.push({ele:e,from:n,to:i,done:a})},o.prototype._setLoadBarAnimation=function(t,e,n,i,a){void 0===i&&(i=!1);var o,r,s=this,c=n?"height":"width",u=n?"y":"x",l=e.getAttribute(c),h=e.getAttribute(u),p=n?"top":"left",m=s._chart._plotRect,d={},f={};d[c]=0,f[c]=Number(l),n&&(d[u]=m[c]+m[p],f[u]=Number(h)),o=i?f:d,r=i?d:f,"g"===e.nodeName?e.childNodes&&[].slice.call(e.childNodes).forEach(function(e){s._setBarAnimation(t,e,o,r,a)}):s._setBarAnimation(t,e,o,r,a)},o.prototype._setMoveBarAnimation=function(t,e,n){var i={},a={};null!=e&&null!=n&&(["width","height","x","y","top","left"].forEach(function(t){var o=e.getAttribute(t),r=n.getAttribute(t);o!==r&&(i[t]=Number(o),a[t]=Number(r))}),this._setInitState(n,i,a),t.push({ele:n,from:i,to:a}))},o.prototype._playColumnRemoveAnimation=function(t,e){this._playBarRemoveAnimation(t,e,!0)},o.prototype._playColumnAddAnimation=function(t,e){this._playBarAddAnimation(t,e,!0)},o.prototype._playColumnMoveAnimation=function(t,e,n){this._playBarMoveAnimation(t,e,n,!0)},o.prototype._playBarRemoveAnimation=function(t,e,n){void 0===n&&(n=!1);var i=this,a=i._chart.series[0].hostElement.parentNode,o=i._getAnimation(t,0);a.appendChild(e),[].slice.call(e.childNodes).forEach(function(t){i._setLoadBarAnimation(o,t,n,!0)}),o.length&&(o[0].done=function(){e&&e.parentNode===a&&a.removeChild(e)})},o.prototype._playBarAddAnimation=function(t,e,n){var i=this;void 0===n&&(n=!1);var a=e.hostElement,o=this._getAnimation(t,2);[].slice.call(a.childNodes).forEach(function(t){i._setLoadBarAnimation(o,t,n,!1)})},o.prototype._playBarMoveAnimation=function(t,e,n,i){void 0===i&&(i=!1);var a,o,r,s,c,u,l,h=this;if(h._chart,a=e.hostElement,r=[].slice.call(n.childNodes),h._addStart)for(l=0,s=r[0];l<h._addStart;)r.splice(0,0,s),l++;if(h._removeStart)for(l=0,s=r[r.length-1];l<h._removeStart;){var p=r.shift();r.push(p),l++}c=r.length,o=[].slice.call(a.childNodes),u=o.length,o.forEach(function(e,n){var a;if(n<c){if(s=r[n],n<h._addStart?(a=h._getAnimation(t,2),h._setLoadBarAnimation(a,e,i,!1)):n>=c-h._removeStart?(a=h._getAnimation(t,2),h._setLoadBarAnimation(a,e,i,!1),a=h._getAnimation(t,0),h._removeBarAnimation(a,e,s,i)):(a=h._getAnimation(t,1),h._setMoveBarAnimation(a,s,e)),n===u-1&&n<c-1)for(a=h._getAnimation(t,0),n++;n<c;n++)s=r[n],h._removeBarAnimation(a,e,s,i)}else a=h._getAnimation(t,2),h._setLoadBarAnimation(a,e,i,!1)})},o.prototype._removeBarAnimation=function(t,e,n,i){var a=e.parentNode;a.appendChild(n),this._setLoadBarAnimation(t,n,i,!0,function(t){return function(){t.parentNode&&t.parentNode===a&&a.removeChild(t)}}(n))},o.prototype._playLoadScatterAnimation=function(t,e){var n=this,a=n._chart,o=a.series[e],r=n.animationMode,s=o.hostElement,c=o._xValues||a._xvals;0===c.length&&(c=o._pointIndexes),[].slice.call(s.childNodes).forEach(function(a,o){var s;s=r===i.Point?n._getScatterAnimation(t,c[o]):r===i.Series?n._getAnimation(t,e):n._getAnimation(t,0),n._setLoadScatterAnimation(s,a,!1)})},o.prototype._setLoadScatterAnimation=function(t,e,n,i){var a=this;void 0===n&&(n=!1);var o,r,s={},c={};"g"===e.nodeName&&e.childNodes?[].slice.call(e.childNodes).forEach(function(e){a._setLoadScatterAnimation(t,e,n,i)}):(["rx","ry","stroke-width"].forEach(function(t){var n=e.getAttribute(t);s[t]=0,c[t]=Number(n)}),o=n?c:s,r=n?s:c,this._setInitState(e,o,r),t.push({ele:e,from:o,to:r,done:i}))},o.prototype._setUpdateScatterAnimation=function(t,e,n,i){var a={},o={};["cx","cy"].forEach(function(t){var i=e.getAttribute(t),r=n.getAttribute(t);i!==r&&(a[t]=Number(i),o[t]=Number(r))}),this._setInitState(n,a,o),t.push({ele:n,from:a,to:o,done:i})},o.prototype._getScatterAnimation=function(t,e){var n=this._getScatterAnimationIndex(t,e);return t[n]||(t[n]=[]),t[n]},o.prototype._getScatterAnimationIndex=function(t,e){var n=this._chart.axisX,i=null==n.min?n.actualMin:n.min,a=null==n.max?n.actualMax:n.max;return Math.ceil((e-i)/((a-i)/20))},o.prototype._playScatterRemoveAnimation=function(t,e){var n=this,i=n._chart.series[0].hostElement.parentNode,a=n._getAnimation(t,0);i.appendChild(e),[].slice.call(e.childNodes).forEach(function(t){n._setLoadScatterAnimation(a,t,!0)}),a.length&&(a[0].done=function(){e&&e.parentNode===i&&i.removeChild(e)})},o.prototype._playScatterAddAnimation=function(t,e){var n=this,i=e.hostElement,a=this._getAnimation(t,0);[].slice.call(i.childNodes).forEach(function(t){n._setLoadScatterAnimation(a,t,!1)})},o.prototype._playScatterMoveAnimation=function(t,e,n){var i,a,o,r,s,c,u,l=this,h=(l._chart,l._getAnimation(t,0));if(i=e.hostElement,o=[].slice.call(n.childNodes),l._addStart)for(u=0,r=o[0];u<l._addStart;)o.splice(0,0,r),u++;if(l._removeStart)for(u=0,r=o[o.length-1];u<l._removeStart;){var p=o.shift();o.push(p),u++}s=o.length,a=[].slice.call(i.childNodes),c=a.length,a.forEach(function(t,e){if(e<s){if(e<l._addStart?l._setLoadScatterAnimation(h,t,!1):e>=s-l._removeStart?(l._setLoadScatterAnimation(h,t,!1),r=o[e],l._removeScatterAnimation(h,t,r)):(r=o[e],l._setUpdateScatterAnimation(h,r,t)),e===c-1&&e<s-1)for(e++;e<s;e++)r=o[e],l._removeScatterAnimation(h,t,r)}else l._setLoadScatterAnimation(h,t,!1)})},o.prototype._removeScatterAnimation=function(t,e,n){var i=e.parentNode;i.appendChild(n),this._setLoadScatterAnimation(t,n,!0,function(t){return function(){t.parentNode&&t.parentNode===i&&i.removeChild(t)}}(n))},o.prototype._playDefaultAnimation=function(e,n){var i,a,o=this._chart,r=o.series[n].hostElement,s=o._plotRect,c=o._currentRenderEngine,u=r.getAttribute("clip-path"),l="clipPath"+(1e6*Math.random()).toFixed(),h=o.axisX.reversed;c.addClipRect(new t.Rect(h?s.right:s.left,s.top,0,s.height),l),r.setAttribute("clip-path","url(#"+l+")"),i=o.hostElement.querySelector("#"+l),a=this._getAnimation(e,0);var p={width:0},m={width:s.width};h&&(p.x=s.right,m.x=s.left),a.push({ele:i.querySelector("rect"),from:p,to:m,done:function(){r&&(u?r.setAttribute("clip-path",u):r.removeAttribute("clip-path"),i&&i.parentNode&&i.parentNode.removeChild(i))}})},o}(o),c=function(t){function e(e,n){return t.call(this,e,n)||this}return __extends(e,t),e.prototype._getDurationAndDelay=function(e,n){var a=t.prototype._getDurationAndDelay.call(this,e,n);return this.animationMode===i.Point&&(a.duration=n/e,a.delay=n/e),a},e.prototype._playAxesAnimation=function(){},e.prototype._getChartType=function(e){var n=t.prototype._getChartType.call(this,e);return"Bar"===n&&(n="Column"),n},e.prototype._playLoadLineAnimation=function(t,e){var n,a,o,r=this,s=r._chart,c=r._chart.series[e],u=c._xValues||s._xvals,l=r.animationMode,h=c.hostElement;l===i.Point?(0===u.length&&(u=c._pointIndexes),o=[].slice.call(h.childNodes),a=o.length-h.querySelectorAll("ellipse").length,o.forEach(function(e,n){r._setRadarLinePointAnimation(t,e,n,u,a)})):(n=l===i.All?r._getAnimation(t,0):r._getAnimation(t,e),[].slice.call(h.childNodes).forEach(function(t){r._setLineRiseDiveAnimation(n,t,!0)}))},e.prototype._setRadarLinePointAnimation=function(t,e,n,i,a){var o,r,s,c,u,l,h,p=this,m=p._chart,d=e.nodeName,f=[],_=[],y=[],A=[],g=m._center,v=[],x=!1,E={},S={},b=0;if("polyline"===d||"polygon"===d){for(o=(c=e.points).length||c.numberOfItems,r=0;r<o;r++)v[h=p._getScatterAnimationIndex(t,i[r])]||(v[h]=[]),v[h].push(r),s=c[r]||c.getItem(r),f.push({x:g.x,y:g.y}),_.push({x:s.x,y:s.y});for(r=0,o=v.length;r<o;r++)v[r]&&(l=p._getAnimation(t,b),y=A.length?A.slice():f.slice(),A=y.slice(),v[r].forEach(function(t){var e=_[t];A[t]={x:e.x,y:e.y}}),S={},(E={})[d]=y,S[d]=A,x||(p._setInitState(e,E,S),x=!0),l.push({ele:e,from:E,to:S,done:u}),b++)}else if("ellipse"===d){if((r=n-(a||0))<0)return;l=m._isPolar?p._getScatterAnimation(t,i[r]):p._getScatterAnimation(t,r),p._toggleVisibility(e,!1),u=function(){p._toggleVisibility(e,!0)},l.push({ele:e,from:E,to:S,done:u})}},e.prototype._setLineRiseDiveAnimation=function(t,e,n){var i,a,o,r,s,c,u,l=this,h=l._chart,p=e.nodeName,m=[],d=[],f=h._center,_={},y={};if("polyline"===p||"polygon"===p){for(o=(c=e.points).length||c.numberOfItems,r=0;r<o;r++)s=c[r]||c.getItem(r),m.push({x:f.x,y:f.y}),d.push({x:s.x,y:s.y});_[p]=m,y[p]=d}else"ellipse"===p&&(l._toggleVisibility(e,!1),n&&(u=function(){l._toggleVisibility(e,!0)}));i=n?_:y,a=n?y:_,l._setInitState(e,i,a),t.push({ele:e,from:i,to:a,done:u})},e.prototype._parsePathByRadius=function(t,e,n){var i,a,o=t.center.x,r=t.center.y,s=t.radius,c=t.angle,u=t.sweep;i=[o,r,0,c,u,0],a=[o,r,s,c,u,t.innerRadius||0],e.pie=i,n.pie=a},e.prototype._playUpdateAnimation=function(e,n,i,a,o){if("Bar"===i||"Column"===i){if(null==a)return;this._playLoadBarAnimation(e,n,!1)}else t.prototype._playUpdateAnimation.call(this,e,n,i,a,o)},e.prototype._playLoadBarAnimation=function(t,e,n){void 0===n&&(n=!1);var a=this,o=a._chart,r=o.series[e],s=o._areas[e],c=a.animationMode,u=r.hostElement;[].slice.call(u.childNodes).forEach(function(n,o){var r,u,l={},h={};r=c===i.Point?a._getAnimation(t,o):c===i.Series?a._getAnimation(t,e):a._getAnimation(t,0),u=s[o],a._parsePathByRadius(u,l,h),a._setInitState(n,l,h),r.push({ele:n,from:l,to:h})})},e}(s),u=function(){function e(){}return e.playAnimations=function(t,i,a,o,r,s,c){void 0===r&&(r=n.Swing);var u=t.length,l=0,h=[];return t.forEach(function(t,n){var p=e.playAnimation(t,i[n],a[n],function(){l===u-1&&o&&o(),l++},r,s,c);h.push(p)}),h},e.playAnimation=function(t,i,a,o,r,s,c){void 0===r&&(r=n.Swing);var u=e.parseAttrs(i,a);return e.animate(function(n){e.setElementAttr(t,u,n)},o,r,s,c)},e.setElementAttr=function(t,n,i){var a,o;for(o in n)a=n[o],e.calcValue(a,i),t.setAttribute(o,a.getValue(a.value,i))},e.getPathDescOfPie=function(e,n,i,a,o,r){void 0===r&&(r=0);var s=!1;o>=2*Math.PI&&(s=!0,o=2*Math.PI-.001);var c=new t.Point(e,n);c.x+=i*Math.cos(a),c.y+=i*Math.sin(a);var u=a+o,l=new t.Point(e,n);if(l.x+=i*Math.cos(u),l.y+=i*Math.sin(u),r){var h=new t.Point(e,n);h.x+=r*Math.cos(u),h.y+=r*Math.sin(u);var p=new t.Point(e,n);p.x+=r*Math.cos(a),p.y+=r*Math.sin(a)}var m=" 0 0,1 ",d=" 0 0,0 ";Math.abs(o)>Math.PI&&(m=" 0 1,1 ",d=" 0 1,0 ");var f="M "+c.x.toFixed(3)+","+c.y.toFixed(3);return f+=" A "+i.toFixed(3)+","+i.toFixed(3)+m,f+=l.x.toFixed(3)+","+l.y.toFixed(3),r?(f+=s?" M "+h.x.toFixed(3)+","+h.y.toFixed(3):" L "+h.x.toFixed(3)+","+h.y.toFixed(3),f+=" A "+r.toFixed(3)+","+r.toFixed(3)+d,f+=p.x.toFixed(3)+","+p.y.toFixed(3)):f+=" L "+e.toFixed(3)+","+n.toFixed(3),s||(f+=" z"),f},e.parseAttrs=function(t,n){var i={};for(var a in t)if(null!=n[a])switch(a){case"polyline":i.points=e.parseAttr(t[a],n[a],function(t,e){if(1===e){for(var n,i,a;t.length>1;){if(i=t[0],a=t[1],i.x!==a.x||i.y!==a.y){i=null,a=null;break}t.splice(1,1)}for(n=t.length-1;n>0;n--)if(i=a,a=t[n],i){if(i.x!==a.x||i.y!==a.y)break;t.pop()}}return t.map(function(t){return t.x+","+t.y}).join(" ")});break;case"polygon":i.points=e.parseAttr(t[a],n[a],function(t,e){if(1===e){var n,i,a,o,r;for(o=t.pop(),r=t.pop();t.length>1;){if(i=t[0],a=t[1],i.x!==a.x||i.y!==a.y){i=null,a=null;break}t.splice(1,1)}for(n=t.length-1;n>=0;n--)if(i=a,a=t[n],i){if(i.x!==a.x||i.y!==a.y)break;t.splice(n,1)}t.push(r),t.push(o)}return t.map(function(t){return t.x+","+t.y}).join(" ")});break;case"d":i[a]=e.parseAttr(t[a],n[a],function(t){return t.map(function(t){return"string"==typeof t?t:t[0]+","+t[1]}).join(" ")});break;case"pie":i.d=e.parseAttr(t[a],n[a],function(t){return e.getPathDescOfPie.apply(e,t)});break;case"rotate":i.transform=e.parseAttr(t[a],n[a],function(t){return"rotate("+t.join(" ")+")"});break;case"x":case"width":case"height":case"rx":case"ry":case"stroke-width":i[a]=e.parseAttr(t[a],n[a],function(t){return Math.abs(t)});break;default:i[a]=e.parseAttr(t[a],n[a])}return i},e.animate=function(e,i,a,o,r){void 0===a&&(a=n.Swing),void 0===o&&(o=400),void 0===r&&(r=16),t.asFunction(e),t.asNumber(o,!1,!0),t.asNumber(r,!1,!0);var s=0,c=setInterval(function(){Date.now();var t=s/o;t=l[n[a]](t),e(t),(s+=r)>=o&&(clearInterval(c),(t<1||t>1)&&e(1),i&&i())},r);return c},e.calcValue=function(n,i){var a=n.from,o=n.diff,r=n.value;t.isNumber(a)?n.value=0===o?a:a+o*i:t.isArray(a)&&e.parseArrayAttr(r,a,o,function(t,e){return"number"==typeof t?t+e*i:t})},e.parseAttr=function(n,i,a){var o,r,s,c;return t.isArray(n)&&t.isArray(i)?(r=i,s=[],c=(o=n).slice(),e.parseArrayAttr(s,o,r,function(t,e){return t===e?0:e-t})):(c=o=Number(n),s=(r=Number(i))-o),{from:o,to:r,value:c,diff:s,getValue:a||function(t,e){return t}}},e.parseArrayAttr=function(e,n,i,a){n.forEach(function(n,o){var r={},s=[],c=i[o];t.isNumber(n)||"string"==typeof n?e[o]=a(n,c):t.isArray(n)?(n.forEach(function(t,e){s[e]=a(n[e],c[e])}),e[o]=s):(Object.getOwnPropertyNames(n).forEach(function(t){r[t]=a(n[t],c[t])}),e[o]=r)})},e}(),l=function(){function t(){}return t.Linear=function(t){return t},t.Swing=function(t){var e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},t.EaseInQuad=function(t){return t*t},t.EaseOutQuad=function(t){return t*(2-t)},t.EaseInOutQuad=function(t){return t<.5?2*t*t:(4-2*t)*t-1},t.EaseInCubic=function(t){return t*t*t},t.EaseOutCubic=function(t){return--t*t*t+1},t.EaseInOutCubic=function(t){return t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1},t.EaseInQuart=function(t){return t*t*t*t},t.EaseOutQuart=function(t){return 1- --t*t*t*t},t.EaseInOutQuart=function(t){return t<.5?8*t*t*t*t:1-8*--t*t*t*t},t.EaseInQuint=function(t){return t*t*t*t*t},t.EaseOutQuint=function(t){return 1+--t*t*t*t*t},t.EaseInOutQuint=function(t){return t<.5?16*t*t*t*t*t:1+16*--t*t*t*t*t},t.EaseInSine=function(t){return 1-Math.cos(t*(Math.PI/2))},t.EaseOutSine=function(t){return Math.sin(t*(Math.PI/2))},t.EaseInOutSine=function(t){return-.5*(Math.cos(Math.PI*t)-1)},t.EaseInExpo=function(t){return 0==t?0:Math.pow(2,10*(t-1))},t.EaseOutExpo=function(t){return 1==t?1:1-Math.pow(2,-10*t)},t.EaseInOutExpo=function(t){return t==!!t?t:(t/=.5)<1?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*--t))},t.EaseInCirc=function(t){return-(Math.sqrt(1-t*t)-1)},t.EaseOutCirc=function(t){return Math.sqrt(1-Math.pow(t-1,2))},t.EaseInOutCirc=function(t){return(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},t.EaseInBack=function(t){var e=1.70158;return t*t*((e+1)*t-e)},t.EaseOutBack=function(t){var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},t.EaseInOutBack=function(t){var e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},t.EaseInBounce=function(e){return 1-t.EaseOutBounce(1-e)},t.EaseOutBounce=function(t){var e=7.5625;return t<1/2.75?e*t*t:t<2/2.75?e*(t-=1.5/2.75)*t+.75:t<2.5/2.75?e*(t-=2.25/2.75)*t+.9375:e*(t-=2.625/2.75)*t+.984375},t.EaseInOutBounce=function(e){return e<.5?.5*t.EaseInBounce(2*e):.5*t.EaseOutBounce(2*e-1)+.5},t.EaseInElastic=function(t){return t==!!t?t:-Math.pow(2,10*(t-=1))*Math.sin((t-.075)*(2*Math.PI)/.3)},t.EaseOutElastic=function(t){return t==!!t?t:Math.pow(2,-10*t)*Math.sin((t-.075)*(2*Math.PI)/.3)+1},t.EaseInOutElastic=function(t){return t==!!t?t:(t*=2)<1?Math.pow(2,10*(t-=1))*Math.sin((t-.1125)*(2*Math.PI)/.45)*-.5:Math.pow(2,-10*(t-=1))*Math.sin((t-.1125)*(2*Math.PI)/.45)*.5+1},t}()})((e=t.chart||(t.chart={})).animation||(e.animation={}))}(wijmo||(wijmo={})),function(t){!function(e){e.animation||(e.animation={}),t._registerModule("wijmo.chart.animation",t.chart.animation)}(t.chart||(t.chart={}))}(wijmo||(wijmo={}));
var __extends=this&&this.__extends||function(){var n=function(t,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r(){this.constructor=t}if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(t,i);t.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}}(),c1;(function(n){var t;(function(n){var t;(function(n){var t=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(wijmo.chart.animation.ChartAnimation);n.ChartAnimation=t})(t=n.animation||(n.animation={}))})(t=n.chart||(n.chart={}))})(c1||(c1={}));
var __extends=this&&this.__extends||function(){var n=function(t,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r(){this.constructor=t}if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(t,i);t.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}}(),c1;(function(n){var t;(function(t){var i;(function(t){var i;(function(t){var i=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(n.chart.animation.ChartAnimation);t.ChartAnimation=i})(i=t.animation||(t.animation={}))})(i=t.chart||(t.chart={}))})(t=n.mvc||(n.mvc={}))})(c1||(c1={}));
var wijmo;(function(n){var t;(function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.ChartAnimation||(n.ChartAnimation={}))})(t=n.animation||(n.animation={}))})(t=n.chart||(n.chart={}))})(wijmo||(wijmo={}));
var __extends=this&&this.__extends||function(){var n=function(t,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r(){this.constructor=t}if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(t,i);t.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}}(),c1;(function(n){var t;(function(n){var t=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t.prototype.initialize=function(n){var t=n.content;typeof window[t]=="function"&&(n.content=window[t]);wijmo.copy(this,n)},t.prototype._copy=function(n,t){return n==="positionChanged"?(typeof t=="function"&&this.positionChanged.addHandler(t),!0):!1},t}(wijmo.chart.LineMarker);n.LineMarker=t})(t=n.chart||(n.chart={}))})(c1||(c1={}));
var __extends=this&&this.__extends||function(){var n=function(t,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r(){this.constructor=t}if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(t,i);t.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}}(),c1;(function(n){var t;(function(t){var i;(function(t){var i=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(n.chart.LineMarker);t.LineMarker=i})(i=t.chart||(t.chart={}))})(t=n.mvc||(n.mvc={}))})(c1||(c1={}));
var wijmo,__extends=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();!function(t){var e;(function(e){"use strict";var n,i;!function(t){t[t.DataIndex=0]="DataIndex",t[t.DataCoordinate=1]="DataCoordinate",t[t.Relative=2]="Relative",t[t.Absolute=3]="Absolute"}(n=e.AnnotationAttachment||(e.AnnotationAttachment={})),function(t){t[t.Center=0]="Center",t[t.Top=1]="Top",t[t.Bottom=2]="Bottom",t[t.Left=4]="Left",t[t.Right=8]="Right"}(i=e.AnnotationPosition||(e.AnnotationPosition={}));var o=function(){function e(t){this._resetDefaultValue(),this._copy(this,t)}return Object.defineProperty(e.prototype,"attachment",{get:function(){return this._attachment},set:function(e){(e=t.asEnum(e,n))!=this._attachment&&(this._attachment=e,this._repaint())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"point",{get:function(){return this._point},set:function(t){null!=t.x&&null!=t.y&&(t.x===this._point.x&&t.y===this._point.y||(this._point=t,this._repaint()))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"seriesIndex",{get:function(){return this._seriesIndex},set:function(e){(e=t.asNumber(e,!1,!0))!=this._seriesIndex&&(this._seriesIndex=e,this._repaint())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pointIndex",{get:function(){return this._pointIndex},set:function(e){e!==this._pointIndex&&(this._pointIndex=t.asNumber(e,!1,!0),this._repaint())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"position",{get:function(){return this._position},set:function(t){t!=this._position&&(this._position=t,this._repaint())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"offset",{get:function(){return this._offset},set:function(t){null!=t.x&&null!=t.y&&(t.x===this._offset.x&&t.y===this._offset.y||(this._offset=t,this._repaint()))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"style",{get:function(){return null==this._style&&(this._style={}),this._style},set:function(t){t!=this._style&&(this._style=t,this._repaint())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isVisible",{get:function(){return this._isVisible},set:function(e){(e=t.asBoolean(e,!1))!=this._isVisible&&(this._isVisible=e,this._toggleVisibility(e))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tooltip",{get:function(){return this._tooltip},set:function(t){this._tooltip=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this._name},set:function(t){this._name=t},enumerable:!0,configurable:!0}),e.prototype.render=function(i){var o;this._element=i.startGroup(this._getCSSClass()),i.fill="#88bde6",i.strokeWidth=1,i.stroke="#000000",this._render(i),i.endGroup(),this._element[e._DATA_KEY]=this,this._isVisible?this._attachment===n.DataIndex&&(!(o=this._layer._chart.series[this._seriesIndex])||o.visibility!==t.chart.SeriesVisibility.Legend&&o.visibility!==t.chart.SeriesVisibility.Hidden||this._toggleVisibility(!1)):this._toggleVisibility(!1)},e.prototype.destroy=function(){},e.prototype._copy=function(t,e){for(var n in e)n in t&&this._processOptions(n,t,e)},e.prototype._processOptions=function(t,e,n){e[t]=n[t]},e.prototype._resetDefaultValue=function(){this._attachment=n.Absolute,this._point=new t.chart.DataPoint(0,0),this._seriesIndex=0,this._pointIndex=0,this._position=i.Center,this._offset=new t.Point(0,0),this._isVisible=!0,this._tooltip=""},e.prototype._toggleVisibility=function(t){var e=t?"visible":"hidden";this._element&&this._element.setAttribute("visibility",e)},e.prototype._getCSSClass=function(){return e._CSS_ANNOTATION},e.prototype._render=function(t){this._element=null},e.prototype._repaint=function(){this._layer&&this._layer._renderAnnotation(this._layer._chart.renderEngine,this)},e.prototype._convertPoint=function(e){var i,o,r,s,a,h,_,l=this._attachment,p=new t.Point;switch(this._layer&&this._layer._chart&&(o=(i=this._layer._chart)._plotRect),l){case n.DataIndex:if(!i.series||i.series.length<=this.seriesIndex)break;if(!(h=(a=i.series[this.seriesIndex])._getItem(this.pointIndex)))break;r=a.axisX||i.axisX,s=a.axisY||i.axisY,_=h[a.bindingX]||h.x;var u=h[a._getBinding(0)]||s.actualMin+.25;null!=a._getYOffset&&(u=a._getYOffset(this.pointIndex)),"string"==typeof _&&(_=this.pointIndex,null!=a._getXOffset&&(_+=a._getXOffset())),p.x=this._convertDataToLen(o.width,r,_),p.y=this._convertDataToLen(o.height,s,u,!0);break;case n.DataCoordinate:r=i.axisX,s=i.axisY,p.x=this._convertDataToLen(o.width,r,e.x),p.y=this._convertDataToLen(o.height,s,e.y,!0);break;case n.Relative:p.x=o.width*e.x,p.y=o.height*e.y;break;case n.Absolute:default:p.x=e.x,p.y=e.y}return p},e.prototype._convertDataToLen=function(t,e,n,i){void 0===i&&(i=!1);var o=null==e.min?e.actualMin:e.min,r=null==e.max?e.actualMax:e.max,s=e._getLogBase();if(e.reversed&&(i=!i),s){if(n<=0)return NaN;var a=Math.log(r/o);return i?t*(1-Math.log(n/o)/a):t*Math.log(n/o)/a}return i?t*(1-(n-o)/(r-o)):t*(n-o)/(r-o)},e.prototype._renderCenteredText=function(t,e,n,i,o,r){var s,a;this._isValidPoint(n)&&(o?e.drawStringRotated(t,n,n,o,i,r):e.drawString(t,n,i,r),(s=this._element.querySelector("text"))&&(a=s.getBBox(),s.setAttribute("x",(n.x-a.width/2).toFixed(1)),s.setAttribute("y",(n.y+a.height/6).toFixed(1))))},e.prototype._adjustOffset=function(t,e){t.x=t.x+e.x,t.y=t.y+e.y},e.prototype._getOffset=function(e){var n=this._getPositionOffset(e);return new t.Point(this._offset.x+n.x,this._offset.y+n.y)},e.prototype._getPositionOffset=function(e){var n=new t.Point(0,0),o=this.position,r=this._getSize(e);return(o&i.Top)===i.Top?n.y-=r.height/2:(o&i.Bottom)===i.Bottom&&(n.y+=r.height/2),(o&i.Left)===i.Left?n.x-=r.width/2:(o&i.Right)===i.Right&&(n.x+=r.width/2),n},e.prototype._getSize=function(e){return new t.Size},e.prototype._isValidPoint=function(t){return isFinite(t.x)&&isFinite(t.y)},e.prototype._measureString=function(t,e,n){var i,o=t;return o._textGroup&&null==o._textGroup.parentNode?(o._svg.appendChild(o._textGroup),i=o.measureString(e,n,null,this.style),o.endRender()):i=o.measureString(e,n,null,this.style),i},e._DATA_KEY="wj-chart-annotation",e._CSS_ANNOTATION="gcchart-annotation",e._CSS_ANNO_TEXT="anno-text",e._CSS_ANNO_SHAPE="anno-shape",e}();e.AnnotationBase=o;var r=function(e){function n(t){return e.call(this,t)||this}return __extends(n,e),n.prototype._resetDefaultValue=function(){e.prototype._resetDefaultValue.call(this),this._text="",this.position=i.Top},n.prototype._getCSSClass=function(){return e.prototype._getCSSClass.call(this)+" "+n._CSS_TEXT},Object.defineProperty(n.prototype,"text",{get:function(){return this._text},set:function(t){t!==this._text&&(this._text=t,this._repaint())},enumerable:!0,configurable:!0}),n.prototype._render=function(t){var e,n=this._convertPoint(this.point);e=this._getOffset(t),this._adjustOffset(n,e),this._renderCenteredText(this._text,t,n,o._CSS_ANNO_TEXT,null,this.style)},n.prototype._getSize=function(e){return e?this._measureString(e,this._text,o._CSS_ANNO_TEXT):new t.Size},n._CSS_TEXT="gcchart-anno-text",n}(o);e.Text=r;var s=function(t){function e(e){return t.call(this,e)||this}return __extends(e,t),e.prototype._resetDefaultValue=function(){t.prototype._resetDefaultValue.call(this),this._content=""},e.prototype._getCSSClass=function(){return t.prototype._getCSSClass.call(this)+" "+e._CSS_SHAPE},Object.defineProperty(e.prototype,"content",{get:function(){return this._content},set:function(t){t!==this._content&&(this._content=t,this._repaint())},enumerable:!0,configurable:!0}),e.prototype._render=function(t){this._shapeContainer=t.startGroup(),t.stroke="#000",this._renderShape(t),t.stroke=null,t.endGroup(),this._content&&this._renderText(t)},e.prototype._getContentCenter=function(){return this.point},e.prototype._renderShape=function(t){},e.prototype._renderText=function(t){var e,n;e=this._convertPoint(this._getContentCenter()),this._isValidPoint(e)&&(n=this._getOffset(),this._adjustOffset(e,n),this._renderCenteredText(this._content,t,e,o._CSS_ANNO_TEXT))},e._CSS_SHAPE="gcchart-anno-shape",e}(o);e.Shape=s;var a=function(e){function n(t){return e.call(this,t)||this}return __extends(n,e),Object.defineProperty(n.prototype,"width",{get:function(){return this._width},set:function(e){e!==this._width&&(this._width=t.asNumber(e,!1,!0),this._repaint())},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"height",{get:function(){return this._height},set:function(e){e!==this._height&&(this._height=t.asNumber(e,!1,!0),this._repaint())},enumerable:!0,configurable:!0}),n.prototype._resetDefaultValue=function(){e.prototype._resetDefaultValue.call(this),this._width=100,this._height=80},n.prototype._getCSSClass=function(){return e.prototype._getCSSClass.call(this)+" "+n._CSS_ELLIPSE},n.prototype._renderShape=function(t){e.prototype._renderShape.call(this,t);var n=this._convertPoint(this.point),i=this._width,r=this._height,s=this._getOffset();this._adjustOffset(n,s),this._isValidPoint(n)&&t.drawEllipse(n.x,n.y,i/2,r/2,o._CSS_ANNO_SHAPE,this.style)},n.prototype._getSize=function(){return new t.Size(this.width,this.height)},n._CSS_ELLIPSE="gcchart-anno-ellipse",n}(s);e.Ellipse=a;var h=function(e){function n(t){return e.call(this,t)||this}return __extends(n,e),Object.defineProperty(n.prototype,"width",{get:function(){return this._width},set:function(e){e!==this._width&&(this._width=t.asNumber(e,!1,!0),this._repaint())},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"height",{get:function(){return this._height},set:function(e){e!==this._height&&(this._height=t.asNumber(e,!1,!0),this._repaint())},enumerable:!0,configurable:!0}),n.prototype._resetDefaultValue=function(){e.prototype._resetDefaultValue.call(this),this._width=100,this._height=80},n.prototype._getCSSClass=function(){return e.prototype._getCSSClass.call(this)+" "+n._CSS_RECTANGLE},n.prototype._renderShape=function(t){e.prototype._renderShape.call(this,t);var n=this._convertPoint(this.point),i=this._width,r=this._height,s=this._getOffset();this._adjustOffset(n,s),this._isValidPoint(n)&&t.drawRect(n.x-i/2,n.y-r/2,this._width,this._height,o._CSS_ANNO_SHAPE,this.style)},n.prototype._getSize=function(){return new t.Size(this.width,this.height)},n._CSS_RECTANGLE="gcchart-anno-rectangle",n}(s);e.Rectangle=h;var _=function(e){function n(t){return e.call(this,t)||this}return __extends(n,e),Object.defineProperty(n.prototype,"start",{get:function(){return this._start},set:function(t){null!=t.x&&null!=t.y&&(t.x===this._start.x&&t.y===this._start.y||(this._start=t,this._repaint()))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"end",{get:function(){return this._end},set:function(t){null!=t.x&&null!=t.y&&(t.x===this._end.x&&t.y===this._end.y||(this._end=t,this._repaint()))},enumerable:!0,configurable:!0}),n.prototype._resetDefaultValue=function(){e.prototype._resetDefaultValue.call(this),this._start=new t.chart.DataPoint(0,0),this._end=new t.chart.DataPoint(0,0),this.position=i.Top},n.prototype._getCSSClass=function(){return e.prototype._getCSSClass.call(this)+" "+n._CSS_LINE},n.prototype._getContentCenter=function(){var e=this.start,n=this.end;return t.isDate(e.x)&&t.isDate(n.x)?new t.chart.DataPoint(new Date((e.x.getTime()+n.x.getTime())/2),(e.y+n.y)/2):new t.chart.DataPoint((e.x+n.x)/2,(e.y+n.y)/2)},n.prototype._renderShape=function(t){e.prototype._renderShape.call(this,t);var n,i=this._convertPoint(this._start),r=this._convertPoint(this._end);this._cS=i,this._cE=r,n=this._getOffset(),this._adjustOffset(i,n),this._adjustOffset(r,n),this._isValidPoint(i)&&this._isValidPoint(r)&&t.drawLine(i.x,i.y,r.x,r.y,o._CSS_ANNO_SHAPE,this.style)},n.prototype._getSize=function(){var e=this._cS,n=this._cE;return new t.Size(Math.abs(e.x-n.x),Math.abs(e.y-n.y))},n.prototype._renderText=function(t){var e,n,i,r=this._cS,s=this._cE;e=this._convertPoint(this._getContentCenter()),n=this._getOffset(),this._adjustOffset(e,n),this._isValidPoint(e)&&(i=(i=180*Math.atan2(s.y-r.y,s.x-r.x)/Math.PI)<-90?i+180:i>90?i-180:i,this._renderCenteredText(this.content,t,e,o._CSS_ANNO_TEXT,i))},n.prototype._renderCenteredText=function(t,n,i,o,r,s){var a,h,_,l;null!=r&&(_=this._measureString(n,t,o).height/2,l=r*Math.PI/180,a=_*Math.sin(l),h=_*Math.cos(l),i.x=i.x+a,i.y=i.y-h),e.prototype._renderCenteredText.call(this,t,n,i,o,r,s)},n._CSS_LINE="gcchart-anno-line",n}(s);e.Line=_;var l=function(e){function n(t){return e.call(this,t)||this}return __extends(n,e),n.prototype._processOptions=function(n,i,o){var r=this;if("points"===n){var s=o[n];t.isArray(s)&&s.forEach(function(t){r.points.push(t)})}else e.prototype._processOptions.call(this,n,i,o)},Object.defineProperty(n.prototype,"points",{get:function(){return this._points},enumerable:!0,configurable:!0}),n.prototype._resetDefaultValue=function(){var n=this;e.prototype._resetDefaultValue.call(this),n._points=new t.collections.ObservableArray,n._points.collectionChanged.addHandler(function(){n._element&&n._repaint()})},n.prototype._getCSSClass=function(){return e.prototype._getCSSClass.call(this)+" "+n._CSS_POLYGON},n.prototype._getContentCenter=function(){var e,n=this.points,i=n.length,o=0,r=0;for(e=0;e<i;e++)o+=t.isDate(n[e].x)?n[e].x.getTime():n[e].x,r+=t.isDate(n[e].y)?n[e].y.getTime():n[e].y;return new t.chart.DataPoint(o/i,r/i)},n.prototype._renderShape=function(t){e.prototype._renderShape.call(this,t);var n,i,r=[],s=[],a=this._points,h=a.length,_=this._getOffset();for(n=0;n<h;n++){if(i=this._convertPoint(a[n]),!this._isValidPoint(i))return;this._adjustOffset(i,_),r.push(i.x),s.push(i.y)}t.drawPolygon(r,s,o._CSS_ANNO_SHAPE,this.style)},n.prototype._getSize=function(){var e,n,i,o,r,s,a,h=this,_=h._points.length;for(a=[].map.call(h._points,function(t){return h._convertPoint(t)}),r=0;r<_;r++)s=a[r],0!==r?(s.x<e?e=s.x:s.x>n&&(n=s.x),s.y<i?i=s.y:s.y>o&&(o=s.y)):(e=n=s.x,i=o=s.y);return new t.Size(n-e,o-i)},n._CSS_POLYGON="gcchart-anno-polygon",n}(s);e.Polygon=l;var p=function(e){function n(t){return e.call(this,t)||this}return __extends(n,e),Object.defineProperty(n.prototype,"radius",{get:function(){return this._radius},set:function(e){e!==this._radius&&(this._radius=t.asNumber(e,!1,!0),this._repaint())},enumerable:!0,configurable:!0}),n.prototype._resetDefaultValue=function(){e.prototype._resetDefaultValue.call(this),this._radius=100},n.prototype._getCSSClass=function(){return e.prototype._getCSSClass.call(this)+" "+n._CSS_CIRCLE},n.prototype._renderShape=function(t){e.prototype._renderShape.call(this,t);var n=this._convertPoint(this.point),i=this._getOffset();this._adjustOffset(n,i),this._isValidPoint(n)&&t.drawPieSegment(n.x,n.y,this.radius,0,360,o._CSS_ANNO_SHAPE,this.style)},n.prototype._getSize=function(){var e=2*this.radius;return new t.Size(e,e)},n._CSS_CIRCLE="gcchart-anno-circle",n}(s);e.Circle=p;var u=function(e){function n(t){return e.call(this,t)||this}return __extends(n,e),Object.defineProperty(n.prototype,"length",{get:function(){return this._length},set:function(e){e!==this._length&&(this._length=t.asNumber(e,!1,!0),this._repaint())},enumerable:!0,configurable:!0}),n.prototype._resetDefaultValue=function(){e.prototype._resetDefaultValue.call(this),this._length=100},n.prototype._getCSSClass=function(){return e.prototype._getCSSClass.call(this)+" "+n._CSS_SQUARE},n.prototype._renderShape=function(t){e.prototype._renderShape.call(this,t);var n=this._convertPoint(this.point),i=this.length,r=this._getOffset();this._adjustOffset(n,r),this._isValidPoint(n)&&t.drawRect(n.x-i/2,n.y-i/2,i,i,o._CSS_ANNO_SHAPE,this.style)},n.prototype._getSize=function(){return new t.Size(this.length,this.length)},n._CSS_SQUARE="gcchart-anno-square",n}(s);e.Square=u;var c=function(e){function n(t){return e.call(this,t)||this}return __extends(n,e),Object.defineProperty(n.prototype,"width",{get:function(){return this._width},set:function(e){e!==this._width&&(this._width=t.asNumber(e,!1,!0),this._repaint())},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"height",{get:function(){return this._height},set:function(e){e!==this._height&&(this._height=t.asNumber(e,!1,!0),this._repaint())},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"href",{get:function(){return this._href},set:function(t){t!==this._href&&(this._href=t,this._repaint())},enumerable:!0,configurable:!0}),n.prototype._resetDefaultValue=function(){e.prototype._resetDefaultValue.call(this),this._width=100,this._height=100,this._href=""},n.prototype._getCSSClass=function(){return e.prototype._getCSSClass.call(this)+" "+n._CSS_IMAGE},n.prototype._renderShape=function(t){e.prototype._renderShape.call(this,t);var n=this._convertPoint(this.point),i=this._href,o=this.width,r=this.height,s=this._getOffset();i.length>0&&this._isValidPoint(n)&&(this._adjustOffset(n,s),t.drawImage(i,n.x-o/2,n.y-r/2,o,r)),this._applyStyle(this._element,this.style)},n.prototype._getSize=function(){return new t.Size(this.width,this.height)},n.prototype._applyStyle=function(t,e){if(e)for(var n in e)t.setAttribute(this._deCase(n),e[n])},n.prototype._deCase=function(t){return t.replace(/[A-Z]/g,function(t){return"-"+t.toLowerCase()})},n._CSS_IMAGE="gcchart-anno-image",n}(s);e.Image=c})((e=t.chart||(t.chart={})).annotation||(e.annotation={}))}(wijmo||(wijmo={})),function(t){var e;(function(e){"use strict";var n=function(){function n(e,n){var i=this;i._init(e),i._renderGroup(),i._bindTooltip(),n&&t.isArray(n)&&n.forEach(function(e){var n,o=e.type||"Circle";t.chart.annotation[o]&&(n=new t.chart.annotation[o](e),i._items.push(n))})}return n.prototype._init=function(e){this._items=new t.collections.ObservableArray,this._items.collectionChanged.addHandler(this._itemsChanged,this),this._chart=e,this._forceTTShowing=!1,this._annoTTShowing=!1,e.rendered.addHandler(this._renderAnnotations,this),e.lostFocus.addHandler(this._lostFocus,this)},n.prototype._lostFocus=function(t){this._toggleTooltip(this._tooltip,t,this._chart.hostElement)},Object.defineProperty(n.prototype,"items",{get:function(){return this._items},enumerable:!0,configurable:!0}),n.prototype.getItem=function(t){var e=this.getItems(t);return e.length>0?e[0]:null},n.prototype.getItems=function(t){var e=[];if(0===this._items.length||!t||""===t)return e;for(var n=0;n<this._items.length;n++)t===this._items[n].name&&e.push(this._items[n]);return e},n.prototype._bindTooltip=function(){var e,n=this,i=n._chart.hostElement,o=n._tooltip;o||(o=n._tooltip=new t.chart.ChartTooltip,e=t.Tooltip.prototype.hide,t.Tooltip.prototype.hide=function(){n._forceTTShowing||e.call(o)}),i&&(i.addEventListener("click",function(t){n._toggleTooltip(o,t,i)}),document.addEventListener("mousemove",function(t){n._showTooltip()&&n._toggleTooltip(o,t,i)}))},n.prototype._showTooltip=function(){return!this._chart.isTouching},n.prototype._toggleTooltip=function(e,n,i){var o=this._getAnnotation(n.target,i);if(o&&o.tooltip)this._forceTTShowing=!0,this._annoTTShowing=!0,e.show(this._layerEle,o.tooltip,new t.Rect(n.clientX,n.clientY,5,5));else{if(!this._annoTTShowing)return;this._annoTTShowing=!1,this._forceTTShowing=!1,e.hide()}},n.prototype._getAnnotation=function(t,n){var i=this._getAnnotationElement(t,n);return null==i?null:i[e.AnnotationBase._DATA_KEY]},n.prototype._getAnnotationElement=function(n,i){if(!n||!i)return null;var o=n.parentNode;return t.hasClass(n,e.AnnotationBase._CSS_ANNOTATION)?n:null==o||o===document.body||o===document||o===i?null:this._getAnnotationElement(o,i)},n.prototype._itemsChanged=function(e,n){var i=n.action,o=n.item;switch(i){case t.collections.NotifyCollectionChangedAction.Add:case t.collections.NotifyCollectionChangedAction.Change:o._layer=this,this._renderAnnotation(this._chart.renderEngine,o);break;case t.collections.NotifyCollectionChangedAction.Remove:this._destroyAnnotation(o);break;default:this._destroyAnnotations(),this._renderAnnotations(this._chart,new t.chart.RenderEventArgs(this._chart.renderEngine))}},n.prototype._renderAnnotations=function(t,e){var n,i=this.items,o=i.length;for(this._renderGroup(),n=0;n<o;n++)this._renderAnnotation(e.engine,i[n])},n.prototype._renderGroup=function(){var e=this._chart._plotRect,i=this._chart.renderEngine;e&&i&&(this._layerEle&&null!=this._layerEle.parentNode||(this._plotrectId="plotRect"+(1e6*Math.random()).toFixed(),i.addClipRect(new t.Rect(0,0,e.width,e.height),this._plotrectId),this._layerEle=i.startGroup(n._CSS_Layer,this._plotrectId),this._layerEle.setAttribute("transform","translate("+e.left+", "+e.top+")"),i.endGroup()))},n.prototype._renderAnnotation=function(t,e){this._layerEle&&null!=this._layerEle.parentNode&&(e._element&&e._element.parentNode==this._layerEle&&this._layerEle.removeChild(e._element),t.useSvg=!0,e.render(t),t.useSvg=!1,this._layerEle.appendChild(e._element))},n.prototype._destroyAnnotations=function(){var t,e=this.items,n=e.length;for(t=0;t<n;t++)this._destroyAnnotation(e[t]);this._layerEle.innerHTML=""},n.prototype._destroyAnnotation=function(t){this._layerEle&&this._layerEle.removeChild(t._element),t.destroy()},n._CSS_Layer="wj-chart-annotationlayer",n}();e.AnnotationLayer=n})((e=t.chart||(t.chart={})).annotation||(e.annotation={}))}(wijmo||(wijmo={})),function(t){!function(e){e.annotation||(e.annotation={}),t._registerModule("wijmo.chart.annotation",t.chart.annotation)}(t.chart||(t.chart={}))}(wijmo||(wijmo={}));
var __extends=this&&this.__extends||function(){var n=function(t,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r(){this.constructor=t}if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(t,i);t.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}}(),c1;(function(n){var t;(function(n){var t;(function(n){var t=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(wijmo.chart.annotation.AnnotationLayer);n.AnnotationLayer=t})(t=n.annotation||(n.annotation={}))})(t=n.chart||(n.chart={}))})(c1||(c1={}));
var __extends=this&&this.__extends||function(){var n=function(t,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r(){this.constructor=t}if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(t,i);t.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}}(),c1;(function(n){var t;(function(t){var i;(function(t){var i;(function(t){var i=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(n.chart.annotation.AnnotationLayer);t.AnnotationLayer=i})(i=t.annotation||(t.annotation={}))})(i=t.chart||(t.chart={}))})(t=n.mvc||(n.mvc={}))})(c1||(c1={}));
var wijmo;(function(n){var t;(function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.AnnotationBase||(n.AnnotationBase={}))})(t=n.annotation||(n.annotation={}))})(t=n.chart||(n.chart={}))})(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.Circle||(n.Circle={}))})(t=n.annotation||(n.annotation={}))})(t=n.chart||(n.chart={}))}(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.Ellipse||(n.Ellipse={}))})(t=n.annotation||(n.annotation={}))})(t=n.chart||(n.chart={}))}(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.Image||(n.Image={}))})(t=n.annotation||(n.annotation={}))})(t=n.chart||(n.chart={}))}(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.Line||(n.Line={}))})(t=n.annotation||(n.annotation={}))})(t=n.chart||(n.chart={}))}(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.Polygon||(n.Polygon={}))})(t=n.annotation||(n.annotation={}))})(t=n.chart||(n.chart={}))}(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.Rectangle||(n.Rectangle={}))})(t=n.annotation||(n.annotation={}))})(t=n.chart||(n.chart={}))}(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.Shape||(n.Shape={}))})(t=n.annotation||(n.annotation={}))})(t=n.chart||(n.chart={}))}(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.Square||(n.Square={}))})(t=n.annotation||(n.annotation={}))})(t=n.chart||(n.chart={}))}(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.Text||(n.Text={}))})(t=n.annotation||(n.annotation={}))})(t=n.chart||(n.chart={}))}(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.AnnotationLayer||(n.AnnotationLayer={}))})(t=n.annotation||(n.annotation={}))})(t=n.chart||(n.chart={}))}(wijmo||(wijmo={}));
var wijmo,__extends=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();!function(e){!function(t){"use strict";var n=function(t){function n(n,s,o){var r=t.call(this,n,null,!0)||this;r._tabs=new e.collections.ObservableArray,r._selectedIndex=-1,r._animated=!0,r._autoSwitch=!0,r.selectedIndexChanged=new e.Event;var a=r.hostElement,l=[];if(!o)for(;a.firstElementChild;){var d=a.firstElementChild;a.removeChild(d),l.push(d)}var h=r.getTemplate();return r.applyTemplate("wj-control wj-tabpanel wj-animated",h,{_dRoot:"root",_dTabHeaders:"tabheaders",_dTabPanes:"tabpanes"}),a.tabIndex=-1,r._dRoot.tabIndex=r._dTabHeaders.tabIndex=r._dTabPanes.tabIndex=-1,s&&e.isBoolean(s.isAnimated)&&(r.isAnimated=s.isAnimated),r.addEventListener(a,"click",r._click.bind(r)),r.addEventListener(a,"keydown",r._keydown.bind(r)),r._tabs.collectionChanged.addHandler(r._populateControl.bind(r)),r.tabs.deferUpdate(function(){l.forEach(function(t){e.assert(2==t.childElementCount,"TabPanel children should contain header and pane elements"),r.tabs.push(new i(t.children[0],t.children[1]))})}),r.initialize(s),r.selectedIndex<0&&r.tabs.length?r.selectedIndex=0:r.onSelectedIndexChanged(),r}return __extends(n,t),Object.defineProperty(n.prototype,"tabs",{get:function(){return this._tabs},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"selectedIndex",{get:function(){return this._selectedIndex},set:function(t){(t=e.asInt(t,!1))!=this._selectedIndex?(this._selectedIndex=t,this._updateContent(),this.onSelectedIndexChanged()):this._updateContent()},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"selectedTab",{get:function(){var e=this._selectedIndex;return e>-1?this._tabs[e]:null},set:function(e){for(var t=-1,n=0;n<this._tabs.length&&t<0;n++)this._tabs[n]==e&&(t=n);this.selectedIndex=t},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"isAnimated",{get:function(){return this._animated},set:function(t){this._animated=e.asBoolean(t),e.toggleClass(this.hostElement,"wj-animated",this._animated)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"autoSwitch",{get:function(){return this._autoSwitch},set:function(t){t!=this._autoSwitch&&(this._autoSwitch=e.asBoolean(t),this._updateContent())},enumerable:!0,configurable:!0}),n.prototype.getTab=function(e){for(var t=0;t<this._tabs.length;t++){if((n=this._tabs[t]).header.id==e||n.pane.id==e)return n}for(t=0;t<this._tabs.length;t++){var n;if((n=this._tabs[t]).header.textContent==e)return n}return null},n.prototype.onSelectedIndexChanged=function(e){this.selectedIndexChanged.raise(this,e)},n.prototype._populateControl=function(){var t=this;this._removeChildren(this._dTabHeaders),this._removeChildren(this._dTabPanes);var n=-1;this._tabs.forEach(function(s,o){e.assert(s instanceof i,"tabs array must contain Tab objects."),s._setPanel(t);var r=s.header;e.addClass(r,"wj-tabheader"),e.setAttribute(r,"role","tab"),t._dTabHeaders.appendChild(r);var a=s.pane;e.addClass(a,"wj-tabpane"),e.setAttribute(a,"role","tabpanel"),e.setAttribute(a,"aria-labelledby",r.id?r.id:null),t._dTabPanes.appendChild(a),n<0&&(e.hasClass(r,"wj-state-active")||"true"==r.getAttribute("aria-selected"))&&(n=o)}),n<0&&this._tabs.length>0&&(n=0),n>-1?this.selectedIndex=n:this.selectedIndex>-1&&this.selectedIndex<this._tabs.length&&this._updateContent(),this._validateSelection()},n.prototype._validateSelection=function(){var e=this.selectedTab;if(e&&(e.isDisabled||!e.isVisible)){var t=this._getNextIndex(this.selectedIndex,1);t<0&&(t=this._getNextIndex(this.selectedIndex,-1)),this.selectedIndex=t}},n.prototype._updateContent=function(){var t=this,n=e.contains(this._dTabHeaders,e.getActiveElement()),i=this._dTabHeaders.children,s=this._dTabPanes.children,o=this._selectedIndex;if(o>-1&&o<s.length){var r=(h=s[o]).style;this.isAnimated?(this._eAnim&&(this._eAnim.style.opacity=""),this._toAnim&&clearInterval(this._toAnim),r.opacity="0",this._eAnim=h,this._toAnim=e.animate(function(e){1==e?(t._eAnim=null,t._toAnim=null,r.opacity=""):r.opacity=e.toString()})):r.opacity=""}for(var a=0;a<i.length;a++){var l=a==o,d=i[a];e.setAttribute(d,"aria-selected",l),e.toggleClass(d,"wj-state-active",l);var h=s[a];e.toggleClass(h,"wj-state-active",l),d.tabIndex=l||!this._autoSwitch?this._orgTabIndex:-1,l&&(n&&d.focus(),this._szObserver||e.Control.invalidateAll(h))}},n.prototype._removeChildren=function(e){for(;e.firstChild;)e.removeChild(e.firstChild)},n.prototype._click=function(e){var t=this._getTabIndex(e.target);if(t>-1){var n=this._tabs[t];!n.isDisabled&&n.isVisible&&(this.selectedIndex=t)}},n.prototype._keydown=function(t){if(!t.defaultPrevented){var n=this._getTabIndex(e.getActiveElement());if(n>-1){var i=this._getKeyCode(t);switch(i){case e.Key.Left:case e.Key.Up:case e.Key.Right:case e.Key.Down:case e.Key.Home:case e.Key.PageUp:case e.Key.End:case e.Key.PageDown:switch(i){case e.Key.Left:case e.Key.Up:n=this._getNextIndex(n,-1);break;case e.Key.Right:case e.Key.Down:n=this._getNextIndex(n,1);break;case e.Key.Home:case e.Key.PageUp:n=this._getNextIndex(-1,1);break;case e.Key.End:case e.Key.PageDown:n=this._getNextIndex(this._tabs.length,-1)}n>-1&&(this._autoSwitch?this.selectedIndex=n:this._tabs[n].header.focus()),t.preventDefault();break;case e.Key.Enter:case e.Key.Space:if(n>-1)this._tabs[n].header.click();t.preventDefault()}}}},n.prototype._getTabIndex=function(t){var n=e.closest(t,".wj-tabheader");if(n&&e.closest(n,".wj-tabpanel")==this.hostElement)for(var i=0;i<this._tabs.length;i++)if(this._tabs[i].header==n)return i;return-1},n.prototype._getNextIndex=function(e,t){for(var n=e+t;n>-1&&n<this._tabs.length;n+=t){var i=this._tabs[n];if(!i.isDisabled&&i.isVisible)return n}return-1},n.prototype._setIsDisabled=function(e){t.prototype._setIsDisabled.call(this,e),this._updateTabIndex()},n.prototype._setTabOrder=function(e){t.prototype._setTabOrder.call(this,e),this.isDisabled||this._updateTabIndex()},n.prototype._updateTabIndex=function(){var e=this._dTabHeaders.children,t=this._selectedIndex;t>-1&&t<e.length&&(e[t].tabIndex=this.isDisabled?-1:this._orgTabIndex);this.hostElement.tabIndex=-1},n.controlTemplate='<div wj-part="root"><div wj-part="tabheaders" class="wj-tabheaders" role="tablist"></div><div wj-part="tabpanes" class="wj-tabpanes"></div></div>',n}(e.Control);t.TabPanel=n;var i=function(){function t(t,n){this._hdr=e.asType(e.getElement(t),HTMLElement),this._pane=e.asType(e.getElement(n),HTMLElement)}return Object.defineProperty(t.prototype,"tabPanel",{get:function(){return this._p},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"header",{get:function(){return this._hdr},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pane",{get:function(){return this._pane},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isDisabled",{get:function(){return e.hasClass(this._hdr,"wj-state-disabled")},set:function(t){e.toggleClass(this._hdr,"wj-state-disabled",e.asBoolean(t)),this._p&&this._p._validateSelection()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return"none"!=this._hdr.style.display},set:function(t){this._hdr.style.display=e.asBoolean(t)?"":"none",this._p&&this._p._validateSelection()},enumerable:!0,configurable:!0}),t.prototype._setParts=function(t,n){if(t=e.asType(e.getElement(t),HTMLElement),n=e.asType(e.getElement(n),HTMLElement,!1),this._hdr!==t||this._pane!==n){var i=this.isDisabled,s=this.isVisible;this._hdr=t,this._pane=n,this.isDisabled=i,this.isVisible=s;var o=this.tabPanel;o&&!o.tabs.isUpdating&&o._populateControl()}},t.prototype._setPanel=function(e){this._p=e},t}();t.Tab=i}(e.nav||(e.nav={}))}(wijmo||(wijmo={})),function(e){!function(t){"use strict";var n="wj-state-active",i=function(t){function i(n,i,o){var r=t.call(this,n,null,!0)||this;r._panes=new e.collections.ObservableArray,r._selectedIndex=-1,r._animated=!0,r._autoSwitch=!0,r._alCollapseAll=!1,r._alExpandMany=!1,r._autoSwitching=!1,r.selectedIndexChanged=new e.Event;var a=r.hostElement,l=r._panes,d=[];if(!o)for(;a.firstElementChild;){var h=a.firstElementChild;a.removeChild(h),d.push(h)}e.addClass(a,"wj-control wj-accordion wj-show-icons"),a.tabIndex=-1,r.addEventListener(a,"click",r._click.bind(r)),r.addEventListener(a,"keydown",r._keydown.bind(r)),l.collectionChanged.addHandler(r._populateControl.bind(r)),l.deferUpdate(function(){d.forEach(function(t){e.assert(2==t.childElementCount,"Accordion children should contain header and pane elements"),l.push(new s(t.children[0],t.children[1]))})}),r.initialize(i);var c=i?i.selectedIndex:null;return r.selectedIndex!=c&&r.selectedIndex<0&&l.length?r.selectedIndex=0:r.onSelectedIndexChanged(),r}return __extends(i,t),Object.defineProperty(i.prototype,"panes",{get:function(){return this._panes},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"selectedIndex",{get:function(){return this._selectedIndex},set:function(t){(t=e.asInt(t,!1))!=this._selectedIndex?(this._selectedIndex=t,this._updateContent(),this.onSelectedIndexChanged()):this._updateContent()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"selectedPane",{get:function(){var e=this._selectedIndex;return e>-1?this._panes[e]:null},set:function(e){this.selectedIndex=this._getIndexOfPane(e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"isAnimated",{get:function(){return this._animated},set:function(t){this._animated=e.asBoolean(t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"showIcons",{get:function(){return e.hasClass(this.hostElement,"wj-show-icons")},set:function(t){e.toggleClass(this.hostElement,"wj-show-icons",e.asBoolean(t))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"autoSwitch",{get:function(){return this._autoSwitch},set:function(t){t!=this._autoSwitch&&(this._autoSwitch=e.asBoolean(t),this._updateContent())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"allowCollapseAll",{get:function(){return this._alCollapseAll},set:function(t){this._alCollapseAll=e.asBoolean(t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"allowExpandMany",{get:function(){return this._alExpandMany},set:function(t){var n=this;t!=this._alExpandMany&&(this._alExpandMany=t=e.asBoolean(t),t||this.panes.forEach(function(t,i){var s=i==n.selectedIndex;e.toggleClass(t.header,"wj-state-active",s),e.setAttribute(t.header,"aria-expanded",s)}))},enumerable:!0,configurable:!0}),i.prototype.getPane=function(e){for(var t=0;t<this._panes.length;t++){if((n=this._panes[t]).header.id==e||n.content.id==e)return n}for(t=0;t<this._panes.length;t++){var n;if((n=this._panes[t]).header.textContent==e)return n}return null},i.prototype.onSelectedIndexChanged=function(e){this.selectedIndexChanged.raise(this,e)},i.prototype._populateControl=function(){var t=this,i=-1,o=this.hostElement;this._panes.forEach(function(r,a){e.assert(r instanceof s,"panes array must contain AccordionPane objects."),r._setAccordion(t);var l=r.header;e.addClass(l,"wj-header"),e.setAttribute(l,"role","button"),o.appendChild(l);var d=r.content;e.addClass(d,"wj-content"),e.setAttribute(d,"role","region"),e.setAttribute(d,"aria-labelledby",l.id?l.id:null),o.appendChild(d),i<0&&(e.hasClass(l,n)||"true"==l.getAttribute("aria-expanded"))&&(i=a)}),i>-1?this.selectedIndex=i:this.selectedIndex>-1&&this.selectedIndex<this._panes.length&&this._updateContent(),this._validateSelection()},i.prototype._validateSelection=function(){var e=this.selectedPane;if(e&&(e.isDisabled||!e.isVisible)){var t=this._getNextIndex(this.selectedIndex,1);t<0&&(t=this._getNextIndex(this.selectedIndex,-1)),this.selectedIndex=t}},i.prototype._updateContent=function(){var t=this,i=e.contains(this.hostElement,e.getActiveElement()),s=this._selectedIndex,o=[];this._panes.forEach(function(r,a){var l=r.header,d=a==s,h=e.hasClass(l,n),c=d||h&&t._alExpandMany&&r!=t._hidePane,u=c&&!h,p=h&&!c;t._animated&&(u||p)&&o.push({show:u,pane:r}),e.setAttribute(l,"aria-expanded",c),t._animated||e.toggleClass(l,n,c),d&&(i&&l.focus(),t._szObserver||e.Control.invalidateAll(r.content))}),this._updatePanesTabIndex(),this._animated&&o.length&&(o.forEach(function(t){e.toggleClass(t.pane.header,n,!0),t.height=t.pane.content.offsetHeight,t.show&&(t.pane.content.style.height="0")}),e.animate(function(t){t<1?o.forEach(function(e){var n=e.height*(e.show?t:1-t);e.pane.content.style.height=n.toFixed(0)+"px"}):o.forEach(function(t){t.pane.content.style.height="",e.toggleClass(t.pane.header,n,t.show)})})),this._hidePane=null},i.prototype._updatePanesTabIndex=function(){var e=this;this._panes.forEach(function(t,n){t.header.tabIndex=e._selectedIndex!==n&&e._autoSwitch?-1:e._orgTabIndex})},i.prototype._setTabOrder=function(e){t.prototype._setTabOrder.call(this,e),this._updatePanesTabIndex()},i.prototype._click=function(t){var i=this._getPaneIndex(t.target);if(i>-1){var s=this._panes[i];if(!s.isDisabled&&s.isVisible)if(!e.hasClass(s.header,n)||this._autoSwitching)this.selectedIndex=i;else{var o=this._getNextActiveIndex(i);(o>-1||this._alCollapseAll)&&(this._hidePane=s,this.selectedIndex=o)}}},i.prototype._keydown=function(t){if(!t.defaultPrevented){var n=this._getPaneIndex(e.getActiveElement());if(n>-1){var i=this._getKeyCode(t);switch(i){case e.Key.Left:case e.Key.Up:case e.Key.Right:case e.Key.Down:case e.Key.Home:case e.Key.PageUp:case e.Key.End:case e.Key.PageDown:switch(i){case e.Key.Left:case e.Key.Up:n=this._getNextIndex(n,-1);break;case e.Key.Right:case e.Key.Down:n=this._getNextIndex(n,1);break;case e.Key.Home:case e.Key.PageUp:n=this._getNextIndex(-1,1);break;case e.Key.End:case e.Key.PageDown:n=this._getNextIndex(this._panes.length,-1)}if(n>-1){var s=this._panes[n];this._autoSwitch?(this._autoSwitching=!0,s.header.click(),this._autoSwitching=!1):s.header.focus()}t.preventDefault();break;case e.Key.Enter:case e.Key.Space:if(n>-1)(s=this._panes[n]).header.click();t.preventDefault()}}}},i.prototype._getPaneIndex=function(t){var n=e.closest(t,".wj-header");if(n&&e.closest(n,".wj-accordion")==this.hostElement)for(var i=0;i<this._panes.length;i++)if(this._panes[i].header==n)return i;return-1},i.prototype._getNextIndex=function(e,t){for(var n=e+t;n>-1&&n<this._panes.length;n+=t){var i=this._panes[n];if(!i.isDisabled&&i.isVisible)return n}return-1},i.prototype._getIndexOfPane=function(e){for(var t=-1,n=this._panes,i=0;i<n.length&&t<0;i++)n[i]==e&&(t=i);return t},i.prototype._getNextActiveIndex=function(t){for(var i=-1,s=this.panes,o=1;o<s.length;o++){var r=(t+o)%s.length,a=s[r];if(e.hasClass(a.header,n)){i=r;break}}return i},i.prototype._togglePane=function(e,t){if(e.isCollapsed!==t&&e.isVisible&&!e.isDisabled)if(t){if(this.allowCollapseAll||this.panes.filter(function(e){return!e.isCollapsed}).length>1){this._hidePane=e;var n=this._getIndexOfPane(e);this.selectedIndex=this._getNextActiveIndex(n)}}else this.selectedPane=e},i}(e.Control);t.Accordion=i;var s=function(){function t(t,n){this._hdr=e.asType(e.getElement(t),HTMLElement),this._content=e.asType(e.getElement(n),HTMLElement)}return Object.defineProperty(t.prototype,"accordion",{get:function(){return this._acc},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"header",{get:function(){return this._hdr},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"content",{get:function(){return this._content},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isDisabled",{get:function(){return e.hasClass(this._hdr,"wj-state-disabled")},set:function(t){e.toggleClass(this._hdr,"wj-state-disabled",e.asBoolean(t)),this._acc&&this._acc._validateSelection()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return"none"!=this._hdr.style.display},set:function(t){this._hdr.style.display=e.asBoolean(t)?"":"none",this._acc&&this._acc._validateSelection()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isCollapsed",{get:function(){return!e.hasClass(this._hdr,n)},set:function(t){var i=this._acc;i?i._togglePane(this,t):e.toggleClass(this._hdr,n,!e.asBoolean(t))},enumerable:!0,configurable:!0}),t.prototype._setParts=function(t,n){if(t=e.asType(e.getElement(t),HTMLElement),n=e.asType(e.getElement(n),HTMLElement,!1),this._hdr!==t||this._content!==n){var i=this.isDisabled,s=this.isVisible;this._hdr=t,this._content=n,this.isDisabled=i,this.isVisible=s;var o=this.accordion;o&&!o.panes.isUpdating&&o._populateControl()}},t.prototype._setAccordion=function(e){this._acc=e},t}();t.AccordionPane=s}(e.nav||(e.nav={}))}(wijmo||(wijmo={})),function(e){!function(t){var n=function(t){function n(n,i,s){var o=t.call(this)||this;return o._data=n,o._e=e.asType(i,HTMLElement),o._level=s,o}return __extends(n,t),Object.defineProperty(n.prototype,"dataItem",{get:function(){return this._data},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"element",{get:function(){return this._e},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"level",{get:function(){return this._level},enumerable:!0,configurable:!0}),n}(e.EventArgs);t.FormatNodeEventArgs=n;var i=function(e){function t(t){var n=e.call(this)||this;return n._node=t,n}return __extends(t,e),Object.defineProperty(t.prototype,"node",{get:function(){return this._node},enumerable:!0,configurable:!0}),t}(e.CancelEventArgs);t.TreeNodeEventArgs=i;var s,o=function(n){function i(i,s,o){var r=n.call(this)||this;return r._src=e.asType(i,t.TreeNode),r._tgt=e.asType(s,t.TreeNode),r._pos=o,r}return __extends(i,n),Object.defineProperty(i.prototype,"dragSource",{get:function(){return this._src},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dropTarget",{get:function(){return this._tgt},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"position",{get:function(){return this._pos},set:function(t){this._pos=e.asEnum(t,s)},enumerable:!0,configurable:!0}),i}(e.CancelEventArgs);t.TreeNodeDragDropEventArgs=o,function(e){e[e.Before=0]="Before",e[e.After=1]="After",e[e.Into=2]="Into"}(s=t.DropPosition||(t.DropPosition={}))}(e.nav||(e.nav={}))}(wijmo||(wijmo={})),function(e){!function(t){var n=function(){function n(t,i){e.hasClass(i,"wj-treeview")?(t=e.Control.getControl(i),i=null):n._assertNode(i),this._t=t,this._e=i}return Object.defineProperty(n.prototype,"dataItem",{get:function(){return this._e[t.TreeView._DATAITEM_KEY]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"element",{get:function(){return this._e},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"treeView",{get:function(){return this._t},enumerable:!0,configurable:!0}),n.prototype.ensureVisible=function(){for(var e=this.parentNode;e;e=e.parentNode)e.isCollapsed=!1;var t=this._t.hostElement,n=this.element.getBoundingClientRect(),i=t.getBoundingClientRect();n.bottom>i.bottom?t.scrollTop+=n.bottom-i.bottom:n.top<i.top&&(t.scrollTop-=i.top-n.top)},n.prototype.equals=function(e){return null!=e&&e.element==this.element},n.prototype.select=function(){var n=this._t,i=n._selNode;this.equals(i)||(i&&(e.removeClass(i.element,t.TreeView._CSEL),e.setAttribute(i.element,"aria-selected",!1)),n._selNode=this,e.addClass(this.element,t.TreeView._CSEL),e.setAttribute(this.element,"aria-selected",!0),this.ensureVisible(),n._updateFocus(i),n.onSelectedItemChanged())},Object.defineProperty(n.prototype,"index",{get:function(){for(var e=0,t=this._pse(this.element);t;t=this._pse(t))n._isNode(t)&&e++;return e},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"parentNode",{get:function(){var e=null;if(this._e){var t=this._e.parentElement;n._assertNodeList(t),e=this._pse(t)}return e?new n(this._t,e):null},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"level",{get:function(){for(var e=-1,t=this;t;t=t.parentNode)e++;return e},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"hasChildren",{get:function(){return n._isNode(this._e)&&!n._isEmpty(this._e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"hasPendingChildren",{get:function(){return this.isCollapsed&&this.hasChildren&&!n._isNodeList(this.element.nextElementSibling)&&e.isFunction(this._t.lazyLoadFunction)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"nodes",{get:function(){return this.hasChildren?n._getChildNodes(this._t,this._e.nextSibling):null},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"checkBox",{get:function(){return this._e.querySelector("input."+t.TreeView._CNDC)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"isCollapsed",{get:function(){return this.hasChildren&&e.hasClass(this._e,t.TreeView._CCLD)},set:function(n){if(n!=this.isCollapsed){var i=this._t,s=new t.TreeNodeEventArgs(this);i.onIsCollapsedChanging(s)&&(this.setCollapsed(e.asBoolean(n),i.isAnimated,i.autoCollapse),i.onIsCollapsedChanged(s))}},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"isChecked",{get:function(){var e=this.checkBox;return e&&!e.indeterminate?e.checked:null},set:function(n){if(n!=this.isChecked){var i=this._t,s=new t.TreeNodeEventArgs(this);i.onIsCheckedChanging(s)&&(this.setChecked(e.asBoolean(n),!0),i.onIsCheckedChanged(s))}},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"isDisabled",{get:function(){return this._e&&null!=this._e.getAttribute("disabled")},set:function(t){(t=e.asBoolean(t,!0))!=this.isDisabled&&(e.enable(this._e,!t),this.isDisabled&&this._t&&this._t.collapseWhenDisabled&&(this.isCollapsed=!0))},enumerable:!0,configurable:!0}),n.prototype.previous=function(e,t){var i=this._pse(this._e);if(!i&&n._isNodeList(this._e.parentElement)&&(i=this._pse(this._e.parentElement)),n._isNodeList(i)){for(;n._isNodeList(i)&&i.childElementCount;)i=i.lastChild;n._isNodeList(i)&&(i=this._pse(i))}var s=n._isNode(i)?new n(this._t,i):null;return e&&s&&!s.element.offsetHeight&&(s=s.previous(e,t)),t&&s&&s.isDisabled&&(s=s.previous(e,t)),s},n.prototype.next=function(e,t){var i=this._e.nextSibling;if(n._isNodeList(i)&&(i=i.childElementCount?i.firstChild:i.nextSibling),!i)for(var s=this._e.parentElement;!i&&n._isNodeList(s);s=s.parentElement)i=s.nextSibling;var o=n._isNode(i)?new n(this._t,i):null;return e&&o&&!o.element.offsetHeight&&(o=o.next(e,t)),t&&o&&o.isDisabled&&(o=o.next(e,t)),o},n.prototype.previousSibling=function(){for(var e=this._pse(this.element);n._isNodeList(e);)e=this._pse(e);return e?new n(this._t,e):null},n.prototype.nextSibling=function(){var e=this.element.nextSibling;return n._isNodeList(e)&&(e=e.nextSibling),e?new n(this._t,e):null},n.prototype.setCollapsed=function(i,s,o){var r=this._t,a=this._e,l=this._e.nextElementSibling,d=n._isNodeList(l);if(e.setAttribute(a,"aria-expanded",d?(!i).toString():null),i!=this.isCollapsed)if(i||d||!e.isFunction(r.lazyLoadFunction)){if(null==s&&(s=r.isAnimated),null==o&&(o=r.autoCollapse),s){if(d){var h=l.offsetHeight,c=l.style,u=r.hostElement,p=u.style;u.scrollHeight<=u.clientHeight&&(p.overflowY="hidden"),i?(e.toggleClass(a,t.TreeView._CCLG,!0),e.animate(function(n){n<1?(n=1-n,c.height=(n*h).toFixed(0)+"px"):(c.height=c.opacity=p.overflowY="",e.toggleClass(a,t.TreeView._CCLD,!0),e.toggleClass(a,t.TreeView._CCLG,!1))},t.TreeView._AN_DLY)):(e.toggleClass(a,t.TreeView._CCLD,!1),c.height=c.opacity="0",e.animate(function(e){c.height=e>=1?c.opacity=p.overflowY="":(e*h).toFixed(0)+"px"},t.TreeView._AN_DLY))}}else e.toggleClass(a,t.TreeView._CCLD,i);if(!i&&o){var _=a.parentElement;if(n._isNodeList(_))for(var f=0;f<_.children.length;f++){var g=_.children[f];g!=a&&n._isNode(g)&&(e.toggleClass(g,t.TreeView._CCLD,!0),g.setAttribute("aria-expanded","false"))}}}else r._lazyLoadNode(this)},n.prototype.setChecked=function(t,n){var i=this.checkBox,s=i.checked!=t;if(e.setChecked(i,t),this.hasChildren)for(var o=0;o<this.nodes.length;o++)this.nodes[o].setChecked(t,!1);var r=this._t;if(r&&r.checkedMemberPath&&r._chkPath.setValue(this.dataItem,this.level,t),n){var a=this.parentNode;a&&a._updateCheckedState()}r&&s&&r._raiseCheckedItemsChanged()},n.prototype.remove=function(){var t=this._t,i=this.parentNode,s=this._getArray(),o=s.indexOf(this.dataItem);t.selectedNode==this&&(t.selectedNode=this.nextSibling()||this.previousSibling()||i);var r=this.element.nextSibling;n._isNodeList(r)&&e.removeChild(r),e.removeChild(this.element),i&&i._updateState(),s.splice(o,1),this._t=null},n.prototype.addChildNode=function(e,n){var i=this._t._createNode(n),s=this.nodes;return s?e<s.length?i.move(s[e],t.DropPosition.Before):i.move(s[s.length-1],t.DropPosition.After):i.move(this,t.DropPosition.Into),i},n.prototype.refresh=function(t){var n=this._getArray();t&&(n[this.index]=t),t=n[this.index];var i=this._t._createNode(t),s=this.hasChildren&&!this.hasPendingChildren?this.element.nextSibling:null;s&&e.removeChild(s),(s=i.hasChildren&&!i.hasPendingChildren?i.element.nextSibling:null)&&this.element.parentElement.insertBefore(s,this.element.nextSibling),this.element.innerHTML=i.element.innerHTML,this._updateState()},n.prototype.move=function(e,t){if(e instanceof n&&this._contains(e))return!1;var i=this.parentNode,s=this._getArray();this._moveElements(e,t),e.treeView&&(this._t=e.treeView),i&&i._updateState();var o=this.parentNode;o&&o._updateState();var r=this.dataItem,a=s.indexOf(r),l=this._getArray();return s.splice(a,1),l.splice(this.index,0,r),!0},Object.defineProperty(n.prototype,"itemsSource",{get:function(){return this._getArray()},enumerable:!0,configurable:!0}),n.prototype._pse=function(e){return e.previousElementSibling},n.prototype._contains=function(e){for(;e;e=e.parentNode)if(e.element==this.element)return!0;return!1},n.prototype._getArray=function(){var e=this._t,t=this.parentNode,n=e.itemsSource;if(t){var i=e._itmPath;(n=i.getValue(t.dataItem,this.level))||(n=[],i.setValue(t.dataItem,this.level,n))}return n},n.prototype._moveElements=function(i,s){var o=document.createDocumentFragment(),r=this.hasChildren&&!this.hasPendingChildren?this.element.nextSibling:null;if(o.appendChild(this.element),r&&(n._assertNodeList(r),o.appendChild(r)),i instanceof t.TreeView)i._root.insertBefore(o,null);else{var a=i.element,l=a?a.parentElement:i.treeView._root;n._assertNodeList(l);var d=t.DropPosition;switch(s){case d.Before:l.insertBefore(o,a);break;case d.After:a=(i=i.nextSibling())?i.element:null,l.insertBefore(o,a);break;case d.Into:i.hasChildren&&!i.hasPendingChildren||(r=document.createElement("div"),e.addClass(r,t.TreeView._CNDL),l.insertBefore(r,a.nextSibling)),l=i.element.nextSibling,n._assertNodeList(l),l.insertBefore(o,null)}}},n.prototype._updateState=function(){this._updateEmptyState(),this._updateCheckedState()},n.prototype._updateEmptyState=function(){var i=this.element.nextSibling,s=!1;n._isNodeList(i)&&(i.childElementCount?s=!0:e.removeChild(i)),e.toggleClass(this.element,t.TreeView._CEMP,!s),s||this.element.removeAttribute("aria-expanded")},n.prototype._updateCheckedState=function(){var t=this._t,n=this.checkBox,i=this.nodes,s=0,o=0,r=!1;if(n&&i){for(var a=0;a<i.length&&!r;a++){switch(i[a].isChecked){case!0:s++;break;case!1:o++;break;case null:r=!0}s&&o&&(r=!0)}if(e.setChecked(n,r?null:s>0),t&&t.checkedMemberPath){var l=r?null:n.checked;t._chkPath.setValue(this.dataItem,this.level,l)}}var d=this.parentNode;d&&d._updateCheckedState()},n._getChildNodes=function(e,t){var i=[];if(n._isNodeList(t))for(var s=t.children,o=0;o<s.length;o++){var r=s[o];n._isNode(r)&&i.push(new n(e,r))}return i},n._isNode=function(n){return n&&e.hasClass(n,t.TreeView._CND)},n._isNodeList=function(n){return n&&e.hasClass(n,t.TreeView._CNDL)},n._isEmpty=function(i){return n._isNode(i)&&e.hasClass(i,t.TreeView._CEMP)},n._isCollapsed=function(i){return n._isNode(i)&&!n._isEmpty(i)&&e.hasClass(i,t.TreeView._CCLD)},n._assertNode=function(t){e.assert(n._isNode(t),"node expected")},n._assertNodeList=function(t){e.assert(n._isNodeList(t),"nodeList expected")},n}();t.TreeNode=n}(e.nav||(e.nav={}))}(wijmo||(wijmo={})),function(e){!function(t){var n=function(){function t(e){this.path=e}return Object.defineProperty(t.prototype,"path",{get:function(){return this._path},set:function(t){if(this._path=t,e.isString(t))this._bindings=[new e.Binding(t)];else if(e.isArray(t)){this._bindings=[];for(var n=0;n<t.length;n++)this._bindings.push(new e.Binding(t[n]))}else null!=t&&e.assert(!1,"Path should be a string or an array of strings.");this._maxLevel=this._bindings?this._bindings.length-1:-1},enumerable:!0,configurable:!0}),t.prototype.getValue=function(e,t){var n=Math.min(t,this._maxLevel);return n>-1?this._bindings[n].getValue(e):null},t.prototype.setValue=function(e,t,n){var i=Math.min(t,this._maxLevel);i>-1&&this._bindings[i].setValue(e,n)},t}();t._BindingArray=n}(e.nav||(e.nav={}))}(wijmo||(wijmo={})),function(e){!function(t){var n=function(n){function i(s,o){var r=n.call(this,s)||this;r._itmPath=new t._BindingArray("items"),r._chkPath=new t._BindingArray,r._dspPath=new t._BindingArray("header"),r._imgPath=new t._BindingArray,r._html=!1,r._animated=!0,r._chkOnClick=!1,r._collOnClick=!1,r._xpndOnClick=!0,r._xpndOnLoad=!0,r._autoColl=!0,r._showChk=!1,r._collapseWhenDisabled=!0,r._srch="",r._isReadOnly=!0,r.itemsSourceChanged=new e.Event,r.loadingItems=new e.Event,r.loadedItems=new e.Event,r.itemClicked=new e.Event,r.selectedItemChanged=new e.Event,r.checkedItemsChanged=new e.Event,r.isCollapsedChanging=new e.Event,r.isCollapsedChanged=new e.Event,r.isCheckedChanging=new e.Event,r.isCheckedChanged=new e.Event,r.formatItem=new e.Event(function(){r.invalidate()}),r.dragStart=new e.Event,r.dragOver=new e.Event,r.drop=new e.Event,r.dragEnd=new e.Event,r.nodeEditStarting=new e.Event,r.nodeEditStarted=new e.Event,r.nodeEditEnding=new e.Event,r.nodeEditEnded=new e.Event;var a=r.getTemplate();r.applyTemplate("wj-control wj-content wj-treeview",a,{_root:"root"});var l=r.hostElement;return e.setAttribute(l,"role","tree",!0),e.addClass(r._root,i._CNDL),e.setAttribute(r._root,"role","group",!0),r.addEventListener(l,"mousedown",r._mousedown.bind(r)),r.addEventListener(l,"click",r._click.bind(r)),r.addEventListener(l,"keydown",r._keydown.bind(r)),r.addEventListener(l,"keypress",r._keypress.bind(r)),r.addEventListener(l,"wheel",function(e){l.scrollHeight>l.offsetHeight&&(e.deltaY<0&&0==l.scrollTop||e.deltaY>0&&l.scrollTop+l.offsetHeight>=l.scrollHeight)&&e.preventDefault()}),r.addEventListener(l,"blur",function(){r._edtNode&&!e.contains(r._edtNode.element,e.getActiveElement())&&r.finishEditing()},!0),r.addEventListener(l,"paste",function(e){if(r._edtNode&&!r.isContentHtml){var t=(e.clipboardData||window.clipboardData).getData("text"),n=window.getSelection();t&&n.rangeCount&&(n.deleteFromDocument(),n.getRangeAt(0).insertNode(document.createTextNode(t)),e.preventDefault())}}),r.initialize(o),r.refresh(),r}return __extends(i,n),Object.defineProperty(i.prototype,"itemsSource",{get:function(){return this._items},set:function(t){this._items!=t&&(this._items=e.asArray(t),this.onItemsSourceChanged(),this._srcChanged=!0,this._reload())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"childItemsPath",{get:function(){return this._itmPath.path},set:function(e){e!=this.childItemsPath&&(this._itmPath.path=e,this._reload())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"displayMemberPath",{get:function(){return this._dspPath.path},set:function(e){e!=this.displayMemberPath&&(this._dspPath.path=e,this._reload())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"imageMemberPath",{get:function(){return this._imgPath.path},set:function(e){e!=this.imageMemberPath&&(this._imgPath.path=e,this._reload())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"checkedMemberPath",{get:function(){return this._chkPath.path},set:function(e){e!=this.checkedMemberPath&&(this._chkPath.path=e,this._reload())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"isContentHtml",{get:function(){return this._html},set:function(t){t!=this._html&&(this._html=e.asBoolean(t),this._reload())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"showCheckboxes",{get:function(){return this._showChk},set:function(t){t!=this._showChk&&(this._showChk=e.asBoolean(t),this._reload())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"autoCollapse",{get:function(){return this._autoColl},set:function(t){this._autoColl=e.asBoolean(t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"collapseWhenDisabled",{get:function(){return this._collapseWhenDisabled},set:function(t){this._collapseWhenDisabled=e.asBoolean(t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"isAnimated",{get:function(){return this._animated},set:function(t){this._animated=e.asBoolean(t),e.toggleClass(this.hostElement,"wj-animated",this._animated)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"isReadOnly",{get:function(){return this._isReadOnly},set:function(t){this._isReadOnly=e.asBoolean(t),e.toggleClass(this.hostElement,"wj-state-readonly",this.isReadOnly)},enumerable:!0,configurable:!0}),i.prototype.startEditing=function(n){if(this.isReadOnly)return!1;if(n||(n=this.selectedNode),!n||n.isDisabled)return!1;if(!this.finishEditing())return!1;var s=n.element.querySelector("."+i._CNDT);if(!s)return!1;var o=new t.TreeNodeEventArgs(n);if(!this.onNodeEditStarting(o))return!1;s.tabIndex=0,s.focus(),s.contentEditable="true",s.style.cursor="auto";var r=document.createRange();r.selectNodeContents(s);var a=getSelection();return a.removeAllRanges(),a.addRange(r),s.focus(),e.setAttribute(s,"autocomplete","off"),e.setAttribute(s,"autocorrect","off"),this._edtNode=n,this.onNodeEditStarted(o),!0},i.prototype.finishEditing=function(e){var n=this._edtNode;if(n){var s=n.element.querySelector("."+i._CNDT);if(!s)return!1;var o=new t.TreeNodeEventArgs(n);if(!this.onNodeEditEnding(o))return!1;var r=n.dataItem,a=n.level;this.isContentHtml?e?s.innerHTML=this._dspPath.getValue(r,a):this._dspPath.setValue(r,a,s.innerHTML):e?s.textContent=this._dspPath.getValue(r,a):this._dspPath.setValue(r,a,s.textContent),document.createRange().selectNodeContents(s),getSelection().removeAllRanges(),s.contentEditable="false",s.style.cursor="",this._edtNode=null,this.onNodeEditEnded(o)}return!0},Object.defineProperty(i.prototype,"allowDragging",{get:function(){return null!=this._dd},set:function(n){if(n!=this.allowDragging){e.asBoolean(n)?this._dd=new t._TreeDragDropManager(this):(this._dd.dispose(),this._dd=null);for(var s=this.hostElement.querySelectorAll("."+i._CND),o=0;o<s.length;o++){var r=s[o];e.setAttribute(r,"draggable",!!this._dd||null)}}},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"checkOnClick",{get:function(){return this._chkOnClick},set:function(t){this._chkOnClick=e.asBoolean(t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"expandOnClick",{get:function(){return this._xpndOnClick},set:function(t){this._xpndOnClick=e.asBoolean(t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"collapseOnClick",{get:function(){return this._collOnClick},set:function(t){this._collOnClick=e.asBoolean(t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"expandOnLoad",{get:function(){return this._xpndOnLoad},set:function(t){this._xpndOnLoad=e.asBoolean(t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"selectedItem",{get:function(){return this._selNode?this._selNode.dataItem:null},set:function(e){e!=this.selectedItem&&(this._isDirty&&this.refresh(),this.selectedNode=e?this.getNode(e):null)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"selectedNode",{get:function(){return this._selNode},set:function(t){if(t!=this.selectedNode)if(this._prevSel=this._selNode,t)t.select();else if(this._selNode){var n=this._selNode.element;e.removeClass(n,i._CSEL),e.setAttribute(n,"aria-selected",!1),this._selNode=null,this._updateFocus(this._prevSel),this.onSelectedItemChanged()}},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"selectedPath",{get:function(){for(var e=[],t=this.selectedNode;t;t=t.parentNode){var n=this._dspPath.getValue(t.dataItem,t.level);e.splice(0,0,n)}return e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"checkedItems",{get:function(){if(null==this._chkItems){var e=i,t="."+e._CND+"."+e._CEMP+" > input:checked."+e._CNDC,n=this._root.querySelectorAll(t);this._chkItems=[];for(var s=0;s<n.length;s++){var o=n[s].parentElement[e._DATAITEM_KEY];this._chkItems.push(o)}}return this._chkItems},set:function(e){if(this.showCheckboxes){this._isDirty&&this.refresh();for(var n=i,s="."+n._CND+"."+n._CEMP,o=this._root.querySelectorAll(s),r=0;r<o.length;r++){var a=new t.TreeNode(this,o[r]),l=e.indexOf(a.dataItem)>-1;a.isChecked!=l&&(a.isChecked=l)}}},enumerable:!0,configurable:!0}),i.prototype.checkAllItems=function(e){if(this.showCheckboxes)for(var n=i,s="."+n._CND+"."+n._CEMP,o=this._root.querySelectorAll(s),r=0;r<o.length;r++){var a=new t.TreeNode(this,o[r]);a.isChecked!=e&&(a.isChecked=e)}},Object.defineProperty(i.prototype,"totalItemCount",{get:function(){return this.hostElement.querySelectorAll("."+i._CND).length},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"lazyLoadFunction",{get:function(){return this._lazyLoad},set:function(t){t!=this._lazyLoad&&(this._lazyLoad=e.asFunction(t),this._reload())},enumerable:!0,configurable:!0}),i.prototype.getFirstNode=function(e,n){var s=this.hostElement.querySelector("."+i._CND),o=s?new t.TreeNode(this,s):null;return e&&o&&!o.element.offsetHeight&&(o=o.next(e,n)),n&&o&&o.isDisabled&&(o=o.next(e,n)),o},i.prototype.getLastNode=function(e,n){var s=this.hostElement.querySelectorAll("."+i._CND+":last-child"),o=s.length?new t.TreeNode(this,s[s.length-1]):null;return e&&o&&!o.element.offsetHeight&&(o=o.previous(e,n)),n&&o&&o.isDisabled&&(o=o.previous(e,n)),o},Object.defineProperty(i.prototype,"nodes",{get:function(){return t.TreeNode._getChildNodes(this,this._root)},enumerable:!0,configurable:!0}),i.prototype.getNode=function(e){this._isDirty&&this._loadTree();for(var n=this.hostElement.querySelectorAll("."+i._CND),s=0;s<n.length;s++){var o=n[s];if(o[i._DATAITEM_KEY]==e)return new t.TreeNode(this,o)}return null},i.prototype.addChildNode=function(e,n){var i=this._createNode(n),s=this.nodes;return s?e<s.length?i.move(s[e],t.DropPosition.Before):i.move(s[s.length-1],t.DropPosition.After):i.move(this,t.DropPosition.Into),i},i.prototype.collapseToLevel=function(e){var t=this._animated,n=this._autoColl;this._animated=this._autoColl=!1,this._collapseToLevel(this.nodes,e,0),this._animated=t,this._autoColl=n},i.prototype.loadTree=function(e){this._loadTree(e)},i.prototype.onItemsSourceChanged=function(e){this.itemsSourceChanged.raise(this,e)},i.prototype.onLoadingItems=function(e){return this.loadingItems.raise(this,e),!e.cancel},i.prototype.onLoadedItems=function(e){this.loadedItems.raise(this,e)},i.prototype.onItemClicked=function(e){this.itemClicked.raise(this,e)},i.prototype.onSelectedItemChanged=function(e){this.selectedItemChanged.raise(this,e)},i.prototype.onCheckedItemsChanged=function(e){this._chkItems=null,this.checkedItemsChanged.raise(this,e)},i.prototype.onIsCollapsedChanging=function(e){return this.isCollapsedChanging.raise(this,e),!e.cancel},i.prototype.onIsCollapsedChanged=function(e){this.isCollapsedChanged.raise(this,e)},i.prototype.onIsCheckedChanging=function(e){return this.isCheckedChanging.raise(this,e),!e.cancel},i.prototype.onIsCheckedChanged=function(e){this.isCheckedChanged.raise(this,e)},i.prototype.onFormatItem=function(e){this.formatItem.raise(this,e)},i.prototype.onDragStart=function(e){return this.dragStart.raise(this,e),!e.cancel},i.prototype.onDragOver=function(e){return this.dragOver.raise(this,e),!e.cancel},i.prototype.onDrop=function(e){return this.drop.raise(this,e),!e.cancel},i.prototype.onDragEnd=function(e){this.dragEnd.raise(this,e)},i.prototype.onNodeEditStarting=function(e){return this.nodeEditStarting.raise(this,e),!e.cancel},i.prototype.onNodeEditStarted=function(e){this.nodeEditStarted.raise(this,e)},i.prototype.onNodeEditEnding=function(e){return this.nodeEditEnding.raise(this,e),!e.cancel},i.prototype.onNodeEditEnded=function(e){this.nodeEditEnded.raise(this,e)},i.prototype.refresh=function(e){void 0===e&&(e=!0),n.prototype.refresh.call(this,e),!this.isUpdating&&this._isDirty&&this._loadTree(!0)},i.prototype._updateFocus=function(e){if(this._updateTabIndex(),this.containsFocus()){var t=this._selNode;t?t.element.focus():this.hostElement.focus()}e&&(e.element.tabIndex=-1)},i.prototype._updateTabIndex=function(){var e=this._selNode;e&&(e.element.tabIndex=this._orgTabIndex),this.hostElement.tabIndex=e||this.isDisabled?-1:this._orgTabIndex},i.prototype._setTabOrder=function(e){this._orgTabIndex=e,this._updateTabIndex()},i.prototype._raiseCheckedItemsChanged=function(){var e=this;this._toItemsChanged&&clearTimeout(this._toItemsChanged),this._toItemsChanged=setTimeout(function(){e._toItemsChanged=null,e.onCheckedItemsChanged()},10)},i.prototype._reload=function(){this._isDirty=!0,this.invalidate()},i.prototype._createNode=function(e){return new i(document.createElement("div"),{expandOnLoad:this.expandOnLoad,allowDragging:this.allowDragging,lazyLoadFunction:this.lazyLoadFunction,childItemsPath:this.childItemsPath,displayMemberPath:this.displayMemberPath,imageMemberPath:this.imageMemberPath,isContentHtml:this.isContentHtml,showCheckboxes:this.showCheckboxes,itemsSource:[e]}).getFirstNode()},i.prototype._mousedown=function(n){if(!n.defaultPrevented){var s=e.closestClass(n.target,i._CND),o=s?new t.TreeNode(this,s):null;o&&!o.isDisabled&&(this.selectedNode=o)}},i.prototype._click=function(n){if(!n.defaultPrevented){var s=e.closestClass(n.target,i._CND);if(s){var o=new t.TreeNode(this,s),r="input."+i._CNDC,a=e.closest(n.target,r),l=s.getBoundingClientRect(),d=this.rightToLeft?l.right-n.clientX:n.clientX-l.left;if(o.isDisabled)return;if(!a&&o.equals(this._edtNode))return;!a&&this._chkOnClick&&(!o.hasChildren||d>s.offsetHeight)&&(a=s.querySelector(r));var h=this._prevSel;if(this.selectedNode=o,s.focus(),a&&(n.preventDefault(),n.stopPropagation(),setTimeout(function(){o.isChecked=!o.isChecked})),!a){var c=(n.ctrlKey||n.metaKey)&&!o.hasPendingChildren,u=o.isCollapsed,p=!1;if(o.hasChildren&&(d<=s.offsetHeight?(p=!0,c?this.collapseToLevel(u?o.level+1:o.level):o.isCollapsed=!u):this.expandOnClick&&u?(p=!0,c?this.collapseToLevel(o.level+1):o.isCollapsed=!1):this.collapseOnClick&&!u&&(p=!0,c?this.collapseToLevel(o.level):o.isCollapsed=!0)),p&&c&&this.selectedNode&&this.selectedNode.ensureVisible(),!p&&!this.isReadOnly){var _=this.selectedNode;_&&_.equals(h)&&this.startEditing()}}this.selectedItem&&this.onItemClicked()}}},i.prototype._keydown=function(t){if(!t.defaultPrevented){var n=this._getKeyCode(t),i=this._selNode,s=void 0,o=!0;if(!i)switch(n){case e.Key.Up:case e.Key.Down:case e.Key.Left:case e.Key.Right:case e.Key.Enter:case e.Key.Home:case e.Key.End:if(s=this.getFirstNode(!0,!0))return this.selectedNode=s,void t.preventDefault()}if(i&&!i.isDisabled){switch(n){case e.Key.F2:this.startEditing(),t.preventDefault();break;case e.Key.Escape:this.finishEditing(!0),t.preventDefault();break;case e.Key.Up:case e.Key.Down:this.finishEditing();break;case e.Key.Enter:this._edtNode?(this.finishEditing(),n=e.Key.Down):(this.startEditing(),t.preventDefault())}if(this._edtNode)return;if(this.rightToLeft)switch(n){case e.Key.Left:n=e.Key.Right;break;case e.Key.Right:n=e.Key.Left}switch(n){case e.Key.Left:!i.isCollapsed&&i.hasChildren?i.isCollapsed=!0:(i=i.parentNode)&&i.select();break;case e.Key.Right:i.isCollapsed&&i.hasChildren&&(i.isCollapsed=!1);break;case e.Key.Up:s=i.previous(!0,!0);break;case e.Key.Down:s=i.next(!0,!0);break;case e.Key.Home:s=this.getFirstNode(!0,!0);break;case e.Key.End:s=this.getLastNode(!0,!0);break;case e.Key.Space:if(this.selectedItem){var r=i.checkBox;r&&(i.isChecked=r.indeterminate||!r.checked)}break;case e.Key.Enter:this.selectedItem&&this.onItemClicked();break;default:o=!1}o&&(t.preventDefault(),s&&s.select())}}},i.prototype._keypress=function(t){var n=this;if(!t.defaultPrevented){if(t.ctrlKey||t.metaKey||t.altKey)return;if(t.target instanceof HTMLInputElement)return;if(this._edtNode)return;if(t.charCode>32&&this.startEditing(this.selectedNode)){var s=e.getActiveElement();if(e.contains(this._edtNode.element,s)){s.textContent=String.fromCharCode(t.charCode),t.preventDefault();var o=document.createRange();o.selectNodeContents(s),o.collapse(!1);var r=getSelection();r.removeAllRanges(),r.addRange(o)}return}if(t.charCode>32||32==t.charCode&&this._srch){t.preventDefault(),this._srch+=String.fromCharCode(t.charCode).toLowerCase(),this._toSrch&&clearTimeout(this._toSrch),this._toSrch=setTimeout(function(){n._toSrch=null,n._srch=""},i._AS_DLY);var a=this._findNext();null==a&&this._srch.length>1&&(this._srch=this._srch[this._srch.length-1],a=this._findNext()),null!=a&&(this.selectedItem=a)}}},i.prototype._findNext=function(){if(this.hostElement&&this.selectedItem){var e=this.getNode(this.selectedItem),t=e,n=!1,i=!1;for(1==this._srch.length&&(i=!0);t;){if(!t.isDisabled&&!i)if(0==t.element.textContent.trim().toLowerCase().indexOf(this._srch))return t.dataItem;var s=t.next(!0,!0);if(s==e&&n)break;s||n||(s=this.getFirstNode(!0,!0),n=!0),t=s,i=!1}}return null},i.prototype._loadTree=function(n){var s=this,o=this._root;if(o){if(!this.onLoadingItems(new e.CancelEventArgs))return;var r=this.containsFocus(),a=this._srcChanged;this._isDirty=!1,this._srcChanged=!1;var l=this.selectedItem;this.selectedItem=null,this._chkItems=null,this._ldLvl=-1;var d=void 0;if(n&&e.isFunction(window.Map)&&!a&&this.nodes.length>0){d=new Map;for(var h=this.hostElement.querySelectorAll("."+i._CND),c=0;c<h.length;c++){var u=h[c];e.hasClass(u,i._CCLD)&&d.set(u[i._DATAITEM_KEY],!0)}}if(o.innerHTML="",this._items&&this._items.forEach(function(e){s._addItem(o,0,e)}),d)for(h=this.hostElement.querySelectorAll("."+i._CND),c=0;c<h.length;c++){u=h[c];var p=t.TreeNode._isNodeList(u.nextElementSibling),_=!t.TreeNode._isEmpty(u),f=d.get(u[i._DATAITEM_KEY]);_&&(f||p)&&e.toggleClass(u,i._CCLD,1==f),e.setAttribute(u,"aria-expanded",_?(!e.hasClass(u,i._CCLD)).toString():null)}r&&!this.containsFocus()&&this.focus(),this.selectedItem=l,this.onLoadedItems(),this._ldLvl=-1,this._srcChanged=!1}},i.prototype._addItem=function(n,s,o){var r,a=this._dspPath.getValue(o,s),l=this._imgPath.getValue(o,s),d=e.asArray(this._itmPath.getValue(o,s),!0),h=document.createElement("div");e.addClass(h,i._CND),h.tabIndex=-1,e.setAttribute(h,"role","treeitem",!0),e.setAttribute(h,"aria-selected",!1);var c=document.createElement("span");if(this.isContentHtml?c.innerHTML=a:c.textContent=a,e.addClass(c,i._CNDT),h.appendChild(c),l){var u=document.createElement("img");u.src=l,h.insertBefore(u,h.firstChild)}if(this._showChk&&!this._lazyLoad&&((r=document.createElement("input")).type="checkbox",r.tabIndex=-1,e.addClass(r,i._CNDC),h.insertBefore(r,h.firstChild)),this._dd&&h.setAttribute("draggable","true"),n.appendChild(h),h[i._DATAITEM_KEY]=o,d&&0==d.length&&!this.lazyLoadFunction&&(d=null),d){var p=this.expandOnLoad;if(s>this._ldLvl&&p?(this._ldLvl=s,0==d.length&&(p=!1,e.addClass(h,i._CCLD))):(p=!1,e.addClass(h,i._CCLD),s<this._ldLvl&&(this._ldLvl=100)),d.length>0){var _=document.createElement("div");_.tabIndex=-1,e.addClass(_,i._CNDL);for(var f=0;f<d.length;f++)this._addItem(_,s+1,d[f]);n.appendChild(_),e.setAttribute(_,"role","group",!0)}e.setAttribute(h,"aria-expanded",p.toString(),!0)}else e.addClass(h,i._CEMP);r&&this.checkedMemberPath&&(d&&d.length?new t.TreeNode(this,h)._updateCheckedState():r.checked=this._chkPath.getValue(o,s));this.formatItem.hasHandlers&&this.onFormatItem(new t.FormatNodeEventArgs(o,h,s))},i.prototype._collapseToLevel=function(e,t,n){for(var i=0;i<e.length;i++){var s=e[i];s.hasPendingChildren||(s.isCollapsed=n>=t,s.hasChildren&&this._collapseToLevel(s.nodes,t,n+1))}},i.prototype._lazyLoadNode=function(t){var n=this.hostElement;e.hasClass(n,i._CLDG)||(e.addClass(n,i._CLDG),e.addClass(t.element,i._CLDG),this.lazyLoadFunction(t,this._lazyLoadCallback.bind(t)))},i.prototype._lazyLoadCallback=function(e){this.treeView._lazyLoadNodeDone(this,e)},i.prototype._lazyLoadNodeDone=function(t,n){var s=i;e.removeClass(t.element,s._CLDG),e.removeClass(this.hostElement,s._CLDG);var o=t.dataItem,r=t.level,a=e.asArray(n,!0);if(null==a||0==a.length)this._itmPath.setValue(o,r,null),e.addClass(t.element,s._CEMP),e.removeClass(t.element,s._CCLD);else if(a.length){this._itmPath.setValue(o,r,a);var l=document.createElement("div"),d=t.element;e.addClass(l,s._CNDL),d.parentElement.insertBefore(l,d.nextSibling);for(var h=0;h<a.length;h++)this._addItem(l,r+1,a[h]);t.isCollapsed=!1}},i._DATAITEM_KEY="wj-Data-Item",i._AS_DLY=600,i._AN_DLY=200,i._CND="wj-node",i._CNDL="wj-nodelist",i._CEMP="wj-state-empty",i._CNDT="wj-node-text",i._CNDC="wj-node-check",i._CSEL="wj-state-selected",i._CCLD="wj-state-collapsed",i._CCLG="wj-state-collapsing",i._CLDG="wj-state-loading",i.controlTemplate='<div wj-part="root"></div>',i}(e.Control);t.TreeView=n}(e.nav||(e.nav={}))}(wijmo||(wijmo={})),function(e){!function(t){var n=function(){function n(n){this._tree=e.asType(n,t.TreeView),this._dragstartBnd=this._dragstart.bind(this),this._dragoverBnd=this._dragover.bind(this),this._dropBnd=this._drop.bind(this),this._dragendBnd=this._dragend.bind(this);var i=this._tree,s=i.hostElement;i.addEventListener(s,"dragstart",this._dragstartBnd),i.addEventListener(s,"dragover",this._dragoverBnd),i.addEventListener(s,"dragleave",this._dragoverBnd),i.addEventListener(s,"drop",this._dropBnd),i.addEventListener(s,"dragend",this._dragendBnd),i.addEventListener(s,"keydown",this._keydown)}return n.prototype.dispose=function(){var e=this._tree,t=e.hostElement;e.removeEventListener(t,"dragstart",this._dragstartBnd),e.removeEventListener(t,"dragover",this._dragoverBnd),e.removeEventListener(t,"dragleave",this._dragoverBnd),e.removeEventListener(t,"drop",this._dropBnd),e.removeEventListener(t,"dragend",this._dragendBnd),e.removeEventListener(t,"keydown",this._keydown),this._showDragMarker()},n.prototype._dragstart=function(i){if(!i.defaultPrevented){var s=this._tree,o=e.closestClass(i.target,t.TreeView._CND),r=n;if(r._drgSrc=t.TreeNode._isNode(o)?new t.TreeNode(s,o):null,r._drgSrc){var a=new t.TreeNodeEventArgs(r._drgSrc);s.onDragStart(a)||(r._drgSrc=null)}r._drgSrc&&i.dataTransfer?(e._startDrag(i.dataTransfer,"copyMove"),i.stopPropagation()):i.preventDefault()}},n.prototype._dragover=function(e){this._handleDragDrop(e,!1)},n.prototype._drop=function(e){this._handleDragDrop(e,!0)},n.prototype._dragend=function(e){n._drgSrc=null,this._showDragMarker(),this._tree.onDragEnd()},n.prototype._keydown=function(t){t.defaultPrevented||t.keyCode==e.Key.Escape&&this._dragendBnd(null)},n.prototype._handleDragDrop=function(i,s){var o,r,a=this._tree,l=n,d=t.DropPosition,h=d.Into;if(!i.defaultPrevented&&l._drgSrc){var c=document.elementFromPoint(i.clientX,i.clientY),u=e.closestClass(c,t.TreeView._CND);if(null==u){var p=e.Control.getControl(e.closest(c,".wj-treeview"));p instanceof t.TreeView&&0==p.totalItemCount&&(u=p.hostElement)}if(u==l._drgSrc.element&&(u=null),u){r=u.getBoundingClientRect();var _=new t.TreeNode(a,u),f=_.hasPendingChildren?r.height/2:r.height/3;null==_.element?((r=e.Rect.fromBoundingRect(r)).inflate(-12,-12),h=d.Before):i.clientY<r.top+f?h=d.Before:(i.clientY>r.bottom-f||_.hasPendingChildren)&&(h=d.After,!_.hasChildren||_.isCollapsed||_.hasPendingChildren||(h=d.Before,r=(u=(_=_.next(!0,!1)).element).getBoundingClientRect())),l._drgSrc._contains(_)?u=null:((o=new t.TreeNodeDragDropEventArgs(l._drgSrc,_,h)).cancel=l._drgSrc.treeView!=_.treeView,a.onDragOver(o)||(u=null))}if(u)if((h=o.position)==d.Before){var g=o.dragSource.next(!0,!1);g&&g.element==u&&(u=null)}else if(h==d.After){var m=o.dragSource.previous(!0,!1);m&&m.element==u&&(u=null)}if(u&&!s?(i.dataTransfer.dropEffect="move",i.preventDefault(),i.stopPropagation(),this._showDragMarker(r,h)):this._showDragMarker(),u&&s&&a.onDrop(o)){a.hostElement.focus();var b=o.dragSource;b.move(o.dropTarget,o.position),b.ensureVisible(),b.select()}}},n.prototype._showDragMarker=function(i,s){var o=this._tree,r=n._dMarker.parentElement;if(i){var a=o.hostElement.getBoundingClientRect(),l=s==t.DropPosition.After?i.bottom:i.top,d={top:Math.round(l-a.top+o.hostElement.scrollTop-2),width:"75%",height:s==t.DropPosition.Into?i.height:4,opacity:s==t.DropPosition.Into?"0.15":""};o.rightToLeft?d.right=Math.round(a.right-i.right):d.left=Math.round(i.left-a.left),e.setCss(n._dMarker,d),r!=o._root&&o._root.appendChild(n._dMarker)}else r&&r.removeChild(n._dMarker)},n._dMarker="undefined"!=typeof window?e.createElement('<div class="wj-marker">&nbsp;</div>'):null,n}();t._TreeDragDropManager=n}(e.nav||(e.nav={}))}(wijmo||(wijmo={})),function(e){e.nav||(e.nav={}),e._registerModule("wijmo.nav",e.nav)}(wijmo||(wijmo={}));
var wijmo;!function(t){!function(e){var i=function(){function e(){this._dropEffect="move",this._effectAllowed="all",this._data={}}return Object.defineProperty(e.prototype,"dropEffect",{get:function(){return this._dropEffect},set:function(e){this._dropEffect=t.asString(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"effectAllowed",{get:function(){return this._effectAllowed},set:function(e){this._effectAllowed=t.asString(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"types",{get:function(){return Object.keys(this._data)},enumerable:!0,configurable:!0}),e.prototype.clearData=function(t){null!=t?delete this._data[t]:this._data=null},e.prototype.getData=function(t){return this._data[t]||""},e.prototype.setData=function(t,e){this._data[t]=e},e.prototype.setDragImage=function(e,i,o){var s=n._instance;s._imgCustom=e,s._imgOffset=new t.Point(i,o)},e}();e.DataTransfer=i;var n=function(){function e(){this._lastClick=0,this._isDragging=!1,t.assert(!e._instance,"DragDropTouch instance already created.");var i=!1;document.addEventListener("test",function(){},{get passive(){return i=!0,!0}});var n=document,o=this._touchstart.bind(this),s=this._touchmove.bind(this),r=this._touchend.bind(this),a=!!i&&{passive:!1,capture:!1};n.addEventListener("touchstart",o,a),n.addEventListener("touchmove",s,a),n.addEventListener("touchend",r),n.addEventListener("touchcancel",r)}return e.getInstance=function(){return e._instance},e.prototype._touchstart=function(t){if(this._shouldHandle(t)){var i=t.target;if(Date.now()-this._lastClick<e._DBLCLICK&&this._dispatchEvent(t,"dblclick",i))return t.preventDefault(),void this._reset();this._reset(),this._lastTouch=t}},e.prototype._touchmove=function(i){if(this._shouldHandle(i)){if(this._lastTouch=i,!this._isDragging){this._isDragging=!0;var n=i.target;if(!this._dispatchEvent(i,"mousemove",n)&&!this._dispatchEvent(i,"mousedown",n)){var o=t.closest(i.target,"[draggable]");o&&o.draggable&&(this._dragSource=o,this._ptDown=this._getPoint(i))}}var s=this._getTarget(i);if(this._dispatchEvent(i,"mousemove",s))return void i.preventDefault();if(this._dragSource&&!this._img)this._getDelta(i)>e._THRESHOLD&&(this._dispatchEvent(i,"dragstart",this._dragSource),this._createImage(i),this._dispatchEvent(i,"dragenter",s));this._img&&(i.preventDefault(),s!=this._lastTarget&&(this._dispatchEvent(i,"dragleave",this._lastTarget),this._dispatchEvent(i,"dragenter",s),this._lastTarget=s),this._moveImage(i),this._dispatchEvent(i,"dragover",s))}},e.prototype._touchend=function(t){if(this._shouldHandle(t)){var e=t.target,i=this._lastTouch;if(this._isDragging&&this._dispatchEvent(i,"mouseup",e))return void t.preventDefault();this._destroyImage(),this._dragSource&&(t.type.indexOf("cancel")<0&&this._dispatchEvent(i,"drop",this._lastTarget),this._dispatchEvent(i,"dragend",this._dragSource),this._reset())}},e.prototype._shouldHandle=function(t){return t&&!t.defaultPrevented&&t.touches&&t.touches.length<2},e.prototype._reset=function(){this._destroyImage(),this._dragSource=null,this._lastTouch=null,this._lastTarget=null,this._ptDown=null,this._dataTransfer=new i,this._isDragging=!1},e.prototype._getPoint=function(e,i){return e&&e.touches&&(e=e.touches[0]),t.assert(e&&"clientX"in e,"invalid event?"),1==i?new t.Point(e.pageX,e.pageY):new t.Point(e.clientX,e.clientY)},e.prototype._getDelta=function(t){var e=this._getPoint(t);return Math.abs(e.x-this._ptDown.x)+Math.abs(e.y-this._ptDown.y)},e.prototype._getTarget=function(t){for(var e=this._getPoint(t),i=document.elementFromPoint(e.x,e.y);i&&"none"==getComputedStyle(i).pointerEvents;)i=i.parentElement;return i},e.prototype._createImage=function(i){this._img&&this._destroyImage();var n=this._imgCustom||this._dragSource;if(this._img=n.cloneNode(!0),this._copyStyle(n,this._img),this._img.style.top=this._img.style.left="-9999px",!this._imgCustom){var o=n.getBoundingClientRect(),s=this._getPoint(i);this._imgOffset=new t.Point(s.x-o.left,s.y-o.top),this._img.style.opacity=e._OPACITY.toString()}this._moveImage(i),document.body.appendChild(this._img)},e.prototype._destroyImage=function(){this._img&&this._img.parentElement&&this._img.parentElement.removeChild(this._img),this._img=null,this._imgCustom=null},e.prototype._moveImage=function(e){var i=this;requestAnimationFrame(function(){if(i._img){var n=i._getPoint(e,!0);t.setCss(i._img,{position:"absolute",pointerEvents:"none",zIndex:999999,left:Math.round(n.x-i._imgOffset.x),top:Math.round(n.y-i._imgOffset.y)})}})},e.prototype._copyProps=function(t,e,i){for(var n in e)i.test(n)&&(t[n]=e[n])},e.prototype._copyStyle=function(t,e){if(["id","class","style","draggable"].forEach(function(t){e.removeAttribute(t)}),t instanceof HTMLCanvasElement){var i=t,n=e;n.width=i.width,n.height=i.height,n.getContext("2d").drawImage(i,0,0)}for(var o=getComputedStyle(t),s=0;s<o.length;s++){var r=o[s];r.indexOf("transition")<0&&r.indexOf("transform")<0&&(e.style[r]=o[r])}e.style.pointerEvents="none";for(s=0;s<t.children.length;s++)this._copyStyle(t.children[s],e.children[s])},e.prototype._dispatchEvent=function(t,e,i){if(t&&i){var n=document.createEvent("Event"),o=t.touches?t.touches[0]:t;return n.initEvent(e,!0,!0),n.button=0,n.which=n.buttons=1,this._copyProps(n,t,/Key$/),this._copyProps(n,o,/(X|Y)$/),n.dataTransfer=this._dataTransfer,i.dispatchEvent(n),n.defaultPrevented}return!1},e._instance=new e,e._THRESHOLD=5,e._OPACITY=.5,e._DBLCLICK=500,e._CTXMENU=900,e}();e.DragDropTouch=n}(t.touch||(t.touch={}))}(wijmo||(wijmo={})),function(t){t.touch||(t.touch={}),t._registerModule("wijmo.touch",t.touch)}(wijmo||(wijmo={}));
var wijmo,__extends=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}();!function(t){!function(t){var e=function(){function t(t){this._target=t}return t.prototype.undo=function(){if(this._actions)for(var t=this._actions.length-1;t>=0;t--)this._actions[t].undo();this.applyState(this._oldState)},t.prototype.redo=function(){this.applyState(this._newState),this._actions&&this._actions.forEach(function(t){t.redo()})},t.prototype.close=function(){return!0},t.prototype.applyState=function(t){},t.prototype.shouldAddAsChildAction=function(t){return!1},t.prototype.addChildAction=function(t){this._actions||(this._actions=[]),this._actions.push(t)},Object.defineProperty(t.prototype,"target",{get:function(){return this._target},enumerable:!0,configurable:!0}),t}();t.UndoableAction=e}(t.undo||(t.undo={}))}(wijmo||(wijmo={})),function(t){!function(e){var n=function(){function e(){}return e.addTarget=function(t,n){var o=e;if(n instanceof HTMLInputElement)return o._addInputElement(t,n);if(n instanceof HTMLTextAreaElement)return o._addTextAreaElement(t,n);if(n instanceof HTMLSelectElement)return o._addSelectElement(t,n);for(var i=!1,r=0;r<n.children.length;r++){var a=n.children[r];a instanceof HTMLElement&&t.addTarget(a)&&(i=!0)}return i},e._addInputElement=function(n,a){var c=null;if("checkbox"==a.type)a.addEventListener("click",function(t){n.pushAction(new i(t))});else{if("radio"==a.type){a.addEventListener("mousedown",function(t){c=new r(t)},!0);var s=e._getLabel(a);return s&&s.addEventListener("mousedown",function(t){c=new r({target:a})},!0),a.addEventListener("focus",function(t){c instanceof r&&c.target==t.target||(c=new r(t))}),a.addEventListener("click",function(t){c instanceof r&&(n.pushAction(c),c=null)}),!0}"range"==a.type&&(a.addEventListener("mousedown",function(e){var n=t.getActiveElement();n instanceof HTMLElement&&n!=a&&n.blur(),c=new o(e)}),a.addEventListener("mouseup",function(e){c instanceof o&&t.getActiveElement()!=a&&(c._focus=!1,n.pushAction(c),c=null)})),a.addEventListener("focus",function(t){null==c&&(c=new o(t))}),a.addEventListener("blur",function(t){c instanceof o&&(n.pushAction(c),c=null)})}return!0},e._addTextAreaElement=function(t,e){var n=null;return e.addEventListener("focus",function(t){n=new o(t)}),e.addEventListener("blur",function(e){n instanceof o&&(t.pushAction(n),n=null)}),!0},e._addSelectElement=function(t,e){var n=null;return e.addEventListener("focus",function(t){n=new o(t)}),e.addEventListener("blur",function(e){n instanceof o&&(t.pushAction(n),n=null)}),!0},e._getLabel=function(t){var e=t.parentElement;return e instanceof HTMLLabelElement||(e=document.querySelector('label[for="'+t.id+'"')),e},e}();e._UndoStackHTML=n;var o=function(n){function o(t){var e=n.call(this,t.target)||this;return e._focus=!0,e._oldState=e._target.value,e}return __extends(o,n),o.prototype.close=function(){return this._newState=this._target.value,this._newState!=this._oldState},o.prototype.applyState=function(n){var o=this._target;o.value=n,o.dispatchEvent(e.UndoStack._evtInput),this._focus&&(t.isFunction(o.select)?o.select():o.focus())},o}(e.UndoableAction);e.InputChangeAction=o;var i=function(e){function n(n){var o=e.call(this,n.target)||this;return t.assert("checkbox"==o._target.type,"checkbox expected"),o._newState=o._target.checked,o._oldState=!o._newState,o}return __extends(n,e),n.prototype.applyState=function(t){this._target.checked=t,this._target.focus()},n}(e.UndoableAction);e.CheckboxClickAction=i;var r=function(e){function n(n){var o=e.call(this,n.target)||this,i=o._target.type;return t.assert("radio"==i,"radio button expected"),o._oldState=o._getState(),o}return __extends(n,e),n.prototype.close=function(){return this._newState=this._getState(),this._newState!=this._oldState},n.prototype.applyState=function(t){t&&(t.checked=!0,t.focus())},n.prototype._getState=function(){for(var t='input[name="'+this._target.name+'"]',e=document.querySelectorAll(t),n=0;n<e.length;n++)if(e[n].checked)return e[n];return null},n}(e.UndoableAction);e.RadioClickAction=r}(t.undo||(t.undo={}))}(wijmo||(wijmo={})),function(t){!function(e){var n=function(){function n(e,o){var i=this;if(this._autoKbd=!0,this._stack=[],this._maxActions=1e3,this._ptr=0,this.addingTarget=new t.Event,this.addedTarget=new t.Event,this.addingAction=new t.Event,this.addedAction=new t.Event,this.undoingAction=new t.Event,this.undoneAction=new t.Event,this.redoingAction=new t.Event,this.redoneAction=new t.Event,this.stateChanged=new t.Event,!n._evtInput){var r=document.createEvent("HTMLEvents");r.initEvent("input",!0,!1),n._evtInput=r}t.copy(this,o),e=t.getElement(e||document.body),this.addTarget(e),document.addEventListener("keydown",function(n){if(i._autoKbd&&n.ctrlKey&&!n.defaultPrevented&&t.contains(e,n.target))switch(n.keyCode){case 90:i.canUndo&&(t.getActiveElement().blur(),setTimeout(function(){return i.undo()},100)),n.preventDefault();break;case 89:i.canRedo&&(t.getActiveElement().blur(),setTimeout(function(){return i.redo()},100)),n.preventDefault()}},t.getEventOptions(!0,!1))}return n.prototype.addTarget=function(n){var i=!1;if(t.isString(n)){for(var r=document.querySelectorAll(n),a=!1,c=0;c<r.length;c++)this.addTarget(r[c])&&(a=!0);return a}t.assert(n instanceof HTMLElement,"Undo target should be an HTML element");var s=new o(n);if(s.cancel=t.hasClass(n,"wj-no-undo"),this.onAddingTarget(s)){var u=t.Control.getControl(n);u&&(i=e._UndoStackWijmo.addTarget(this,u)),i||(i=e._UndoStackHTML.addTarget(this,n)),i&&this.onAddedTarget(s)}return i},Object.defineProperty(n.prototype,"autoKeyboard",{get:function(){return this._autoKbd},set:function(e){this._autoKbd=t.asBoolean(e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"isDisabled",{get:function(){return this._disabled},set:function(e){this._disabled=t.asBoolean(e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"maxActions",{get:function(){return this._maxActions},set:function(e){e!=this._maxActions&&(this._maxActions=t.asNumber(e,!1,!0),this.clear())},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"actionCount",{get:function(){return this._stack.length},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"canUndo",{get:function(){return this._stack.length>0&&this._ptr>0&&!this._disabled},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"canRedo",{get:function(){return this._stack.length>0&&this._ptr<this._stack.length&&!this._disabled},enumerable:!0,configurable:!0}),n.prototype.undo=function(){if(this.canUndo){var t=this._stack[this._ptr-1],e=new i(t);this.onUndoingAction(e)&&(this._ptr--,this._undoing=!0,t.undo(),this._undoing=!1,this._pendingAction=null,this.onUndoneAction(e),this.onStateChanged())}},n.prototype.redo=function(){if(this.canRedo){var t=this._stack[this._ptr],e=new i(t);this.onRedoingAction(e)&&(this._ptr++,this._undoing=!0,t.redo(),this._undoing=!1,this._pendingAction=null,this.onRedoneAction(e),this.onStateChanged())}},n.prototype.clear=function(){this._ptr=0,this._stack.splice(0,this._stack.length),this.onStateChanged()},n.prototype.pushAction=function(t){this._pendingAction=t,this.pushPendingAction()},n.prototype.onAddingTarget=function(t){return this.addingTarget.raise(this,t),!t.cancel},n.prototype.onAddedTarget=function(t){this.addedTarget.raise(this,t)},n.prototype.onAddingAction=function(t){return this.addingAction.raise(this,t),!t.cancel},n.prototype.onAddedAction=function(t){this.addedAction.raise(this,t)},n.prototype.onUndoingAction=function(t){return this.undoingAction.raise(this,t),!t.cancel},n.prototype.onUndoneAction=function(t){this.undoneAction.raise(this,t)},n.prototype.onRedoingAction=function(t){return this.redoingAction.raise(this,t),!t.cancel},n.prototype.onRedoneAction=function(t){this.redoneAction.raise(this,t)},n.prototype.onStateChanged=function(){this.stateChanged.raise(this,t.EventArgs.empty)},n.prototype.pushPendingAction=function(){if(!this._disabled&&!this._undoing&&this._pendingAction&&this._pendingAction.close()){if(this._stack.splice(this._ptr,this._stack.length-this._ptr),t.assert(this._stack.length==this._ptr,"should be at the end of the stack"),this._stack.length){var e=this._stack[this._ptr-1];if(e.shouldAddAsChildAction(this._pendingAction))return e.addChildAction(this._pendingAction),this._pendingAction=null,void this.onStateChanged()}var n=new i(this._pendingAction);if(!this.onAddingAction(n))return;this._stack.push(this._pendingAction),this._ptr++,this._pendingAction=null;var o=this._stack.length-this._maxActions;o>0&&(this._stack.splice(0,o),this._ptr-=o,t.assert(this._ptr>=0,"pointer should not be negative")),this.onStateChanged()}},n}();e.UndoStack=n;var o=function(t){function e(e){var n=t.call(this)||this;return n._target=e,n}return __extends(e,t),Object.defineProperty(e.prototype,"target",{get:function(){return this._target},enumerable:!0,configurable:!0}),e}(t.CancelEventArgs);e.AddTargetEventArgs=o;var i=function(t){function e(e){var n=t.call(this)||this;return n._action=e,n}return __extends(e,t),Object.defineProperty(e.prototype,"action",{get:function(){return this._action},enumerable:!0,configurable:!0}),e}(t.CancelEventArgs);e.UndoActionEventArgs=i}(t.undo||(t.undo={}))}(wijmo||(wijmo={})),function(t){!function(e){e.softInput=function(){return t._getModule("wijmo.input")},e.softGrid=function(){return t._getModule("wijmo.grid")},e.softGauge=function(){return t._getModule("wijmo.gauge")},e.softNav=function(){return t._getModule("wijmo.nav")}}(t.undo||(t.undo={}))}(wijmo||(wijmo={})),function(t){!function(e){var n=function(){function n(){}return n.addTarget=function(t,o){var i=n;return e.softGrid()&&o instanceof e.softGrid().FlexGrid?i._addFlexGrid(t,o):e.softGauge()&&o instanceof e.softGauge().Gauge?i._addGauge(t,o):e.softNav()&&o instanceof e.softNav().TreeView?i._addTreeView(t,o):!!i._isInputControl(o)&&i._addInputControl(t,o)},n._isInputControl=function(t){var n=e.softInput();return!!n&&(t instanceof n.DropDown||t instanceof n.InputMask||t instanceof n.InputNumber||t instanceof n.Calendar||t instanceof n.ColorPicker)},n._addInputControl=function(t,e){var n=null;return e.gotFocus.addHandler(function(){n=new o({target:e})}),e.lostFocus.addHandler(function(){n instanceof o&&(t.pushAction(n),n=null)}),!0},n._addGauge=function(t,e){if(!e.isReadOnly){var n=null;return e.hostElement.addEventListener("focus",function(){n||(n=new i(e))}),e.lostFocus.addHandler(function(){n instanceof i&&(t.pushAction(n),n=null)}),!0}return!1},n._addTreeView=function(t,e){var n=null;return e.nodeEditStarted.addHandler(function(t,e){n=new f(t,e)}),e.nodeEditEnded.addHandler(function(e,o){n instanceof f&&(t.pushAction(n),n=null)}),e.isCheckedChanging.addHandler(function(t,e){n=new p(t,e)}),e.isCheckedChanged.addHandler(function(e,o){n instanceof p&&(t.pushAction(n),n=null)}),!0},n._addFlexGrid=function(e,n){var o=null;return n.beginningEdit.addHandler(function(e,n){o=n.getRow()instanceof t.grid._NewRowTemplate?null:new r(e,n)}),n.cellEditEnded.addHandler(function(t,n){o instanceof r&&(e.pushAction(o),o=null)}),n.pastingCell.addHandler(function(t,e){o=e.getRow()?new r(t,e):null}),n.pastedCell.addHandler(function(t,n){o instanceof r&&(e.pushAction(o),o=null)}),n.sortingColumn.addHandler(function(t,e){o=new a(t,e)}),n.sortedColumn.addHandler(function(t,n){o instanceof a&&(e.pushAction(o),o=null)}),n.resizingColumn.addHandler(function(t,e){o instanceof c||(o=new c(t,e))}),n.resizedColumn.addHandler(function(){o instanceof c&&(e.pushAction(o),o=null)}),n.autoSizingColumn.addHandler(function(t,e){o=new c(t,e)}),n.autoSizedColumn.addHandler(function(){o instanceof c&&(e.pushAction(o),o=null)}),n.draggingColumn.addHandler(function(t,e){o=new s(t,e)}),n.draggedColumn.addHandler(function(t,n){o instanceof s&&(e.pushAction(o),o=null)}),n.rowAdded.addHandler(function(t,n){n.cancel||e.pushAction(new u(t,n))}),n.deletingRow.addHandler(function(t,n){n.cancel||e.pushAction(new d(t,n))}),n.columnGroupCollapsedChanging.addHandler(function(t,e){o=new l(t,e)}),n.columnGroupCollapsedChanged.addHandler(function(t,n){o instanceof l&&(e.pushAction(o),o=null)}),!0},n}();e._UndoStackWijmo=n;var o=function(n){function o(t){var e=n.call(this,t)||this;return e._ctl=t.target,e._oldState=e._getControlState(),e}return __extends(o,n),Object.defineProperty(o.prototype,"control",{get:function(){return this._ctl},enumerable:!0,configurable:!0}),o.prototype.close=function(){return this._timeStamp=Date.now(),this._newState=this._getControlState(),!this._sameContent(this._oldState,this._newState)},o.prototype.shouldAddAsChildAction=function(t){return t instanceof o&&t.target==this.target&&t._timeStamp-this._timeStamp<500&&(this._timeStamp=Date.now(),!0)},o.prototype.applyState=function(n){var o=this._ctl,i=e.softInput();if(i){var r=o instanceof i.Calendar||o instanceof i.InputDate;r&&o.selectionMode!=i.DateSelectionMode.Range&&(r=!1),o instanceof i.MultiSelect?o.checkedItems=n:o instanceof i.MultiAutoComplete?o.selectedItems=n:r?(o.value=n[0],o.rangeEnd=n[1]):"value"in o?o.value=n:"text"in o?o.text=n:t.assert(!1,"can't apply control state?"),o.focus()}},o.prototype._getControlState=function(){var n=this._ctl,o=e.softInput();if(o){var i=n instanceof o.Calendar||n instanceof o.InputDate;if(i&&n.selectionMode!=o.DateSelectionMode.Range&&(i=!1),n instanceof o.MultiSelect)return n.checkedItems.slice();if(n instanceof o.MultiAutoComplete)return n.selectedItems.slice();if(i)return[n.value,n.rangeEnd];if("value"in n)return n.value;if("text"in n)return n.text;t.assert(!1,"can't get control state?")}},o.prototype._sameContent=function(e,n){if(t.isArray(e)&&t.isArray(n)){if(e.length!=n.length)return!1;for(var o=0;o<e.length;o++)if(e[o]!=n[o])return!1;return!0}return t.isDate(e)||t.isDate(n)?t.DateTime.sameDate(e,n):e==n},o}(e.InputChangeAction),i=function(t){function e(e){var n=t.call(this,e)||this;return n._oldState=e.value,n}return __extends(e,t),Object.defineProperty(e.prototype,"control",{get:function(){return this._target},enumerable:!0,configurable:!0}),e.prototype.close=function(){return this._newState=this._target.value,this._newState!=this._oldState},e.prototype.applyState=function(t){var e=this._target;e.value=t,e.focus()},e}(e.UndoableAction),r=function(e){function n(n,o){var i=e.call(this,n)||this;i._dataItems=[];for(var r=n.collectionView,a=i._rng=o.range,c=a.topRow;c<=a.bottomRow;c++)i._dataItems.push(n.rows[c].dataItem);return i._page=r instanceof t.collections.CollectionView?r.pageIndex:-1,i._oldState=n.getCellData(o.row,o.col,!1),i}return __extends(n,e),Object.defineProperty(n.prototype,"control",{get:function(){return this._target},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"range",{get:function(){return this._rng.clone()},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"row",{get:function(){return this._rng.topRow},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"col",{get:function(){return this._rng.leftCol},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"dataItem",{get:function(){return this._dataItems[0]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"dataItems",{get:function(){return this._dataItems},enumerable:!0,configurable:!0}),n.prototype.close=function(){var t=this._target.collectionView;return(!t||!t.currentAddItem)&&(this._timeStamp=Date.now(),this._newState=this._target.getCellData(this.row,this.col,!1),this._newState!=this._oldState)},n.prototype.applyState=function(e){var n=this,o=this._target,i=o.editableCollectionView;i&&(i instanceof t.collections.CollectionView&&this._page>-1&&i.moveToPage(this._page),o.deferUpdate(function(){n._dataItems.forEach(function(t){i.editItem(t);for(var r=n._rng.leftCol;r<=n._rng.rightCol;r++){var a=o.columns[r],c=o._getBindingColumn(o.cells,n.row,a);c&&c._binding&&c._binding.setValue(t,e)}i.commitEdit()})})),o.select(o.selection.row,this.col),o.focus()},n.prototype.shouldAddAsChildAction=function(t){return t instanceof n&&t.target==this.target&&t._timeStamp-this._timeStamp<100},n}(e.UndoableAction),a=function(t){function e(e,n){var o=t.call(this,e)||this,i=o._target.collectionView;return i&&(o._oldState=i.sortDescriptions.slice()),o}return __extends(e,t),Object.defineProperty(e.prototype,"control",{get:function(){return this._target},enumerable:!0,configurable:!0}),e.prototype.close=function(){var t=this._target.collectionView;return!!t&&(this._newState=t.sortDescriptions.slice(),!0)},e.prototype.applyState=function(t){var e=this._target.collectionView;e&&e.deferUpdate(function(){var n=e.sortDescriptions;n.clear(),t.forEach(function(t){n.push(t)})}),this._target.focus()},e}(e.UndoableAction),c=function(t){function e(e,n){var o=t.call(this,e)||this;return o._col=e.columns[n.col],o._oldState=o._col.renderWidth,o}return __extends(e,t),Object.defineProperty(e.prototype,"control",{get:function(){return this._target},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"col",{get:function(){return this._col},enumerable:!0,configurable:!0}),e.prototype.close=function(){return this._timeStamp=Date.now(),this._newState=this._col.renderWidth,this._newState!=this._oldState},e.prototype.applyState=function(t){this._col.width=t,this._target.focus()},e.prototype.shouldAddAsChildAction=function(t){return t instanceof e&&t.target==this.target&&t._timeStamp-this._timeStamp<100},e}(e.UndoableAction),s=function(e){function n(t,n){var o=e.call(this,t)||this;return o._col=n.getColumn(!0),o._oldState=o._getState(o._col),o}return __extends(n,e),Object.defineProperty(n.prototype,"control",{get:function(){return this._target},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"col",{get:function(){return this._col},enumerable:!0,configurable:!0}),n.prototype.close=function(){return this._newState=this._getState(this._col),!this._areStatesEqual(this._newState,this._oldState)},n.prototype.applyState=function(t){var e=this,n=this._col;n.grid.deferUpdate(function(){var o=e._getState(n);o.coll.splice(o.idx,1),t.coll.splice(t.idx,0,n)}),this._target.focus()},n.prototype._getState=function(e){var n=e instanceof t.grid.ColumnGroup?e.parentGroup?e.parentGroup.columns:this.target.getColumnGroups():e.grid.columns;return{coll:n,idx:n.indexOf(e)}},n.prototype._areStatesEqual=function(t,e){return t.coll===e.coll&&t.idx===e.idx},n}(e.UndoableAction),u=function(e){function n(t,n){var o=e.call(this,t)||this,i=o._target.collectionView;if(i&&i.currentAddItem){var r=i.currentAddItem,a=i.sourceCollection.indexOf(r),c=i.currentPosition;o._oldState={item:r,index:a,position:c},o._newState={index:a,position:c}}return o}return __extends(n,e),Object.defineProperty(n.prototype,"control",{get:function(){return this._target},enumerable:!0,configurable:!0}),n.prototype.close=function(){return null!=this._oldState},n.prototype.applyState=function(e){var n=this._target.collectionView;if(n){var o=n.sourceCollection;if(e.item){if(o.splice(e.index,1),n instanceof t.collections.CollectionView&&n.trackChanges){var i=e.item;t.assert(n.itemsAdded.indexOf(i)>-1,"item should be in the itemsAdded list"),n.itemsAdded.remove(i)}}else{i=this._oldState.item;o.splice(e.index,0,i),n instanceof t.collections.CollectionView&&n.trackChanges&&(t.assert(n.itemsAdded.indexOf(i)<0,"item should not be in the itemsAdded list"),n.itemsAdded.push(i))}n.refresh(),n.moveCurrentToPosition(e.position),this._target.focus()}},n}(e.UndoableAction),d=function(n){function o(e,o){var i=n.call(this,e)||this;i._edtIndex=-1;var r=i._target.collectionView;if(r){var a=e.rows[o.row].dataItem,c=r.sourceCollection.indexOf(a),s=r.currentPosition;r instanceof t.collections.CollectionView&&r.trackChanges&&(i._edtIndex=r.itemsEdited.indexOf(a)),i._oldState={item:a,index:c,position:s},i._newState={index:c,position:s}}return i}return __extends(o,n),Object.defineProperty(o.prototype,"control",{get:function(){return this._target},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"dataItem",{get:function(){return this._oldState.item},enumerable:!0,configurable:!0}),o.prototype.close=function(){return this._timeStamp=Date.now(),null!=this._oldState},o.prototype.applyState=function(n){var o=this._target,i=o.collectionView;if(i){var r=i.sourceCollection;if(n.item){if(r.splice(n.index,0,n.item),i instanceof t.collections.CollectionView&&i.trackChanges){var a=n.item;t.assert(i.itemsRemoved.indexOf(a)>-1,"item should be in the itemsRemoved list"),i.itemsRemoved.remove(a),this._edtIndex>-1&&i.itemsEdited.indexOf(a)<0&&i.itemsEdited.push(a)}}else if(r.splice(n.index,1),i instanceof t.collections.CollectionView&&i.trackChanges){a=this._oldState.item;t.assert(i.itemsRemoved.indexOf(a)<0,"item should not be in the itemsRemoved list"),i.itemsRemoved.push(a)}i.refresh(),i.moveCurrentToPosition(n.position);var c=new(e.softGrid().CellRange)(n.position,0,n.position,o.columns.length-1);o.select(c),o.focus()}},o.prototype.shouldAddAsChildAction=function(t){return t instanceof o&&t.target==this.target&&t._timeStamp-this._timeStamp<100},o}(e.UndoableAction),l=function(t){function e(e,n){var o=t.call(this,e)||this;return o._group=n.data,o._oldState=o._group.isCollapsed,o}return __extends(e,t),Object.defineProperty(e.prototype,"control",{get:function(){return this._target},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"group",{get:function(){return this._group},enumerable:!0,configurable:!0}),e.prototype.close=function(){return this._newState=this._group.isCollapsed,this._newState!=this._oldState},e.prototype.applyState=function(t){this._group.isCollapsed=t,this._target.focus()},e}(e.UndoableAction),f=function(t){function e(e,n){var o=t.call(this,e)||this;return o._nd=n.node,o._oldState=o._getNodeText(),o}return __extends(e,t),Object.defineProperty(e.prototype,"control",{get:function(){return this._target},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"node",{get:function(){return this._nd},enumerable:!0,configurable:!0}),e.prototype.close=function(){return this._newState=this._getNodeText(),this._newState!=this._oldState},e.prototype.applyState=function(t){this._nd.select(),this._setNodeText(t),this._target.focus()},e.prototype._getNodeText=function(){var t=this._nd.dataItem[this._getDisplayMemberPath()];return null!=t?t.toString():""},e.prototype._setNodeText=function(t){var e=this._nd,n=e.dataItem,o=this._getDisplayMemberPath(),i=e.element.querySelector(".wj-node-text");n[o]=t,e.treeView.isContentHtml?i.innerHTML=t:i.textContent=t},e.prototype._getDisplayMemberPath=function(){var t=this._nd,e=t.treeView.displayMemberPath;return e instanceof Array&&(e=e[t.level]),e},e}(e.UndoableAction),p=function(t){function e(e,n){var o=t.call(this,e)||this;return o._nd=n.node,o._oldState=o._nd.isChecked,o}return __extends(e,t),Object.defineProperty(e.prototype,"control",{get:function(){return this._target},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"node",{get:function(){return this._nd},enumerable:!0,configurable:!0}),e.prototype.close=function(){return this._newState=this._nd.isChecked,this._newState!=this._oldState},e.prototype.applyState=function(t){this._nd.select(),this._nd.isChecked=t,this._target.focus()},e}(e.UndoableAction)}(t.undo||(t.undo={}))}(wijmo||(wijmo={})),function(t){t.undo||(t.undo={}),t._registerModule("wijmo.undo",t.undo)}(wijmo||(wijmo={}));
var c1;(function(n){var t;(function(n){"use strict";function r(n){var s;if(!t[n])throw"Invalid button type.";var e=t[n],o=document.createElement("div"),r=22,f=22;switch(n){case"MoveIndicator":r=40;f=10;break;case"Resize":case"ResizeLeft":r=10;f=10;break;case"Left":case"Right":r=18;f=36;break;case"Top":case"Bottom":r=36;f=18;break;case"LeftRight":r=12;f=36;break;case"TopBottom":r=36;f=12;break;case"Center":r=36;f=36;break;case"MoveFile":r=15;f=16;break;case"Download":r=15;f=16;break;case"Upload":r=15;f=16;break;case"Delete":r=15;f=15;break;case"ArrowUp":r=13;f=12;break;case"Folder":r=15;f=15;break;case"Triangle":r=16;f=15;break;case"CreateFolder":r=15;f=16;break;case"ExcelFile":r=15;f=15;break;case"ImageFile":r=15;f=15;break;case"DocFile":r=15;f=15;break;case"PdfFile":r=15;f=15;break;case"File":r=15;f=15;break;case"Refresh":r=15;f=15;break;case"Search":r=15;f=15;break;case"ThumbnaiLView":r=30;f=30;break;case"ListView":r=30;f=30;break;case"DetailView":r=30;f=30;break;case"BigExcel":r=72;f=72;break;case"BigImage":r=72;f=72;break;case"BigPdf":r=72;f=72;break;case"BigDoc":r=72;f=72;break;case"BigFile":r=72;f=72;break;case"BigFolder":r=72;f=72}return e=u(r,f)+e+i,s=wijmo.createElement(e,o),wijmo.addClass(o,"wj-dl-btn"),o}function u(n,t){n===void 0&&(n=22);t===void 0&&(t=22);var i=480,r=480;return t!=72&&(i=n,r=t),'<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox ="0 0 '+i+" "+r+'" style="enable-background:new 0 0 '+i+" "+r+"; width: "+n+"px; height: "+t+'px;" xml: space ="preserve" >'}function f(n){return n&&n.parentNode?n.parentNode.removeChild(n):null}function e(n,t){return Math.pow(n.x-t.x,2)+Math.pow(n.y-t.y,2)}function o(n,t){var r=this,u=function(n){for(var u=n.split("."),t=window||r,i=0,f=u.length;i<f;i++)t=t[u[i]];if(typeof t!="function")throw new Error("function not found");return t},f=u(n),i=Object.create(f.prototype);return i.constructor.apply(i,t),i}function s(n,t){wijmo.hasClass(n,t)||wijmo.addClass(n,t)}function h(n,t){wijmo.hasClass(n,t)&&wijmo.removeClass(n,t)}var i="<\/svg>",t={Move:'<g><rect x="11" y= "4" width="1" height="6" /><rect x="10" y= "5" width="3" height="1" /><rect x="9" y= "6" width="5" height="1" /><\/g><g><rect x="11" y= "13" transform="matrix(-1 -1.224647e-16 1.224647e-16 -1 23 32)" width="1" height="6" /><rect x="10" y= "17" transform="matrix(-1 -1.224647e-16 1.224647e-16 -1 23 35)" width="3" height="1" /><rect x="9" y= "16" transform="matrix(-1 -1.224647e-16 1.224647e-16 -1 23 33)" width="5" height="1" /><\/g><g><rect x="15.5" y= "8.5" transform="matrix(-1.836970e-16 1 -1 -1.836970e-16 27.5 -4.5)" width="1" height="6" /><rect x="16" y= "11" transform="matrix(-1.836970e-16 1 -1 -1.836970e-16 29 -6)" width="3" height="1" /><rect x="14" y= "11" transform="matrix(-1.836970e-16 1 -1 -1.836970e-16 28 -5)" width="5" height="1" /><\/g><g><rect x="6.5" y= "8.5" transform="matrix(6.123234e-17 -1 1 6.123234e-17 -4.5 18.5)" width="1" height="6" /><rect x="4" y= "11" transform="matrix(6.123234e-17 -1 1 6.123234e-17 -6 17)" width="3" height="1" /><rect x="4" y= "11" transform="matrix(6.123234e-17 -1 1 6.123234e-17 -5 18)" width="5" height="1" /><\/g>',More:'<rect x="10" y= "4" width="2" height="2" /><rect x="10" y= "4" transform="matrix(-1.836970e-16 1 -1 -1.836970e-16 16 -6)" width="2" height="2" /><rect x="10" y= "10" transform="matrix(-1.836970e-16 1 -1 -1.836970e-16 22 1.776357e-15)" width="2" height="2" /><rect x="10" y= "16" width="2" height="2" /><rect x="9" y= "3" class="wj-db-opacity02" width="1" height="1" /><rect x="12" y= "3" class="wj-db-opacity02" width="1" height="1" /><rect x="9" y= "6" class="wj-db-opacity02" width="1" height="1" /><rect x="12" y= "6" class="wj-db-opacity02" width="1" height="1" /><rect x="9" y= "9" class="wj-db-opacity02" width="1" height="1" /><rect x="12" y= "9" class="wj-db-opacity02" width="1" height="1" /><rect x="9" y= "12" class="wj-db-opacity02" width="1" height="1" /><rect x="12" y= "12" class="wj-db-opacity02" width="1" height="1" /><rect x="9" y= "15" class="wj-db-opacity02" width="1" height="1" /><rect x="12" y= "15" class="wj-db-opacity02" width="1" height="1" /><rect x="9" y= "18" class="wj-db-opacity02" width="1" height="1" /><rect x="12" y= "18" class="wj-db-opacity02" width="1" height="1" /><rect x="10" y= "3" class="wj-db-opacity08" width="2" height="1" /><rect x="10" y= "6" class="wj-db-opacity08" width="2" height="1" /><rect x="11.5" y= "4.5" transform="matrix(-1.836970e-16 1 -1 -1.836970e-16 17.5 -7.5)" class="wj-db-opacity08" width="2" height="1" /><rect x="8.5" y= "4.5" transform="matrix(-1.836970e-16 1 -1 -1.836970e-16 14.5 -4.5)" class="wj-db-opacity08" width="2" height="1" /><rect x="10" y= "9" class="wj-db-opacity08" width="2" height="1" /><rect x="10" y= "12" class="wj-db-opacity08" width="2" height="1" /><rect x="11.5" y= "10.5" transform="matrix(-1.836970e-16 1 -1 -1.836970e-16 23.5 -1.5)" class="wj-db-opacity08" width="2" height="1" /><rect x="8.5" y= "10.5" transform="matrix(-1.836970e-16 1 -1 -1.836970e-16 20.5 1.5)" class="wj-db-opacity08" width="2" height="1" /><rect x="10" y= "15" class="wj-db-opacity08" width="2" height="1" /><rect x="10" y= "18" class="wj-db-opacity08" width="2" height="1" /><rect x="11.5" y= "16.5" transform="matrix(-1.836970e-16 1 -1 -1.836970e-16 29.5 4.5)" class="wj-db-opacity08" width="2" height="1" /><rect x="8.5" y= "16.5" transform="matrix(-1.836970e-16 1 -1 -1.836970e-16 26.5 7.5)" class="wj-db-opacity08" width="2" height="1" />',Expand:'<rect x="3" y= "10" width="1" height="9"/><rect x="7" y= "14" transform="matrix(-1.836970e-16 1 -1 -1.836970e-16 26 11)" width="1" height="9"/><rect x="12" y= "13" width="1" height="6"/><rect x="5.5" y= "6.5" transform="matrix(-1.836970e-16 1 -1 -1.836970e-16 15.5 3.5)" width="1" height="6"/><rect x="7" y= "14" width="1" height="1"/><rect x="8" y= "13" width="1" height="1"/><rect x="9" y= "12" width="1" height="1"/><rect x="10" y= "11" width="1" height="1"/><rect x="10" y= "11" width="1" height="1"/><rect x="11" y= "10" width="1" height="1"/><rect x="12" y= "9" width="1" height="1"/><rect x="13" y= "8" width="1" height="1"/><rect x="14" y= "7" class="wj-db-opacity08" width="1" height="1"/><rect x="3" y= "3" width="1" height="3"/><rect x="4" y= "2" transform="matrix(-1.836970e-16 1 -1 -1.836970e-16 8 -1)" width="1" height="3"/><rect x="17" y= "2" transform="matrix(-1.836970e-16 1 -1 -1.836970e-16 21 -14)" width="1" height="3"/><rect x="18" y= "3" transform="matrix(-1 -1.224647e-16 1.224647e-16 -1 37 9)" width="1" height="3"/><rect x="13" y= "4" transform="matrix(-1.836970e-16 1 -1 -1.836970e-16 20 -7)" width="1" height="5"/><rect x="15" y= "6" transform="matrix(-1 -1.224647e-16 1.224647e-16 -1 31 17)" width="1" height="5"/><rect x="18" y= "16" transform="matrix(-1 -1.224647e-16 1.224647e-16 -1 37 35)" width="1" height="3"/><rect x="17" y= "17" transform="matrix(-1.836970e-16 1 -1 -1.836970e-16 36 1)" width="1" height="3"/><rect x="3" y= "7" width="1" height="1"/><rect x="18" y= "7" width="1" height="2"/><rect x="18" y= "10" width="1" height="1"/><rect x="18" y= "11" width="1" height="1"/><rect x="18" y= "13" width="1" height="2"/><rect x="7" y= "3" transform="matrix(6.123234e-17 -1 1 6.123234e-17 4 11)" width="1" height="1"/><rect x="8" y= "3" transform="matrix(6.123234e-17 -1 1 6.123234e-17 5 12)" width="1" height="1"/><rect x="10.5" y= "2.5" transform="matrix(6.123234e-17 -1 1 6.123234e-17 7.5 14.5)" width="1" height="2"/><rect x="13.5" y= "2.5" transform="matrix(6.123234e-17 -1 1 6.123234e-17 10.5 17.5)" width="1" height="2" /><rect x="14" y= "18" transform="matrix(6.123234e-17 -1 1 6.123234e-17 -4 33)" width="1" height="1" />',Collapse:'<rect x="10" y= "18" transform="matrix(-1.836970e-16 1 -1 -1.836970e-16 29 8)" width="1" height="1" /><rect x="9" y= "18" transform="matrix(-1.836970e-16 1 -1 -1.836970e-16 28 9)" width="1" height="1" /><rect x="6.5" y= "17.5" transform="matrix(-1.836970e-16 1 -1 -1.836970e-16 25.5 11.5)" width="1" height="2" /><rect x="4" y= "18" transform="matrix(-1.836970e-16 1 -1 -1.836970e-16 23 14)" width="1" height="1" /><rect x="3" y= "18" transform="matrix(-1.836970e-16 1 -1 -1.836970e-16 22 15)" width="1" height="1" /><rect x="3" y= "17" transform="matrix(-1.836970e-16 1 -1 -1.836970e-16 21 14)" width="1" height="1" /><rect x="2.5" y= "14.5" transform="matrix(-1.836970e-16 1 -1 -1.836970e-16 18.5 11.5)" width="2" height="1" /><rect x="2.5" y= "11.5" transform="matrix(-1.836970e-16 1 -1 -1.836970e-16 15.5 8.5)" width="2" height="1" /><rect x="4" y= "11" transform="matrix(-1.836970e-16 1 -1 -1.836970e-16 16 7)" width="1" height="1" /><rect x="6.5" y= "10.5" transform="matrix(-1.836970e-16 1 -1 -1.836970e-16 18.5 4.5)" width="1" height="2" /><rect x="9" y= "11" transform="matrix(-1.836970e-16 1 -1 -1.836970e-16 21 2)" width="1" height="1" /><rect x="10" y= "11" transform="matrix(-1.836970e-16 1 -1 -1.836970e-16 22 1)" width="1" height="1" /><rect x="10" y= "12" transform="matrix(-1.836970e-16 1 -1 -1.836970e-16 23 2)" width="1" height="1" /><rect x="9.5" y= "14.5" transform="matrix(-1.836970e-16 1 -1 -1.836970e-16 25.5 4.5)" width="2" height="1" /><rect x="10" y= "17" transform="matrix(-1.836970e-16 1 -1 -1.836970e-16 28 7)" width="1" height="1" /><rect x="3" y= "3" width="1" height="7" /><rect x="10" y= "-4" transform="matrix(-1.836970e-16 1 -1 -1.836970e-16 14 -7)" width="1" height="15" /><rect x="18" y= "3" transform="matrix(-1 -1.224647e-16 1.224647e-16 -1 37 19)" width="1" height="13" /><rect x="13" y= "8" class="wj-db-opacity08" width="1" height="1" /><rect x="14" y= "7" width="1" height="1" /><rect x="15" y= "6" width="1" height="1" /><rect x="16" y= "5" width="1" height="1" /><rect x="13.5" y= "7.5" transform="matrix(6.123234e-17 -1 1 6.123234e-17 4.5 23.5)" width="1" height="4" /><rect x="12" y= "6" width="1" height="4" /><rect x="18" y= "16" transform="matrix(-1 -1.224647e-16 1.224647e-16 -1 37 35)" width="1" height="3" /><rect x="15" y= "15" transform="matrix(-1.836970e-16 1 -1 -1.836970e-16 34 3)" width="1" height="7" />',Hide:'<rect x="5" y= "5" width="1" height="3" /><rect x="17" y= "5" width="1" height="3" /><rect x="11" y= "1" transform="matrix(6.123234e-17 -1 1 6.123234e-17 4 19)" width="1" height="13" /><rect x="11" y= "-1" transform="matrix(6.123234e-17 -1 1 6.123234e-17 6 17)" width="1" height="13" /><rect x="6" y= "9" width="1" height="9" /><rect x="16" y= "9" width="1" height="9" /><rect x="9" y= "4" width="1" height="1" /><rect x="13" y= "4" width="1" height="1" /><rect x="10" y= "3" width="3" height="1" /><rect x="8" y= "9" width="1" height="8" /><rect x="10" y= "9" width="1" height="8" /><rect x="12" y= "9" width="1" height="8" /><rect x="14" y= "9" width="1" height="8" /><rect x="6" y= "18" class="wj-db-opacity02" width="1" height="1" /><rect x="16" y= "18" class="wj-db-opacity02" width="1" height="1" /><rect x="9" y= "3" class="wj-db-opacity02" width="1" height="1" /><rect x="13" y= "3" class="wj-db-opacity02" width="1" height="1" /><rect x="7" y= "18" width="9" height="1" />',Resize:'<rect x="0" y= "8" width="1" height="1" /><rect x="1" y= "7" width="1" height="1" /><rect x="2" y= "6" width="1" height="1" /><rect x="3" y= "5" width="1" height="1" /><rect x="4" y= "4" width="1" height="1" /><rect x="5" y= "3" width="1" height="1" /><rect x="6" y= "2" width="1" height="1" /><rect x="7" y= "1" width="1" height="1" /><rect x="2" y= "8" width="1" height="1" /><rect x="3" y= "7" width="1" height="1" /><rect x="4" y= "6" width="1" height="1" /><rect x="5" y= "5" width="1" height="1" /><rect x="6" y= "4" width="1" height="1" /><rect x="7" y= "3" width="1" height="1" /><rect x="4" y= "8" width="1" height="1" /><rect x="5" y= "7" width="1" height="1" /><rect x="6" y= "6" width="1" height="1" /><rect x="7" y= "5" width="1" height="1" /><rect x="6" y= "8" width="1" height="1" /><rect x="7" y= "7" width="1" height="1" /><rect x="8" y= "8" width="1" height="1" /><rect x="8" y= "6" width="1" height="1" /><rect x="8" y= "4" width="1" height="1" /><rect x="8" y= "2" width="1" height="1" /><g><rect x="1" y= "8" width="1" height="1" /><rect x="2" y= "7" width="1" height="1" /><rect x="3" y= "6" width="1" height="1" /><rect x="4" y= "5" width="1" height="1" /><rect x="5" y= "4" width="1" height="1" /><rect x="6" y= "3" width="1" height="1" /><rect x="7" y= "2" width="1" height="1" /><rect x="3" y= "8" width="1" height="1" /><rect x="4" y= "7" width="1" height="1" /><rect x="5" y= "6" width="1" height="1" /><rect x="6" y= "5" width="1" height="1" /><rect x="7" y= "4" width="1" height="1" /><rect x="5" y= "8" width="1" height="1" /><rect x="6" y= "7" width="1" height="1" /><rect x="7" y= "6" width="1" height="1" /><rect x="7" y= "8" width="1" height="1" /><rect x="8" y= "7" width="1" height="1" /><rect x="8" y= "5" width="1" height="1" /><rect x="8" y= "3" width="1" height="1" /><rect x="8" y= "1" width="1" height="1" /><\/g>',ResizeLeft:'<rect x="1" y = "1" width="1" height="1" /><rect x="2" y = "2" width="1" height="1" /><rect x="3" y = "3" width="1" height="1" /><rect x="4" y = "4" width="1" height="1" /><rect x="5" y = "5" width="1" height="1" /><rect x="6" y = "6" width="1" height="1" /><rect x="7" y = "7" width="1" height="1" /><rect x="8" y = "8" width="1" height="1" /><rect x="1" y = "3" width="1" height="1" /><rect x="2" y = "4" width="1" height="1" /><rect x="3" y = "5" width="1" height="1" /><rect x="4" y = "6" width="1" height="1" /><rect x="5" y = "7" width="1" height="1" /><rect x="6" y = "8" width="1" height="1" /><rect x="1" y = "5" width="1" height="1" /><rect x="2" y = "6" width="1" height="1" /><rect x="3" y = "7" width="1" height="1" /><rect x="4" y = "8" width="1" height="1" /><rect x="1" y = "7" width="1" height="1" /><rect x="2" y = "8" width="1" height="1" /><g><rect x="1" y = "2" width="1" height="1" /><rect x="2" y = "3" width="1" height="1" /><rect x="3" y = "4" width="1" height="1" /><rect x="4" y = "5" width="1" height="1" /><rect x="5" y = "6" width="1" height="1" /><rect x="6" y = "7" width="1" height="1" /><rect x="7" y = "8" width="1" height="1" /><rect x="1" y = "4" width="1" height="1" /><rect x="2" y = "5" width="1" height="1" /><rect x="3" y = "6" width="1" height="1" /><rect x="4" y = "7" width="1" height="1" /><rect x="5" y = "8" width="1" height="1" /><rect x="1" y = "6" width="1" height="1" /><rect x="2" y = "7" width="1" height="1" /><rect x="3" y = "8" width="1" height="1" /><rect x="1" y = "8" width="1" height="1" /><\/g>',MoveIndicator:'<g class="wj-svg-btn-info"><rect x="10" y= "2" width="1" height="5"/><rect x="12" y= "2" width="1" height="5"/><rect x="14" y= "2" width="1" height="5"/><rect x="16" y= "2" width="1" height="5"/><rect x="18" y= "2" width="1" height="5"/><rect x="20" y= "2" width="1" height="5"/><rect x="22" y= "2" width="1" height="5"/><rect x="24" y= "2" width="1" height="5"/><rect x="26" y= "2" width="1" height="5"/><rect x="28" y= "2" width="1" height="5"/><rect x="30" y= "2" width="1" height="5"/><\/g>',Left:'<polygon class="border" points="18,29 6,29 6,9 18,9 18,8 5,8 5,30 18,30"/><rect x="6" y="9" class="gap" width="12" height="20"/><rect x="8.5" y="11.5" class="rectangle" width="7" height="15"/>',LeftRight:'<rect y="9" class="gap" width="12" height="20"/><rect x="2.5" y="11.5" class="rectangle" width="7" height="15"/><g><rect y="29" class="border" width="12" height="1"/><rect y="8" class="border" width="12" height="1"/><\/g>',Right:'<polygon class="border" points="0,9 12,9 12,29 0,29 0,30 13,30 13,8 0,8"/><rect y="9" class="gap" width="12" height="20"/><rect x="2.5" y="11.5" class="rectangle" width="7" height="15"/>',Top:'<polygon class="border" points="8,18 8,6 28,6 28,18 29,18 29,5 7,5 7,18"/><rect x="8" y="6" class="gap" width="20" height="12"/><rect x="10.5" y="8.5" class="rectangle" width="15" height="7"/>',TopBottom:'<rect x="8" class="gap" width="20" height="12"/><rect x="10.5" y="2.5" class="rectangle" width="15" height="7"/><g><rect x="28" class="border" width="1" height="12"/><rect x="7" class="border" width="1" height="12"/><\/g>',Bottom:'<polygon class="border" points="28,0 28,12 8,12 8,0 7,0 7,13 29,13 29,0 "/><rect x="8" class="gap" width="20" height="12"/><rect x="10.5" y="2.5" class="rectangle" width="15" height="7"/>',Center:'<polygon class="gap" points="36,9 28,9 28,0 8,0 8,9 0,9 0,29 8,29 8,36 28,36 28,29 36,29 "/><g><polygon class="border" points="36,29 28,29 28,36 29,36 29,30 36,30"/><polygon class="border" points="0,9 8,9 8,0 7,0 7,8 0,8"/><polygon class="border" points="29,0 28,0 28,9 36,9 36,8 29,8"/><polygon class="border" points="7,36 8,36 8,29 0,29 0,30 7,30"/><\/g><polygon class="arrow" points="18,1.7 15.1,6.7 20.9,6.7 "/><polygon class="arrow" points="35.4,19.1 30.4,16.2 30.4,22 "/><polygon class="arrow" points="18.1,36.4 21,31.4 15.2,31.4 "/><polygon class="arrow" points="0.7,19 5.7,21.9 5.7,16.1 "/><rect x="10.5" y="12.5" class="light rectangle" width="15" height="15"/>',ShowAll:'<rect x="3" y= "3" width="1" height="12" /><rect x="3" y= "14" class="wj-db-opacity05" width="2" height="1" /><rect x="3" y= "3" width="10" height="1" /><rect x="12" y= "3" class="wj-db-opacity05" width="1" height="2" /><rect x="5" y= "5" width="1" height="12" /><rect x="5" y= "16" class="wj-db-opacity05" width="2" height="1" /><rect x="5" y= "5" width="11" height="1" /><rect x="15" y= "5" class="wj-db-opacity05" width="1" height="2" /><rect x="7" y= "7" width="1" height="12" /><rect x="7" y= "18" width="11" height="1" /><rect x="7" y= "7" width="11" height="1" /><rect x="17" y= "7" width="1" height="2" /><path style="fill:none" d= "M11,9h8v8h-8V9z" /><path d= "M17.3,10.9l-0.7-0.7l-3,3l0.7,0.7C14.3,13.9,17.3,10.9,17.3,10.9z M19.3,10.2l-5,5l-2-2l-0.7,0.7l2.6,2.6l5.7-5.7L19.3, 10.2z M9, 13.9l2.6,2.6l0.7-0.7l-2.6-2.6C9.7, 13.3,9,13.9,9,13.9z"/>',MoveFile:'<path d="M14.03,4H8.24L7.28,2H1.97C1.43,2,1,2.53,1,3.18v10.65C1,14.47,1.43,15,1.96,15h12.08c0.53,0,0.96-0.53,0.96-1.18V5.29C15,4.64,14.57,4,14.03,4z M14,13.82c0,0.09-0.02,0.15-0.04,0.18H2.04C2.02,13.97,2,13.91,2,13.82v-2.84h4.91l-1.63,1.63l0.71,0.71l2.12-2.12l0.71-0.71L8.11,9.78L5.99,7.66L5.28,8.37L6.91,10H2V7h12V13.82z M14,6H2V3.18C2,3.09,2.02,3.03,2.04,3h4.61l0.69,1.43L7.61,5h0.63h5.67C13.95,5.06,14,5.16,14,5.29V6z"/>',Download:'<polygon points="2.79,7 2,7.69 6.71,11.81 6.71,11.81 7.5,12.5 8.29,11.81 8.29,11.81 13,7.69 12.21,7 7.5,11.12 "/><rect x="2.5" y="6.5" transform="matrix(6.123234e-17 -1 1 6.123234e-17 0.5 14.5)" width="10" height="1"/><rect x="2" y="14" transform="matrix(-1 -1.224647e-16 1.224647e-16 -1 15 29)" width="11" height="1"/>',Upload:'<polygon points="12.21,10 13,9.31 8.29,5.19 8.29,5.19 7.5,4.5 6.71,5.19 6.71,5.19 2,9.31 2.79,10 7.5,5.88 "/><rect x="2.5" y="9.5" transform="matrix(-1.836970e-16 1 -1 -1.836970e-16 17.5 2.5)" width="10" height="1"/><rect x="2" y="2" width="11" height="1"/>',Delete:'<g><path d="M14,3h-2h-1V2c0-0.55-0.45-1-1-1H5C4.45,1,4,1.45,4,2v1H3H1v1h2v9c0,1.1,0.9,2,2,2h5c1.1,0,2-0.9,2-2V4h2V3z M5,2h5v1H5V2zM11,13c0,0.55-0.45,1-1,1H5c-0.55,0-1-0.45-1-1V4h7V13z"/><rect x="5" y="5" width="1" height="8"/><rect x="7" y="5" width="1" height="8"/><rect x="9" y="5" width="1" height="8"/><\/g>',ArrowUp:'<polygon points="12.21,7 13,6.31 8.29,2.19 8.29,2.19 7.5,1.5 6.71,2.19 6.71,2.19 2,6.31 2.79,7 7.5,2.88 "/><rect x="1.5" y="7.5" transform="matrix(-1.836970e-16 1 -1 -1.836970e-16 15.5 0.5)" width="12" height="1"/>',Folder:'<g><g><path d="M6.65,3l0.69,1.43L7.61,5h0.63h5.67C13.95,5.06,14,5.16,14,5.29v8.53c0,0.09-0.02,0.15-0.04,0.18H2.04C2.02,13.97,2,13.91,2,13.82V3.18C2,3.09,2.02,3.03,2.04,3H6.65 M7.28,2H1.97C1.43,2,1,2.53,1,3.18v10.65C1,14.47,1.43,15,1.96,15h12.08c0.53,0,0.96-0.53,0.96-1.18V5.29C15,4.64,14.57,4,14.03,4H8.24L7.28,2L7.28,2z"/><\/g><rect x="2" y="6" class="st0" style="fill-rule:evenodd;clip-rule:evenodd;" width="12" height="1"/><g class="st1" style="display:none;"><rect x="2" y="10" class="st2" style="display:inline;fill-rule:evenodd;clip-rule:evenodd;" width="6" height="0.98"/><rect x="6" y="9" class="st2" style="display:inline;fill-rule:evenodd;clip-rule:evenodd;" width="1" height="1"/><rect x="6" y="11" class="st2" style="display:inline;fill-rule:evenodd;clip-rule:evenodd;" width="1" height="1"/><rect x="5" y="8" class="st2" style="display:inline;fill-rule:evenodd;clip-rule:evenodd;" width="1" height="1"/><rect x="5" y="12" class="st2" style="display:inline;fill-rule:evenodd;clip-rule:evenodd;" width="1" height="1"/><rect x="7" y="9" class="st3" style="display:inline;opacity:0.2;fill-rule:evenodd;clip-rule:evenodd;enable-background:new;" width="1" height="1"/><rect x="8" y="10" class="st4" style="display:inline;opacity:0.1;fill-rule:evenodd;clip-rule:evenodd;enable-background:new;" width="1" height="1"/><rect x="7" y="11" class="st3" style="display:inline;opacity:0.2;fill-rule:evenodd;clip-rule:evenodd;enable-background:new;" width="1" height="1"/><rect x="6" y="8" class="st3" style="display:inline;opacity:0.2;fill-rule:evenodd;clip-rule:evenodd;enable-background:new;" width="1" height="1"/><rect x="6" y="12" class="st3" style="display:inline;opacity:0.2;fill-rule:evenodd;clip-rule:evenodd;enable-background:new;" width="1" height="1"/><\/g><\/g>',Triangle:'<polygon points="6,13 6,4 11.5,8.5"/>',CreateFolder:'<path d="M14,4H8.2L7.3,2H2C1.4,2,1,2.5,1,3.2v10.6C1,14.5,1.4,15,2,15h12c0.5,0,1-0.5,1-1.2V5.3C15,4.6,14.6,4,14,4z M14,13.8c0,0.1,0,0.1,0,0.2H2c0,0,0-0.1,0-0.2V7h12V13.8z M14,6H2V3.2C2,3.1,2,3,2,3h4.7l0.7,1.4L7.6,5h0.6h5.7c0,0.1,0.1,0.2,0.1,0.3V6zM5.5,10.5c0-0.2,0.2-0.4,0.4-0.4h1.7V8.4C7.6,8.2,7.8,8,8,8s0.4,0.2,0.4,0.4V10h1.7c0.2,0,0.4,0.2,0.4,0.5c0,0.2-0.2,0.4-0.4,0.4H8.4v1.7C8.4,12.8,8.2,13,8,13s-0.4-0.2-0.4-0.4v-1.7H5.9C5.7,10.9,5.5,10.7,5.5,10.5z"/>',ExcelFile:'<path d="M14,5.3c0-0.5-0.2-1-0.6-1.4c-0.8-0.8-1.6-1.6-2.3-2.3C10.8,1.3,10.4,1.1,10,1c0,0,0,0-0.1,0C7.5,1,5.1,1,2.6,1C2.5,1,2.4,1.1,2.3,1.1C2.1,1.3,2,1.5,2,1.7c0,0,0,0.1,0,0.1c0,4.1,0,8.2,0,12.4c0,0.3,0.1,0.6,0.4,0.7C2.5,15,2.5,15,2.6,15c3.6,0,7.2,0,10.8,0c0.3-0.1,0.5-0.2,0.6-0.5c0-0.1,0-0.2,0-0.3C14,11.2,14,8.3,14,5.3z M10,2.1C10,2.1,10,2.1,10,2.1c0.1,0,0.3,0,0.3,0.1c0.8,0.8,1.6,1.6,2.4,2.4c0.1,0.1,0.1,0.2,0.2,0.2c0,0.1,0,0.1-0.1,0.1c-0.1,0-0.3,0-0.4,0c-0.8,0-1.6,0-2.3,0C10,5,10,5,10,4.9C10,4,10,3.1,10,2.1z M12.9,14c-3.2,0-6.5,0-9.7,0C3,14,3,14,3,13.9c0-2,0-3.9,0-5.9C3,6,3,4.1,3,2.2C3,2,3,2,3.2,2c1.9,0,3.8,0,5.7,0C9,2,9,2,9,2.2c0,1,0,2,0,3C9,5.7,9.4,6,9.8,6c1,0,2,0,3,0C13,6,13,6,13,6.1c0,2.6,0,5.1,0,7.7C13,14,13,14,12.9,14z M8.8,10.1l2.2,2.9H9.5l-1.5-2l-1.5,2H5l2.3-2.9L5.2,7.3h1.5l1.4,1.9l1.3-1.9h1.5L8.8,10.1z"/>',PdfFile:'<path d="M13.4,15c-3.6,0-7.2,0-10.8,0c-0.1,0-0.1,0-0.2-0.1C2.1,14.8,2,14.5,2,14.2c0-4.1,0-8.2,0-12.4c0,0,0-0.1,0-0.1c0-0.2,0.1-0.4,0.3-0.5C2.4,1.1,2.5,1,2.6,1c2.4,0,4.9,0,7.3,0c0,0,0,0,0.1,0c0.4,0.1,0.8,0.3,1.1,0.6c0.8,0.8,1.6,1.6,2.3,2.3C13.8,4.3,14,4.8,14,5.3c0,3,0,5.9,0,8.9c0,0.1,0,0.2,0,0.3C13.9,14.8,13.7,14.9,13.4,15z M3,8c0,2,0,3.9,0,5.9C3,14,3,14,3.1,14c3.2,0,6.5,0,9.7,0c0.1,0,0.1,0,0.1-0.1c0-2.6,0-5.1,0-7.7C13,6,13,6,12.9,6c-1,0-2,0-3,0C9.4,6,9,5.7,9,5.2c0-1,0-2,0-3C9,2,9,2,8.8,2C6.9,2,5.1,2,3.2,2C3,2,3,2,3,2.2C3,4.1,3,6,3,8z M10,2.1C10,2.1,10,2.1,10,2.1c0,1,0,1.9,0,2.8C10,5,10,5,10.1,5c0.8,0,1.6,0,2.3,0c0.1,0,0.3,0,0.4,0c0.1,0,0.1,0,0.1-0.1c0-0.1-0.1-0.2-0.2-0.2c-0.8-0.8-1.6-1.6-2.4-2.4C10.3,2.2,10.1,2.1,10,2.1z M11.4,10.9c-0.5,0-1-0.2-1.5-0.4c-0.3-0.1-0.5-0.2-0.8-0.1c-0.9,0.1-1.7,0.3-2.5,0.6c-0.1,0-0.1,0.1-0.1,0.1c-0.3,0.6-0.7,1.1-1.2,1.6C5,12.8,4.8,12.9,4.6,13c-0.2,0-0.4-0.1-0.5-0.2C4,12.7,4,12.6,4,12.5c0.1-0.4,0.4-0.6,0.7-0.9c0.2-0.2,0.5-0.4,0.8-0.5c0.1,0,0.1-0.1,0.2,0c0.1,0.1,0.1,0,0.1,0C6.4,10,6.9,8.9,7.3,7.7c0-0.1,0-0.2,0-0.3C7.1,6.9,7,6.3,7.1,5.7c0-0.2,0-0.3,0.1-0.5C7.2,5,7.4,5,7.7,5C7.9,5,8,5.2,8,5.4C8,5.6,7.9,5.8,7.9,6c0,0.5,0,1-0.1,1.5c0,0,0,0.1,0,0.1c0.2,0.6,0.5,1.2,1,1.7c0.2,0.2,0.5,0.4,0.8,0.5c0.1,0,0.1,0,0.2,0c0.6-0.1,1.1-0.1,1.7,0c0.1,0,0.2,0.1,0.3,0.1c0.2,0.1,0.3,0.3,0.3,0.5c-0.1,0.3-0.2,0.4-0.5,0.4C11.5,10.9,11.4,10.9,11.4,10.9z M7.6,8.4c-0.3,0.8-0.6,1.5-1,2.2c0.7-0.3,1.4-0.5,2.2-0.6C8.3,9.5,7.9,9,7.6,8.4z M5.5,11.4c-0.4,0.3-0.7,0.7-1,1.1C4.9,12.3,5.2,11.9,5.5,11.4z M11.7,10.4c-0.3-0.2-0.7-0.2-1-0.2C11,10.4,11.3,10.5,11.7,10.4z M7.6,5.4c-0.1,0.3-0.1,0.6,0,1C7.6,6,7.8,5.7,7.6,5.4z"/>',File:'<path d="M13.4,15c-3.6,0-7.2,0-10.8,0c-0.1,0-0.1,0-0.2-0.1C2.1,14.8,2,14.5,2,14.2c0-4.1,0-8.2,0-12.4c0,0,0-0.1,0-0.1c0-0.2,0.1-0.4,0.3-0.5C2.4,1.1,2.5,1,2.6,1c2.4,0,4.9,0,7.3,0c0,0,0,0,0.1,0c0.4,0.1,0.8,0.3,1.1,0.6c0.8,0.8,1.6,1.6,2.3,2.3C13.8,4.3,14,4.8,14,5.3c0,3,0,5.9,0,8.9c0,0.1,0,0.2,0,0.3C13.9,14.8,13.7,14.9,13.4,15z M3,8c0,2,0,3.9,0,5.9C3,14,3,14,3.1,14c3.2,0,6.5,0,9.7,0c0.1,0,0.1,0,0.1-0.1c0-2.6,0-5.1,0-7.7C13,6,13,6,12.9,6c-1,0-2,0-3,0C9.4,6,9,5.7,9,5.2c0-1,0-2,0-3C9,2,9,2,8.8,2C6.9,2,5.1,2,3.2,2C3,2,3,2,3,2.2C3,4.1,3,6,3,8z M10,2.1C10,2.1,10,2.1,10,2.1c0,1,0,1.9,0,2.8C10,5,10,5,10.1,5c0.8,0,1.6,0,2.3,0c0.1,0,0.3,0,0.4,0c0.1,0,0.1,0,0.1-0.1c0-0.1-0.1-0.2-0.2-0.2c-0.8-0.8-1.6-1.6-2.4-2.4C10.3,2.2,10.1,2.1,10,2.1z"/>',Refresh:'<path d="M1.6,12.3c0-0.5,0-1,0-1.5c0-0.1,0-0.2,0.1-0.2c1,0,2,0,3.1,0c0.1,0,0.2,0,0.3,0.1c0,0.1,0,0.2-0.1,0.3c-0.3,0.3-0.6,0.6-0.8,0.8C4,11.9,4,11.9,4.1,12C5,12.9,6,13.4,7.3,13.5c2.9,0.4,5.5-1.5,6.2-4.1C13.5,9,13.6,8.5,13.6,8c0-0.4,0.3-0.7,0.7-0.7c0.4,0,0.7,0.4,0.7,0.8c0,1.6-0.5,3.1-1.5,4.3c-1.1,1.3-2.5,2.2-4.2,2.5c-2.3,0.4-4.4-0.2-6.1-1.8C3,12.9,3,12.9,2.9,13c-0.3,0.3-0.6,0.6-0.9,0.9C2,13.9,2,14,1.9,14c-0.1,0.1-0.2,0.1-0.3,0.1c-0.1,0-0.1-0.2-0.1-0.3C1.6,13.3,1.6,12.8,1.6,12.3C1.6,12.3,1.6,12.3,1.6,12.3z M14.2,5.4c0.1,0,0.2,0,0.2-0.2c0-1,0-2,0-3c0-0.1,0-0.1,0-0.2c0-0.2-0.2-0.3-0.3-0.1C14,2,13.9,2,13.9,2.1c-0.3,0.3-0.6,0.6-0.9,0.9C13,3,12.9,3,12.8,2.9c-0.2-0.2-0.3-0.3-0.5-0.4c-1.6-1.2-3.4-1.7-5.4-1.4C5.1,1.4,3.7,2.2,2.6,3.6C1.5,4.9,1,6.3,1,7.9c0,0.4,0.3,0.7,0.7,0.8c0.4,0,0.7-0.3,0.7-0.7c0-0.4,0-0.7,0.1-1.1c0.6-3.3,4-5.3,7.2-4.2c0.8,0.3,1.5,0.7,2.1,1.2c0.1,0.1,0.1,0.1,0,0.2c-0.1,0.1-0.3,0.3-0.4,0.4C11.3,4.7,11.1,4.9,11,5c-0.1,0.1-0.1,0.1-0.1,0.2c0,0.1,0.1,0.1,0.2,0.1c0.1,0,0.1,0,0.2,0c0.5,0,1,0,1.4,0C13.2,5.4,13.7,5.4,14.2,5.4z"/>',Search:'<path d="M12.6,6.8c0,1.3-0.4,2.4-1.1,3.4c-0.1,0.1-0.1,0.1,0,0.2c1.1,1.1,2.1,2.1,3.2,3.2c0.3,0.3,0.4,0.8,0.1,1.1c-0.2,0.3-0.7,0.4-1,0.1c-0.1,0-0.1-0.1-0.2-0.2c-1.1-1.1-2.1-2.1-3.2-3.2c-0.1-0.1-0.1-0.1-0.3,0c-0.8,0.6-1.7,1-2.7,1.1c-3,0.3-5.7-1.7-6.3-4.6C0.5,4.7,2.5,1.8,5.6,1.1c3.1-0.7,6.1,1.2,6.9,4.2C12.5,5.8,12.6,6.3,12.6,6.8z M2.5,6.8c0,2.4,1.9,4.3,4.3,4.3c2.4,0,4.3-1.9,4.3-4.3c0-2.4-1.9-4.3-4.3-4.3C4.5,2.5,2.5,4.4,2.5,6.8z"/>',DocFile:'<path style="fill:#488FCC" d="M14.6,2.6H8.4v10.9h6.2c0.2,0,0.4-0.2,0.4-0.4V2.9C15,2.7,14.8,2.6,14.6,2.6z"/><path style="fill:#FFFFFF" d="M8.4,4.5h5.4v0.8H8.4V4.5z M8.4,6.1h5.4v0.8H8.4V6.1z M8.4,7.6h5.4v0.8H8.4V7.6z M8.4,9.2h5.4v0.8H8.4V9.2zM8.4,10.7h5.4v0.8H8.4V10.7z"/><path style="fill:#17499E" d="M9.2,15L1,13.4V2.6L9.2,1V15z"/><path style="fill:#FFFFFF" d="M6.9,10.7H5.8L5.1,7.2c0-0.2-0.1-0.4-0.1-0.6h0C5,6.9,5,7.1,5,7.2l-0.7,3.5H3.2L2.1,5.3h1l0.6,3.6c0,0.2,0,0.4,0.1,0.6h0c0-0.2,0-0.4,0.1-0.6l0.8-3.6h1l0.7,3.7c0,0.1,0,0.3,0.1,0.6h0c0-0.2,0-0.4,0.1-0.6l0.6-3.6h1L6.9,10.7z"/>',ImageFile:'<rect x="3.1" y="4.3" style="fill:#84D2F6" width="9.7" height="7.6"/><path style="fill:#4DAF4F" d="M11.4,11.9H8.6L7.1,9.8l1.3-1.6c0.1-0.1,0.2-0.1,0.2,0L11.4,11.9z"/><path style="fill:#556F7A" d="M14.1,2.7c0.1,0,0.2,0.1,0.2,0.2v10.2c0,0.1-0.1,0.2-0.2,0.2H1.9c-0.1,0-0.2-0.1-0.2-0.2V2.9c0-0.1,0.1-0.2,0.2-0.2H14.1 M14.1,2H1.9C1.4,2,1,2.4,1,2.9v10.2C1,13.6,1.4,14,1.9,14h12.2c0.5,0,0.9-0.4,0.9-0.9V2.9C15,2.4,14.6,2,14.1,2L14.1,2z"/><circle style="fill:#FFF379" cx="11.1" cy="6.1" r="0.7"/><path style="fill:#44A147" d="M8.6,11.9H3.1V8.7l1.6-1.8C4.8,6.8,4.9,6.8,5,7L8.6,11.9z"/><path style="fill:#67BC6B" d="M11.6,8.8l-1.4,1.5l1.2,1.6h1.4V9.7l-1.1-1C11.7,8.7,11.6,8.7,11.6,8.8z"/>',ThumbnaiLView:'<g><g><rect x="5" y="5" width="4.1" height="4.1"/><rect x="5" y="9.9" width="4.1" height="4.1"/><rect x="5" y="14.9" width="4.1" height="4.1"/><\/g><g><rect x="9.9" y="5" width="4.1" height="4.1"/><rect x="9.9" y="9.9" width="4.1" height="4.1"/><rect x="9.9" y="14.9" width="4.1" height="4.1"/><\/g><g><rect x="14.9" y="5" width="4.1" height="4.1"/><rect x="14.9" y="9.9" width="4.1" height="4.1"/><rect x="14.9" y="14.9" width="4.1" height="4.1"/><\/g><\/g>',ListView:'<g><g><rect x="4" y="5" width="4.1" height="4.1"/><rect x="4" y="9.9" width="4.1" height="4.1"/><rect x="4" y="14.9" width="4.1" height="4.1"/><\/g><rect x="11" y="6.6" width="5" height="1"/><rect x="11" y="11.5" width="9" height="1"/><rect x="11" y="16.4" width="6" height="1"/><\/g>',DetailView:'<g><rect x="3.5" y="5" width="4.1" height="4.1"/><rect x="3.5" y="9.9" width="4.1" height="4.1"/><rect x="3.5" y="14.9" width="4.1" height="4.1"/><\/g><rect x="9.5" y="6.6" width="3" height="1"/><rect x="9.5" y="11.5" width="3" height="1"/><rect x="9.5" y="16.4" width="3" height="1"/><rect x="13.4" y="6.6" width="3" height="1"/><rect x="13.4" y="11.5" width="3" height="1"/><rect x="13.4" y="16.4" width="3" height="1"/><rect x="17.3" y="6.6" width="3" height="1"/><rect x="17.3" y="11.5" width="3" height="1"/><rect x="17.3" y="16.4" width="3" height="1"/>',BigDoc:'<path style="fill:#2196F3" d="M410,100H250v280h160c5.5,0,10-4.5,10-10V110C420,104.5,415.5,100,410,100z"/><path style="fill:#FFFFFF" d="M250,150h140v20H250V150z M250,190h140v20H250V190z M250,230h140v20H250V230z M250,270h140v20H250V270zM250,310h140v20H250V310z"/><path style="fill:#0D47A1" d="M270,420L60,380V100l210-40V420z"/><path style="fill:#FFFFFF" d="M211.7,310.1h-27.2l-18-89.9c-1-4.8-1.6-10-1.7-15.8h-0.3c-0.4,6.4-1.1,11.6-2,15.8L144,310.1h-28.3L87.1,170h26.8l15.4,93.3c0.6,4,1.1,9.4,1.4,16.1h0.4c0.2-5,1-10.5,2.2-16.4L153,170h26.2l17.9,94c0.6,3.5,1.2,8.5,1.7,15.1h0.3c0.2-5.1,0.7-10.4,1.6-15.6l15-93.5h24.7L211.7,310.1z"/>',BigExcel:'<path style="fill:#4CAF50" d="M410,100H250v280h160c5.5,0,10-4.5,10-10V110C420,104.5,415.5,100,410,100z"/><path style="fill:#FFFFFF" d="M320,150h70v30h-70V150z M320,250h70v30h-70V250z M320,300h70v30h-70V300z M320,200h70v30h-70V200z M250,150h50v30h-50V150z M250,250h50v30h-50V250z M250,300h50v30h-50V300z M250,200h50v30h-50V200z"/><path style="fill:#2E7D32" d="M270,420L60,380V100l210-40V420z"/><path style="fill:#FFFFFF" d="M191.3,310l-24.1-45.6c-0.9-1.7-1.9-4.8-2.8-9.4H164c-0.5,2.2-1.5,5.4-3.2,9.8L136.5,310H99l44.6-70l-40.8-70h38.4l20,42c1.6,3.3,3,7.2,4.2,11.8h0.4c0.8-2.7,2.2-6.8,4.4-12.2l22.3-41.6h35.1l-42,69.4l43.2,70.6L191.3,310L191.3,310z"/>',BigImage:'<g><rect x="114.7" y="144" style="fill:#81D4FA" width="249.7" height="196.1"/><path style="fill:#4CAF50" d="M327.5,340.1h-72.7l-38.2-53.2l34.5-42c1.3-1.6,3.9-1.6,5.2,0.1L327.5,340.1z"/><path style="fill:#546E7A" d="M396.7,102.9c3.5,0,6.4,2.9,6.4,6.4v261.5c0,3.5-2.9,6.4-6.4,6.4H83.8c-3.5,0-6.4-2.9-6.4-6.4V109.3c0-3.5,2.9-6.4,6.4-6.4H396.7 M396.7,85.7H83.8c-13,0-23.5,10.5-23.5,23.5v261.5c0,13,10.5,23.5,23.5,23.5h312.9c13,0,23.5-10.5,23.5-23.5V109.3C420.3,96.3,409.7,85.7,396.7,85.7L396.7,85.7z"/><circle style="fill:#FFF176" cx="319.9" cy="190.8" r="18.3"/><path style="fill:#43A047" d="M254.8,340.1H114.7v-81.9l40.1-45.5c2.3-2.7,6.6-2.5,8.6,0.4L254.8,340.1z"/><path style="fill:#66BB6A" d="M332.8,260l-35.9,39.3l30.5,40.7h36.9v-55.5l-27.7-24.8C335.6,258.7,333.8,258.8,332.8,260z"/><\/g>',BigPdf:'<path style="fill:#C74444" d="M60,0v480h360V140L280,0H60z M100,40h160v120h120v280H100V40z"/><path style="fill:#C74444" d="M325,287.3c-3.5-2.6-7.6-4.4-13.3-5.9c-12.4-3.3-24.4-1.7-36.7,0.4l-0.7,0.1c-2.1,0.4-2.9,0.4-3.9-0.4c-12.5-10.9-21.5-20.9-28.1-31.4c-0.7-1.1-0.8-2-0.5-3.5c2-9.6,2.9-18.8,3.1-29.7c0.1-2.8-0.3-7.7-1.2-13c-1.4-8.7-3.2-17-9.4-23.8c-3.3-3.7-7.7-5.5-12-4.9c-4.3,0.5-8.1,3.4-10.4,7.8c-2.3,4.3-3,8.9-3.4,13.2c-1.6,16.6,2,33.1,11.1,51.9c1.1,2.2,1.3,4,0.6,6.3c-3.9,14.1-10.2,27.5-16.3,40.5c-1.3,2.8-2.6,5.6-3.9,8.4c-1,2.2-2.5,3.6-5.5,5c-15.9,7.5-28.7,14.7-39.1,26c-5.8,6.3-8.8,12.2-9.6,18.7c-0.6,5.2,0.9,9.8,4.3,12.9c2.6,2.4,6.1,3.6,9.9,3.6c1.2,0,2.5-0.1,3.8-0.4c6.9-1.4,12.1-5.3,15.9-8.6c10.6-9.2,20.4-20.8,29.9-35.5c1.8-2.7,3.7-4.4,6.5-5.5c9.3-3.7,19-6.9,28.3-10.1c3.6-1.2,7.2-2.4,10.8-3.7c8-2.8,13.7-1.7,20.3,3.7c10.2,8.4,21.2,13.8,32.6,16.1c10.6,2.1,19.7-2.4,23.8-11.8C336.3,303.6,333.7,293.7,325,287.3z M314.6,305.8c-0.3,1.1-0.5,1.6-3.6,0.9c-6.3-1.4-11.8-4.4-16.9-7.8c7.1-0.6,13.1,0.4,18.5,3C315,303,315.2,304.1,314.6,305.8z M249.1,287.9c-7.3,2.1-15.5,4.7-24.4,8c3.6-7.9,7-15.6,10-23.7C239.4,277.9,243.9,283,249.1,287.9z"/>',BigFile:'<path d="M60,0v480h360V140L280,0H60z M100,40h160v120h120v280H100V40z"/>',BigFolder:'<path style="fill:#DBB065" d="M15,405V45h128.8l60,60H465v300H15z"/><path style="fill:#967A44" d="M137.6,60l51.2,51.2l8.8,8.8H210h240v270H30V60H137.6 M150,30H0v390h480V90H210L150,30L150,30z"/><g><path style="fill:#F5CE85" d="M15,435V135h138.5l60-30H465v330H15z"/><path style="fill:#967A44" d="M450,120v300H30V150h120h7.1l6.3-3.2l53.7-26.8H450 M480,90H210l-60,30H0v330h480V90L480,90z"/><\/g>'};n._createSvgBtn=r;n._removeElement=f;n._getDistance=e;n._createInstance=o;n._addClass=s;n._removeClass=h})(t=n.nav||(n.nav={}))})(c1||(c1={}));
var c1;(function(n){var t;(function(n){"use strict";var t;(function(n){n[n.Horizontal=0]="Horizontal";n[n.Vertical=1]="Vertical"})(t=n.LayoutOrientation||(n.LayoutOrientation={}))})(t=n.nav||(n.nav={}))})(c1||(c1={}));
var __extends=this&&this.__extends||function(){var n=function(t,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r(){this.constructor=t}if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(t,i);t.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}}(),c1;(function(n){var t;(function(n){"use strict";var u=function(){function n(){}return n.prototype.addEventListener=function(n,t,i,r){r===void 0&&(r=!1);n&&(n.addEventListener(t,i,r),this._listeners==null&&(this._listeners=[]),this._listeners.push({target:n,type:t,fn:i,capture:r}))},n.prototype.removeEventListener=function(n,t,i,r){var e=0,f,u;if(this._listeners)for(f=0;f<this._listeners.length;f++)u=this._listeners[f],(n==null||n==u.target)&&(t==null||t==u.type)&&(i==null||i==u.fn||i&&u.fn&&i.toString()==u.fn.toString())&&(r==null||r==u.capture)&&(u.target.removeEventListener(u.type,u.fn,u.capture),this._listeners.splice(f,1),f--,e++);return e},n.prototype.dispose=function(n){n===void 0&&(n=!0);n&&this.removeEventListener()},n}(),t,i,r;n.DisposableObject=u;t=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(wijmo.EventArgs);n.TileEventArgs=t;i=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(t);n.TileFormattedEventArgs=i;r=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(t);n.TileSizeChangedEventArgs=r})(t=n.nav||(n.nav={}))})(c1||(c1={}));
var __extends=this&&this.__extends||function(){var n=function(t,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r(){this.constructor=t}if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(t,i);t.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}}(),c1;(function(n){var t;(function(t){"use strict";var r=function(n){function r(t){var i=n.call(this)||this;return i._tileActivated=new wijmo.Event,i._tileFormatted=new wijmo.Event,i._tileSizeChanged=new wijmo.Event,i._tileVisibilityChanged=new wijmo.Event,i._layoutChanged=new wijmo.Event,i._isLayoutInitialled=!1,i.initialize(t),i}return __extends(r,n),Object.defineProperty(r.prototype,"parent",{get:function(){return this._parent},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"layout",{get:function(){return this._isLayoutInitialled?this._layout:(this._isLayoutInitialled=!0,this._layout=r._getLayoutFromItem(this.parent),this._layout)},enumerable:!1,configurable:!0}),r._getLayoutFromItem=function(n){var r;return n instanceof t.LayoutBase?r=n:n instanceof i&&(r=n.layout),r},Object.defineProperty(r.prototype,"hostElement",{get:function(){return this._hostElement},enumerable:!1,configurable:!0}),r.prototype.initialize=function(n){n&&wijmo.copy(this,n)},r.prototype.render=function(n){return this._hostElement?(this._updatePartialView(n),this._hostElement):(this._initializeComponent(),n&&this._appendTo(this._hostElement,n),this.draw(),n&&this._hostElement.parentElement!=n&&this._appendTo(this._hostElement,n),this._hostElement)},r.prototype._appendTo=function(n,t){t.appendChild(n)},r.prototype._updatePartialView=function(){},r.prototype._initializeComponent=function(){this._hostElement=document.createElement("div");wijmo.addClass(this._hostElement,r._CLASS_LI);var n=document.createElement("div");wijmo.addClass(n,r._CLASS_CONTENT);this._contentElement=n;this._hostElement.appendChild(n)},r.prototype.draw=function(){},r.prototype.dispose=function(i){i===void 0&&(i=!0);i&&(t._removeElement(this._hostElement),this._hostElement=null,this._contentElement=null);n.prototype.dispose.call(this,i)},r.prototype._resetLayout=function(){this._isLayoutInitialled=!1;this._layout=null;this instanceof i&&this.children.forEach(function(n){n._resetLayout()})},r.prototype._getDefinition=function(){var t=this,n={};return this._getNames().forEach(function(i){n[i]=t[i]}),n},r.prototype._getNames=function(){return r._SETTING_NAMES?r._SETTING_NAMES:(r._SETTING_NAMES=[].concat([]),r._SETTING_NAMES)},r.prototype._setParent=function(n){this.parent!=n&&(this.parent&&(this._tileActivated.removeHandler(this._activeTile,this.parent),this._tileFormatted.removeHandler(this._formatTile,this.parent),this._tileSizeChanged.removeHandler(this._changeTileSize,this.parent),this._tileVisibilityChanged.removeHandler(this._changeTileVisibility,this.parent),this._layoutChanged.removeHandler(this._changeLayout,this.parent)),this._isLayoutInitialled&&this.layout!=r._getLayoutFromItem(n)&&this._resetLayout(),this._parent=n,this.parent&&(this._tileActivated.addHandler(this._activeTile,this.parent),this._tileFormatted.addHandler(this._formatTile,this.parent),this._tileSizeChanged.addHandler(this._changeTileSize,this.parent),this._tileVisibilityChanged.addHandler(this._changeTileVisibility,this.parent),this._layoutChanged.addHandler(this._changeLayout,this.parent)))},r.prototype._onTileActivated=function(n){this._tileActivated.raise(this,n)},r.prototype._activeTile=function(n,t){this._onTileActivated(t)},r.prototype._onTileFormatted=function(n){this._tileFormatted.raise(this,n)},r.prototype._formatTile=function(n,t){this._onTileFormatted(t)},r.prototype._onTileSizeChanged=function(n){this._tileSizeChanged.raise(this,n)},r.prototype._changeTileSize=function(n,t){this._onTileSizeChanged(t)},r.prototype._onTileVisibilityChanged=function(n){this._tileVisibilityChanged.raise(this,n)},r.prototype._changeTileVisibility=function(n,t){this._onTileVisibilityChanged(t)},r.prototype._onLayoutChanged=function(){this._layoutChanged.raise(this)},r.prototype._changeLayout=function(){this._onLayoutChanged()},r.prototype.remove=function(){return this._remove(!1)},r.prototype._remove=function(n){var i,r;return(n===void 0&&(n=!1),i=this.parent,!i)?!1:(r=!1,r=i instanceof t.LayoutBase?n?i.items._removeInternal(this):i.items.remove(this):n?i.children._removeInternal(this):i.children.remove(this),n&&r&&(t._removeElement(this.hostElement),i._redraw()),r)},r._CLASS_LI="wj-dl-li",r._CLASS_CONTENT="wj-li-content",r._SETTING_NAMES=null,r._MIN_SIZE=100,r}(t.DisposableObject),u,i,f,e;t.LayoutItem=r;u=function(r){function u(n){var t=r.call(this,null)||this,i;return t._showHeader=!0,t._showToolbar=!0,t._visible=!0,t._allowDrag=!0,t._allowMaximize=!0,t._allowHide=!0,t._maxResizeWidth=Number.MAX_VALUE,t._maxResizeHeight=Number.MAX_VALUE,t._isActived=!1,t._isMaximum=!1,t._isPlaceHolder=!1,t.initialize(n),u._CONTENT_ELEMENTS_CONTAINER||(i=document.createElement("div"),wijmo.addClass(i,"wj-dl-conts-container"),document.body.appendChild(i),u._CONTENT_ELEMENTS_CONTAINER=i),t}return __extends(u,r),Object.defineProperty(u.prototype,"content",{get:function(){return this._content},set:function(n){if(this.content!=n){this._saveContentSelectorElement();this._domContentSelector=null;this._content=n;try{this._domContentSelector=this._getElement(n);this._domContent=this._domContentSelector}catch(t){this._domContent=wijmo.createElement(this.content)}}},enumerable:!1,configurable:!0}),u.prototype._getElement=function(n){return n instanceof Element?n:wijmo.isString(n)?document.querySelector(n):n&&n.jquery?n[0]:null},u.prototype._saveContentSelectorElement=function(){if(this._domContentSelector){if(wijmo.contains(u._CONTENT_ELEMENTS_CONTAINER,this._domContentSelector))return;u._CONTENT_ELEMENTS_CONTAINER.appendChild(this._domContentSelector)}},Object.defineProperty(u.prototype,"headerText",{get:function(){return this._headerText},set:function(n){this._headerText=n},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"showHeader",{get:function(){return this._showHeader},set:function(n){n=!!n;this._showHeader!=n&&(this._showHeader=n)},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"showToolbar",{get:function(){return this._showToolbar},set:function(n){n=!!n;this._showToolbar!=n&&(this._showToolbar=n,this._updateToolbar())},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"visible",{get:function(){return this._visible},set:function(n){if(n=!!n,this._visible!=n){this._visible=n;!this.visible&&this._isMaximum&&this._toggleMaximum();var i=new t.TileEventArgs;i.tile=this;this._onTileVisibilityChanged(i)}},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"allowDrag",{get:function(){return this._allowDrag},set:function(n){n=!!n;this.allowDrag!=n&&(this._allowDrag=n,this._updateDraggable())},enumerable:!1,configurable:!0}),u.prototype._updateDraggable=function(){this.hostElement&&wijmo.toggleClass(this.hostElement,"wj-tile-draggable",this.allowDrag)},u.prototype._isDraggable=function(){var n=!0;return this.layout&&this.layout.dashboard&&(n=this.layout.dashboard.allowDrag),n&&this.allowDrag},Object.defineProperty(u.prototype,"allowMaximize",{get:function(){return this._allowMaximize},set:function(n){n=!!n;this.allowMaximize!=n&&(this._allowMaximize=n,this._refreshToolbar())},enumerable:!1,configurable:!0}),u.prototype._isMaximizable=function(){var n=!0;return this.layout&&this.layout.dashboard&&(n=this.layout.dashboard.allowMaximize),n&&this.allowMaximize},Object.defineProperty(u.prototype,"maximum",{get:function(){return!!this._isMaximum},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"allowHide",{get:function(){return this._allowHide},set:function(n){n=!!n;this.allowHide!=n&&(this._allowHide=n,this._refreshToolbar())},enumerable:!1,configurable:!0}),u.prototype._couldBeHidden=function(){var n=!0;return this.layout&&this.layout.dashboard&&(n=this.layout.dashboard.allowHide),n&&this.allowHide},u.prototype._couldShowAll=function(){return this.layout&&this.layout.dashboard?this.layout.dashboard.allowShowAll:!1},Object.defineProperty(u.prototype,"maxResizeWidth",{get:function(){return this._maxResizeWidth},set:function(n){this._maxResizeWidth=n;this.hostElement&&parseInt(this.hostElement.style.width)>this._maxResizeWidth&&(this.hostElement.style.width=this._maxResizeWidth+"px")},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"maxResizeHeight",{get:function(){return this._maxResizeHeight},set:function(n){this._maxResizeHeight=n;this.hostElement&&parseInt(this.hostElement.style.height)>this._maxResizeHeight&&(this.hostElement.style.height=this._maxResizeHeight+"px")},enumerable:!1,configurable:!0}),u.prototype._getNames=function(){return u._SETTING_NAMES?u._SETTING_NAMES:(u._SETTING_NAMES=["headerText","content","visible","showHeader","showToolbar","allowDrag","allowMaximize","allowHide","maxResizeWidth","maxResizeHeight"].concat(r.prototype._getNames.call(this)),u._SETTING_NAMES)},u.prototype._initializeComponent=function(){r.prototype._initializeComponent.call(this);wijmo.addClass(this.hostElement,u._CLASS_TILE);this._updateDraggable();this.addEventListener(this.hostElement,"contextmenu",function(n){n.preventDefault();n.stopPropagation()},!1)},u.prototype.render=function(n){if(this.visible)return r.prototype.render.call(this,n)},u.prototype.draw=function(){if(r.prototype.draw.call(this),!this._isPlaceHolder){this._updateAcitved();this._drawHeader();this._drawContent();this._drawMenus();this._bindEvents();var n=new t.TileFormattedEventArgs;n.tile=this;n.contentElement=this._eleContent;n.headerElement=this._eleHeader;n.toolbar=this._toolbarMenus;this._onTileFormatted(n)}},u.prototype._drawHeader=function(){var n,t;this.showHeader&&(this._eleHeader||(n=document.createElement("div"),wijmo.addClass(n,"wj-tile-header"),this._contentElement.appendChild(n),this._eleHeader=n),t=document.createElement("span"),wijmo.addClass(t,"title"),t.innerHTML=this.headerText,this._eleHeader.appendChild(t))},u.prototype._drawContent=function(){if(!this._eleContent){var n=document.createElement("div");wijmo.addClass(n,"wj-tile-content");this._contentElement.appendChild(n);this._eleContent=n}this._domContent&&this._eleContent.appendChild(this._domContent)},u.prototype._getContent=function(){var n;try{n=wijmo.getElement(this.content)}catch(t){}return n?n:wijmo.createElement(this.content)},u.prototype._refreshContent=function(){this._eleContent!=null&&wijmo.Control.refreshAll(this._eleContent)},u.prototype._bindEvents=function(){var n=this;this.addEventListener(this.hostElement,"mousedown",function(t){t.button===0&&n.activate()},!0);this.layout.dashboard._addMovingTrigger(this._eleHeader)},u.prototype._drawMenus=function(){var i=this,r;this.showToolbar&&(r=document.createElement("div"),this.showHeader?this._eleHeader.appendChild(r):this._contentElement.appendChild(r),this._toolbarMenus=new n.nav.Toolbar(r,this),this._toolbarMenus.deferUpdate(function(){i._isMaximizable()&&i._toolbarMenus.insertSVGButton(t.SVGButtonType.FullScreen);i._couldBeHidden()&&i._toolbarMenus.insertSVGButton(t.SVGButtonType.Hide);i._couldShowAll()&&i._toolbarMenus.insertSVGButton(t.SVGButtonType.ShowAll)}))},u.prototype._updateToolbar=function(){this.showToolbar?this._toolbarMenus?wijmo.removeClass(this._toolbarMenus.hostElement,"wj-dl-hidden"):this._drawMenus():this._toolbarMenus&&wijmo.addClass(this._toolbarMenus.hostElement,"wj-dl-hidden")},u.prototype._refreshToolbar=function(){this._toolbarMenus&&this._toolbarMenus.invalidate()},u.prototype._updateSize=function(n,t){var i=this,r,u;t===void 0&&(t=!1);wijmo.isIE()&&t?(this._eleContent&&this._eleContent.children[0]&&(this._eleContent.children[0].style.width="99%",this._eleContent.style.overflowX="hidden"),this.hostElement.style.width=n.width+"px",this.hostElement.style.height=n.height+"px",this._eleContent&&this._eleContent.children[0]&&setTimeout(function(){i._eleContent.children[0].style.width="100%";var n=i._eleContent.scrollWidth>i._eleContent.clientWidth,t=i._eleContent.scrollHeight>i._eleContent.clientHeight,r=n!=t&&n;wijmo.toggleClass(i._eleContent,"wj-width-overflow",r);wijmo.toggleClass(i._eleContent,"wj-height-overflow",n!=t&&t);r&&(i._eleContent.style.overflowX="auto")})):(this.hostElement.style.width=n.width+"px",this.hostElement.style.height=n.height+"px",this._eleContent&&(r=this._eleContent.scrollWidth>this._eleContent.clientWidth,u=this._eleContent.scrollHeight>this._eleContent.clientHeight,wijmo.toggleClass(this._eleContent,"wj-width-overflow",r!=u&&r),wijmo.toggleClass(this._eleContent,"wj-height-overflow",r!=u&&u)))},u.prototype.dispose=function(n){n===void 0&&(n=!0);n&&(this._saveContentSelectorElement(),this._eleContent=null,this._eleHeader=null,this._isPlaceHolder=!1,this._isMaximum=!1);r.prototype.dispose.call(this,n)},u.prototype.activate=function(){if(!this._isActived){this._setAcitved(!0);var n=new t.TileEventArgs;n.tile=this;this._onTileActivated(n)}},u.prototype.deactivate=function(){this._setAcitved(!1)},u.prototype._setAcitved=function(n){(n===void 0&&(n=!0),this._isActived!=n)&&(this._isActived=n,this._updateAcitved())},u.prototype._toggleMaximum=function(){if(this.hostElement&&this._isMaximizable){this._isMaximum=!this._isMaximum;var n=new t.TileSizeChangedEventArgs;n.isMaximum=this._isMaximum;n.tile=this;this._onTileSizeChanged(n)}},u.prototype.beginMove=function(){this._isPlaceHolder=!0;wijmo.addClass(this.hostElement,"placeholder")},u.prototype.endMove=function(){this._isPlaceHolder=!1;wijmo.removeClass(this.hostElement,"placeholder");this.hostElement.appendChild(this._contentElement)},u.prototype._updateAcitved=function(){this.hostElement&&wijmo.toggleClass(this.hostElement,"active",this._isActived)},u.prototype._getPosition=function(){var o=this.hostElement.getBoundingClientRect(),r=new wijmo.Point(0,0),u=new wijmo.Point(0,0),n,f,e;return this.parent instanceof i?n=this.parent.hostElement:this.parent instanceof t.LayoutBase&&(f=this.parent.dashboard,f&&(n=f.container)),n&&(e=n.getBoundingClientRect(),r.x=e.left,r.y=e.top,u=new wijmo.Point(n.scrollLeft,n.scrollTop)),new wijmo.Point(o.left-r.x+u.x,o.top-r.y+u.y)},u.prototype._getMovingElement=function(){var n=this.hostElement.cloneNode();return wijmo.addClass(n,"moving"),t._removeClass(n,"active"),t._removeClass(n,"wj-tile-resizable"),n.appendChild(this._contentElement),n},u._CLASS_TILE="wj-dl-tile",u._BORDER_WIDTH=1,u._SETTING_NAMES=null,u._CONTENT_ELEMENTS_CONTAINER=null,u}(r);t.Tile=u;i=function(n){function i(t){var i=n.call(this,null)||this;return i.initialize(t),i}return __extends(i,n),Object.defineProperty(i.prototype,"children",{get:function(){var n=this;return this._children||(this._children=this._getDefaultItems(),this._children.collectionChanged.addHandler(function(){n.layout&&n.layout.invalidate()},this)),this._children},enumerable:!1,configurable:!0}),i.prototype._getDefaultItems=function(){return new e(this)},i.prototype._initializeComponent=function(){n.prototype._initializeComponent.call(this);wijmo.addClass(this.hostElement,i._CLASS_GROUP)},i.prototype.draw=function(){var n=this;this.children.forEach(function(t){return t.render(n._contentElement)})},i.prototype._redraw=function(){this.draw()},i.prototype.dispose=function(t){t===void 0&&(t=!0);this.children&&this.children.forEach(function(n){var i=n;i.dispose(t)});n.prototype.dispose.call(this,t)},i.prototype._getDefinition=function(){var i=n.prototype._getDefinition.call(this),t;return this.children&&this.children.length&&(t=[],this.children.forEach(function(n){var i=n;t.push(i._getDefinition())}),i.children=t),i},i.prototype._copy=function(n,t){var r=this,i;return n=="children"?(t&&(i=t,i instanceof Array&&i.forEach(function(n){return r.children.push(r._createLayoutItem(n))})),!0):!1},i.prototype._createLayoutItem=function(n){return n?n.children?this._createGroup(n):this._createTile(n):null},i.prototype._createTile=function(){throw t.LayoutBase._EXCEPTION_ABSTRACT;},i.prototype._createGroup=function(){throw t.LayoutBase._EXCEPTION_ABSTRACT;},i._CLASS_GROUP="wj-dl-group",i}(r);t.Group=i;f=function(n){function t(t){var i=n.call(this)||this;return i._parent=t,i}return __extends(t,n),t.prototype.push=function(){for(var i,r=this,u=[],t=0;t<arguments.length;t++)u[t]=arguments[t];return i=this.length,u.forEach(function(t){r._preProcess(t);i=n.prototype.push.call(r,t)}),i},t.prototype.splice=function(t,i,r){var u,f;if(r&&this._preProcess(r),u=r?n.prototype.splice.call(this,t,i,r):n.prototype.splice.call(this,t,i),u)for(f=0;f<u.length;f++)this._processRemoving(u[f]);return u},t.prototype.setAt=function(t,i){return this._preProcess(i),n.prototype.setAt.call(this,t,i)},t.prototype.pop=function(){var t=n.prototype.pop.call(this);return this._processRemoving(t),t},t.prototype._isValidType=function(n){return n},t.prototype._checkType=function(n){if(!this._isValidType(n))throw t._INVALID_ITEM_TYPE;},t.prototype._preProcess=function(n){this._checkType(n);n&&n._setParent(this._parent)},t.prototype._processRemoving=function(n){var i=n;i._setParent(null);this._isInternalAddRemove||t._saveContentSelectorElement(i)},t._saveContentSelectorElement=function(n){if(n instanceof u)n._saveContentSelectorElement();else{var i=n;i.children.forEach(function(n){return t._saveContentSelectorElement(n)})}},t.prototype._removeInternal=function(n){this._isInternalAddRemove=!0;var t=this.remove(n);return this._isInternalAddRemove=!1,t},t.prototype._removeAtInternal=function(n){this._isInternalAddRemove=!0;this.removeAt(n);this._isInternalAddRemove=!1},t.prototype._insertAtInternal=function(n,t){t==null&&(t=this.length);this._isInternalAddRemove=!0;this.insert(t,n);this._isInternalAddRemove=!1},t.prototype.onCollectionChanged=function(t){(t===void 0&&(t=wijmo.collections.NotifyCollectionChangedEventArgs.reset),this._isInternalAddRemove)||n.prototype.onCollectionChanged.call(this,t)},t._INVALID_ITEM_TYPE="The child type is a invalid type!",t}(wijmo.collections.ObservableArray);t.LayoutItemCollection=f;e=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t.prototype._processRemoving=function(t){var r=t,u;r&&r.parent&&r.parent instanceof i&&(u=r.parent,u.children.length===0&&this._removeGroup(u));n.prototype._processRemoving.call(this,t)},t.prototype._removeGroup=function(n){n._remove(this._isInternalAddRemove)},t}(f);t._GroupChildren=e})(t=n.nav||(n.nav={}))})(c1||(c1={}));
var __extends=this&&this.__extends||function(){var n=function(t,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r(){this.constructor=t}if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(t,i);t.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}}(),c1;(function(n){var t;(function(n){"use strict";var t,i;(function(n){n[n.Hide=0]="Hide";n[n.FullScreen=1]="FullScreen";n[n.ShowAll=2]="ShowAll"})(t=n.SVGButtonType||(n.SVGButtonType={}));i=function(i){function r(n,t){var r=i.call(this,n)||this,u;return r._toolbarItems=new wijmo.collections.ObservableArray,r._hostTile=t,u=r.getTemplate(),r.applyTemplate("wj-tile-toolbar",u,{_eleContainer:"container",_eleFirst:"first",_eleMore:"more"}),r._toolbarItems.collectionChanged.addHandler(function(){r.invalidate()}),r.invalidate(),r}return __extends(r,i),r.prototype.refresh=function(){i.prototype.refresh.call(this);this._draw()},r.prototype._toggleTileMaximum=function(){this._hostTile&&this._hostTile._toggleMaximum()},r.prototype._hideTile=function(){this._hostTile&&(this._hostTile.visible=!1)},r.prototype._showAll=function(){this._hostTile&&this._hostTile.layout&&this._hostTile.layout.showAll()},r.prototype.clear=function(){this._toolbarItems.clear()},r.prototype.removeToolbarItemAt=function(n){this._toolbarItems.removeAt(n)},r.prototype.insertToolbarItem=function(n,t){t==null&&(t=this._toolbarItems.length);this._toolbarItems.insert(t,n)},r.prototype.insertSVGButton=function(i,r){var u,f;i=wijmo.asEnum(i,t);r==null&&(r=this._toolbarItems.length);switch(i){case t.FullScreen:f={icon:n._createSvgBtn("Collapse").outerHTML,title:wijmo.culture.DashboardLayout.restore,command:this._toggleTileMaximum.bind(this),isVisible:function(n){return n._isMaximizable()}};u={icon:n._createSvgBtn("Expand").outerHTML,title:wijmo.culture.DashboardLayout.fullScreen,command:this._toggleTileMaximum.bind(this),condition:function(n){return!n.maximum},toggleItem:f,isVisible:function(n){return n._isMaximizable()}};this.insertToolbarItem(u,r);break;case t.Hide:u={icon:n._createSvgBtn("Hide").outerHTML,title:wijmo.culture.DashboardLayout.hide,command:this._hideTile.bind(this),isVisible:function(n){return n._couldBeHidden()&&!n.maximum}};this.insertToolbarItem(u,r);break;case t.ShowAll:u={icon:n._createSvgBtn("ShowAll").outerHTML,title:wijmo.culture.DashboardLayout.showAll,command:this._showAll.bind(this),isVisible:function(n){return n._couldShowAll()&&!n.maximum}};this.insertToolbarItem(u,r);break;default:throw"invalid btnType!";}},r.prototype._draw=function(){var u=this,t,f,e,i,r;if(this.rightToLeft===!0?this.hostElement.style.left="5px":this.hostElement.style.right="5px",this._menuFirst&&(this._menuFirst.dispose(),this._menuFirst=null,this._eleFirst=this.hostElement.querySelector('[wj-part="first"]')),this._menuMore&&(this._menuMore.dispose(),this._menuMore=null,this._eleMore=this.hostElement.querySelector('[wj-part="more"]')),this._menuFirst=new wijmo.input.Menu(this._eleFirst,{isButton:!0}),this._menuMore=new wijmo.input.Menu(this._eleMore,{showDropDownButton:!1,header:n._createSvgBtn("More").outerHTML}),!this._toolbarItems.length){wijmo.addClass(this._eleFirst,"wj-dl-hidden");wijmo.addClass(this._eleMore,"wj-dl-hidden");return}t=[];this._toolbarItems.forEach(function(n){var i=n;(i.isVisible==null||i.isVisible(u._hostTile))&&t.push(u._getToolbarItem(n))});f=wijmo.closest(this.hostElement,".wj-dl-tile");e=f.getBoundingClientRect();e.width<=150&&t.length>1?(wijmo.addClass(this._eleFirst,"wj-dl-hidden"),i=t):(t.length>0&&(r=t[0],wijmo.removeClass(this._eleFirst,"wj-dl-hidden"),this._menuFirst.initialize({header:r.icon,itemClicked:function(){r.command()}})),t.length>1&&(i=t.slice(1)));i&&i.length?(wijmo.removeClass(this._eleMore,"wj-dl-hidden"),this._menuMore.initialize({itemsSource:i,displayMemberPath:"element",commandPath:"command"})):wijmo.addClass(this._eleMore,"wj-dl-hidden")},r.prototype._getToolbarItem=function(n){var t=n;return!t.condition||t.condition(this._hostTile)?this._getToolbarItemWithElement(n):this._getToolbarItemWithElement(t.toggleItem)},r.prototype._getToolbarItemWithElement=function(n){var t={};return t.command=n.command,t.icon=n.icon,t.title=n.title,typeof n.element=="undefined"&&(t.element=this._getItemElement(n)),t},r.prototype._getItemElement=function(n){var t=document.createElement("span");return t.style.verticalAlign="middle",t.innerHTML=n.title,n.icon+t.outerHTML},r._enabledCss="enabled",r._commandTagAttr="command-tag",r.controlTemplate='<div wj-part="container" style="display:inline-block"><div wj-part="first"><\/div><div wj-part="more"><\/div><\/div>',r}(wijmo.Control);n.Toolbar=i})(t=n.nav||(n.nav={}))})(c1||(c1={}));
var __extends=this&&this.__extends||function(){var n=function(t,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r(){this.constructor=t}if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(t,i);t.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}}(),c1;(function(n){var t;(function(n){"use strict";var t=function(t){function i(n){var i=t.call(this)||this;return i.initialize(n),i}return __extends(i,t),Object.defineProperty(i.prototype,"items",{get:function(){var n=this;return this._items||(this._items=this._getDefaultItems(),this._items.collectionChanged.addHandler(function(){return n.invalidate()},this)),this._items},enumerable:!1,configurable:!0}),i.prototype._getDefaultItems=function(){return new n.LayoutItemCollection(this)},Object.defineProperty(i.prototype,"definition",{get:function(){var u=this,t={},n,r;return t[i._TYPE_NAME]=this[i._TYPE_NAME],n={},this._getNames().forEach(function(t){n[t]=u[t]}),this.items&&this.items.length&&(r=[],this.items.forEach(function(n){var t=n;r.push(t._getDefinition())}),n.items=r),t.layout=n,t},set:function(n){if(!n||n[i._TYPE_NAME]!=null&&n[i._TYPE_NAME]!=this[i._TYPE_NAME])throw"invalid layout definition";this.initialize(n.layout)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"fullTypeName",{get:function(){throw i._EXCEPTION_ABSTRACT;},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isCreateGroup",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"dashboard",{get:function(){return this._dashboard},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"activeTile",{get:function(){return this._activeTile},enumerable:!1,configurable:!0}),i.prototype._getNames=function(){return i._SETTING_NAMES?i._SETTING_NAMES:(i._SETTING_NAMES=[].concat([]),i._SETTING_NAMES)},Object.defineProperty(i.prototype,"_allowDrag",{get:function(){return this.dashboard?this.dashboard.allowDrag:!0},enumerable:!1,configurable:!0}),i.prototype.attachTo=function(n){this._dashboard!==n&&(this._dashboard!=null&&this.detach(),this._dashboard=n,this._render())},i.prototype.detach=function(){this.dashboard&&(this._activeTile&&(this._activeTile.deactivate(),this._activeTile=null),this.dispose(!0),this._dashboard=null)},i.prototype._render=function(){this.dashboard&&(this._initializeComponent(),this._paint())},i.prototype._initializeComponent=function(){},i.prototype._paint=function(){this.dashboard&&this.draw()},i.prototype.draw=function(){var n=this;this.items&&this.items.forEach(function(t){var i=t;i.render(n._container)})},i.prototype._redraw=function(){},i.prototype.dispose=function(i){i===void 0&&(i=!0);i&&(this._movingTileElement&&(n._removeElement(this._movingTileElement),this._movingTileElement=null),this._left=null,this._top=null,this._lastX=null,this._lastY=null,this._container.innerHTML="");t.prototype.dispose.call(this,i)},i.prototype.refresh=function(n){(n===void 0&&(n=!0),this.dashboard)&&(this.dispose(n),this._paint())},i.prototype.invalidate=function(n){n===void 0&&(n=!0);this.dashboard&&this.dashboard.invalidate(n)},i.prototype.startMove=function(t,i){if(this._canMove()){var r=this._getRelativePostion(i,!0);return this._lastX=r.x,this._lastY=r.y,this._movingTileElement=this._getMovingElement(t),this._container.appendChild(this._movingTileElement),this._left=parseFloat(this._movingTileElement.style.left),this._top=parseFloat(this._movingTileElement.style.top),t.beginMove(),n._addClass(this.dashboard.hostElement,"moving"),!0}return!1},i.prototype._canMove=function(){return this._hasMultipleVisbleTiles()},i.prototype._hasMultipleVisbleTiles=function(){var t=0,i=function(t){if(t instanceof n.Tile)return t.visible?1:0;var r=0;return t instanceof n.Group&&t.children.forEach(function(n){r+=i(n)}),r};return this.items&&this.items.forEach(function(n){t+=i(n)}),t>1},i.prototype._getTileRelativePosition=function(n,t){t===void 0&&(t=!1);var i=n.hostElement.getBoundingClientRect();return this._getRelativePostion(new wijmo.Point(this._dashboard.rightToLeft&&!t?i.right:i.left,i.top),t)},i.prototype._getRelativePostion=function(n,t){t===void 0&&(t=!1);var i=this._container.getBoundingClientRect(),r=this._dashboard.rightToLeft&&!t?i.right-n.x:n.x-i.left,u=n.y-i.top;return new wijmo.Point(r+this._container.scrollLeft,u+this._container.scrollTop)},i.prototype._getMovingElement=function(n){var t=n._getMovingElement(),i=n.hostElement.getBoundingClientRect(),r=this._getRelativePostion(new wijmo.Point(i.left,i.top),!0);return t.style.left=r.x+"px",t.style.top=r.y+"px",t},i.prototype.move=function(n,t){var i=this._getRelativePostion(t,!0);this._left=this._left+i.x-this._lastX;this._top=this._top+i.y-this._lastY;this._lastX=i.x;this._lastY=i.y;this._movingTileElement.style.left=this._left+"px";this._movingTileElement.style.top=this._top+"px";this.moveTo(n,new wijmo.Point(this._left,this._top))},i.prototype.moveTo=function(){},i.prototype.endMove=function(t,i){i||this._cancelMove(t);this._movingTileElement&&(this._container.removeChild(this._movingTileElement),this._movingTileElement=null);t.endMove();n._removeClass(this.dashboard.hostElement,"moving")},i.prototype._cancelMove=function(){},i.prototype.resize=function(n,t){var u;if(n){var f=this._getRelativePostion(t),e=this._getTileRelativePosition(n),i=f.x-e.x,r=f.y-e.y;return i<=0||r<=0?!1:(i>n.maxResizeWidth&&(i=n.maxResizeWidth),r>n.maxResizeHeight&&(r=n.maxResizeHeight),u=this.resizeTo(n,new wijmo.Size(i,r)),u&&wijmo.Control.refreshAll(n.hostElement),u)}},i.prototype.resizeTo=function(){return!1},i.prototype.toggleSize=function(n){n&&n._toggleMaximum()},i.prototype.initialize=function(n){n&&wijmo.copy(this,n)},i.prototype._copy=function(n,t){var r=this,i;return n=="items"?(i=t,i instanceof Array&&i.length&&i.forEach(function(n){return r.items.push(r._createLayoutItem(n))}),!0):!1},i.prototype._createLayoutItem=function(n){return n?n.children||n.hasOwnProperty("orientation")||this.isCreateGroup&&Object.keys(n).length==0?this._createGroup(n):this._createTile(n):null},i.prototype._createTile=function(){throw i._EXCEPTION_ABSTRACT;},i.prototype._createGroup=function(){throw i._EXCEPTION_ABSTRACT;},i.prototype.remove=function(n){return n.remove()?(this._activeTile===n&&(this._activeTile.deactivate(),this._activeTile=null),!0):!1},i._createLayout=function(t){var r,u;return t&&(r=JSON.parse(t),r[i._TYPE_NAME])?(u=n._createInstance(r[i._TYPE_NAME]),u.definition=r,u):null},Object.defineProperty(i.prototype,"_container",{get:function(){return this.dashboard?this.dashboard.container:null},enumerable:!1,configurable:!0}),i.prototype._onTileFormatted=function(n){if(this._dashboard)this._dashboard.onFormatTile(n)},i.prototype._onTileActivated=function(n){if(this._activeTile!==n.tile&&(this._activeTile&&this._activeTile.deactivate(),this._activeTile=n.tile,this._dashboard))this._dashboard.onTileActivated(n)},i.prototype._onTileSizeChanged=function(n){if(this._dashboard)this._dashboard.onTileSizeChanged(n)},i.prototype._onTileVisibilityChanged=function(n){this.refresh(!1);n.tile.visible&&this.activeTile===n.tile&&this._dashboard&&this.dashboard._updateForCurrentTile();this._onLayoutChanged()},i.prototype._onLayoutChanged=function(){this._dashboard.onLayoutChanged()},i.prototype.showAll=function(){var n=this;this.items.forEach(function(t){return n._showLayoutItem(t)})},i.prototype._showLayoutItem=function(t){var i=this;t instanceof n.Tile?t.visible=!0:t instanceof n.Group&&t.children.forEach(function(n){return i._showLayoutItem(n)})},i._EXCEPTION_ABSTRACT="It belongs to an abstract object, please implement it.",i._TYPE_NAME="fullTypeName",i._SETTING_NAMES=null,i}(n.DisposableObject);n.LayoutBase=t})(t=n.nav||(n.nav={}))})(c1||(c1={}));
var __extends=this&&this.__extends||function(){var n=function(t,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r(){this.constructor=t}if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(t,i);t.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}}(),c1;(function(n){var t;(function(n){"use strict";wijmo._addCultureInfo("DashboardLayout",{showAll:"Show All",show:"Show",restore:"Restore",fullScreen:"FullScreen",hide:"Hide"});var t=function(t){function i(n,i){var r=t.call(this,n,i,!0)||this,u;return r._moving=!1,r._resizing=!1,r._allowDrag=!0,r._allowResize=!0,r._allowMaximize=!0,r._allowHide=!0,r._allowShowAll=!0,r.formatTile=new wijmo.Event,r.tileActivated=new wijmo.Event,r.tileSizeChanged=new wijmo.Event,r.layoutChanged=new wijmo.Event,u=r.getTemplate(),r.applyTemplate("wj-dashboard wj-dl-draggable wj-dl-resizable",u,{_container:"ctr",_maxTileContainer:"mtl",_eleCalculateSize:"cse"}),r._init(),i&&r.deferUpdate(function(){r.initialize(i)}),r}return __extends(i,t),Object.defineProperty(i.prototype,"layout",{get:function(){return this._layout},set:function(n){n!==this._layout&&(this._layout&&this._layout.detach(),this._reset(),this._maxTileContainer.innerHTML="",wijmo.addClass(this._maxTileContainer,"wj-dl-hidden"),this._layout=n,this._layout&&this._layout.attachTo(this))},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"allowDrag",{get:function(){return this._allowDrag},set:function(n){n=!!n;this.allowDrag!=n&&(this._allowDrag=n,wijmo.toggleClass(this.hostElement,"wj-dl-draggable",this.allowDrag))},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"allowResize",{get:function(){return this._allowResize},set:function(n){n=!!n;this.allowResize!=n&&(this._allowResize=n,wijmo.toggleClass(this.hostElement,"wj-dl-resizable",this.allowResize))},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"allowMaximize",{get:function(){return this._allowMaximize},set:function(n){n=!!n;this.allowMaximize!=n&&(this._allowMaximize=n,this._updateToolbars())},enumerable:!1,configurable:!0}),i.prototype._updateToolbars=function(){var t=function(i){i instanceof n.Tile?i._refreshToolbar():i instanceof n.Group&&i.children.forEach(function(n){return t(n)})};this.layout&&this.layout.items.forEach(function(n){return t(n)})},Object.defineProperty(i.prototype,"allowHide",{get:function(){return this._allowHide},set:function(n){n=!!n;this.allowHide!=n&&(this._allowHide=n,this._updateToolbars())},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"allowShowAll",{get:function(){return this._allowShowAll},set:function(n){n=!!n;this.allowShowAll!=n&&(this._allowShowAll=n,this._updateToolbars())},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"currentTile",{get:function(){return this._layout!=null?this._layout.activeTile:null},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),i.prototype.onFormatTile=function(n){this.formatTile.raise(this,n);this._eleCalculateSize.appendChild(n.tile.hostElement)},i.prototype.onTileActivated=function(n){this._updateForCurrentTile();this.tileActivated.raise(this,n)},i.prototype.onTileSizeChanged=function(t){var r=t.tile,i;t.isMaximum?(i=this._getMaximumTileElement(r),wijmo.addClass(i,"maximum"),n._removeClass(i,"wj-tile-resizable"),n._removeClass(i,"wj-tile-draggable"),n._removeClass(this._maxTileContainer,"wj-dl-hidden"),this._maxTileContainer.appendChild(i),wijmo.Control.refreshAll(i),this._updateMenusLocation(new wijmo.Point(0,0),r,this._maxTileContainer.firstElementChild)):(r.hostElement.appendChild(r._contentElement),wijmo.Control.refreshAll(r._contentElement),wijmo.addClass(this._maxTileContainer,"wj-dl-hidden"),this._updateForCurrentTile(),this._maxTileContainer.innerHTML="");this.tileSizeChanged.raise(this,t);this.onLayoutChanged()},i.prototype.onLayoutChanged=function(){this.layoutChanged.raise(this)},i.prototype.saveLayout=function(){return this._layout?JSON.stringify(this._layout.definition):""},i.prototype.loadLayout=function(t){this.layout=n.LayoutBase._createLayout(t)},i.prototype.refresh=function(n){n===void 0&&(n=!0);n&&(this._menuMove&&this._eleCalculateSize.appendChild(this._menuMove),this._menuResize&&this._eleCalculateSize.appendChild(this._menuResize));t.prototype.refresh.call(this,n);n&&(this._maxTileContainer.innerHTML="",wijmo.hasClass(this._maxTileContainer,"wj-dl-hidden")||wijmo.addClass(this._maxTileContainer,"wj-dl-hidden"));this._layout&&this._layout.refresh(n);n&&(this._updateForCurrentTile(),this.onLayoutChanged())},i.prototype._init=function(){this._initOperationsEvents();this._initResizeMenu();this._initMoveMenu();this._initContextMenu()},i.prototype._initOperationsEvents=function(){var n=this;this.addEventListener(document,"keydown",function(t){(n._moving&&t.keyCode!=wijmo.Key.Escape&&t.preventDefault(),t.keyCode==wijmo.Key.Escape)&&(n._moving||n._downPoint)&&n._cancelMove()});this.addEventListener(document,"mousemove",function(t){var r=n.currentTile,i;if(!r||!n._layout){n._moving=!1;n._downPoint=null;n._resizing=!1;return}i=new wijmo.Point(t.clientX,t.clientY);n._moving?(n._moveTo(i),t.preventDefault()):n._resizing?(n._resizeTo(i),t.preventDefault()):n._downPoint&&n._startMoveFrom(i)});this.addEventListener(document,"mouseup",function(t){n._downPoint=null;n._resizing=!1;var i=n.currentTile;if(!i||!n._layout){n._moving=!1;return}n._moving&&n._endMoveAt(new wijmo.Point(t.clientX,t.clientY))})},i.prototype._initResizeMenu=function(){this._menuResize||this._drawResizeMenu()},i.prototype._drawResizeMenu=function(){var t;this.rightToLeft?(t=n._createSvgBtn("ResizeLeft"),t.style.cursor="sw-resize",t.style.left="0px"):(t=n._createSvgBtn("Resize"),t.style.cursor="se-resize",t.style.right="0px");wijmo.addClass(t,"wj-menu-resize");this._menuResize=t;this._addResizingTrigger(this._menuResize);this._eleCalculateSize.appendChild(this._menuResize)},i.prototype._addResizingTrigger=function(n){var t=this;this.addEventListener(n,"mousedown",function(n){t.allowResize&&(t._resizing=!0,n.stopPropagation())})},i.prototype._initMoveMenu=function(){this._menuMove||this._drawMoveMenu()},i.prototype._drawMoveMenu=function(){var t=n._createSvgBtn("MoveIndicator");wijmo.addClass(t,"wj-menu-move");this._menuMove=t;this._addMovingTrigger(this._menuMove);this._eleCalculateSize.appendChild(this._menuMove)},i.prototype._addMovingTrigger=function(n){var t=this;this.addEventListener(n,"mousedown",function(n){t.allowDrag&&n.button==0&&(!t.currentTile||t.currentTile.allowDrag&&!t.currentTile.maximum)&&(t._downPoint=new wijmo.Point(n.clientX,n.clientY),n.stopPropagation())})},i.prototype._initContextMenu=function(){var t=this,i=document.createElement("div"),n=new wijmo.input.Menu(i,{displayMemberPath:"header",openOnHover:!0,isAnimated:!0,subItemsPath:"items",command:{executeCommand:this._executeMenuCommand.bind(this),canExecuteCommand:this._canExecuteMenuCommand.bind(this)}});this.addEventListener(this.hostElement,"contextmenu",function(i){var r=t._getMenuItems();i.preventDefault();r&&r.length&&(n.initialize({itemsSource:r}),n.show(i))},!1);this.addEventListener(this._maxTileContainer,"contextmenu",function(n){n.preventDefault();n.stopPropagation()},!1)},i.prototype._executeMenuCommand=function(n){switch(n.cmd){case"Show":n.tile&&(n.tile.visible=!0);break;case"ShowAll":this.showAll()}},i.prototype._canExecuteMenuCommand=function(n){switch(n.cmd){case"ShowAll":var t=this._getHiddenTiles();return!!t.length;default:return!0}},i.prototype._getMenuItems=function(){var n=[],t=this._getHiddenTiles(),i;return t&&t.length&&(i={header:wijmo.culture.DashboardLayout.show,items:[]},t.forEach(function(n){var t=n;i.items.push({header:t.headerText||"Undefined",cmd:"Show",tile:t})}),n.push(i),this.allowShowAll&&n.push({header:wijmo.culture.DashboardLayout.showAll,cmd:"ShowAll"})),n},i.prototype._getHiddenTiles=function(){var i=this,t=[];return this.layout&&this.layout.items&&this.layout.items.forEach(function(r){r instanceof n.Tile?r.visible||t.push(r):t=t.concat(i._getHiddenChildren(r))}),t},i.prototype._getHiddenChildren=function(t){var r=this,i=[];return t&&t.children&&t.children.forEach(function(t){t instanceof n.Tile?t.visible||i.push(t):i=i.concat(r._getHiddenChildren(t))}),i},i.prototype._initMenuItems=function(n){n.itemsSource=[];this.allowShowAll&&[].push({})},i.prototype._updateMenusLocation=function(t,i,r){if(r||(r=i._contentElement),r.appendChild(this._menuResize),i.showHeader)this._menuMove&&n._removeElement(this._menuMove);else{r.appendChild(this._menuMove);var u=r.getBoundingClientRect(),f=this._menuMove.getBoundingClientRect(),e=u.width/2-f.width/2;this._menuMove.style.left=e+"px"}},i.prototype._toggleTileMaximum=function(){this._reset();this._layout.toggleSize(this.currentTile)},i.prototype.remove=function(n){this._layout&&(this._reset(),this._layout.remove(n)&&(n.maximum&&(this._maxTileContainer.innerHTML="",wijmo.addClass(this._maxTileContainer,"wj-dl-hidden")),this.refresh()))},i.prototype.hide=function(n){n.visible=!1},i.prototype.showAll=function(){this.layout&&this.layout.showAll()},i.prototype._reset=function(){this._resizing=!1;this._moving=!1;this._downPoint=null},i.prototype._startMoveFrom=function(n){Math.max(Math.abs(n.x-this._downPoint.x),Math.abs(n.y-this._downPoint.y))<i._MIN_DRAG_DISTANCE||(this._moving=this._layout.startMove(this.currentTile,this._downPoint))},i.prototype._moveTo=function(n){this._layout.move(this.currentTile,n)},i.prototype._endMoveAt=function(n){this._moving=!1;this._layout.endMove(this.currentTile,n);this._updateForCurrentTile();this.onLayoutChanged()},i.prototype._cancelMove=function(){this._downPoint=null;this._endMoveAt(null)},i.prototype._resizeTo=function(n){this._layout.resize(this.currentTile,n)&&(this.refresh(!1),this._updateForCurrentTile(),this.onLayoutChanged())},i.prototype._getMaximumTileElement=function(n){var t=n.hostElement.cloneNode();return t.style.width="100%",t.style.height="100%",t.style.left="0px",t.style.top="0px",t.appendChild(n._contentElement),n._refreshToolbar(),t},i.prototype._updateForCurrentTile=function(){var n=this.currentTile;n&&this._isInDashboard(n)&&n.visible&&this._updateMenusLocation(n._getPosition(),n)},i.prototype._isInDashboard=function(n){if(!n||!this._layout||!this._layout.items||!this._layout.items.length)return!1;for(var t=n.parent,i=this._layout;t;){if(i===t)return!0;t=t.parent}return!1},i.prototype._handleResize=function(){if(this._e.parentElement){var n=new wijmo.Size(this._e.offsetWidth,this._e.offsetHeight);n.equals(this._szCtl)||(this._szCtl=n,this.refresh(!1))}},i._MIN_DRAG_DISTANCE=5,i._MENU_SIZE=24,i.controlTemplate='<div style="position:relative;overflow:hidden;width:100%;height:100%;display:block"><div wj-part="ctr" class="wj-dl-container"><\/div><div wj-part="mtl" class="wj-dl-hidden wj-dl-max-layer"><\/div><div wj-part="cse" style="position:absolute;display:block;visibility:hidden"><\/div><\/div>',i}(wijmo.Control);n.DashboardLayout=t})(t=n.nav||(n.nav={}))})(c1||(c1={}));
var __extends=this&&this.__extends||function(){var n=function(t,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r(){this.constructor=t}if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(t,i);t.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}}(),c1;(function(n){var t;(function(t){"use strict";var i,u,r,f;wijmo._addCultureInfo("FileManager",{upload:"Upload",refresh:"Refresh",create:"New Folder","delete":"Delete",download:"Download",moveFile:"Move File",close:"Close",none:"None",cancel:"Cancel",createFolder1:"Please enter your folder name!",createFolder2:"Create folder success.",uploadFile1:"Upload a file to cloud",uploadFile2:"You are uploading file:",uploadFile3:"Please choose a folder to upload file in.",uploadFile4:"Upload success.",uploadFile5:"Browse File",download1:"Please select a file to download!",moveFile1:"You must choose a file to move first!",moveFile2:"Please choose target path to move file to!",moveFile3:"Move file success",moveFile4:"Select a folder to move file to",delete1:"Do you want to delete this folder and all files inside?",delete2:"Should choose atleast one folder or file to delete!",delete3:"Delete success.",error1:"Must set value for ContainerName when using Azure or OneDrive cloud!",error2:"Must set value for RootFolder or InitPath!",colNameHeader:"Name",colModifiedDateHeader:"Modified Date",colTypeHeader:"Type",colSizeHeader:"Size",btnListTooltip:"Displays items by list. (Ctrl+Shift+1)",btnDetailTooltip:"Displays information about each item in the window. (Ctrl+Shift+2)",btnThumbnailsTootip:"Displays items by using large thumbnails. (Ctrl+Shift+3)",tooManyRequests:"Too Many requests! Please try again later.",search:"Search..."}),function(n){n[n.Folder=0]="Folder";n[n.File=1]="File"}(i||(i={})),function(n){n[n.DropBox=2]="DropBox";n[n.GoogleDrive=3]="GoogleDrive";n[n.Azure=0]="Azure";n[n.AWS=1]="AWS";n[n.OneDrive=4]="OneDrive";n[n.LocalStorage=5]="LocalStorage"}(u=t.CloudName||(t.CloudName={})),function(n){n[n.Create=0]="Create";n[n.Refresh=1]="Refresh";n[n.MoveFile=2]="MoveFile";n[n.Upload=3]="Upload";n[n.Delete=4]="Delete"}(r||(r={}));f=function(f){function e(t,r){var u=f.call(this,t,r,!0)||this,o,e;return u._currentSortHeader=undefined,u._isSortAscending=!0,u._detailColumnCount=-1,u._pageX=undefined,u._curCol=undefined,u._curColWidth=undefined,u._minColHeaderWith=60,u._query=0,u._queryList=[],u._limitQueryLength=10,u._displayMode=0,u._selectedNode=null,u._id="",u._navigateArr=[],u._isReadOnly=!1,u._fileExtentionImageFormater=null,o=u.getTemplate(),u.applyTemplate("wj-control wj-file-manager",o,{_navBtnControl:"nav-btn-control",_moveFile:"move-file",_btnCreateFolder:"btn-create-folder",_btnRefresh:"btn-refresh",_download:"download",_upload:"up-load",_delete:"delete",_list:"list",_detail:"detail",_thumb:"thumb",_popupTemplate:"popup-template",_navAddressInfo:"nav-address-info",_divDetailInfo:"div-detail-info",_treeViewDiv:"tree-view-file-manager",_listBoxContainerDiv:"list-box-container",_listBoxDiv:"list-box",_detailView:"detail-view",_rowHeaderDiv:"row-header"}),u._popupTemplate.innerHTML=u.getPopupElement(),u._uploadFilePopup=u._popupTemplate.querySelector('[wj-part="upload-file-popup"]'),u._btnConfirmUpload=u._popupTemplate.querySelector('[wj-part="btn-confirm-upload"]'),u._btnUploadData=u._popupTemplate.querySelector('[wj-part="btn-upload-data"]'),u._spnFileName=u._popupTemplate.querySelector('[wj-part="spn_fileName"]'),u._moveFilePopup=u._popupTemplate.querySelector('[wj-part="moveFilePopup"]'),u._btnConfirmMovefile=u._popupTemplate.querySelector('[wj-part="btn-confirm-movefile"]'),u._treeViewMoveFileDiv=u._popupTemplate.querySelector('[wj-part="tree-view-move-file"]'),u._navAddressInfo.innerHTML=u.getNavAddressTemplate(),u._navigateUL=u._navAddressInfo.querySelector('[wj-part="navigate-Ul"]'),u._txtSearch=u._navAddressInfo.querySelector('[wj-part="search-txt"]'),u._btnMoveUp=u._navAddressInfo.querySelector('[wj-part="btn-move-up"]'),u._btnSearch=u._navAddressInfo.querySelector('[wj-part="btn-search"]'),u._rowHeaderDiv.innerHTML=u.getRowHeaderTemplate(),e=u.addEventListener.bind(u),e(window,"keydown",function(n){var t=u;t._focus&&u.shortkeyView(n)}),e(u._listBoxDiv,"click",function(n){var r,t;u._listBox.itemsSource!=undefined&&u._listBox.itemsSource.length>0&&(r=u._listBox.indexOf(n.target),r>-1&&u._listBox.selectedIndex!=r&&(t=u._listBox.itemsSource[r],u._parentPath=t.parentPath,u._fileName=t.name,u._type=t.type,u._itemId=t.itemID,u._downloadUrl=t.itemUrl,u.showButtons(),u._selectedNode=t.type==i.Folder?t:u._treeView._selNode))}),e(u._listBoxDiv,"dblclick",function(n){u.enterItem(n)}),e(u._listBoxDiv,"keydown",function(n){switch(n.keyCode){case wijmo.Key.Enter:u.enterItem(n)}}),e(u._btnRefresh,"click",function(){u.refreshTree()}),e(u._download,"click",function(){u.downloadFunc()}),e(u._btnMoveUp,"click",function(){u.moveUp()}),e(u._btnSearch,"click",function(){u.search()}),e(u._slView,"change",function(){u.onSelectFunc()}),e(u._txtSearch,"keydown",function(n){switch(n.keyCode){case wijmo.Key.Enter:u.search()}}),e(u._upload,"click",function(){}),e(u._btnUploadData,"change",function(n){var t=n.target.files,i,r;if(t.length>0){for(i='<ul style="list-style-type:none;max-width:350px;max-height:300px;overflow:auto;white-space:nowrap">',r=0;r<t.length;r++)i+="<li>"+t[r].name+"<\/li>";i+="<\/ul>";u._spnFileName.innerHTML=i;u._uploadingFile=t}else u._spnFileName.innerHTML=wijmo.culture.FileManager.none,u._uploadingFile=null}),e(u._btnConfirmUpload,"click",function(){u.uploadFunc()}),e(u._delete,"click",function(){u.deleteFunc()}),e(u._btnCreateFolder,"click",function(){u.createFolder()}),e(u._btnConfirmMovefile,"click",function(){u.confirmMoveFunc()}),e(u._list,"click",function(){u.onBtnListClick()}),e(u._detail,"click",function(){u.onBtnDetailClick()}),e(u._thumb,"click",function(){u.onBtnThumbClick()}),e(u._detailView,"mouseup",function(n){u._curCol==undefined&&u.sortItems(n)}),e(u._detailView,"mousedown",function(n){u.onColMouseDown(n)}),e(window,"mousemove",function(n){u.onReSizeMoving(n)}),e(window,"mouseup",function(){u.resetResize()}),e(u._listBoxContainerDiv,"scroll",function(){u.rightToLeft?u._rowHeaderDiv.style.right=u._listBoxContainerDiv.scrollLeft+"px":u._rowHeaderDiv.style.left=u._listBoxContainerDiv.scrollLeft*-1+"px"},!0),r&&u.deferUpdate(function(){u.initialize(r)}),n.documentReady(function(){u._initButton();u._init();u.onload();u.fitParent()}),u}return __extends(e,f),Object.defineProperty(e.prototype,"isReadOnly",{get:function(){return this._isReadOnly},set:function(n){n!=this._isReadOnly&&(this._isReadOnly=n,this._updateBtnState())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hostUrl",{get:function(){return this._hostUrl},set:function(n){this._hostUrl=n},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"initPath",{get:function(){return this._initPath},set:function(n){this._initPath=n},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rootFolder",{get:function(){return this._rootFolder},set:function(n){this._rootFolder=n},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"containerName",{get:function(){return this._containerName},set:function(n){this._containerName=n},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cloudType",{get:function(){return this._cloudType},set:function(n){this._cloudType=n;this._cloudName=this.getCloudName()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fileExtentionImageFormater",{get:function(){return this._fileExtentionImageFormater},set:function(n){n&&(this._fileExtentionImageFormater=wijmo.asFunction(n))},enumerable:!1,configurable:!0}),e.prototype.getPopupElement=function(){return'<div wj-part = "moveFilePopup" class="wj-dialog" > <div class="wj-dialog-header"> '+wijmo.culture.FileManager.moveFile4+'<\/div><div class="wj-dialog-body" > <div wj-part ="tree-view-move-file"><\/div><div class="wj-dialog-footer c1-fm-modal-footer" > <button class="c1-fm-btn c1-fm-btn-primary wj-hide-ok " wj-part="btn-confirm-movefile" >OK<\/button><button class="c1-fm-btn c1-fm-btn-default wj-hide">'+wijmo.culture.FileManager.close+'<\/button><\/div><\/div><\/div><div wj-part = "upload-file-popup" class="class="wj-dialog"" style = "text-align:center;min-width:250px;" ><div class="wj-dialog-header"> '+wijmo.culture.FileManager.uploadFile1+'<\/div><div class="wj-dialog-body" ><div class="" ><span style="font-weight:500">'+wijmo.culture.FileManager.uploadFile2+'<\/span><\/br ><span wj-part="spn_fileName">'+wijmo.culture.FileManager.none+'<\/span><div class="wj-dialog-body" ><span class="c1-fm-btn c1-fm-btn-default c1-fm-btn-file" >'+wijmo.culture.FileManager.uploadFile5+'<input wj-part="btn-upload-data" type = "file"  multiple="multiple"  name = "file" accept = ".xlsx" ><\/span><\/div><div class="wj-dialog-footer c1-fm-modal-footer" ><button type="button" class="c1-fm-btn c1-fm-btn-primary wj-hide-ok" wj-part="btn-confirm-upload" >OK<\/button><button class="c1-fm-btn c1-fm-btn-default wj-hide" >'+wijmo.culture.FileManager.cancel+"<\/button><\/div><\/div><\/div><\/div>"},e.prototype.getNavAddressTemplate=function(){return'<div class="c1-fm-container-fluid" style="margin-top:10px;margin-bottom:5px"><div class="c1-fm-row"><div class="c1-fm-nav-link-group c1-fm-col-md-9 c1-fm-col-xs-12" style="margin-bottom:5px;"><div style="display:flex;"><div wj-part="btn-move-up" style="margin-right:10px"><\/div><div class="c1-fm-nav-link"><div class="c1-fm-navbar-collapse c1-fm-nav c1-fm-navbar-nav c1-fm-navbar-left" wj-part="navigate-Ul" style="padding-top:4px;list-style-type:none; display:flex"><\/div><\/div><\/div><\/div><div class="c1-fm-col-md-3 c1-fm-col-xs-12" style="margin-bottom:5px; float:left"><div class="c1-fm-input-group"><span class="c1-fm-input-group-addon c1-fm-search-btn c1-fm-svg" style="height:33.1px;"><div wj-part="btn-search"><\/div><\/span><input type="text" class="c1-fm-form-control c1-fm-search-input" wj-part="search-txt" placeholder="'+wijmo.culture.FileManager.search+'" /><\/div><\/div><\/div><\/div>'},e.prototype.getRowHeaderTemplate=function(){return'<div class="c1-fm-col-header c1-fm-col-sm-4 c1-fm-item-ellipsis c1-column-1" >'+wijmo.culture.FileManager.colNameHeader+'<div class="c1-fm-col-selector col-selector-1"><\/div><\/div><div class="c1-fm-col-header c1-fm-col-sm-3 c1-fm-item-ellipsis c1-column-2" >'+wijmo.culture.FileManager.colModifiedDateHeader+'<div class="c1-fm-col-selector col-selector-2"><\/div><\/div><div class="c1-fm-col-header c1-fm-col-sm-2 c1-fm-item-ellipsis c1-column-3" >'+wijmo.culture.FileManager.colTypeHeader+'<div class="c1-fm-col-selector col-selector-3"><\/div><\/div><div class="c1-fm-col-header c1-fm-col-sm-2 c1-fm-item-ellipsis c1-column-4" >'+wijmo.culture.FileManager.colSizeHeader+'<div class="c1-fm-col-selector col-selector-4"><\/div><\/div><div class="c1-fm-col-header c1-fm-col-sm-1 c1-fm-item-ellipsis c1-column-5" style="padding: 0;"><\/div><\/div>'},e.prototype.fitParent=function(){var i=this._divDetailInfo.clientHeight,n=this._navBtnControl.offsetHeight,t=this._navAddressInfo.offsetHeight;i!=this.hostElement.clientHeight-n-t&&(this._divDetailInfo.style.height=this.hostElement.clientHeight-n-t-2+"px")},e.prototype.enterItem=function(n){var r,t;this._listBox.itemsSource!=undefined&&this._listBox.itemsSource.length>0&&(r=this._listBox.indexOf(n.target),r>-1&&(t=this._listBox.itemsSource[r],this._listBox.selectedIndex!=r&&(this._parentPath=t.parentPath,this._fileName=t.name,this._type=t.type,this._itemId=t.itemID,this._downloadUrl=t.itemUrl,this.showButtons()),t.type==i.Folder&&(this.clickTargetFolder(t.name),this._navigateArr.push(t),this.addNavigateBar())))},e.prototype.onBtnListClick=function(){this._listBoxDiv.className=this._listBoxDiv.className.replace(/\bc1-fm-wrapper\b/g,"");this._listBoxDiv.style.marginTop="0px";this._listBoxDiv.style.width=this._listBoxContainerDiv.clientWidth+"px";this._detailView.style.display="none";this._displayMode=0;this.refreshSource();this.changeDisplayMode()},e.prototype.onBtnDetailClick=function(){this._detailView.style.display="block";this._listBoxDiv.className=this._listBoxDiv.className.replace(/\bc1-fm-wrapper\b/g,"");this._listBoxDiv.style.marginTop="23px";this._displayMode=1;this.refreshSource();this.changeDisplayMode()},e.prototype.onBtnThumbClick=function(){this._detailView.style.display="none";this._listBoxDiv.className=this._listBoxDiv.className+" c1-fm-wrapper";this._listBoxDiv.style.marginTop="0px";this._listBoxDiv.style.removeProperty("width");this._displayMode=2;this.refreshSource();this.changeDisplayMode()},e.prototype.shortkeyView=function(n){if(n.ctrlKey&&n.shiftKey)switch(n.keyCode){case 49:this.onBtnListClick();break;case 50:this.onBtnDetailClick();break;case 51:this.onBtnThumbClick()}},e.prototype.clickTargetFolder=function(n){var u=!1,i=document.getElementsByClassName("wj-node"),t,r;if(i.length>0)for(t=0;t<i.length;t++){if(u&&i[t].innerText.trim()==n.trim()){r=new wijmo.nav.TreeNode(this._treeView,i[t]);r.select();r.isCollapsed=!0;i[t].click();return}i[t].className.indexOf("wj-state-selected")>-1&&(u=!0)}},e.prototype.updateColSizeToResise=function(){var n,i=0,u="",r=this._listBoxContainerDiv.clientWidth,f=0,e,o,t;for(this._detailView.style.width=r+"px",this._listBoxDiv.style.width=r+"px",this._rowHeaderDiv.style.width=r+"px",this._detailColumnCount<1&&(e=document.getElementsByClassName("c1-fm-col-header"),e&&e.length>0&&(this._detailColumnCount=e.length)),o=1;o<this._detailColumnCount;o++)for(u="c1-column-"+o,n=document.getElementsByClassName(u),i=n[0].offsetWidth,f=f+i,t=0;t<n.length;t++)n[t].style.width=i+"px";for(u="c1-column-"+this._detailColumnCount,n=document.getElementsByClassName(u),i=n[0].offsetWidth,f+i>r&&(i=r-f),t=0;t<n.length;t++)n[t].style.width=i+"px"},e.prototype.onColMouseDown=function(n){if(wijmo.hasClass(n.target,"c1-fm-col-selector")){var t=wijmo.closestClass(n.target,"c1-fm-col-header");t&&(this._curColWidth=t.offsetWidth,this._curCol=t,this._pageX=n.pageX)}},e.prototype.onReSizeMoving=function(n){var h,c,o,u,r;if(this._curCol){var t=0,s=void 0,i=0,f="",e=n.pageX-this._pageX;if(this.rightToLeft&&(e=e*-1),this._curColWidth+e<this._minColHeaderWith)return;for(h=1;h<this._detailColumnCount;h++)if(f="c1-column-"+h,s=document.getElementsByClassName(f),i=s[0].offsetWidth,wijmo.hasClass(this._curCol,f)){for(r=0;r<s.length;r++)s[r].style.width=this._curColWidth+e+"px";t=t+this._curColWidth+e}else t=t+i;if(this._rowHeaderDiv&&(f="c1-column-"+this._detailColumnCount,c=document.getElementsByClassName(f),i=c[0].offsetWidth,o=undefined,u=this._listBoxContainerDiv.clientWidth,u>t?(o=u-t,this._rowHeaderDiv.style.width=u+"px",this._listBoxDiv.style.width=u+"px"):u==t?(this._rowHeaderDiv.style.width=u+"px",this._listBoxDiv.style.width=u+"px"):(this._rowHeaderDiv.style.width=t+i+"px",this._listBoxDiv.style.width=t+i+"px"),o!=undefined&&i!=o))for(i=o,r=0;r<c.length;r++)c[r].style.width=i+"px"}},e.prototype.resetResize=function(){this._curCol&&(this._curCol=undefined,this._pageX=undefined,this._curColWidth=undefined,document.body.style.cursor="default")},e.prototype.removeOpacity=function(){this._thumb.className=this._thumb.className.replace(".c1-fm-opa1","").replace("c1-fm-opa5","");this._list.className=this._list.className.replace(".c1-fm-opa1","").replace("c1-fm-opa5","");this._detail.className=this._detail.className.replace(".c1-fm-opa1","").replace("c1-fm-opa5","")},e.prototype.changeDisplayMode=function(){switch(this._displayMode){case 1:this._detailView.style.display="block";this.removeOpacity();this._thumb.className=this._thumb.className+" c1-fm-opa5";this._list.className=this._list.className+" c1-fm-opa5";this._detail.className=this._detail.className+" .c1-fm-opa1";break;case 2:this.removeOpacity();this._thumb.className=this._thumb.className+" .c1-fm-opa1";this._list.className=this._list.className+" c1-fm-opa5";this._detail.className=this._detail.className+" c1-fm-opa5";break;default:this.removeOpacity();this._thumb.className=this._thumb.className+" c1-fm-opa5";this._list.className=this._list.className+" .c1-fm-opa1";this._detail.className=this._detail.className+" c1-fm-opa5"}},e.prototype.onSelectFunc=function(){switch(this._slView.selectedIndex){case 1:this._detailView.style.display="block";this.refreshSource();this._listBoxDiv.className="";break;case 2:this._detailView.style.display="none";this._listBoxDiv.className="c1-fm-wrapper";this.refreshSource();break;default:this._listBoxDiv.className="";this._detailView.style.display="none";this.refreshSource()}},e.prototype._initButton=function(){this._drawMoveFile();this._drawCreate();this._drawRefresh();this._drawDownload();this._drawUpload();this._drawDelete();this._updateBtnState();this._drawMoveUp();this._drawSearch();this._drawDetail();this._drawThumb();this._drawList()},e.prototype._drawMoveFile=function(){this._drawButton(this._moveFile,"MoveFile",wijmo.culture.FileManager.moveFile)},e.prototype._drawCreate=function(){this._drawButton(this._btnCreateFolder,"CreateFolder",wijmo.culture.FileManager.create)},e.prototype._drawRefresh=function(){this._drawButton(this._btnRefresh,"Refresh",wijmo.culture.FileManager.refresh)},e.prototype._drawDownload=function(){this._drawButton(this._download,"Download",wijmo.culture.FileManager.download)},e.prototype._drawUpload=function(){this._drawButton(this._upload,"Upload",wijmo.culture.FileManager.upload)},e.prototype._drawDelete=function(){this._drawButton(this._delete,"Delete",wijmo.culture.FileManager.delete)},e.prototype._updateBtnState=function(){wijmo.toggleClass(this._moveFile,"wj-state-disabled",this._isReadOnly);wijmo.toggleClass(this._btnCreateFolder,"wj-state-disabled",this._isReadOnly);wijmo.toggleClass(this._upload,"wj-state-disabled",this._isReadOnly);wijmo.toggleClass(this._delete,"wj-state-disabled",this._isReadOnly)},e.prototype._drawMoveUp=function(){this._drawButton(this._btnMoveUp,"ArrowUp")},e.prototype._drawSearch=function(){this._drawButton(this._btnSearch,"Search");this._btnSearch.className=""},e.prototype._drawList=function(){this._drawButton(this._list,"ListView");this._list.className="c1-fm-svg .c1-fm-opa1";this.addTooltip(this._list,wijmo.culture.FileManager.btnListTooltip)},e.prototype._drawThumb=function(){this._drawButton(this._thumb,"ThumbnaiLView");this._thumb.className="c1-fm-svg c1-fm-opa5";this.addTooltip(this._thumb,wijmo.culture.FileManager.btnThumbnailsTootip)},e.prototype._drawDetail=function(){this._drawButton(this._detail,"DetailView");this._detail.className="c1-fm-svg c1-fm-opa5";this.addTooltip(this._detail,wijmo.culture.FileManager.btnDetailTooltip)},e.prototype._drawButton=function(n,i,r){var f,u;i&&(f=t._createSvgBtn(i),n.innerHTML=f.outerHTML);r&&(u=document.createElement("span"),u.innerHTML=r,u.style.verticalAlign="middle",n.innerHTML+=" "+u.outerHTML);n.className="c1-fm-nav-btn c1-fm-svg"},e.prototype.addTooltip=function(n,t){var i=new wijmo.Tooltip,r='<div style="text-align: center; width: 100%; word-wrap: normal; word-break: normal;">'+t+"<\/div>";i.setTooltip(n,r,wijmo.PopupPosition.BelowLeft)},e.prototype._updateRootPath=function(){this._rootPath=this._cloudName==""?"/"+this.getContainer(this._initPath)+"/":"/"+this._cloudName+"/"+this.getContainer(this._initPath)+"/"},e.prototype._checkInitPath=function(){if(this._initPath==undefined)if(this._rootFolder!=undefined){if(this._cloudName==""){this._initPath=this._rootFolder;return}var n="null";if(this._cloudName=="Azure"||this._cloudName=="OneDrive"){if(this._containerName==undefined)throw wijmo.culture.FileManager.error1;n=this._containerName}this._initPath=n+"/"+this._rootFolder}else throw wijmo.culture.FileManager.error2;},e.prototype._init=function(){var n=this,r=t._createSvgBtn("Folder"),o=t._createSvgBtn("File"),s=t._createSvgBtn("ExcelFile"),h=t._createSvgBtn("PdfFile"),c=t._createSvgBtn("ImageFile"),l=t._createSvgBtn("DocFile"),ut=t._createSvgBtn("ThumbnaiLView"),a=t._createSvgBtn("BigFolder"),v=t._createSvgBtn("BigFile"),y=t._createSvgBtn("BigExcel"),p=t._createSvgBtn("BigPdf"),w=t._createSvgBtn("BigImage"),b=t._createSvgBtn("BigDoc"),u,e,it,rt;this._cloudName=this.getCloudName();this.hideAllButtons();this._checkInitPath();this._updateRootPath();u=new wijmo.nav.TreeView(this._treeViewDiv,{displayMemberPath:"name",childItemsPath:"items",imageMemberPath:"image",autoCollapse:!1,selectedItemChanged:function(){},itemClicked:function(t){var i=u.selectedNode;n._selectedNode=i;n._treeView=t;i&&(n._parentPath=n._selectedNode.dataItem.parentPath,n._fileName=n._selectedNode.dataItem.name,n._parentNode=n._selectedNode.parentNode,n._type=n._selectedNode.dataItem.type,n._itemId=n._selectedNode.dataItem.itemID,n._downloadUrl=n._selectedNode.dataItem.itemUrl,n._navigateArr.push(u.selectedItem),n.addNavigateBar(),n.showButtons(),!n._treeView.selectedNode==null||n._treeView.selectedNode.isCollapsed||n.getAllFilesAndFolders(n._treeView.selectedNode,!1))},formatItem:function(t,u){u.dataItem&&(u.dataItem.type==i.Folder?n._fileExtentionImageFormater==null&&(u.element.className=u.element.className+" c1-fm-svg",u.element.innerHTML=r.innerHTML+" "+u.element.innerHTML):u.element.parentNode.removeChild(u.element))}});e=new wijmo.nav.TreeView(this._treeViewMoveFileDiv,{displayMemberPath:"name",childItemsPath:"items",imageMemberPath:"image",selectedItemChanged:function(){var t=e.selectedNode;t&&(n._targetPath=t.dataItem.parentPath,n._parentPath=t.dataItem.parentPath,n._fileName=t.dataItem.name)},itemClicked:function(){},formatItem:function(t,u){u.dataItem&&(u.dataItem.type==i.Folder?n._fileExtentionImageFormater==null&&(u.element.className=u.element.className+" c1-fm-svg",u.element.innerHTML=r.innerHTML+" "+u.element.innerHTML):u.element.parentNode.removeChild(u.element))}});this._treeViewMoveFileDiv.style.maxHeight="300px";var k=function(t){var i=n._displayMode;n._slView!=undefined&&(i=n._slView.selectedIndex);switch(i){case 1:tt(t);break;case 2:g(t);break;default:d(t)}},d=function(n){n.item.innerHTML='<div style="display:inline-flex;width: 60%;" class="c1-fm-svg"><div style="margin-right:3px;display:inline-block;">'+f(n)+'<\/div><span class="wj-node-text c1-fm-item-ellipsis">'+n.data.name+"<\/span><\/div>";var t=new wijmo.Tooltip,i='<div class="c1-fm-row"><div class="c1-fm-col-sm-12"><div style="width:100%;">Name: '+n.data.name+'<\/div><div style="width:100%;">Last Modified Date: '+n.data.modifiedDate+'<\/div><div style="width:100%;">Size: '+n.data.size+" kb<\/div><\/div><\/div>";t.showAtMouse=!0;t.setTooltip(n.item,i,wijmo.PopupPosition.BelowLeft)},g=function(n){n.item.className=n.item.className;n.item.style.width="14.2%";n.item.style.minWidth="50px";n.item.innerHTML='<div class="c1-fm-thumb-item">'+nt(n)+'<span style="display:inline-block;width:100%" class="wj-node-text c1-fm-item-ellipsis">'+n.data.name+"<\/span><\/div>";var t=new wijmo.Tooltip,i='<div class="c1-fm-row"><div class="c1-fm-col-sm-12"><div style="width:100%;">Name: '+n.data.name+'<\/div><div style="width:100%;">Last Modified Date: '+n.data.modifiedDate+'<\/div><div style="width:100%;">Size: '+n.data.size+" kb<\/div><\/div><\/div>";t.setTooltip(n.item,i)},f=function(n){if(n.data.type==i.Folder)return r.innerHTML;var t=n.data.name.split(".").pop();switch(t){case"pdf":return h.innerHTML;case"docx":case"doc":return l.innerHTML;case"xlsx":case"xls":return s.innerHTML;case"png":case"tif":case"gif":case"jpg":return c.innerHTML;default:return o.innerHTML}},nt=function(n){if(n.data.type==i.Folder)return a.innerHTML;var t=n.data.name.split(".").pop();switch(t){case"pdf":return p.innerHTML;case"docx":case"doc":return b.innerHTML;case"xlsx":case"xls":return y.innerHTML;case"png":case"tif":case"gif":case"jpg":return w.innerHTML;default:return v.innerHTML}},tt=function(t){t.item.innerHTML=t.data.type==i.Folder?'<div class="c1-fm-svg" style="padding-left: 9px; padding-right:9px"><div style="margin-right:3px;display:inline-block;">'+r.innerHTML+'<\/div><span class="wj-node-text c1-fm-item-ellipsis">'+t.data.name+"<\/span><\/div>":n.rightToLeft?'<div class="c1-fm-clearfix" style="margin-left: -6px; margin-right: -6px; "><div class="c1-fm-col-sm-1 c1-fm-item-ellipsis c1-column-5" style="padding: 0" > <\/div><div class="c1-fm-col-sm-2 c1-fm-item-ellipsis c1-column-4" style="text-align:right;">'+t.data.size+' kb<\/div><div class="c1-fm-col-sm-2 c1-fm-item-ellipsis c1-column-3">'+t.data.typeName+'<\/div><div class="c1-fm-col-sm-3 c1-fm-item-ellipsis c1-column-2">'+t.data.modifiedDate+'<\/div><div style="display: inline-flex;" class="c1-fm-col-sm-4 c1-fm-svg c1-fm-item-ellipsis c1-column-1"><div style = "margin-right:3px" > '+f(t)+' <\/div><span class="wj-node-text c1-fm-item-ellipsis" > '+t.data.name+" <\/span ><\/div> <\/div>":'<div class="c1-fm-clearfix" style="margin-left: -6px; margin-right: -6px"><div style="display: inline-flex;" class="c1-fm-col-sm-4 c1-fm-svg c1-fm-item-ellipsis c1-column-1"><div style = "margin-right:3px" > '+f(t)+' <\/div><span class="wj-node-text c1-fm-item-ellipsis" > '+t.data.name+' <\/span ><\/div> <div class="c1-fm-col-sm-3 c1-fm-item-ellipsis c1-column-2">'+t.data.modifiedDate+'<\/div><div class="c1-fm-col-sm-2 c1-fm-item-ellipsis c1-column-3">'+t.data.typeName+'<\/div><div class="c1-fm-col-sm-2 c1-fm-item-ellipsis c1-column-4" style="text-align:right;">'+t.data.size+' kb<\/div><div class="c1-fm-col-sm-1 c1-fm-item-ellipsis c1-column-5" style="padding: 0" > <\/div><\/div>';var u=new wijmo.Tooltip,e='<div class="c1-fm-row"><div class="c1-fm-col-sm-12"><div style="width:100%;">Name: '+t.data.name+'<\/div><div style="width:100%;">Last Modified Date: '+t.data.modifiedDate+'<\/div><div style="width:100%;">Size: '+t.data.size+" kb<\/div><\/div><\/div>";u.showAtMouse=!0;u.setTooltip(t.item,e,wijmo.PopupPosition.BelowLeft)};this._listBox=new wijmo.input.ListBox(this._listBoxDiv,{formatItem:function(t,i){var r=n._txtSearch.value;r!=""&&i.data.name.toLowerCase().indexOf(r.toLowerCase())==-1?i.item.style.display="none":k(i)},selectedIndex:-1});it=new wijmo.input.Popup(this._uploadFilePopup,{owner:this._upload,showTrigger:"Click",shown:function(){n._spnFileName.innerHTML=wijmo.culture.FileManager.none;n._btnUploadData.value="";n._uploadingFile=null},hidden:function(){n._focus&&n.focus()}});rt=new wijmo.input.Popup(this._moveFilePopup,{owner:this._moveFile,showTrigger:"Click",shown:function(){n.onClientMoveFile()},hidden:function(){n._focus&&n.focus()}});this._initContextMenu()},e.prototype._initContextMenu=function(){var n=this,r=document.createElement("div"),t=new wijmo.input.Menu(r,{displayMemberPath:"header",subItemsPath:"items",command:{executeCommand:this._executeMenuCommand.bind(this),canExecuteCommand:this._canExecuteMenuCommand.bind(this)}});this.addEventListener(this._listBox.hostElement,"contextmenu",function(r){var f=n._listBox.indexOf(r.target),u,e;f>-1&&(n._listBox.selectedIndex!=f&&(n._listBox.selectedIndex=f,u=n._listBox.itemsSource[f],n._parentPath=u.parentPath,n._fileName=u.name,n._type=u.type,n._itemId=u.itemID,n._downloadUrl=u.itemUrl,n.showButtons(),n._selectedNode=u.type==i.Folder?u:n._treeView._selNode),e=n._getMenuItems(),r.preventDefault(),e&&e.length&&(t.initialize({itemsSource:e}),t._dropDown.className=t._dropDown.className+"c1-fm-context-menu-items c1-fm-svg",t.show(r)))},!1)},e.prototype._executeMenuCommand=function(n){var t=this;setTimeout(function(){t._focus&&t.focus()});switch(n.cmd){case"Upload":this._upload.click();break;case"Refresh":this.refreshTree();break;case"Create":this.createFolder(n.data);break;case"Delete":this.deleteFunc(n.data);break;case"Download":this.downloadFunc(n.data);break;case"Move":this._moveFile.click()}},e.prototype._canExecuteMenuCommand=function(n){switch(n.cmd){case"Create":case"Upload":case"Delete":case"Move":return!this._isReadOnly;default:return!0}},e.prototype._getMenuItems=function(n){n===void 0&&(n=undefined);var r=[],t=this.getSelectedItem(n);return t._type===i.Folder?r.push({header:this._btnCreateFolder.innerHTML,cmd:"Create",data:t},{header:this._btnRefresh.innerHTML,cmd:"Refresh",data:t},{header:this._upload.innerHTML,cmd:"Upload",data:t},{header:this._delete.innerHTML,cmd:"Delete",data:t}):r.push({header:this._moveFile.innerHTML,cmd:"Move",data:t},{header:this._download.innerHTML,cmd:"Download",data:t},{header:this._delete.innerHTML,cmd:"Delete",data:t}),r},e.prototype.onload=function(){this.onLoadTreeView(this._treeViewDiv)},e.prototype.hideAllButtons=function(){this._moveFile.style.display="none";this._btnCreateFolder.style.display="none";this._btnRefresh.style.display="none";this._download.style.display="none";this._upload.style.display="none";this._delete.style.display="none";this._detailView.style.display="none";this.changeDisplayMode()},e.prototype.showButtons=function(){this._detail.style.display="inline-block";this._thumb.style.display="inline-block";this._list.style.display="inline-block";this.hideAllButtons();this._type==0?(this._btnCreateFolder.style.display="inline-block",this._btnRefresh.style.display="inline-block",this._upload.style.display="inline-block",this._delete.style.display="inline-block"):(this._moveFile.style.display="inline-block",this._download.style.display="inline-block",this._delete.style.display="inline-block")},e.prototype.getSelectedItem=function(n){if(n===void 0&&(n=undefined),n==undefined||n==null){var t=this;return{_parentPath:t._parentPath,_fileName:t._fileName,_type:t._type,_itemId:t._itemId,_downloadUrl:t._downloadUrl}}return n},e.prototype.search=function(){this.refreshSource()},e.prototype.refreshSource=function(){var n=[];this._listBox.itemsSource!=null&&this._listBox.itemsSource.length>0&&(this._listBox.itemsSource.forEach(function(t){n.push(t)}),n[0].image="");this._listBox.itemsSource=n;this._listBox.selectedIndex=-1;this._listBox.invalidate();this._displayMode==1&&this.updateColSizeToResise()},e.prototype.moveUp=function(){this._treeView.selectedNode!=null&&this._treeView.selectedNode.parentNode!=null&&(this._treeView.selectedItem=this._treeView.selectedNode.parentNode.dataItem,this._treeView.invalidate(),this._listBox.itemsSource=this._treeView.selectedNode.nodes[0].itemsSource,this._listBox.selectedIndex=-1,this._listBox.invalidate(),this._parentPath=this._treeView.selectedItem.parentPath,this._fileName=this._treeView.selectedItem.name,this._type=this._treeView.selectedItem.type,this._itemId=this._treeView.selectedItem.itemID,this._downloadUrl=this._treeView.selectedItem.itemUrl,this.addNavigateBar())},e.prototype.downloadFunc=function(n){var i,t;if(n===void 0&&(n=undefined),i=this.getSelectedItem(n),i._downloadUrl==""||i._type==0){alert(wijmo.culture.FileManager.download1);return}t=document.createElement("a");t.style.display="none";t.href=i._downloadUrl;t.download=i._fileName;document.body.appendChild(t);t.click();document.body.removeChild(t)},e.prototype.addNavigateBar=function(){var e=this,i=this._navigateUL,f,r,u,n;i.innerHTML="";f=this._parentPath.substring(this._rootPath.length).split("/");r="c1-fm-cloud-link";f.forEach(function(n){var u=e,o,s,f;if(n!=""){o=document.createElement("div");o.className=r;s=document.createElement("small");f=document.createElement("a");f.className="c1-fm-li-nav";f.href="#";f.text=n;f.onclick=function(n){var h=this,i=u._navigateUL.querySelectorAll(".c1-fm-li-nav"),e=[],r,o,t,s;if(i&&i.length)for(r=0;r<i.length;r++)e.push(i[r]);if(o=e.indexOf(n.target),u._navigateArr.length>0)for(t=0;t<u._navigateArr.length;t++)if(s=u._navigateArr[t].parentPath.substring(u._rootPath.length).split("/"),o==s.length&&u._navigateArr[t].name==f.innerText){u._treeView.selectedItem=u._navigateArr[t];u._treeView.invalidate();u._treeView.selectedNode.nodes[0]!=undefined&&(u._listBox.itemsSource=u._treeView.selectedNode.nodes[0].itemsSource,u._listBox.selectedIndex=-1,u._listBox.invalidate(),u._parentPath=u._treeView.selectedItem.parentPath,u._fileName=u._treeView.selectedItem.name,u._type=u._treeView.selectedItem.type,u._itemId=u._treeView.selectedItem.itemID,u._downloadUrl=u._treeView.selectedItem.itemUrl,u.addNavigateBar());return}};s.appendChild(f);o.appendChild(s);i.appendChild(o);var c=document.createElement("div"),h=document.createElement("small"),l=t._createSvgBtn("Triangle");h.appendChild(l);h.className="c1-fm-3angels";c.appendChild(h);i.appendChild(c);r=""}});u=document.createElement("div");n=document.createElement("a");n.className="c1-fm-li-nav";n.href="#";n.text=this._fileName;u.appendChild(n);i.appendChild(u)},e.prototype.onClientMoveFile=function(){if(this._fileName==undefined){alert(wijmo.culture.FileManager.moveFile1);return}this._targetUrl=this._hostUrl+"/api/storage/Move"+this._parentPath+"/?subpath="+this._fileName;this._originalFileName=this._fileName;this._fileName="";this.onLoadTreeView(this._treeViewMoveFileDiv)},e.prototype.confirmMoveFunc=function(){var t,n,i,u,f;if(!this._isReadOnly){if(t=this,this._targetPath==undefined){alert(wijmo.culture.FileManager.moveFile2);return}if(n=this._targetUrl+"?targetpath="+this.cleanRootPath(this._parentPath)+this._fileName+"/"+this._originalFileName,this._originalFileName="",i=this._targetUrl.split("?")[0].replace(this._hostUrl,"").replace("/api/storage/Move",""),u=this._parentPath+"/"+this._fileName+"/",i==u){alert(wijmo.culture.FileManager.moveFile5);return}this._itemId!=null&&(n=n+"?itemid="+this._itemId);n=this.removeSlashsFromUrl(n);f={url:encodeURI(n),async:!0,cache:!1,type:"GET",success:function(){alert(wijmo.culture.FileManager.moveFile3);t.updateTree(r.MoveFile)},error:function(n){alert(n)}};t._sendRequest(f)}},e.prototype.cleanRootPath=function(n){return n.length==this._rootPath.length?"":this.cloudType==u.OneDrive?n.substring(9)+"/":n.substring(this._rootPath.length)+"/"},e.prototype.refreshTree=function(){this._treeView=wijmo.Control.getControl(this._treeViewDiv);this._treeView.loadTree(!0);this._treeView.selectedNode!=null&&this.getAllFilesAndFolders(this._treeView.selectedNode,!1)},e.prototype.updateTree=function(n){var t=this,u;this._treeView=wijmo.Control.getControl(this._treeViewDiv);switch(n){case r.Create:this._treeView.selectedNode!=null&&this.getAllFilesAndFolders(this._treeView.selectedNode,!0);break;case r.Delete:this._type==i.Folder?(u=null,this._treeView._selNode==this._selectedNode&&this._treeView._selNode.dataItem.name==this._fileName?(u=this._selectedNode.parentNode,t._parentPath=this._selectedNode.parentNode.dataItem.parentPath,t._fileName=this._selectedNode.parentNode.dataItem.name,t._type=this._selectedNode.parentNode.dataItem.type,t._itemId=this._selectedNode.parentNode.dataItem.itemID,t._downloadUrl=this._selectedNode.parentNode.dataItem.itemUrl,t.addNavigateBar()):t._treeView._selNode==null?u=this._parentNode:t._treeView._selNode.parentNode?(u=t._treeView._selNode.parentNode,t._parentPath=t._treeView._selNode.parentNode.dataItem.parentPath,t._fileName=t._treeView._selNode.parentNode.dataItem.name,t._type=t._treeView._selNode.parentNode.dataItem.type,t._itemId=t._treeView._selNode.parentNode.itemID,t._downloadUrl=t._treeView._selNode.parentNode.itemUrl):(u=t._treeView._selNode,t._parentPath=t._treeView._selNode.dataItem.parentPath,t._fileName=t._treeView._selNode.dataItem.name,t._type=t._treeView._selNode.dataItem.type,t._itemId=t._treeView._selNode.itemID,t._downloadUrl=t._treeView._selNode.itemUrl),u.select(),this.getAllFilesAndFolders(u,!0)):(this._selectedNode!=null&&this.getAllFilesAndFolders(this._selectedNode,!1),t._parentPath=this._selectedNode.dataItem.parentPath,t._fileName=this._selectedNode.dataItem.name,t._type=this._selectedNode.dataItem.type,t._itemId=this._selectedNode.dataItem.itemID,t._downloadUrl=this._selectedNode.dataItem.itemUrl,t.showButtons());break;default:this._treeView.selectedNode!=null&&this.getAllFilesAndFolders(this._treeView.selectedNode,!1)}},e.prototype.decorageFileExtention=function(n){var t="";return n?this._fileExtentionImageFormater!=null?(t=n.split(".").pop(),this._fileExtentionImageFormater(t)):"":""},e.prototype.uploadFunc=function(){var n,i,t,u;this._isReadOnly||(n=this,this._type==1?alert(wijmo.culture.FileManager.uploadFile3):(i=this._uploadingFile,i&&i.length>0?(t=this._hostUrl+"/api/storage"+this._parentPath+"/?subpath="+this._fileName+"/"+i[0].name,this._itemId!=null&&(t=t+"?itemid="+this._itemId),t=this.removeSlashsFromUrl(t),u={url:t,async:!0,type:"POST",postType:"multipart",data:{file:i[0]},success:function(){var i,u,t;if(n._uploadingFile.length>=2){for(i=n._uploadingFile,u=[],t=1;t<i.length;t++)u.push(i[t]);n._uploadingFile=u;n.uploadFunc()}else n._spnFileName.innerHTML=wijmo.culture.FileManager.none,n._uploadingFile=null,alert(wijmo.culture.FileManager.uploadFile4),n.updateTree(r.Upload)},error:function(n){alert(n)}},n._sendRequest(u)):alert(wijmo.culture.FileManager.moveFile6)))},e.prototype.getDialogTemplate=function(n){var t="";switch(n){case r.Create:case r.Delete:t='<div class="c1-fm-modal-dialog" role="dialog"><div class="c1-fm-modal-header"><h4>{header}<\/h4><\/div><div class="c1-fm-modal-body"><p>{body}<\/p>{inputTextControl}<\/div><div class="c1-fm-modal-footer"><button class="c1-fm-btn c1-fm-btn-primary wj-hide-ok">{ok}<\/button><button class="c1-fm-btn c1-fm-btn-default wj-hide">{cancel}<\/button><\/div><\/div>'}return t},e.prototype.getDialogOption=function(n,t){var i={};switch(n){case r.Create:i={header:wijmo.culture.FileManager.create,body:wijmo.culture.FileManager.createFolder1,inputTextControl:'<input class="form-control" value="'+wijmo.culture.FileManager.create+'">',ok:"OK",cancel:wijmo.culture.FileManager.cancel};break;case r.Delete:i={header:"Delete Confirmation",body:t&&t.body?t.body:wijmo.culture.FileManager.delete4,inputTextControl:"",ok:"OK",cancel:wijmo.culture.FileManager.cancel}}return i},e.prototype.createDialog=function(n,t){var r=this.getDialogTemplate(n),u=this.getDialogOption(n,t),i=wijmo.createElement(wijmo.format(r,u));return i.style.width="25%",i},e.prototype.propmtPopup=function(n,t,i){var u=this.createDialog(n,t),f=new wijmo.input.Popup(u,{showing:function(){if(n==r.Create)var t=u.querySelector("input"),i=u.querySelector("button.wj-hide-ok")},hiding:function(){n==r.Create&&f.removeEventListener(u.querySelector("input"),"input")}});f.show(!0,function(t){if(i){var f=t.dialogResult&&t.dialogResult.indexOf("ok")>-1,e=null;f&&n==r.Create&&(e=u.querySelector("input").value);i({resultOK:f,data:e})}})},e.prototype.createFolder=function(n){var f=this;if(n===void 0&&(n=undefined),!this._isReadOnly){var t=this,i=t.getSelectedItem(n),u=null;this.propmtPopup(r.Create,null,function(n){var o,e,s;if(n.resultOK){if(u=n.data,!u)return;if(o=!1,t._listBox.itemsSource.length>0&&t._listBox.itemsSource.forEach(function(n){n.name==u.trim()&&(o=!0)}),o){alert(wijmo.culture.FileManager.createFolder3);return}e=t._hostUrl+"/api/storage/Folder"+i._parentPath+"/?subpath="+i._fileName+"/"+u;i._itemId!=null&&(e=e+"?itemid="+i._itemId);e=f.removeSlashsFromUrl(e);s={url:e,async:!0,type:"POST",contentType:"false",dataType:"json",postType:"json",success:function(){alert(wijmo.culture.FileManager.createFolder2);t.updateTree(r.Create)},error:function(n){alert(n)}};t._sendRequest(s)}})}},e.prototype.deleteFunc=function(n){if(n===void 0&&(n=undefined),!this._isReadOnly){var u=this,t=this.getSelectedItem(n),f={body:t._type==i.Folder?wijmo.culture.FileManager.delete1:wijmo.culture.FileManager.delete4};this.propmtPopup(r.Delete,f,function(n){n.resultOK&&u.confirmDelete(t)})}},e.prototype.confirmDelete=function(n){var i=this,t,u;if(n._parentPath==undefined||n._fileName==undefined){alert(wijmo.culture.FileManager.delete2);return}t=this._hostUrl+"/api/storage"+n._parentPath+"/?subpath="+n._fileName;n._itemId!=null&&(t=t+"?itemid="+n._itemId);t=this.removeSlashsFromUrl(t);u={url:t,async:!0,cache:!1,type:"DELETE",contentType:"false",success:function(){alert(wijmo.culture.FileManager.delete3);i.updateTree(r.Delete)},error:function(n){alert(n)}};i._sendRequest(u)},e.prototype.getContainer=function(n){var t=n;return n!=undefined&&n.indexOf("/")!=-1&&(t=n.substring(0,n.indexOf("/"))),t},e.prototype.getCloudName=function(){switch(this.cloudType){case 0:return"Azure";case 1:return"AWS";case 3:return"GoogleDrive";case 4:return"OneDrive";case 5:return"";default:return"DropBox"}},e.prototype.onLoadTreeView=function(n){var t=this,r,u,f;this._treeView=null;this._treeView=wijmo.Control.getControl(n);r=this._hostUrl+"/api/storage/List";u=this._cloudName==""?"/"+this._initPath:"/"+this._cloudName+"/"+this._initPath;r=r+u;this._itemId!=null&&(r=r+"?itemid="+this._itemId);r=this.removeSlashsFromUrl(r);f={url:encodeURI(r),async:!0,type:"GET",contentType:"application/json; charset=utf-8",dataType:"json",postType:"json",success:function(n){n.forEach(function(n){n.itemUrl=r.replace("List/","")+"/"+n.name;n.parentPath=u;n.image=t.decorageFileExtention(n.name);n.reload=!0;n.type==i.Folder&&(n.items=[])});t._treeView.itemsSource=n},error:function(n){alert(n.message)}};t._sendRequest(f);this._treeView.lazyLoadFunction=function(r,u){var e=r.dataItem!=null&&r.dataItem!=undefined?r.dataItem:r,f=t._hostUrl+"/api/storage/List";f=f+"/"+e.parentPath;e.name!=null&&(f=f+"/?subpath="+e.name);e.itemID!=null&&(f=f+"?itemid="+e.itemID);f=t.removeSlashsFromUrl(f);var o=e.name,s=e.parentPath,h={url:encodeURI(f),async:!0,type:"GET",contentType:"application/json; charset=utf-8",dataType:"json",postType:"json",success:function(r){r.forEach(function(n){n.itemUrl=f.replace("List/","")+"/"+n.name;n.parentPath=s+"/"+o;n.image=t.decorageFileExtention(n.name);n.reload=!0;n.typeName=t.getTypeByItemName(n);n.type==i.Folder&&(n.items=[])});this.sortItemsByName(r);u(r);n==t._treeViewDiv&&(t._listBox.itemsSource=r,t._currentSortHeader=wijmo.culture.FileManager.colNameHeader,t.sortItemsByName(t._listBox.itemsSource))},error:function(n){alert(n.message)}};t._sendRequest(h)};this._treeView.isCollapsedChanging.addHandler(function(n,t){var i=t.node,r=i.treeView;i.isCollapsed||i.dataItem.reload!=!0||(i.dataItem.items=[],r.loadTree())})},e.prototype.getTypeByItemName=function(n){if(n.type==i.Folder)return"File Folder";var t=n.name.split(".").pop();switch(t){case"docx":case"doc":return"Microsoft Word Document";case"xlsx":case"xls":return"Microsoft Excel Worksheet";default:return t.toUpperCase()+" File"}},e.prototype.getAllFilesAndFolders=function(n,r){var u=this,e=n.dataItem!=null&&n.dataItem!=undefined?n.dataItem:n,f=u._hostUrl+"/api/storage/List";f=f+"/"+e.parentPath;e.name!=null&&(f=f+"/?subpath="+e.name);e.itemID!=null&&(f=f+"?itemid="+e.itemID);f=this.removeSlashsFromUrl(f);var o=e.name,s=e.parentPath,h={url:encodeURI(f),async:!0,type:"GET",contentType:"application/json; charset=utf-8",dataType:"json",postType:"json",success:function(e){var a,c,h,v;if(e.forEach(function(n){n.itemUrl=f.replace("List/","")+"/"+n.name;n.parentPath=s+"/"+o;n.image=u.decorageFileExtention(n.name);n.reload=!0;n.typeName=u.getTypeByItemName(n);n.type==i.Folder&&(n.items=[])}),u._listBox.itemsSource=e,e&&!e.length?r=!0:(wijmo.nav.TreeNode._isEmpty(n.element)&&(r=!0),u._currentSortHeader=wijmo.culture.FileManager.colNameHeader,u.sortItemsByName(u._listBox.itemsSource)),r){if(n!=null&&(e.length>0?(this.sortItemsByName(e),n.dataItem.items=[],e.forEach(function(t){n.dataItem.items.push(t)})):(n.dataItem.items=[],n.isCollapsed||wijmo.addClass(n.element,t.TreeView._CCLD))),n.refresh(n.dataItem),n.hasChildren)for(a=0;a<n.nodes.length;a++)n.nodes[a].dataItem!=null&&n.nodes[a].dataItem.type==i.Folder&&(n.nodes[a].isCollapsed=!0);u._treeView.loadTree(!0);setTimeout(function(){u._treeView.selectedNode!=null&&u._treeView.selectedNode.setCollapsed(!1,!1,!1)},0,u)}if(c=wijmo.Control.getControl(u._treeViewMoveFileDiv),c&&c.selectedNode){var y=c.selectedNode.dataItem.name,p=c.selectedNode.level,l=document.getElementsByClassName("wj-node");if(l.length>0)for(h=0;h<l.length;h++)if(l[h].innerText.trim()==y.trim()&&(v=new wijmo.nav.TreeNode(this._treeView,l[h]),v.level==p&&wijmo.nav.TreeNode._isEmpty(l[h]))){wijmo.removeClass(l[h],t.TreeView._CEMP);wijmo.addClass(l[h],t.TreeView._CCLD);c.itemsSource=[];return}c.itemsSource=[]}},error:function(n){alert(n.message)}};return u._sendRequest(h),[]},e.prototype.removeSlashsFromUrl=function(n){return n.replace(/([^:])(\/\/+)/g,"$1/")},e.prototype.sortItemsByModifytime=function(n,t){t===void 0&&(t=!0);var i=[];n&&n.length>0&&(i=n.sort(function(n,i){var r=new Date(n.modifiedDate),u=new Date(i.modifiedDate);return r==u?t?n.name.localeCompare(i.name):i.name.localeCompare(n.name):t?r.getTime()-u.getTime():u.getTime()-r.getTime()}),this._listBox.itemsSource=i,this.refreshSource())},e.prototype.sortItemsByName=function(n,t){t===void 0&&(t=!0);var i=[];n&&n.length>0&&(i=n.sort(function(n,i){return n.type==i.type?t?n.name.localeCompare(i.name):i.name.localeCompare(n.name):t?n.type-i.type:i.type-n.type}),this._listBox.itemsSource=i,this.refreshSource())},e.prototype.sortItemsByTypeName=function(n,t){t===void 0&&(t=!0);var i=[];n&&n.length>0&&(i=n.sort(function(n,i){return n.typeName==i.typeName?t?n.name.localeCompare(i.name):i.name.localeCompare(n.name):t?n.typeName.localeCompare(i.typeName):i.typeName.localeCompare(n.typeName)}),this._listBox.itemsSource=i,this.refreshSource())},e.prototype.sortItemsBySize=function(n,t){t===void 0&&(t=!0);var i=[];n&&n.length>0&&(i=n.sort(function(n,i){return n.size==i.size?t?n.name.localeCompare(i.name):i.name.localeCompare(n.name):t?n.size-i.size:i.size-n.size}),this._listBox.itemsSource=i,this.refreshSource())},e.prototype.sortItems=function(n){var t=undefined;n.path!=undefined&&(t=n.path[0].innerText==undefined?n.path[1].innerText:n.path[0].innerText);n.originalTarget!=undefined&&t==undefined&&(t=n.originalTarget.innerText);n.target!=undefined&&t==undefined&&(t=n.target.innerText);this._currentSortHeader==t&&(this._isSortAscending=!this._isSortAscending);switch(t){case wijmo.culture.FileManager.colNameHeader:this.sortItemsByName(this._listBox.itemsSource,this._isSortAscending);this._currentSortHeader=wijmo.culture.FileManager.colNameHeader;break;case wijmo.culture.FileManager.colModifiedDateHeader:this.sortItemsByModifytime(this._listBox.itemsSource,this._isSortAscending);this._currentSortHeader=wijmo.culture.FileManager.colModifiedDateHeader;break;case wijmo.culture.FileManager.colTypeHeader:this.sortItemsByTypeName(this._listBox.itemsSource,this._isSortAscending);this._currentSortHeader=wijmo.culture.FileManager.colTypeHeader;break;case wijmo.culture.FileManager.colSizeHeader:this.sortItemsBySize(this._listBox.itemsSource,this._isSortAscending);this._currentSortHeader=wijmo.culture.FileManager.colSizeHeader}},e.prototype.callAjax=function(t){n.mvc.Utils.ajax(t)},e.prototype.onBeginQuery=function(){this._query++},e.prototype._isQuerying=function(){return this._query>0},e.prototype.onEndQuery=function(){this._query--},e.prototype._sendQuery=function(){var n=this,t,i,r;n._isQuerying()||n._queryList&&n._queryList.length&&(n.onBeginQuery(),t=n._queryList.shift(),i=t.success,t.success=function(t){n._success();i&&i.call(n,t)},r=t.error,t.error=function(t){n._fail.bind(n);r&&r.call(n,t)},n.callAjax(t))},e.prototype._sendRequest=function(n){var t=this;if(t._queryList&&t._queryList.length>=t._limitQueryLength){alert(wijmo.culture.FileManager.tooManyRequests);return}t._queryList.push(n);t._sendQuery()},e.prototype._fail=function(n,t,i){this.onEndQuery();var r="("+t+") "+i;throw r;},e.prototype._success=function(){var n=this;if(n.onEndQuery(),n._queryList&&n._queryList.length){n._sendQuery();return}},e.controlTemplate='<div style="position:relative;overflow:hidden;width:100%;height:100%;display:block"><nav wj-part="nav-btn-control" class="c1-fm-navbar"><div class="c1-fm-container-fluid" style="margin-top:10px;margin-bottom:10px"><div class="c1-fm-row"><div class="c1-fm-col-md-12" style="padding-left:0px!important;"><div wj-part="move-file"><\/div><div wj-part="btn-create-folder"><\/div><div wj-part="btn-refresh"><\/div><div wj-part="download"><\/div><div wj-part="up-load"><\/div><div wj-part="delete"><\/div><div wj-part="popup-template" style="display:none;"><\/div><div class="c1-fm-sl-view" style="height:32px;width:120px;"><div wj-part="list" style="margin-left:10px;height:32px;float:left;"><\/div><div wj-part="detail" style="margin-left:10px;height:32px;float:left;"><\/div><div wj-part="thumb" style="height:32px;float:left;"><\/div><\/div><\/div><\/div><\/div><\/nav><nav wj-part="nav-address-info" class="c1-fm-navbar" ><\/nav><div wj-part="div-detail-info" class = "c1-fm-panel" style ="position:relative; height: 395px;" ><div class="c1-fm-container-fluid" style="height:100%; position:relative;"><div class="c1-fm-row" style="height:100%; position:relative;"><div class="c1-fm-col-sm-3 c1-fm-col-md-4 c1-fm-col-xs-6 c1-fm-template-treeview" style = "height:100%; padding-left:0px!important; overflow:auto;" ><div class="c1-fm-row"><div wj-part="tree-view-file-manager" class="c1-fm-no-border"><\/div><\/div><\/div><div class="c1-fm-col-sm-9 c1-fm-col-md-8 c1-fm-col-xs-6" style="height:100%"><div class="c1-fm-row c1-fm-list-box-container"><div class="c1-fm-container-fluid" wj-part="list-box-container" style="width: 100%; height:100%; outline: none; position:absolute; top:0; left:0; overflow:auto" ><div class="c1-fm-row c1-fm-list-box-item" style="width:100%; position:absolute; top:0; "><div wj-part="list-box" class="c1-fm-no-border" style="width:100%;overflow: visible;"><\/div><\/div><\/div><div class="c1-fm-container-fluid c1-fm-bottom-border"  wj-part="detail-view" style="width: 100%; height:22px; outline: none;position:absolute; top:0; overflow: hidden;"><div class="c1-fm-row" wj-part="row-header" style="position: relative; /*left: 0px;*/ background-color:inherit;" ><\/div><\/div><\/div><\/div><\/div><\/div><\/div><\/div>',e}(wijmo.Control);t.FileManager=f})(t=n.nav||(n.nav={}))})(c1||(c1={}));
var __extends=this&&this.__extends||function(){var n=function(t,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r(){this.constructor=t}if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(t,i);t.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}}(),c1;(function(n){var t;(function(n){var t;(function(t){"use strict";var f=function(t){function f(n){var r=t.call(this,null)||this;return r._direction=i.LeftToRight,r.initialize(n),r}return __extends(f,t),Object.defineProperty(f.prototype,"direction",{get:function(){return this._direction},set:function(n){(n=wijmo.asEnum(n,i),n!=this._direction)&&(this._direction=n,this.invalidate())},enumerable:!1,configurable:!0}),f.prototype._getDefaultItems=function(){return new u(this)},Object.defineProperty(f.prototype,"fullTypeName",{get:function(){return"c1.nav.flow.FlowLayout"},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"isCreateGroup",{get:function(){return!1},enumerable:!1,configurable:!0}),f.prototype._getNames=function(){return f._SETTING_NAMES?f._SETTING_NAMES:(f._SETTING_NAMES=["direction"].concat(t.prototype._getNames.call(this)),f._SETTING_NAMES)},f.prototype._initializeComponent=function(){t.prototype._initializeComponent.call(this);wijmo.addClass(this._container,f._CLASS_FLOW)},f.prototype.detach=function(){this._container&&wijmo.removeClass(this._container,f._CLASS_FLOW);t.prototype.detach.call(this)},f.prototype.draw=function(){switch(this.direction){case i.LeftToRight:n._addClass(this._container,f._CLASS_LTR);break;case i.RightToLeft:n._addClass(this._container,f._CLASS_RTL);break;case i.TopToDown:n._addClass(this._container,f._CLASS_TTD);break;case i.BottomToUp:n._addClass(this._container,f._CLASS_BTU)}t.prototype.draw.call(this);this._scrollLeft!=null&&(this._container.scrollLeft=this._scrollLeft,this._scrollLeft=null);this._scrollTop!=null&&(this._container.scrollTop=this._scrollTop,this._scrollTop=null)},f.prototype._redraw=function(){this.draw()},f.prototype.dispose=function(n){n===void 0&&(n=!0);this.items&&this.items.forEach(function(t){var i=t;i.dispose(n)});n&&this._container&&wijmo.removeClass(this._container,[f._CLASS_LTR,f._CLASS_RTL,f._CLASS_TTD,f._CLASS_BTU].join(" "));t.prototype.dispose.call(this,n)},f.prototype.resizeTo=function(n,t){var i=n;return i.width=t.width,i.height=t.height,this._container.scrollLeft&&(this._scrollLeft=this._container.scrollLeft),this._container.scrollTop&&(this._scrollTop=this._container.scrollTop),n._updateSize(new wijmo.Size(i.width,i.height)),!0},f.prototype.moveTo=function(i,r){var u,s,e;t.prototype.moveTo.call(this,i,r);var o=Number.MAX_VALUE,f=0,h=this.items.indexOf(i),c=n._getDistance(this._getTileRelativePosition(i,!0),r);for(this.items._removeInternal(i),u=this.items.length;u>=0;u--)u==this.items.length?this._container.appendChild(i.hostElement):(e=this.items[u],this._container.insertBefore(i.hostElement,e.hostElement)),s=n._getDistance(this._getTileRelativePosition(i,!0),r),s<o&&(o=s,f=u);c==o&&(f=h);f==this.items.length?this._container.appendChild(i.hostElement):(e=this.items[f],this._container.insertBefore(i.hostElement,e.hostElement));this.items._insertAtInternal(i,f)},f.prototype._createTile=function(n){return new r(n)},f.prototype._createGroup=function(){throw n.LayoutItemCollection._INVALID_ITEM_TYPE;},f.prototype._onTileVisibilityChanged=function(n){var i=n.tile;wijmo.toggleClass(i.hostElement,"wj-dl-hidden",!i.visible);t.prototype._onTileVisibilityChanged.call(this,n)},f.prototype.startMove=function(n,i){return this._oldIndex=this.items.indexOf(n),t.prototype.startMove.call(this,n,i)},f.prototype._cancelMove=function(n){var t,i;n&&(this.items._removeInternal(n),t=this._oldIndex,t==this.items.length?this._container.appendChild(n.hostElement):(i=this.items[t],this._container.insertBefore(n.hostElement,i.hostElement)),this.items._insertAtInternal(n,t))},f.prototype.endMove=function(n,i){t.prototype.endMove.call(this,n,i);this._oldIndex=null},f._CLASS_LTR="wj-flow-ltr",f._CLASS_RTL="wj-flow-rtl",f._CLASS_TTD="wj-flow-ttd",f._CLASS_BTU="wj-flow-btu",f._CLASS_FLOW="wj-dl-flow",f._SETTING_NAMES=null,f}(n.LayoutBase),i,r,u;t.FlowLayout=f,function(n){n[n.LeftToRight=0]="LeftToRight";n[n.TopToDown=1]="TopToDown";n[n.RightToLeft=2]="RightToLeft";n[n.BottomToUp=3]="BottomToUp"}(i=t.FlowDirection||(t.FlowDirection={}));r=function(t){function i(n){var i=t.call(this,null)||this;return i._allowResize=!0,n.headerText==undefined&&(n.headerText="undefined"),i.initialize(n),i}return __extends(i,t),Object.defineProperty(i.prototype,"width",{get:function(){return this._width},set:function(t){this._width=wijmo.isNumber(t)?Math.max(t,n.LayoutItem._MIN_SIZE):t},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"height",{get:function(){return this._height},set:function(t){this._height=wijmo.isNumber(t)?Math.max(t,n.LayoutItem._MIN_SIZE):t},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"allowResize",{get:function(){return this._allowResize},set:function(n){n=!!n;this.allowResize!=n&&(this._allowResize=n,this._updateResizable())},enumerable:!1,configurable:!0}),i.prototype._updateResizable=function(){this.hostElement&&wijmo.toggleClass(this.hostElement,"wj-tile-resizable",this.allowResize)},i.prototype._initializeComponent=function(){t.prototype._initializeComponent.call(this);this._updateResizable()},i.prototype._getNames=function(){return i._SETTING_NAMES?i._SETTING_NAMES:(i._SETTING_NAMES=["width","height"].concat(t.prototype._getNames.call(this)),i._SETTING_NAMES)},i.prototype.draw=function(){var r,u,f;t.prototype.draw.call(this);r=this.width;u=this.height;(this.width==null||this.height==null)&&(f=this.hostElement.getBoundingClientRect(),this.width==null&&(r=wijmo.isFirefox()?Math.max(i._DEFAULT_FIREFOX_WIDTH,n.LayoutItem._MIN_SIZE):Math.max(f.width,n.LayoutItem._MIN_SIZE)),this.height==null&&(u=Math.max(f.height,n.LayoutItem._MIN_SIZE)));this._updateSize(new wijmo.Size(r,u))},i.prototype._appendTo=function(n,i){var s=this.layout,e=s.items,o=e.indexOf(this),u,r,f;if(o!=-1){if(u=e.length,o==u-1)t.prototype._appendTo.call(this,n,i);else{for(r=o+1;r<u;r++)if(f=e[r],f.hostElement&&i.contains(f.hostElement)){i.insertBefore(n,f.hostElement);break}r==u&&t.prototype._appendTo.call(this,n,i)}this._refreshContent()}},i._SETTING_NAMES=null,i._DEFAULT_FIREFOX_WIDTH=334,i}(n.Tile);t.FlowTile=r;u=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t.prototype._isValidType=function(t){return n.prototype._isValidType.call(this,t)&&t instanceof r},t}(n.LayoutItemCollection)})(t=n.flow||(n.flow={}))})(t=n.nav||(n.nav={}))})(c1||(c1={}));
var __extends=this&&this.__extends||function(){var n=function(t,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r(){this.constructor=t}if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(t,i);t.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}}(),c1;(function(n){var t;(function(n){var t;(function(t){"use strict";var s=function(t){function i(i){var r=t.call(this)||this;return r._cellSize=n.LayoutItem._MIN_SIZE,r._cellSpacing=6,r._orientation=n.LayoutOrientation.Horizontal,r._maxRowsOrColumns=6,r._groupSpacing=10,r._isRemovingMovedTile=!1,r.initialize(i),r}return __extends(i,t),Object.defineProperty(i.prototype,"cellSize",{get:function(){return this._cellSize},set:function(t){wijmo.assert(t>0,"The value should be a positive number!");var i=Math.max(t,n.LayoutItem._MIN_SIZE);this.cellSize!=t&&(this._cellSize=i,this.invalidate())},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"cellSpacing",{get:function(){return this._cellSpacing},set:function(n){wijmo.assert(n>=0,"The value should NOT be a negative number!");this.cellSpacing!=n&&(this._cellSpacing=n,this.invalidate())},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"groupSpacing",{get:function(){return this._groupSpacing},set:function(n){wijmo.assert(n>=0,"The value should NOT be a negative number!");this.groupSpacing!=n&&(this._groupSpacing=n,this.invalidate())},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"maxRowsOrColumns",{get:function(){return this._maxRowsOrColumns},set:function(n){wijmo.assert(n>0,"The value should be a positive interger!");this.maxRowsOrColumns!=n&&(this._maxRowsOrColumns=n,this.invalidate())},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"orientation",{get:function(){return this._orientation},set:function(t){t=wijmo.asEnum(t,n.LayoutOrientation);this.orientation!=t&&(this._orientation=t,this.invalidate())},enumerable:!1,configurable:!0}),i.prototype._getNames=function(){return i._SETTING_NAMES?i._SETTING_NAMES:(i._SETTING_NAMES=["cellSize","cellSpacing","groupSpacing","maxRowsOrColumns","orientation"].concat(t.prototype._getNames.call(this)),i._SETTING_NAMES)},i.prototype._initializeComponent=function(){t.prototype._initializeComponent.call(this);wijmo.addClass(this.dashboard.hostElement,i._CLASS_LAYOUT)},i.prototype.detach=function(){this.dashboard&&wijmo.removeClass(this.dashboard.hostElement,i._CLASS_LAYOUT);t.prototype.detach.call(this)},i.prototype.draw=function(){var t=this,f;this._eleGroupsContainer||(f=document.createElement("div"),f.style.position="relative",this._container.appendChild(f),this._eleGroupsContainer=f);var e=i._MARGIN_SPACE,o=i._MARGIN_SPACE,r=0,u=0,s=this.orientation==n.LayoutOrientation.Vertical;this.items.forEach(function(n,i){var h=n,f;h._hasVisibleTiles()&&(h.render(t._eleGroupsContainer),(t._refreshStartGroupIndex==null||i>=t._refreshStartGroupIndex)&&h._setLocation(e,o),f=h._getBounds(),s?(u=f.bottom,o=f.bottom+t.groupSpacing,r=f.right):(e=f.right+t.groupSpacing,u=f.bottom,r=f.right))});r!=0&&u!=0&&(s?r+=i._MARGIN_SPACE:u+=i._MARGIN_SPACE*2);this._eleGroupsContainer.style.width=r+"px";this._eleGroupsContainer.style.height=u+"px"},i.prototype._redraw=function(){this.draw()},i.prototype.dispose=function(i){i===void 0&&(i=!0);this.items&&this.items.forEach(function(n){var t=n;t.dispose(i)});i&&this._eleGroupsContainer&&(n._removeElement(this._eleGroupsContainer),this._eleGroupsContainer=null);t.prototype.dispose.call(this,i)},i.prototype.refresh=function(n){n===void 0&&(n=!0);t.prototype.refresh.call(this,n);this._refreshStartGroupIndex=null},i.prototype.resizeTo=function(n,t){var r=Math.ceil(t.height/this.cellSize),u=Math.ceil(t.width/this.cellSize),i=n,f;return i.rowSpan!=r||i.columnSpan!=u?(i.rowSpan=r,i.columnSpan=u,i._updateSize(null),f=n.parent,f._redraw(),!0):!1},i.prototype._getGroupIndex=function(t){if(!t)return-1;var i=t;return(t instanceof n.Tile&&(i=t.parent),!(i instanceof n.Group))?-1:this._getGridGroupIndex(i)},i.prototype._getGridGroupIndex=function(n){for(var i,t=0;t<this.items.length;t++)if(i=this.items[t],n===i)return t;return-1},i.prototype._getTileIndex=function(n){var i,t;if(!n||!n.parent)return-1;for(i=n.parent,t=0;t<i.children.length;t++)if(i.children[t]==n)return t;return-1},i.prototype.moveTo=function(n,t){this._moveTo(n,null,t)},i.prototype._moveTo=function(n,t,i){var r=this._getGroupIndex(n),e=this._getTileIndex(n),u,f;r!=-1&&(this._isRemovingMovedTile=!0,n._remove(!0),this._isRemovingMovedTile=!1);i&&(t=this._findHitGroup(i));t?(t._ensureInclude(n),u=void 0,i&&(f=t._getBounds(),u=new wijmo.Point(i.x-f.left,i.y-f.top)),this._moveToGroup(n,t,u)):i&&r!=-1&&e!=-1&&(t=this.items[r],t._ensureInclude(n),t.children._insertAtInternal(n,e));t&&(t.draw(),this._moveToGroupIndex=this._getGroupIndex(t))},i.prototype._moveToGroup=function(){},i.prototype._findHitGroup=function(n){for(var r,t,u=this.items.length,i=0;i<u;i++)if(r=this.items[i],t=r._getBounds(),n.x>=t.left&&n.x<t.right&&n.y>=t.top&&n.y<t.bottom)return r;return null},i.prototype._onTileVisibilityChanged=function(n){var r=n.tile,i=this._getGroupIndex(r),u=r.parent;u._hasVisibleTiles()&&i--;this._refreshStartGroupIndex=this._refreshStartGroupIndex==null?i+1:Math.min(this._refreshStartGroupIndex,i+1);t.prototype._onTileVisibilityChanged.call(this,n)},i.prototype.startMove=function(n,i){return this._mGroup=n.parent,this._oldIndex=this._getTileIndex(n),this._moveFromGroupIndex=this._getGroupIndex(n),t.prototype.startMove.call(this,n,i)},i.prototype._cancelMove=function(n){n&&this._mGroup&&this._moveTo(n,this._mGroup,null)},i.prototype.endMove=function(n,i){t.prototype.endMove.call(this,n,i);this._mGroup=null;this._oldIndex=null;this._moveToGroupIndex!=null&&(this._refreshStartGroupIndex=Math.min(this._moveFromGroupIndex,this._moveToGroupIndex)+1,this.refresh(!1))},i._CLASS_LAYOUT="wj-dl-grid",i._SETTING_NAMES=null,i._MARGIN_SPACE=3,i}(n.LayoutBase),h,c,i,r,u,f,e,o;t.GridLayout=s;h=function(t){function i(n){var i=t.call(this)||this;return i.initialize(n),i}return __extends(i,t),i.prototype._getDefaultItems=function(){return new v(this)},Object.defineProperty(i.prototype,"fullTypeName",{get:function(){return"c1.nav.grid.AutoGridLayout"},enumerable:!1,configurable:!0}),i.prototype._moveToGroup=function(t,i,r){var f=0,e;if(r||this._oldIndex==null){var o=Number.MAX_VALUE,u=i.children.length,s=i;do i.children._insertAtInternal(t,u),i.draw(),e=n._getDistance(this._getPosition(t),r),e<o&&(o=e,f=u),i.children._removeAtInternal(u);while(u-->0)}else f=this._oldIndex;i.children._insertAtInternal(t,f)},i.prototype._getPosition=function(n){var t=n.hostElement.getBoundingClientRect(),i=this._container.getBoundingClientRect();return new wijmo.Point(t.left-i.left,t.top-i.top)},i.prototype._createTile=function(n){return new u(n)},i.prototype._createGroup=function(n){return new e(n)},i}(s);t.AutoGridLayout=h;c=function(n){function t(t){var i=n.call(this)||this;return i.initialize(t),i}return __extends(t,n),t.prototype._getDefaultItems=function(){return new p(this)},Object.defineProperty(t.prototype,"fullTypeName",{get:function(){return"c1.nav.grid.ManualGridLayout"},enumerable:!1,configurable:!0}),t.prototype._moveToGroup=function(n,t,i){var r=n,f,u;i||this._oldIndex==null?(f=t,u=f._getHitLocation(i),(r.column!=u.x||r.row!=u.y||r.parent!=f)&&(r.column=u.x,r.row=u.y,f.children._insertAtInternal(r))):(r.row=this._oldRow,r.column=this._oldColumn,t.children._insertAtInternal(n,this._oldIndex))},t.prototype._createTile=function(n){return new r(n)},t.prototype._createGroup=function(n){return new o(n)},t.prototype.startMove=function(t,i){var r=t;return this._oldRow=r.row,this._oldColumn=r.column,n.prototype.startMove.call(this,t,i)},t.prototype._canMove=function(){return this.maxRowsOrColumns>1||n.prototype._canMove.call(this)},t.prototype.endMove=function(t,i){n.prototype.endMove.call(this,t,i);this._oldRow=null;this._oldColumn=null},t}(s);t.ManualGridLayout=c;i=function(t){function i(n){var i=t.call(this,null)||this;return i._rowSpan=0,i._columnSpan=0,i._allowResize=!0,i.initialize(n),i}return __extends(i,t),Object.defineProperty(i.prototype,"rowSpan",{get:function(){return this._rowSpan},set:function(n){wijmo.assert(n>0,"The value should be a positive interger!");this._rowSpan=n},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"columnSpan",{get:function(){return this._columnSpan},set:function(n){wijmo.assert(n>0,"The value should be a positive interger!");this._columnSpan=n},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"allowResize",{get:function(){return this._allowResize},set:function(n){n=!!n;this.allowResize!=n&&(this._allowResize=n,this._updateResizable())},enumerable:!1,configurable:!0}),i.prototype._updateResizable=function(){this.hostElement&&wijmo.toggleClass(this.hostElement,"wj-tile-resizable",this.allowResize)},i.prototype._getNames=function(){return i._SETTING_NAMES?i._SETTING_NAMES:(i._SETTING_NAMES=["rowSpan","columnSpan"].concat(t.prototype._getNames.call(this)),i._SETTING_NAMES)},i.prototype._getValidLayout=function(){if(!this.layout)throw i._EXCEPTION_WITHOUT_LAYOUT;return this.layout},i.prototype._getSpans=function(){return this._getValidLayout().orientation==n.LayoutOrientation.Horizontal?this.rowSpan:this.columnSpan},i.prototype._getCells=function(){return this._getValidLayout().orientation==n.LayoutOrientation.Horizontal?this.columnSpan:this.rowSpan},i.prototype._getStartRow=function(){return 1},i.prototype._getStartColumn=function(){return 1},i.prototype.draw=function(){this.rowSpan!=0&&this.columnSpan!=0&&(t.prototype.draw.call(this),this._updateSize(null))},i.prototype._updateSize=function(){this._validateSettings();var n=this._getValidLayout(),i=this.columnSpan*n.cellSize+(this.columnSpan-1)*n.cellSpacing,r=this.rowSpan*n.cellSize+(this.rowSpan-1)*n.cellSpacing;t.prototype._updateSize.call(this,new wijmo.Size(i,r),!0)},i.prototype._updateLoaction=function(){var n=this._getValidLayout(),t=(this._getStartColumn()-1)*(n.cellSize+n.cellSpacing),i=(this._getStartRow()-1)*(n.cellSize+n.cellSpacing);this.hostElement.style.left=t+"px";this.hostElement.style.top=i+"px"},i.prototype._validateSettings=function(){var t=this._getValidLayout();switch(t.orientation){case n.LayoutOrientation.Vertical:this._columnSpan=Math.min(this._columnSpan,t.maxRowsOrColumns);break;case n.LayoutOrientation.Horizontal:this._rowSpan=Math.min(this._rowSpan,t.maxRowsOrColumns)}},i.prototype._initializeComponent=function(){t.prototype._initializeComponent.call(this);this._updateResizable()},i.prototype._appendTo=function(n,i){t.prototype._appendTo.call(this,n,i);this._refreshContent()},i._EXCEPTION_WITHOUT_LAYOUT="Cannot render the item without Layout!",i._SETTING_NAMES=null,i}(n.Tile);t.GridTile=i;r=function(t){function i(n){var i=t.call(this,null)||this;return i._column=1,i._row=1,i.initialize(n),i}return __extends(i,t),Object.defineProperty(i.prototype,"column",{get:function(){return this._column},set:function(n){wijmo.assert(n>0,"The value should be a positive interger!");this._column=n},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"row",{get:function(){return this._row},set:function(n){wijmo.assert(n>0,"The value should be a positive interger!");this._row=n},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"rowSpan",{get:function(){return this._mRowSpan},set:function(n){wijmo.assert(n>0,"The value should be a positive interger!");this._mRowSpan=n},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"columnSpan",{get:function(){return this._mColumnSpan},set:function(n){wijmo.assert(n>0,"The value should be a positive interger!");this._mColumnSpan=n},enumerable:!1,configurable:!0}),i.prototype._getNames=function(){return i._SETTING_NAMES?i._SETTING_NAMES:(i._SETTING_NAMES=["row","column"].concat(t.prototype._getNames.call(this)),i._SETTING_NAMES)},i.prototype._getStartRow=function(){return this.row},i.prototype._getStartColumn=function(){return this.column},i.prototype._validateSettings=function(){t.prototype._validateSettings.call(this);var i=this._getValidLayout();switch(i.orientation){case n.LayoutOrientation.Vertical:this._column=Math.min(this._column,i.maxRowsOrColumns);this._mColumnSpan=Math.min(this._mColumnSpan,i.maxRowsOrColumns-this._column+1);break;case n.LayoutOrientation.Horizontal:this._row=Math.min(this._row,i.maxRowsOrColumns);this._mRowSpan=Math.min(this._mRowSpan,i.maxRowsOrColumns-this._row+1)}},i._SETTING_NAMES=null,i}(i);t.ManualGridTile=r;u=function(t){function i(){return t!==null&&t.apply(this,arguments)||this}return __extends(i,t),i.prototype._getStartRow=function(){return this._startRow},i.prototype._getStartColumn=function(){return this._startColumn},i.prototype._setLocation=function(t,i){var r=this._getValidLayout().orientation;t++;i++;switch(r){case n.LayoutOrientation.Vertical:this._startColumn=t;this._startRow=i;break;case n.LayoutOrientation.Horizontal:this._startColumn=i;this._startRow=t}this._updateLoaction()},i.prototype.dispose=function(n){n===void 0&&(n=!0);n&&(this._startColumn=null,this._startRow=null);t.prototype.dispose.call(this,n)},i}(i);t.AutoGridTile=u;f=function(t){function r(n){var i=t.call(this)||this;return i._bounds=new wijmo.Rect(0,0,0,0),i.initialize(n),i}return __extends(r,t),r.prototype._getValidLayout=function(){if(!this.layout)throw i._EXCEPTION_WITHOUT_LAYOUT;return this.layout},r.prototype._getBounds=function(){return this._bounds},r.prototype._getRowSpan=function(){var t=this._getValidLayout();return t.orientation===n.LayoutOrientation.Horizontal?t.maxRowsOrColumns:this._rowSpan},r.prototype._getColumnSpan=function(){var t=this._getValidLayout();return t.orientation===n.LayoutOrientation.Vertical?t.maxRowsOrColumns:this._columnSpan},r.prototype.draw=function(){},r.prototype._redraw=function(){var i=this.layout;i!=null&&(!i._isRemovingMovedTile||this!=i.items[i._moveFromGroupIndex]||this._hasVisibleTiles())&&(this._hasVisibleTiles()||n._removeElement(this.hostElement),t.prototype._redraw.call(this))},r.prototype._setLocation=function(n,t){this._bounds.left=n;this._bounds.top=t;this.hostElement.style.left=n+"px";this.hostElement.style.top=t+"px"},r.prototype._setSize=function(t){var i=this._getValidLayout();switch(i.orientation){case n.LayoutOrientation.Vertical:this._rowSpan=t;break;case n.LayoutOrientation.Horizontal:this._columnSpan=t}var r=this._getColumnSpan(),u=this._getRowSpan(),f=r*i.cellSize+(r-1)*i.cellSpacing,e=u*i.cellSize+(u-1)*i.cellSpacing;this.hostElement.style.width=f+"px";this.hostElement.style.height=e+"px";this._bounds.width=f;this._bounds.height=e},r.prototype.dispose=function(n){n===void 0&&(n=!0);n&&(this._bounds=new wijmo.Rect(0,0,0,0),this._rowSpan=null,this._columnSpan=null);t.prototype.dispose.call(this,n)},r.prototype._getHitLocation=function(n){var t=this.layout,r=Math.max(1,n.x),u=Math.max(1,n.y),i=t.cellSize+t.cellSpacing;return new wijmo.Point(Math.ceil(r/i),Math.ceil(u/i))},r.prototype._createGroup=function(){throw n.LayoutItemCollection._INVALID_ITEM_TYPE;},r.prototype._ensureInclude=function(n){n.hostElement&&n.hostElement.parentElement!=this._contentElement&&this._contentElement.appendChild(n.hostElement)},r.prototype._hasVisibleTiles=function(){for(var t,n=0;n<this.children.length;n++)if(t=this.children[n],t.visible)return!0;return!1},r.prototype._onTileVisibilityChanged=function(i){var r=i.tile;r.visible?this._ensureInclude(r):n._removeElement(r.hostElement);this.hostElement&&this._redraw();t.prototype._onTileVisibilityChanged.call(this,i)},r.prototype._updatePartialView=function(n){n&&this.hostElement.parentElement!=n&&n.appendChild(this.hostElement)},r}(n.Group);t.GridGroup=f;e=function(n){function t(t){var i=n.call(this,null)||this;return i.initialize(t),i}return __extends(t,n),t.prototype._getDefaultItems=function(){return new a(this)},t.prototype.draw=function(){var r=this,t=[],n=0,i=this._getValidLayout();this.children.forEach(function(u){var o=u,h,a,c,v,y,p,f;if(o.visible){var l=o._getSpans(),w=i.maxRowsOrColumns-l,e=n,s=0;for(f=0;f<=w;f++)if(h=t[f]||0,h<e){for(a=!0,c=1;c<l;c++)if(t[c+f]>h){a=!1;break}a&&(e=h,s=f)}for(v=s,y=e,e+=o._getCells(),p=Math.min(i.maxRowsOrColumns,s+l),f=s;f<p;f++)t[f]=e;n=Math.max(n,e);o.render(r._contentElement);o._setLocation(v,y)}});this._setSize(n)},t.prototype._createTile=function(n){return new u(n)},t}(f);t.AutoGridGroup=e;o=function(t){function i(n){var i=t.call(this,null)||this;return i.initialize(n),i}return __extends(i,t),i.prototype._getDefaultItems=function(){return new y(this)},i.prototype.draw=function(){var i=this,t=0,r=this._getValidLayout().orientation;this.children.forEach(function(u){var f=u;if(f.visible){switch(r){case n.LayoutOrientation.Horizontal:t=Math.max(t,f.column+f.columnSpan-1);break;case n.LayoutOrientation.Vertical:t=Math.max(t,f.row+f.rowSpan-1)}f.render(i._contentElement);f._updateLoaction()}});this._setSize(t)},i.prototype._createTile=function(n){return new r(n)},i}(f);t.ManualGridGroup=o;var l=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t.prototype._removeGroup=function(n){n.hostElement.style.width="0px";n.hostElement.style.height="0px"},t}(n._GroupChildren),a=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t.prototype._isValidType=function(t){return n.prototype._isValidType.call(this,t)&&t instanceof u},t}(l),v=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t.prototype._isValidType=function(t){return n.prototype._isValidType.call(this,t)&&t instanceof e},t}(n.LayoutItemCollection),y=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t.prototype._isValidType=function(t){return n.prototype._isValidType.call(this,t)&&t instanceof r},t}(l),p=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t.prototype._isValidType=function(t){return n.prototype._isValidType.call(this,t)&&t instanceof o},t}(n.LayoutItemCollection)})(t=n.grid||(n.grid={}))})(t=n.nav||(n.nav={}))})(c1||(c1={}));
var __extends=this&&this.__extends||function(){var n=function(t,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r(){this.constructor=t}if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(t,i);t.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}}(),c1;(function(n){var t;(function(n){var t;(function(t){"use strict";var f=function(t){function f(i){var r=t.call(this)||this;return r._orientation=n.LayoutOrientation.Vertical,r._initRoot(i),r.initialize(i),r}return __extends(f,t),f.prototype._initRoot=function(n){var t={};n&&n.orientation!=null&&(t.orientation=n.orientation);this._root=new s(t);this._root._setParent(this)},Object.defineProperty(f.prototype,"orientation",{get:function(){return this._root.orientation},set:function(t){(t=wijmo.asEnum(t,n.LayoutOrientation),t!==this.orientation)&&(this._root.orientation=t,this.invalidate())},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"items",{get:function(){return this._root.children},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"fullTypeName",{get:function(){return"c1.nav.split.SplitLayout"},enumerable:!1,configurable:!0}),f.prototype._getNames=function(){return f._SETTING_NAMES?f._SETTING_NAMES:(f._SETTING_NAMES=["orientation"].concat(t.prototype._getNames.call(this)),f._SETTING_NAMES)},f.prototype._initializeComponent=function(){t.prototype._initializeComponent.call(this);wijmo.addClass(this.dashboard.hostElement,f._CLASS_LAYOUT);this._initMenu()},f.prototype._initMenu=function(){var n=document.createElement("div");n.style.zIndex="99999";this._areaMenu=new v(n,this.dashboard);this._areaMenu.itemSelected.addHandler(this._onItemSelected,this);this._areaMenu.itemChanged.addHandler(this._onItemChanged,this);this.dashboard.hostElement.appendChild(n)},f.prototype._onItemChanged=function(){var o=this._areaMenu.selectedItem;if(!o){this._elePreviewTile&&wijmo.addClass(this._elePreviewTile,f._HIDDEN_CLASS);return}this._elePreviewTile||(this._elePreviewTile=document.createElement("div"),wijmo.addClass(this._elePreviewTile,"wj-split-preview-tile"));var s=0,h=0,e=o.hostElement.getBoundingClientRect(),a=u._getSizeStatus(this._movedTile.size),n,c=this._areaMenu.selectedDirection==r.Left||this._areaMenu.selectedDirection==r.Right,t=c?"width":"height",l=c?"height":"width";switch(a){case i.Fixed:n=this._movedTile.size;break;case i.Auto:n=this._movedTile._fullRenderSize[t];break;case i.Fill:n=this._sizeMovedTile[t]}this._elePreviewTile.style[t]=n+"px";this._elePreviewTile.style[l]=e[l]+"px";this._areaMenu.selectedDirection==r.Left?this.dashboard.rightToLeft&&(s=e[t]-n):this._areaMenu.selectedDirection==r.Right?this.dashboard.rightToLeft||(s=e[t]-n):this._areaMenu.selectedDirection==r.Bottom&&(h=e[t]-n);this._elePreviewTile.style.left=s+"px";this._elePreviewTile.style.top=h+"px";o.hostElement.appendChild(this._elePreviewTile);wijmo.removeClass(this._elePreviewTile,f._HIDDEN_CLASS)},f.prototype._getVisibleChildrenCount=function(n){var i=this,t=0;return n.children.forEach(function(n){n instanceof e?t+=n.visible?1:0:n instanceof o&&i._getVisibleChildrenCount(n)&&(t+=1)}),t},f.prototype._onItemSelected=function(){this._elePreviewTile&&(wijmo.addClass(this._elePreviewTile,f._HIDDEN_CLASS),this._insertItem(this._movedTile,this._areaMenu.selectedItem,this._areaMenu.selectedDirection),this._movedTile=null,this._sizeMovedTile=null,this.refresh(!1))},f.prototype._insertItem=function(t,i,u){var v=function(n,t){var i=new o;return i.orientation=n,i.size=t==null?100:t,i},f=this._findParentGroup(i);if(!f){var h=i,y=h.orientation==n.LayoutOrientation.Vertical,p=function(t,i){switch(t){case r.Left:case r.Right:return i===n.LayoutOrientation.Horizontal;case r.Top:case r.Bottom:return i===n.LayoutOrientation.Vertical}};p(u,h.orientation)?f=h:(f=v(y?n.LayoutOrientation.Horizontal:n.LayoutOrientation.Vertical,"*"),f.children.push(h),this._initRoot(),this.items._insertAtInternal(f))}var c=f.orientation,e=f.children.indexOf(i),l=function(n){f.children._insertAtInternal(t,n)},a=function(n,r){if(f.children.length==1&&!(f instanceof s)){f.orientation=n;f.children._insertAtInternal(t,r?0:1);return}f.children._removeInternal(i);var u=v(n,"*");r?(u.children.push(t),u.children.push(i)):(u.children.push(i),u.children.push(t));f.children._insertAtInternal(u,e)};switch(u){case r.Left:c===n.LayoutOrientation.Vertical?a(n.LayoutOrientation.Horizontal,!0):l(e);break;case r.Right:c===n.LayoutOrientation.Vertical?a(n.LayoutOrientation.Horizontal,!1):l(e+1);break;case r.Top:c===n.LayoutOrientation.Horizontal?a(n.LayoutOrientation.Vertical,!0):l(e);break;case r.Bottom:c===n.LayoutOrientation.Horizontal?a(n.LayoutOrientation.Vertical,!1):l(e+1)}},f.prototype._findParentGroup=function(n){var t=n.parent;return t&&t instanceof o?t:null},f.prototype.detach=function(){this._areaMenu&&(this._areaMenu.itemSelected.removeAllHandlers(),this._areaMenu.itemChanged.removeAllHandlers(),this._areaMenu.disposeResources(!0),n._removeElement(this._areaMenu.hostElement),this._areaMenu=null);this.dashboard&&wijmo.removeClass(this.dashboard.hostElement,f._CLASS_LAYOUT);t.prototype.detach.call(this)},f.prototype.draw=function(){var i=window.getComputedStyle(this._container),e=parseFloat(i.getPropertyValue("padding-left")),o=parseFloat(i.getPropertyValue("padding-right")),s=parseFloat(i.getPropertyValue("padding-top")),h=parseFloat(i.getPropertyValue("padding-bottom")),u=this._container.getBoundingClientRect(),n=Math.floor(u.width)*window.devicePixelRatio,t=Math.floor(u.height)*window.devicePixelRatio,f,r;this._root.render(this._container);this._root.updateMinRenderSize();r=this._root._getMinRenderSize();do f=n,n=n-e-o,t=t-s-h,(!n||n<0)&&(n=this._root._fullRenderSize.width),(!t||t<0)&&(t=this._root._fullRenderSize.height),n=Math.max(n,r.width),t=Math.max(t,r.height),this._root.updateRenderSize(new wijmo.Size(n,t)),n=this._container.clientWidth;while(f!=n)},f.prototype.dispose=function(i){i===void 0&&(i=!0);this._areaMenu&&this._areaMenu.disposeResources(!1);this._root&&this._root.dispose(i);i&&(this._movingToTile=null,this._sizeMovedTile=null,this._movedTile=null,this._elePreviewTile&&(n._removeElement(this._elePreviewTile),this._elePreviewTile=null));t.prototype.dispose.call(this,i)},f.prototype.startMove=function(n,i){var r=t.prototype.startMove.call(this,n,i);return r&&(this._movedTile=n,this._sizeMovedTile=this._movedTile._minRenderSizeAsChild,this._movedTile.visible=!1),this.dashboard.rightToLeft&&(navigator.userAgent.toLowerCase().indexOf("chrome")>-1||wijmo.isEdge())&&(this._container.style.position="static"),r},f.prototype.move=function(n,i){t.prototype.move.call(this,n,i);var r=this._findHitTile(i);!r&&this._areaMenu.visible?(this._areaMenu.visible=!1,this._movingToTile=null):r&&this._movingToTile!=r&&(this._movingToTile=r,this._areaMenu.show(r))},f.prototype._findHitTile=function(n){var r,t,u,i;return(this._areaMenu.hostElement.innerHTML==""&&this._initMenu(),t=this._areaMenu.hostElement.getBoundingClientRect(),this._areaMenu.visible&&n.x>=t.left&&n.x<=t.right&&n.y>=t.top&&n.y<=t.bottom)?this._movingToTile:(u=function(t){if(!t._isVisible())return!1;var i=t.hostElement.getBoundingClientRect();return n.x>=i.left&&n.x<=i.right&&n.y>=i.top&&n.y<=i.bottom?!0:!1},i=function(n){for(var f=!1,e=0,s=n.children.length,t;!f&&e<s;)t=n.children[e],f=u(t),f&&(t instanceof o?i(t):r=t),e++},i(this._root),r)},f.prototype.endMove=function(n,i){var r=this._areaMenu.hitTest(i);t.prototype.endMove.call(this,n,i);r&&n._remove(!0)&&(n.dispose(!1),this._onItemSelected());n.visible=!0;this._movingToTile=null;this._areaMenu.visible=!1},f.prototype._cancelMove=function(){this._elePreviewTile&&!wijmo.hasClass(this._elePreviewTile,f._HIDDEN_CLASS)&&wijmo.addClass(this._elePreviewTile,f._HIDDEN_CLASS);this._movedTile=null;this._sizeMovedTile=null},f.prototype._createTile=function(n){return new e(n)},f.prototype._createGroup=function(n){return new o(n)},f._getPossibleItems=function(t){var h=[],c=[],l=[],a=[],r=!1,u=!1,e=!1,s=!1,y=function(n,t){var r=n.children.indexOf(t),i,u;if(r<0)return!1;for(i=0;i<r;i++)if(u=n.children[i],u._isVisible())return!1;return!0},p=function(n,t){var r=n.children.indexOf(t),i,u;if(r<0)return!1;for(i=n.children.length-1;i>r;i--)if(u=n.children[i],u._isVisible())return!1;return!0},v=function(n){var t=0;return n.children.forEach(function(n){n._isVisible()&&t++}),t===1},w=function(t,i){switch(t.orientation){case n.LayoutOrientation.Vertical:t.parent instanceof f&&(e=!0,s=!0,v(t)&&(r=!0,u=!0));r||h.push(t);u||c.push(t);e||y(t,i)||(e=!0);s||p(t,i)||(s=!0);break;case n.LayoutOrientation.Horizontal:t.parent instanceof f&&(r=!0,u=!0,v(t)&&(e=!0,s=!0));r||y(t,i)||(r=!0);u||p(t,i)||(u=!0);e||l.push(t);s||a.push(t)}},i;for(h.push(t),c.push(t),l.push(t),a.push(t),i=t;i&&i.parent&&i.parent instanceof o;)v(i.parent)||w(i.parent,i),i=i.parent;return{left:h,right:c,top:l,bottom:a}},f._parseStarSize=function(n){if(wijmo.isString(n)&&n.length>0&&n[n.length-1]=="*"){var t=n.length==1?1:parseInt(n.substr(0,n.length-1))*1;if(t>0&&!isNaN(t))return t}return null},f._HIDDEN_CLASS="wj-dl-hidden",f._CLASS_LAYOUT="wj-dl-split",f._SETTING_NAMES=null,f}(n.LayoutBase),e,o,i;t.SplitLayout=f;e=function(t){function i(i){var r=t.call(this,null)||this;return r._internalSLI=new u(r),r._minSize=n.LayoutItem._MIN_SIZE,r.initialize(i),r}return __extends(i,t),Object.defineProperty(i.prototype,"minSize",{get:function(){return this._minSize},set:function(t){wijmo.assert(t>0,"The value should be a positive number!");t!=this._minSize&&(this._minSize=Math.max(wijmo.asNumber(t,!0,!0),n.LayoutItem._MIN_SIZE))},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"size",{get:function(){return this._internalSLI.size},set:function(n){this._internalSLI.size=n},enumerable:!1,configurable:!0}),i.prototype._getSize=function(){return this._internalSLI.getSize()},i.prototype._getSizeStatus=function(){return this._internalSLI.sizeStatus},i.prototype._getNames=function(){return i._SETTING_NAMES?i._SETTING_NAMES:(i._SETTING_NAMES=["minSize","size"].concat(t.prototype._getNames.call(this)),i._SETTING_NAMES)},i.prototype.draw=function(){t.prototype.draw.call(this);var e=this._internalSLI.isInVerticalGroup,o=u.getSizeHelper(e),n=this._getMinSize(),r=Math.max(n.width,this.hostElement.offsetWidth),f=Math.max(n.height,this.hostElement.offsetHeight);r+=i._MARGIN_SPACE*2;f+=i._MARGIN_SPACE*2;this._fullRenderSize=new wijmo.Size(r,f)},i.prototype._getMinSize=function(){var r=u.getSizeHelper(this._internalSLI.isInVerticalGroup),t=new wijmo.Size;return t[r.xName]=this.minSize+2*i._MARGIN_SPACE,t[r.yName]=n.LayoutItem._MIN_SIZE+2*i._MARGIN_SPACE,t},i.prototype._updateMinRenderSizeAsChild=function(n){this._minRenderSizeAsChild=this._internalSLI.getMinRenderSizeAsChild(n)},i.prototype._getRenderSize=function(){return this._internalSLI.renderSize},i.prototype.updateRenderSize=function(n){this._internalSLI.renderSize=n;this._updateSize(new wijmo.Size(n.width-i._MARGIN_SPACE*2,n.height-i._MARGIN_SPACE*2));wijmo.Control.refreshAll(this.hostElement)},i.prototype._getLayoutSize=function(){return this._internalSLI.getLayoutSize(this._hostElement)},i.prototype._increaseSize=function(n){this._internalSLI.increaseSize(n);this._onLayoutChanged()},i.prototype._updateSizeToFixed=function(){this._internalSLI.updateSizeToFixed()},i.prototype._getAvailableResizingSpace=function(){return this._internalSLI.getAvailableResizingSpace()},i.prototype._updatePartialView=function(n){n&&n.appendChild(this.hostElement)},i.prototype.dispose=function(n){n===void 0&&(n=!0);n&&(this._fullRenderSize=null,this._isMoving=null);this._minRenderSizeAsChild=null;this._internalSLI.dispose();t.prototype.dispose.call(this,n)},i.prototype.beginMove=function(){this._isMoving=!0},i.prototype.endMove=function(){this._isMoving=!1;t.prototype.endMove.call(this)},i.prototype._isVisible=function(){return this.visible},i.prototype._onTileVisibilityChanged=function(i){i.tile.visible||n._removeElement(this.hostElement);t.prototype._onTileVisibilityChanged.call(this,i)},i._MARGIN_SPACE=3,i._SETTING_NAMES=null,i}(n.Tile);t.SplitTile=e;o=function(t){function r(i){var r=t.call(this,null)||this;return r._orientation=n.LayoutOrientation.Vertical,r._splitters=[],r._totalStarCount=0,r._totalStarSize=0,r._maxStarUnitSize=0,r._msusFullRender=0,r._arrAutoSizeItems=new wijmo.collections.ObservableArray,r._arrStarSizeItems=new wijmo.collections.ObservableArray,r._internalSLI=new u(r),r.initialize(i),r}return __extends(r,t),Object.defineProperty(r.prototype,"orientation",{get:function(){return this._orientation},set:function(t){(t=wijmo.asEnum(t,n.LayoutOrientation),t!==this._orientation)&&(this._orientation=t)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"size",{get:function(){return this._internalSLI.size},set:function(n){this._internalSLI.size=n},enumerable:!1,configurable:!0}),r.prototype._getSize=function(){return this._internalSLI.getSize()},r.prototype._getDefaultItems=function(){return new y(this)},Object.defineProperty(r.prototype,"_isVertical",{get:function(){return this.orientation===n.LayoutOrientation.Vertical},enumerable:!1,configurable:!0}),r.prototype._getSizeStatus=function(){return this._internalSLI.sizeStatus},r.prototype._getNames=function(){return r._SETTING_NAMES?r._SETTING_NAMES:(r._SETTING_NAMES=["orientation","size"].concat(t.prototype._getNames.call(this)),r._SETTING_NAMES)},r.prototype._initializeComponent=function(){t.prototype._initializeComponent.call(this);wijmo.addClass(this.hostElement,r._CLASS_GROUP);var n=document.createElement("div");wijmo.addClass(n,"wj-content-wrapper");this._contentElement.appendChild(n);this._contentElement=n},r.prototype._redraw=function(){},r.prototype.dispose=function(i){i===void 0&&(i=!0);this._splitters.forEach(function(n){var t=n;t.dispose()});this._splitters=[];this._totalStarCount=0;this._maxStarUnitSize=0;this._msusFullRender=0;this._arrAutoSizeItems.clear();this._arrStarSizeItems.clear();this._fullRenderSize=null;this._minRenderSizeAsChild=null;this._internalSLI.dispose();this._visibleChildren=null;t.prototype.dispose.call(this,i);i||(n._removeElement(this._hostElement),this._contentElement=null,this._hostElement=null)},r.prototype._getVisibleChildren=function(){var n=this._getDefaultItems();return this.children.forEach(function(t){var i=t;i._isVisible()&&n.push(i)}),n},r.prototype.draw=function(){var n=this,s;this._visibleChildren=this._getVisibleChildren();var e,c=function(){var n=document.createElement("div");return wijmo.addClass(n,r._CLASS_GROUP_WRAPPER),n},o=0,h=0,l=0,t=u.getSizeHelper(this._isVertical);this._isVertical||(e=c(),this._contentElement.appendChild(e));this._totalStarCount=0;this._maxStarUnitSize=0;this._msusFullRender=0;this._visibleChildren.forEach(function(r,u){var s=r,v,a,y;n._isVertical&&(e=c(),n._contentElement.appendChild(e));v=n._createSplitItem(n.orientation,u);e.appendChild(v);r.render(v);h=Math.max(h,s._fullRenderSize[t.yName]);switch(s._getSizeStatus()){case i.Auto:n._arrAutoSizeItems.push(s);break;case i.Fill:a=f._parseStarSize(s._getSize());y=s._getMinSize();n._totalStarCount+=a;o=Math.max(o,y[t.xName]/a);l=Math.max(o,s._fullRenderSize[t.xName]/a);n._arrStarSizeItems.push(s)}});this._maxStarUnitSize=o;this._msusFullRender=l;s=0;this._visibleChildren.forEach(function(r){var u=r;u._updateMinRenderSizeAsChild(n._maxStarUnitSize);u._getSizeStatus()!=i.Fill&&(s+=u._minRenderSizeAsChild[t.xName])});s+=this._msusFullRender*this._totalStarCount;this._fullRenderSize=new wijmo.Size;this._fullRenderSize[t.xName]=s;this._fullRenderSize[t.yName]=h},r.prototype._createSplitItem=function(t,i){var f=document.createElement("div"),o=i!=this._visibleChildren.length-1,e,u;return wijmo.addClass(f,r._CLASS_SPLIT_ITEM),o&&(e=document.createElement("div"),u=new a(e,{orientation:this._isVertical?n.LayoutOrientation.Horizontal:n.LayoutOrientation.Vertical}),u.group=this,u.pre=this._visibleChildren[i],u.next=this._visibleChildren[i+1],u.dragging.addHandler(this._dragging,this),u.drop.addHandler(this._drop,this),this._splitters.push(u),f.appendChild(e)),f},r.prototype._dragging=function(n,t){var i=t.distance,f=n.pre,e=n.next,r,u;if(!f||!e){t.cancel=!0;return}r=f._getAvailableResizingSpace()*-1;u=e._getAvailableResizingSpace();i>0&&i>u?i=u:i<0&&i<r&&(i=r);t.distance=i;t.cancel=!i},r.prototype._drop=function(n,t){var r=this,h=t.distance,y=n.pre,p=n.next,a,v,s;if(h!=0){var e=y,o=p,c=e._getSizeStatus(),l=o._getSizeStatus();c==i.Auto?(this._arrAutoSizeItems.remove(e),e._updateSizeToFixed()):c==i.Fill&&this._updateItemFromFillToFixed(e);e._increaseSize(h);l==i.Auto?(this._arrAutoSizeItems.remove(o),o._updateSizeToFixed()):l==i.Fill&&this._updateItemFromFillToFixed(o);o._increaseSize(h*-1);(c==i.Fill||l==i.Fill)&&(this._msusFullRender=0,this._arrStarSizeItems&&this._arrStarSizeItems.length&&(a=u.getSizeHelper(this._isVertical),this._maxStarUnitSize=0,this._arrStarSizeItems.forEach(function(n){var t=n,i=f._parseStarSize(t._getSize()),u=t._getMinSize();r._maxStarUnitSize=Math.max(r._maxStarUnitSize,u[a.xName]/i);r._msusFullRender=Math.max(r._msusFullRender,t._fullRenderSize[a.xName]/i)}),this._arrStarSizeItems.forEach(function(n){var t=n;t._updateMinRenderSizeAsChild(r._maxStarUnitSize)})));v=u.getSizeHelper(this._isVertical);s=0;this._visibleChildren.forEach(function(n){var t=n;t._getSizeStatus()!=i.Fill&&(s+=t._minRenderSizeAsChild[v.xName])});s+=this._msusFullRender*this._totalStarCount;this._fullRenderSize=new wijmo.Size;this._fullRenderSize[v.xName]=s}},r.prototype._updateItemFromFillToFixed=function(n){var r=f._parseStarSize(n._getSize()),t,i;this._totalStarCount-=r;t=n._getRenderSize();i=u.getSizeHelper(this._isVertical);this._totalStarSize-=t[i.xName];this._arrStarSizeItems.remove(n);n._updateSizeToFixed()},r.prototype._updateSizeToFixed=function(){this._internalSLI.updateSizeToFixed()},r.prototype._getMinSize=function(){var i=u.getSizeHelper(this._isVertical),t=new wijmo.Size;return t[i.xName]=n.LayoutItem._MIN_SIZE+2*e._MARGIN_SPACE,t[i.yName]=n.LayoutItem._MIN_SIZE+2*e._MARGIN_SPACE,t},r.prototype._updateMinRenderSizeAsChild=function(n){this._minRenderSizeAsChild=this._internalSLI.getMinRenderSizeAsChild(n)},r.prototype._getMinRenderSize=function(){var n=u.getSizeHelper(this._isVertical),r=0,i=0,t;return this._visibleChildren.forEach(function(t){var u=t;r+=u._minRenderSizeAsChild[n.xName];i=Math.max(i,u._minRenderSizeAsChild[n.yName])}),t=new wijmo.Size(0,0),t[n.xName]=r,t[n.yName]=i,t},r.prototype._getRenderSize=function(){return this._internalSLI.renderSize},r.prototype.updateRenderSize=function(n){this.hostElement.style.width=n.width+"px";this.hostElement.style.height=n.height+"px";this._updateItemsRenderSize(n);this._internalSLI.renderSize=n},r.prototype._updateItemsRenderSize=function(n){var s=this,f=this._internalSLI.renderSize,t=u.getSizeHelper(this._isVertical),r=this._getMinRenderSize(),e,v,l,h,a,c,o;if(f){if(!this._visibleChildren.length)return;if(e=n[t.xName]-f[t.xName],v=n[t.yName]-f[t.yName],!e&&!v)return;if(v){this._visibleChildren.forEach(function(i){var u=i,r=new wijmo.Size,f=u._getRenderSize();r[t.yName]=n[t.yName];r[t.xName]=f[t.xName];u.updateRenderSize(r)});return}if(f[t.xName]<=r[t.xName]){if(n[t.xName]<=r[t.xName])return;e=n[t.xName]-r[t.xName]}else n[t.xName]<=r[t.xName]&&(this._arrStarSizeItems.length?(this._totalStarSize=r[t.xName]-(f[t.xName]-this._totalStarSize),e=0):e=r[t.xName]-f[t.xName]);this._arrStarSizeItems.length?(this._totalStarSize+=e,this._updateStarItemsSize(f[t.yName])):(l=this._arrAutoSizeItems.length?this._arrAutoSizeItems[this._arrAutoSizeItems.length-1]:this.children[this.children.length-1],h=l._getRenderSize(),h==null&&(h=l._getLayoutSize()),a=new wijmo.Size,a[t.xName]=h[t.xName]+e,a[t.yName]=h[t.yName],l.updateRenderSize(a));return}c=new wijmo.Size(Math.max(r.width,n.width),Math.max(r.height,n.height));o=c[t.xName];this._visibleChildren.forEach(function(n,r){var e=n,u,f;e._getSizeStatus()==i.Fixed&&(u=e._getSize(),f=new wijmo.Size,r==s._visibleChildren.length-1&&s._arrAutoSizeItems.length==0&&s._arrStarSizeItems.length==0&&(u=o),f[t.xName]=u,f[t.yName]=c[t.yName],e.updateRenderSize(f),o-=u)});this._arrAutoSizeItems.forEach(function(n,i){var f=n,r=f._minRenderSizeAsChild[t.xName],u=new wijmo.Size;i==s._arrAutoSizeItems.length-1&&s._arrStarSizeItems.length==0&&(r=o);u[t.xName]=r;u[t.yName]=c[t.yName];f.updateRenderSize(u);o-=r});this._totalStarSize=o;this._updateStarItemsSize(c[t.yName])},r.prototype._updateStarItemsSize=function(n){var t=this,i=this._totalStarSize,r=u.getSizeHelper(this._isVertical);this._arrStarSizeItems.forEach(function(u,e){var h=u,o=h._getSize(),s=new wijmo.Size,c;e==t._arrStarSizeItems.length-1?o=i:(c=f._parseStarSize(o),o=Math.round(t._totalStarSize*c/t._totalStarCount));s[r.xName]=o;s[r.yName]=n;h.updateRenderSize(s);i-=o})},r.prototype._increaseSize=function(n){this._internalSLI.increaseSize(n);this._onLayoutChanged()},r.prototype._getAvailableResizingSpace=function(){return this._internalSLI.getAvailableResizingSpace()},r.prototype._createTile=function(n){return new e(n)},r.prototype._createGroup=function(n){return new r(n)},r.prototype._isVisible=function(){for(var t,n=0;n<this.children.length;n++)if(t=this.children[n],t._isVisible())return!0;return!1},r._CLASS_GROUP="wj-split-group",r._CLASS_GROUP_WRAPPER="wj-group-wrapper",r._CLASS_SPLIT_ITEM="wj-split-item",r._SETTING_NAMES=null,r}(n.Group);t.SplitGroup=o;var u=function(){function t(n){this._host=n}return Object.defineProperty(t.prototype,"size",{get:function(){return this._size},set:function(t){t!=this._size&&(wijmo.isNumber(t)?(wijmo.assert(t>0,"The value should be a positive number!"),this._size=Math.max(t,n.LayoutItem._MIN_SIZE)):this._size=t)},enumerable:!1,configurable:!0}),t.prototype.setSize=function(t){var i=t;this.host instanceof n.Tile&&(i-=2*e._MARGIN_SPACE);this.size=i},t.prototype.getSize=function(){var t=this.size;return this.host instanceof n.Tile&&this.sizeStatus==i.Fixed&&(t+=2*e._MARGIN_SPACE),t},Object.defineProperty(t.prototype,"renderSize",{get:function(){return this._renderSize},set:function(n){this._renderSize=n},enumerable:!1,configurable:!0}),t.prototype.getLayoutSize=function(n){return new wijmo.Size(n.offsetWidth,n.offsetHeight)},Object.defineProperty(t.prototype,"sizeStatus",{get:function(){return t._getSizeStatus(this.size)},enumerable:!1,configurable:!0}),t._getSizeStatus=function(n){if(wijmo.isNumber(n))return i.Fixed;var t=f._parseStarSize(n);return wijmo.isNumber(t)?i.Fill:i.Auto},Object.defineProperty(t.prototype,"host",{get:function(){return this._host},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isInVerticalGroup",{get:function(){return this._host&&this._host.parent?this._host.parent.orientation==n.LayoutOrientation.Vertical:!0},enumerable:!1,configurable:!0}),t.prototype.increaseSize=function(n){if(this.canIncreaseSize(n)&&n!=0){var i=t.getSizeHelper(this.isInVerticalGroup),u=this.renderSize[i.xName],r=new wijmo.Size;this.setSize(u+n);r[i.xName]=this.getSize();r[i.yName]=this.renderSize[i.yName];this.host.updateRenderSize(r);this.host._updateMinRenderSizeAsChild(0)}},t.prototype.canIncreaseSize=function(n){var i=t.getSizeHelper(this.isInVerticalGroup),r=this.renderSize[i.xName];return r+n>=this._getMinSize()},t.prototype.getAvailableResizingSpace=function(){var n=t.getSizeHelper(this.isInVerticalGroup),i=this.renderSize[n.xName],r=this._getMinSize();return i-r},t.prototype._getMinSize=function(){var n=this.host._getMinSize(),i=t.getSizeHelper(this.isInVerticalGroup);return n[i.xName]},t.prototype.dispose=function(){this._renderSize=null},t.prototype.getMinRenderSizeAsChild=function(n){var e=this.host._getMinSize(),r=t.getSizeHelper(this.isInVerticalGroup),u=new wijmo.Size,o;switch(this.sizeStatus){case i.Fixed:u[r.xName]=this.getSize();break;case i.Auto:u[r.xName]=this.host._fullRenderSize[r.xName];break;case i.Fill:o=f._parseStarSize(this.size);u[r.xName]=n*o}return u[r.xName]=Math.max(u[r.xName],e[r.xName]),u[r.yName]=e[r.yName],u},t.prototype.updateSizeToFixed=function(){var n=t.getSizeHelper(this.isInVerticalGroup);this.setSize(this.renderSize[n.xName])},t.getSizeHelper=function(n){var t=n?"height":"width",i=n?"width":"height";return{xName:t,yName:i}},t}(),c=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(wijmo.CancelEventArgs),l=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(wijmo.EventArgs),a=function(t){function i(i,r){var u=t.call(this,i)||this;return u._orientation=n.LayoutOrientation.Vertical,u._startPosition=0,u._barStartPosition=0,u.dragging=new wijmo.Event,u.drop=new wijmo.Event,wijmo.addClass(u.hostElement,"wj-splitter vertical vs"),u.initialize(r),u._bindEvents(),u}return __extends(i,t),Object.defineProperty(i.prototype,"orientation",{get:function(){return this._orientation},set:function(t){t!==this._orientation&&(wijmo.removeClass(this.hostElement,"horizontal hs vertical vs"),this._orientation=t,wijmo.addClass(this.hostElement,this._orientation==n.LayoutOrientation.Vertical?"vertical vs":"horizontal hs"))},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"group",{get:function(){return this._group},set:function(n){this._group=n},enumerable:!1,configurable:!0}),i.prototype.onDragging=function(n){return this.dragging.raise(this,n),!n.cancel},i.prototype.onDrop=function(n){this.drop.raise(this,n)},i.prototype._bindEvents=function(){var n=this;this.addEventListener(this.hostElement,"mousedown",function(t){n._dragStart(t);t.stopPropagation()});this.addEventListener(document,"mousemove",function(t){n._dragging(t);t.stopPropagation()});this.addEventListener(document,"mouseup",function(t){n._splitBar&&(n._dragEnd(),t.stopPropagation())})},i.prototype._dragStart=function(n){this._startPosition=this._getMousePosition(n);this._splitBar=this._createMovingSplitBar();this._barStartPosition=this._getBarPosition();wijmo.addClass(document.body,i._CLASS_UNSELECTABLE)},i.prototype._createMovingSplitBar=function(){var n=this.hostElement.cloneNode(!0),t=this.hostElement.getBoundingClientRect(),i=new wijmo.Point(t.left,t.top),u=document.body,r;return this.group&&this.group.layout&&(r=this.group.layout,i=r._getRelativePostion(i),u=r._container),n.style.left=i.x+"px",n.style.top=i.y+"px",n.style.width=t.width+"px",n.style.height=t.height+"px",wijmo.removeClass(n,"vs hs"),wijmo.addClass(n,"moving"),u.appendChild(n),n},i.prototype._getBarPosition=function(){return this._splitBar?this.orientation==n.LayoutOrientation.Vertical?parseFloat(this._splitBar.style.left):parseFloat(this._splitBar.style.top):0},i.prototype._setBarPosition=function(t){this._splitBar&&(this.orientation==n.LayoutOrientation.Vertical?this._splitBar.style.left=t+"px":this._splitBar.style.top=t+"px")},i.prototype._dragging=function(n){var i,t;this._splitBar&&(i=this._getMousePosition(n),i!=this._startPosition)&&(this._distance=0,t=new c,t.distance=i-this._startPosition,this.onDragging(t)&&(this._distance=t.distance,this._distance&&this._setBarPosition(this._barStartPosition+this._distance)))},i.prototype._dragEnd=function(){if(n._removeElement(this._splitBar),this._splitBar=null,this._startPosition=null,wijmo.removeClass(document.body,i._CLASS_UNSELECTABLE),this._distance){var t=new l;t.distance=this._distance;this.onDrop(t);this._distance=0}},i.prototype._getMousePosition=function(t){return this.orientation==n.LayoutOrientation.Vertical?t.clientX:t.clientY},i.prototype.dispose=function(){this.dragging.removeAllHandlers();this.drop.removeAllHandlers();this.removeEventListener();wijmo.removeClass(this.hostElement,"wj-splitter vertical vs horizontal hs")},i._SPLITTER_SIZE=6,i._CLASS_UNSELECTABLE="wj-dl-unselectable",i}(wijmo.Control),v=function(t){function i(i,r){var u=t.call(this,i)||this,e;return u.itemSelected=new wijmo.Event,u.itemChanged=new wijmo.Event,u._dashboard=r,e=u.getTemplate(),u.applyTemplate("wj-area-menu",e,{_topWrapper:"top",_leftWrapper:"left",_rightWrapper:"right",_bottomWrapper:"bottom",_centerWrapper:"center"}),u._centerWrapper.appendChild(n._createSvgBtn("Center")),wijmo.addClass(u.hostElement,f._HIDDEN_CLASS),u._bindEvents(),u}return __extends(i,t),Object.defineProperty(i.prototype,"visible",{get:function(){return!wijmo.hasClass(this.hostElement,f._HIDDEN_CLASS)},set:function(n){this.visible!=!!n&&wijmo.toggleClass(this.hostElement,f._HIDDEN_CLASS,!n)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"selectedItem",{get:function(){return this._selectedItem},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"selectedDirection",{get:function(){return this._direction},enumerable:!1,configurable:!0}),i.prototype._onItemSelected=function(n){this.itemSelected.raise(this,n);this._selectedItem=null;this._direction=null},i.prototype._onItemChanged=function(n){this.itemChanged.raise(this,n)},i.prototype._bindEvents=function(){var n=this;this.addEventListener(document,"mousemove",function(t){if(n.visible){var i=n.selectedItem,r=n.selectedDirection;n.hitTest(new wijmo.Point(t.clientX,t.clientY));(i!=n.selectedItem||r!=n.selectedDirection)&&n._onItemChanged()}});this.addEventListener(document,"mouseup",function(t){n.visible&&(n.hitTest(new wijmo.Point(t.clientX,t.clientY))&&(n._onItemSelected(),t.stopPropagation()),n.visible=!1)})},i.prototype.hitTest=function(n){var i=function(n,t){var i,u,r;if(!n||!t)return-1;for(i=0;i<n.children.length;i++)if(u=n.children[i].querySelector(".rectangle"),r=u.getBoundingClientRect(),!(t.x<r.left)&&!(t.x>r.right)&&!(t.y<r.top)&&!(t.y>r.bottom))return i;return-1},t=i(this._leftWrapper,n);return t>=0?(this._selectedItem=this._leftItems[this._leftItems.length-t-1],this._direction=r.Left,!0):(t=i(this._topWrapper,n),t>=0)?(this._selectedItem=this._topItems[this._topItems.length-t-1],this._direction=r.Top,!0):(t=i(this._rightWrapper,n),t>=0)?(this._selectedItem=this._rightItems[t],this._direction=r.Right,!0):(t=i(this._bottomWrapper,n),t>=0)?(this._selectedItem=this._bottomItems[t],this._direction=r.Bottom,!0):(this._selectedItem=null,this._direction=null,!1)},i.prototype.show=function(n){this.visible=!0;this._setHostTile(n)},i.prototype._setHostTile=function(n){if(this._hostTile!==n){this._hostTile=n;var t=f._getPossibleItems(n);this._leftItems=t.left;this._rightItems=t.right;this._topItems=t.top;this._bottomItems=t.bottom;n.layout.dashboard.container.appendChild(this.hostElement);this.invalidate()}},i.prototype.refresh=function(n){n===void 0&&(n=!0);t.prototype.refresh.call(this,n);this._hostTile&&this.visible&&(this._updateAreaItems(),this._updatePosition())},i.prototype._updateAreaItems=function(){this._renderLeftOrTop(this._leftItems,this._leftWrapper,!0);this._renderLeftOrTop(this._topItems,this._topWrapper,!1);this._renderRightOrBottom(this._rightItems,this._rightWrapper,!0);this._renderRightOrBottom(this._bottomItems,this._bottomWrapper,!1)},i.prototype._updatePosition=function(){var t=this.hostElement.getBoundingClientRect(),i=this._hostTile.hostElement.getBoundingClientRect(),n=(i.width-t.width)/2,r=(i.height-t.height)/2,u=this._hostTile.layout._getTileRelativePosition(this._hostTile);n+=u.x;r+=u.y;this.hostElement.style.top=r+"px";this._rtlDir?this.hostElement.style.right=n+"px":this.hostElement.style.left=n+"px"},i.prototype._renderLeftOrTop=function(t,i,r){var f;if(i.innerHTML="",t&&t.length!==0)for(var e=t.length,o=e-1,u=!0;o-->=0;)f=r?u?"Left":"LeftRight":u?"Top":"TopBottom",this._dashboard&&this._dashboard.rightToLeft&&r&&u&&(f="Right"),u=!1,i.appendChild(n._createSvgBtn(f))},i.prototype._renderRightOrBottom=function(t,i,r){var f,e,u,o;if(i.innerHTML="",t&&t.length!==0)for(f=t.length,e=0;e++<f;)u=e==f,o=r?u?"Right":"LeftRight":u?"Bottom":"TopBottom",this._dashboard&&this._dashboard.rightToLeft&&r&&u&&(o="Left"),i.appendChild(n._createSvgBtn(o))},i.prototype.disposeResources=function(n){n===void 0&&(n=!0);n?this.dispose():(this.visible=!1,this._hostTile=null)},i.controlTemplate='<div class="wj-am-container"><div class="wj-am-row v"><div class="wj-am-cell"><\/div><div wj-part="top" class="wj-am-cell"><\/div><div class="wj-am-cell"><\/div><\/div><div class="wj-am-row h"><div wj-part="left" class="wj-am-cell"><\/div><div wj-part="center" class="wj-am-cell"><\/div><div wj-part="right" class="wj-am-cell"><\/div><\/div><div class="wj-am-row v"><div class="wj-am-cell"><\/div><div wj-part="bottom" class="wj-am-cell"><\/div><div class="wj-am-cell"><\/div><\/div><\/div>',i}(wijmo.Control),r;(function(n){n[n.Left=0]="Left";n[n.Top=1]="Top";n[n.Right=2]="Right";n[n.Bottom=3]="Bottom"})(r||(r={})),function(n){n[n.Fixed=0]="Fixed";n[n.Fill=1]="Fill";n[n.Auto=2]="Auto"}(i||(i={}));var s=function(n){function t(t){var i=n.call(this,null)||this;return i.size="*",i.initialize(t),i}return __extends(t,n),t.prototype._getDefaultItems=function(){return new h(this)},t.prototype.updateMinRenderSize=function(){this._updateMinRenderSizeAsChild(0)},t}(o),h=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t.isValid=function(n){return n!=null&&(n instanceof o||n instanceof e)},t.prototype._isValidType=function(i){return n.prototype._isValidType.call(this,i)&&t.isValid(i)},t}(n.LayoutItemCollection),y=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t.prototype._isValidType=function(t){return n.prototype._isValidType.call(this,t)&&h.isValid(t)},t}(n._GroupChildren)})(t=n.split||(n.split={}))})(t=n.nav||(n.nav={}))})(c1||(c1={}));
var __extends=this&&this.__extends||function(){var n=function(t,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r(){this.constructor=t}if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(t,i);t.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}}(),c1;(function(n){var t;(function(n){var r=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(wijmo.nav.TreeView),t,i;n.TreeView=r;t=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(wijmo.nav.TabPanel);n.TabPanel=t;i=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(wijmo.nav.Accordion);n.Accordion=i})(t=n.nav||(n.nav={}))})(c1||(c1={}));
var __extends=this&&this.__extends||function(){var n=function(t,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r(){this.constructor=t}if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(t,i);t.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}}(),c1;(function(n){var t;(function(n){var t=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(wijmo.touch.DragDropTouch);n.DragDropTouch=t})(t=n.touch||(n.touch={}))})(c1||(c1={}));
var __extends=this&&this.__extends||function(){var n=function(t,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r(){this.constructor=t}if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(t,i);t.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}}(),c1;(function(n){var t;(function(n){var t=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(wijmo.undo.UndoableAction);n.UndoableAction=t})(t=n.undo||(n.undo={}))})(c1||(c1={}));
var __extends=this&&this.__extends||function(){var n=function(t,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r(){this.constructor=t}if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(t,i);t.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}}(),c1;(function(n){var t;(function(t){var i;(function(i){var c=function(n){function t(){var t=n!==null&&n.apply(this,arguments)||this;return t.requestDataStringifying=new wijmo.Event,t.reponseTextParsing=new wijmo.Event,t}return __extends(t,n),t.prototype.refresh=function(t){(t===void 0&&(t=!0),this._isInitialized)&&n.prototype.refresh.call(this,t)},t}(n.nav.TreeView),l,r,u,a,f,e,v,o,y,p,w,b,k,s,d,h;i.TreeView=c;l=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),Object.defineProperty(t.prototype,"_controlType",{get:function(){return c},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_initializerType",{get:function(){return r},enumerable:!1,configurable:!0}),t}(t._ControlWrapper);i._TreeViewWrapper=l;r=function(n){function t(t){var i=n.call(this,t)||this;return i._treeView=i.control,i}return __extends(t,n),t.prototype._beforeInitializeControl=function(t){n.prototype._beforeInitializeControl.call(this,t);t&&(t.lazyLoadActionUrl&&(this._lazyLoadActionUrl=t.lazyLoadActionUrl),delete t.lazyLoadActionUrl,t.loadActionUrl&&(this._loadActionUrl=t.loadActionUrl),delete t.loadActionUrl)},t.prototype._afterInitializeControl=function(t){n.prototype._afterInitializeControl.call(this,t);this._init();var i=this.control;i._isInitialized=!0;i.invalidate()},t.prototype._lazyLoad=function(n,t){this._load(this._lazyLoadActionUrl,n,t)},t.prototype._load=function(n,t,i){this._request&&this._request.readyState!=4&&(this._request.abort(),this._request=null);this._request=this._ajax({url:n,data:t&&{level:t.level,isChecked:t.isChecked,dataItem:t.dataItem},async:!0,type:"POST",dataType:"json",postType:"json",success:i})},t.prototype._init=function(){var n=this;this._loadActionUrl&&this._load(this._loadActionUrl,null,function(t){n._treeView.itemsSource=t});this._lazyLoadActionUrl&&(this._treeView.lazyLoadFunction=this._lazyLoad.bind(this))},t}(t._SourceInitializer);i._TreeViewInitializer=r;u=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(n.nav.TabPanel);i.TabPanel=u;a=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),Object.defineProperty(t.prototype,"_controlType",{get:function(){return u},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_initializerType",{get:function(){return f},enumerable:!1,configurable:!0}),t}(t._ControlWrapper);i._TabPanelWrapper=a;f=function(n){function t(t){var i=n.call(this,t)||this;return i._tabPanel=i.control,i}return __extends(t,n),t.prototype._beforeInitializeControl=function(t){n.prototype._beforeInitializeControl.call(this,t);t&&(t.tabs!=null&&(this._tabs=t.tabs,delete t.tabs),t.selectedIndex!=null&&(this._selectedIndex=t.selectedIndex,delete t.selectedIndex),t.selectedIndexChanged!=null&&(this._selectedIndexChanged=t.selectedIndexChanged,delete t.selectedIndexChanged))},t.prototype._afterInitializeControl=function(t){n.prototype._afterInitializeControl.call(this,t);this._init()},t.prototype._init=function(){var n=this;this._tabs&&this._tabs.length&&this._tabPanel.tabs.deferUpdate(function(){n._tabs.forEach(function(t){n._tabPanel.tabs.push(n._buildTab(t))})});this._selectedIndex!=null&&(this._tabPanel.selectedIndex=this._selectedIndex);this._selectedIndexChanged!=null&&this._tabPanel.selectedIndexChanged.addHandler(this._selectedIndexChanged)},t.prototype._buildTab=function(n){var t=new wijmo.nav.Tab(n.header,n.pane);return n.isDisabled!=null&&(t.isDisabled=n.isDisabled),n.isVisible!=null&&(t.isVisible=n.isVisible),t},t}(t._Initializer);i._TabPanelInitializer=f;e=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t.cast=function(n){return n},t}(n.nav.DashboardLayout);i.DashboardLayout=e;v=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),Object.defineProperty(t.prototype,"_controlType",{get:function(){return e},enumerable:!1,configurable:!0}),t}(t._ControlWrapper);i._DashboardLayoutWrapper=v;o=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t.cast=function(n){return n},t}(n.nav.FileManager);i.FileManager=o;y=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),Object.defineProperty(t.prototype,"_controlType",{get:function(){return o},enumerable:!1,configurable:!0}),t}(t._ControlWrapper);i._FileManagerWrapper=y;p=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t.cast=function(n){return n},t}(n.nav.flow.FlowLayout);i.FlowLayout=p;w=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t.cast=function(n){return n},t}(n.nav.grid.AutoGridLayout);i.AutoGridLayout=w;b=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t.cast=function(n){return n},t}(n.nav.grid.ManualGridLayout);i.ManualGridLayout=b;k=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t.cast=function(n){return n},t}(n.nav.split.SplitLayout);i.SplitLayout=k;s=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(n.nav.Accordion);i.Accordion=s;d=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),Object.defineProperty(t.prototype,"_controlType",{get:function(){return s},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_initializerType",{get:function(){return h},enumerable:!1,configurable:!0}),t}(t._ControlWrapper);i._AccordionWrapper=d;h=function(n){function t(t){var i=n.call(this,t)||this;return i._accordion=i.control,i}return __extends(t,n),t.prototype._beforeInitializeControl=function(t){n.prototype._beforeInitializeControl.call(this,t);t&&(t.panes!=null&&(this._panes=t.panes,delete t.panes),t.selectedIndex!=null&&(this._selectedIndex=t.selectedIndex,delete t.selectedIndex),t.selectedIndexChanged!=null&&(this._selectedIndexChanged=t.selectedIndexChanged,delete t.selectedIndexChanged))},t.prototype._afterInitializeControl=function(t){n.prototype._afterInitializeControl.call(this,t);this._init()},t.prototype._init=function(){var n=this;this._panes&&this._panes.length&&this._accordion.panes.deferUpdate(function(){n._panes.forEach(function(t){n._accordion.panes.push(n._buildAccordionPane(t))})});this._selectedIndex!=null&&(this._accordion.selectedIndex=this._selectedIndex);this._selectedIndexChanged!=null&&this._accordion.selectedIndexChanged.addHandler(this._selectedIndexChanged)},t.prototype._buildAccordionPane=function(n){var t=new wijmo.nav.AccordionPane(n.header,n.content);return n.isDisabled!=null&&(t.isDisabled=n.isDisabled),n.isVisible!=null&&(t.isVisible=n.isVisible),t},t}(t._Initializer);i._AccordionInitializer=h})(i=t.nav||(t.nav={}))})(t=n.mvc||(n.mvc={}))})(c1||(c1={}));
var wijmo;(function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.TreeNode||(n.TreeNode={}))})(t=n.nav||(n.nav={}))})(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.TreeView||(n.TreeView={}))})(t=n.nav||(n.nav={}))}(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.FormatNodeEventArgs||(n.FormatNodeEventArgs={}))})(t=n.nav||(n.nav={}))}(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.TreeNodeEventArgs||(n.TreeNodeEventArgs={}))})(t=n.nav||(n.nav={}))}(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.TreeNodeDragDropEventArgs||(n.TreeNodeDragDropEventArgs={}))})(t=n.nav||(n.nav={}))}(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.TabPanel||(n.TabPanel={}))})(t=n.nav||(n.nav={}))}(wijmo||(wijmo={})),function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.Tab||(n.Tab={}))})(t=n.nav||(n.nav={}))}(wijmo||(wijmo={}));
var wijmo;(function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.DragDropTouch||(n.DragDropTouch={}))})(t=n.touch||(n.touch={}))})(wijmo||(wijmo={}));
var wijmo;(function(n){var t;(function(n){var t;(function(n){function t(n){return n}n.cast=t})(t=n.UndoableAction||(n.UndoableAction={}))})(t=n.undo||(n.undo={}))})(wijmo||(wijmo={}));
var wijmo,__extends=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}();!function(t){!function(t){var e={center:"middle",left:"start",right:"end"},i=function(){function t(t,e,i){this.dom=t,this.style=e,this.scale=i,this.color="rgb(0,0,0)",this.addGroup()}return t.prototype.setColor=function(t){this.color=t},t.prototype.setBackgroundColor=function(t){this.dom.style.backgroundColor=t},t.prototype.addGroup=function(){var t=this.dom;this.g=document.createElementNS("http://www.w3.org/2000/svg","g"),this.g.setAttribute("shape-rendering","crispEdges"),t.appendChild(this.g)},t.prototype.drawRect=function(t){var e=this.g,i=this.scale,o=this.color,n=document.createElementNS("http://www.w3.org/2000/svg","rect");n.setAttribute("x",(t.x*i).toString()),n.setAttribute("y",(t.y*i).toString()),n.setAttribute("width",(t.width*i).toString()),n.setAttribute("height",(t.height*i).toString()),n.style.fill=o,e.appendChild(n)},t.prototype.drawText=function(t){var i=this.g,o=this.scale,n=this.color,r=this.style,s=document.createElementNS("http://www.w3.org/2000/svg","text");s.style.fill=n,s.style.fontSize=r.fontSize,s.style.fontFamily=r.fontFamily,s.style.fontStyle=t.fontStyle||r.fontStyle,s.style.fontWeight=t.fontWeight||r.fontWeight,s.style.textDecoration=t.textDecoration||r.textDecoration,s.style.textAnchor=e[t.textAlign||r.textAlign],s.textContent=t.text,s.textContent=this.clipString(t,s);var a=this._measureText(s);s.setAttribute("y",(t.y*o+Math.abs(a.y)).toString()),s.setAttribute("x",(t.x*o).toString()),i.appendChild(s)},t.prototype.clipString=function(t,e){var i=this.scale,o=t.text,n=t.maxWidth,r=this._measureText(e);if(n*=i,r.width>n){var s=Math.floor(n/r.width*o.length);return t.text.substr(0,s)}return o},t.prototype.clear=function(){this.dom.removeChild(this.g),this.addGroup()},t.prototype._measureText=function(t){var e=document.createElementNS("http://www.w3.org/2000/svg","svg");e.setAttribute("xmlns","http://www.w3.org/2000/svg"),e.style.visibility="hidden",e.style.position="absolute",t.setAttribute("x",0),t.setAttribute("y",0),e.appendChild(t),document.body.appendChild(e);var i=t.getBBox();return document.body.removeChild(e),i},t.prototype.getDataUrl=function(){return"data:image/svg+xml;base64,"+btoa(this.dom.outerHTML)},t}();t.SVGRenderContext=i}(t.barcode||(t.barcode={}))}(wijmo||(wijmo={})),function(t){!function(t){var e=function(){function t(t,e,i){this.dom=t,this.style=e,this.ctx=this.dom.getContext("2d"),this.scale=i}return t.prototype.setColor=function(t){this.ctx.fillStyle=t},t.prototype.setBackgroundColor=function(t){var e=this.ctx,i=this.dom;e.save(),e.fillStyle=t,e.fillRect(0,0,i.width,i.height),e.restore()},t.prototype.drawRect=function(t){var e=this.ctx,i=this.scale;e.fillRect(t.x*i,t.y*i,t.width*i,t.height*i)},t.prototype.drawText=function(t){var e=this.ctx,i=this.style,o=this.scale;e.save(),e.font=(t.fontStyle||i.fontStyle)+" "+(t.fontWeight||i.fontWeight)+" "+i.fontSize+" "+i.fontFamily,e.textAlign=t.textAlign||i.textAlign,e.textBaseline="bottom";var n=t.x*o,r=t.y*o,s=this.clipString(t);e.fillText(s,n,r+i.fontHeight),this.drawTextDecorationLine(s,n,r,t.textDecoration||i.textDecoration),e.restore()},t.prototype.clipString=function(t){var e=this.ctx,i=this.scale,o=t.text,n=t.maxWidth,r=e.measureText(o);if(n*=i,r.width>n){var s=Math.floor(n/r.width*o.length);return t.text.substr(0,s)}return o},t.prototype.drawTextDecorationLine=function(t,e,i,o){var n;switch(o){case"underline":n=.9;break;case"overline":n=.1;break;case"line-through":n=.5;break;default:return}var r=this.ctx,s=this.style.fontHeight,a=r.measureText(t).width;switch(r.textAlign){case"center":e-=a/2;break;case"right":e-=a}r.lineWidth=1,r.beginPath();var h=s*n+i;r.moveTo(e,h),r.lineTo(e+a,h),r.stroke()},t.prototype.clear=function(){var t=this.ctx,e=this.dom;t.clearRect(0,0,e.width,e.height)},t.prototype.getImageData=function(){var t=this.ctx,e=this.dom;return t.getImageData(0,0,e.width,e.height)},t.prototype.getDataUrl=function(){return this.dom.toDataURL()},t}();t.CanvasRenderContext=e}(t.barcode||(t.barcode={}))}(wijmo||(wijmo={})),function(t){!function(t){var e;!function(t){t[t.Unknown=0]="Unknown",t[t.InvalidOptions=1]="InvalidOptions",t[t.InvalidBarcodeType=2]="InvalidBarcodeType",t[t.InvalidRenderType=3]="InvalidRenderType",t[t.MethodNotImplement=4]="MethodNotImplement",t[t.InvalidText=5]="InvalidText",t[t.InvalidCharacter=6]="InvalidCharacter",t[t.TextTooLong=7]="TextTooLong",t[t.GroupSizeOverflow=8]="GroupSizeOverflow"}(e=t._errorCode||(t._errorCode={}));var i=function(t){function i(i){var o=t.call(this)||this;return o.code=i||e.Unknown,o}return __extends(i,t),i}(Error);t.BaseException=i}(t.barcode||(t.barcode={}))}(wijmo||(wijmo={})),function(t){!function(t){t.ErrorCode=t._errorCode;var e=function(e){function i(i,o){void 0===o&&(o="");var n=e.call(this,t._errorCode.InvalidOptions)||this;return n.name="InvalidOptionsException",n.message=JSON.stringify(i)+" is not valid options. "+o,n.descriptor={source:i,message:n.message},n}return __extends(i,e),i}(t.BaseException);t.InvalidOptionsException=e;var i=function(e){function i(i){var o=e.call(this,t._errorCode.InvalidBarcodeType)||this;return o.name="InvalidBarcodeTypeException",o.message=i+" is not support!",o.descriptor={source:i,message:o.message},o}return __extends(i,e),i}(t.BaseException);t.InvalidBarcodeTypeException=i;var o=function(e){function i(i){var o=e.call(this,t._errorCode.InvalidRenderType)||this;return o.name="InvalidRenderException",o.message=i+" is not support!",o.descriptor={source:i,message:o.message},o}return __extends(i,e),i}(t.BaseException);t.InvalidRenderException=o;var n=function(e){function i(i,o){var n=e.call(this,t._errorCode.MethodNotImplement)||this;return n.name="MethodNotImplementException",n.message=i+" is not a method! "+o,n.descriptor={source:i,message:n.message},n}return __extends(i,e),i}(t.BaseException);t.MethodNotImplementException=n;var r=function(e){function i(i,o){void 0===o&&(o="");var n=e.call(this,t._errorCode.InvalidText)||this;return n.name="InvalidTextException",n.message=i?i+" is invalid. "+o:"Text is required.",n.descriptor={source:i,message:n.message},n}return __extends(i,e),i}(t.BaseException);t.InvalidTextException=r;var s=function(e){function i(i){var o=e.call(this,t._errorCode.InvalidCharacter)||this;return o.name="InvalidCharacterException",o.message=i+" is invalid.",o.descriptor={source:i,message:o.message},o}return __extends(i,e),i}(t.BaseException);t.InvalidCharacterException=s;var a=function(e){function i(){var i=e.call(this,t._errorCode.TextTooLong)||this;return i.name="TextTooLongException",i.message="Text is too long to encode",i.descriptor={source:null,message:i.message},i}return __extends(i,e),i}(t.BaseException);t.TextTooLongException=a;var h=function(e){function i(i){var o=e.call(this,t._errorCode.GroupSizeOverflow)||this;return o.name="GroupSizeOverflowException",o.message="Group size is "+i+". The max group size is 9.",o.descriptor={source:i,message:o.message},o}return __extends(i,e),i}(t.BaseException);t.GroupSizeOverflowException=h}(t.barcode||(t.barcode={}))}(wijmo||(wijmo={})),function(t){!function(t){var e=function(){function e(e,i){this.container=e,i.toSymbol(),this.barcode=i,this.style=i.style;var o=this.style.unitValue;this.size={width:i.size.width*o,height:i.size.height*o};var n,r,s,a=(n=this.style.renderType,r=this.size,"svg"===n?(s=document.createElementNS("http://www.w3.org/2000/svg","svg")).setAttribute("xmlns","http://www.w3.org/2000/svg"):s=document.createElement("canvas"),s.setAttribute("width",r.width),s.setAttribute("height",r.height),s);switch(this.style.renderType){case"svg":this.context=new t.SVGRenderContext(a,this.style,o);break;case"canvas":this.context=new t.CanvasRenderContext(a,this.style,o);break;default:throw new t.InvalidRenderException(this.style.renderType)}e&&e.appendChild(a),this.renderDom=a}return e.prototype.render=function(){var t=this.style,e=this.barcode.shapes,i=this.context;return i.clear(),i.setColor(t.color),i.setBackgroundColor(t.backgroundColor),e.forEach(function(t){"rect"===t.type&&i.drawRect(t),"text"===t.type&&i.drawText(t)}),this},e.prototype.getImageData=function(){if(!this.context.getImageData)throw new t.MethodNotImplementException("getImageData","You are working with svg render.");return this.context.getImageData()},e.prototype.getDataUrl=function(){return this.context.getDataUrl()},e.prototype.destroy=function(){this.container&&this.container.removeChild(this.renderDom)},e.prototype.getSize=function(){return this.size},e}();t.BarcodeRender=e}(t.barcode||(t.barcode={}))}(wijmo||(wijmo={})),function(t){!function(t){function e(t){return"function"==typeof t}function i(t){return e(Number.isNaN)?Number.isNaN(t):t!=t}function o(t){return!i(+t)}function n(t){return void 0===t&&(t=""),e(Array.from)?Array.from(t):Array.prototype.slice.call(t)}function r(t){return t%2==0}function s(t){return t%2==1}function a(t,e){if(void 0===t&&(t=""),void 0===e&&(e=0),"number"==typeof t)return t;var o=parseFloat(t);return i(o)?e:o}function h(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(null==t)throw new TypeError("Cannot convert undefined or null to object");return e.forEach(function(e){if(e)for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(null!=e[i]&&"object"==typeof e[i]&&"object"==typeof t[i]?t[i]=h({},t[i]||{},e[i]):t[i]=e[i])}),t}function u(t,i){if(e(t.repeat))return t.repeat(i);var o=""+t;if((i=+i)!=i&&(i=0),i<0)throw new RangeError("repeat count must be non-negative");if(i==1/0)throw new RangeError("repeat count must be less than infinity");if(i=Math.floor(i),0==o.length||0==i)return"";if(o.length*i>=1<<28)throw new RangeError("repeat count must not overflow maximum string size");for(var n="",r=0;r<i;r++)n+=o;return n}var c={};t.Utils={isFunction:e,isWindow:function(t){return!!t&&t===t.window},isDefined:function(t){return void 0!==t},isNaN:i,isNumberLike:o,sliceString:function(t,e,i){void 0===t&&(t=""),void 0===e&&(e=1);for(var o=0,n=t.length,r=0;o<n;)i(t.substring(o,o+e),r),o+=e,r++},sliceArray:function(t,e,i){void 0===t&&(t=[]),void 0===e&&(e=1);for(var o=0,n=t.length,r=0;o<n;)i(t.slice(o,o+e),r),o+=e,r++},str2Array:n,combineTruthy:function(t){void 0===t&&(t="");var e=[];return n(t).forEach(function(t){if("0"===t)e.push(0);else if(e[e.length-1]&&0!==e[e.length]){var i=e.pop();e.push(++i)}else e.push(1)}),e},convertRadix:function(t,e){return void 0===e&&(e=2),(t=+t).toString(e)},isEven:r,isOdd:s,toNumber:a,getUnit:function(t){void 0===t&&(t="");var e=/[a-zA-Z]+/.exec(t);return e?e[0]:"px"},getMaxValue:function(t,e){void 0===e&&(e="length");var i=0;return t.forEach(function(t){t[e]>i&&(i=t[e])}),i},assign:function(t){for(var i=[],o=1;o<arguments.length;o++)i[o-1]=arguments[o];if(e(Object.assign))return Object.assign.apply(Object,[t].concat(i));if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(t),r=0;r<i.length;r++){var s=i[r];if(null!=s)for(var a in s)Object.prototype.hasOwnProperty.call(s,a)&&(n[a]=s[a])}return n},deepMerge:h,deepMergeAll:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return h.apply(void 0,[{}].concat(t))},strRepeat:u,isInteger:function(t){return e(Number.isInteger)?Number.isInteger(t):"number"==typeof t&&isFinite(t)&&Math.floor(t)===t},fillArray:function(t,i){if(e(t.fill))return t.fill(i);for(var o=0;o<t.length;o++)t[o]=i;return t},strPadStart:function(t,i,o){return e(t.padStart)?t.padStart(i,o):(i>>=0,o=String(void 0!==o?o:" "),t.length>i?t:((i-=t.length)>o.length&&(o+=u(o,i/o.length)),o.slice(0,i)+String(t)))},registerPlugin:function(t,e){c[t]=e},measureText:function(t,i){return e(c.measureText)?c.measureText(t,i):function(t,e){return 1.4*a(e.fontSize,12)}(0,i)},convertUnit:function(t){return e(c.convertUnit)?o(t)?a(t,12):c.convertUnit(t):function(t){return a(t,12)}(t)},fixSize2PixelDefault:function(t){return o(t)?t+"px":t},loop:function(t,e){var i,o;for(isFinite(e)?(i=0,o=e):(i=e.from,o=e.to+1);i<o;i++)t(i)},toZeroOnePattern:function(t,e){var i=e?r:s;return t.reduce(function(t,e,o){return i(o)?t+=u("1",e):t+=u("0",e),t},"")},range:function(t,e){for(var i=[];t<e;)i.push(t),t++;return i.push(e),i},makeEnums:function(t){Object.defineProperty(t,"has",{configurable:!1,enumerable:!1,writable:!1,value:function(t){return this.$br[t]}});var e=Object.keys(t).reduce(function(e,i){return e[t[i]]=i,e},{});Object.defineProperty(t,"$br",{configurable:!1,enumerable:!1,writable:!1,value:e})}}}(t.barcode||(t.barcode={}))}(wijmo||(wijmo={})),function(t){!function(t){var e=function(){function e(t){void 0===t&&(t={}),this.originConfig=t,this.type=t.type,this.penddingMerge=[]}return e.setCustomDefaultOptions=function(t){e.CustomDefaultOptions=t},e.prototype.spawn=function(i){return new e(t.Utils.deepMergeAll(this.originConfig,i))},e.prototype.merge=function(t){this.penddingMerge.unshift(t)},e.prototype._getUnitValue=function(e){return e=t.Utils.fixSize2PixelDefault(e),t.Utils.convertUnit(e)},e.prototype.getMergedOption=function(){return t.Utils.deepMergeAll.apply(t.Utils,[e.DefaultOptions].concat(this.penddingMerge,[e.CustomDefaultOptions,this.originConfig]))},e.prototype.getConfig=function(e){var i=this.getMergedOption(),o=i.text,n=i.quietZone,r=i.height,s=i.labelPosition,a=i.desiredSize,h=i.showLabel,u=i.font,c=i.backgroundColor,p=i.color,l=i.renderType,f=i.unitSize,d={text:o,isLabelBottom:!1,hideExtraChecksum:i.hideExtraChecksum};if(!t.Utils.isDefined(o))throw new t.InvalidTextException;d.text+="",t.Utils.isDefined(s)&&(d.isLabelBottom="top"!==s),(u=t.Utils.deepMergeAll(u)).fontSize=t.Utils.fixSize2PixelDefault(u.fontSize);var g=t.Utils.measureText(o,u);d.showLabel=h,e=e||this._getUnitValue(f);var y=h?g/e:0;d.fontSizeInUnit=y;var m={};for(var v in n)if(n.hasOwnProperty(v)){var b=n[v];if(t.Utils.isNumberLike(b)){var w=+b;m[v]=w}else{var x=t.Utils.convertUnit(b);m[v]=x/e}}if(d.quietZone=m,a&&(d.containerWidth=t.Utils.convertUnit(t.Utils.fixSize2PixelDefault(a.width)),d.containerHeight=t.Utils.convertUnit(t.Utils.fixSize2PixelDefault(a.height)),d.desiredSize=a),t.Utils.isDefined(r))if(a){var _=h?d.containerHeight-g:d.containerHeight;d.height=_/e-m.top-m.bottom}else t.Utils.isNumberLike(r)?d.height=+r-y-m.top-m.bottom:d.height=t.Utils.convertUnit(r)/e-y-m.top-m.bottom;return{config:i,encodeConfig:d,style:t.Utils.deepMergeAll({backgroundColor:c,color:p,renderType:l,unitValue:e,fontSize:u.fontSize,fontHeight:g},u)}},e.prototype.getOriginConfig=function(){return this.originConfig},e.prototype.getType=function(){return this.type},e.DefaultOptions={renderType:"canvas",unitSize:"1px",color:"rgb(0,0,0)",backgroundColor:"rgb(255,255,255)",font:{fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",textDecoration:"none",textAlign:"center",fontSize:"12px"},hideExtraChecksum:!1,quietZone:{top:0,right:0,bottom:0,left:0}},e.CustomDefaultOptions={},e}();t.Option=e}(t.barcode||(t.barcode={}))}(wijmo||(wijmo={})),function(t){!function(t){t._getDefaultConfig=function(e,i){var o=[{type:i}];return function(t){var e=[];if(t&&t instanceof Function){var i=t;for(e.push(i);i;){var o=Object.getPrototypeOf(i);if(!o||o===Object||o===Function.prototype)break;i=o,e.push(i)}}return e}(e).forEach(function(t){t.DefaultConfig&&o.unshift(t.DefaultConfig)}),t.Utils.deepMergeAll.apply(t.Utils,[t.Option.DefaultOptions].concat(o,[t.Option.CustomDefaultOptions]))};var e=function(){function t(t,e){for(var i in this._keys={},this._values={},t)if("string"==typeof t[i]){var o=parseInt(i),n=e(t[o]);this._keys[o]=n,this._values[n]=o}}return t.prototype.getEnumByString=function(t){var e=this._values[t];if(void 0===e)throw"Unknown Barcode internal value '"+t+"'";return e},t.prototype.getStringByEnum=function(t){return this._keys[t]},t}();t._EnumDictionary=e}(t.barcode||(t.barcode={}))}(wijmo||(wijmo={})),function(t){!function(t){var e=function(){function e(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this.x=0,this.y=0,this.style={padding:{top:0,right:0,bottom:0,left:0},border:{top:0,right:0,bottom:0,left:0},margin:{top:0,right:0,bottom:0,left:0}},this.width=t,this.height=e,this.children=[],this._updateBox()}return e.prototype.append=function(t){this.children.push(t)},e.prototype._makeRect=function(t,e,i,o){return{x:t,y:e,height:o,width:i,type:"rect"}},e.prototype.toShapes=function(){var t=this,e=t.x,i=t.y,o=t.width,n=t.height,r=t.style,s=r.border,a=r.margin,h=[],u=s.left+s.right+o,c=s.top+s.bottom+n,p=e+a.left,l=i+a.top;return s.top&&h.push(this._makeRect(p,l,u,s.top)),s.right&&h.push(this._makeRect(p+u-s.right,l,s.right,c)),s.bottom&&h.push(this._makeRect(p,l+c-s.bottom,u,s.bottom)),s.left&&h.push(this._makeRect(p,l,s.left,c)),h},e.prototype.getSize=function(){var t=this.width,e=this.height,i=this.offsetBox;return{width:t+i.width,height:e+i.height}},e.prototype.visiable=function(){return this.width>0&&this.height>0},e.prototype.setX=function(t){this.x=t,this._updateBox()},e.prototype.setY=function(t){this.y=t,this._updateBox()},e.prototype.updateContentSize=function(t,e){this.width=t,this.height=e,this._updateBox()},e.prototype._fixOpt=function(e,i){if(t.Utils.isNumberLike(e[i])){var o=e[i];e[i]={top:o,right:o,bottom:o,left:o}}},e.prototype.setStyle=function(e){this._fixOpt(e,"padding"),this._fixOpt(e,"border"),this._fixOpt(e,"margin"),this.style=t.Utils.deepMergeAll(this.style,e),this._updateBox()},e.prototype._updateBox=function(){var t=this,e=t.x,i=t.y,o=t.width,n=t.height,r=t.style,s=r.padding,a=r.border,h=r.margin;this.offsetBox={x:e+s.left+a.left+h.left,y:i+s.top+a.top+h.top,width:h.left+a.left+a.right+h.right,height:h.top+a.top+a.bottom+h.bottom};var u=o-s.left-s.right,c=n-s.top-s.bottom;this.contentBox={width:u>=0?u:0,height:c>=0?c:0}},e}();t.Area=e}(t.barcode||(t.barcode={}))}(wijmo||(wijmo={})),function(t){!function(t){var e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.toShapes=function(){this._updateContentSize();var e=this.children,i=this.offsetBox,o=t.prototype.toShapes.call(this),n=i.y,r=0;return e.forEach(function(t){var e=i.x+r;t.toShapes().forEach(function(t){t.x+=e,t.y+=n,o.push(t)});var s=t.getSize();r+=s.width}),o},e.prototype.getSize=function(){return this._updateContentSize(),t.prototype.getSize.call(this)},e.prototype._updateContentSize=function(){var t=this.children,e=this.style.padding,i=t.reduce(function(t,e){var i=e.getSize();return t.height=Math.max(i.height,t.height),t.width+=i.width,t},{width:0,height:0});this.updateContentSize(i.width+e.left+e.right,i.height+e.top+e.bottom)},e}(t.Area);t.HorizontalLayoutArea=e}(t.barcode||(t.barcode={}))}(wijmo||(wijmo={})),function(t){!function(t){var e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.toShapes=function(){this._updateContentSize();var e=this.children,i=this.offsetBox,o=t.prototype.toShapes.call(this),n=i.x,r=0;return e.forEach(function(t){var e=i.y+r;t.toShapes().forEach(function(t){t.x+=n,t.y+=e,o.push(t)});var s=t.getSize();r+=s.height}),o},e.prototype.getSize=function(){return this._updateContentSize(),t.prototype.getSize.call(this)},e.prototype._updateContentSize=function(){var t=this.children,e=this.style.padding,i=t.reduce(function(t,e){var i=e.getSize();return t.width=Math.max(i.width,t.width),t.height+=i.height,t},{width:0,height:0});this.updateContentSize(i.width+e.left+e.right,i.height+e.top+e.bottom)},e}(t.Area);t.VerticalLayoutArea=e}(t.barcode||(t.barcode={}))}(wijmo||(wijmo={})),function(t){!function(t){var e=function(t){function e(e,i,o){var n=t.call(this,e,i)||this;return n._xPosition=0,n._yPosition=0,n._lastMaxHeight=0,n._rowHeight=0,n._rowHeight=o,n}return __extends(e,t),e.prototype.append=function(t,e){if(t&&e){this._autoWrap(t);var i=this.children,o={width:t,height:e,x:this._xPosition,y:this._yPosition};i.push(o),this._xPosition+=t,this._rowHeight||(this._lastMaxHeight=Math.max(this._lastMaxHeight,e))}},e.prototype._autoWrap=function(t){this._checkNeedWrap(t)&&(this._yPosition+=this._rowHeight||this._lastMaxHeight,this._xPosition=0,this._lastMaxHeight=0)},e.prototype._checkNeedWrap=function(t){var e=this._xPosition;return this.contentBox.width-e-t<0},e.prototype.space=function(t){void 0===t&&(t=1),this._autoWrap(t),this._xPosition+=t},e.prototype.toShapes=function(){if(!this.visiable())return[];var e=this.offsetBox,i=this.children,o=t.prototype.toShapes.call(this);return i.forEach(function(t){t.x+=e.x,t.y+=e.y,t.type="rect",o.push(t)}),o},e}(t.Area);t.MatrixSymbolArea=e}(t.barcode||(t.barcode={}))}(wijmo||(wijmo={})),function(t){!function(t){var e=function(e){function i(t,i){var o=e.call(this,t,i)||this;return o._lastIsBar=!1,o._cacheNumber=0,o._position=0,o}return __extends(i,e),i.prototype.append=function(t,e,i){if(t){var o=this.children,n={width:t,x:this._position,barHeight:e,offsetY:i};o.push(n),this._position+=t}},i.prototype.space=function(t){void 0===t&&(t=1),this._position+=t},i.prototype._appendModule=function(t){var e="1"===t;e!==this._lastIsBar&&(this._flash(),this._lastIsBar=e),this._cacheNumber++},i.prototype._flash=function(){this._cacheNumber>0&&(this._lastIsBar?this.append(this._cacheNumber):this.space(this._cacheNumber),this._cacheNumber=0)},i.prototype.fromPattern=function(e){var i=this;t.Utils.str2Array(e).forEach(function(t){return i._appendModule(t)}),this._flash()},i.prototype.getContentBox=function(){return this.contentBox},i.prototype.toShapes=function(){if(!this.visiable())return[];var t=this.offsetBox,i=this.children,o=this.contentBox.height,n=e.prototype.toShapes.call(this);return i.forEach(function(e){n.push({type:"rect",x:e.x+t.x,y:t.y+(e.offsetY||0),width:e.width,height:e.barHeight||o})}),n},i}(t.Area);t.SymbolArea=e}(t.barcode||(t.barcode={}))}(wijmo||(wijmo={})),function(t){!function(t){var e=function(t){function e(e,i,o){var n=t.call(this,e,i)||this;return n._textAlign=o,n}return __extends(e,t),e.prototype.toShapes=function(){if(!this.visiable())return[];var e=this.offsetBox,i=this.children,o=this._textAlign,n=this.contentBox.width,r=t.prototype.toShapes.call(this);return i.forEach(function(t){var i=e.x;switch(o){case"center":i+=n/2;break;case"right":i+=n}r.push({x:i+(t.x||0),y:e.y+(t.y||0),textAlign:o,maxWidth:n,type:"text",text:t.text})}),r},e}(t.Area);t.LabelArea=e}(t.barcode||(t.barcode={}))}(wijmo||(wijmo={})),function(t){!function(t){var e=function(){function e(t,e){this.data=[],this.data=[],this.row=t,this.col=e}return e.prototype.add=function(e,i,o){(this.data[e]||t.Utils.fillArray(new Array(this.col),null))[i]=o,this.data[e]=[]},e.prototype.toMatrix=function(){var e=this,i=[];return t.Utils.loop(function(o){i.push(e.data[o]||t.Utils.fillArray(new Array(e.col),null))},this.row),i},e}();t.MatrixBuilder=e}(t.barcode||(t.barcode={}))}(wijmo||(wijmo={})),function(t){!function(t){var e=function(){function t(t){void 0===t&&(t=[]),this.buffer=t,this.length=8*t.length,this.index=0}return t.prototype.putBit=function(t){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length+=1},t.prototype.putBitAt=function(e,i){for(var o=this.length,n=new t,r=0;r<o;r++)r===i?n.putBit(e):n.putBit(this.getAt(r));this.buffer=n.buffer,this.length=n.length},t.prototype.put=function(t,e){for(var i=0;i<e;i+=1)this.putBit(1==(t>>>e-i-1&1))},t.prototype.putBits=function(t){this.put(parseInt(t,2),t.length)},t.prototype.getAt=function(t){var e=Math.floor(t/8);return 1==(this.buffer[e]>>>7-t%8&1)},t.prototype.getBuffer=function(){return this.buffer},t.prototype.getGroupedBits=function(t){for(var e=0,i=[];e<this.length;){for(var o="",n=e,r=e+t;n<r;n++)o+=this.getAt(n)?1:0;e=r,i.push(parseInt(o,2))}return i},t.prototype.next=function(){return this.index++,this.getAt(this.index-1)},t}();t.BitBuffer=e}(t.barcode||(t.barcode={}))}(wijmo||(wijmo={})),function(t){!function(t){var e=function(){function t(t){this._option=t,this.shapes=[],this.size={width:0,height:0},this.applyDesiredSize()}return t.prototype.validate=function(){},t.prototype.applyDesiredSize=function(t){var e=this._option.getConfig(t),i=e.config,o=e.encodeConfig,n=e.style;this.config=i,this.encodeConfig=o,this.style=n,this.useDesiredSize=!!o.desiredSize},t.prototype.afterApplyDesiredSize=function(){},t.prototype.toSymbol=function(){this.validate();var t=this.calculateData();this.useDesiredSize&&(this.convertToShape(t,!0),this.adjustDesiredSize(),this.afterApplyDesiredSize()),this.convertToShape(t)},t}();t.BarcodeEncoder=e}(t.barcode||(t.barcode={}))}(wijmo||(wijmo={})),function(t){!function(t){var e=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return __extends(i,e),i.prototype.adjustDesiredSize=function(){var t=this.size,e=t.width,i=t.height,o=this.encodeConfig,n=o.desiredSize,r=o.containerWidth,s=o.containerHeight,a=Math.min(r/e,s/i);n.forceRounding&&(a=(a=~~a)<1?1:a),this.applyDesiredSize(a)},i.prototype.convertToShape=function(e,i){var o=this.encodeConfig.quietZone,n=e[0].length+o.right+o.left,r=e.length+o.top+o.bottom,s=new t.VerticalLayoutArea,a=new t.MatrixSymbolArea(n,r,1);a.setStyle({padding:{top:o.top,right:o.right,bottom:o.bottom,left:o.left}}),s.append(a),i||(e.forEach(function(t){t.forEach(function(t){t?a.append(1,1):a.space()})}),this.shapes=s.toShapes()),this.size=s.getSize()},i}(t.BarcodeEncoder);t.TwoDimensionalBarcode=e}(t.barcode||(t.barcode={}))}(wijmo||(wijmo={})),function(t){!function(t){var e=function(e){function i(t){var o=this;return t.merge(i.DefaultConfig),(o=e.call(this,t)||this).label="",o}return __extends(i,e),i.prototype.adjustDesiredSize=function(){var t=this.size.width,e=this.encodeConfig,i=e.desiredSize,o=e.containerWidth/t;i.forceRounding&&(o=(o=~~o)<1?1:o),this.applyDesiredSize(o)},i.prototype.convertToShape=function(e,i){var o=this.label,n=this.encodeConfig,r=n.quietZone,s=n.isLabelBottom,a=n.height,h=n.showLabel,u=n.fontSizeInUnit,c=this.style.textAlign,p=0;o&&h&&(p=u);var l=e.length+r.right+r.left,f=a+r.top+r.bottom,d=new t.VerticalLayoutArea,g=new t.SymbolArea(l,f);g.setStyle({padding:{top:r.top,right:r.right,bottom:r.bottom,left:r.left}});var y=g.getSize(),m=new t.LabelArea(y.width,p,c);s?(d.append(g),d.append(m)):(d.append(m),d.append(g)),i||(g.fromPattern(e),m.append({text:o}),this.shapes=d.toShapes()),this.size=d.getSize()},i.DefaultConfig={height:60,showLabel:!0,labelPosition:"bottom"},i}(t.BarcodeEncoder);t.OneDimensionalBarcode=e}(t.barcode||(t.barcode={}))}(wijmo||(wijmo={})),function(t){!function(t){t.Constants={FNC1:"Ï",FNC2:"Ê",FNC3:"É",DataMatrixFNC1:" ",DataMatrixMacro05:" ",DataMatrixMacro06:" "}}(t.barcode||(t.barcode={}))}(wijmo||(wijmo={})),function(t){!function(t){t.encoders={};var e=function(){function e(){for(var e,i,o,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];if(n.length>=3)e=n[0],i=n[1],o=n[2];else if(2===n.length)t.Utils.isFunction(n[1])?(i=n[0],o=n[1]):(e=n[0],i=n[1]);else{if(1!==n.length)throw new t.MethodNotImplementException("constructor","The arguments is invalid.");i=n[0]}this.dom="string"==typeof e?document.querySelector(e):e,this.callback=o&&o.bind(this),this.setOption(i)}return e.getImageData=function(t){return void 0===t&&(t={}),new e(t).getImageData()},e.getDataUrl=function(t){return void 0===t&&(t={}),new e(t).getDataUrl()},e.setDefaultOptions=function(e){void 0===e&&(e={}),t.Option.setCustomDefaultOptions(e)},e.registerEncoder=function(i,o){t.encoders[i]=o,e.supportType.push(i)},e.registerPlugin=function(e,i){t.Utils.registerPlugin(e,i)},e.prototype.mergeOption=function(t){var e=this.option.spawn(t);return this.update(e),this},e.prototype.setOption=function(e){return this.update(new t.Option(e)),this},e.prototype.getOption=function(){return this.option.getMergedOption()},e.prototype.update=function(e){var i=e.getType(),o=t.encoders[i];if(!o)throw new t.InvalidBarcodeTypeException(i);var n=new o(e);this.destroy();var r=new t.BarcodeRender(this.dom,n);r.render(),this.render=r,this.option=e,t.Utils.isFunction(this.callback)&&this.callback()},e.prototype.refresh=function(){this.render.render(),t.Utils.isFunction(this.callback)&&this.callback()},e.prototype.getImageData=function(){return this.render.getImageData()},e.prototype.getDataUrl=function(){return this.render.getDataUrl()},e.prototype.getSize=function(){return this.render.getSize()},e.prototype.destroy=function(){this.render&&(this.render.destroy(),this.render=null)},e.supportType=[],e.constants=t.Constants,e.ErrorCode=t.ErrorCode,e}();t.Barcode=e}(t.barcode||(t.barcode={}))}(wijmo||(wijmo={})),function(t){!function(t){t.Barcode.registerPlugin("measureText",function(t,e){var i=document.createElement("span");i.style.visibility="hidden",i.style.position="absolute",i.style.lineHeight="normal",i.textContent=t,Object.keys(e).forEach(function(t){i.style[t]=e[t]}),document.body.appendChild(i);var o=i.getBoundingClientRect();return document.body.removeChild(i),o.height})}(t.barcode||(t.barcode={}))}(wijmo||(wijmo={})),function(t){!function(t){t.Barcode.registerPlugin("convertUnit",function(t){var e=document.createElement("div");e.style.visibility="hidden",e.style.position="fixed",e.style.padding="0",e.style.border="0",e.style.width=t,document.body.appendChild(e);var i=e.getBoundingClientRect();return document.body.removeChild(e),i.width})}(t.barcode||(t.barcode={}))}(wijmo||(wijmo={})),function(t){!function(t){!function(t){t[t.Canvas=0]="Canvas",t[t.Svg=1]="Svg"}(t.RenderType||(t.RenderType={})),function(t){t[t.Top=0]="Top",t[t.Bottom=1]="Bottom"}(t.LabelPosition||(t.LabelPosition={})),function(t){t[t.OneToTwo=0]="OneToTwo",t[t.OneToThree=1]="OneToThree"}(t.NarrowToWideRatio||(t.NarrowToWideRatio={}))}(t.barcode||(t.barcode={}))}(wijmo||(wijmo={})),function(t){!function(e){var i=function(){function i(){}return i.stringToEnum=function(t){switch(t){case"canvas":return e.RenderType.Canvas;case"svg":return e.RenderType.Svg}throw"Unknown Barcode internal renderType '"+t+"'"},i.enumToString=function(i){return e.RenderType[t.asEnum(i,e.RenderType)].toLowerCase()},i}();e._RenderTypeConvertor=i;var o=function(){function i(){}return i.stringToEnum=function(t){switch(t){case"top":return e.LabelPosition.Top;case"bottom":return e.LabelPosition.Bottom}throw"Unknown Barcode internal labelPosition '"+t+"'"},i.enumToString=function(i){return e.LabelPosition[t.asEnum(i,e.LabelPosition)].toLowerCase()},i}();e._LabelPositionConvertor=o;var n=function(){function i(){}return i.stringToEnum=function(t){switch(t.toString()){case"2":return e.NarrowToWideRatio.OneToTwo;case"3":return e.NarrowToWideRatio.OneToThree}throw"Unknown nwRatio internal value '"+t+"'"},i.enumToString=function(i){var o;switch(t.asEnum(i,e.NarrowToWideRatio)){case e.NarrowToWideRatio.OneToTwo:o="2";break;case e.NarrowToWideRatio.OneToThree:o="3"}return o},i}();e._NarrowWideRatioConvertor=n}(t.barcode||(t.barcode={}))}(wijmo||(wijmo={})),function(t){!function(e){var i=function(i){function n(e,o){var n=i.call(this,e,null,!0)||this;n._state={},n._isUpd=0,n._isValid=!0,n._aw=!1,n._wZoom=1,n.isValidChanged=new t.Event;var r=n.getTemplate();return n.applyTemplate("wj-barcode wj-control",r,{}),t.isIE()||(n.hostElement.style.lineHeight="0px"),n._state=n._getDefaults(),n._isUpd++,n.initialize(o),n._updateSize(),n._isUpd--,n._mergeOptions({}),n.invalidate(),n}return __extends(n,i),n.prototype.initialize=function(t){this._isUpd++;try{i.prototype.initialize.call(this,t)}finally{this._isUpd--}!this._isUpd&&t&&Object.keys(t).length&&this._mergeOptions({})},n._getClassDefaults=function(){var t=this.type;return e._getDefaultConfig(e.encoders[t],t)},n.prototype._getDefaults=function(){var t=this.constructor;return t._defaults||(t._defaults=t._getClassDefaults()),e.Utils.deepMergeAll(t._defaults)},Object.defineProperty(n.prototype,"value",{get:function(){return this._getProp("text")},set:function(t){this._setProp("text",t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"quietZone",{get:function(){return this._getProp("quietZone")},set:function(t){this._setProp("quietZone",t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"renderType",{get:function(){return e._RenderTypeConvertor.stringToEnum(this._getProp("renderType"))},set:function(t){this._setProp("renderType",e._RenderTypeConvertor.enumToString(t))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"color",{get:function(){return this._getProp("color")},set:function(t){this._setProp("color",t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"backgroundColor",{get:function(){return this._getProp("backgroundColor")},set:function(t){this._setProp("backgroundColor",t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"hideExtraChecksum",{get:function(){return this._getProp("hideExtraChecksum")},set:function(t){this._setProp("hideExtraChecksum",t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"font",{get:function(){return this._getProp("font")},set:function(t){this._setProp("font",t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"isValid",{get:function(){return this._isValid},enumerable:!0,configurable:!0}),n.prototype.onIsValidChanged=function(t){this.isValidChanged.raise(this,t)},n.prototype.refresh=function(t){void 0===t&&(t=!0),i.prototype.refresh.call(this,t),t?this._updateSize():this._bc.refresh()},n.prototype.getImageData=function(){return this._bc.getImageData()},n.prototype.getDataUrl=function(){return this._bc.getDataUrl()},n.prototype.getSize=function(){var e=new t.Size,i=this._bc.getSize();return i&&(e.width=i.width,e.height=i.height),e},n.prototype._mergeOptions=function(t){var i,n=this._bc,r=o(this._state,t);if(!this._isUpd){var s=r.text;if(null==s||""===s)n&&(n.destroy(),this._bc=n=null);else try{n?n.setOption(r):this._bc=n=new e.Barcode(this.hostElement,r)}catch(t){i=t}}var a=!0;if(i){if(n&&(n.destroy(),this._bc=n=null),i.code!==e._errorCode.InvalidText)throw i;a=!1}this._state=r,this._setValid(a)},n.prototype._setValid=function(e){this._isValid!==e&&(this._isValid=e,t.toggleClass(this.hostElement,"wj-state-invalid",!e),this.onIsValidChanged())},n.prototype._setProp=function(t,e){var i;this._mergeOptions(((i={})[t]=e,i))},n.prototype._getProp=function(t){var e=this._bc;return this._state[t]||e&&e.getOption()[t]},n.prototype._updateSize=function(){if(this.hostElement){var t=n._getContentSize(this.hostElement),e=this._prevSz,i=null,o=null,r=1,s=!0;this._getAw()?(r=this._getWzoom(),s=(o=t.height/r)===this._prevH,this._prevH=o,e=this._prevSz=null):e&&t.equals(e)||(i={width:t.width+"px",height:t.height+"px",forceRounding:!1},s=!1,this._prevSz=t,this._prevH=null),s||this._mergeOptions({desiredSize:i,height:o,unitSize:r})}},n._getContentSize=function(e){var i=getComputedStyle(e);return new t.Size(e.offsetWidth-parseFloat(i.paddingLeft)-parseFloat(i.paddingRight)-parseFloat(i.borderLeftWidth)-parseFloat(i.borderRightWidth),e.offsetHeight-parseFloat(i.paddingTop)-parseFloat(i.paddingBottom)-parseFloat(i.borderTopWidth)-parseFloat(i.borderBottomWidth))},n.prototype._getAw=function(){return this._aw},n.prototype._setAw=function(t){this._aw!==t&&(this._aw=t,this._updateSize())},n.prototype._getWzoom=function(){return this._wZoom},n.prototype._setWzoom=function(e){t.asNumber(e),t.assert(e>=1,"autoWidthZoom value should be equal or greater than 1"),this._wZoom!==e&&(this._wZoom=e,this._getAw()&&this._updateSize())},n.controlTemplate="",n}(t.Control);e.BarcodeBase=i;var o="function"==typeof Object.assign?Object.assign:function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];for(var o=0,n=e;o<n.length;o++){var r=n[o];if(null!=r)for(var s in r)t[s]=r[s]}return t}}(t.barcode||(t.barcode={}))}(wijmo||(wijmo={})),function(t){t.barcode||(t.barcode={}),t._registerModule("wijmo.barcode",t.barcode)}(wijmo||(wijmo={}));
var wijmo,__extends=this&&this.__extends||function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}();!function(e){!function(e){!function(e){for(var t=new Array(256),o=0;o<8;o++)t[o]=1<<o;for(o=8;o<256;o++)t[o]=t[o-4]^t[o-5]^t[o-6]^t[o-8];var n=new Array(256);for(o=0;o<255;o+=1)n[t[o]]=o;var r=[null,null,null,null,null,null,null,[0,87,229,146,149,238,102,21],null,null,[0,251,67,46,61,118,70,64,94,32,45],null,null,[0,74,152,176,100,86,100,106,104,130,218,206,140,78],null,[0,8,183,61,91,202,37,51,58,58,237,140,124,5,99,105],[0,120,104,107,109,102,161,76,3,91,191,147,169,182,194,225,120],[0,43,139,206,78,43,239,123,206,214,147,24,99,150,39,243,163,136],[0,215,234,158,94,184,97,118,170,79,187,152,148,252,179,5,98,96,153],null,[0,17,60,79,50,61,163,26,187,202,180,221,225,83,239,156,164,212,212,188,190],null,[0,210,171,247,242,93,230,14,109,221,53,200,74,8,172,98,80,219,134,160,105,165,231],null,[0,229,121,135,48,211,117,251,126,159,180,169,152,192,226,228,218,111,0,117,232,87,96,227,21],null,[0,173,125,158,2,103,182,118,17,145,201,111,28,165,53,161,21,245,142,13,102,48,227,153,145,218,70],null,[0,168,223,200,104,224,234,108,180,110,190,195,147,205,27,232,201,21,43,245,87,42,195,212,119,242,37,9,123],null,[0,41,173,145,152,216,31,179,182,50,48,110,86,239,96,222,125,42,173,226,193,224,130,156,37,251,216,238,40,192,180],null,[0,10,6,106,190,249,167,4,67,209,138,138,32,242,123,89,27,120,185,80,156,38,69,171,60,28,222,80,52,254,185,220,241],null,[0,111,77,146,94,26,21,108,19,105,94,113,193,86,140,163,125,58,158,229,239,218,103,56,70,114,61,183,129,167,13,98,62,129,51],null,[0,200,183,98,16,172,31,246,234,60,152,115,0,167,152,113,248,238,107,18,63,218,37,87,210,105,177,120,74,121,196,117,251,113,233,30,120],null,null,null,[0,59,116,79,161,252,98,128,205,128,161,247,57,163,56,235,106,53,26,187,174,226,104,170,7,175,35,181,114,88,41,47,163,125,134,72,20,232,53,35,15],null,[0,250,103,221,230,25,18,137,231,0,3,58,242,221,191,110,84,230,8,188,106,96,147,15,131,139,34,101,223,39,101,213,199,237,254,201,123,171,162,194,117,50,96],null,[0,190,7,61,121,71,246,69,55,168,188,89,243,191,25,72,123,9,145,14,247,1,238,44,78,143,62,224,126,118,114,68,163,52,194,217,147,204,169,37,130,113,102,73,181],null,[0,112,94,88,112,253,224,202,115,187,99,89,5,54,113,129,44,58,16,135,216,169,211,36,1,4,96,60,241,73,104,234,8,249,245,119,174,52,25,157,224,43,202,223,19,82,15],null,[0,228,25,196,130,211,146,60,24,251,90,39,102,240,61,178,63,46,123,115,18,221,111,135,160,182,205,107,206,95,150,120,184,91,21,247,156,140,238,191,11,94,227,84,50,163,39,34,108],null,[0,232,125,157,161,164,9,118,46,209,99,203,193,35,3,209,111,195,242,203,225,46,13,32,160,126,209,130,160,242,215,242,75,77,42,189,32,113,65,124,69,228,114,235,175,124,170,215,232,133,205],null,[0,116,50,86,186,50,220,251,89,192,46,86,127,124,19,184,233,151,215,22,14,59,145,37,242,203,134,254,89,190,94,59,65,124,113,100,233,235,121,22,76,86,97,39,242,200,220,101,33,239,254,116,51],null,[0,183,26,201,87,210,221,113,21,46,65,45,50,238,184,249,225,102,58,209,218,109,165,26,95,184,192,52,245,35,254,238,175,172,79,123,25,122,43,120,108,215,80,128,201,235,8,153,59,101,31,198,76,31,156],null,[0,106,120,107,157,164,216,112,116,2,91,248,163,36,201,202,229,6,144,254,155,135,208,170,209,12,139,127,142,182,249,177,174,190,28,10,85,239,184,101,124,152,206,96,23,163,61,27,196,247,151,154,202,207,20,61,10],null,[0,82,116,26,247,66,27,62,107,252,182,200,185,235,55,251,242,210,144,154,237,176,141,192,248,152,249,206,85,253,142,65,165,125,23,24,30,122,240,214,6,129,218,29,145,127,134,206,245,117,29,41,63,159,142,233,125,148,123],null,[0,107,140,26,12,9,141,243,197,226,197,219,45,211,101,219,120,28,181,127,6,100,247,2,205,198,57,115,219,101,109,160,82,37,38,238,49,160,209,121,86,11,124,30,181,84,25,194,87,65,102,190,220,70,27,209,16,89,7,33,240],null,[0,65,202,113,98,71,223,248,118,214,94,1,122,37,23,2,228,58,121,7,105,135,78,243,118,70,76,223,89,72,50,70,111,194,17,212,126,181,35,221,117,235,11,229,149,147,123,213,40,115,6,200,100,26,246,182,218,127,215,36,186,110,106],null,[0,45,51,175,9,7,158,159,49,68,119,92,123,177,204,187,254,200,78,141,149,119,26,127,53,160,93,199,212,29,24,145,156,208,150,218,209,4,216,91,47,184,146,47,140,195,195,125,242,238,63,99,108,140,230,242,31,204,11,178,243,217,156,213,231],null,[0,5,118,222,180,136,136,162,51,46,117,13,215,81,17,139,247,197,171,95,173,65,137,178,68,111,95,101,41,72,214,169,197,95,7,44,154,77,111,236,40,121,143,63,87,80,253,240,126,217,77,34,232,106,50,168,82,76,146,67,106,171,25,132,93,45,105],null,[0,247,159,223,33,224,93,77,70,90,160,32,254,43,150,84,101,190,205,133,52,60,202,165,220,203,151,93,84,15,84,253,173,160,89,227,52,199,97,95,231,52,177,41,125,137,241,166,225,118,2,54,32,82,215,175,198,43,238,235,27,101,184,127,3,5,8,163,238],null];e.generateErrorCorrectionCode=function(e,o,i){for(var a=[],c=r[o],u=e.slice(0),s=0;s<i;s++){if(0!=u[0]){for(var d=n[u[0]],l=0;l<=c.length-1;l++){for(var h=c[l]+d;h>=255;)h-=255;a[l]=t[h]}for(var f=0;f<=c.length-1;f++)u[f]=u[f]^a[f]}for(var b=1;b<u.length;b++)u[b-1]=u[b];u[u.length-1]=0}return u.slice(0,o)}}(e.common||(e.common={}))}(e.barcode||(e.barcode={}))}(wijmo||(wijmo={})),function(e){!function(e){!function(e){var t=1335,o=7973,n=21522,r=10277;function i(e){for(var t=0;0!=e;)t+=1,e>>>=1;return t}e.getBCH15=function(e,o){for(var a=2===o?n:r,c=e<<10;i(c)-i(t)>=0;)c^=t<<i(c)-i(t);return(e<<10|c)^a},e.getBCH18=function(e){for(var t=e<<12;i(t)-i(o)>=0;)t^=o<<i(t)-i(o);return e<<12|t}}(e.common||(e.common={}))}(e.barcode||(e.barcode={}))}(wijmo||(wijmo={})),function(e){!function(t){!function(t){function o(e){return e>=48&&e<=57}function n(e){return-1!=" $%*+-./:".indexOf(String.fromCharCode(e))||(e>=48&&e<=57||e>=65&&e<=90)}function r(e){return e>=0&&e<=255}function i(e){return e>=33087&&e<=64587}t.MODE_INDICATOR={ECI:7,Numeric:1,Alphanumeric:2,"8BitByte":4,Kanji:8,StructuredAppend:3,FNC1First:5,FNC2Second:9,Terminator:0},t.EC_INDICATOR={L:1,M:0,Q:3,H:2};var a={Numeric:o,Alphanumeric:n,"8BitByte":r,Kanji:i};t.isMode=function(e,t){var o=a[e];return 1===t.length?o(t):t.every(function(e){return o(e)})},t.getCharMode=function(e,t){return void 0===t&&(t="UTF-8"),o(e)?"Numeric":n(e)?"Alphanumeric":"Shift_JIS"===t&&i(e)?"Kanji":"8BitByte"},t.getSizeByVersion=function(e){return 4*e+17},t.getCharacterCountIndicatorbitsNumber=function(e){return e>=1&&e<=9?{Numeric:10,Alphanumeric:9,"8BitByte":8,Kanji:8}:e>=10&&e<=26?{Numeric:12,Alphanumeric:11,"8BitByte":16,Kanji:10}:{Numeric:14,Alphanumeric:13,"8BitByte":16,Kanji:12}};var c={" ":36,$:37,"%":38,"*":39,"+":40,"-":41,".":42,"/":43,":":44};t.getAlphanumericCharValue=function(t){if(t>=48&&t<=57)return+String.fromCharCode(t);if(t>=65&&t<=90)return t-65+10;var o=c[String.fromCharCode(t)];if(o)return o;throw new e.barcode.InvalidTextException(String.fromCharCode(t))},t.createModules=function(t){for(var o=[],n=0;n<t;n++)o.push(e.barcode.Utils.fillArray(new Array(t),null));return o};var u=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]];t.getAlignmentPattersPos=function(e){return u[e-1]},t.padCodewords0=236,t.padCodewords1=17,t.maskFuncs=[function(e,t){return(e+t)%2==0},function(e){return e%2==0},function(e,t){return t%3==0},function(e,t){return(e+t)%3==0},function(e,t){return(Math.floor(e/2)+Math.floor(t/3))%2==0},function(e,t){return e*t%2+e*t%3==0},function(e,t){return(e*t%2+e*t%3)%2==0},function(e,t){return(e*t%3+(e+t)%2)%2==0}];var s=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],d=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,46,36],[1,46,30],[1,46,24],[1,46,16],[1,72,57],[1,72,44],[1,72,36],[1,72,24],[1,100,80],[1,100,60],[1,100,50],[1,100,34],[1,134,108],[1,134,82],[1,134,68],[2,67,23],[1,170,136],[2,85,53],[2,85,43],[2,85,29],[1,212,170],[2,106,66],[2,106,54],[3,70,24],[2,128,104],[2,128,80],[2,128,64],[3,85,29],[2,153,123],[2,153,93],[3,102,52],[3,102,34],[2,179,145],[2,179,111],[3,119,61],[4,89,31],[2,208,168],[4,104,64],[4,104,52],[5,83,29],[2,238,192],[4,119,73],[4,119,61],[5,95,33],[3,180,144],[4,135,83],[4,135,69],[6,90,32],[3,203,163],[4,152,92],[5,122,62],[6,101,35]];function l(e,t,o){var n;switch(void 0===o&&(o=2),t){case 1:n=0;break;case 0:n=1;break;case 3:n=2;break;case 2:n=3}for(var r=(2===o?s:d)[4*(e-1)+n],i=[],a=r.length/3,c=0;c<a;c++)for(var u=r[3*c],l=0;l<u;l++)i.push({total:r[3*c+1],data:r[3*c+2],ec:r[3*c+1]-r[3*c+2]});return i}t.getErrorCorrectionCharacteristics=l,t.getMaskFunc=function(e){return t.maskFuncs[e]},t.getMaskScore=function(e){for(var t=e.length,o=0,n=0;n<t;n++)for(var r=0;r<t;r++){for(var i=0,a=e[n][r],c=-1;c<=1;c++)if(!(n+c<0||t<=n+c))for(var u=-1;u<=1;u++)r+u<0||t<=r+u||0==c&&0==u||a==e[n+c][r+u]&&(i+=1);i>5&&(o+=3+i-5)}for(n=0;n<t-1;n++)for(r=0;r<t-1;r++){var s=0;e[n][r]&&(s+=1),e[n+1][r]&&(s+=1),e[n][r+1]&&(s+=1),e[n+1][r+1]&&(s+=1),0!=s&&4!=s||(o+=3)}for(n=0;n<t;n++)for(r=0;r<t-6;r++)e[n][r]&&!e[n][r+1]&&e[n][r+2]&&e[n][r+3]&&e[n][r+4]&&!e[n][r+5]&&e[n][r+6]&&(o+=40);for(r=0;r<t;r++)for(n=0;n<t-6;n++)e[n][r]&&!e[n+1][r]&&e[n+2][r]&&e[n+3][r]&&e[n+4][r]&&!e[n+5][r]&&e[n+6][r]&&(o+=40);var d=0;for(r=0;r<t;r++)for(n=0;n<t;n++)e[n][r]&&(d+=1);return o+=Math.abs(100*d/t/t-50)/5*10},t.addFormatInformation=function(o,n,r,i){var a=o.length,c=function(e){return e.reduce(function(e,t){return e.push(t.slice(0)),e},[])}(o),u=e.barcode.Utils.strPadStart(e.barcode.Utils.convertRadix(r,2),2,0)+e.barcode.Utils.strPadStart(e.barcode.Utils.convertRadix(n,2),3,0),s=t.getBCH15(parseInt(u,2),i);c[a-8][8]=1;for(var d=15;d>0;d--){var l=s>>d-1&1;d>9?(c[8][15-d]=l,c[a-1-15+d][8]=l):d>8?(c[8][15-d+1]=l,c[a-1-15+d][8]=l):d>6?(c[d][8]=l,c[8][a-d]=l):(c[d-1][8]=l,c[8][a-d]=l)}return c},t.getEstimatedVersion=function(t,a,c){var u=0,s=0,d=0,h=0;a.forEach(function(e){o(e)?u++:n(e)?s++:i(e)?h++:r(e)&&d++});for(var f=Math.ceil((5*s+3*u+13*h+8*d)/8),b=1;b<=40;b++)if(f<=l(b,t,c).reduce(function(e,t){return e+t.data},0))return b;throw new e.barcode.TextTooLongException};var h={Alphanumeric:[[6,11],[7,15],[8,16]],Numeric:[[4,6,6,13],[4,7,8,15],[5,8,9,17]]};function f(e){for(var t=[],o=0,n=e.length;o<n;o++){var r=e[o];r<128?t.push(r):r<2048?t.push(192|r>>6,128|63&r):r<55296||r>=57344?t.push(224|r>>12,128|r>>6&63,128|63&r):(r=65536+((1023&r)<<10|1023&e[++o]),t.push(240|r>>18,128|r>>12&63,128|r>>6&63,128|63&r))}return t}t.getModeCheckInfo=function(e,t){var o=h[e];return t<=9?o[0]:t<=26?o[1]:o[2]},t.utf8Encode=f,t.getParityData=function(e){for(var t=f(e),o=t[0],n=1,r=t.length;n<r;n++)o^=t[n];return o},t.getCharCode=function(t){var o=[];return e.barcode.Utils.sliceString(t,1,function(e){o.push(e.charCodeAt(0))}),o}}(t.common||(t.common={}))}(e.barcode||(e.barcode={}))}(wijmo||(wijmo={})),function(e){!function(e){!function(e){var t=function(){function t(e){this.mode="Kanji",this.data=e}return t.prototype.getMode=function(){return e.MODE_INDICATOR.Kanji},t.prototype.getLength=function(){return this.data.length},t.prototype.write=function(e){this.data.forEach(function(t){var o;if(t>33088&&t<40956)o=192*((t-=33088)>>>8)+(255&t);else if(t>57408&&t<60351){o=192*((t-=49472)>>>8)+(255&t)}e.put(o,13)})},t}();e.ModeKanji=t}(e.common||(e.common={}))}(e.barcode||(e.barcode={}))}(wijmo||(wijmo={})),function(e){!function(t){!function(t){var o=function(){function o(e){this.mode="Alphanumeric",this.data=e}return o.prototype.getMode=function(){return t.MODE_INDICATOR.Alphanumeric},o.prototype.getLength=function(){return this.data.length},o.prototype.write=function(o){e.barcode.Utils.sliceArray(this.data,2,function(e){var n=t.getAlphanumericCharValue(e[0]);if(2===e.length){var r=45*n+t.getAlphanumericCharValue(e[1]);o.put(r,11)}else o.put(n,6)})},o}();t.ModeAlphanumeric=o}(t.common||(t.common={}))}(e.barcode||(e.barcode={}))}(wijmo||(wijmo={})),function(e){!function(t){!function(t){var o=function(){function o(e){this.mode="Numeric",this.data=e}return o.prototype.getMode=function(){return t.MODE_INDICATOR.Numeric},o.prototype.getLength=function(){return this.data.length},o.prototype.write=function(t){e.barcode.Utils.sliceArray(this.data,3,function(e){var o=parseInt(e.reduce(function(e,t){return e+String.fromCharCode(t)},""));switch(e.length){case 1:return void t.put(o,4);case 2:return void t.put(o,7);default:return void t.put(o,10)}})},o}();t.ModeNumeric=o}(t.common||(t.common={}))}(e.barcode||(e.barcode={}))}(wijmo||(wijmo={})),function(e){!function(e){!function(e){var t=function(){function t(t){this.mode="8BitByte",this.data=t,this.bytes=e.utf8Encode(t)}return t.prototype.getMode=function(){return e.MODE_INDICATOR["8BitByte"]},t.prototype.getLength=function(){return this.bytes.length},t.prototype.write=function(e){this.bytes.forEach(function(t){e.put(t,8)})},t}();e.Mode8BitByte=t}(e.common||(e.common={}))}(e.barcode||(e.barcode={}))}(wijmo||(wijmo={})),function(e){!function(t){!function(t){var o=function(){function o(e,o){var n=o.version,r=o.model,i=o.charCode;this.charCode=i||t.getCharCode(e);var a=t.EC_INDICATOR[o.errorCorrectionLevel];this.config=o,this.errorCorrectionLevel=a,this.model=+r,n="auto"===n?this.getAutoVersion():+n,this.version=n,this.modulesCount=t.getSizeByVersion(n),this.charCountIndicatorBitsNumber=t.getCharacterCountIndicatorbitsNumber(n),this.errorCorrectionCharacteristics=t.getErrorCorrectionCharacteristics(n,a,this.model),this.totalDataCount=this.errorCorrectionCharacteristics.reduce(function(e,t){return e+t.data},0),this.totalDataBits=8*this.totalDataCount}return o.prototype.getConnections=function(){for(var e=this.totalDataBits,t=this.charCode,o=e-20,n=t.length,r=0,i=1,a=[],c=t[0];i<=n;){var u=t.slice(r,i),s=this.analysisData(u);this.encodeData(s).length>o?(a.push(c),r=i-1):i===n&&a.push(u),c=u,i++}return a},o.prototype.processConnection=function(t){var o=this.totalDataBits,n=this.config,r=n.connection,i=n.connectionNo;if(i=+i,r){var a=Math.ceil(t.length/(o-20));if(i>a-1)throw new e.barcode.InvalidOptionsException({connectionNo:i},"Max connection number is "+(a-1));var c=this.getConnections()[i],u=this.analysisData(c);return this.encodeData(u,{connectionNo:i,connectionCnt:a})}if(t.length>o)throw new e.barcode.TextTooLongException;return t},o.prototype.padBuffer=function(e){var o=this.totalDataBits;for(e.length+4<=o&&e.put(t.MODE_INDICATOR.Terminator,4);e.length%8!=0;)e.putBit(!1);for(;!(e.length>=o||(e.put(t.padCodewords0,8),e.length>=o));)e.put(t.padCodewords1,8)},o.prototype.getAutoVersion=function(){for(var o=this.errorCorrectionLevel,n=this.charCode,r=this.model,i=t.getEstimatedVersion(o,n,r);i<40;i++){this.version=i,this.modulesCount=t.getSizeByVersion(this.version),this.charCountIndicatorBitsNumber=t.getCharacterCountIndicatorbitsNumber(this.version),this.errorCorrectionCharacteristics=t.getErrorCorrectionCharacteristics(this.version,o),this.totalDataCount=this.errorCorrectionCharacteristics.reduce(function(e,t){return e+t.data},0),this.totalDataBits=8*this.totalDataCount;var a=this.analysisData(n);if(!(this.encodeData(a).length>this.totalDataBits))return i}throw new e.barcode.TextTooLongException},o.prototype.analysisData=function(e){var o=this.version,n=this.config.charset,r=t.getCharMode(e[0],n);switch(r){case"Alphanumeric":var i=t.getModeCheckInfo(r,o),a=e.slice(1,1+i[0]);t.isMode("8BitByte",a)&&(r="8BitByte");break;case"Numeric":var c=t.getModeCheckInfo(r,o),u=e.slice(1,1+c[0]),s=e.slice(1,1+c[1]);t.isMode("8BitByte",u)?r="8BitByte":t.isMode("Alphanumeric",s)&&(r="Alphanumeric")}var d={mode:r,code:[]},l=[d];return e.forEach(function(r,i){var a=t.getCharMode(r,n);if(d.mode===a)d.code.push(r);else if("8BitByte"===d.mode)if("Kanji"===a)d={mode:a,code:[r]},l.push(d);else if("Numeric"===a){var c=t.getModeCheckInfo(a,o);t.isMode(a,e.slice(i,i+c[2]))?(d={mode:a,code:[r]},l.push(d)):d.code.push(r)}else if("Alphanumeric"===a){c=t.getModeCheckInfo(a,o);t.isMode(a,e.slice(i,i+c[1]))?(d={mode:a,code:[r]},l.push(d)):d.code.push(r)}else d.code.push(r);else if("Alphanumeric"===d.mode)if("Kanji"===a||"8BitByte"===a)d={mode:a,code:[r]},l.push(d);else if("Numeric"===a){c=t.getModeCheckInfo(a,o);t.isMode(a,e.slice(i,i+c[2]))?(d={mode:a,code:[r]},l.push(d)):d.code.push(r)}else d.code.push(r);else d={mode:a,code:[r]},l.push(d)}),l},o.prototype.generateErrorCorrectionCode=function(e){var o=[],n=0;return this.errorCorrectionCharacteristics.forEach(function(r){var i=e.getBuffer().slice(n,n+r.data);o.push({data:i,ec:t.generateErrorCorrectionCode(i,r.ec,r.data)}),n+=r.data}),o},o.prototype.addRectModule=function(e,t,o,n,r){void 0===r&&(r=!1);for(var i=this.modules,a=n+t,c=o+e;t<a;t++)for(var u=e;u<c;u++)i[t][u]=+r},o.prototype.addPositionDetectionPattern=function(){var e=this.modules.length;this.addPattern(0,0,7),this.addRectModule(7,0,1,8,!1),this.addRectModule(0,7,8,1,!1);var t=e-7;this.addPattern(t,0,7),this.addRectModule(t-1,0,1,8,!1),this.addRectModule(t-1,7,8,1,!1);var o=e-7;this.addPattern(0,o,7),this.addRectModule(7,o-1,1,8,!1),this.addRectModule(0,o-1,8,1,!1)},o.prototype.addTimingPattern=function(){for(var e=this.modules,t=e.length,o=!0,n=8;n<t-7;n++)e[6][n]=+o,e[n][6]=+o,o=!o},o.prototype.addPattern=function(e,t,o){this.addRectModule(e,t,o,o,!0),this.addRectModule(e+1,t+1,o-2,o-2,!1),this.addRectModule(e+2,t+2,o-4,o-4,!0)},o}();t.QRCodeBase=o}(t.common||(t.common={}))}(e.barcode||(e.barcode={}))}(wijmo||(wijmo={})),function(e){!function(t){!function(t){var o=function(o){function n(){return null!==o&&o.apply(this,arguments)||this}return __extends(n,o),n.prototype.encodeData=function(o,n){var r=this.charCountIndicatorBitsNumber,i=this.charCode,a=new e.barcode.BitBuffer;return n&&(a.put(t.MODE_INDICATOR.StructuredAppend,4),a.put(n.connectionNo,4),a.put(n.connectionCnt-1,4),a.put(t.getParityData(i),8)),o.forEach(function(e){if(e.code){var o;switch(e.mode){case"Numeric":o=new t.ModeNumeric(e.code);break;case"Alphanumeric":o=new t.ModeAlphanumeric(e.code);break;case"8BitByte":o=new t.Mode8BitByte(e.code);break;case"Kanji":o=new t.ModeKanji(e.code)}a.put(o.getMode(),4),a.put(o.getLength(),r[o.mode]),o.write(a)}}),a},n.prototype.getFinalMessage=function(t){for(var o=[],n=t.map(function(e){return e.data}),r=t.map(function(e){return e.ec}),i=e.barcode.Utils.getMaxValue(n),a=e.barcode.Utils.getMaxValue(r),c=function(t){n.forEach(function(n){e.barcode.Utils.isDefined(n[t])&&o.push(n[t])})},u=0;u<i;u++)c(u);var s=function(t){r.forEach(function(n){e.barcode.Utils.isDefined(n[t])&&o.push(n[t])})};for(u=0;u<a;u++)s(u);return o},n.prototype.setModules=function(e){var o=this.modulesCount,n=this.version;this.modules=t.createModules(o),this.addPositionDetectionPattern(),this.addAlignmentPattern(),this.addTimingPattern(),n>6&&this.addVersionInformation(),this.maskModules(e)},n.prototype.maskModules=function(e){var o=this.modules,n=this.errorCorrectionLevel,r=this.model,i=this.config.mask;if("auto"===i)this.autoMask(e);else{var a=t.getMaskFunc(i);this.maskPattern=i;var c=t.addFormatInformation(o,i,n,r);this.modules=this.fillDataModules(c,e,a)}},n.prototype.autoMask=function(e){var o,n,r,i=this,a=this.modules,c=this.errorCorrectionLevel,u=this.model;t.maskFuncs.forEach(function(s,d){var l=t.addFormatInformation(a,d,c,u),h=i.fillDataModules(l,e,s),f=t.getMaskScore(h);(!n||f<n)&&(o=h,n=f,r=d)}),this.modules=o,this.maskPattern=r},n.prototype.addAlignmentPattern=function(){var e=this,o=this.modules,n=this.version,r=t.getAlignmentPattersPos(n);r.forEach(function(t){r.forEach(function(n){null===o[t][n]&&e.addPattern(n-2,t-2,5)})})},n.prototype.addVersionInformation=function(){for(var e=this.modulesCount,o=this.modules,n=this.version,r=t.getBCH18(n),i=0;i<18;i++){var a=r>>i&1;o[Math.floor(i/3)][i%3+e-8-3]=a,o[i%3+e-8-3][Math.floor(i/3)]=a}},n.prototype.fillDataModules=function(e,t,o){for(var n=e.length,r=-1,i=n-1,a=7,c=0,u=n-1;u>0;u-=2)for(6==u&&(u-=1);;){for(var s=0;s<2;s+=1)if(null==e[i][u-s]){var d=!1;c<t.length&&(d=1==(t[c]>>>a&1)),o(i,u-s)&&(d=!d),e[i][u-s]=+d,-1==(a-=1)&&(c+=1,a=7)}if((i+=r)<0||n<=i){i-=r,r=-r;break}}return e},n.prototype.getMatrix=function(){var e=this.charCode,t=this.analysisData(e),o=this.encodeData(t),n=this.processConnection(o);this.padBuffer(n);var r=this.generateErrorCorrectionCode(n),i=this.getFinalMessage(r);return this.setModules(i),this.modules},n}(t.QRCodeBase);t.QRCodeModel2=o}(t.common||(t.common={}))}(e.barcode||(e.barcode={}))}(wijmo||(wijmo={})),function(e){!function(t){!function(t){var o=function(o){function n(){return null!==o&&o.apply(this,arguments)||this}return __extends(n,o),n.prototype.encodeData=function(o,n){var r=this.charCountIndicatorBitsNumber,i=this.charCode,a=new e.barcode.BitBuffer;return a.put(0,4),n&&(a.put(t.MODE_INDICATOR.StructuredAppend,4),a.put(n.connectionNo,4),a.put(n.connectionCnt-1,4),a.put(t.getParityData(i),8)),o.forEach(function(e){if(e.code){var o;switch(e.mode){case"Numeric":o=new t.ModeNumeric(e.code);break;case"Alphanumeric":o=new t.ModeAlphanumeric(e.code);break;case"8BitByte":o=new t.Mode8BitByte(e.code);break;case"Kanji":o=new t.ModeKanji(e.code)}a.put(o.getMode(),4),a.put(o.getLength(),r[o.mode]),o.write(a)}}),a},n.prototype.getFinalMessage=function(e){var t=[],o=e.map(function(e){return e.data}),n=e.map(function(e){return e.ec});return o.forEach(function(e){return t=t.concat(e)}),n.forEach(function(e){return t=t.concat(e)}),t},n.prototype.setModules=function(e){var o=this.modulesCount;this.modules=t.createModules(o),this.addPositionDetectionPattern(),this.addExtensionPattern(),this.addTimingPattern(),this.maskModules(e)},n.prototype.maskModules=function(e){var o=this.modules,n=this.errorCorrectionLevel,r=this.model,i=this.config.mask;if("auto"===i)this.autoMask(e);else{var a=t.getMaskFunc(i);this.maskPattern=i;var c=t.addFormatInformation(o,i,n,r);this.modules=this.fillDataModules(c,e,a)}},n.prototype.autoMask=function(e){var o,n,r,i=this,a=this.modules,c=this.errorCorrectionLevel,u=this.model;t.maskFuncs.forEach(function(s,d){var l=t.addFormatInformation(a,d,c,u),h=i.fillDataModules(l,e,s),f=t.getMaskScore(h);(!n||f<n)&&(o=h,n=f,r=d)}),this.modules=o,this.maskPattern=r},n.prototype.addExtensionPattern=function(){var t=this.modules,o=this.version,n=t.length;t[n-1][n-1]=1,t[n-2][n-1]=0,t[n-1][n-2]=0,t[n-2][n-2]=0;var r=Math.floor(o/2);if(e.barcode.Utils.isEven(o))for(var i=0;i<r;i++)this.addBaseExtension(13+8*i),this.addRightExtension(13+8*i);else for(i=0;i<r;i++)this.addBaseExtension(17+8*i),this.addRightExtension(17+8*i)},n.prototype.addBaseExtension=function(e){var t=this.modules,o=t.length,n=o-2,r=o-1;t[n][e]=0,t[n][e+1]=0,t[n][e+2]=0,t[n][e+3]=0,t[r][e]=1,t[r][e+1]=1,t[r][e+2]=1,t[r][e+3]=1},n.prototype.addRightExtension=function(e){var t=this.modules,o=t.length,n=o-2,r=o-1;t[e][n]=0,t[e+1][n]=0,t[e+2][n]=0,t[e+3][n]=0,t[e][r]=1,t[e+1][r]=1,t[e+2][r]=1,t[e+3][r]=1},n.prototype.fillDataModules=function(t,o,n){var r,i,a=t.length;r=i=a-1;var c=2,u=new e.barcode.BitBuffer(o);for(u.next(),u.next(),u.next(),u.next();r>=0;){if(r==a-5)c=4;else if(8==r)c=2;else if(6==r){r--;continue}for(;i>=0;)if(null===t[i][r]){for(var s=0;s<c;s++){var d=u.next();n(i,r-s)&&(d=!d),t[i][r-s]=+d}i--}else i--;r-=c,i=a-1}return t},n.prototype.getMatrix=function(){var e=this.charCode,t=this.analysisData(e),o=this.encodeData(t),n=this.processConnection(o);this.padBuffer(n);var r=this.generateErrorCorrectionCode(n),i=this.getFinalMessage(r);return this.setModules(i),this.modules},n}(t.QRCodeBase);t.QRCodeModel1=o}(t.common||(t.common={}))}(e.barcode||(e.barcode={}))}(wijmo||(wijmo={})),function(e){!function(t){!function(t){var o=function(o){function n(e){var r=this;e.merge(n.DefaultConfig);var i,a=r=o.call(this,e)||this,c=a.encodeConfig.text,u=a.config;return i="2"==u.model?new t.QRCodeModel2(c,u):new t.QRCodeModel1(c,u),r.innerQRCode=i,r}return __extends(n,o),n.prototype.calculateData=function(){return this.innerQRCode.getMatrix()},n.prototype.validate=function(){var t=this.config,o=t.version,n=t.model,r=t.charset,i=t.charCode,a=t.connectionNo,c=this.encodeConfig.text;if(!(c||i&&0!==i.length))throw new e.barcode.InvalidTextException(c);if("1"!=n&&"2"!=n)throw new e.barcode.InvalidOptionsException({model:n});if("UTF-8"!=r&&"Shift_JIS"!=r)throw new e.barcode.InvalidOptionsException({charset:r});if("1"==n&&e.barcode.Utils.isNumberLike(o)&&(o<1||o>14))throw new e.barcode.InvalidOptionsException({version:o},"Model 1 only support version 1 - 14.");if("2"==n&&e.barcode.Utils.isNumberLike(o)&&(o<1||o>40))throw new e.barcode.InvalidOptionsException({version:o},"Model 2 only support version 1 - 40.");if(a>15||a<0)throw new e.barcode.InvalidOptionsException({connectionNo:a},"ConnectionNo is in range 0 - 15.")},n.DefaultConfig={version:"auto",errorCorrectionLevel:"L",model:2,mask:"auto",connection:!1,connectionNo:0,charCode:void 0,charset:"UTF-8",quietZone:{top:4,left:4,right:4,bottom:4}},n}(e.barcode.TwoDimensionalBarcode);t.QRCodeEncoder=o}(t.common||(t.common={}))}(e.barcode||(e.barcode={}))}(wijmo||(wijmo={})),function(e){!function(t){!function(t){e.barcode.Barcode.registerEncoder("QRCode",t.QRCodeEncoder)}(t.common||(t.common={}))}(e.barcode||(e.barcode={}))}(wijmo||(wijmo={})),function(e){!function(t){!function(t){var o=[" ","!",'"',"#","$","%","&","'","(",")","*","+",",","-",".","/","0","1","2","3","4","5","6","7","8","9",":",";","<","=",">","?","@","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","[","\\","]","^","_","\0","","","","","","","","\b","\t","\n","\v","\f","\r","","","","","","","","","","","","","","","","","",""," "," "," "," "," "," "," "," "," "," "],n=[" ","!",'"',"#","$","%","&","'","(",")","*","+",",","-",".","/","0","1","2","3","4","5","6","7","8","9",":",";","<","=",">","?","@","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","[","\\","]","^","_","`","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","{","|","}","~",""," "," "," "," "," "," "," "," "," "," "],r=["212222","222122","222221","121223","121322","131222","122213","122312","132212","221213","221312","231212","112232","122132","122231","113222","123122","123221","223211","221132","221231","213212","223112","312131","311222","321122","321221","312212","322112","322211","212123","212321","232121","111323","131123","131321","112313","132113","132311","211313","231113","231311","112133","112331","132131","113123","113321","133121","313121","211331","231131","213113","213311","213131","311123","311321","331121","312113","312311","332111","314111","221411","431111","111224","111422","121124","121421","141122","141221","112214","112412","122114","122411","142112","142211","241211","221114","413111","241112","134111","111242","121142","121241","114212","124112","124211","411212","421112","421211","212141","214121","412121","111143","111341","131141","114113","114311","411113","411311","113141","114131","311141","411131","211412","211214","211232"];function i(e,r){if(e===t.Code128Char.FNC1)return t.Code128Sym.FNC1;if(e===t.Code128Char.FNC2)return t.Code128Sym.FNC2;if(e===t.Code128Char.FNC3)return t.Code128Sym.FNC3;switch(r){case"A":return o.indexOf(e);case"B":return n.indexOf(e);case"C":return+e}}t.stopPattern="2331112",t.Code128Sym={CodeC:99,CodeB:100,CodeA:101,FNC1:102,FNC2:97,FNC3:96,StartA:103,StartB:104,StartC:105},t.Code128Char={CodeC:String.fromCharCode(204),CodeB:String.fromCharCode(205),CodeA:String.fromCharCode(206),FNC1:e.barcode.Constants.FNC1,FNC2:e.barcode.Constants.FNC2,FNC3:e.barcode.Constants.FNC3,StartA:String.fromCharCode(208),StartB:String.fromCharCode(209),StartC:String.fromCharCode(210)},t.getCharValue=i,t.getCharPattern=function(t,o){var n=r[i(t,o)];if(!n)throw new e.barcode.InvalidCharacterException(t);return n},t.getPatternByIndex=function(e){return r[e]},t.encode=function(t){var o="";return e.barcode.Utils.str2Array(t).forEach(function(t,n){e.barcode.Utils.isEven(n)?o+=e.barcode.Utils.strRepeat("1",+t):o+=e.barcode.Utils.strRepeat("0",+t)}),o}}(t.common||(t.common={}))}(e.barcode||(e.barcode={}))}(wijmo||(wijmo={})),function(e){!function(t){!function(t){var o=function(){function o(e,t){void 0===t&&(t=!1),this.text=e,this.isUccEan128=t,this.validate()}return o.prototype.validate=function(){var t=this.text;if(!/^[\x00-\x7F\xC8-\xD3]+$/.test(t))throw new e.barcode.InvalidTextException(t)},o.prototype.calculateGroup=function(){var o=this.text,n={code:this.isUccEan128?"C":"B",text:""},r=[];r.push(n);for(var i=0,a=o.length;i<a;i++){var c=n.code,u=o[i];if("C"!==n.code&&i+3<a&&e.barcode.Utils.isNumberLike(o.substr(i,4))||"C"===n.code&&i+1<a&&e.barcode.Utils.isNumberLike(o.substr(i,2)))c="C",u+=o[++i];else if(c="C"===n.code?"B":n.code,t.getCharValue(u,c)<0&&(c="A"===n.code?"B":"A",t.getCharValue(u,c)<0))continue;n.code!==c?(n={code:c,text:u},r.push(n)):n.text+=u}return r.filter(function(e){return e.text})},o.prototype.getData=function(){var o=this.calculateGroup(),n=this.checksum(o),r="";return o.forEach(function(o,n){if(0===n){var i=t.getPatternByIndex(t.Code128Sym["Start"+o.code]);r+=t.encode(i)}else{i=t.getPatternByIndex(t.Code128Sym["Code"+o.code]);r+=t.encode(i)}"C"===o.code?e.barcode.Utils.sliceString(o.text,2,function(e){r+=t.encode(t.getCharPattern(e,o.code))}):e.barcode.Utils.sliceString(o.text,1,function(e){r+=t.encode(t.getCharPattern(e,o.code))})}),r+=t.encode(t.getPatternByIndex(n)),r+=t.encode(t.stopPattern)},o.prototype.checksum=function(o){var n=0,r=0;return o.forEach(function(o,i){var a=o.code,c=o.text;if(0===i)r+=t.Code128Sym["Start"+a];else{var u=t.Code128Sym["Code"+a];r+=u*++n}"C"===a?e.barcode.Utils.sliceString(c,2,function(e){r+=t.getCharValue(e,a)*++n}):e.barcode.Utils.sliceString(c,1,function(e){r+=t.getCharValue(e,a)*++n})}),r%103},o}();t.Code128Auto=o}(t.common||(t.common={}))}(e.barcode||(e.barcode={}))}(wijmo||(wijmo={})),function(e){!function(t){!function(t){var o=function(){function o(e){this.text=e,this.validate()}return o.prototype.validate=function(){var t=this.text;if(!/^(\xCF*[0-9]{2}\xCF*)+$/.test(t))throw new e.barcode.InvalidTextException(t)},o.prototype.getData=function(){var o=this.text,n=this.checksum(),r="",i=t.getPatternByIndex(t.Code128Sym.StartC);return r+=t.encode(i),e.barcode.Utils.sliceString(o,2,function(e){var o=t.getCharPattern(e,"C");r+=t.encode(o)}),r+=t.encode(t.getPatternByIndex(n)),r+=t.encode(t.stopPattern)},o.prototype.checksum=function(){var o=this.text,n=0,r=0;return e.barcode.Utils.sliceString(o,2,function(e){r+=t.getCharValue(e,"C")*++n}),(r+=t.Code128Sym.StartC)%103},o}();t.Code128C=o}(t.common||(t.common={}))}(e.barcode||(e.barcode={}))}(wijmo||(wijmo={})),function(e){!function(t){!function(t){var o=function(){function o(e){this.text=e,this.validate()}return o.prototype.validate=function(){var t=this.text;if(!/^[\x20-\x7F\xC8-\xCF]+$/.test(t))throw new e.barcode.InvalidTextException(t)},o.prototype.getData=function(){var o=this.text,n=this.checksum(),r="",i=t.getPatternByIndex(t.Code128Sym.StartB);return r+=t.encode(i),e.barcode.Utils.sliceString(o,1,function(e){var o=t.getCharPattern(e,"B");r+=t.encode(o)}),r+=t.encode(t.getPatternByIndex(n)),r+=t.encode(t.stopPattern)},o.prototype.checksum=function(){var o=this.text,n=0,r=0;return e.barcode.Utils.sliceString(o,1,function(e){r+=t.getCharValue(e,"B")*++n}),(r+=t.Code128Sym.StartB)%103},o}();t.Code128B=o}(t.common||(t.common={}))}(e.barcode||(e.barcode={}))}(wijmo||(wijmo={})),function(e){!function(t){!function(t){var o=function(){function o(e){this.text=e,this.validate()}return o.prototype.validate=function(){var t=this.text;if(!/^[\x00-\x5F\xC8-\xCF]+$/.test(t))throw new e.barcode.InvalidTextException(t)},o.prototype.getData=function(){var o=this.text,n=this.checksum(),r="",i=t.getPatternByIndex(t.Code128Sym.StartA);return r+=t.encode(i),e.barcode.Utils.sliceString(o,1,function(e){var o=t.getCharPattern(e,"A");r+=t.encode(o)}),r+=t.encode(t.getPatternByIndex(n)),r+=t.encode(t.stopPattern)},o.prototype.checksum=function(){var o=this.text,n=0,r=0;return e.barcode.Utils.sliceString(o,1,function(e){r+=t.getCharValue(e,"A")*++n}),(r+=t.Code128Sym.StartA)%103},o}();t.Code128A=o}(t.common||(t.common={}))}(e.barcode||(e.barcode={}))}(wijmo||(wijmo={})),function(e){!function(t){!function(t){var o=function(e){function o(n,r){void 0===r&&(r=!1);var i=this;n.merge(o.DefaultConfig);var a=(i=e.call(this,n)||this).encodeConfig.text;return i.isUccEan128=r,r&&a[0]!==t.Code128Char.FNC1&&(a=t.Code128Char.FNC1+a),i.text=a,i.label=a.replace(/[^\x20-\x7E]/g,""),i}return __extends(o,e),o.prototype.validate=function(){},o.prototype.calculateData=function(){var e,o=this.config.codeSet,n=this.text;if(this.isUccEan128)e=new t.Code128Auto(n);else switch(o){case"A":e=new t.Code128A(n);break;case"B":e=new t.Code128B(n);break;case"C":e=new t.Code128C(n);break;default:e=new t.Code128Auto(n)}return e.getData()},o.DefaultConfig={codeSet:"auto",quietZone:{right:10,left:10}},o}(e.barcode.OneDimensionalBarcode);t.Code128Encoder=o}(t.common||(t.common={}))}(e.barcode||(e.barcode={}))}(wijmo||(wijmo={})),function(e){!function(e){!function(e){var t=function(e){function t(t){return e.call(this,t,!0)||this}return __extends(t,e),t}(e.Code128Encoder);e.GS1_128Encoder=t}(e.common||(e.common={}))}(e.barcode||(e.barcode={}))}(wijmo||(wijmo={})),function(e){!function(t){!function(t){e.barcode.Barcode.registerEncoder("GS1_128",t.GS1_128Encoder)}(t.common||(t.common={}))}(e.barcode||(e.barcode={}))}(wijmo||(wijmo={})),function(e){!function(t){!function(t){e.barcode.Barcode.registerEncoder("Code128",t.Code128Encoder)}(t.common||(t.common={}))}(e.barcode||(e.barcode={}))}(wijmo||(wijmo={})),function(e){!function(t){!function(t){var o=function(){function t(){}return t.getMod43Val=function(o){var n=0;return e.barcode.Utils.sliceString(o,1,function(e){n+=t.MODULO_43_CHECK_TABLE.indexOf(e)}),t.MODULO_43_CHECK_TABLE[n%43]},t.getFullASCIIChar=function(o){var n="";return e.barcode.Utils.sliceString(o,1,function(r){var i=t.FULL_ASCII_TABLE[r.charCodeAt(0)];if(!i)throw new e.barcode.InvalidTextException(o);n+=i}),n},t.TABLE={0:"000110100",1:"100100001",2:"001100001",3:"101100000",4:"000110001",5:"100110000",6:"001110000",7:"000100101",8:"100100100",9:"001100100",A:"100001001",B:"001001001",C:"101001000",D:"000011001",E:"100011000",F:"001011000",G:"000001101",H:"100001100",I:"001001100",J:"000011100",K:"100000011",L:"001000011",M:"101000010",N:"000010011",O:"100010010",P:"001010010",Q:"000000111",R:"100000110",S:"001000110",T:"000010110",U:"110000001",V:"011000001",W:"111000000",X:"010010001",Y:"110010000",Z:"011010000","-":"010000101",".":"110000100"," ":"011000100",$:"010101000","/":"010100010","+":"010001010","%":"000101010","*":"010010100"},t.MODULO_43_CHECK_TABLE=e.barcode.Utils.str2Array("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"),t.FULL_ASCII_TABLE=["%U","$A","$B","$C","$D","$E","$F","$G","$H","$I","$J","$K","$L","$M","$N","$O","$P","$Q","$R","$S","$T","$U","$V","$W","$X","$Y","$Z","%A","%B","%C","%D","%E"," ","/A","/B","/C","/D","/E","/F","/G","/H","/I","/J","/K","/L","-",".","/O","0","1","2","3","4","5","6","7","8","9","/Z","%F","%G","%H","%I","%J","%V","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","%K","%L","%M","%N","%O","%W","+A","+B","+C","+D","+E","+F","+G","+H","+I","+J","+K","+L","+M","+N","+O","+P","+Q","+R","+S","+T","+U","+V","+W","+X","+Y","+Z","%P","%Q","%R","%S","%T"],t}();t.EncodeTable_Code39=o}(t.common||(t.common={}))}(e.barcode||(e.barcode={}))}(wijmo||(wijmo={})),function(e){!function(t){!function(t){var o=function(o){function n(e){var r=this;e.merge(n.DefaultConfig);var i=r=o.call(this,e)||this,a=i.encodeConfig,c=a.text,u=a.hideExtraChecksum,s=i.config,d=s.checkDigit,l=s.fullASCII,h=s.nwRatio,f=s.labelWithStartAndStopCharacter,b=l?t.EncodeTable_Code39.getFullASCIIChar(c):c;if(d){var p=t.EncodeTable_Code39.getMod43Val(b);r.text=n.START_STOP_CHARACTERS+b+p+n.START_STOP_CHARACTERS;var m=u?c:c+p,g=n.START_STOP_CHARACTERS+m+n.START_STOP_CHARACTERS;r.label=f?g:m}else{r.text=n.START_STOP_CHARACTERS+b+n.START_STOP_CHARACTERS;m=c,g=n.START_STOP_CHARACTERS+m+n.START_STOP_CHARACTERS;r.label=f?g:m}return r.nwRatio=+h,r}return __extends(n,o),n.prototype.validate=function(){var t=this.encodeConfig.text,o=this.config,n=o.fullASCII,r=o.nwRatio;if(!n&&!/^[0-9A-Z\-\.\ \$\/\+\%]+$/.test(t))throw new e.barcode.InvalidTextException(t);if(2!=r&&3!=r)throw new e.barcode.InvalidOptionsException({nwRatio:r},"NwRatio is 2 or 3")},n.prototype.encode=function(t){var o=this.nwRatio,n="",r=e.barcode.Utils.strRepeat("1",o),i=e.barcode.Utils.strRepeat("0",o);return e.barcode.Utils.str2Array(t).forEach(function(t,o){e.barcode.Utils.isEven(o)?n+="1"===t?r:"1":n+="1"===t?i:"0"}),n},n.prototype.calculateData=function(){var o=this,n=this.text,r="";return e.barcode.Utils.sliceString(n,1,function(e){r=r+o.encode(t.EncodeTable_Code39.TABLE[e])+"0"}),r=r.substr(0,r.length-1)},n.DefaultConfig={checkDigit:!1,fullASCII:!1,nwRatio:3,labelWithStartAndStopCharacter:!1,quietZone:{right:10,left:10}},n.START_STOP_CHARACTERS="*",n}(e.barcode.OneDimensionalBarcode);t.Code39Encoder=o}(t.common||(t.common={}))}(e.barcode||(e.barcode={}))}(wijmo||(wijmo={})),function(e){!function(t){!function(t){e.barcode.Barcode.registerEncoder("Code39",t.Code39Encoder)}(t.common||(t.common={}))}(e.barcode||(e.barcode={}))}(wijmo||(wijmo={})),function(e){!function(t){!function(t){var o=function(){function t(){}return t.encodeCharByTable=function(e,o){return t.TABLE[o][e]},t.encodeByStructure=function(o,n){return e.barcode.Utils.str2Array(o).reduce(function(e,o,r){return e+=t.encodeCharByTable(o,n[r])},"")},t.encodeByTable=function(o,n){return o.length>1?e.barcode.Utils.str2Array(o).reduce(function(e,o){return e+=t.encodeCharByTable(o,n)},""):t.encodeCharByTable(o,n)},t.TABLE={A:["0001101","0011001","0010011","0111101","0100011","0110001","0101111","0111011","0110111","0001011"],B:["0100111","0110011","0011011","0100001","0011101","0111001","0000101","0010001","0001001","0010111"],C:["1110010","1100110","1101100","1000010","1011100","1001110","1010000","1000100","1001000","1110100"]},t}();t.EncodeTable=o}(t.common||(t.common={}))}(e.barcode||(e.barcode={}))}(wijmo||(wijmo={})),function(e){!function(t){!function(t){var o=function(){function o(t,o,n,r){this.isTextGroup=n,this.addOn=""+t,"auto"!==o&&(e.barcode.Utils.isNumberLike(o)?o=+o:(o=e.barcode.Utils.convertUnit(e.barcode.Utils.fixSize2PixelDefault(o)),o/=r)),this.addOnHeight=o,this.validate()}return o.get2DigitAddOnTable=function(e){switch((e=parseInt(e))%4){case 0:return{leftStructure:"A",rightStructure:"A"};case 1:return{leftStructure:"A",rightStructure:"B"};case 2:return{leftStructure:"B",rightStructure:"A"};case 3:return{leftStructure:"B",rightStructure:"B"}}},o.get5DigitAddOnTable=function(e){var t=3*(+(e+="")[0]+ +e[2]+ +e[4])+9*(+e[1]+ +e[3]);return o.fiveDigitAddOnStructure[t%10]},o.prototype.validate=function(){var t=this.addOn;if(2!==t.length&&5!==t.length)throw new e.barcode.InvalidOptionsException({addOn:t},"Add on length should be 2 or 5.")},o.prototype._encode2DigitAddOn=function(){var e,n,r,i=this.addOn,a=this.isTextGroup,c=[];return e=o.get2DigitAddOnTable(i),n=t.EncodeTable.encodeByTable(i[0],e.leftStructure[0]),r=t.EncodeTable.encodeByTable(i[1],e.rightStructure[0]),a?(c.push({binary:o.ADD_ON_GUARD,role:"ADDON"}),c.push({binary:n,text:i[0],role:"ADDON"}),c.push({binary:o.ADD_ON_DELINEATOR,role:"ADDON"}),c.push({binary:r,text:i[1],role:"ADDON"})):c.push({binary:o.ADD_ON_GUARD+n+o.ADD_ON_DELINEATOR+r,text:i,role:"ADDON"}),c},o.prototype._encode5DigitAddOn=function(){var n=this.addOn,r=this.isTextGroup,i=[],a=o.get5DigitAddOnTable(n);if(r)i.push({binary:o.ADD_ON_GUARD,role:"ADDON"}),e.barcode.Utils.str2Array(n).forEach(function(e,r){i.push({binary:t.EncodeTable.encodeByTable(e,a[r]),text:e,role:"ADDON"}),r<n.length-1&&i.push({binary:o.ADD_ON_DELINEATOR,role:"ADDON"})});else{var c=e.barcode.Utils.str2Array(n).reduce(function(e,r,i){return e+=t.EncodeTable.encodeByTable(r,a[i]),i<n.length-1&&(e+=o.ADD_ON_DELINEATOR),e},"");i.push({binary:o.ADD_ON_GUARD+c,text:n,role:"ADDON"})}return i},o.prototype.calculateData=function(){var e=this.addOn,t=[];return 2===e.length?t=this._encode2DigitAddOn():5===e.length&&(t=this._encode5DigitAddOn()),t.push({text:">",role:"ADDON_RIGHT_QUIET_ZONE"}),t},o.fiveDigitAddOnStructure=["BBAAA","BABAA","BAABA","BAAAB","ABBAA","AABBA","AAABB","ABABA","ABAAB","AABAB"],o.ADD_ON_GUARD="1011",o.ADD_ON_DELINEATOR="01",o}();t.AddOnSymbol=o}(t.common||(t.common={}))}(e.barcode||(e.barcode={}))}(wijmo||(wijmo={})),function(e){!function(t){!function(t){var o=function(o){function n(e){var t=this;e.merge(n.DefaultConfig);var r=t=o.call(this,e)||this,i=r.style,a=i.textAlign,c=i.unitValue,u=r.config,s=u.addOnLabelPosition,d=u.addOn,l=u.addOnHeight;return t.isTextGroup="group"===a,t.isAddOnLabelBottom="top"!==s,t._setAddOn(d,l,c),t}return __extends(n,o),n.prototype._setAddOn=function(o,n,r){e.barcode.Utils.isDefined(o)?(this.addOn=new t.AddOnSymbol(o,n,this.isTextGroup,r),this.addOnHeight=this.addOn.addOnHeight):this.addOnHeight=0},n.prototype.checksum=function(t,o){void 0===o&&(o=!1);var n=e.barcode.Utils.str2Array(t),r=o?e.barcode.Utils.isOdd:e.barcode.Utils.isEven,i=n.reduce(function(e,t,o){return t=+t,e+=r(o)?t:3*t},0)%10;return 0===i?0:10-i},n.prototype.convertToShape=function(t){var o=this,n=o.isTextGroup,r=o.addOnHeight,i=o.isAddOnLabelBottom,a=o.style.textAlign,c=o.encodeConfig,u=c.isLabelBottom,s=c.height,d=c.quietZone,l=c.showLabel,h=c.fontSizeInUnit;l||(h=0),r=r||0;var f,b,p,m,g,C,A,v=[],y=d.left,_=d.top;u?(f=s+5,b=_+s,p=l?s+h:f,i?g=(m=_)+(C="auto"===r?l?s:f:r):(g=_,m=_+h,C="auto"===r?f-h:r)):(f=s,s-=5,b=_,_+=h,p=l?f+h:f,i?(m=d.top,g=m+(C="auto"===r?l?s:f:r)):(g=d.top,m=d.top+h,C="auto"===r?f:r)),A=l?C+h:C,t.forEach(function(t){var o,r=_,i=s,c=b,u=n?"center":a,h=y;switch(t.role){case"GUARD":i=f,o=t.binary.length;break;case"ADDON":r=m,i=C,c=g,o=t.binary.length;break;case"LEFT_QUIET_ZONE":u="left",o=d.left,h=0;break;case"RIGHT_QUIET_ZONE":case"NO_ADDON_RIGHT_QUIET_ZONE":u="right",o=d.right;break;case"ADDON_QUIET_ZONE":o=d.addOn;break;case"ADDON_RIGHT_QUIET_ZONE":u="right",c=g,o=d.right;break;default:o=t.binary.length}if(l&&t.text){switch(u){case"center":h+=o/2;break;case"right":h+=o}var p={type:"text",x:h,y:c,text:t.text,textAlign:u,maxWidth:o};"NO_ADDON_RIGHT_QUIET_ZONE"!==t.role&&"ADDON_RIGHT_QUIET_ZONE"!==t.role||(p.fontStyle="normal",p.fontWeight="normal",p.textDecoration="none"),v.push(p)}t.binary?e.barcode.Utils.combineTruthy(t.binary).forEach(function(e){0!==e?(v.push({type:"rect",x:y,y:r,width:e,height:i}),y+=e):y++}):"ADDON_QUIET_ZONE"===t.role&&(y+=o)}),this.size={width:y+d.right,height:Math.max(p,A)+d.top+d.bottom},this.shapes=v},n.prototype.afterApplyDesiredSize=function(){var e=this.config,t=e.addOn,o=e.addOnHeight,n=this.style.unitValue;this._setAddOn(t,o,n),this.addOnHeight>this.encodeConfig.height&&(this.addOnHeight=this.encodeConfig.height)},n.NORMAL_GUARD="101",n.CENTRE_GUARD="01010",n.DefaultConfig={quietZone:{right:7,left:11}},n}(e.barcode.OneDimensionalBarcode);t.EANBase=o}(t.common||(t.common={}))}(e.barcode||(e.barcode={}))}(wijmo||(wijmo={})),function(e){!function(t){!function(t){var o=function(o){function n(e,t,r){var i=this;e.merge(n.DefaultConfig);var a=(i=o.call(this,e)||this).encodeConfig,c=a.text,u=a.hideExtraChecksum;i.prefix=t;var s=c;return c.length<7&&(c+=i.checksum(c),u||(s=c)),i.label=s,i.text=c,i.tableStructure=r,i}return __extends(n,o),n.prototype.validate=function(){var t=this.encodeConfig.text;if(!/^(\d{6}|\d{7})$/.test(t))throw new e.barcode.InvalidTextException(t,"Text should be numbers. The length should be 6 or 7.");if(7===t.length&&this.checksum(t.substr(0,6))!=t[6])throw new e.barcode.InvalidTextException(t,"Check digit is invalid.")},n.prototype.checksum=function(e){var t;switch(e[5]){case"0":case"1":case"2":t=e.substr(0,2)+e[5]+"0000"+e.substr(2,3);break;case"3":t=e.substr(0,3)+"00000"+e.substr(3,2);break;case"4":t=e.substr(0,4)+"00000"+e[4];break;default:t=e.substr(0,5)+"0000"+e[5]}return t=this.prefix+t,o.prototype.checksum.call(this,t,!0)},n.prototype.calculateData=function(){var o=this,r=o.text,i=o.addOn,a=o.isTextGroup,c=o.prefix,u=o.tableStructure,s=o.label,d=r[6],l=s[6];r=r.substr(0,6);var h=s.substr(0,6),f=u[d],b=[];return b.push({text:c,role:"LEFT_QUIET_ZONE"}),b.push({binary:t.EANBase.NORMAL_GUARD,role:"GUARD"}),a?e.barcode.Utils.str2Array(r).forEach(function(e,o){b.push({binary:t.EncodeTable.encodeByTable(e,f[o]),text:h[o]})}):b.push({binary:t.EncodeTable.encodeByStructure(r,f),text:h}),b.push({binary:n.SPECIAL_GUARD,role:"GUARD"}),i?(b.push({text:l,role:"ADDON_QUIET_ZONE"}),b=b.concat(i.calculateData())):b.push({text:l,role:"NO_ADDON_RIGHT_QUIET_ZONE"}),b},n.DefaultConfig={addOnHeight:"auto",addOnLabelPosition:"top",quietZone:{left:9,addOn:5}},n.SPECIAL_GUARD="010101",n}(t.EANBase);t.UPC_E=o}(t.common||(t.common={}))}(e.barcode||(e.barcode={}))}(wijmo||(wijmo={})),function(e){!function(e){!function(e){var t=function(e){function t(o){return e.call(this,o,"1",t.structure)||this}return __extends(t,e),t.structure=["AAABBB","AABABB","AABBAB","AABBBA","ABAABB","ABBAAB","ABBBAA","ABABAB","ABABBA","ABBABA"],t}(e.UPC_E);e.UPC_E1_Encoder=t}(e.common||(e.common={}))}(e.barcode||(e.barcode={}))}(wijmo||(wijmo={})),function(e){!function(e){!function(e){var t=function(e){function t(o){return e.call(this,o,"0",t.structure)||this}return __extends(t,e),t.structure=["BBBAAA","BBABAA","BBAABA","BBAAAB","BABBAA","BAABBA","BAAABB","BABABA","BABAAB","BAABAB"],t}(e.UPC_E);e.UPC_E0_Encoder=t}(e.common||(e.common={}))}(e.barcode||(e.barcode={}))}(wijmo||(wijmo={})),function(e){!function(t){!function(t){var o=function(o){function n(e){var t=this;e.merge(n.DefaultConfig);var r=(t=o.call(this,e)||this).encodeConfig,i=r.text,a=r.hideExtraChecksum,c=i;return i.length<12&&(i+=t.checksum(i,!0),a||(c=i)),t.label=c,t.text=i,t}return __extends(n,o),n.prototype.validate=function(){var t=this.encodeConfig.text;if(!/^(\d{11}|\d{12})$/.test(t))throw new e.barcode.InvalidTextException(t,"Text should be numbers. The length should be 11 or 12.");if(12===t.length&&this.checksum(t.substr(0,11),!0)!=t[11])throw new e.barcode.InvalidTextException(t,"Check digit is invalid.")},n.prototype.calculateData=function(){var o=this.text,n=this.addOn,r=this.isTextGroup,i=this.label,a=o[0],c=o[11],u=i[11],s=o.substr(1,5),d=o.substr(6,5),l=i.substr(1,5),h=i.substr(6,5),f=[];return f.push({text:a,role:"LEFT_QUIET_ZONE"}),f.push({binary:t.EANBase.NORMAL_GUARD+t.EncodeTable.encodeByTable(a,"A"),role:"GUARD"}),r?e.barcode.Utils.str2Array(s).forEach(function(e,o){f.push({binary:t.EncodeTable.encodeByTable(e,"A"),text:l[o]})}):f.push({binary:t.EncodeTable.encodeByTable(s,"A"),text:l}),f.push({binary:t.EANBase.CENTRE_GUARD,role:"GUARD"}),r?e.barcode.Utils.str2Array(d).forEach(function(e,o){f.push({binary:t.EncodeTable.encodeByTable(e,"C"),text:h[o]})}):f.push({binary:t.EncodeTable.encodeByTable(d,"C"),text:h}),f.push({binary:t.EncodeTable.encodeByTable(c,"C")+t.EANBase.NORMAL_GUARD,role:"GUARD"}),n?(f.push({text:u,role:"ADDON_QUIET_ZONE"}),f=f.concat(n.calculateData())):f.push({text:u,role:"NO_ADDON_RIGHT_QUIET_ZONE"}),f},n.DefaultConfig={addOnHeight:"auto",addOnLabelPosition:"top",quietZone:{right:9,left:9,addOn:5}},n}(t.EANBase);t.UPC_A_Encoder=o}(t.common||(t.common={}))}(e.barcode||(e.barcode={}))}(wijmo||(wijmo={})),function(e){!function(t){!function(t){e.barcode.Barcode.registerEncoder("UPC-A",t.UPC_A_Encoder),e.barcode.Barcode.registerEncoder("UPC-E0",t.UPC_E0_Encoder),e.barcode.Barcode.registerEncoder("UPC-E1",t.UPC_E1_Encoder)}(t.common||(t.common={}))}(e.barcode||(e.barcode={}))}(wijmo||(wijmo={})),function(e){!function(t){!function(t){var o=function(o){function n(e){var t=this;e.merge(n.DefaultConfig);var r=(t=o.call(this,e)||this).encodeConfig,i=r.text,a=r.hideExtraChecksum,c=i;return i.length<13&&(i+=t.checksum(i),a||(c=i)),t.label=c,t.text=i,t}return __extends(n,o),n.prototype.validate=function(){var t=this.encodeConfig.text;if(!/^[1-9](\d{11}|\d{12})$/.test(t))throw new e.barcode.InvalidTextException(t,"Text should be numbers. And it should not start with 0. The length should be 12 or 13.");if(13===t.length&&this.checksum(t.substr(0,12))!=t[12])throw new e.barcode.InvalidTextException(t,"Check digit is invalid.")},n.prototype.calculateData=function(){var o=this.text,r=this.addOn,i=this.isTextGroup,a=this.label,c=o.substr(1,6),u=o.substr(7,6),s=a.substr(1,6),d=a.substr(7,6),l=n.leftStructure[o[0]],h=[];return h.push({text:o[0],role:"LEFT_QUIET_ZONE"}),h.push({binary:t.EANBase.NORMAL_GUARD,role:"GUARD"}),i?e.barcode.Utils.str2Array(c).forEach(function(e,o){h.push({binary:t.EncodeTable.encodeByTable(e,l[o]),text:s[o]})}):h.push({binary:t.EncodeTable.encodeByStructure(c,l),text:s}),h.push({binary:t.EANBase.CENTRE_GUARD,role:"GUARD"}),i?e.barcode.Utils.str2Array(u).forEach(function(e,o){h.push({binary:t.EncodeTable.encodeByTable(e,"C"),text:d[o]})}):h.push({binary:t.EncodeTable.encodeByTable(u,"C"),text:d}),h.push({binary:t.EANBase.NORMAL_GUARD,role:"GUARD"}),r?(h.push({role:"ADDON_QUIET_ZONE"}),h=h.concat(r.calculateData())):h.push({text:">",role:"NO_ADDON_RIGHT_QUIET_ZONE"}),h},n.leftStructure=["AAAAAA","AABABB","AABBAB","AABBBA","ABAABB","ABBAAB","ABBBAA","ABABAB","ABABBA","ABBABA"],n.DefaultConfig={addOnHeight:"auto",addOnLabelPosition:"top",quietZone:{addOn:5}},n}(t.EANBase);t.EAN13Encoder=o}(t.common||(t.common={}))}(e.barcode||(e.barcode={}))}(wijmo||(wijmo={})),function(e){!function(t){!function(t){var o=function(o){function n(e){var t=this;e.merge(n.DefaultConfig);var r=(t=o.call(this,e)||this).encodeConfig,i=r.text,a=r.hideExtraChecksum,c=i;return i.length<8&&(i+=t.checksum(i,!0),a||(c=i)),t.label=c,t.text=i,t}return __extends(n,o),n.prototype.validate=function(){var t=this.encodeConfig.text;if(!/^[0-9](\d{6}|\d{7})$/.test(t))throw new e.barcode.InvalidTextException(t,"Text should be numbers. The length should be 7 or 8.");if(8===t.length&&this.checksum(t.substr(0,7),!0)!=t[7])throw new e.barcode.InvalidTextException(t,"Check digit is invalid.")},n.prototype.calculateData=function(){var o=this.text,n=this.label,r=this.isTextGroup,i=o.substr(0,4),a=o.substr(4,4),c=n.substr(0,4),u=n.substr(4,4),s=[];return s.push({text:"<",role:"LEFT_QUIET_ZONE"}),s.push({binary:t.EANBase.NORMAL_GUARD,role:"GUARD"}),r?e.barcode.Utils.str2Array(i).forEach(function(e,o){s.push({binary:t.EncodeTable.encodeByTable(e,"A"),text:c[o]})}):s.push({binary:t.EncodeTable.encodeByTable(i,"A"),text:c}),s.push({binary:t.EANBase.CENTRE_GUARD,role:"GUARD"}),r?e.barcode.Utils.str2Array(a).forEach(function(e,o){s.push({binary:t.EncodeTable.encodeByTable(e,"C"),text:u[o]})}):s.push({binary:t.EncodeTable.encodeByTable(a,"C"),text:u}),s.push({binary:t.EANBase.NORMAL_GUARD,role:"GUARD"}),s.push({text:">",role:"RIGHT_QUIET_ZONE"}),s},n.DefaultConfig={quietZone:{left:7}},n}(t.EANBase);t.EAN8Encoder=o}(t.common||(t.common={}))}(e.barcode||(e.barcode={}))}(wijmo||(wijmo={})),function(e){!function(t){!function(t){e.barcode.Barcode.registerEncoder("EAN8",t.EAN8Encoder),e.barcode.Barcode.registerEncoder("EAN13",t.EAN13Encoder)}(t.common||(t.common={}))}(e.barcode||(e.barcode={}))}(wijmo||(wijmo={})),function(e){!function(t){!function(t){var o=/^([A-D]?)([0-9\-\$\:\.\+\/]+)([A-D]?)$/,n=function(t){function n(e){var o=this;e.merge(n.DefaultConfig);var r=o=t.call(this,e)||this,i=r.config,a=i.checkDigit,c=i.nwRatio,u=r.encodeConfig,s=u.text,d=u.hideExtraChecksum,l=o.getTextEntity(s),h=l.originStartPattern,f=l.startPattern,b=l.content,p=l.originStopPattern,m=l.stopPattern;if(o.label=s,a){var g=o.checksum(b);o.text=f+b+g+m,d||(o.label=h+b+g+p)}else o.text=f+b+m;return o.nwRatio=+c,o}return __extends(n,t),n.prototype.validate=function(){var t=this.config.nwRatio,n=this.encodeConfig.text;if(!o.test(n))throw new e.barcode.InvalidTextException(n);if(2!=t&&3!=t)throw new e.barcode.InvalidOptionsException({nwRatio:t},"NwRatio is 2 or 3")},n.prototype.getTextEntity=function(t){var n=o.exec(t);if(!n)throw new e.barcode.InvalidTextException(t);var r=n[1],i=r||"A",a=n[2],c=n[3];return{originStartPattern:r,startPattern:i,content:a,originStopPattern:c,stopPattern:c||"B"}},n.prototype.encode=function(t){var o=this.nwRatio,n="",r=e.barcode.Utils.strRepeat("1",o),i=e.barcode.Utils.strRepeat("0",o);return e.barcode.Utils.str2Array(t).forEach(function(t,o){e.barcode.Utils.isEven(o)?n+="1"===t?r:"1":n+="1"===t?i:"0"}),n},n.prototype.calculateData=function(){var t=this,o=this.text,r="";return e.barcode.Utils.sliceString(o,1,function(e){r=r+t.encode(n.TABLE[e])+"0"}),r=r.substr(0,r.length-1)},n.prototype.checksum=function(t){var o=e.barcode.Utils.str2Array(t).filter(function(t){return e.barcode.Utils.isInteger(+t)}).reverse().reduce(function(t,o,n){var r=e.barcode.Utils.toNumber(o);if(e.barcode.Utils.isEven(n)){var i=2*r;t+=i>9?i-9:i}else t+=r;return t},0)%10;return 0!==o&&(o=10-o),o},n.DefaultConfig={checkDigit:!1,quietZone:{right:10,left:10},nwRatio:3},n.TABLE={0:"0000011",1:"0000110",2:"0001001",3:"1100000",4:"0010010",5:"1000010",6:"0100001",7:"0100100",8:"0110000",9:"1001000","-":"0001100",$:"0011000",":":"1000101","/":"1010001",".":"1010100","+":"0010101",A:"0011010",B:"0101001",C:"0001011",D:"0001110"},n}(e.barcode.OneDimensionalBarcode);t.CodabarEncoder=n}(t.common||(t.common={}))}(e.barcode||(e.barcode={}))}(wijmo||(wijmo={})),function(e){!function(t){!function(t){e.barcode.Barcode.registerEncoder("Codabar",t.CodabarEncoder)}(t.common||(t.common={}))}(e.barcode||(e.barcode={}))}(wijmo||(wijmo={})),function(e){!function(e){!function(e){!function(e){e[e.Utf8=0]="Utf8",e[e.ShiftJis=1]="ShiftJis"}(e.QrCodeCharset||(e.QrCodeCharset={})),function(e){e[e.Low=0]="Low",e[e.Medium=1]="Medium",e[e.Quartile=2]="Quartile",e[e.High=3]="High"}(e.QrCodeCorrectionLevel||(e.QrCodeCorrectionLevel={})),function(e){e[e.Model1=0]="Model1",e[e.Model2=1]="Model2"}(e.QrCodeModel||(e.QrCodeModel={})),function(e){e[e.Auto=0]="Auto",e[e.A=1]="A",e[e.B=2]="B",e[e.C=3]="C"}(e.Code128CodeSet||(e.Code128CodeSet={}))}(e.common||(e.common={}))}(e.barcode||(e.barcode={}))}(wijmo||(wijmo={})),function(e){!function(t){!function(t){var o=function(){function o(){}return o.stringToEnum=function(e){switch(e.toString()){case"1":return t.QrCodeModel.Model1;case"2":return t.QrCodeModel.Model2}throw"Unknown QRCode internal model '"+e+"'"},o.enumToString=function(o){var n=t.QrCodeModel[e.asEnum(o,t.QrCodeModel)];return n.charAt(n.length-1)},o}();t._QrCodeModelConvertor=o;var n=function(){function o(){}return o.stringToEnum=function(e){switch(e){case"UTF-8":return t.QrCodeCharset.Utf8;case"Shift_JIS":return t.QrCodeCharset.ShiftJis}throw"Unknown Barcode internal charset '"+e+"'"},o.enumToString=function(o){var n;switch(e.asEnum(o,t.QrCodeCharset)){case t.QrCodeCharset.Utf8:n="UTF-8";break;case t.QrCodeCharset.ShiftJis:n="Shift_JIS"}return n},o}();t._CharsetTypeConvertor=n;var r=function(){function o(){}return o.stringToEnum=function(e){switch(e){case"L":return t.QrCodeCorrectionLevel.Low;case"M":return t.QrCodeCorrectionLevel.Medium;case"Q":return t.QrCodeCorrectionLevel.Quartile;case"H":return t.QrCodeCorrectionLevel.High}throw"Unknown barcode internal errorCorrectionLevel '"+e+"'"},o.enumToString=function(o){return t.QrCodeCorrectionLevel[e.asEnum(o,t.QrCodeCorrectionLevel)].charAt(0)},o}();t._CorrectionLevelConvertor=r;var i=function(){function o(){}return o.stringToEnum=function(e){switch(e){case"auto":return t.Code128CodeSet.Auto;case"A":return t.Code128CodeSet.A;case"B":return t.Code128CodeSet.B;case"C":return t.Code128CodeSet.C}throw"Unknown barcode internal codeSet '"+e+"'"},o.enumToString=function(o){var n,r=e.asEnum(o,t.Code128CodeSet);switch(r){case t.Code128CodeSet.Auto:n="auto";break;case t.Code128CodeSet.A:case t.Code128CodeSet.B:case t.Code128CodeSet.C:n=t.Code128CodeSet[r]}return n},o}();t._CodeSetTypeConvertor=i}(t.common||(t.common={}))}(e.barcode||(e.barcode={}))}(wijmo||(wijmo={})),function(e){!function(t){!function(t){var o=function(t){function o(o,n){var r=t.call(this,o)||this;return e.addClass(r.hostElement,"wj-barcode-codabar"),r._setAw(!0),r.initialize(n),r}return __extends(o,t),Object.defineProperty(o.prototype,"autoWidth",{get:function(){return this._getAw()},set:function(e){this._setAw(e)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"autoWidthZoom",{get:function(){return this._getWzoom()},set:function(e){this._setWzoom(e)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"showLabel",{get:function(){return this._getProp("showLabel")},set:function(e){this._setProp("showLabel",e)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"checkDigit",{get:function(){return this._getProp("checkDigit")},set:function(e){this._setProp("checkDigit",e)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"labelPosition",{get:function(){return e.barcode._LabelPositionConvertor.stringToEnum(this._getProp("labelPosition"))},set:function(t){this._setProp("labelPosition",e.barcode._LabelPositionConvertor.enumToString(t))},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"nwRatio",{get:function(){return e.barcode._NarrowWideRatioConvertor.stringToEnum(this._getProp("nwRatio"))},set:function(t){this._setProp("nwRatio",e.barcode._NarrowWideRatioConvertor.enumToString(t))},enumerable:!0,configurable:!0}),o.type="Codabar",o}(e.barcode.BarcodeBase);t.Codabar=o;var n=function(t){function o(o,n){var r=t.call(this,o,n)||this;return e.addClass(r.hostElement,"wj-barcode-ean"),r}return __extends(o,t),Object.defineProperty(o.prototype,"showLabel",{get:function(){return this._getProp("showLabel")},set:function(e){this._setProp("showLabel",e)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"labelPosition",{get:function(){return e.barcode._LabelPositionConvertor.stringToEnum(this._getProp("labelPosition"))},set:function(t){this._setProp("labelPosition",e.barcode._LabelPositionConvertor.enumToString(t))},enumerable:!0,configurable:!0}),o}(e.barcode.BarcodeBase);t.EanBase=n;var r=function(t){function o(o,n){var r=t.call(this,o,n)||this;return e.addClass(r.hostElement,"wj-barcode-ean8"),r}return __extends(o,t),o.type="EAN8",o}(n);t.Ean8=r;var i=function(t){function o(o,n){var r=t.call(this,o,n)||this;return e.addClass(r.hostElement,"wj-barcode-ean13"),r}return __extends(o,t),Object.defineProperty(o.prototype,"addOn",{get:function(){return this._getProp("addOn")},set:function(e){this._setProp("addOn",e)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"addOnHeight",{get:function(){return this._getProp("addOnHeight")},set:function(e){this._setProp("addOnHeight",e)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"addOnLabelPosition",{get:function(){return e.barcode._LabelPositionConvertor.stringToEnum(this._getProp("addOnLabelPosition"))},set:function(t){this._setProp("addOnLabelPosition",e.barcode._LabelPositionConvertor.enumToString(t))},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"quietZone",{get:function(){return this._getProp("quietZone")},set:function(e){this._setProp("quietZone",e)},enumerable:!0,configurable:!0}),o.type="EAN13",o}(n);t.Ean13=i;var a=function(t){function o(o,n){var r=t.call(this,o)||this;return e.addClass(r.hostElement,"wj-barcode-code39"),r._setAw(!0),r.initialize(n),r}return __extends(o,t),Object.defineProperty(o.prototype,"autoWidth",{get:function(){return this._getAw()},set:function(e){this._setAw(e)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"autoWidthZoom",{get:function(){return this._getWzoom()},set:function(e){this._setWzoom(e)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"showLabel",{get:function(){return this._getProp("showLabel")},set:function(e){this._setProp("showLabel",e)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"checkDigit",{get:function(){return this._getProp("checkDigit")},set:function(e){this._setProp("checkDigit",e)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"fullAscii",{get:function(){return this._getProp("fullASCII")},set:function(e){this._setProp("fullASCII",e)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"labelPosition",{get:function(){return e.barcode._LabelPositionConvertor.stringToEnum(this._getProp("labelPosition"))},set:function(t){this._setProp("labelPosition",e.barcode._LabelPositionConvertor.enumToString(t))},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"nwRatio",{get:function(){return e.barcode._NarrowWideRatioConvertor.stringToEnum(this._getProp("nwRatio"))},set:function(t){this._setProp("nwRatio",e.barcode._NarrowWideRatioConvertor.enumToString(t))},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"labelWithStartAndStopCharacter",{get:function(){return this._getProp("labelWithStartAndStopCharacter")},set:function(e){this._setProp("labelWithStartAndStopCharacter",e)},enumerable:!0,configurable:!0}),o.type="Code39",o}(e.barcode.BarcodeBase);t.Code39=a;var c=function(o){function n(t,n){var r=o.call(this,t)||this;return e.addClass(r.hostElement,"wj-barcode-code128"),r._setAw(!0),r.initialize(n),r}return __extends(n,o),Object.defineProperty(n.prototype,"autoWidth",{get:function(){return this._getAw()},set:function(e){this._setAw(e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"autoWidthZoom",{get:function(){return this._getWzoom()},set:function(e){this._setWzoom(e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"showLabel",{get:function(){return this._getProp("showLabel")},set:function(e){this._setProp("showLabel",e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"codeSet",{get:function(){return t._CodeSetTypeConvertor.stringToEnum(this._getProp("codeSet"))},set:function(e){this._setProp("codeSet",t._CodeSetTypeConvertor.enumToString(e))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"labelPosition",{get:function(){return e.barcode._LabelPositionConvertor.stringToEnum(this._getProp("labelPosition"))},set:function(t){this._setProp("labelPosition",e.barcode._LabelPositionConvertor.enumToString(t))},enumerable:!0,configurable:!0}),n.type="Code128",n}(e.barcode.BarcodeBase);t.Code128=c;var u=function(t){function o(o,n){var r=t.call(this,o)||this;return e.addClass(r.hostElement,"wj-barcode-gs1_128"),r._setAw(!0),r.initialize(n),r}return __extends(o,t),Object.defineProperty(o.prototype,"autoWidth",{get:function(){return this._getAw()},set:function(e){this._setAw(e)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"autoWidthZoom",{get:function(){return this._getWzoom()},set:function(e){this._setWzoom(e)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"showLabel",{get:function(){return this._getProp("showLabel")},set:function(e){this._setProp("showLabel",e)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"labelPosition",{get:function(){return e.barcode._LabelPositionConvertor.stringToEnum(this._getProp("labelPosition"))},set:function(t){this._setProp("labelPosition",e.barcode._LabelPositionConvertor.enumToString(t))},enumerable:!0,configurable:!0}),o.type="GS1_128",o}(e.barcode.BarcodeBase);t.Gs1_128=u;var s=function(t){function o(o,n){var r=t.call(this,o,n)||this;return e.addClass(r.hostElement,"wj-barcode-upc"),r}return __extends(o,t),Object.defineProperty(o.prototype,"showLabel",{get:function(){return this._getProp("showLabel")},set:function(e){this._setProp("showLabel",e)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"addOn",{get:function(){return this._getProp("addOn")},set:function(e){this._setProp("addOn",e)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"labelPosition",{get:function(){return e.barcode._LabelPositionConvertor.stringToEnum(this._getProp("labelPosition"))},set:function(t){this._setProp("labelPosition",e.barcode._LabelPositionConvertor.enumToString(t))},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"addOnHeight",{get:function(){return this._getProp("addOnHeight")},set:function(e){this._setProp("addOnHeight",e)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"addOnLabelPosition",{get:function(){return e.barcode._LabelPositionConvertor.stringToEnum(this._getProp("addOnLabelPosition"))},set:function(t){this._setProp("addOnLabelPosition",e.barcode._LabelPositionConvertor.enumToString(t))},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"quietZone",{get:function(){return this._getProp("quietZone")},set:function(e){this._setProp("quietZone",e)},enumerable:!0,configurable:!0}),o}(e.barcode.BarcodeBase);t.UpcBase=s;var d=function(t){function o(o,n){var r=t.call(this,o,n)||this;return e.addClass(r.hostElement,"wj-barcode-upca"),r}return __extends(o,t),o.type="UPC-A",o}(s);t.UpcA=d;var l=function(t){function o(o,n){var r=t.call(this,o,n)||this;return e.addClass(r.hostElement,"wj-barcode-upce0"),r}return __extends(o,t),o.type="UPC-E0",o}(s);t.UpcE0=l;var h=function(t){function o(o,n){var r=t.call(this,o,n)||this;return e.addClass(r.hostElement,"wj-barcode-upce1"),r}return __extends(o,t),o.type="UPC-E1",o}(s);t.UpcE1=h;var f=function(o){function n(t,n){var r=o.call(this,t,n)||this;return e.addClass(r.hostElement,"wj-barcode-qrcode"),r}return __extends(n,o),Object.defineProperty(n.prototype,"charCode",{get:function(){return this._getProp("charCode")},set:function(e){this._setProp("charCode",e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"charset",{get:function(){return t._CharsetTypeConvertor.stringToEnum(this._getProp("charset"))},set:function(e){this._setProp("charset",t._CharsetTypeConvertor.enumToString(e))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"model",{get:function(){return t._QrCodeModelConvertor.stringToEnum(this._getProp("model"))},set:function(e){this._setProp("model",t._QrCodeModelConvertor.enumToString(e))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"version",{get:function(){var e=this._getProp("version");return"auto"===e?null:e},set:function(e){this._setProp("version",null==e?"auto":e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"errorCorrectionLevel",{get:function(){return t._CorrectionLevelConvertor.stringToEnum(this._getProp("errorCorrectionLevel"))},set:function(e){this._setProp("errorCorrectionLevel",t._CorrectionLevelConvertor.enumToString(e))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"mask",{get:function(){var e=this._getProp("mask");return"auto"===e?null:e},set:function(e){this._setProp("mask",null==e?"auto":e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"connection",{get:function(){return this._getProp("connection")},set:function(e){this._setProp("connection",e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"connectionIndex",{get:function(){return this._getProp("connectionNo")},set:function(e){this._setProp("connectionNo",e)},enumerable:!0,configurable:!0}),n.type="QRCode",n}(e.barcode.BarcodeBase);t.QrCode=f}(t.common||(t.common={}))}(e.barcode||(e.barcode={}))}(wijmo||(wijmo={})),function(e){!function(t){t.common||(t.common={}),e._registerModule("wijmo.barcode.common",e.barcode.common)}(e.barcode||(e.barcode={}))}(wijmo||(wijmo={}));
var wijmo,__extends=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}();!function(t){!function(e){!function(e){var n=function(){function e(t){this.bitBuffer=t}return e.isISO646Only=function(t){return e.ISO646.indexOf(t)>-1},e.prototype.encode=function(n){var o=e.Table[n];if(o)this.bitBuffer.putBits(o);else{var r=n.charCodeAt(0);if(r>=48&&r<=57)this.bitBuffer.put(r-43,5);else if(n>="A"&&n<="Z")this.bitBuffer.put(r-1,7);else{if(!(n>="a"&&n<="z"))throw new t.barcode.InvalidCharacterException(n);this.bitBuffer.put(r-7,7)}}},e.prototype.FNC1NumericLatch=function(){this.bitBuffer.putBits(e.Table.FNC1NumericLatch)},e.prototype.NumericLatch=function(){this.bitBuffer.putBits(e.Table.NumericLatch)},e.prototype.AlphanumericLatch=function(){this.bitBuffer.putBits(e.Table.AlphanumericLatch)},e.Table={"!":"11101000",'"':"11101001","%":"11101010","&":"11101011","'":"11101100","(":"11101101",")":"11101110","*":"11101111","+":"11110000",",":"11110001","-":"11110010",".":"11110011","/":"11110100",":":"11110101",";":"11110110","<":"11110111","=":"11111000",">":"11111001","?":"11111010",_:"11111011"," ":"11111100",FNC1NumericLatch:"01111",NumericLatch:"000",AlphanumericLatch:"00100"},e.ISO646="abcdefghijklmnopqrstuvwxyz!\"%&'()+:;<=>?_ ",e}();e.ISO646Encoder=n}(e.composite||(e.composite={}))}(t.barcode||(t.barcode={}))}(wijmo||(wijmo={})),function(t){!function(e){!function(e){var n=function(){function e(t){this.bitBuffer=t}return e.isUpperCase=function(t){return t>="A"&&t<="Z"},e.isLowerCase=function(t){return t>="a"&&t<="z"},e.prototype.encode=function(n){var o=e.Table[n];if(o)this.bitBuffer.putBits(o);else{var r=n.charCodeAt(0);if(r>=48&&r<=57)this.bitBuffer.put(r-43,5);else{if(!e.isUpperCase(n))throw new t.barcode.InvalidCharacterException(n);this.bitBuffer.put(r-33,6)}}},e.prototype.FNC1NumericLatch=function(){this.bitBuffer.putBits(e.Table.FNC1NumericLatch)},e.prototype.NumericLatch=function(){this.bitBuffer.putBits(e.Table.NumericLatch)},e.prototype.ISO646Latch=function(){this.bitBuffer.putBits(e.Table.ISO646Latch)},e.Table={"*":"111010",",":"111011","-":"111100",".":"111101","/":"111110",FNC1NumericLatch:"01111",NumericLatch:"000",ISO646Latch:"00100"},e}();e.AlphanumericEncoder=n}(e.composite||(e.composite={}))}(t.barcode||(t.barcode={}))}(wijmo||(wijmo={})),function(t){!function(e){!function(e){var n=function(){function e(t){this.bitBuffer=t}return e.isNumericOrFNC1=function(e){var n=e.charCodeAt(0);return e===t.barcode.Constants.FNC1||n>=48&&n<=57},e.isNumeric=function(t){var e=t.charCodeAt(0);return e>=48&&e<=57},e.prototype.encode=function(e,n){var o=11*(e===t.barcode.Constants.FNC1?10:e.charCodeAt(0)-48)+(n===t.barcode.Constants.FNC1?10:n.charCodeAt(0)-48)+8;this.bitBuffer.put(o,7)},e.prototype.encodeOne=function(e){var n;n=e===t.barcode.Constants.FNC1?10:e.charCodeAt(0)-48+1,this.bitBuffer.put(n,4)},e.prototype.AlphanumericLatch=function(){this.bitBuffer.put(0,4)},e}();e.NumericEncoder=n}(e.composite||(e.composite={}))}(t.barcode||(t.barcode={}))}(wijmo||(wijmo={})),function(t){!function(e){!function(e){var n=function(){function n(t,e){void 0===e&&(e=!1),this.text="",this.mode=n.EncodeMod.Numeric,this.bitBuffer=t,this.needExtraPadding=e}return n.prototype.encodeGeneralData=function(o){if(o){for(var r=this.bitBuffer,i=n.EncodeMod.Numeric,a=o.length,s=0;a>0;a=o.length-s){var c=o[s];switch(i){case n.EncodeMod.Numeric:var u=new e.NumericEncoder(r),d=r.length;1===a?e.NumericEncoder.isNumeric(c)?(d>24&&d%12<=8&&d%12>5?u.encodeOne(c):u.encode(c,t.barcode.Constants.FNC1),s++):(u.AlphanumericLatch(),i=n.EncodeMod.Alphanumeric):e.NumericEncoder.isNumericOrFNC1(c)&&e.NumericEncoder.isNumericOrFNC1(o[s+1])&&(c!==t.barcode.Constants.FNC1||o[s+1]!==t.barcode.Constants.FNC1)?(u.encode(c,o[s+1]),s+=2):(u.AlphanumericLatch(),i=n.EncodeMod.Alphanumeric);break;case n.EncodeMod.Alphanumeric:u=new e.AlphanumericEncoder(r);if(c===t.barcode.Constants.FNC1)u.FNC1NumericLatch(),i=n.EncodeMod.Numeric,s++;else if(e.NumericEncoder.isNumeric(c)){for(var h=s+1;h<o.length&&e.NumericEncoder.isNumeric(o[h]);h++);h-s>=6||h-s>=4&&h===o.length?(u.NumericLatch(),i=n.EncodeMod.Numeric):(u.encode(c),s++)}else e.ISO646Encoder.isISO646Only(c)?(u.ISO646Latch(),i=n.EncodeMod.ISO646):(u.encode(c),s++);break;case n.EncodeMod.ISO646:u=new e.ISO646Encoder(r);if(e.NumericEncoder.isNumericOrFNC1(c)){for(h=s+1;h<o.length&&e.NumericEncoder.isNumericOrFNC1(o[h]);h++);if(h-s>=4){for(;h<o.length&&!e.ISO646Encoder.isISO646Only(o[h]);h++);if(h==o.length||h-s>10){u.NumericLatch(),i=n.EncodeMod.Numeric;break}}}else{for(h=s;h<o.length&&!e.ISO646Encoder.isISO646Only(o[h]);h++);if(h-s>10){u.AlphanumericLatch(),i=n.EncodeMod.Alphanumeric;break}}c===t.barcode.Constants.FNC1?(u.FNC1NumericLatch(),i=n.EncodeMod.Numeric,s++):(u.encode(c),s++)}}this.mode=i}},n.prototype.padTo=function(t){var e=t-this.bitBuffer.length;this._pad(e)},n.prototype._pad=function(t){for(var e=this.bitBuffer;t>0;)this.mode===n.EncodeMod.Numeric?(this.mode=n.EncodeMod.Alphanumeric,t>=4?(e.put(0,4),t-=4):(e.put(0,t),t=0)):t>=5?(e.put(4,5),t-=5):(4===t?e.put(2,t):3===t?e.put(1,t):e.put(0,t),t=0)},n.prototype.encode=function(t){void 0===t&&(t="");var e,n=this.bitBuffer,o=this.needExtraPadding;this.encodeGeneralData(t);var r=~~((n.length+11)/12);e=12*(r=r<3?3:r)-n.length,o&&(e+=12),this._pad(e)},n.EncodeMod={Numeric:"Numeric",Alphanumeric:"Alphanumeric",ISO646:"ISO646"},n}();e.GS1GeneralPurposeDataEncodation=n}(e.composite||(e.composite={}))}(t.barcode||(t.barcode={}))}(wijmo||(wijmo={})),function(t){!function(e){!function(e){var n=new t.barcode.MatrixBuilder(69,7).toMatrix();!function(){var e,o,r,i=t.barcode.Utils.fillArray(new Array(7),0);for(i[6]=1,e=0;e<7;e++)n[0][e]=i[e];for(o=1;o<69;o++){for(r=0,e=6;e>=1;e--)r=2*i[e]+~~(r/928),n[o][e]=i[e]=r%928;n[o][0]=i[0]=2*i[0]+~~(r/928)}}(),e.encode928=function(t,e,o){var r,i,a,s,c,u,d,h;for(c=d=a=0;a<o;a+=69,c+=7){for(d+=u=1+~~((s=Math.min(o-a,69))/10),r=0;r<u;r++)e[c+r]=0;for(r=0;r<s;r++)if(0!=(t[~~((h=a+s-r-1)/16)]&32768>>h%16))for(i=0;i<u;i++)e[c+i]+=n[r][i+7-u];for(r=u-1;r>0;r--)e[c+r-1]+=~~(e[c+r]/928),e[c+r]%=928}return d}}(e.composite||(e.composite={}))}(t.barcode||(t.barcode={}))}(wijmo||(wijmo={})),function(t){!function(e){!function(e){function n(t,e){for(var n=[],o=0,r=t;o<e;)r>52&&(r%=52),n.push(r),o++,r++;return n}function o(t,e){for(var o=0,r=t.length;o<r;o++){var i=t[o],a=i[0],s=i[1],c=i[2],u=i[3],d=i[4],h=i[5],l=i[6],p=s*a;if(e(i={rows:s,cols:a,total:p,ecCws:c,nonEcCw:p-c,bits:u})){i.rowAssignment={left:n(d,s),right:n(h,s),center:l?n(l,s):null};for(var f=[],m=0;m<=s;){var g=(d+m-1)%3;f.push(g),m++}return i.cluster=f,i}}return null}e.findVersionTable_CCA=o,e.getVersionVariant_CCA=function(t,e){return o([[2,5,4,59,39,19],[2,6,4,78,1,33],[2,7,5,88,32,12],[2,8,5,108,8,40],[2,9,6,118,14,46],[2,10,6,138,43,23],[2,12,7,167,20,52],[3,4,4,78,11,23,43],[3,5,5,98,1,13,33],[3,6,6,118,3,17,37],[3,7,7,138,15,27,47],[3,8,7,167,21,33,1],[4,3,4,78,40,52,20],[4,4,5,108,43,3,23],[4,5,6,138,46,6,26],[4,6,7,167,34,46,14],[4,7,8,197,29,41,9]],function(n){return n.cols===t&&n.bits>=e})};var r="BDHIJKLNPQRSTVWZ";e.getSupportedUppercaseAlphabetic=function(e){var n=r.indexOf(e);if(-1===n)return null;var o=t.barcode.Utils.convertRadix(n);return t.barcode.Utils.strPadStart(o,4,"0")}}(e.composite||(e.composite={}))}(t.barcode||(t.barcode={}))}(wijmo||(wijmo={})),function(t){!function(e){!function(e){var n=e.GS1GeneralPurposeDataEncodation.EncodeMod,o=function(o){function r(){return null!==o&&o.apply(this,arguments)||this}return __extends(r,o),r.prototype.encodeGeneralData=function(o,r){if(o){for(var i=this.bitBuffer,a=n.Numeric,s=o.length,c=0;s>0;s=o.length-c){var u=o[c];switch(a){case n.Numeric:var d=new e.NumericEncoder(i),h=u[0].charCodeAt(0);if(1===s)if(e.NumericEncoder.isNumeric(u)){var l=e.getVersionVariant_CCA(r,i.length);if(!l)throw new t.barcode.TextTooLongException;var p=l.bits-i.length;p>=4&&p<=6?(d.encodeOne(u),i.put(0,p-4)):i.put(11*(h-48)+10+8,7),c++}else d.AlphanumericLatch(),a=n.Alphanumeric;else e.NumericEncoder.isNumericOrFNC1(u)&&e.NumericEncoder.isNumericOrFNC1(o[c+1])&&(u!==t.barcode.Constants.FNC1||o[c+1]!==t.barcode.Constants.FNC1)?(d.encode(u,o[c+1]),c+=2):(d.AlphanumericLatch(),a=n.Alphanumeric);break;case n.Alphanumeric:d=new e.AlphanumericEncoder(i);if(u===t.barcode.Constants.FNC1)d.FNC1NumericLatch(),a=n.Numeric,c++;else if(e.NumericEncoder.isNumeric(u)){for(var f=c+1;f<o.length&&e.NumericEncoder.isNumericOrFNC1(o[f]);f++);f-c>=6||f-c>=4&&f===o.length?(d.NumericLatch(),a=n.Numeric):(d.encode(u),c++)}else e.ISO646Encoder.isISO646Only(u)?(d.ISO646Latch(),a=n.ISO646):(d.encode(u),c++);break;case n.ISO646:d=new e.ISO646Encoder(i);if(e.NumericEncoder.isNumericOrFNC1(u)){for(f=c+1;f<o.length&&e.NumericEncoder.isNumericOrFNC1(o[f]);f++);if(f-c>=4){for(;f<o.length&&!e.ISO646Encoder.isISO646Only(o[f]);f++);if(f==o.length||f-c>10){d.NumericLatch(),a=n.Numeric;break}}}else{for(f=c;f<o.length&&!e.ISO646Encoder.isISO646Only(o[f]);f++);if(f-c>10){d.AlphanumericLatch(),a=n.Alphanumeric;break}}u===t.barcode.Constants.FNC1?(d.FNC1NumericLatch(),a=n.Numeric,c++):(d.encode(u),c++)}}this.mode=a}},r}(e.GS1GeneralPurposeDataEncodation);e.GeneralPurposeDataEncodation=o}(e.composite||(e.composite={}))}(t.barcode||(t.barcode={}))}(wijmo||(wijmo={})),function(t){!function(e){!function(e){var n=[[27,917],[522,568,723,809],[237,308,436,284,646,653,428,379],[274,562,232,755,599,524,801,132,295,116,442,428,295,42,176,65],[361,575,922,525,176,586,640,321,536,742,677,742,687,284,193,517,273,494,263,147,593,800,571,320,803,133,231,390,685,330,63,410],[539,422,6,93,862,771,453,106,610,287,107,505,733,877,381,612,723,476,462,172,430,609,858,822,543,376,511,400,672,762,283,184,440,35,519,31,460,594,225,535,517,352,605,158,651,201,488,502,648,733,717,83,404,97,280,771,840,629,4,381,843,623,264,543],[521,310,864,547,858,580,296,379,53,779,897,444,400,925,749,415,822,93,217,208,928,244,583,620,246,148,447,631,292,908,490,704,516,258,457,907,594,723,674,292,272,96,684,432,686,606,860,569,193,219,129,186,236,287,192,775,278,173,40,379,712,463,646,776,171,491,297,763,156,732,95,270,447,90,507,48,228,821,808,898,784,663,627,378,382,262,380,602,754,336,89,614,87,432,670,616,157,374,242,726,600,269,375,898,845,454,354,130,814,587,804,34,211,330,539,297,827,865,37,517,834,315,550,86,801,4,108,539],[524,894,75,766,882,857,74,204,82,586,708,250,905,786,138,720,858,194,311,913,275,190,375,850,438,733,194,280,201,280,828,757,710,814,919,89,68,569,11,204,796,605,540,913,801,700,799,137,439,418,592,668,353,859,370,694,325,240,216,257,284,549,209,884,315,70,329,793,490,274,877,162,749,812,684,461,334,376,849,521,307,291,803,712,19,358,399,908,103,511,51,8,517,225,289,470,637,731,66,255,917,269,463,830,730,433,848,585,136,538,906,90,2,290,743,199,655,903,329,49,802,580,355,588,188,462,10,134,628,320,479,130,739,71,263,318,374,601,192,605,142,673,687,234,722,384,177,752,607,640,455,193,689,707,805,641,48,60,732,621,895,544,261,852,655,309,697,755,756,60,231,773,434,421,726,528,503,118,49,795,32,144,500,238,836,394,280,566,319,9,647,550,73,914,342,126,32,681,331,792,620,60,609,441,180,791,893,754,605,383,228,749,760,213,54,297,134,54,834,299,922,191,910,532,609,829,189,20,167,29,872,449,83,402,41,656,505,579,481,173,404,251,688,95,497,555,642,543,307,159,924,558,648,55,497,10],[352,77,373,504,35,599,428,207,409,574,118,498,285,380,350,492,197,265,920,155,914,299,229,643,294,871,306,88,87,193,352,781,846,75,327,520,435,543,203,666,249,346,781,621,640,268,794,534,539,781,408,390,644,102,476,499,290,632,545,37,858,916,552,41,542,289,122,272,383,800,485,98,752,472,761,107,784,860,658,741,290,204,681,407,855,85,99,62,482,180,20,297,451,593,913,142,808,684,287,536,561,76,653,899,729,567,744,390,513,192,516,258,240,518,794,395,768,848,51,610,384,168,190,826,328,596,786,303,570,381,415,641,156,237,151,429,531,207,676,710,89,168,304,402,40,708,575,162,864,229,65,861,841,512,164,477,221,92,358,785,288,357,850,836,827,736,707,94,8,494,114,521,2,499,851,543,152,729,771,95,248,361,578,323,856,797,289,51,684,466,533,820,669,45,902,452,167,342,244,173,35,463,651,51,699,591,452,578,37,124,298,332,552,43,427,119,662,777,475,850,764,364,578,911,283,711,472,420,245,288,594,394,511,327,589,777,699,688,43,408,842,383,721,521,560,644,714,559,62,145,873,663,713,159,672,729,624,59,193,417,158,209,563,564,343,693,109,608,563,365,181,772,677,310,248,353,708,410,579,870,617,841,632,860,289,536,35,777,618,586,424,833,77,597,346,269,757,632,695,751,331,247,184,45,787,680,18,66,407,369,54,492,228,613,830,922,437,519,644,905,789,420,305,441,207,300,892,827,141,537,381,662,513,56,252,341,242,797,838,837,720,224,307,631,61,87,560,310,756,665,397,808,851,309,473,795,378,31,647,915,459,806,590,731,425,216,548,249,321,881,699,535,673,782,210,815,905,303,843,922,281,73,469,791,660,162,498,308,155,422,907,817,187,62,16,425,535,336,286,437,375,273,610,296,183,923,116,667,751,353,62,366,691,379,687,842,37,357,720,742,330,5,39,923,311,424,242,749,321,54,669,316,342,299,534,105,667,488,640,672,576,540,316,486,721,610,46,656,447,171,616,464,190,531,297,321,762,752,533,175,134,14,381,433,717,45,111,20,596,284,736,138,646,411,877,669,141,919,45,780,407,164,332,899,165,726,600,325,498,655,357,752,768,223,849,647,63,310,863,251,366,304,282,738,675,410,389,244,31,121,303,263]],o=[[890,351,200],[809,723,568,522],[566,155,460,919,427],[766,17,803,19,285,861],[437,691,784,597,537,925,76],[379,428,653,646,284,436,308,237],[205,441,501,362,289,257,622,527,567],[612,266,691,818,841,826,244,64,457,377],[904,602,327,68,15,213,825,708,565,45,462],[851,69,7,388,127,347,684,646,201,757,864,597],[692,394,184,204,678,592,322,583,606,384,342,713,764],[215,105,833,691,915,478,354,274,286,241,187,154,677,669],[642,868,147,575,550,74,80,5,230,664,904,109,476,829,460],[65,176,42,295,428,442,116,295,132,801,524,599,755,232,562,274],[573,760,756,233,321,560,202,312,297,120,739,275,855,37,624,315,577,279],[568,259,193,165,347,691,310,610,624,693,763,716,422,553,681,425,129,534,781,519,108],[169,764,847,131,858,325,454,441,245,699,893,446,830,159,121,269,608,331,760,477,93,788,544,887,284,443],[410,63,330,685,390,231,133,803,320,571,800,593,147,263,494,273,517,193,284,687,742,677,742,536,321,640,586,176,525,922,575,361],[518,117,125,231,289,554,771,920,689,95,229,745,658,284,32,812,233,614,595,245,680,445,684,388,586,738,159,280,322,788,721,529,703,133,848,438,228,234],[285,82,730,339,436,572,271,103,758,231,560,31,213,272,267,569,773,3,21,446,706,413,97,376,60,714,436,417,405,632,25,109,876,470,915,157,840,764,64,678,848,659,36,476],[435,718,820,427,876,920,477,211,244,71,127,246,739,10,146,766,623,579,26,865,593,919,233,264,102,575,96,534,230,637,155,909,535,188,303,205,50,778,416,411,874,257,81,63,706,156,875,576,797,923]];function r(e,n,o){var r=t.barcode.Utils.fillArray(new Array(n),0);return e.forEach(function(t){for(var e,i=t+r[n-1],a=n-1;a>0;--a)e=929-i*o[a]%929,r[a]=(r[a-1]+e)%929;e=929-i*o[0]%929,r[0]=e%929}),r.forEach(function(t,e){0!=t&&(r[e]=929-t)}),r.reverse()}o.forEach(function(t){return t.reverse()}),e.generateECC=function(t,e){var o=n[e];return r(t,Math.pow(2,e+1),o)},e.generateECCForMicro=function(t,e){for(var n,i=0;i<o.length;){var a=o[i];if(a.length===e){n=a;break}i++}return r(t,e,n)}}(e.composite||(e.composite={}))}(t.barcode||(t.barcode={}))}(wijmo||(wijmo={})),function(t){!function(e){!function(e){e.SymbolVersion={ColumnPriorAuto:"columnPriorAuto",RowPriorAuto:"rowPriorAuto",V1X11:"1*11",V1X14:"1*14",V1X17:"1*17",V1X20:"1*20",V1X24:"1*24",V1X28:"1*28",V2X8:"2*8",V2X11:"2*11",V2X14:"2*14",V2X17:"2*17",V2X20:"2*20",V2X23:"2*23",V2X26:"2*26",V3X6:"3*6",V3X8:"3*8",V3X10:"3*10",V3X12:"3*12",V3X15:"3*15",V3X20:"3*20",V3X26:"3*26",V3X32:"3*32",V3X38:"3*38",V3X44:"3*44",V4X4:"4*4",V4X6:"4*6",V4X8:"4*8",V4X10:"4*10",V4X12:"4*12",V4X15:"4*15",V4X20:"4*20",V4X26:"4*26",V4X32:"4*32",V4X38:"4*38",V4X44:"4*44"},t.barcode.Utils.makeEnums(e.SymbolVersion),e.CompactionMode={Auto:"auto",Text:"text",Byte:"byte",Numeric:"numeric"},t.barcode.Utils.makeEnums(e.CompactionMode)}(e.composite||(e.composite={}))}(t.barcode||(t.barcode={}))}(wijmo||(wijmo={})),function(t){!function(e){!function(e){e.CLUSTERS=[[120256,125680,128380,120032,125560,128318,108736,119920,108640,86080,108592,86048,110016,120560,125820,109792,120440,125758,88256,109680,88160,89536,110320,120700,89312,110200,120638,89200,110140,89840,110460,89720,110398,89980,128506,119520,125304,128190,107712,119408,125244,107616,119352,84032,107568,119324,84e3,107544,83984,108256,119672,125374,85184,108144,119612,85088,108088,119582,85040,108060,85728,108408,119742,85616,108348,85560,108318,85880,108478,85820,85790,107200,119152,125116,107104,119096,125086,83008,107056,119068,82976,107032,82960,82952,83648,107376,119228,83552,107320,119198,83504,107292,83480,83468,83824,107452,83768,107422,83740,83900,106848,118968,125022,82496,106800,118940,82464,106776,118926,82448,106764,82440,106758,82784,106936,119006,82736,106908,82712,106894,82700,82694,106974,82830,82240,106672,118876,82208,106648,118862,82192,106636,82184,106630,82180,82352,82328,82316,82080,118830,106572,106566,82050,117472,124280,127678,103616,117360,124220,103520,117304,124190,75840,103472,75808,104160,117624,124350,76992,104048,117564,76896,103992,76848,76824,77536,104312,117694,77424,104252,77368,77340,77688,104382,77628,77758,121536,126320,128700,121440,126264,128670,111680,121392,126236,111648,121368,126222,111632,121356,103104,117104,124092,112320,103008,117048,124062,112224,121656,126366,93248,74784,102936,117006,93216,112152,93200,75456,103280,117180,93888,75360,103224,117150,93792,112440,121758,93744,75288,93720,75632,103356,94064,75576,103326,94008,112542,93980,75708,94140,75678,94110,121184,126136,128606,111168,121136,126108,111136,121112,126094,111120,121100,111112,111108,102752,116920,123998,111456,102704,116892,91712,74272,121244,116878,91680,74256,102668,91664,111372,102662,74244,74592,102840,116958,92e3,74544,102812,91952,111516,102798,91928,74508,74502,74680,102878,92088,74652,92060,74638,92046,92126,110912,121008,126044,110880,120984,126030,110864,120972,110856,120966,110852,110850,74048,102576,116828,90944,74016,102552,116814,90912,111e3,121038,90896,73992,102534,90888,110982,90884,74160,102620,91056,74136,102606,91032,111054,91020,74118,91014,91100,91086,110752,120920,125998,110736,120908,110728,120902,110724,110722,73888,102488,116782,90528,73872,102476,90512,110796,102470,90504,73860,90500,73858,73944,90584,90572,90566,120876,120870,110658,102444,73800,90312,90308,90306,101056,116080,123580,100960,116024,70720,100912,115996,70688,100888,70672,70664,71360,101232,116156,71264,101176,116126,71216,101148,71192,71180,71536,101308,71480,101278,71452,71612,71582,118112,124600,127838,105024,118064,124572,104992,118040,124558,104976,118028,104968,118022,100704,115896,123486,105312,100656,115868,79424,70176,118172,115854,79392,105240,100620,79376,70152,79368,70496,100792,115934,79712,70448,118238,79664,105372,100750,79640,70412,79628,70584,100830,79800,70556,79772,70542,70622,79838,122176,126640,128860,122144,126616,128846,122128,126604,122120,126598,122116,104768,117936,124508,113472,104736,126684,124494,113440,122264,126670,113424,104712,117894,113416,122246,104706,69952,100528,115804,78656,69920,100504,115790,96064,78624,104856,117966,96032,113560,122318,100486,96016,78600,104838,96008,69890,70064,100572,78768,70040,100558,96176,78744,104910,96152,113614,70022,78726,70108,78812,70094,96220,78798,122016,126552,128814,122e3,126540,121992,126534,121988,121986,104608,117848,124462,113056,104592,126574,113040,122060,117830,113032,104580,113028,104578,113026,69792,100440,115758,78240,69776,100428,95136,78224,104652,100422,95120,113100,69764,95112,78212,69762,78210,69848,100462,78296,69836,95192,78284,69830,95180,78278,69870,95214,121936,126508,121928,126502,121924,121922,104528,117804,112848,104520,117798,112840,121958,112836,104514,112834,69712,100396,78032,69704,100390,94672,78024,104550,94664,112870,69698,94660,78018,94658,78060,94700,94694,126486,121890,117782,104484,104482,69672,77928,94440,69666,77922,99680,68160,99632,68128,99608,115342,68112,99596,68104,99590,68448,99768,115422,68400,99740,68376,99726,68364,68358,68536,99806,68508,68494,68574,101696,116400,123740,101664,116376,101648,116364,101640,116358,101636,67904,99504,115292,72512,67872,116444,115278,72480,101784,116430,72464,67848,99462,72456,101766,67842,68016,99548,72624,67992,99534,72600,101838,72588,67974,68060,72668,68046,72654,118432,124760,127918,118416,124748,118408,124742,118404,118402,101536,116312,105888,101520,116300,105872,118476,116294,105864,101508,105860,101506,105858,67744,99416,72096,67728,116334,80800,72080,101580,99398,80784,105932,67716,80776,72068,67714,72066,67800,99438,72152,67788,80856,72140,67782,80844,72134,67822,72174,80878,126800,128940,126792,128934,126788,126786,118352,124716,122576,126828,124710,122568,126822,122564,118338,122562,101456,116268,105680,101448,116262,114128,105672,118374,114120,122598,101442,114116,105666,114114,67664,99372,71888,67656,99366,80336,71880,101478,97232,80328,105702,67650,97224,114150,71874,97220,67692,71916,67686,80364,71910,97260,80358,97254,126760,128918,126756,126754,118312,124694,122472,126774,122468,118306,122466,101416,116246,105576,101412,113896,105572,101410,113892,105570,113890,67624,99350,71784,101430,80104,71780,67618,96744,80100,71778,96740,80098,96738,71798,96758,126738,122420,122418,105524,113780,113778,71732,79988,96500,96498,66880,66848,98968,66832,66824,66820,66992,66968,66956,66950,67036,67022,1e5,99984,115532,99976,115526,99972,99970,66720,98904,69024,100056,98892,69008,100044,69e3,100038,68996,66690,68994,66776,98926,69080,100078,69068,66758,69062,66798,69102,116560,116552,116548,116546,99920,102096,116588,115494,102088,116582,102084,99906,102082,66640,68816,66632,98854,73168,68808,66628,73160,68804,66626,73156,68802,66668,68844,66662,73196,68838,73190,124840,124836,124834,116520,118632,124854,118628,116514,118626,99880,115478,101992,116534,106216,101988,99874,106212,101986,106210,66600,98838,68712,99894,72936,68708,66594,81384,72932,68706,81380,72930,66614,68726,72950,81398,128980,128978,124820,126900,124818,126898,116500,118580,116498,122740,118578,122738,99860,101940,99858,106100,101938,114420],[128352,129720,125504,128304,129692,125472,128280,129678,125456,128268,125448,128262,125444,125792,128440,129758,120384,125744,128412,120352,125720,128398,120336,125708,120328,125702,120324,120672,125880,128478,110144,120624,125852,110112,120600,125838,110096,120588,110088,120582,110084,110432,120760,125918,89664,110384,120732,89632,110360,120718,89616,110348,89608,110342,89952,110520,120798,89904,110492,89880,110478,89868,90040,110558,90012,89998,125248,128176,129628,125216,128152,129614,125200,128140,125192,128134,125188,125186,119616,125360,128220,119584,125336,128206,119568,125324,119560,125318,119556,119554,108352,119728,125404,108320,119704,125390,108304,119692,108296,119686,108292,108290,85824,108464,119772,85792,108440,119758,85776,108428,85768,108422,85764,85936,108508,85912,108494,85900,85894,85980,85966,125088,128088,129582,125072,128076,125064,128070,125060,125058,119200,125144,128110,119184,125132,119176,125126,119172,119170,107424,119256,125166,107408,119244,107400,119238,107396,107394,83872,107480,119278,83856,107468,83848,107462,83844,83842,83928,107502,83916,83910,83950,125008,128044,125e3,128038,124996,124994,118992,125036,118984,125030,118980,118978,106960,119020,106952,119014,106948,106946,82896,106988,82888,106982,82884,82882,82924,82918,124968,128022,124964,124962,118888,124982,118884,118882,106728,118902,106724,106722,82408,106742,82404,82402,124948,124946,118836,118834,106612,106610,124224,127664,129372,124192,127640,129358,124176,127628,124168,127622,124164,124162,117568,124336,127708,117536,124312,127694,117520,124300,117512,124294,117508,117506,104256,117680,124380,104224,117656,124366,104208,117644,104200,117638,104196,104194,77632,104368,117724,77600,104344,117710,77584,104332,77576,104326,77572,77744,104412,77720,104398,77708,77702,77788,77774,128672,129880,93168,128656,129868,92664,128648,129862,92412,128644,128642,124064,127576,129326,126368,124048,129902,126352,128716,127558,126344,124036,126340,124034,126338,117152,124120,127598,121760,117136,124108,121744,126412,124102,121736,117124,121732,117122,121730,103328,117208,124142,112544,103312,117196,112528,121804,117190,112520,103300,112516,103298,112514,75680,103384,117230,94112,75664,103372,94096,112588,103366,94088,75652,94084,75650,75736,103406,94168,75724,94156,75718,94150,75758,128592,129836,91640,128584,129830,91388,128580,91262,128578,123984,127532,126160,123976,127526,126152,128614,126148,123970,126146,116944,124012,121296,116936,124006,121288,126182,121284,116930,121282,102864,116972,111568,102856,116966,111560,121318,111556,102850,111554,74704,102892,92112,74696,102886,92104,111590,92100,74690,92098,74732,92140,74726,92134,128552,129814,90876,128548,90750,128546,123944,127510,126056,128566,126052,123938,126050,116840,123958,121064,116836,121060,116834,121058,102632,116854,111080,121078,111076,102626,111074,74216,102646,91112,74212,91108,74210,91106,74230,91126,128532,90494,128530,123924,126004,123922,126002,116788,120948,116786,120946,102516,110836,102514,110834,73972,90612,73970,90610,128522,123914,125978,116762,120890,102458,110714,123552,127320,129198,123536,127308,123528,127302,123524,123522,116128,123608,127342,116112,123596,116104,123590,116100,116098,101280,116184,123630,101264,116172,101256,116166,101252,101250,71584,101336,116206,71568,101324,71560,101318,71556,71554,71640,101358,71628,71622,71662,127824,129452,79352,127816,129446,79100,127812,78974,127810,123472,127276,124624,123464,127270,124616,127846,124612,123458,124610,115920,123500,118224,115912,123494,118216,124646,118212,115906,118210,100816,115948,105424,100808,115942,105416,118246,105412,100802,105410,70608,100844,79824,70600,100838,79816,105446,79812,70594,79810,70636,79852,70630,79846,129960,95728,113404,129956,95480,113278,129954,95356,95294,127784,129430,78588,128872,129974,95996,78462,128868,127778,95870,128866,123432,127254,124520,123428,126696,128886,123426,126692,124514,126690,115816,123446,117992,115812,122344,117988,115810,122340,117986,122338,100584,115830,104936,100580,113640,104932,100578,113636,104930,113634,70120,100598,78824,70116,96232,78820,70114,96228,78818,96226,70134,78838,129940,94968,113022,129938,94844,94782,127764,78206,128820,127762,95102,128818,123412,124468,123410,126580,124466,126578,115764,117876,115762,122100,117874,122098,100468,104692,100466,113140,104690,113138,69876,78324,69874,95220,78322,95218,129930,94588,94526,127754,128794,123402,124442,126522,115738,117818,121978,100410,104570,112890,69754,78074,94714,94398,123216,127148,123208,127142,123204,123202,115408,123244,115400,123238,115396,115394,99792,115436,99784,115430,99780,99778,68560,99820,68552,99814,68548,68546,68588,68582,127400,129238,72444,127396,72318,127394,123176,127126,123752,123172,123748,123170,123746,115304,123190,116456,115300,116452,115298,116450,99560,115318,101864,99556,101860,99554,101858,68072,99574,72680,68068,72676,68066,72674,68086,72694,129492,80632,105854,129490,80508,80446,127380,72062,127924,127378,80766,127922,123156,123700,123154,124788,123698,124786,115252,116340,115250,118516,116338,118514,99444,101620,99442,105972,101618,105970,67828,72180,67826,80884,72178,80882,97008,114044,96888,113982,96828,96798,129482,80252,130010,97148,80190,97086,127370,127898,128954,123146,123674,124730,126842,115226,116282,118394,122618,99386,101498,105722,114170,67706,71930,80378,96632,113854,96572,96542,80062,96702,96444,96414,96350,123048,123044,123042,115048,123062,115044,115042,99048,115062,99044,99042,67048,99062,67044,67042,67062,127188,68990,127186,123028,123316,123026,123314,114996,115572,114994,115570,98932,100084,98930,100082,66804,69108,66802,69106,129258,73084,73022,127178,127450,123018,123290,123834,114970,115514,116602,98874,99962,102138,66682,68858,73210,81272,106174,81212,81182,72894,81342,97648,114364,97592,114334,97564,97550,81084,97724,81054,97694,97464,114270,97436,97422,80990,97502,97372,97358,97326,114868,114866,98676,98674,66292,66290,123098,114842,115130,98618,99194,66170,67322,69310,73404,73374,81592,106334,81564,81550,73310,81630,97968,114524,97944,114510,97932,97926,81500,98012,81486,97998,97880,114478,97868,97862,81454,97902,97836,97830,69470,73564,73550,81752,106414,81740,81734,73518,81774,81708,81702],[109536,120312,86976,109040,120060,86496,108792,119934,86256,108668,86136,129744,89056,110072,129736,88560,109820,129732,88312,109694,129730,88188,128464,129772,89592,128456,129766,89340,128452,89214,128450,125904,128492,125896,128486,125892,125890,120784,125932,120776,125926,120772,120770,110544,120812,110536,120806,110532,84928,108016,119548,84448,107768,119422,84208,107644,84088,107582,84028,129640,85488,108284,129636,85240,108158,129634,85116,85054,128232,129654,85756,128228,85630,128226,125416,128246,125412,125410,119784,125430,119780,119778,108520,119798,108516,108514,83424,107256,119166,83184,107132,83064,107070,83004,82974,129588,83704,107390,129586,83580,83518,128116,83838,128114,125172,125170,119284,119282,107508,107506,82672,106876,82552,106814,82492,82462,129562,82812,82750,128058,125050,119034,82296,106686,82236,82206,82366,82108,82078,76736,103920,117500,76256,103672,117374,76016,103548,75896,103486,75836,129384,77296,104188,129380,77048,104062,129378,76924,76862,127720,129398,77564,127716,77438,127714,124392,127734,124388,124386,117736,124406,117732,117730,104424,117750,104420,104418,112096,121592,126334,92608,111856,121468,92384,111736,121406,92272,111676,92216,111646,92188,75232,103160,117118,93664,74992,103036,93424,112252,102974,93304,74812,93244,74782,93214,129332,75512,103294,129908,129330,93944,75388,129906,93820,75326,93758,127604,75646,128756,127602,94078,128754,124148,126452,124146,126450,117236,121844,117234,121842,103412,103410,91584,111344,121212,91360,111224,121150,91248,111164,91192,111134,91164,91150,74480,102780,91888,74360,102718,91768,111422,91708,74270,91678,129306,74620,129850,92028,74558,91966,127546,128634,124026,126202,116986,121338,102906,90848,110968,121022,90736,110908,90680,110878,90652,90638,74104,102590,91e3,74044,90940,74014,90910,74174,91070,90480,110780,90424,110750,90396,90382,73916,90556,73886,90526,90296,110686,90268,90254,73822,90334,90204,90190,71136,101112,116094,70896,100988,70776,100926,70716,70686,129204,71416,101246,129202,71292,71230,127348,71550,127346,123636,123634,116212,116210,101364,101362,79296,105200,118140,79072,105080,118078,78960,105020,78904,104990,78876,78862,70384,100732,79600,70264,100670,79480,105278,79420,70174,79390,129178,70524,129466,79740,70462,79678,127290,127866,123514,124666,115962,118266,100858,113376,122232,126654,95424,113264,122172,95328,113208,122142,95280,113180,95256,113166,95244,78560,104824,117950,95968,78448,104764,95856,113468,104734,95800,78364,95772,78350,95758,70008,100542,78712,69948,96120,78652,69918,96060,78622,96030,70078,78782,96190,94912,113008,122044,94816,112952,122014,94768,112924,94744,112910,94732,94726,78192,104636,95088,78136,104606,95032,113054,95004,78094,94990,69820,78268,69790,95164,78238,95134,94560,112824,121950,94512,112796,94488,112782,94476,94470,78008,104542,94648,77980,94620,77966,94606,69726,78046,94686,94384,112732,94360,112718,94348,94342,77916,94428,77902,94414,94296,112686,94284,94278,77870,94318,94252,94246,68336,99708,68216,99646,68156,68126,68476,68414,127162,123258,115450,99834,72416,101752,116414,72304,101692,72248,101662,72220,72206,67960,99518,72568,67900,72508,67870,72478,68030,72638,80576,105840,118460,80480,105784,118430,80432,105756,80408,105742,80396,80390,72048,101564,80752,71992,101534,80696,71964,80668,71950,80654,67772,72124,67742,80828,72094,80798,114016,122552,126814,96832,113968,122524,96800,113944,122510,96784,113932,96776,113926,96772,80224,105656,118366,97120,80176,105628,97072,114076,105614,97048,80140,97036,80134,97030,71864,101470,80312,71836,97208,80284,71822,97180,80270,97166,67678,71902,80350,97246,96576,113840,122460,96544,113816,122446,96528,113804,96520,113798,96516,96514,80048,105564,96688,80024,105550,96664,113870,96652,80006,96646,71772,80092,71758,96732,80078,96718,96416,113752,122414,96400,113740,96392,113734,96388,96386,79960,105518,96472,79948,96460,79942,96454,71726,79982,96494,96336,113708,96328,113702,96324,96322,79916,96364,79910,96358,96296,113686,96292,96290,79894,96310,66936,99006,66876,66846,67006,68976,100028,68920,99998,68892,68878,66748,69052,66718,69022,73056,102072,116574,73008,102044,72984,102030,72972,72966,68792,99934,73144,68764,73116,68750,73102,66654,68830,73182,81216,106160,118620,81184,106136,118606,81168,106124,81160,106118,81156,81154,72880,101980,81328,72856,101966,81304,106190,81292,72838,81286,68700,72924,68686,81372,72910,81358,114336,122712,126894,114320,122700,114312,122694,114308,114306,81056,106072,118574,97696,81040,106060,97680,114380,106054,97672,81028,97668,81026,97666,72792,101934,81112,72780,97752,81100,72774,97740,81094,97734,68654,72814,81134,97774,114256,122668,114248,122662,114244,114242,80976,106028,97488,80968,106022,97480,114278,97476,80962,97474,72748,81004,72742,97516,80998,97510,114216,122646,114212,114210,80936,106006,97384,80932,97380,80930,97378,72726,80950,97398,114196,114194,80916,97332,80914,97330,66236,66206,67256,99166,67228,67214,66142,67294,69296,100188,69272,100174,69260,69254,67164,69340,67150,69326,73376,102232,116654,73360,102220,73352,102214,73348,73346,69208,100142,73432,102254,73420,69190,73414,67118,69230,73454,106320,118700,106312,118694,106308,106306,73296,102188,81616,106348,102182,81608,73284,81604,73282,81602,69164,73324,69158,81644,73318,81638,122792,126934,122788,122786,106280,118678,114536,106276,114532,106274,114530,73256,102166,81512,73252,98024,81508,73250,98020,81506,98018,69142,73270,81526,98038,122772,122770,106260,114484,106258,114482,73236,81460,73234,97908,81458,97906,122762,106250,114458,73226,81434,97850,66396,66382,67416,99246,67404,67398,66350,67438,69456,100268,69448,100262,69444,69442,67372,69484,67366,69478,102312,116694,102308,102306,69416,100246,73576,102326,73572,69410,73570,67350,69430,73590,118740,118738,102292,106420,102290,106418,69396,73524,69394,81780,73522,81778,118730,102282,106394,69386,73498,81722,66476,66470,67496,99286,67492,67490,66454,67510,100308,100306,67476,69556,67474,69554,116714]];e.subModeMap={ll:" ",ps:" ",ml:" ",al:" ",pl:" ",as:" "};var n=["ABCDEFGHIJKLMNOPQRSTUVWXYZ    ","abcdefghijklmnopqrstuvwxyz    ","0123456789&\r\t,:#-.$/+%*=^     ",";<>@[\\]_`~!\r\t,:\n-.$/\"|*()?{}' "];function o(t){return n[0].indexOf(t)>-1}function r(t){return n[1].indexOf(t)>-1}function i(t){return n[2].indexOf(t)>-1}function a(t){return n[3].indexOf(t)>-1}function s(t){return o(t)||r(t)||i(t)||a(t)}function c(t,e){for(var n=e,o=t.length,r=0;n<o&&(t[n]>="0"&&t[n]<="9"?r++:r=0,s(t[n]));){if(r>=13){n-=--r;break}n++}return t.substring(e,n)}function u(t,e){for(var n=e,o=t.length;n<o&&!(t[n]<"0"||t[n]>"9");)n++;return t.substring(e,n)}function d(t,e){for(var n=e,o=t.length,r=0,i=0,a=!1;n<o;){if(t[n]>="0"&&t[n]<="9"?(r++,a&&(i=0,a=!1)):s(t[n])&&(i++,a||(r=0,a=!0)),i>=5){n-=--i;break}if(r>=13){n-=--r;break}n++}return t.substring(e,n)}function h(t,e){var o;switch(e){case"ll":o=n[1].indexOf(t);break;case"ml":o=n[2].indexOf(t);break;case"al":case"as":o=n[0].indexOf(t);break;case"pl":case"ps":o=n[3].indexOf(t)}return o}e.MODE_TC=900,e.MODE_BC=901,e.MODE_NC=902,e.MODE_BC6=924,e.MODE_BC_SHIFT=913,e.compaction=function(t,n){void 0===n&&(n=e.CompactionMode.Auto);var s=[];if(n===e.CompactionMode.Text)s=[{mode:e.MODE_TC,text:t}];else if(n===e.CompactionMode.Byte)s=[{mode:t.length%6==0?e.MODE_BC6:e.MODE_BC,text:t}];else if(n===e.CompactionMode.Numeric)s=[{mode:e.MODE_NC,text:t}];else for(var h=0,l=t.length,p={mode:e.MODE_TC,text:""};h<l;){var f=u(t,h);if(f.length>=13)p={mode:e.MODE_NC,text:f},s.push(p),h+=f.length;else{var m=c(t,h);if(m.length>=5)p={mode:e.MODE_TC,text:m},s.push(p),h+=m.length;else{var g=d(t,h);1===g.length&&p.mode==e.MODE_TC?(p={mode:e.MODE_BC_SHIFT,text:g},s.push(p)):(p=g.length%6==0?{mode:e.MODE_BC6,text:g}:{mode:e.MODE_BC,text:g},s.push(p)),h+=g.length}}}return s.forEach(function(t){if(t.mode==e.MODE_TC){var n={mode:"al",text:""},s=[n];t.subModes=s;for(var c=0,u=t.text.length;c<u;c++){var d=t.text[c];o(d)?0===c||"al"===n.mode?n.text+=d:(n=o(t.text[c+1])?{mode:"al",text:d}:"ll"===n.mode?{mode:"as",text:d}:{mode:"al",text:d},s.push(n)):r(d)?"ll"===n.mode?n.text+=d:(n={mode:"ll",text:d},s.push(n)):i(d)?"pl"===n.mode&&a(d)?n.text+=d:"ml"===n.mode?n.text+=d:(n={mode:"ml",text:d},s.push(n)):a(d)&&("pl"===n.mode?n.text+=d:(n=a(t.text[c+1])?{mode:"pl",text:d}:{mode:"ps",text:d},s.push(n)))}}}),s},e.getIndicator=function(t,e,n,o,r){var i,a=~~(t/3),s=~~((e-1)/3),c=3*n+(e-1)%3,u=o-1;switch(t%3*3){case 0:i=r?u:s;break;case 3:i=r?s:c;break;case 6:i=r?c:u}return 30*a+i},e.getPattern_PDF417=function(t,n){return e.CLUSTERS[t%3][n]},e.getTCValue=h;var l={al:{ll:[27],ml:[28],pl:[28,25]},ll:{al:[28,28],ml:[28],pl:[28,25]},ml:{al:[28],ll:[27],pl:[25]},pl:{al:[29],ll:[29,27],ml:[29,28]}};e.getTCSubModeValue=function(t,n){var o=h(e.subModeMap[t],n);return o>-1?[o]:l[n][t]},e.createModules=function(e,n){for(var o=[],r=0;r<e;r++)o.push(t.barcode.Utils.fillArray(new Array(n),null));return o},e.getAutoECL=function(t){var e=t.length;return e<=40?2:e<=160?3:e<=320?4:5},e.getAutoRowAndCol=function(t){var e,n,o=31;do{if(o--,n=(e=Math.ceil(t/o))/o,o<2)break}while(n<4);return e<3&&(e=3),{col:o,row:e}}}(e.composite||(e.composite={}))}(t.barcode||(t.barcode={}))}(wijmo||(wijmo={})),function(t){!function(e){!function(e){var n=["221311","311311","312211","222211","213211","214111","223111","313111","322111","412111","421111","331111","241111","232111","231211","321211","411211","411121","411112","321112","312112","311212","311221","311131","311122","311113","221113","221122","221131","221221","222121","312121","321121","231121","231112","222112","213112","212212","212221","212131","212122","212113","211213","211123","211132","211141","211231","211222","211312","211321","211411","212311"],o=["112231","121231","122131","131131","131221","132121","141121","141211","142111","133111","132211","131311","122311","123211","124111","115111","114211","114121","123121","123112","122212","122221","121321","121411","112411","113311","113221","113212","113122","122122","131122","131113","122113","113113","112213","112222","112312","112321","111421","111331","111322","111232","111223","111133","111124","111214","112114","121114","121123","121132","112132","112141"],r=[[1,11,7,1,9],[1,14,7,8,8],[1,17,7,36,36],[1,20,8,19,19],[1,24,8,9,17],[1,28,8,25,33],[2,8,8,1,1],[2,11,9,1,9],[2,14,9,8,8],[2,17,10,36,36],[2,20,11,19,19],[2,23,13,9,17],[2,26,15,27,35],[3,6,12,1,1,1],[3,8,14,7,7,7],[3,10,16,15,15,15],[3,12,18,25,25,25],[3,15,21,37,37,37],[3,20,26,1,33,17],[3,26,32,1,17,9],[3,32,38,21,37,29],[3,38,44,15,47,31],[3,44,50,1,9,49],[4,4,8,47,43,19],[4,6,12,1,1,1],[4,8,14,7,7,7],[4,10,16,15,15,15],[4,12,18,25,25,25],[4,15,21,37,37,37],[4,20,26,1,33,17],[4,26,32,1,17,9],[4,32,38,21,37,29],[4,38,44,15,47,31],[4,44,50,1,9,49]];function i(t,e){for(var n=[],o=0,r=t;o<e;)r>52&&(r%=52),n.push(r),o++,r++;return n}function a(t,e){for(var n=0,o=t.length;n<o;n++){var r=t[n],a=r[0],s=r[1],c=r[2],u=r[3],d=r[4],h=r[5],l=s*a,p=s*a-c-2;if(e(r={rows:s,cols:a,total:l,ecCws:c,nonEcCw:l-c,bits:8*(6*~~(p/5)+p%5)})){r.rowAssignment={left:i(u,s),right:i(d,s),center:h?i(h,s):null};for(var f=[],m=0;m<=s;){var g=(u+m-1)%3;f.push(g),m++}return r.cluster=f,r}}return null}e.findVersionTable=a,e.getVersionVariantColPrior=function(t){for(var e=1,n=null;e<=4;){var o=a(r,function(n){return n.cols===e&&n.nonEcCw>=t});n?o&&o.rows>n.rows&&(n=o):n=o,e++}return n},e.getVersionVariantRowPrior=function(t){return a(r,function(e){return 4===e.cols&&e.nonEcCw>=t})},e.getVersionVariant=function(t,e){return a(r,function(n){return n.cols===e&&n.rows===t})},e.getVersionVariantByCol=function(t,e){return a(r,function(n){return n.cols===t&&n.nonEcCw>=e})},e.getECCBVersionVariantByCol=function(t,e){return a(r,function(n){return n.cols===t&&n.bits>=e})},e.getRowAddressPatterns=function(e,r,i){var a;switch(r){case"L":a=n[e.left[i]-1];break;case"R":a=n[e.right[i]-1];break;default:a=o[e.center[i]-1]}return t.barcode.Utils.toZeroOnePattern(t.barcode.Utils.str2Array(a),!0)},e.getPattern=function(t,n){return e.CLUSTERS[t][n]}}(e.composite||(e.composite={}))}(t.barcode||(t.barcode={}))}(wijmo||(wijmo={})),function(t){!function(t){!function(t){var e=function(t){var e;if(void 0!==t)return(e=new i(t)).sign=1,e},n=function(t){return"[object Array]"===Object.prototype.toString.call(t)},o=function(t){return["number"==typeof t,"string"==typeof t&&t.length>0,n(t)&&t.length>0,t instanceof i].some(function(t){return!0===t})},r={invalid:"Invalid Number","division by zero":"Invalid Number - Division By Zero"},i=function(){function t(t){var e;if(this.number=[],this.sign=1,this.rest=0,o(t)){if(n(t)){for((t.length&&"-"===t[0]||"+"===t[0])&&(this.sign="+"===t[0]?1:-1,t.shift(0)),e=t.length-1;e>=0;e--)if(!this.addDigit(t[e]))return}else for("-"!==(t=t.toString()).charAt(0)&&"+"!==t.charAt(0)||(this.sign="+"===t.charAt(0)?1:-1,t=t.substring(1)),e=t.length-1;e>=0;e--)if(!this.addDigit(parseInt(t.charAt(e),10)))return}else this.number=r.invalid}return t.prototype.addDigit=function(t){return function(t){return/^\d$/.test(t)}(t)?(this.number.push(t),this):(this.number=r.invalid,!1)},t.prototype.isEven=function(){return this.number[0]%2==0},t.prototype._compare=function(e){var n,r;if(!o(e))return null;if(n=new t(e),this.sign!==n.sign)return this.sign;if(this.number.length>n.number.length)return this.sign;if(this.number.length<n.number.length)return-1*this.sign;for(r=this.number.length-1;r>=0;r--){if(this.number[r]>n.number[r])return this.sign;if(this.number[r]<n.number[r])return-1*this.sign}return 0},t.prototype.gt=function(t){return this._compare(t)>0},t.prototype.gte=function(t){return this._compare(t)>=0},t.prototype.equals=function(t){return 0===this._compare(t)},t.prototype.lte=function(t){return this._compare(t)<=0},t.prototype.lt=function(t){return this._compare(t)<0},t.prototype.add=function(e){var n;return void 0===e?this:(n=new t(e),this.sign!==n.sign?this.sign>0?(n.sign=1,this.minus(n)):(this.sign=1,n.minus(this)):(this.number=t._add(this,n),this))},t.prototype.minus=function(n){var o;return void 0===n?this:(o=new t(n),this.sign!==o.sign?(this.number=t._add(this,o),this):(this.sign=this.lt(o)?-1:1,this.number=e(this).lt(e(o))?t._subtract(o,this):t._subtract(this,o),this))},t._add=function(t,e){var n,o=0,r=Math.max(t.number.length,e.number.length);for(n=0;n<r||o>0;n++)t.number[n]=(o+=(t.number[n]||0)+(e.number[n]||0))%10,o=Math.floor(o/10);return t.number},t._subtract=function(t,e){var n,o=0,r=t.number.length;for(n=0;n<r;n++)t.number[n]-=(e.number[n]||0)+o,t.number[n]+=10*(o=t.number[n]<0?1:0);for(n=0,r=t.number.length-1;0===t.number[r-n]&&r-n>0;)n++;return n>0&&t.number.splice(-n),t.number},t.prototype.multiply=function(e){if(void 0===e)return this;var n,o,r=new t(e),i=0,a=[];if(this.isZero()||r.isZero())return new t(0);for(this.sign*=r.sign,n=0;n<this.number.length;n++)for(i=0,o=0;o<r.number.length||i>0;o++)a[n+o]=(i+=(a[n+o]||0)+this.number[n]*(r.number[o]||0))%10,i=Math.floor(i/10);return this.number=a,this},t.prototype.divide=function(e){if(void 0===e)return this;var n,o,i=new t(e),a=[],s=new t(0);if(i.isZero())return this.number=r["division by zero"],this;if(this.isZero())return this.rest=new t(0),this;if(this.sign*=i.sign,i.sign=1,1===i.number.length&&1===i.number[0])return this.rest=new t(0),this;for(n=this.number.length-1;n>=0;n--)for(s.multiply(10),s.number[0]=this.number[n],a[n]=0;i.lte(s);)a[n]++,s.minus(i);for(n=0,o=a.length-1;0===a[o-n]&&o-n>0;)n++;return n>0&&a.splice(-n),this.rest=s,this.number=a,this},t.prototype.mod=function(t){return this.divide(t).rest},t.prototype.power=function(e){if(void 0!==e){var n,i;if(o(e)){if((i=new t(e)).isZero())return new t(1);if("1"===i.val())return this;for(n=new t(this),this.number=[1];i.gt(0);)i.isEven()?(n.multiply(n),i.div(2)):(this.multiply(n),i.subtract(1));return this}this.number=r.invalid}},t.prototype.abs=function(){return this.sign=1,this},t.prototype.isZero=function(){var t;for(t=0;t<this.number.length;t++)if(0!==this.number[t])return!1;return!0},t.prototype.toString=function(){var t,e="";if("string"==typeof this.number)return this.number;for(t=this.number.length-1;t>=0;t--)e+=this.number[t];return this.sign>0?e:"-"+e},t}();t.BigNumber=i}(t.composite||(t.composite={}))}(t.barcode||(t.barcode={}))}(wijmo||(wijmo={})),function(t){!function(e){!function(e){var n=function(n){function o(){return null!==n&&n.apply(this,arguments)||this}return __extends(o,n),o.prototype.validate=function(){var e=this.encodeConfig.text;if(!/^[\x00-\xFF]+$/.test(e))throw new t.barcode.InvalidTextException(e)},o.prototype.encodeNC=function(n){var o=n.text,r=[];return t.barcode.Utils.sliceString(o,44,function(t){for(var n=new e.BigNumber("1"+t),o=[];;){var i=new e.BigNumber(n).mod(900);if(n.divide(new e.BigNumber(900)),o.unshift(+i.toString()),n.lt(1))break}r=r.concat(o)}),r.unshift(e.MODE_NC),r},o.prototype.encodeBC=function(e){var n=e.text,o=[];return t.barcode.Utils.sliceString(n,6,function(e){if(6===e.length){var n=5,r=0,i=[];t.barcode.Utils.sliceString(e,1,function(t){r+=t.charCodeAt(0)*Math.pow(256,n--)});var a=0,s=Math.floor(r/Math.pow(900,a))%900;do{i.unshift(s),s=Math.floor(r/Math.pow(900,++a))%900}while(s>0);for(;i.length<5;)i.unshift(0);o=o.concat(i)}else t.barcode.Utils.sliceString(e,1,function(t){o.push(t.charCodeAt(0))})}),o.unshift(e.mode),o},o.prototype.encodeTC=function(n){var o=[],r="al";n.subModes.forEach(function(n){r!==n.mode&&(o=o.concat(e.getTCSubModeValue(n.mode,r))),t.barcode.Utils.sliceString(n.text,1,function(t){o.push(e.getTCValue(t,n.mode))}),"ps"!==n.mode&&"as"!==n.mode&&(r=n.mode)});var i=[e.MODE_TC];return t.barcode.Utils.sliceArray(o,2,function(t){2===t.length?i.push(30*t[0]+t[1]):i.push(30*t[0]+29)}),i},o.prototype.encode=function(t){var n=this,o=[];return t.forEach(function(t){switch(t.mode){case e.MODE_TC:o=o.concat(n.encodeTC(t));break;case e.MODE_BC:case e.MODE_BC6:case e.MODE_BC_SHIFT:o=o.concat(n.encodeBC(t));break;case e.MODE_NC:o=o.concat(n.encodeNC(t))}}),o},o.prototype.convertToShape=function(e,n){var o=this.encodeConfig,r=o.height,i=o.quietZone,a=r/e.length,s=e[0].reduce(function(t,e){return t+=e.length},0)+i.right+i.left,c=e.length*a+i.top+i.bottom,u=new t.barcode.VerticalLayoutArea,d=new t.barcode.MatrixSymbolArea(s,c,a);d.setStyle({padding:{top:i.top,right:i.right,bottom:i.bottom,left:i.left}}),u.append(d),n||(e.forEach(function(e){e.forEach(function(e){t.barcode.Utils.combineTruthy(e).forEach(function(t){0!==t?d.append(t,a):d.space()})})}),this.shapes=u.toShapes()),this.mainArea=u,this.size=u.getSize()},o.prototype.adjustDesiredSize=function(){var t=this.size.width,e=this.encodeConfig,n=e.desiredSize,o=e.containerWidth/t;n.forceRounding&&(o=(o=~~o)<1?1:o),this.applyDesiredSize(o)},o.prototype.getMainArea=function(){return this.mainArea},o.PAD=900,o}(t.barcode.TwoDimensionalBarcode);e.PDF417Base=n}(e.composite||(e.composite={}))}(t.barcode||(t.barcode={}))}(wijmo||(wijmo={})),function(t){!function(e){!function(e){var n=function(n){function o(t){var e=this;t.merge(o.DefaultConfig);var r=(e=n.call(this,t)||this).config,i=r.errorCorrectionLevel,a=r.columns,s=r.rows,c=r.compact,u=e.encodeConfig.text;return e.text=u,e.ecl="auto"===i?i:+i,e.columns="auto"===a?a:+a,e.rows="auto"===s?s:+s,e.compact=!!c,e}return __extends(o,n),o.prototype.validate=function(){n.prototype.validate.call(this);var e=this.config,o=e.errorCorrectionLevel,r=e.rows,i=e.columns;if(t.barcode.Utils.isNumberLike(o)&&(o<0||o>8))throw new t.barcode.InvalidOptionsException({errorCorrectionLevel:o},"ErrorCorrectionLevel is from 0 - 8.");if(t.barcode.Utils.isNumberLike(r)&&(r<3||r>90))throw new t.barcode.InvalidOptionsException({rows:r},"Rows is from 3 - 90.");if(t.barcode.Utils.isNumberLike(i)&&(i<1||i>30))throw new t.barcode.InvalidOptionsException({columns:i},"Columns is from 1 - 30.")},o.prototype.genEcc=function(){var n=this.data,r=this.ecl,i=this.columns,a=this.rows;n[0]===e.MODE_TC&&n.shift(),"auto"===r&&(this.ecl=r=e.getAutoECL(n));var s=Math.pow(2,r+1),c=n.length+1+s;if("auto"===a&&"auto"===i){var u=e.getAutoRowAndCol(c),d=u.col,h=u.row;this.columns=i=d,this.rows=a=h}else if("auto"===a){if((a=Math.ceil(c/i))>90)throw new t.barcode.InvalidOptionsException({columns:i},"Columns is not large enough");a=a<3?3:a,this.rows=a}else if("auto"===i){if((i=Math.ceil(c/a))>30)throw new t.barcode.InvalidOptionsException({rows:a},"Rows is not large enough");this.columns=i}var l=i*a-s;if(n.unshift(l),n.length>o.MAX_DATA_NUM||n.length>l)throw new t.barcode.TextTooLongException;for(;n.length<l;)n.push(e.PDF417Base.PAD);this.ecc=e.generateECC(n,this.ecl)},o.prototype.calculateData=function(){var t=e.compaction(this.text);this.data=this.encode(t),this.genEcc();var n=this,r=n.data,i=n.ecc,a=n.columns,s=n.rows,c=n.ecl,u=n.compact,d=r.concat(i),h=e.createModules(s,a);d.forEach(function(t,n){var o=Math.floor(n/a),r=n%a;h[o][r]=e.getPattern_PDF417(o,t)});var l=[];return h.forEach(function(t,n){var r=e.getPattern_PDF417(n,e.getIndicator(n,s,c,a)),i=e.getPattern_PDF417(n,e.getIndicator(n,s,c,a,!0)),d=[o.START,r.toString(2)];t.forEach(function(t){d.push(t.toString(2))}),u?d.push(o.COMPACT_END):(d.push(i.toString(2)),d.push(o.END)),l.push(d)}),l},o.DefaultConfig={errorCorrectionLevel:"auto",columns:"auto",rows:"auto",compact:!1,height:60,quietZone:{top:2,left:2,right:2,bottom:2}},o.START="11111111010101000",o.END="111111101000101001",o.COMPACT_END="1",o.MAX_DATA_NUM=925,o}(e.PDF417Base);e.PDF417Encoder=n}(e.composite||(e.composite={}))}(t.barcode||(t.barcode={}))}(wijmo||(wijmo={})),function(t){!function(e){!function(e){var n=function(n){function o(t){var e=this;t.merge(o.DefaultConfig);var r=(e=n.call(this,t)||this).config,i=r.symbolVersion,a=r.compactionMode,s=r.segmentIndex,c=r.fileID,u=r.structuredAppend,d=r.optionalFields,h=e.encodeConfig.text;return e.text=h,e.symbolVersion=i,e.versionMeta=null,e.compactionMode=a,e.structuredAppendEnabled=u,e.segmentIndex=s,e.fileID=c,e.optionalFields=d,e.segmentCount=0,e.structuredAppendCws=[],e}return __extends(o,n),o.prototype.validate=function(){n.prototype.validate.call(this);var o=this.config,r=o.compactionMode,i=o.symbolVersion,a=o.segmentIndex,s=o.fileID,c=this.encodeConfig.text;if(r===e.CompactionMode.Numeric&&!/^[\d]*$/.test(c))throw new t.barcode.InvalidOptionsException({compactionMode:r,text:c},"CompactionMode is numeric, but the text is not.");if(!e.CompactionMode.has(r))throw new t.barcode.InvalidOptionsException({compactionMode:r});if(!e.SymbolVersion.has(i))throw new t.barcode.InvalidOptionsException({symbolVersion:i});if(a<0||a>99998||s<0||s>899)throw new t.barcode.InvalidOptionsException({segmentIndex:a},"SegmentIndex should in range 0 - 99998")},o.prototype._buildRow=function(t,n){var r=this.columns,i=this.versionMeta,a=i.rowAssignment,s=i.cluster,c=e.getRowAddressPatterns(a,"L",n),u=e.getRowAddressPatterns(a,"R",n),d=[c],h=s[n],l=t.map(function(t){return e.getPattern(h,t)});switch(r){case 1:d.push(l[0].toString(2));break;case 2:d.push(l[0].toString(2)),d.push(l[1].toString(2));break;case 3:d.push(l[0].toString(2)),d.push(e.getRowAddressPatterns(a,"C",n)),d.push(l[1].toString(2)),d.push(l[2].toString(2));break;default:d.push(l[0].toString(2)),d.push(l[1].toString(2)),d.push(e.getRowAddressPatterns(a,"C",n)),d.push(l[2].toString(2)),d.push(l[3].toString(2))}return d=d.concat([u,o.StopBar])},o.prototype._buildStructAppend=function(){var e=this.segmentIndex,n=this.segmentCount,r=this.fileID,i=this.optionalFields,a=[o.StructuredAppendMarker],s=this.encodeNC({text:t.barcode.Utils.strPadStart(e+"",5,"0")});if(s.shift(),a.push.apply(a,s),a.push(r),i.segmentCount){a.push(o.StructuredAppendOptionalFieldsMarker),a.push(o.StructuredAppendOptionalFieldTags.SegmentCount);var c=this.encodeNC({text:t.barcode.Utils.strPadStart(n+"",5,"0")});c.shift(),a.push.apply(a,c)}return e===n-1&&a.push(o.StructuredAppendTerminator),a},o.prototype._splitStruct=function(n){var o,r=this.symbolVersion,i=this.segmentIndex;if(r===e.SymbolVersion.RowPriorAuto||r===e.SymbolVersion.ColumnPriorAuto)o=e.getVersionVariant(44,4);else{var a=r.split("*"),s=a[0],c=a[1];o=e.getVersionVariant(+c,+s)}var u=this._buildStructAppend(),d=o.nonEcCw-u.length;if(d<0)throw new t.barcode.TextTooLongException;var h,l=Math.ceil(n.length/d);if(n.length-d*(l-1)===d&&l++,i>=l)throw new t.barcode.InvalidOptionsException({segmentIndex:i},"The max segment index is "+(l-1)+".");if(l>99999)throw new t.barcode.TextTooLongException;return h=i===l-1?n.slice(d*i):n.slice(d*i,d*(i+1)),this.segmentCount=l,h},o.prototype.genEcc=function(){var n,o=this.data,r=this.symbolVersion,i=this.structuredAppendCws,a=o.length+i.length;if(r===e.SymbolVersion.RowPriorAuto)n=e.getVersionVariantRowPrior(a);else if(r===e.SymbolVersion.ColumnPriorAuto)n=e.getVersionVariantColPrior(a);else{var s=r.split("*"),c=s[0],u=s[1];n=e.getVersionVariant(+u,+c)}var d=n.rows*n.cols-n.ecCws;if(d<a)throw new t.barcode.TextTooLongException;for(var h=d-a;h>0;)o.push(e.PDF417Base.PAD),h--;this.versionMeta=n,this.ecc=e.generateECCForMicro(o.concat(i),n.ecCws),this.rows=n.rows,this.columns=n.cols},o.prototype.calculateData=function(){var t=this,n=e.compaction(this.text,this.compactionMode),o=this.encode(n);this.structuredAppendEnabled?(this.data=this._splitStruct(o),this.structuredAppendCws=this._buildStructAppend()):this.data=o,this.genEcc();var r=this,i=r.data,a=r.ecc,s=r.columns,c=r.rows,u=r.structuredAppendCws,d=i.concat(u).concat(a),h=e.createModules(c,s);d.forEach(function(t,e){var n=Math.floor(e/s),o=e%s;h[n][o]=t});var l=[];return h.forEach(function(e,n){l.push(t._buildRow(e,n))}),l},o.DefaultConfig={symbolVersion:e.SymbolVersion.ColumnPriorAuto,compactionMode:e.CompactionMode.Auto,structuredAppend:!1,segmentIndex:0,fileID:0,height:60,quietZone:{top:1,left:1,right:1,bottom:1},optionalFields:{segmentCount:!0}},o.StopBar="1",o.StructuredAppendMarker=928,o.StructuredAppendOptionalFieldsMarker=923,o.StructuredAppendTerminator=922,o.StructuredAppendOptionalFieldTags={SegmentCount:1},o}(e.PDF417Base);e.MicroPDF417Encoder=n}(e.composite||(e.composite={}))}(t.barcode||(t.barcode={}))}(wijmo||(wijmo={})),function(t){!function(e){!function(e){t.barcode.Barcode.registerEncoder("PDF417",e.PDF417Encoder),t.barcode.Barcode.registerEncoder("MicroPDF417",e.MicroPDF417Encoder)}(e.composite||(e.composite={}))}(t.barcode||(t.barcode={}))}(wijmo||(wijmo={})),function(t){!function(e){!function(e){var n=function(n){function o(o,r,i,a){void 0===r&&(r=4),void 0===i&&(i=1);var s=this,c={text:o,unitSize:i,quietZone:{top:0,right:0,left:0,bottom:0}};a&&(c.height=a),(s=n.call(this,new t.barcode.Option(c))||this).columns=r;var u=s.encodeConfig.text;s.text=u.replace(/\(|\)/g,""),s.bitBuffer=new t.barcode.BitBuffer,s._gpdEncodation=new e.GeneralPurposeDataEncodation(s.bitBuffer);var d=u.split(/\(|\)/);d.shift();for(var h=0,l=[];h<d.length;)l.push({ai:d[h++],data:d[h++]});return s.aiGroup=l,s.autoHeight=!a,s}return __extends(o,n),o.prototype._buildRow=function(t,n){var o=this.columns,r=this.versionMeta,i=r.rowAssignment,a=r.cluster,s=e.getRowAddressPatterns(i,"L",n),c=e.getRowAddressPatterns(i,"R",n),u=3===o?[]:[s],d=a[n],h=t.map(function(t){return e.getPattern(d,t)});switch(o){case 2:u.push(h[0].toString(2)),u.push(h[1].toString(2));break;case 3:u.push(h[0].toString(2)),u.push(e.getRowAddressPatterns(i,"C",n)),u.push(h[1].toString(2)),u.push(h[2].toString(2));break;default:u.push(h[0].toString(2)),u.push(h[1].toString(2)),u.push(e.getRowAddressPatterns(i,"C",n)),u.push(h[2].toString(2)),u.push(h[3].toString(2))}return u=u.concat([c,e.MicroPDF417Encoder.StopBar])},o.prototype._encode_10Date=function(e){var n=this.bitBuffer,o=this.text,r=384*+e.substr(0,2)+32*(+e.substr(2,2)-1)+ +e.substr(4,2);if(isNaN(r))throw new t.barcode.InvalidTextException(o,"The text doesn't contains a vaild product date or expire date");n.put(r,16)},o.prototype._getMethod_11Mode=function(t){for(var e=0,n=0,o=0,r=t.length;o<r;o++){var i=t[o];if("*,-./".indexOf(i)>-1)return"Alphanumeric";i>="A"&&i<="Z"&&e++,i>="0"&&i<="9"&&n++}return e>n?"Alpha":"Numeric"},o.prototype._encode_11=function(){var n=this.bitBuffer,o=this.aiGroup,r="",i=o[0];n.putBits("11");var a=/^([1-9][0-9]?[0-9]?)?([A-Z][0-9A-Z*,-./]*)/.exec(i.data),s=a[1]||"",c=a[2][0],u=s+c;s=s?+s:0;var d=i.data.substr(u.length);switch(this._getMethod_11Mode(d)){case"Alphanumeric":n.putBits("0");break;case"Alpha":n.putBits("11");break;case"Numeric":n.putBits("10")}var h=o[1];if(h)switch(h.ai){case"21":r=d+t.barcode.Constants.FNC1+h.data,n.putBits("10");break;case"8004":r=d+t.barcode.Constants.FNC1+h.data,n.putBits("11");break;default:r=d+t.barcode.Constants.FNC1+h.ai+h.data,n.putBits("0")}else r=d,n.putBits("0");o.length>2&&t.barcode.Utils.loop(function(e){var n=o[e];r=r+t.barcode.Constants.FNC1+n.ai+n.data},{from:2,to:o.length-1});var l=e.getSupportedUppercaseAlphabetic(c);return s<31&&l?(n.putBit(s,5),n.putBits(l)):(n.putBits("11111"),n.put(s,10),n.put(c.charCodeAt(0)-65,5)),r},o.prototype._encode_10=function(){var e=this.bitBuffer,n=this.aiGroup,o="",r=n[0];(e.putBits("10"),"11"===r.ai||"17"===r.ai)?(this._encode_10Date(r.data),e.putBit("17"===r.ai),n.length>1?n[1]&&"10"===n[1].ai?(o=n[1].data,n.length>2&&t.barcode.Utils.loop(function(e){var r=n[e];o=o+t.barcode.Constants.FNC1+r.ai+r.data},{from:2,to:n.length-1})):(o=t.barcode.Constants.FNC1,t.barcode.Utils.loop(function(t){var e=n[t];o=o+e.ai+e.data},{from:1,to:n.length-1})):o=t.barcode.Constants.FNC1):"10"===r.ai&&(e.putBits("11"),o=r.data,n.length>1&&t.barcode.Utils.loop(function(e){var r=n[e];o=o+t.barcode.Constants.FNC1+r.ai+r.data},{from:1,to:n.length-1}));return o},o.prototype._encode_0=function(){var e=this.bitBuffer,n=this.aiGroup,o=this.text;if(e.putBits("0"),!n.length)return o;var r="";return r=n[0].ai+n[0].data,n.length>1&&t.barcode.Utils.loop(function(e){var o=n[e];r=r+t.barcode.Constants.FNC1+o.ai+o.data},{from:1,to:n.length-1}),r},o.prototype._encodeMethod=function(){var t=this.text,e=this.aiGroup[0];if(e)if("10"===e.ai||"11"===e.ai||"17"===e.ai)this.method="10";else if("90"===e.ai){var n=/^90(?:[1-9][0-9]?[0-9]?)?[A-Z]/.test(t);this.method=n?"11":"0"}else this.method="0";else this.method="0"},o.prototype.getVersionVariant=function(){var t=this.bitBuffer,n=this.columns;this.versionMeta=e.getVersionVariant_CCA(n,t.length)},o.prototype._encode=function(){this._encodeMethod();var e=this.method,n=this.columns,o="";switch(e){case"10":o=this._encode_10();break;case"11":o=this._encode_11();break;case"0":o=this._encode_0()}if(this._gpdEncodation.encodeGeneralData(o,n),this.getVersionVariant(),!this.versionMeta)throw new t.barcode.TextTooLongException;this._gpdEncodation.padTo(this.versionMeta.bits)},o.prototype.genEcc=function(){var t=this.bitBuffer,n=this.versionMeta,o=t.getGroupedBits(16),r=[];e.encode928(o,r,t.length),this.data=r,this.ecc=e.generateECCForMicro(r,n.ecCws),this.rows=n.rows,this.autoHeight&&(this.encodeConfig.height=2*n.rows)},o.prototype.calculateData=function(){var t=this;this._encode(),this.genEcc();var n=this.data,o=this.ecc,r=this.columns,i=this.rows,a=n.concat(o),s=e.createModules(i,r);a.forEach(function(t,e){var n=Math.floor(e/r),o=e%r;s[n][o]=t});var c=[];return s.forEach(function(e,n){c.push(t._buildRow(e,n))}),c},o}(e.PDF417Base);e.CCA=n}(e.composite||(e.composite={}))}(t.barcode||(t.barcode={}))}(wijmo||(wijmo={})),function(t){!function(e){!function(e){var n=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),n.prototype.getVersionVariant=function(){var t=this.bitBuffer,n=this.columns;this.versionMeta=e.getECCBVersionVariantByCol(n,t.length)},n.prototype.getBytes=function(){return this._encode(),this.bitBuffer.getGroupedBits(8)},n}(e.CCA),o=function(o){function r(e,r,i,a){void 0===r&&(r=4),void 0===i&&(i=1);var s=this,c={text:e,unitSize:i,compactionMode:"byte",quietZone:{top:0,right:0,left:0,bottom:0}};a&&(c.height=a),(s=o.call(this,new t.barcode.Option(c))||this).columns=r;var u=new n(e,r,i,a);return s.bytes=u.getBytes(),s.autoHeight=!a,s}return __extends(r,o),r.prototype.genEcc=function(){var n=this.data,o=this.columns,r=n.length,i=e.getVersionVariantByCol(o,r),a=i.rows*i.cols-i.ecCws;if(a<r)throw new t.barcode.TextTooLongException;for(var s=a-r;s>0;)n.push(e.PDF417Base.PAD),s--;this.versionMeta=i,this.ecc=e.generateECCForMicro(n,i.ecCws),this.rows=i.rows,this.columns=i.cols,this.autoHeight&&(this.encodeConfig.height=2*i.rows)},r.prototype.encode=function(){var n=this.bytes,o=[];return t.barcode.Utils.sliceArray(n,6,function(t){if(6===t.length){var e=5,n=0,r=[];t.forEach(function(t){n+=t*Math.pow(256,e--)});var i=0,a=Math.floor(n/Math.pow(900,i))%900;do{r.unshift(a),a=Math.floor(n/Math.pow(900,++i))%900}while(a>0);for(;r.length<5;)r.unshift(0);o=o.concat(r)}else t.forEach(function(t){o.push(t)})}),o.unshift(n.length%6==0?e.MODE_BC6:e.MODE_BC),o.unshift(920),o},r.prototype.calculateData=function(){var t=this;this.data=this.encode(),this.genEcc();var n=this.data,o=this.ecc,r=this.columns,i=this.rows,a=n.concat(o),s=e.createModules(i,r);a.forEach(function(t,e){var n=Math.floor(e/r),o=e%r;s[n][o]=t});var c=[];return s.forEach(function(e,n){c.push(t._buildRow(e,n))}),c},r}(e.MicroPDF417Encoder);e.CCB=o}(e.composite||(e.composite={}))}(t.barcode||(t.barcode={}))}(wijmo||(wijmo={})),function(t){!function(e){!function(e){var n={CCA:"CCA",CCB:"CCB"},o=function(o){function r(t){var e=this;t.merge(r.DefaultConfig);var n=(e=o.call(this,t)||this).config,i=n.linkage,a=n.hideLinkageText,s=n.hideAIText;return e.linkageText=i,e.linkage=!!i,e.hideLinkageText=a,e.hideAIText=s,e}return __extends(r,o),r.combins=function(t,e){var n,o,r,i,a;for(t-e>e?(i=e,r=t-e):(i=t-e,r=e),a=1,o=1,n=t;n>r;n--)a*=n,o<=i&&(a/=o,o++);for(;o<=i;o++)a/=o;return a},r.getRSSwidths=function(t,e,n,o,i){var a,s,c,u,d,h=0,l=[];for(a=0;a<n-1;a++){for(s=1,h|=1<<a;;s++,h&=~(1<<a)){if(u=r.combins(e-s-1,n-a-2),!i&&0==h&&e-s-(n-a-1)>=n-a-1&&(u-=r.combins(e-s-(n-a),n-a-2)),n-a-1>1){for(d=0,c=e-s-(n-a-2);c>o;c--)d+=r.combins(e-s-c-1,n-a-3);u-=d*(n-1-a)}else e-s>o&&u--;if((t-=u)<0)break}t+=u,e-=s,l[a]=s}return l[a]=e,l},r.getRSSvalue=function(t,e,n,o){var i,a,s,c,u,d,h,l=0,p=0;for(i=c=0;c<e;c++)i+=t[c];for(a=0;a<e-1;a++){for(s=1,p|=1<<a;s<t[a];s++,p&=~(1<<a))d=r.combins(i-s-1,e-a-2);if(!o&&0==p&&i-s-(e-a-1)>=e-a-1&&(d-=r.combins(i-s-(e-a),e-a-2)),e-a-1>1){for(h=0,u=i-s-(e-a-2);u>n;u--)h+=r.combins(i-s-u-1,e-a-3);d-=h*(e-1-a)}else i-s>n&&(l+=--d);i-=s}return l},r.getGroup=function(t,e){for(var n=0,o=t.length;n<o;n++){var r=t[n];if(e>=r[0]&&e<=r[1])return{range:{from:r[0],to:r[1]},preTotal:r[2],oddModules:r[3],evenModules:r[4],oddElements:r[5],evenElements:r[6],oddTotal:r[7],evenTotal:r[8]}}},r.getChecksum=function(t,e){return t.reduce(function(t,n,o){return t+=n*e[o]},0)},r.makeComplementPattern=function(e){var n="";return t.barcode.Utils.loop(function(t){n+="1"===e[t]?"0":"1"},e.length),n},r.makeAlternatePattern=function(e,n){var o="",r=!n;return t.barcode.Utils.loop(function(){o+=r?"1":"0",r=!r},e),o},r.makeComplexPattern=function(e){var n="",o="",i=!1;return t.barcode.Utils.loop(function(a){"0"===e[a]?(i&&(n+=t.barcode.Utils.strRepeat("0",o.length),o=""),o+="0",i=!1):(i||(n+=r.makeAlternatePattern(o.length),o=""),o+="1",i=!0)},e.length),n+=i?t.barcode.Utils.strRepeat("0",o.length):r.makeAlternatePattern(o.length)},r.prototype.convertToShape=function(t,e){this.linkage?this._convertToShapeForLinkage(t,e):o.prototype.convertToShape.call(this,t,e)},r.prototype.getLinkageOffset=function(t,e){},r.prototype.getLinkageSepPattern=function(t){},r.prototype._convertToShapeForLinkage=function(o,r){var i=this,a=i.label,s=i.encodeConfig,c=s.quietZone,u=s.isLabelBottom,d=s.height,h=s.showLabel,l=s.fontSizeInUnit,p=i.style,f=p.textAlign,m=p.unitValue,g=i.linkageText,b=i.config,v=b.linkageVersion,C=b.linkageHeight,w=i.linkageColumnCnt,S=v===n.CCA?new e.CCA(g,w,m,C):new e.CCB(g,w,m,C);S.toSymbol();var _=S.getMainArea(),y=this.getLinkageSepPattern(o),B=_.getSize(),x=0;a&&h&&(x=l),d=d-B.height-1;var D=o.length,E=d,P=this.getLinkageOffset(o,B.width),k=new t.barcode.VerticalLayoutArea,A=new t.barcode.SymbolArea(D,E),M=new t.barcode.SymbolArea(D,1);k.setStyle({padding:{top:c.top,right:c.right,bottom:c.bottom,left:c.left}}),A.setStyle({margin:{left:P.symbolOffset}}),M.setStyle({margin:{left:P.symbolOffset}}),_.setStyle({margin:{left:P.linkageOffset}});var O=A.getSize(),T=new t.barcode.LabelArea(O.width,x,f);u?(k.append(_),k.append(M),k.append(A),k.append(T)):(k.append(T),k.append(_),k.append(M),k.append(A)),r||(M.fromPattern(y),A.fromPattern(o),T.append({text:a}),this.shapes=k.toShapes()),this.size=k.getSize()},r.DefaultConfig={linkage:"",linkageVersion:"CCA",hideLinkageText:!1,hideAIText:!1},r.LinkageVersion=n,r}(t.barcode.OneDimensionalBarcode);e.GS1DataBarBase=o}(e.composite||(e.composite={}))}(t.barcode||(t.barcode={}))}(wijmo||(wijmo={})),function(t){!function(e){!function(e){var n=function(n){function o(o){var r=n.call(this,o)||this,i=r,a=i.encodeConfig.text,s=i.linkage,c=i.hideLinkageText,u=i.linkageText,d=i.hideAIText;return r.text=a.replace(/\(|\)/g,""),r.label=a,s&&!c&&(r.label+=u),d&&(r.label=r.label.replace(/\(\w*\)/g,"")),r._bitBuffer=new t.barcode.BitBuffer,r._gpdEncodation=new e.GS1GeneralPurposeDataEncodation(r._bitBuffer),r.finderPatternSeq=null,r.symbolContentSize=null,r.linkageColumnCnt=4,r}return __extends(o,n),o.getFinderPatternSeq=function(t){var e=~~((t-3)/2);return o.FinderPatternSeq[e]},o.isVersion1Finder=function(t){return["A1","B1","C1","D1","E1","F1"].indexOf(t)>-1},o.prototype._getSubsetWidth=function(n,r){void 0===r&&(r=!1);var i=e.GS1DataBarBase.getGroup(o.Group,n),a=~~((n-i.preTotal)/i.evenTotal),s=(n-i.preTotal)%i.evenTotal,c=e.GS1DataBarBase.getRSSwidths(a,i.oddModules,4,i.oddElements,!1),u=e.GS1DataBarBase.getRSSwidths(s,i.evenModules,4,i.evenElements,!0),d=[];return t.barcode.Utils.loop(function(t){d.push(c[t]),d.push(u[t])},4),r?d:d.reverse()},o.prototype._getChecksum=function(n){var r=this,i=0;return n.forEach(function(n,a){var s,c;if(0===a)s=r.finderPatternSeq[0],c=!1;else{var u=a-1;s=r.finderPatternSeq[1+~~(u/2)],c=t.barcode.Utils.isEven(u)}var d=o.ChecksumWeight[s][c?"left":"right"];d=c?d:d.concat().reverse(),i+=e.GS1DataBarBase.getChecksum(n,d)}),i=i%211+211*(this.symbolContentSize-4)},o.prototype._getContent=function(e){var n=this,r=[];return e.forEach(function(e,i){if(t.barcode.Utils.isEven(i)){r.push.apply(r,e);var a=n.finderPatternSeq[~~(i/2)];r.push.apply(r,o.FinderPattern[a])}else r.push.apply(r,e)}),r},o.prototype._addLength=function(e){var n=this._bitBuffer,o=1+~~((n.length+11)/12);n.putBitAt(!t.barcode.Utils.isEven(o),1+e),n.putBitAt(o>14,2+e)},o.prototype._encode=function(){var t=this.text;o.MethodReg_0100.test(t)?this._encode_0100():o.MethodReg_0101.test(t)?this._encode_0101():o.MethodReg_0111000_0111111.test(t)?this._encode_0111000_0111111():o.MethodReg_01100.test(t)?this._encode_01100():o.MethodReg_01101.test(t)?this._encode_01101():o.MethodReg_1.test(t)?this._encode_1():this._encode_00()},o.prototype._encode_1=function(){var e=this.text,n=this._bitBuffer,r=this._gpdEncodation,i=o.MethodReg_1.exec(e),a=i[2];n.putBits("1"),n.putBits("00"),n.put(+a[0],4),t.barcode.Utils.sliceString(a.substr(1),3,function(t){n.put(+t,10)}),r.encode(i[4]),this._addLength(1)},o.prototype._encode_0100=function(){var e=this.text,n=this._bitBuffer,r=o.MethodReg_0100.exec(e),i=r[2],a=+r[4];if(a>32767)throw new t.barcode.InvalidTextException(e,"With method 0100, the weight should not larger than 32767.");n.putBits("0100"),t.barcode.Utils.sliceString(i,3,function(t){n.put(+t,10)}),n.put(a,15)},o.prototype._encode_0101=function(){var e=this.text,n=this._bitBuffer,r=o.MethodReg_0101.exec(e),i=r[2],a="2"==r[4][0],s=+r[5];if(a&&s>999||!a&&s>22767)throw new t.barcode.InvalidTextException(e,"With method 0101, the weight should not larger than "+s+".");n.putBits("0101"),t.barcode.Utils.sliceString(i,3,function(t){n.put(+t,10)}),n.put(a?s:s+1e4,15)},o.prototype._encode_0111000_0111111=function(){var e=this.text,n=this._bitBuffer,r=o.MethodReg_0111000_0111111.exec(e),i=r[2],a=+r[6][1];"1"===r[4][1]&&a--,a+=56,n.put(a,7),t.barcode.Utils.sliceString(i,3,function(t){n.put(+t,10)}),n.put(+(r[4][3]+r[5]),20);var s=/^(\d{2})(\d{2})(\d{2})$/.exec(r[7]);n.put(384*+s[1]+32*(+s[2]-1)+ +s[3],16)},o.prototype._encode_01100=function(){var e=this.text,n=this._bitBuffer,r=this._gpdEncodation,i=o.MethodReg_01100.exec(e),a=i[2];n.putBits("01100"),n.putBits("00"),t.barcode.Utils.sliceString(a,3,function(t){n.put(+t,10)}),n.put(+i[4],2),r.encode(i[5]),this._addLength(5)},o.prototype._encode_01101=function(){var e=this.text,n=this._bitBuffer,r=this._gpdEncodation,i=o.MethodReg_01101.exec(e),a=i[2];n.putBits("01101"),n.putBits("00"),t.barcode.Utils.sliceString(a,3,function(t){n.put(+t,10)}),n.put(+i[4],2),n.put(+i[5],10),r.encode(i[6]),this._addLength(5)},o.prototype._encode_00=function(){var t=this.text,e=this._bitBuffer,n=this._gpdEncodation;e.putBits("00"),e.putBits("00"),n.encode(t),this._addLength(2)},o.prototype.makeDataWidth=function(){var e=this,n=this._bitBuffer,r=this.linkage;n.putBit(r),this._encode();var i=1+~~((n.length+11)/12),a=n.getGroupedBits(12).map(function(n,o){return e._getSubsetWidth(n,!t.barcode.Utils.isEven(o))});this.finderPatternSeq=o.getFinderPatternSeq(i),this.symbolContentSize=i;var s=this._getChecksum(a),c=this._getSubsetWidth(s,!0);return a.unshift(c),this._getContent(a)},o.prototype.calculateData=function(){var e=this.makeDataWidth();return e=o.Guard.concat(e,o.Guard),t.barcode.Utils.toZeroOnePattern(e)},o.prototype.getLinkageSepPattern=function(n){var r=this,i=n.substr(2,n.length-4),a="";return t.barcode.Utils.sliceString(i,49,function(t,n){var i=r.finderPatternSeq[n],s=o.FinderPattern[i];if(a+=e.GS1DataBarBase.makeComplementPattern(t.substr(0,17)),o.isVersion1Finder(i)){var c=s[0]+s[1]+s[2],u=s[3]+s[4];a+=e.GS1DataBarBase.makeComplexPattern(t.substr(17,c)),a+=e.GS1DataBarBase.makeComplementPattern(t.substr(17+c,u))}else{c=s[0]+s[1],u=s[2]+s[3]+s[4];a+=e.GS1DataBarBase.makeComplementPattern(t.substr(17,c)),a+=e.GS1DataBarBase.makeComplexPattern(t.substr(17+c,u))}49===t.length&&(a+=e.GS1DataBarBase.makeComplementPattern(t.substr(32,17)))}),"0000"+a.substr(2,a.length-4)+"0000"},o.prototype.getLinkageOffset=function(t){for(var e=1;"1"===t[e];)e++;return{linkageOffset:e,symbolOffset:0}},o.Guard=[1,1],o.Group=[[0,347,0,12,5,7,2,87,4],[348,1387,348,10,7,5,4,52,20],[1388,2947,1388,8,9,4,5,30,52],[2948,3987,2948,6,11,3,6,10,104],[3988,4191,3988,4,13,1,8,1,204]],o.FinderPattern={A1:[1,8,4,1,1],B1:[3,6,4,1,1],C1:[3,4,6,1,1],D1:[3,2,8,1,1],E1:[2,6,5,1,1],F1:[2,2,9,1,1],A2:[1,1,4,8,1],B2:[1,1,4,6,3],C2:[1,1,6,4,3],D2:[1,1,8,2,3],E2:[1,1,5,6,2],F2:[1,1,9,2,2]},o.ChecksumWeight={A1:{right:[1,3,9,27,81,32,96,77]},A2:{left:[20,60,180,118,143,7,21,63],right:[189,145,13,39,117,140,209,205]},B1:{left:[193,157,49,147,19,57,171,91],right:[62,186,136,197,169,85,44,132]},B2:{left:[185,133,188,142,4,12,36,108],right:[113,128,173,97,80,29,87,50]},C1:{left:[150,28,84,41,123,158,52,156],right:[46,138,203,187,139,206,196,166]},C2:{left:[76,17,51,153,37,111,122,155],right:[43,129,176,106,107,110,119,146]},D1:{left:[16,48,144,10,30,90,59,177],right:[109,116,137,200,178,112,125,164]},D2:{left:[70,210,208,202,184,130,179,115],right:[134,191,151,31,93,68,204,190]},E1:{left:[148,22,66,198,172,94,71,2],right:[6,18,54,162,64,192,154,40]},E2:{left:[120,149,25,75,14,42,126,167],right:[79,26,78,23,69,207,199,175]},F1:{left:[103,98,83,38,114,131,182,124],right:[161,61,183,127,170,88,53,159]},F2:{left:[55,165,73,8,24,72,5,15],right:[45,135,194,160,58,174,100,89]}},o.FinderPatternSeq=[["A1","A2"],["A1","B2","B1"],["A1","C2","B1","D2"],["A1","E2","B1","D2","C1"],["A1","E2","B1","D2","D1","F2"],["A1","E2","B1","D2","E1","F2","F1"],["A1","A2","B1","B2","C1","C2","D1","D2"],["A1","A2","B1","B2","C1","C2","D1","E2","E1"],["A1","A2","B1","B2","C1","C2","D1","E2","F1","F2"],["A1","A2","B1","B2","C1","C2","D1","E2","E1","F2","F1"]],o.MethodReg_0100=/^([01])19([0-9]{12})(.)3103([0-9]{6})$/,o.MethodReg_0101=/^([01])19([0-9]{12})(.)320([23])0([0-9]{5})$/,o.MethodReg_0111000_0111111=/^([01])19([0-9]{12})(.)(3[12]0[0-9])0([0-9]{5})(1[1357])([0-9]{6})$/,o.MethodReg_01100=/^([01])19([0-9]{12})(.)392([0-3])(.+)$/,o.MethodReg_01101=/^([01])19([0-9]{12})(.)393([0-3])([0-9]{3})(.+)$/,o.MethodReg_1=/([01])1([0-9]{13})(.)(.*)$/,o}(e.GS1DataBarBase);e.Expanded=n}(e.composite||(e.composite={}))}(t.barcode||(t.barcode={}))}(wijmo||(wijmo={})),function(t){!function(e){!function(e){var n=function(n){function o(t){var e=n.call(this,t)||this,o=e,r=o.encodeConfig,i=r.text,a=r.hideExtraChecksum,s=o.hideLinkageText,c=o.linkageText,u=o.linkage,d=o.hideAIText;return e.label=i,i.length<18&&(i+=e._getCheckDigit(i),a||(e.label=i)),u&&!s&&(e.label+=c),d&&(e.label=e.label.replace(/\(\w*\)/g,"")),e.text=i,e.linkageColumnCnt=4,e}return __extends(o,n),o.prototype.validate=function(){var e=this.encodeConfig.text;if(!/^\(01\)(\d{13}|\d{14})$/.test(e))throw new t.barcode.InvalidTextException(e,"Text should be numbers. The length should be 17 or 18.");if(18===e.length&&this._getCheckDigit(e)!=e[17])throw new t.barcode.InvalidTextException(e,"Check digit is invalid.")},o.prototype._getCheckDigit=function(e){var n=t.barcode.Utils.str2Array(e.substr(4,13)).reduce(function(e,n,o){return n=+n,e+=t.barcode.Utils.isOdd(o)?n:3*n},0)%10;return 0===n?0:10-n},o.prototype._getSubsetWidth=function(n,r){var i,a,s=r?o.Group.InSide:o.Group.OutSide,c=e.GS1DataBarBase.getGroup(s,n),u=r?c.oddTotal:c.evenTotal;r?(a=~~((n-c.preTotal)/u),i=(n-c.preTotal)%u):(i=~~((n-c.preTotal)/u),a=(n-c.preTotal)%u);var d=e.GS1DataBarBase.getRSSwidths(i,c.oddModules,4,c.oddElements,!r),h=e.GS1DataBarBase.getRSSwidths(a,c.evenModules,4,c.evenElements,r),l=[];return t.barcode.Utils.loop(function(t){l.push(d[t]),l.push(h[t])},4),l},o.prototype._getFinderPatternWidth=function(e){var n=o.FinderPattern[e],r="";return t.barcode.Utils.loop(function(t){r+=n[t]},5),t.barcode.Utils.str2Array(r)},o.prototype._getChecksum=function(t){var n=t.width1,r=t.width2,i=t.width3,a=t.width4,s=0;return s+=e.GS1DataBarBase.getChecksum(n,o.ChecksumWeight[0]),s+=e.GS1DataBarBase.getChecksum(r,o.ChecksumWeight[1]),s+=e.GS1DataBarBase.getChecksum(i,o.ChecksumWeight[2]),s+=e.GS1DataBarBase.getChecksum(a,o.ChecksumWeight[3]),(s%=79)>=8&&s++,s>=72&&s++,s},o.prototype._getSymbolCharacterWidth=function(t){var e=~~(t/4537077),n=t%4537077,o=~~(e/1597),r=e%1597,i=~~(n/1597),a=n%1597;return{width1:this._getSubsetWidth(o,!1),width2:this._getSubsetWidth(r,!0),width3:this._getSubsetWidth(i,!1),width4:this._getSubsetWidth(a,!0)}},o.prototype.getSymbolStructure=function(){var t=this.text,e=this.linkage,n=t.substr(4,13),o=e?+n+1e13:+n,r=this._getSymbolCharacterWidth(o),i=this._getChecksum(r),a=~~(i/9),s=i%9,c=this._getFinderPatternWidth(a),u=this._getFinderPatternWidth(s);return{width1:r.width1,width2:r.width2,width3:r.width3,width4:r.width4,leftFinderPattern:c,rightFinderPattern:u}},o.prototype.getLinkageSepPattern=function(t){var n="";return n+=e.GS1DataBarBase.makeComplementPattern(t.substr(2,16)),n+=e.GS1DataBarBase.makeComplexPattern(t.substr(18,13)),n+=e.GS1DataBarBase.makeComplementPattern(t.substr(31,34)),n+=e.GS1DataBarBase.makeComplexPattern(t.substr(65,13)),"0000"+(n+=e.GS1DataBarBase.makeComplementPattern(t.substr(78,16))).substr(2,n.length-2)+"0000"},o.prototype.calculateData=function(){var e=this.getSymbolStructure(),n=e.width1,r=e.width2,i=e.width3,a=e.width4,s=e.leftFinderPattern,c=e.rightFinderPattern,u=n.concat(s,r.reverse(),a,c.reverse(),i.reverse());return o.LeftGuard+t.barcode.Utils.toZeroOnePattern(u)+o.RightGuard},o.LeftGuard="01",o.RightGuard="01",o.Group={OutSide:[[0,160,0,12,4,8,1,161,1],[161,960,161,10,6,6,3,80,10],[961,2014,961,8,8,4,5,31,34],[2015,2714,2015,6,10,3,6,10,70],[2715,2840,2715,4,12,1,8,1,126]],InSide:[[0,335,0,5,10,2,7,4,84],[336,1035,336,7,8,4,5,20,35],[1036,1515,1036,9,6,6,3,48,10],[1516,1596,1516,11,4,8,1,81,1]]},o.ChecksumWeight=[[1,3,9,27,2,6,18,54],[4,12,36,29,8,24,72,58],[16,48,65,37,32,17,51,74],[64,34,23,69,49,68,46,59]],o.FinderPattern=[[3,8,2,1,1],[3,5,5,1,1],[3,3,7,1,1],[3,1,9,1,1],[2,7,4,1,1],[2,5,6,1,1],[2,3,8,1,1],[1,5,7,1,1],[1,3,9,1,1]],o}(e.GS1DataBarBase);e.GS1DataBarFirstType=n}(e.composite||(e.composite={}))}(t.barcode||(t.barcode={}))}(wijmo||(wijmo={})),function(t){!function(e){!function(e){var n=function(n){function o(){var t=null!==n&&n.apply(this,arguments)||this;return t.linkageColumnCnt=3,t}return __extends(o,n),o.prototype._getSubsetWidth=function(n){var r=e.GS1DataBarBase.getGroup(o.Group,n),i=~~((n-r.preTotal)/r.evenTotal),a=(n-r.preTotal)%r.evenTotal,s=e.GS1DataBarBase.getRSSwidths(i,r.oddModules,7,r.oddElements,!0),c=e.GS1DataBarBase.getRSSwidths(a,r.evenModules,7,r.evenElements,!1),u=[];return t.barcode.Utils.loop(function(t){u.push(s[t]),u.push(c[t])},7),u},o.prototype._getChecksum=function(t){var n=t.leftWidth,r=t.rightWidth,i=0;return i+=e.GS1DataBarBase.getChecksum(n,o.ChecksumWeight[0]),i+=e.GS1DataBarBase.getChecksum(r,o.ChecksumWeight[1]),i%=89},o.prototype._getSymbolCharacterWidth=function(t){var e=~~(t/2013571),n=t%2013571;return{leftWidth:this._getSubsetWidth(e),rightWidth:this._getSubsetWidth(n)}},o.prototype.getLinkageSepPattern=function(t){t=t.substr(0,t.length-5);var n=e.GS1DataBarBase.makeComplementPattern(t);return"0000"+n.substr(4,n.length-8)+"0000"},o.prototype.getSymbolStructure=function(){var t=this.text,e=this.linkage,n=t.substr(4,13),r=e?+n+2015133531096:+n,i=this._getSymbolCharacterWidth(r),a=this._getChecksum(i),s=o.ChecksumWidth[a];return{leftWidth:i.leftWidth,rightWidth:i.rightWidth,checksumWidth:s}},o.prototype.getLinkageOffset=function(t,e){for(var n=t.length-1-5;"1"===t[n];)n--;return{linkageOffset:0,symbolOffset:e-n-1}},o.prototype.calculateData=function(){var e=this.getSymbolStructure(),n=e.leftWidth,r=e.rightWidth,i=e.checksumWidth,a=n.concat(i,r);return o.LeftGuard+t.barcode.Utils.toZeroOnePattern(a)+o.RightGuard},o.LeftGuard="01",o.RightGuard="0100000",o.Group=[[0,183063,0,17,9,6,3,6538,28],[183064,820063,183064,13,13,5,4,875,728],[820064,1000775,820064,9,17,3,6,28,6454],[1000776,1491020,1000776,15,11,5,4,2415,203],[1491021,1979844,1491021,11,15,4,5,203,2408],[1979845,1996938,1979845,19,7,8,1,17094,1],[1996939,2013570,1996939,7,19,1,8,1,16632]],o.ChecksumWeight=[[1,3,9,27,81,65,17,51,64,14,42,37,22,66],[20,60,2,6,18,54,73,41,34,13,39,28,84,74]],o.ChecksumWidth=[[1,1,1,1,1,1,1,1,1,1,3,3,1,1],[1,1,1,1,1,1,1,1,1,2,3,2,1,1],[1,1,1,1,1,1,1,1,1,3,3,1,1,1],[1,1,1,1,1,1,1,2,1,1,3,2,1,1],[1,1,1,1,1,1,1,2,1,2,3,1,1,1],[1,1,1,1,1,1,1,3,1,1,3,1,1,1],[1,1,1,1,1,2,1,1,1,1,3,2,1,1],[1,1,1,1,1,2,1,1,1,2,3,1,1,1],[1,1,1,1,1,2,1,2,1,1,3,1,1,1],[1,1,1,1,1,3,1,1,1,1,3,1,1,1],[1,1,1,2,1,1,1,1,1,1,3,2,1,1],[1,1,1,2,1,1,1,1,1,2,3,1,1,1],[1,1,1,2,1,1,1,2,1,1,3,1,1,1],[1,1,1,2,1,2,1,1,1,1,3,1,1,1],[1,1,1,3,1,1,1,1,1,1,3,1,1,1],[1,2,1,1,1,1,1,1,1,1,3,2,1,1],[1,2,1,1,1,1,1,1,1,2,3,1,1,1],[1,2,1,1,1,1,1,2,1,1,3,1,1,1],[1,2,1,1,1,2,1,1,1,1,3,1,1,1],[1,2,1,2,1,1,1,1,1,1,3,1,1,1],[1,3,1,1,1,1,1,1,1,1,3,1,1,1],[1,1,1,1,1,1,1,1,2,1,2,3,1,1],[1,1,1,1,1,1,1,1,2,2,2,2,1,1],[1,1,1,1,1,1,1,1,2,3,2,1,1,1],[1,1,1,1,1,1,1,2,2,1,2,2,1,1],[1,1,1,1,1,1,1,2,2,2,2,1,1,1],[1,1,1,1,1,1,1,3,2,1,2,1,1,1],[1,1,1,1,1,2,1,1,2,1,2,2,1,1],[1,1,1,1,1,2,1,1,2,2,2,1,1,1],[1,1,1,1,1,2,1,2,2,1,2,1,1,1],[1,1,1,1,1,3,1,1,2,1,2,1,1,1],[1,1,1,2,1,1,1,1,2,1,2,2,1,1],[1,1,1,2,1,1,1,1,2,2,2,1,1,1],[1,1,1,2,1,1,1,2,2,1,2,1,1,1],[1,1,1,2,1,2,1,1,2,1,2,1,1,1],[1,1,1,3,1,1,1,1,2,1,2,1,1,1],[1,2,1,1,1,1,1,1,2,1,2,2,1,1],[1,2,1,1,1,1,1,1,2,2,2,1,1,1],[1,2,1,1,1,1,1,2,2,1,2,1,1,1],[1,2,1,1,1,2,1,1,2,1,2,1,1,1],[1,2,1,2,1,1,1,1,2,1,2,1,1,1],[1,3,1,1,1,1,1,1,2,1,2,1,1,1],[1,1,1,1,1,1,1,1,3,1,1,3,1,1],[1,1,1,1,1,1,1,1,3,2,1,2,1,1],[1,1,1,1,1,1,1,2,3,1,1,2,1,1],[1,1,1,2,1,1,1,1,3,1,1,2,1,1],[1,2,1,1,1,1,1,1,3,1,1,2,1,1],[1,1,1,1,1,1,2,1,1,1,2,3,1,1],[1,1,1,1,1,1,2,1,1,2,2,2,1,1],[1,1,1,1,1,1,2,1,1,3,2,1,1,1],[1,1,1,1,1,1,2,2,1,1,2,2,1,1],[1,1,1,2,1,1,2,1,1,1,2,2,1,1],[1,1,1,2,1,1,2,1,1,2,2,1,1,1],[1,1,1,2,1,1,2,2,1,1,2,1,1,1],[1,1,1,2,1,2,2,1,1,1,2,1,1,1],[1,1,1,3,1,1,2,1,1,1,2,1,1,1],[1,2,1,1,1,1,2,1,1,1,2,2,1,1],[1,2,1,1,1,1,2,1,1,2,2,1,1,1],[1,2,1,2,1,1,2,1,1,1,2,1,1,1],[1,1,1,1,2,1,1,1,1,1,2,3,1,1],[1,1,1,1,2,1,1,1,1,2,2,2,1,1],[1,1,1,1,2,1,1,1,1,3,2,1,1,1],[1,1,1,1,2,1,1,2,1,1,2,2,1,1],[1,1,1,1,2,1,1,2,1,2,2,1,1,1],[1,1,1,1,2,2,1,1,1,1,2,2,1,1],[1,2,1,1,2,1,1,1,1,1,2,2,1,1],[1,2,1,1,2,1,1,1,1,2,2,1,1,1],[1,2,1,1,2,1,1,2,1,1,2,1,1,1],[1,2,1,1,2,2,1,1,1,1,2,1,1,1],[1,2,1,2,2,1,1,1,1,1,2,1,1,1],[1,3,1,1,2,1,1,1,1,1,2,1,1,1],[1,1,2,1,1,1,1,1,1,1,2,3,1,1],[1,1,2,1,1,1,1,1,1,2,2,2,1,1],[1,1,2,1,1,1,1,1,1,3,2,1,1,1],[1,1,2,1,1,1,1,2,1,1,2,2,1,1],[1,1,2,1,1,1,1,2,1,2,2,1,1,1],[1,1,2,1,1,1,1,3,1,1,2,1,1,1],[1,1,2,1,1,2,1,1,1,1,2,2,1,1],[1,1,2,1,1,2,1,1,1,2,2,1,1,1],[1,1,2,2,1,1,1,1,1,1,2,2,1,1],[2,1,1,1,1,1,1,1,1,2,2,2,1,1],[2,1,1,1,1,1,1,1,1,3,2,1,1,1],[2,1,1,1,1,1,1,2,1,1,2,2,1,1],[2,1,1,1,1,1,1,2,1,2,2,1,1,1],[2,1,1,1,1,1,1,3,1,1,2,1,1,1],[2,1,1,1,1,2,1,1,1,2,2,1,1,1],[2,1,1,1,1,2,1,2,1,1,2,1,1,1],[2,1,1,2,1,1,1,1,1,2,2,1,1,1],[2,1,1,1,1,1,1,1,2,2,1,2,1,1]],o}(e.GS1DataBarFirstType);e.Limited=n}(e.composite||(e.composite={}))}(t.barcode||(t.barcode={}))}(wijmo||(wijmo={})),function(t){!function(e){!function(e){var n=function(n){function o(t){var e=this;return t.merge(o.DefaultConfig),(e=n.call(this,t)||this).linkageColumnCnt=2,e}return __extends(o,n),o.prototype.calculateData=function(){var n=this.getSymbolStructure(),r=n.width1,i=n.width2,a=n.width3,s=n.width4,c=n.leftFinderPattern,u=n.rightFinderPattern,d=r.concat(c,i.reverse()),h=s.concat(u.reverse(),a.reverse());return{topRow:d=e.GS1DataBarFirstType.LeftGuard+t.barcode.Utils.toZeroOnePattern(d)+o.RightGuard,bottomRow:h=o.LeftGuard+t.barcode.Utils.toZeroOnePattern(h,!0)+e.GS1DataBarFirstType.RightGuard,separators:this.getSeparator(d,h)}},o.prototype.getLinkageSepPattern=function(t){var n="";return n+=e.GS1DataBarBase.makeComplementPattern(t.substr(2,16)),n+=e.GS1DataBarBase.makeComplexPattern(t.substr(18,13)),"0000"+(n+=e.GS1DataBarBase.makeComplementPattern(t.substr(31,15))).substr(2,n.length-2)+"0000"},o.prototype.convertToShape=function(t,e){this.linkage?this._convertToShapeForLinkage(t,e):this._convertToShape(t,e)},o.prototype.getLinkageOffset=function(t){for(var e=0;"1"===t[e];)e++;return{linkageOffset:++e,symbolOffset:0}},o.prototype._convertToShapeForLinkage=function(n,o){var r=this,i=r.label,a=r.encodeConfig,s=a.quietZone,c=a.isLabelBottom,u=a.height,d=a.showLabel,h=a.fontSizeInUnit,l=r.config.ratio,p=r.style,f=p.textAlign,m=p.unitValue,g=r.linkageText,b=r.config,v=b.linkageVersion,C=b.linkageHeight,w=r.linkageColumnCnt,S=v===e.GS1DataBarBase.LinkageVersion.CCA?new e.CCA(g,w,m,C):new e.CCB(g,w,m,C);S.toSymbol();var _=S.getMainArea(),y=this.getLinkageSepPattern(n.topRow),B=0;i&&d&&(B=h);var x=n.separators.length,D=this.getLinkageOffset(n),E=new t.barcode.VerticalLayoutArea,P=new t.barcode.LabelArea(50,B,f),k=new t.barcode.SymbolArea(50,(u-x)*l),A=new t.barcode.SymbolArea(50,(u-x)*(1-l)),M=new t.barcode.SymbolArea(50,1);E.setStyle({padding:{top:s.top,right:s.right,bottom:s.bottom,left:s.left}}),_.setStyle({margin:{left:D.linkageOffset}}),c||E.append(P),E.append(_),E.append(M),E.append(k);var O=[];n.separators.forEach(function(){var e=new t.barcode.SymbolArea(50,1);O.push(e),E.append(e)}),E.append(A),c&&E.append(P),o||(M.fromPattern(y),k.fromPattern(n.topRow),A.fromPattern(n.bottomRow),O.forEach(function(t,e){t.fromPattern(n.separators[e])}),P.append({text:i}),this.shapes=E.toShapes()),this.size=E.getSize()},o.prototype._convertToShape=function(e,n){var o=this.label,r=this.encodeConfig,i=r.quietZone,a=r.isLabelBottom,s=r.height,c=r.showLabel,u=r.fontSizeInUnit,d=this.config.ratio,h=this.style.textAlign,l=0;o&&c&&(l=u);var p=e.separators.length,f=new t.barcode.VerticalLayoutArea;f.setStyle({padding:{top:i.top,right:i.right,bottom:i.bottom,left:i.left}});var m=new t.barcode.LabelArea(50,l,h),g=new t.barcode.SymbolArea(50,(s-p)*d),b=new t.barcode.SymbolArea(50,(s-p)*(1-d));a||f.append(m),f.append(g);var v=[];e.separators.forEach(function(){var e=new t.barcode.SymbolArea(50,1);v.push(e),f.append(e)}),f.append(b),a&&f.append(m),n||(m.append({text:o}),g.fromPattern(e.topRow),b.fromPattern(e.bottomRow),v.forEach(function(t,n){t.fromPattern(e.separators[n])}),this.shapes=f.toShapes()),this.size=f.getSize()},o.DefaultConfig={showLabel:!1,ratio:.4},o.RightGuard="10",o.LeftGuard="10",o}(e.GS1DataBarFirstType);e.StackedBase=n}(e.composite||(e.composite={}))}(t.barcode||(t.barcode={}))}(wijmo||(wijmo={})),function(t){!function(e){!function(e){var n=function(n){function o(t){var e=this;t.merge(o.DefaultConfig);var r=(e=n.call(this,t)||this).config.rowCount;return e.rowCount=r,e._hasExtraPadding=!1,e.linkageColumnCnt=4,e}return __extends(o,n),o.prototype._makeStacked=function(n){var r=this.symbolContentSize;if(!this._hasExtraPadding){var i,a=~~(n.length/o.SegmentSize);if("auto"===this.rowCount){(s=2)>a&&(s=a),i=Math.ceil(a/s),this.rowCount=s}else{var s=this.rowCount;i=Math.ceil(a/s)}if(this.rowCount>11)throw new t.barcode.TextTooLongException;var c=r%(2*i);if(this.rowSegmentCount=i,1===c)return this._bitBuffer=new t.barcode.BitBuffer,this._gpdEncodation=new e.GS1GeneralPurposeDataEncodation(this._bitBuffer,!0),this._hasExtraPadding=!0,this.calculateData()}var u=this.rowSegmentCount,d=Math.ceil(r%(2*u)/2),h=t.barcode.Utils.isEven(u),l=u*o.SegmentSize,p=[];t.barcode.Utils.sliceArray(n,l,function(n,o){var r,i=e.Expanded.Guard.concat(n,e.Expanded.Guard);t.barcode.Utils.isEven(o)?r=t.barcode.Utils.toZeroOnePattern(i):h?n.length<l&&t.barcode.Utils.isOdd(d)?r="0"+t.barcode.Utils.toZeroOnePattern(i):(i.reverse(),r=t.barcode.Utils.toZeroOnePattern(i,!0)):r=t.barcode.Utils.toZeroOnePattern(i,!0),p.push({pattern:r,role:"row"})}),this.rowCount=p.length;for(var f=[],m=1;m<p.length;){var g=p[m-1],b=p[m];f.push(g);var v=this._getSeparators(g.pattern,b.pattern,m-1);f.push.apply(f,v),m++}return f.push(p[m-1]),f},o.prototype._isVersion1Finder=function(t,e){var n=this.finderPatternSeq[~~((t+1+e)/2)];return["A1","B1","C1","D1","E1","F1"].indexOf(n)>-1},o.prototype._makeSepPattern=function(t,n){var r=Math.ceil((t.length-4)/o.SegmentWidth);t=t.substring(2,t.length-2);for(var i="",a=0,s=0;a<r;){var c=s,u=s+o.SegmentWidth,d=c+17;this._isVersion1Finder(n,a)||(d+=2),i+=e.GS1DataBarBase.makeComplementPattern(t.substr(c,d-c)),i+=e.GS1DataBarBase.makeComplexPattern(t.substr(d,13)),i+=e.GS1DataBarBase.makeComplementPattern(t.substr(d+13,u-d-13)),a++,s=u}return i=i.replace(/^(.){2}|(.){2}$/g,"0000")},o.prototype._getSeparators=function(t,n,r){var i=r*((t.length-4)/o.SegmentWidth);return[{pattern:this._makeSepPattern(t,i)},{pattern:"0000"+e.StackedBase.makeAlternatePattern(t.length-8,!0)+"0000"},{pattern:this._makeSepPattern(n,i)}]},o.prototype.calculateData=function(){var t=this.makeDataWidth();return this._makeStacked(t)},o.prototype.getLinkageOffset=function(t){for(var e=1;"1"===t[e];)e++;return{linkageOffset:e,symbolOffset:0}},o.prototype.convertToShape=function(t,e){this.linkage?this._convertToShapeForLinkage(t,e):this._convertToShape(t,e)},o.prototype._convertToShapeForLinkage=function(n,o){var r=this,i=r.label,a=r.encodeConfig,s=a.quietZone,c=a.isLabelBottom,u=a.height,d=a.showLabel,h=a.fontSizeInUnit,l=r.rowCount,p=r.style,f=p.textAlign,m=p.unitValue,g=r.linkageText,b=r.config,v=b.linkageVersion,C=b.linkageHeight,w=r.linkageColumnCnt,S=v===e.GS1DataBarBase.LinkageVersion.CCA?new e.CCA(g,w,m,C):new e.CCB(g,w,m,C);S.toSymbol();var _=S.getMainArea(),y=this.getLinkageSepPattern(n[0].pattern),B=(u-3*(l-1)-1-_.getSize().height)/l,x=n[0].pattern.length,D=0;i&&d&&(D=h);var E=this.getLinkageOffset(n[0].pattern),P=new t.barcode.VerticalLayoutArea,k=new t.barcode.SymbolArea(x,1),A=new t.barcode.LabelArea(x,D,f);P.setStyle({padding:{top:s.top,right:s.right,bottom:s.bottom,left:s.left}}),k.setStyle({margin:{left:E.symbolOffset}}),_.setStyle({margin:{left:E.linkageOffset}}),c||P.append(A),P.append(_),P.append(k);var M=[];n.forEach(function(e){var n=new t.barcode.SymbolArea(x,"row"===e.role?B:1);P.append(n),M.push({area:n,pattern:e.pattern})}),c&&P.append(A),o||(k.fromPattern(y),A.append({text:i}),M.forEach(function(t){t.area.fromPattern(t.pattern)}),this.shapes=P.toShapes()),this.size=P.getSize()},o.prototype._convertToShape=function(e,n){var o=this.label,r=this.encodeConfig,i=r.quietZone,a=r.isLabelBottom,s=r.height,c=r.showLabel,u=r.fontSizeInUnit,d=this.rowCount,h=this.style.textAlign,l=(s-3*(d-1))/d,p=e[0].pattern.length,f=0;o&&c&&(f=u);var m=new t.barcode.VerticalLayoutArea;m.setStyle({padding:{top:i.top,right:i.right,bottom:i.bottom,left:i.left}});var g=new t.barcode.LabelArea(p,f,h);a||m.append(g);var b=[];e.forEach(function(e){var n=new t.barcode.SymbolArea(p,"row"===e.role?l:1);m.append(n),b.push({area:n,pattern:e.pattern})}),a&&m.append(g),n||(g.append({text:o}),b.forEach(function(t){t.area.fromPattern(t.pattern)}),this.shapes=m.toShapes()),this.size=m.getSize()},o.DefaultConfig={rowCount:"auto"},o.SegmentWidth=49,o.SegmentSize=21,o}(e.Expanded);e.ExpandedStacked=n}(e.composite||(e.composite={}))}(t.barcode||(t.barcode={}))}(wijmo||(wijmo={})),function(t){!function(t){!function(t){var e=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return __extends(n,e),n.prototype.getSeparator=function(e,n){var o=[],r="0000";return r+=t.GS1DataBarBase.makeComplementPattern(e.substr(4,14)),r+=t.GS1DataBarBase.makeComplexPattern(e.substr(18,13)),r+=t.GS1DataBarBase.makeComplementPattern(e.substr(31,15)),r+="0000",o.push(r),r="0000",r+=t.GS1DataBarBase.makeAlternatePattern(42,!0),r+="0000",o.push(r),r="0000",r+=t.GS1DataBarBase.makeComplementPattern(n.substr(4,15)),r+=t.GS1DataBarBase.makeComplexPattern(n.substr(19,13)),r+=t.GS1DataBarBase.makeComplementPattern(n.substr(32,14)),r+="0000",o.push(r),o},n}(t.StackedBase);t.StackedOmnidirectional=e}(t.composite||(t.composite={}))}(t.barcode||(t.barcode={}))}(wijmo||(wijmo={})),function(t){!function(e){!function(e){var n=function(e){function n(t){return t.merge(n.DefaultConfig),e.call(this,t)||this}return __extends(n,e),n.prototype.getSeparator=function(e,n){var o="",r=0;return t.barcode.Utils.loop(function(t){e[t]!==n[t]?1===r?(o+="0",r=0):(o+="1",r=1):"0"===e[t]?(o+="1",r=1):(o+="0",r=0)},{from:4,to:e.length-4}),["0000"+o+"0000"]},n.DefaultConfig={height:13},n}(e.StackedBase);e.Stacked=n}(e.composite||(e.composite={}))}(t.barcode||(t.barcode={}))}(wijmo||(wijmo={})),function(t){!function(t){!function(t){var e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.getLinkageOffset=function(t,e){for(var n=t.length-1;"1"===t[n];)n--;return{linkageOffset:0,symbolOffset:e-n-1}},e}(t.GS1DataBarFirstType);t.Omnidirectional=e}(t.composite||(t.composite={}))}(t.barcode||(t.barcode={}))}(wijmo||(wijmo={})),function(t){!function(t){!function(t){var e=function(t){function e(n){return n.merge(e.DefaultConfig),t.call(this,n)||this}return __extends(e,t),e.DefaultConfig={height:13,showLabel:!1},e}(t.Omnidirectional);t.Truncated=e}(t.composite||(t.composite={}))}(t.barcode||(t.barcode={}))}(wijmo||(wijmo={})),function(t){!function(e){!function(e){t.barcode.Barcode.registerEncoder("GS1 DataBar Omnidirectional",e.Omnidirectional),t.barcode.Barcode.registerEncoder("GS1 DataBar Truncated",e.Truncated),t.barcode.Barcode.registerEncoder("GS1 DataBar Stacked",e.Stacked),t.barcode.Barcode.registerEncoder("GS1 DataBar StackedOmnidirectional",e.StackedOmnidirectional),t.barcode.Barcode.registerEncoder("GS1 DataBar Limited",e.Limited),t.barcode.Barcode.registerEncoder("GS1 DataBar Expanded",e.Expanded),t.barcode.Barcode.registerEncoder("GS1 DataBar Expanded Stacked",e.ExpandedStacked)}(e.composite||(e.composite={}))}(t.barcode||(t.barcode={}))}(wijmo||(wijmo={})),function(t){!function(t){!function(t){!function(t){t[t.Cca=0]="Cca",t[t.Ccb=1]="Ccb"}(t.Gs1DataBarLinkageVersion||(t.Gs1DataBarLinkageVersion={})),function(t){t[t.Auto=0]="Auto",t[t.Text=1]="Text",t[t.Numeric=2]="Numeric",t[t.Byte=3]="Byte"}(t.MicroPdfCompactionMode||(t.MicroPdfCompactionMode={})),function(t){t[t.ColumnPriority=0]="ColumnPriority",t[t.RowPriority=1]="RowPriority",t[t.Dim1x11=2]="Dim1x11",t[t.Dim1x14=3]="Dim1x14",t[t.Dim1x17=4]="Dim1x17",t[t.Dim1x20=5]="Dim1x20",t[t.Dim1x24=6]="Dim1x24",t[t.Dim1x28=7]="Dim1x28",t[t.Dim2x8=8]="Dim2x8",t[t.Dim2x11=9]="Dim2x11",t[t.Dim2x14=10]="Dim2x14",t[t.Dim2x17=11]="Dim2x17",t[t.Dim2x20=12]="Dim2x20",t[t.Dim2x23=13]="Dim2x23",t[t.Dim2x26=14]="Dim2x26",t[t.Dim3x6=15]="Dim3x6",t[t.Dim3x8=16]="Dim3x8",t[t.Dim3x10=17]="Dim3x10",t[t.Dim3x12=18]="Dim3x12",t[t.Dim3x15=19]="Dim3x15",t[t.Dim3x20=20]="Dim3x20",t[t.Dim3x26=21]="Dim3x26",t[t.Dim3x32=22]="Dim3x32",t[t.Dim3x38=23]="Dim3x38",t[t.Dim3x44=24]="Dim3x44",t[t.Dim4x4=25]="Dim4x4",t[t.Dim4x6=26]="Dim4x6",t[t.Dim4x8=27]="Dim4x8",t[t.Dim4x10=28]="Dim4x10",t[t.Dim4x12=29]="Dim4x12",t[t.Dim4x15=30]="Dim4x15",t[t.Dim4x20=31]="Dim4x20",t[t.Dim4x26=32]="Dim4x26",t[t.Dim4x32=33]="Dim4x32",t[t.Dim4x38=34]="Dim4x38",t[t.Dim4x44=35]="Dim4x44"}(t.MicroPdfDimensions||(t.MicroPdfDimensions={}))}(t.composite||(t.composite={}))}(t.barcode||(t.barcode={}))}(wijmo||(wijmo={})),function(t){!function(e){!function(e){var n=function(){function n(){}return n.stringToEnum=function(t){switch(t){case"CCA":return e.Gs1DataBarLinkageVersion.Cca;case"CCB":return e.Gs1DataBarLinkageVersion.Ccb}throw"Unknown Barcode internal linkageVersion '"+t+"'"},n.enumToString=function(n){return e.Gs1DataBarLinkageVersion[t.asEnum(n,e.Gs1DataBarLinkageVersion)].toUpperCase()},n}();e._LinkageVersionConvertor=n;var o=function(){function n(){}return n.stringToEnum=function(t){switch(t){case"auto":return e.MicroPdfCompactionMode.Auto;case"text":return e.MicroPdfCompactionMode.Text;case"numeric":return e.MicroPdfCompactionMode.Numeric;case"byte":return e.MicroPdfCompactionMode.Byte}throw"Unknown Barcode internal compactionMode '"+t+"'"},n.enumToString=function(n){return e.MicroPdfCompactionMode[t.asEnum(n,e.MicroPdfCompactionMode)].toLowerCase()},n}();e._CompactionModeConvertor=o,e._MicroPdfDimensionsConvertor=function(t){switch(t){case"ColumnPriority":return"columnPriorAuto";case"RowPriority":return"rowPriorAuto";default:return t.substr("Dim".length).replace("x","*")}}}(e.composite||(e.composite={}))}(t.barcode||(t.barcode={}))}(wijmo||(wijmo={})),function(t){!function(e){!function(e){var n=function(n){function o(e,o){var r=n.call(this,e,o)||this;return t.addClass(r.hostElement,"wj-barcode-gs1databar"),r}return __extends(o,n),o._getClassDefaults=function(){var t=n._getClassDefaults.call(this);return t.showLabel=!0,t},Object.defineProperty(o.prototype,"showLabel",{get:function(){return this._getProp("showLabel")},set:function(t){this._setProp("showLabel",t)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"labelPosition",{get:function(){return t.barcode._LabelPositionConvertor.stringToEnum(this._getProp("labelPosition"))},set:function(e){this._setProp("labelPosition",t.barcode._LabelPositionConvertor.enumToString(e))},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"linkage",{get:function(){return this._getProp("linkage")},set:function(t){this._setProp("linkage",t)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"linkageVersion",{get:function(){return e._LinkageVersionConvertor.stringToEnum(this._getProp("linkageVersion"))},set:function(t){this._setProp("linkageVersion",e._LinkageVersionConvertor.enumToString(t))},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"linkageHeight",{get:function(){return this._getProp("linkageHeight")},set:function(t){this._setProp("linkageHeight",t)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"hideLinkageText",{get:function(){return this._getProp("hideLinkageText")},set:function(t){this._setProp("hideLinkageText",t)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"hideAiText",{get:function(){return this._getProp("hideAIText")},set:function(t){this._setProp("hideAIText",t)},enumerable:!0,configurable:!0}),o}(t.barcode.BarcodeBase);e.Gs1DataBarBase=n;var o=function(e){function n(n,o){var r=e.call(this,n,o)||this;return t.addClass(r.hostElement,"wj-barcode-gs1databar-omnidirectional"),r}return __extends(n,e),n.type="GS1 DataBar Omnidirectional",n}(n);e.Gs1DataBarOmnidirectional=o;var r=function(e){function n(n,o){var r=e.call(this,n,o)||this;return t.addClass(r.hostElement,"wj-barcode-gs1databar-truncated"),r}return __extends(n,e),n.type="GS1 DataBar Truncated",n}(n);e.Gs1DataBarTruncated=r;var i=function(e){function n(n,o){var r=e.call(this,n,o)||this;return t.addClass(r.hostElement,"wj-barcode-gs1databar-stacked"),r}return __extends(n,e),Object.defineProperty(n.prototype,"ratio",{get:function(){return this._getProp("ratio")},set:function(t){this._setProp("ratio",t)},enumerable:!0,configurable:!0}),n.type="GS1 DataBar Stacked",n}(n);e.Gs1DataBarStacked=i;var a=function(e){function n(n,o){var r=e.call(this,n,o)||this;return t.addClass(r.hostElement,"wj-barcode-gs1databar-stacked-omnidirectional"),r}return __extends(n,e),Object.defineProperty(n.prototype,"ratio",{get:function(){return this._getProp("ratio")},set:function(t){this._setProp("ratio",t)},enumerable:!0,configurable:!0}),n.type="GS1 DataBar StackedOmnidirectional",n}(n);e.Gs1DataBarStackedOmnidirectional=a;var s=function(e){function n(n,o){var r=e.call(this,n,o)||this;return t.addClass(r.hostElement,"wj-barcode-gs1databar-limited"),r}return __extends(n,e),n.type="GS1 DataBar Limited",n}(n);e.Gs1DataBarLimited=s;var c=function(e){function n(n,o){var r=e.call(this,n)||this;return t.addClass(r.hostElement,"wj-barcode-gs1databar-expanded"),r._setAw(!0),r.initialize(o),r}return __extends(n,e),Object.defineProperty(n.prototype,"autoWidth",{get:function(){return this._getAw()},set:function(t){this._setAw(t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"autoWidthZoom",{get:function(){return this._getWzoom()},set:function(t){this._setWzoom(t)},enumerable:!0,configurable:!0}),n.type="GS1 DataBar Expanded",n}(n);e.Gs1DataBarExpanded=c;var u=function(e){function n(n,o){var r=e.call(this,n)||this;return t.addClass(r.hostElement,"wj-barcode-gs1databar-expanded-stacked"),r._setAw(!0),r.initialize(o),r}return __extends(n,e),Object.defineProperty(n.prototype,"autoWidth",{get:function(){return this._getAw()},set:function(t){this._setAw(t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"autoWidthZoom",{get:function(){return this._getWzoom()},set:function(t){this._setWzoom(t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"rowCount",{get:function(){var t=this._getProp("rowCount");return"auto"===t?null:t},set:function(t){this._setProp("rowCount",null==t?"auto":t)},enumerable:!0,configurable:!0}),n.type="GS1 DataBar Expanded Stacked",n}(n);e.Gs1DataBarExpandedStacked=u;var d=function(e){function n(n,o){var r=e.call(this,n)||this;return t.addClass(r.hostElement,"wj-barcode-pdf417"),r._setAw(!0),r.initialize(o),r}return __extends(n,e),Object.defineProperty(n.prototype,"autoWidth",{get:function(){return this._getAw()},set:function(t){this._setAw(t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"autoWidthZoom",{get:function(){return this._getWzoom()},set:function(t){this._setWzoom(t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"errorCorrectionLevel",{get:function(){var t=this._getProp("errorCorrectionLevel");return"auto"===t?null:t},set:function(t){this._setProp("errorCorrectionLevel",null==t?"auto":t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"columns",{get:function(){var t=this._getProp("columns");return"auto"===t?null:t},set:function(t){this._setProp("columns",null==t?"auto":t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"rows",{get:function(){var t=this._getProp("rows");return"auto"===t?null:t},set:function(t){this._setProp("rows",null==t?"auto":t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"compact",{get:function(){return this._getProp("compact")},set:function(t){this._setProp("compact",t)},enumerable:!0,configurable:!0}),n.type="PDF417",n}(t.barcode.BarcodeBase);e.Pdf417=d;var h=function(n){function o(e,r){var i;return o._getEnumDictionary(),i=n.call(this,e,r)||this,t.addClass(i.hostElement,"wj-barcode-micropdf417"),i}return __extends(o,n),o._getEnumDictionary=function(){o._dimensionsDictionary||(o._dimensionsDictionary=new t.barcode._EnumDictionary(e.MicroPdfDimensions,e._MicroPdfDimensionsConvertor))},Object.defineProperty(o.prototype,"dimensions",{get:function(){return o._dimensionsDictionary.getEnumByString(this._getProp("symbolVersion"))},set:function(t){this._setProp("symbolVersion",o._dimensionsDictionary.getStringByEnum(t))},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"compactionMode",{get:function(){return e._CompactionModeConvertor.stringToEnum(this._getProp("compactionMode"))},set:function(t){this._setProp("compactionMode",e._CompactionModeConvertor.enumToString(t))},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"structuredAppend",{get:function(){return this._getProp("structuredAppend")},set:function(t){this._setProp("structuredAppend",t)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"segmentIndex",{get:function(){return this._getProp("segmentIndex")},set:function(t){this._setProp("segmentIndex",t)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"fileId",{get:function(){return this._getProp("fileID")},set:function(t){this._setProp("fileID",t)},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"optionalFields",{get:function(){return this._getProp("optionalFields")},set:function(t){this._setProp("optionalFields",t)},enumerable:!0,configurable:!0}),o.type="MicroPDF417",o}(t.barcode.BarcodeBase);e.MicroPdf417=h}(e.composite||(e.composite={}))}(t.barcode||(t.barcode={}))}(wijmo||(wijmo={})),function(t){!function(e){e.composite||(e.composite={}),t._registerModule("wijmo.barcode.composite",t.barcode.composite)}(t.barcode||(t.barcode={}))}(wijmo||(wijmo={}));
var wijmo,__extends=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();!function(e){!function(e){!function(e){var t=function(){function e(e,t,n){this.Maps=[e,t,n]}return e.Datas=[new e(1,4,4),new e(1,1,4),new e(1,3,2),new e(3,1,2),new e(1,2,3),new e(1,4,1),new e(3,2,1),new e(2,1,3),new e(2,3,1),new e(4,1,1),new e(4,1,4),new e(3,2,4),new e(3,4,2),new e(2,3,4),new e(4,3,2),new e(2,4,3),new e(4,2,3),new e(4,4,1),new e(1,1,1),new e(0,1,3),new e(3,1,0)],e}();e.CodeMap=t,e.ND=255,e.CODE_CC4=14;var n=function(){function t(e,t,n){this.Char=e,this.Val1=t,this.Val2=n}return t.Datas=[new t("0",0,e.ND),new t("1",1,e.ND),new t("2",2,e.ND),new t("3",3,e.ND),new t("4",4,e.ND),new t("5",5,e.ND),new t("6",6,e.ND),new t("7",7,e.ND),new t("8",8,e.ND),new t("9",9,e.ND),new t("-",10,e.ND),new t(String.fromCharCode(193),11,e.ND),new t(String.fromCharCode(194),12,e.ND),new t(String.fromCharCode(195),13,e.ND),new t(String.fromCharCode(196),14,e.ND),new t(String.fromCharCode(197),15,e.ND),new t(String.fromCharCode(198),16,e.ND),new t(String.fromCharCode(199),17,e.ND),new t(String.fromCharCode(200),18,e.ND),new t("A",11,0),new t("B",11,1),new t("C",11,2),new t("D",11,3),new t("E",11,4),new t("F",11,5),new t("G",11,6),new t("H",11,7),new t("I",11,8),new t("J",11,9),new t("K",12,0),new t("L",12,1),new t("M",12,2),new t("N",12,3),new t("O",12,4),new t("P",12,5),new t("Q",12,6),new t("R",12,7),new t("S",12,8),new t("T",12,9),new t("U",13,0),new t("V",13,1),new t("W",13,2),new t("X",13,3),new t("Y",13,4),new t("Z",13,5),new t("a",11,0),new t("b",11,1),new t("c",11,2),new t("d",11,3),new t("e",11,4),new t("f",11,5),new t("g",11,6),new t("h",11,7),new t("i",11,8),new t("j",11,9),new t("k",12,0),new t("l",12,1),new t("m",12,2),new t("n",12,3),new t("o",12,4),new t("p",12,5),new t("q",12,6),new t("r",12,7),new t("s",12,8),new t("t",12,9),new t("u",13,0),new t("v",13,1),new t("w",13,2),new t("x",13,3),new t("y",13,4),new t("z",13,5),new t(String.fromCharCode(0),0,0)],t}();e.CharMap=n}(e.specialized||(e.specialized={}))}(e.barcode||(e.barcode={}))}(wijmo||(wijmo={})),function(e){!function(t){!function(t){var n=1,r=2,o=3,i=4,a=function(a){function c(e){var t=a.call(this,e)||this,n=t.encodeConfig.text;return t.text=n,t.label=n,t}return __extends(c,a),c.prototype.validate=function(){if(this.encodeConfig.text.length>20)throw new e.barcode.TextTooLongException},c.prototype.checksum=function(e,t){for(var n=0,r=0;r<e;r++)n+=t[r];var o=n%19;return 0!=o&&(o=19-o),o},c.prototype.calculateData=function(){var n,r,o=this.text,i=this.encodeConfig.hideExtraChecksum,a=[],c=0;a[c++]=19;var s=String.fromCharCode(0);for(n=0;n<o.length;n++){for(r=0;t.CharMap.Datas[r].Char!=s&&t.CharMap.Datas[r].Char!=o[n];r++);if(t.CharMap.Datas[r].Char==s)throw new e.barcode.InvalidCharacterException(o[n]);if(a[c++]=t.CharMap.Datas[r].Val1,t.CharMap.Datas[r].Val2!=t.ND&&(a[c++]=t.CharMap.Datas[r].Val2),c>21)break}for(;c<21;c++)a[c]=t.CODE_CC4;c=21;var u=this.checksum(c,a);return i||(this.label=o+u),a[c++]=u,a[c]=20,a},c.prototype._fillSymbol=function(e,a){var c=a.getContentBox().height/3;e.forEach(function(e){t.CodeMap.Datas[e].Maps.forEach(function(e){switch(e){case n:a.append(1,3*c,0);break;case r:a.append(1,2*c,0);break;case o:a.append(1,2*c,c);break;case i:a.append(1,c,c);break;default:return}a.space()})}),a.space(-1)},c.prototype.convertToShape=function(t,n){var r=this.label,o=this.encodeConfig,i=o.quietZone,a=o.isLabelBottom,c=o.height,s=o.showLabel,u=o.fontSizeInUnit,l=this.style.textAlign,d=0;r&&s&&(d=u);var h=2*(3*t.length-2)-1+i.right+i.left,f=c+i.top+i.bottom,p=new e.barcode.VerticalLayoutArea,g=new e.barcode.SymbolArea(h,f);g.setStyle({padding:{top:i.top,right:i.right,bottom:i.bottom,left:i.left}});var b=g.getSize(),C=new e.barcode.LabelArea(b.width,d,l);C.setStyle({padding:{left:i.left,right:i.right}}),a?(p.append(g),p.append(C)):(p.append(C),p.append(g)),n||(this._fillSymbol(t,g),C.append({text:r}),this.shapes=p.toShapes()),this.size=p.getSize()},c}(e.barcode.OneDimensionalBarcode);t.JapanesePost4StateCustomerCode=a}(t.specialized||(t.specialized={}))}(e.barcode||(e.barcode={}))}(wijmo||(wijmo={})),function(e){!function(t){!function(t){e.barcode.Barcode.registerEncoder("Japanese Postal",t.JapanesePost4StateCustomerCode)}(t.specialized||(t.specialized={}))}(e.barcode||(e.barcode={}))}(wijmo||(wijmo={})),function(e){!function(t){!function(t){var n=function(t){function n(e){var r=this;e.merge(n.DefaultConfig);var o=r=t.call(this,e)||this,i=o.encodeConfig.text,a=o.config,c=a.nwRatio,s=a.bearerBar;return r.text=i,r.label=i,r.ratio=c,r.bearerBar=s,r}return __extends(n,t),n.prototype.checksum=function(t){var n=e.barcode.Utils.str2Array(t).reverse().reduce(function(t,n,r){return n=+n,t+=e.barcode.Utils.isOdd(r)?n:3*n},0)%10;return 0===n?0:10-n},n.prototype._toPairs=function(){var t=this.text,n=[];return e.barcode.Utils.sliceString(t,2,function(e){n.push(e)}),n},n.prototype._toPattern=function(t){var r=n.Table[t[0]],o=n.Table[t[1]],i="";return e.barcode.Utils.loop(function(e){i=i+r[e]+o[e]},r.length),i},n.prototype._toZeroOnePattern=function(t){var n=this.ratio,r="";return e.barcode.Utils.loop(function(o){var i=e.barcode.Utils.isOdd(o)?"0":"1";r+=e.barcode.Utils.strRepeat(i,"W"===t[o]?n:1)},t.length),r},n.prototype.calculateData=function(){var e=this,t=this._toPairs(),r=n.StartPattern;return t.forEach(function(t){r+=e._toPattern(t)}),r+=n.StopPattern,this._toZeroOnePattern(r)},n.prototype.afterApplyDesiredSize=function(){this.bearerBar&&(this.encodeConfig.height-=2*n.BearerBarWidth)},n.prototype.convertToShape=function(t,r){var o=this.label,i=this.bearerBar,a=this.encodeConfig,c=a.quietZone,s=a.isLabelBottom,u=a.height,l=a.showLabel,d=a.fontSizeInUnit,h=this.style.textAlign,f=0;o&&l&&(f=d);var p=t.length+c.right+c.left,g=u+c.top+c.bottom,b=new e.barcode.VerticalLayoutArea,C=new e.barcode.SymbolArea(p,g);C.setStyle({padding:{top:c.top,right:c.right,bottom:c.bottom,left:c.left},border:i?n.BearerBarWidth:0});var S=C.getSize(),m=new e.barcode.LabelArea(S.width,f,h);s?(b.append(C),b.append(m)):(b.append(m),b.append(C)),r||(C.fromPattern(t),m.append({text:o}),this.shapes=b.toShapes()),this.size=b.getSize()},n.StartPattern="nnnn",n.StopPattern="Wnn",n.DefaultConfig={quietZone:{right:10,left:10},nwRatio:3,bearerBar:!1},n.Table=["nnWWn","WnnnW","nWnnW","WWnnn","nnWnW","WnWnn","nWWnn","nnnWW","WnnWn","nWnWn"],n.Weight=[1,2,4,7,0],n.BearerBarWidth=3,n}(e.barcode.OneDimensionalBarcode);t.ITFBase=n}(t.specialized||(t.specialized={}))}(e.barcode||(e.barcode={}))}(wijmo||(wijmo={})),function(e){!function(t){!function(t){var n=function(t){function n(r){var o=this;r.merge(n.DefaultConfig);var i=o=t.call(this,r)||this,a=i.encodeConfig,c=a.text,s=a.hideExtraChecksum,u=c;return i.config.checkCharacter&&(c+=o.checksum(c),s||(u=c)),e.barcode.Utils.isOdd(c.length)&&(c="0"+c,u="0"+u),o.text=c,o.label=u,o}return __extends(n,t),n.prototype.validate=function(){var t=this.encodeConfig.text;if(!/^[0-9]+$/.test(t))throw new e.barcode.InvalidTextException(t,"Text should be numbers.");if(t.length>16)throw new e.barcode.TextTooLongException},n.DefaultConfig={checkCharacter:!1},n}(t.ITFBase);t.Interleaved2of5Encoder=n}(t.specialized||(t.specialized={}))}(e.barcode||(e.barcode={}))}(wijmo||(wijmo={})),function(e){!function(t){!function(t){e.barcode.Barcode.registerEncoder("Interleaved2of5",t.Interleaved2of5Encoder)}(t.specialized||(t.specialized={}))}(e.barcode||(e.barcode={}))}(wijmo||(wijmo={})),function(e){!function(t){!function(t){var n=function(t){function n(e){var n=t.call(this,e)||this,r=n.encodeConfig,o=r.text,i=r.hideExtraChecksum;return n.label=o,13===o.length&&(o+=n.checksum(o),i||(n.label=o)),n.text=o,n}return __extends(n,t),n.prototype.validate=function(){var t=this.encodeConfig.text;if(!/^(\d{13}|\d{14})$/.test(t))throw new e.barcode.InvalidTextException(t,"Text should be numbers. The length should be 13 or 14.");if(14===t.length&&this.checksum(t.substr(0,13))!=t[13])throw new e.barcode.InvalidTextException(t,"Check digit is invalid.")},n}(t.ITFBase);t.ITF_14_Encoder=n}(t.specialized||(t.specialized={}))}(e.barcode||(e.barcode={}))}(wijmo||(wijmo={})),function(e){!function(t){!function(t){e.barcode.Barcode.registerEncoder("ITF-14",t.ITF_14_Encoder)}(t.specialized||(t.specialized={}))}(e.barcode||(e.barcode={}))}(wijmo||(wijmo={})),function(e){!function(t){!function(t){var n=function(){function t(){}return t.getCode93Code=function(n){var r=t.TABLE_CH.indexOf(n);if(-1===r)throw new e.barcode.InvalidCharacterException(n);return t.TABLE_CODE[r]},t.getCode93Value=function(n){var r=t.TABLE_CH.indexOf(n);if(-1===r)throw new e.barcode.InvalidCharacterException(n);return r},t.getCharByValue=function(e){return t.TABLE_CH[e]},t.getFullASCIIChar=function(n){var r="";return e.barcode.Utils.sliceString(n,1,function(o){var i=t.TABLE_FULL_ASCII[o.charCodeAt(0)];if(!i)throw new e.barcode.InvalidTextException(n);r+=i}),r},t.TABLE_CH=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","-","."," ","$","/","+","%","[","]","{","}","*"],t.TABLE_CODE=["131112","111213","111312","111411","121113","121212","121311","111114","131211","141111","211113","211212","211311","221112","221211","231111","112113","112212","112311","122112","132111","111123","111222","111321","121122","131121","212112","212211","211122","211221","221121","222111","112122","112221","122121","123111","121131","311112","311211","321111","112131","113121","211131","121221","312111","311121","122211","111141"],t.TABLE_FULL_ASCII=["]U","[A","[B","[C","[D","[E","[F","[G","[H","[I","[J","[K","[L","[M","[N","[O","[P","[Q","[R","[S","[T","[U","[V","[W","[X","[Y","[Z","]A","]B","]C","]D","]E"," ","{A","{B","{C","{D","{E","{F","{G","{H","{I","{J","{K","{L","{M","{N","{O","0","1","2","3","4","5","6","7","8","9","{Z","]F","]G","]H","]I","]J","]V","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","]K","]L","]M","]N","]O","]W","}A","}B","}C","}D","}E","}F","}G","}H","}I","}J","}K","}L","}M","}N","}O","}P","}Q","}R","}S","}T","}U","}V","}W","}X","}Y","}Z","]P","]Q","]R","]S","]T"],t}();t.EncodeTable_Code93=n}(t.specialized||(t.specialized={}))}(e.barcode||(e.barcode={}))}(wijmo||(wijmo={})),function(e){!function(t){!function(t){var n=function(n){function r(e){var o=this;e.merge(r.DefaultConfig);var i=o=n.call(this,e)||this,a=i.encodeConfig,c=a.text,s=a.hideExtraChecksum,u=i.config,l=u.fullASCII,d=u.checkDigit,h=l?t.EncodeTable_Code93.getFullASCIIChar(c):c;if(o.label=c,d){var f=o.checksum(h),p=o.checksum(h+f);o.text=r.START_STOP_CHARACTERS+h+f+p+r.START_STOP_CHARACTERS,s||(o.label=c+f+p)}else o.text=r.START_STOP_CHARACTERS+h+r.START_STOP_CHARACTERS;return o}return __extends(r,n),r.prototype.validate=function(){var t=this.encodeConfig.text;if(!this.config.fullASCII&&!/^[0-9A-Z\-\.\ \$\/\+\%]+$/.test(t))throw new e.barcode.InvalidTextException(t)},r.prototype.encode=function(t){var n="";return e.barcode.Utils.str2Array(t).forEach(function(t,r){e.barcode.Utils.isEven(r)?n+=e.barcode.Utils.strRepeat("1",+t):n+=e.barcode.Utils.strRepeat("0",+t)}),n},r.prototype.calculateData=function(){var n=this,o=this.text,i="";return e.barcode.Utils.sliceString(o,1,function(e){i+=n.encode(t.EncodeTable_Code93.getCode93Code(e))}),i+=r.TERMINATION},r.prototype.checksum=function(n){var r=1,o=e.barcode.Utils.str2Array(n).reduceRight(function(e,n){var o=t.EncodeTable_Code93.getCode93Value(n);return r>20&&(r=1),e+=r*o,r++,e},0);return t.EncodeTable_Code93.getCharByValue(o%47)},r.DefaultConfig={checkDigit:!1,fullASCII:!1,quietZone:{right:10,left:10}},r.START_STOP_CHARACTERS="*",r.TERMINATION="1",r}(e.barcode.OneDimensionalBarcode);t.Code93Encoder=n}(t.specialized||(t.specialized={}))}(e.barcode||(e.barcode={}))}(wijmo||(wijmo={})),function(e){!function(t){!function(t){e.barcode.Barcode.registerEncoder("Code93",t.Code93Encoder)}(t.specialized||(t.specialized={}))}(e.barcode||(e.barcode={}))}(wijmo||(wijmo={})),function(e){!function(t){!function(t){var n=[51520,62032,60576,64296,58784,63848,56128,63184,64948,50336,61736,39232,58960,63892,56480,63272,64970,35648,58064,52640,62312,47936,61136,64436,49744,36e3,58152,52816,62356,48288,61224,64458,34208,57704,50896,61876,40352,59240,63962,57040,63412,49448,34384,57748,50984,61898,40528,59284,57128,63434,33488,50024,36560,58292,53096,62426,48848,61364,33576,50068,36648,58314,53140,33128,49588,34664,57818,51124,40808,59354,57268,53568,62544,64788,59808,64104,55104,62928,64884,51360,61992,45376,60496,64276,37696,58576,63796,55712,63080,64922,52128,62184,46912,60880,64372,50256,61716,39072,58920,63882,56400,63252,35232,57960,52432,62260,47520,61032,64410,50640,61812,39840,59112,63930,56784,63348,49704,35920,58132,52776,62346,48208,61204,34e3,57652,50792,61850,40144,59188,56936,63386,49896,36304,58228,52968,62394,48592,61300,49428,34344,57738,50964,40488,59274,33384,49972,36456,58266,53044,48744,61338,49524,34536,57786,51060,40680,59322,57204,33556,50058,36628,33076,49562,34612,51098,40756,33652,50106,36724,53178,49012,53408,62504,64778,41792,59600,64052,54176,62696,64826,44864,60368,64244,51280,61972,45216,60456,64266,37280,58472,63770,55504,63028,51664,62068,45984,60648,64314,38816,58856,63866,56272,63220,50216,61706,38992,58900,56360,63242,35024,57908,52328,62234,47312,60980,50408,61754,39376,58996,56552,63290,35792,58100,52712,62330,48080,61172,49684,35880,58122,52756,33896,57626,50740,40040,59162,56884,49780,36072,58170,52852,48360,61242,34280,57722,50932,40424,59258,57076,49418,34324,50954,33332,49946,36404,53018,49466,34420,51002,40564,57146,33524,50042,36596,53114,48884,33546,33050,34586,33594,36666,33146,34682,40826,53328,62484,41376,59496,64026,53712,62580,42912,59880,64122,55248,62964,51240,61962,45136,60436,37072,58420,55400,63002,51432,62010,45520,60532,37840,58612,55784,63098,52200,62202,47056,60916,50196,38952,58890,34920,57882,52276,47208,60954,50292,39144,58938,56436,35304,57978,52468,47592,61050,50676,39912,59130,56820,49674,35860,33844,50714,39988,49722,35956,52794,48244,34036,50810,40180,56954,49914,36340,52986,48628,34314,33306,36378,34362,40506,33402,36474,48762,34554,40698,53288,62474,41168,59444,53480,62522,41936,59636,54248,62714,45008,60404,51220,36968,58394,55348,51316,45288,60474,37352,58490,55540,51700,46056,60666,38888,58874,56308,50186,34868,52250,50234,39028,56378,35060,52346,47348,50426,39412,56570,35828,52730,48116,33818,35898,33914,40058,36090,48378,34298,40442,62752,64840,56e3,63152,64940,51776,62096,60704,64328,52576,62296,47808,61104,64428,50464,61768,39488,59024,63908,56608,63304,64978,50864,61868,40288,59224,63958,57008,63404,49808,36128,58184,52880,62372,48416,61256,64466,50008,36528,58284,53080,62422,48816,61356,49480,34448,57764,51016,61906,40592,59300,57160,63442,49580,34648,57814,51116,40792,59350,57260,33608,50084,36680,58322,53156,48968,61394,59744,64088,54976,62896,64876,53824,62608,64804,60192,64200,37568,58544,63788,55648,63064,64918,52064,62168,46784,51488,62024,45632,60560,64292,38464,58768,63844,56096,63176,64946,35168,57944,52400,62252,47456,61016,64406,50608,61804,39776,50320,61732,39200,58952,63890,56464,63268,35616,58056,52624,62308,47904,61128,64434,33968,57644,50776,61846,40112,59180,56920,63382,49880,36272,49736,35984,58148,48560,52808,62354,48272,61220,34192,57700,50888,61874,40336,59236,57032,63410,33368,49964,36440,58262,53036,48728,61334,49516,34520,49444,34376,57746,40664,50980,40520,59282,57124,33480,50020,36552,58290,53092,48840,61362,33068,49558,34604,51094,40748,33644,33572,36716,50066,36644,49004,53138,33124,49586,34660,51122,40804,57266,41664,59568,64044,54112,62680,64822,53536,62536,64786,44736,60336,64236,42560,59792,64100,55072,62920,64882,37216,58456,63766,55472,63020,51632,62060,45920,51344,61988,45344,60488,64274,38752,58840,63862,37664,58568,63794,55696,63076,52112,62180,46880,60872,64370,34992,57900,52312,62230,47280,60972,50392,61750,39344,50248,61714,39056,58916,56392,63250,35760,58092,35216,57956,48048,52424,62258,47504,61028,50632,61810,39824,59108,56776,63346,33880,57622,50732,40024,59158,56876,49772,36056,49700,35912,58130,48344,52772,48200,61202,34264,57718,33992,57650,40408,50788,40136,59186,56932,49892,36296,58226,52964,48584,61298,33324,49942,36396,53014,49462,34412,49426,34340,40556,50962,40484,33516,33380,36588,49970,36452,48876,53042,48740,49522,34532,51058,40676,57202,33046,34582,33590,33554,36662,36626,33142,33074,34678,34610,40822,40754,33650,36722,49010,41312,59480,64022,53680,62572,53392,62500,42848,59864,64118,41760,59592,64050,55216,62956,54160,62692,44832,60360,64242,37040,58412,55384,62998,51416,62006,45488,51272,61970,45200,60452,37808,58604,37264,58468,55496,63026,52184,62198,47024,51656,62066,45968,60644,38800,58852,56264,63218,34904,57878,52268,47192,60950,50284,39128,50212,38984,58898,56356,35288,57974,35016,57906,47576,52324,47304,60978,50668,39896,50404,39368,58994,56548,35784,58098,52708,48072,61170,33836,50710,39980,49718,35948,49682,35876,48236,52754,34028,33892,40172,50738,40036,56882,49910,36332,49778,36068,48620,52850,48356,34276,50930,40420,57074,33302,36374,34358,34322,40502,33398,33330,36470,36402,48758,34550,34418,40694,40562,33522,36594,48882,41136,59436,53464,62518,53320,62482,41904,59628,41360,59492,54232,62710,53704,62578,44976,60396,42896,59876,55240,62962,36952,58390,55340,51308,45272,51236,45128,60434,37336,58486,37064,58418,55396,51692,46040,51428,45512,60530,38872,58870,37832,58610,55780,52196,47048,60914,34860,52246,50230,39020,50194,38948,35052,34916,47340,52274,47204,50422,39404,50290,39140,56434,35820,35300,48108,52466,47588,50674,39908,56818,33814,35894,35858,33910,33842,40054,39986,36086,35954,48374,48242,34294,34034,40438,40178,36338,48626,41048,59414,53356,53284,41432,59510,41160,59442,53740,53476,42968,59894,41928,59634,55276,54244,36908,51254,45164,51218,37100,36964,55346,51446,45548,51314,45284,37868,37348,55538,52214,47084,51698,46052,34838,38966,34934,34866,47222,39158,39026,35318,35058,47606,47346,39926,39410,6e4,64152,54336,62736,64836,60784,64348,38080,58672,63820,55904,63128,64934,51744,62088,46144,60688,64324,39648,59064,63918,56688,63324,35424,58008,52528,62284,47712,61080,64422,50448,61764,39456,59016,63906,56592,63300,36208,58204,52920,62382,48496,61276,34096,57676,50840,61862,40240,59212,56984,63398,49800,36112,58180,52872,62370,48400,61252,34488,57774,51036,40632,59310,57180,33432,49996,36504,58278,53068,48792,61350,49476,34440,57762,51012,40584,59298,57156,33628,50094,36700,53166,48988,33100,49574,34636,51110,40780,57254,33604,50082,36676,53154,48964,53984,62648,64814,44480,60272,64220,42176,59696,64076,54880,62872,64870,53792,62600,64802,44096,60176,64196,51568,62044,45792,60600,64302,38624,58808,63854,37472,58520,63782,55600,63052,52016,62156,46688,51472,62020,45600,60552,64290,38432,58760,63842,56080,63172,50360,61742,39280,58972,56504,63278,35696,58076,35120,57932,47984,52376,62246,47408,61004,50584,61798,39728,50312,61730,39184,58948,56456,63266,35600,58052,52616,62306,47888,61124,49756,36024,58158,52828,48312,61230,34232,57710,33944,57638,40376,50764,40088,59174,56908,49868,36248,49732,35976,58146,48536,52804,48264,61218,34184,57698,50884,40328,59234,57028,49454,34396,50990,40540,57134,33500,33356,36572,49958,36428,48860,53030,48716,49510,34508,49442,34372,40652,50978,40516,57122,33476,50018,36548,53090,48836,33582,36654,33134,33062,34670,34598,40814,40742,33638,33570,36710,36642,48998,33122,34658,40802,53616,62556,42720,59832,64110,41568,59544,64038,55152,62940,54064,62668,53520,62532,44640,60312,64230,42528,59784,64098,55056,62916,51384,61998,45424,60508,37744,58588,37168,58444,55448,63014,52152,62190,46960,51608,62054,45872,51336,61986,45328,60484,38704,58828,37648,58564,55688,63074,52104,62178,46864,60868,50268,39096,58926,56412,35256,57966,34968,57894,47544,52300,47256,60966,50652,39864,50380,39320,50244,39048,58914,56388,35736,58086,35208,57954,48024,52420,47496,61026,50628,39816,59106,56772,49710,35932,52782,48220,34012,33868,40156,50726,40012,56870,49902,36316,49766,36044,49698,48604,35908,48332,52770,48196,34252,33988,40396,50786,40132,56930,49890,36292,52962,48580,34350,40494,33390,33318,36462,36390,48750,34542,34406,40686,34338,40550,40482,33510,33378,36582,36450,48870,48738,34530,40674,53432,62510,41840,59612,41264,59468,54200,62702,53656,62566,53384,62498,44912,60380,42800,59852,41744,59588,55192,62950,54152,62690,44816,60356,51292,45240,60462,37304,58478,37016,58406,55372,51676,46008,51404,45464,51268,45192,60450,38840,58862,37784,58598,37256,58466,55492,52172,47e3,51652,45960,60642,38792,58850,56260,50222,39004,56366,35036,34892,47324,52262,47180,50414,39388,50278,39116,50210,38980,56354,35804,35276,48092,35012,47564,52322,47300,50662,39884,50402,39364,56546,35780,52706,48068,35886,33902,33830,40046,39974,36078,35942,48366,35874,48230,34286,34022,40430,33890,40166,40034,36326,36066,48614,48354,34274,40418,53340,41400,59502,41112,59430,53724,53452,53316,42936,59886,41880,59622,41352,59490,55260,54220,53700,44952,60390,42888,59874,51246,45148,37084,36940,55334,51438,45532,51302,45260,51234,45124,37852,37324,37060,55394,52206,47068,51686,46028,51426,45508,38860,37828,55778,38958,34926,34854,47214,39150,39014,38946,35310,35046,47598,34914,47334,47202,39918,39398,39138,35814,35298,48102,47586,53294,41180,41036,53486,53350,53282,41948,41420,41156,54254,53734,53474,45020,42956,41924,36974,36902,45294,45158,37358,37094,36962,46062,45542,45282,38894,37862,37346,54496,62776,64846,43200,59952,64140,54304,62728,64834,56048,63164,51824,62108,46304,60728,64334,37984,58648,63814,55856,63116,51728,62084,46112,60680,64322,52600,62302,47856,61116,50488,61774,39536,59036,56632,63310,35376,57996,52504,62278,47664,61068,50440,61762,39440,59012,56584,63298,50876,40312,59230,57020,49820,36152,58190,52892,48440,61262,34072,57670,50828,40216,59206,56972,49796,36104,58178,52868,48392,61250,50014,36540,53086,48828,49486,34460,51022,40604,57166,33420,49990,36492,53062,48780,49474,34436,51010,40580,57154,34654,40798,33614,36686,48974,33094,34630,40774,33602,36674,48962,59768,64094,55024,62908,53872,62620,44256,60216,64206,42080,59672,64070,54832,62860,53776,62596,44064,60168,64194,37616,58556,55672,63070,52088,62174,46832,51512,62030,45680,60572,38512,58780,37424,58508,55576,63046,51992,62150,46640,51464,62018,45584,60548,38416,58756,56072,63170,35192,57950,52412,47480,61022,50620,39800,50332,39224,58958,56476,35640,58062,35096,57926,47928,52364,47384,60998,50572,39704,50308,39176,58946,56452,35592,58050,52612,47880,61122,33980,50782,40124,56926,49886,36284,49742,35996,48572,52814,48284,34204,33932,40348,50758,40076,56902,49862,36236,49730,35972,48524,52802,48260,34180,50882,40324,57026,33374,36446,48734,34526,34382,40670,40526,33486,33350,36558,36422,48846,48710,34502,34370,40646,40514,33474,36546,48834,41712,59580,54136,62686,53560,62542,44784,60348,42608,59804,41520,59532,55096,62926,54040,62662,53512,62530,44592,60300,42512,59780,55048,62914,37240,58462,55484,51644,45944,51356,45368,60494,38776,58846,37688,58574,37144,58438,55436,52124,46904,51596,45848,51332,45320,60482,38680,58822,37640,58562,55684,52100,46856,60866,35004,52318,47292,50398,39356,50254,39068,56398,35772,35228,48060,34956,47516,52294,47244,50638,39836,50374,39308,50242,39044,56386,35724,35204,48012,52418,47492,50626,39812,56770,33886,40030,36062,35918,48350,48206,34270,33998,40414,33862,40142,40006,36302,36038,48590,35906,48326,48194,34246,33986,40390,40130,36290,48578,41336,59486,53692,53404,42872,59870,41784,59598,41240,59462,55228,54172,53644,53380,44856,60366,42776,59846,41736,59586,55180,54148,37052,55390,51422,45500,51278,45212,37820,37276,37004,55366,52190,47036,51662,45980,51398,45452,51266,45188,38812,37772,37252,55490,52166,46988,51650,45956,34910,47198,39134,38990,35294,35022,47582,34886,47310,47174,39902,39374,39110,38978,35790,35270,48078,35010,47558,47298,39878,39362,41148,53470,53326,41916,41372,41100,54238,53710,53446,53314,44988,42908,41868,41348,55246,54214,53698,36958,45278,45134,37342,37070,36934,46046,45518,45254,45122,38878,37838,37318,37058,47054,46022,45506,41054,41438,41166,41030,42974,41934,41414,41154,43488,60024,64158,54384,62748,43104,59928,64134,54288,62724,60796,38128,58684,55928,63134,51768,62094,46192,60700,37936,58636,55832,63110,51720,62082,46096,60676,39672,59070,56700,35448,58014,52540,47736,61086,50460,39480,59022,56604,35352,57990,52492,47640,61062,50436,39432,59010,56580,36220,52926,48508,34108,50846,40252,56990,49806,36124,52878,48412,34060,50822,40204,56966,49794,36100,52866,48388,34494,40638,33438,36510,48798,34446,40590,33414,36486,48774,34434,40578,54008,62654,44528,60284,42224,59708,54904,62878,53816,62606,44144,60188,42032,59660,54808,62854,53768,62594,44048,60164,51580,45816,60606,38648,58814,37496,58526,55612,52028,46712,51484,45624,60558,38456,58766,37400,58502,55564,51980,46616,51460,45576,60546,38408,58754,56068,50366,39292,56510,35708,35132,47996,52382,47420,50590,39740,50318,39196,56462,35612,35084,47900,52358,47372,50566,39692,50306,39172,56450,35588,52610,47876,36030,48318,34238,33950,40382,40094,36254,35982,48542,48270,34190,33926,40334,40070,36230,35970,48518,48258,34178,40322,53628,42744,59838,41592,59550,55164,54076,53532,44664,60318,42552,59790,41496,59526,55068,54028,53508,44568,60294,42504,59778,51390,45436,37756,37180,55454,52158,46972,51614,45884,51342,45340,38716,37660,37132,55430,52110,46876,51590,45836,51330,45316,38668,37636,55682,39102,35262,34974,47550,47262,39870,39326,39054,35742,35214,48030,34950,47502,47238,39822,39302,39042,35718,35202,48006,47490,53438,41852,41276,54206,53662,53390,44924,42812,41756,41228,55198,54158,53638,53378,44828,42764,41732,45246,37310,37022,46014,45470,45198,38846,37790,37262,36998,47006,45966,45446,45186,38798,37766,37250,41406,41118,42942,41886,41358,41094,44958,42894,41862,41346,54520,62782,43248,59964,54328,62734,43056,59916,54280,62722,56060,51836,46328,60734,38008,58654,55868,51740,46136,60686,37912,58630,55820,51716,46088,60674,52606,47868,50494,39548,56638,35388,52510,47676,50446,39452,56590,35340,52486,47628,50434,39428,56578,40318,36158,48446,34078,40222,36110,48398,34054,40198,36098,48386,59774,55036,53884,44280,60222,42104,59678,54844,53788,44088,60174,42008,59654,54796,53764,37628,55678,52094,46844,51518,45692,38524,37436,55582,51998,46652,51470,45596,38428,37388,55558,51974,46604,51458,45572,35198,47486,39806,39230,35646,35102,47934,47390,39710,39182,35598,35078,47886,47366,39686,39170,41724,54142,53566,44796],r=[48732,49518,34524,49446,34380,40668,50982,40524,57126,33484,33348,36556,49954,36420,48844,53026,48708,49506,34500,51042,40644,57186,33070,34606,40750,33646,33574,36718,36646,49006,33126,33058,34662,34594,40806,40738,33634,36706,48994,41696,59576,64046,54128,62684,53552,62540,44768,60344,64238,42592,59800,64102,41504,59528,64034,55088,62924,54032,62660,44576,60296,64226,37232,58460,55480,63022,51640,62062,45936,51352,61990,45360,60492,38768,58844,37680,58572,37136,58436,55432,63010,52120,62182,46896,51592,62050,45840,60612,38672,58820,56200,63202,35e3,57902,52316,47288,60974,50396,39352,50252,39064,58918,56396,35768,58094,35224,57958,48056,34952,57890,47512,52292,47240,60962,50636,39832,50372,39304,58978,56516,35720,58082,52676,48008,61154,33884,50734,40028,56878,49774,36060,49702,35916,48348,52774,48204,34268,33996,40412,33860,40140,50722,40004,56866,49894,36300,49762,36036,48588,52834,48324,34244,50914,40388,57058,33326,36398,34414,34342,40558,40486,33518,33382,36590,33314,36454,48878,36386,48742,34534,34402,40678,40546,33506,36578,48866,41328,59484,53688,62574,53400,62502,42864,59868,41776,59596,41232,59460,55224,62958,54168,62694,53640,62562,44848,60364,42768,59844,55176,62946,37048,58414,55388,51420,45496,51276,45208,60454,37816,58606,37272,58470,37e3,58402,55364,52188,47032,51660,45976,51396,45448,60514,38808,58854,37768,58594,55748,52164,46984,60898,34908,52270,47196,50286,39132,50214,38988,56358,35292,35020,47580,34884,47308,52258,47172,50670,39900,50406,39372,50274,39108,56418,35788,35268,48076,52450,47556,50658,39876,56802,33838,39982,35950,35878,48238,34030,33894,40174,33826,40038,39970,36334,36070,48622,35938,48358,48226,34278,34018,40422,40162,36322,48610,41144,59438,53468,53324,41912,59630,41368,59494,41096,59426,54236,53708,53444,44984,60398,42904,59878,41864,59618,55244,54212,36956,55342,51310,45276,51238,45132,37340,37068,36932,55330,51694,46044,51430,45516,51298,45252,38876,37836,37316,55522,52198,47052,51682,46020,34862,39022,38950,35054,34918,47342,34850,47206,39406,39142,39010,35822,35302,48110,35042,47590,47330,39910,39394,41052,53358,53286,41436,41164,41028,53742,53478,53346,42972,41932,41412,55278,54246,53730,36910,45166,37102,36966,36898,45550,45286,45154,37870,37350,37090,47086,46054,45538,43456,60016,64156,54368,62744,64838,43072,59920,64132,60792,64350,38112,58680,63822,55920,63132,51760,62092,46176,60696,64326,37920,58632,63810,55824,63108,39664,59068,56696,63326,35440,58012,52536,62286,47728,61084,50456,61766,39472,59020,56600,63302,35344,57988,52488,62274,47632,61060,36216,58206,52924,48504,61278,34104,57678,50844,40248,59214,56988,49804,36120,58182,52876,48408,61254,34056,57666,50820,40200,59202,56964,34492,51038,40636,57182,33436,49998,36508,53070,48796,49478,34444,51014,40588,57158,33412,49986,36484,53058,48772,33630,36702,48990,33102,34638,40782,33606,36678,48966,33090,34626,40770,54e3,62652,44512,60280,64222,42208,59704,64078,54896,62876,53808,62604,44128,60184,64198,42016,59656,64066,54800,62852,51576,62046,45808,60604,38640,58812,37488,58524,55608,63054,52024,62158,46704,51480,62022,45616,60556,38448,58764,37392,58500,55560,63042,51976,62146,46608,60804,50364,39288,58974,56508,35704,58078,35128,57934,47992,52380,47416,61006,50588,39736,50316,39192,58950,56460,35608,58054,35080,57922,47896,52356,47368,60994,50564,39688,59074,56708,49758,36028,52830,48316,34236,33948,40380,50766,40092,56910,49870,36252,49734,35980,48540,52806,48268,34188,33924,40332,50754,40068,56898,49858,36228,52930,48516,34398,40542,33502,33358,36574,36430,48862,48718,34510,34374,40654,40518,33478,33346,36550,36418,48838,48706,34498,40642,53624,62558,42736,59836,41584,59548,55160,62942,54072,62670,53528,62534,44656,60316,42544,59788,41488,59524,55064,62918,54024,62658,44560,60292,51388,45432,60510,37752,58590,37176,58446,55452,52156,46968,51612,45880,51340,45336,60486,38712,58830,37656,58566,37128,58434,55428,52108,46872,51588,45832,60610,38664,58818,56196,50270,39100,56414,35260,34972,47548,52302,47260,50654,39868,50382,39324,50246,39052,56390,35740,35212,48028,34948,47500,52290,47236,50630,39820,50370,39300,56514,35716,52674,48004,35934,48222,34014,33870,40158,40014,36318,36046,48606,35910,48334,48198,34254,33990,40398,33858,40134,40002,36294,36034,48582,48322,34242,40386,53436,41848,59614,41272,59470,54204,53660,53388,44920,60382,42808,59854,41752,59590,41224,59458,55196,54156,53636,44824,60358,42760,59842,51294,45244,37308,37020,55374,51678,46012,51406,45468,51270,45196,38844,37788,37260,36996,55362,52174,47004,51654,45964,51394,45444,38796,37764,55746,39006,35038,34894,47326,47182,39390,39118,38982,35806,35278,48094,35014,47566,34882,47302,47170,39886,39366,39106,35782,35266,48070,47554,53342,41404,41116,53726,53454,53318,42940,41884,41356,41092,55262,54222,53702,53442,44956,42892,41860,45150,37086,36942,45534,45262,45126,37854,37326,37062,36930,47070,46030,45510,45250,38862,37830,37314,41182,41038,41950,41422,41158,41026,45022,42958,41926,41410,54512,62780,43232,59960,64142,54320,62732,43040,59912,64130,56056,63166,51832,62110,46320,60732,38e3,58652,55864,63118,51736,62086,46128,60684,37904,58628,55816,63106,52604,47864,61118,50492,39544,59038,56636,35384,57998,52508,47672,61070,50444,39448,59014,56588,35336,57986,52484,47624,61058,50878,40316,57022,49822,36156,52894,48444,34076,50830,40220,56974,49798,36108,52870,48396,34052,50818,40196,56962,36542,48830,34462,40606,33422,36494,48782,34438,40582,33410,36482,48770,59772,55032,62910,53880,62622,44272,60220,42096,59676,54840,62862,53784,62598,44080,60172,42e3,59652,54792,62850,37624,58558,55676,52092,46840,51516,45688,60574,38520,58782,37432,58510,55580,51996,46648,51468,45592,60550,38424,58758,37384,58498,55556,51972,46600,60802,35196,52414,47484,50622,39804,50334,39228,56478,35644,35100,47932,52366,47388,50574,39708,50310,39180,56454,35596,35076,47884,52354,47364,50562,39684,56706,33982,40126,36286,35998,48574,48286,34206,33934,40350,40078,36238,35974,48526,48262,34182,33922,40326,40066,36226,48514,41720,59582,54140,53564,44792,60350,42616,59806,41528,59534,55100,54044,53516,44600,60302,42520,59782,41480,59522,55052,54020,37244,55486,51646,45948,51358,45372,38780,37692,37148,55438,52126,46908,51598,45852,51334,45324,38684,37644,37124,55426,52102,46860,51586,45828,35006,47294,39358,39070,35774,35230,48062,34958,47518,47246,39838,39310,39046,35726,35206,48014,34946,47494,47234,39814,39298,41340,53694,53406,42876,41788,41244,55230,54174,53646,53382,44860,42780,41740,41220,55182,54150,53634,37054,45502,45214,37822,37278,37006,47038,45982,45454,45190,38814,37774,37254,36994,46990,45958,45442,41150,41918,41374,41102,44990,42910,41870,41350,41090,43504,60028,54392,62750,43120,59932,54296,62726,43024,59908,60798,38136,58686,55932,51772,46200,60702,37944,58638,55836,51724,46104,60678,37896,58626,55812,39676,56702,35452,52542,47740,50462,39484,56606,35356,52494,47644,50438,39436,56582,35332,52482,47620,36222,48510,34110,40254,36126,48414,34062,40206,36102,48390,34050,40194,54012,44536,60286,42232,59710,54908,53820,44152,60190,42040,59662,54812,53772,44056,60166,41992,59650,51582,45820,38652,37500,55614,52030,46716,51486,45628,38460,37404,55566,51982,46620,51462,45580,38412,37380,55554,39294,35710,35134,47998,47422,58528,63784,55616,63056,64916,52032,62160,60832,64360,35136,57936,52384,62248,47424,61008,64404,50592,61800,39744,59088,63924,56736,63336,64986,33952,57640,50768,61844,40096,59176,63946,56912,63380,49872,36256,58216,52944,62388,48544,61288,64474,33360,49960,36432,58260,53032,62410,48720,61332,49512,34512,57780,51048,61914,40656,59316,57192,63450,33064,49556,34600,57802,51092,40744,59338,33640,50100,36712,58330,53172,49e3,61402,59552,64040,54080,62672,64820,60320,64232,37184,58448,63764,55456,63016,64906,51616,62056,45888,60624,64308,38720,58832,63860,56224,63208,64954,34976,57896,52304,62228,47264,60968,64394,50384,61748,39328,58984,63898,56528,63284,35744,58088,52688,62324,48032,61160,64442,33872,57620,50728,61834,40016,59156,56872,63370,49768,36048,58164,52840,62362,48336,61236,34256,57716,50920,61882,40400,59252,57064,63418,33320,49940,36392,58250,53012,49460,34408,57754,50996,40552,59290,57140,33512,50036,36584,58298,53108,48872,61370,33044,49546,34580,51082,33588,50074,36660,53146,33140,49594,34676,51130,40820,57274,41280,59472,64020,53664,62568,64794,42816,59856,64116,55200,62952,64890,37024,58408,63754,55376,62996,51408,62004,45472,60520,64282,37792,58600,63802,55760,63092,52176,62196,47008,60904,64378,34896,57876,52264,62218,47184,60948,50280,61722,39120,58932,56424,63258,35280,57972,52456,62266,47568,61044,50664,61818,39888,59124,56808,63354,33832,57610,50708,39976,59146,49716,35944,58138,52788,48232,61210,34024,57658,50804,40168,59194,56948,49908,36328,58234,52980,48616,61306,33300,49930,36372,49434,34356,50970,40500,33396,49978,36468,53050,48756,49530,34548,51066,40692,57210,33034,34570,33562,36634,33082,34618,40762,33658,36730,49018,41120,59432,64010,53456,62516,41888,59624,64058,54224,62708,44960,60392,64250,36944,58388,55336,62986,51304,61978,45264,60468,37328,58484,55528,63034,51688,62074,46032,60660,38864,58868,56296,63226,34856,57866,52244,50228,39016,58906,56372,35048,57914,52340,47336,60986,50420,39400,59002,56564,35816,58106,52724,48104,61178,33812,50698,49690,35892,52762,33908,50746,40052,56890,49786,36084,52858,48372,34292,50938,40436,57082,33290,34330,33338,36410,34426,40570,33530,36602,48890,41040,59412,53352,62490,41424,59508,53736,62586,42960,59892,55272,62970,36904,58378,51252,45160,60442,37096,58426,55412,51444,45544,60538,37864,58618,55796,52212,47080,60922,34836,50202,38964,34932,52282,47220,50298,39156,56442,35316,52474,47604,50682,39924,56826,33802,35866,33850,39994,35962,48250,34042,40186,36346,48634,59968,64144,60768,64344,58656,63816,55872,63120,64932,39616,59056,63916,56672,63320,64982,35392,58e3,52512,62280,47680,61072,64420,36192,58200,52912,62380,48480,61272,64470,34080,57672,50832,61860,40224,59208,63954,56976,63396,34480,57772,51032,61910,40624,59308,57176,63446,33424,49992,36496,58276,53064,62418,48784,61348,33624,50092,36696,58326,53164,48984,61398,33096,49572,34632,57810,51108,40776,59346,57252,53952,62640,64812,60256,64216,59680,64072,54848,62864,64868,51552,62040,45760,60592,64300,38592,58800,63852,37440,58512,63780,55584,63048,64914,52e3,62152,46656,60816,64356,50352,61740,39264,58968,63894,56496,63276,35680,58072,35104,57928,47968,52368,62244,47392,61e3,64402,50576,61796,39712,59080,63922,56720,63332,49752,36016,58156,52824,62358,48304,61228,34224,57708,33936,57636,40368,50760,61842,40080,59172,56904,63378,49864,36240,58212,52936,62386,48528,61284,49452,34392,57750,50988,40536,59286,57132,33496,33352,36568,49956,36424,58258,48856,53028,48712,61330,49508,34504,57778,51044,40648,59314,57188,33580,50070,36652,53142,33132,33060,34668,49554,34596,40812,51090,40740,33636,50098,36708,53170,48996,53600,62552,64790,42688,59824,64108,41536,59536,64036,55136,62936,64886,54048,62664,64818,44608,60304,64228,51376,61996,45408,60504,64278,37728,58584,63798,37152,58440,63762,55440,63012,52144,62188,46944,51600,62052,45856,60616,64306,38688,58824,63858,56208,63204,50264,61718,39088,58924,56408,63254,35248,57964,34960,57892,47536,52296,62226,47248,60964,50648,61814,39856,50376,61746,39312,58980,56520,63282,35728,58084,52680,62322,48016,61156,49708,35928,58134,52780,48216,61206,34008,57654,33864,57618,40152,50724,40008,59154,56868,49900,36312,49764,36040,58162,48600,52836,48328,61234,34248,57714,50916,40392,59250,57060,49430,34348,50966,40492,33388,33316,36460,49938,36388,48748,53010,49526,34540,49458,34404,40684,50994,40548,57138,33508,50034,36580,53106,48868,33558,36630,33078,33042,34614,34578,40758,33654,33586,36726,36658,49014,33138,34674,40818,53424,62508,41824,59608,64054,41248,59464,64018,54192,62700,53648,62564,44896,60376,64246,42784,59848,64114,55184,62948,51288,61974,45232,60460,37296,58476,37008,58404,55368,62994,51672,62070,46e3,51400,62002,45456,60516,38832,58860,37776,58596,55752,63090,52168,62194,46992,60900,50220,39e3,58902,56364,35032,57910,34888,57874,47320,52260,47176,60946,50412,39384,50276,39112,58930,56420,35800,58102,35272,57970,48088,52452,47560,61042,50660,39880,59122,56804,49686,35884,52758,33900,33828,40044,50706,39972,49782,36076,49714,35940,48364,52786,48228,34284,34020,40428,50802,40164,56946,49906,36324,52978,48612,34326,33334,33298,36406,36370,34422,34354,40566,40498,33526,33394,36598,36466,48886,48754,34546,40690,53336,62486,41392,59500,41104,59428,53720,62582,53448,62514,42928,59884,41872,59620,55256,62966,54216,62706,44944,60388,51244,45144,60438,37080,58422,36936,58386,55332,51436,45528,51300,45256,60466,37848,58614,37320,58482,55524,52204,47064,51684,46024,60658,38856,58866,56292,50198,38956,34924,34852,47212,52242,50294,39148,50226,39012,56370,35308,35044,47596,52338,47332,50678,39916,50418,39396,56562,35812,52722,48100,35862,33846,33810,39990,35958,35890,48246,34038,33906,40182,40050,36342,36082,48630,48370,34290,40434,53292,41176,59446,41032,59410,53484,53348,41944,59638,41416,59506,54252,53732,45016,60406,42952,59890,51222,36972,36900,51318,45292,51250,45156,37356,37092,55410,51702,46060,51442,45540,38892,37860,55794,34870,34834,39030,38962,35062,34930,47350,47218,39414,39154,35830,35314,48118,47602,54464,62768,64844,59936,64136,56032,63160,64942,51808,62104,46272,60720,64332,37952,58640,63812,55840,63112,64930,52592,62300,47840,61112,64430,50480,61772,39520,59032,63910,56624,63308,35360,57992,52496,62276,47648,61064,64418,50872,61870,40304,59228,57016,63406,49816,36144,58188,52888,62374,48432,61260,34064,57668,50824,61858,40208,59204,56968,63394,50012,36536,58286,53084,48824,61358,49484,34456,57766,51020,40600,59302,57164,33416,49988,36488,58274,53060,48776,61346,49582,34652,51118,40796,57262,33612,50086,36684,53158,48972,33092,49570,34628,51106,40772,57250,59760,64092,55008,62904,64878,53856,62616,64806,44224,60208,64204,42048,59664,64068,54816,62856,64866,37600,58552,63790,55664,63068,52080,62172,46816,51504,62028,45664,60568,64294,38496,58776,63846,37408,58504,63778,55568,63044,51984,62148,46624,60808,64354,35184,57948,52408,62254,47472,61020,50616,61806,39792,50328,61734,39216,58956,56472,63270,35632,58060,35088,57924,47920,52360,62242,47376,60996,50568,61794,39696,59076,56712,63330,33976,57646,50780,40120,59182,56924,49884,36280,49740,35992,58150,48568,52812,48280,61222,34200,57702,33928,57634,40344,50756,40072,59170,56900,49860,36232,58210,52932,48520,61282,33372,49966,36444,53038],o=[[[20,16,38]],[[1,9,31],[9,31,26],[31,26,2],[26,2,12]],[[2,12,17],[12,17,23],[17,23,37],[23,37,18]],[[37,18,22],[18,22,6],[22,6,27],[6,27,44]],[[27,44,15],[44,15,43],[15,43,39],[43,39,11]],[[39,11,13],[11,13,5],[13,5,41],[5,41,33]],[[41,33,36],[33,36,8],[36,8,4],[8,4,32]],[[4,32,3],[32,3,19],[3,19,40],[19,40,25]],[[40,25,29],[25,29,10],[29,10,24],[10,24,30]],[[20,16,38],[0,0,0],[0,0,0],[0,0,0]]],i=[[1,0,0,1],[0,1,0,1],[1,1,0,0],[0,0,1,1],[1,0,1,0],[0,1,1,0],[1,1,1,1],[0,0,0,0]],a=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","-","."," ","$","/","+","%"," "," ",e.barcode.Constants.FNC1,e.barcode.Constants.FNC2,e.barcode.Constants.FNC3," "],c=["  "," A"," B"," C"," D"," E"," F"," G"," H"," I"," J"," K"," L"," M"," N"," O"," P"," Q"," R"," S"," T"," U"," V"," W"," X"," Y"," Z"," 1"," 2"," 3"," 4"," 5"," "," 6"," 7"," 8","$","%"," 9"," 0"," -"," ."," $","+"," /","-",".","/","0","1","2","3","4","5","6","7","8","9"," +"," 1"," 2"," 3"," 4"," 5"," 6","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," 7"," 8"," 9"," 0"," -"," ."," A"," B"," C"," D"," E"," F"," G"," H"," I"," J"," K"," L"," M"," N"," O"," P"," Q"," R"," S"," T"," U"," V"," W"," X"," Y"," Z"," $"," /"," +"," %","  "];function s(t){return e.barcode.Utils.str2Array(t).reduce(function(e,t){return a.indexOf(t)>-1?e++:e+=2,e},0)}t.isNumericOnly=function(e){return/^\d{5,81}$/.test(e)},t.getCharValue_Code49=function(t){var n=a.indexOf(t);if(n>-1)return[n];var r=t.charCodeAt(0),o=c[r];return e.barcode.Utils.str2Array(o).map(function(e){return a.indexOf(e)})},t.getWeight=function(e,t){var n=o[e][t];return{x:n[0],y:n[1],z:n[2]}},t.getParityPattern=function(e,t,o,a){return(t!==a-1&&i[t][o]?n[e]:r[e]).toString(2)},t.getGroupInfo=function(e,t){for(var n=2,r=1;n<t;)r+=n,n++;return r+e},t.getTextGroup=function(e){for(var t=0,n=1,r=e.length,o=[];n<r;)s(e.substring(t,n))>48&&(o.push(e.substring(t,n-1)),t=n-1),n++;return o.push(e.substring(t,n)),o}}(t.specialized||(t.specialized={}))}(e.barcode||(e.barcode={}))}(wijmo||(wijmo={})),function(e){!function(t){!function(t){var n=function(n){function r(e){var o=this;e.merge(r.DefaultConfig);var i=(o=n.call(this,e)||this).encodeConfig.text;return o.text=i,o.label=i.replace(/[\xc9-\xcf]/g,""),o.mode=t.isNumericOnly(i)?2:0,o.getModes(),o}return __extends(r,n),r.prototype.validate=function(){var t=this.encodeConfig.text,n=this.config.grouping;if(!/^[\x00-\x80\xcf\xca\xc9]+$/.test(t))throw new e.barcode.InvalidTextException(t);if(!n&&t.length>81)throw new e.barcode.TextTooLongException},r.prototype.getModes=function(){var n=this.text,r=this.config,o=r.grouping,i=r.groupNo;if(o){var a=t.getTextGroup(n);if(a.length>1){if(a.length>9)throw new e.barcode.GroupSizeOverflowException(a.length);if(i>a.length-1)throw new e.barcode.InvalidOptionsException({groupNo:i},"Max group number is "+(a.length-1));this.groupCount=a.length,this.mode=3,n=a[i]}}for(var c=[],s=0,u=0,l=n.length;s<l;){for(;u<l&&!(n[u]<"0"||n[u]>"9");)u++;if(u-s>=5)c.push({mode:"number",text:n.substring(s,u)}),s=u;else{var d=c[c.length-1];d&&"alpha"===d.mode?d.text+=n.substring(s,u+1):c.push({mode:"alpha",text:n.substring(s,u+1)}),s=++u}}this.modes=c},r.prototype.encodeNumeric=function(e){var t,n;switch(e.length){case 3:return[~~((t=+e)/48),t%48];case 4:return[~~((t=+e+1e5)/2304),~~(t%2304/48),t%48];case 5:return[~~((t=+e)/2304),~~(t%2304/48),t%48];case 6:return t=e.substr(0,5),this.encodeNumeric(t).concat([+e[5]]);case 7:return t=e.substr(0,4),n=e.substr(4,3),this.encodeNumeric(t).concat(this.encodeNumeric(n));case 8:return t=e.substr(0,5),n=e.substr(5,3),this.encodeNumeric(t).concat(this.encodeNumeric(n));case 9:return t=e.substr(0,5),n=e.substr(5,4),this.encodeNumeric(t).concat(this.encodeNumeric(n));default:return t=e.substr(0,5),n=e.substr(5,e.length),this.encodeNumeric(t).concat(this.encodeNumeric(n))}},r.prototype.encodeAlpha=function(n){return e.barcode.Utils.str2Array(n).reduce(function(e,n){return e=e.concat(t.getCharValue_Code49(n))},[])},r.prototype.calculateData=function(){var n=this,o=this.modes,i=this.mode,a=this.groupCount,c=this.config.groupNo,s=o.reduce(function(e,t,o){return"number"===t.mode?(0===o&&2!==i&&e.push(r.CODE_NS),e=e.concat(n.encodeNumeric(t.text))):e=e.concat(n.encodeAlpha(t.text)),e.push(r.CODE_NS),e},[]);s.pop(),3===i&&s.unshift(t.getGroupInfo(c,a));for(var u=s.length%7;s.length%7!=0;)s.push(r.CODE_NS);var l=[];e.barcode.Utils.sliceArray(s,7,function(e){var t=e.reduce(function(e,t){return e+t},0);e.push(t%49),l=l.concat(e)});var d=s.length/7;if((d%8>=6||u>2||0==u||d%8==1)&&(l=l.concat(e.barcode.Utils.fillArray(new Array(8),r.CODE_NS)),d++),d>8)throw new e.barcode.TextTooLongException;var h=7*(d-2)+i;l[l.length-2]=h;var f=t.getWeight(0,0),p=h*f.z,g=h*f.y,b=h*f.x,C=8*(d-1)/2;if(d>6){for(var S=0,m=0;S<C;S++,m+=2){p+=t.getWeight(1+~~(S/4),S%4).z*(49*l[m]+l[m+1])}p%=2401,l[l.length-8]=~~(p/49),l[l.length-7]=~~(p%49)}C++;for(S=0,m=0;S<C;S++,m+=2){g+=t.getWeight(1+~~(S/4),S%4).y*(49*l[m]+l[m+1])}g%=2401,l[l.length-6]=~~(g/49),l[l.length-5]=~~(g%49),C++;for(S=0,m=0;S<C;S++,m+=2){b+=t.getWeight(1+~~(S/4),S%4).x*(49*l[m]+l[m+1])}b%=2401,l[l.length-4]=~~(b/49),l[l.length-3]=~~(b%49);var w=l.slice(8*d-8,8*d-1);l[l.length-1]=w.reduce(function(e,t){return e+t},0)%49;for(var T=[],y=0,v=l.length,E=0;y<v;y+=8,E++){var _=l.slice(y,y+8),A=[];T.push(A);S=0;for(var I=0;S<8;S+=2,I++){var x=49*_[S]+_[S+1];A.push(t.getParityPattern(x,E,I,d))}A.unshift(r.START_PATTERN),A.push(r.STOP_PATTERN)}return T},r.prototype.convertToShape=function(t,n){var r=this.label,o=this.encodeConfig,i=o.fontSizeInUnit,a=o.isLabelBottom,c=o.height,s=o.quietZone,u=o.showLabel,l=this.style.textAlign,d=0;r&&u&&(d=i);var h=(c-1)/t.length-1,f=70+s.right+s.left,p=c+s.top+s.bottom-2,g=new e.barcode.VerticalLayoutArea,b=new e.barcode.MatrixSymbolArea(f,p);b.setStyle({padding:{top:s.top,right:s.right,bottom:s.bottom,left:s.left},border:{top:1,bottom:1}});var C=b.getSize(),S=new e.barcode.LabelArea(C.width,d,l);a?(g.append(b),g.append(S)):(g.append(S),g.append(b)),n||(t.forEach(function(n,r){n.forEach(function(t){e.barcode.Utils.combineTruthy(t).forEach(function(e){0!==e?b.append(e,h):b.space()})}),0===r&&r===t.length-1||b.append(70,1)}),S.append({text:r}),this.shapes=g.toShapes()),this.size=g.getSize()},r.prototype.adjustDesiredSize=function(){var e=this.size.width,t=this.encodeConfig,n=t.desiredSize,r=t.containerWidth/e;n.forceRounding&&(r=(r=~~r)<1?1:r),this.applyDesiredSize(r)},r.DefaultConfig={showLabel:!0,grouping:!1,groupNo:0,labelPosition:"bottom",height:60,quietZone:{right:1,left:10}},r.CODE_NS=48,r.START_PATTERN="10",r.STOP_PATTERN="1111",r}(e.barcode.TwoDimensionalBarcode);t.Code49Encoder=n}(t.specialized||(t.specialized={}))}(e.barcode||(e.barcode={}))}(wijmo||(wijmo={})),function(e){!function(t){!function(t){e.barcode.Barcode.registerEncoder("Code49",t.Code49Encoder)}(t.specialized||(t.specialized={}))}(e.barcode||(e.barcode={}))}(wijmo||(wijmo={})),function(e){!function(e){!function(e){var t=function(){function e(e,t){this._data=e,this.offset=t||0}return Object.defineProperty(e.prototype,"bitLength",{get:function(){return 8*this._data.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"currentBit",{get:function(){return this.getBit(this.offset)},enumerable:!0,configurable:!0}),e.prototype.fetchBit=function(){return this.getBit(this.offset++)},e.prototype.getBit=function(e){return!(e>=this.bitLength)&&0!=(this._data[~~(e/8)]&128>>e%8)},e.prototype.setBit=function(e,t){var n=~~(e/8),r=(128>>e%8)%256;this._data[n]&=(this._data[n]&~r)%256,t&&(this._data[n]|=r)},e.prototype.putBit=function(e){this.setBit(this.offset,e),this.offset++},e.prototype.putBitsMSF=function(e,t,n){var r=!!n;r||(n=this.offset);for(var o=2147483648,i=0;i<t;++i)this.setBit(n+i,0!=(e&o)),o/=2;r||(this.offset+=t)},e.prototype.putBitsLSF=function(e,t,n){var r=!!n;r||(n=this.offset);for(var o=1,i=0;i<t;++i)this.setBit(n+i,0!=(e&o)),o<<=1;r||(this.offset+=t)},e}();e.BitwiseIterator=t}(e.specialized||(e.specialized={}))}(e.barcode||(e.barcode={}))}(wijmo||(wijmo={})),function(e){!function(t){!function(t){var n={Base11:0,Base27:1,Base37:2,Base41:3,ASCII:4,Byte:5};function r(e,t){if(e==t)return e;if(e==n.Byte||t==n.Byte)return n.Byte;var r=e;switch(e){case n.Base11:t==n.Base27?r=n.Base37:t>r&&(r=t);break;case n.Base27:t==n.Base11?r=n.Base37:t>r&&(r=t);break;case n.Base37:case n.Base41:t>r&&(r=t)}return r}function o(e){return e%256}function i(e,t){this.registerNumber=e,this.mask=1<<t}t.chooseEncodationScheme=function(e){for(var t,o=n.Base11,i=0,a=e.length;i<a&&(o=r(o,(t=e[i])>=48&&t<=57||32==t?n.Base11:t>=65&&t<=90?n.Base27:t>=44&&t<=47?n.Base41:t<=127?n.ASCII:n.Byte))!==n.Byte;i++);return o},t.getCodeWord=function(e,t){if(e==n.Byte)return t;if(e==n.ASCII)return o(127&t);var r=0;if(32==t)return r;if(t>=48&&t<=57&&(r=o(t-47)),e==n.Base11)return r;if(r+=26,t>=65&&t<=90&&(r=o(t-64)),e!=n.Base41)return r;switch(t){case 44:return 38;case 45:return 39;case 46:return 37;case 47:return 40}return r},t.setBit=function(e,t,n){var r=1<<t;return e&=~r,n&&(e|=r),e},t.Constants_140={BaseValues:[11,27,37,41,128,256],GroupLengths:[6,5,4,4,1,1],HeaderBits:[126,57358,465934,523278,517006],BitLengths:[[21,4,7,11,14,18,21],[24,5,10,15,20,24],[21,6,11,16,21],[22,6,11,17,22],[7,7],[8,8]],SymbolCapacities:function(){for(var e=[],t=7;t<50;t+=2)e.push(t*t);return e}(),getFormatID:function(e){return e===n.Base37?++e:e===n.Base41&&--e,e},ECCInfos:[{inputBits:1,registerBits:[0],outputBits:1,outputMasks:null},{inputBits:3,registerBits:[3,3,3],outputBits:4,outputMasks:[[new i(0,3),new i(1,0),new i(2,2),new i(2,1),new i(2,0)],[new i(0,1),new i(0,0),new i(1,3),new i(1,2),new i(1,0)],[new i(0,2),new i(0,1),new i(0,0),new i(1,2),new i(2,3),new i(2,2)],[new i(0,3),new i(0,2),new i(1,3),new i(1,2),new i(1,1),new i(2,3),new i(2,2),new i(2,0)]]},{inputBits:2,registerBits:[10,11],outputBits:3,outputMasks:[[new i(0,10),new i(0,9),new i(0,7),new i(0,5),new i(0,4),new i(0,3),new i(0,0),new i(1,8),new i(1,4),new i(1,3),new i(1,0)],[new i(0,9),new i(0,6),new i(0,5),new i(0,2),new i(0,1),new i(0,0),new i(1,11),new i(1,8),new i(1,5),new i(1,3),new i(1,2)],[new i(0,10),new i(0,5),new i(0,4),new i(0,3),new i(1,11),new i(1,10),new i(1,9),new i(1,7),new i(1,4),new i(1,2),new i(1,0)]]},{inputBits:1,registerBits:[15],outputBits:2,outputMasks:[[new i(0,15),new i(0,13),new i(0,10),new i(0,9),new i(0,8),new i(0,7),new i(0,6),new i(0,5),new i(0,0)],[new i(0,15),new i(0,14),new i(0,12),new i(0,11),new i(0,9),new i(0,4),new i(0,2),new i(0,1),new i(0,0)]]},{inputBits:1,registerBits:[13],outputBits:4,outputMasks:[[new i(0,13),new i(0,9),new i(0,6),new i(0,3),new i(0,1),new i(0,0)],[new i(0,13),new i(0,10),new i(0,9),new i(0,6),new i(0,5),new i(0,4),new i(0,3),new i(0,2),new i(0,0)],[new i(0,13),new i(0,12),new i(0,11),new i(0,9),new i(0,8),new i(0,6),new i(0,4),new i(0,2),new i(0,1),new i(0,0)],[new i(0,13),new i(0,12),new i(0,11),new i(0,9),new i(0,8),new i(0,6),new i(0,4),new i(0,3),new i(0,2),new i(0,1),new i(0,0)]]}],RandomizeBytes:[5,255,199,49,136,168,131,156,100,135,159,100,179,224,77,156,128,41,58,144,179,139,158,144,69,191,245,104,75,8,207,68,184,212,76,91,160,171,114,82,28,228,210,116,164,218,138,8,250,167,199,221,0,48,169,230,100,171,213,139,237,156,121,248,8,209,139,198,34,100,11,51,67,208,128,212,68,149,46,111,94,19,141,71,98,6,235,128,130,201,65,213,115,138,48,35,36,227,127,178,168,11,237,56,66,76,215,176,206,152,189,225,213,228,195,29,21,74,207,209,31,57,38,24,147,252,25,178,45,171,242,110,161,159,175,208,138,43,160,86,176,65,109,67,164,99,243,170,125,175,53,87,194,148,74,101,11,65,222,184,226,48,18,39,155,102,43,52,91,184,153,232,40,113,208,149,107,7,77,60,122,179,229,41,179,186,140,204,45,224,201,192,34,236,76,222,248,88,7,252,25,242,100,226,195,226,216,185,253,103,160,188,245,46,201,73,117,98,130,39,16,244,25,111,73,247,179,132,20,234,235,225,42,49,171,71,125,8,41,172,187,114,250,250,98,184,200,211,134,137,149,253,223,204,156,173,241,212,108,100,35,36,42,86,31,54,235,183,214,255,218,87,244,80,121,8,0],ModuleMapping:[[2,45,10,38,24,21,1,12,40,26,5,33,19,47,22,31,29,15,43,8,36,34,20,48,13,41,27,6,44,9,37,23,17,30,16,39,25,4,32,18,46,11,0,28,14,42,7,35,3],[2,19,55,10,46,28,64,73,1,62,17,53,35,71,8,80,44,26,49,31,67,4,76,40,22,58,13,69,6,78,42,24,60,15,51,33,74,38,20,56,11,47,29,65,37,25,61,16,52,34,70,7,79,43,12,48,30,66,63,75,39,21,57,32,68,5,77,41,23,59,14,50,0,72,36,18,54,9,45,27,3],[2,26,114,70,15,103,59,37,81,4,1,117,73,18,106,62,40,84,7,95,51,29,12,100,56,34,78,92,89,45,23,111,67,65,43,87,10,98,54,32,120,76,21,109,82,5,93,49,27,115,71,16,104,60,38,96,52,30,118,74,19,107,63,41,85,8,24,112,68,13,101,57,35,79,48,90,46,75,20,108,64,42,86,9,97,53,31,119,102,58,36,80,77,91,47,25,113,69,14,39,83,6,94,50,28,116,72,17,105,61,0,88,44,22,110,66,11,99,55,33,3],[2,159,29,133,81,16,120,68,42,146,94,91,1,37,141,89,24,128,76,50,154,102,11,115,63,167,83,18,122,70,44,148,96,5,109,57,161,31,135,125,73,47,151,99,8,112,60,164,34,138,86,21,40,144,92,107,105,53,157,27,131,79,14,118,66,103,12,116,64,168,38,142,90,25,129,77,51,155,110,58,162,32,136,84,19,123,71,45,149,97,6,165,35,139,87,22,126,74,48,152,100,9,113,61,132,80,15,119,67,41,145,93,55,106,54,158,28,23,127,75,49,153,101,10,114,62,166,36,140,88,69,43,147,95,4,108,56,160,30,134,82,17,121,150,98,7,111,59,163,33,137,85,20,124,72,46,0,104,52,156,26,130,78,13,117,65,39,143,3],[2,187,37,157,97,217,22,142,82,202,52,172,112,7,1,41,161,101,221,26,146,86,206,56,176,116,11,131,71,191,93,213,18,138,78,198,48,168,108,105,123,63,183,33,153,28,148,88,208,58,178,118,13,133,73,193,43,163,103,223,80,200,50,170,110,5,125,65,185,35,155,95,215,20,140,54,174,114,9,129,69,189,39,159,99,219,24,144,84,204,106,127,121,61,181,31,151,91,211,16,136,76,196,46,166,134,74,194,44,164,104,224,29,149,89,209,59,179,119,14,186,36,156,96,216,21,141,81,201,51,171,111,6,126,66,160,100,220,25,145,85,205,55,175,115,10,130,70,190,40,212,17,137,77,197,47,167,107,67,122,62,182,32,152,92,147,87,207,57,177,117,12,132,72,192,42,162,102,222,27,199,49,169,109,4,124,64,184,34,154,94,214,19,139,79,173,113,8,128,68,188,38,158,98,218,23,143,83,203,53,0,120,60,180,30,150,90,210,15,135,75,195,45,165,3],[2,69,205,35,171,103,239,18,154,86,222,52,188,120,256,273,1,220,50,186,118,254,33,169,101,237,67,203,135,271,16,288,152,84,178,110,246,25,161,93,229,59,195,127,263,8,280,144,76,212,42,250,29,165,97,233,63,199,131,267,12,284,148,80,216,46,182,114,157,89,225,55,191,123,259,4,276,140,72,208,38,174,106,242,21,235,65,201,133,269,14,286,150,82,218,48,184,116,252,31,167,99,193,125,261,6,278,142,74,210,40,176,108,244,23,159,91,227,57,265,10,282,146,78,214,44,180,112,248,27,163,95,231,61,197,129,274,138,70,206,36,172,104,240,19,155,87,223,53,189,121,257,137,83,219,49,185,117,253,32,168,100,236,66,202,134,270,15,287,151,41,177,109,245,24,160,92,228,58,194,126,262,7,279,143,75,211,113,249,28,164,96,232,62,198,130,266,11,283,147,79,215,45,181,20,156,88,224,54,190,122,258,255,275,139,71,207,37,173,105,241,98,234,64,200,132,268,13,285,149,81,217,47,183,115,251,30,166,56,192,124,260,5,277,141,73,209,39,175,107,243,22,158,90,226,128,264,9,281,145,77,213,43,179,111,247,26,162,94,230,60,196,0,272,136,68,204,34,170,102,238,17,153,85,221,51,187,119,3],[2,82,234,44,348,196,120,272,25,329,177,101,253,63,215,139,291,6,1,239,49,353,201,125,277,30,334,182,106,258,68,220,144,296,11,315,163,87,343,191,115,267,20,324,172,96,248,58,210,134,286,310,305,153,77,229,39,132,284,37,341,189,113,265,75,227,151,303,18,322,170,94,246,56,360,208,28,332,180,104,256,66,218,142,294,9,313,161,85,237,47,351,199,123,275,185,109,261,71,223,147,299,14,318,166,90,242,52,356,204,128,280,33,337,251,61,213,137,289,4,308,156,80,232,42,346,194,118,270,23,327,175,99,225,149,301,16,320,168,92,244,54,358,206,130,282,35,339,187,111,263,73,292,7,311,159,83,235,45,349,197,121,273,26,330,178,102,254,64,216,140,316,164,88,240,50,354,202,126,278,31,335,183,107,259,69,221,145,297,12,78,230,40,344,192,116,268,21,325,173,97,249,59,211,135,287,158,306,154,55,359,207,131,283,36,340,188,112,264,74,226,150,302,17,321,169,93,245,198,122,274,27,331,179,103,255,65,217,141,293,8,312,160,84,236,46,350,279,32,336,184,108,260,70,222,146,298,13,317,165,89,241,51,355,203,127,326,174,98,250,60,212,136,288,285,307,155,79,231,41,345,193,117,269,22,110,262,72,224,148,300,15,319,167,91,243,53,357,205,129,281,34,338,186,62,214,138,290,5,309,157,81,233,43,347,195,119,271,24,328,176,100,252,143,295,10,314,162,86,238,48,352,200,124,276,29,333,181,105,257,67,219,0,304,152,76,228,38,342,190,114,266,19,323,171,95,247,57,209,133,3],[2,88,424,256,46,382,214,130,298,25,361,193,109,277,67,403,235,151,319,4,1,437,269,59,395,227,143,311,38,374,206,122,290,80,416,248,164,332,17,353,185,101,49,385,217,133,301,28,364,196,112,280,70,406,238,154,322,7,343,175,91,427,259,222,138,306,33,369,201,117,285,75,411,243,159,327,12,348,180,96,432,264,54,390,295,22,358,190,106,274,64,400,232,148,316,340,337,169,85,421,253,43,379,211,127,377,209,125,293,83,419,251,167,335,20,356,188,104,440,272,62,398,230,146,314,41,115,283,73,409,241,157,325,10,346,178,94,430,262,52,388,220,136,304,31,367,199,78,414,246,162,330,15,351,183,99,435,267,57,393,225,141,309,36,372,204,120,288,236,152,320,5,341,173,89,425,257,47,383,215,131,299,26,362,194,110,278,68,404,333,18,354,186,102,438,270,60,396,228,144,312,39,375,207,123,291,81,417,249,165,344,176,92,428,260,50,386,218,134,302,29,365,197,113,281,71,407,239,155,323,8,97,433,265,55,391,223,139,307,34,370,202,118,286,76,412,244,160,328,13,349,181,254,44,380,212,128,296,23,359,191,107,275,65,401,233,149,317,172,338,170,86,422,397,229,145,313,40,376,208,124,292,82,418,250,166,334,19,355,187,103,439,271,61,135,303,30,366,198,114,282,72,408,240,156,324,9,345,177,93,429,261,51,387,219,35,371,203,119,287,77,413,245,161,329,14,350,182,98,434,266,56,392,224,140,308,192,108,276,66,402,234,150,318,315,339,171,87,423,255,45,381,213,129,297,24,360,289,79,415,247,163,331,16,352,184,100,436,268,58,394,226,142,310,37,373,205,121,405,237,153,321,6,342,174,90,426,258,48,384,216,132,300,27,363,195,111,279,69,158,326,11,347,179,95,431,263,53,389,221,137,305,32,368,200,116,284,74,410,242,0,336,168,84,420,252,42,378,210,126,294,21,357,189,105,273,63,399,231,147,3],[2,102,470,286,56,424,240,148,516,332,33,401,217,125,493,309,79,447,263,171,355,10,1,476,292,62,430,246,154,522,338,39,407,223,131,499,315,85,453,269,177,361,16,384,200,108,50,418,234,142,510,326,27,395,211,119,487,303,73,441,257,165,349,4,372,188,96,464,280,249,157,525,341,42,410,226,134,502,318,88,456,272,180,364,19,387,203,111,479,295,65,433,513,329,30,398,214,122,490,306,76,444,260,168,352,7,375,191,99,467,283,53,421,237,145,36,404,220,128,496,312,82,450,266,174,358,13,381,197,105,473,289,59,427,243,151,519,335,208,116,484,300,70,438,254,162,346,378,369,185,93,461,277,47,415,231,139,507,323,24,392,505,321,91,459,275,183,367,22,390,206,114,482,298,68,436,252,160,528,344,45,413,229,137,80,448,264,172,356,11,379,195,103,471,287,57,425,241,149,517,333,34,402,218,126,494,310,270,178,362,17,385,201,109,477,293,63,431,247,155,523,339,40,408,224,132,500,316,86,454,350,5,373,189,97,465,281,51,419,235,143,511,327,28,396,212,120,488,304,74,442,258,166,388,204,112,480,296,66,434,250,158,526,342,43,411,227,135,503,319,89,457,273,181,365,20,100,468,284,54,422,238,146,514,330,31,399,215,123,491,307,77,445,261,169,353,8,376,192,290,60,428,244,152,520,336,37,405,221,129,497,313,83,451,267,175,359,14,382,198,106,474,416,232,140,508,324,25,393,209,117,485,301,71,439,255,163,347,194,370,186,94,462,278,48,159,527,343,44,412,228,136,504,320,90,458,274,182,366,21,389,205,113,481,297,67,435,251,331,32,400,216,124,492,308,78,446,262,170,354,9,377,193,101,469,285,55,423,239,147,515,406,222,130,498,314,84,452,268,176,360,15,383,199,107,475,291,61,429,245,153,521,337,38,118,486,302,72,440,256,164,348,345,371,187,95,463,279,49,417,233,141,509,325,26,394,210,317,87,455,271,179,363,18,386,202,110,478,294,64,432,248,156,524,340,41,409,225,133,501,443,259,167,351,6,374,190,98,466,282,52,420,236,144,512,328,29,397,213,121,489,305,75,173,357,12,380,196,104,472,288,58,426,242,150,518,334,35,403,219,127,495,311,81,449,265,0,368,184,92,460,276,46,414,230,138,506,322,23,391,207,115,483,299,69,437,253,161,3],[2,603,103,503,303,53,453,253,153,553,353,28,428,228,128,528,328,78,478,278,178,578,378,375,1,123,523,323,73,473,273,173,573,373,48,448,248,148,548,348,98,498,298,198,598,398,23,423,223,623,311,61,461,261,161,561,361,36,436,236,136,536,336,86,486,286,186,586,386,11,411,211,611,111,511,467,267,167,567,367,42,442,242,142,542,342,92,492,292,192,592,392,17,417,217,617,117,517,317,67,155,555,355,30,430,230,130,530,330,80,480,280,180,580,380,5,405,205,605,105,505,305,55,455,255,370,45,445,245,145,545,345,95,495,295,195,595,395,20,420,220,620,120,520,320,70,470,270,170,570,433,233,133,533,333,83,483,283,183,583,383,8,408,208,608,108,508,308,58,458,258,158,558,358,33,139,539,339,89,489,289,189,589,389,14,414,214,614,114,514,314,64,464,264,164,564,364,39,439,239,326,76,476,276,176,576,376,403,401,201,601,101,501,301,51,451,251,151,551,351,26,426,226,126,526,499,299,199,599,399,24,424,224,624,124,524,324,74,474,274,174,574,374,49,449,249,149,549,349,99,187,587,387,12,412,212,612,112,512,312,62,462,262,162,562,362,37,437,237,137,537,337,87,487,287,393,18,418,218,618,118,518,318,68,468,268,168,568,368,43,443,243,143,543,343,93,493,293,193,593,406,206,606,106,506,306,56,456,256,156,556,356,31,431,231,131,531,331,81,481,281,181,581,381,6,621,121,521,321,71,471,271,171,571,371,46,446,246,146,546,346,96,496,296,196,596,396,21,421,221,509,309,59,459,259,159,559,359,34,434,234,134,534,334,84,484,284,184,584,384,9,409,209,609,109,65,465,265,165,565,365,40,440,240,140,540,340,90,490,290,190,590,390,15,415,215,615,115,515,315,252,152,552,352,27,427,227,127,527,327,77,477,277,177,577,377,203,402,202,602,102,502,302,52,452,572,372,47,447,247,147,547,347,97,497,297,197,597,397,22,422,222,622,122,522,322,72,472,272,172,35,435,235,135,535,335,85,485,285,185,585,385,10,410,210,610,110,510,310,60,460,260,160,560,360,241,141,541,341,91,491,291,191,591,391,16,416,216,616,116,516,316,66,466,266,166,566,366,41,441,529,329,79,479,279,179,579,379,4,404,204,604,104,504,304,54,454,254,154,554,354,29,429,229,129,94,494,294,194,594,394,19,419,219,619,119,519,319,69,469,269,169,569,369,44,444,244,144,544,344,282,182,582,382,7,407,207,607,107,507,307,57,457,257,157,557,357,32,432,232,132,532,332,82,482,588,388,13,413,213,613,113,513,313,63,463,263,163,563,363,38,438,238,138,538,338,88,488,288,188,0,400,200,600,100,500,300,50,450,250,150,550,350,25,425,225,125,525,325,75,475,275,175,575,3],[2,658,118,550,334,64,496,280,712,172,604,388,37,469,253,685,145,577,361,91,523,307,199,631,415,10,1,125,557,341,71,503,287,719,179,611,395,44,476,260,692,152,584,368,98,530,314,206,638,422,17,449,233,665,327,57,489,273,705,165,597,381,30,462,246,678,138,570,354,84,516,300,192,624,408,405,435,219,651,111,543,511,295,727,187,619,403,52,484,268,700,160,592,376,106,538,322,214,646,430,25,457,241,673,133,565,349,79,714,174,606,390,39,471,255,687,147,579,363,93,525,309,201,633,417,12,444,228,660,120,552,336,66,498,282,613,397,46,478,262,694,154,586,370,100,532,316,208,640,424,19,451,235,667,127,559,343,73,505,289,721,181,32,464,248,680,140,572,356,86,518,302,194,626,410,5,437,221,653,113,545,329,59,491,275,707,167,599,383,265,697,157,589,373,103,535,319,211,643,427,22,454,238,670,130,562,346,76,508,292,724,184,616,400,49,481,143,575,359,89,521,305,197,629,413,8,440,224,656,116,548,332,62,494,278,710,170,602,386,35,467,251,683,366,96,528,312,204,636,420,15,447,231,663,123,555,339,69,501,285,717,177,609,393,42,474,258,690,150,582,514,298,190,622,406,442,433,217,649,109,541,325,55,487,271,703,163,595,379,28,460,244,676,136,568,352,82,215,647,431,26,458,242,674,134,566,350,80,512,296,728,188,620,404,53,485,269,701,161,593,377,107,539,323,418,13,445,229,661,121,553,337,67,499,283,715,175,607,391,40,472,256,688,148,580,364,94,526,310,202,634,452,236,668,128,560,344,74,506,290,722,182,614,398,47,479,263,695,155,587,371,101,533,317,209,641,425,20,654,114,546,330,60,492,276,708,168,600,384,33,465,249,681,141,573,357,87,519,303,195,627,411,6,438,222,563,347,77,509,293,725,185,617,401,50,482,266,698,158,590,374,104,536,320,212,644,428,23,455,239,671,131,63,495,279,711,171,603,387,36,468,252,684,144,576,360,90,522,306,198,630,414,9,441,225,657,117,549,333,286,718,178,610,394,43,475,259,691,151,583,367,97,529,313,205,637,421,16,448,232,664,124,556,340,70,502,164,596,380,29,461,245,677,137,569,353,83,515,299,191,623,407,226,434,218,650,110,542,326,56,488,272,704,402,51,483,267,699,159,591,375,105,537,321,213,645,429,24,456,240,672,132,564,348,78,510,294,726,186,618,470,254,686,146,578,362,92,524,308,200,632,416,11,443,227,659,119,551,335,65,497,281,713,173,605,389,38,693,153,585,369,99,531,315,207,639,423,18,450,234,666,126,558,342,72,504,288,720,180,612,396,45,477,261,571,355,85,517,301,193,625,409,4,436,220,652,112,544,328,58,490,274,706,166,598,382,31,463,247,679,139,102,534,318,210,642,426,21,453,237,669,129,561,345,75,507,291,723,183,615,399,48,480,264,696,156,588,372,304,196,628,412,7,439,223,655,115,547,331,61,493,277,709,169,601,385,34,466,250,682,142,574,358,88,520,635,419,14,446,230,662,122,554,338,68,500,284,716,176,608,392,41,473,257,689,149,581,365,95,527,311,203,0,432,216,648,108,540,324,54,486,270,702,162,594,378,27,459,243,675,135,567,351,81,513,297,189,621,3],[2,703,123,587,355,819,65,529,297,761,181,645,413,36,500,268,732,152,616,384,94,558,326,790,210,674,442,7,1,141,605,373,837,83,547,315,779,199,663,431,54,518,286,750,170,634,402,112,576,344,808,228,692,460,25,489,257,721,359,823,69,533,301,765,185,649,417,40,504,272,736,156,620,388,98,562,330,794,214,678,446,11,475,243,707,127,591,76,540,308,772,192,656,424,47,511,279,743,163,627,395,105,569,337,801,221,685,453,18,482,250,714,134,598,366,830,293,757,177,641,409,32,496,264,728,148,612,380,90,554,322,786,206,670,438,435,467,235,699,119,583,351,815,61,525,201,665,433,56,520,288,752,172,636,404,114,578,346,810,230,694,462,27,491,259,723,143,607,375,839,85,549,317,781,419,42,506,274,738,158,622,390,100,564,332,796,216,680,448,13,477,245,709,129,593,361,825,71,535,303,767,187,651,513,281,745,165,629,397,107,571,339,803,223,687,455,20,484,252,716,136,600,368,832,78,542,310,774,194,658,426,49,730,150,614,382,92,556,324,788,208,672,440,5,469,237,701,121,585,353,817,63,527,295,759,179,643,411,34,498,266,632,400,110,574,342,806,226,690,458,23,487,255,719,139,603,371,835,81,545,313,777,197,661,429,52,516,284,748,168,96,560,328,792,212,676,444,9,473,241,705,125,589,357,821,67,531,299,763,183,647,415,38,502,270,734,154,618,386,335,799,219,683,451,16,480,248,712,132,596,364,828,74,538,306,770,190,654,422,45,509,277,741,161,625,393,103,567,204,668,436,471,465,233,697,117,581,349,813,59,523,291,755,175,639,407,30,494,262,726,146,610,378,88,552,320,784,463,28,492,260,724,144,608,376,840,86,550,318,782,202,666,434,57,521,289,753,173,637,405,115,579,347,811,231,695,478,246,710,130,594,362,826,72,536,304,768,188,652,420,43,507,275,739,159,623,391,101,565,333,797,217,681,449,14,717,137,601,369,833,79,543,311,775,195,659,427,50,514,282,746,166,630,398,108,572,340,804,224,688,456,21,485,253,586,354,818,64,528,296,760,180,644,412,35,499,267,731,151,615,383,93,557,325,789,209,673,441,6,470,238,702,122,836,82,546,314,778,198,662,430,53,517,285,749,169,633,401,111,575,343,807,227,691,459,24,488,256,720,140,604,372,532,300,764,184,648,416,39,503,271,735,155,619,387,97,561,329,793,213,677,445,10,474,242,706,126,590,358,822,68,771,191,655,423,46,510,278,742,162,626,394,104,568,336,800,220,684,452,17,481,249,713,133,597,365,829,75,539,307,640,408,31,495,263,727,147,611,379,89,553,321,785,205,669,437,239,466,234,698,118,582,350,814,60,524,292,756,176,55,519,287,751,171,635,403,113,577,345,809,229,693,461,26,490,258,722,142,606,374,838,84,548,316,780,200,664,432,273,737,157,621,389,99,563,331,795,215,679,447,12,476,244,708,128,592,360,824,70,534,302,766,186,650,418,41,505,164,628,396,106,570,338,802,222,686,454,19,483,251,715,135,599,367,831,77,541,309,773,193,657,425,48,512,280,744,381,91,555,323,787,207,671,439,4,468,236,700,120,584,352,816,62,526,294,758,178,642,410,33,497,265,729,149,613,573,341,805,225,689,457,22,486,254,718,138,602,370,834,80,544,312,776,196,660,428,51,515,283,747,167,631,399,109,791,211,675,443,8,472,240,704,124,588,356,820,66,530,298,762,182,646,414,37,501,269,733,153,617,385,95,559,327,682,450,15,479,247,711,131,595,363,827,73,537,305,769,189,653,421,44,508,276,740,160,624,392,102,566,334,798,218,0,464,232,696,116,580,348,812,58,522,290,754,174,638,406,29,493,261,725,145,609,377,87,551,319,783,203,667,3],[2,759,139,635,387,883,77,573,325,821,201,697,449,945,46,542,294,790,170,666,418,914,108,604,356,852,232,728,480,15,1,147,643,395,891,85,581,333,829,209,705,457,953,54,550,302,798,178,674,426,922,116,612,364,860,240,736,488,23,519,271,767,379,875,69,565,317,813,193,689,441,937,38,534,286,782,162,658,410,906,100,596,348,844,224,720,472,7,503,255,751,131,627,89,585,337,833,213,709,461,957,58,554,306,802,182,678,430,926,120,616,368,864,244,740,492,27,523,275,771,151,647,399,895,321,817,197,693,445,941,42,538,290,786,166,662,414,910,104,600,352,848,228,724,476,11,507,259,755,135,631,383,879,73,569,205,701,453,949,50,546,298,794,174,670,422,918,112,608,360,856,236,732,484,19,515,267,763,143,639,391,887,81,577,329,825,437,933,34,530,282,778,158,654,406,902,96,592,344,840,220,716,468,465,499,251,747,127,623,375,871,65,561,313,809,189,685,60,556,308,804,184,680,432,928,122,618,370,866,246,742,494,29,525,277,773,153,649,401,897,91,587,339,835,215,711,463,959,292,788,168,664,416,912,106,602,354,850,230,726,478,13,509,261,757,137,633,385,881,75,571,323,819,199,695,447,943,44,540,176,672,424,920,114,610,362,858,238,734,486,21,517,269,765,145,641,393,889,83,579,331,827,207,703,455,951,52,548,300,796,408,904,98,594,346,842,222,718,470,5,501,253,749,129,625,377,873,67,563,315,811,191,687,439,935,36,532,284,780,160,656,118,614,366,862,242,738,490,25,521,273,769,149,645,397,893,87,583,335,831,211,707,459,955,56,552,304,800,180,676,428,924,350,846,226,722,474,9,505,257,753,133,629,381,877,71,567,319,815,195,691,443,939,40,536,288,784,164,660,412,908,102,598,234,730,482,17,513,265,761,141,637,389,885,79,575,327,823,203,699,451,947,48,544,296,792,172,668,420,916,110,606,358,854,466,511,497,249,745,125,621,373,869,63,559,311,807,187,683,435,931,32,528,280,776,156,652,404,900,94,590,342,838,218,714,526,278,774,154,650,402,898,92,588,340,836,216,712,464,960,61,557,309,805,185,681,433,929,123,619,371,867,247,743,495,30,758,138,634,386,882,76,572,324,820,200,696,448,944,45,541,293,789,169,665,417,913,107,603,355,851,231,727,479,14,510,262,642,394,890,84,580,332,828,208,704,456,952,53,549,301,797,177,673,425,921,115,611,363,859,239,735,487,22,518,270,766,146,874,68,564,316,812,192,688,440,936,37,533,285,781,161,657,409,905,99,595,347,843,223,719,471,6,502,254,750,130,626,378,584,336,832,212,708,460,956,57,553,305,801,181,677,429,925,119,615,367,863,243,739,491,26,522,274,770,150,646,398,894,88,816,196,692,444,940,41,537,289,785,165,661,413,909,103,599,351,847,227,723,475,10,506,258,754,134,630,382,878,72,568,320,700,452,948,49,545,297,793,173,669,421,917,111,607,359,855,235,731,483,18,514,266,762,142,638,390,886,80,576,328,824,204,932,33,529,281,777,157,653,405,901,95,591,343,839,219,715,467,263,498,250,746,126,622,374,870,64,560,312,808,188,684,436,555,307,803,183,679,431,927,121,617,369,865,245,741,493,28,524,276,772,152,648,400,896,90,586,338,834,214,710,462,958,59,787,167,663,415,911,105,601,353,849,229,725,477,12,508,260,756,136,632,384,880,74,570,322,818,198,694,446,942,43,539,291,671,423,919,113,609,361,857,237,733,485,20,516,268,764,144,640,392,888,82,578,330,826,206,702,454,950,51,547,299,795,175,903,97,593,345,841,221,717,469,4,500,252,748,128,624,376,872,66,562,314,810,190,686,438,934,35,531,283,779,159,655,407,613,365,861,241,737,489,24,520,272,768,148,644,396,892,86,582,334,830,210,706,458,954,55,551,303,799,179,675,427,923,117,845,225,721,473,8,504,256,752,132,628,380,876,70,566,318,814,194,690,442,938,39,535,287,783,163,659,411,907,101,597,349,729,481,16,512,264,760,140,636,388,884,78,574,326,822,202,698,450,946,47,543,295,791,171,667,419,915,109,605,357,853,233,0,496,248,744,124,620,372,868,62,558,310,806,186,682,434,930,31,527,279,775,155,651,403,899,93,589,341,837,217,713,3],[2,265,793,133,661,397,925,67,595,331,859,199,727,463,991,34,562,298,826,166,694,430,958,100,628,364,892,232,760,496,1024,1057,1,824,164,692,428,956,98,626,362,890,230,758,494,1022,65,593,329,857,197,725,461,989,131,659,395,923,263,791,527,1055,32,1088,560,296,676,412,940,82,610,346,874,214,742,478,1006,49,577,313,841,181,709,445,973,115,643,379,907,247,775,511,1039,16,1072,544,280,808,148,948,90,618,354,882,222,750,486,1014,57,585,321,849,189,717,453,981,123,651,387,915,255,783,519,1047,24,1080,552,288,816,156,684,420,602,338,866,206,734,470,998,41,569,305,833,173,701,437,965,107,635,371,899,239,767,503,1031,8,1064,536,272,800,140,668,404,932,74,886,226,754,490,1018,61,589,325,853,193,721,457,985,127,655,391,919,259,787,523,1051,28,1084,556,292,820,160,688,424,952,94,622,358,738,474,1002,45,573,309,837,177,705,441,969,111,639,375,903,243,771,507,1035,12,1068,540,276,804,144,672,408,936,78,606,342,870,210,1010,53,581,317,845,185,713,449,977,119,647,383,911,251,779,515,1043,20,1076,548,284,812,152,680,416,944,86,614,350,878,218,746,482,565,301,829,169,697,433,961,103,631,367,895,235,763,499,1027,4,1060,532,268,796,136,664,400,928,70,598,334,862,202,730,466,994,37,855,195,723,459,987,129,657,393,921,261,789,525,1053,30,1086,558,294,822,162,690,426,954,96,624,360,888,228,756,492,1020,63,591,327,707,443,971,113,641,377,905,245,773,509,1037,14,1070,542,278,806,146,674,410,938,80,608,344,872,212,740,476,1004,47,575,311,839,179,979,121,649,385,913,253,781,517,1045,22,1078,550,286,814,154,682,418,946,88,616,352,880,220,748,484,1012,55,583,319,847,187,715,451,633,369,897,237,765,501,1029,6,1062,534,270,798,138,666,402,930,72,600,336,864,204,732,468,996,39,567,303,831,171,699,435,963,105,917,257,785,521,1049,26,1082,554,290,818,158,686,422,950,92,620,356,884,224,752,488,1016,59,587,323,851,191,719,455,983,125,653,389,769,505,1033,10,1066,538,274,802,142,670,406,934,76,604,340,868,208,736,472,1e3,43,571,307,835,175,703,439,967,109,637,373,901,241,1041,18,1074,546,282,810,150,678,414,942,84,612,348,876,216,744,480,1008,51,579,315,843,183,711,447,975,117,645,381,909,249,777,513,1058,530,266,794,134,662,398,926,68,596,332,860,200,728,464,992,35,563,299,827,167,695,431,959,101,629,365,893,233,761,497,1025,529,295,823,163,691,427,955,97,625,361,889,229,757,493,1021,64,592,328,856,196,724,460,988,130,658,394,922,262,790,526,1054,31,1087,559,147,675,411,939,81,609,345,873,213,741,477,1005,48,576,312,840,180,708,444,972,114,642,378,906,246,774,510,1038,15,1071,543,279,807,419,947,89,617,353,881,221,749,485,1013,56,584,320,848,188,716,452,980,122,650,386,914,254,782,518,1046,23,1079,551,287,815,155,683,73,601,337,865,205,733,469,997,40,568,304,832,172,700,436,964,106,634,370,898,238,766,502,1030,7,1063,535,271,799,139,667,403,931,357,885,225,753,489,1017,60,588,324,852,192,720,456,984,126,654,390,918,258,786,522,1050,27,1083,555,291,819,159,687,423,951,93,621,209,737,473,1001,44,572,308,836,176,704,440,968,110,638,374,902,242,770,506,1034,11,1067,539,275,803,143,671,407,935,77,605,341,869,481,1009,52,580,316,844,184,712,448,976,118,646,382,910,250,778,514,1042,19,1075,547,283,811,151,679,415,943,85,613,349,877,217,745,36,564,300,828,168,696,432,960,102,630,366,894,234,762,498,1026,1023,1059,531,267,795,135,663,399,927,69,597,333,861,201,729,465,993,326,854,194,722,458,986,128,656,392,920,260,788,524,1052,29,1085,557,293,821,161,689,425,953,95,623,359,887,227,755,491,1019,62,590,178,706,442,970,112,640,376,904,244,772,508,1036,13,1069,541,277,805,145,673,409,937,79,607,343,871,211,739,475,1003,46,574,310,838,450,978,120,648,384,912,252,780,516,1044,21,1077,549,285,813,153,681,417,945,87,615,351,879,219,747,483,1011,54,582,318,846,186,714,104,632,368,896,236,764,500,1028,5,1061,533,269,797,137,665,401,929,71,599,335,863,203,731,467,995,38,566,302,830,170,698,434,962,388,916,256,784,520,1048,25,1081,553,289,817,157,685,421,949,91,619,355,883,223,751,487,1015,58,586,322,850,190,718,454,982,124,652,240,768,504,1032,9,1065,537,273,801,141,669,405,933,75,603,339,867,207,735,471,999,42,570,306,834,174,702,438,966,108,636,372,900,512,1040,17,1073,545,281,809,149,677,413,941,83,611,347,875,215,743,479,1007,50,578,314,842,182,710,446,974,116,644,380,908,248,776,0,1056,528,264,792,132,660,396,924,66,594,330,858,198,726,462,990,33,561,297,825,165,693,429,957,99,627,363,891,231,759,495,3],[2,290,850,150,710,430,990,80,1200,640,360,920,220,780,500,1060,45,1165,605,325,885,185,745,465,1025,115,675,395,955,255,815,535,1095,10,1,859,159,719,439,999,89,1209,649,369,929,229,789,509,1069,54,1174,614,334,894,194,754,474,1034,124,684,404,964,264,824,544,1104,19,1139,579,299,701,421,981,71,1191,631,351,911,211,771,491,1051,36,1156,596,316,876,176,736,456,1016,106,666,386,946,246,806,526,1086,1130,1121,561,281,841,141,1014,104,1224,664,384,944,244,804,524,1084,69,1189,629,349,909,209,769,489,1049,139,699,419,979,279,839,559,1119,34,1154,594,314,874,174,734,454,1207,647,367,927,227,787,507,1067,52,1172,612,332,892,192,752,472,1032,122,682,402,962,262,822,542,1102,17,1137,577,297,857,157,717,437,997,87,376,936,236,796,516,1076,61,1181,621,341,901,201,761,481,1041,131,691,411,971,271,831,551,1111,26,1146,586,306,866,166,726,446,1006,96,1216,656,218,778,498,1058,43,1163,603,323,883,183,743,463,1023,113,673,393,953,253,813,533,1093,8,1128,568,288,848,148,708,428,988,78,1198,638,358,918,520,1080,65,1185,625,345,905,205,765,485,1045,135,695,415,975,275,835,555,1115,30,1150,590,310,870,170,730,450,1010,100,1220,660,380,940,240,800,48,1168,608,328,888,188,748,468,1028,118,678,398,958,258,818,538,1098,13,1133,573,293,853,153,713,433,993,83,1203,643,363,923,223,783,503,1063,617,337,897,197,757,477,1037,127,687,407,967,267,827,547,1107,22,1142,582,302,862,162,722,442,1002,92,1212,652,372,932,232,792,512,1072,57,1177,879,179,739,459,1019,109,669,389,949,249,809,529,1089,4,1124,564,284,844,144,704,424,984,74,1194,634,354,914,214,774,494,1054,39,1159,599,319,767,487,1047,137,697,417,977,277,837,557,1117,32,1152,592,312,872,172,732,452,1012,102,1222,662,382,942,242,802,522,1082,67,1187,627,347,907,207,1030,120,680,400,960,260,820,540,1100,15,1135,575,295,855,155,715,435,995,85,1205,645,365,925,225,785,505,1065,50,1170,610,330,890,190,750,470,689,409,969,269,829,549,1109,24,1144,584,304,864,164,724,444,1004,94,1214,654,374,934,234,794,514,1074,59,1179,619,339,899,199,759,479,1039,129,951,251,811,531,1091,6,1126,566,286,846,146,706,426,986,76,1196,636,356,916,216,776,496,1056,41,1161,601,321,881,181,741,461,1021,111,671,391,833,553,1113,28,1148,588,308,868,168,728,448,1008,98,1218,658,378,938,238,798,518,1078,63,1183,623,343,903,203,763,483,1043,133,693,413,973,273,1096,11,1131,571,291,851,151,711,431,991,81,1201,641,361,921,221,781,501,1061,46,1166,606,326,886,186,746,466,1026,116,676,396,956,256,816,536,1140,580,300,860,160,720,440,1e3,90,1210,650,370,930,230,790,510,1070,55,1175,615,335,895,195,755,475,1035,125,685,405,965,265,825,545,1105,20,282,842,142,702,422,982,72,1192,632,352,912,212,772,492,1052,37,1157,597,317,877,177,737,457,1017,107,667,387,947,247,807,527,1087,570,1122,562,173,733,453,1013,103,1223,663,383,943,243,803,523,1083,68,1188,628,348,908,208,768,488,1048,138,698,418,978,278,838,558,1118,33,1153,593,313,873,436,996,86,1206,646,366,926,226,786,506,1066,51,1171,611,331,891,191,751,471,1031,121,681,401,961,261,821,541,1101,16,1136,576,296,856,156,716,95,1215,655,375,935,235,795,515,1075,60,1180,620,340,900,200,760,480,1040,130,690,410,970,270,830,550,1110,25,1145,585,305,865,165,725,445,1005,637,357,917,217,777,497,1057,42,1162,602,322,882,182,742,462,1022,112,672,392,952,252,812,532,1092,7,1127,567,287,847,147,707,427,987,77,1197,939,239,799,519,1079,64,1184,624,344,904,204,764,484,1044,134,694,414,974,274,834,554,1114,29,1149,589,309,869,169,729,449,1009,99,1219,659,379,782,502,1062,47,1167,607,327,887,187,747,467,1027,117,677,397,957,257,817,537,1097,12,1132,572,292,852,152,712,432,992,82,1202,642,362,922,222,1071,56,1176,616,336,896,196,756,476,1036,126,686,406,966,266,826,546,1106,21,1141,581,301,861,161,721,441,1001,91,1211,651,371,931,231,791,511,1158,598,318,878,178,738,458,1018,108,668,388,948,248,808,528,1088,1085,1123,563,283,843,143,703,423,983,73,1193,633,353,913,213,773,493,1053,38,346,906,206,766,486,1046,136,696,416,976,276,836,556,1116,31,1151,591,311,871,171,731,451,1011,101,1221,661,381,941,241,801,521,1081,66,1186,626,189,749,469,1029,119,679,399,959,259,819,539,1099,14,1134,574,294,854,154,714,434,994,84,1204,644,364,924,224,784,504,1064,49,1169,609,329,889,478,1038,128,688,408,968,268,828,548,1108,23,1143,583,303,863,163,723,443,1003,93,1213,653,373,933,233,793,513,1073,58,1178,618,338,898,198,758,110,670,390,950,250,810,530,1090,5,1125,565,285,845,145,705,425,985,75,1195,635,355,915,215,775,495,1055,40,1160,600,320,880,180,740,460,1020,412,972,272,832,552,1112,27,1147,587,307,867,167,727,447,1007,97,1217,657,377,937,237,797,517,1077,62,1182,622,342,902,202,762,482,1042,132,692,254,814,534,1094,9,1129,569,289,849,149,709,429,989,79,1199,639,359,919,219,779,499,1059,44,1164,604,324,884,184,744,464,1024,114,674,394,954,543,1103,18,1138,578,298,858,158,718,438,998,88,1208,648,368,928,228,788,508,1068,53,1173,613,333,893,193,753,473,1033,123,683,403,963,263,823,0,1120,560,280,840,140,700,420,980,70,1190,630,350,910,210,770,490,1050,35,1155,595,315,875,175,735,455,1015,105,665,385,945,245,805,525,3],[2,302,894,154,1338,746,450,1042,80,1264,672,376,968,228,820,524,1116,43,1227,635,339,931,191,783,487,1079,117,1301,709,413,1005,265,857,561,1153,6,1,917,177,1361,769,473,1065,103,1287,695,399,991,251,843,547,1139,66,1250,658,362,954,214,806,510,1102,140,1324,732,436,1028,288,880,584,1176,29,1213,621,325,1343,751,455,1047,85,1269,677,381,973,233,825,529,1121,48,1232,640,344,936,196,788,492,1084,122,1306,714,418,1010,270,862,566,1158,11,1195,603,307,899,159,464,1056,94,1278,686,390,982,242,834,538,1130,57,1241,649,353,945,205,797,501,1093,131,1315,723,427,1019,279,871,575,1167,20,1204,612,316,908,168,1352,760,75,1259,667,371,963,223,815,519,1111,38,1222,630,334,926,186,778,482,1074,112,1296,704,408,1e3,260,852,556,1148,1190,1185,593,297,889,149,1333,741,445,1037,702,406,998,258,850,554,1146,73,1257,665,369,961,221,813,517,1109,147,1331,739,443,1035,295,887,591,1183,36,1220,628,332,924,184,1368,776,480,1072,110,1294,980,240,832,536,1128,55,1239,647,351,943,203,795,499,1091,129,1313,721,425,1017,277,869,573,1165,18,1202,610,314,906,166,1350,758,462,1054,92,1276,684,388,841,545,1137,64,1248,656,360,952,212,804,508,1100,138,1322,730,434,1026,286,878,582,1174,27,1211,619,323,915,175,1359,767,471,1063,101,1285,693,397,989,249,1119,46,1230,638,342,934,194,786,490,1082,120,1304,712,416,1008,268,860,564,1156,9,1193,601,305,897,157,1341,749,453,1045,83,1267,675,379,971,231,823,527,1253,661,365,957,217,809,513,1105,143,1327,735,439,1031,291,883,587,1179,32,1216,624,328,920,180,1364,772,476,1068,106,1290,698,402,994,254,846,550,1142,69,347,939,199,791,495,1087,125,1309,717,421,1013,273,865,569,1161,14,1198,606,310,902,162,1346,754,458,1050,88,1272,680,384,976,236,828,532,1124,51,1235,643,208,800,504,1096,134,1318,726,430,1022,282,874,578,1170,23,1207,615,319,911,171,1355,763,467,1059,97,1281,689,393,985,245,837,541,1133,60,1244,652,356,948,485,1077,115,1299,707,411,1003,263,855,559,1151,4,1188,596,300,892,152,1336,744,448,1040,78,1262,670,374,966,226,818,522,1114,41,1225,633,337,929,189,781,145,1329,737,441,1033,293,885,589,1181,34,1218,626,330,922,182,1366,774,478,1070,108,1292,700,404,996,256,848,552,1144,71,1255,663,367,959,219,811,515,1107,719,423,1015,275,867,571,1163,16,1200,608,312,904,164,1348,756,460,1052,90,1274,682,386,978,238,830,534,1126,53,1237,645,349,941,201,793,497,1089,127,1311,1024,284,876,580,1172,25,1209,617,321,913,173,1357,765,469,1061,99,1283,691,395,987,247,839,543,1135,62,1246,654,358,950,210,802,506,1098,136,1320,728,432,858,562,1154,7,1191,599,303,895,155,1339,747,451,1043,81,1265,673,377,969,229,821,525,1117,44,1228,636,340,932,192,784,488,1080,118,1302,710,414,1006,266,1177,30,1214,622,326,918,178,1362,770,474,1066,104,1288,696,400,992,252,844,548,1140,67,1251,659,363,955,215,807,511,1103,141,1325,733,437,1029,289,881,585,1196,604,308,900,160,1344,752,456,1048,86,1270,678,382,974,234,826,530,1122,49,1233,641,345,937,197,789,493,1085,123,1307,715,419,1011,271,863,567,1159,12,317,909,169,1353,761,465,1057,95,1279,687,391,983,243,835,539,1131,58,1242,650,354,946,206,798,502,1094,132,1316,724,428,1020,280,872,576,1168,21,1205,613,150,1334,742,446,1038,76,1260,668,372,964,224,816,520,1112,39,1223,631,335,927,187,779,483,1075,113,1297,705,409,1001,261,853,557,1149,598,1186,594,298,890,775,479,1071,109,1293,701,405,997,257,849,553,1145,72,1256,664,368,960,220,812,516,1108,146,1330,738,442,1034,294,886,590,1182,35,1219,627,331,923,183,1367,1053,91,1275,683,387,979,239,831,535,1127,54,1238,646,350,942,202,794,498,1090,128,1312,720,424,1016,276,868,572,1164,17,1201,609,313,905,165,1349,757,461,1284,692,396,988,248,840,544,1136,63,1247,655,359,951,211,803,507,1099,137,1321,729,433,1025,285,877,581,1173,26,1210,618,322,914,174,1358,766,470,1062,100,378,970,230,822,526,1118,45,1229,637,341,933,193,785,489,1081,119,1303,711,415,1007,267,859,563,1155,8,1192,600,304,896,156,1340,748,452,1044,82,1266,674,253,845,549,1141,68,1252,660,364,956,216,808,512,1104,142,1326,734,438,1030,290,882,586,1178,31,1215,623,327,919,179,1363,771,475,1067,105,1289,697,401,993,531,1123,50,1234,642,346,938,198,790,494,1086,124,1308,716,420,1012,272,864,568,1160,13,1197,605,309,901,161,1345,753,457,1049,87,1271,679,383,975,235,827,59,1243,651,355,947,207,799,503,1095,133,1317,725,429,1021,281,873,577,1169,22,1206,614,318,910,170,1354,762,466,1058,96,1280,688,392,984,244,836,540,1132,632,336,928,188,780,484,1076,114,1298,706,410,1002,262,854,558,1150,1147,1187,595,299,891,151,1335,743,447,1039,77,1261,669,373,965,225,817,521,1113,40,1224,958,218,810,514,1106,144,1328,736,440,1032,292,884,588,1180,33,1217,625,329,921,181,1365,773,477,1069,107,1291,699,403,995,255,847,551,1143,70,1254,662,366,792,496,1088,126,1310,718,422,1014,274,866,570,1162,15,1199,607,311,903,163,1347,755,459,1051,89,1273,681,385,977,237,829,533,1125,52,1236,644,348,940,200,1097,135,1319,727,431,1023,283,875,579,1171,24,1208,616,320,912,172,1356,764,468,1060,98,1282,690,394,986,246,838,542,1134,61,1245,653,357,949,209,801,505,1300,708,412,1004,264,856,560,1152,5,1189,597,301,893,153,1337,745,449,1041,79,1263,671,375,967,227,819,523,1115,42,1226,634,338,930,190,782,486,1078,116,435,1027,287,879,583,1175,28,1212,620,324,916,176,1360,768,472,1064,102,1286,694,398,990,250,842,546,1138,65,1249,657,361,953,213,805,509,1101,139,1323,731,269,861,565,1157,10,1194,602,306,898,158,1342,750,454,1046,84,1268,676,380,972,232,824,528,1120,47,1231,639,343,935,195,787,491,1083,121,1305,713,417,1009,574,1166,19,1203,611,315,907,167,1351,759,463,1055,93,1277,685,389,981,241,833,537,1129,56,1240,648,352,944,204,796,500,1092,130,1314,722,426,1018,278,870,0,1184,592,296,888,148,1332,740,444,1036,74,1258,666,370,962,222,814,518,1110,37,1221,629,333,925,185,777,481,1073,111,1295,703,407,999,259,851,555,3],[2,328,952,172,1420,796,484,1108,94,1342,718,406,1030,250,1498,874,562,1186,55,1303,679,367,991,211,1459,835,523,1147,133,1381,757,445,1069,289,913,601,1225,16,1,962,182,1430,806,494,1118,104,1352,728,416,1040,260,1508,884,572,1196,65,1313,689,377,1001,221,1469,845,533,1157,143,1391,767,455,1079,299,923,611,1235,26,1274,650,338,1410,786,474,1098,84,1332,708,396,1020,240,1488,864,552,1176,45,1293,669,357,981,201,1449,825,513,1137,123,1371,747,435,1059,279,903,591,1215,6,1254,630,318,942,162,499,1123,109,1357,733,421,1045,265,1513,889,577,1201,70,1318,694,382,1006,226,1474,850,538,1162,148,1396,772,460,1084,304,928,616,1240,31,1279,655,343,967,187,1435,811,89,1337,713,401,1025,245,1493,869,557,1181,50,1298,674,362,986,206,1454,830,518,1142,128,1376,752,440,1064,284,908,596,1220,11,1259,635,323,947,167,1415,791,479,1103,723,411,1035,255,1503,879,567,1191,60,1308,684,372,996,216,1464,840,528,1152,138,1386,762,450,1074,294,918,606,1230,21,1269,645,333,957,177,1425,801,489,1113,99,1347,1015,235,1483,859,547,1171,40,1288,664,352,976,196,1444,820,508,1132,118,1366,742,430,1054,274,898,586,1210,1264,1249,625,313,937,157,1405,781,469,1093,79,1327,703,391,1520,896,584,1208,77,1325,701,389,1013,233,1481,857,545,1169,155,1403,779,467,1091,311,935,623,1247,38,1286,662,350,974,194,1442,818,506,1130,116,1364,740,428,1052,272,565,1189,58,1306,682,370,994,214,1462,838,526,1150,136,1384,760,448,1072,292,916,604,1228,19,1267,643,331,955,175,1423,799,487,1111,97,1345,721,409,1033,253,1501,877,68,1316,692,380,1004,224,1472,848,536,1160,146,1394,770,458,1082,302,926,614,1238,29,1277,653,341,965,185,1433,809,497,1121,107,1355,731,419,1043,263,1511,887,575,1199,672,360,984,204,1452,828,516,1140,126,1374,750,438,1062,282,906,594,1218,9,1257,633,321,945,165,1413,789,477,1101,87,1335,711,399,1023,243,1491,867,555,1179,48,1296,1009,229,1477,853,541,1165,151,1399,775,463,1087,307,931,619,1243,34,1282,658,346,970,190,1438,814,502,1126,112,1360,736,424,1048,268,1516,892,580,1204,73,1321,697,385,1457,833,521,1145,131,1379,755,443,1067,287,911,599,1223,14,1262,638,326,950,170,1418,794,482,1106,92,1340,716,404,1028,248,1496,872,560,1184,53,1301,677,365,989,209,531,1155,141,1389,765,453,1077,297,921,609,1233,24,1272,648,336,960,180,1428,804,492,1116,102,1350,726,414,1038,258,1506,882,570,1194,63,1311,687,375,999,219,1467,843,121,1369,745,433,1057,277,901,589,1213,4,1252,628,316,940,160,1408,784,472,1096,82,1330,706,394,1018,238,1486,862,550,1174,43,1291,667,355,979,199,1447,823,511,1135,777,465,1089,309,933,621,1245,36,1284,660,348,972,192,1440,816,504,1128,114,1362,738,426,1050,270,1518,894,582,1206,75,1323,699,387,1011,231,1479,855,543,1167,153,1401,1070,290,914,602,1226,17,1265,641,329,953,173,1421,797,485,1109,95,1343,719,407,1031,251,1499,875,563,1187,56,1304,680,368,992,212,1460,836,524,1148,134,1382,758,446,924,612,1236,27,1275,651,339,963,183,1431,807,495,1119,105,1353,729,417,1041,261,1509,885,573,1197,66,1314,690,378,1002,222,1470,846,534,1158,144,1392,768,456,1080,300,1216,7,1255,631,319,943,163,1411,787,475,1099,85,1333,709,397,1021,241,1489,865,553,1177,46,1294,670,358,982,202,1450,826,514,1138,124,1372,748,436,1060,280,904,592,1280,656,344,968,188,1436,812,500,1124,110,1358,734,422,1046,266,1514,890,578,1202,71,1319,695,383,1007,227,1475,851,539,1163,149,1397,773,461,1085,305,929,617,1241,32,324,948,168,1416,792,480,1104,90,1338,714,402,1026,246,1494,870,558,1182,51,1299,675,363,987,207,1455,831,519,1143,129,1377,753,441,1065,285,909,597,1221,12,1260,636,178,1426,802,490,1114,100,1348,724,412,1036,256,1504,880,568,1192,61,1309,685,373,997,217,1465,841,529,1153,139,1387,763,451,1075,295,919,607,1231,22,1270,646,334,958,782,470,1094,80,1328,704,392,1016,236,1484,860,548,1172,41,1289,665,353,977,197,1445,821,509,1133,119,1367,743,431,1055,275,899,587,1211,640,1250,626,314,938,158,1406,1129,115,1363,739,427,1051,271,1519,895,583,1207,76,1324,700,388,1012,232,1480,856,544,1168,154,1402,778,466,1090,310,934,622,1246,37,1285,661,349,973,193,1441,817,505,1344,720,408,1032,252,1500,876,564,1188,57,1305,681,369,993,213,1461,837,525,1149,135,1383,759,447,1071,291,915,603,1227,18,1266,642,330,954,174,1422,798,486,1110,96,418,1042,262,1510,886,574,1198,67,1315,691,379,1003,223,1471,847,535,1159,145,1393,769,457,1081,301,925,613,1237,28,1276,652,340,964,184,1432,808,496,1120,106,1354,730,242,1490,866,554,1178,47,1295,671,359,983,203,1451,827,515,1139,125,1373,749,437,1061,281,905,593,1217,8,1256,632,320,944,164,1412,788,476,1100,86,1334,710,398,1022,891,579,1203,72,1320,696,384,1008,228,1476,852,540,1164,150,1398,774,462,1086,306,930,618,1242,33,1281,657,345,969,189,1437,813,501,1125,111,1359,735,423,1047,267,1515,1183,52,1300,676,364,988,208,1456,832,520,1144,130,1378,754,442,1066,286,910,598,1222,13,1261,637,325,949,169,1417,793,481,1105,91,1339,715,403,1027,247,1495,871,559,1310,686,374,998,218,1466,842,530,1154,140,1388,764,452,1076,296,920,608,1232,23,1271,647,335,959,179,1427,803,491,1115,101,1349,725,413,1037,257,1505,881,569,1193,62,354,978,198,1446,822,510,1134,120,1368,744,432,1056,276,900,588,1212,1209,1251,627,315,939,159,1407,783,471,1095,81,1329,705,393,1017,237,1485,861,549,1173,42,1290,666,230,1478,854,542,1166,152,1400,776,464,1088,308,932,620,1244,35,1283,659,347,971,191,1439,815,503,1127,113,1361,737,425,1049,269,1517,893,581,1205,74,1322,698,386,1010,834,522,1146,132,1380,756,444,1068,288,912,600,1224,15,1263,639,327,951,171,1419,795,483,1107,93,1341,717,405,1029,249,1497,873,561,1185,54,1302,678,366,990,210,1458,1156,142,1390,766,454,1078,298,922,610,1234,25,1273,649,337,961,181,1429,805,493,1117,103,1351,727,415,1039,259,1507,883,571,1195,64,1312,688,376,1e3,220,1468,844,532,1370,746,434,1058,278,902,590,1214,5,1253,629,317,941,161,1409,785,473,1097,83,1331,707,395,1019,239,1487,863,551,1175,44,1292,668,356,980,200,1448,824,512,1136,122,459,1083,303,927,615,1239,30,1278,654,342,966,186,1434,810,498,1122,108,1356,732,420,1044,264,1512,888,576,1200,69,1317,693,381,1005,225,1473,849,537,1161,147,1395,771,283,907,595,1219,10,1258,634,322,946,166,1414,790,478,1102,88,1336,712,400,1024,244,1492,868,556,1180,49,1297,673,361,985,205,1453,829,517,1141,127,1375,751,439,1063,605,1229,20,1268,644,332,956,176,1424,800,488,1112,98,1346,722,410,1034,254,1502,878,566,1190,59,1307,683,371,995,215,1463,839,527,1151,137,1385,761,449,1073,293,917,0,1248,624,312,936,156,1404,780,468,1092,78,1326,702,390,1014,234,1482,858,546,1170,39,1287,663,351,975,195,1443,819,507,1131,117,1365,741,429,1053,273,897,585,3],[2,332,1644,988,168,1480,824,496,1152,86,1398,742,414,1070,250,1562,906,578,1234,45,1357,701,373,1029,209,1521,865,537,1193,127,1439,783,455,1111,291,1603,947,619,1275,4,1,1677,1021,201,1513,857,529,1185,119,1431,775,447,1103,283,1595,939,611,1267,78,1390,734,406,1062,242,1554,898,570,1226,160,1472,816,488,1144,324,1636,980,652,1308,37,1349,693,365,181,1493,837,509,1165,99,1411,755,427,1083,263,1575,919,591,1247,58,1370,714,386,1042,222,1534,878,550,1206,140,1452,796,468,1124,304,1616,960,632,1288,17,1329,673,345,1657,1001,847,519,1175,109,1421,765,437,1093,273,1585,929,601,1257,68,1380,724,396,1052,232,1544,888,560,1216,150,1462,806,478,1134,314,1626,970,642,1298,27,1339,683,355,1667,1011,191,1503,1155,89,1401,745,417,1073,253,1565,909,581,1237,48,1360,704,376,1032,212,1524,868,540,1196,130,1442,786,458,1114,294,1606,950,622,1278,7,1319,663,335,1647,991,171,1483,827,499,1426,770,442,1098,278,1590,934,606,1262,73,1385,729,401,1057,237,1549,893,565,1221,155,1467,811,483,1139,319,1631,975,647,1303,32,1344,688,360,1672,1016,196,1508,852,524,1180,114,422,1078,258,1570,914,586,1242,53,1365,709,381,1037,217,1529,873,545,1201,135,1447,791,463,1119,299,1611,955,627,1283,12,1324,668,340,1652,996,176,1488,832,504,1160,94,1406,750,268,1580,924,596,1252,63,1375,719,391,1047,227,1539,883,555,1211,145,1457,801,473,1129,309,1621,965,637,1293,22,1334,678,350,1662,1006,186,1498,842,514,1170,104,1416,760,432,1088,903,575,1231,42,1354,698,370,1026,206,1518,862,534,1190,124,1436,780,452,1108,288,1600,944,616,1272,1316,1313,657,329,1641,985,165,1477,821,493,1149,83,1395,739,411,1067,247,1559,1270,81,1393,737,409,1065,245,1557,901,573,1229,163,1475,819,491,1147,327,1639,983,655,1311,40,1352,696,368,1680,1024,204,1516,860,532,1188,122,1434,778,450,1106,286,1598,942,614,1373,717,389,1045,225,1537,881,553,1209,143,1455,799,471,1127,307,1619,963,635,1291,20,1332,676,348,1660,1004,184,1496,840,512,1168,102,1414,758,430,1086,266,1578,922,594,1250,61,399,1055,235,1547,891,563,1219,153,1465,809,481,1137,317,1629,973,645,1301,30,1342,686,358,1670,1014,194,1506,850,522,1178,112,1424,768,440,1096,276,1588,932,604,1260,71,1383,727,215,1527,871,543,1199,133,1445,789,461,1117,297,1609,953,625,1281,10,1322,666,338,1650,994,174,1486,830,502,1158,92,1404,748,420,1076,256,1568,912,584,1240,51,1363,707,379,1035,896,568,1224,158,1470,814,486,1142,322,1634,978,650,1306,35,1347,691,363,1675,1019,199,1511,855,527,1183,117,1429,773,445,1101,281,1593,937,609,1265,76,1388,732,404,1060,240,1552,1204,138,1450,794,466,1122,302,1614,958,630,1286,15,1327,671,343,1655,999,179,1491,835,507,1163,97,1409,753,425,1081,261,1573,917,589,1245,56,1368,712,384,1040,220,1532,876,548,1460,804,476,1132,312,1624,968,640,1296,25,1337,681,353,1665,1009,189,1501,845,517,1173,107,1419,763,435,1091,271,1583,927,599,1255,66,1378,722,394,1050,230,1542,886,558,1214,148,456,1112,292,1604,948,620,1276,5,1317,661,333,1645,989,169,1481,825,497,1153,87,1399,743,415,1071,251,1563,907,579,1235,46,1358,702,374,1030,210,1522,866,538,1194,128,1440,784,325,1637,981,653,1309,38,1350,694,366,1678,1022,202,1514,858,530,1186,120,1432,776,448,1104,284,1596,940,612,1268,79,1391,735,407,1063,243,1555,899,571,1227,161,1473,817,489,1145,961,633,1289,18,1330,674,346,1658,1002,182,1494,838,510,1166,100,1412,756,428,1084,264,1576,920,592,1248,59,1371,715,387,1043,223,1535,879,551,1207,141,1453,797,469,1125,305,1617,1299,28,1340,684,356,1668,1012,192,1504,848,520,1176,110,1422,766,438,1094,274,1586,930,602,1258,69,1381,725,397,1053,233,1545,889,561,1217,151,1463,807,479,1135,315,1627,971,643,1320,664,336,1648,992,172,1484,828,500,1156,90,1402,746,418,1074,254,1566,910,582,1238,49,1361,705,377,1033,213,1525,869,541,1197,131,1443,787,459,1115,295,1607,951,623,1279,8,361,1673,1017,197,1509,853,525,1181,115,1427,771,443,1099,279,1591,935,607,1263,74,1386,730,402,1058,238,1550,894,566,1222,156,1468,812,484,1140,320,1632,976,648,1304,33,1345,689,997,177,1489,833,505,1161,95,1407,751,423,1079,259,1571,915,587,1243,54,1366,710,382,1038,218,1530,874,546,1202,136,1448,792,464,1120,300,1612,956,628,1284,13,1325,669,341,1653,1499,843,515,1171,105,1417,761,433,1089,269,1581,925,597,1253,64,1376,720,392,1048,228,1540,884,556,1212,146,1458,802,474,1130,310,1622,966,638,1294,23,1335,679,351,1663,1007,187,494,1150,84,1396,740,412,1068,248,1560,904,576,1232,43,1355,699,371,1027,207,1519,863,535,1191,125,1437,781,453,1109,289,1601,945,617,1273,660,1314,658,330,1642,986,166,1478,822,121,1433,777,449,1105,285,1597,941,613,1269,80,1392,736,408,1064,244,1556,900,572,1228,162,1474,818,490,1146,326,1638,982,654,1310,39,1351,695,367,1679,1023,203,1515,859,531,1187,757,429,1085,265,1577,921,593,1249,60,1372,716,388,1044,224,1536,880,552,1208,142,1454,798,470,1126,306,1618,962,634,1290,19,1331,675,347,1659,1003,183,1495,839,511,1167,101,1413,1095,275,1587,931,603,1259,70,1382,726,398,1054,234,1546,890,562,1218,152,1464,808,480,1136,316,1628,972,644,1300,29,1341,685,357,1669,1013,193,1505,849,521,1177,111,1423,767,439,1567,911,583,1239,50,1362,706,378,1034,214,1526,870,542,1198,132,1444,788,460,1116,296,1608,952,624,1280,9,1321,665,337,1649,993,173,1485,829,501,1157,91,1403,747,419,1075,255,608,1264,75,1387,731,403,1059,239,1551,895,567,1223,157,1469,813,485,1141,321,1633,977,649,1305,34,1346,690,362,1674,1018,198,1510,854,526,1182,116,1428,772,444,1100,280,1592,936,55,1367,711,383,1039,219,1531,875,547,1203,137,1449,793,465,1121,301,1613,957,629,1285,14,1326,670,342,1654,998,178,1490,834,506,1162,96,1408,752,424,1080,260,1572,916,588,1244,721,393,1049,229,1541,885,557,1213,147,1459,803,475,1131,311,1623,967,639,1295,24,1336,680,352,1664,1008,188,1500,844,516,1172,106,1418,762,434,1090,270,1582,926,598,1254,65,1377,1028,208,1520,864,536,1192,126,1438,782,454,1110,290,1602,946,618,1274,1271,1315,659,331,1643,987,167,1479,823,495,1151,85,1397,741,413,1069,249,1561,905,577,1233,44,1356,700,372,1553,897,569,1225,159,1471,815,487,1143,323,1635,979,651,1307,36,1348,692,364,1676,1020,200,1512,856,528,1184,118,1430,774,446,1102,282,1594,938,610,1266,77,1389,733,405,1061,241,549,1205,139,1451,795,467,1123,303,1615,959,631,1287,16,1328,672,344,1656,1e3,180,1492,836,508,1164,98,1410,754,426,1082,262,1574,918,590,1246,57,1369,713,385,1041,221,1533,877,149,1461,805,477,1133,313,1625,969,641,1297,26,1338,682,354,1666,1010,190,1502,846,518,1174,108,1420,764,436,1092,272,1584,928,600,1256,67,1379,723,395,1051,231,1543,887,559,1215,785,457,1113,293,1605,949,621,1277,6,1318,662,334,1646,990,170,1482,826,498,1154,88,1400,744,416,1072,252,1564,908,580,1236,47,1359,703,375,1031,211,1523,867,539,1195,129,1441,1138,318,1630,974,646,1302,31,1343,687,359,1671,1015,195,1507,851,523,1179,113,1425,769,441,1097,277,1589,933,605,1261,72,1384,728,400,1056,236,1548,892,564,1220,154,1466,810,482,1610,954,626,1282,11,1323,667,339,1651,995,175,1487,831,503,1159,93,1405,749,421,1077,257,1569,913,585,1241,52,1364,708,380,1036,216,1528,872,544,1200,134,1446,790,462,1118,298,636,1292,21,1333,677,349,1661,1005,185,1497,841,513,1169,103,1415,759,431,1087,267,1579,923,595,1251,62,1374,718,390,1046,226,1538,882,554,1210,144,1456,800,472,1128,308,1620,964,0,1312,656,328,1640,984,164,1476,820,492,1148,82,1394,738,410,1066,246,1558,902,574,1230,41,1353,697,369,1025,205,1517,861,533,1189,123,1435,779,451,1107,287,1599,943,615,3],[2,359,1735,1047,187,1563,875,531,1219,101,1477,789,445,1821,1133,273,1649,961,617,1305,58,1434,746,402,1778,1090,230,1606,918,574,1262,144,1520,832,488,1176,316,1692,1004,660,1348,15,1,1746,1058,198,1574,886,542,1230,112,1488,800,456,1832,1144,284,1660,972,628,1316,69,1445,757,413,1789,1101,241,1617,929,585,1273,155,1531,843,499,1187,327,1703,1015,671,1359,26,1402,714,370,176,1552,864,520,1208,90,1466,778,434,1810,1122,262,1638,950,606,1294,47,1423,735,391,1767,1079,219,1595,907,563,1251,133,1509,821,477,1165,305,1681,993,649,1337,4,1380,692,348,1724,1036,899,555,1243,125,1501,813,469,1845,1157,297,1673,985,641,1329,82,1458,770,426,1802,1114,254,1630,942,598,1286,168,1544,856,512,1200,340,1716,1028,684,1372,39,1415,727,383,1759,1071,211,1587,1222,104,1480,792,448,1824,1136,276,1652,964,620,1308,61,1437,749,405,1781,1093,233,1609,921,577,1265,147,1523,835,491,1179,319,1695,1007,663,1351,18,1394,706,362,1738,1050,190,1566,878,534,1491,803,459,1835,1147,287,1663,975,631,1319,72,1448,760,416,1792,1104,244,1620,932,588,1276,158,1534,846,502,1190,330,1706,1018,674,1362,29,1405,717,373,1749,1061,201,1577,889,545,1233,115,437,1813,1125,265,1641,953,609,1297,50,1426,738,394,1770,1082,222,1598,910,566,1254,136,1512,824,480,1168,308,1684,996,652,1340,7,1383,695,351,1727,1039,179,1555,867,523,1211,93,1469,781,1152,292,1668,980,636,1324,77,1453,765,421,1797,1109,249,1625,937,593,1281,163,1539,851,507,1195,335,1711,1023,679,1367,34,1410,722,378,1754,1066,206,1582,894,550,1238,120,1496,808,464,1840,1646,958,614,1302,55,1431,743,399,1775,1087,227,1603,915,571,1259,141,1517,829,485,1173,313,1689,1001,657,1345,12,1388,700,356,1732,1044,184,1560,872,528,1216,98,1474,786,442,1818,1130,270,625,1313,66,1442,754,410,1786,1098,238,1614,926,582,1270,152,1528,840,496,1184,324,1700,1012,668,1356,23,1399,711,367,1743,1055,195,1571,883,539,1227,109,1485,797,453,1829,1141,281,1657,969,44,1420,732,388,1764,1076,216,1592,904,560,1248,130,1506,818,474,1162,302,1678,990,646,1334,1391,1377,689,345,1721,1033,173,1549,861,517,1205,87,1463,775,431,1807,1119,259,1635,947,603,1291,773,429,1805,1117,257,1633,945,601,1289,171,1547,859,515,1203,343,1719,1031,687,1375,42,1418,730,386,1762,1074,214,1590,902,558,1246,128,1504,816,472,1848,1160,300,1676,988,644,1332,85,1461,1784,1096,236,1612,924,580,1268,150,1526,838,494,1182,322,1698,1010,666,1354,21,1397,709,365,1741,1053,193,1569,881,537,1225,107,1483,795,451,1827,1139,279,1655,967,623,1311,64,1440,752,408,247,1623,935,591,1279,161,1537,849,505,1193,333,1709,1021,677,1365,32,1408,720,376,1752,1064,204,1580,892,548,1236,118,1494,806,462,1838,1150,290,1666,978,634,1322,75,1451,763,419,1795,1107,913,569,1257,139,1515,827,483,1171,311,1687,999,655,1343,10,1386,698,354,1730,1042,182,1558,870,526,1214,96,1472,784,440,1816,1128,268,1644,956,612,1300,53,1429,741,397,1773,1085,225,1601,1284,166,1542,854,510,1198,338,1714,1026,682,1370,37,1413,725,381,1757,1069,209,1585,897,553,1241,123,1499,811,467,1843,1155,295,1671,983,639,1327,80,1456,768,424,1800,1112,252,1628,940,596,1521,833,489,1177,317,1693,1005,661,1349,16,1392,704,360,1736,1048,188,1564,876,532,1220,102,1478,790,446,1822,1134,274,1650,962,618,1306,59,1435,747,403,1779,1091,231,1607,919,575,1263,145,500,1188,328,1704,1016,672,1360,27,1403,715,371,1747,1059,199,1575,887,543,1231,113,1489,801,457,1833,1145,285,1661,973,629,1317,70,1446,758,414,1790,1102,242,1618,930,586,1274,156,1532,844,306,1682,994,650,1338,5,1381,693,349,1725,1037,177,1553,865,521,1209,91,1467,779,435,1811,1123,263,1639,951,607,1295,48,1424,736,392,1768,1080,220,1596,908,564,1252,134,1510,822,478,1166,1029,685,1373,40,1416,728,384,1760,1072,212,1588,900,556,1244,126,1502,814,470,1846,1158,298,1674,986,642,1330,83,1459,771,427,1803,1115,255,1631,943,599,1287,169,1545,857,513,1201,341,1717,1352,19,1395,707,363,1739,1051,191,1567,879,535,1223,105,1481,793,449,1825,1137,277,1653,965,621,1309,62,1438,750,406,1782,1094,234,1610,922,578,1266,148,1524,836,492,1180,320,1696,1008,664,1406,718,374,1750,1062,202,1578,890,546,1234,116,1492,804,460,1836,1148,288,1664,976,632,1320,73,1449,761,417,1793,1105,245,1621,933,589,1277,159,1535,847,503,1191,331,1707,1019,675,1363,30,352,1728,1040,180,1556,868,524,1212,94,1470,782,438,1814,1126,266,1642,954,610,1298,51,1427,739,395,1771,1083,223,1599,911,567,1255,137,1513,825,481,1169,309,1685,997,653,1341,8,1384,696,1067,207,1583,895,551,1239,121,1497,809,465,1841,1153,293,1669,981,637,1325,78,1454,766,422,1798,1110,250,1626,938,594,1282,164,1540,852,508,1196,336,1712,1024,680,1368,35,1411,723,379,1755,1561,873,529,1217,99,1475,787,443,1819,1131,271,1647,959,615,1303,56,1432,744,400,1776,1088,228,1604,916,572,1260,142,1518,830,486,1174,314,1690,1002,658,1346,13,1389,701,357,1733,1045,185,540,1228,110,1486,798,454,1830,1142,282,1658,970,626,1314,67,1443,755,411,1787,1099,239,1615,927,583,1271,153,1529,841,497,1185,325,1701,1013,669,1357,24,1400,712,368,1744,1056,196,1572,884,88,1464,776,432,1808,1120,260,1636,948,604,1292,45,1421,733,389,1765,1077,217,1593,905,561,1249,131,1507,819,475,1163,303,1679,991,647,1335,703,1378,690,346,1722,1034,174,1550,862,518,1206,815,471,1847,1159,299,1675,987,643,1331,84,1460,772,428,1804,1116,256,1632,944,600,1288,170,1546,858,514,1202,342,1718,1030,686,1374,41,1417,729,385,1761,1073,213,1589,901,557,1245,127,1503,1826,1138,278,1654,966,622,1310,63,1439,751,407,1783,1095,235,1611,923,579,1267,149,1525,837,493,1181,321,1697,1009,665,1353,20,1396,708,364,1740,1052,192,1568,880,536,1224,106,1482,794,450,289,1665,977,633,1321,74,1450,762,418,1794,1106,246,1622,934,590,1278,160,1536,848,504,1192,332,1708,1020,676,1364,31,1407,719,375,1751,1063,203,1579,891,547,1235,117,1493,805,461,1837,1149,955,611,1299,52,1428,740,396,1772,1084,224,1600,912,568,1256,138,1514,826,482,1170,310,1686,998,654,1342,9,1385,697,353,1729,1041,181,1557,869,525,1213,95,1471,783,439,1815,1127,267,1643,1326,79,1455,767,423,1799,1111,251,1627,939,595,1283,165,1541,853,509,1197,337,1713,1025,681,1369,36,1412,724,380,1756,1068,208,1584,896,552,1240,122,1498,810,466,1842,1154,294,1670,982,638,1433,745,401,1777,1089,229,1605,917,573,1261,143,1519,831,487,1175,315,1691,1003,659,1347,14,1390,702,358,1734,1046,186,1562,874,530,1218,100,1476,788,444,1820,1132,272,1648,960,616,1304,57,412,1788,1100,240,1616,928,584,1272,154,1530,842,498,1186,326,1702,1014,670,1358,25,1401,713,369,1745,1057,197,1573,885,541,1229,111,1487,799,455,1831,1143,283,1659,971,627,1315,68,1444,756,1078,218,1594,906,562,1250,132,1508,820,476,1164,304,1680,992,648,1336,1333,1379,691,347,1723,1035,175,1551,863,519,1207,89,1465,777,433,1809,1121,261,1637,949,605,1293,46,1422,734,390,1766,1629,941,597,1285,167,1543,855,511,1199,339,1715,1027,683,1371,38,1414,726,382,1758,1070,210,1586,898,554,1242,124,1500,812,468,1844,1156,296,1672,984,640,1328,81,1457,769,425,1801,1113,253,576,1264,146,1522,834,490,1178,318,1694,1006,662,1350,17,1393,705,361,1737,1049,189,1565,877,533,1221,103,1479,791,447,1823,1135,275,1651,963,619,1307,60,1436,748,404,1780,1092,232,1608,920,157,1533,845,501,1189,329,1705,1017,673,1361,28,1404,716,372,1748,1060,200,1576,888,544,1232,114,1490,802,458,1834,1146,286,1662,974,630,1318,71,1447,759,415,1791,1103,243,1619,931,587,1275,823,479,1167,307,1683,995,651,1339,6,1382,694,350,1726,1038,178,1554,866,522,1210,92,1468,780,436,1812,1124,264,1640,952,608,1296,49,1425,737,393,1769,1081,221,1597,909,565,1253,135,1511,1194,334,1710,1022,678,1366,33,1409,721,377,1753,1065,205,1581,893,549,1237,119,1495,807,463,1839,1151,291,1667,979,635,1323,76,1452,764,420,1796,1108,248,1624,936,592,1280,162,1538,850,506,1688,1e3,656,1344,11,1387,699,355,1731,1043,183,1559,871,527,1215,97,1473,785,441,1817,1129,269,1645,957,613,1301,54,1430,742,398,1774,1086,226,1602,914,570,1258,140,1516,828,484,1172,312,667,1355,22,1398,710,366,1742,1054,194,1570,882,538,1226,108,1484,796,452,1828,1140,280,1656,968,624,1312,65,1441,753,409,1785,1097,237,1613,925,581,1269,151,1527,839,495,1183,323,1699,1011,0,1376,688,344,1720,1032,172,1548,860,516,1204,86,1462,774,430,1806,1118,258,1634,946,602,1290,43,1419,731,387,1763,1075,215,1591,903,559,1247,129,1505,817,473,1161,301,1677,989,645,3],[2,370,1810,1090,190,1630,910,550,1990,1270,100,1540,820,460,1900,1180,280,1720,1e3,640,1360,55,1495,775,415,1855,1135,235,1675,955,595,1315,145,1585,865,505,1945,1225,325,1765,1045,685,1405,10,1,1838,1118,218,1658,938,578,2018,1298,128,1568,848,488,1928,1208,308,1748,1028,668,1388,83,1523,803,443,1883,1163,263,1703,983,623,1343,173,1613,893,533,1973,1253,353,1793,1073,713,1433,38,1478,758,398,196,1636,916,556,1996,1276,106,1546,826,466,1906,1186,286,1726,1006,646,1366,61,1501,781,421,1861,1141,241,1681,961,601,1321,151,1591,871,511,1951,1231,331,1771,1051,691,1411,16,1456,736,376,1816,1096,927,567,2007,1287,117,1557,837,477,1917,1197,297,1737,1017,657,1377,72,1512,792,432,1872,1152,252,1692,972,612,1332,162,1602,882,522,1962,1242,342,1782,1062,702,1422,27,1467,747,387,1827,1107,207,1647,1984,1264,94,1534,814,454,1894,1174,274,1714,994,634,1354,49,1489,769,409,1849,1129,229,1669,949,589,1309,139,1579,859,499,1939,1219,319,1759,1039,679,1399,4,1444,724,364,1804,1084,184,1624,904,544,131,1571,851,491,1931,1211,311,1751,1031,671,1391,86,1526,806,446,1886,1166,266,1706,986,626,1346,176,1616,896,536,1976,1256,356,1796,1076,716,1436,41,1481,761,401,1841,1121,221,1661,941,581,2021,1301,829,469,1909,1189,289,1729,1009,649,1369,64,1504,784,424,1864,1144,244,1684,964,604,1324,154,1594,874,514,1954,1234,334,1774,1054,694,1414,19,1459,739,379,1819,1099,199,1639,919,559,1999,1279,109,1549,1920,1200,300,1740,1020,660,1380,75,1515,795,435,1875,1155,255,1695,975,615,1335,165,1605,885,525,1965,1245,345,1785,1065,705,1425,30,1470,750,390,1830,1110,210,1650,930,570,2010,1290,120,1560,840,480,277,1717,997,637,1357,52,1492,772,412,1852,1132,232,1672,952,592,1312,142,1582,862,502,1942,1222,322,1762,1042,682,1402,7,1447,727,367,1807,1087,187,1627,907,547,1987,1267,97,1537,817,457,1897,1177,1025,665,1385,80,1520,800,440,1880,1160,260,1700,980,620,1340,170,1610,890,530,1970,1250,350,1790,1070,710,1430,35,1475,755,395,1835,1115,215,1655,935,575,2015,1295,125,1565,845,485,1925,1205,305,1745,1363,58,1498,778,418,1858,1138,238,1678,958,598,1318,148,1588,868,508,1948,1228,328,1768,1048,688,1408,13,1453,733,373,1813,1093,193,1633,913,553,1993,1273,103,1543,823,463,1903,1183,283,1723,1003,643,1509,789,429,1869,1149,249,1689,969,609,1329,159,1599,879,519,1959,1239,339,1779,1059,699,1419,24,1464,744,384,1824,1104,204,1644,924,564,2004,1284,114,1554,834,474,1914,1194,294,1734,1014,654,1374,69,406,1846,1126,226,1666,946,586,1306,136,1576,856,496,1936,1216,316,1756,1036,676,1396,1450,1441,721,361,1801,1081,181,1621,901,541,1981,1261,91,1531,811,451,1891,1171,271,1711,991,631,1351,46,1486,766,1169,269,1709,989,629,1349,179,1619,899,539,1979,1259,359,1799,1079,719,1439,44,1484,764,404,1844,1124,224,1664,944,584,2024,1304,134,1574,854,494,1934,1214,314,1754,1034,674,1394,89,1529,809,449,1889,1687,967,607,1327,157,1597,877,517,1957,1237,337,1777,1057,697,1417,22,1462,742,382,1822,1102,202,1642,922,562,2002,1282,112,1552,832,472,1912,1192,292,1732,1012,652,1372,67,1507,787,427,1867,1147,247,618,1338,168,1608,888,528,1968,1248,348,1788,1068,708,1428,33,1473,753,393,1833,1113,213,1653,933,573,2013,1293,123,1563,843,483,1923,1203,303,1743,1023,663,1383,78,1518,798,438,1878,1158,258,1698,978,146,1586,866,506,1946,1226,326,1766,1046,686,1406,11,1451,731,371,1811,1091,191,1631,911,551,1991,1271,101,1541,821,461,1901,1181,281,1721,1001,641,1361,56,1496,776,416,1856,1136,236,1676,956,596,1316,894,534,1974,1254,354,1794,1074,714,1434,39,1479,759,399,1839,1119,219,1659,939,579,2019,1299,129,1569,849,489,1929,1209,309,1749,1029,669,1389,84,1524,804,444,1884,1164,264,1704,984,624,1344,174,1614,1952,1232,332,1772,1052,692,1412,17,1457,737,377,1817,1097,197,1637,917,557,1997,1277,107,1547,827,467,1907,1187,287,1727,1007,647,1367,62,1502,782,422,1862,1142,242,1682,962,602,1322,152,1592,872,512,343,1783,1063,703,1423,28,1468,748,388,1828,1108,208,1648,928,568,2008,1288,118,1558,838,478,1918,1198,298,1738,1018,658,1378,73,1513,793,433,1873,1153,253,1693,973,613,1333,163,1603,883,523,1963,1243,1040,680,1400,5,1445,725,365,1805,1085,185,1625,905,545,1985,1265,95,1535,815,455,1895,1175,275,1715,995,635,1355,50,1490,770,410,1850,1130,230,1670,950,590,1310,140,1580,860,500,1940,1220,320,1760,1437,42,1482,762,402,1842,1122,222,1662,942,582,2022,1302,132,1572,852,492,1932,1212,312,1752,1032,672,1392,87,1527,807,447,1887,1167,267,1707,987,627,1347,177,1617,897,537,1977,1257,357,1797,1077,717,1460,740,380,1820,1100,200,1640,920,560,2e3,1280,110,1550,830,470,1910,1190,290,1730,1010,650,1370,65,1505,785,425,1865,1145,245,1685,965,605,1325,155,1595,875,515,1955,1235,335,1775,1055,695,1415,20,391,1831,1111,211,1651,931,571,2011,1291,121,1561,841,481,1921,1201,301,1741,1021,661,1381,76,1516,796,436,1876,1156,256,1696,976,616,1336,166,1606,886,526,1966,1246,346,1786,1066,706,1426,31,1471,751,1088,188,1628,908,548,1988,1268,98,1538,818,458,1898,1178,278,1718,998,638,1358,53,1493,773,413,1853,1133,233,1673,953,593,1313,143,1583,863,503,1943,1223,323,1763,1043,683,1403,8,1448,728,368,1808,1656,936,576,2016,1296,126,1566,846,486,1926,1206,306,1746,1026,666,1386,81,1521,801,441,1881,1161,261,1701,981,621,1341,171,1611,891,531,1971,1251,351,1791,1071,711,1431,36,1476,756,396,1836,1116,216,554,1994,1274,104,1544,824,464,1904,1184,284,1724,1004,644,1364,59,1499,779,419,1859,1139,239,1679,959,599,1319,149,1589,869,509,1949,1229,329,1769,1049,689,1409,14,1454,734,374,1814,1094,194,1634,914,1285,115,1555,835,475,1915,1195,295,1735,1015,655,1375,70,1510,790,430,1870,1150,250,1690,970,610,1330,160,1600,880,520,1960,1240,340,1780,1060,700,1420,25,1465,745,385,1825,1105,205,1645,925,565,2005,1532,812,452,1892,1172,272,1712,992,632,1352,47,1487,767,407,1847,1127,227,1667,947,587,1307,137,1577,857,497,1937,1217,317,1757,1037,677,1397,730,1442,722,362,1802,1082,182,1622,902,542,1982,1262,92,493,1933,1213,313,1753,1033,673,1393,88,1528,808,448,1888,1168,268,1708,988,628,1348,178,1618,898,538,1978,1258,358,1798,1078,718,1438,43,1483,763,403,1843,1123,223,1663,943,583,2023,1303,133,1573,853,1191,291,1731,1011,651,1371,66,1506,786,426,1866,1146,246,1686,966,606,1326,156,1596,876,516,1956,1236,336,1776,1056,696,1416,21,1461,741,381,1821,1101,201,1641,921,561,2001,1281,111,1551,831,471,1911,1742,1022,662,1382,77,1517,797,437,1877,1157,257,1697,977,617,1337,167,1607,887,527,1967,1247,347,1787,1067,707,1427,32,1472,752,392,1832,1112,212,1652,932,572,2012,1292,122,1562,842,482,1922,1202,302,639,1359,54,1494,774,414,1854,1134,234,1674,954,594,1314,144,1584,864,504,1944,1224,324,1764,1044,684,1404,9,1449,729,369,1809,1089,189,1629,909,549,1989,1269,99,1539,819,459,1899,1179,279,1719,999,82,1522,802,442,1882,1162,262,1702,982,622,1342,172,1612,892,532,1972,1252,352,1792,1072,712,1432,37,1477,757,397,1837,1117,217,1657,937,577,2017,1297,127,1567,847,487,1927,1207,307,1747,1027,667,1387,780,420,1860,1140,240,1680,960,600,1320,150,1590,870,510,1950,1230,330,1770,1050,690,1410,15,1455,735,375,1815,1095,195,1635,915,555,1995,1275,105,1545,825,465,1905,1185,285,1725,1005,645,1365,60,1500,1871,1151,251,1691,971,611,1331,161,1601,881,521,1961,1241,341,1781,1061,701,1421,26,1466,746,386,1826,1106,206,1646,926,566,2006,1286,116,1556,836,476,1916,1196,296,1736,1016,656,1376,71,1511,791,431,228,1668,948,588,1308,138,1578,858,498,1938,1218,318,1758,1038,678,1398,1395,1443,723,363,1803,1083,183,1623,903,543,1983,1263,93,1533,813,453,1893,1173,273,1713,993,633,1353,48,1488,768,408,1848,1128,985,625,1345,175,1615,895,535,1975,1255,355,1795,1075,715,1435,40,1480,760,400,1840,1120,220,1660,940,580,2020,1300,130,1570,850,490,1930,1210,310,1750,1030,670,1390,85,1525,805,445,1885,1165,265,1705,1323,153,1593,873,513,1953,1233,333,1773,1053,693,1413,18,1458,738,378,1818,1098,198,1638,918,558,1998,1278,108,1548,828,468,1908,1188,288,1728,1008,648,1368,63,1503,783,423,1863,1143,243,1683,963,603,1604,884,524,1964,1244,344,1784,1064,704,1424,29,1469,749,389,1829,1109,209,1649,929,569,2009,1289,119,1559,839,479,1919,1199,299,1739,1019,659,1379,74,1514,794,434,1874,1154,254,1694,974,614,1334,164,501,1941,1221,321,1761,1041,681,1401,6,1446,726,366,1806,1086,186,1626,906,546,1986,1266,96,1536,816,456,1896,1176,276,1716,996,636,1356,51,1491,771,411,1851,1131,231,1671,951,591,1311,141,1581,861,1249,349,1789,1069,709,1429,34,1474,754,394,1834,1114,214,1654,934,574,2014,1294,124,1564,844,484,1924,1204,304,1744,1024,664,1384,79,1519,799,439,1879,1159,259,1699,979,619,1339,169,1609,889,529,1969,1767,1047,687,1407,12,1452,732,372,1812,1092,192,1632,912,552,1992,1272,102,1542,822,462,1902,1182,282,1722,1002,642,1362,57,1497,777,417,1857,1137,237,1677,957,597,1317,147,1587,867,507,1947,1227,327,698,1418,23,1463,743,383,1823,1103,203,1643,923,563,2003,1283,113,1553,833,473,1913,1193,293,1733,1013,653,1373,68,1508,788,428,1868,1148,248,1688,968,608,1328,158,1598,878,518,1958,1238,338,1778,1058,0,1440,720,360,1800,1080,180,1620,900,540,1980,1260,90,1530,810,450,1890,1170,270,1710,990,630,1350,45,1485,765,405,1845,1125,225,1665,945,585,1305,135,1575,855,495,1935,1215,315,1755,1035,675,3],[2,398,1902,1150,210,1714,962,586,2090,1338,116,1620,868,492,1996,1244,304,1808,1056,680,2184,1432,69,1573,821,445,1949,1197,257,1761,1009,633,2137,1385,163,1667,915,539,2043,1291,351,1855,1103,727,1479,22,1,1914,1162,222,1726,974,598,2102,1350,128,1632,880,504,2008,1256,316,1820,1068,692,2196,1444,81,1585,833,457,1961,1209,269,1773,1021,645,2149,1397,175,1679,927,551,2055,1303,363,1867,1115,739,1491,34,1538,786,410,198,1702,950,574,2078,1326,104,1608,856,480,1984,1232,292,1796,1044,668,2172,1420,57,1561,809,433,1937,1185,245,1749,997,621,2125,1373,151,1655,903,527,2031,1279,339,1843,1091,715,1467,10,1514,762,386,1890,1138,980,604,2108,1356,134,1638,886,510,2014,1262,322,1826,1074,698,2202,1450,87,1591,839,463,1967,1215,275,1779,1027,651,2155,1403,181,1685,933,557,2061,1309,369,1873,1121,745,1497,40,1544,792,416,1920,1168,228,1732,2084,1332,110,1614,862,486,1990,1238,298,1802,1050,674,2178,1426,63,1567,815,439,1943,1191,251,1755,1003,627,2131,1379,157,1661,909,533,2037,1285,345,1849,1097,721,1473,16,1520,768,392,1896,1144,204,1708,956,580,122,1626,874,498,2002,1250,310,1814,1062,686,2190,1438,75,1579,827,451,1955,1203,263,1767,1015,639,2143,1391,169,1673,921,545,2049,1297,357,1861,1109,733,1485,28,1532,780,404,1908,1156,216,1720,968,592,2096,1344,850,474,1978,1226,286,1790,1038,662,2166,1414,51,1555,803,427,1931,1179,239,1743,991,615,2119,1367,145,1649,897,521,2025,1273,333,1837,1085,709,1461,4,1508,756,380,1884,1132,192,1696,944,568,2072,1320,98,1602,2017,1265,325,1829,1077,701,2205,1453,90,1594,842,466,1970,1218,278,1782,1030,654,2158,1406,184,1688,936,560,2064,1312,372,1876,1124,748,1500,43,1547,795,419,1923,1171,231,1735,983,607,2111,1359,137,1641,889,513,301,1805,1053,677,2181,1429,66,1570,818,442,1946,1194,254,1758,1006,630,2134,1382,160,1664,912,536,2040,1288,348,1852,1100,724,1476,19,1523,771,395,1899,1147,207,1711,959,583,2087,1335,113,1617,865,489,1993,1241,1065,689,2193,1441,78,1582,830,454,1958,1206,266,1770,1018,642,2146,1394,172,1676,924,548,2052,1300,360,1864,1112,736,1488,31,1535,783,407,1911,1159,219,1723,971,595,2099,1347,125,1629,877,501,2005,1253,313,1817,2169,1417,54,1558,806,430,1934,1182,242,1746,994,618,2122,1370,148,1652,900,524,2028,1276,336,1840,1088,712,1464,7,1511,759,383,1887,1135,195,1699,947,571,2075,1323,101,1605,853,477,1981,1229,289,1793,1041,665,84,1588,836,460,1964,1212,272,1776,1024,648,2152,1400,178,1682,930,554,2058,1306,366,1870,1118,742,1494,37,1541,789,413,1917,1165,225,1729,977,601,2105,1353,131,1635,883,507,2011,1259,319,1823,1071,695,2199,1447,812,436,1940,1188,248,1752,1e3,624,2128,1376,154,1658,906,530,2034,1282,342,1846,1094,718,1470,13,1517,765,389,1893,1141,201,1705,953,577,2081,1329,107,1611,859,483,1987,1235,295,1799,1047,671,2175,1423,60,1564,1952,1200,260,1764,1012,636,2140,1388,166,1670,918,542,2046,1294,354,1858,1106,730,1482,25,1529,777,401,1905,1153,213,1717,965,589,2093,1341,119,1623,871,495,1999,1247,307,1811,1059,683,2187,1435,72,1576,824,448,236,1740,988,612,2116,1364,142,1646,894,518,2022,1270,330,1834,1082,706,1458,1526,1505,753,377,1881,1129,189,1693,941,565,2069,1317,95,1599,847,471,1975,1223,283,1787,1035,659,2163,1411,48,1552,800,424,1928,1176,1033,657,2161,1409,187,1691,939,563,2067,1315,375,1879,1127,751,1503,46,1550,798,422,1926,1174,234,1738,986,610,2114,1362,140,1644,892,516,2020,1268,328,1832,1080,704,2208,1456,93,1597,845,469,1973,1221,281,1785,2138,1386,164,1668,916,540,2044,1292,352,1856,1104,728,1480,23,1527,775,399,1903,1151,211,1715,963,587,2091,1339,117,1621,869,493,1997,1245,305,1809,1057,681,2185,1433,70,1574,822,446,1950,1198,258,1762,1010,634,176,1680,928,552,2056,1304,364,1868,1116,740,1492,35,1539,787,411,1915,1163,223,1727,975,599,2103,1351,129,1633,881,505,2009,1257,317,1821,1069,693,2197,1445,82,1586,834,458,1962,1210,270,1774,1022,646,2150,1398,904,528,2032,1280,340,1844,1092,716,1468,11,1515,763,387,1891,1139,199,1703,951,575,2079,1327,105,1609,857,481,1985,1233,293,1797,1045,669,2173,1421,58,1562,810,434,1938,1186,246,1750,998,622,2126,1374,152,1656,2062,1310,370,1874,1122,746,1498,41,1545,793,417,1921,1169,229,1733,981,605,2109,1357,135,1639,887,511,2015,1263,323,1827,1075,699,2203,1451,88,1592,840,464,1968,1216,276,1780,1028,652,2156,1404,182,1686,934,558,346,1850,1098,722,1474,17,1521,769,393,1897,1145,205,1709,957,581,2085,1333,111,1615,863,487,1991,1239,299,1803,1051,675,2179,1427,64,1568,816,440,1944,1192,252,1756,1004,628,2132,1380,158,1662,910,534,2038,1286,1110,734,1486,29,1533,781,405,1909,1157,217,1721,969,593,2097,1345,123,1627,875,499,2003,1251,311,1815,1063,687,2191,1439,76,1580,828,452,1956,1204,264,1768,1016,640,2144,1392,170,1674,922,546,2050,1298,358,1862,1462,5,1509,757,381,1885,1133,193,1697,945,569,2073,1321,99,1603,851,475,1979,1227,287,1791,1039,663,2167,1415,52,1556,804,428,1932,1180,240,1744,992,616,2120,1368,146,1650,898,522,2026,1274,334,1838,1086,710,1548,796,420,1924,1172,232,1736,984,608,2112,1360,138,1642,890,514,2018,1266,326,1830,1078,702,2206,1454,91,1595,843,467,1971,1219,279,1783,1031,655,2159,1407,185,1689,937,561,2065,1313,373,1877,1125,749,1501,44,396,1900,1148,208,1712,960,584,2088,1336,114,1618,866,490,1994,1242,302,1806,1054,678,2182,1430,67,1571,819,443,1947,1195,255,1759,1007,631,2135,1383,161,1665,913,537,2041,1289,349,1853,1101,725,1477,20,1524,772,1160,220,1724,972,596,2100,1348,126,1630,878,502,2006,1254,314,1818,1066,690,2194,1442,79,1583,831,455,1959,1207,267,1771,1019,643,2147,1395,173,1677,925,549,2053,1301,361,1865,1113,737,1489,32,1536,784,408,1912,1700,948,572,2076,1324,102,1606,854,478,1982,1230,290,1794,1042,666,2170,1418,55,1559,807,431,1935,1183,243,1747,995,619,2123,1371,149,1653,901,525,2029,1277,337,1841,1089,713,1465,8,1512,760,384,1888,1136,196,602,2106,1354,132,1636,884,508,2012,1260,320,1824,1072,696,2200,1448,85,1589,837,461,1965,1213,273,1777,1025,649,2153,1401,179,1683,931,555,2059,1307,367,1871,1119,743,1495,38,1542,790,414,1918,1166,226,1730,978,1330,108,1612,860,484,1988,1236,296,1800,1048,672,2176,1424,61,1565,813,437,1941,1189,249,1753,1001,625,2129,1377,155,1659,907,531,2035,1283,343,1847,1095,719,1471,14,1518,766,390,1894,1142,202,1706,954,578,2082,1624,872,496,2e3,1248,308,1812,1060,684,2188,1436,73,1577,825,449,1953,1201,261,1765,1013,637,2141,1389,167,1671,919,543,2047,1295,355,1859,1107,731,1483,26,1530,778,402,1906,1154,214,1718,966,590,2094,1342,120,472,1976,1224,284,1788,1036,660,2164,1412,49,1553,801,425,1929,1177,237,1741,989,613,2117,1365,143,1647,895,519,2023,1271,331,1835,1083,707,1459,774,1506,754,378,1882,1130,190,1694,942,566,2070,1318,96,1600,848,1267,327,1831,1079,703,2207,1455,92,1596,844,468,1972,1220,280,1784,1032,656,2160,1408,186,1690,938,562,2066,1314,374,1878,1126,750,1502,45,1549,797,421,1925,1173,233,1737,985,609,2113,1361,139,1643,891,515,2019,1807,1055,679,2183,1431,68,1572,820,444,1948,1196,256,1760,1008,632,2136,1384,162,1666,914,538,2042,1290,350,1854,1102,726,1478,21,1525,773,397,1901,1149,209,1713,961,585,2089,1337,115,1619,867,491,1995,1243,303,691,2195,1443,80,1584,832,456,1960,1208,268,1772,1020,644,2148,1396,174,1678,926,550,2054,1302,362,1866,1114,738,1490,33,1537,785,409,1913,1161,221,1725,973,597,2101,1349,127,1631,879,503,2007,1255,315,1819,1067,1419,56,1560,808,432,1936,1184,244,1748,996,620,2124,1372,150,1654,902,526,2030,1278,338,1842,1090,714,1466,9,1513,761,385,1889,1137,197,1701,949,573,2077,1325,103,1607,855,479,1983,1231,291,1795,1043,667,2171,1590,838,462,1966,1214,274,1778,1026,650,2154,1402,180,1684,932,556,2060,1308,368,1872,1120,744,1496,39,1543,791,415,1919,1167,227,1731,979,603,2107,1355,133,1637,885,509,2013,1261,321,1825,1073,697,2201,1449,86,438,1942,1190,250,1754,1002,626,2130,1378,156,1660,908,532,2036,1284,344,1848,1096,720,1472,15,1519,767,391,1895,1143,203,1707,955,579,2083,1331,109,1613,861,485,1989,1237,297,1801,1049,673,2177,1425,62,1566,814,1202,262,1766,1014,638,2142,1390,168,1672,920,544,2048,1296,356,1860,1108,732,1484,27,1531,779,403,1907,1155,215,1719,967,591,2095,1343,121,1625,873,497,2001,1249,309,1813,1061,685,2189,1437,74,1578,826,450,1954,1742,990,614,2118,1366,144,1648,896,520,2024,1272,332,1836,1084,708,1460,1457,1507,755,379,1883,1131,191,1695,943,567,2071,1319,97,1601,849,473,1977,1225,285,1789,1037,661,2165,1413,50,1554,802,426,1930,1178,238,653,2157,1405,183,1687,935,559,2063,1311,371,1875,1123,747,1499,42,1546,794,418,1922,1170,230,1734,982,606,2110,1358,136,1640,888,512,2016,1264,324,1828,1076,700,2204,1452,89,1593,841,465,1969,1217,277,1781,1029,1381,159,1663,911,535,2039,1287,347,1851,1099,723,1475,18,1522,770,394,1898,1146,206,1710,958,582,2086,1334,112,1616,864,488,1992,1240,300,1804,1052,676,2180,1428,65,1569,817,441,1945,1193,253,1757,1005,629,2133,1675,923,547,2051,1299,359,1863,1111,735,1487,30,1534,782,406,1910,1158,218,1722,970,594,2098,1346,124,1628,876,500,2004,1252,312,1816,1064,688,2192,1440,77,1581,829,453,1957,1205,265,1769,1017,641,2145,1393,171,523,2027,1275,335,1839,1087,711,1463,6,1510,758,382,1886,1134,194,1698,946,570,2074,1322,100,1604,852,476,1980,1228,288,1792,1040,664,2168,1416,53,1557,805,429,1933,1181,241,1745,993,617,2121,1369,147,1651,899,1305,365,1869,1117,741,1493,36,1540,788,412,1916,1164,224,1728,976,600,2104,1352,130,1634,882,506,2010,1258,318,1822,1070,694,2198,1446,83,1587,835,459,1963,1211,271,1775,1023,647,2151,1399,177,1681,929,553,2057,1845,1093,717,1469,12,1516,764,388,1892,1140,200,1704,952,576,2080,1328,106,1610,858,482,1986,1234,294,1798,1046,670,2174,1422,59,1563,811,435,1939,1187,247,1751,999,623,2127,1375,153,1657,905,529,2033,1281,341,729,1481,24,1528,776,400,1904,1152,212,1716,964,588,2092,1340,118,1622,870,494,1998,1246,306,1810,1058,682,2186,1434,71,1575,823,447,1951,1199,259,1763,1011,635,2139,1387,165,1669,917,541,2045,1293,353,1857,1105,0,1504,752,376,1880,1128,188,1692,940,564,2068,1316,94,1598,846,470,1974,1222,282,1786,1034,658,2162,1410,47,1551,799,423,1927,1175,235,1739,987,611,2115,1363,141,1645,893,517,2021,1269,329,1833,1081,705,3]]};var a={ECC000:0,ECC050:1,ECC080:2,ECC100:3,ECC140:4};t.getECC=function(e){var n=a[e];return{eccInfo:t.Constants_140.ECCInfos[n],headerBits:t.Constants_140.HeaderBits[n]}};var c=["square9","square11","square13","square15","square17","square19","square21","square23","square25","square27","square29","square31","square33","square35","square37","square39","square41","square43","square45","square47","square49"];t.getSymbolSizeInfo=function(n){var r=c.indexOf(n);if(r<0)throw new e.barcode.InvalidOptionsException({ecc000_140SymbolSize:n});return t.Constants_140.SymbolCapacities[r]},t.getSymbolSizeValue=function(e){return c.indexOf(e)},t.getProperSymbolSize=function(e,n){if("auto"==e){e="square9";for(var r=0;r<=c.length-1;++r)if(n<=t.Constants_140.SymbolCapacities[r]){e=c[r];break}}return e},t.getModuleMapping=function(e){var n=c.indexOf(e);return t.Constants_140.ModuleMapping[n]},t.setFinder_140=function(t,n){for(var r=t[0],o=0;o<n;o++)e.barcode.Utils.isEven(o)?r[o]=1:r[o]=0;var i=t[n-1];for(o=0;o<n;o++)i[o]=1;for(o=1;o<n-1;o++)t[o][0]=1,e.barcode.Utils.isEven(o)?t[o][n-1]=1:t[o][n-1]=0},t.setRegionData_140=function(e,t,n){t-=2;for(var r=0;r<t;++r)for(var o=0;o<t;++o)e[1+r][1+o]=+n.getBit(r*t+o)}}(t.specialized||(t.specialized={}))}(e.barcode||(e.barcode={}))}(wijmo||(wijmo={})),function(e){!function(t){!function(t){var n=e.barcode.Utils.fillArray(new Array(256),0),r=e.barcode.Utils.fillArray(new Array(256),0),o=1,i=0;do{var a=o%=256;n[i]=o,r[o]=i%256,o<<=1,0!=(128&a)&&(o^=45)}while(++i<=255);function c(e,t){return(e^t)%256}function s(e,t){return 0==e||0==t?0:n[(r[e]+r[t])%255]}var u=[null,null,null,null,null,[228,48,15,111,62],null,[23,68,144,134,240,92,254],null,null,[28,24,185,166,223,248,116,255,110,61],[175,138,205,12,194,168,39,245,60,97,120],[41,153,158,91,61,42,142,213,97,178,100,242],null,[156,97,192,252,95,9,157,119,138,45,18,186,83,185],null,null,null,[83,195,100,39,188,75,66,61,241,213,109,129,94,254,225,48,90,188],null,[15,195,244,9,233,71,168,2,188,160,153,145,253,79,108,82,27,174,186,172],null,null,null,[52,190,88,205,109,39,176,21,155,197,251,223,155,21,5,172,254,124,12,181,184,96,50,193],null,null,null,[211,231,43,97,71,96,103,174,37,151,170,53,75,34,249,121,17,138,110,213,141,136,120,151,233,168,93,255],null,null,null,null,null,null,null,[245,127,242,218,130,250,162,181,102,120,84,179,220,251,80,182,229,18,2,4,68,33,101,137,95,119,115,44,175,184,59,25,225,98,81,112],null,null,null,null,null,[77,193,137,31,19,38,22,153,247,105,122,2,245,133,242,8,175,95,100,9,167,105,214,111,57,121,21,1,253,57,54,101,248,202,69,50,150,177,226,5,9,5],null,null,null,null,null,[245,132,172,223,96,32,117,22,238,133,238,231,205,188,237,87,191,106,16,147,118,23,37,90,170,205,131,88,120,100,66,138,186,240,82,44,176,87,187,147,160,175,69,213,92,253,225,19],null,null,null,null,null,null,null,[175,9,223,238,12,17,220,208,100,29,175,170,230,192,215,235,150,159,36,223,38,200,132,54,228,146,218,234,117,203,29,232,144,238,22,150,201,117,62,207,164,13,137,245,127,67,247,28,155,43,203,107,233,53,143,46],null,null,null,null,null,[242,93,169,50,144,210,39,118,202,188,201,189,143,108,196,37,185,112,134,230,245,63,197,190,250,106,185,221,175,64,114,71,161,44,147,6,27,218,51,63,87,10,40,130,188,17,163,31,176,170,4,107,232,7,94,166,224,124,86,47,11,204],null,null,null,null,null,[220,228,173,89,251,149,159,56,89,33,147,244,154,36,73,127,213,136,248,180,234,197,158,177,68,122,93,213,15,160,227,236,66,139,153,185,202,167,179,25,220,232,96,210,231,136,223,239,181,241,59,52,172,25,49,232,211,189,64,54,108,153,132,63,96,103,82,186]];t.generateErrorCorrectionCode=function(t,n,r,o){for(var i=e.barcode.Utils.fillArray(new Array(o),0),a=u[o],l=n;l<n+r;++l){for(var d=c(i[o-1],t[l]),h=o-1;h>0;--h)i[h]=c(s(d,a[h]),i[h-1]);i[0]=s(a[0],d)}return i.reverse(),i}}(t.specialized||(t.specialized={}))}(e.barcode||(e.barcode={}))}(wijmo||(wijmo={})),function(e){!function(t){!function(t){t.CONSTANTS={FNC1Input:e.barcode.Constants.DataMatrixFNC1.charCodeAt(0),Macro05Input:e.barcode.Constants.DataMatrixMacro05.charCodeAt(0),Macro06Input:e.barcode.Constants.DataMatrixMacro06.charCodeAt(0),StructuredAppand:233,FileIdentifierMax:254,ASCIIPad:129,ASCIIUpperShift:235,ASCIIFNC1:232,Macro05:236,Macro06:237,TripletUppershift:158,TripletFNC1:155,TripletPad:0,InvalidTripletValue:255,LatchToC40:230,LatchToBase256:231,LatchToX12:238,LatchToText:239,LatchToEDIFACT:240,TripletUnlatch:254,EDIFACTUnlatch:31,PseudoRandomSeed:149,PadRandomBase:253,Base256RandomBase:255,Base256SmallBlockSize:249,EDIFACTMask:63,Unvisited:255,TripletShifts:[255,0,1,2],MaxCodeWrods:2178,MaxStructures:16,MaxLookAheadOffset:50};var n={keys:["square10","square12","square14","square16","square18","square20","square22","square24","square26","square32","square36","square40","square44","square48","square52","square64","square72","square80","square88","square96","square104","square120","square132","square144","rectangular8x18","rectangular8x32","rectangular12x26","rectangular12x36","rectangular16x36","rectangular16x48"],values:[[10,10,3,5,1,1,8,8],[12,12,5,7,1,1,10,10],[14,14,8,10,1,1,12,12],[16,16,12,12,1,1,14,14],[18,18,18,14,1,1,16,16],[20,20,22,18,1,1,18,18],[22,22,30,20,1,1,20,20],[24,24,36,24,1,1,22,22],[26,26,44,28,1,1,24,24],[32,32,62,36,1,4,14,14],[36,36,86,42,1,4,16,16],[40,40,114,48,1,4,18,18],[44,44,144,56,1,4,20,20],[48,48,174,68,1,4,22,22],[52,52,204,84,2,4,24,24],[64,64,280,112,2,16,14,14],[72,72,368,144,4,16,16,16],[80,80,456,192,4,16,18,18],[88,88,576,224,4,16,20,20],[96,96,696,272,4,16,22,22],[104,104,816,336,6,16,24,24],[120,120,1050,408,6,36,18,18],[132,132,1304,496,8,36,20,20],[144,144,1558,620,10,36,22,22],[8,18,5,7,1,1,6,16],[8,32,10,11,1,2,6,14],[12,26,16,14,1,1,10,24],[12,36,22,18,1,2,10,16],[16,36,32,24,1,2,14,16],[16,48,49,28,1,2,14,22]]};function r(t){var r=n.values[n.keys.indexOf(t)];if(!r)throw new e.barcode.InvalidOptionsException({ecc200SymbolSize:t});return{symbolRows:r[0],symbolColumns:r[1],symbolDataCapacity:r[2],eccLength:r[3],interleavedBlocks:r[4],regions:r[5],regionRows:r[6],regionColumns:r[7]}}function o(e){return e>t.ASCIIMax?e==t.CONSTANTS.FNC1Input?"FNC1":"ExtendedASCII":e>=t.NumericMin&&e<=t.NumericMax?"Numeric":e>=t.LowerCasedLetterMin&&e<=t.LowerCasedLetterMax?"LowerCasedLetter":e>=t.UpperCasedLetterMin&&e<=t.UpperCasedLetterMax?"UpperCasedLetter":"ASCIIOther"}function i(e){switch(o(e)){case"Numeric":return e-44;case"UpperCasedLetter":return e-51;default:switch(e){case 13:return 0;case 42:return 1;case 62:return 2;case 32:return 3}}return t.CONSTANTS.InvalidTripletValue}function a(n,r){if("X12"==n)return i(r);if(r<32)return r;if(32==r)return 3;if(r<48)return r-33;if(r<58)return r-44;if(r<65)return r-43;if(r<91)return"C40"==n?r-51:r-64;if(r<96)return r-69;if(96==r)return 0;if(r<123)return"C40"==n?r-96:r-83;if(r<128)return r-96;if(r==t.TripletFNC1||r==t.TripletUppershift)return r-128;throw new e.barcode.InvalidCharacterException(String.fromCharCode(r))}function c(e,n){return"X12"===e?0:n<32?1:32==n?0:n<48?2:n<58?0:n<65?2:n<91?"C40"==e?0:3:n<96?2:96==n?3:n<123?"C40"===e?3:0:n==t.CONSTANTS.TripletFNC1||n==t.CONSTANTS.TripletUppershift?2:3}t.getSymbolInfo=r,t.getSuitableSymbolSize=function(t,o){if("squareAuto"!==t&&"rectangularAuto"!==t)return r(t);for(var i="squareAuto"==t?0:24;i<n.keys.length;++i)if(n.values[i][2]>=o)return r(n.keys[i]);throw new e.barcode.TextTooLongException},t.getInfoOfRegions=function(e){var t;switch(e){case 1:case 2:t=1;break;case 4:t=2;break;case 16:t=4;break;case 36:t=6}return{rowOfRegion:t,colOfRegion:~~(e/t)}},t.createModules=function(t,n){n||(n=t);for(var r=[],o=0;o<t;o++)r.push(e.barcode.Utils.fillArray(new Array(n),null));return r},t.TripletUppershift=158,t.TripletFNC1=155,t.ASCIIMax=127,t.ExtendedASCIIMin=128,t.Space=32,t.NumericMin=48,t.NumericMax=57,t.LowerCasedLetterMin=97,t.LowerCasedLetterMax=122,t.UpperCasedLetterMin=65,t.UpperCasedLetterMax=90,t.getCharType=o,t.getX12Value=i,t.getTripletCharValue=a,t.isDigit=function(e){return e>=t.NumericMin&&e<=t.NumericMax},t.getTripletCharSetChannel=c,t.getTripletEncodeValues=function(n,r){var o=[];if(r==t.CONSTANTS.FNC1Input){if("X12"==n)throw new e.barcode.InvalidCharacterException("FNC1");r=t.CONSTANTS.TripletFNC1}else if(r>t.ASCIIMax){if("C40"!=n&&"Text"!=n)throw new e.barcode.InvalidCharacterException(String.fromCharCode(r));o.push(t.CONSTANTS.TripletShifts[2]),o.push(a(n,t.CONSTANTS.TripletUppershift)),r-=t.ExtendedASCIIMin}var i=c(n,r);return i>0&&o.push(t.CONSTANTS.TripletShifts[i]),o.push(a(n,r)),o},t.getEDIFACTValue=function(e){return e<32||e>94?t.CONSTANTS.InvalidTripletValue:e&t.CONSTANTS.EDIFACTMask},t.getRandomizedValue=function(e,n,r){var o=e+t.CONSTANTS.PseudoRandomSeed*n%r+1;return o>r+1?o-r-1:o},t.mergeUnits=function(t){var n=[];if(t.length>0){for(var r=t[0],o=1;o<t.length;++o)t[o].charSet!=r.charSet?(r.length>0&&n.push(e.barcode.Utils.assign({},r)),r.charSet=t[o].charSet,r.start=t[o].start,r.length=t[o].length):r.length+=t[o].length;r.length>0&&n.push(r)}return n},t.setFinder=function(t,n,r,o){var i=n.regionColumns,a=n.regionRows;o*=i+=2;for(var c=t[r*=a+=2],s=o;s<o+i;s++)e.barcode.Utils.isEven(s)?c[s]=1:c[s]=0;var u=t[r+a-1];for(s=o;s<o+i;s++)u[s]=1;for(s=r;s<r+a;s++)t[s][o]=1,e.barcode.Utils.isEven(s)?t[s][o+i-1]=0:t[s][o+i-1]=1},t.setRegionData=function(e,t,n,r,o){for(var i=t.regionColumns,a=t.regionRows,c=n*(a+2)+1,s=r*(i+2)+1,u=n*a,l=r*i,d=0;d<a;++d)for(var h=0;h<i;++h)e[c+d][s+h]=o[u+d][l+h]}}(t.specialized||(t.specialized={}))}(e.barcode||(e.barcode={}))}(wijmo||(wijmo={})),function(e){!function(t){!function(t){var n=function(){function n(t,n){this.text=t,this.m_symbol=e.barcode.Utils.str2Array(t).map(function(e){return e.charCodeAt(0)}),this.symbolSize=n.ecc000_140SymbolSize,this.eccMode=n.eccMode,this.m_code=[],this.m_module=[]}return n.prototype.getMatrix=function(){var n=this.m_symbol,r=this.symbolSize,o=this.eccMode,i=this.m_code;if(n.length>569)throw new e.barcode.TextTooLongException;var a=t.chooseEncodationScheme(n),c="ECC000"===o?7:19,s=this.calculateDataBits(a),u=this.calculateTotalBits(a,c,s),l=this._symbolSize=t.getProperSymbolSize(r,u);if(u>t.getSymbolSizeInfo(l))throw new e.barcode.TextTooLongException;s+=30;var d=new t.BitwiseIterator([]);d.putBitsMSF(t.Constants_140.getFormatID(a)<<27,5);var h=this.crcProcess(a);d.putBitsLSF(h,16),d.putBitsLSF(n.length,9),this.encode(a,d);var f=new t.BitwiseIterator(i);return f.putBitsLSF(t.getECC(o).headerBits,c),d.offset=0,this.eccProcess(f,d,s),this.randomizeBits(),this.placeModule()},n.prototype.eccProcess=function(e,n,r){var o=this.eccMode;if("ECC000"!==o){var i=t.getECC(o).eccInfo,a=[i.inputBits],c=!1;do{c=!1;for(var s=0;s<i.inputBits;++s)a[s]>>=1,a[s]=t.setBit(a[s],i.registerBits[s],n.fetchBit());var u=!1;for(s=0;s<i.outputBits;++s){u=!1;for(var l=0;l<i.outputMasks[s].length;++l)u^=0!=(a[i.outputMasks[s][l].registerNumber]&i.outputMasks[s][l].mask);e.putBit(u)}if(n.offset>=r){for(s=0;s<a.length&&0==a[s];++s);s==a.length&&(c=!0)}}while(!c)}else for(;n.offset<r;)e.putBit(n.fetchBit())},n.prototype.randomizeBits=function(){for(var e=this.m_code,n=this._symbolSize,r=~~((t.getSymbolSizeInfo(n)+7)/8),o=0;o<r;++o)e[o]^=t.Constants_140.RandomizeBytes[o]},n.prototype.crcProcess=function(e){var n=this.m_symbol,r=0,o=[];o.push(t.Constants_140.getFormatID(e)+1),o.push(0),o.push.apply(o,n);for(var i=0;i<o.length;++i)for(var a=0;a<8;++a){var c=0!=(1&r);r>>=1,0!=(o[i]&1<<a)^c&&(r^=33800)}return r},n.prototype.calculateDataBits=function(e){var n=this.m_symbol,r=t.Constants_140.GroupLengths[e];return~~(n.length/r)*t.Constants_140.BitLengths[e][0]+(n.length%r==0?0:t.Constants_140.BitLengths[e][n.length%r])},n.prototype.calculateTotalBits=function(e,n,r){var o=this.eccMode,i=30+r,a=t.getECC(o).eccInfo;return n+(~~((i+a.inputBits-1)/a.inputBits)+a.registerBits[a.inputBits-1])*a.outputBits},n.prototype.encode=function(e,n){for(var r=this.m_symbol,o=0,i=e,a=t.Constants_140.GroupLengths[i],c=t.Constants_140.BaseValues[i],s=0;s<r.length;){o=0;var u=1;do{o+=t.getCodeWord(e,r[s++])*u,u*=c}while(s%a!=0&&s<r.length);var l=s%a;n.putBitsLSF(o,t.Constants_140.BitLengths[i][l])}},n.prototype.placeModule=function(){for(var e=this.m_module,n=this._symbolSize,r=this.m_code,o=t.getSymbolSizeInfo(n),i=new t.BitwiseIterator(e),a=new t.BitwiseIterator(r),c=t.getModuleMapping(n),s=0;s<o;++s)i.putBit(a.getBit(c[s]));var u=2*t.getSymbolSizeValue(n)+9,l=t.createModules(u);return t.setFinder_140(l,u),t.setRegionData_140(l,u,i),l},n}();t.ECC000_140=n}(t.specialized||(t.specialized={}))}(e.barcode||(e.barcode={}))}(wijmo||(wijmo={})),function(e){!function(e){!function(e){var t=function(){function t(t,n,r){this.nrow=n,this.ncol=r,this.data=t,this.matrix=e.createModules(n,r)}return t.prototype.ECC200=function(){var e=this.nrow,t=this.ncol,n=this.matrix,r=4,o=0,i=0;do{r==e&&0==o&&this.corner1(i++),r==e-2&&0==o&&t%4&&this.corner2(i++),r==e-2&&0==o&&t%8==4&&this.corner3(i++),r!=e+4||2!=o||t%8||this.corner4(i++);do{r<e&&o>=0&&null===n[r][o]&&this.utah(r,o,i++),r-=2,o+=2}while(r>=0&&o<t);r+=1,o+=3;do{r>=0&&o<t&&null===n[r][o]&&this.utah(r,o,i++),r+=2,o-=2}while(r<e&&o>=0);r+=3,o+=1}while(r<e||o<t);return n[e-1][t-1]||(n[e-1][t-1]=n[e-2][t-2]=1,n[e-2][t-1]=n[e-1][t-2]=0),n},t.prototype.module=function(e,t,n,r){var o=this.nrow,i=this.ncol,a=this.matrix,c=this.data;e<0&&(e+=o,t+=4-(o+4)%8),t<0&&(t+=i,e+=4-(i+4)%8);var s=(1<<8-r)%256;a[e][t]=0!=(c[n]&s)?1:0},t.prototype.utah=function(e,t,n){this.module(e-2,t-2,n,1),this.module(e-2,t-1,n,2),this.module(e-1,t-2,n,3),this.module(e-1,t-1,n,4),this.module(e-1,t,n,5),this.module(e,t-2,n,6),this.module(e,t-1,n,7),this.module(e,t,n,8)},t.prototype.corner1=function(e){var t=this.nrow,n=this.ncol;this.module(t-1,0,e,1),this.module(t-1,1,e,2),this.module(t-1,2,e,3),this.module(0,n-2,e,4),this.module(0,n-1,e,5),this.module(1,n-1,e,6),this.module(2,n-1,e,7),this.module(3,n-1,e,8)},t.prototype.corner2=function(e){var t=this.nrow,n=this.ncol;this.module(t-3,0,e,1),this.module(t-2,0,e,2),this.module(t-1,0,e,3),this.module(0,n-4,e,4),this.module(0,n-3,e,5),this.module(0,n-2,e,6),this.module(0,n-1,e,7),this.module(1,n-1,e,8)},t.prototype.corner3=function(e){var t=this.nrow,n=this.ncol;this.module(t-3,0,e,1),this.module(t-2,0,e,2),this.module(t-1,0,e,3),this.module(0,n-2,e,4),this.module(0,n-1,e,5),this.module(1,n-1,e,6),this.module(2,n-1,e,7),this.module(3,n-1,e,8)},t.prototype.corner4=function(e){var t=this.nrow,n=this.ncol;this.module(t-1,0,e,1),this.module(t-1,n-1,e,2),this.module(0,n-3,e,3),this.module(0,n-2,e,4),this.module(0,n-1,e,5),this.module(1,n-3,e,6),this.module(1,n-2,e,7),this.module(1,n-1,e,8)},t}();e.SymbolCharacterPlacement=t}(e.specialized||(e.specialized={}))}(e.barcode||(e.barcode={}))}(wijmo||(wijmo={})),function(e){!function(t){!function(t){function n(e){return e%256}function r(e){return Math.ceil(e-1e-5)}var o=function(){function o(n,r){this.text=n,this.m_symbol=e.barcode.Utils.str2Array(n).map(function(e){return e.charCodeAt(0)}),this.symbolSize=r.ecc200SymbolSize,this.encodingMode=r.ecc200EncodingMode,this.structuredAppend=r.structuredAppend,this.structureNumber=r.structureNumber,this.fileIdentifier=r.fileIdentifier,this.symbolInfo=t.getSymbolInfo("square144"),this.m_code=[]}return o.prototype.preEncode=function(e,n){var r=this.m_symbol,o=this.m_code,i=r[0];return i!=t.CONSTANTS.Macro05Input&&i!=t.CONSTANTS.Macro06Input||(o[e++]=i==t.CONSTANTS.Macro05Input?t.CONSTANTS.Macro05:t.CONSTANTS.Macro06,n++),{c_pos:e,s_pos:n}},o.prototype.checkValue=function(e){var n=this.encodingMode,r=this.m_symbol;if("X12"==n||"EDIFACT"==n)for(var o=e;o<r.length;++o)if(t.getTripletCharValue(n,r[o])==t.CONSTANTS.InvalidTripletValue)return!1;return!0},o.prototype.getEncodingLength=function(e,n,r,o){var i=this.m_symbol;if(n<0)return-1;var a=0;switch(e){case"ASCII":a=n;break;case"C40":case"Text":a=2*~~((n+2)/3)+2;break;case"X12":a=2*~~((n+2)/3)+2,(n%3==1||n%3==2&&t.isDigit(i[r+o-2])&&t.isDigit(i[r+o-1]))&&--a;break;case"EDIFACT":a=3*~~(++n/4)+n%4+1;break;case"Base256":a=n+1+(n>t.CONSTANTS.Base256SmallBlockSize?2:1)}return a},o.prototype.getMaxProperLength=function(e,t){for(var n=this.m_symbol,r=this.encodingMode,o=e+1,i=n.length,a=~~((o+i)/2),c=0,s=0;o<i;)a=~~((o+i)/2),(s=this.getEncodingLength(r,this.getCodeWordLength(r,e,a-e),e,a-e))<0||s>t?i=a-1:o=a+1;return o>e&&(a<o?c=(s=this.getEncodingLength(r,this.getCodeWordLength(r,e,o-e),e,o-e))<0||s>t?a-e:o-e:(a=Math.min(a,o),c=(s=this.getEncodingLength(r,this.getCodeWordLength(r,e,a-e),e,a-e))<0||s>t?a-e-1:a-e)),Math.max(0,c)},o.prototype.getCodeWordLength=function(e,n,r){for(var o=this.m_symbol,i=0,a=n;a<n+r;++a){var c=o[a];switch(e){case"ASCII":i+=c>t.ASCIIMax&&c!=t.CONSTANTS.FNC1Input?2:1,a<n+r-1&&t.isDigit(c)&&t.isDigit(o[a+1])&&++a;break;case"C40":case"Text":c==t.CONSTANTS.FNC1Input?c=t.CONSTANTS.TripletFNC1:c>t.ASCIIMax&&(i+=2,c-=128),i+=0==t.getTripletCharSetChannel(e,c)?1:2;break;case"X12":t.getX12Value(c)==t.CONSTANTS.InvalidTripletValue?i=-1:i+=1;break;case"EDIFACT":t.getEDIFACTValue(c)==t.CONSTANTS.InvalidTripletValue?i=-1:i+=1;break;case"Base256":i+=1}if(i<0)return i}return i},o.prototype.getCodeLength=function(e){return this.getEncodingLength(e.charSet,this.getCodeWordLength(e.charSet,e.start,e.length),e.start,e.length)},o.prototype.getEncodingUnitsInfomative=function(e,n,r){var o,i=this.m_symbol;for(var a=[],c={charSet:"ASCII",start:e,length:0,codeWords:0,encodingLength:0},s=0,u=e,l=!1,d=i.length;u<d;){switch(l=!1,c.charSet){case"ASCII":for(var h=0;u+h<i.length-1&&s+~~(h/2)<n&&t.isDigit(i[u+h])&&t.isDigit(i[u+h+1]);)h+=2;if(h>0){if(c.codeWords+=h>>1,u+=h,s+~~(h/2)>=n)break;continue}break;case"C40":case"Text":case"X12":do{i[u]>t.ASCIIMax&&(c.codeWords+=2),t.getTripletCharSetChannel(c.charSet,i[u])>0&&++c.codeWords,++c.codeWords,++u}while(c.codeWords%3!=0&&u<d);break;case"EDIFACT":do{++c.codeWords,++u}while(0!=(3&c.codeWords)&&u<d);break;case"Base256":++c.codeWords,++u}var f=0,p=n-(s+this.getEncodingLength(c.charSet,c.codeWords,c.start,u-c.start)),g=p,b=c.charSet;do{f=(o=this.lookAhead(c.charSet,u,g,f)).d_len,b=o.newCharset}while(--g>0&&this.getEncodingLength(b,this.getCodeWordLength(b,u,f),u,f)>p);if(g<=0)break;c.charSet!=b&&(c.length=u-c.start,c.length>0&&(a.push(c),s+=this.getEncodingLength(c.charSet,c.codeWords,c.start,c.length)),c={charSet:b,start:u,length:0,codeWords:0,encodingLength:0},l=!0);var C=n-1;if("EDIFACT"==c.charSet&&--C,"Base256"==c.charSet&&++C,s+this.getEncodingLength(c.charSet,c.codeWords,c.start,c.length)>=C)break;l||"ASCII"!=c.charSet||(++c.codeWords,++u)}for(c.length=u-c.start,c.length>0&&(a.push(c),s+=this.getEncodingLength(c.charSet,c.codeWords,c.start,c.length)),c={charSet:"ASCII",start:u,length:0,codeWords:0,encodingLength:0};s<n&&u<i.length;){if(i[u]>t.ASCIIMax&&i[u]!=t.CONSTANTS.FNC1Input){if(!(s<n-1))break;++s}++s,++u}return u>c.start&&(c.length=u-c.start,a.push(c)),{s_taken:u-e,units:t.mergeUnits(a)}},o.prototype.getEncodingUnits=function(e,t){var n,r,o=this,i=this.encodingMode,a=0,c=0;if(e<this.m_symbol.length){if("auto"!==i){"C40"!==i&&"Text"!=i&&"X12"!=i||t++;var s={charSet:i,start:e,length:c=this.getMaxProperLength(e,t),codeWords:0,encodingLength:0};s.codeWords=this.getCodeWordLength(s.charSet,s.start,s.length),s.encodingLength=this.getEncodingLength(s.charSet,s.codeWords,s.start,s.length),"X12"==s.charSet&&s.encodingLength==t&&s.codeWords%3==2&&(--c,--s.length,--s.codeWords,--s.encodingLength),r=[s]}else n=this.getEncodingUnitsInfomative(e,t,c),r=n.units,c=n.s_taken;r.forEach(function(e,t){a+=o.getCodeLength(e),t===r.length-1&&("C40"===e.charSet||"Text"===e.charSet||"X12"===e.charSet&&1==(1&e.codeWords))&&a--})}return{c_length:a,s_taken:c,units:r}},o.prototype.encodeStructureHeader=function(e,r,o){var i=this.m_code,a=this.structureNumber;i[e++]=t.CONSTANTS.StructuredAppand,i[e++]=n(a<<4|16-r+1);var c=this.generateFileIdentifier(r,o);return i[e++]=n(c>>8),i[e++]=n(c),e},o.prototype.generateFileIdentifier=function(e,n){var r=this.m_symbol,o=this.fileIdentifier;return n%t.CONSTANTS.FileIdentifierMax+1<<8|(0==o?r.length%t.CONSTANTS.FileIdentifierMax+1:o)},o.prototype.encode=function(e,t){switch(e.charSet){case"ASCII":return this.encodeASCII(e.start,e.length,t);case"C40":return this.encodeC40(e.start,e.length,t);case"Text":return this.encodeText(e.start,e.length,t);case"X12":return this.encodeX12(e.start,e.length,t);case"EDIFACT":return this.encodeEDIFACT(e.start,e.length,t);case"Base256":return this.encodeBase256(e.start,e.length,t)}},o.prototype.encodeASCII=function(e,n,r){for(var o=this.m_code,i=this.m_symbol,a=e,c=e+n;a<c;a++){var s=t.getCharType(i[a]);if("FNC1"!==s)if("ExtendedASCII"!==s)if(a+1<c&&"Numeric"===s&&"Numeric"===t.getCharType(i[a+1])){var u=10*(i[a]-48)+(i[a+1]-48)+130;o.push(u),r++,a++}else o.push(i[a]+1),r++;else o.push(t.CONSTANTS.ASCIIUpperShift),o.push(i[a]-t.ASCIIMax),r+=2;else o.push(t.CONSTANTS.ASCIIFNC1),r++}return r},o.prototype.encodeTriplet=function(n,r,o,i){var a=this.m_code,c=this.m_symbol,s=this.symbolInfo,u=0,l=0,d=null,h=[],f=r;switch(n){case"C40":a[i++]=t.CONSTANTS.LatchToC40;break;case"Text":a[i++]=t.CONSTANTS.LatchToText;break;case"X12":a[i++]=t.CONSTANTS.LatchToX12}for(;f<r+o;)d=t.getTripletEncodeValues(n,c[f++]),h=h.concat(d);for(;i<=s.symbolDataCapacity-2&&h.length>=3;){for(u=0,l=0;l<3;++l)u*=40,u+=h.length>0?h.shift():0;++u,a[i++]=u>>8,a[i++]=255&u}var p=!0;if(h.length>0){var g=s.symbolDataCapacity-i,b=r+o-h.length,C=h.length;if(0===g||h.length>3||h.length>=2&&g<2||"X12"===n&&this.getEncodingLength("ASCII",this.getCodeWordLength("ASCII",b,C),b,C)>(1==g?1:g-1))throw new e.barcode.TextTooLongException;if(p=!1,g>=2)if("X12"==n)a[i++]=t.CONSTANTS.TripletUnlatch,i=this.encodeASCII(f-h.length,h.length,i);else{for(p=!0,l=0,u=0;l<3;++l)u*=40,u+=h.length>0?h.shift():0;++u,a[i++]=u>>8,a[i++]=255&u}else{var S=c[f-1];"X12"===n?i=this.encodeASCII(f-1,1,i):(S>t.ASCIIMax&&(a[i-2]=t.CONSTANTS.TripletUnlatch,--i),i=this.encodeASCII(f-1,1,i))}}return p&&i<s.symbolDataCapacity&&(a[i++]=t.CONSTANTS.TripletUnlatch),i},o.prototype.encodeC40=function(e,t,n){return this.encodeTriplet("C40",e,t,n)},o.prototype.encodeText=function(e,t,n){return this.encodeTriplet("Text",e,t,n)},o.prototype.encodeX12=function(e,t,n){return this.encodeTriplet("X12",e,t,n)},o.prototype.encodeEDIFACT=function(r,o,i){var a=this.m_code,c=this.m_symbol,s=this.symbolInfo,u=this.text;a[i++]=t.CONSTANTS.LatchToEDIFACT;for(var l=0,d=0,h=r,f=!1;h<r+o&&s.symbolDataCapacity-i>2;){for(l=0,d=0;l<4;){++l;var p=0;if(h<r+o){if((p=t.getEDIFACTValue(c[h++]))==t.CONSTANTS.InvalidTripletValue)throw new e.barcode.InvalidTextException(u)}else{if(h!=r+o){--l;break}p=t.CONSTANTS.EDIFACTUnlatch,f=!0,++h}d<<=6,d|=p}switch(l){case 1:a[i++]=n(d<<2);break;case 2:a[i++]=n(d>>4),a[i++]=n(d<<4);break;case 3:a[i++]=n(d>>10),a[i++]=n(d>>2),a[i++]=n(d<<6);break;case 4:a[i++]=n(d>>16),a[i++]=n(d>>8),a[i++]=n(d)}}return h<r+o?i=this.encodeASCII(h,c.length-h,i):!f&&i<s.symbolDataCapacity-2&&(a[i++]=t.CONSTANTS.EDIFACTUnlatch<<2),i},o.prototype.encodeBase256=function(e,n,r){var o=this.m_code,i=this.m_symbol;o[r++]=t.CONSTANTS.LatchToBase256,n>t.CONSTANTS.Base256SmallBlockSize&&(o[r++]=t.getRandomizedValue(t.CONSTANTS.Base256SmallBlockSize+n/t.CONSTANTS.Base256SmallBlockSize,r,t.CONSTANTS.Base256RandomBase)),o[r++]=t.getRandomizedValue(n%(t.CONSTANTS.Base256SmallBlockSize+1),r,t.CONSTANTS.Base256RandomBase);for(var a=e;a<e+n;++a)o[r++]=t.getRandomizedValue(i[a],r,t.CONSTANTS.Base256RandomBase);return r},o.prototype.padRight=function(e){for(var n=this.m_code,r=this.symbolInfo,o=e;o<r.symbolDataCapacity;o++)n[o]=o==e?t.CONSTANTS.ASCIIPad:t.getRandomizedValue(t.CONSTANTS.ASCIIPad,o+1,t.CONSTANTS.PadRandomBase)},o.prototype.lookAhead=function(e,n,o,i){var a={ASCII:0,C40:1,Text:2,X12:3,EDIFACT:4,Base256:5},c=["ASCII","C40","Text","X12","EDIFACT","Base256"],s=this.m_symbol;i=0;var u=!1,l=n,d=[0,1,1,1,1,1.25],h=a.C40;(e=a[e])!=a.ASCII&&(d=d.map(function(e){return++e})),d[e]=0;for(var f=function(){++i;var e=s[n],f=e==t.CONSTANTS.FNC1Input,p=e>t.ASCIIMax;d.forEach(function(n,o){switch(o){case a.ASCII:p&&!f?d[o]=r(d[o])+2:t.isDigit(e)?d[o]+=.5:d[o]+=1;break;case a.C40:case a.Text:d[o]+=f?4/3:p?8/3:0==t.getTripletCharSetChannel(c[o],e)?2/3:4/3;break;case a.X12:p?d[o]+=13/3:t.getX12Value(e)!=t.CONSTANTS.InvalidTripletValue?d[o]+=2/3:d[o]+=10/3;break;case a.EDIFACT:p?d[o]+=4.25:t.getEDIFACTValue(e)!=t.CONSTANTS.InvalidTripletValue?d[o]+=.75:d[o]+=3.25;break;case a.Base256:d[o]+=1}});var g=[a.ASCII,a.Base256,a.EDIFACT,a.Text,a.X12,a.C40];if(i>3)for(var b=0;b<g.length;++b){for(var C=!0,S=g[b],m=d[S]+1,w=0;w<d.length;++w){switch(S){case a.ASCII:d[w]<m&&(C=!1);break;case a.Base256:(w==a.ASCII&&d[w]<m||d[w]<=m)&&(C=!1);break;case a.EDIFACT:case a.Text:case a.X12:d[w]<=m&&(C=!1);break;case a.C40:if(w!=a.X12&&d[w]<=m)C=!1;else if(m-=1,d[w]<m)C=!1;else if(d[w]==m){for(var T=l;T<=n;){var y=t.getX12Value(s[T++]);if(y<3)return{value:c[a.X12]};if(y==t.CONSTANTS.InvalidTripletValue)break}return{value:c[a.C40]}}}if(!C)break}if(C){h=S;break}}++n;var v=0;for(b=0;b<d.length;++b)r(d[b])<r(d[v])&&(v=b);if(n<s.length&&r(d[v])>=o)return u=!0,"break"};n<s.length&&n-l<=t.CONSTANTS.MaxLookAheadOffset;){var p=f();if("object"==typeof p)return p.value;if("break"===p)break}if(n==s.length||n-l>=t.CONSTANTS.MaxLookAheadOffset||u){for(var g=0,b=0;b<d.length;++b)d[b]=r(d[b]),d[b]<d[g]&&(g=b);if(0==g||g==a.C40)h=g;else{var C=!0,S=d[g];for(b=0;b<d.length;++b)if(b!=g&&d[b]<=S){C=!1;break}C&&(h=g)}}return{d_len:i,newCharset:c[h]}},o.prototype.getMatrix=function(){var r,o=this,i=this,a=i.text,c=i.m_symbol,s=i.symbolSize,u=i.structuredAppend,l=i.structureNumber,d=i.symbolInfo;if(c.length>3116*(u?16:1))throw new e.barcode.TextTooLongException;var h=0,f=0,p=0,g=0,b=0;"squareAuto"!==s&&"rectangularAuto"!==s?d=t.getSymbolInfo(s):"rectangularAuto"===s&&(d=t.getSymbolInfo("rectangular16x48")),this.symbolInfo=d,u||(h=(r=this.preEncode(h,f)).s_pos,f=r.c_pos);var C,S=d.symbolDataCapacity;if(u?(S-=4,p=4):(S-=f,p=f),!this.checkValue(h))throw new e.barcode.InvalidTextException(a);for(;g<(u?t.CONSTANTS.MaxStructures:1)&&h<c.length;g++){b^=c[h];var m=this.getEncodingUnits(h,S),w=m.s_taken,T=m.c_length,y=m.units;h+=w,g==l&&(C=y,p+=T)}if(null==C)throw new e.barcode.InvalidOptionsException({structureNumber:l},"Max structure number is "+g);if(h<c.length)throw new e.barcode.TextTooLongException;"squareAuto"!==s&&"rectangularAuto"!==s||(d=t.getSuitableSymbolSize(s,p),this.symbolInfo=d),u&&(f=this.encodeStructureHeader(f,g,n(b^c[c.length-1]))),C.forEach(function(e){return f=o.encode(e,f)}),f<d.symbolDataCapacity&&this.padRight(f);var v=this.eccProcess(),E=t.getInfoOfRegions(d.regions),_=E.rowOfRegion,A=E.colOfRegion,I=new t.SymbolCharacterPlacement(v,d.symbolRows-2*_,d.symbolColumns-2*A).ECC200();return this.placeModules(I)},o.prototype.eccProcess=function(){var e=this.symbolInfo,n=this.m_code,r=e.symbolDataCapacity/e.interleavedBlocks,o=e.eccLength/e.interleavedBlocks;144==e.symbolRows&&++r;for(var i=[],a=0;a<e.interleavedBlocks;++a){for(var c=0,s=a;c<r&&s<e.symbolDataCapacity;++c,s+=e.interleavedBlocks)i[c]=n[s];var u=t.generateErrorCorrectionCode(i,0,c,o);s=a;for(var l=0;l<u.length;++l,s+=e.interleavedBlocks)n[e.symbolDataCapacity+s]=u[l]}return n},o.prototype.placeModules=function(e){for(var n=this.symbolInfo,r=t.createModules(n.symbolRows,n.symbolColumns),o=t.getInfoOfRegions(n.regions),i=o.rowOfRegion,a=o.colOfRegion,c=0;c<i;c++)for(var s=0;s<a;s++)t.setFinder(r,n,c,s),t.setRegionData(r,n,c,s,e);return r},o}();t.ECC200=o}(t.specialized||(t.specialized={}))}(e.barcode||(e.barcode={}))}(wijmo||(wijmo={})),function(e){!function(t){!function(t){var n=function(n){function r(o){var i=this;o.merge(r.DefaultConfig);var a,c=(i=n.call(this,o)||this).config,s=c.eccMode,u=c.ecc200SymbolSize,l=c.ecc200EncodingMode,d=c.structuredAppend,h=c.structureNumber,f=c.fileIdentifier,p=c.ecc000_140SymbolSize,g=i.encodeConfig.text;switch(h=+h,f=+f,s){case"ECC200":a=new t.ECC200(g,{ecc200SymbolSize:u,ecc200EncodingMode:l,structuredAppend:d,structureNumber:h,fileIdentifier:f});break;case"ECC000":case"ECC050":case"ECC080":case"ECC100":case"ECC140":a=new t.ECC000_140(g,{ecc000_140SymbolSize:p,structuredAppend:d,structureNumber:h,fileIdentifier:f,eccMode:s});break;default:throw new e.barcode.InvalidOptionsException({eccMode:s})}return i.innerEncoder=a,i}return __extends(r,n),r.prototype.calculateData=function(){return this.innerEncoder.getMatrix()},r.prototype.validate=function(){var t=this.encodeConfig.text,n=this.config,r=n.eccMode,o=n.structureNumber,i=n.fileIdentifier;if(!("ECC200"===r?/^[\x00-\xFF\u2000\u2004\u2005]+$/:/^[\x00-\xFF]+$/).test(t))throw new e.barcode.InvalidTextException(t);if(!e.barcode.Utils.isNumberLike(o))throw new e.barcode.InvalidOptionsException({structureNumber:o});if(!e.barcode.Utils.isNumberLike(i))throw new e.barcode.InvalidOptionsException({fileIdentifier:i})},r.DefaultConfig={eccMode:"ECC200",ecc200SymbolSize:"squareAuto",ecc200EncodingMode:"auto",ecc000_140SymbolSize:"auto",structuredAppend:!1,structureNumber:0,fileIdentifier:0,quietZone:{top:2,left:2,right:2,bottom:2}},r}(e.barcode.TwoDimensionalBarcode);t.DataMatrixEncoder=n}(t.specialized||(t.specialized={}))}(e.barcode||(e.barcode={}))}(wijmo||(wijmo={})),function(e){!function(t){!function(t){e.barcode.Barcode.registerEncoder("DataMatrix",t.DataMatrixEncoder)}(t.specialized||(t.specialized={}))}(e.barcode||(e.barcode={}))}(wijmo||(wijmo={})),function(e){!function(e){!function(e){!function(e){e[e.Ecc000=0]="Ecc000",e[e.Ecc050=1]="Ecc050",e[e.Ecc080=2]="Ecc080",e[e.Ecc100=3]="Ecc100",e[e.Ecc140=4]="Ecc140"}(e.DataMatrixVersion||(e.DataMatrixVersion={})),function(e){e[e.Auto=0]="Auto",e[e.Ascii=1]="Ascii",e[e.C40=2]="C40",e[e.Text=3]="Text",e[e.X12=4]="X12",e[e.Edifact=5]="Edifact",e[e.Base256=6]="Base256"}(e.Ecc200EncodingMode||(e.Ecc200EncodingMode={})),function(e){e[e.SquareAuto=0]="SquareAuto",e[e.RectangularAuto=1]="RectangularAuto",e[e.Square10=2]="Square10",e[e.Square12=3]="Square12",e[e.Square14=4]="Square14",e[e.Square16=5]="Square16",e[e.Square18=6]="Square18",e[e.Square20=7]="Square20",e[e.Square22=8]="Square22",e[e.Square24=9]="Square24",e[e.Square26=10]="Square26",e[e.Square32=11]="Square32",e[e.Square36=12]="Square36",e[e.Square40=13]="Square40",e[e.Square44=14]="Square44",e[e.Square48=15]="Square48",e[e.Square52=16]="Square52",e[e.Square64=17]="Square64",e[e.Square72=18]="Square72",e[e.Square80=19]="Square80",e[e.Square88=20]="Square88",e[e.Square96=21]="Square96",e[e.Square104=22]="Square104",e[e.Square120=23]="Square120",e[e.Square132=24]="Square132",e[e.Square144=25]="Square144",e[e.Rectangular8x18=26]="Rectangular8x18",e[e.Rectangular8x32=27]="Rectangular8x32",e[e.Rectangular12x26=28]="Rectangular12x26",e[e.Rectangular12x36=29]="Rectangular12x36",e[e.Rectangular16x36=30]="Rectangular16x36",e[e.Rectangular16x48=31]="Rectangular16x48"}(e.Ecc200SymbolSize||(e.Ecc200SymbolSize={})),function(e){e[e.Auto=0]="Auto",e[e.Square9=1]="Square9",e[e.Square11=2]="Square11",e[e.Square13=3]="Square13",e[e.Square15=4]="Square15",e[e.Square17=5]="Square17",e[e.Square19=6]="Square19",e[e.Square21=7]="Square21",e[e.Square23=8]="Square23",e[e.Square25=9]="Square25",e[e.Square27=10]="Square27",e[e.Square29=11]="Square29",e[e.Square31=12]="Square31",e[e.Square33=13]="Square33",e[e.Square35=14]="Square35",e[e.Square37=15]="Square37",e[e.Square39=16]="Square39",e[e.Square41=17]="Square41",e[e.Square43=18]="Square43",e[e.Square45=19]="Square45",e[e.Square47=20]="Square47",e[e.Square49=21]="Square49"}(e.Ecc000_140SymbolSize||(e.Ecc000_140SymbolSize={}))}(e.specialized||(e.specialized={}))}(e.barcode||(e.barcode={}))}(wijmo||(wijmo={})),function(e){!function(t){!function(t){var n=function(){function n(){}return n.stringToEnum=function(e){switch(e){case"ECC000":return t.DataMatrixVersion.Ecc000;case"ECC050":return t.DataMatrixVersion.Ecc050;case"ECC080":return t.DataMatrixVersion.Ecc080;case"ECC100":return t.DataMatrixVersion.Ecc100;case"ECC140":return t.DataMatrixVersion.Ecc140}throw"Unknown Barcode internal eccMode '"+e+"'"},n.enumToString=function(n){return t.DataMatrixVersion[e.asEnum(n,t.DataMatrixVersion)].toUpperCase()},n}();t._DataMatrixVersionConvertor=n;var r=function(){function n(){}return n.stringToEnum=function(e){switch(e){case"auto":return t.Ecc200EncodingMode.Auto;case"ASCII":return t.Ecc200EncodingMode.Ascii;case"C40":return t.Ecc200EncodingMode.C40;case"Text":return t.Ecc200EncodingMode.Text;case"X12":return t.Ecc200EncodingMode.X12;case"EDIFACT":return t.Ecc200EncodingMode.Edifact;case"Base256":return t.Ecc200EncodingMode.Base256}throw"Unknown Barcode internal ECC200 encoding mode '"+e+"'"},n.enumToString=function(n){var r=e.asEnum(n,t.Ecc200EncodingMode);switch(r){case t.Ecc200EncodingMode.Auto:return"auto";case t.Ecc200EncodingMode.Ascii:case t.Ecc200EncodingMode.Edifact:return t.Ecc200EncodingMode[r].toUpperCase();default:return t.Ecc200EncodingMode[r]}},n}();t._Ecc200EncodingModeConvertor=r,t._SymbolSizeConvertor=function(e){return e.charAt(0).toLowerCase()+e.slice(1)}}(t.specialized||(t.specialized={}))}(e.barcode||(e.barcode={}))}(wijmo||(wijmo={})),function(e){!function(t){!function(t){var n=function(t){function n(n,r){var o=t.call(this,n,r)||this;return e.addClass(o.hostElement,"wj-barcode-datamatrix"),o}return __extends(n,t),n.type="DataMatrix",n}(e.barcode.BarcodeBase);t.DataMatrixBase=n;var r=function(n){function r(t,o){var i;return r._getEnumDictionary(),i=n.call(this,t,o)||this,e.addClass(i.hostElement,"wj-barcode-datamatrix-ecc000"),i}return __extends(r,n),r._getEnumDictionary=function(){r._symbolSizeDictionary||(r._symbolSizeDictionary=new e.barcode._EnumDictionary(t.Ecc000_140SymbolSize,t._SymbolSizeConvertor))},r._getClassDefaults=function(){var e=n._getClassDefaults.call(this);return e.eccMode="ECC000",e},Object.defineProperty(r.prototype,"version",{get:function(){return t._DataMatrixVersionConvertor.stringToEnum(this._getProp("eccMode"))},set:function(e){this._setProp("eccMode",t._DataMatrixVersionConvertor.enumToString(e))},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"symbolSize",{get:function(){return r._symbolSizeDictionary.getEnumByString(this._getProp("ecc000_140SymbolSize"))},set:function(e){this._setProp("ecc000_140SymbolSize",r._symbolSizeDictionary.getStringByEnum(e))},enumerable:!0,configurable:!0}),r}(n);t.DataMatrixEcc000=r;var o=function(n){function r(t,o){var i;return r._getEnumDictionary(),i=n.call(this,t,o)||this,e.addClass(i.hostElement,"wj-barcode-datamatrix-ecc200"),i}return __extends(r,n),r._getEnumDictionary=function(){r._symbolSizeDictionary||(r._symbolSizeDictionary=new e.barcode._EnumDictionary(t.Ecc200SymbolSize,t._SymbolSizeConvertor))},r._getClassDefaults=function(){var e=n._getClassDefaults.call(this);return e.eccMode="ECC200",e},Object.defineProperty(r.prototype,"symbolSize",{get:function(){return r._symbolSizeDictionary.getEnumByString(this._getProp("ecc200SymbolSize"))},set:function(e){this._setProp("ecc200SymbolSize",r._symbolSizeDictionary.getStringByEnum(e))},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"encodingMode",{get:function(){return t._Ecc200EncodingModeConvertor.stringToEnum(this._getProp("ecc200EncodingMode"))},set:function(e){this._setProp("ecc200EncodingMode",t._Ecc200EncodingModeConvertor.enumToString(e))},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"structuredAppend",{get:function(){return this._getProp("structuredAppend")},set:function(e){this._setProp("structuredAppend",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"structureNumber",{get:function(){return this._getProp("structureNumber")},set:function(e){this._setProp("structureNumber",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"fileIdentifier",{get:function(){return this._getProp("fileIdentifier")},set:function(e){this._setProp("fileIdentifier",e)},enumerable:!0,configurable:!0}),r}(n);t.DataMatrixEcc200=o;var i=function(t){function n(n,r){var o=t.call(this,n,r)||this;return e.addClass(o.hostElement,"wj-barcode-code49"),o}return __extends(n,t),Object.defineProperty(n.prototype,"showLabel",{get:function(){return this._getProp("showLabel")},set:function(e){this._setProp("showLabel",e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"grouping",{get:function(){return this._getProp("grouping")},set:function(e){this._setProp("grouping",e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"groupIndex",{get:function(){return this._getProp("groupNo")},set:function(e){this._setProp("groupNo",e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"labelPosition",{get:function(){return e.barcode._LabelPositionConvertor.stringToEnum(this._getProp("labelPosition"))},set:function(t){this._setProp("labelPosition",e.barcode._LabelPositionConvertor.enumToString(t))},enumerable:!0,configurable:!0}),n.type="Code49",n}(e.barcode.BarcodeBase);t.Code49=i;var a=function(t){function n(n,r){var o=t.call(this,n)||this;return e.addClass(o.hostElement,"wj-barcode-code93"),o._setAw(!0),o.initialize(r),o}return __extends(n,t),Object.defineProperty(n.prototype,"autoWidth",{get:function(){return this._getAw()},set:function(e){this._setAw(e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"autoWidthZoom",{get:function(){return this._getWzoom()},set:function(e){this._setWzoom(e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"showLabel",{get:function(){return this._getProp("showLabel")},set:function(e){this._setProp("showLabel",e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"checkDigit",{get:function(){return this._getProp("checkDigit")},set:function(e){this._setProp("checkDigit",e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"fullAscii",{get:function(){return this._getProp("fullASCII")},set:function(e){this._setProp("fullASCII",e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"labelPosition",{get:function(){return e.barcode._LabelPositionConvertor.stringToEnum(this._getProp("labelPosition"))},set:function(t){this._setProp("labelPosition",e.barcode._LabelPositionConvertor.enumToString(t))},enumerable:!0,configurable:!0}),n.type="Code93",n}(e.barcode.BarcodeBase);t.Code93=a;var c=function(t){function n(n,r){var o=t.call(this,n,r)||this;return e.addClass(o.hostElement,"wj-barcode-itf14"),o}return __extends(n,t),Object.defineProperty(n.prototype,"showLabel",{get:function(){return this._getProp("showLabel")},set:function(e){this._setProp("showLabel",e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"nwRatio",{get:function(){return e.barcode._NarrowWideRatioConvertor.stringToEnum(this._getProp("nwRatio"))},set:function(t){this._setProp("nwRatio",e.barcode._NarrowWideRatioConvertor.enumToString(t))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"bearerBar",{get:function(){return this._getProp("bearerBar")},set:function(e){this._setProp("bearerBar",e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"labelPosition",{get:function(){return e.barcode._LabelPositionConvertor.stringToEnum(this._getProp("labelPosition"))},set:function(t){this._setProp("labelPosition",e.barcode._LabelPositionConvertor.enumToString(t))},enumerable:!0,configurable:!0}),n.type="ITF-14",n}(e.barcode.BarcodeBase);t.Itf14=c;var s=function(t){function n(n,r){var o=t.call(this,n)||this;return e.addClass(o.hostElement,"wj-barcode-interleaved2of5"),o._setAw(!0),o.initialize(r),o}return __extends(n,t),Object.defineProperty(n.prototype,"autoWidth",{get:function(){return this._getAw()},set:function(e){this._setAw(e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"autoWidthZoom",{get:function(){return this._getWzoom()},set:function(e){this._setWzoom(e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"showLabel",{get:function(){return this._getProp("showLabel")},set:function(e){this._setProp("showLabel",e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"nwRatio",{get:function(){return e.barcode._NarrowWideRatioConvertor.stringToEnum(this._getProp("nwRatio"))},set:function(t){this._setProp("nwRatio",e.barcode._NarrowWideRatioConvertor.enumToString(t))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"bearerBar",{get:function(){return this._getProp("bearerBar")},set:function(e){this._setProp("bearerBar",e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"labelPosition",{get:function(){return e.barcode._LabelPositionConvertor.stringToEnum(this._getProp("labelPosition"))},set:function(t){this._setProp("labelPosition",e.barcode._LabelPositionConvertor.enumToString(t))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"checkCharacter",{get:function(){return this._getProp("checkCharacter")},set:function(e){this._setProp("checkCharacter",e)},enumerable:!0,configurable:!0}),n.type="Interleaved2of5",n}(e.barcode.BarcodeBase);t.Interleaved2of5=s;var u=function(t){function n(n,r){var o=t.call(this,n,r)||this;return e.addClass(o.hostElement,"wj-barcode-japanese-postal"),o}return __extends(n,t),Object.defineProperty(n.prototype,"showLabel",{get:function(){return this._getProp("showLabel")},set:function(e){this._setProp("showLabel",e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"labelPosition",{get:function(){return e.barcode._LabelPositionConvertor.stringToEnum(this._getProp("labelPosition"))},set:function(t){this._setProp("labelPosition",e.barcode._LabelPositionConvertor.enumToString(t))},enumerable:!0,configurable:!0}),n.type="Japanese Postal",n}(e.barcode.BarcodeBase);t.JapanesePostal=u}(t.specialized||(t.specialized={}))}(e.barcode||(e.barcode={}))}(wijmo||(wijmo={})),function(e){!function(t){t.specialized||(t.specialized={}),e._registerModule("wijmo.barcode.specialized",e.barcode.specialized)}(e.barcode||(e.barcode={}))}(wijmo||(wijmo={}));
var __extends=this&&this.__extends||function(){var n=function(t,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r(){this.constructor=t}if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(t,i);t.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}}(),c1;(function(n){var t;(function(n){var ot=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(wijmo.barcode.Barcode),t,i,r,u,f,e,o,s,h,c,l,a,v,y,p,w,b,k,d,g,nt,tt,it,rt,ut,ft,et;n.Barcode=ot;t=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(wijmo.barcode.BarcodeBase);n.BarcodeBase=t;i=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(wijmo.barcode.common.Codabar);n.Codabar=i;r=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(wijmo.barcode.common.Code39);n.Code39=r;u=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(wijmo.barcode.common.Code128);n.Code128=u;f=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(wijmo.barcode.common.Ean8);n.Ean8=f;e=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(wijmo.barcode.common.Ean13);n.Ean13=e;o=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(wijmo.barcode.common.Gs1_128);n.Gs1_128=o;s=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(wijmo.barcode.common.QrCode);n.QrCode=s;h=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(wijmo.barcode.common.UpcA);n.UpcA=h;c=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(wijmo.barcode.common.UpcE0);n.UpcE0=c;l=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(wijmo.barcode.common.UpcE1);n.UpcE1=l;a=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(wijmo.barcode.specialized.Code49);n.Code49=a;v=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(wijmo.barcode.specialized.Code93);n.Code93=v;y=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(wijmo.barcode.specialized.DataMatrixEcc200);n.DataMatrixEcc200=y;p=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(wijmo.barcode.specialized.DataMatrixEcc000);n.DataMatrixEcc000=p;w=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(wijmo.barcode.specialized.Interleaved2of5);n.Interleaved2of5=w;b=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(wijmo.barcode.specialized.Itf14);n.Itf14=b;k=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(wijmo.barcode.specialized.JapanesePostal);n.JapanesePostal=k;d=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(wijmo.barcode.composite.Gs1DataBarExpanded);n.Gs1DataBarExpanded=d;g=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(wijmo.barcode.composite.Gs1DataBarExpandedStacked);n.Gs1DataBarExpandedStacked=g;nt=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(wijmo.barcode.composite.Gs1DataBarLimited);n.Gs1DataBarLimited=nt;tt=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(wijmo.barcode.composite.Gs1DataBarOmnidirectional);n.Gs1DataBarOmnidirectional=tt;it=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(wijmo.barcode.composite.Gs1DataBarStacked);n.Gs1DataBarStacked=it;rt=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(wijmo.barcode.composite.Gs1DataBarStackedOmnidirectional);n.Gs1DataBarStackedOmnidirectional=rt;ut=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(wijmo.barcode.composite.Gs1DataBarTruncated);n.Gs1DataBarTruncated=ut;ft=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(wijmo.barcode.composite.Pdf417);n.Pdf417=ft;et=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(wijmo.barcode.composite.MicroPdf417);n.MicroPdf417=et})(t=n.barcode||(n.barcode={}))})(c1||(c1={}));
var __extends=this&&this.__extends||function(){var n=function(t,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r(){this.constructor=t}if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(t,i);t.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}}(),c1;(function(n){var t;(function(t){var i;(function(i){var vi=function(t){function i(){return t!==null&&t.apply(this,arguments)||this}return __extends(i,t),Object.defineProperty(i.prototype,"_controlType",{get:function(){return r},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"_initializerType",{get:function(){return n.mvc.barcode._Initializer},enumerable:!1,configurable:!0}),i}(t._ControlWrapper),r,st,u,ht,f,ct,e,lt,o,at,s,vt,h,yt,c,pt,l,wt,a,bt,v,kt,y,dt,p,gt,w,ni,b,ti,k,ii,d,ri,g,ui,nt,fi,tt,ei,it,oi,rt,si,ut,hi,ft,ci,et,li,ot,ai;i._CodabarWrapper=vi;r=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(n.barcode.Codabar);i.Codabar=r;st=function(t){function i(){return t!==null&&t.apply(this,arguments)||this}return __extends(i,t),Object.defineProperty(i.prototype,"_controlType",{get:function(){return u},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"_initializerType",{get:function(){return n.mvc.barcode._Initializer},enumerable:!1,configurable:!0}),i}(t._ControlWrapper);i._Code39Wrapper=st;u=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(n.barcode.Code39);i.Code39=u;ht=function(t){function i(){return t!==null&&t.apply(this,arguments)||this}return __extends(i,t),Object.defineProperty(i.prototype,"_controlType",{get:function(){return f},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"_initializerType",{get:function(){return n.mvc.barcode._Initializer},enumerable:!1,configurable:!0}),i}(t._ControlWrapper);i._Code128Wrapper=ht;f=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(n.barcode.Code128);i.Code128=f;ct=function(t){function i(){return t!==null&&t.apply(this,arguments)||this}return __extends(i,t),Object.defineProperty(i.prototype,"_controlType",{get:function(){return e},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"_initializerType",{get:function(){return n.mvc.barcode._Initializer},enumerable:!1,configurable:!0}),i}(t._ControlWrapper);i._Ean8Wrapper=ct;e=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(n.barcode.Ean8);i.Ean8=e;lt=function(t){function i(){return t!==null&&t.apply(this,arguments)||this}return __extends(i,t),Object.defineProperty(i.prototype,"_controlType",{get:function(){return o},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"_initializerType",{get:function(){return n.mvc.barcode._Initializer},enumerable:!1,configurable:!0}),i}(t._ControlWrapper);i._Ean13Wrapper=lt;o=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(n.barcode.Ean13);i.Ean13=o;at=function(t){function i(){return t!==null&&t.apply(this,arguments)||this}return __extends(i,t),Object.defineProperty(i.prototype,"_controlType",{get:function(){return s},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"_initializerType",{get:function(){return n.mvc.barcode._Initializer},enumerable:!1,configurable:!0}),i}(t._ControlWrapper);i._Gs1_128Wrapper=at;s=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(n.barcode.Gs1_128);i.Gs1_128=s;vt=function(t){function i(){return t!==null&&t.apply(this,arguments)||this}return __extends(i,t),Object.defineProperty(i.prototype,"_controlType",{get:function(){return h},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"_initializerType",{get:function(){return n.mvc.barcode._Initializer},enumerable:!1,configurable:!0}),i}(t._ControlWrapper);i._QrCodeWrapper=vt;h=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(n.barcode.QrCode);i.QrCode=h;yt=function(t){function i(){return t!==null&&t.apply(this,arguments)||this}return __extends(i,t),Object.defineProperty(i.prototype,"_controlType",{get:function(){return c},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"_initializerType",{get:function(){return n.mvc.barcode._Initializer},enumerable:!1,configurable:!0}),i}(t._ControlWrapper);i._UpcAWrapper=yt;c=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(n.barcode.UpcA);i.UpcA=c;pt=function(t){function i(){return t!==null&&t.apply(this,arguments)||this}return __extends(i,t),Object.defineProperty(i.prototype,"_controlType",{get:function(){return l},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"_initializerType",{get:function(){return n.mvc.barcode._Initializer},enumerable:!1,configurable:!0}),i}(t._ControlWrapper);i._UpcE0Wrapper=pt;l=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(n.barcode.UpcE0);i.UpcE0=l;wt=function(t){function i(){return t!==null&&t.apply(this,arguments)||this}return __extends(i,t),Object.defineProperty(i.prototype,"_controlType",{get:function(){return a},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"_initializerType",{get:function(){return n.mvc.barcode._Initializer},enumerable:!1,configurable:!0}),i}(t._ControlWrapper);i._UpcE1Wrapper=wt;a=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(n.barcode.UpcE1);i.UpcE1=a;bt=function(t){function i(){return t!==null&&t.apply(this,arguments)||this}return __extends(i,t),Object.defineProperty(i.prototype,"_controlType",{get:function(){return v},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"_initializerType",{get:function(){return n.mvc.barcode._Initializer},enumerable:!1,configurable:!0}),i}(t._ControlWrapper);i._Code49Wrapper=bt;v=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(n.barcode.Code49);i.Code49=v;kt=function(t){function i(){return t!==null&&t.apply(this,arguments)||this}return __extends(i,t),Object.defineProperty(i.prototype,"_controlType",{get:function(){return y},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"_initializerType",{get:function(){return n.mvc.barcode._Initializer},enumerable:!1,configurable:!0}),i}(t._ControlWrapper);i._Code93Wrapper=kt;y=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(n.barcode.Code93);i.Code93=y;dt=function(t){function i(){return t!==null&&t.apply(this,arguments)||this}return __extends(i,t),Object.defineProperty(i.prototype,"_controlType",{get:function(){return p},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"_initializerType",{get:function(){return n.mvc.barcode._Initializer},enumerable:!1,configurable:!0}),i}(t._ControlWrapper);i._DataMatrixEcc200Wrapper=dt;p=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(n.barcode.DataMatrixEcc200);i.DataMatrixEcc200=p;gt=function(t){function i(){return t!==null&&t.apply(this,arguments)||this}return __extends(i,t),Object.defineProperty(i.prototype,"_controlType",{get:function(){return w},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"_initializerType",{get:function(){return n.mvc.barcode._Initializer},enumerable:!1,configurable:!0}),i}(t._ControlWrapper);i._DataMatrixEcc000Wrapper=gt;w=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(n.barcode.DataMatrixEcc000);i.DataMatrixEcc000=w;ni=function(t){function i(){return t!==null&&t.apply(this,arguments)||this}return __extends(i,t),Object.defineProperty(i.prototype,"_controlType",{get:function(){return b},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"_initializerType",{get:function(){return n.mvc.barcode._Initializer},enumerable:!1,configurable:!0}),i}(t._ControlWrapper);i._Interleaved2of5Wrapper=ni;b=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(n.barcode.Interleaved2of5);i.Interleaved2of5=b;ti=function(t){function i(){return t!==null&&t.apply(this,arguments)||this}return __extends(i,t),Object.defineProperty(i.prototype,"_controlType",{get:function(){return k},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"_initializerType",{get:function(){return n.mvc.barcode._Initializer},enumerable:!1,configurable:!0}),i}(t._ControlWrapper);i._Itf14Wrapper=ti;k=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(n.barcode.Itf14);i.Itf14=k;ii=function(t){function i(){return t!==null&&t.apply(this,arguments)||this}return __extends(i,t),Object.defineProperty(i.prototype,"_controlType",{get:function(){return d},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"_initializerType",{get:function(){return n.mvc.barcode._Initializer},enumerable:!1,configurable:!0}),i}(t._ControlWrapper);i._JapanesePostalWrapper=ii;d=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(n.barcode.JapanesePostal);i.JapanesePostal=d;ri=function(t){function i(){return t!==null&&t.apply(this,arguments)||this}return __extends(i,t),Object.defineProperty(i.prototype,"_controlType",{get:function(){return g},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"_initializerType",{get:function(){return n.mvc.barcode._Initializer},enumerable:!1,configurable:!0}),i}(t._ControlWrapper);i._Gs1DataBarExpandedWrapper=ri;g=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(n.barcode.Gs1DataBarExpanded);i.Gs1DataBarExpanded=g;ui=function(t){function i(){return t!==null&&t.apply(this,arguments)||this}return __extends(i,t),Object.defineProperty(i.prototype,"_controlType",{get:function(){return nt},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"_initializerType",{get:function(){return n.mvc.barcode._Initializer},enumerable:!1,configurable:!0}),i}(t._ControlWrapper);i._Gs1DataBarExpandedStackedWrapper=ui;nt=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(n.barcode.Gs1DataBarExpandedStacked);i.Gs1DataBarExpandedStacked=nt;fi=function(t){function i(){return t!==null&&t.apply(this,arguments)||this}return __extends(i,t),Object.defineProperty(i.prototype,"_controlType",{get:function(){return tt},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"_initializerType",{get:function(){return n.mvc.barcode._Initializer},enumerable:!1,configurable:!0}),i}(t._ControlWrapper);i._Gs1DataBarLimitedWrapper=fi;tt=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(n.barcode.Gs1DataBarLimited);i.Gs1DataBarLimited=tt;ei=function(t){function i(){return t!==null&&t.apply(this,arguments)||this}return __extends(i,t),Object.defineProperty(i.prototype,"_controlType",{get:function(){return it},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"_initializerType",{get:function(){return n.mvc.barcode._Initializer},enumerable:!1,configurable:!0}),i}(t._ControlWrapper);i._Gs1DataBarOmnidirectionalWrapper=ei;it=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(n.barcode.Gs1DataBarOmnidirectional);i.Gs1DataBarOmnidirectional=it;oi=function(t){function i(){return t!==null&&t.apply(this,arguments)||this}return __extends(i,t),Object.defineProperty(i.prototype,"_controlType",{get:function(){return rt},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"_initializerType",{get:function(){return n.mvc.barcode._Initializer},enumerable:!1,configurable:!0}),i}(t._ControlWrapper);i._Gs1DataBarStackedWrapper=oi;rt=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(n.barcode.Gs1DataBarStacked);i.Gs1DataBarStacked=rt;si=function(t){function i(){return t!==null&&t.apply(this,arguments)||this}return __extends(i,t),Object.defineProperty(i.prototype,"_controlType",{get:function(){return ut},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"_initializerType",{get:function(){return n.mvc.barcode._Initializer},enumerable:!1,configurable:!0}),i}(t._ControlWrapper);i._Gs1DataBarStackedOmnidirectionalWrapper=si;ut=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(n.barcode.Gs1DataBarStackedOmnidirectional);i.Gs1DataBarStackedOmnidirectional=ut;hi=function(t){function i(){return t!==null&&t.apply(this,arguments)||this}return __extends(i,t),Object.defineProperty(i.prototype,"_controlType",{get:function(){return ft},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"_initializerType",{get:function(){return n.mvc.barcode._Initializer},enumerable:!1,configurable:!0}),i}(t._ControlWrapper);i._Gs1DataBarTruncatedWrapper=hi;ft=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(n.barcode.Gs1DataBarTruncated);i.Gs1DataBarTruncated=ft;ci=function(t){function i(){return t!==null&&t.apply(this,arguments)||this}return __extends(i,t),Object.defineProperty(i.prototype,"_controlType",{get:function(){return et},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"_initializerType",{get:function(){return n.mvc.barcode._Initializer},enumerable:!1,configurable:!0}),i}(t._ControlWrapper);i._Pdf417Wrapper=ci;et=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(n.barcode.Pdf417);i.Pdf417=et;li=function(t){function i(){return t!==null&&t.apply(this,arguments)||this}return __extends(i,t),Object.defineProperty(i.prototype,"_controlType",{get:function(){return ot},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"_initializerType",{get:function(){return n.mvc.barcode._Initializer},enumerable:!1,configurable:!0}),i}(t._ControlWrapper);i._MicroPdf417Wrapper=li;ot=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(n.barcode.MicroPdf417);i.MicroPdf417=ot;ai=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(n.mvc._Initializer);i._Initializer=ai})(i=t.barcode||(t.barcode={}))})(t=n.mvc||(n.mvc={}))})(c1||(c1={}));
var wijmo;!function(e){window.wijmo||(window.wijmo=e);var o={Globalize:{name:"en",displayName:"English",numberFormat:{".":".",",":",","-":"-","+":"+","%":"%",percent:{pattern:["-n%","n%"]},currency:{decimals:2,symbol:"$",pattern:["($n)","$n"]}},calendar:{"/":"/",":":":",firstDay:0,days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],am:["AM","A"],pm:["PM","P"],eras:["A.D."],patterns:{d:"M/d/yyyy",D:"dddd, MMMM d, yyyy",f:"dddd, MMMM d, yyyy h:mm tt",F:"dddd, MMMM d, yyyy h:mm:ss tt",t:"h:mm tt",T:"h:mm:ss tt",m:"MMMM d",M:"MMMM d",y:"MMMM yyyy",Y:"MMMM yyyy",g:"M/d/yyyy h:mm tt",G:"M/d/yyyy h:mm:ss tt",s:'yyyy"-"MM"-"dd"T"HH":"mm":"ss'},fiscalYearOffsets:[-3,-3]}},Licensing:{cls:"CLOSE",ctc:'Please contact GrapeCity: <a href="mailto:us.sales@grapecity.com">us.sales@grapecity.com</a>.',dmn:"The Wijmo license in this application is not valid for the current domain. The license domain is <b>{licDomain}</b>; the current domain is <b>{domain}</b>.",evl:"Wijmo Evaluation Version ({version})",exp:"The Wijmo license in this application has expired. The license expiration date is <b>{expDate:d}</b>.",hdr:"Wijmo License",lic:"The Wijmo license in this application is invalid.",mss:"The Wijmo license in this application is not set.",prd:"The Wijmo license in this application is not valid for the <b>{control}</b> control.",ver:"The Wijmo license in this application is not valid for the version in use. The license version is <b>{licVer}</b>; the product version is <b>{version}</b>."},Calendar:{ariaLabels:{calendar:"Calendar",monthView:"Month View",yearView:"Year View",prvMo:"Previous Month",today:"Today",nxtMo:"Next Month",prvYr:"Previous Year",currMo:"Current Month",nxtYr:"Next Year"}},DropDown:{ariaLabels:{tgl:"Toggle dropdown"}},FlexGrid:{groupHeaderFormat:"{name}: <b>{value}</b> ({count:n0} items)",ariaLabels:{toggleDropDown:"Toggle Dropdown",toggleGroup:"Toggle Group"}},FlexGridDetailProvider:{ariaLabels:{toggleDetail:"Toggle Row Detail"}},FlexGridFilter:{ariaLabels:{edit:"Edit Filter for Column",dialog:"Filter Editor for Column",asc:"Sort Column in Ascending Order",dsc:"Sort Column in Descending Order",search:"Search Item List",op1:"First Condition Operator",val1:"First Condition Value",and:"Require both Conditions",or:"Require either Condition",op2:"Second Condition Operator",val2:"Second Condition Value"},ascending:"↑ Ascending",descending:"↓ Descending",apply:"Apply",cancel:"Cancel",clear:"Clear",conditions:"Filter by Condition",values:"Filter by Value",search:"Search",selectAll:"Select All",null:"(nothing)",header:"Show items where the value",and:"And",or:"Or",stringOperators:[{name:"(not set)",op:null},{name:"Equals",op:0},{name:"Does not equal",op:1},{name:"Begins with",op:6},{name:"Ends with",op:7},{name:"Contains",op:8},{name:"Does not contain",op:9}],numberOperators:[{name:"(not set)",op:null},{name:"Equals",op:0},{name:"Does not equal",op:1},{name:"Is greater than",op:2},{name:"Is greater than or equal to",op:3},{name:"Is less than",op:4},{name:"Is less than or equal to",op:5}],dateOperators:[{name:"(not set)",op:null},{name:"Equals",op:0},{name:"Is Before",op:4},{name:"Is After",op:2}],booleanOperators:[{name:"(not set)",op:null},{name:"Equals",op:0},{name:"Does not equal",op:1}]},GroupPanel:{dragDrop:"Drag and Drop columns here to create Groups."},InputDateTime:{ariaLabels:{tglDate:"Toggle Calendar",tglTime:"Toggle Time List"}},InputNumber:{ariaLabels:{incVal:"Increase Value",decVal:"Decrease Value"}},MultiSelect:{itemsSelected:"{count:n0} items selected"},MultiSelectListBox:{filterPlaceholder:"Filter",selectAll:"Select All"},olap:{PivotFieldEditor:{dialogHeader:"Field settings:",header:"Header:",summary:"Summary:",showAs:"Show As:",weighBy:"Weigh by:",sort:"Sort:",filter:"Filter:",format:"Format:",sample:"Sample:",edit:"Edit…",clear:"Clear",ok:"OK",cancel:"Cancel",none:"(none)",sorts:{asc:"Ascending",desc:"Descending"},aggs:{sum:"Sum",cnt:"Count",avg:"Average",max:"Max",min:"Min",rng:"Range",std:"StdDev",var:"Var",stdp:"StdDevPop",varp:"VarPop",first:"First",last:"Last"},calcs:{noCalc:"No Calculation",dRow:"Difference from previous row",dRowPct:"% Difference from previous row",dCol:"Difference from previous column",dColPct:"% Difference from previous column",dPctGrand:"% of grand total",dPctRow:"% of row total",dPrevRow:"% of value in the previous row",dPctCol:"% of column total",dPrevCol:"% of value in the previous column",dRunTot:"Running total",dRunTotPct:"% running total"},formats:{n0:"Integer (n0)",n2:"Float (n2)",c:"Currency (c)",p0:"Percentage (p0)",p2:"Percentage (p2)",n2c:"Thousands (n2,)",n2cc:"Millions (n2,,)",n2ccc:"Billions (n2,,,)",d:"Date (d)",MMMMddyyyy:"Month Day Year (MMMM dd, yyyy)",dMyy:"Day Month Year (d/M/yy)",ddMyy:"Day Month Year (dd/M/yy)",dMyyyy:"Day Month Year (dd/M/yyyy)",MMMyyyy:"Month Year (MMM yyyy)",MMMMyyyy:"Month Year (MMMM yyyy)",yyyy:"Year (yyyy)",yyyyQq:'Year Quarter (yyyy "Q"q)',FYEEEEQU:'Fiscal Year Quarter ("FY"EEEE "Q"U)'}},PivotEngine:{grandTotal:"Grand Total",subTotal:"Subtotal"},PivotPanel:{fields:"Choose fields to add to report:",drag:"Drag fields between areas below:",filters:"Filters",cols:"Columns",rows:"Rows",vals:"Values",defer:"Defer Updates",update:"Update"},_ListContextMenu:{up:"Move Up",down:"Move Down",first:"Move to Beginning",last:"Move to End",filter:"Move to Report Filter",rows:"Move to Row Labels",cols:"Move to Column Labels",vals:"Move to Values",remove:"Remove Field",edit:"Field Settings…",detail:"Show Detail…"},PivotChart:{by:"by",and:"and"},DetailDialog:{header:"Detail View:",ok:"OK",items:"{cnt:n0} items",item:"{cnt} item",row:"Row",col:"Column"},Slicer:{multiSelect:"Multi-Select",clearFilter:"Clear Filter"}},Viewer:{cancel:"Cancel",ok:"OK",bottom:"Bottom:",top:"Top:",right:"Right:",left:"Left:",margins:"Margins (inches)",orientation:"Orientation:",paperKind:"Paper Kind:",pageSetup:"Page Setup",landscape:"Landscape",portrait:"Portrait",pageNumber:"Page Number",zoomFactor:"Zoom Factor",paginated:"Paginated",print:"Print",search:"Search",matchCase:"Match case",wholeWord:"Match whole word only",searchResults:"Search Results",previousPage:"Previous Page",nextPage:"Next Page",firstPage:"First Page",lastPage:"Last Page",backwardHistory:"Backward",forwardHistory:"Forward",pageCount:"Page Count",selectTool:"Select Tool",moveTool:"Move Tool",continuousMode:"Continuous Page View",singleMode:"Single Page View",wholePage:"Fit Whole Page",pageWidth:"Fit Page Width",zoomOut:"Zoom Out",zoomIn:"Zoom In",rubberbandTool:"Zoom by Selection",magnifierTool:"Magnifier",rotatePage:"Rotate Page",rotateDocument:"Rotate Document",exports:"Export",fullScreen:"Full Screen",exitFullScreen:"Exit Full Screen",hamburgerMenu:"Tools",showSearchBar:"Show Search Bar",viewMenu:"Layout Options",searchOptions:"Search Options",matchCaseMenuItem:"Match Case",wholeWordMenuItem:"Match Whole Word",thumbnails:"Page Thumbnails",outlines:"Document Map",loading:"Loading…",pdfExportName:"Adobe PDF",docxExportName:"Open XML Word",xlsxExportName:"Open XML Excel",docExportName:"Microsoft Word",xlsExportName:"Microsoft Excel",mhtmlExportName:"Web archive (MHTML)",htmlExportName:"HTML document",rtfExportName:"RTF document",metafileExportName:"Compressed metafiles",csvExportName:"CSV",tiffExportName:"Tiff images",bmpExportName:"BMP images",emfExportName:"Enhanced metafile",gifExportName:"GIF images",jpgExportName:"JPEG images",jpegExportName:"JPEG images",pngExportName:"PNG images",abstractMethodException:"This is an abstract method, please implement it.",cannotRenderPageNoViewPage:"Cannot render page without document source and view page.",cannotRenderPageNoDoc:"Cannot render page without document source and view page.",exportFormat:"Export format:",exportOptionTitle:"Export options",documentRestrictionsGroup:"Document restrictions",passwordSecurityGroup:"Password security",outputRangeGroup:"Output range",documentInfoGroup:"Document info",generalGroup:"General",docInfoTitle:"Title",docInfoAuthor:"Author",docInfoManager:"Manager",docInfoOperator:"Operator",docInfoCompany:"Company",docInfoSubject:"Subject",docInfoComment:"Comment",docInfoCreator:"Creator",docInfoProducer:"Producer",docInfoCreationTime:"Creation time",docInfoRevisionTime:"Revision time",docInfoKeywords:"Keywords",embedFonts:"Embed TrueType fonts",pdfACompatible:"PDF/A compatible (level 2B)",useCompression:"Use compression",useOutlines:"Generate outlines",allowCopyContent:"Allow content copying or extraction",allowEditAnnotations:"Allow annotation editing",allowEditContent:"Allow content editing",allowPrint:"Allow printing",ownerPassword:"Permissions (owner) password:",userPassword:"Document open (user) password:",encryptionType:"Encryption level:",paged:"Paged",showNavigator:"Show Navigator",navigatorPosition:"Navigator Position",singleFile:"Single File",tolerance:"Tolerance when detecting text bounds (points):",pictureLayer:"Use separate picture layer",metafileType:"Metafile Type:",monochrome:"Monochrome",resolution:"Resolution:",outputRange:"Page range:",outputRangeInverted:"Inverted",showZoomBar:"Zoom Bar",searchPrev:"Search Previous",searchNext:"Search Next",checkMark:"✓",exportOk:"Export…",cannotSearch:"Search requires a document source to be specified.",parameters:"Parameters",requiringParameters:"Please input parameters.",nullParameterError:"Value cannot be null.",invalidParameterError:"Invalid input.",parameterNoneItemsSelected:"(none)",parameterAllItemsSelected:"(all)",parameterSelectAllItemText:"(Select All)",selectParameterValue:"(select value)",apply:"Apply",errorOccured:"An error has occurred."},FlexSheet:{insertRow:"Insert Row",deleteRow:"Delete Row",insertCol:"Insert Column",deleteCol:"Delete Column",convertTable:"Convert Table",copyCells:"Copy Cells",fillSeries:"Fill Series",fillFormat:"Fill Formatting Only",fillWithoutFormat:"Fill Without Formatting",insertSheet:"Insert",deleteSheet:"Delete",renameSheet:"Rename"},FlexChartAnalytics:{BreakEven:{profitArea:"Profit Area",lossArea:"Loss Area",safetyMargin:"Safety Margin",salesRevenue:"Sales Revenue",totalCost:"Total Cost",fixedCost:"Fixed Cost",variableCost:"Variable Cost",marginalProfit:"Marginal Profit",breakEven:"Break Even"}}},t=window.wijmo._updateCulture;t?t(o):window.wijmo.culture=o}(wijmo||(wijmo={}));
var c1;(function(){"use strict";wijmo.culture.DashboardLayout=window.wijmo.culture.DashboardLayout={showAll:"Show All",show:"Show",restore:"Restore",fullScreen:"FullScreen",hide:"Hide"};wijmo.culture.FileManager=window.wijmo.culture.FileManager={upload:"Upload",refresh:"Refresh",create:"New Folder","delete":"Delete",download:"Download",moveFile:"Move File",close:"Close",none:"None",cancel:"Cancel",createFolder1:"Please enter your folder name!",createFolder2:"Create folder success.",createFolder3:"Duplicate  folder name.",uploadFile1:"Upload a file to cloud",uploadFile2:"You are uploading file:",uploadFile3:"Please choose a folder to upload file in.",uploadFile4:"Upload success.",uploadFile5:"Browse File",uploadFile6:"Please upload a file",download1:"Please select a file to download!",moveFile1:"You must choose a file to move first!",moveFile2:"Please choose target path to move file to!",moveFile3:"Move file success",moveFile4:"Select a folder to move file to",moveFile5:"Target folder must differ to original folder!",delete1:"Do you want to delete this folder and all files inside?",delete2:"Should choose atleast one folder or file to delete!",delete3:"Delete success.",delete4:"Do you want to delete files?",block:"In demo version, this function is not allowed!",error1:"Must set value for ContainerName when using Azure or OneDrive cloud!",error2:"Must set value for RootFolder or InitPath!",colNameHeader:"Name",colModifiedDateHeader:"Modified Date",colTypeHeader:"Type",colSizeHeader:"Size",btnListTooltip:"Displays items by list. (Ctrl+Shift+1)",btnDetailTooltip:"Displays information about each item in the window. (Ctrl+Shift+2)",btnThumbnailsTootip:"Displays items by using large thumbnails. (Ctrl+Shift+3)",tooManyRequests:"Too Many requests! Please try again later.",search:"Search..."}})(c1||(c1={}));
