@mescius/js-collaboration-client 18.2.5 → 19.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1 +1,12 @@
1
- !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(this,(()=>(()=>{"use strict";var e={234:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Client=void 0;const r=n(884),s=n(42);t.Client=class{get url(){return this._url}constructor(e,t){var n;this._url=e||"/",this._path=null!==(n=null==t?void 0:t.path)&&void 0!==n?n:r.DEFAULT_REQUEST_PATH}connect(e,t){return new s.Connection(this.url,e,Object.assign({path:this._path},t))}}},42:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Connection=t.DisconnectReason=void 0;const r=n(87),s=n(884);var o;!function(e){e[e.CLIENT_DISCONNECT=0]="CLIENT_DISCONNECT",e[e.SERVER_DISCONNECT=1]="SERVER_DISCONNECT",e[e.PING_TIMEOUT=2]="PING_TIMEOUT",e[e.TRANSPORT_CLOSE=3]="TRANSPORT_CLOSE",e[e.TRANSPORT_ERROR=4]="TRANSPORT_ERROR"}(o||(t.DisconnectReason=o={}));class i extends s.Observable{constructor(e,t,n){super(),this._roomId=t;const o=Object.assign(Object.assign({},n),{query:Object.assign({roomId:t},n.query),perMessageDeflate:{threshold:1024},transports:["websocket"]});this._socket=(0,r.io)(e,o),this._socket.on("connect",this._handleConnect.bind(this)),this._socket.on("disconnect",this._handleDisconnect.bind(this)),this._socket.on("connect_error",(e=>this.emit("error",[e]))),this._socket.on("message_error",(e=>this.emit("error",[a(e)]))),this._socket.on(s.SOCKET_IO_MESSAGE_EVENT,this._handleMessage.bind(this)),this._socket.io.on("reconnect_attempt",(e=>this.emit("reconnectAttempts",[e]))),this._socket.io.on("reconnect",(e=>this.emit("reconnect",[e]))),this._socket.io.on("reconnect_failed",(()=>this.emit("reconnectFailed",[])))}get id(){return this._socket.id}get roomId(){return this._roomId}get connected(){return this._socket.connected}send(e,t){this._socket.emit(s.SOCKET_IO_MESSAGE_EVENT,(0,s.encodeMessage)(e,t))}close(){this._socket.disconnect()}_handleConnect(){this.emit("connect",[])}_handleMessage(e){this.emit("message",(0,s.decodeMessage)(e))}_handleDisconnect(e){this.emit("disconnect",[c(e)])}}function c(e){switch(e){case"io server disconnect":return o.SERVER_DISCONNECT;case"io client disconnect":return o.CLIENT_DISCONNECT;case"transport close":return o.TRANSPORT_CLOSE;case"transport error":default:return o.TRANSPORT_ERROR;case"ping timeout":return o.PING_TIMEOUT}}function a(e){return"string"==typeof e?new Error(e):e}t.Connection=i},871:e=>{e.exports=require("buffer")},331:e=>{e.exports=require("pako")},87:e=>{e.exports=require("socket.io-client")},884:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var s=Object.getOwnPropertyDescriptor(t,n);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,s)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),s=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_REQUEST_PATH=void 0,s(n(589),t),s(n(735),t),s(n(31),t),s(n(76),t),s(n(959),t),t.DEFAULT_REQUEST_PATH="/collaboration/"},31:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LoggerManager=void 0;class n{debug(...e){}info(e){}warn(...e){}error(...e){}}class r{constructor(e){this.namespace=e}debug(...e){this.isEnabled&&this.logger.debug(`[${this.namespace}]`,...e)}info(...e){this.isEnabled&&this.logger.info(`[${this.namespace}]`,...e)}warn(...e){this.isEnabled&&this.logger.warn(`[${this.namespace}]`,...e)}error(...e){this.isEnabled&&this.logger.error(`[${this.namespace}]`,...e)}get isEnabled(){return s._isEnabledNamespace(this.namespace)}get logger(){return s.getInstance()}}class s{static getInstance(){return s._instance||(s._instance=new n),s._instance}static createLogger(e){return new r(e)}static setLogger(e){s._instance=e}static enableNamespace(e){s._enabledNamespace.push(...e)}static disableNamespace(e){s._enabledNamespace=s._enabledNamespace.filter((t=>!e.includes(t)))}static _isEnabledNamespace(e){return s._enabledNamespace.includes(e)||s._enabledNamespace.includes("*")}}t.LoggerManager=s,s._enabledNamespace=[]},735:function(e,t,n){var r,s=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var s=Object.getOwnPropertyDescriptor(t,n);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,s)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||(r=function(e){return r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},r(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),i=0;i<n.length;i++)"default"!==n[i]&&s(t,e,n[i]);return o(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.SOCKET_IO_MESSAGE_EVENT=void 0,t.encodeMessage=function(e,t=null){return[t,"string"==typeof e?u(e):e]},t.decodeMessage=function(e){return["string"==typeof e[1]?l(e[1]):e[1],e[0]]};const c=i(n(331)),a=n(871);function u(e){const t=(new TextEncoder).encode(e),n=c.deflate(t);return a.Buffer.from(n).toString("base64")}function l(e){const t=a.Buffer.from(e,"base64"),n=c.inflate(new Uint8Array(t));return(new TextDecoder).decode(n)}t.SOCKET_IO_MESSAGE_EVENT="m"},589:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Middleware=void 0,t.Middleware=class{constructor(){this.middlewares=new Map,this.hooks=new Map}use(e,t){this.middlewares.has(e)||this.middlewares.set(e,[]),this.middlewares.get(e).push(t)}on(e,t){this.hooks.has(e)||this.hooks.set(e,[]),this.hooks.get(e).push(t)}async trigger(e,t,n){let r=this.middlewares.get(e);if(!r||0===r.length)return n();r=r.slice();const s=async e=>{if(e)return await n(e);const o=r.shift();if(!o)return await n();await o(t,s)};await s()}async emit(e,t){const n=this.hooks.get(e);if(n)for(const e of n)await e(t)}}},959:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Observable=void 0,t.Observable=class{constructor(){this._observers=new Map}on(e,t){return n(this._observers,e,(()=>new Set)).add(t),t}once(e,t){const n=(...r)=>{this.off(e,n),t(...r)};this.on(e,n)}off(e,t){const n=this._observers.get(e);void 0!==n&&(n.delete(t),0===n.size&&this._observers.delete(e))}emit(e,t){return Array.from((this._observers.get(e)||new Map).values()).forEach((e=>e(...t)))}destroy(){this._observers=new Map}};const n=(e,t,n)=>{let r=e.get(t);return void 0===r&&(r=n(),e.set(t,r)),r}},76:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isNullOrUndefined=function(e){return null==e},t.isEqual=function e(t,n,r=new WeakMap){if(t===n)return!0;if(Number.isNaN(t)&&Number.isNaN(n))return!0;if(null===t||null===n||"object"!=typeof t||"object"!=typeof n)return!1;if(r.has(t)&&r.get(t)===n)return!0;r.set(t,n);if(Object.prototype.toString.call(t)!==Object.prototype.toString.call(n))return!1;if(t instanceof Date||n instanceof Date)return t.getTime()===n.getTime();if(t instanceof RegExp||n instanceof RegExp)return t.toString()===n.toString();if(t instanceof Map||n instanceof Map)return t.size===n.size&&Array.from(t.entries()).every((([t,s])=>n.has(t)&&e(s,n.get(t),r)));if(t instanceof Set||n instanceof Set)return Array.from(t).every(((t,s)=>e(t,Array.from(n)[s],r)));if(Array.isArray(t)&&Array.isArray(n))return t.length===n.length&&t.every(((t,s)=>e(t,n[s],r)));const s=Object.keys(t),o=Object.keys(n);return s.length===o.length&&s.every((s=>Object.prototype.hasOwnProperty.call(n,s)&&e(t[s],n[s],r)))}}},t={};function n(r){var s=t[r];if(void 0!==s)return s.exports;var o=t[r]={exports:{}};return e[r].call(o.exports,o,o.exports,n),o.exports}var r={};return(()=>{var e=r;Object.defineProperty(e,"__esModule",{value:!0}),e.LoggerManager=e.Connection=e.DisconnectReason=e.Client=void 0;const t=n(234);Object.defineProperty(e,"Client",{enumerable:!0,get:function(){return t.Client}});const s=n(42);Object.defineProperty(e,"DisconnectReason",{enumerable:!0,get:function(){return s.DisconnectReason}}),Object.defineProperty(e,"Connection",{enumerable:!0,get:function(){return s.Connection}});const o=n(884);Object.defineProperty(e,"LoggerManager",{enumerable:!0,get:function(){return o.LoggerManager}})})(),r})()));
1
+ /*!
2
+ *
3
+ * SpreadJS Library 19.0.0
4
+ *
5
+ * Copyright(c) MESCIUS inc. All rights reserved.
6
+ *
7
+ * Licensed under the SpreadJS Commercial License.
8
+ * us.sales@mescius.com
9
+ * https://developer.mescius.com/spreadjs
10
+ *
11
+ */
12
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var r=t();for(var n in r)("object"==typeof exports?exports:e)[n]=r[n]}}(this,(()=>(()=>{var e={234:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Client=void 0;const n=r(884),a=r(42);t.Client=class{get url(){return this._url}constructor(e,t){var r;this._url=e||"/",this._path=null!==(r=null==t?void 0:t.path)&&void 0!==r?r:n.DEFAULT_REQUEST_PATH}connect(e,t){return new a.Connection(this.url,e,Object.assign({path:this._path},t))}}},42:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Connection=t.DisconnectReason=void 0;const n=r(87),a=r(884),i=r(371);var o;!function(e){e[e.CLIENT_DISCONNECT=0]="CLIENT_DISCONNECT",e[e.SERVER_DISCONNECT=1]="SERVER_DISCONNECT",e[e.PING_TIMEOUT=2]="PING_TIMEOUT",e[e.TRANSPORT_CLOSE=3]="TRANSPORT_CLOSE",e[e.TRANSPORT_ERROR=4]="TRANSPORT_ERROR"}(o||(t.DisconnectReason=o={}));const s=["dation","cense","Vali","li"];class u extends a.Observable{constructor(e,t,r){super(),this._id=(0,a.uuid)(20),this._roomId=t;const i=Object.assign(Object.assign({},r),{query:this.lc(this._id,t,r.query),transports:["websocket"]});this._socket=(0,n.io)(e,i),this._socket.on("connect",this._handleConnect.bind(this)),this._socket.on("disconnect",this._handleDisconnect.bind(this)),this._socket.on("connect_error",this._handleConnectError.bind(this)),this._socket.on("message_error",(e=>this.emit("error",[c(e)]))),this._socket.on(a.SOCKET_IO_MESSAGE_EVENT,this._handleMessage.bind(this)),this._socket.io.on("reconnect_attempt",(e=>this.emit("reconnectAttempts",[e]))),this._socket.io.on("reconnect",(e=>this.emit("reconnect",[e]))),this._socket.io.on("reconnect_failed",(()=>this.emit("reconnectFailed",[]))),this._socket.on("eauto",this._handleLicenseValidation.bind(this))}lc(e,t,r){return Object.assign({id:e,roomId:t},r)}get id(){return this._id}get roomId(){return this._roomId}get connected(){return this._socket.connected}send(e,t){this._socket.emit(a.SOCKET_IO_MESSAGE_EVENT,(0,i.encodeMessage)(e,t))}close(){var e;null===(e=this._socket)||void 0===e||e.disconnect()}_handleConnect(){this.emit("connect",[])}_handleMessage(e){this.emit("message",(0,i.decodeMessage)(e))}_handleDisconnect(e){this.emit("disconnect",[l(e)])}_handleLicenseValidation(e){this.emit(s[3]+s[1]+s[2]+s[0],[null==e?void 0:e.data])}_handleConnectError(e){const t=null==e?void 0:e.data;t&&this.emit(s[3]+s[1]+s[2]+s[0],[t]),this.emit("error",[e])}destroy(){this._socket&&(this._socket.disconnect(),this._socket=null),super.destroy()}}function l(e){switch(e){case"io server disconnect":return o.SERVER_DISCONNECT;case"io client disconnect":return o.CLIENT_DISCONNECT;case"transport close":return o.TRANSPORT_CLOSE;case"transport error":default:return o.TRANSPORT_ERROR;case"ping timeout":return o.PING_TIMEOUT}}function c(e){return"string"==typeof e?new Error(e):e}t.Connection=u},222:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(42);r(984),r(424),r(150),r(532);const a="undefined"!=typeof window,i=String.fromCharCode;let o="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,s="object"==typeof self&&self&&self.Object===Object&&self,u=o||s||Function("return this")();function l(e,t,r,n){return 1==e.length||e.splice(r,1,n(e.splice(t,1,n(e[r]))[0])),e}function c(e){const t=e.split(""),r=e=>function(e,t=1){const r=e.charCodeAt(0);return r>=65&&r<=90?e.toLowerCase():r>=97&&r<=122?e.toUpperCase():r>=48&&r<=57?i(48+(r-48+10+t)%10):e}(e,-1);for(let e=t.length-5;e>=0;e--)l(t,e+1,e+3,r),l(t,e,e+2,r);return t.join("")}function m(e){let t,r,n,a,o,s,u,l;const c=[],m="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",y=e;for(let e=0;e<y.length;e+=4)a=m.indexOf(y.charAt(e)),o=m.indexOf(y.charAt(e+1)),s=m.indexOf(y.charAt(e+2)),u=m.indexOf(y.charAt(e+3)),l=a<<18|o<<12|s<<6|u,t=l>>>16&255,r=l>>>8&255,n=255&l,c[e/4]=i(t,r,n),64==u&&(c[e/4]=i(t,r)),64==s&&(c[e/4]=i(t));return c.join("")}function y(e){return(a&&window.atob||m)(e)}function h(e){if(!e)return"";let t=c(e);t=t.split("").reverse().join("");const r=Math.ceil(t.length/2);return t=t.substring(r)+t.substring(0,r),t=t.replace("#","="),t=t.replace("&","=="),function(e){return decodeURIComponent(Array.prototype.map.call(y(e),(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))}(t)}function f(){let e=h("JYx3Gb#8Pb5R"),t=h("Gdw9");try{return u.self!==u[t]&&!function(e,t){let r=h("Zdg3Ga#UHbw5"),n=h("VdgJHc#wJb59"),a=h("CG2DA&y");return e[n]===t[n]&&e[r]===t[r]&&e[a]===t[a]}(u[e],u[t][e])}catch(e){return!0}}const d={encrypt:function(e,t){const r=this.utils.utf8.toBytes(t);if(!this._validateKey(r))return e;const n=this.utils.utf8.toBytes(e),a=this._generateIv(),i=new this.aes.Counter(a),o=new this.aes.ModeOfOperation.ctr(r,i).encrypt(n),s=a.concat(Array.from(o));return this.utils.base64.fromBytes(s)},decrypt:function(e,t){try{const r=this.utils.utf8.toBytes(t);if(!this._validateKey(r))return e;const n=this.utils.base64.toBytes(e),a=n.slice(0,16),i=n.slice(16);if(16!==a.length)return e;const o=new this.aes.Counter(a),s=new this.aes.ModeOfOperation.ctr(r,o).decrypt(i);return this.utils.utf8.fromBytes(s)}catch(t){return e}},_validateKey:function(e){return-1!==[16,24,32].indexOf(e.length)},_generateIv:function(){const e=[];for(let t=0;t<16;t++)e.push(Math.floor(256*Math.random()));return e},utils:{utf8:{toBytes:function(e){let t=[];for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);n<128?t.push(n):n<2048?t.push(192|n>>6,128|63&n):n<55296||n>=57344?t.push(224|n>>12,128|n>>6&63,128|63&n):(r++,n=65536+((1023&n)<<10|1023&e.charCodeAt(r)),t.push(240|n>>18,128|n>>12&63,128|n>>6&63,128|63&n))}return t},fromBytes:function(e){let t="",r=0;for(;r<e.length;){let n=e[r++];if(n<128)t+=String.fromCharCode(n);else if(192==(224&n))t+=String.fromCharCode((31&n)<<6|63&e[r++]);else if(224==(240&n))t+=String.fromCharCode((15&n)<<12|(63&e[r++])<<6|63&e[r++]);else if(240==(248&n)){let a=(7&n)<<18|(63&e[r++])<<12|(63&e[r++])<<6|63&e[r++];a-=65536,t+=String.fromCharCode(a>>10|55296,1023&a|56320)}}return t}},base64:{_chars:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",fromBytes:function(e){let t="",r=0,n=e.length;for(;r<n;r++){let n=e[r++],a=e[r++],i=e[r],o=n>>2,s=(3&n)<<4|a>>4,u=(15&a)<<2|i>>6,l=63&i;isNaN(a)?u=l=64:isNaN(i)&&(l=64),t+=this._chars.charAt(o)+this._chars.charAt(s)+this._chars.charAt(u)+this._chars.charAt(l)}return t},toBytes:function(e){let t=[],r=0;for(e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");r<e.length;){let n=this._chars.indexOf(e.charAt(r++)),a=this._chars.indexOf(e.charAt(r++)),i=this._chars.indexOf(e.charAt(r++)),o=this._chars.indexOf(e.charAt(r++)),s=n<<2|a>>4,u=(15&a)<<4|i>>2,l=(3&i)<<6|o;t.push(s),64!==i&&t.push(u),64!==o&&t.push(l)}return t}}},aes:function(){const e=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],t=[[0,0,0,0],[1,0,0,0],[2,0,0,0],[4,0,0,0],[8,0,0,0],[16,0,0,0],[32,0,0,0],[64,0,0,0],[128,0,0,0],[27,0,0,0],[54,0,0,0]];class r{constructor(e){this._key=e,this._Ke=[],this._Kd=[],this._keyExpansion(this._key,this._Ke,this._Kd)}_SubWord(t){return[e[t[0]],e[t[1]],e[t[2]],e[t[3]]]}_RotWord(e){return[e[1],e[2],e[3],e[0]]}_keyExpansion(e,r,n){let a,i=e.length/4,o=i+6,s=[];for(let t=0;t<i;t++)s.push([e[4*t],e[4*t+1],e[4*t+2],e[4*t+3]]);for(let e=i;e<4*(o+1);e++){if(a=s[e-1],e%i==0){a=this._RotWord(a),a=this._SubWord(a);for(let r=0;r<4;r++)a[r]^=t[e/i][r]}else i>6&&e%i==4&&(a=this._SubWord(a));s.push([]);for(let t=0;t<4;t++)s[e][t]=s[e-i][t]^a[t]}for(let e=0;e<=o;e++){r.push([]);for(let t=0;t<4;t++)for(let n=0;n<4;n++)r[e][4*t+n]=s[4*e+t][n]}}cipher(e,t){let r=t.length-1,n=[[],[],[],[]];for(let t=0;t<4;t++)for(let r=0;r<4;r++)n[t][r]=e[t+4*r];n=this._AddRoundKey(n,t[0]);for(let e=1;e<r;e++)n=this._SubBytes(n),n=this._ShiftRows(n),n=this._MixColumns(n),n=this._AddRoundKey(n,t[e]);n=this._SubBytes(n),n=this._ShiftRows(n),n=this._AddRoundKey(n,t[r]);let a=new Array(16);for(let e=0;e<4;e++)for(let t=0;t<4;t++)a[e+4*t]=n[e][t];return a}_AddRoundKey(e,t){for(let r=0;r<4;r++)for(let n=0;n<4;n++)e[r][n]^=t[r+4*n];return e}_SubBytes(t){for(let r=0;r<4;r++)for(let n=0;n<4;n++)t[r][n]=e[t[r][n]];return t}_ShiftRows(e){let t;for(let r=1;r<4;r++)t=e[r].slice(0,r),e[r]=e[r].slice(r).concat(t);return e}_xtime(e){return e<<1^27*(e>>7&1)}_MixColumns(e){for(let t=0;t<4;t++){let r=e.map((e=>e[t]));e[0][t]=this._xtime(r[0])^this._xtime(r[1])^r[1]^r[2]^r[3],e[1][t]=r[0]^this._xtime(r[1])^this._xtime(r[2])^r[2]^r[3],e[2][t]=r[0]^r[1]^this._xtime(r[2])^this._xtime(r[3])^r[3],e[3][t]=this._xtime(r[0])^r[0]^r[1]^r[2]^this._xtime(r[3])}return e}}class n{constructor(e){this._aes=new r(e)}}return n.ctr=class{constructor(e,t){this.decrypt=this.encrypt,this._key=e,this._counter=t,this._aes=new r(e),this._keystream=[]}encrypt(e){const t=new Uint8Array(e.length);for(let r=0;r<e.length;r++)0===this._keystream.length&&(this._keystream=this._aes.cipher(this._counter._counter,this._aes._Ke),this._counter.increment()),t[r]=this._keystream.shift()^e[r];return t}},{AES:r,Counter:class{constructor(e){this._counter=e.slice(0)}increment(){for(let e=15;e>=0;e--){if(255!==this._counter[e]){this._counter[e]++;break}this._counter[e]=0}}},ModeOfOperation:n}}()};n.Connection.prototype.lc=function(e,t,r){let n=function(){const e=h("JYx3Gb#8Pb5R"),t=h("Zdg3Ga#UHbw5");let r=u[e]&&u[e][t];return r&&(r=r.toLowerCase()),r}()+">"+(new Date).getTime()+">"+f();return n=d.encrypt(n,"3bsNGkmSfvzQoQcO"),Object.assign(Object.assign({id:e},r),{roomId:t,serverId:n})}},371:function(e,t,r){"use strict";var n,a=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var a=Object.getOwnPropertyDescriptor(t,r);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,a)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||(n=function(e){return n=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t},n(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r=n(e),o=0;o<r.length;o++)"default"!==r[o]&&a(t,e,r[o]);return i(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.encodeMessage=function(e,t=null){try{const r=JSON.stringify(e),n=(new TextEncoder).encode(r);if(n.byteLength<u.COMPRESSION_THRESHOLD)return[t,e,!1];const a=s.gzip(n);if(a.byteLength<n.byteLength){return[t,function(e){if("undefined"!=typeof Buffer&&"undefined"!=typeof process)return Buffer.from(e).toString("base64");let t="";const r=e.byteLength;for(let n=0;n<r;n++)t+=String.fromCharCode(e[n]);return btoa(t)}(a),!0]}return[t,e,!1]}catch(r){return[t,e,!1]}},t.decodeMessage=function(e){const t=e[0],r=e[1];if(!e[2])return[r,t];try{if("string"!=typeof r)return[r,t];const e=function(e){if("undefined"!=typeof Buffer&&"undefined"!=typeof process)return new Uint8Array(Buffer.from(e,"base64"));const t=atob(e),r=t.length,n=new Uint8Array(r);for(let e=0;e<r;e++)n[e]=t.charCodeAt(e);return n}(r),n=s.ungzip(e),a=(new TextDecoder).decode(n);return[JSON.parse(a),t]}catch(e){return[r,t]}};const s=o(r(331)),u=r(884)},984:()=>{var e;!function(){"use strict";var t={38:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var a=Object.getOwnPropertyDescriptor(t,r);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,a)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),a=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.UserManagerEvent=t.UserManager=t.UUIDGenerator=t._getSR=t.rbush=t.CultureManager=t.CultureInfo=t._StringHelper=t._RegexHelper=t._NumberHelper=t._DateTimeHelper=t._ArrayHelper=t._Types=t._ColorHelper=void 0;var i=r(395);Object.defineProperty(t,"_ColorHelper",{enumerable:!0,get:function(){return i._ColorHelper}});var o=r(534);Object.defineProperty(t,"_Types",{enumerable:!0,get:function(){return o._Types}});var s=r(305);Object.defineProperty(t,"_ArrayHelper",{enumerable:!0,get:function(){return s._ArrayHelper}});var u=r(97);Object.defineProperty(t,"_DateTimeHelper",{enumerable:!0,get:function(){return u._DateTimeHelper}}),Object.defineProperty(t,"_getSR",{enumerable:!0,get:function(){return u.getSR}});var l=r(844);Object.defineProperty(t,"_NumberHelper",{enumerable:!0,get:function(){return l._NumberHelper}});var c=r(576);Object.defineProperty(t,"_RegexHelper",{enumerable:!0,get:function(){return c._RegexHelper}});var m=r(480);Object.defineProperty(t,"_StringHelper",{enumerable:!0,get:function(){return m._StringHelper}});var y=r(674);Object.defineProperty(t,"rbush",{enumerable:!0,get:function(){return y.rbush}});var h=r(818),f=r(479);Object.defineProperty(t,"UUIDGenerator",{enumerable:!0,get:function(){return f.UUIDGenerator}}),Object.defineProperty(t,"HandleExcelSpecialDate",{set:function(e){h.HandleExcelSpecialDate=e},get:function(){return h.HandleExcelSpecialDate}}),a(r(818),t);var d=r(286);Object.defineProperty(t,"CultureInfo",{enumerable:!0,get:function(){return d.CultureInfo}}),Object.defineProperty(t,"CultureManager",{enumerable:!0,get:function(){return d.CultureManager}}),a(r(646),t);var p=r(561);Object.defineProperty(t,"UserManager",{enumerable:!0,get:function(){return p.UserManager}}),Object.defineProperty(t,"UserManagerEvent",{enumerable:!0,get:function(){return p.UserManagerEvent}})},286:function(e,t,r){var n,a=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+t+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.CultureManager=t._EraHelper=t.CultureInfo=t.TimelineDateOrder=void 0;var i,o=r(534),s=r(818),u=r(305),l=r(576),c="undefined"!=typeof window?window:r.g,m=o._Types._each,y=o._Types._extend,h=(new Date).getFullYear(),f=["MM/dd/yyyy","MM/d/yyyy","M/dd/yyyy","M/d/yyyy","yy/MM/dd","yy/MM/d","yy/M/dd","yy/M/d","yyyy/MM/dd","yyyy/MM/d","yyyy/M/dd","yyyy/M/d"],d=["hh:mm:ss","hh:mm:s","hh:m:ss","hh:m:s","h:mm:ss","h:mm:s","h:m:ss","h:m:s","hh:mm:ss tt","hh:mm:s tt","hh:m:ss tt","hh:m:s tt","h:mm:ss tt","h:mm:s tt","h:m:ss tt","h:m:s tt","hh:mm","hh:m","h:mm","h:m","hh:mm tt","hh:m tt","h:mm tt","h:m tt"],p=["MM-dd-yyyy","MM-d-yyyy","M-dd-yyyy","M-d-yyyy","yy-MM-dd","yy-MM-d","yy-M-dd","yy-M-d","yyyy-MM-dd","yyyy-MM-d","yyyy-M-dd","yyyy-M-d","dd-MMMM-yy","dd-MMM-yy"],_=f.concat(d);function g(e){return e.split(" ").join(" ").toUpperCase()}function M(e){for(var t=[],r=0,n=e.length;r<n;r++)t[r]=g(e[r]);return t}function v(e,t,r){var n=g(e),a=t.indexOf(n);return-1===a&&(a=r.indexOf(n)),a}function b(e){if(e){var t=e.charCodeAt(0);if(t>=11904&&t<12032||t>=8208&&t<8252||t>=12288&&t<40960||t>=43360&&t<43392||t>=44032&&t<55215||t>=63744&&t<64256||t>=65280&&t<65535)return!0}return!1}function F(e,t,r){if(" "===e||r&&" "===e)return 0;var n=r&&r(e);return t.lineBreakingForbidStart&&-1!==t.lineBreakingForbidStart.indexOf(e)?!r||n?7:6:t.lineBreakingForbidEnd&&-1!==t.lineBreakingForbidEnd.indexOf(e)?!r||n?5:4:n?2:t.lineBreakingChar&&-1!==t.lineBreakingChar.indexOf(e)?3:1}m(f,(function(e,t){m(d,(function(e,r){e<d.length-4&&_.push(t+" "+r)}))})),_=_.concat(p),m(p,(function(e,t){m(d,(function(e,r){e<d.length-4&&_.push(t+" "+r)}))})),function(e){e[e.year=1]="year",e[e.quarterOrMonth=2]="quarterOrMonth",e[e.date=3]="date"}(i=t.TimelineDateOrder||(t.TimelineDateOrder={}));var S={"00":1,"01":1,"02":1,"03":1,"04":1,"05":1,"06":1,"07":1,12:1,15:1,21:1,22:1,23:1,24:1,25:1,31:1,32:1,33:1,34:1,35:1,36:1,37:1,62:1,65:1,71:1,72:1,73:1,74:1,75:1};function D(e,t,r){if(!e)return[];for(var n=[e[0]],a=0,i=F(e[0],t,r),o=1;o<e.length;o++){var s=F(e[o],t,r);S[i+""+s]&&void 0===n[++a]&&(n[a]=""),n[a]+=e[o],i=s}return n}var x=function(){function e(){this.NumberFormat={currencyDecimalDigits:2,currencyDecimalSeparator:".",currencyGroupSeparator:",",currencyGroupSizes:[3],currencyNegativePattern:0,currencyPositivePattern:0,currencySymbol:"¤",digitSubstitution:1,isReadOnly:!0,numberGroupSizes:[3],nanSymbol:"NaN",nativeDigits:["0","1","2","3","4","5","6","7","8","9"],numberNegativePattern:1,negativeInfinitySymbol:"-Infinity",negativeSign:"-",numberDecimalDigits:2,numberDecimalSeparator:".",numberGroupSeparator:",",positiveInfinitySymbol:"Infinity",positiveSign:"+",percentDecimalDigits:2,percentDecimalSeparator:".",percentGroupSeparator:",",percentGroupSizes:[3],percentNegativePattern:0,percentPositivePattern:0,percentSymbol:"%",perMilleSymbol:"‰",listSeparator:",",arrayListSeparator:",",arrayGroupSeparator:";",dbNumber:{},standardDictionaryNumbers:{Hundreds:"Hundreds",Thousands:"Thousands",Millions:"Millions",Billions:"Billions",Trillions:"Trillions"},scientificNotation:"0.##############E+00"},this.DateTimeFormat={abbreviatedDayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],abbreviatedMonthGenitiveNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""],abbreviatedMonthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""],amDesignator:"AM",calendarIsReadOnly:!0,calendarWeekRule:0,Calendar:{MinSupportedDateTime:"@-62135568000000@",MaxSupportedDateTime:"@253402300799999@",AlgorithmType:1,CalendarType:1,Eras:[1],TwoDigitYearMax:2029,isReadOnly:!0},dateSeparator:"/",dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],defaultDatePattern:"MM/dd/yyyy H:mm:ss",firstDayOfWeek:0,fullDateTimePattern:"dddd, dd MMMM yyyy HH:mm:ss",longDatePattern:"dddd, dd MMMM yyyy",longTimePattern:"HH:mm:ss",monthDayPattern:"MMMM dd",monthGenitiveNames:["January","February","March","April","May","June","July","August","September","October","November","December",""],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December",""],nativeCalendarName:"Gregorian Calendar",pmDesignator:"PM",rfc1123Pattern:"ddd, dd MMM yyyy HH':'mm':'ss 'GMT'",shortDatePattern:"MM/dd/yyyy",shortestDayNames:["Su","Mo","Tu","We","Th","Fr","Sa"],shortTimePattern:"HH:mm",sortableDateTimePattern:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",timeSeparator:":",universalSortableDateTimePattern:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",yearMonthPattern:"yyyy MMMM",filterDialogDateFormatter:"yyyy/mmmm/dd",preselectedFormatters:[],eraFormatter:["ge/M/d","ge-M-d","ge.M.d","gee/MM/dd"]},this.name=function(){return""},this.id=-1,this.LocalNumberFormat={},this.displayName="",this.fontScriptCode=void 0,this.predefinedFormats={},this.TimelineDateOrder=[i.quarterOrMonth,i.date,i.year],this.TimelineDateSuffix={year:"",quarter:"",month:"",date:""},this.TextFormat={lineBreakingChar:[" ","-"]},this.equalCharacters=void 0}return e.prototype._getDistributedBreakingChar=function(){return[" "]},e.prototype._getDistributedWords=function(e){var t={lineBreakingChar:this._getDistributedBreakingChar()};return this.TextFormat&&this.TextFormat.lineBreakingStrategy?this.TextFormat.lineBreakingStrategy(e,t):D(e,t)},e.prototype._getTextWords=function(e){if(this.TextFormat&&this.TextFormat.lineBreakingStrategy){var t={lineBreakingChar:this.TextFormat.lineBreakingChar,lineBreakingForbidEnd:this.TextFormat.lineBreakingForbidEnd,lineBreakingForbidStart:this.TextFormat.lineBreakingForbidStart};return this.TextFormat.lineBreakingStrategy(e,t)}return D(e,this.TextFormat||{lineBreakingChar:[" ","-"]})},e.prototype._getDateTimePattern=function(){if(!this._dateTimeFormatPattern){var e=this.DateTimeFormat,t=e.shortDatePattern.replace(/m/g,"M"),r=[t,t+" h:mm",t+" h:mm:ss",t+" h:mm:ss.0","MMMdd","MMMd","MMM dd","MMM d"];if(r=r.concat(_),1041===this.id){var n=e.eraFormatter;r=(r=r.concat(this._eraFormatter)).concat(n)}r=r.concat(e.preselectedFormatters),this._dateTimeFormatPattern=r}return this._dateTimeFormatPattern},e.prototype._getMonthIndex=function(e){return this._upperMonths||(this._upperMonths=M(this.DateTimeFormat.monthNames),this._upperMonthsGenitive=M(this.DateTimeFormat.monthGenitiveNames)),v(e,this._upperMonths,this._upperMonthsGenitive)},e.prototype._getAbbrMonthIndex=function(e){return this._upperAbbrMonths||(this._upperAbbrMonths=M(this.DateTimeFormat.abbreviatedMonthNames),this._upperAbbrMonthsGenitive=M(this.DateTimeFormat.abbreviatedMonthGenitiveNames)),v(e,this._upperAbbrMonths,this._upperAbbrMonthsGenitive)},e.prototype._getDayIndex=function(e){return this._upperDays||(this._upperDays=M(this.DateTimeFormat.dayNames)),this._upperDays.indexOf(g(e))},e.prototype._getAbbrDayIndex=function(e){return this._upperAbbrDays||(this._upperAbbrDays=M(this.DateTimeFormat.abbreviatedDayNames)),this._upperAbbrDays.indexOf(g(e))},e}();t.CultureInfo=x;var C=function(){function e(){}return e._isValidEraDate=function(t){return t>=e._getEraMin()&&t<=e._getEraMax()},e._getEraDates=function(){var e=x.eras;if(void 0!==e){for(var t=[],r=0;r<e.length;r++)t[r]=new Date(e[r].startDate.replace(/-/g,"/"));return t}return this._EraDates},e._getEraPropByFormat=function(t){var r,n;switch(t){case"g":r="symbol",n=e._symbols;break;case"gg":r="abbreviation",n=e._abbreviations;break;case"ggg":r="name",n=e._names;break;default:return[]}var a=x.eras,i=[];if(void 0!==a){for(var o=0;o<a.length;o++)i[o]=a[o][r];return i}return n},e._getEraMax=function(){var e=x.eras;if(void 0!==e&&e.length>0){var t=new Date(e[e.length-1].startDate.replace(/-/g,"/"));return t.setFullYear(t.getFullYear()+99),t}return this._EraMax},e._getEraMin=function(){var e=x.eras;return void 0!==e&&e.length>0?new Date(e[0].startDate.replace(/-/g,"/")):this._EraMin},e._getEraCount=function(){var e=x.eras;return void 0!==e?e.length:this._EraCount},e._getEraYears=function(){var e=x.eras;if(void 0!==e){for(var t=[],r=1;r<e.length;r++){var n=new Date(e[r-1].startDate.replace(/-/g,"/")),a=new Date(e[r].startDate.replace(/-/g,"/"));t[r-1]=a.getFullYear()-n.getFullYear()+1}return t[r-1]=99,t}return this._EraYears},e._getEraDate=function(t){var r={_era:-1,_eraYear:-1};if(!e._isValidEraDate(t)){if(!(t>e._getEraMax()))return r;t=e._getEraMax()}for(var n=0;n<e._getEraCount();n++){if(t<(n+1!==e._getEraCount()?e._getEraDates()[n+1]:e._addMilliseconds(e._getEraMax(),1))){r._era=n,r._eraYear=t.getFullYear()-e._getEraDates()[n].getFullYear()+1;break}}return r},e._addMilliseconds=function(e,t){var r=new Date(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds());return r.setMilliseconds(r.getMilliseconds()+t),new Date(r.valueOf())},e._getYearFromEra=function(t,r){return e._getEraDates()[t].getFullYear()+r-1},e._parseEraPart=function(t,r){r=r.toUpperCase();for(var n=e._getEraPropByFormat(t),a=0;a<n.length;a++)if(n[a]===r)return a;return-1},e._formatEraPart=function(t,r,n){var a=e,i=a._getEraDate(r),o=i._era;if(o>=0){var s=a._getEraPropByFormat(t);if(s.length>0)return s[o]}var u=i._eraYear;if(u>=0){var l=u.toString();if("1"===l&&n)return"元";if("ee"===t)return 1===l.length&&(l="0"+l),l;if("e"===t)return l}return""},e._EraDates=[new Date(1868,8,8),new Date(1912,6,30),new Date(1926,11,25),new Date(1989,0,8),new Date(2019,4,1)],e._EraCount=5,e._EraYears=[45,15,64,31,99],e._EraMax=new Date(2117,11,31,23,59,59),e._EraMin=new Date(1868,8,8),e._shortcuts=["1,m","2,t","3,s","4,h","5,r"],e._EraIndices=[0,1,2,3,0,1,2,3],e._names=["明治","大正","昭和","平成","令和"],e._symbols=["M","T","S","H","R"],e._abbreviations=["明","大","昭","平","令"],e._EraYearMax=99,e.eraExcelFormatter="[$-ja-JP-x-gannen]",e.eraInternalFormatter="[$-411]",e}();t._EraHelper=C;var T=function(e){function t(){var t=e.call(this)||this;O.call(t,"NumberFormat",["currencySymbol","isReadOnly"],["$",!1]);return O.call(t,"DateTimeFormat",["fullDateTimePattern","longDatePattern","longTimePattern","shortDatePattern","shortTimePattern","yearMonthPattern","calendarIsReadOnly","preselectedFormatters"],["dddd, MMMM dd, yyyy h:mm:ss tt","dddd, MMMM dd, yyyy","h:mm:ss tt","M/d/yyyy","h:mm tt","MMMM, yyyy",!1,["MMM yyyy","MMMM yyyy"]]),t.DateTimeFormat.defaultDatePattern=t.DateTimeFormat.shortDatePattern+" H:mm:ss",t.name=function(){return"en-US"},t.displayName="English (United States)",t.id=1033,t.predefinedFormats={Accounting:'_([$$-409]* #,##0.00_);_([$$-409]* (#,##0.00);_([$$-409]* "-"??_);_(@_)',Comma:'_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)',Currency:["[$$-409]#,##0","[$$-409]#,##0;[Red][$$-409]#,##0","[$$-409]#,##0_);([$$-409]#,##0)","[$$-409]#,##0_);[Red]([$$-409]#,##0)"],Date:["m/d/yyyy","[$-409]dddd, mmmm dd, yyyy","m/d;@","m/d/yy;@","mm/dd/yy;@","[$-409]d-mmm;@","[$-409]d-mmm-yy;@","[$-409]mmm-yy;@","[$-409]mmmm-yy;@","[$-409]mmmm d, yyyy;@","[$-409]m/d/yy h:mm AM/PM;@","m/d/yy h:mm;@","[$-409]mmmmm;@","[$-409]mmmmm-yy;@","m/d/yyyy;@","[$-409]d-mmm-yyyy;@"],Time:["[$-409]h:mm:ss AM/PM","h:mm;@","[$-409]h:mm AM/PM;@","h:mm:ss;@","[$-409]h:mm:ss AM/PM;@","mm:ss.0;@","[h]:mm:ss;@","[$-409]m/d/yy h:mm AM/PM;@","m/d/yy h:mm;@"],Special:{"Zip Code":"00000","Zip Code + 4":"00000-0000","Phone Number":"[<=9999999]###-####;(###) ###-####","Social Security Number":"000-00-0000"},shortcut:{Number:"0.00",Currency:"[$$-409]#,##0.00",Accounting:'_([$$-409]* #,##0.00_);_([$$-409]* (#,##0.00);_([$$-409]* "-"??_);_(@_)',ShortDate:"m/d/yyyy",LongDate:"[$-409]dddd, mmmm dd, yyyy",Time:"[$-409]h:mm:ss AM/PM",Percentage:"0.00%",Fraction:"# ?/?",Scientific:"0.00E+00",Text:"@",Comma:'_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)'}},t}return a(t,e),t}(x),N=function(e){function t(){var t=e.call(this)||this;O.call(t,"NumberFormat",["currencyDecimalDigits","currencyNegativePattern","currencySymbol","isReadOnly","nanSymbol","negativeInfinitySymbol","percentNegativePattern","percentPositivePattern","positiveInfinitySymbol","dbNumber","standardDictionaryNumbers"],[0,1,"¥",!1,"NaN (非数値)","-∞",1,1,"+∞",{1:{letters:["兆","千","百","十","亿","千","百","十","万","千","百","十",""],numbers:["〇","一","二","三","四","五","六","七","八","九"]},2:{letters:["兆","阡","百","拾","億","阡","百","拾","萬","阡","百","拾",""],numbers:["〇","壱","弐","参","四","伍","六","七","八","九"]},3:{letters:null,numbers:["0","1","2","3","4","5","6","7","8","9"]}},{Hundreds:"百",Thousands:"千",Millions:"百万",Billions:"十億",Trillions:"兆"}]);var r=["1","2","3","4","5","6","7","8","9","10","11","12",""],n=["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月",""];return O.call(t,"DateTimeFormat",["abbreviatedDayNames","abbreviatedMonthGenitiveNames","abbreviatedMonthNames","amDesignator","calendarIsReadOnly","dayNames","fullDateTimePattern","longDatePattern","longTimePattern","monthDayPattern","monthGenitiveNames","monthNames","nativeCalendarName","pmDesignator","shortDatePattern","shortestDayNames","shortTimePattern","yearMonthPattern","filterDialogDateFormatter","preselectedFormatters","EraFilterDialogDateFormatter"],[["日","月","火","水","木","金","土"],r,r,"午前",!1,["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"],"yyyy'年'M'月'd'日' H:mm:ss","yyyy'年'M'月'd'日'","H:mm:ss","M'月'd'日'",n,n,"西暦 (日本語)","午後","yyyy/MM/dd",["日","月","火","水","木","金","土"],"H:mm","yyyy'年'M'月'","yyyy年/mmmm/d日",["yyyy年M月d日","yyyy年M月dd日","yyyy年MM月d日","yyyy年MM月dd日"],"ggge/mmmm/d日"]),t.DateTimeFormat.eras=!0,t.DateTimeFormat.defaultDatePattern=t.DateTimeFormat.shortDatePattern+" "+t.DateTimeFormat.longTimePattern,t._eraFormatter=['gggee"年"MM"月"dd"日','gggee"年"M"月"d"日','ge"年"M"月"d"日','ggge"年"M"月"d"日','ggee"年"M"月"d"日','gge"年"M"月"d"日'],t.name=function(){return"ja-JP"},t.id=1041,t.displayName="Japanese (Japan)",t.isJCKCulture=!0,t.predefinedFormats={Accounting:'_-[$¥-411]* #,##0.00_-;-[$¥-411]* #,##0.00_-;_-[$¥-411]* "-"??_-;_-@_-',Comma:'_-* #,##0.00_-;-* #,##0.00_-;_-* "-"??_-;_-@_-',Currency:["[$¥-411]#,##0_);[Red]([$¥-411]#,##0)","[$¥-411]#,##0_);([$¥-411]#,##0)","[$¥-411]#,##0;[Red][$¥-411]#,##0","[$¥-411]#,##0;-[$¥-411]#,##0","[$¥-411]#,##0;[Red]-[$¥-411]#,##0"],Date:["yyyy/mm/dd","[$-411]dddd, mmmm dd, yyyy",'yyyy"年"m"月"d"日";@','yyyy"年"m"月";@','m"月"d"日";@',"yyyy/m/d;@","[$-409]yyyy/m/d h:mm AM/PM;@","yyyy/m/d h:mm;@","m/d;@","m/d/yy;@","mm/dd/yy;@","[$-409]d-mmm;@","[$-409]d-mmm-yy;@","[$-409]dd-mmm-yy;@","[$-409]mmm-yy;@","[$-409]mmmm-yy;@","[$-409]mmmmm;@","[$-409]mmmmm-yy;@"],Time:["[$-411]h:mm:ss AM/PM","h:mm;@","[$-409]h:mm AM/PM;@","h:mm:ss;@","[$-409]h:mm:ss AM/PM;@","[$-409]yyyy/m/d h:mm AM/PM;@","yyyy/m/d h:mm;@",'h"時"mm"分";@','h"時"mm"分"ss"秒";@'],Special:{郵便番号:"[<=999]000;[<=9999]000-00;000-0000","電話番号(東京)":"[<=99999999]####-####;(00) ####-####","正負記号 (+ = △; - = ▲)":'"△" #,##0;"▲" #,##0',"漢数字(十二万三千四百)":"[DBNum1][$-411]General","大字 (壱拾弐萬参阡四百)":"[DBNum2][$-411]General","全角 (12345)":"[DBNum3][$-411]0","全角 桁区切り(12,345)":"[DBNum3][$-411]#,##0"},shortcut:{Number:"0.00",Currency:"[$¥-411]#,##0.00",Accounting:'_-[$¥-411]* #,##0.00_-;-[$¥-411]* #,##0.00_-;_-[$¥-411]* "-"??_-;_-@_-',ShortDate:"yyyy/mm/dd",LongDate:"[$-411]dddd, mmmm dd, yyyy",Time:"[$-411]h:mm:ss AM/PM",Percentage:"0.00%",Fraction:"# ?/?",Scientific:"0.00E+00",Text:"@",Comma:'_-* #,##0.00_-;-* #,##0.00_-;_-* "-"??_-;_-@_-'}},t.TimelineDateOrder=[i.year,i.quarterOrMonth,i.date],t.TimelineDateSuffix={year:"年",quarter:"",month:"月",date:"日"},t.TextFormat={lineBreakingChar:[" "," ","-"],lineBreakingForbidStart:["!","%",")",",",".",":",";","?","]","}","!","%",")",",",".",":",";","?","]","}","」","。","、","ー"],lineBreakingForbidEnd:["(","[","{","(","[","{","「","$","$","\\","¥"],lineBreakingStrategy:function(e,t){return D(e,t,b)}},t.equalCharacters=["―ゝゞ゠ヽヾー","㆐㆑㇤㇥","‸⁊",".․","&⁋","%⁏","$⁒","#⁗",'"⁍',"‹⁓"],t}return a(t,e),t}(x),H=function(e){function t(){var t=e.call(this)||this;O.call(t,"NumberFormat",["currencyNegativePattern","currencySymbol","isReadOnly","nanSymbol","negativeInfinitySymbol","percentNegativePattern","percentPositivePattern","positiveInfinitySymbol","dbNumber","standardDictionaryNumbers"],[2,"¥",!1,"非数字","负无穷大",1,1,"正无穷大",{1:{letters:["兆","千","百","十","亿","千","百","十","万","千","百","十",""],numbers:["○","一","二","三","四","五","六","七","八","九"]},2:{letters:["兆","仟","佰","拾","亿","仟","佰","拾","万","仟","佰","拾",""],numbers:["零","壹","贰","叁","肆","伍","陆","柒","捌","玖"]},3:{letters:null,numbers:["0","1","2","3","4","5","6","7","8","9"]}},{Hundreds:"百",Thousands:"千",Millions:"百万",Billions:"十亿",Trillions:"兆"}]);var r=["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月",""],n=["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月",""];return O.call(t,"DateTimeFormat",["abbreviatedDayNames","abbreviatedMonthGenitiveNames","abbreviatedMonthNames","amDesignator","calendarIsReadOnly","dayNames","firstDayOfWeek","fullDateTimePattern","longDatePattern","longTimePattern","monthDayPattern","monthGenitiveNames","monthNames","nativeCalendarName","pmDesignator","shortDatePattern","shortestDayNames","shortTimePattern","yearMonthPattern","filterDialogDateFormatter","preselectedFormatters"],[["周日","周一","周二","周三","周四","周五","周六"],r,r,"上午",!1,["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],1,"yyyy'年'M'月'd'日' H:mm:ss","yyyy'年'M'月'd'日'","H:mm:ss","M'月'd'日'",n,n,"公历","下午","yyyy/M/d",["日","一","二","三","四","五","六"],"H:mm","yyyy'年'M'月'","yyyy年/mmmm/d日",["yyyy年M月","M月d日","yyyy年M月d日","h时mm分","h时mm分ss秒"]]),t.DateTimeFormat.defaultDatePattern=t.DateTimeFormat.shortDatePattern+" "+t.DateTimeFormat.longTimePattern,t.name=function(){return"zh-cn"},t.id=2052,t.displayName="Chinese (China)",t.isJCKCulture=!0,t.localeCompare=function(e,t){var r=e.localeCompare(t,"zh");return r<0&&e>="一"&&t<"一"||r>0&&t>="一"&&e<"一"?-r:r},t.predefinedFormats={Accounting:'_ [$¥-804]* #,##0.00_ ;_ [$¥-804]* -#,##0.00_ ;_ [$¥-804]* "-"??_ ;_ @_ ',Comma:'_ * #,##0.00_ ;_ * -#,##0.00_ ;_ * "-"??_ ;_ @_ ',Currency:["[$¥-804]#,##0","[$¥-804]#,##0;[Red][$¥-804]#,##0","[$¥-804]#,##0;[$¥-804]-#,##0","[$¥-804]#,##0;[Red][$¥-804]-#,##0"],Date:["yyyy/m/d","[$-804]dddd, mmmm dd, yyyy","yyyy-mm-dd;@",'[DBNum1][$-804]yyyy"年"m"月"d"日";@','[DBNum1][$-804]yyyy"年"m"月";@','[DBNum1][$-804]m"月"d"日";@',"[$-409]yyyy/m/d h:mm AM/PM;@",'yyyy"年"m"月"d"日";@','yyyy"年"m"月";@','m"月"d"日";@',"mm/dd/yy;@","m/d/yy;@","yyyy/m/d h:mm AM/PM;@","yyyy/m/d h:mm;@","[$-409]d-mmm;@","[$-409]d-mmm-yy;@","[$-409]dd-mmm-yy;@","[$-409]mmm-yy;@","[$-409]m","[$-409]m-d;@"],Time:["[$-804]h:mm:ss AM/PM","h:mm;@","[$-409]h:mm AM/PM;@","h:mm:ss;@",'h"时"mm"分";@','h"时"mm"分"ss"秒";@','[$-804]上午/下午h"时"mm"分";@','[$-804]上午/下午h"时"mm"分"ss"秒";@','[DBNum1][$-804]h"时"mm"分";@','[DBNum1][$-804]上午/下午h"时"mm"分";@'],Special:{邮政编码:"000000",中文小写字母:"[DBNum1][$-804]General",中文大写字母:"[DBNum2][$-804]General"},shortcut:{Number:"0.00",Currency:"[$¥-804]#,##0.00",Accounting:'_ [$¥-804]* #,##0.00_ ;_ [$¥-804]* -#,##0.00_ ;_ [$¥-804]* "-"??_ ;_ @_ ',ShortDate:"yyyy/m/d",LongDate:"[$-804]dddd, mmmm dd, yyyy",Time:"[$-804]h:mm:ss AM/PM",Percentage:"0.00%",Fraction:"# ?/?",Scientific:"0.00E+00",Text:"@",Comma:'_ * #,##0.00_ ;_ * -#,##0.00_ ;_ * "-"??_ ;_ @_ '}},t.TimelineDateOrder=[i.year,i.quarterOrMonth,i.date],t.TimelineDateSuffix={year:"年",quarter:"",month:"",date:"日"},t.TextFormat={lineBreakingChar:[" "," ","-"],lineBreakingForbidStart:["!","%",")",",",".",":",";","?","]","}","!","%",")",",",".",":",";","?","]","}"],lineBreakingForbidEnd:["(","[","{","(","[","{"],lineBreakingStrategy:function(e,t){return D(e,t,b)}},t.normalizeDateTimeString=function(e){var t;if(l._RegexHelper._getReg("^([0-9]{1,2}|[0-9]{4})年[0-9]{1,2}月$").test(e))return(t=e.split("年"))[1].replace("月","")+"/1/"+t[0];if(l._RegexHelper._getReg("^[0-9]{1,2}月[0-9]{1,2}日$").test(e))return(t=e.split("月"))[0]+"/"+t[1].replace("日","")+"/"+h;if(l._RegexHelper._getReg("^(上午|下午)?[0-9]{1,2}时[0-9]{1,2}分([0-9]{1,2}秒)?$").test(e)){var r=e.replace("时",":").replace("分",":").replace("秒","");return(r=r.endsWith(":")?r+"00":r).startsWith("上午")&&(r=r.replace("上午","")+" AM"),r.startsWith("下午")&&(r=r.replace("下午","")+" PM"),r}return e.includes("上午")||e.includes("下午")?e.replace("上午","am").replace("下午","pm"):null},t}return a(t,e),t.prototype._getDistributedBreakingChar=function(){return[" "," "]},t}(x),E=function(e){function t(){var t=e.call(this)||this;O.call(t,"NumberFormat",["currencyDecimalDigits","currencyNegativePattern","currencySymbol","isReadOnly","dbNumber","standardDictionaryNumbers"],[0,1,"₩",!1,{1:{letters:["兆","千","百","十","億","千","百","十","万","千","百","十",""],numbers:["0","一","二","三","四","五","六","七","八","九"]},2:{letters:["兆","阡","百","拾","億","阡","百","拾","萬","阡","百","拾",""],numbers:["零","壹","貳","參","四","伍","六","七","八","九"]},3:{letters:["兆","千","百","十","億","千","百","十","万","千","百","十",""],numbers:["0","1","2","3","4","5","6","7","8","9"]},4:{letters:["조","천","백","십","억","천","백","십","만","천","백","십",""],numbers:["○","일","이","삼","사","오","육","칠","팔","구"]}},{Hundreds:"백",Thousands:"천",Millions:"백만",Billions:"10억",Trillions:"조"}]);var r=["1","2","3","4","5","6","7","8","9","10","11","12",""],n=["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월",""];return O.call(t,"DateTimeFormat",["abbreviatedDayNames","abbreviatedMonthGenitiveNames","abbreviatedMonthNames","amDesignator","calendarIsReadOnly","dayNames","firstDayOfWeek","fullDateTimePattern","longDatePattern","longTimePattern","monthDayPattern","monthGenitiveNames","monthNames","nativeCalendarName","pmDesignator","shortDatePattern","shortestDayNames","shortTimePattern","yearMonthPattern","filterDialogDateFormatter"],[["일","월","화","수","목","금","토"],r,r,"오전",!1,["일요일","월요일","화요일","수요일","목요일","금요일","토요일"],1,"yyyy'년' M'월' d'일' dddd h:mm:ss","yyyy'년' M'월' d'일' dddd","h:mm:ss","M'월' d'일'",n,n,"서기","오후","yyyy-MM-dd",["일","월","화","수","목","금","토"],"tt h:mm","yyyy'년' M'월'","yyyy년/mmmm/d일"]),t.DateTimeFormat.defaultDatePattern=t.DateTimeFormat.shortDatePattern+" "+t.DateTimeFormat.longTimePattern,t.name=function(){return"ko-kr"},t.id=1042,t.displayName="Korean (Korea)",t.isJCKCulture=!0,t.predefinedFormats={Accounting:'_-[$₩-412]* #,##0.00_-;-[$₩-412]* #,##0.00_-;_-[$₩-412]* "-"??_-;_-@_-',Comma:'_-* #,##0.00_-;-* #,##0.00_-;_-* "-"??_-;_-@_-',Currency:["[$₩-412]#,##0","[$₩-412]#,##0;[Red][$₩-412]#,##0","[$₩-412]#,##0;-[$₩-412]#,##0","[$₩-412]#,##0;[Red]-[$₩-412]#,##0"],Date:["yyyy-mm-dd",'yyyy"년" m"월" d"일" dddd',"yyyy-mm-dd;@",'yyyy"년" m"월" d"일";@','yy"年" m"月" d"日";@','yyyy"년" m"월";@','m"월" d"일";@',"yy-m-d;@","yy-m-d h:mm;@",'m"月"d"日";@',"[$-412]yy-m-d AM/PM h:mm;@","yy/m/d;@","yyyy/m/d h:mm;@","m/d;@","m/d/yy;@","mm/dd/yy;@","[$-409]d-mmm;@","[$-409]d-mmm-yy;@","[$-409]dd-mmm-yy;@","[$-409]mmm-yy;@","[$-409]m","[$-409]m-d;@"],Time:["[$-412]h:mm:ss AM/PM","h:mm;@","h:mm:ss;@","[$-412]AM/PM h:mm;@","[$-412]AM/PM h:mm:ss;@","[$-409]h:mm AM/PM;@","[$-409]h:mm:ss AM/PM;@",'yyyy"-"m"-"d h:mm;@','[$-412]yyyy"-"m"-"d AM/PM h:mm;@','[$-409]yyyy"-"m"-"d h:mm AM/PM;@','h"시" mm"분";@','h"시" mm"분" ss"초";@','[$-412]AM/PM h"시" mm"분";@','[$-412]AM/PM h"시" mm"분" ss"초";@'],Special:{"우편 번호":"000-000","전화 번호 (국번 4자리)":"[<=999999]####-####;(0##) ####-####","전화 번호 (국번 3자리)":"[<=9999999]###-####;(0##) ###-####",주민등록번호:"000000-0000000","숫자(한자)":"[DBNum1][$-412]General","숫자(한자-갖은자)":"[DBNum2][$-412]General","숫자(한글)":"[DBNum4][$-412]General"},shortcut:{Number:"0.00",Currency:"[$₩-412]#,##0.00",Accounting:'_-[$₩-412]* #,##0.00_-;-[$₩-412]* #,##0.00_-;_-[$₩-412]* "-"??_-;_-@_-',ShortDate:"yyyy-mm-dd",LongDate:'yyyy"년" m"월" d"일" dddd',Time:"[$-412]h:mm:ss AM/PM",Percentage:"0%",Fraction:"# ?/?",Scientific:"0.00E+00",Text:"@",Comma:'_-* #,##0.00_-;-* #,##0.00_-;_-* "-"??_-;_-@_-'}},t.TimelineDateOrder=[i.year,i.quarterOrMonth,i.date],t.TimelineDateSuffix={year:"년",quarter:"",month:"월",date:"일"},t}return a(t,e),t}(x),P={invariant:new x,"en-us":new T,"ja-jp":new N,"zh-cn":new H,"ko-kr":new E};function O(e,t,r){for(var n,a=0,i=t.length;a<i;a++)n=t[a],this[e][n]=r[a]}var w={},k=["lsru","lsde","ls1","ls2","ls3","ls4","ls5","ls6","ls7","ls8","ls9","ls10","ls11"],I=["wmk1","wmk2"],A=function(){function e(){this._cultureVersion=1,this._resourcesMap={}}return e.instance=function(){return this._instance||(this._instance=new this)},e.prototype.culture=function(t){if(0===arguments.length)return e._cRName;var r,n,a;t&&e._cRName!==t&&(e._cRName=t.toLowerCase(),this._cultureVersion++,r=e._cRName,n=e._instance.getCultureInfo(),"object"==typeof document&&("function"!=typeof CustomEvent?(a=document.createEvent("CustomEvent")).initCustomEvent("cultureChanged",!1,!1,void 0):a=new CustomEvent("cultureChanged",{}),a.cultureInfo=r,c.gcCultureInfo=r,c.gcCultureObj=n,document.dispatchEvent(a)))},e.prototype.addCultureInfo=function(e,t,r){if(t&&t instanceof x){var n=t.NumberFormat&&t.NumberFormat.numberDecimalSeparator,a=t.NumberFormat.arrayListSeparator,i=t.NumberFormat.arrayGroupSeparator;if(n===t.NumberFormat.listSeparator||i===a)throw new s.ResourceManager(s.SR).getResource().Exp_Separator;P[e.toLowerCase()]=t}if(r&&"object"==typeof r){var o=e.toLowerCase();w[o]=y(!0,{},r),this._cultureVersion++}},e.prototype.getCultureInfoDict=function(){return P},e.prototype.getCultureInfo=function(t){if(0===arguments.length)return P[e._cRName];"string"==typeof t&&(t=t.toLowerCase());var r=P,n=null;for(var a in r)if(a===t||void 0!==r[a].id&&r[a].id===t){n=r[a];break}return n},e.prototype.getLanguage=function(e){if("string"==typeof e){var t=e.toLowerCase();return w[t]}return null},e.prototype.getResources=function(e){var t=this.culture().toLowerCase();if(null==e&&(e=t),"string"==typeof e){var r=e.toLowerCase();if(this._resourcesMap[r])return this._adjustCurrentResources(this._resourcesMap[r])}return null},e.prototype._adjustCurrentResources=function(e){var t="PivotTables",r="ReportSheet",n="GanttSheet",a="DataChart",i="Sheets",o=y(!0,{},e);o[t]&&this._deleteSkipKey(o[t],I),o[r]&&this._deleteSkipKey(o[r],I),o[n]&&this._deleteSkipKey(o[n],I),o[a]&&this._deleteSkipKey(o[a],I),o[i]&&this._deleteSkipKey(o[i],k);var s=o.CalcEngine;return s&&(o.Functions=s._builtInFunctionsResource,o.TableFunctions=s._tableFunctionsResource,delete s._builtInFunctionsResource,delete s._tableFunctionsResource),o},e.prototype._deleteSkipKey=function(e,t){for(var r=0,n=t;r<n.length;r++){delete e[n[r]]}},e.prototype._languageTranslate=function(e,t,r){var n=w[e.toLowerCase()];for(var a in t)if(!u._ArrayHelper._contains(k,a)){var i=this._getTranslate(n,a,r);(null!==i&&"string"==typeof i&&"string"==typeof t[a]||null!==i&&"object"==typeof i&&!Array.isArray(i))&&(t[a]=i)}t._builtInFunctionsResource&&n.Functions&&this._translateFunctions(n.Functions,t._builtInFunctionsResource),t._tableFunctionsResource&&n.TableFunctions&&y(!0,t._tableFunctionsResource,n.TableFunctions)},e.prototype._getTranslate=function(e,t,r){if(e.hasOwnProperty(t))return e[t];if(r&&(a=e[r])&&"object"==typeof a&&a.hasOwnProperty(t))return a[t];for(var n in e){var a;if((a=e[n])&&"object"==typeof a&&a.hasOwnProperty(t))return a[t]}return null},e.prototype._translateFunctions=function(e,t){for(var r in t)if(e.hasOwnProperty(r)){var n=t[r],a=e[r],i=n.parameters,o=a.parameters;for(var s in n.description=a.description,i)if(o.hasOwnProperty(s)){var u=o[s];"string"==typeof u&&(i[s].name=u)}}return{}},e.prototype._getCultureInfo=function(t){var r=this.getCultureInfo(t);return r||(r=P[e._cRName])||(r=new x),r},e.prototype._getFilterDialogFormatterStr=function(e,t){var r=(this.getCultureInfo(e)||this.getCultureInfo("en-US")).DateTimeFormat,n=r.filterDialogDateFormatter;return(t.indexOf("g")>=0||t.indexOf("e")>=0)&&(n=r.EraFilterDialogDateFormatter||n),n},e._cRName="en-us",e}();t.CultureManager=A.instance()},561:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var a=Object.getOwnPropertyDescriptor(t,r);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,a)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),a=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),a(r(895),t)},566:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Error_InvalidRemoteConfigurationForUserFetching=t.Error_GraphQLSchemaMustBeProvidedForGraphQLAdapter=t.Error_FailedToFetchUsers=t.Error_RemoteConfigurationForUserFetchingNotProvided=t.GUEST_USER=void 0,t.GUEST_USER="Guest",t.Error_RemoteConfigurationForUserFetchingNotProvided="Remote configuration for user fetching is not provided.",t.Error_FailedToFetchUsers="Failed to fetch users: ",t.Error_GraphQLSchemaMustBeProvidedForGraphQLAdapter="GraphQL schema must be provided for graphql adapter.",t.Error_InvalidRemoteConfigurationForUserFetching="Invalid remote configuration for user fetching."},895:function(e,t,r){var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(a,i){function o(e){try{u(n.next(e))}catch(e){i(e)}}function s(e){try{u(n.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?a(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,s)}u((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var r,n,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(u){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(o=0)),o;)try{if(r=1,n&&(a=2&s[0]?n.return:s[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,s[1])).done)return a;switch(n=0,a&&(s=[2&s[0],a.value]),s[0]){case 0:case 1:a=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,n=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((a=(a=o.trys).length>0&&a[a.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!a||s[1]>a[0]&&s[1]<a[3])){o.label=s[1];break}if(6===s[0]&&o.label<a[1]){o.label=a[1],a=s;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(s);break}a[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],n=0}finally{r=a=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.UserManager=t.UserManagerEvent=void 0;var i=r(566),o=r(818),s=r(479),u=r(534),l=r(305);u._Types._extend(o.SR.en,i);var c,m=new o.ResourceManager(o.SR),y=m.getResource.bind(m),h=u._Types._isNullOrUndefined,f=l._ArrayHelper._clone,d=u._Types._cloneObject,p=["#3B82F6","#10B981","#8B5CF6","#F59E0B","#EF4444","#06B6D4","#EC4899","#84CC16","#6366F1","#14B8A6","#F97316","#A855F7","#22C55E","#EAB308","#F43F5E","#0EA5E9","#D946EF","#65A30D","#DC2626","#7C3AED"];!function(e){e.CurrentUserChanged="CurrentUserChanged"}(c=t.UserManagerEvent||(t.UserManagerEvent={}));var _=function(){function e(e){var t={id:s.UUIDGenerator.secureUpperCaseUUID(),name:y().GUEST_USER,color:"#26A69A",_isDefault:!0};this._users=[t],this._currentUserId=t.id,this.options=e,this._currentColorIndex=0,this._listeners=new Map([[c.CurrentUserChanged,[]]])}return e.instance=function(){return this._instance||(this._instance=new this)},e.prototype.configure=function(e){this.options=e},e.prototype._getSync=function(e){for(var t=this._users,r=0;r<t.length;r++)if(t[r].id===e)return d(t[r])},e.prototype._get=function(e){var t;return n(this,void 0,void 0,(function(){var r;return a(this,(function(n){switch(n.label){case 0:return(null===(t=this.options)||void 0===t?void 0:t.get)?[4,this.options.get(e)]:[3,2];case 1:return(r=n.sent())&&this._add(r),[2,r];case 2:return[2]}}))}))},e.prototype._getOrCreate=function(e){e||(e=s.UUIDGenerator.secureUpperCaseUUID());var t=this._getSync(e);return t||(t={id:e,name:y().GUEST_USER}),this._add(t),t},e.prototype._assignColorToUsers=function(e){var t=this;Array.isArray(e)&&e.forEach((function(e){e&&!e.color&&(e.color=t._getCurrentColor(e.id))}))},e.prototype._search=function(e){var t;return n(this,void 0,void 0,(function(){var r,n;return a(this,(function(a){switch(a.label){case 0:return(null===(t=(r=this).options)||void 0===t?void 0:t.search)?[4,r.options.search(e)]:[3,2];case 1:return n=a.sent(),r._assignColorToUsers(n),[2,n];case 2:return[2,[]]}}))}))},e.prototype.bind=function(e,t){this._listeners.has(e)||this._listeners.set(e,[]);var r=this._listeners.get(e);Array.isArray(r)&&r.push(t)},e.prototype.current=function(e){var t=this;if(h(e))return t._currentUserId;if(t._currentUserId!==e){var r=t._currentUserId;t._currentUserId=e,Promise.all([t._get(r),t._get(e)]).then((function(n){var a=n[0],i=n[1];a||(a=t._getSync(r))&&a._isDefault&&(t._users=t._users.filter((function(e){return!e._isDefault}))),t._triggerCurrentUserChanged(a,i,r,e)})).catch((function(n){t._triggerCurrentUserChanged(void 0,void 0,r,e)}))}return t._currentUserId},e.prototype._triggerCurrentUserChanged=function(e,t,r,n){e||(e=this._getSync(r)),t||(t=this._getSync(n)),this._trigger(c.CurrentUserChanged,{oldCurrentUser:e,newCurrentUser:t})},e.prototype._getUsers=function(){return f(this._users)},e.prototype.unbind=function(e,t){if(this._listeners.has(e)){var r=this._listeners.get(e);if(!Array.isArray(r))return;t?r.splice(r.indexOf(t),1):r.splice(0)}},e.prototype._trigger=function(e,t){if(this._listeners.has(e)){var r=this._listeners.get(e);if(!Array.isArray(r))return;r.forEach((function(r){r(e,t)}))}},e.prototype._fromJSON=function(e){e&&(this._assignColorToUsers(e),this._users=e||[])},e.prototype._toJSON=function(){return f(this._users)},e.prototype._getCurrentColorIndex=function(){var e,t=this._currentColorIndex,r=(null===(e=this.options)||void 0===e?void 0:e.colorScheme)?this.options.colorScheme.length:p.length;return this._currentColorIndex=(t+1)%r,t},e.prototype._hashString=function(e){var t=0;if(!e||0===e.length)return t;for(var r=0;r<e.length;r++){t=(t<<5)-t+e.charCodeAt(r),t|=0}return Math.abs(t)},e.prototype._getColorIndexForUser=function(e){var t,r=(null===(t=this.options)||void 0===t?void 0:t.colorScheme)?this.options.colorScheme.length:p.length;return this._hashString(e)%r},e.prototype._getCurrentColor=function(e){var t,r=(null===(t=this.options)||void 0===t?void 0:t.colorScheme)||p;return e?r[this._getColorIndexForUser(e)]:r[this._getCurrentColorIndex()]},e.prototype._add=function(e){for(var t=this._users,r=0;r<t.length;r++)if(t[r].id===e.id)return t[r]=e,void(e.color||(e.color=this._getCurrentColor(e.id)));e.color||(e.color=this._getCurrentColor(e.id)),t.push(e)},e.prototype._create=function(e,t){var r={id:e||s.UUIDGenerator.secureUpperCaseUUID(),name:t||y().GUEST_USER};return this._add(r),r},e.prototype._remove=function(e){this._users=this._users.filter((function(t){return t.id!==e}))},e.prototype._dispose=function(){this._listeners.clear(),this._users=[],this._currentUserId=""},e}();t.UserManager=_.instance()},305:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t._ArrayHelper=void 0;function r(e,t){for(var n in t)if(t.hasOwnProperty(n)){var a=t[n];Array.isArray(a)?(e[n]=[],r(e[n],t[n])):null!==a&&"object"==typeof a?(e[n]={},r(e[n],t[n])):e[n]=t[n]}}var n=function(){function e(){}return e._insert=function(e,t,r){e.splice(t,0,r)},e._add=function(e,t){e.push(t)},e._contains=function(e,t){return e.indexOf(t)>-1},e._remove=function(e,t){var r=e.indexOf(t);r>-1&&e.splice(r,1)},e._removeByIndex=function(e,t){return e.slice(0,t).concat(e.slice(t+1))},e._indexOf=function(e,t,r){return e.indexOf(t,r)},e._clear=function(e,t,r){if(!(t<0))for(var n=0;n<r&&t+n<e.length;n++)e[t+n]=null},e._nextNonEmptyIndex=function(e,t){t<0&&(t=-1);for(var r=t+1;r<e.length;r++)if(void 0!==e[r]&&null!==e[r])return r;return-1},e._getLength=function(e){return e&&e.length},e._clone=function(e){var t=[];return r(t,e),t},e}();t._ArrayHelper=n},395:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t._ColorHelper=void 0;var n=r(844)._NumberHelper._toHexString,a=Math.min,i=Math.max,o=Math.abs,s=parseInt;function u(e,t,r){return r<0&&(r+=240),r>240&&(r-=240),r<40?e+((t-e)*r+20)/40:r<120?t:r<160?e+((t-e)*(160-r)+20)/40:e}function l(e,t,r){var n,a,i;if(0===r)n=a=i=s(255*t/240+"",10);else{var o,u;n=c(o=2*t-(u=t<=120?s((t*(240+r)+120)/240+""):t+r-s((t*r+120)/240+"")),u,e+80),a=c(o,u,e),i=c(o,u,e-80)}return{a:255,r:n,g:a,b:i}}function c(e,t,r){return a(s((255*u(e,t,r)+120)/240+""),255)}var m={aliceblue:[240,248,255,255],antiquewhite:[250,235,215,255],aqua:[0,255,255,255],aquamarine:[127,255,212,255],azure:[240,255,255,255],beige:[245,245,220,255],bisque:[255,228,196,255],black:[0,0,0,255],blanchedalmond:[255,235,205,255],blue:[0,0,255,255],blueviolet:[138,43,226,255],brown:[165,42,42,255],burlywood:[222,184,135,255],cadetblue:[95,158,160,255],chartreuse:[127,255,0,255],chocolate:[210,105,30,255],coral:[255,127,80,255],cornflowerblue:[100,149,237,255],cornsilk:[255,248,220,255],crimson:[220,20,60,255],cyan:[0,255,255,255],darkblue:[0,0,139,255],darkcyan:[0,139,139,255],darkgoldenrod:[184,134,11,255],darkgray:[169,169,169,255],darkgreen:[0,100,0,255],darkgrey:[169,169,169,255],darkkhaki:[189,183,107,255],darkmagenta:[139,0,139,255],darkolivegreen:[85,107,47,255],darkorange:[255,140,0,255],darkorchid:[153,50,204,255],darkred:[139,0,0,255],darksalmon:[233,150,122,255],darkseagreen:[143,188,143,255],darkslateblue:[72,61,139,255],darkslategray:[47,79,79,255],darkslategrey:[47,79,79,255],darkturquoise:[0,206,209,255],darkviolet:[148,0,211,255],deeppink:[255,20,147,255],deepskyblue:[0,191,255,255],dimgray:[105,105,105,255],dimgrey:[105,105,105,255],dodgerblue:[30,144,255,255],firebrick:[178,34,34,255],floralwhite:[255,250,240,255],forestgreen:[34,139,34,255],fuchsia:[255,0,255,255],gainsboro:[220,220,220,255],ghostwhite:[248,248,255,255],gold:[255,215,0,255],goldenrod:[218,165,32,255],gray:[128,128,128,255],green:[0,128,0,255],greenyellow:[173,255,47,255],grey:[128,128,128,255],honeydew:[240,255,240,255],hotpink:[255,105,180,255],indianred:[205,92,92,255],indigo:[75,0,130,255],ivory:[255,255,240,255],khaki:[240,230,140,255],lavender:[230,230,250,255],lavenderblush:[255,240,245,255],lawngreen:[124,252,0,255],lemonchiffon:[255,250,205,255],lightblue:[173,216,230,255],lightcoral:[240,128,128,255],lightcyan:[224,255,255,255],lightgoldenrodyellow:[250,250,210,255],lightgray:[211,211,211,255],lightgreen:[144,238,144,255],lightgrey:[211,211,211,255],lightpink:[255,182,193,255],lightsalmon:[255,160,122,255],lightseagreen:[32,178,170,255],lightskyblue:[135,206,250,255],lightslategray:[119,136,153,255],lightslategrey:[119,136,153,255],lightsteelblue:[176,196,222,255],lightyellow:[255,255,224,255],lime:[0,255,0,255],limegreen:[50,205,50,255],linen:[250,240,230,255],magenta:[255,0,255,255],maroon:[128,0,0,255],mediumaquamarine:[102,205,170,255],mediumblue:[0,0,205,255],mediumorchid:[186,85,211,255],mediumpurple:[147,112,219,255],mediumseagreen:[60,179,113,255],mediumslateblue:[123,104,238,255],mediumspringgreen:[0,250,154,255],mediumturquoise:[72,209,204,255],mediumvioletred:[199,21,133,255],midnightblue:[25,25,112,255],mintcream:[245,255,250,255],mistyrose:[255,228,225,255],moccasin:[255,228,181,255],navajowhite:[255,222,173,255],navy:[0,0,128,255],oldlace:[253,245,230,255],olive:[128,128,0,255],olivedrab:[107,142,35,255],orange:[255,165,0,255],orangered:[255,69,0,255],orchid:[218,112,214,255],palegoldenrod:[238,232,170,255],palegreen:[152,251,152,255],paleturquoise:[175,238,238,255],palevioletred:[219,112,147,255],papayawhip:[255,239,213,255],peachpuff:[255,218,185,255],peru:[205,133,63,255],pink:[255,192,203,255],plum:[221,160,221,255],powderblue:[176,224,230,255],purple:[128,0,128,255],rebeccapurple:[102,51,153,255],red:[255,0,0,255],rosybrown:[188,143,143,255],royalblue:[65,105,225,255],saddlebrown:[139,69,19,255],salmon:[250,128,114,255],sandybrown:[244,164,96,255],seagreen:[46,139,87,255],seashell:[255,245,238,255],sienna:[160,82,45,255],silver:[192,192,192,255],skyblue:[135,206,235,255],slateblue:[106,90,205,255],slategray:[112,128,144,255],slategrey:[112,128,144,255],snow:[255,250,250,255],springgreen:[0,255,127,255],steelblue:[70,130,180,255],tan:[210,180,140,255],teal:[0,128,128,255],thistle:[216,191,216,255],tomato:[255,99,71,255],turquoise:[64,224,208,255],violet:[238,130,238,255],wheat:[245,222,179,255],white:[255,255,255,255],whitesmoke:[245,245,245,255],yellow:[255,255,0,255],yellowgreen:[154,205,50,255]},y=function(){function e(e){var t=e.r,r=e.g,n=e.b,o=i(i(t,r),n),u=a(a(t,r),n),l=o+u;this._luminosity=s((240*l+255)/510+"",10);var c=o-u;if(0===c)this._saturation=0,this._hue=160;else{this._luminosity<=120?this._saturation=s((240*c+l/2)/l+"",10):this._saturation=s((240*c+(510-l)/2)/(510-l)+"",10);var m=(40*(o-t)+c/2)/c,y=(40*(o-r)+c/2)/c,h=(40*(o-n)+c/2)/c;this._hue=s(t===o?h-y+"":r===o?80+m-h+"":160+y-m+"",10),this._hue<0&&(this._hue+=240),this._hue>240&&(this._hue-=240)}}return e.prototype._getLighterColor=function(e){var t=this._luminosity,r=this._newLuma(this._luminosity,500,!0);return l(this._hue,t+(r-t)*e,this._saturation)},e.prototype._newLuma=function(e,t,r){return 0===t?e:r?t>0?(e*(1e3-t)+241*t)/1e3:e*(t+1e3)/1e3:((e+=240*t/1e3)<0&&(e=0),e>240&&(e=240),e)},e}(),h=/rgba?\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})(?:,\s*(\.\d+|\d(?:\.\d+)?))?\)/;function f(e){if(/^#[A-Fa-f0-9]+$/.test(e)){var t=e.replace(/^#/,""),r=t.length,n="",a="";if(6===r||8===r)n=t.substr(0,6),8===r&&(a=t.substr(6,2));else if(3===r||4===r){var i=t.split(3===r?/(.)/:/(..)/);n=i.filter(Boolean).map((function(e){return parseInt(3===r?e+e:e,16)})).map((function(e){return e.toString(16).padStart(2,"0")})).join(""),4===r&&(a=i[3]+i[3])}return[parseInt(n.slice(0,2),16),parseInt(n.slice(2,4),16),parseInt(n.slice(4,6),16),s=a?parseInt(a,16):255]}if(e.toLowerCase()in m)return m[e.toLowerCase()];var o=h.exec(e);if(null!==o){var s=void 0===o[4]?255:255*+o[4];return[o[1],o[2],o[3],s]}return null}var d=function(){function e(){}return e._toString=function(e){var t=e.a,r=e.r,a=e.g,i=e.b;return 3===arguments.length&&(t=255,r=arguments[0],a=arguments[1],i=arguments[2]),4===arguments.length&&(t=arguments[0],r=arguments[1],a=arguments[2],i=arguments[3]),255===t?"#"+n(r,!0,2)+n(a,!0,2)+n(i,!0,2):"rgba("+r+","+a+","+i+","+t+")"},e._equal=function(e,t){return e.stops||e.type?JSON.stringify(e)===JSON.stringify(t):e.a===t.a&&e.r===t.r&&e.g===t.g&&e.b===t.b},e._getBrightness=function(e){return(299*e.r+587*e.g+114*e.b)/1e3},e._isTwoColorSimilar=function(e,t){var r=255-o(e.r-t.r),n=255-o(e.g-t.g),a=255-o(e.b-t.b),i=o(e.a-t.a);return!!(((r/=255)+(n/=255)+(a/=255))/3>=.9&&i<=.05)},e._invertColor=function(t){var r=255^t.r,n=255^t.g,a=255^t.b;return e._toString(t.a,r,n,a)},e._stringToARGB=function(t){if("object"!=typeof document)return f(t);var n=e._ctx;if(n||(i=document.createElement("canvas"))&&i.getContext&&(n=e._ctx=i.getContext("2d",{willReadFrequently:!0})),!n){var a=r(736);if(a&&a.createCanvas){var i=a.createCanvas(2,2);n=e._ctx=i.getContext("2d")}if(!n)return f(t)}n.clearRect(1,1,1,1),n.fillStyle=t,n.fillRect(1,1,1,1);var o=n.getImageData(1,1,1,1);return o?o.data:null},e._fromString=function(t){if(t instanceof e)return t;if(null!==t&&"object"==typeof t)return t;var r=0,n=0,a=0,i=0;if(t){var o=e._stringToARGB(t);o&&(n=o[0],a=o[1],i=o[2],r=o[3])}return{a:r,r:n,g:a,b:i}},e._applyTint=function(t,r){if(0===r)return t;var n=new y(t),a=s((r>0?(240-n._luminosity)*r:n._luminosity*r)+"",10);return e._fromHLS(n._hue,n._luminosity+a,n._saturation)},e._getLighterColor=function(t,r){var n=e._fromString(t),a=new y(n)._getLighterColor(r);return e._toString(a)},e._hueToRGB=u,e._fromHLS=l,e}();t._ColorHelper=d},818:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t._isInstanceOf=t._hasOwnProperty=t._deleteElementsForMap=t._deleteElements=t._addElementsForMap=t._addElements=t.ResourceManager=t.SR=void 0;var n=r(286),a=r(612),i=r(534);t.SR={en:a};var o=i._Types._extend,s=function(){function e(e,t){this.res=e,this._moduleName=t,this._resourcesMap=n.CultureManager._resourcesMap,this.cachedResource=this._getResourceCollection(e,!0),this._buildResourcesMap(this.cachedResource,t),this._cultureVersion=0}return e.prototype.getResource=function(){var e=this._getResourceCollection(this.res,!this.cachedResource);return e&&(this.cachedResource=e),this._buildResourcesMap(this.cachedResource,this._moduleName),this.cachedResource},e.prototype._buildResourcesMap=function(e,t){if(t){var r=n.CultureManager.culture().toLowerCase();this._resourcesMap[r]=this._resourcesMap[r]||{},this._resourcesMap[r][t]=e,n.CultureManager._resourcesMap=this._resourcesMap}},e.prototype._getResourceCollection=function(e,t){var r=n.CultureManager.culture();if(e&&r){var a=n.CultureManager._cultureVersion;if(this._cultureVersion===a&&!t)return;if(this._cultureVersion=a,n.CultureManager.getLanguage(r)){var i=o(!0,{},e.en);return n.CultureManager._languageTranslate(r,i,this._moduleName),i}var s=r.substr(0,2).toLowerCase();return e.hasOwnProperty(s)?e[s]:e.en}return{}},e}();t.ResourceManager=s,t._addElements=function(e,t,r,n){if(e&&0<=r&&r<t){var a,i=[],o=void 0;for(o=r;o<t;o++)void 0!==e[o]&&i.push(o);for(a=i.length,o=0;o<a;o++){var s=i[a-o-1],u=e[s];e[s]=null,e[Math.floor(s)+n]=u}}},t._addElementsForMap=function(e,t,r,n){if(e&&0<=t){for(var a,i=[],o=void 0,s=0,u=Array.from(e.keys());s<u.length;s++){(l=u[s])>=t&&i.push(l)}for(i.sort((function(e,t){return e-t})),a=i.length,o=0;o<a;o++){var l=i[a-o-1],c=e.get(l);e.delete(l);var m=l+r;e.set(m,c),n&&n(c,m)}}},t._deleteElements=function(e,t,r,n){if(e&&0<=r&&r<t){var a,i=[],o=r+n,s=void 0;for(s=r;s<t;s++)void 0!==e[s]&&(r<=s&&s<o?e[s]=null:s>=o&&i.push(s));for(a=i.length,s=0;s<a;s++){var u=i[s],l=e[u];e[u]=null,e[Math.floor(u)-n]=l}}},t._deleteElementsForMap=function(e,t,r,n){if(e&&0<=t){for(var a,i=[],o=t+r,s=void 0,u=0,l=Array.from(e.keys());u<l.length;u++){var c=l[u];e.has(c)&&(t<=c&&c<o?(n&&n(e.get(c),-1),e.delete(c)):c>=o&&i.push(c))}for(i.sort((function(e,t){return e-t})),a=i.length,s=0;s<a;s++){c=i[s];var m=e.get(c);e.delete(c);var y=c-r;e.set(y,m),n&&n(m,y)}}},t._hasOwnProperty=function(e,t){return e.hasOwnProperty(t)},t._isInstanceOf=function(e,t){return e instanceof t}},97:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t._DateTimeHelper=t.getSR=void 0;var n=r(818),a=r(480),i=r(305),o=r(286),s=r(534)._Types._isNullOrUndefined,u=a._StringHelper._padZeroLeft,l=parseInt,c=!1,m=Math.floor,y=Math.abs,h=new n.ResourceManager(n.SR,"Common");t.getSR=h.getResource.bind(h);var f={};function d(e,r,a,i){var s=a.DateTimeFormat,l=s.Calendar.convert;if(!r||!r.length)return a&&a.name.length?l?d(e,s.fullDateTimePattern,a):e.toLocaleString():e.toString();var c,h,f,_=s.eras,g="",M=/([^d]|^)(d|dd)([^d]|$)/g;function v(){return h||f||(h=M.test(r),f=!0),h}var b,F=0,S=/\/|dddd|ddd|dd|d|MMMM|MMM|MM|M|yyyy|yyy|yy|y|hh|h|HH|H|mm|m|ss|s|tt|t|fff|ff|f|000|00|0|zzz|zz|z|ggg|gg|g|ee|e|\[H+\]|\[h+\]|\[m+\]|\[s+\]/g;function D(e,t){return b?b[t]:function(e,t){if(n.HandleExcelSpecialDate)return n.HandleExcelSpecialDate.call(null,e,t);switch(t){case 0:return e.getFullYear();case 1:return e.getMonth();case 2:return e.getDate();default:return}}(e,t)}"s"!==r&&l&&(b=l.fromGregorian(e));for(var x=-2,C=-2,T={_value:""},N=0;;N++){var H=S.lastIndex,E=S.exec(r),P=r.slice(H,E?E.index:r.length);if(T._value="",F+=p(P,T),g+=T._value,!E)break;if(F%2!=1){var O=D(e,0),w=e.getDay(),k=e.getHours(),I=e.getMinutes(),A=e.getSeconds(),$=e.getMilliseconds(),R=e.getTimezoneOffset();switch(E[0]){case"dddd":g+=s.dayNames[w];break;case"ddd":g+=s.abbreviatedDayNames[w];break;case"dd":h=!0,g+=u(D(e,2),2);break;case"d":h=!0,g+=D(e,2);break;case"MMMM":g+=s.monthGenitiveNames&&v()?s.monthGenitiveNames[D(e,1)]:s.monthNames[D(e,1)];break;case"MMM":g+=s.abbreviatedMonthGenitiveNames&&v()?s.abbreviatedMonthGenitiveNames[D(e,1)]:s.abbreviatedMonthNames[D(e,1)];break;case"MM":g+=u(D(e,1)+1,2);break;case"M":g+=D(e,1)+1;break;case"yyyy":case"yyy":g+=x>=0?o._EraHelper._formatEraPart("ee",e,i):u(b?b[0]:O,4);break;case"yy":g+=x>=0?o._EraHelper._formatEraPart("ee",e,i):u((b?b[0]:O)%100,2);break;case"y":g+=x>=0?o._EraHelper._formatEraPart("e",e,i):""+(b?b[0]:O)%100;break;case"hh":0==(c=k%12)&&(c=12),g+=u(c,2);break;case"h":0==(c=k%12)&&(c=12),g+=c;break;case"HH":g+=u(k,2);break;case"H":g+=k.toString();break;case"mm":g+=u(I,2);break;case"m":g+=I.toString();break;case"ss":g+=u(A,2);break;case"s":g+=A.toString();break;case"tt":g+=k<12?s.amDesignator:s.pmDesignator;break;case"t":g+=(k<12?s.amDesignator:s.pmDesignator).charAt(0);break;case"f":case"0":g+=u($,3).charAt(0);break;case"ff":case"00":g+=u($,3).substr(0,2);break;case"fff":case"000":g+=u($,3);break;case"z":g+=((c=R/60)<=0?"+":"-")+m(y(c));break;case"zz":g+=((c=R/60)<=0?"+":"-")+u(m(y(c)),2);break;case"zzz":g+=((c=R/60)<=0?"+":"-")+u(m(y(c)),2)+":"+u(y(R%60),2);break;case"g":case"gg":case"ggg":if(!_)break;if(x===N-1){x=N;break}g+=o._EraHelper._formatEraPart(E[0],e,i),x=N;break;case"e":case"ee":if(!_){g+=u(b?b[0]:O,4);break}if(C===N-1){C=N;break}g+=o._EraHelper._formatEraPart(E[0],e,i),C=N;break;case"/":g+=s.dateSeparator;break;default:if(!/\[(H+|h+|m+|s+)\]/.test(E[0]))throw Error((0,t.getSR)().Exp_InvalidDateFormat);g+=E[0]}}else g+=E[0]}return g.toString()}function p(e,t){for(var r=0,n=c,a=0,i=e.length;a<i;a++){var o=e.charAt(a);switch(o){case'"':n?t._value+="'":r++,n=c;break;case"\\":n&&(t._value+="\\"),n=!n;break;default:t._value+=o,n=c}}return r}function _(e,t){var r=new Date;if(e.DateTimeFormat.eras&&t<100){var n=o._EraHelper._getEraDate(r)._eraYear;(t+=n-n%100)>e.DateTimeFormat.Calendar.TwoDigitYearMax&&(t-=100)}return t}function g(e){var t=e.getTimezoneOffset();return-485===t&&(t=-485-43/60),-321===t&&(t=-321-10/60),-507===t&&(t=-507-52/60),-402===t&&(t=-402-4/60),t}var M=function(){function e(){}return e._customCultureFormat=function(e,t,r,n){return r||(r=o.CultureManager._getCultureInfo()),d(e,t,r,n)},e._localeFormat=function(e,t,r){return d(e,t,r||o.CultureManager._getCultureInfo())},e._parseDate=function(t,r,n){var a,i,o,s,u,l=c;for((u=n).slice(1).forEach((function(e){e&&(l=!0)})),l||(u=u.concat(r._getDateTimePattern())),i=u.length,a=1;a<i;a++)if((s=u[a])&&(l=!0,o=e._parseExact(t,s,r)))return o;return null},e._parseLocale=function(t,r,n){var a,i;return r||n||void 0===(i=f[t])?(a=r?[t,r]:[t],i=e._parseDate(t,n||o.CultureManager._getCultureInfo(),a),r||n||(f[t]=i),i?new Date(i):i):i?new Date(i):i},e._parseInvariant=function(t,r){return e._parseDate(t,o.CultureManager._getCultureInfo("invariant"),[t,r])},e._parseExact=function(e,r,n){e=e.trim();var s=n.DateTimeFormat,u=1041===n.id,m=function(e,r,n){if(e._parseRegExp){if(e._parseRegExp[r])return e._parseRegExp[r]}else e._parseRegExp={};var a=r;a=(a=a.replace("%M","M")).replace(/([\^\$\.\*\+\?\|\[\]\(\)\{\}])/g,"\\\\$1");for(var o,s="^",u={_value:""},l=[],c=0,m=0,y=/\/|dddd|ddd|dd|d|MMMM|MMM|MM|M|yyyy|yyy|yy|y|hh|h|HH|H|mm|m|ss|s|tt|t|fff|ff|f|000|00|0|zzz|zz|z|ggg|gg|g|ee|e|\[H+\]|\[h+\]|\[m+\]|\[s+\]/g;null!==(o=y.exec(a));){u._value="";var h=a.slice(c,o.index);if(c=y.lastIndex,m+=p(h,u),s+=u._value,m%2!=1){switch(o[0]){case"dddd":case"ddd":case"MMMM":case"MMM":case"gggg":case"ggg":case"gg":case"g":s+="(\\D+)";break;case"tt":case"t":s+="(\\D*)";break;case"dd":case"d":case"MM":case"M":case"yy":case"y":case"HH":case"H":case"hh":case"h":case"mm":case"m":case"ss":case"s":s+="(\\d\\d?\\d?)";break;case"eee":case"ee":case"e":s+=n?"(\\u5143|\\d\\d?)":"(\\d\\d?)";break;case"yyy":case"yyyy":s+="(\\d{2}|\\d{4})";break;case"fff":case"000":s+="(\\d{3})";break;case"ff":case"00":s+="(\\d{2})";break;case"f":case"0":s+="(\\d)";break;case"zzz":s+="([+-]?\\d\\d?:\\d{2})";break;case"zz":case"z":s+="([+-]?\\d\\d?)";break;case"/":s+="/"===e.dateSeparator?"(\\/)":"([\\/\\"+e.dateSeparator+"])";break;default:throw Error((0,t.getSR)().Exp_InvalidDateFormat)}i._ArrayHelper._add(l,o[0])}else s+=o[0]}u._value="",p(a.slice(c),u),s+=u._value;var f=(s+="$").toString().replace(/\s+/g,"\\s+"),d={_regExp:f,_groups:l,_exp:RegExp(f)};return e._parseRegExp[r]=d,d}(s,r,u),y=m._exp.exec(e);if(null===y)return null;for(var h,f=m._groups,d=null,g=null,M=null,v=null,b=null,F=0,S=0,D=0,x=0,C=null,T=c,N=c,H=0,E=f.length;H<E;H++){var P=y[H+1];if(P)switch(f[H]){case"dd":case"d":if((v=l(P,10))<1||v>31)return null;break;case"MMMM":if((M=n._getMonthIndex(P))<0||M>11)return null;break;case"MMM":if((M=n._getAbbrMonthIndex(P))<0||M>11)return null;break;case"M":case"MM":case"%M":if((M=l(P,10)-1)<0||M>11)return null;break;case"e":case"ee":if((g=u&&"元"===P?1:_(n,l(P,10)))<0||g>9999)return null;break;case"y":case"yy":case"yyy":case"yyyy":if((g=l(P,10))<0||g>9999)return null;break;case"h":case"hh":case"H":case"HH":if((F=l(P,10))<0)return null;break;case"m":case"mm":if((S=l(P,10))<0||S>59)return null;break;case"s":case"ss":if((D=l(P,10))<0||D>59)return null;break;case"tt":case"t":var O=P.toUpperCase();if(T=O===s.pmDesignator.toUpperCase(),N=O===s.amDesignator.toUpperCase(),!T&&!N)return null;break;case"f":case"0":if((x=100*l(P,10))<0||x>999)return null;break;case"ff":case"00":if((x=10*l(P,10))<0||x>999)return null;break;case"fff":case"000":if((x=l(P,10))<0||x>999)return null;break;case"dddd":if((b=n._getDayIndex(P))<0||b>6)return null;break;case"ddd":if((b=n._getAbbrDayIndex(P))<0||b>6)return null;break;case"zzz":var w=P.split(/:/);if(2!==w.length)return null;if((h=l(w[0],10))<-12||h>13)return null;var k=l(w[1],10);if(k<0||k>59)return null;C=60*h+(a._StringHelper._startsWith(P,"-")?-k:k);break;case"z":case"zz":if((h=l(P,10))<-12||h>13)return null;C=60*h;break;case"g":case"gg":case"ggg":var I=P;if(!I||!s.eras)return null;if((d=o._EraHelper._parseEraPart(f[H],I))<0)return null}}var A,$=/^(\d|\d\d|\d\d\d):/.test(e),R=$?new Date(1899,11,30):new Date,U=s.Calendar.convert;if(U&&(A=U.fromGregorian(R)),U||(A=[R.getFullYear(),R.getMonth(),R.getDate()]),null===g?g=A[0]:g<100&&(s.eras&&null!==d?g=o._EraHelper._getYearFromEra(d||0,g):g+=g>=30?1900:2e3),null===M&&(M=A[1]),null===v&&(v=$?A[2]:1),U){if(null===(R=U.toGregorian(g,M,v)))return null}else{if(R.setFullYear(g,M,v),R.getDate()!==v)return null;if(null!==b&&R.getDay()!==b)return null}if(T&&F<12?F+=12:N&&12===F&&(F=0),R.setHours(F,S,D,x),null!==C){var B=R.getMinutes()-(C+R.getTimezoneOffset());R.setHours(R.getHours()+B/60,B%60)}return R},e._fromOADate=function(e){var t=g(new Date(864e5*(e-25569))),r=Math.round(864e5*(e-25569+t/1440)),n=new Date(r),a=t>=0?1:-1,i=g(new Date(r+36e5*a));if(y(t-i)>=60){var o=new Date(r+60*(i-t)*1e3);if(t>i){if(-1===a||i===g(n))return o}else if(t<i&&(1===a||i===g(n)))return o}return n},e._fromOADateString=function(t){if("/OADate("===t.substr(0,8)){var r=parseFloat(t.substr(8,t.length-10));return e._fromOADate(r)}},e._toOADateString=function(t){return"/OADate("+e._toOADate(t)+")/"},e._toOADate=function(e){if(s(e))return 0;if("number"!=typeof e&&"string"!=typeof e||(e=new Date(e)),e instanceof Date){var t=g(e);return(1440*e.getTime()+3181192704e6-864e5*t)/124416e6}return 0},e._DT=function(r){var n=null,a=!0;if(s(r))n=e._fromOADate(0);else if(r instanceof Date)n=new Date(r.valueOf());else if("string"==typeof r){var i=e._parseLocale(r);if(!i)if(isNaN(r))if(e._isInvalidDateString(r))a=c;else{isNaN((i=new Date(r)).valueOf())&&(a=c);var o=/^[-+=\s]*(\d+)\W+(\d+)\W+(\d+)$/.exec(r.replace(/ |\n/g,"").trim());o&&4===o.length&&(-1!==o.indexOf(i.getFullYear().toString())&&-1!==o.indexOf(""+(i.getMonth()+1))&&-1!==o.indexOf(i.getDate().toString())||(a=c))}else(i=e._fromOADate(parseFloat(r)))||(a=c);n=i}else"number"==typeof r?n=e._fromOADate(r):a=c;if(a)return n;throw(0,t.getSR)().Exp_InvalidCast},e._isInvalidDateString=function(t){var r,n,a=o.CultureManager._getCultureInfo().DateTimeFormat,i=e._invalidCharInDateStr,s=function(e,t){var r=0;return t.forEach((function(t){t&&e.indexOf(t)>-1&&r++})),r>1};return s(t,a.monthNames)||s(t,a.abbreviatedMonthNames)||s(t,a.dayNames)||s(t,a.abbreviatedDayNames)||function(e,t){if(e&&e.indexOf(" ")>-1){var r=e.split(" "),n=r.length;return n>=2&&t.indexOf(r[n-2])<=-1&&!isNaN(r[n-1])}return!1}(t,a.monthNames.concat(a.abbreviatedMonthNames))||(r=t,n=!1,i.forEach((function(e){r.indexOf(e)>-1&&(n=!0)})),n)},e._isDate=function(e){return e&&(e.constructor===Date||e.getUTCDate&&e.setFullYear)},e._invalidCharInDateStr=["@","#","!","`","^","$","*","(",")","&"],e}();t._DateTimeHelper=M},646:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t._growth=t._trend=void 0;var n=r(844),a=isNaN,i="rowCount",o="colCount";function s(e){return e}function u(e,t,r,s,u,l,c,m,y,h,f){var d,p,_,g,M,v,b,F,S,D,x,C,T,N,H,E,P=r[i],O=r[o],w=t[i],k=t[o],I=s[i],A=s[o],$=1===O,R=1===k;if(w===P&&k===O){var U=0,B=0,L=0,j=0;for(b=P*O,d=0;d<P;d++)for(p=0;p<O;p++){if(g=l(r[d][p]),M=l(t[d][p]),e&&(a(g)||a(M)))return y;U+=g,B+=g*g,L+=M=h(M),j+=g*M}var G=b*j-U*L;F=u?(L*B-U*j)/(b*B-U*U):0;var Y=(v=u?G/(b*B-U*U):j/B).toString();for((Y.indexOf("000000000000")>1||Y.indexOf("999999999999")>1)&&(v=n._NumberHelper._fixNumber(v,12),F=n._NumberHelper._fixNumber(F,12)),S=[],d=0;d<I;d++)for(S[d]=[],p=0;p<A;p++){if(g=l(s[d][p]),e&&a(g))return y;S[d][p]=0===G?t[0][0]:f(n._NumberHelper._safeAdd(v*g,F))}return c?new c(S):S}if(R&&w===P||1===w&&k===O){for(g=[],M=[],H=O+1,E=O+2,d=0;d<P;d++){if(F=l(x=R?t[d][0]:t[0][d]),e&&a(F))return y;M[d]=$?h(F):F}for(d=0;d<P;d++)for(g[d]=[],p=0;p<O;p++){if(F=l(r[d][p]),e&&a(F))return y;g[d][p]=F}var z=[];for(v=0;v<H;v++)for(z[v]=[],b=0;b<E;b++)z[v][b]=0;for(_=0;_<P;_++)for(z[0][H]+=M[_],d=0;d<O;d++)for(x=d+1,z[0][x]+=g[_][d],z[x][0]=z[0][x],z[x][H]+=g[_][d]*M[_],p=d;p<O;p++)z[T=p+1][x]+=g[_][d]*g[_][p],z[x][T]=z[T][x];z[0][0]=P;var K=u?0:1;for(D=K;D<H;D++){if(e){if(0===z[D][D]){for(N=!1,p=D+1;!N&&p<H;p++)if(0!==z[p][D]){for(_=0;_<E;_++)T=z[D][_],z[D][_]=z[p][_],z[p][_]=T;N=!0}if(!N)return m}}else{for(d=D;d<H&&0===z[d][D];)d++;if(d>=H)return m;for(C=K;C<E;C++)x=z[D][C],z[D][C]=z[d][C],z[d][C]=x}for(x=1/z[D][D],C=K;C<E;C++)z[D][C]*=x;for(d=K;d<H;d++)if(d!==D)for(x=-z[d][D],C=0;C<E;C++)z[d][C]+=x*z[D][C];u||(z[0][H]=0)}for(S=[],R||(S[0]=[]),d=0;d<I;d++){for(R&&(S[d]=[]),x=z[0][H],p=0;p<O;p++){if(F=l(R?s[d][p]:s[p][d]),e&&a(F))return y;x+=z[p+1][H]*F}R?S[d][0]=f(x):S[0][d]=f(x)}return c?new c(S):S}return m}t._trend=function(e,t,r,n,a,i,o,l){return u(!0,e,t,r,n,a,i,l,o,s,s)},t._growth=function(e,t,r,n,a,l,c){var m,y;for(m=0;m<e[i];m++)for(y=0;y<e[o];y++)if(e[m][y]<=0)return l;return u(!1,e,t,r,n,s,a,c,null,Math.log,Math.exp)}},844:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t._NumberHelper=void 0;var n=r(818),a=r(534),i=r(576),o=r(480),s=r(286),u=a._Types._isNullOrUndefined,l=o._StringHelper._padZeroLeft,c=o._StringHelper._padZeroRight,m=null,y=void 0,h=parseInt,f=parseFloat,d=!1,p=!0,_=Math.floor,g=Math.abs,M=Math.pow,v=Math.min,b=Number.MAX_VALUE,F=function(e,t,r){return e.substr(t,r)},S=function(e){return i._RegexHelper._getReg(e)},D=new n.ResourceManager(n.SR),x=D.getResource.bind(D),C="##################0",T="################",N={1:"+",0:"","-1":"-"},H=["0","#","?"],E={"¤":"¤",Br:"Br",Fdj:"Fdj",Nfk:"Nfk",R:"R",$:"$",FCFA:"FCFA","GH₵":"GH₵",ብር:"ብር","ر.س.‏":"ر.س.‏",XDR:"XDR","د.إ.‏":"د.إ.‏","د.ب.‏":"د.ب.‏","د.ج.‏":"د.ج.‏","ج.م.‏":"ج.م.‏","₪":"₪","د.ع.‏":"د.ع.‏","د.ا.‏":"د.ا.‏","ف.ج.ق.‏":"ف.ج.ق.‏","د.ك.‏":"د.ك.‏","ل.ل.‏":"ل.ل.‏","د.ل.‏":"د.ل.‏","د.م.‏":"د.م.‏","أ.م.‏":"أ.م.‏","ر.ع.‏":"ر.ع.‏","ر.ق.‏":"ر.ق.‏","ج.س.":"ج.س.",S:"S","£":"£","ل.س.‏":"ل.س.‏","د.ت.‏":"د.ت.‏","ر.ي.‏":"ر.ي.‏","₹":"₹",TSh:"TSh","€":"€","₼":"₼","₽":"₽",K:"K","лв.":"лв.","₦":"₦",CFA:"CFA","৳":"৳","¥":"¥",KM:"KM",КМ:"КМ",USh:"USh",Kč:"Kč","kr.":"kr.",Ksh:"Ksh",CHF:"CHF","ރ.":"ރ.","Nu.":"Nu.",EC$:"EC$",P:"P",US$:"US$",D:"D",Rp:"Rp",Ar:"Ar",MOP$:"MOP$",Rs:"Rs",MK:"MK",RM:"RM","₱":"₱",RF:"RF",SR:"SR",SDG:"SDG",Le:"Le","NAf.":"NAf.",E:"E",T$:"T$",VT:"VT",WS$:"WS$",Bs:"Bs","₡":"₡",Q:"Q",L:"L",C$:"C$","B/.":"B/.","S/.":"S/.","₲":"₲","Bs.":"Bs.",ريال:"ريال",FG:"FG",UM:"UM",kr:"kr",FBu:"FBu",FC:"FC",DA:"DA",G:"G",CF:"CF",DH:"DH",FCFP:"FCFP",LS:"LS",DT:"DT",kn:"kn",HUF:"HUF","֏":"֏",ISK:"ISK","₾":"₾","​":"​","₸":"₸","៛":"៛","₩":"₩",сом:"сом",Kz:"Kz","₭":"₭",MTn:"MTn",ден:"ден","₮":"₮",रु:"रु","Afl.":"Afl.","ߖߕ.":"ߖߕ.","руб.":"руб.",zł:"zł","؋":"؋",R$:"R$",Db:"Db",RON:"RON","₴":"₴",MAD:"MAD","රු.":"රු.",Lekë:"Lekë",den:"den",RSD:"RSD","дин.":"дин.","ܠ.ܣ.‏":"ܠ.ܣ.‏","Rs.":"Rs.",смн:"смн","฿":"฿","m.":"m.","₺":"₺",ⴷⵔ:"ⴷⵔ",soʻm:"soʻm",сўм:"сўм","₫":"₫",HK$:"HK$",MOP:"MOP",NT$:"NT$"};function P(e,t,r,n){return t&&0!==t.length&&"i"!==t?function(e,t,r,n){return B(e,k(t),r,n)}(e,t,r.NumberFormat,n):r&&r.name.length>0?e.toLocaleString():e.toString()}function O(e,t){for(var r=_(g(e)),n={_integer:1,_decimal:0};r>=10&&Number.isFinite(r);)r/=10,n._integer++;var a,i=e.toString(),o=i.search(/e/gi),s=i.indexOf(t);if(-1!==o){var u=F(i,0,o),l=F(i,o+1),c=0;-1!==s&&(c=F(u,s+1).length),(a=c-f(l))<0&&(a=0),n._decimal=a}else a=0,-1!==s&&(a=F(i,s+1).length),n._decimal=a;return n}function w(e){for(var t={_symbol:e.charAt(0),_sign:0,_exp:0},r="",n=1;n<e.length;n++)if("+"===(r=e.charAt(n)))t._sign=1;else{if("-"!==r){if("0"===r){t._exp=e.length-n;break}throw Error(x().Exp_InvalidExponentFormat)}t._sign=-1}return t}function k(e){for(var t,r={_intPart:m,_decPart:m,_group:d,_scale:0,_percent:0,_permille:0,_exponent:m},n="",a=d,i=d,o=d,s=d,u=d,l=d,c=m,y=[],h=0;h<e.length;h++){if(t=e.charAt(h),a)n+=t,'"'===t&&(y.push(n),n="",a=d);else if(i){if("E"===c||"e"===c){if(!(["+","-","0"].indexOf(t)>=0)){i=d,h--;continue}n+=t}else if("+"===c||"-"===c){if("0"!==t){i=d,h--;continue}n+=t}else if("0"===c){if("0"!==t){i=d,u||(u=p,r._exponent=w(n)),h--;continue}n+=t}}else if("*"!==c&&"_"!==c&&"\\"!==c||""===n)if("*"===t||"_"===t||"\\"===t)l=d,""!==n&&(y.push(n),n=""),n+=t;else if("'"===t)l=d,""!==n&&(y.push(n),n=""),y.push(t);else if('"'===t)l=d,a=p,""!==n&&(y.push(n),n=""),n+=t;else if(H.indexOf(t)>=0)l=p,H.indexOf(c)<0&&""!==n&&(y.push(n),n=""),n+=t;else if("."!==t||o)if("%"===t)l=d,r._percent++,""!==n&&(y.push(n),n=""),y.push(t);else if("‰"===t)l=d,r._permille++,""!==n&&(y.push(n),n=""),y.push(t);else if(","===t)if(l){var f=void 0;""!==n&&(y.push(n),n="");for(var _=p,g="",M=h+1;M<e.length;M++)if(f=e.charAt(M),'"'!==g)if("\\"!==g&&"_"!==g){if(H.indexOf(f)>=0){_=d;break}if("."===f||";"===f)break;g=f}else g="";else'"'===f&&(g="");_?r._scale++:o||(f=e.charAt(h+1))&&H.indexOf(f)>=0&&(s=p)}else n+=t;else"E"===t||"e"===t?(l=d,i=p,""!==n&&(y.push(n),n=""),n+=t):(l=d,H.indexOf(c)>=0&&""!==n&&(y.push(n),n=""),n+=t);else""!==n&&(y.push(n),n=""),r._intPart=y,y=[],o=p,l=d;else n+=t,y.push(n),n="";c=t}return""!==n&&(i&&!u&&(r._exponent=w(n)),y.push(n)),s&&(r._group=p),o?r._decPart=y:r._intPart=y,r}function I(e,t,r,n,a,i){var o=function(e,t){if(t=+t,isNaN(e=+e)||t%1!=0)return NaN;var r=e<0;if(e=r?-e:e,typeof t===y||0===t)return e=Math.round(e),r?-e:e;var n=e.toString().split("e");return e=Math.round(+(n[0]+"e"+(n[1]?+n[1]-t:-t))),+((n=(e=r?-e:e).toString().split("e"))[0]+"e"+(n[1]?+n[1]+t:t))}(e,-t);isFinite(o)||(o=e);var s,u,m=(e=o).toString(),f=m.split(/e/i);return m=f[0],u=f.length>1?h(f[1],10):0,f=m.split("."),m=f[0],s=f.length>1?f[1]:"",u>0?(m+=(s=c(s,u)).slice(0,u),s=F(s,u)):u<0&&(u=-u,s=(m=e<0?i+l(m.replace(i,""),u+1):l(m,u+1)).slice(-u,m.length)+s,m=m.slice(0,-u)),m+(t>0?a+(s=s.length>t?s.slice(0,t):c(s,t)):"")}function A(e){var t=m;if(e){t="";for(var r=0;r<e.length;r++){var n=e[r];/^(0|#|\?)+/g.test(n)&&(t+=n)}}return t}var $=Math.pow(2,48);function R(e,t){return e===t||0!==e&&0!==t&&(g(e-t)<g(e)/$||(e=Y(e,15),t=Y(t,15),g(e-t)<g(e)/$))}function U(e,t,r,n,a,i,o,s){var u=s.numberGroupSizes,c=s.numberGroupSeparator,m=s.negativeSign,y=s.percentSymbol,h=s.perMilleSymbol,f=n._exponent,_=F(t,0,1);_===m&&(t=F(t,1));var g=1===t.length&&"0"===t?0:t.length;t=0===g?"":t;for(var M=0,v="",b=e.length-1;b>=0;b--){var S="",D=e[b];if(/^(0|#|\?)+/g.test(D)){if(v!==r){for(var C=D.length,T=g-M-1;T>=0&&C>0;T--){S=t.charAt(T)+S,C--,M++}for(var H=C-1;H>=0;H--){var P=D[H];M++,"0"===P?S=P+S:"?"===P&&(""!==S&&(i.push({type:"number",value:S}),S=""),i.push({type:"numberPlaceholder",value:P}))}(v=D+v)===r&&M<g&&(S=t.substr(0,g-M)+S),""!==S&&i.push({type:"number",value:S})}}else if(n._exponent&&!o.replaceExponent&&/^((E(\+|-)?|e(\+|-)?)\d+)/g.test(D)){o.replaceExponent=p;var O="";O+=f._symbol,O+=N[f._sign],O+=l(a.toString(),f._exp),i.push({type:"exponent",value:O})}else"_"===D[0]?i.push({type:"placeholder",value:D[1]}):"*"===D[0]?o.hasInfilling||(i.push({type:"fillingChar",value:D[1]}),o.hasInfilling=!0,o.infillIndex=i.length-1):"\\"===D[0]?2===D.length&&i.push({type:"text",value:D[1]}):'"'===D[0]&&'"'===D[D.length-1]?D.length>2&&i.push({type:"text",value:D.substr(1,D.length-2)}):D===y?i.push({type:"percent",value:D}):D===h?i.push({type:"permille",value:D}):E[D]?i.push({type:"currency",value:D}):i.push({type:"text",value:D})}_===m&&r&&i.push({type:"text",value:_}),n._group===p&&function(e,t,r,n){for(var a=t[0],i=1,o=0,s=d,u=e.length,l=0;l<u;l++){var c=e[l].type;if("number"===c){for(var m="",y=e[l].value,h=y.length-1;h>=0;){if(!(1<=a&&a<=9||0===a&&i===t.length))throw Error(x().Exp_InvalidNumberGroupSize);/\d/gi.test(y[h])?(s&&(m&&e.push({type:"number",value:m}),e.push({type:"groupSeparator",value:r}),m="",s=d),o++):o=0,m=y[h]+m,o===a&&a>0&&(s=p,o=0,i<t.length&&(a=t[i],i++)),h--}m&&e.push({type:c,value:m})}else"fillingChar"===c&&(n.infillIndex=e.length-u),e.push({type:c,value:e[l].value})}e.splice(0,u)}(i,u,c,o),i.reverse(),o.infillIndex=i.length-1-o.infillIndex}function B(e,t,r,n){var a=[];e=function(e,t,r,n){var a=e;return t>0&&(a=Y(a*M(100,t),15)),r>0&&(a=Y(a*M(1e3,r),15)),n>0&&(a=Y(a/M(1e3,n),15)),a}(e,t._percent,t._permille,t._scale);var i=t._intPart,o=t._decPart;if(!i&&!o)return a;var s,u=A(i),c=A(o);if(c||(c=""),t._exponent){var m=function(e,t,r){var n={value:e,exponentValue:0},a=O(e,".")._integer,i=g(e),o=r?r.length:1;if(i>=1)a>o?(a-=o,n.value=e/M(10,a),n.exponentValue=a):n.exponentValue=0,-1===t._sign&&(t._sign=0);else if(i<1&&i>0){t._sign=-1;for(var s=M(10,o);10*i<s&&!R(10*i,s);)i*=10,n.exponentValue++;var u=M(10,n.exponentValue);n.value*=u>b?0:u}return n}(e,t._exponent,u);e=m.value,s=m.exponentValue}var y=O(e,".");g(e)>1&&y._integer+y._decimal>15&&(e=Y(e,15));r.numberGroupSizes,r.numberGroupSeparator;var h=r.numberDecimalSeparator,f=r.negativeSign,_=I(e,v(y._decimal,c.length),0,0,h,f);if(n||(_=function(e,t){var r=e;return-1!==e.indexOf(t)&&(r=e.replace(/0+$/,"")),r}(_,h)),""===_)return a.push({type:"text",value:(i?i.join(""):"")+(o?o.join(""):"")}),a;var F={hasInfilling:d,infillIndex:-1,replaceExponent:d},S=_.split(h)[0];return"10"!==S||isNaN(s)||(S="1",s+=t&&t._exponent&&-1===t._exponent._sign?-1:1),i&&U(i,S,u,t,s,a,F,r),e===1/0||e===-1/0||("0"!==S&&""===u&&o&&a.push({type:"number",value:S}),o&&function(e,t,r,n,a,i,o,s,u){var c=u.numberDecimalSeparator,m=u.percentSymbol,y=u.perMilleSymbol,h=t.indexOf(c),f=a._exponent;(h>0||n!==C||r!==T)&&o.push({type:"decimalSeparator",value:c});for(var d=-1!==h?t.substring(h+1):"",_=0,g="",M=0;M<e.length;M++){var v=e[M];if(/^(0|#|\?)+/g.test(v)){var b="";if(g!==r){for(var F=v.length,S=0,D=_;F>0&&d.length-_>0;)b+=d.charAt(D),F--,_++,S++,D++;for(var x=S;F>0;){var H=v[x];x++,_++,F--,"0"===H?b+=H:"?"===H&&(""!==b&&(o.push({type:"number",value:b}),b=""),o.push({type:"numberPlaceholder",value:H}))}""!==b&&o.push({type:"number",value:b}),g+=v}}else if(f&&!s.replaceExponent&&/^((E(\+|-)?|e(\+|-)?)\d+)/g.test(v)){s.replaceExponent=p;var P="";P+=f._symbol,P+=N[f._sign],P+=l(i.toString(),f._exp),o.push({type:"exponent",value:P})}else"_"===v[0]?o.push({type:"placeholder",value:v[1]}):"*"===v[0]?(o.push({type:"fillingChar",value:v[1]}),s.hasInfilling&&o.splice(s.infillIndex,1),s.hasInfilling=!0,s.infillIndex=o.length-1):"\\"===v[0]?2===v.length&&o.push({type:"text",value:v[1]}):'"'===v[0]&&'"'===v[v.length-1]?v.length>2&&o.push({type:"text",value:v.substr(1,v.length-2)}):v===m?o.push({type:"percent",value:v}):v===y?o.push({type:"permille",value:v}):E[v]?o.push({type:"currency",value:v}):o.push({type:"text",value:v})}}(o,_,c,u,t,s,a,F,r)),a}function L(e,t){if((e=u(e)?"":o._StringHelper._trimEnd(e,"")).match(/^[+-]?infinity$/i))return f(e);if(e.match(/^0x[a-f0-9]+$/i))return h(e,10);var r,n,a=t.NumberFormat,i=a.numberNegativePattern,s=j(e,a,i),l=s[0],c=s[1];""===l&&1!==i&&(l=(s=j(e,a,1))[0],c=s[1]),""===l&&(l="+"),c[0]===a.currencySymbol&&(c=F(c,1));var y=c.indexOf("e");y<0&&(y=c.indexOf("E")),y<0?(n=c,r=m):(n=F(c,0,y),r=F(c,y+1));var d,p,_=n.indexOf(".");_<0?(d=n,p=m):(d=F(n,0,_),p=F(n,_+1));var g=l+(d=d.split(",").join(""));if(p!==m&&(g+="."+p),g[g.length-1]===a.percentSymbol){g=F(g,0,g.length-1);var M=(g=o._StringHelper._trimEnd(g,"")).indexOf(".");-1===M&&(M=g.length);var v="";v+=F(g,0,M-2),v+=".",v+=F(g,M-2,2),g=v+=F(g,M+1)}if(r!==m){var b=j(r,a,1);""===b[0]&&(b[0]="+"),g+="e"+b[0]+b[1]}return g.match(/^[+-]?\d*\.?\d*(e[+-]?\d+)?$/)?f(g):NaN}function j(e,t,r){var n=t.negativeSign,a=t.positiveSign;if(4!==r&&2!==r||(n=" "+n,a=" "+a),4===r||3===r){if(o._StringHelper._endsWith(e,n))return["-",F(e,0,e.length-n.length)];if(o._StringHelper._endsWith(e,a))return["+",F(e,0,e.length-a.length)]}else if(2===r||1===r){if(o._StringHelper._startsWith(e,n))return["-",F(e,n.length)];if(o._StringHelper._startsWith(e,a))return["+",F(e,a.length)]}else{if(0!==r)throw Error("");if(o._StringHelper._startsWith(e,"(")&&o._StringHelper._endsWith(e,")"))return["-",F(e,1,e.length-2)]}return["",e]}function G(e){var t=s.CultureManager._getCultureInfo().NumberFormat;return"string"==typeof e&&(t=s.CultureManager._getCultureInfo(e).NumberFormat),t}function Y(e,t){return"number"==typeof e&&e.toString().length>=t&&(e=+e.toPrecision(t)),e}t._NumberHelper={_parseLocale:function(e){return L(e,s.CultureManager._getCultureInfo())},_parseInvariant:function(e){return L(e,s.CultureManager._getCultureInfo("invariant"))},_customCultureFormat:function(e,t,r,n){return r||(r=s.CultureManager._getCultureInfo()),P(e,t,r,n)},_replaceNormalToCultureSymbol:function(e,t){if("string"!=typeof e)return e;var r=G(t),n=r.numberDecimalSeparator,a=r.numberGroupSeparator;return"."!==n&&(e=e.replace(S("[.]"),"#dot#")),","!==a&&(e=e.replace(S("[,]"),"#group#")),"."!==n&&(e=e.replace(S("#dot#"),n)),","!==a&&(e=e.replace(S("#group#"),a)),e},_replaceCultureSymbolToNormal:function(e,t){if("string"!=typeof e)return e;var r=G(t),n=r.numberDecimalSeparator,a=r.numberGroupSeparator;return"."!==n&&(e=e.replace(S("["+n+"]"),"#dot#")),","!==a&&(e=e.replace(S("["+a+"]"),"#group#")),"."!==n&&(e=e.replace(S("#dot#"),".")),","!==a&&(e=e.replace(S("#group#"),",")),e},_isValidCultureNumberString:function(e,t){if("string"==typeof e){var r=G(t),n=r.numberDecimalSeparator,a=r.numberGroupSeparator;if("."!==n&&"."!==a&&e.indexOf(".")>=0||","!==n&&","!==a&&e.indexOf(",")>=0)return!1}return!0},_parseFloat:function(e,t){return f(this._replaceCultureSymbolToNormal(e,t))},_toHexString:function(e,t,r){if(0!==g(_(e)-e))throw Error(x().Exp_BadFormatSpecifier);var n=e>=0?e.toString(16):(4294967295+e+1).toString(16);return n=t?n.toLowerCase():n.toUpperCase(),!u(r)&&n.length<r?l(n,r):n},_parseCustomNumberFormatter:k,_formatNumber:B,_approxEqual:R,_safeAdd:function(e,t){return R(e,-t)?0:e+t},_formatObjectToString:function(e){var t="";if(Array.isArray(e)&&e.length>0)for(var r=0;r<e.length;r++){var n=e[r].type,a=e[r].value;if("placeholder"===n)t+=" ";else{if("fillingChar"===n)continue;t+="numberPlaceholder"===n?" ":a}}return t},_generalNumberInt:C,_generalNumberDec:T,_fixNumber:Y}},674:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.rbush=void 0;var r=Math.max,n=Math.min,a=1/0;function i(e,t){this._maxEntries=r(4,e||9),this._minEntries=r(2,Math.ceil(.4*this._maxEntries)),t&&this._initFormat(t),this.clear()}function o(e,t,r){if(!r)return t.indexOf(e);for(var n=0;n<t.length;n++)if(r(e,t[n]))return n;return-1}function s(e,t){u(e,0,e.children.length,t,e)}function u(e,t,r,n,i){i||(i=p(null)),i.minX=a,i.minY=a,i.maxX=-1/0,i.maxY=-1/0;for(var o=t,s=void 0;o<r;o++)s=e.children[o],l(i,e.leaf?n(s):s);return i}function l(e,t){return e.minX=n(e.minX,t.minX),e.minY=n(e.minY,t.minY),e.maxX=r(e.maxX,t.maxX),e.maxY=r(e.maxY,t.maxY),e}function c(e,t){return e.minX-t.minX}function m(e,t){return e.minY-t.minY}function y(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function h(e){return e.maxX-e.minX+(e.maxY-e.minY)}function f(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&(t.maxX>=0&&t.maxX<=e.maxX||e.minX<0)&&(t.maxY>=0&&t.maxY<=e.maxY||e.minY<0)}function d(e,t){return(-1===e.minY||-1===t.minY||e.minY<=t.maxY&&t.minY<=e.maxY)&&(-1===e.minX||-1===t.minX||e.minX<=t.maxX&&t.minX<=e.maxX)}function p(e){return{children:e,height:1,leaf:!0,minX:a,minY:a,maxX:-1/0,maxY:-1/0}}t.rbush=i,i.prototype={all:function(){return this._all(this.data,[])},search:function(e){var t=this.data,r=[],n=this.toBBox;if(!d(e,t))return r;for(var a,i,o,s,u=[];t;){for(a=0,i=t.children.length;a<i;a++)o=t.children[a],d(e,s=t.leaf?n(o):o)&&(t.leaf?r.push(o):f(e,s)?this._all(o,r):u.push(o));t=u.pop()}return r},collides:function(e){var t=this.data,r=this.toBBox;if(!d(e,t))return!1;for(var n,a,i,o,s=[];t;){for(n=0,a=t.children.length;n<a;n++)if(i=t.children[n],d(e,o=t.leaf?r(i):i)){if(t.leaf||f(e,o))return!0;s.push(i)}t=s.pop()}return!1},insert:function(e){return e&&this._insert(e,this.data.height-1),this},clear:function(){return this.data=p([]),this},remove:function(e,t){if(!e)return this;for(var r,n,a,i,s=this.data,u=this.toBBox(e),l=[],c=[];s||l.length;){if(s||(s=l.pop(),n=l[l.length-1],r=c.pop(),i=!0),s.leaf&&-1!==(a=o(e,s.children,t)))return s.children.splice(a,1),l.push(s),this._condense(l),this;i||s.leaf||!f(s,u)?n?(r++,s=n.children[r],i=!1):s=null:(l.push(s),c.push(r),r=0,n=s,s=s.children[0])}return this},toBBox:function(e){return e},compareMinX:c,compareMinY:m,toJSON:function(){return this.data},fromJSON:function(e){return this.data=e,this},_all:function(e,t){for(var r=[];e;)e.leaf?t.push.apply(t,e.children):r.push.apply(r,e.children),e=r.pop();return t},_chooseSubtree:function(e,t,i,o){for(var s,u,l,c,m,h,f,d;o.push(t),!t.leaf&&o.length-1!==i;){for(f=d=a,s=0,u=t.children.length;s<u;s++)m=y(l=t.children[s]),p=e,(h=(r((_=l).maxX,p.maxX)-n(_.minX,p.minX))*(r(_.maxY,p.maxY)-n(_.minY,p.minY))-m)<d?(d=h,f=m<f?m:f,c=l):h===d&&m<f&&(f=m,c=l);t=c||t.children[0]}var p,_;return t},_insert:function(e,t,r){var n=this.toBBox,a=r?e:n(e),i=[],o=this._chooseSubtree(a,this.data,t,i);for(o.children.push(e),l(o,a);t>=0&&i[t].children.length>this._maxEntries;)this._split(i,t),t--;this._adjustParentBBoxes(a,i,t)},_split:function(e,t){var r=e[t],n=r.children.length,a=this._minEntries;this._chooseSplitAxis(r,a,n);var i=this._chooseSplitIndex(r,a,n),o=p(r.children.splice(i,r.children.length-i));o.height=r.height,o.leaf=r.leaf,s(r,this.toBBox),s(o,this.toBBox),t?e[t-1].children.push(o):this._splitRoot(r,o)},_splitRoot:function(e,t){this.data=p([e,t]),this.data.height=e.height+1,this.data.leaf=!1,s(this.data,this.toBBox)},_chooseSplitIndex:function(e,t,i){var o,s,l,c,m,h,f,d,p,_,g,M,v,b;for(h=f=a,o=t;o<=i-t;o++)p=s=u(e,0,o,this.toBBox),_=l=u(e,o,i,this.toBBox),g=void 0,M=void 0,v=void 0,b=void 0,g=r(p.minX,_.minX),M=r(p.minY,_.minY),v=n(p.maxX,_.maxX),b=n(p.maxY,_.maxY),c=r(0,v-g)*r(0,b-M),m=y(s)+y(l),c<h?(h=c,d=o,f=m<f?m:f):c===h&&m<f&&(f=m,d=o);return d},_chooseSplitAxis:function(e,t,r){var n=e.leaf?this.compareMinX:c,a=e.leaf?this.compareMinY:m;this._allDistMargin(e,t,r,n)<this._allDistMargin(e,t,r,a)&&e.children.sort(n)},_allDistMargin:function(e,t,r,n){e.children.sort(n);var a,i,o=this.toBBox,s=u(e,0,t,o),c=u(e,r-t,r,o),m=h(s)+h(c);for(a=t;a<r-t;a++)i=e.children[a],l(s,e.leaf?o(i):i),m+=h(s);for(a=r-t-1;a>=t;a--)i=e.children[a],l(c,e.leaf?o(i):i),m+=h(c);return m},_adjustParentBBoxes:function(e,t,r){for(var n=r;n>=0;n--)l(t[n],e)},_condense:function(e){for(var t=e.length-1,r=void 0;t>=0;t--)0===e[t].children.length?t>0?(r=e[t-1].children).splice(r.indexOf(e[t]),1):this.clear():s(e[t],this.toBBox)},_initFormat:function(e){var t=["return a"," - b",";"];this.compareMinX=Function("a","b",t.join(e[0])),this.compareMinY=Function("a","b",t.join(e[1])),this.toBBox=Function("a","return {minX: a"+e[0]+", minY: a"+e[1]+", maxX: a"+e[2]+", maxY: a"+e[3]+"};")}}},576:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t._RegexHelper=void 0;var n=r(480),a=function(){function e(){}return e._getRegWithModifiers=function(t,r){var n;if(r&&e._regDictWithModifiers[r]&&e._regDictWithModifiers[r][t])n=e._regDictWithModifiers[r][t];else try{null==r?(n=RegExp(t),r="empty"):n=RegExp(t,r),e._regDictWithModifiers[r]||(e._regDictWithModifiers[r]={}),e._regDictWithModifiers[r][t]=n}catch(e){return null}return n.lastIndex=0,n},e._getReg=function(t){var r=e._regDict[t];return r||(r=e._regDict[t]=RegExp(t,"g")),r.lastIndex=0,r},e._getRegIgnoreCase=function(t){var r=e._regDictIgnoreCase[t];return r||(r=e._regDictIgnoreCase[t]=RegExp(t,"gi")),r.lastIndex=0,r},e._getWildcardCriteria=function(t,r,n){if(e._wildcardParseRecord[t])return e._wildcardParseResultBuffer[t];var a=r?"[?*]+":"[~?*]+";if(e._getReg(a).test(t)){for(var i=[],o=t.split(""),s=void 0,u={".":!0,"+":!0,$:!0,"^":!0,"[":!0,"]":!0,"(":!0,")":!0,"{":!0,"}":!0,"|":!0,"/":!0,"\\":!0},l=0;l<o.length;l++)if("~"===(s=o[l])){if(!(l<o.length-1))break;"*"!==(s=o[++l])&&"?"!==s||i.push("\\"),i.push(s)}else"?"===s?i.push("."):"*"===s?(i.push("[\\s\\S]"),n?i.push("+"):i.push("*")):u[s]?(i.push("\\"),i.push(s)):i.push(s);return i.join("")}return null},e._getWildcardCriteriaFullMatch=function(t,r,n){var a=e._getWildcardCriteria(t,r,n);return a&&(a="^"+a+"$"),a},e._getReplaceSymbol=function(e,t){for(var r="#"+e+"0#",a=1;t.indexOf(r)>0;)r=n._StringHelper._join(r,"#"+e+(a-1)+"#","#"+e+a+"#"),a++;return r},e._replaceRegString2NormalString=function(e){return e.replace(/([\~\!\@\#\$\%\^\&\*\(\)\-\_\+\=\[\]\{\}\|\\\;\:\'\"\,\.\/\<\>\?])/,"\\$1")},e._regDict={},e._regDictIgnoreCase={},e._regDictWithModifiers={},e._wildcardParseRecord={},e._wildcardParseResultBuffer={},e}();t._RegexHelper=a},480:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t._StringHelper=void 0;var n=r(576);function a(e,t,r){return e.substr(t,r)}function i(e){return null==e}function o(e,t,r,n){if(i(t))throw Error();if(""===t)return!0;if(t.length>e.length)return!1;var a=e,o=t;return r&&(a=a.toLowerCase(),o=o.toLowerCase()),n(a,o)}t._StringHelper={_contains:function(e,t,r){return r&&(e=e.toLowerCase(),t=t.toLowerCase()),""===t||e.indexOf(t)>=0},_indexOf:function(e,t,r){if(r){var n=e.toLowerCase(),a=t.toLowerCase();return n.indexOf(a)}return e.indexOf(t)},_trimStart:function(e,t){if(!t)return e;for(var r=e;a(r,0,t.length)===t;)r=a(r,t.length);return r},_trimEnd:function(e,t){if(!t)return e;for(var r=e;a(r,r.length-t.length,t.length)===t;)r=a(r,0,r.length-t.length);return r},_insert:function(e,t,r){if(t<0||t>e.length||i(r))throw Error();return a(e,0,t)+r+a(e,t,e.length-t)},_remove:function(e,t,r){if(i(r)&&(r=e.length-t),t<0||r<0||t+r>e.length)throw Error();return a(e,0,t)+a(e,t+r,e.length-t-r)},_startsWith:function(e,t,r){return void 0===r&&(r=!1),o(e,t,r,(function(e,t){return e.slice(0,t.length)===t}))},_endsWith:function(e,t,r){return void 0===r&&(r=!1),o(e,t,r,(function(e,t){return e.slice(-t.length)===t}))},_replace:function(e,t,r,n){if(!t)throw Error();return r=(""+r).replace(/\$/g,"$$$$"),e.replace(RegExp(t,"g"+(n?"i":"")),r)},_replaceAllNoReg:function(e,r,a,i){return r=n._RegexHelper._replaceRegString2NormalString(r),t._StringHelper._replace(e,r,a,i)},_leftBefore:function(e,t){var r=e.indexOf(t);return r<0||r>=e.length?e:a(e,0,r)},_count:function(e,t){for(var r=0,n=e.indexOf(t);n>=0;)r+=1,n=e.indexOf(t,n+1);return r},_join:function(e,t,r){return e.split(t).join(r)},_format:function(e,t){for(var r=e,n=0;n<t.length;n++){var a=RegExp("\\{"+n+"\\}","g");r=r.replace(a,t[n])}return r},_padZero:function(e,t,r){for(var n=e.toString(),a=n.length;a<t;a++)n=r?"0"+n:n+"0";return n},_padZeroLeft:function(e,r){return t._StringHelper._padZero(e,r,!0)},_padZeroRight:function(e,r){return t._StringHelper._padZero(e,r,!1)},_compareStringIgnoreCase:function(e,t){return e===t||!e&&!t||e&&t&&e.toLowerCase()===t.toLowerCase()},_toUpperCase:function(e){return e.toUpperCase()},_escapeHtml:function(e){var t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},r=n._RegexHelper._getReg("(?:&|<|>|\"|'|`)");return r.test(e)?e.replace(r,(function(e){return t[e]})):e},_unescapeHtml:function(e){var t={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#x27;":"'","&#x60;":"`"},r=n._RegexHelper._getReg("(?:&amp;|&lt;|&gt;|&quot;|&#x27;|&#x60;)");return r.test(e)?e.replace(r,(function(e){return t[e]})):e},_escapeJavascript:function(e){for(var t=e,r=/javascript:/gi;t.match(r);)t=t.replace(r,"");return t}}},534:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t._Types=void 0;var r="undefined"!=typeof window?window.File:null,n="undefined"!=typeof window?window.Blob:null;t._Types={_class2type:null,_each:function(e,r){if(t._Types._isArraylike(e))for(var n=0,a=e.length;n<a&&!1!==r.call(e[n],n,e[n]);n++);else for(var i in e)if(e.hasOwnProperty(i)&&!1===r.call(e[i],i,e[i]))break;return e},_isEmptyObject:function(e){return!e||"object"==typeof e&&0===Object.keys(e).length},_isFunction:function(e){return"function"===t._Types._getType(e)},_isArray:function(e){return Array.isArray?Array.isArray(e):"array"===t._Types._getType(e)},_isNumeric:function(e){return t._Types._isString(e)&&(e=parseFloat(e)),!isNaN(e)&&isFinite(e)},_isString:function(e){return"string"==typeof e},_getType:function(e){if(null===e)return"null";var r=t._Types._class2type;if(!r){r=t._Types._class2type={};for(var n=["Boolean","Number","String","Function","Array","Date","RegExp","Object","Error"],a=0,i=n.length;a<i;a++)r["[object "+n[a]+"]"]=n[a].toLowerCase()}var o=r.toString,s=typeof e;return"object"===s||"function"===s?r[o.call(e)]||"object":s},_inArray:function(e,r,n){var a;if(r){var i=[].indexOf;if(i)return i.call(r,e,n);for(a=r.length,t._Types._isNullOrUndefined(n)&&(n=0),n=n<0?Math.max(0,a+n):n;n<a;n++)if(n in r&&r[n]===e)return n}return-1},_merge:function(e,t){var r=t.length,n=e.length,a=0;if("number"==typeof r)for(;a<r;a++)e[n]=t[a],n++;else for(;void 0!==t[a];)e[n]=t[a],n++,a++;return e.length=n,e},_map:function(e,r,n){var a,i=[];if(t._Types._isArraylike(e))for(var o=0,s=e.length;o<s;o++)null!==(a=r(e[o],o,n))&&(i[i.length]=a);else{var u=void 0;for(u in e)e.hasOwnProperty(u)&&null!==(a=r(e[u],u,n))&&(i[i.length]=a)}return i.concat([])},_extend:function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var n,a,i,o,s,u,l=e[0]||{},c=1,m=e.length,y=!1;for("boolean"==typeof l&&(y=l,l=e[1]||{},c=2),"object"==typeof l||t._Types._isFunction(l)||(l={}),m===c&&(l=this,--c);c<m;c++)if(s=e[c],!t._Types._isNullOrUndefined(s))for(o in s)n=l[o],l!==(i=s[o])&&(a=t._Types._isArray(i),y&&i&&(t._Types._isPlainObject(i)||a)?(u=a?n&&t._Types._isArray(n)?n:[]:n&&t._Types._isPlainObject(n)?n:{},l[o]=t._Types._extend(y,u,i)):void 0!==i&&(l[o]=i));return l},_inherit:function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n},_isWindow:function(e){return null!==e&&e===e.window},_isPlainObject:function(e){if(!e||"object"!==t._Types._getType(e)||e.nodeType||t._Types._isWindow(e))return!1;var r,n={}.hasOwnProperty;try{if(e.constructor&&!n.call(e,"constructor")&&!n.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(e){return!1}for(r in e);return void 0===r||n.call(e,r)},_isArraylike:function(e){if(t._Types._isNullOrUndefined(e))return!1;var r=e.length,n=t._Types._getType(e);return!t._Types._isWindow(e)&&(!(1!==e.nodeType||!r)||"array"===n||"function"!==n&&(0===r||"number"==typeof r&&r>0&&r-1 in e))},_makeArray:function(e,r){var n=r||[];return null!==e&&(t._Types._isArraylike(Object(e))?t._Types._merge(n,"string"==typeof e?[e]:e):[].push.call(n,e)),n},_isType:null,_isNullOrUndefined:function(e){return null==e},_isNumber:null,_toDouble:null,_cloneObject:function(e){if(!e)return e;if("number"==typeof e||"string"==typeof e||"boolean"==typeof e||t._Types._isNullOrUndefined(e))return e;if(e.clone)return e.clone();if(e instanceof Date)return new Date(e.valueOf());var a,i,o;if(r&&e instanceof r)return new r([e],e.name,{type:e.type,lastModified:e.lastModified});if(n&&e instanceof n)return new n([e],{type:e.type});for(i in a=e instanceof Object?new e.constructor:new e.constructor(e.valueOf()),e)e.hasOwnProperty(i)&&(o=e[i],e.hasOwnProperty(i)&&a[i]!==o&&(a[i]="object"==typeof o?t._Types._cloneObject(o):o));return a}}},612:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Exp_Separator=t.Exp_InvalidCast=t.Exp_InvalidNumberFormat=t.Exp_BadFormatSpecifier=t.Exp_InvalidNumberGroupSize=t.Exp_InvalidSemicolons=t.Exp_InvalidExponentFormat=t.Exp_InvalidDateFormat=void 0,t.Exp_InvalidDateFormat="Invalid date format pattern",t.Exp_InvalidExponentFormat="invalid exponent format",t.Exp_InvalidSemicolons="invalid format : too many semicolons",t.Exp_InvalidNumberGroupSize="NumberGroupSize must be between 1 and 9, except for the last element, which can be zero.",t.Exp_BadFormatSpecifier="Bad Format Specifier",t.Exp_InvalidNumberFormat="Invalid number format pattern",t.Exp_InvalidCast="InvalidCastException",t.Exp_Separator="numberDecimalSeparator, listSeparator and arrayListSeparator should be different in culture info."},479:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.UUIDGenerator=void 0;var r=function(){function e(){}return e.wrap=function(e){return"{".concat(e.toUpperCase(),"}")},e.uuidv4=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))},e.secureUUID=function(){return"undefined"!=typeof crypto&&crypto.randomUUID?crypto.randomUUID():this.uuidv4()},e.secureUpperCaseUUID=function(){return this.wrap(this.secureUUID())},e.isValidUpperCaseUUID=function(e){return/^\{[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}\}$/i.test(e)},e}();t.UUIDGenerator=r},814:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.UndoManager=t.CommandManager=t.Key=void 0;var n=r(536);Object.defineProperty(t,"Key",{enumerable:!0,get:function(){return n.Key}}),Object.defineProperty(t,"CommandManager",{enumerable:!0,get:function(){return n.CommandManager}});var a=r(748);Object.defineProperty(t,"UndoManager",{enumerable:!0,get:function(){return a.UndoManager}})},536:function(e,t){var r;Object.defineProperty(t,"__esModule",{value:!0}),t.CommandManager=t.Key=void 0,function(e){e[e.left=37]="left",e[e.right=39]="right",e[e.up=38]="up",e[e.down=40]="down",e[e.tab=9]="tab",e[e.enter=13]="enter",e[e.shift=16]="shift",e[e.ctrl=17]="ctrl",e[e.space=32]="space",e[e.altkey=18]="altkey",e[e.home=36]="home",e[e.end=35]="end",e[e.pup=33]="pup",e[e.pdn=34]="pdn",e[e.backspace=8]="backspace",e[e.del=46]="del",e[e.esc=27]="esc",e[e.a=65]="a",e[e.c=67]="c",e[e.v=86]="v",e[e.x=88]="x",e[e.z=90]="z",e[e.y=89]="y"}(r=t.Key||(t.Key={}));var n=function(){function e(e,t,r){this._owner=e,this._cmdDef=t,this._name=r;var n,a=this;Object.defineProperty(a,"shortcutKey",{get:function(){return a._shortcutKey},set:function(e){var t=a._shortcutKey;if(t!==e){var r=(n=a._owner._shortcutKeys)[t];if(r){var i=r.indexOf(a);i>=0&&r.splice(i,1)}a._shortcutKey=e,e&&((r=n[e])||(n[e]=r=[]),r.splice(0,0,a))}}})}return e.prototype.canUndo=function(){return this._cmdDef.canUndo},e.prototype.execute=function(e,t,r){var n,a,i=!0,o=!0;if(this._cmdDef&&t){var s={command:t,result:a,_actionType:r,actionType:r,metaData:null===(n=this._cmdDef)||void 0===n?void 0:n.metaData,r:null,isBefore:!0};this._owner._triggerInternalListener(s),s.r&&(o=!1,a=!1)}if(o){try{i=!1!==(a=(this._cmdDef.execute||this._cmdDef)(e,t,1===r))}catch(e){i=!1}t&&i&&this._owner._commandExecuted({command:this._getCmdOptions(t),result:a,_actionType:r,actionType:r})}if(this._owner&&t){var u={command:t,result:a,_actionType:r,actionType:r,isBefore:!1};this._owner._triggerInternalListener(u)}return a},e.prototype._getCmdOptions=function(e){return e&&!e.cmd&&(e.cmd=this._name),e},e}(),a=function(){function e(e){this._context=e,this._listeners={},this._internalListeners={},this._afterInternalListeners={},this._shortcutKeys={}}return e.prototype.register=function(e,t,r,a,i,o,s){var u=new n(this,t,e);this[e]=u,r&&(u.shortcutKey=this.getShortcutKey(r,a,i,o,s))},e.prototype.getCommand=function(e){return this[e]},e.prototype.execute=function(e){var t=this[e.cmd];if(t)return t.execute(this._context,e,0)},e.prototype.setShortcutKey=function(e,t,r,n,a,i){if(e){var o=this[e];o&&(o.shortcutKey=this.getShortcutKey(t,r,n,a,i))}else{var s=this.getShortcutKey(t,r,n,a,i),u=this.getCommands(s);if(u)for(var l=u.length-1;l>=0;l--)u[l].shortcutKey=void 0}},e.prototype.getShortcutKey=function(e,t,n,a,i){if(e){var o=65<=e&&e<=90?String.fromCharCode(e):r[e];return o||(o=e),o+(t?"+ctrl":"")+(n?"+shift":"")+(a?"+alt":"")+(i?"+window":"")}},e.prototype.getCommands=function(e){return this._shortcutKeys[e]},e.prototype.addListener=function(e,t){this._listeners[e]=t},e.prototype.removeListener=function(e){delete this._listeners[e]},e.prototype._commandExecuted=function(e){var t=this._listeners;for(var r in t)t.hasOwnProperty(r)&&t[r](e)},e.prototype._addInternalListener=function(e,t){this._internalListeners[e]=t},e.prototype._removeInternalListener=function(e){delete this._internalListeners[e]},e.prototype._triggerInternalListener=function(e){var t=this._internalListeners;for(var r in t)t.hasOwnProperty(r)&&t[r](e)},e.prototype._dispose=function(){this._context=null},e}();t.CommandManager=a},748:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.UndoManager=void 0;var r=function(){function e(e,t,r){this._context=e,t<0&&(t=2147483647),this._maxLength=t,this._allowUndo=r,this._undoStack=[],this._redoStack=[],this._hasNewChange=!1}return e.prototype._addCommand=function(e,t){if(e){if(1===t)this._redoStack.push(e);else{var r=this._maxLength,n=this._undoStack.length;if(r>0&&n>=r)for(var a=0;a<n-r+1;a++)this._undoStack.shift();this._undoStack.push(e),0===t&&(this._redoStack=[])}this._hasNewChange=!0}},e.prototype.canUndo=function(){return this._undoStack.length>0},e.prototype.undo=function(){var e=this._undoStack,t=!0;if(this._allowUndo&&this.canUndo()){var r=e[e.length-1];try{var n=this._context.commandManager()[r.cmd];n&&(r._fromUndoManager=!0,t=n.execute(this._context,r,1))}catch(e){t=!1}delete r._fromUndoManager,!1!==t&&(e.pop(),this._hasNewChange=!0,this._redoStack.push(r))}return t},e.prototype.canRedo=function(){return this._redoStack.length>0},e.prototype.redo=function(){var e=this._redoStack,t=!0;if(this._allowUndo&&this.canRedo()){var r=e[e.length-1];try{var n=this._context.commandManager()[r.cmd];n&&(r._fromUndoManager=!0,t=n.execute(this._context,r,2))}catch(e){t=!1}delete r._fromUndoManager,!1!==t&&(e.pop(),this._hasNewChange=!0,this._undoStack.push(r))}return t},e.prototype.getRedoStack=function(){return this._redoStack.slice()},e.prototype.getUndoStack=function(){return this._undoStack.slice()},e.prototype.maxSize=function(e){return arguments.length<1?this._maxLength:(e>=0&&(this._maxLength=e),this)},e.prototype.clear=function(){this._undoStack=[],this._redoStack=[]},e.prototype._filter=function(e){this._undoStack=this._undoStack.filter(e),this._redoStack=this._redoStack.filter(e)},e.prototype._dispose=function(){this._context=null},e.prototype.setNewChangeStatus=function(e){this._hasNewChange=e},e.prototype.getNewChangeStatus=function(){return this._hasNewChange},e}();t.UndoManager=r},569:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var a=Object.getOwnPropertyDescriptor(t,r);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,a)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),a=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),a(r(2),t)},498:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Exp_InvalidCast=t.Exp_ValueIllegal=t.Exp_TokenIllegal=t.Exp_DuplicatedDescriptor=t.Exp_ValueIsNull=t.Exp_FormatIllegal=t.Exp_InvalidBackslash=t.Exp_TokenIsNull=void 0,t.Exp_TokenIsNull="token is null",t.Exp_InvalidBackslash="the '\\' cannot be evaluated",t.Exp_FormatIllegal="format is illegal.",t.Exp_ValueIsNull="value is null",t.Exp_DuplicatedDescriptor="The type of descriptor was added.",t.Exp_TokenIllegal="token is illegal.",t.Exp_ValueIllegal="value is illegal.",t.Exp_InvalidCast="InvalidCastException"},2:function(e,t,r){var n,a=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+t+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.GeneralFormatter=t._NumberFormatDateTime=t.FormatterBase=void 0;var i=r(480),o=r(97),s=r(534),u=r(844),l=r(286),c=r(818),m=r(498),y=r(810),h=r(61);s._Types._extend(c.SR.en,m);var f=new c.ResourceManager(c.SR),d=f.getResource.bind(f);s._Types._isType=function(e,t){if(s._Types._isNullOrUndefined(e))return"null"===t;if(!t)return!1;if(t instanceof Function&&e instanceof t)return!0;if(typeof e===t)return!0;if("function"===t&&/^\s*\bfunction\b/.test(""+e))return!0;if(Object.prototype.toString.call(e).slice(8,-1).toLowerCase()===t.toLowerCase())return!0;if("DateTime"===t)return e instanceof Date;if("TimeSpan"===t){if(e instanceof Date){var r=o._DateTimeHelper._toOADate(e);return r>=0&&r<1}return!1}return!1},s._Types._isNumber=function(e,t){return!!u._NumberHelper._isValidCultureNumberString(e,t)&&("string"!=typeof e||-1===e.search(/[\r\n\t]/g))&&(e=u._NumberHelper._replaceCultureSymbolToNormal(e,t),s._Types._isType(e,"number")||s._Types._isType(e,"DateTime")||s._Types._isType(e,"TimeSpan")||e&&!s._Types._isType(e,"boolean")&&!isNaN(e)&&!isNaN(parseFloat(e))&&!(e.length>=2&&"0"===e[0]&&"x"===e[1]))},s._Types._toDouble=function(e){return s._Types._isNullOrUndefined(e)||""===e?0:s._Types._isType(e,"number")?e:s._Types._isType(e,"string")&&!isNaN(e)?u._NumberHelper._parseLocale(e):s._Types._isType(e,"boolean")?e?1:0:s._Types._isType(e,"DateTime")?o._DateTimeHelper._toOADate(e):s._Types._isType(e,"TimeSpan")?Math.floor(o._DateTimeHelper._toOADate(e)):parseFloat(e)};var p=null,_=Math.abs,g={_yearTwoDigit:"yy",_yearSingleDigit:"y",_yearFourDigit:"yyyy",_monthSingleDigit:"m",_monthTwoDigit:"mm",_monthAbbreviation:"mmm",_monthUnabbreviated:"mmmm",_monthJD:"mmmmm",_daySingleDigit:"d",_dayTwoDigit:"dd",_dayWeekDayAbbreviation:"aaa",_dayWeekDayUnabbreviated:"aaaa",_hoursSingleDigit:"h",_hoursTwoDigit:"hh",_minuteSingleDigit:"m",_minuteTwoDigit:"mm",_secondSingleDigit:"s",_secondTwoDigit:"ss",_eraYear:"e",_aMPMTwoDigit:"AM/PM",_aMPMSingleDigit:"A/P",_placeholderMonthJD:"@mmmmm",_defaultAbsoluteTime:new Date(1899,11,30,0,0,0,0)},M=[g._yearSingleDigit,g._yearTwoDigit,g._yearFourDigit,g._monthSingleDigit,g._monthTwoDigit,g._monthAbbreviation,g._monthUnabbreviated,g._monthJD,g._daySingleDigit,g._dayTwoDigit,g._dayWeekDayAbbreviation,g._dayWeekDayUnabbreviated,g._hoursSingleDigit,g._hoursTwoDigit,g._minuteSingleDigit,g._minuteTwoDigit,g._secondSingleDigit,g._secondTwoDigit,"ggg","gg","g","ee","e"],v={_positive:0,_negative:1,_zero:2,_text:3},b=[{_positive:0,_negative:0,_zero:0,_text:0},{_positive:0,_negative:1,_zero:0,_text:0},{_positive:0,_negative:1,_zero:2,_text:0},{_positive:0,_negative:1,_zero:2,_text:3}],F=RegExp("([.+?*$^\\[\\](){}|/])","g"),S=[["M/d","MMM/d","MMMM/d","d/M","d/MMM","d/MMMM","M-d","MMM-d","MMMM-d","d-M","d-MMM","d-MMMM"],["M/y","MMM/y","M/yyyy","MMM/yyyy","M-y","MMM-y","M-yyyy","MMM-yyyy"],["M/d/y","MMM/d/y","MMMM/d/y","M/d/yyyy","MMM/d/yyyy","MMMM/d/yyyy","d/M/y","d/MMM/y","d/MMMM/y","d/M/yyyy","d/MMM/yyyy","d/MMMM/yyyy","yyyy/M/d","M-d-y","MMM-d-y","MMMM-d-y","M-d-yyyy","MMM-d-yyyy","MMMM-d-yyyy","d-M-y","d-MMM-y","d-MMMM-y","d-M-yyyy","d-MMM-yyyy","d-MMMM-yyyy","yyyy-M-d"],["H:m","h:m tt"],["H:m:s","H:m:s"],["H:m:s.FFF","h:m:s.FFF tt"],["h:m:s tt","h:mm:ss tt"],["M/d H:m","MMM/d H:m","MMMM/d H:m","d/M H:m","d/MMM H:m","d/MMMM H:m","M/y H:m","MMM/y H:m","M/yyyy H:m","MMM/yyyy H:m","M/d/y H:m","MMM/d/y H:m","MMMM/d/y H:m","M/d/yyyy H:m","MMM/d/yyyy H:m","MMMM/d/yyyy H:m","M-d H:m","MMM-d H:m","MMMM-d H:m","d-M H:m","d-MMM H:m","d-MMMM H:m","M-y H:m","MMM-y H:m","M-yyyy H:m","MMM-yyyy H:m","M-d-y H:m","MMM-d-y H:m","MMMM-d-y H:m","M-d-yyyy H:m","MMM-d-yyyy H:m","MMMM-d-yyyy H:m","M/d h:m tt","MMM/d h:m tt","MMMM/d h:m tt","d/M h:m tt","d/MMM h:m tt","d/MMMM h:m tt","M/y h:m tt","MMM/y h:m tt","M/yyyy h:m tt","MMM/yyyy h:m tt","M/d/y h:m tt","MMM/d/y h:m tt","MMMM/d/y h:m tt","M/d/yyyy h:m tt","MMM/d/yyyy h:m tt","MMMM/d/yyyy h:m tt","M-d h:m tt","MMM-d h:m tt","MMMM-d h:m tt","d-M h:m tt","d-MMM h:m tt","d-MMMM h:m tt","M-y h:m tt","MMM-y h:m tt","M-yyyy h:m tt","MMM-yyyy h:m tt","M-d-y h:m tt","MMM-d-y h:m tt","MMMM-d-y h:m tt","M-d-yyyy h:m tt","MMM-d-yyyy h:m tt","MMMM-d-yyyy h:m tt","d/M/y H:m","d/MMM/y H:m","d/MMMM/y H:m","d/M/yyyy H:m","d/mmm/yyyy H:m","d/MMMM/yyyy H:m","yyyy/M/d H:m","d-M-y H:m","d-MMM-y H:m","d-MMMM-y H:m","d-M-yyyy H:m","d-MMM-yyyy H:m","d-MMMM-yyyy H:m","yyyy-M-d H:m","d/M/y h:m tt","d/MMM/y h:m tt","d/MMMM/y h:m tt","d/M/yyyy h:m tt","d/mmm/yyyy h:m tt","d/MMMM/yyyy h:m tt","yyyy/M/d h:m tt","d-M-y h:m tt","d-MMM-y h:m tt","d-MMMM-y h:m tt","d-M-yyyy h:m tt","d-MMM-yyyy h:m tt","d-MMMM-yyyy h:m tt","yyyy-M-d h:m tt"],["M/d H:m:s","MMM/d H:m:s","MMMM/d H:m:s","d/M H:m:s","d/MMM H:m:s","d/MMMM H:m:s","M/y H:m:s","MMM/y H:m:s","M/yyyy H:m:s","MMM/yyyy H:m:s","M/d/y H:m:s","MMM/d/y H:m:s","MMMM/d/y H:m:s","M/d/yyyy H:m:s","MMM/d/yyyy H:m:s","MMMM/d/yyyy H:m:s","d/M/y H:m:s","d/MMM/y H:m:s","d/MMMM/y H:m:s","d/M/yyyy H:m:s","d/MMM/yyyy H:m:s","d/MMMM/yyyy H:m:s","yyyy/M/d H:m:s","M-d H:m:s","MMM-d H:m:s","MMMM-d H:m:s","d-M H:m:s","d-MMM H:m:s","d-MMMM H:m:s","M-y H:m:s","MMM-y H:m:s","M-yyyy H:m:s","MMM-yyyy H:m:s","M-d-y H:m:s","MMM-d-y H:m:s","MMMM-d-y H:m:s","M-d-yyyy H:m:s","MMM-d-yyyy H:m:s","MMMM-d-yyyy H:m:s","d-M-y H:m:s","d-MMM-y H:m:s","d-MMMM-y H:m:s","d-M-yyyy H:m:s","d-MMM-yyyy H:m:s","d-MMMM-yyyy H:m:s","yyyy-M-d H:m:s","M/d h:m:s tt","MMM/d h:m:s tt","MMMM/d h:m:s tt","d/M h:m:s tt","d/MMM h:m:s tt","d/MMMM h:m:s tt","M/y h:m:s tt","MMM/y h:m:s tt","M/yyyy h:m:s tt","MMM/yyyy h:m:s tt","M/d/y h:m:s tt","MMM/d/y h:m:s tt","MMMM/d/y h:m:s tt","M/d/yyyy h:m:s tt","MMM/d/yyyy h:m:s tt","MMMM/d/yyyy h:m:s tt","d/M/y h:m:s tt","d/MMM/y h:m:s tt","d/MMMM/y h:m:s tt","d/M/yyyy h:m:s tt","d/MMM/yyyy h:m:s tt","d/MMMM/yyyy h:m:s tt","yyyy/M/d h:m:s tt","M/d/yyyy h:mm:ss tt","M-d h:m:s tt","MMM-d h:m:s tt","MMMM-d h:m:s tt","d-M h:m:s tt","d-MMM h:m:s tt","d-MMMM h:m:s tt","M-y h:m:s tt","MMM-y h:m:s tt","M-yyyy h:m:s tt","MMM-yyyy h:m:s tt","M-d-y h:m:s tt","MMM-d-y h:m:s tt","MMMM-d-y h:m:s tt","M-d-yyyy h:m:s tt","MMM-d-yyyy h:m:s tt","MMMM-d-yyyy h:m:s tt","d-M-y h:m:s tt","d-MMM-y h:m:s tt","d-MMMM-y h:m:s tt","d-M-yyyy h:m:s tt","d-MMM-yyyy h:m:s tt","d-MMMM-yyyy h:m:s tt","yyyy-M-d h:m:s tt","M/d/yyyy H:m:s","M-d-yyyy H:m:s","M/d/yyyy h:m:s tt","M-d-yyyy H:m:s tt"],["M/d H:m:s.FFF","MMM/d H:m:s.FFF","MMMM/d H:m:s.FFF","d/M H:m:s.FFF","d/MMM H:m:s.FFF","d/MMMM H:m:s.FFF","M/y H:m:s.FFF","MMM/y H:m:s.FFF","M/yyyy H:m:s.FFF","MMM/yyyy H:m:s.FFF","M/d/y H:m:s.FFF","MMM/d/y H:m:s.FFF","MMMM/d/y H:m:s.FFF","MMM/d/yyyy H:m:s.FFF","MMMM/d/yyyy H:m:s.FFF","d/M/y H:m:s.FFF","d/MMM/y H:m:s.FFF","d/MMMM/y H:m:s.FFF","d/M/yyyy H:m:s.FFF","d/MMM/yyyy H:m:s.FFF","d/MMMM/yyyy H:m:s.FFF","yyyy/M/d H:m:s.FFF","M-d H:m:s.FFF","MMM-d H:m:s.FFF","MMMM-d H:m:s.FFF","d-M H:m:s.FFF","d-MMM H:m:s.FFF","d-MMMM H:m:s.FFF","M-y H:m:s.FFF","MMM-y H:m:s.FFF","M-yyyy H:m:s.FFF","MMM-Yyyy H:m:s.FFF","M-d-y H:m:s.FFF","MMM-d-y H:m:s.FFF","MMMM-d-y H:m:s.FFF","MMM-d-yyyy H:m:s.FFF","MMMM-d-yyyy H:m:s.FFF","D-M-y H:m:s.FFF","d-MMM-y H:m:s.FFF","d-MMMM-y H:m:s.FFF","D-M-yyyy H:m:s.FFF","d-MMM-yyyy H:m:s.FFF","d-MMMM-yyyy H:m:s.FFF","yyyy-M-d H:m:s.FFF","M/d h:m:s.FFF tt","MMM/d h:m:s.FFF tt","MMMM/d h:m:s.FFF tt","d/M h:m:s.FFF tt","d/MMM h:m:s.FFF tt","d/MMMM h:m:s.FFF tt","M/y h:m:s.FFF tt","MMM/y h:m:s.FFF tt","M/yyyy h:m:s.FFF tt","MMM/yyyy h:m:s.FFF tt","M/d/y h:m:s.FFF tt","MMM/d/y h:m:s.FFF tt","MMMM/d/y h:m:s.FFF tt","MMM/d/yyyy h:m:s.FFF tt","MMMM/d/yyyy h:m:s.FFF tt","d/M/y h:m:s.FFF tt","d/MMM/y h:m:s.FFF tt","d/MMMM/y h:m:s.FFF tt","d/M/yyyy h:m:s.FFF tt","d/MMM/yyyy h:m:s.FFF tt","d/MMMM/yyyy h:m:s.FFF tt","yyyy/M/d h:m:s.FFF tt","M-d h:m:s.FFF tt","MMM-d h:m:s.FFF tt","MMMM-d h:m:s.FFF tt","d-M h:m:s.FFF tt","d-MMM h:m:s.FFF tt","d-MMMM h:m:s.FFF tt","M-y h:m:s.FFF tt","MMM-y h:m:s.FFF tt","M-yyyy h:m:s.FFF tt","MMM-Yyyy h:m:s.FFF tt","M-d-y h:m:s.FFF tt","MMM-d-y h:m:s.FFF tt","MMMM-d-y h:m:s.FFF tt","MMM-d-yyyy H:m:s.FFF tt","MMMM-d-yyyy h:m:s.FFF tt","d-M-y h:m:s.FFF tt","d-MMM-y h:m:s.FFF tt","d-MMMM-y h:m:s.FFF tt","d-M-yyyy h:m:s.FFF tt","d-MMM-yyyy h:m:s.FFF tt","d-MMMM-yyyy h:m:s.FFF tt","yyyy-M-d h:m:s.FFF tt"]],D=["#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"],x=RegExp("color\\s*(\\d+)","i"),C=s._Types._isType,T=s._Types._isArray,N=u._NumberHelper,H=N._generalNumberInt+"."+N._generalNumberDec,E=N._formatObjectToString,P=N._customCultureFormat,O=N._fixNumber,w=s._Types._isNullOrUndefined,k=isNaN,I=function(e){return l.CultureManager._getCultureInfo(e)},A=function(e){return I(e).DateTimeFormat},$=function(e){return I(e).NumberFormat},R=function(e){return e&&e.toLowerCase()},U=function(){throw Error(d().Exp_FormatIllegal)},B=function(){return l.CultureManager.booleanMapping},L={_Empty:"",_format:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];if(0===arguments.length)return p;for(var a=r[0],i=1;i<arguments.length;i++){var o=RegExp("\\{"+(i-1)+"\\}","gm");a=a.replace(o,arguments[i])}return a},_isNullOrEmpty:function(e){return!e||e===L._Empty}},j=function(e){var t=e.charCodeAt(0);return t>=48&&t<=57},G=function(e){var t=e.charCodeAt(0);return t>=9&&t<=13||32===t||133===t||160===t},Y=function(){function e(e,t){ye.call(this,t);this._content=e;var r=this._content,n=ue(r[0],"$",!1),a=r.indexOf("-");if(!(n&&a>-1))throw Error(d().Exp_TokenIllegal);this._currencySymbol=ee(r,1,a-1),(r=i._StringHelper._remove(r,0,a+1)).length>0&&(this._locateID=parseInt(r,16))}return e.prototype.cultureInfo=function(){return this._cultureInfo||(this._cultureInfo=I(this._locateID)),this._cultureInfo},e.prototype.currencySymbol=function(){return this._currencySymbol?i._StringHelper._replace(this._currencySymbol,"\\.",'"."'):L._Empty},e.prototype.allowScience=function(){if(this._cultureInfo)return!this._cultureInfo.isJCKCulture},e.prototype.toString=function(){return this._content?ne(this._content):L._Empty},e.Name="LocaleIDFormatPart",e}(),z=function(){function e(e,t){this.formatCached=e,this.cultureName=t,this.typeName=""}return e.prototype.format=function(e,t){return p},e.prototype.parse=function(e){return p},e.prototype.formatString=function(e){return this.formatCached},e.prototype.toJSON=function(){var e={};for(var t in this)this.hasOwnProperty(t)&&(e[t]=this[t]);return e},e.prototype.fromJSON=function(e){if(e)for(var t in e)void 0!==e[t]&&(this[t]=e[t])},e}();t.FormatterBase=z;var K=function(){function e(e,t){ye.call(this,t);for(var r,n,a,o=this,s=["<=","<>",">=",">","<","="],u=0,l=s.length;u<l;u++)if(r=s[u],i._StringHelper._startsWith(e,r,!0)){n=i._StringHelper._remove(e,0,r.length);var c=parseFloat(n);k(c)||(a=c);break}if(a===p&&void 0===a)throw Error(d().Exp_TokenIllegal);o.value=a,o._compareOperator=r,o.isMeetCondition=function(e){var t=o._compareOperator,r=o.value;switch(t){case"<=":return e<=r;case"<>":return e!==r;case">=":return e>=r;case">":return e>r;case"<":return e<r;case"=":return e===r}}}return e.prototype.toString=function(){return ne(this._compareOperator+this.value.toString())},e}(),W=function(){function e(e,t){ye.call(this,t);if(this.token=e,this.type=parseInt(i._StringHelper._remove(e,0,5),10),this.type<0||this.type>4)throw Error(d().Exp_TokenIllegal)}return e.prototype._replaceNumberString=function(t,r,n){if(!t||t===L._Empty)return t;for(var a,o,s=t,u=t,l=-1,c=-1,m=!1,y=t.length-1;y>=0;y--){var h=u[y];!k(h)&&!ue(h," ",!1)||ue(h,".",!1)&&!m?(ue(h,".",!1)&&(m=!0),-1===l&&(l=y),c=y):c>-1&&l>-1&&(a=ee(u,c,l-c+1),k(parseFloat(a))||(o=e.numberString(a,r,n),s=i._StringHelper._remove(s,c,l-c+1),s=i._StringHelper._insert(s,c,o)),l=-1,c=-1,m=!1)}return c>-1&&l>-1&&(a=ee(u,c,l-c+1),k(parseFloat(a))||(o=e.numberString(a,r,n),s=i._StringHelper._remove(s,c,l-c+1),s=i._StringHelper._insert(s,c,o))),s},e.prototype.toString=function(){if(this.type>-1)return ne("DBNum"+this.type);throw Error()},e.numberString=function(t,r,n){var a=e.formatNumberString,i=t.split(".");if(i){if(1===i.length)return a(i[0],r.numbers,n?r.letters:p);if(2===i.length)return a(i[0],r.numbers,n?r.letters:p)+"."+a(i[1],r.numbers)}throw Error(d().Exp_ValueIllegal)},e.formatNumberString=function(t,r,n){var a,i=t,o=0,s=0;if(2===arguments.length){for(var u="";o<i.length;o++)a=ee(i,o,1),u+=r[s=parseInt(a,10)];return u}if(3===arguments.length){if(!n)return e.formatNumberString(t,r);for(var l=0,c="",m=i.length,y=!1,h=[];o<m;o++){var f=n.length-1-o;f>-1?h.push(n[f].toString()):h.push(L._Empty)}for(var d=[],p=h.length-1;p>=0;p--)d[h.length-p-1]=h[p];h=d;var _=!1;for(p=0;p<m;p++){a=ee(i,p,1),s=parseInt(a,10);var g=void 0,M=L._Empty;m-p-16>0?(g=r[s],M="",_=!0):p!==m-1&&p!==m-5&&p!==m-9&&p!==m-13?"0"===a?(g="",M="",l+=1):"0"!==a&&0!==l?(g=r[0]+r[s],M=h[p],l=0):(g=r[s],M=h[p],l=0):"0"!==a&&0!==l?(g=r[0]+r[s],M=h[p],l=0):"0"!==a&&0===l||_?(g=r[s],M=h[p],l=0,_=!1):"0"===a&&l>=3?(g="",M="",l+=1):m>=11?(g="",l+=1):(g="",M=h[p],l+=1),g+M===L._Empty||(y=!1),p!==m-13||y||(M=h[p],y=!0),p!==m-9||y||(M=h[p],y=!0),p===m-1&&(M=h[p],y=!0),c=c+g+M}return 0===parseInt(t,10)?r[0]:c}},e}(),X=function(){function e(e,t,r,n,a,i){me.call(this,t,r,n,i);this._formatString=this._fixFormat(le(e)),this._absTimeParts=a,this._formatType=2,this._init()}return e.prototype._init=function(){var t={_value:this._formatString};if(e._evaluateFormat(t._value)){var r=this._processAMPM(t),n=A(this.cultureName).amDesignator&&A(this.cultureName).pmDesignator;if(this.hasJD=this._replace(t._value,g._monthJD,'"'+g._placeholderMonthJD+'"',!0,!1,t,!1),this._replace(t._value,g._monthUnabbreviated,"MMMM",!0,!1,t,!1),this._replace(t._value,g._monthAbbreviation,"MMM",!0,!1,t,!1),this._replaceMonth(t._value,t),this._replace(t._value,g._dayWeekDayAbbreviation,"ddd",!0,!0,t,!0),this._replace(t._value,g._dayWeekDayUnabbreviated,"dddd",!0,!0,t,!0),r&&n||(this._replace(t._value,g._hoursSingleDigit,"H",!0,!0,t,!1),this._replace(t._value,g._hoursTwoDigit,"HH",!0,!0,t,!1)),this._partDBNumberFormat&&(this._partLocaleID||I(this.cultureName).NumberFormat.dbNumber)&&(this._hasYearDelay=this._hasYearDelay||this._replace(t._value,g._yearFourDigit,'"@'+g._yearFourDigit+'"',!0,!1,t,!0),this._hasYearDelay=this._hasYearDelay||this._replace(t._value,g._yearTwoDigit,'"@'+g._yearTwoDigit+'"',!0,!1,t,!0)),this._absTimeParts)for(var a=0;a<this._absTimeParts.length;a++){var i=this._absTimeParts[a];this._replace(t._value,i._originalToken,"@"+i._originalToken,!0,!0,t,!0)}this._validDateTimeFormatString=t._value}else U()},e.prototype.formatString=function(){return this._formatString},e.prototype.format=function(e){var t=L._Empty,r=p;try{if((r=o._DateTimeHelper._DT(e))&&k(r.valueOf())&&(r=p),r?e=r:t=e.toString(),r){if(t=o._DateTimeHelper._customCultureFormat(r,this._validDateTimeFormatString,this._partLocaleID&&this._partLocaleID.cultureInfo()||I(this.cultureName),this._isShowEraFirstYear),this.hasJD){var n=I(this.cultureName).DateTimeFormat.monthNames[r.getMonth()];t=i._StringHelper._replace(t,g._placeholderMonthJD,ee(n,0,1))}if(this._absTimeParts)for(var a=24*(o._DateTimeHelper._toOADate(r)-o._DateTimeHelper._toOADate(g._defaultAbsoluteTime))*60*60*1e3,s=0;s<this._absTimeParts.length;s++){var u=this._absTimeParts[s],l=u._getTimeSpan(a);if(!w(l)){var c=u._originalToken.replace("[","\\[").replace("]","\\]"),m=u._originalToken.replace("[","").replace("]",""),y=i._StringHelper._padZeroLeft(l+"",m.length);t=i._StringHelper._replace(t,"@"+c,y)}}}}catch(r){t=te(e)}return function(e,t,r,n,a){var i=e;if(!w(n)&&t instanceof Date){var s=fe(r,n.type,a);if(!s)return e;i=n._replaceNumberString(i,s,!0),1===n.type&&(i=i.replace(RegExp("一十","g"),"十")),i=(i=i.replace("@"+g._yearFourDigit,o._DateTimeHelper._localeFormat(t,g._yearFourDigit))).replace("@"+g._yearTwoDigit,o._DateTimeHelper._localeFormat(t,g._yearTwoDigit)),i=n._replaceNumberString(i,s,!1)}return i}(t,e,this._partLocaleID,this._partDBNumberFormat,this.cultureName)},e.prototype.parse=function(e){if(!e||e===L._Empty)return p;var t=e,r=R(t);if("true"===r)return!0;if("false"===r)return!1;if(this._validDateTimeFormatString){var n=o._DateTimeHelper._parseExact(t,this._validDateTimeFormatString,I(this.cultureName));if(n)return n}try{var a=o._DateTimeHelper._DT(t);return a&&!k(a)?a:k((a=new Date(t)).valueOf())?t:a}catch(e){return t}},e.prototype._fixFormat=function(e){for(var t=e,r="",n=!1,a=0;a<t.length;a++){var i=t[a];if('"'===i)n=!n;else if(!n)if("Y"===i||"D"===i||"S"===i||"E"===i||"G"===i)i=R(i);else if("M"===i){var o=t[a-1];ue("A",o,!0)||ue("P",o,!0)||(i=R(i))}r+=i}return r},e.prototype._processAMPM=function(e){var t=A(this.cultureName).amDesignator,r=A(this.cultureName).pmDesignator,n=[g._aMPMTwoDigit];t&&r?n.push(t+"/"+r):n.push(g._aMPMTwoDigit),n.push(g._aMPMSingleDigit);for(var a=["tt","tt","t"],o=e._value,s=0;s<3;s++){if(i._StringHelper._contains(o,a[s]))return!0;if(i._StringHelper._contains(o,n[s],!0))return e._value=i._StringHelper._replace(o,n[s],a[s],!0),!0}return!1},e.prototype._replaceMonth=function(e,t){for(var r=function(e){for(var t=[],r=!1,n=!1,a="",i=function(e,t){return{type:e,content:t}},o=function(e){return!w(e)&&-1!=="yYdDhHmMsSeE".indexOf(e)},s=function(r,n){if(o(r)){for(var a=r,s=e[n+1];o(s)&&s.toLowerCase()===r.toLowerCase()&&(a+=s,n<e.length-1);)n++,s=e[n+1];t.push(i("symbolic",a))}else"a"===r&&"aaa"===e.slice(n,n+3).toLowerCase()?(t.push(i("symbolic",e.slice(n,n+3))),n+=2):t.push(i("text",r));return n},u=0;u<e.length;u++){var l=e[u];if(r)t.push(i("text","\\"+l)),r=!1;else if(n&&'"'!==l)a+=l;else switch(l){case"\\":r=!0;break;case'"':n&&(t.push(i("text",'"'+a+'"')),a=""),n=!n;break;default:u=s(l,u)}}return t}(e),n=-1,a=-1,i=0;i<r.length;i++){var o=r[i];"symbolic"===o.type?"m"===o.content[0].toLowerCase()?n>=0?(o.content=o.content.toLowerCase(),n=-1):(o.content=o.content.toUpperCase(),a=i):"s"===o.content[0].toLowerCase()?a>=0&&(r[a].content=r[a].content.toLowerCase(),a=-1):"h"===o.content[0].toLowerCase()?(n=i,a=-1):a=-1:a>=0&&i>0&&"0"===o.content&&"."===r[i-1].content&&i===a+2&&(r[a].content=r[a].content.toLowerCase())}t._value=r.map((function(e){return e.content})).join("")},e.prototype._replace=function(t,r,n,a,o,s,u){if(a||o){var l=[],c=!0;!e.hasDate(t)&&e.hasTime(t)&&(c=!1);for(var m=!1,y=0;y<t.length;y++){var h=t[y];if(e.hasTime(h)&&!m?c=!1:e.hasDate(h)&&!m&&(c=!0),a&&ue(h,r[0],u)&&c||o&&ue(h,r[0],u)&&!c){for(var f=!0,d=0;d<r.length;d++)if(d+y>=t.length||!ue(r[d],t[d+y],u)){f=!1;break}var p=y+r.length-1;if(f&&p+1<t.length){var _=t[p],g=-1;for(g=p+1;g<t.length&&ue(_,t[g],u);g++);g>p+1&&(y=g,f=!1)}f&&!m&&l.splice(0,0,y)}'"'===h&&(m=!m)}if(s._value=t,l.length>0){for(y=0;y<l.length;y++){var M=l[y];s._value=i._StringHelper._remove(s._value,M,r.length),s._value=i._StringHelper._insert(s._value,M,n)}return!0}return!1}return!1},e.hasTime=function(e){return i._StringHelper._indexOf(e,g._hoursSingleDigit[0],!0)>-1||i._StringHelper._indexOf(e,g._secondSingleDigit[0],!0)>-1},e.hasDate=function(e){return i._StringHelper._indexOf(e,g._yearTwoDigit[0],!0)>-1||i._StringHelper._indexOf(e,g._daySingleDigit[0],!0)>-1},e._evaluateFormat=function(e,t){return ce(e,t||M)},e}();t._NumberFormatDateTime=X;var J=function(){function e(e,t){ye.call(this,t);var r,n=R(e)[0];if("h"===n)r=3600;else if("m"===n)r=60;else{if("s"!==n)throw Error(d().Exp_TokenIllegal);r=1}this._getTimeSpan=function(e){var t=e/1e3/r;return Math.abs(t-Math.round(t))<1e-6?Math.round(t):Math.floor(t)}}return e.Name="ABSTimeFormatPart",e}(),V=function(){function e(e,t){ye.call(this,t);var r=x.exec(e);if(null!==r){var n=Number(r[1]);(n-=1)>=0&&n<D.length&&(e=D[n])}this.foreColor=e}return e.prototype.toString=function(){return ne(this.foreColor)},e.Name="ColorFormatPart",e}(),q=function(){function e(e,t,r,n){me.call(this,t,r,n);this._isGeneralNumber=!1,this._formatType=1,this._fullFormatString=ae(e);var a=le(e);if(t&&(a=oe(a,this._partLocaleID._originalToken,this._partLocaleID.currencySymbol())),(a=ae(a)).indexOf("/")>-1){var i=function(e,t){var r=[];if(e===p||""===e)return r;var n,a,i=!1,o=[],s=!1;for(n=0;n<e.length;n++)'"'!==(a=e[n])||i||(s=!s),i||s||a!==t?o.push(a):(r.push(o.join("")),o=[]),i="\\"===a&&!i;return r.push(o.join("")),r}(a,"/");if(i&&2===i.length){this._fractionDenominatorFormat=i[1];var o=i[0];if(o){var s=o.lastIndexOf(" ");s>-1?(this._fractionIntegerFormat=ee(o,0,s),this._fractionNumeratorFormat=ee(o,s+1,o.length-s-1)):this._fractionNumeratorFormat=o}}}this._numberFormatString=a}return e.prototype.formatString=function(){return this._fullFormatString},e.prototype.format=function(t){if(C(t,"boolean"))return t.toString().toUpperCase();var r=s._Types._toDouble(t);if(k(r)||!isFinite(r)||k(t))return"string"==typeof t?t:p;var n,a,i,o,u,l=I(this.cultureName);if(this._fractionNumeratorFormat&&this._fractionDenominatorFormat){var c={value:0},m={value:0},y={value:0},h=this._getDenominatorLength();if(e.getFraction(r,h,c,m,y)){var f=e.getGCD(m.value,y.value);if(f>1&&(m.value/=f,y.value/=f),this._fractionIntegerFormat){u="",1===y.value&&(c.value+=m.value,m.value=0,y.value=0);var d=E(P(c.value,this._fractionIntegerFormat,l));d&&"0"!==d&&(u+=d,u+=" "),0===c.value&&r<0&&(u+=l.NumberFormat.negativeSign),0===r&&(u+="0"),n=this._fractionDenominatorFormat,!k(a=parseFloat(n))&&a>0&&(0!==m.value&&0!==y.value&&(m.value*=a/y.value),y.value=a,n=n.replace(/^\d+/,e.toNumberPlaceholder(a)),o=(i=Math.ceil(m.value))-m.value,m.value=parseFloat(o<=.5&&o>=0?i.toString():""+(i-1)));var _=this._fractionNumeratorFormat,g=parseFloat(_);if(!k(g)&&0===g){var M=_.length,v=m.value.toString(),b=v.length;M>b?_=_.substr(0,M-(M-b)):M<b&&(v=v.substr(0,b-(b-M)),m.value=parseInt(v,10))}var F=this._getFormattedFractionString(m.value,y.value,_,n,l);return 0===m.value&&(F=F.replace(/./g," "),""===d)?"0 "+F:""===(u+=F)?"0":u}u="";var S=c.value*y.value+m.value;return n=this._fractionDenominatorFormat,(a=parseFloat(n))>0?(S*=a/y.value,y.value=a,u+=(S=parseFloat((o=(i=Math.ceil(S))-S)<=.5&&o>=0?i.toString():""+(i-1)))+"/"+y.value):u+=this._getFormattedFractionString(S,y.value,this._fractionNumeratorFormat,this._fractionDenominatorFormat,l),0===S?"0":u}return r.toString()}return function(e,t,r,n,a){if(!w(n)){var i=fe(r,n.type,a);if(!w(i)){for(var o=!1,s=void 0,u=I(a),l=void 0,c=0,m=e.length;c<m;c++)"decimalSeparator"===e[c].type&&(o=!0,e[c].value=n._replaceNumberString(e[c].value,i,t),s=e[c].value),"number"===e[c].type&&(e[c].value=o?n._replaceNumberString(s+e[c].value,i,t).slice(1):n._replaceNumberString(e[c].value,i,t),"ja-JP"===u.name()&&e[c].value.length>1&&("一千"!==(l=e[c].value.substr(0,2))&&"一百"!==l&&"一十"!==l||(e[c].value=e[c].value.substr(1))));return e}}return e}(P(r,this._numberFormatString,l),this._isGeneralNumber,this._partLocaleID,this._partDBNumberFormat,this.cultureName)},e.prototype.parse=function(e){if(!e||e===L._Empty)return p;var t=function(e){return e&&e.toUpperCase()}(e);if("TRUE"===t||t===B()&&B().boolean_true)return!0;if("FALSE"===t||t===B()&&B().boolean_false)return!1;var r="("===e.charAt(0)&&")"===e.charAt(e.length-1);r&&(e=e.substring(1,e.length-1));var n=this._fractionNumeratorFormat&&this._fractionDenominatorFormat,a=this._trimPercentSign(this._numberFormatString)._isPer;if(n||a){var o=0;if(n&&this._fractionIntegerFormat){var s=(e=e.trim()).lastIndexOf(" ");0<s&&s<e.length-1&&(o=parseInt(e.substr(0,s),10),e=e.substr(s+1))}var u=e.indexOf("/");if(0<u&&u<e.length-1){var l=e.substr(0,u),c=e.substr(u+1);if(!k(l)&&!k(c)){var m=parseInt(l,10),y=parseInt(c,10);if(!k(m)&&!k(y)&&0!==y)return o+m/y}}}e=this._trimSpecialSymbol(e),e=this._trimCurrencySymbol(e);var h=this._trimPercentSign(e),f=h._isPer,d=h._str;if(this._isValidNumberString(d)){d=i._StringHelper._replaceAllNoReg(d,$(this.cultureName).numberGroupSeparator,"",!1);var g=N._parseFloat(d,this.cultureName);if(!k(g)&&isFinite(g)){if(f&&(g=O(g/100,15)),r){if("-"===d.charAt(0)||"+"===d.charAt(0))return p;g=-1*_(g)}return g}}return p},e.prototype._getDenominatorLength=function(){var e=this._fractionDenominatorFormat,t=0;if(e)for(var r=e.length,n=0;n<r&&e[n].match(/[#?\d]/);n++)t++;return t},e.prototype._isValidNumberString=function(e){for(var t="",r=0,n=0,a=0,i=p,o=$(this.cultureName),s=e.length-1;s>-1;s--){if(e[s]===o.numberDecimalSeparator)r++,a>0&&(i=!1),t="";else if("e"===R(e[s])){if(n++,t="",s===e.length-1)return!1}else if(e[s]===o.numberGroupSeparator)i=3===t.length,a++,t="";else if("-"===e[s]||"+"===e[s]){if(s>0&&"e"!==R(e[s-1]))return!1}else{if(!j(e[s]))return!1;if(t+=e[s],0===s&&0===parseInt(t,10)&&i)return!1}if(r>1||n>1||!1===i)return!1}return!0},e.prototype._trimSpecialSymbol=function(e){for(var t=e,r=[],n=0;n<t.length;n++)j(t[n])&&r.push(n);for(var a=$(this.cultureName),o=[a.currencyDecimalSeparator,a.currencyGroupSeparator,a.currencySymbol,"$",a.nanSymbol,a.negativeInfinitySymbol,a.negativeSign,a.numberDecimalSeparator,a.numberGroupSeparator,a.percentDecimalSeparator,a.percentGroupSeparator,a.percentSymbol,a.perMilleSymbol,a.positiveInfinitySymbol,a.positiveSign],s=t.length-1;s>-1;s--){var u=t[s];if(G(u)&&o.indexOf(u.toString())<=-1)(s<r[0]||r[r.length-1]<s)&&(t=i._StringHelper._remove(t,s,1));else if("-"===u||"+"===u){var l=s>0?t[s-1].toString():p;if(["e","E","(",$(this.cultureName).currencySymbol,"$"].indexOf(l)<0)break}}return t},e.prototype._trimCurrencySymbol=function(e){if(i._StringHelper._startsWith(e,"$")){if((t=i._StringHelper._remove(e,0,1)).indexOf("$")<0)return t}else{var t,r=$(this.cultureName).currencySymbol;if("$"!==r&&i._StringHelper._startsWith(e,r)&&(t=i._StringHelper._remove(e,0,r.length)).indexOf(r)<0)return t}return e},e.prototype._trimPercentSign=function(e){var t=$(this.cultureName).percentSymbol,r=!0,n=e;return i._StringHelper._startsWith(e,t)?n=i._StringHelper._remove(e,0,t.length):i._StringHelper._endsWith(e,t)?n=i._StringHelper._remove(e,e.length-t.length,t.length):r=!1,i._StringHelper._contains(n,t)&&(r=!1),{_str:n,_isPer:r}},e.prototype._getFormattedFractionString=function(e,t,r,n,a){var i=E(P(e,r,a)),o=E(P("0."+t,"#."+n,a,!0)),s=a&&a.NumberFormat&&a.NumberFormat.numberDecimalSeparator||".",u=i+"/"+o.substr(o.indexOf(s)+1);return""===r&&(u=e+u),""===n&&(u+=t),u},e.getGCD=function(e,t){if(0===e)return _(t);if(0===t)return _(e);for(var r=Math.max(e,t),n=Math.min(e,t),a=r%n;0!==a;)a=(r=n)%(n=a);return _(n)},e.getFraction=function(e,t,r,n,a){var i=0,o=0,s=0,u=0,l=Math.ceil;e>0?1==(u=e-l(e)+1)?(u=0,i=e):i=l(e)-1:e<0&&(i=l(e),u=l(e)-e);var c=Math.pow(10,t-1),m=Math.pow(10,t)-1;c<2&&(c=2),m<2&&(m=2);for(var y=!1,h=0,f=c;f<=m;f++){var d=Math.round(f*u),p=d/f,g=_(p-u);if((!y||g<_(h-u))&&(y=!0,h=p,o=d,s=f,g<1e-6))break}return r.value=i,n.value=o,a.value=s,y},e.toNumberPlaceholder=function(e){return e.toString().replace(/\d/g,"?")},e}(),Z=function(){function e(t,r,n,a){me.call(this,r,n,a),arguments.length>0?(e._isValidNumberFormatString(t)||U(),this._fullFormatString=t):this._fullFormatString="General",this._formatType=0}return e._isValidNumberFormatString=function(e){for(var t="",r=!1,n=-1,a=e.length,i=0;i<a;i++){var o=e[i];'"'===o?n=(r=!r)?i:-1:r||(t+=o)}return n>0&&(t+=e.substring(n,a)),!(t.indexOf("0")>=0||t.indexOf("#")>=0||t.indexOf(".")>=0||t.indexOf("@")>=0)},e.prototype._getDigitalFormat=function(){if(!this._digitalFormat){var e=this._fullFormatString;e=oe(e,"General",H),this._digitalFormat=new q(e,this._partLocaleID,this._partDBNumberFormat,this.cultureName),this._digitalFormat._isGeneralNumber=!0}return this._digitalFormat},e.prototype._getExponentialDigitalFormat=function(){return this._exponentialDigitalFormat||(this._exponentialDigitalFormat=new q("0.#####E+00",this._partLocaleID,this._partDBNumberFormat,this.cultureName),this._exponentialDigitalFormat._isGeneralNumber=!0),this._exponentialDigitalFormat},e.prototype.formatString=function(){return i._StringHelper._replace(this._fullFormatString,"@NumberFormat","General")},e.prototype.format=function(e){if(s._Types._isNumber(e,this.cultureName)){var t=!this._partLocaleID||this._partLocaleID.allowScience(),r=s._Types._toDouble(e);if(void 0!==r&&r!==p)return _(r)>99999999999&&t||_(r)<1e-11&&0!==r?this._getExponentialDigitalFormat().format(e):this._getDigitalFormat().format(e)}else{if(C(e,"string")){var n=i._StringHelper._replace(this.formatString(),'"',"");return n=se(n),e}if(C(e,"boolean"))return e.toString().toUpperCase()}return""},e.prototype.parse=function(e){if(L._isNullOrEmpty(e))return p;if("number"==typeof e)return e;var t=!1,r=e.trim(),n=i._StringHelper._indexOf(r,"-",!1);n>0&&!ue(r.charAt(n-1),"E",!0)&&(t=!0);var a,s=I(this.cultureName),u=s.DateTimeFormat,c=u.dateSeparator,m=u.timeSeparator,y=u.monthNames,h=u.abbreviatedMonthNames,f=function(e,t){if(!t||0===t.length)return!1;for(var r=!1,n=0,a=t.length;n<a;n++)if(i._StringHelper._contains(e,t[n],!0)){r=!0;break}return r};if(t||i._StringHelper._contains(r,c,!1)||i._StringHelper._contains(r,m,!1)||i._StringHelper._contains(r,"/",!1)||i._StringHelper._contains(r,":",!1)||i._StringHelper._contains(r,"-",!1)||i._StringHelper._contains(r,"年",!1)||i._StringHelper._contains(r,"月",!1)||i._StringHelper._contains(r,"日",!1)||f(r,y)||f(r,h)||"ja-JP"===s.name()&&l._EraHelper._symbols.indexOf(r[0].toUpperCase())>=0&&i._StringHelper._contains(r,".",!1)){var d=o._DateTimeHelper._parseLocale(r);if(d)return d}var g,M="-"===r.charAt(0);if(M||"+"===r.charAt(0)){if("("===(r=i._StringHelper._remove(r,0,1)).charAt(0)&&")"===r.charAt(r.length-1))return e}else if("("===r.charAt(0)&&")"===r.charAt(r.length-1)&&(g=!0,"-"===(r=(r=r.substring(1,r.length-1)).trim()).charAt(0)||"+"===r.charAt(0)))return e;return(a=this._getDigitalFormat().parse(r))!==p&&void 0!==a?g&&C(a,"boolean")?e:(g||M)&&C(a,"number")?-1*_(a):a:e},e}(),Q=function(){function e(e,t,r,n){me.call(this,t,r,n);var a=le(e,!1);t&&(a=oe(a,this._partLocaleID._originalToken,this._partLocaleID.currencySymbol())),a=se(a=ae(a)),this._formatString=a,this._formatType=3}return e.prototype.format=function(e,t){try{var r;r=e instanceof Date?o._DateTimeHelper._toOADate(e).toString():te(e);var n=this._parseFormat(this._formatString);return this._toFormattedObject(r,n.formatTokens,e,n.hasAtPart,t)}catch(e){return""}},e.prototype.parse=function(e){return e||""},e.prototype.formatString=function(){return this._formatString},e.prototype._parseFormat=function(e){for(var t,r=[],n=!1,a="",i=!1,o=p,s=0;s<e.length;s++)t=e.charAt(s),i?('"'!==t?a+=t:(a+=t,r.push(a),a="",i=!1),o=t):"*"!==o&&"_"!==o&&"\\"!==o||""===a?"*"!==t&&"_"!==t&&"\\"!==t?"@"!==t?'"'!==t?(a+=t,o=t):(o=t,""!==a&&r.push(a),a=t,i=!0):(o=t,""!==a&&(r.push(a),a=""),r.push(t),n=!0):(o=t,""!==a&&(r.push(a),a=""),a+=t):(a+=t,r.push(a),a="");return""!==a&&r.push(a),{formatTokens:r,hasAtPart:n}},e.prototype._toFormattedObject=function(e,t,r,n,a){var i=[],o=!1;if("string"!=typeof r||n||a)for(var s=t.length-1;s>=0;s--){var u=t[s];"*"===u[0]?o||(o=!0,i.push({type:"fillingChar",value:u[1]})):"_"===u[0]?i.push({type:"placeholder",value:u[1]}):'"'===u[0]&&'"'===u[u.length-1]?u.length>=2&&i.push({type:"text",value:u.substr(1,u.length-2)}):"\\@"===u?i.push({type:"text",value:"@"}):"@"===u[0]?i.push({type:"text",value:e}):i.push({type:"text",value:u})}else i.push({type:"text",value:r});return i.reverse()},e}();function ee(e,t,r){return e.substr(t,r)}function te(e){return s._Types._isNullOrUndefined(e)?"":"boolean"==typeof e?e?"TRUE":"FALSE":"string"==typeof e?e:e.toString()}function re(e,t){if("\\"===e[t])throw Error(d().Exp_InvalidBackslash);if(t-1>0&&t-1<e.length&&"\\"===e[t-1]){if(t-2<0)return!0;if(t-2>0&&t-2<e.length)return"\\"!==e[t-2]}return!1}function ne(e){if(!e)throw Error(d().Exp_TokenIsNull);return"["+e+"]"}function ae(e){if(void 0===e||e===p||""===e)return e;for(var t="",r=0,n=!1,a=0;a<e.length;a++){var i=e[a];'"'===i?(n=!n,t+=i):n?t+=i:"["===i?r++:"]"===i?--r<0&&(r=0):0===r&&(t+=i)}return t.toString()}function ie(e){return e=oe(e,"[",""),oe(e,"]","")}function oe(e,t,r){return!e||e===L._Empty||ue(t,r,!0)?e:(t=t.replace(F,"\\$1"),e.replace(RegExp(t,"g"),r))}function se(e){for(var t=e.length,r=!1,n="",a=0;a<t;a++){var i=e.charAt(a);"\\"===i?(r=!r)&&"@"!==e.charAt(a+1)||(n+=i):(r=!1,n+=i)}return n}function ue(e,t,r){return r?R(e)===R(t):e===t}function le(e,t){1===arguments.length&&(t=!0);for(var r=!1,n="",a=0;a<e.length;a++){var i=e[a];if('"'===i)r=!r;else if(!r&&!t&&"/"===i&&!re(e,a))continue;n+=i}return n}function ce(e,t){if(!e||e===L._Empty)return!1;for(var r=function(e){for(var t="",r=!1,n=0,a=e.length;n<a;n++){var i=e[n];'"'===i&&(r=!r),"E"===i||r||(t+=R(i))}return t}(le(e)),n=0;n<t.length;n++){var a=r.indexOf(t[n]);if(0===a||a>0&&"_"!==r[a-1]&&"*"!==r[a-1])return!0}return!1}function me(e,t,r,n){this._partLocaleID=e,this._partDBNumberFormat=t,this.cultureName=r,this._isShowEraFirstYear=n}function ye(e){this._originalToken=e}function he(e){var t,r=ie(e);if(!r||r===L._Empty)return t;var n=r[0];return["<",">","="].indexOf(n)>-1?(t=K).Name="ConditionalFormatPart":i._StringHelper._startsWith(r,"DBNum",!0)?(t=W).Name="DBNumberFormatPart":ue(r[0],"$",!1)&&r.indexOf("-")>-1?(t=Y).Name="LocaleIDFormatPart":function(e){var t=R(e),r=t[0];if("h"!==r&&"m"!==r&&"s"!==r)return!1;for(var n=1;n<t.length;n++)if(r!==t[n])return!1;return!0}(r)?(t=J).Name="ABSTimeFormatPart":r.indexOf("$")<0&&r.length>=3&&((t=V).Name="ColorFormatPart"),t}function fe(e,t,r){var n;if(n=e?e.cultureInfo():I(r),t<4||4===t&&("ko-kr"===r||"ko-kr"===n.name())){var a=n.NumberFormat.dbNumber;if(a)return a[t]}return p}var de=function(){function e(e,t){0===arguments.length?(this.formatCached="General",this._numberFormat=new Z):this._init(e,t)}return e.prototype._init=function(t,r){t!==p&&void 0!==t||U();var n=t;this.formatCached=t;for(var a="",i="",o=!1,s=!1,u=!1,c=[],m=0;m<t.length;m++){var y=t[m];if('"'===y)s=!s,i+=y;else if(s)i+=y;else if("["===y)o&&U(),i&&(a||(a=""),a+=i),i=y.toString(),o=!0;else if("]"===y){if(o||U(),i){var h=(i+=y).toString(),f=he(i.toString());if(f)"ABSTimeFormatPart"===f.Name?(c.push(new f(e.preProcessPart(h),h)),a+=i):h===l._EraHelper.eraExcelFormatter?(this.addPart(f,l._EraHelper.eraInternalFormatter),u=!0):this.addPart(f,h);else{var d=e.partToNormalStr(h);a+=d,n=oe(t,h,d)}i=""}else U();o=!1}else i+=y}i?o?U():a+=i:a||(a=this._getDBNumberDefaultFormat()),this.localeIDFormatPart&&(r=this.localeIDFormatPart.cultureInfo().name());var _=function(e,t){var r,n=!1;return ce(e=e?e.toString():L._Empty,["general"])?r=Z:X._evaluateFormat(e)?r=X:ce(e,["E+","E-","#",".",",","%","0","/","?"])||t?(n=!0,r=q):(n=!0,r=Q),{_isDigitalOrText:n,_type:r}}(a,this.conditionalFormatPart),g=_._type,M=_._isDigitalOrText?n:a;g?this._numberFormat=new g(M,this.localeIDFormatPart,this.dbNumberFormatPart,r,c.length>0?c:p,u):U()},e.prototype._getDBNumberDefaultFormat=function(){var t=this,r="";return t.dbNumberFormatPart&&(e.proNames.some((function(e){return"dbNumberFormatPart"!==e&&t[e]}))||(r="General")),r},e.prototype.formatString=function(){for(var t="",r=0,n=e.proNames.length;r<n;r++){var a=e.proNames[r];this[a]&&(t+=this[a].toString())}return t+this._numberFormat.formatString()},e.prototype.addPart=function(t,r){for(var n=e.proNames,a=e.preProcessPart(r),i=0,o=n.length;i<o;i++){var s=n[i];if(ue(s,t.Name,!0)){if(this[s])throw Error(d().Exp_DuplicatedDescriptor);this[s]=new t(a,r)}}},e.prototype.format=function(e,t){return this._numberFormat.format(e,t)},e.prototype.parse=function(e){return this._numberFormat.parse(e)},e.checkFormatter=function(e){if(!e||e===L._Empty)throw Error(d().Exp_TokenIllegal)},e.preProcessPart=function(t){e.checkFormatter(t);var r=ie(t);return e.checkFormatter(r),r},e.partToNormalStr=function(t){var r=e.preProcessPart(t);return"$"===r[0]&&(r=r.slice(1)),'"'+r+'"'},e.proNames=["colorFormatPart","conditionalFormatPart","dbNumberFormatPart","localeIDFormatPart"],e}(),pe=function(e){function t(t,r){var n=e.call(this,t,r)||this,a=n;return a._isSingleFormatterInfo=!0,a.PropertyChanged=[],L._isNullOrEmpty(t)&&(t="General"),a.formatCached=t,a.cultureName=r,a.init(),n}return a(t,e),t.prototype.toJSON=function(){var e={formatCached:this.formatCached};return this.cultureName&&(e.customerCultureName=this.cultureName),"general"===R(this.formatCached)&&delete e.formatCached,e},t.prototype.hasFormattedColor=function(){for(var e in v)if(v.hasOwnProperty(e)){var t=this.getFormatter(v[e]);if(t&&t.colorFormatPart)return!0}return!1},t.prototype.formatString=function(e){if(0===arguments.length){for(var t=L._Empty,r=0,n=this.formatters.length;r<n;r++){t+=this.formatters[r].formatString(),r!==n-1&&(t+=";")}return t}if(!e)throw Error(d().Exp_ValueIsNull);return this.formatters=p,this.formatCached=e,this.init(),this._raisePropertyChanged("formatString"),this},t.prototype.getFormatter=function(e){return this.formatters&&this.formatters[e]},t.prototype.getPreferredEditingFormatter=function(e){var r,n=A(this.cultureName),a=$(this.cultureName),i=t.defFormatter;if(C(e,"TimeSpan"))return i(n.longTimePattern);if(C(e,"DateTime")){var o=0===e.getHours()&&0===e.getMinutes()&&0===e.getSeconds()&&0===e.getMilliseconds()?"":" h:mm:ss";return i(n.shortDatePattern+o)}if(s._Types._isNumber(e,this.cultureName)){var u=s._Types._toDouble(e);return i(u>=1e21||u<=1e-17&&u>0||u<=-1e21||u<0&&u>=-1e-17?null!==(r=a.scientificNotation)&&void 0!==r?r:"0.##############E+00":H)}return i("General")},t.prototype.getPreferredDisplayFormatter=function(e,r){var n=t.defFormatter;if(r||(r={value:p}),r.value=p,L._isNullOrEmpty(e))return new t;var a=e,u=r.value=this.parse(a);if(C(u,"DateTime")||C(u,"TimeSpan")){var l={pattern:S,formatter:["d-mmm","mmm-yy",A().shortDatePattern,"h:mm","h:mm:ss","h:mm:ss.0","h:mm:ss tt",A().shortDatePattern+" h:mm",A().shortDatePattern+" h:mm:ss",A().shortDatePattern+" h:mm:ss.0"]},c=l.pattern,m=l.formatter,y=I(this.cultureName),h=y.DateTimeFormat,f=h.preselectedFormatters;if(f.length>0&&(c=c.concat([f]),m=m.concat([f[0]])),"ja-JP"===y.name()){c=c.concat([h.eraFormatter]),m=m.concat(["ge.M.d"]);var d=y._eraFormatter.filter((function(e){return"ggge"===e.substr(0,4)}));c=c.concat([d]),m=m.concat(['ggge"年"M"月"d"日']);var _=y._eraFormatter.filter((function(e){return"gge"===e.substr(0,3)}));c=c.concat([_]),m=m.concat(['gge"年"M"月"d"日']);var g=y._eraFormatter.filter((function(e){return"ge"===e.substr(0,2)}));c=c.concat([g]),m=m.concat(['ge"年"M"月"d"日'])}for(var M=0;M<c.length;M++)for(var v=c[M],b=0;b<v.length;b++){var F=v[b],D=o._DateTimeHelper._parseLocale(e,F);if(D&&D-u==0)return new t(m[M])}}else if(s._Types._isNumber(u,this.cultureName)){var x=$(this.cultureName),T=x.currencySymbol,N=x.numberDecimalSeparator,H=x.percentSymbol,E=x.numberGroupSeparator,P=i._StringHelper._contains,O=P(a,N)?".00":"";if(a[0]===T)return n(L._format("{0}#,##0{1};[Red]({0}#,##0{1})",T,O));if(P(a,"E",!0))return n("0.00E+00");if(a[0].toString()===H||a[a.length-1].toString()===H)return n(L._format("0{0}%",O));if(P(a,E))return n(L._format("#,##0{0}",O))}return n("General")},t.prototype.format=function(e,t){if(C(e,"boolean"))return B()&&(e=e?B().boolean_true:B().boolean_false),e.toString().toUpperCase();var r,n=0,a=this._getFormatInfo(e);if(a){var i=a.colorFormatPart;t&&i&&(t.conditionalForeColor=t.value=i.foreColor),(r=s._Types._isNumber(e,this.cultureName))&&(n=s._Types._toDouble(e));var o=L._Empty;try{if(r&&a===this.getFormatter(v._negative)&&0!==this.expressionNumber)(o=a.format(a.considerNegSymbol?n:_(n)))===p&&C(e,"string")&&(o=e);else if(void 0===(o=a.value)){var u=!this._isSingleFormatterInfo&&a===this.getFormatter(v._text);o=a.format(e,r||u)}t&&(t.content=T(o)?o:[{type:"text",value:o}]),T(o)&&(o=N._formatObjectToString(o))}catch(t){C(e,"string")&&(o=e.toString())}return o}return r&&n<0?"-":C(e,"string")?e.toString():void 0===e||e===p?L._Empty:e.toString()},t.prototype.parse=function(e){return this.formatters&&this.formatters.length>0?this.formatters[0].parse(e):p},t.prototype.init=function(){var e=this.formatCached;L._isNullOrEmpty(e)&&U(),this.formatters=[];var t=function(e){for(var t=[],r=0,n=0,a=e.length,i=0;i<a;i++)"_"===e[i]?r++:(";"!==e[i]||0!==r&&r%2!=0||(t.push(e.substring(n,i)),n=i+1),r=0);return n<=a&&t.push(e.substring(n,a)),t}(e);this._isSingleFormatterInfo=1===t.length,(!t||t.length<1||t.length>4)&&U();for(var r=0;r<t.length;r++){-1!==t[r].indexOf("@")&&-1===t[r].indexOf("\\@")&&(r!==t.length-1?U():this.hasAt=!0);var n=new de(t[r],this.cultureName);this.formatters.push(n)}this.getFormatter(v._positive)||U(),this._refreshFormatPart()},t.prototype._refreshFormatPart=function(){this.expressionNumber=this.formatters.length-(this.hasAt?1:0);var e=(0===this.expressionNumber?1:this.expressionNumber)-1;v=s._Types._extend({},b[e]),this.hasAt&&0!==this.expressionNumber&&(v._text=this.formatters.length-1)},t.prototype._getFormatInfo=function(e){this._refreshFormatPart();var t=this.getFormatter(v._positive),r=t&&t.conditionalFormatPart,n=this.getFormatter(v._text);if(r&&(v._zero=2,this.hasAt||(v._text=3)),"string"==typeof e&&k(e))return n||(r?e:t);if(s._Types._isNumber(e,this.cultureName)||C(e,"boolean")){var a=this.getFormatter(v._negative),i=this.getFormatter(v._zero),o=s._Types._toDouble(e),u=r&&t.conditionalFormatPart.isMeetCondition(o),l=a&&a.conditionalFormatPart,c=l&&a.conditionalFormatPart.isMeetCondition(o),m=void 0;if(this._isSingleFormatterInfo||(r?u:o>0||0===o&&!i))m=t;else if(l?c:o<0)m=a;else if(i)m=i;else if(a){if(r&&l)return{value:o+""};m=a}return m&&(!r||l||m!==a||i||(m.considerNegSymbol=!0),r&&l&&m===a&&a.conditionalFormatPart&&a.conditionalFormatPart.isMeetCondition(1e-10)&&(m.considerNegSymbol=!0),this.expressionNumber<=1&&(m.considerNegSymbol=!0)),m}return p},t.prototype._raisePropertyChanged=function(e){if(this.PropertyChanged)for(var t=0;t<this.PropertyChanged.length;t++){var r=this.PropertyChanged[t];"function"==typeof r&&r(this,e)}},t.defFormatter=function(e){var r=t[e];return r||(r=new t(e),t[e]=r),r},t.test=function(e){var t=!0;try{var r=new y.Lexer(e);new h.Parser(r).parse()}catch(e){t=!1}return t},t}(z);t.GeneralFormatter=pe},826:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.throwError=t.BACKSLASH=t.UNDERLINE=t.ASTERISK=t.DOUBLE_QUOTE=t.SEMICOLON=void 0,t.SEMICOLON=";",t.DOUBLE_QUOTE='"',t.ASTERISK="*",t.UNDERLINE="_",t.BACKSLASH="\\";t.throwError=function(){throw Error("Invalid Number Format")}},810:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.Lexer=void 0;var n=r(826),a=function(e){return!!["0","#","?",".","%",",","/",n.BACKSLASH,n.ASTERISK,n.UNDERLINE,"@"].find((function(t){return t===e}))},i=function(e){return[n.BACKSLASH,n.ASTERISK,n.UNDERLINE].find((function(t){return t===e}))},o=function(e,t){return{type:e,value:t}},s=function(){function e(e){this._tokens=[],this._input=e,this._tokenize()}return e.prototype._tokenize=function(){for(var e=0,t=this._input;e<t.length;e++){var r=t[e];if(a(r)){if(i(r)){this._tokens.push(o("symbol",r)),e<t.length-1&&(this._tokens.push(o("char",t[e+1])),e++);continue}this._tokens.push(o("symbol",r))}else if(r!==n.SEMICOLON){if(r===n.DOUBLE_QUOTE){var s=t.slice(e+1).search(n.DOUBLE_QUOTE);if(-1!==s){s=s+e+1,this._tokens.push(o("text",t.slice(e+1,s))),e=s;continue}(0,n.throwError)()}this._tokens.push(o("char",r))}else this._tokens.push(o("semicolon",r))}this._tokens.push(o("EOF",""))},e.prototype._nextToken=function(){return this._tokens.shift()},e}();t.Lexer=s},61:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.Parser=void 0;var n=r(826),a=function(){function e(e){this._lexer=e,this._currentToken=e._nextToken()}return e.prototype._eat=function(e){this._currentToken.type===e?this._currentToken=this._lexer._nextToken():(0,n.throwError)()},e.prototype.parse=function(){for(var e=[];"EOF"!==this._currentToken.type;)e.push(this._parseFormatPart()),e.length>4&&(0,n.throwError)();return{type:"numberFormat",body:e}},e.prototype._parseFormatPart=function(){for(var e=[];"semicolon"!==this._currentToken.type&&"EOF"!==this._currentToken.type;){"symbol"===this._currentToken.type?e.push(this._parseSymbol()):e.push(this._parseCharOrString())}return"semicolon"===this._currentToken.type&&this._eat("semicolon"),{type:"formatPart",body:e}},e.prototype._parseSymbol=function(){var e,t=this._currentToken.value;return t===n.ASTERISK?(this._eat("symbol"),e={type:"asterisk",body:this._currentToken.value},this._eat("char")):t===n.BACKSLASH?(this._eat("symbol"),e={type:"char",body:this._currentToken.value},this._eat("char")):t===n.UNDERLINE?(this._eat("symbol"),e={type:"underline",body:this._currentToken.value},this._eat("char")):(e={type:"symbol",body:this._currentToken.value},this._eat("symbol")),e},e.prototype._parseCharOrString=function(){var e,t=this._currentToken.type;return"char"===t?(e={type:"char",body:this._currentToken.value},this._eat("char")):"text"===t&&(e={type:"text",body:this._currentToken.value},this._eat("text")),e},e}();t.Parser=a},736:function(e){e.exports=canvas}},r={};function n(e){var a=r[e];if(void 0!==a)return a.exports;var i=r[e]={exports:{}};return t[e].call(i.exports,i,i.exports,n),i.exports}n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}();var a={};!function(){var e=a;Object.defineProperty(e,"__esModule",{value:!0}),e.Formatter=e.Commands=e.Common=void 0;var t=n(38);e.Common=t;var r=n(814);e.Commands=r;var i=n(569);e.Formatter=i}(),(e=void 0===e?{}:e).Spread=a}()},424:()=>{var e;!function(){"use strict";var t={38:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var a=Object.getOwnPropertyDescriptor(t,r);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,a)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),a=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.UserManagerEvent=t.UserManager=t.UUIDGenerator=t._getSR=t.rbush=t.CultureManager=t.CultureInfo=t._StringHelper=t._RegexHelper=t._NumberHelper=t._DateTimeHelper=t._ArrayHelper=t._Types=t._ColorHelper=void 0;var i=r(395);Object.defineProperty(t,"_ColorHelper",{enumerable:!0,get:function(){return i._ColorHelper}});var o=r(534);Object.defineProperty(t,"_Types",{enumerable:!0,get:function(){return o._Types}});var s=r(305);Object.defineProperty(t,"_ArrayHelper",{enumerable:!0,get:function(){return s._ArrayHelper}});var u=r(97);Object.defineProperty(t,"_DateTimeHelper",{enumerable:!0,get:function(){return u._DateTimeHelper}}),Object.defineProperty(t,"_getSR",{enumerable:!0,get:function(){return u.getSR}});var l=r(844);Object.defineProperty(t,"_NumberHelper",{enumerable:!0,get:function(){return l._NumberHelper}});var c=r(576);Object.defineProperty(t,"_RegexHelper",{enumerable:!0,get:function(){return c._RegexHelper}});var m=r(480);Object.defineProperty(t,"_StringHelper",{enumerable:!0,get:function(){return m._StringHelper}});var y=r(674);Object.defineProperty(t,"rbush",{enumerable:!0,get:function(){return y.rbush}});var h=r(818),f=r(479);Object.defineProperty(t,"UUIDGenerator",{enumerable:!0,get:function(){return f.UUIDGenerator}}),Object.defineProperty(t,"HandleExcelSpecialDate",{set:function(e){h.HandleExcelSpecialDate=e},get:function(){return h.HandleExcelSpecialDate}}),a(r(818),t);var d=r(286);Object.defineProperty(t,"CultureInfo",{enumerable:!0,get:function(){return d.CultureInfo}}),Object.defineProperty(t,"CultureManager",{enumerable:!0,get:function(){return d.CultureManager}}),a(r(646),t);var p=r(561);Object.defineProperty(t,"UserManager",{enumerable:!0,get:function(){return p.UserManager}}),Object.defineProperty(t,"UserManagerEvent",{enumerable:!0,get:function(){return p.UserManagerEvent}})},286:function(e,t,r){var n,a=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+t+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.CultureManager=t._EraHelper=t.CultureInfo=t.TimelineDateOrder=void 0;var i,o=r(534),s=r(818),u=r(305),l=r(576),c="undefined"!=typeof window?window:r.g,m=o._Types._each,y=o._Types._extend,h=(new Date).getFullYear(),f=["MM/dd/yyyy","MM/d/yyyy","M/dd/yyyy","M/d/yyyy","yy/MM/dd","yy/MM/d","yy/M/dd","yy/M/d","yyyy/MM/dd","yyyy/MM/d","yyyy/M/dd","yyyy/M/d"],d=["hh:mm:ss","hh:mm:s","hh:m:ss","hh:m:s","h:mm:ss","h:mm:s","h:m:ss","h:m:s","hh:mm:ss tt","hh:mm:s tt","hh:m:ss tt","hh:m:s tt","h:mm:ss tt","h:mm:s tt","h:m:ss tt","h:m:s tt","hh:mm","hh:m","h:mm","h:m","hh:mm tt","hh:m tt","h:mm tt","h:m tt"],p=["MM-dd-yyyy","MM-d-yyyy","M-dd-yyyy","M-d-yyyy","yy-MM-dd","yy-MM-d","yy-M-dd","yy-M-d","yyyy-MM-dd","yyyy-MM-d","yyyy-M-dd","yyyy-M-d","dd-MMMM-yy","dd-MMM-yy"],_=f.concat(d);function g(e){return e.split(" ").join(" ").toUpperCase()}function M(e){for(var t=[],r=0,n=e.length;r<n;r++)t[r]=g(e[r]);return t}function v(e,t,r){var n=g(e),a=t.indexOf(n);return-1===a&&(a=r.indexOf(n)),a}function b(e){if(e){var t=e.charCodeAt(0);if(t>=11904&&t<12032||t>=8208&&t<8252||t>=12288&&t<40960||t>=43360&&t<43392||t>=44032&&t<55215||t>=63744&&t<64256||t>=65280&&t<65535)return!0}return!1}function F(e,t,r){if(" "===e||r&&" "===e)return 0;var n=r&&r(e);return t.lineBreakingForbidStart&&-1!==t.lineBreakingForbidStart.indexOf(e)?!r||n?7:6:t.lineBreakingForbidEnd&&-1!==t.lineBreakingForbidEnd.indexOf(e)?!r||n?5:4:n?2:t.lineBreakingChar&&-1!==t.lineBreakingChar.indexOf(e)?3:1}m(f,(function(e,t){m(d,(function(e,r){e<d.length-4&&_.push(t+" "+r)}))})),_=_.concat(p),m(p,(function(e,t){m(d,(function(e,r){e<d.length-4&&_.push(t+" "+r)}))})),function(e){e[e.year=1]="year",e[e.quarterOrMonth=2]="quarterOrMonth",e[e.date=3]="date"}(i=t.TimelineDateOrder||(t.TimelineDateOrder={}));var S={"00":1,"01":1,"02":1,"03":1,"04":1,"05":1,"06":1,"07":1,12:1,15:1,21:1,22:1,23:1,24:1,25:1,31:1,32:1,33:1,34:1,35:1,36:1,37:1,62:1,65:1,71:1,72:1,73:1,74:1,75:1};function D(e,t,r){if(!e)return[];for(var n=[e[0]],a=0,i=F(e[0],t,r),o=1;o<e.length;o++){var s=F(e[o],t,r);S[i+""+s]&&void 0===n[++a]&&(n[a]=""),n[a]+=e[o],i=s}return n}var x=function(){function e(){this.NumberFormat={currencyDecimalDigits:2,currencyDecimalSeparator:".",currencyGroupSeparator:",",currencyGroupSizes:[3],currencyNegativePattern:0,currencyPositivePattern:0,currencySymbol:"¤",digitSubstitution:1,isReadOnly:!0,numberGroupSizes:[3],nanSymbol:"NaN",nativeDigits:["0","1","2","3","4","5","6","7","8","9"],numberNegativePattern:1,negativeInfinitySymbol:"-Infinity",negativeSign:"-",numberDecimalDigits:2,numberDecimalSeparator:".",numberGroupSeparator:",",positiveInfinitySymbol:"Infinity",positiveSign:"+",percentDecimalDigits:2,percentDecimalSeparator:".",percentGroupSeparator:",",percentGroupSizes:[3],percentNegativePattern:0,percentPositivePattern:0,percentSymbol:"%",perMilleSymbol:"‰",listSeparator:",",arrayListSeparator:",",arrayGroupSeparator:";",dbNumber:{},standardDictionaryNumbers:{Hundreds:"Hundreds",Thousands:"Thousands",Millions:"Millions",Billions:"Billions",Trillions:"Trillions"},scientificNotation:"0.##############E+00"},this.DateTimeFormat={abbreviatedDayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],abbreviatedMonthGenitiveNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""],abbreviatedMonthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""],amDesignator:"AM",calendarIsReadOnly:!0,calendarWeekRule:0,Calendar:{MinSupportedDateTime:"@-62135568000000@",MaxSupportedDateTime:"@253402300799999@",AlgorithmType:1,CalendarType:1,Eras:[1],TwoDigitYearMax:2029,isReadOnly:!0},dateSeparator:"/",dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],defaultDatePattern:"MM/dd/yyyy H:mm:ss",firstDayOfWeek:0,fullDateTimePattern:"dddd, dd MMMM yyyy HH:mm:ss",longDatePattern:"dddd, dd MMMM yyyy",longTimePattern:"HH:mm:ss",monthDayPattern:"MMMM dd",monthGenitiveNames:["January","February","March","April","May","June","July","August","September","October","November","December",""],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December",""],nativeCalendarName:"Gregorian Calendar",pmDesignator:"PM",rfc1123Pattern:"ddd, dd MMM yyyy HH':'mm':'ss 'GMT'",shortDatePattern:"MM/dd/yyyy",shortestDayNames:["Su","Mo","Tu","We","Th","Fr","Sa"],shortTimePattern:"HH:mm",sortableDateTimePattern:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",timeSeparator:":",universalSortableDateTimePattern:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",yearMonthPattern:"yyyy MMMM",filterDialogDateFormatter:"yyyy/mmmm/dd",preselectedFormatters:[],eraFormatter:["ge/M/d","ge-M-d","ge.M.d","gee/MM/dd"]},this.name=function(){return""},this.id=-1,this.LocalNumberFormat={},this.displayName="",this.fontScriptCode=void 0,this.predefinedFormats={},this.TimelineDateOrder=[i.quarterOrMonth,i.date,i.year],this.TimelineDateSuffix={year:"",quarter:"",month:"",date:""},this.TextFormat={lineBreakingChar:[" ","-"]},this.equalCharacters=void 0}return e.prototype._getDistributedBreakingChar=function(){return[" "]},e.prototype._getDistributedWords=function(e){var t={lineBreakingChar:this._getDistributedBreakingChar()};return this.TextFormat&&this.TextFormat.lineBreakingStrategy?this.TextFormat.lineBreakingStrategy(e,t):D(e,t)},e.prototype._getTextWords=function(e){if(this.TextFormat&&this.TextFormat.lineBreakingStrategy){var t={lineBreakingChar:this.TextFormat.lineBreakingChar,lineBreakingForbidEnd:this.TextFormat.lineBreakingForbidEnd,lineBreakingForbidStart:this.TextFormat.lineBreakingForbidStart};return this.TextFormat.lineBreakingStrategy(e,t)}return D(e,this.TextFormat||{lineBreakingChar:[" ","-"]})},e.prototype._getDateTimePattern=function(){if(!this._dateTimeFormatPattern){var e=this.DateTimeFormat,t=e.shortDatePattern.replace(/m/g,"M"),r=[t,t+" h:mm",t+" h:mm:ss",t+" h:mm:ss.0","MMMdd","MMMd","MMM dd","MMM d"];if(r=r.concat(_),1041===this.id){var n=e.eraFormatter;r=(r=r.concat(this._eraFormatter)).concat(n)}r=r.concat(e.preselectedFormatters),this._dateTimeFormatPattern=r}return this._dateTimeFormatPattern},e.prototype._getMonthIndex=function(e){return this._upperMonths||(this._upperMonths=M(this.DateTimeFormat.monthNames),this._upperMonthsGenitive=M(this.DateTimeFormat.monthGenitiveNames)),v(e,this._upperMonths,this._upperMonthsGenitive)},e.prototype._getAbbrMonthIndex=function(e){return this._upperAbbrMonths||(this._upperAbbrMonths=M(this.DateTimeFormat.abbreviatedMonthNames),this._upperAbbrMonthsGenitive=M(this.DateTimeFormat.abbreviatedMonthGenitiveNames)),v(e,this._upperAbbrMonths,this._upperAbbrMonthsGenitive)},e.prototype._getDayIndex=function(e){return this._upperDays||(this._upperDays=M(this.DateTimeFormat.dayNames)),this._upperDays.indexOf(g(e))},e.prototype._getAbbrDayIndex=function(e){return this._upperAbbrDays||(this._upperAbbrDays=M(this.DateTimeFormat.abbreviatedDayNames)),this._upperAbbrDays.indexOf(g(e))},e}();t.CultureInfo=x;var C=function(){function e(){}return e._isValidEraDate=function(t){return t>=e._getEraMin()&&t<=e._getEraMax()},e._getEraDates=function(){var e=x.eras;if(void 0!==e){for(var t=[],r=0;r<e.length;r++)t[r]=new Date(e[r].startDate.replace(/-/g,"/"));return t}return this._EraDates},e._getEraPropByFormat=function(t){var r,n;switch(t){case"g":r="symbol",n=e._symbols;break;case"gg":r="abbreviation",n=e._abbreviations;break;case"ggg":r="name",n=e._names;break;default:return[]}var a=x.eras,i=[];if(void 0!==a){for(var o=0;o<a.length;o++)i[o]=a[o][r];return i}return n},e._getEraMax=function(){var e=x.eras;if(void 0!==e&&e.length>0){var t=new Date(e[e.length-1].startDate.replace(/-/g,"/"));return t.setFullYear(t.getFullYear()+99),t}return this._EraMax},e._getEraMin=function(){var e=x.eras;return void 0!==e&&e.length>0?new Date(e[0].startDate.replace(/-/g,"/")):this._EraMin},e._getEraCount=function(){var e=x.eras;return void 0!==e?e.length:this._EraCount},e._getEraYears=function(){var e=x.eras;if(void 0!==e){for(var t=[],r=1;r<e.length;r++){var n=new Date(e[r-1].startDate.replace(/-/g,"/")),a=new Date(e[r].startDate.replace(/-/g,"/"));t[r-1]=a.getFullYear()-n.getFullYear()+1}return t[r-1]=99,t}return this._EraYears},e._getEraDate=function(t){var r={_era:-1,_eraYear:-1};if(!e._isValidEraDate(t)){if(!(t>e._getEraMax()))return r;t=e._getEraMax()}for(var n=0;n<e._getEraCount();n++){if(t<(n+1!==e._getEraCount()?e._getEraDates()[n+1]:e._addMilliseconds(e._getEraMax(),1))){r._era=n,r._eraYear=t.getFullYear()-e._getEraDates()[n].getFullYear()+1;break}}return r},e._addMilliseconds=function(e,t){var r=new Date(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds());return r.setMilliseconds(r.getMilliseconds()+t),new Date(r.valueOf())},e._getYearFromEra=function(t,r){return e._getEraDates()[t].getFullYear()+r-1},e._parseEraPart=function(t,r){r=r.toUpperCase();for(var n=e._getEraPropByFormat(t),a=0;a<n.length;a++)if(n[a]===r)return a;return-1},e._formatEraPart=function(t,r,n){var a=e,i=a._getEraDate(r),o=i._era;if(o>=0){var s=a._getEraPropByFormat(t);if(s.length>0)return s[o]}var u=i._eraYear;if(u>=0){var l=u.toString();if("1"===l&&n)return"元";if("ee"===t)return 1===l.length&&(l="0"+l),l;if("e"===t)return l}return""},e._EraDates=[new Date(1868,8,8),new Date(1912,6,30),new Date(1926,11,25),new Date(1989,0,8),new Date(2019,4,1)],e._EraCount=5,e._EraYears=[45,15,64,31,99],e._EraMax=new Date(2117,11,31,23,59,59),e._EraMin=new Date(1868,8,8),e._shortcuts=["1,m","2,t","3,s","4,h","5,r"],e._EraIndices=[0,1,2,3,0,1,2,3],e._names=["明治","大正","昭和","平成","令和"],e._symbols=["M","T","S","H","R"],e._abbreviations=["明","大","昭","平","令"],e._EraYearMax=99,e.eraExcelFormatter="[$-ja-JP-x-gannen]",e.eraInternalFormatter="[$-411]",e}();t._EraHelper=C;var T=function(e){function t(){var t=e.call(this)||this;O.call(t,"NumberFormat",["currencySymbol","isReadOnly"],["$",!1]);return O.call(t,"DateTimeFormat",["fullDateTimePattern","longDatePattern","longTimePattern","shortDatePattern","shortTimePattern","yearMonthPattern","calendarIsReadOnly","preselectedFormatters"],["dddd, MMMM dd, yyyy h:mm:ss tt","dddd, MMMM dd, yyyy","h:mm:ss tt","M/d/yyyy","h:mm tt","MMMM, yyyy",!1,["MMM yyyy","MMMM yyyy"]]),t.DateTimeFormat.defaultDatePattern=t.DateTimeFormat.shortDatePattern+" H:mm:ss",t.name=function(){return"en-US"},t.displayName="English (United States)",t.id=1033,t.predefinedFormats={Accounting:'_([$$-409]* #,##0.00_);_([$$-409]* (#,##0.00);_([$$-409]* "-"??_);_(@_)',Comma:'_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)',Currency:["[$$-409]#,##0","[$$-409]#,##0;[Red][$$-409]#,##0","[$$-409]#,##0_);([$$-409]#,##0)","[$$-409]#,##0_);[Red]([$$-409]#,##0)"],Date:["m/d/yyyy","[$-409]dddd, mmmm dd, yyyy","m/d;@","m/d/yy;@","mm/dd/yy;@","[$-409]d-mmm;@","[$-409]d-mmm-yy;@","[$-409]mmm-yy;@","[$-409]mmmm-yy;@","[$-409]mmmm d, yyyy;@","[$-409]m/d/yy h:mm AM/PM;@","m/d/yy h:mm;@","[$-409]mmmmm;@","[$-409]mmmmm-yy;@","m/d/yyyy;@","[$-409]d-mmm-yyyy;@"],Time:["[$-409]h:mm:ss AM/PM","h:mm;@","[$-409]h:mm AM/PM;@","h:mm:ss;@","[$-409]h:mm:ss AM/PM;@","mm:ss.0;@","[h]:mm:ss;@","[$-409]m/d/yy h:mm AM/PM;@","m/d/yy h:mm;@"],Special:{"Zip Code":"00000","Zip Code + 4":"00000-0000","Phone Number":"[<=9999999]###-####;(###) ###-####","Social Security Number":"000-00-0000"},shortcut:{Number:"0.00",Currency:"[$$-409]#,##0.00",Accounting:'_([$$-409]* #,##0.00_);_([$$-409]* (#,##0.00);_([$$-409]* "-"??_);_(@_)',ShortDate:"m/d/yyyy",LongDate:"[$-409]dddd, mmmm dd, yyyy",Time:"[$-409]h:mm:ss AM/PM",Percentage:"0.00%",Fraction:"# ?/?",Scientific:"0.00E+00",Text:"@",Comma:'_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)'}},t}return a(t,e),t}(x),N=function(e){function t(){var t=e.call(this)||this;O.call(t,"NumberFormat",["currencyDecimalDigits","currencyNegativePattern","currencySymbol","isReadOnly","nanSymbol","negativeInfinitySymbol","percentNegativePattern","percentPositivePattern","positiveInfinitySymbol","dbNumber","standardDictionaryNumbers"],[0,1,"¥",!1,"NaN (非数値)","-∞",1,1,"+∞",{1:{letters:["兆","千","百","十","亿","千","百","十","万","千","百","十",""],numbers:["〇","一","二","三","四","五","六","七","八","九"]},2:{letters:["兆","阡","百","拾","億","阡","百","拾","萬","阡","百","拾",""],numbers:["〇","壱","弐","参","四","伍","六","七","八","九"]},3:{letters:null,numbers:["0","1","2","3","4","5","6","7","8","9"]}},{Hundreds:"百",Thousands:"千",Millions:"百万",Billions:"十億",Trillions:"兆"}]);var r=["1","2","3","4","5","6","7","8","9","10","11","12",""],n=["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月",""];return O.call(t,"DateTimeFormat",["abbreviatedDayNames","abbreviatedMonthGenitiveNames","abbreviatedMonthNames","amDesignator","calendarIsReadOnly","dayNames","fullDateTimePattern","longDatePattern","longTimePattern","monthDayPattern","monthGenitiveNames","monthNames","nativeCalendarName","pmDesignator","shortDatePattern","shortestDayNames","shortTimePattern","yearMonthPattern","filterDialogDateFormatter","preselectedFormatters","EraFilterDialogDateFormatter"],[["日","月","火","水","木","金","土"],r,r,"午前",!1,["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"],"yyyy'年'M'月'd'日' H:mm:ss","yyyy'年'M'月'd'日'","H:mm:ss","M'月'd'日'",n,n,"西暦 (日本語)","午後","yyyy/MM/dd",["日","月","火","水","木","金","土"],"H:mm","yyyy'年'M'月'","yyyy年/mmmm/d日",["yyyy年M月d日","yyyy年M月dd日","yyyy年MM月d日","yyyy年MM月dd日"],"ggge/mmmm/d日"]),t.DateTimeFormat.eras=!0,t.DateTimeFormat.defaultDatePattern=t.DateTimeFormat.shortDatePattern+" "+t.DateTimeFormat.longTimePattern,t._eraFormatter=['gggee"年"MM"月"dd"日','gggee"年"M"月"d"日','ge"年"M"月"d"日','ggge"年"M"月"d"日','ggee"年"M"月"d"日','gge"年"M"月"d"日'],t.name=function(){return"ja-JP"},t.id=1041,t.displayName="Japanese (Japan)",t.isJCKCulture=!0,t.predefinedFormats={Accounting:'_-[$¥-411]* #,##0.00_-;-[$¥-411]* #,##0.00_-;_-[$¥-411]* "-"??_-;_-@_-',Comma:'_-* #,##0.00_-;-* #,##0.00_-;_-* "-"??_-;_-@_-',Currency:["[$¥-411]#,##0_);[Red]([$¥-411]#,##0)","[$¥-411]#,##0_);([$¥-411]#,##0)","[$¥-411]#,##0;[Red][$¥-411]#,##0","[$¥-411]#,##0;-[$¥-411]#,##0","[$¥-411]#,##0;[Red]-[$¥-411]#,##0"],Date:["yyyy/mm/dd","[$-411]dddd, mmmm dd, yyyy",'yyyy"年"m"月"d"日";@','yyyy"年"m"月";@','m"月"d"日";@',"yyyy/m/d;@","[$-409]yyyy/m/d h:mm AM/PM;@","yyyy/m/d h:mm;@","m/d;@","m/d/yy;@","mm/dd/yy;@","[$-409]d-mmm;@","[$-409]d-mmm-yy;@","[$-409]dd-mmm-yy;@","[$-409]mmm-yy;@","[$-409]mmmm-yy;@","[$-409]mmmmm;@","[$-409]mmmmm-yy;@"],Time:["[$-411]h:mm:ss AM/PM","h:mm;@","[$-409]h:mm AM/PM;@","h:mm:ss;@","[$-409]h:mm:ss AM/PM;@","[$-409]yyyy/m/d h:mm AM/PM;@","yyyy/m/d h:mm;@",'h"時"mm"分";@','h"時"mm"分"ss"秒";@'],Special:{郵便番号:"[<=999]000;[<=9999]000-00;000-0000","電話番号(東京)":"[<=99999999]####-####;(00) ####-####","正負記号 (+ = △; - = ▲)":'"△" #,##0;"▲" #,##0',"漢数字(十二万三千四百)":"[DBNum1][$-411]General","大字 (壱拾弐萬参阡四百)":"[DBNum2][$-411]General","全角 (12345)":"[DBNum3][$-411]0","全角 桁区切り(12,345)":"[DBNum3][$-411]#,##0"},shortcut:{Number:"0.00",Currency:"[$¥-411]#,##0.00",Accounting:'_-[$¥-411]* #,##0.00_-;-[$¥-411]* #,##0.00_-;_-[$¥-411]* "-"??_-;_-@_-',ShortDate:"yyyy/mm/dd",LongDate:"[$-411]dddd, mmmm dd, yyyy",Time:"[$-411]h:mm:ss AM/PM",Percentage:"0.00%",Fraction:"# ?/?",Scientific:"0.00E+00",Text:"@",Comma:'_-* #,##0.00_-;-* #,##0.00_-;_-* "-"??_-;_-@_-'}},t.TimelineDateOrder=[i.year,i.quarterOrMonth,i.date],t.TimelineDateSuffix={year:"年",quarter:"",month:"月",date:"日"},t.TextFormat={lineBreakingChar:[" "," ","-"],lineBreakingForbidStart:["!","%",")",",",".",":",";","?","]","}","!","%",")",",",".",":",";","?","]","}","」","。","、","ー"],lineBreakingForbidEnd:["(","[","{","(","[","{","「","$","$","\\","¥"],lineBreakingStrategy:function(e,t){return D(e,t,b)}},t.equalCharacters=["―ゝゞ゠ヽヾー","㆐㆑㇤㇥","‸⁊",".․","&⁋","%⁏","$⁒","#⁗",'"⁍',"‹⁓"],t}return a(t,e),t}(x),H=function(e){function t(){var t=e.call(this)||this;O.call(t,"NumberFormat",["currencyNegativePattern","currencySymbol","isReadOnly","nanSymbol","negativeInfinitySymbol","percentNegativePattern","percentPositivePattern","positiveInfinitySymbol","dbNumber","standardDictionaryNumbers"],[2,"¥",!1,"非数字","负无穷大",1,1,"正无穷大",{1:{letters:["兆","千","百","十","亿","千","百","十","万","千","百","十",""],numbers:["○","一","二","三","四","五","六","七","八","九"]},2:{letters:["兆","仟","佰","拾","亿","仟","佰","拾","万","仟","佰","拾",""],numbers:["零","壹","贰","叁","肆","伍","陆","柒","捌","玖"]},3:{letters:null,numbers:["0","1","2","3","4","5","6","7","8","9"]}},{Hundreds:"百",Thousands:"千",Millions:"百万",Billions:"十亿",Trillions:"兆"}]);var r=["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月",""],n=["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月",""];return O.call(t,"DateTimeFormat",["abbreviatedDayNames","abbreviatedMonthGenitiveNames","abbreviatedMonthNames","amDesignator","calendarIsReadOnly","dayNames","firstDayOfWeek","fullDateTimePattern","longDatePattern","longTimePattern","monthDayPattern","monthGenitiveNames","monthNames","nativeCalendarName","pmDesignator","shortDatePattern","shortestDayNames","shortTimePattern","yearMonthPattern","filterDialogDateFormatter","preselectedFormatters"],[["周日","周一","周二","周三","周四","周五","周六"],r,r,"上午",!1,["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],1,"yyyy'年'M'月'd'日' H:mm:ss","yyyy'年'M'月'd'日'","H:mm:ss","M'月'd'日'",n,n,"公历","下午","yyyy/M/d",["日","一","二","三","四","五","六"],"H:mm","yyyy'年'M'月'","yyyy年/mmmm/d日",["yyyy年M月","M月d日","yyyy年M月d日","h时mm分","h时mm分ss秒"]]),t.DateTimeFormat.defaultDatePattern=t.DateTimeFormat.shortDatePattern+" "+t.DateTimeFormat.longTimePattern,t.name=function(){return"zh-cn"},t.id=2052,t.displayName="Chinese (China)",t.isJCKCulture=!0,t.localeCompare=function(e,t){var r=e.localeCompare(t,"zh");return r<0&&e>="一"&&t<"一"||r>0&&t>="一"&&e<"一"?-r:r},t.predefinedFormats={Accounting:'_ [$¥-804]* #,##0.00_ ;_ [$¥-804]* -#,##0.00_ ;_ [$¥-804]* "-"??_ ;_ @_ ',Comma:'_ * #,##0.00_ ;_ * -#,##0.00_ ;_ * "-"??_ ;_ @_ ',Currency:["[$¥-804]#,##0","[$¥-804]#,##0;[Red][$¥-804]#,##0","[$¥-804]#,##0;[$¥-804]-#,##0","[$¥-804]#,##0;[Red][$¥-804]-#,##0"],Date:["yyyy/m/d","[$-804]dddd, mmmm dd, yyyy","yyyy-mm-dd;@",'[DBNum1][$-804]yyyy"年"m"月"d"日";@','[DBNum1][$-804]yyyy"年"m"月";@','[DBNum1][$-804]m"月"d"日";@',"[$-409]yyyy/m/d h:mm AM/PM;@",'yyyy"年"m"月"d"日";@','yyyy"年"m"月";@','m"月"d"日";@',"mm/dd/yy;@","m/d/yy;@","yyyy/m/d h:mm AM/PM;@","yyyy/m/d h:mm;@","[$-409]d-mmm;@","[$-409]d-mmm-yy;@","[$-409]dd-mmm-yy;@","[$-409]mmm-yy;@","[$-409]m","[$-409]m-d;@"],Time:["[$-804]h:mm:ss AM/PM","h:mm;@","[$-409]h:mm AM/PM;@","h:mm:ss;@",'h"时"mm"分";@','h"时"mm"分"ss"秒";@','[$-804]上午/下午h"时"mm"分";@','[$-804]上午/下午h"时"mm"分"ss"秒";@','[DBNum1][$-804]h"时"mm"分";@','[DBNum1][$-804]上午/下午h"时"mm"分";@'],Special:{邮政编码:"000000",中文小写字母:"[DBNum1][$-804]General",中文大写字母:"[DBNum2][$-804]General"},shortcut:{Number:"0.00",Currency:"[$¥-804]#,##0.00",Accounting:'_ [$¥-804]* #,##0.00_ ;_ [$¥-804]* -#,##0.00_ ;_ [$¥-804]* "-"??_ ;_ @_ ',ShortDate:"yyyy/m/d",LongDate:"[$-804]dddd, mmmm dd, yyyy",Time:"[$-804]h:mm:ss AM/PM",Percentage:"0.00%",Fraction:"# ?/?",Scientific:"0.00E+00",Text:"@",Comma:'_ * #,##0.00_ ;_ * -#,##0.00_ ;_ * "-"??_ ;_ @_ '}},t.TimelineDateOrder=[i.year,i.quarterOrMonth,i.date],t.TimelineDateSuffix={year:"年",quarter:"",month:"",date:"日"},t.TextFormat={lineBreakingChar:[" "," ","-"],lineBreakingForbidStart:["!","%",")",",",".",":",";","?","]","}","!","%",")",",",".",":",";","?","]","}"],lineBreakingForbidEnd:["(","[","{","(","[","{"],lineBreakingStrategy:function(e,t){return D(e,t,b)}},t.normalizeDateTimeString=function(e){var t;if(l._RegexHelper._getReg("^([0-9]{1,2}|[0-9]{4})年[0-9]{1,2}月$").test(e))return(t=e.split("年"))[1].replace("月","")+"/1/"+t[0];if(l._RegexHelper._getReg("^[0-9]{1,2}月[0-9]{1,2}日$").test(e))return(t=e.split("月"))[0]+"/"+t[1].replace("日","")+"/"+h;if(l._RegexHelper._getReg("^(上午|下午)?[0-9]{1,2}时[0-9]{1,2}分([0-9]{1,2}秒)?$").test(e)){var r=e.replace("时",":").replace("分",":").replace("秒","");return(r=r.endsWith(":")?r+"00":r).startsWith("上午")&&(r=r.replace("上午","")+" AM"),r.startsWith("下午")&&(r=r.replace("下午","")+" PM"),r}return e.includes("上午")||e.includes("下午")?e.replace("上午","am").replace("下午","pm"):null},t}return a(t,e),t.prototype._getDistributedBreakingChar=function(){return[" "," "]},t}(x),E=function(e){function t(){var t=e.call(this)||this;O.call(t,"NumberFormat",["currencyDecimalDigits","currencyNegativePattern","currencySymbol","isReadOnly","dbNumber","standardDictionaryNumbers"],[0,1,"₩",!1,{1:{letters:["兆","千","百","十","億","千","百","十","万","千","百","十",""],numbers:["0","一","二","三","四","五","六","七","八","九"]},2:{letters:["兆","阡","百","拾","億","阡","百","拾","萬","阡","百","拾",""],numbers:["零","壹","貳","參","四","伍","六","七","八","九"]},3:{letters:["兆","千","百","十","億","千","百","十","万","千","百","十",""],numbers:["0","1","2","3","4","5","6","7","8","9"]},4:{letters:["조","천","백","십","억","천","백","십","만","천","백","십",""],numbers:["○","일","이","삼","사","오","육","칠","팔","구"]}},{Hundreds:"백",Thousands:"천",Millions:"백만",Billions:"10억",Trillions:"조"}]);var r=["1","2","3","4","5","6","7","8","9","10","11","12",""],n=["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월",""];return O.call(t,"DateTimeFormat",["abbreviatedDayNames","abbreviatedMonthGenitiveNames","abbreviatedMonthNames","amDesignator","calendarIsReadOnly","dayNames","firstDayOfWeek","fullDateTimePattern","longDatePattern","longTimePattern","monthDayPattern","monthGenitiveNames","monthNames","nativeCalendarName","pmDesignator","shortDatePattern","shortestDayNames","shortTimePattern","yearMonthPattern","filterDialogDateFormatter"],[["일","월","화","수","목","금","토"],r,r,"오전",!1,["일요일","월요일","화요일","수요일","목요일","금요일","토요일"],1,"yyyy'년' M'월' d'일' dddd h:mm:ss","yyyy'년' M'월' d'일' dddd","h:mm:ss","M'월' d'일'",n,n,"서기","오후","yyyy-MM-dd",["일","월","화","수","목","금","토"],"tt h:mm","yyyy'년' M'월'","yyyy년/mmmm/d일"]),t.DateTimeFormat.defaultDatePattern=t.DateTimeFormat.shortDatePattern+" "+t.DateTimeFormat.longTimePattern,t.name=function(){return"ko-kr"},t.id=1042,t.displayName="Korean (Korea)",t.isJCKCulture=!0,t.predefinedFormats={Accounting:'_-[$₩-412]* #,##0.00_-;-[$₩-412]* #,##0.00_-;_-[$₩-412]* "-"??_-;_-@_-',Comma:'_-* #,##0.00_-;-* #,##0.00_-;_-* "-"??_-;_-@_-',Currency:["[$₩-412]#,##0","[$₩-412]#,##0;[Red][$₩-412]#,##0","[$₩-412]#,##0;-[$₩-412]#,##0","[$₩-412]#,##0;[Red]-[$₩-412]#,##0"],Date:["yyyy-mm-dd",'yyyy"년" m"월" d"일" dddd',"yyyy-mm-dd;@",'yyyy"년" m"월" d"일";@','yy"年" m"月" d"日";@','yyyy"년" m"월";@','m"월" d"일";@',"yy-m-d;@","yy-m-d h:mm;@",'m"月"d"日";@',"[$-412]yy-m-d AM/PM h:mm;@","yy/m/d;@","yyyy/m/d h:mm;@","m/d;@","m/d/yy;@","mm/dd/yy;@","[$-409]d-mmm;@","[$-409]d-mmm-yy;@","[$-409]dd-mmm-yy;@","[$-409]mmm-yy;@","[$-409]m","[$-409]m-d;@"],Time:["[$-412]h:mm:ss AM/PM","h:mm;@","h:mm:ss;@","[$-412]AM/PM h:mm;@","[$-412]AM/PM h:mm:ss;@","[$-409]h:mm AM/PM;@","[$-409]h:mm:ss AM/PM;@",'yyyy"-"m"-"d h:mm;@','[$-412]yyyy"-"m"-"d AM/PM h:mm;@','[$-409]yyyy"-"m"-"d h:mm AM/PM;@','h"시" mm"분";@','h"시" mm"분" ss"초";@','[$-412]AM/PM h"시" mm"분";@','[$-412]AM/PM h"시" mm"분" ss"초";@'],Special:{"우편 번호":"000-000","전화 번호 (국번 4자리)":"[<=999999]####-####;(0##) ####-####","전화 번호 (국번 3자리)":"[<=9999999]###-####;(0##) ###-####",주민등록번호:"000000-0000000","숫자(한자)":"[DBNum1][$-412]General","숫자(한자-갖은자)":"[DBNum2][$-412]General","숫자(한글)":"[DBNum4][$-412]General"},shortcut:{Number:"0.00",Currency:"[$₩-412]#,##0.00",Accounting:'_-[$₩-412]* #,##0.00_-;-[$₩-412]* #,##0.00_-;_-[$₩-412]* "-"??_-;_-@_-',ShortDate:"yyyy-mm-dd",LongDate:'yyyy"년" m"월" d"일" dddd',Time:"[$-412]h:mm:ss AM/PM",Percentage:"0%",Fraction:"# ?/?",Scientific:"0.00E+00",Text:"@",Comma:'_-* #,##0.00_-;-* #,##0.00_-;_-* "-"??_-;_-@_-'}},t.TimelineDateOrder=[i.year,i.quarterOrMonth,i.date],t.TimelineDateSuffix={year:"년",quarter:"",month:"월",date:"일"},t}return a(t,e),t}(x),P={invariant:new x,"en-us":new T,"ja-jp":new N,"zh-cn":new H,"ko-kr":new E};function O(e,t,r){for(var n,a=0,i=t.length;a<i;a++)n=t[a],this[e][n]=r[a]}var w={},k=["lsru","lsde","ls1","ls2","ls3","ls4","ls5","ls6","ls7","ls8","ls9","ls10","ls11"],I=["wmk1","wmk2"],A=function(){function e(){this._cultureVersion=1,this._resourcesMap={}}return e.instance=function(){return this._instance||(this._instance=new this)},e.prototype.culture=function(t){if(0===arguments.length)return e._cRName;var r,n,a;t&&e._cRName!==t&&(e._cRName=t.toLowerCase(),this._cultureVersion++,r=e._cRName,n=e._instance.getCultureInfo(),"object"==typeof document&&("function"!=typeof CustomEvent?(a=document.createEvent("CustomEvent")).initCustomEvent("cultureChanged",!1,!1,void 0):a=new CustomEvent("cultureChanged",{}),a.cultureInfo=r,c.gcCultureInfo=r,c.gcCultureObj=n,document.dispatchEvent(a)))},e.prototype.addCultureInfo=function(e,t,r){if(t&&t instanceof x){var n=t.NumberFormat&&t.NumberFormat.numberDecimalSeparator,a=t.NumberFormat.arrayListSeparator,i=t.NumberFormat.arrayGroupSeparator;if(n===t.NumberFormat.listSeparator||i===a)throw new s.ResourceManager(s.SR).getResource().Exp_Separator;P[e.toLowerCase()]=t}if(r&&"object"==typeof r){var o=e.toLowerCase();w[o]=y(!0,{},r),this._cultureVersion++}},e.prototype.getCultureInfoDict=function(){return P},e.prototype.getCultureInfo=function(t){if(0===arguments.length)return P[e._cRName];"string"==typeof t&&(t=t.toLowerCase());var r=P,n=null;for(var a in r)if(a===t||void 0!==r[a].id&&r[a].id===t){n=r[a];break}return n},e.prototype.getLanguage=function(e){if("string"==typeof e){var t=e.toLowerCase();return w[t]}return null},e.prototype.getResources=function(e){var t=this.culture().toLowerCase();if(null==e&&(e=t),"string"==typeof e){var r=e.toLowerCase();if(this._resourcesMap[r])return this._adjustCurrentResources(this._resourcesMap[r])}return null},e.prototype._adjustCurrentResources=function(e){var t="PivotTables",r="ReportSheet",n="GanttSheet",a="DataChart",i="Sheets",o=y(!0,{},e);o[t]&&this._deleteSkipKey(o[t],I),o[r]&&this._deleteSkipKey(o[r],I),o[n]&&this._deleteSkipKey(o[n],I),o[a]&&this._deleteSkipKey(o[a],I),o[i]&&this._deleteSkipKey(o[i],k);var s=o.CalcEngine;return s&&(o.Functions=s._builtInFunctionsResource,o.TableFunctions=s._tableFunctionsResource,delete s._builtInFunctionsResource,delete s._tableFunctionsResource),o},e.prototype._deleteSkipKey=function(e,t){for(var r=0,n=t;r<n.length;r++){delete e[n[r]]}},e.prototype._languageTranslate=function(e,t,r){var n=w[e.toLowerCase()];for(var a in t)if(!u._ArrayHelper._contains(k,a)){var i=this._getTranslate(n,a,r);(null!==i&&"string"==typeof i&&"string"==typeof t[a]||null!==i&&"object"==typeof i&&!Array.isArray(i))&&(t[a]=i)}t._builtInFunctionsResource&&n.Functions&&this._translateFunctions(n.Functions,t._builtInFunctionsResource),t._tableFunctionsResource&&n.TableFunctions&&y(!0,t._tableFunctionsResource,n.TableFunctions)},e.prototype._getTranslate=function(e,t,r){if(e.hasOwnProperty(t))return e[t];if(r&&(a=e[r])&&"object"==typeof a&&a.hasOwnProperty(t))return a[t];for(var n in e){var a;if((a=e[n])&&"object"==typeof a&&a.hasOwnProperty(t))return a[t]}return null},e.prototype._translateFunctions=function(e,t){for(var r in t)if(e.hasOwnProperty(r)){var n=t[r],a=e[r],i=n.parameters,o=a.parameters;for(var s in n.description=a.description,i)if(o.hasOwnProperty(s)){var u=o[s];"string"==typeof u&&(i[s].name=u)}}return{}},e.prototype._getCultureInfo=function(t){var r=this.getCultureInfo(t);return r||(r=P[e._cRName])||(r=new x),r},e.prototype._getFilterDialogFormatterStr=function(e,t){var r=(this.getCultureInfo(e)||this.getCultureInfo("en-US")).DateTimeFormat,n=r.filterDialogDateFormatter;return(t.indexOf("g")>=0||t.indexOf("e")>=0)&&(n=r.EraFilterDialogDateFormatter||n),n},e._cRName="en-us",e}();t.CultureManager=A.instance()},561:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var a=Object.getOwnPropertyDescriptor(t,r);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,a)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),a=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),a(r(895),t)},566:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Error_InvalidRemoteConfigurationForUserFetching=t.Error_GraphQLSchemaMustBeProvidedForGraphQLAdapter=t.Error_FailedToFetchUsers=t.Error_RemoteConfigurationForUserFetchingNotProvided=t.GUEST_USER=void 0,t.GUEST_USER="Guest",t.Error_RemoteConfigurationForUserFetchingNotProvided="Remote configuration for user fetching is not provided.",t.Error_FailedToFetchUsers="Failed to fetch users: ",t.Error_GraphQLSchemaMustBeProvidedForGraphQLAdapter="GraphQL schema must be provided for graphql adapter.",t.Error_InvalidRemoteConfigurationForUserFetching="Invalid remote configuration for user fetching."},895:function(e,t,r){var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(a,i){function o(e){try{u(n.next(e))}catch(e){i(e)}}function s(e){try{u(n.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?a(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,s)}u((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var r,n,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(u){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(o=0)),o;)try{if(r=1,n&&(a=2&s[0]?n.return:s[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,s[1])).done)return a;switch(n=0,a&&(s=[2&s[0],a.value]),s[0]){case 0:case 1:a=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,n=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((a=(a=o.trys).length>0&&a[a.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!a||s[1]>a[0]&&s[1]<a[3])){o.label=s[1];break}if(6===s[0]&&o.label<a[1]){o.label=a[1],a=s;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(s);break}a[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],n=0}finally{r=a=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.UserManager=t.UserManagerEvent=void 0;var i=r(566),o=r(818),s=r(479),u=r(534),l=r(305);u._Types._extend(o.SR.en,i);var c,m=new o.ResourceManager(o.SR),y=m.getResource.bind(m),h=u._Types._isNullOrUndefined,f=l._ArrayHelper._clone,d=u._Types._cloneObject,p=["#3B82F6","#10B981","#8B5CF6","#F59E0B","#EF4444","#06B6D4","#EC4899","#84CC16","#6366F1","#14B8A6","#F97316","#A855F7","#22C55E","#EAB308","#F43F5E","#0EA5E9","#D946EF","#65A30D","#DC2626","#7C3AED"];!function(e){e.CurrentUserChanged="CurrentUserChanged"}(c=t.UserManagerEvent||(t.UserManagerEvent={}));var _=function(){function e(e){var t={id:s.UUIDGenerator.secureUpperCaseUUID(),name:y().GUEST_USER,color:"#26A69A",_isDefault:!0};this._users=[t],this._currentUserId=t.id,this.options=e,this._currentColorIndex=0,this._listeners=new Map([[c.CurrentUserChanged,[]]])}return e.instance=function(){return this._instance||(this._instance=new this)},e.prototype.configure=function(e){this.options=e},e.prototype._getSync=function(e){for(var t=this._users,r=0;r<t.length;r++)if(t[r].id===e)return d(t[r])},e.prototype._get=function(e){var t;return n(this,void 0,void 0,(function(){var r;return a(this,(function(n){switch(n.label){case 0:return(null===(t=this.options)||void 0===t?void 0:t.get)?[4,this.options.get(e)]:[3,2];case 1:return(r=n.sent())&&this._add(r),[2,r];case 2:return[2]}}))}))},e.prototype._getOrCreate=function(e){e||(e=s.UUIDGenerator.secureUpperCaseUUID());var t=this._getSync(e);return t||(t={id:e,name:y().GUEST_USER}),this._add(t),t},e.prototype._assignColorToUsers=function(e){var t=this;Array.isArray(e)&&e.forEach((function(e){e&&!e.color&&(e.color=t._getCurrentColor(e.id))}))},e.prototype._search=function(e){var t;return n(this,void 0,void 0,(function(){var r,n;return a(this,(function(a){switch(a.label){case 0:return(null===(t=(r=this).options)||void 0===t?void 0:t.search)?[4,r.options.search(e)]:[3,2];case 1:return n=a.sent(),r._assignColorToUsers(n),[2,n];case 2:return[2,[]]}}))}))},e.prototype.bind=function(e,t){this._listeners.has(e)||this._listeners.set(e,[]);var r=this._listeners.get(e);Array.isArray(r)&&r.push(t)},e.prototype.current=function(e){var t=this;if(h(e))return t._currentUserId;if(t._currentUserId!==e){var r=t._currentUserId;t._currentUserId=e,Promise.all([t._get(r),t._get(e)]).then((function(n){var a=n[0],i=n[1];a||(a=t._getSync(r))&&a._isDefault&&(t._users=t._users.filter((function(e){return!e._isDefault}))),t._triggerCurrentUserChanged(a,i,r,e)})).catch((function(n){t._triggerCurrentUserChanged(void 0,void 0,r,e)}))}return t._currentUserId},e.prototype._triggerCurrentUserChanged=function(e,t,r,n){e||(e=this._getSync(r)),t||(t=this._getSync(n)),this._trigger(c.CurrentUserChanged,{oldCurrentUser:e,newCurrentUser:t})},e.prototype._getUsers=function(){return f(this._users)},e.prototype.unbind=function(e,t){if(this._listeners.has(e)){var r=this._listeners.get(e);if(!Array.isArray(r))return;t?r.splice(r.indexOf(t),1):r.splice(0)}},e.prototype._trigger=function(e,t){if(this._listeners.has(e)){var r=this._listeners.get(e);if(!Array.isArray(r))return;r.forEach((function(r){r(e,t)}))}},e.prototype._fromJSON=function(e){e&&(this._assignColorToUsers(e),this._users=e||[])},e.prototype._toJSON=function(){return f(this._users)},e.prototype._getCurrentColorIndex=function(){var e,t=this._currentColorIndex,r=(null===(e=this.options)||void 0===e?void 0:e.colorScheme)?this.options.colorScheme.length:p.length;return this._currentColorIndex=(t+1)%r,t},e.prototype._hashString=function(e){var t=0;if(!e||0===e.length)return t;for(var r=0;r<e.length;r++){t=(t<<5)-t+e.charCodeAt(r),t|=0}return Math.abs(t)},e.prototype._getColorIndexForUser=function(e){var t,r=(null===(t=this.options)||void 0===t?void 0:t.colorScheme)?this.options.colorScheme.length:p.length;return this._hashString(e)%r},e.prototype._getCurrentColor=function(e){var t,r=(null===(t=this.options)||void 0===t?void 0:t.colorScheme)||p;return e?r[this._getColorIndexForUser(e)]:r[this._getCurrentColorIndex()]},e.prototype._add=function(e){for(var t=this._users,r=0;r<t.length;r++)if(t[r].id===e.id)return t[r]=e,void(e.color||(e.color=this._getCurrentColor(e.id)));e.color||(e.color=this._getCurrentColor(e.id)),t.push(e)},e.prototype._create=function(e,t){var r={id:e||s.UUIDGenerator.secureUpperCaseUUID(),name:t||y().GUEST_USER};return this._add(r),r},e.prototype._remove=function(e){this._users=this._users.filter((function(t){return t.id!==e}))},e.prototype._dispose=function(){this._listeners.clear(),this._users=[],this._currentUserId=""},e}();t.UserManager=_.instance()},305:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t._ArrayHelper=void 0;function r(e,t){for(var n in t)if(t.hasOwnProperty(n)){var a=t[n];Array.isArray(a)?(e[n]=[],r(e[n],t[n])):null!==a&&"object"==typeof a?(e[n]={},r(e[n],t[n])):e[n]=t[n]}}var n=function(){function e(){}return e._insert=function(e,t,r){e.splice(t,0,r)},e._add=function(e,t){e.push(t)},e._contains=function(e,t){return e.indexOf(t)>-1},e._remove=function(e,t){var r=e.indexOf(t);r>-1&&e.splice(r,1)},e._removeByIndex=function(e,t){return e.slice(0,t).concat(e.slice(t+1))},e._indexOf=function(e,t,r){return e.indexOf(t,r)},e._clear=function(e,t,r){if(!(t<0))for(var n=0;n<r&&t+n<e.length;n++)e[t+n]=null},e._nextNonEmptyIndex=function(e,t){t<0&&(t=-1);for(var r=t+1;r<e.length;r++)if(void 0!==e[r]&&null!==e[r])return r;return-1},e._getLength=function(e){return e&&e.length},e._clone=function(e){var t=[];return r(t,e),t},e}();t._ArrayHelper=n},395:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t._ColorHelper=void 0;var n=r(844)._NumberHelper._toHexString,a=Math.min,i=Math.max,o=Math.abs,s=parseInt;function u(e,t,r){return r<0&&(r+=240),r>240&&(r-=240),r<40?e+((t-e)*r+20)/40:r<120?t:r<160?e+((t-e)*(160-r)+20)/40:e}function l(e,t,r){var n,a,i;if(0===r)n=a=i=s(255*t/240+"",10);else{var o,u;n=c(o=2*t-(u=t<=120?s((t*(240+r)+120)/240+""):t+r-s((t*r+120)/240+"")),u,e+80),a=c(o,u,e),i=c(o,u,e-80)}return{a:255,r:n,g:a,b:i}}function c(e,t,r){return a(s((255*u(e,t,r)+120)/240+""),255)}var m={aliceblue:[240,248,255,255],antiquewhite:[250,235,215,255],aqua:[0,255,255,255],aquamarine:[127,255,212,255],azure:[240,255,255,255],beige:[245,245,220,255],bisque:[255,228,196,255],black:[0,0,0,255],blanchedalmond:[255,235,205,255],blue:[0,0,255,255],blueviolet:[138,43,226,255],brown:[165,42,42,255],burlywood:[222,184,135,255],cadetblue:[95,158,160,255],chartreuse:[127,255,0,255],chocolate:[210,105,30,255],coral:[255,127,80,255],cornflowerblue:[100,149,237,255],cornsilk:[255,248,220,255],crimson:[220,20,60,255],cyan:[0,255,255,255],darkblue:[0,0,139,255],darkcyan:[0,139,139,255],darkgoldenrod:[184,134,11,255],darkgray:[169,169,169,255],darkgreen:[0,100,0,255],darkgrey:[169,169,169,255],darkkhaki:[189,183,107,255],darkmagenta:[139,0,139,255],darkolivegreen:[85,107,47,255],darkorange:[255,140,0,255],darkorchid:[153,50,204,255],darkred:[139,0,0,255],darksalmon:[233,150,122,255],darkseagreen:[143,188,143,255],darkslateblue:[72,61,139,255],darkslategray:[47,79,79,255],darkslategrey:[47,79,79,255],darkturquoise:[0,206,209,255],darkviolet:[148,0,211,255],deeppink:[255,20,147,255],deepskyblue:[0,191,255,255],dimgray:[105,105,105,255],dimgrey:[105,105,105,255],dodgerblue:[30,144,255,255],firebrick:[178,34,34,255],floralwhite:[255,250,240,255],forestgreen:[34,139,34,255],fuchsia:[255,0,255,255],gainsboro:[220,220,220,255],ghostwhite:[248,248,255,255],gold:[255,215,0,255],goldenrod:[218,165,32,255],gray:[128,128,128,255],green:[0,128,0,255],greenyellow:[173,255,47,255],grey:[128,128,128,255],honeydew:[240,255,240,255],hotpink:[255,105,180,255],indianred:[205,92,92,255],indigo:[75,0,130,255],ivory:[255,255,240,255],khaki:[240,230,140,255],lavender:[230,230,250,255],lavenderblush:[255,240,245,255],lawngreen:[124,252,0,255],lemonchiffon:[255,250,205,255],lightblue:[173,216,230,255],lightcoral:[240,128,128,255],lightcyan:[224,255,255,255],lightgoldenrodyellow:[250,250,210,255],lightgray:[211,211,211,255],lightgreen:[144,238,144,255],lightgrey:[211,211,211,255],lightpink:[255,182,193,255],lightsalmon:[255,160,122,255],lightseagreen:[32,178,170,255],lightskyblue:[135,206,250,255],lightslategray:[119,136,153,255],lightslategrey:[119,136,153,255],lightsteelblue:[176,196,222,255],lightyellow:[255,255,224,255],lime:[0,255,0,255],limegreen:[50,205,50,255],linen:[250,240,230,255],magenta:[255,0,255,255],maroon:[128,0,0,255],mediumaquamarine:[102,205,170,255],mediumblue:[0,0,205,255],mediumorchid:[186,85,211,255],mediumpurple:[147,112,219,255],mediumseagreen:[60,179,113,255],mediumslateblue:[123,104,238,255],mediumspringgreen:[0,250,154,255],mediumturquoise:[72,209,204,255],mediumvioletred:[199,21,133,255],midnightblue:[25,25,112,255],mintcream:[245,255,250,255],mistyrose:[255,228,225,255],moccasin:[255,228,181,255],navajowhite:[255,222,173,255],navy:[0,0,128,255],oldlace:[253,245,230,255],olive:[128,128,0,255],olivedrab:[107,142,35,255],orange:[255,165,0,255],orangered:[255,69,0,255],orchid:[218,112,214,255],palegoldenrod:[238,232,170,255],palegreen:[152,251,152,255],paleturquoise:[175,238,238,255],palevioletred:[219,112,147,255],papayawhip:[255,239,213,255],peachpuff:[255,218,185,255],peru:[205,133,63,255],pink:[255,192,203,255],plum:[221,160,221,255],powderblue:[176,224,230,255],purple:[128,0,128,255],rebeccapurple:[102,51,153,255],red:[255,0,0,255],rosybrown:[188,143,143,255],royalblue:[65,105,225,255],saddlebrown:[139,69,19,255],salmon:[250,128,114,255],sandybrown:[244,164,96,255],seagreen:[46,139,87,255],seashell:[255,245,238,255],sienna:[160,82,45,255],silver:[192,192,192,255],skyblue:[135,206,235,255],slateblue:[106,90,205,255],slategray:[112,128,144,255],slategrey:[112,128,144,255],snow:[255,250,250,255],springgreen:[0,255,127,255],steelblue:[70,130,180,255],tan:[210,180,140,255],teal:[0,128,128,255],thistle:[216,191,216,255],tomato:[255,99,71,255],turquoise:[64,224,208,255],violet:[238,130,238,255],wheat:[245,222,179,255],white:[255,255,255,255],whitesmoke:[245,245,245,255],yellow:[255,255,0,255],yellowgreen:[154,205,50,255]},y=function(){function e(e){var t=e.r,r=e.g,n=e.b,o=i(i(t,r),n),u=a(a(t,r),n),l=o+u;this._luminosity=s((240*l+255)/510+"",10);var c=o-u;if(0===c)this._saturation=0,this._hue=160;else{this._luminosity<=120?this._saturation=s((240*c+l/2)/l+"",10):this._saturation=s((240*c+(510-l)/2)/(510-l)+"",10);var m=(40*(o-t)+c/2)/c,y=(40*(o-r)+c/2)/c,h=(40*(o-n)+c/2)/c;this._hue=s(t===o?h-y+"":r===o?80+m-h+"":160+y-m+"",10),this._hue<0&&(this._hue+=240),this._hue>240&&(this._hue-=240)}}return e.prototype._getLighterColor=function(e){var t=this._luminosity,r=this._newLuma(this._luminosity,500,!0);return l(this._hue,t+(r-t)*e,this._saturation)},e.prototype._newLuma=function(e,t,r){return 0===t?e:r?t>0?(e*(1e3-t)+241*t)/1e3:e*(t+1e3)/1e3:((e+=240*t/1e3)<0&&(e=0),e>240&&(e=240),e)},e}(),h=/rgba?\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})(?:,\s*(\.\d+|\d(?:\.\d+)?))?\)/;function f(e){if(/^#[A-Fa-f0-9]+$/.test(e)){var t=e.replace(/^#/,""),r=t.length,n="",a="";if(6===r||8===r)n=t.substr(0,6),8===r&&(a=t.substr(6,2));else if(3===r||4===r){var i=t.split(3===r?/(.)/:/(..)/);n=i.filter(Boolean).map((function(e){return parseInt(3===r?e+e:e,16)})).map((function(e){return e.toString(16).padStart(2,"0")})).join(""),4===r&&(a=i[3]+i[3])}return[parseInt(n.slice(0,2),16),parseInt(n.slice(2,4),16),parseInt(n.slice(4,6),16),s=a?parseInt(a,16):255]}if(e.toLowerCase()in m)return m[e.toLowerCase()];var o=h.exec(e);if(null!==o){var s=void 0===o[4]?255:255*+o[4];return[o[1],o[2],o[3],s]}return null}var d=function(){function e(){}return e._toString=function(e){var t=e.a,r=e.r,a=e.g,i=e.b;return 3===arguments.length&&(t=255,r=arguments[0],a=arguments[1],i=arguments[2]),4===arguments.length&&(t=arguments[0],r=arguments[1],a=arguments[2],i=arguments[3]),255===t?"#"+n(r,!0,2)+n(a,!0,2)+n(i,!0,2):"rgba("+r+","+a+","+i+","+t+")"},e._equal=function(e,t){return e.stops||e.type?JSON.stringify(e)===JSON.stringify(t):e.a===t.a&&e.r===t.r&&e.g===t.g&&e.b===t.b},e._getBrightness=function(e){return(299*e.r+587*e.g+114*e.b)/1e3},e._isTwoColorSimilar=function(e,t){var r=255-o(e.r-t.r),n=255-o(e.g-t.g),a=255-o(e.b-t.b),i=o(e.a-t.a);return!!(((r/=255)+(n/=255)+(a/=255))/3>=.9&&i<=.05)},e._invertColor=function(t){var r=255^t.r,n=255^t.g,a=255^t.b;return e._toString(t.a,r,n,a)},e._stringToARGB=function(t){if("object"!=typeof document)return f(t);var n=e._ctx;if(n||(i=document.createElement("canvas"))&&i.getContext&&(n=e._ctx=i.getContext("2d",{willReadFrequently:!0})),!n){var a=r(736);if(a&&a.createCanvas){var i=a.createCanvas(2,2);n=e._ctx=i.getContext("2d")}if(!n)return f(t)}n.clearRect(1,1,1,1),n.fillStyle=t,n.fillRect(1,1,1,1);var o=n.getImageData(1,1,1,1);return o?o.data:null},e._fromString=function(t){if(t instanceof e)return t;if(null!==t&&"object"==typeof t)return t;var r=0,n=0,a=0,i=0;if(t){var o=e._stringToARGB(t);o&&(n=o[0],a=o[1],i=o[2],r=o[3])}return{a:r,r:n,g:a,b:i}},e._applyTint=function(t,r){if(0===r)return t;var n=new y(t),a=s((r>0?(240-n._luminosity)*r:n._luminosity*r)+"",10);return e._fromHLS(n._hue,n._luminosity+a,n._saturation)},e._getLighterColor=function(t,r){var n=e._fromString(t),a=new y(n)._getLighterColor(r);return e._toString(a)},e._hueToRGB=u,e._fromHLS=l,e}();t._ColorHelper=d},818:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t._isInstanceOf=t._hasOwnProperty=t._deleteElementsForMap=t._deleteElements=t._addElementsForMap=t._addElements=t.ResourceManager=t.SR=void 0;var n=r(286),a=r(612),i=r(534);t.SR={en:a};var o=i._Types._extend,s=function(){function e(e,t){this.res=e,this._moduleName=t,this._resourcesMap=n.CultureManager._resourcesMap,this.cachedResource=this._getResourceCollection(e,!0),this._buildResourcesMap(this.cachedResource,t),this._cultureVersion=0}return e.prototype.getResource=function(){var e=this._getResourceCollection(this.res,!this.cachedResource);return e&&(this.cachedResource=e),this._buildResourcesMap(this.cachedResource,this._moduleName),this.cachedResource},e.prototype._buildResourcesMap=function(e,t){if(t){var r=n.CultureManager.culture().toLowerCase();this._resourcesMap[r]=this._resourcesMap[r]||{},this._resourcesMap[r][t]=e,n.CultureManager._resourcesMap=this._resourcesMap}},e.prototype._getResourceCollection=function(e,t){var r=n.CultureManager.culture();if(e&&r){var a=n.CultureManager._cultureVersion;if(this._cultureVersion===a&&!t)return;if(this._cultureVersion=a,n.CultureManager.getLanguage(r)){var i=o(!0,{},e.en);return n.CultureManager._languageTranslate(r,i,this._moduleName),i}var s=r.substr(0,2).toLowerCase();return e.hasOwnProperty(s)?e[s]:e.en}return{}},e}();t.ResourceManager=s,t._addElements=function(e,t,r,n){if(e&&0<=r&&r<t){var a,i=[],o=void 0;for(o=r;o<t;o++)void 0!==e[o]&&i.push(o);for(a=i.length,o=0;o<a;o++){var s=i[a-o-1],u=e[s];e[s]=null,e[Math.floor(s)+n]=u}}},t._addElementsForMap=function(e,t,r,n){if(e&&0<=t){for(var a,i=[],o=void 0,s=0,u=Array.from(e.keys());s<u.length;s++){(l=u[s])>=t&&i.push(l)}for(i.sort((function(e,t){return e-t})),a=i.length,o=0;o<a;o++){var l=i[a-o-1],c=e.get(l);e.delete(l);var m=l+r;e.set(m,c),n&&n(c,m)}}},t._deleteElements=function(e,t,r,n){if(e&&0<=r&&r<t){var a,i=[],o=r+n,s=void 0;for(s=r;s<t;s++)void 0!==e[s]&&(r<=s&&s<o?e[s]=null:s>=o&&i.push(s));for(a=i.length,s=0;s<a;s++){var u=i[s],l=e[u];e[u]=null,e[Math.floor(u)-n]=l}}},t._deleteElementsForMap=function(e,t,r,n){if(e&&0<=t){for(var a,i=[],o=t+r,s=void 0,u=0,l=Array.from(e.keys());u<l.length;u++){var c=l[u];e.has(c)&&(t<=c&&c<o?(n&&n(e.get(c),-1),e.delete(c)):c>=o&&i.push(c))}for(i.sort((function(e,t){return e-t})),a=i.length,s=0;s<a;s++){c=i[s];var m=e.get(c);e.delete(c);var y=c-r;e.set(y,m),n&&n(m,y)}}},t._hasOwnProperty=function(e,t){return e.hasOwnProperty(t)},t._isInstanceOf=function(e,t){return e instanceof t}},97:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t._DateTimeHelper=t.getSR=void 0;var n=r(818),a=r(480),i=r(305),o=r(286),s=r(534)._Types._isNullOrUndefined,u=a._StringHelper._padZeroLeft,l=parseInt,c=!1,m=Math.floor,y=Math.abs,h=new n.ResourceManager(n.SR,"Common");t.getSR=h.getResource.bind(h);var f={};function d(e,r,a,i){var s=a.DateTimeFormat,l=s.Calendar.convert;if(!r||!r.length)return a&&a.name.length?l?d(e,s.fullDateTimePattern,a):e.toLocaleString():e.toString();var c,h,f,_=s.eras,g="",M=/([^d]|^)(d|dd)([^d]|$)/g;function v(){return h||f||(h=M.test(r),f=!0),h}var b,F=0,S=/\/|dddd|ddd|dd|d|MMMM|MMM|MM|M|yyyy|yyy|yy|y|hh|h|HH|H|mm|m|ss|s|tt|t|fff|ff|f|000|00|0|zzz|zz|z|ggg|gg|g|ee|e|\[H+\]|\[h+\]|\[m+\]|\[s+\]/g;function D(e,t){return b?b[t]:function(e,t){if(n.HandleExcelSpecialDate)return n.HandleExcelSpecialDate.call(null,e,t);switch(t){case 0:return e.getFullYear();case 1:return e.getMonth();case 2:return e.getDate();default:return}}(e,t)}"s"!==r&&l&&(b=l.fromGregorian(e));for(var x=-2,C=-2,T={_value:""},N=0;;N++){var H=S.lastIndex,E=S.exec(r),P=r.slice(H,E?E.index:r.length);if(T._value="",F+=p(P,T),g+=T._value,!E)break;if(F%2!=1){var O=D(e,0),w=e.getDay(),k=e.getHours(),I=e.getMinutes(),A=e.getSeconds(),$=e.getMilliseconds(),R=e.getTimezoneOffset();switch(E[0]){case"dddd":g+=s.dayNames[w];break;case"ddd":g+=s.abbreviatedDayNames[w];break;case"dd":h=!0,g+=u(D(e,2),2);break;case"d":h=!0,g+=D(e,2);break;case"MMMM":g+=s.monthGenitiveNames&&v()?s.monthGenitiveNames[D(e,1)]:s.monthNames[D(e,1)];break;case"MMM":g+=s.abbreviatedMonthGenitiveNames&&v()?s.abbreviatedMonthGenitiveNames[D(e,1)]:s.abbreviatedMonthNames[D(e,1)];break;case"MM":g+=u(D(e,1)+1,2);break;case"M":g+=D(e,1)+1;break;case"yyyy":case"yyy":g+=x>=0?o._EraHelper._formatEraPart("ee",e,i):u(b?b[0]:O,4);break;case"yy":g+=x>=0?o._EraHelper._formatEraPart("ee",e,i):u((b?b[0]:O)%100,2);break;case"y":g+=x>=0?o._EraHelper._formatEraPart("e",e,i):""+(b?b[0]:O)%100;break;case"hh":0==(c=k%12)&&(c=12),g+=u(c,2);break;case"h":0==(c=k%12)&&(c=12),g+=c;break;case"HH":g+=u(k,2);break;case"H":g+=k.toString();break;case"mm":g+=u(I,2);break;case"m":g+=I.toString();break;case"ss":g+=u(A,2);break;case"s":g+=A.toString();break;case"tt":g+=k<12?s.amDesignator:s.pmDesignator;break;case"t":g+=(k<12?s.amDesignator:s.pmDesignator).charAt(0);break;case"f":case"0":g+=u($,3).charAt(0);break;case"ff":case"00":g+=u($,3).substr(0,2);break;case"fff":case"000":g+=u($,3);break;case"z":g+=((c=R/60)<=0?"+":"-")+m(y(c));break;case"zz":g+=((c=R/60)<=0?"+":"-")+u(m(y(c)),2);break;case"zzz":g+=((c=R/60)<=0?"+":"-")+u(m(y(c)),2)+":"+u(y(R%60),2);break;case"g":case"gg":case"ggg":if(!_)break;if(x===N-1){x=N;break}g+=o._EraHelper._formatEraPart(E[0],e,i),x=N;break;case"e":case"ee":if(!_){g+=u(b?b[0]:O,4);break}if(C===N-1){C=N;break}g+=o._EraHelper._formatEraPart(E[0],e,i),C=N;break;case"/":g+=s.dateSeparator;break;default:if(!/\[(H+|h+|m+|s+)\]/.test(E[0]))throw Error((0,t.getSR)().Exp_InvalidDateFormat);g+=E[0]}}else g+=E[0]}return g.toString()}function p(e,t){for(var r=0,n=c,a=0,i=e.length;a<i;a++){var o=e.charAt(a);switch(o){case'"':n?t._value+="'":r++,n=c;break;case"\\":n&&(t._value+="\\"),n=!n;break;default:t._value+=o,n=c}}return r}function _(e,t){var r=new Date;if(e.DateTimeFormat.eras&&t<100){var n=o._EraHelper._getEraDate(r)._eraYear;(t+=n-n%100)>e.DateTimeFormat.Calendar.TwoDigitYearMax&&(t-=100)}return t}function g(e){var t=e.getTimezoneOffset();return-485===t&&(t=-485-43/60),-321===t&&(t=-321-10/60),-507===t&&(t=-507-52/60),-402===t&&(t=-402-4/60),t}var M=function(){function e(){}return e._customCultureFormat=function(e,t,r,n){return r||(r=o.CultureManager._getCultureInfo()),d(e,t,r,n)},e._localeFormat=function(e,t,r){return d(e,t,r||o.CultureManager._getCultureInfo())},e._parseDate=function(t,r,n){var a,i,o,s,u,l=c;for((u=n).slice(1).forEach((function(e){e&&(l=!0)})),l||(u=u.concat(r._getDateTimePattern())),i=u.length,a=1;a<i;a++)if((s=u[a])&&(l=!0,o=e._parseExact(t,s,r)))return o;return null},e._parseLocale=function(t,r,n){var a,i;return r||n||void 0===(i=f[t])?(a=r?[t,r]:[t],i=e._parseDate(t,n||o.CultureManager._getCultureInfo(),a),r||n||(f[t]=i),i?new Date(i):i):i?new Date(i):i},e._parseInvariant=function(t,r){return e._parseDate(t,o.CultureManager._getCultureInfo("invariant"),[t,r])},e._parseExact=function(e,r,n){e=e.trim();var s=n.DateTimeFormat,u=1041===n.id,m=function(e,r,n){if(e._parseRegExp){if(e._parseRegExp[r])return e._parseRegExp[r]}else e._parseRegExp={};var a=r;a=(a=a.replace("%M","M")).replace(/([\^\$\.\*\+\?\|\[\]\(\)\{\}])/g,"\\\\$1");for(var o,s="^",u={_value:""},l=[],c=0,m=0,y=/\/|dddd|ddd|dd|d|MMMM|MMM|MM|M|yyyy|yyy|yy|y|hh|h|HH|H|mm|m|ss|s|tt|t|fff|ff|f|000|00|0|zzz|zz|z|ggg|gg|g|ee|e|\[H+\]|\[h+\]|\[m+\]|\[s+\]/g;null!==(o=y.exec(a));){u._value="";var h=a.slice(c,o.index);if(c=y.lastIndex,m+=p(h,u),s+=u._value,m%2!=1){switch(o[0]){case"dddd":case"ddd":case"MMMM":case"MMM":case"gggg":case"ggg":case"gg":case"g":s+="(\\D+)";break;case"tt":case"t":s+="(\\D*)";break;case"dd":case"d":case"MM":case"M":case"yy":case"y":case"HH":case"H":case"hh":case"h":case"mm":case"m":case"ss":case"s":s+="(\\d\\d?\\d?)";break;case"eee":case"ee":case"e":s+=n?"(\\u5143|\\d\\d?)":"(\\d\\d?)";break;case"yyy":case"yyyy":s+="(\\d{2}|\\d{4})";break;case"fff":case"000":s+="(\\d{3})";break;case"ff":case"00":s+="(\\d{2})";break;case"f":case"0":s+="(\\d)";break;case"zzz":s+="([+-]?\\d\\d?:\\d{2})";break;case"zz":case"z":s+="([+-]?\\d\\d?)";break;case"/":s+="/"===e.dateSeparator?"(\\/)":"([\\/\\"+e.dateSeparator+"])";break;default:throw Error((0,t.getSR)().Exp_InvalidDateFormat)}i._ArrayHelper._add(l,o[0])}else s+=o[0]}u._value="",p(a.slice(c),u),s+=u._value;var f=(s+="$").toString().replace(/\s+/g,"\\s+"),d={_regExp:f,_groups:l,_exp:RegExp(f)};return e._parseRegExp[r]=d,d}(s,r,u),y=m._exp.exec(e);if(null===y)return null;for(var h,f=m._groups,d=null,g=null,M=null,v=null,b=null,F=0,S=0,D=0,x=0,C=null,T=c,N=c,H=0,E=f.length;H<E;H++){var P=y[H+1];if(P)switch(f[H]){case"dd":case"d":if((v=l(P,10))<1||v>31)return null;break;case"MMMM":if((M=n._getMonthIndex(P))<0||M>11)return null;break;case"MMM":if((M=n._getAbbrMonthIndex(P))<0||M>11)return null;break;case"M":case"MM":case"%M":if((M=l(P,10)-1)<0||M>11)return null;break;case"e":case"ee":if((g=u&&"元"===P?1:_(n,l(P,10)))<0||g>9999)return null;break;case"y":case"yy":case"yyy":case"yyyy":if((g=l(P,10))<0||g>9999)return null;break;case"h":case"hh":case"H":case"HH":if((F=l(P,10))<0)return null;break;case"m":case"mm":if((S=l(P,10))<0||S>59)return null;break;case"s":case"ss":if((D=l(P,10))<0||D>59)return null;break;case"tt":case"t":var O=P.toUpperCase();if(T=O===s.pmDesignator.toUpperCase(),N=O===s.amDesignator.toUpperCase(),!T&&!N)return null;break;case"f":case"0":if((x=100*l(P,10))<0||x>999)return null;break;case"ff":case"00":if((x=10*l(P,10))<0||x>999)return null;break;case"fff":case"000":if((x=l(P,10))<0||x>999)return null;break;case"dddd":if((b=n._getDayIndex(P))<0||b>6)return null;break;case"ddd":if((b=n._getAbbrDayIndex(P))<0||b>6)return null;break;case"zzz":var w=P.split(/:/);if(2!==w.length)return null;if((h=l(w[0],10))<-12||h>13)return null;var k=l(w[1],10);if(k<0||k>59)return null;C=60*h+(a._StringHelper._startsWith(P,"-")?-k:k);break;case"z":case"zz":if((h=l(P,10))<-12||h>13)return null;C=60*h;break;case"g":case"gg":case"ggg":var I=P;if(!I||!s.eras)return null;if((d=o._EraHelper._parseEraPart(f[H],I))<0)return null}}var A,$=/^(\d|\d\d|\d\d\d):/.test(e),R=$?new Date(1899,11,30):new Date,U=s.Calendar.convert;if(U&&(A=U.fromGregorian(R)),U||(A=[R.getFullYear(),R.getMonth(),R.getDate()]),null===g?g=A[0]:g<100&&(s.eras&&null!==d?g=o._EraHelper._getYearFromEra(d||0,g):g+=g>=30?1900:2e3),null===M&&(M=A[1]),null===v&&(v=$?A[2]:1),U){if(null===(R=U.toGregorian(g,M,v)))return null}else{if(R.setFullYear(g,M,v),R.getDate()!==v)return null;if(null!==b&&R.getDay()!==b)return null}if(T&&F<12?F+=12:N&&12===F&&(F=0),R.setHours(F,S,D,x),null!==C){var B=R.getMinutes()-(C+R.getTimezoneOffset());R.setHours(R.getHours()+B/60,B%60)}return R},e._fromOADate=function(e){var t=g(new Date(864e5*(e-25569))),r=Math.round(864e5*(e-25569+t/1440)),n=new Date(r),a=t>=0?1:-1,i=g(new Date(r+36e5*a));if(y(t-i)>=60){var o=new Date(r+60*(i-t)*1e3);if(t>i){if(-1===a||i===g(n))return o}else if(t<i&&(1===a||i===g(n)))return o}return n},e._fromOADateString=function(t){if("/OADate("===t.substr(0,8)){var r=parseFloat(t.substr(8,t.length-10));return e._fromOADate(r)}},e._toOADateString=function(t){return"/OADate("+e._toOADate(t)+")/"},e._toOADate=function(e){if(s(e))return 0;if("number"!=typeof e&&"string"!=typeof e||(e=new Date(e)),e instanceof Date){var t=g(e);return(1440*e.getTime()+3181192704e6-864e5*t)/124416e6}return 0},e._DT=function(r){var n=null,a=!0;if(s(r))n=e._fromOADate(0);else if(r instanceof Date)n=new Date(r.valueOf());else if("string"==typeof r){var i=e._parseLocale(r);if(!i)if(isNaN(r))if(e._isInvalidDateString(r))a=c;else{isNaN((i=new Date(r)).valueOf())&&(a=c);var o=/^[-+=\s]*(\d+)\W+(\d+)\W+(\d+)$/.exec(r.replace(/ |\n/g,"").trim());o&&4===o.length&&(-1!==o.indexOf(i.getFullYear().toString())&&-1!==o.indexOf(""+(i.getMonth()+1))&&-1!==o.indexOf(i.getDate().toString())||(a=c))}else(i=e._fromOADate(parseFloat(r)))||(a=c);n=i}else"number"==typeof r?n=e._fromOADate(r):a=c;if(a)return n;throw(0,t.getSR)().Exp_InvalidCast},e._isInvalidDateString=function(t){var r,n,a=o.CultureManager._getCultureInfo().DateTimeFormat,i=e._invalidCharInDateStr,s=function(e,t){var r=0;return t.forEach((function(t){t&&e.indexOf(t)>-1&&r++})),r>1};return s(t,a.monthNames)||s(t,a.abbreviatedMonthNames)||s(t,a.dayNames)||s(t,a.abbreviatedDayNames)||function(e,t){if(e&&e.indexOf(" ")>-1){var r=e.split(" "),n=r.length;return n>=2&&t.indexOf(r[n-2])<=-1&&!isNaN(r[n-1])}return!1}(t,a.monthNames.concat(a.abbreviatedMonthNames))||(r=t,n=!1,i.forEach((function(e){r.indexOf(e)>-1&&(n=!0)})),n)},e._isDate=function(e){return e&&(e.constructor===Date||e.getUTCDate&&e.setFullYear)},e._invalidCharInDateStr=["@","#","!","`","^","$","*","(",")","&"],e}();t._DateTimeHelper=M},646:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t._growth=t._trend=void 0;var n=r(844),a=isNaN,i="rowCount",o="colCount";function s(e){return e}function u(e,t,r,s,u,l,c,m,y,h,f){var d,p,_,g,M,v,b,F,S,D,x,C,T,N,H,E,P=r[i],O=r[o],w=t[i],k=t[o],I=s[i],A=s[o],$=1===O,R=1===k;if(w===P&&k===O){var U=0,B=0,L=0,j=0;for(b=P*O,d=0;d<P;d++)for(p=0;p<O;p++){if(g=l(r[d][p]),M=l(t[d][p]),e&&(a(g)||a(M)))return y;U+=g,B+=g*g,L+=M=h(M),j+=g*M}var G=b*j-U*L;F=u?(L*B-U*j)/(b*B-U*U):0;var Y=(v=u?G/(b*B-U*U):j/B).toString();for((Y.indexOf("000000000000")>1||Y.indexOf("999999999999")>1)&&(v=n._NumberHelper._fixNumber(v,12),F=n._NumberHelper._fixNumber(F,12)),S=[],d=0;d<I;d++)for(S[d]=[],p=0;p<A;p++){if(g=l(s[d][p]),e&&a(g))return y;S[d][p]=0===G?t[0][0]:f(n._NumberHelper._safeAdd(v*g,F))}return c?new c(S):S}if(R&&w===P||1===w&&k===O){for(g=[],M=[],H=O+1,E=O+2,d=0;d<P;d++){if(F=l(x=R?t[d][0]:t[0][d]),e&&a(F))return y;M[d]=$?h(F):F}for(d=0;d<P;d++)for(g[d]=[],p=0;p<O;p++){if(F=l(r[d][p]),e&&a(F))return y;g[d][p]=F}var z=[];for(v=0;v<H;v++)for(z[v]=[],b=0;b<E;b++)z[v][b]=0;for(_=0;_<P;_++)for(z[0][H]+=M[_],d=0;d<O;d++)for(x=d+1,z[0][x]+=g[_][d],z[x][0]=z[0][x],z[x][H]+=g[_][d]*M[_],p=d;p<O;p++)z[T=p+1][x]+=g[_][d]*g[_][p],z[x][T]=z[T][x];z[0][0]=P;var K=u?0:1;for(D=K;D<H;D++){if(e){if(0===z[D][D]){for(N=!1,p=D+1;!N&&p<H;p++)if(0!==z[p][D]){for(_=0;_<E;_++)T=z[D][_],z[D][_]=z[p][_],z[p][_]=T;N=!0}if(!N)return m}}else{for(d=D;d<H&&0===z[d][D];)d++;if(d>=H)return m;for(C=K;C<E;C++)x=z[D][C],z[D][C]=z[d][C],z[d][C]=x}for(x=1/z[D][D],C=K;C<E;C++)z[D][C]*=x;for(d=K;d<H;d++)if(d!==D)for(x=-z[d][D],C=0;C<E;C++)z[d][C]+=x*z[D][C];u||(z[0][H]=0)}for(S=[],R||(S[0]=[]),d=0;d<I;d++){for(R&&(S[d]=[]),x=z[0][H],p=0;p<O;p++){if(F=l(R?s[d][p]:s[p][d]),e&&a(F))return y;x+=z[p+1][H]*F}R?S[d][0]=f(x):S[0][d]=f(x)}return c?new c(S):S}return m}t._trend=function(e,t,r,n,a,i,o,l){return u(!0,e,t,r,n,a,i,l,o,s,s)},t._growth=function(e,t,r,n,a,l,c){var m,y;for(m=0;m<e[i];m++)for(y=0;y<e[o];y++)if(e[m][y]<=0)return l;return u(!1,e,t,r,n,s,a,c,null,Math.log,Math.exp)}},844:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t._NumberHelper=void 0;var n=r(818),a=r(534),i=r(576),o=r(480),s=r(286),u=a._Types._isNullOrUndefined,l=o._StringHelper._padZeroLeft,c=o._StringHelper._padZeroRight,m=null,y=void 0,h=parseInt,f=parseFloat,d=!1,p=!0,_=Math.floor,g=Math.abs,M=Math.pow,v=Math.min,b=Number.MAX_VALUE,F=function(e,t,r){return e.substr(t,r)},S=function(e){return i._RegexHelper._getReg(e)},D=new n.ResourceManager(n.SR),x=D.getResource.bind(D),C="##################0",T="################",N={1:"+",0:"","-1":"-"},H=["0","#","?"],E={"¤":"¤",Br:"Br",Fdj:"Fdj",Nfk:"Nfk",R:"R",$:"$",FCFA:"FCFA","GH₵":"GH₵",ብር:"ብር","ر.س.‏":"ر.س.‏",XDR:"XDR","د.إ.‏":"د.إ.‏","د.ب.‏":"د.ب.‏","د.ج.‏":"د.ج.‏","ج.م.‏":"ج.م.‏","₪":"₪","د.ع.‏":"د.ع.‏","د.ا.‏":"د.ا.‏","ف.ج.ق.‏":"ف.ج.ق.‏","د.ك.‏":"د.ك.‏","ل.ل.‏":"ل.ل.‏","د.ل.‏":"د.ل.‏","د.م.‏":"د.م.‏","أ.م.‏":"أ.م.‏","ر.ع.‏":"ر.ع.‏","ر.ق.‏":"ر.ق.‏","ج.س.":"ج.س.",S:"S","£":"£","ل.س.‏":"ل.س.‏","د.ت.‏":"د.ت.‏","ر.ي.‏":"ر.ي.‏","₹":"₹",TSh:"TSh","€":"€","₼":"₼","₽":"₽",K:"K","лв.":"лв.","₦":"₦",CFA:"CFA","৳":"৳","¥":"¥",KM:"KM",КМ:"КМ",USh:"USh",Kč:"Kč","kr.":"kr.",Ksh:"Ksh",CHF:"CHF","ރ.":"ރ.","Nu.":"Nu.",EC$:"EC$",P:"P",US$:"US$",D:"D",Rp:"Rp",Ar:"Ar",MOP$:"MOP$",Rs:"Rs",MK:"MK",RM:"RM","₱":"₱",RF:"RF",SR:"SR",SDG:"SDG",Le:"Le","NAf.":"NAf.",E:"E",T$:"T$",VT:"VT",WS$:"WS$",Bs:"Bs","₡":"₡",Q:"Q",L:"L",C$:"C$","B/.":"B/.","S/.":"S/.","₲":"₲","Bs.":"Bs.",ريال:"ريال",FG:"FG",UM:"UM",kr:"kr",FBu:"FBu",FC:"FC",DA:"DA",G:"G",CF:"CF",DH:"DH",FCFP:"FCFP",LS:"LS",DT:"DT",kn:"kn",HUF:"HUF","֏":"֏",ISK:"ISK","₾":"₾","​":"​","₸":"₸","៛":"៛","₩":"₩",сом:"сом",Kz:"Kz","₭":"₭",MTn:"MTn",ден:"ден","₮":"₮",रु:"रु","Afl.":"Afl.","ߖߕ.":"ߖߕ.","руб.":"руб.",zł:"zł","؋":"؋",R$:"R$",Db:"Db",RON:"RON","₴":"₴",MAD:"MAD","රු.":"රු.",Lekë:"Lekë",den:"den",RSD:"RSD","дин.":"дин.","ܠ.ܣ.‏":"ܠ.ܣ.‏","Rs.":"Rs.",смн:"смн","฿":"฿","m.":"m.","₺":"₺",ⴷⵔ:"ⴷⵔ",soʻm:"soʻm",сўм:"сўм","₫":"₫",HK$:"HK$",MOP:"MOP",NT$:"NT$"};function P(e,t,r,n){return t&&0!==t.length&&"i"!==t?function(e,t,r,n){return B(e,k(t),r,n)}(e,t,r.NumberFormat,n):r&&r.name.length>0?e.toLocaleString():e.toString()}function O(e,t){for(var r=_(g(e)),n={_integer:1,_decimal:0};r>=10&&Number.isFinite(r);)r/=10,n._integer++;var a,i=e.toString(),o=i.search(/e/gi),s=i.indexOf(t);if(-1!==o){var u=F(i,0,o),l=F(i,o+1),c=0;-1!==s&&(c=F(u,s+1).length),(a=c-f(l))<0&&(a=0),n._decimal=a}else a=0,-1!==s&&(a=F(i,s+1).length),n._decimal=a;return n}function w(e){for(var t={_symbol:e.charAt(0),_sign:0,_exp:0},r="",n=1;n<e.length;n++)if("+"===(r=e.charAt(n)))t._sign=1;else{if("-"!==r){if("0"===r){t._exp=e.length-n;break}throw Error(x().Exp_InvalidExponentFormat)}t._sign=-1}return t}function k(e){for(var t,r={_intPart:m,_decPart:m,_group:d,_scale:0,_percent:0,_permille:0,_exponent:m},n="",a=d,i=d,o=d,s=d,u=d,l=d,c=m,y=[],h=0;h<e.length;h++){if(t=e.charAt(h),a)n+=t,'"'===t&&(y.push(n),n="",a=d);else if(i){if("E"===c||"e"===c){if(!(["+","-","0"].indexOf(t)>=0)){i=d,h--;continue}n+=t}else if("+"===c||"-"===c){if("0"!==t){i=d,h--;continue}n+=t}else if("0"===c){if("0"!==t){i=d,u||(u=p,r._exponent=w(n)),h--;continue}n+=t}}else if("*"!==c&&"_"!==c&&"\\"!==c||""===n)if("*"===t||"_"===t||"\\"===t)l=d,""!==n&&(y.push(n),n=""),n+=t;else if("'"===t)l=d,""!==n&&(y.push(n),n=""),y.push(t);else if('"'===t)l=d,a=p,""!==n&&(y.push(n),n=""),n+=t;else if(H.indexOf(t)>=0)l=p,H.indexOf(c)<0&&""!==n&&(y.push(n),n=""),n+=t;else if("."!==t||o)if("%"===t)l=d,r._percent++,""!==n&&(y.push(n),n=""),y.push(t);else if("‰"===t)l=d,r._permille++,""!==n&&(y.push(n),n=""),y.push(t);else if(","===t)if(l){var f=void 0;""!==n&&(y.push(n),n="");for(var _=p,g="",M=h+1;M<e.length;M++)if(f=e.charAt(M),'"'!==g)if("\\"!==g&&"_"!==g){if(H.indexOf(f)>=0){_=d;break}if("."===f||";"===f)break;g=f}else g="";else'"'===f&&(g="");_?r._scale++:o||(f=e.charAt(h+1))&&H.indexOf(f)>=0&&(s=p)}else n+=t;else"E"===t||"e"===t?(l=d,i=p,""!==n&&(y.push(n),n=""),n+=t):(l=d,H.indexOf(c)>=0&&""!==n&&(y.push(n),n=""),n+=t);else""!==n&&(y.push(n),n=""),r._intPart=y,y=[],o=p,l=d;else n+=t,y.push(n),n="";c=t}return""!==n&&(i&&!u&&(r._exponent=w(n)),y.push(n)),s&&(r._group=p),o?r._decPart=y:r._intPart=y,r}function I(e,t,r,n,a,i){var o=function(e,t){if(t=+t,isNaN(e=+e)||t%1!=0)return NaN;var r=e<0;if(e=r?-e:e,typeof t===y||0===t)return e=Math.round(e),r?-e:e;var n=e.toString().split("e");return e=Math.round(+(n[0]+"e"+(n[1]?+n[1]-t:-t))),+((n=(e=r?-e:e).toString().split("e"))[0]+"e"+(n[1]?+n[1]+t:t))}(e,-t);isFinite(o)||(o=e);var s,u,m=(e=o).toString(),f=m.split(/e/i);return m=f[0],u=f.length>1?h(f[1],10):0,f=m.split("."),m=f[0],s=f.length>1?f[1]:"",u>0?(m+=(s=c(s,u)).slice(0,u),s=F(s,u)):u<0&&(u=-u,s=(m=e<0?i+l(m.replace(i,""),u+1):l(m,u+1)).slice(-u,m.length)+s,m=m.slice(0,-u)),m+(t>0?a+(s=s.length>t?s.slice(0,t):c(s,t)):"")}function A(e){var t=m;if(e){t="";for(var r=0;r<e.length;r++){var n=e[r];/^(0|#|\?)+/g.test(n)&&(t+=n)}}return t}var $=Math.pow(2,48);function R(e,t){return e===t||0!==e&&0!==t&&(g(e-t)<g(e)/$||(e=Y(e,15),t=Y(t,15),g(e-t)<g(e)/$))}function U(e,t,r,n,a,i,o,s){var u=s.numberGroupSizes,c=s.numberGroupSeparator,m=s.negativeSign,y=s.percentSymbol,h=s.perMilleSymbol,f=n._exponent,_=F(t,0,1);_===m&&(t=F(t,1));var g=1===t.length&&"0"===t?0:t.length;t=0===g?"":t;for(var M=0,v="",b=e.length-1;b>=0;b--){var S="",D=e[b];if(/^(0|#|\?)+/g.test(D)){if(v!==r){for(var C=D.length,T=g-M-1;T>=0&&C>0;T--){S=t.charAt(T)+S,C--,M++}for(var H=C-1;H>=0;H--){var P=D[H];M++,"0"===P?S=P+S:"?"===P&&(""!==S&&(i.push({type:"number",value:S}),S=""),i.push({type:"numberPlaceholder",value:P}))}(v=D+v)===r&&M<g&&(S=t.substr(0,g-M)+S),""!==S&&i.push({type:"number",value:S})}}else if(n._exponent&&!o.replaceExponent&&/^((E(\+|-)?|e(\+|-)?)\d+)/g.test(D)){o.replaceExponent=p;var O="";O+=f._symbol,O+=N[f._sign],O+=l(a.toString(),f._exp),i.push({type:"exponent",value:O})}else"_"===D[0]?i.push({type:"placeholder",value:D[1]}):"*"===D[0]?o.hasInfilling||(i.push({type:"fillingChar",value:D[1]}),o.hasInfilling=!0,o.infillIndex=i.length-1):"\\"===D[0]?2===D.length&&i.push({type:"text",value:D[1]}):'"'===D[0]&&'"'===D[D.length-1]?D.length>2&&i.push({type:"text",value:D.substr(1,D.length-2)}):D===y?i.push({type:"percent",value:D}):D===h?i.push({type:"permille",value:D}):E[D]?i.push({type:"currency",value:D}):i.push({type:"text",value:D})}_===m&&r&&i.push({type:"text",value:_}),n._group===p&&function(e,t,r,n){for(var a=t[0],i=1,o=0,s=d,u=e.length,l=0;l<u;l++){var c=e[l].type;if("number"===c){for(var m="",y=e[l].value,h=y.length-1;h>=0;){if(!(1<=a&&a<=9||0===a&&i===t.length))throw Error(x().Exp_InvalidNumberGroupSize);/\d/gi.test(y[h])?(s&&(m&&e.push({type:"number",value:m}),e.push({type:"groupSeparator",value:r}),m="",s=d),o++):o=0,m=y[h]+m,o===a&&a>0&&(s=p,o=0,i<t.length&&(a=t[i],i++)),h--}m&&e.push({type:c,value:m})}else"fillingChar"===c&&(n.infillIndex=e.length-u),e.push({type:c,value:e[l].value})}e.splice(0,u)}(i,u,c,o),i.reverse(),o.infillIndex=i.length-1-o.infillIndex}function B(e,t,r,n){var a=[];e=function(e,t,r,n){var a=e;return t>0&&(a=Y(a*M(100,t),15)),r>0&&(a=Y(a*M(1e3,r),15)),n>0&&(a=Y(a/M(1e3,n),15)),a}(e,t._percent,t._permille,t._scale);var i=t._intPart,o=t._decPart;if(!i&&!o)return a;var s,u=A(i),c=A(o);if(c||(c=""),t._exponent){var m=function(e,t,r){var n={value:e,exponentValue:0},a=O(e,".")._integer,i=g(e),o=r?r.length:1;if(i>=1)a>o?(a-=o,n.value=e/M(10,a),n.exponentValue=a):n.exponentValue=0,-1===t._sign&&(t._sign=0);else if(i<1&&i>0){t._sign=-1;for(var s=M(10,o);10*i<s&&!R(10*i,s);)i*=10,n.exponentValue++;var u=M(10,n.exponentValue);n.value*=u>b?0:u}return n}(e,t._exponent,u);e=m.value,s=m.exponentValue}var y=O(e,".");g(e)>1&&y._integer+y._decimal>15&&(e=Y(e,15));r.numberGroupSizes,r.numberGroupSeparator;var h=r.numberDecimalSeparator,f=r.negativeSign,_=I(e,v(y._decimal,c.length),0,0,h,f);if(n||(_=function(e,t){var r=e;return-1!==e.indexOf(t)&&(r=e.replace(/0+$/,"")),r}(_,h)),""===_)return a.push({type:"text",value:(i?i.join(""):"")+(o?o.join(""):"")}),a;var F={hasInfilling:d,infillIndex:-1,replaceExponent:d},S=_.split(h)[0];return"10"!==S||isNaN(s)||(S="1",s+=t&&t._exponent&&-1===t._exponent._sign?-1:1),i&&U(i,S,u,t,s,a,F,r),e===1/0||e===-1/0||("0"!==S&&""===u&&o&&a.push({type:"number",value:S}),o&&function(e,t,r,n,a,i,o,s,u){var c=u.numberDecimalSeparator,m=u.percentSymbol,y=u.perMilleSymbol,h=t.indexOf(c),f=a._exponent;(h>0||n!==C||r!==T)&&o.push({type:"decimalSeparator",value:c});for(var d=-1!==h?t.substring(h+1):"",_=0,g="",M=0;M<e.length;M++){var v=e[M];if(/^(0|#|\?)+/g.test(v)){var b="";if(g!==r){for(var F=v.length,S=0,D=_;F>0&&d.length-_>0;)b+=d.charAt(D),F--,_++,S++,D++;for(var x=S;F>0;){var H=v[x];x++,_++,F--,"0"===H?b+=H:"?"===H&&(""!==b&&(o.push({type:"number",value:b}),b=""),o.push({type:"numberPlaceholder",value:H}))}""!==b&&o.push({type:"number",value:b}),g+=v}}else if(f&&!s.replaceExponent&&/^((E(\+|-)?|e(\+|-)?)\d+)/g.test(v)){s.replaceExponent=p;var P="";P+=f._symbol,P+=N[f._sign],P+=l(i.toString(),f._exp),o.push({type:"exponent",value:P})}else"_"===v[0]?o.push({type:"placeholder",value:v[1]}):"*"===v[0]?(o.push({type:"fillingChar",value:v[1]}),s.hasInfilling&&o.splice(s.infillIndex,1),s.hasInfilling=!0,s.infillIndex=o.length-1):"\\"===v[0]?2===v.length&&o.push({type:"text",value:v[1]}):'"'===v[0]&&'"'===v[v.length-1]?v.length>2&&o.push({type:"text",value:v.substr(1,v.length-2)}):v===m?o.push({type:"percent",value:v}):v===y?o.push({type:"permille",value:v}):E[v]?o.push({type:"currency",value:v}):o.push({type:"text",value:v})}}(o,_,c,u,t,s,a,F,r)),a}function L(e,t){if((e=u(e)?"":o._StringHelper._trimEnd(e,"")).match(/^[+-]?infinity$/i))return f(e);if(e.match(/^0x[a-f0-9]+$/i))return h(e,10);var r,n,a=t.NumberFormat,i=a.numberNegativePattern,s=j(e,a,i),l=s[0],c=s[1];""===l&&1!==i&&(l=(s=j(e,a,1))[0],c=s[1]),""===l&&(l="+"),c[0]===a.currencySymbol&&(c=F(c,1));var y=c.indexOf("e");y<0&&(y=c.indexOf("E")),y<0?(n=c,r=m):(n=F(c,0,y),r=F(c,y+1));var d,p,_=n.indexOf(".");_<0?(d=n,p=m):(d=F(n,0,_),p=F(n,_+1));var g=l+(d=d.split(",").join(""));if(p!==m&&(g+="."+p),g[g.length-1]===a.percentSymbol){g=F(g,0,g.length-1);var M=(g=o._StringHelper._trimEnd(g,"")).indexOf(".");-1===M&&(M=g.length);var v="";v+=F(g,0,M-2),v+=".",v+=F(g,M-2,2),g=v+=F(g,M+1)}if(r!==m){var b=j(r,a,1);""===b[0]&&(b[0]="+"),g+="e"+b[0]+b[1]}return g.match(/^[+-]?\d*\.?\d*(e[+-]?\d+)?$/)?f(g):NaN}function j(e,t,r){var n=t.negativeSign,a=t.positiveSign;if(4!==r&&2!==r||(n=" "+n,a=" "+a),4===r||3===r){if(o._StringHelper._endsWith(e,n))return["-",F(e,0,e.length-n.length)];if(o._StringHelper._endsWith(e,a))return["+",F(e,0,e.length-a.length)]}else if(2===r||1===r){if(o._StringHelper._startsWith(e,n))return["-",F(e,n.length)];if(o._StringHelper._startsWith(e,a))return["+",F(e,a.length)]}else{if(0!==r)throw Error("");if(o._StringHelper._startsWith(e,"(")&&o._StringHelper._endsWith(e,")"))return["-",F(e,1,e.length-2)]}return["",e]}function G(e){var t=s.CultureManager._getCultureInfo().NumberFormat;return"string"==typeof e&&(t=s.CultureManager._getCultureInfo(e).NumberFormat),t}function Y(e,t){return"number"==typeof e&&e.toString().length>=t&&(e=+e.toPrecision(t)),e}t._NumberHelper={_parseLocale:function(e){return L(e,s.CultureManager._getCultureInfo())},_parseInvariant:function(e){return L(e,s.CultureManager._getCultureInfo("invariant"))},_customCultureFormat:function(e,t,r,n){return r||(r=s.CultureManager._getCultureInfo()),P(e,t,r,n)},_replaceNormalToCultureSymbol:function(e,t){if("string"!=typeof e)return e;var r=G(t),n=r.numberDecimalSeparator,a=r.numberGroupSeparator;return"."!==n&&(e=e.replace(S("[.]"),"#dot#")),","!==a&&(e=e.replace(S("[,]"),"#group#")),"."!==n&&(e=e.replace(S("#dot#"),n)),","!==a&&(e=e.replace(S("#group#"),a)),e},_replaceCultureSymbolToNormal:function(e,t){if("string"!=typeof e)return e;var r=G(t),n=r.numberDecimalSeparator,a=r.numberGroupSeparator;return"."!==n&&(e=e.replace(S("["+n+"]"),"#dot#")),","!==a&&(e=e.replace(S("["+a+"]"),"#group#")),"."!==n&&(e=e.replace(S("#dot#"),".")),","!==a&&(e=e.replace(S("#group#"),",")),e},_isValidCultureNumberString:function(e,t){if("string"==typeof e){var r=G(t),n=r.numberDecimalSeparator,a=r.numberGroupSeparator;if("."!==n&&"."!==a&&e.indexOf(".")>=0||","!==n&&","!==a&&e.indexOf(",")>=0)return!1}return!0},_parseFloat:function(e,t){return f(this._replaceCultureSymbolToNormal(e,t))},_toHexString:function(e,t,r){if(0!==g(_(e)-e))throw Error(x().Exp_BadFormatSpecifier);var n=e>=0?e.toString(16):(4294967295+e+1).toString(16);return n=t?n.toLowerCase():n.toUpperCase(),!u(r)&&n.length<r?l(n,r):n},_parseCustomNumberFormatter:k,_formatNumber:B,_approxEqual:R,_safeAdd:function(e,t){return R(e,-t)?0:e+t},_formatObjectToString:function(e){var t="";if(Array.isArray(e)&&e.length>0)for(var r=0;r<e.length;r++){var n=e[r].type,a=e[r].value;if("placeholder"===n)t+=" ";else{if("fillingChar"===n)continue;t+="numberPlaceholder"===n?" ":a}}return t},_generalNumberInt:C,_generalNumberDec:T,_fixNumber:Y}},674:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.rbush=void 0;var r=Math.max,n=Math.min,a=1/0;function i(e,t){this._maxEntries=r(4,e||9),this._minEntries=r(2,Math.ceil(.4*this._maxEntries)),t&&this._initFormat(t),this.clear()}function o(e,t,r){if(!r)return t.indexOf(e);for(var n=0;n<t.length;n++)if(r(e,t[n]))return n;return-1}function s(e,t){u(e,0,e.children.length,t,e)}function u(e,t,r,n,i){i||(i=p(null)),i.minX=a,i.minY=a,i.maxX=-1/0,i.maxY=-1/0;for(var o=t,s=void 0;o<r;o++)s=e.children[o],l(i,e.leaf?n(s):s);return i}function l(e,t){return e.minX=n(e.minX,t.minX),e.minY=n(e.minY,t.minY),e.maxX=r(e.maxX,t.maxX),e.maxY=r(e.maxY,t.maxY),e}function c(e,t){return e.minX-t.minX}function m(e,t){return e.minY-t.minY}function y(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function h(e){return e.maxX-e.minX+(e.maxY-e.minY)}function f(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&(t.maxX>=0&&t.maxX<=e.maxX||e.minX<0)&&(t.maxY>=0&&t.maxY<=e.maxY||e.minY<0)}function d(e,t){return(-1===e.minY||-1===t.minY||e.minY<=t.maxY&&t.minY<=e.maxY)&&(-1===e.minX||-1===t.minX||e.minX<=t.maxX&&t.minX<=e.maxX)}function p(e){return{children:e,height:1,leaf:!0,minX:a,minY:a,maxX:-1/0,maxY:-1/0}}t.rbush=i,i.prototype={all:function(){return this._all(this.data,[])},search:function(e){var t=this.data,r=[],n=this.toBBox;if(!d(e,t))return r;for(var a,i,o,s,u=[];t;){for(a=0,i=t.children.length;a<i;a++)o=t.children[a],d(e,s=t.leaf?n(o):o)&&(t.leaf?r.push(o):f(e,s)?this._all(o,r):u.push(o));t=u.pop()}return r},collides:function(e){var t=this.data,r=this.toBBox;if(!d(e,t))return!1;for(var n,a,i,o,s=[];t;){for(n=0,a=t.children.length;n<a;n++)if(i=t.children[n],d(e,o=t.leaf?r(i):i)){if(t.leaf||f(e,o))return!0;s.push(i)}t=s.pop()}return!1},insert:function(e){return e&&this._insert(e,this.data.height-1),this},clear:function(){return this.data=p([]),this},remove:function(e,t){if(!e)return this;for(var r,n,a,i,s=this.data,u=this.toBBox(e),l=[],c=[];s||l.length;){if(s||(s=l.pop(),n=l[l.length-1],r=c.pop(),i=!0),s.leaf&&-1!==(a=o(e,s.children,t)))return s.children.splice(a,1),l.push(s),this._condense(l),this;i||s.leaf||!f(s,u)?n?(r++,s=n.children[r],i=!1):s=null:(l.push(s),c.push(r),r=0,n=s,s=s.children[0])}return this},toBBox:function(e){return e},compareMinX:c,compareMinY:m,toJSON:function(){return this.data},fromJSON:function(e){return this.data=e,this},_all:function(e,t){for(var r=[];e;)e.leaf?t.push.apply(t,e.children):r.push.apply(r,e.children),e=r.pop();return t},_chooseSubtree:function(e,t,i,o){for(var s,u,l,c,m,h,f,d;o.push(t),!t.leaf&&o.length-1!==i;){for(f=d=a,s=0,u=t.children.length;s<u;s++)m=y(l=t.children[s]),p=e,(h=(r((_=l).maxX,p.maxX)-n(_.minX,p.minX))*(r(_.maxY,p.maxY)-n(_.minY,p.minY))-m)<d?(d=h,f=m<f?m:f,c=l):h===d&&m<f&&(f=m,c=l);t=c||t.children[0]}var p,_;return t},_insert:function(e,t,r){var n=this.toBBox,a=r?e:n(e),i=[],o=this._chooseSubtree(a,this.data,t,i);for(o.children.push(e),l(o,a);t>=0&&i[t].children.length>this._maxEntries;)this._split(i,t),t--;this._adjustParentBBoxes(a,i,t)},_split:function(e,t){var r=e[t],n=r.children.length,a=this._minEntries;this._chooseSplitAxis(r,a,n);var i=this._chooseSplitIndex(r,a,n),o=p(r.children.splice(i,r.children.length-i));o.height=r.height,o.leaf=r.leaf,s(r,this.toBBox),s(o,this.toBBox),t?e[t-1].children.push(o):this._splitRoot(r,o)},_splitRoot:function(e,t){this.data=p([e,t]),this.data.height=e.height+1,this.data.leaf=!1,s(this.data,this.toBBox)},_chooseSplitIndex:function(e,t,i){var o,s,l,c,m,h,f,d,p,_,g,M,v,b;for(h=f=a,o=t;o<=i-t;o++)p=s=u(e,0,o,this.toBBox),_=l=u(e,o,i,this.toBBox),g=void 0,M=void 0,v=void 0,b=void 0,g=r(p.minX,_.minX),M=r(p.minY,_.minY),v=n(p.maxX,_.maxX),b=n(p.maxY,_.maxY),c=r(0,v-g)*r(0,b-M),m=y(s)+y(l),c<h?(h=c,d=o,f=m<f?m:f):c===h&&m<f&&(f=m,d=o);return d},_chooseSplitAxis:function(e,t,r){var n=e.leaf?this.compareMinX:c,a=e.leaf?this.compareMinY:m;this._allDistMargin(e,t,r,n)<this._allDistMargin(e,t,r,a)&&e.children.sort(n)},_allDistMargin:function(e,t,r,n){e.children.sort(n);var a,i,o=this.toBBox,s=u(e,0,t,o),c=u(e,r-t,r,o),m=h(s)+h(c);for(a=t;a<r-t;a++)i=e.children[a],l(s,e.leaf?o(i):i),m+=h(s);for(a=r-t-1;a>=t;a--)i=e.children[a],l(c,e.leaf?o(i):i),m+=h(c);return m},_adjustParentBBoxes:function(e,t,r){for(var n=r;n>=0;n--)l(t[n],e)},_condense:function(e){for(var t=e.length-1,r=void 0;t>=0;t--)0===e[t].children.length?t>0?(r=e[t-1].children).splice(r.indexOf(e[t]),1):this.clear():s(e[t],this.toBBox)},_initFormat:function(e){var t=["return a"," - b",";"];this.compareMinX=Function("a","b",t.join(e[0])),this.compareMinY=Function("a","b",t.join(e[1])),this.toBBox=Function("a","return {minX: a"+e[0]+", minY: a"+e[1]+", maxX: a"+e[2]+", maxY: a"+e[3]+"};")}}},576:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t._RegexHelper=void 0;var n=r(480),a=function(){function e(){}return e._getRegWithModifiers=function(t,r){var n;if(r&&e._regDictWithModifiers[r]&&e._regDictWithModifiers[r][t])n=e._regDictWithModifiers[r][t];else try{null==r?(n=RegExp(t),r="empty"):n=RegExp(t,r),e._regDictWithModifiers[r]||(e._regDictWithModifiers[r]={}),e._regDictWithModifiers[r][t]=n}catch(e){return null}return n.lastIndex=0,n},e._getReg=function(t){var r=e._regDict[t];return r||(r=e._regDict[t]=RegExp(t,"g")),r.lastIndex=0,r},e._getRegIgnoreCase=function(t){var r=e._regDictIgnoreCase[t];return r||(r=e._regDictIgnoreCase[t]=RegExp(t,"gi")),r.lastIndex=0,r},e._getWildcardCriteria=function(t,r,n){if(e._wildcardParseRecord[t])return e._wildcardParseResultBuffer[t];var a=r?"[?*]+":"[~?*]+";if(e._getReg(a).test(t)){for(var i=[],o=t.split(""),s=void 0,u={".":!0,"+":!0,$:!0,"^":!0,"[":!0,"]":!0,"(":!0,")":!0,"{":!0,"}":!0,"|":!0,"/":!0,"\\":!0},l=0;l<o.length;l++)if("~"===(s=o[l])){if(!(l<o.length-1))break;"*"!==(s=o[++l])&&"?"!==s||i.push("\\"),i.push(s)}else"?"===s?i.push("."):"*"===s?(i.push("[\\s\\S]"),n?i.push("+"):i.push("*")):u[s]?(i.push("\\"),i.push(s)):i.push(s);return i.join("")}return null},e._getWildcardCriteriaFullMatch=function(t,r,n){var a=e._getWildcardCriteria(t,r,n);return a&&(a="^"+a+"$"),a},e._getReplaceSymbol=function(e,t){for(var r="#"+e+"0#",a=1;t.indexOf(r)>0;)r=n._StringHelper._join(r,"#"+e+(a-1)+"#","#"+e+a+"#"),a++;return r},e._replaceRegString2NormalString=function(e){return e.replace(/([\~\!\@\#\$\%\^\&\*\(\)\-\_\+\=\[\]\{\}\|\\\;\:\'\"\,\.\/\<\>\?])/,"\\$1")},e._regDict={},e._regDictIgnoreCase={},e._regDictWithModifiers={},e._wildcardParseRecord={},e._wildcardParseResultBuffer={},e}();t._RegexHelper=a},480:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t._StringHelper=void 0;var n=r(576);function a(e,t,r){return e.substr(t,r)}function i(e){return null==e}function o(e,t,r,n){if(i(t))throw Error();if(""===t)return!0;if(t.length>e.length)return!1;var a=e,o=t;return r&&(a=a.toLowerCase(),o=o.toLowerCase()),n(a,o)}t._StringHelper={_contains:function(e,t,r){return r&&(e=e.toLowerCase(),t=t.toLowerCase()),""===t||e.indexOf(t)>=0},_indexOf:function(e,t,r){if(r){var n=e.toLowerCase(),a=t.toLowerCase();return n.indexOf(a)}return e.indexOf(t)},_trimStart:function(e,t){if(!t)return e;for(var r=e;a(r,0,t.length)===t;)r=a(r,t.length);return r},_trimEnd:function(e,t){if(!t)return e;for(var r=e;a(r,r.length-t.length,t.length)===t;)r=a(r,0,r.length-t.length);return r},_insert:function(e,t,r){if(t<0||t>e.length||i(r))throw Error();return a(e,0,t)+r+a(e,t,e.length-t)},_remove:function(e,t,r){if(i(r)&&(r=e.length-t),t<0||r<0||t+r>e.length)throw Error();return a(e,0,t)+a(e,t+r,e.length-t-r)},_startsWith:function(e,t,r){return void 0===r&&(r=!1),o(e,t,r,(function(e,t){return e.slice(0,t.length)===t}))},_endsWith:function(e,t,r){return void 0===r&&(r=!1),o(e,t,r,(function(e,t){return e.slice(-t.length)===t}))},_replace:function(e,t,r,n){if(!t)throw Error();return r=(""+r).replace(/\$/g,"$$$$"),e.replace(RegExp(t,"g"+(n?"i":"")),r)},_replaceAllNoReg:function(e,r,a,i){return r=n._RegexHelper._replaceRegString2NormalString(r),t._StringHelper._replace(e,r,a,i)},_leftBefore:function(e,t){var r=e.indexOf(t);return r<0||r>=e.length?e:a(e,0,r)},_count:function(e,t){for(var r=0,n=e.indexOf(t);n>=0;)r+=1,n=e.indexOf(t,n+1);return r},_join:function(e,t,r){return e.split(t).join(r)},_format:function(e,t){for(var r=e,n=0;n<t.length;n++){var a=RegExp("\\{"+n+"\\}","g");r=r.replace(a,t[n])}return r},_padZero:function(e,t,r){for(var n=e.toString(),a=n.length;a<t;a++)n=r?"0"+n:n+"0";return n},_padZeroLeft:function(e,r){return t._StringHelper._padZero(e,r,!0)},_padZeroRight:function(e,r){return t._StringHelper._padZero(e,r,!1)},_compareStringIgnoreCase:function(e,t){return e===t||!e&&!t||e&&t&&e.toLowerCase()===t.toLowerCase()},_toUpperCase:function(e){return e.toUpperCase()},_escapeHtml:function(e){var t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},r=n._RegexHelper._getReg("(?:&|<|>|\"|'|`)");return r.test(e)?e.replace(r,(function(e){return t[e]})):e},_unescapeHtml:function(e){var t={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#x27;":"'","&#x60;":"`"},r=n._RegexHelper._getReg("(?:&amp;|&lt;|&gt;|&quot;|&#x27;|&#x60;)");return r.test(e)?e.replace(r,(function(e){return t[e]})):e},_escapeJavascript:function(e){for(var t=e,r=/javascript:/gi;t.match(r);)t=t.replace(r,"");return t}}},534:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t._Types=void 0;var r="undefined"!=typeof window?window.File:null,n="undefined"!=typeof window?window.Blob:null;t._Types={_class2type:null,_each:function(e,r){if(t._Types._isArraylike(e))for(var n=0,a=e.length;n<a&&!1!==r.call(e[n],n,e[n]);n++);else for(var i in e)if(e.hasOwnProperty(i)&&!1===r.call(e[i],i,e[i]))break;return e},_isEmptyObject:function(e){return!e||"object"==typeof e&&0===Object.keys(e).length},_isFunction:function(e){return"function"===t._Types._getType(e)},_isArray:function(e){return Array.isArray?Array.isArray(e):"array"===t._Types._getType(e)},_isNumeric:function(e){return t._Types._isString(e)&&(e=parseFloat(e)),!isNaN(e)&&isFinite(e)},_isString:function(e){return"string"==typeof e},_getType:function(e){if(null===e)return"null";var r=t._Types._class2type;if(!r){r=t._Types._class2type={};for(var n=["Boolean","Number","String","Function","Array","Date","RegExp","Object","Error"],a=0,i=n.length;a<i;a++)r["[object "+n[a]+"]"]=n[a].toLowerCase()}var o=r.toString,s=typeof e;return"object"===s||"function"===s?r[o.call(e)]||"object":s},_inArray:function(e,r,n){var a;if(r){var i=[].indexOf;if(i)return i.call(r,e,n);for(a=r.length,t._Types._isNullOrUndefined(n)&&(n=0),n=n<0?Math.max(0,a+n):n;n<a;n++)if(n in r&&r[n]===e)return n}return-1},_merge:function(e,t){var r=t.length,n=e.length,a=0;if("number"==typeof r)for(;a<r;a++)e[n]=t[a],n++;else for(;void 0!==t[a];)e[n]=t[a],n++,a++;return e.length=n,e},_map:function(e,r,n){var a,i=[];if(t._Types._isArraylike(e))for(var o=0,s=e.length;o<s;o++)null!==(a=r(e[o],o,n))&&(i[i.length]=a);else{var u=void 0;for(u in e)e.hasOwnProperty(u)&&null!==(a=r(e[u],u,n))&&(i[i.length]=a)}return i.concat([])},_extend:function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var n,a,i,o,s,u,l=e[0]||{},c=1,m=e.length,y=!1;for("boolean"==typeof l&&(y=l,l=e[1]||{},c=2),"object"==typeof l||t._Types._isFunction(l)||(l={}),m===c&&(l=this,--c);c<m;c++)if(s=e[c],!t._Types._isNullOrUndefined(s))for(o in s)n=l[o],l!==(i=s[o])&&(a=t._Types._isArray(i),y&&i&&(t._Types._isPlainObject(i)||a)?(u=a?n&&t._Types._isArray(n)?n:[]:n&&t._Types._isPlainObject(n)?n:{},l[o]=t._Types._extend(y,u,i)):void 0!==i&&(l[o]=i));return l},_inherit:function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n},_isWindow:function(e){return null!==e&&e===e.window},_isPlainObject:function(e){if(!e||"object"!==t._Types._getType(e)||e.nodeType||t._Types._isWindow(e))return!1;var r,n={}.hasOwnProperty;try{if(e.constructor&&!n.call(e,"constructor")&&!n.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(e){return!1}for(r in e);return void 0===r||n.call(e,r)},_isArraylike:function(e){if(t._Types._isNullOrUndefined(e))return!1;var r=e.length,n=t._Types._getType(e);return!t._Types._isWindow(e)&&(!(1!==e.nodeType||!r)||"array"===n||"function"!==n&&(0===r||"number"==typeof r&&r>0&&r-1 in e))},_makeArray:function(e,r){var n=r||[];return null!==e&&(t._Types._isArraylike(Object(e))?t._Types._merge(n,"string"==typeof e?[e]:e):[].push.call(n,e)),n},_isType:null,_isNullOrUndefined:function(e){return null==e},_isNumber:null,_toDouble:null,_cloneObject:function(e){if(!e)return e;if("number"==typeof e||"string"==typeof e||"boolean"==typeof e||t._Types._isNullOrUndefined(e))return e;if(e.clone)return e.clone();if(e instanceof Date)return new Date(e.valueOf());var a,i,o;if(r&&e instanceof r)return new r([e],e.name,{type:e.type,lastModified:e.lastModified});if(n&&e instanceof n)return new n([e],{type:e.type});for(i in a=e instanceof Object?new e.constructor:new e.constructor(e.valueOf()),e)e.hasOwnProperty(i)&&(o=e[i],e.hasOwnProperty(i)&&a[i]!==o&&(a[i]="object"==typeof o?t._Types._cloneObject(o):o));return a}}},612:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Exp_Separator=t.Exp_InvalidCast=t.Exp_InvalidNumberFormat=t.Exp_BadFormatSpecifier=t.Exp_InvalidNumberGroupSize=t.Exp_InvalidSemicolons=t.Exp_InvalidExponentFormat=t.Exp_InvalidDateFormat=void 0,t.Exp_InvalidDateFormat="Invalid date format pattern",t.Exp_InvalidExponentFormat="invalid exponent format",t.Exp_InvalidSemicolons="invalid format : too many semicolons",t.Exp_InvalidNumberGroupSize="NumberGroupSize must be between 1 and 9, except for the last element, which can be zero.",t.Exp_BadFormatSpecifier="Bad Format Specifier",t.Exp_InvalidNumberFormat="Invalid number format pattern",t.Exp_InvalidCast="InvalidCastException",t.Exp_Separator="numberDecimalSeparator, listSeparator and arrayListSeparator should be different in culture info."},479:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.UUIDGenerator=void 0;var r=function(){function e(){}return e.wrap=function(e){return"{".concat(e.toUpperCase(),"}")},e.uuidv4=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))},e.secureUUID=function(){return"undefined"!=typeof crypto&&crypto.randomUUID?crypto.randomUUID():this.uuidv4()},e.secureUpperCaseUUID=function(){return this.wrap(this.secureUUID())},e.isValidUpperCaseUUID=function(e){return/^\{[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}\}$/i.test(e)},e}();t.UUIDGenerator=r},814:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.UndoManager=t.CommandManager=t.Key=void 0;var n=r(536);Object.defineProperty(t,"Key",{enumerable:!0,get:function(){return n.Key}}),Object.defineProperty(t,"CommandManager",{enumerable:!0,get:function(){return n.CommandManager}});var a=r(748);Object.defineProperty(t,"UndoManager",{enumerable:!0,get:function(){return a.UndoManager}})},536:function(e,t){var r;Object.defineProperty(t,"__esModule",{value:!0}),t.CommandManager=t.Key=void 0,function(e){e[e.left=37]="left",e[e.right=39]="right",e[e.up=38]="up",e[e.down=40]="down",e[e.tab=9]="tab",e[e.enter=13]="enter",e[e.shift=16]="shift",e[e.ctrl=17]="ctrl",e[e.space=32]="space",e[e.altkey=18]="altkey",e[e.home=36]="home",e[e.end=35]="end",e[e.pup=33]="pup",e[e.pdn=34]="pdn",e[e.backspace=8]="backspace",e[e.del=46]="del",e[e.esc=27]="esc",e[e.a=65]="a",e[e.c=67]="c",e[e.v=86]="v",e[e.x=88]="x",e[e.z=90]="z",e[e.y=89]="y"}(r=t.Key||(t.Key={}));var n=function(){function e(e,t,r){this._owner=e,this._cmdDef=t,this._name=r;var n,a=this;Object.defineProperty(a,"shortcutKey",{get:function(){return a._shortcutKey},set:function(e){var t=a._shortcutKey;if(t!==e){var r=(n=a._owner._shortcutKeys)[t];if(r){var i=r.indexOf(a);i>=0&&r.splice(i,1)}a._shortcutKey=e,e&&((r=n[e])||(n[e]=r=[]),r.splice(0,0,a))}}})}return e.prototype.canUndo=function(){return this._cmdDef.canUndo},e.prototype.execute=function(e,t,r){var n,a,i=!0,o=!0;if(this._cmdDef&&t){var s={command:t,result:a,_actionType:r,actionType:r,metaData:null===(n=this._cmdDef)||void 0===n?void 0:n.metaData,r:null,isBefore:!0};this._owner._triggerInternalListener(s),s.r&&(o=!1,a=!1)}if(o){try{i=!1!==(a=(this._cmdDef.execute||this._cmdDef)(e,t,1===r))}catch(e){i=!1}t&&i&&this._owner._commandExecuted({command:this._getCmdOptions(t),result:a,_actionType:r,actionType:r})}if(this._owner&&t){var u={command:t,result:a,_actionType:r,actionType:r,isBefore:!1};this._owner._triggerInternalListener(u)}return a},e.prototype._getCmdOptions=function(e){return e&&!e.cmd&&(e.cmd=this._name),e},e}(),a=function(){function e(e){this._context=e,this._listeners={},this._internalListeners={},this._afterInternalListeners={},this._shortcutKeys={}}return e.prototype.register=function(e,t,r,a,i,o,s){var u=new n(this,t,e);this[e]=u,r&&(u.shortcutKey=this.getShortcutKey(r,a,i,o,s))},e.prototype.getCommand=function(e){return this[e]},e.prototype.execute=function(e){var t=this[e.cmd];if(t)return t.execute(this._context,e,0)},e.prototype.setShortcutKey=function(e,t,r,n,a,i){if(e){var o=this[e];o&&(o.shortcutKey=this.getShortcutKey(t,r,n,a,i))}else{var s=this.getShortcutKey(t,r,n,a,i),u=this.getCommands(s);if(u)for(var l=u.length-1;l>=0;l--)u[l].shortcutKey=void 0}},e.prototype.getShortcutKey=function(e,t,n,a,i){if(e){var o=65<=e&&e<=90?String.fromCharCode(e):r[e];return o||(o=e),o+(t?"+ctrl":"")+(n?"+shift":"")+(a?"+alt":"")+(i?"+window":"")}},e.prototype.getCommands=function(e){return this._shortcutKeys[e]},e.prototype.addListener=function(e,t){this._listeners[e]=t},e.prototype.removeListener=function(e){delete this._listeners[e]},e.prototype._commandExecuted=function(e){var t=this._listeners;for(var r in t)t.hasOwnProperty(r)&&t[r](e)},e.prototype._addInternalListener=function(e,t){this._internalListeners[e]=t},e.prototype._removeInternalListener=function(e){delete this._internalListeners[e]},e.prototype._triggerInternalListener=function(e){var t=this._internalListeners;for(var r in t)t.hasOwnProperty(r)&&t[r](e)},e.prototype._dispose=function(){this._context=null},e}();t.CommandManager=a},748:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.UndoManager=void 0;var r=function(){function e(e,t,r){this._context=e,t<0&&(t=2147483647),this._maxLength=t,this._allowUndo=r,this._undoStack=[],this._redoStack=[],this._hasNewChange=!1}return e.prototype._addCommand=function(e,t){if(e){if(1===t)this._redoStack.push(e);else{var r=this._maxLength,n=this._undoStack.length;if(r>0&&n>=r)for(var a=0;a<n-r+1;a++)this._undoStack.shift();this._undoStack.push(e),0===t&&(this._redoStack=[])}this._hasNewChange=!0}},e.prototype.canUndo=function(){return this._undoStack.length>0},e.prototype.undo=function(){var e=this._undoStack,t=!0;if(this._allowUndo&&this.canUndo()){var r=e[e.length-1];try{var n=this._context.commandManager()[r.cmd];n&&(r._fromUndoManager=!0,t=n.execute(this._context,r,1))}catch(e){t=!1}delete r._fromUndoManager,!1!==t&&(e.pop(),this._hasNewChange=!0,this._redoStack.push(r))}return t},e.prototype.canRedo=function(){return this._redoStack.length>0},e.prototype.redo=function(){var e=this._redoStack,t=!0;if(this._allowUndo&&this.canRedo()){var r=e[e.length-1];try{var n=this._context.commandManager()[r.cmd];n&&(r._fromUndoManager=!0,t=n.execute(this._context,r,2))}catch(e){t=!1}delete r._fromUndoManager,!1!==t&&(e.pop(),this._hasNewChange=!0,this._undoStack.push(r))}return t},e.prototype.getRedoStack=function(){return this._redoStack.slice()},e.prototype.getUndoStack=function(){return this._undoStack.slice()},e.prototype.maxSize=function(e){return arguments.length<1?this._maxLength:(e>=0&&(this._maxLength=e),this)},e.prototype.clear=function(){this._undoStack=[],this._redoStack=[]},e.prototype._filter=function(e){this._undoStack=this._undoStack.filter(e),this._redoStack=this._redoStack.filter(e)},e.prototype._dispose=function(){this._context=null},e.prototype.setNewChangeStatus=function(e){this._hasNewChange=e},e.prototype.getNewChangeStatus=function(){return this._hasNewChange},e}();t.UndoManager=r},569:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var a=Object.getOwnPropertyDescriptor(t,r);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,a)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),a=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),a(r(2),t)},498:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Exp_InvalidCast=t.Exp_ValueIllegal=t.Exp_TokenIllegal=t.Exp_DuplicatedDescriptor=t.Exp_ValueIsNull=t.Exp_FormatIllegal=t.Exp_InvalidBackslash=t.Exp_TokenIsNull=void 0,t.Exp_TokenIsNull="token is null",t.Exp_InvalidBackslash="the '\\' cannot be evaluated",t.Exp_FormatIllegal="format is illegal.",t.Exp_ValueIsNull="value is null",t.Exp_DuplicatedDescriptor="The type of descriptor was added.",t.Exp_TokenIllegal="token is illegal.",t.Exp_ValueIllegal="value is illegal.",t.Exp_InvalidCast="InvalidCastException"},2:function(e,t,r){var n,a=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+t+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.GeneralFormatter=t._NumberFormatDateTime=t.FormatterBase=void 0;var i=r(480),o=r(97),s=r(534),u=r(844),l=r(286),c=r(818),m=r(498),y=r(810),h=r(61);s._Types._extend(c.SR.en,m);var f=new c.ResourceManager(c.SR),d=f.getResource.bind(f);s._Types._isType=function(e,t){if(s._Types._isNullOrUndefined(e))return"null"===t;if(!t)return!1;if(t instanceof Function&&e instanceof t)return!0;if(typeof e===t)return!0;if("function"===t&&/^\s*\bfunction\b/.test(""+e))return!0;if(Object.prototype.toString.call(e).slice(8,-1).toLowerCase()===t.toLowerCase())return!0;if("DateTime"===t)return e instanceof Date;if("TimeSpan"===t){if(e instanceof Date){var r=o._DateTimeHelper._toOADate(e);return r>=0&&r<1}return!1}return!1},s._Types._isNumber=function(e,t){return!!u._NumberHelper._isValidCultureNumberString(e,t)&&("string"!=typeof e||-1===e.search(/[\r\n\t]/g))&&(e=u._NumberHelper._replaceCultureSymbolToNormal(e,t),s._Types._isType(e,"number")||s._Types._isType(e,"DateTime")||s._Types._isType(e,"TimeSpan")||e&&!s._Types._isType(e,"boolean")&&!isNaN(e)&&!isNaN(parseFloat(e))&&!(e.length>=2&&"0"===e[0]&&"x"===e[1]))},s._Types._toDouble=function(e){return s._Types._isNullOrUndefined(e)||""===e?0:s._Types._isType(e,"number")?e:s._Types._isType(e,"string")&&!isNaN(e)?u._NumberHelper._parseLocale(e):s._Types._isType(e,"boolean")?e?1:0:s._Types._isType(e,"DateTime")?o._DateTimeHelper._toOADate(e):s._Types._isType(e,"TimeSpan")?Math.floor(o._DateTimeHelper._toOADate(e)):parseFloat(e)};var p=null,_=Math.abs,g={_yearTwoDigit:"yy",_yearSingleDigit:"y",_yearFourDigit:"yyyy",_monthSingleDigit:"m",_monthTwoDigit:"mm",_monthAbbreviation:"mmm",_monthUnabbreviated:"mmmm",_monthJD:"mmmmm",_daySingleDigit:"d",_dayTwoDigit:"dd",_dayWeekDayAbbreviation:"aaa",_dayWeekDayUnabbreviated:"aaaa",_hoursSingleDigit:"h",_hoursTwoDigit:"hh",_minuteSingleDigit:"m",_minuteTwoDigit:"mm",_secondSingleDigit:"s",_secondTwoDigit:"ss",_eraYear:"e",_aMPMTwoDigit:"AM/PM",_aMPMSingleDigit:"A/P",_placeholderMonthJD:"@mmmmm",_defaultAbsoluteTime:new Date(1899,11,30,0,0,0,0)},M=[g._yearSingleDigit,g._yearTwoDigit,g._yearFourDigit,g._monthSingleDigit,g._monthTwoDigit,g._monthAbbreviation,g._monthUnabbreviated,g._monthJD,g._daySingleDigit,g._dayTwoDigit,g._dayWeekDayAbbreviation,g._dayWeekDayUnabbreviated,g._hoursSingleDigit,g._hoursTwoDigit,g._minuteSingleDigit,g._minuteTwoDigit,g._secondSingleDigit,g._secondTwoDigit,"ggg","gg","g","ee","e"],v={_positive:0,_negative:1,_zero:2,_text:3},b=[{_positive:0,_negative:0,_zero:0,_text:0},{_positive:0,_negative:1,_zero:0,_text:0},{_positive:0,_negative:1,_zero:2,_text:0},{_positive:0,_negative:1,_zero:2,_text:3}],F=RegExp("([.+?*$^\\[\\](){}|/])","g"),S=[["M/d","MMM/d","MMMM/d","d/M","d/MMM","d/MMMM","M-d","MMM-d","MMMM-d","d-M","d-MMM","d-MMMM"],["M/y","MMM/y","M/yyyy","MMM/yyyy","M-y","MMM-y","M-yyyy","MMM-yyyy"],["M/d/y","MMM/d/y","MMMM/d/y","M/d/yyyy","MMM/d/yyyy","MMMM/d/yyyy","d/M/y","d/MMM/y","d/MMMM/y","d/M/yyyy","d/MMM/yyyy","d/MMMM/yyyy","yyyy/M/d","M-d-y","MMM-d-y","MMMM-d-y","M-d-yyyy","MMM-d-yyyy","MMMM-d-yyyy","d-M-y","d-MMM-y","d-MMMM-y","d-M-yyyy","d-MMM-yyyy","d-MMMM-yyyy","yyyy-M-d"],["H:m","h:m tt"],["H:m:s","H:m:s"],["H:m:s.FFF","h:m:s.FFF tt"],["h:m:s tt","h:mm:ss tt"],["M/d H:m","MMM/d H:m","MMMM/d H:m","d/M H:m","d/MMM H:m","d/MMMM H:m","M/y H:m","MMM/y H:m","M/yyyy H:m","MMM/yyyy H:m","M/d/y H:m","MMM/d/y H:m","MMMM/d/y H:m","M/d/yyyy H:m","MMM/d/yyyy H:m","MMMM/d/yyyy H:m","M-d H:m","MMM-d H:m","MMMM-d H:m","d-M H:m","d-MMM H:m","d-MMMM H:m","M-y H:m","MMM-y H:m","M-yyyy H:m","MMM-yyyy H:m","M-d-y H:m","MMM-d-y H:m","MMMM-d-y H:m","M-d-yyyy H:m","MMM-d-yyyy H:m","MMMM-d-yyyy H:m","M/d h:m tt","MMM/d h:m tt","MMMM/d h:m tt","d/M h:m tt","d/MMM h:m tt","d/MMMM h:m tt","M/y h:m tt","MMM/y h:m tt","M/yyyy h:m tt","MMM/yyyy h:m tt","M/d/y h:m tt","MMM/d/y h:m tt","MMMM/d/y h:m tt","M/d/yyyy h:m tt","MMM/d/yyyy h:m tt","MMMM/d/yyyy h:m tt","M-d h:m tt","MMM-d h:m tt","MMMM-d h:m tt","d-M h:m tt","d-MMM h:m tt","d-MMMM h:m tt","M-y h:m tt","MMM-y h:m tt","M-yyyy h:m tt","MMM-yyyy h:m tt","M-d-y h:m tt","MMM-d-y h:m tt","MMMM-d-y h:m tt","M-d-yyyy h:m tt","MMM-d-yyyy h:m tt","MMMM-d-yyyy h:m tt","d/M/y H:m","d/MMM/y H:m","d/MMMM/y H:m","d/M/yyyy H:m","d/mmm/yyyy H:m","d/MMMM/yyyy H:m","yyyy/M/d H:m","d-M-y H:m","d-MMM-y H:m","d-MMMM-y H:m","d-M-yyyy H:m","d-MMM-yyyy H:m","d-MMMM-yyyy H:m","yyyy-M-d H:m","d/M/y h:m tt","d/MMM/y h:m tt","d/MMMM/y h:m tt","d/M/yyyy h:m tt","d/mmm/yyyy h:m tt","d/MMMM/yyyy h:m tt","yyyy/M/d h:m tt","d-M-y h:m tt","d-MMM-y h:m tt","d-MMMM-y h:m tt","d-M-yyyy h:m tt","d-MMM-yyyy h:m tt","d-MMMM-yyyy h:m tt","yyyy-M-d h:m tt"],["M/d H:m:s","MMM/d H:m:s","MMMM/d H:m:s","d/M H:m:s","d/MMM H:m:s","d/MMMM H:m:s","M/y H:m:s","MMM/y H:m:s","M/yyyy H:m:s","MMM/yyyy H:m:s","M/d/y H:m:s","MMM/d/y H:m:s","MMMM/d/y H:m:s","M/d/yyyy H:m:s","MMM/d/yyyy H:m:s","MMMM/d/yyyy H:m:s","d/M/y H:m:s","d/MMM/y H:m:s","d/MMMM/y H:m:s","d/M/yyyy H:m:s","d/MMM/yyyy H:m:s","d/MMMM/yyyy H:m:s","yyyy/M/d H:m:s","M-d H:m:s","MMM-d H:m:s","MMMM-d H:m:s","d-M H:m:s","d-MMM H:m:s","d-MMMM H:m:s","M-y H:m:s","MMM-y H:m:s","M-yyyy H:m:s","MMM-yyyy H:m:s","M-d-y H:m:s","MMM-d-y H:m:s","MMMM-d-y H:m:s","M-d-yyyy H:m:s","MMM-d-yyyy H:m:s","MMMM-d-yyyy H:m:s","d-M-y H:m:s","d-MMM-y H:m:s","d-MMMM-y H:m:s","d-M-yyyy H:m:s","d-MMM-yyyy H:m:s","d-MMMM-yyyy H:m:s","yyyy-M-d H:m:s","M/d h:m:s tt","MMM/d h:m:s tt","MMMM/d h:m:s tt","d/M h:m:s tt","d/MMM h:m:s tt","d/MMMM h:m:s tt","M/y h:m:s tt","MMM/y h:m:s tt","M/yyyy h:m:s tt","MMM/yyyy h:m:s tt","M/d/y h:m:s tt","MMM/d/y h:m:s tt","MMMM/d/y h:m:s tt","M/d/yyyy h:m:s tt","MMM/d/yyyy h:m:s tt","MMMM/d/yyyy h:m:s tt","d/M/y h:m:s tt","d/MMM/y h:m:s tt","d/MMMM/y h:m:s tt","d/M/yyyy h:m:s tt","d/MMM/yyyy h:m:s tt","d/MMMM/yyyy h:m:s tt","yyyy/M/d h:m:s tt","M/d/yyyy h:mm:ss tt","M-d h:m:s tt","MMM-d h:m:s tt","MMMM-d h:m:s tt","d-M h:m:s tt","d-MMM h:m:s tt","d-MMMM h:m:s tt","M-y h:m:s tt","MMM-y h:m:s tt","M-yyyy h:m:s tt","MMM-yyyy h:m:s tt","M-d-y h:m:s tt","MMM-d-y h:m:s tt","MMMM-d-y h:m:s tt","M-d-yyyy h:m:s tt","MMM-d-yyyy h:m:s tt","MMMM-d-yyyy h:m:s tt","d-M-y h:m:s tt","d-MMM-y h:m:s tt","d-MMMM-y h:m:s tt","d-M-yyyy h:m:s tt","d-MMM-yyyy h:m:s tt","d-MMMM-yyyy h:m:s tt","yyyy-M-d h:m:s tt","M/d/yyyy H:m:s","M-d-yyyy H:m:s","M/d/yyyy h:m:s tt","M-d-yyyy H:m:s tt"],["M/d H:m:s.FFF","MMM/d H:m:s.FFF","MMMM/d H:m:s.FFF","d/M H:m:s.FFF","d/MMM H:m:s.FFF","d/MMMM H:m:s.FFF","M/y H:m:s.FFF","MMM/y H:m:s.FFF","M/yyyy H:m:s.FFF","MMM/yyyy H:m:s.FFF","M/d/y H:m:s.FFF","MMM/d/y H:m:s.FFF","MMMM/d/y H:m:s.FFF","MMM/d/yyyy H:m:s.FFF","MMMM/d/yyyy H:m:s.FFF","d/M/y H:m:s.FFF","d/MMM/y H:m:s.FFF","d/MMMM/y H:m:s.FFF","d/M/yyyy H:m:s.FFF","d/MMM/yyyy H:m:s.FFF","d/MMMM/yyyy H:m:s.FFF","yyyy/M/d H:m:s.FFF","M-d H:m:s.FFF","MMM-d H:m:s.FFF","MMMM-d H:m:s.FFF","d-M H:m:s.FFF","d-MMM H:m:s.FFF","d-MMMM H:m:s.FFF","M-y H:m:s.FFF","MMM-y H:m:s.FFF","M-yyyy H:m:s.FFF","MMM-Yyyy H:m:s.FFF","M-d-y H:m:s.FFF","MMM-d-y H:m:s.FFF","MMMM-d-y H:m:s.FFF","MMM-d-yyyy H:m:s.FFF","MMMM-d-yyyy H:m:s.FFF","D-M-y H:m:s.FFF","d-MMM-y H:m:s.FFF","d-MMMM-y H:m:s.FFF","D-M-yyyy H:m:s.FFF","d-MMM-yyyy H:m:s.FFF","d-MMMM-yyyy H:m:s.FFF","yyyy-M-d H:m:s.FFF","M/d h:m:s.FFF tt","MMM/d h:m:s.FFF tt","MMMM/d h:m:s.FFF tt","d/M h:m:s.FFF tt","d/MMM h:m:s.FFF tt","d/MMMM h:m:s.FFF tt","M/y h:m:s.FFF tt","MMM/y h:m:s.FFF tt","M/yyyy h:m:s.FFF tt","MMM/yyyy h:m:s.FFF tt","M/d/y h:m:s.FFF tt","MMM/d/y h:m:s.FFF tt","MMMM/d/y h:m:s.FFF tt","MMM/d/yyyy h:m:s.FFF tt","MMMM/d/yyyy h:m:s.FFF tt","d/M/y h:m:s.FFF tt","d/MMM/y h:m:s.FFF tt","d/MMMM/y h:m:s.FFF tt","d/M/yyyy h:m:s.FFF tt","d/MMM/yyyy h:m:s.FFF tt","d/MMMM/yyyy h:m:s.FFF tt","yyyy/M/d h:m:s.FFF tt","M-d h:m:s.FFF tt","MMM-d h:m:s.FFF tt","MMMM-d h:m:s.FFF tt","d-M h:m:s.FFF tt","d-MMM h:m:s.FFF tt","d-MMMM h:m:s.FFF tt","M-y h:m:s.FFF tt","MMM-y h:m:s.FFF tt","M-yyyy h:m:s.FFF tt","MMM-Yyyy h:m:s.FFF tt","M-d-y h:m:s.FFF tt","MMM-d-y h:m:s.FFF tt","MMMM-d-y h:m:s.FFF tt","MMM-d-yyyy H:m:s.FFF tt","MMMM-d-yyyy h:m:s.FFF tt","d-M-y h:m:s.FFF tt","d-MMM-y h:m:s.FFF tt","d-MMMM-y h:m:s.FFF tt","d-M-yyyy h:m:s.FFF tt","d-MMM-yyyy h:m:s.FFF tt","d-MMMM-yyyy h:m:s.FFF tt","yyyy-M-d h:m:s.FFF tt"]],D=["#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"],x=RegExp("color\\s*(\\d+)","i"),C=s._Types._isType,T=s._Types._isArray,N=u._NumberHelper,H=N._generalNumberInt+"."+N._generalNumberDec,E=N._formatObjectToString,P=N._customCultureFormat,O=N._fixNumber,w=s._Types._isNullOrUndefined,k=isNaN,I=function(e){return l.CultureManager._getCultureInfo(e)},A=function(e){return I(e).DateTimeFormat},$=function(e){return I(e).NumberFormat},R=function(e){return e&&e.toLowerCase()},U=function(){throw Error(d().Exp_FormatIllegal)},B=function(){return l.CultureManager.booleanMapping},L={_Empty:"",_format:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];if(0===arguments.length)return p;for(var a=r[0],i=1;i<arguments.length;i++){var o=RegExp("\\{"+(i-1)+"\\}","gm");a=a.replace(o,arguments[i])}return a},_isNullOrEmpty:function(e){return!e||e===L._Empty}},j=function(e){var t=e.charCodeAt(0);return t>=48&&t<=57},G=function(e){var t=e.charCodeAt(0);return t>=9&&t<=13||32===t||133===t||160===t},Y=function(){function e(e,t){ye.call(this,t);this._content=e;var r=this._content,n=ue(r[0],"$",!1),a=r.indexOf("-");if(!(n&&a>-1))throw Error(d().Exp_TokenIllegal);this._currencySymbol=ee(r,1,a-1),(r=i._StringHelper._remove(r,0,a+1)).length>0&&(this._locateID=parseInt(r,16))}return e.prototype.cultureInfo=function(){return this._cultureInfo||(this._cultureInfo=I(this._locateID)),this._cultureInfo},e.prototype.currencySymbol=function(){return this._currencySymbol?i._StringHelper._replace(this._currencySymbol,"\\.",'"."'):L._Empty},e.prototype.allowScience=function(){if(this._cultureInfo)return!this._cultureInfo.isJCKCulture},e.prototype.toString=function(){return this._content?ne(this._content):L._Empty},e.Name="LocaleIDFormatPart",e}(),z=function(){function e(e,t){this.formatCached=e,this.cultureName=t,this.typeName=""}return e.prototype.format=function(e,t){return p},e.prototype.parse=function(e){return p},e.prototype.formatString=function(e){return this.formatCached},e.prototype.toJSON=function(){var e={};for(var t in this)this.hasOwnProperty(t)&&(e[t]=this[t]);return e},e.prototype.fromJSON=function(e){if(e)for(var t in e)void 0!==e[t]&&(this[t]=e[t])},e}();t.FormatterBase=z;var K=function(){function e(e,t){ye.call(this,t);for(var r,n,a,o=this,s=["<=","<>",">=",">","<","="],u=0,l=s.length;u<l;u++)if(r=s[u],i._StringHelper._startsWith(e,r,!0)){n=i._StringHelper._remove(e,0,r.length);var c=parseFloat(n);k(c)||(a=c);break}if(a===p&&void 0===a)throw Error(d().Exp_TokenIllegal);o.value=a,o._compareOperator=r,o.isMeetCondition=function(e){var t=o._compareOperator,r=o.value;switch(t){case"<=":return e<=r;case"<>":return e!==r;case">=":return e>=r;case">":return e>r;case"<":return e<r;case"=":return e===r}}}return e.prototype.toString=function(){return ne(this._compareOperator+this.value.toString())},e}(),W=function(){function e(e,t){ye.call(this,t);if(this.token=e,this.type=parseInt(i._StringHelper._remove(e,0,5),10),this.type<0||this.type>4)throw Error(d().Exp_TokenIllegal)}return e.prototype._replaceNumberString=function(t,r,n){if(!t||t===L._Empty)return t;for(var a,o,s=t,u=t,l=-1,c=-1,m=!1,y=t.length-1;y>=0;y--){var h=u[y];!k(h)&&!ue(h," ",!1)||ue(h,".",!1)&&!m?(ue(h,".",!1)&&(m=!0),-1===l&&(l=y),c=y):c>-1&&l>-1&&(a=ee(u,c,l-c+1),k(parseFloat(a))||(o=e.numberString(a,r,n),s=i._StringHelper._remove(s,c,l-c+1),s=i._StringHelper._insert(s,c,o)),l=-1,c=-1,m=!1)}return c>-1&&l>-1&&(a=ee(u,c,l-c+1),k(parseFloat(a))||(o=e.numberString(a,r,n),s=i._StringHelper._remove(s,c,l-c+1),s=i._StringHelper._insert(s,c,o))),s},e.prototype.toString=function(){if(this.type>-1)return ne("DBNum"+this.type);throw Error()},e.numberString=function(t,r,n){var a=e.formatNumberString,i=t.split(".");if(i){if(1===i.length)return a(i[0],r.numbers,n?r.letters:p);if(2===i.length)return a(i[0],r.numbers,n?r.letters:p)+"."+a(i[1],r.numbers)}throw Error(d().Exp_ValueIllegal)},e.formatNumberString=function(t,r,n){var a,i=t,o=0,s=0;if(2===arguments.length){for(var u="";o<i.length;o++)a=ee(i,o,1),u+=r[s=parseInt(a,10)];return u}if(3===arguments.length){if(!n)return e.formatNumberString(t,r);for(var l=0,c="",m=i.length,y=!1,h=[];o<m;o++){var f=n.length-1-o;f>-1?h.push(n[f].toString()):h.push(L._Empty)}for(var d=[],p=h.length-1;p>=0;p--)d[h.length-p-1]=h[p];h=d;var _=!1;for(p=0;p<m;p++){a=ee(i,p,1),s=parseInt(a,10);var g=void 0,M=L._Empty;m-p-16>0?(g=r[s],M="",_=!0):p!==m-1&&p!==m-5&&p!==m-9&&p!==m-13?"0"===a?(g="",M="",l+=1):"0"!==a&&0!==l?(g=r[0]+r[s],M=h[p],l=0):(g=r[s],M=h[p],l=0):"0"!==a&&0!==l?(g=r[0]+r[s],M=h[p],l=0):"0"!==a&&0===l||_?(g=r[s],M=h[p],l=0,_=!1):"0"===a&&l>=3?(g="",M="",l+=1):m>=11?(g="",l+=1):(g="",M=h[p],l+=1),g+M===L._Empty||(y=!1),p!==m-13||y||(M=h[p],y=!0),p!==m-9||y||(M=h[p],y=!0),p===m-1&&(M=h[p],y=!0),c=c+g+M}return 0===parseInt(t,10)?r[0]:c}},e}(),X=function(){function e(e,t,r,n,a,i){me.call(this,t,r,n,i);this._formatString=this._fixFormat(le(e)),this._absTimeParts=a,this._formatType=2,this._init()}return e.prototype._init=function(){var t={_value:this._formatString};if(e._evaluateFormat(t._value)){var r=this._processAMPM(t),n=A(this.cultureName).amDesignator&&A(this.cultureName).pmDesignator;if(this.hasJD=this._replace(t._value,g._monthJD,'"'+g._placeholderMonthJD+'"',!0,!1,t,!1),this._replace(t._value,g._monthUnabbreviated,"MMMM",!0,!1,t,!1),this._replace(t._value,g._monthAbbreviation,"MMM",!0,!1,t,!1),this._replaceMonth(t._value,t),this._replace(t._value,g._dayWeekDayAbbreviation,"ddd",!0,!0,t,!0),this._replace(t._value,g._dayWeekDayUnabbreviated,"dddd",!0,!0,t,!0),r&&n||(this._replace(t._value,g._hoursSingleDigit,"H",!0,!0,t,!1),this._replace(t._value,g._hoursTwoDigit,"HH",!0,!0,t,!1)),this._partDBNumberFormat&&(this._partLocaleID||I(this.cultureName).NumberFormat.dbNumber)&&(this._hasYearDelay=this._hasYearDelay||this._replace(t._value,g._yearFourDigit,'"@'+g._yearFourDigit+'"',!0,!1,t,!0),this._hasYearDelay=this._hasYearDelay||this._replace(t._value,g._yearTwoDigit,'"@'+g._yearTwoDigit+'"',!0,!1,t,!0)),this._absTimeParts)for(var a=0;a<this._absTimeParts.length;a++){var i=this._absTimeParts[a];this._replace(t._value,i._originalToken,"@"+i._originalToken,!0,!0,t,!0)}this._validDateTimeFormatString=t._value}else U()},e.prototype.formatString=function(){return this._formatString},e.prototype.format=function(e){var t=L._Empty,r=p;try{if((r=o._DateTimeHelper._DT(e))&&k(r.valueOf())&&(r=p),r?e=r:t=e.toString(),r){if(t=o._DateTimeHelper._customCultureFormat(r,this._validDateTimeFormatString,this._partLocaleID&&this._partLocaleID.cultureInfo()||I(this.cultureName),this._isShowEraFirstYear),this.hasJD){var n=I(this.cultureName).DateTimeFormat.monthNames[r.getMonth()];t=i._StringHelper._replace(t,g._placeholderMonthJD,ee(n,0,1))}if(this._absTimeParts)for(var a=24*(o._DateTimeHelper._toOADate(r)-o._DateTimeHelper._toOADate(g._defaultAbsoluteTime))*60*60*1e3,s=0;s<this._absTimeParts.length;s++){var u=this._absTimeParts[s],l=u._getTimeSpan(a);if(!w(l)){var c=u._originalToken.replace("[","\\[").replace("]","\\]"),m=u._originalToken.replace("[","").replace("]",""),y=i._StringHelper._padZeroLeft(l+"",m.length);t=i._StringHelper._replace(t,"@"+c,y)}}}}catch(r){t=te(e)}return function(e,t,r,n,a){var i=e;if(!w(n)&&t instanceof Date){var s=fe(r,n.type,a);if(!s)return e;i=n._replaceNumberString(i,s,!0),1===n.type&&(i=i.replace(RegExp("一十","g"),"十")),i=(i=i.replace("@"+g._yearFourDigit,o._DateTimeHelper._localeFormat(t,g._yearFourDigit))).replace("@"+g._yearTwoDigit,o._DateTimeHelper._localeFormat(t,g._yearTwoDigit)),i=n._replaceNumberString(i,s,!1)}return i}(t,e,this._partLocaleID,this._partDBNumberFormat,this.cultureName)},e.prototype.parse=function(e){if(!e||e===L._Empty)return p;var t=e,r=R(t);if("true"===r)return!0;if("false"===r)return!1;if(this._validDateTimeFormatString){var n=o._DateTimeHelper._parseExact(t,this._validDateTimeFormatString,I(this.cultureName));if(n)return n}try{var a=o._DateTimeHelper._DT(t);return a&&!k(a)?a:k((a=new Date(t)).valueOf())?t:a}catch(e){return t}},e.prototype._fixFormat=function(e){for(var t=e,r="",n=!1,a=0;a<t.length;a++){var i=t[a];if('"'===i)n=!n;else if(!n)if("Y"===i||"D"===i||"S"===i||"E"===i||"G"===i)i=R(i);else if("M"===i){var o=t[a-1];ue("A",o,!0)||ue("P",o,!0)||(i=R(i))}r+=i}return r},e.prototype._processAMPM=function(e){var t=A(this.cultureName).amDesignator,r=A(this.cultureName).pmDesignator,n=[g._aMPMTwoDigit];t&&r?n.push(t+"/"+r):n.push(g._aMPMTwoDigit),n.push(g._aMPMSingleDigit);for(var a=["tt","tt","t"],o=e._value,s=0;s<3;s++){if(i._StringHelper._contains(o,a[s]))return!0;if(i._StringHelper._contains(o,n[s],!0))return e._value=i._StringHelper._replace(o,n[s],a[s],!0),!0}return!1},e.prototype._replaceMonth=function(e,t){for(var r=function(e){for(var t=[],r=!1,n=!1,a="",i=function(e,t){return{type:e,content:t}},o=function(e){return!w(e)&&-1!=="yYdDhHmMsSeE".indexOf(e)},s=function(r,n){if(o(r)){for(var a=r,s=e[n+1];o(s)&&s.toLowerCase()===r.toLowerCase()&&(a+=s,n<e.length-1);)n++,s=e[n+1];t.push(i("symbolic",a))}else"a"===r&&"aaa"===e.slice(n,n+3).toLowerCase()?(t.push(i("symbolic",e.slice(n,n+3))),n+=2):t.push(i("text",r));return n},u=0;u<e.length;u++){var l=e[u];if(r)t.push(i("text","\\"+l)),r=!1;else if(n&&'"'!==l)a+=l;else switch(l){case"\\":r=!0;break;case'"':n&&(t.push(i("text",'"'+a+'"')),a=""),n=!n;break;default:u=s(l,u)}}return t}(e),n=-1,a=-1,i=0;i<r.length;i++){var o=r[i];"symbolic"===o.type?"m"===o.content[0].toLowerCase()?n>=0?(o.content=o.content.toLowerCase(),n=-1):(o.content=o.content.toUpperCase(),a=i):"s"===o.content[0].toLowerCase()?a>=0&&(r[a].content=r[a].content.toLowerCase(),a=-1):"h"===o.content[0].toLowerCase()?(n=i,a=-1):a=-1:a>=0&&i>0&&"0"===o.content&&"."===r[i-1].content&&i===a+2&&(r[a].content=r[a].content.toLowerCase())}t._value=r.map((function(e){return e.content})).join("")},e.prototype._replace=function(t,r,n,a,o,s,u){if(a||o){var l=[],c=!0;!e.hasDate(t)&&e.hasTime(t)&&(c=!1);for(var m=!1,y=0;y<t.length;y++){var h=t[y];if(e.hasTime(h)&&!m?c=!1:e.hasDate(h)&&!m&&(c=!0),a&&ue(h,r[0],u)&&c||o&&ue(h,r[0],u)&&!c){for(var f=!0,d=0;d<r.length;d++)if(d+y>=t.length||!ue(r[d],t[d+y],u)){f=!1;break}var p=y+r.length-1;if(f&&p+1<t.length){var _=t[p],g=-1;for(g=p+1;g<t.length&&ue(_,t[g],u);g++);g>p+1&&(y=g,f=!1)}f&&!m&&l.splice(0,0,y)}'"'===h&&(m=!m)}if(s._value=t,l.length>0){for(y=0;y<l.length;y++){var M=l[y];s._value=i._StringHelper._remove(s._value,M,r.length),s._value=i._StringHelper._insert(s._value,M,n)}return!0}return!1}return!1},e.hasTime=function(e){return i._StringHelper._indexOf(e,g._hoursSingleDigit[0],!0)>-1||i._StringHelper._indexOf(e,g._secondSingleDigit[0],!0)>-1},e.hasDate=function(e){return i._StringHelper._indexOf(e,g._yearTwoDigit[0],!0)>-1||i._StringHelper._indexOf(e,g._daySingleDigit[0],!0)>-1},e._evaluateFormat=function(e,t){return ce(e,t||M)},e}();t._NumberFormatDateTime=X;var J=function(){function e(e,t){ye.call(this,t);var r,n=R(e)[0];if("h"===n)r=3600;else if("m"===n)r=60;else{if("s"!==n)throw Error(d().Exp_TokenIllegal);r=1}this._getTimeSpan=function(e){var t=e/1e3/r;return Math.abs(t-Math.round(t))<1e-6?Math.round(t):Math.floor(t)}}return e.Name="ABSTimeFormatPart",e}(),V=function(){function e(e,t){ye.call(this,t);var r=x.exec(e);if(null!==r){var n=Number(r[1]);(n-=1)>=0&&n<D.length&&(e=D[n])}this.foreColor=e}return e.prototype.toString=function(){return ne(this.foreColor)},e.Name="ColorFormatPart",e}(),q=function(){function e(e,t,r,n){me.call(this,t,r,n);this._isGeneralNumber=!1,this._formatType=1,this._fullFormatString=ae(e);var a=le(e);if(t&&(a=oe(a,this._partLocaleID._originalToken,this._partLocaleID.currencySymbol())),(a=ae(a)).indexOf("/")>-1){var i=function(e,t){var r=[];if(e===p||""===e)return r;var n,a,i=!1,o=[],s=!1;for(n=0;n<e.length;n++)'"'!==(a=e[n])||i||(s=!s),i||s||a!==t?o.push(a):(r.push(o.join("")),o=[]),i="\\"===a&&!i;return r.push(o.join("")),r}(a,"/");if(i&&2===i.length){this._fractionDenominatorFormat=i[1];var o=i[0];if(o){var s=o.lastIndexOf(" ");s>-1?(this._fractionIntegerFormat=ee(o,0,s),this._fractionNumeratorFormat=ee(o,s+1,o.length-s-1)):this._fractionNumeratorFormat=o}}}this._numberFormatString=a}return e.prototype.formatString=function(){return this._fullFormatString},e.prototype.format=function(t){if(C(t,"boolean"))return t.toString().toUpperCase();var r=s._Types._toDouble(t);if(k(r)||!isFinite(r)||k(t))return"string"==typeof t?t:p;var n,a,i,o,u,l=I(this.cultureName);if(this._fractionNumeratorFormat&&this._fractionDenominatorFormat){var c={value:0},m={value:0},y={value:0},h=this._getDenominatorLength();if(e.getFraction(r,h,c,m,y)){var f=e.getGCD(m.value,y.value);if(f>1&&(m.value/=f,y.value/=f),this._fractionIntegerFormat){u="",1===y.value&&(c.value+=m.value,m.value=0,y.value=0);var d=E(P(c.value,this._fractionIntegerFormat,l));d&&"0"!==d&&(u+=d,u+=" "),0===c.value&&r<0&&(u+=l.NumberFormat.negativeSign),0===r&&(u+="0"),n=this._fractionDenominatorFormat,!k(a=parseFloat(n))&&a>0&&(0!==m.value&&0!==y.value&&(m.value*=a/y.value),y.value=a,n=n.replace(/^\d+/,e.toNumberPlaceholder(a)),o=(i=Math.ceil(m.value))-m.value,m.value=parseFloat(o<=.5&&o>=0?i.toString():""+(i-1)));var _=this._fractionNumeratorFormat,g=parseFloat(_);if(!k(g)&&0===g){var M=_.length,v=m.value.toString(),b=v.length;M>b?_=_.substr(0,M-(M-b)):M<b&&(v=v.substr(0,b-(b-M)),m.value=parseInt(v,10))}var F=this._getFormattedFractionString(m.value,y.value,_,n,l);return 0===m.value&&(F=F.replace(/./g," "),""===d)?"0 "+F:""===(u+=F)?"0":u}u="";var S=c.value*y.value+m.value;return n=this._fractionDenominatorFormat,(a=parseFloat(n))>0?(S*=a/y.value,y.value=a,u+=(S=parseFloat((o=(i=Math.ceil(S))-S)<=.5&&o>=0?i.toString():""+(i-1)))+"/"+y.value):u+=this._getFormattedFractionString(S,y.value,this._fractionNumeratorFormat,this._fractionDenominatorFormat,l),0===S?"0":u}return r.toString()}return function(e,t,r,n,a){if(!w(n)){var i=fe(r,n.type,a);if(!w(i)){for(var o=!1,s=void 0,u=I(a),l=void 0,c=0,m=e.length;c<m;c++)"decimalSeparator"===e[c].type&&(o=!0,e[c].value=n._replaceNumberString(e[c].value,i,t),s=e[c].value),"number"===e[c].type&&(e[c].value=o?n._replaceNumberString(s+e[c].value,i,t).slice(1):n._replaceNumberString(e[c].value,i,t),"ja-JP"===u.name()&&e[c].value.length>1&&("一千"!==(l=e[c].value.substr(0,2))&&"一百"!==l&&"一十"!==l||(e[c].value=e[c].value.substr(1))));return e}}return e}(P(r,this._numberFormatString,l),this._isGeneralNumber,this._partLocaleID,this._partDBNumberFormat,this.cultureName)},e.prototype.parse=function(e){if(!e||e===L._Empty)return p;var t=function(e){return e&&e.toUpperCase()}(e);if("TRUE"===t||t===B()&&B().boolean_true)return!0;if("FALSE"===t||t===B()&&B().boolean_false)return!1;var r="("===e.charAt(0)&&")"===e.charAt(e.length-1);r&&(e=e.substring(1,e.length-1));var n=this._fractionNumeratorFormat&&this._fractionDenominatorFormat,a=this._trimPercentSign(this._numberFormatString)._isPer;if(n||a){var o=0;if(n&&this._fractionIntegerFormat){var s=(e=e.trim()).lastIndexOf(" ");0<s&&s<e.length-1&&(o=parseInt(e.substr(0,s),10),e=e.substr(s+1))}var u=e.indexOf("/");if(0<u&&u<e.length-1){var l=e.substr(0,u),c=e.substr(u+1);if(!k(l)&&!k(c)){var m=parseInt(l,10),y=parseInt(c,10);if(!k(m)&&!k(y)&&0!==y)return o+m/y}}}e=this._trimSpecialSymbol(e),e=this._trimCurrencySymbol(e);var h=this._trimPercentSign(e),f=h._isPer,d=h._str;if(this._isValidNumberString(d)){d=i._StringHelper._replaceAllNoReg(d,$(this.cultureName).numberGroupSeparator,"",!1);var g=N._parseFloat(d,this.cultureName);if(!k(g)&&isFinite(g)){if(f&&(g=O(g/100,15)),r){if("-"===d.charAt(0)||"+"===d.charAt(0))return p;g=-1*_(g)}return g}}return p},e.prototype._getDenominatorLength=function(){var e=this._fractionDenominatorFormat,t=0;if(e)for(var r=e.length,n=0;n<r&&e[n].match(/[#?\d]/);n++)t++;return t},e.prototype._isValidNumberString=function(e){for(var t="",r=0,n=0,a=0,i=p,o=$(this.cultureName),s=e.length-1;s>-1;s--){if(e[s]===o.numberDecimalSeparator)r++,a>0&&(i=!1),t="";else if("e"===R(e[s])){if(n++,t="",s===e.length-1)return!1}else if(e[s]===o.numberGroupSeparator)i=3===t.length,a++,t="";else if("-"===e[s]||"+"===e[s]){if(s>0&&"e"!==R(e[s-1]))return!1}else{if(!j(e[s]))return!1;if(t+=e[s],0===s&&0===parseInt(t,10)&&i)return!1}if(r>1||n>1||!1===i)return!1}return!0},e.prototype._trimSpecialSymbol=function(e){for(var t=e,r=[],n=0;n<t.length;n++)j(t[n])&&r.push(n);for(var a=$(this.cultureName),o=[a.currencyDecimalSeparator,a.currencyGroupSeparator,a.currencySymbol,"$",a.nanSymbol,a.negativeInfinitySymbol,a.negativeSign,a.numberDecimalSeparator,a.numberGroupSeparator,a.percentDecimalSeparator,a.percentGroupSeparator,a.percentSymbol,a.perMilleSymbol,a.positiveInfinitySymbol,a.positiveSign],s=t.length-1;s>-1;s--){var u=t[s];if(G(u)&&o.indexOf(u.toString())<=-1)(s<r[0]||r[r.length-1]<s)&&(t=i._StringHelper._remove(t,s,1));else if("-"===u||"+"===u){var l=s>0?t[s-1].toString():p;if(["e","E","(",$(this.cultureName).currencySymbol,"$"].indexOf(l)<0)break}}return t},e.prototype._trimCurrencySymbol=function(e){if(i._StringHelper._startsWith(e,"$")){if((t=i._StringHelper._remove(e,0,1)).indexOf("$")<0)return t}else{var t,r=$(this.cultureName).currencySymbol;if("$"!==r&&i._StringHelper._startsWith(e,r)&&(t=i._StringHelper._remove(e,0,r.length)).indexOf(r)<0)return t}return e},e.prototype._trimPercentSign=function(e){var t=$(this.cultureName).percentSymbol,r=!0,n=e;return i._StringHelper._startsWith(e,t)?n=i._StringHelper._remove(e,0,t.length):i._StringHelper._endsWith(e,t)?n=i._StringHelper._remove(e,e.length-t.length,t.length):r=!1,i._StringHelper._contains(n,t)&&(r=!1),{_str:n,_isPer:r}},e.prototype._getFormattedFractionString=function(e,t,r,n,a){var i=E(P(e,r,a)),o=E(P("0."+t,"#."+n,a,!0)),s=a&&a.NumberFormat&&a.NumberFormat.numberDecimalSeparator||".",u=i+"/"+o.substr(o.indexOf(s)+1);return""===r&&(u=e+u),""===n&&(u+=t),u},e.getGCD=function(e,t){if(0===e)return _(t);if(0===t)return _(e);for(var r=Math.max(e,t),n=Math.min(e,t),a=r%n;0!==a;)a=(r=n)%(n=a);return _(n)},e.getFraction=function(e,t,r,n,a){var i=0,o=0,s=0,u=0,l=Math.ceil;e>0?1==(u=e-l(e)+1)?(u=0,i=e):i=l(e)-1:e<0&&(i=l(e),u=l(e)-e);var c=Math.pow(10,t-1),m=Math.pow(10,t)-1;c<2&&(c=2),m<2&&(m=2);for(var y=!1,h=0,f=c;f<=m;f++){var d=Math.round(f*u),p=d/f,g=_(p-u);if((!y||g<_(h-u))&&(y=!0,h=p,o=d,s=f,g<1e-6))break}return r.value=i,n.value=o,a.value=s,y},e.toNumberPlaceholder=function(e){return e.toString().replace(/\d/g,"?")},e}(),Z=function(){function e(t,r,n,a){me.call(this,r,n,a),arguments.length>0?(e._isValidNumberFormatString(t)||U(),this._fullFormatString=t):this._fullFormatString="General",this._formatType=0}return e._isValidNumberFormatString=function(e){for(var t="",r=!1,n=-1,a=e.length,i=0;i<a;i++){var o=e[i];'"'===o?n=(r=!r)?i:-1:r||(t+=o)}return n>0&&(t+=e.substring(n,a)),!(t.indexOf("0")>=0||t.indexOf("#")>=0||t.indexOf(".")>=0||t.indexOf("@")>=0)},e.prototype._getDigitalFormat=function(){if(!this._digitalFormat){var e=this._fullFormatString;e=oe(e,"General",H),this._digitalFormat=new q(e,this._partLocaleID,this._partDBNumberFormat,this.cultureName),this._digitalFormat._isGeneralNumber=!0}return this._digitalFormat},e.prototype._getExponentialDigitalFormat=function(){return this._exponentialDigitalFormat||(this._exponentialDigitalFormat=new q("0.#####E+00",this._partLocaleID,this._partDBNumberFormat,this.cultureName),this._exponentialDigitalFormat._isGeneralNumber=!0),this._exponentialDigitalFormat},e.prototype.formatString=function(){return i._StringHelper._replace(this._fullFormatString,"@NumberFormat","General")},e.prototype.format=function(e){if(s._Types._isNumber(e,this.cultureName)){var t=!this._partLocaleID||this._partLocaleID.allowScience(),r=s._Types._toDouble(e);if(void 0!==r&&r!==p)return _(r)>99999999999&&t||_(r)<1e-11&&0!==r?this._getExponentialDigitalFormat().format(e):this._getDigitalFormat().format(e)}else{if(C(e,"string")){var n=i._StringHelper._replace(this.formatString(),'"',"");return n=se(n),e}if(C(e,"boolean"))return e.toString().toUpperCase()}return""},e.prototype.parse=function(e){if(L._isNullOrEmpty(e))return p;if("number"==typeof e)return e;var t=!1,r=e.trim(),n=i._StringHelper._indexOf(r,"-",!1);n>0&&!ue(r.charAt(n-1),"E",!0)&&(t=!0);var a,s=I(this.cultureName),u=s.DateTimeFormat,c=u.dateSeparator,m=u.timeSeparator,y=u.monthNames,h=u.abbreviatedMonthNames,f=function(e,t){if(!t||0===t.length)return!1;for(var r=!1,n=0,a=t.length;n<a;n++)if(i._StringHelper._contains(e,t[n],!0)){r=!0;break}return r};if(t||i._StringHelper._contains(r,c,!1)||i._StringHelper._contains(r,m,!1)||i._StringHelper._contains(r,"/",!1)||i._StringHelper._contains(r,":",!1)||i._StringHelper._contains(r,"-",!1)||i._StringHelper._contains(r,"年",!1)||i._StringHelper._contains(r,"月",!1)||i._StringHelper._contains(r,"日",!1)||f(r,y)||f(r,h)||"ja-JP"===s.name()&&l._EraHelper._symbols.indexOf(r[0].toUpperCase())>=0&&i._StringHelper._contains(r,".",!1)){var d=o._DateTimeHelper._parseLocale(r);if(d)return d}var g,M="-"===r.charAt(0);if(M||"+"===r.charAt(0)){if("("===(r=i._StringHelper._remove(r,0,1)).charAt(0)&&")"===r.charAt(r.length-1))return e}else if("("===r.charAt(0)&&")"===r.charAt(r.length-1)&&(g=!0,"-"===(r=(r=r.substring(1,r.length-1)).trim()).charAt(0)||"+"===r.charAt(0)))return e;return(a=this._getDigitalFormat().parse(r))!==p&&void 0!==a?g&&C(a,"boolean")?e:(g||M)&&C(a,"number")?-1*_(a):a:e},e}(),Q=function(){function e(e,t,r,n){me.call(this,t,r,n);var a=le(e,!1);t&&(a=oe(a,this._partLocaleID._originalToken,this._partLocaleID.currencySymbol())),a=se(a=ae(a)),this._formatString=a,this._formatType=3}return e.prototype.format=function(e,t){try{var r;r=e instanceof Date?o._DateTimeHelper._toOADate(e).toString():te(e);var n=this._parseFormat(this._formatString);return this._toFormattedObject(r,n.formatTokens,e,n.hasAtPart,t)}catch(e){return""}},e.prototype.parse=function(e){return e||""},e.prototype.formatString=function(){return this._formatString},e.prototype._parseFormat=function(e){for(var t,r=[],n=!1,a="",i=!1,o=p,s=0;s<e.length;s++)t=e.charAt(s),i?('"'!==t?a+=t:(a+=t,r.push(a),a="",i=!1),o=t):"*"!==o&&"_"!==o&&"\\"!==o||""===a?"*"!==t&&"_"!==t&&"\\"!==t?"@"!==t?'"'!==t?(a+=t,o=t):(o=t,""!==a&&r.push(a),a=t,i=!0):(o=t,""!==a&&(r.push(a),a=""),r.push(t),n=!0):(o=t,""!==a&&(r.push(a),a=""),a+=t):(a+=t,r.push(a),a="");return""!==a&&r.push(a),{formatTokens:r,hasAtPart:n}},e.prototype._toFormattedObject=function(e,t,r,n,a){var i=[],o=!1;if("string"!=typeof r||n||a)for(var s=t.length-1;s>=0;s--){var u=t[s];"*"===u[0]?o||(o=!0,i.push({type:"fillingChar",value:u[1]})):"_"===u[0]?i.push({type:"placeholder",value:u[1]}):'"'===u[0]&&'"'===u[u.length-1]?u.length>=2&&i.push({type:"text",value:u.substr(1,u.length-2)}):"\\@"===u?i.push({type:"text",value:"@"}):"@"===u[0]?i.push({type:"text",value:e}):i.push({type:"text",value:u})}else i.push({type:"text",value:r});return i.reverse()},e}();function ee(e,t,r){return e.substr(t,r)}function te(e){return s._Types._isNullOrUndefined(e)?"":"boolean"==typeof e?e?"TRUE":"FALSE":"string"==typeof e?e:e.toString()}function re(e,t){if("\\"===e[t])throw Error(d().Exp_InvalidBackslash);if(t-1>0&&t-1<e.length&&"\\"===e[t-1]){if(t-2<0)return!0;if(t-2>0&&t-2<e.length)return"\\"!==e[t-2]}return!1}function ne(e){if(!e)throw Error(d().Exp_TokenIsNull);return"["+e+"]"}function ae(e){if(void 0===e||e===p||""===e)return e;for(var t="",r=0,n=!1,a=0;a<e.length;a++){var i=e[a];'"'===i?(n=!n,t+=i):n?t+=i:"["===i?r++:"]"===i?--r<0&&(r=0):0===r&&(t+=i)}return t.toString()}function ie(e){return e=oe(e,"[",""),oe(e,"]","")}function oe(e,t,r){return!e||e===L._Empty||ue(t,r,!0)?e:(t=t.replace(F,"\\$1"),e.replace(RegExp(t,"g"),r))}function se(e){for(var t=e.length,r=!1,n="",a=0;a<t;a++){var i=e.charAt(a);"\\"===i?(r=!r)&&"@"!==e.charAt(a+1)||(n+=i):(r=!1,n+=i)}return n}function ue(e,t,r){return r?R(e)===R(t):e===t}function le(e,t){1===arguments.length&&(t=!0);for(var r=!1,n="",a=0;a<e.length;a++){var i=e[a];if('"'===i)r=!r;else if(!r&&!t&&"/"===i&&!re(e,a))continue;n+=i}return n}function ce(e,t){if(!e||e===L._Empty)return!1;for(var r=function(e){for(var t="",r=!1,n=0,a=e.length;n<a;n++){var i=e[n];'"'===i&&(r=!r),"E"===i||r||(t+=R(i))}return t}(le(e)),n=0;n<t.length;n++){var a=r.indexOf(t[n]);if(0===a||a>0&&"_"!==r[a-1]&&"*"!==r[a-1])return!0}return!1}function me(e,t,r,n){this._partLocaleID=e,this._partDBNumberFormat=t,this.cultureName=r,this._isShowEraFirstYear=n}function ye(e){this._originalToken=e}function he(e){var t,r=ie(e);if(!r||r===L._Empty)return t;var n=r[0];return["<",">","="].indexOf(n)>-1?(t=K).Name="ConditionalFormatPart":i._StringHelper._startsWith(r,"DBNum",!0)?(t=W).Name="DBNumberFormatPart":ue(r[0],"$",!1)&&r.indexOf("-")>-1?(t=Y).Name="LocaleIDFormatPart":function(e){var t=R(e),r=t[0];if("h"!==r&&"m"!==r&&"s"!==r)return!1;for(var n=1;n<t.length;n++)if(r!==t[n])return!1;return!0}(r)?(t=J).Name="ABSTimeFormatPart":r.indexOf("$")<0&&r.length>=3&&((t=V).Name="ColorFormatPart"),t}function fe(e,t,r){var n;if(n=e?e.cultureInfo():I(r),t<4||4===t&&("ko-kr"===r||"ko-kr"===n.name())){var a=n.NumberFormat.dbNumber;if(a)return a[t]}return p}var de=function(){function e(e,t){0===arguments.length?(this.formatCached="General",this._numberFormat=new Z):this._init(e,t)}return e.prototype._init=function(t,r){t!==p&&void 0!==t||U();var n=t;this.formatCached=t;for(var a="",i="",o=!1,s=!1,u=!1,c=[],m=0;m<t.length;m++){var y=t[m];if('"'===y)s=!s,i+=y;else if(s)i+=y;else if("["===y)o&&U(),i&&(a||(a=""),a+=i),i=y.toString(),o=!0;else if("]"===y){if(o||U(),i){var h=(i+=y).toString(),f=he(i.toString());if(f)"ABSTimeFormatPart"===f.Name?(c.push(new f(e.preProcessPart(h),h)),a+=i):h===l._EraHelper.eraExcelFormatter?(this.addPart(f,l._EraHelper.eraInternalFormatter),u=!0):this.addPart(f,h);else{var d=e.partToNormalStr(h);a+=d,n=oe(t,h,d)}i=""}else U();o=!1}else i+=y}i?o?U():a+=i:a||(a=this._getDBNumberDefaultFormat()),this.localeIDFormatPart&&(r=this.localeIDFormatPart.cultureInfo().name());var _=function(e,t){var r,n=!1;return ce(e=e?e.toString():L._Empty,["general"])?r=Z:X._evaluateFormat(e)?r=X:ce(e,["E+","E-","#",".",",","%","0","/","?"])||t?(n=!0,r=q):(n=!0,r=Q),{_isDigitalOrText:n,_type:r}}(a,this.conditionalFormatPart),g=_._type,M=_._isDigitalOrText?n:a;g?this._numberFormat=new g(M,this.localeIDFormatPart,this.dbNumberFormatPart,r,c.length>0?c:p,u):U()},e.prototype._getDBNumberDefaultFormat=function(){var t=this,r="";return t.dbNumberFormatPart&&(e.proNames.some((function(e){return"dbNumberFormatPart"!==e&&t[e]}))||(r="General")),r},e.prototype.formatString=function(){for(var t="",r=0,n=e.proNames.length;r<n;r++){var a=e.proNames[r];this[a]&&(t+=this[a].toString())}return t+this._numberFormat.formatString()},e.prototype.addPart=function(t,r){for(var n=e.proNames,a=e.preProcessPart(r),i=0,o=n.length;i<o;i++){var s=n[i];if(ue(s,t.Name,!0)){if(this[s])throw Error(d().Exp_DuplicatedDescriptor);this[s]=new t(a,r)}}},e.prototype.format=function(e,t){return this._numberFormat.format(e,t)},e.prototype.parse=function(e){return this._numberFormat.parse(e)},e.checkFormatter=function(e){if(!e||e===L._Empty)throw Error(d().Exp_TokenIllegal)},e.preProcessPart=function(t){e.checkFormatter(t);var r=ie(t);return e.checkFormatter(r),r},e.partToNormalStr=function(t){var r=e.preProcessPart(t);return"$"===r[0]&&(r=r.slice(1)),'"'+r+'"'},e.proNames=["colorFormatPart","conditionalFormatPart","dbNumberFormatPart","localeIDFormatPart"],e}(),pe=function(e){function t(t,r){var n=e.call(this,t,r)||this,a=n;return a._isSingleFormatterInfo=!0,a.PropertyChanged=[],L._isNullOrEmpty(t)&&(t="General"),a.formatCached=t,a.cultureName=r,a.init(),n}return a(t,e),t.prototype.toJSON=function(){var e={formatCached:this.formatCached};return this.cultureName&&(e.customerCultureName=this.cultureName),"general"===R(this.formatCached)&&delete e.formatCached,e},t.prototype.hasFormattedColor=function(){for(var e in v)if(v.hasOwnProperty(e)){var t=this.getFormatter(v[e]);if(t&&t.colorFormatPart)return!0}return!1},t.prototype.formatString=function(e){if(0===arguments.length){for(var t=L._Empty,r=0,n=this.formatters.length;r<n;r++){t+=this.formatters[r].formatString(),r!==n-1&&(t+=";")}return t}if(!e)throw Error(d().Exp_ValueIsNull);return this.formatters=p,this.formatCached=e,this.init(),this._raisePropertyChanged("formatString"),this},t.prototype.getFormatter=function(e){return this.formatters&&this.formatters[e]},t.prototype.getPreferredEditingFormatter=function(e){var r,n=A(this.cultureName),a=$(this.cultureName),i=t.defFormatter;if(C(e,"TimeSpan"))return i(n.longTimePattern);if(C(e,"DateTime")){var o=0===e.getHours()&&0===e.getMinutes()&&0===e.getSeconds()&&0===e.getMilliseconds()?"":" h:mm:ss";return i(n.shortDatePattern+o)}if(s._Types._isNumber(e,this.cultureName)){var u=s._Types._toDouble(e);return i(u>=1e21||u<=1e-17&&u>0||u<=-1e21||u<0&&u>=-1e-17?null!==(r=a.scientificNotation)&&void 0!==r?r:"0.##############E+00":H)}return i("General")},t.prototype.getPreferredDisplayFormatter=function(e,r){var n=t.defFormatter;if(r||(r={value:p}),r.value=p,L._isNullOrEmpty(e))return new t;var a=e,u=r.value=this.parse(a);if(C(u,"DateTime")||C(u,"TimeSpan")){var l={pattern:S,formatter:["d-mmm","mmm-yy",A().shortDatePattern,"h:mm","h:mm:ss","h:mm:ss.0","h:mm:ss tt",A().shortDatePattern+" h:mm",A().shortDatePattern+" h:mm:ss",A().shortDatePattern+" h:mm:ss.0"]},c=l.pattern,m=l.formatter,y=I(this.cultureName),h=y.DateTimeFormat,f=h.preselectedFormatters;if(f.length>0&&(c=c.concat([f]),m=m.concat([f[0]])),"ja-JP"===y.name()){c=c.concat([h.eraFormatter]),m=m.concat(["ge.M.d"]);var d=y._eraFormatter.filter((function(e){return"ggge"===e.substr(0,4)}));c=c.concat([d]),m=m.concat(['ggge"年"M"月"d"日']);var _=y._eraFormatter.filter((function(e){return"gge"===e.substr(0,3)}));c=c.concat([_]),m=m.concat(['gge"年"M"月"d"日']);var g=y._eraFormatter.filter((function(e){return"ge"===e.substr(0,2)}));c=c.concat([g]),m=m.concat(['ge"年"M"月"d"日'])}for(var M=0;M<c.length;M++)for(var v=c[M],b=0;b<v.length;b++){var F=v[b],D=o._DateTimeHelper._parseLocale(e,F);if(D&&D-u==0)return new t(m[M])}}else if(s._Types._isNumber(u,this.cultureName)){var x=$(this.cultureName),T=x.currencySymbol,N=x.numberDecimalSeparator,H=x.percentSymbol,E=x.numberGroupSeparator,P=i._StringHelper._contains,O=P(a,N)?".00":"";if(a[0]===T)return n(L._format("{0}#,##0{1};[Red]({0}#,##0{1})",T,O));if(P(a,"E",!0))return n("0.00E+00");if(a[0].toString()===H||a[a.length-1].toString()===H)return n(L._format("0{0}%",O));if(P(a,E))return n(L._format("#,##0{0}",O))}return n("General")},t.prototype.format=function(e,t){if(C(e,"boolean"))return B()&&(e=e?B().boolean_true:B().boolean_false),e.toString().toUpperCase();var r,n=0,a=this._getFormatInfo(e);if(a){var i=a.colorFormatPart;t&&i&&(t.conditionalForeColor=t.value=i.foreColor),(r=s._Types._isNumber(e,this.cultureName))&&(n=s._Types._toDouble(e));var o=L._Empty;try{if(r&&a===this.getFormatter(v._negative)&&0!==this.expressionNumber)(o=a.format(a.considerNegSymbol?n:_(n)))===p&&C(e,"string")&&(o=e);else if(void 0===(o=a.value)){var u=!this._isSingleFormatterInfo&&a===this.getFormatter(v._text);o=a.format(e,r||u)}t&&(t.content=T(o)?o:[{type:"text",value:o}]),T(o)&&(o=N._formatObjectToString(o))}catch(t){C(e,"string")&&(o=e.toString())}return o}return r&&n<0?"-":C(e,"string")?e.toString():void 0===e||e===p?L._Empty:e.toString()},t.prototype.parse=function(e){return this.formatters&&this.formatters.length>0?this.formatters[0].parse(e):p},t.prototype.init=function(){var e=this.formatCached;L._isNullOrEmpty(e)&&U(),this.formatters=[];var t=function(e){for(var t=[],r=0,n=0,a=e.length,i=0;i<a;i++)"_"===e[i]?r++:(";"!==e[i]||0!==r&&r%2!=0||(t.push(e.substring(n,i)),n=i+1),r=0);return n<=a&&t.push(e.substring(n,a)),t}(e);this._isSingleFormatterInfo=1===t.length,(!t||t.length<1||t.length>4)&&U();for(var r=0;r<t.length;r++){-1!==t[r].indexOf("@")&&-1===t[r].indexOf("\\@")&&(r!==t.length-1?U():this.hasAt=!0);var n=new de(t[r],this.cultureName);this.formatters.push(n)}this.getFormatter(v._positive)||U(),this._refreshFormatPart()},t.prototype._refreshFormatPart=function(){this.expressionNumber=this.formatters.length-(this.hasAt?1:0);var e=(0===this.expressionNumber?1:this.expressionNumber)-1;v=s._Types._extend({},b[e]),this.hasAt&&0!==this.expressionNumber&&(v._text=this.formatters.length-1)},t.prototype._getFormatInfo=function(e){this._refreshFormatPart();var t=this.getFormatter(v._positive),r=t&&t.conditionalFormatPart,n=this.getFormatter(v._text);if(r&&(v._zero=2,this.hasAt||(v._text=3)),"string"==typeof e&&k(e))return n||(r?e:t);if(s._Types._isNumber(e,this.cultureName)||C(e,"boolean")){var a=this.getFormatter(v._negative),i=this.getFormatter(v._zero),o=s._Types._toDouble(e),u=r&&t.conditionalFormatPart.isMeetCondition(o),l=a&&a.conditionalFormatPart,c=l&&a.conditionalFormatPart.isMeetCondition(o),m=void 0;if(this._isSingleFormatterInfo||(r?u:o>0||0===o&&!i))m=t;else if(l?c:o<0)m=a;else if(i)m=i;else if(a){if(r&&l)return{value:o+""};m=a}return m&&(!r||l||m!==a||i||(m.considerNegSymbol=!0),r&&l&&m===a&&a.conditionalFormatPart&&a.conditionalFormatPart.isMeetCondition(1e-10)&&(m.considerNegSymbol=!0),this.expressionNumber<=1&&(m.considerNegSymbol=!0)),m}return p},t.prototype._raisePropertyChanged=function(e){if(this.PropertyChanged)for(var t=0;t<this.PropertyChanged.length;t++){var r=this.PropertyChanged[t];"function"==typeof r&&r(this,e)}},t.defFormatter=function(e){var r=t[e];return r||(r=new t(e),t[e]=r),r},t.test=function(e){var t=!0;try{var r=new y.Lexer(e);new h.Parser(r).parse()}catch(e){t=!1}return t},t}(z);t.GeneralFormatter=pe},826:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.throwError=t.BACKSLASH=t.UNDERLINE=t.ASTERISK=t.DOUBLE_QUOTE=t.SEMICOLON=void 0,t.SEMICOLON=";",t.DOUBLE_QUOTE='"',t.ASTERISK="*",t.UNDERLINE="_",t.BACKSLASH="\\";t.throwError=function(){throw Error("Invalid Number Format")}},810:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.Lexer=void 0;var n=r(826),a=function(e){return!!["0","#","?",".","%",",","/",n.BACKSLASH,n.ASTERISK,n.UNDERLINE,"@"].find((function(t){return t===e}))},i=function(e){return[n.BACKSLASH,n.ASTERISK,n.UNDERLINE].find((function(t){return t===e}))},o=function(e,t){return{type:e,value:t}},s=function(){function e(e){this._tokens=[],this._input=e,this._tokenize()}return e.prototype._tokenize=function(){for(var e=0,t=this._input;e<t.length;e++){var r=t[e];if(a(r)){if(i(r)){this._tokens.push(o("symbol",r)),e<t.length-1&&(this._tokens.push(o("char",t[e+1])),e++);continue}this._tokens.push(o("symbol",r))}else if(r!==n.SEMICOLON){if(r===n.DOUBLE_QUOTE){var s=t.slice(e+1).search(n.DOUBLE_QUOTE);if(-1!==s){s=s+e+1,this._tokens.push(o("text",t.slice(e+1,s))),e=s;continue}(0,n.throwError)()}this._tokens.push(o("char",r))}else this._tokens.push(o("semicolon",r))}this._tokens.push(o("EOF",""))},e.prototype._nextToken=function(){return this._tokens.shift()},e}();t.Lexer=s},61:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.Parser=void 0;var n=r(826),a=function(){function e(e){this._lexer=e,this._currentToken=e._nextToken()}return e.prototype._eat=function(e){this._currentToken.type===e?this._currentToken=this._lexer._nextToken():(0,n.throwError)()},e.prototype.parse=function(){for(var e=[];"EOF"!==this._currentToken.type;)e.push(this._parseFormatPart()),e.length>4&&(0,n.throwError)();return{type:"numberFormat",body:e}},e.prototype._parseFormatPart=function(){for(var e=[];"semicolon"!==this._currentToken.type&&"EOF"!==this._currentToken.type;){"symbol"===this._currentToken.type?e.push(this._parseSymbol()):e.push(this._parseCharOrString())}return"semicolon"===this._currentToken.type&&this._eat("semicolon"),{type:"formatPart",body:e}},e.prototype._parseSymbol=function(){var e,t=this._currentToken.value;return t===n.ASTERISK?(this._eat("symbol"),e={type:"asterisk",body:this._currentToken.value},this._eat("char")):t===n.BACKSLASH?(this._eat("symbol"),e={type:"char",body:this._currentToken.value},this._eat("char")):t===n.UNDERLINE?(this._eat("symbol"),e={type:"underline",body:this._currentToken.value},this._eat("char")):(e={type:"symbol",body:this._currentToken.value},this._eat("symbol")),e},e.prototype._parseCharOrString=function(){var e,t=this._currentToken.type;return"char"===t?(e={type:"char",body:this._currentToken.value},this._eat("char")):"text"===t&&(e={type:"text",body:this._currentToken.value},this._eat("text")),e},e}();t.Parser=a},736:function(e){e.exports=canvas}},r={};function n(e){var a=r[e];if(void 0!==a)return a.exports;var i=r[e]={exports:{}};return t[e].call(i.exports,i,i.exports,n),i.exports}n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}();var a={};!function(){var e=a;Object.defineProperty(e,"__esModule",{value:!0}),e.Formatter=e.Commands=e.Common=void 0;var t=n(38);e.Common=t;var r=n(814);e.Commands=r;var i=n(569);e.Formatter=i}(),(e=void 0===e?{}:e).Spread=a}()},150:()=>{var e;!function(){"use strict";var t={38:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var a=Object.getOwnPropertyDescriptor(t,r);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,a)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),a=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.UserManagerEvent=t.UserManager=t.UUIDGenerator=t._getSR=t.rbush=t.CultureManager=t.CultureInfo=t._StringHelper=t._RegexHelper=t._NumberHelper=t._DateTimeHelper=t._ArrayHelper=t._Types=t._ColorHelper=void 0;var i=r(395);Object.defineProperty(t,"_ColorHelper",{enumerable:!0,get:function(){return i._ColorHelper}});var o=r(534);Object.defineProperty(t,"_Types",{enumerable:!0,get:function(){return o._Types}});var s=r(305);Object.defineProperty(t,"_ArrayHelper",{enumerable:!0,get:function(){return s._ArrayHelper}});var u=r(97);Object.defineProperty(t,"_DateTimeHelper",{enumerable:!0,get:function(){return u._DateTimeHelper}}),Object.defineProperty(t,"_getSR",{enumerable:!0,get:function(){return u.getSR}});var l=r(844);Object.defineProperty(t,"_NumberHelper",{enumerable:!0,get:function(){return l._NumberHelper}});var c=r(576);Object.defineProperty(t,"_RegexHelper",{enumerable:!0,get:function(){return c._RegexHelper}});var m=r(480);Object.defineProperty(t,"_StringHelper",{enumerable:!0,get:function(){return m._StringHelper}});var y=r(674);Object.defineProperty(t,"rbush",{enumerable:!0,get:function(){return y.rbush}});var h=r(818),f=r(479);Object.defineProperty(t,"UUIDGenerator",{enumerable:!0,get:function(){return f.UUIDGenerator}}),Object.defineProperty(t,"HandleExcelSpecialDate",{set:function(e){h.HandleExcelSpecialDate=e},get:function(){return h.HandleExcelSpecialDate}}),a(r(818),t);var d=r(286);Object.defineProperty(t,"CultureInfo",{enumerable:!0,get:function(){return d.CultureInfo}}),Object.defineProperty(t,"CultureManager",{enumerable:!0,get:function(){return d.CultureManager}}),a(r(646),t);var p=r(561);Object.defineProperty(t,"UserManager",{enumerable:!0,get:function(){return p.UserManager}}),Object.defineProperty(t,"UserManagerEvent",{enumerable:!0,get:function(){return p.UserManagerEvent}})},286:function(e,t,r){var n,a=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+t+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.CultureManager=t._EraHelper=t.CultureInfo=t.TimelineDateOrder=void 0;var i,o=r(534),s=r(818),u=r(305),l=r(576),c="undefined"!=typeof window?window:r.g,m=o._Types._each,y=o._Types._extend,h=(new Date).getFullYear(),f=["MM/dd/yyyy","MM/d/yyyy","M/dd/yyyy","M/d/yyyy","yy/MM/dd","yy/MM/d","yy/M/dd","yy/M/d","yyyy/MM/dd","yyyy/MM/d","yyyy/M/dd","yyyy/M/d"],d=["hh:mm:ss","hh:mm:s","hh:m:ss","hh:m:s","h:mm:ss","h:mm:s","h:m:ss","h:m:s","hh:mm:ss tt","hh:mm:s tt","hh:m:ss tt","hh:m:s tt","h:mm:ss tt","h:mm:s tt","h:m:ss tt","h:m:s tt","hh:mm","hh:m","h:mm","h:m","hh:mm tt","hh:m tt","h:mm tt","h:m tt"],p=["MM-dd-yyyy","MM-d-yyyy","M-dd-yyyy","M-d-yyyy","yy-MM-dd","yy-MM-d","yy-M-dd","yy-M-d","yyyy-MM-dd","yyyy-MM-d","yyyy-M-dd","yyyy-M-d","dd-MMMM-yy","dd-MMM-yy"],_=f.concat(d);function g(e){return e.split(" ").join(" ").toUpperCase()}function M(e){for(var t=[],r=0,n=e.length;r<n;r++)t[r]=g(e[r]);return t}function v(e,t,r){var n=g(e),a=t.indexOf(n);return-1===a&&(a=r.indexOf(n)),a}function b(e){if(e){var t=e.charCodeAt(0);if(t>=11904&&t<12032||t>=8208&&t<8252||t>=12288&&t<40960||t>=43360&&t<43392||t>=44032&&t<55215||t>=63744&&t<64256||t>=65280&&t<65535)return!0}return!1}function F(e,t,r){if(" "===e||r&&" "===e)return 0;var n=r&&r(e);return t.lineBreakingForbidStart&&-1!==t.lineBreakingForbidStart.indexOf(e)?!r||n?7:6:t.lineBreakingForbidEnd&&-1!==t.lineBreakingForbidEnd.indexOf(e)?!r||n?5:4:n?2:t.lineBreakingChar&&-1!==t.lineBreakingChar.indexOf(e)?3:1}m(f,(function(e,t){m(d,(function(e,r){e<d.length-4&&_.push(t+" "+r)}))})),_=_.concat(p),m(p,(function(e,t){m(d,(function(e,r){e<d.length-4&&_.push(t+" "+r)}))})),function(e){e[e.year=1]="year",e[e.quarterOrMonth=2]="quarterOrMonth",e[e.date=3]="date"}(i=t.TimelineDateOrder||(t.TimelineDateOrder={}));var S={"00":1,"01":1,"02":1,"03":1,"04":1,"05":1,"06":1,"07":1,12:1,15:1,21:1,22:1,23:1,24:1,25:1,31:1,32:1,33:1,34:1,35:1,36:1,37:1,62:1,65:1,71:1,72:1,73:1,74:1,75:1};function D(e,t,r){if(!e)return[];for(var n=[e[0]],a=0,i=F(e[0],t,r),o=1;o<e.length;o++){var s=F(e[o],t,r);S[i+""+s]&&void 0===n[++a]&&(n[a]=""),n[a]+=e[o],i=s}return n}var x=function(){function e(){this.NumberFormat={currencyDecimalDigits:2,currencyDecimalSeparator:".",currencyGroupSeparator:",",currencyGroupSizes:[3],currencyNegativePattern:0,currencyPositivePattern:0,currencySymbol:"¤",digitSubstitution:1,isReadOnly:!0,numberGroupSizes:[3],nanSymbol:"NaN",nativeDigits:["0","1","2","3","4","5","6","7","8","9"],numberNegativePattern:1,negativeInfinitySymbol:"-Infinity",negativeSign:"-",numberDecimalDigits:2,numberDecimalSeparator:".",numberGroupSeparator:",",positiveInfinitySymbol:"Infinity",positiveSign:"+",percentDecimalDigits:2,percentDecimalSeparator:".",percentGroupSeparator:",",percentGroupSizes:[3],percentNegativePattern:0,percentPositivePattern:0,percentSymbol:"%",perMilleSymbol:"‰",listSeparator:",",arrayListSeparator:",",arrayGroupSeparator:";",dbNumber:{},standardDictionaryNumbers:{Hundreds:"Hundreds",Thousands:"Thousands",Millions:"Millions",Billions:"Billions",Trillions:"Trillions"},scientificNotation:"0.##############E+00"},this.DateTimeFormat={abbreviatedDayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],abbreviatedMonthGenitiveNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""],abbreviatedMonthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""],amDesignator:"AM",calendarIsReadOnly:!0,calendarWeekRule:0,Calendar:{MinSupportedDateTime:"@-62135568000000@",MaxSupportedDateTime:"@253402300799999@",AlgorithmType:1,CalendarType:1,Eras:[1],TwoDigitYearMax:2029,isReadOnly:!0},dateSeparator:"/",dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],defaultDatePattern:"MM/dd/yyyy H:mm:ss",firstDayOfWeek:0,fullDateTimePattern:"dddd, dd MMMM yyyy HH:mm:ss",longDatePattern:"dddd, dd MMMM yyyy",longTimePattern:"HH:mm:ss",monthDayPattern:"MMMM dd",monthGenitiveNames:["January","February","March","April","May","June","July","August","September","October","November","December",""],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December",""],nativeCalendarName:"Gregorian Calendar",pmDesignator:"PM",rfc1123Pattern:"ddd, dd MMM yyyy HH':'mm':'ss 'GMT'",shortDatePattern:"MM/dd/yyyy",shortestDayNames:["Su","Mo","Tu","We","Th","Fr","Sa"],shortTimePattern:"HH:mm",sortableDateTimePattern:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",timeSeparator:":",universalSortableDateTimePattern:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",yearMonthPattern:"yyyy MMMM",filterDialogDateFormatter:"yyyy/mmmm/dd",preselectedFormatters:[],eraFormatter:["ge/M/d","ge-M-d","ge.M.d","gee/MM/dd"]},this.name=function(){return""},this.id=-1,this.LocalNumberFormat={},this.displayName="",this.fontScriptCode=void 0,this.predefinedFormats={},this.TimelineDateOrder=[i.quarterOrMonth,i.date,i.year],this.TimelineDateSuffix={year:"",quarter:"",month:"",date:""},this.TextFormat={lineBreakingChar:[" ","-"]},this.equalCharacters=void 0}return e.prototype._getDistributedBreakingChar=function(){return[" "]},e.prototype._getDistributedWords=function(e){var t={lineBreakingChar:this._getDistributedBreakingChar()};return this.TextFormat&&this.TextFormat.lineBreakingStrategy?this.TextFormat.lineBreakingStrategy(e,t):D(e,t)},e.prototype._getTextWords=function(e){if(this.TextFormat&&this.TextFormat.lineBreakingStrategy){var t={lineBreakingChar:this.TextFormat.lineBreakingChar,lineBreakingForbidEnd:this.TextFormat.lineBreakingForbidEnd,lineBreakingForbidStart:this.TextFormat.lineBreakingForbidStart};return this.TextFormat.lineBreakingStrategy(e,t)}return D(e,this.TextFormat||{lineBreakingChar:[" ","-"]})},e.prototype._getDateTimePattern=function(){if(!this._dateTimeFormatPattern){var e=this.DateTimeFormat,t=e.shortDatePattern.replace(/m/g,"M"),r=[t,t+" h:mm",t+" h:mm:ss",t+" h:mm:ss.0","MMMdd","MMMd","MMM dd","MMM d"];if(r=r.concat(_),1041===this.id){var n=e.eraFormatter;r=(r=r.concat(this._eraFormatter)).concat(n)}r=r.concat(e.preselectedFormatters),this._dateTimeFormatPattern=r}return this._dateTimeFormatPattern},e.prototype._getMonthIndex=function(e){return this._upperMonths||(this._upperMonths=M(this.DateTimeFormat.monthNames),this._upperMonthsGenitive=M(this.DateTimeFormat.monthGenitiveNames)),v(e,this._upperMonths,this._upperMonthsGenitive)},e.prototype._getAbbrMonthIndex=function(e){return this._upperAbbrMonths||(this._upperAbbrMonths=M(this.DateTimeFormat.abbreviatedMonthNames),this._upperAbbrMonthsGenitive=M(this.DateTimeFormat.abbreviatedMonthGenitiveNames)),v(e,this._upperAbbrMonths,this._upperAbbrMonthsGenitive)},e.prototype._getDayIndex=function(e){return this._upperDays||(this._upperDays=M(this.DateTimeFormat.dayNames)),this._upperDays.indexOf(g(e))},e.prototype._getAbbrDayIndex=function(e){return this._upperAbbrDays||(this._upperAbbrDays=M(this.DateTimeFormat.abbreviatedDayNames)),this._upperAbbrDays.indexOf(g(e))},e}();t.CultureInfo=x;var C=function(){function e(){}return e._isValidEraDate=function(t){return t>=e._getEraMin()&&t<=e._getEraMax()},e._getEraDates=function(){var e=x.eras;if(void 0!==e){for(var t=[],r=0;r<e.length;r++)t[r]=new Date(e[r].startDate.replace(/-/g,"/"));return t}return this._EraDates},e._getEraPropByFormat=function(t){var r,n;switch(t){case"g":r="symbol",n=e._symbols;break;case"gg":r="abbreviation",n=e._abbreviations;break;case"ggg":r="name",n=e._names;break;default:return[]}var a=x.eras,i=[];if(void 0!==a){for(var o=0;o<a.length;o++)i[o]=a[o][r];return i}return n},e._getEraMax=function(){var e=x.eras;if(void 0!==e&&e.length>0){var t=new Date(e[e.length-1].startDate.replace(/-/g,"/"));return t.setFullYear(t.getFullYear()+99),t}return this._EraMax},e._getEraMin=function(){var e=x.eras;return void 0!==e&&e.length>0?new Date(e[0].startDate.replace(/-/g,"/")):this._EraMin},e._getEraCount=function(){var e=x.eras;return void 0!==e?e.length:this._EraCount},e._getEraYears=function(){var e=x.eras;if(void 0!==e){for(var t=[],r=1;r<e.length;r++){var n=new Date(e[r-1].startDate.replace(/-/g,"/")),a=new Date(e[r].startDate.replace(/-/g,"/"));t[r-1]=a.getFullYear()-n.getFullYear()+1}return t[r-1]=99,t}return this._EraYears},e._getEraDate=function(t){var r={_era:-1,_eraYear:-1};if(!e._isValidEraDate(t)){if(!(t>e._getEraMax()))return r;t=e._getEraMax()}for(var n=0;n<e._getEraCount();n++){if(t<(n+1!==e._getEraCount()?e._getEraDates()[n+1]:e._addMilliseconds(e._getEraMax(),1))){r._era=n,r._eraYear=t.getFullYear()-e._getEraDates()[n].getFullYear()+1;break}}return r},e._addMilliseconds=function(e,t){var r=new Date(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds());return r.setMilliseconds(r.getMilliseconds()+t),new Date(r.valueOf())},e._getYearFromEra=function(t,r){return e._getEraDates()[t].getFullYear()+r-1},e._parseEraPart=function(t,r){r=r.toUpperCase();for(var n=e._getEraPropByFormat(t),a=0;a<n.length;a++)if(n[a]===r)return a;return-1},e._formatEraPart=function(t,r,n){var a=e,i=a._getEraDate(r),o=i._era;if(o>=0){var s=a._getEraPropByFormat(t);if(s.length>0)return s[o]}var u=i._eraYear;if(u>=0){var l=u.toString();if("1"===l&&n)return"元";if("ee"===t)return 1===l.length&&(l="0"+l),l;if("e"===t)return l}return""},e._EraDates=[new Date(1868,8,8),new Date(1912,6,30),new Date(1926,11,25),new Date(1989,0,8),new Date(2019,4,1)],e._EraCount=5,e._EraYears=[45,15,64,31,99],e._EraMax=new Date(2117,11,31,23,59,59),e._EraMin=new Date(1868,8,8),e._shortcuts=["1,m","2,t","3,s","4,h","5,r"],e._EraIndices=[0,1,2,3,0,1,2,3],e._names=["明治","大正","昭和","平成","令和"],e._symbols=["M","T","S","H","R"],e._abbreviations=["明","大","昭","平","令"],e._EraYearMax=99,e.eraExcelFormatter="[$-ja-JP-x-gannen]",e.eraInternalFormatter="[$-411]",e}();t._EraHelper=C;var T=function(e){function t(){var t=e.call(this)||this;O.call(t,"NumberFormat",["currencySymbol","isReadOnly"],["$",!1]);return O.call(t,"DateTimeFormat",["fullDateTimePattern","longDatePattern","longTimePattern","shortDatePattern","shortTimePattern","yearMonthPattern","calendarIsReadOnly","preselectedFormatters"],["dddd, MMMM dd, yyyy h:mm:ss tt","dddd, MMMM dd, yyyy","h:mm:ss tt","M/d/yyyy","h:mm tt","MMMM, yyyy",!1,["MMM yyyy","MMMM yyyy"]]),t.DateTimeFormat.defaultDatePattern=t.DateTimeFormat.shortDatePattern+" H:mm:ss",t.name=function(){return"en-US"},t.displayName="English (United States)",t.id=1033,t.predefinedFormats={Accounting:'_([$$-409]* #,##0.00_);_([$$-409]* (#,##0.00);_([$$-409]* "-"??_);_(@_)',Comma:'_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)',Currency:["[$$-409]#,##0","[$$-409]#,##0;[Red][$$-409]#,##0","[$$-409]#,##0_);([$$-409]#,##0)","[$$-409]#,##0_);[Red]([$$-409]#,##0)"],Date:["m/d/yyyy","[$-409]dddd, mmmm dd, yyyy","m/d;@","m/d/yy;@","mm/dd/yy;@","[$-409]d-mmm;@","[$-409]d-mmm-yy;@","[$-409]mmm-yy;@","[$-409]mmmm-yy;@","[$-409]mmmm d, yyyy;@","[$-409]m/d/yy h:mm AM/PM;@","m/d/yy h:mm;@","[$-409]mmmmm;@","[$-409]mmmmm-yy;@","m/d/yyyy;@","[$-409]d-mmm-yyyy;@"],Time:["[$-409]h:mm:ss AM/PM","h:mm;@","[$-409]h:mm AM/PM;@","h:mm:ss;@","[$-409]h:mm:ss AM/PM;@","mm:ss.0;@","[h]:mm:ss;@","[$-409]m/d/yy h:mm AM/PM;@","m/d/yy h:mm;@"],Special:{"Zip Code":"00000","Zip Code + 4":"00000-0000","Phone Number":"[<=9999999]###-####;(###) ###-####","Social Security Number":"000-00-0000"},shortcut:{Number:"0.00",Currency:"[$$-409]#,##0.00",Accounting:'_([$$-409]* #,##0.00_);_([$$-409]* (#,##0.00);_([$$-409]* "-"??_);_(@_)',ShortDate:"m/d/yyyy",LongDate:"[$-409]dddd, mmmm dd, yyyy",Time:"[$-409]h:mm:ss AM/PM",Percentage:"0.00%",Fraction:"# ?/?",Scientific:"0.00E+00",Text:"@",Comma:'_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)'}},t}return a(t,e),t}(x),N=function(e){function t(){var t=e.call(this)||this;O.call(t,"NumberFormat",["currencyDecimalDigits","currencyNegativePattern","currencySymbol","isReadOnly","nanSymbol","negativeInfinitySymbol","percentNegativePattern","percentPositivePattern","positiveInfinitySymbol","dbNumber","standardDictionaryNumbers"],[0,1,"¥",!1,"NaN (非数値)","-∞",1,1,"+∞",{1:{letters:["兆","千","百","十","亿","千","百","十","万","千","百","十",""],numbers:["〇","一","二","三","四","五","六","七","八","九"]},2:{letters:["兆","阡","百","拾","億","阡","百","拾","萬","阡","百","拾",""],numbers:["〇","壱","弐","参","四","伍","六","七","八","九"]},3:{letters:null,numbers:["0","1","2","3","4","5","6","7","8","9"]}},{Hundreds:"百",Thousands:"千",Millions:"百万",Billions:"十億",Trillions:"兆"}]);var r=["1","2","3","4","5","6","7","8","9","10","11","12",""],n=["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月",""];return O.call(t,"DateTimeFormat",["abbreviatedDayNames","abbreviatedMonthGenitiveNames","abbreviatedMonthNames","amDesignator","calendarIsReadOnly","dayNames","fullDateTimePattern","longDatePattern","longTimePattern","monthDayPattern","monthGenitiveNames","monthNames","nativeCalendarName","pmDesignator","shortDatePattern","shortestDayNames","shortTimePattern","yearMonthPattern","filterDialogDateFormatter","preselectedFormatters","EraFilterDialogDateFormatter"],[["日","月","火","水","木","金","土"],r,r,"午前",!1,["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"],"yyyy'年'M'月'd'日' H:mm:ss","yyyy'年'M'月'd'日'","H:mm:ss","M'月'd'日'",n,n,"西暦 (日本語)","午後","yyyy/MM/dd",["日","月","火","水","木","金","土"],"H:mm","yyyy'年'M'月'","yyyy年/mmmm/d日",["yyyy年M月d日","yyyy年M月dd日","yyyy年MM月d日","yyyy年MM月dd日"],"ggge/mmmm/d日"]),t.DateTimeFormat.eras=!0,t.DateTimeFormat.defaultDatePattern=t.DateTimeFormat.shortDatePattern+" "+t.DateTimeFormat.longTimePattern,t._eraFormatter=['gggee"年"MM"月"dd"日','gggee"年"M"月"d"日','ge"年"M"月"d"日','ggge"年"M"月"d"日','ggee"年"M"月"d"日','gge"年"M"月"d"日'],t.name=function(){return"ja-JP"},t.id=1041,t.displayName="Japanese (Japan)",t.isJCKCulture=!0,t.predefinedFormats={Accounting:'_-[$¥-411]* #,##0.00_-;-[$¥-411]* #,##0.00_-;_-[$¥-411]* "-"??_-;_-@_-',Comma:'_-* #,##0.00_-;-* #,##0.00_-;_-* "-"??_-;_-@_-',Currency:["[$¥-411]#,##0_);[Red]([$¥-411]#,##0)","[$¥-411]#,##0_);([$¥-411]#,##0)","[$¥-411]#,##0;[Red][$¥-411]#,##0","[$¥-411]#,##0;-[$¥-411]#,##0","[$¥-411]#,##0;[Red]-[$¥-411]#,##0"],Date:["yyyy/mm/dd","[$-411]dddd, mmmm dd, yyyy",'yyyy"年"m"月"d"日";@','yyyy"年"m"月";@','m"月"d"日";@',"yyyy/m/d;@","[$-409]yyyy/m/d h:mm AM/PM;@","yyyy/m/d h:mm;@","m/d;@","m/d/yy;@","mm/dd/yy;@","[$-409]d-mmm;@","[$-409]d-mmm-yy;@","[$-409]dd-mmm-yy;@","[$-409]mmm-yy;@","[$-409]mmmm-yy;@","[$-409]mmmmm;@","[$-409]mmmmm-yy;@"],Time:["[$-411]h:mm:ss AM/PM","h:mm;@","[$-409]h:mm AM/PM;@","h:mm:ss;@","[$-409]h:mm:ss AM/PM;@","[$-409]yyyy/m/d h:mm AM/PM;@","yyyy/m/d h:mm;@",'h"時"mm"分";@','h"時"mm"分"ss"秒";@'],Special:{郵便番号:"[<=999]000;[<=9999]000-00;000-0000","電話番号(東京)":"[<=99999999]####-####;(00) ####-####","正負記号 (+ = △; - = ▲)":'"△" #,##0;"▲" #,##0',"漢数字(十二万三千四百)":"[DBNum1][$-411]General","大字 (壱拾弐萬参阡四百)":"[DBNum2][$-411]General","全角 (12345)":"[DBNum3][$-411]0","全角 桁区切り(12,345)":"[DBNum3][$-411]#,##0"},shortcut:{Number:"0.00",Currency:"[$¥-411]#,##0.00",Accounting:'_-[$¥-411]* #,##0.00_-;-[$¥-411]* #,##0.00_-;_-[$¥-411]* "-"??_-;_-@_-',ShortDate:"yyyy/mm/dd",LongDate:"[$-411]dddd, mmmm dd, yyyy",Time:"[$-411]h:mm:ss AM/PM",Percentage:"0.00%",Fraction:"# ?/?",Scientific:"0.00E+00",Text:"@",Comma:'_-* #,##0.00_-;-* #,##0.00_-;_-* "-"??_-;_-@_-'}},t.TimelineDateOrder=[i.year,i.quarterOrMonth,i.date],t.TimelineDateSuffix={year:"年",quarter:"",month:"月",date:"日"},t.TextFormat={lineBreakingChar:[" "," ","-"],lineBreakingForbidStart:["!","%",")",",",".",":",";","?","]","}","!","%",")",",",".",":",";","?","]","}","」","。","、","ー"],lineBreakingForbidEnd:["(","[","{","(","[","{","「","$","$","\\","¥"],lineBreakingStrategy:function(e,t){return D(e,t,b)}},t.equalCharacters=["―ゝゞ゠ヽヾー","㆐㆑㇤㇥","‸⁊",".․","&⁋","%⁏","$⁒","#⁗",'"⁍',"‹⁓"],t}return a(t,e),t}(x),H=function(e){function t(){var t=e.call(this)||this;O.call(t,"NumberFormat",["currencyNegativePattern","currencySymbol","isReadOnly","nanSymbol","negativeInfinitySymbol","percentNegativePattern","percentPositivePattern","positiveInfinitySymbol","dbNumber","standardDictionaryNumbers"],[2,"¥",!1,"非数字","负无穷大",1,1,"正无穷大",{1:{letters:["兆","千","百","十","亿","千","百","十","万","千","百","十",""],numbers:["○","一","二","三","四","五","六","七","八","九"]},2:{letters:["兆","仟","佰","拾","亿","仟","佰","拾","万","仟","佰","拾",""],numbers:["零","壹","贰","叁","肆","伍","陆","柒","捌","玖"]},3:{letters:null,numbers:["0","1","2","3","4","5","6","7","8","9"]}},{Hundreds:"百",Thousands:"千",Millions:"百万",Billions:"十亿",Trillions:"兆"}]);var r=["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月",""],n=["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月",""];return O.call(t,"DateTimeFormat",["abbreviatedDayNames","abbreviatedMonthGenitiveNames","abbreviatedMonthNames","amDesignator","calendarIsReadOnly","dayNames","firstDayOfWeek","fullDateTimePattern","longDatePattern","longTimePattern","monthDayPattern","monthGenitiveNames","monthNames","nativeCalendarName","pmDesignator","shortDatePattern","shortestDayNames","shortTimePattern","yearMonthPattern","filterDialogDateFormatter","preselectedFormatters"],[["周日","周一","周二","周三","周四","周五","周六"],r,r,"上午",!1,["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],1,"yyyy'年'M'月'd'日' H:mm:ss","yyyy'年'M'月'd'日'","H:mm:ss","M'月'd'日'",n,n,"公历","下午","yyyy/M/d",["日","一","二","三","四","五","六"],"H:mm","yyyy'年'M'月'","yyyy年/mmmm/d日",["yyyy年M月","M月d日","yyyy年M月d日","h时mm分","h时mm分ss秒"]]),t.DateTimeFormat.defaultDatePattern=t.DateTimeFormat.shortDatePattern+" "+t.DateTimeFormat.longTimePattern,t.name=function(){return"zh-cn"},t.id=2052,t.displayName="Chinese (China)",t.isJCKCulture=!0,t.localeCompare=function(e,t){var r=e.localeCompare(t,"zh");return r<0&&e>="一"&&t<"一"||r>0&&t>="一"&&e<"一"?-r:r},t.predefinedFormats={Accounting:'_ [$¥-804]* #,##0.00_ ;_ [$¥-804]* -#,##0.00_ ;_ [$¥-804]* "-"??_ ;_ @_ ',Comma:'_ * #,##0.00_ ;_ * -#,##0.00_ ;_ * "-"??_ ;_ @_ ',Currency:["[$¥-804]#,##0","[$¥-804]#,##0;[Red][$¥-804]#,##0","[$¥-804]#,##0;[$¥-804]-#,##0","[$¥-804]#,##0;[Red][$¥-804]-#,##0"],Date:["yyyy/m/d","[$-804]dddd, mmmm dd, yyyy","yyyy-mm-dd;@",'[DBNum1][$-804]yyyy"年"m"月"d"日";@','[DBNum1][$-804]yyyy"年"m"月";@','[DBNum1][$-804]m"月"d"日";@',"[$-409]yyyy/m/d h:mm AM/PM;@",'yyyy"年"m"月"d"日";@','yyyy"年"m"月";@','m"月"d"日";@',"mm/dd/yy;@","m/d/yy;@","yyyy/m/d h:mm AM/PM;@","yyyy/m/d h:mm;@","[$-409]d-mmm;@","[$-409]d-mmm-yy;@","[$-409]dd-mmm-yy;@","[$-409]mmm-yy;@","[$-409]m","[$-409]m-d;@"],Time:["[$-804]h:mm:ss AM/PM","h:mm;@","[$-409]h:mm AM/PM;@","h:mm:ss;@",'h"时"mm"分";@','h"时"mm"分"ss"秒";@','[$-804]上午/下午h"时"mm"分";@','[$-804]上午/下午h"时"mm"分"ss"秒";@','[DBNum1][$-804]h"时"mm"分";@','[DBNum1][$-804]上午/下午h"时"mm"分";@'],Special:{邮政编码:"000000",中文小写字母:"[DBNum1][$-804]General",中文大写字母:"[DBNum2][$-804]General"},shortcut:{Number:"0.00",Currency:"[$¥-804]#,##0.00",Accounting:'_ [$¥-804]* #,##0.00_ ;_ [$¥-804]* -#,##0.00_ ;_ [$¥-804]* "-"??_ ;_ @_ ',ShortDate:"yyyy/m/d",LongDate:"[$-804]dddd, mmmm dd, yyyy",Time:"[$-804]h:mm:ss AM/PM",Percentage:"0.00%",Fraction:"# ?/?",Scientific:"0.00E+00",Text:"@",Comma:'_ * #,##0.00_ ;_ * -#,##0.00_ ;_ * "-"??_ ;_ @_ '}},t.TimelineDateOrder=[i.year,i.quarterOrMonth,i.date],t.TimelineDateSuffix={year:"年",quarter:"",month:"",date:"日"},t.TextFormat={lineBreakingChar:[" "," ","-"],lineBreakingForbidStart:["!","%",")",",",".",":",";","?","]","}","!","%",")",",",".",":",";","?","]","}"],lineBreakingForbidEnd:["(","[","{","(","[","{"],lineBreakingStrategy:function(e,t){return D(e,t,b)}},t.normalizeDateTimeString=function(e){var t;if(l._RegexHelper._getReg("^([0-9]{1,2}|[0-9]{4})年[0-9]{1,2}月$").test(e))return(t=e.split("年"))[1].replace("月","")+"/1/"+t[0];if(l._RegexHelper._getReg("^[0-9]{1,2}月[0-9]{1,2}日$").test(e))return(t=e.split("月"))[0]+"/"+t[1].replace("日","")+"/"+h;if(l._RegexHelper._getReg("^(上午|下午)?[0-9]{1,2}时[0-9]{1,2}分([0-9]{1,2}秒)?$").test(e)){var r=e.replace("时",":").replace("分",":").replace("秒","");return(r=r.endsWith(":")?r+"00":r).startsWith("上午")&&(r=r.replace("上午","")+" AM"),r.startsWith("下午")&&(r=r.replace("下午","")+" PM"),r}return e.includes("上午")||e.includes("下午")?e.replace("上午","am").replace("下午","pm"):null},t}return a(t,e),t.prototype._getDistributedBreakingChar=function(){return[" "," "]},t}(x),E=function(e){function t(){var t=e.call(this)||this;O.call(t,"NumberFormat",["currencyDecimalDigits","currencyNegativePattern","currencySymbol","isReadOnly","dbNumber","standardDictionaryNumbers"],[0,1,"₩",!1,{1:{letters:["兆","千","百","十","億","千","百","十","万","千","百","十",""],numbers:["0","一","二","三","四","五","六","七","八","九"]},2:{letters:["兆","阡","百","拾","億","阡","百","拾","萬","阡","百","拾",""],numbers:["零","壹","貳","參","四","伍","六","七","八","九"]},3:{letters:["兆","千","百","十","億","千","百","十","万","千","百","十",""],numbers:["0","1","2","3","4","5","6","7","8","9"]},4:{letters:["조","천","백","십","억","천","백","십","만","천","백","십",""],numbers:["○","일","이","삼","사","오","육","칠","팔","구"]}},{Hundreds:"백",Thousands:"천",Millions:"백만",Billions:"10억",Trillions:"조"}]);var r=["1","2","3","4","5","6","7","8","9","10","11","12",""],n=["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월",""];return O.call(t,"DateTimeFormat",["abbreviatedDayNames","abbreviatedMonthGenitiveNames","abbreviatedMonthNames","amDesignator","calendarIsReadOnly","dayNames","firstDayOfWeek","fullDateTimePattern","longDatePattern","longTimePattern","monthDayPattern","monthGenitiveNames","monthNames","nativeCalendarName","pmDesignator","shortDatePattern","shortestDayNames","shortTimePattern","yearMonthPattern","filterDialogDateFormatter"],[["일","월","화","수","목","금","토"],r,r,"오전",!1,["일요일","월요일","화요일","수요일","목요일","금요일","토요일"],1,"yyyy'년' M'월' d'일' dddd h:mm:ss","yyyy'년' M'월' d'일' dddd","h:mm:ss","M'월' d'일'",n,n,"서기","오후","yyyy-MM-dd",["일","월","화","수","목","금","토"],"tt h:mm","yyyy'년' M'월'","yyyy년/mmmm/d일"]),t.DateTimeFormat.defaultDatePattern=t.DateTimeFormat.shortDatePattern+" "+t.DateTimeFormat.longTimePattern,t.name=function(){return"ko-kr"},t.id=1042,t.displayName="Korean (Korea)",t.isJCKCulture=!0,t.predefinedFormats={Accounting:'_-[$₩-412]* #,##0.00_-;-[$₩-412]* #,##0.00_-;_-[$₩-412]* "-"??_-;_-@_-',Comma:'_-* #,##0.00_-;-* #,##0.00_-;_-* "-"??_-;_-@_-',Currency:["[$₩-412]#,##0","[$₩-412]#,##0;[Red][$₩-412]#,##0","[$₩-412]#,##0;-[$₩-412]#,##0","[$₩-412]#,##0;[Red]-[$₩-412]#,##0"],Date:["yyyy-mm-dd",'yyyy"년" m"월" d"일" dddd',"yyyy-mm-dd;@",'yyyy"년" m"월" d"일";@','yy"年" m"月" d"日";@','yyyy"년" m"월";@','m"월" d"일";@',"yy-m-d;@","yy-m-d h:mm;@",'m"月"d"日";@',"[$-412]yy-m-d AM/PM h:mm;@","yy/m/d;@","yyyy/m/d h:mm;@","m/d;@","m/d/yy;@","mm/dd/yy;@","[$-409]d-mmm;@","[$-409]d-mmm-yy;@","[$-409]dd-mmm-yy;@","[$-409]mmm-yy;@","[$-409]m","[$-409]m-d;@"],Time:["[$-412]h:mm:ss AM/PM","h:mm;@","h:mm:ss;@","[$-412]AM/PM h:mm;@","[$-412]AM/PM h:mm:ss;@","[$-409]h:mm AM/PM;@","[$-409]h:mm:ss AM/PM;@",'yyyy"-"m"-"d h:mm;@','[$-412]yyyy"-"m"-"d AM/PM h:mm;@','[$-409]yyyy"-"m"-"d h:mm AM/PM;@','h"시" mm"분";@','h"시" mm"분" ss"초";@','[$-412]AM/PM h"시" mm"분";@','[$-412]AM/PM h"시" mm"분" ss"초";@'],Special:{"우편 번호":"000-000","전화 번호 (국번 4자리)":"[<=999999]####-####;(0##) ####-####","전화 번호 (국번 3자리)":"[<=9999999]###-####;(0##) ###-####",주민등록번호:"000000-0000000","숫자(한자)":"[DBNum1][$-412]General","숫자(한자-갖은자)":"[DBNum2][$-412]General","숫자(한글)":"[DBNum4][$-412]General"},shortcut:{Number:"0.00",Currency:"[$₩-412]#,##0.00",Accounting:'_-[$₩-412]* #,##0.00_-;-[$₩-412]* #,##0.00_-;_-[$₩-412]* "-"??_-;_-@_-',ShortDate:"yyyy-mm-dd",LongDate:'yyyy"년" m"월" d"일" dddd',Time:"[$-412]h:mm:ss AM/PM",Percentage:"0%",Fraction:"# ?/?",Scientific:"0.00E+00",Text:"@",Comma:'_-* #,##0.00_-;-* #,##0.00_-;_-* "-"??_-;_-@_-'}},t.TimelineDateOrder=[i.year,i.quarterOrMonth,i.date],t.TimelineDateSuffix={year:"년",quarter:"",month:"월",date:"일"},t}return a(t,e),t}(x),P={invariant:new x,"en-us":new T,"ja-jp":new N,"zh-cn":new H,"ko-kr":new E};function O(e,t,r){for(var n,a=0,i=t.length;a<i;a++)n=t[a],this[e][n]=r[a]}var w={},k=["lsru","lsde","ls1","ls2","ls3","ls4","ls5","ls6","ls7","ls8","ls9","ls10","ls11"],I=["wmk1","wmk2"],A=function(){function e(){this._cultureVersion=1,this._resourcesMap={}}return e.instance=function(){return this._instance||(this._instance=new this)},e.prototype.culture=function(t){if(0===arguments.length)return e._cRName;var r,n,a;t&&e._cRName!==t&&(e._cRName=t.toLowerCase(),this._cultureVersion++,r=e._cRName,n=e._instance.getCultureInfo(),"object"==typeof document&&("function"!=typeof CustomEvent?(a=document.createEvent("CustomEvent")).initCustomEvent("cultureChanged",!1,!1,void 0):a=new CustomEvent("cultureChanged",{}),a.cultureInfo=r,c.gcCultureInfo=r,c.gcCultureObj=n,document.dispatchEvent(a)))},e.prototype.addCultureInfo=function(e,t,r){if(t&&t instanceof x){var n=t.NumberFormat&&t.NumberFormat.numberDecimalSeparator,a=t.NumberFormat.arrayListSeparator,i=t.NumberFormat.arrayGroupSeparator;if(n===t.NumberFormat.listSeparator||i===a)throw new s.ResourceManager(s.SR).getResource().Exp_Separator;P[e.toLowerCase()]=t}if(r&&"object"==typeof r){var o=e.toLowerCase();w[o]=y(!0,{},r),this._cultureVersion++}},e.prototype.getCultureInfoDict=function(){return P},e.prototype.getCultureInfo=function(t){if(0===arguments.length)return P[e._cRName];"string"==typeof t&&(t=t.toLowerCase());var r=P,n=null;for(var a in r)if(a===t||void 0!==r[a].id&&r[a].id===t){n=r[a];break}return n},e.prototype.getLanguage=function(e){if("string"==typeof e){var t=e.toLowerCase();return w[t]}return null},e.prototype.getResources=function(e){var t=this.culture().toLowerCase();if(null==e&&(e=t),"string"==typeof e){var r=e.toLowerCase();if(this._resourcesMap[r])return this._adjustCurrentResources(this._resourcesMap[r])}return null},e.prototype._adjustCurrentResources=function(e){var t="PivotTables",r="ReportSheet",n="GanttSheet",a="DataChart",i="Sheets",o=y(!0,{},e);o[t]&&this._deleteSkipKey(o[t],I),o[r]&&this._deleteSkipKey(o[r],I),o[n]&&this._deleteSkipKey(o[n],I),o[a]&&this._deleteSkipKey(o[a],I),o[i]&&this._deleteSkipKey(o[i],k);var s=o.CalcEngine;return s&&(o.Functions=s._builtInFunctionsResource,o.TableFunctions=s._tableFunctionsResource,delete s._builtInFunctionsResource,delete s._tableFunctionsResource),o},e.prototype._deleteSkipKey=function(e,t){for(var r=0,n=t;r<n.length;r++){delete e[n[r]]}},e.prototype._languageTranslate=function(e,t,r){var n=w[e.toLowerCase()];for(var a in t)if(!u._ArrayHelper._contains(k,a)){var i=this._getTranslate(n,a,r);(null!==i&&"string"==typeof i&&"string"==typeof t[a]||null!==i&&"object"==typeof i&&!Array.isArray(i))&&(t[a]=i)}t._builtInFunctionsResource&&n.Functions&&this._translateFunctions(n.Functions,t._builtInFunctionsResource),t._tableFunctionsResource&&n.TableFunctions&&y(!0,t._tableFunctionsResource,n.TableFunctions)},e.prototype._getTranslate=function(e,t,r){if(e.hasOwnProperty(t))return e[t];if(r&&(a=e[r])&&"object"==typeof a&&a.hasOwnProperty(t))return a[t];for(var n in e){var a;if((a=e[n])&&"object"==typeof a&&a.hasOwnProperty(t))return a[t]}return null},e.prototype._translateFunctions=function(e,t){for(var r in t)if(e.hasOwnProperty(r)){var n=t[r],a=e[r],i=n.parameters,o=a.parameters;for(var s in n.description=a.description,i)if(o.hasOwnProperty(s)){var u=o[s];"string"==typeof u&&(i[s].name=u)}}return{}},e.prototype._getCultureInfo=function(t){var r=this.getCultureInfo(t);return r||(r=P[e._cRName])||(r=new x),r},e.prototype._getFilterDialogFormatterStr=function(e,t){var r=(this.getCultureInfo(e)||this.getCultureInfo("en-US")).DateTimeFormat,n=r.filterDialogDateFormatter;return(t.indexOf("g")>=0||t.indexOf("e")>=0)&&(n=r.EraFilterDialogDateFormatter||n),n},e._cRName="en-us",e}();t.CultureManager=A.instance()},561:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var a=Object.getOwnPropertyDescriptor(t,r);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,a)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),a=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),a(r(895),t)},566:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Error_InvalidRemoteConfigurationForUserFetching=t.Error_GraphQLSchemaMustBeProvidedForGraphQLAdapter=t.Error_FailedToFetchUsers=t.Error_RemoteConfigurationForUserFetchingNotProvided=t.GUEST_USER=void 0,t.GUEST_USER="Guest",t.Error_RemoteConfigurationForUserFetchingNotProvided="Remote configuration for user fetching is not provided.",t.Error_FailedToFetchUsers="Failed to fetch users: ",t.Error_GraphQLSchemaMustBeProvidedForGraphQLAdapter="GraphQL schema must be provided for graphql adapter.",t.Error_InvalidRemoteConfigurationForUserFetching="Invalid remote configuration for user fetching."},895:function(e,t,r){var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(a,i){function o(e){try{u(n.next(e))}catch(e){i(e)}}function s(e){try{u(n.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?a(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,s)}u((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var r,n,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(u){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(o=0)),o;)try{if(r=1,n&&(a=2&s[0]?n.return:s[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,s[1])).done)return a;switch(n=0,a&&(s=[2&s[0],a.value]),s[0]){case 0:case 1:a=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,n=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((a=(a=o.trys).length>0&&a[a.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!a||s[1]>a[0]&&s[1]<a[3])){o.label=s[1];break}if(6===s[0]&&o.label<a[1]){o.label=a[1],a=s;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(s);break}a[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],n=0}finally{r=a=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.UserManager=t.UserManagerEvent=void 0;var i=r(566),o=r(818),s=r(479),u=r(534),l=r(305);u._Types._extend(o.SR.en,i);var c,m=new o.ResourceManager(o.SR),y=m.getResource.bind(m),h=u._Types._isNullOrUndefined,f=l._ArrayHelper._clone,d=u._Types._cloneObject,p=["#3B82F6","#10B981","#8B5CF6","#F59E0B","#EF4444","#06B6D4","#EC4899","#84CC16","#6366F1","#14B8A6","#F97316","#A855F7","#22C55E","#EAB308","#F43F5E","#0EA5E9","#D946EF","#65A30D","#DC2626","#7C3AED"];!function(e){e.CurrentUserChanged="CurrentUserChanged"}(c=t.UserManagerEvent||(t.UserManagerEvent={}));var _=function(){function e(e){var t={id:s.UUIDGenerator.secureUpperCaseUUID(),name:y().GUEST_USER,color:"#26A69A",_isDefault:!0};this._users=[t],this._currentUserId=t.id,this.options=e,this._currentColorIndex=0,this._listeners=new Map([[c.CurrentUserChanged,[]]])}return e.instance=function(){return this._instance||(this._instance=new this)},e.prototype.configure=function(e){this.options=e},e.prototype._getSync=function(e){for(var t=this._users,r=0;r<t.length;r++)if(t[r].id===e)return d(t[r])},e.prototype._get=function(e){var t;return n(this,void 0,void 0,(function(){var r;return a(this,(function(n){switch(n.label){case 0:return(null===(t=this.options)||void 0===t?void 0:t.get)?[4,this.options.get(e)]:[3,2];case 1:return(r=n.sent())&&this._add(r),[2,r];case 2:return[2]}}))}))},e.prototype._getOrCreate=function(e){e||(e=s.UUIDGenerator.secureUpperCaseUUID());var t=this._getSync(e);return t||(t={id:e,name:y().GUEST_USER}),this._add(t),t},e.prototype._assignColorToUsers=function(e){var t=this;Array.isArray(e)&&e.forEach((function(e){e&&!e.color&&(e.color=t._getCurrentColor(e.id))}))},e.prototype._search=function(e){var t;return n(this,void 0,void 0,(function(){var r,n;return a(this,(function(a){switch(a.label){case 0:return(null===(t=(r=this).options)||void 0===t?void 0:t.search)?[4,r.options.search(e)]:[3,2];case 1:return n=a.sent(),r._assignColorToUsers(n),[2,n];case 2:return[2,[]]}}))}))},e.prototype.bind=function(e,t){this._listeners.has(e)||this._listeners.set(e,[]);var r=this._listeners.get(e);Array.isArray(r)&&r.push(t)},e.prototype.current=function(e){var t=this;if(h(e))return t._currentUserId;if(t._currentUserId!==e){var r=t._currentUserId;t._currentUserId=e,Promise.all([t._get(r),t._get(e)]).then((function(n){var a=n[0],i=n[1];a||(a=t._getSync(r))&&a._isDefault&&(t._users=t._users.filter((function(e){return!e._isDefault}))),t._triggerCurrentUserChanged(a,i,r,e)})).catch((function(n){t._triggerCurrentUserChanged(void 0,void 0,r,e)}))}return t._currentUserId},e.prototype._triggerCurrentUserChanged=function(e,t,r,n){e||(e=this._getSync(r)),t||(t=this._getSync(n)),this._trigger(c.CurrentUserChanged,{oldCurrentUser:e,newCurrentUser:t})},e.prototype._getUsers=function(){return f(this._users)},e.prototype.unbind=function(e,t){if(this._listeners.has(e)){var r=this._listeners.get(e);if(!Array.isArray(r))return;t?r.splice(r.indexOf(t),1):r.splice(0)}},e.prototype._trigger=function(e,t){if(this._listeners.has(e)){var r=this._listeners.get(e);if(!Array.isArray(r))return;r.forEach((function(r){r(e,t)}))}},e.prototype._fromJSON=function(e){e&&(this._assignColorToUsers(e),this._users=e||[])},e.prototype._toJSON=function(){return f(this._users)},e.prototype._getCurrentColorIndex=function(){var e,t=this._currentColorIndex,r=(null===(e=this.options)||void 0===e?void 0:e.colorScheme)?this.options.colorScheme.length:p.length;return this._currentColorIndex=(t+1)%r,t},e.prototype._hashString=function(e){var t=0;if(!e||0===e.length)return t;for(var r=0;r<e.length;r++){t=(t<<5)-t+e.charCodeAt(r),t|=0}return Math.abs(t)},e.prototype._getColorIndexForUser=function(e){var t,r=(null===(t=this.options)||void 0===t?void 0:t.colorScheme)?this.options.colorScheme.length:p.length;return this._hashString(e)%r},e.prototype._getCurrentColor=function(e){var t,r=(null===(t=this.options)||void 0===t?void 0:t.colorScheme)||p;return e?r[this._getColorIndexForUser(e)]:r[this._getCurrentColorIndex()]},e.prototype._add=function(e){for(var t=this._users,r=0;r<t.length;r++)if(t[r].id===e.id)return t[r]=e,void(e.color||(e.color=this._getCurrentColor(e.id)));e.color||(e.color=this._getCurrentColor(e.id)),t.push(e)},e.prototype._create=function(e,t){var r={id:e||s.UUIDGenerator.secureUpperCaseUUID(),name:t||y().GUEST_USER};return this._add(r),r},e.prototype._remove=function(e){this._users=this._users.filter((function(t){return t.id!==e}))},e.prototype._dispose=function(){this._listeners.clear(),this._users=[],this._currentUserId=""},e}();t.UserManager=_.instance()},305:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t._ArrayHelper=void 0;function r(e,t){for(var n in t)if(t.hasOwnProperty(n)){var a=t[n];Array.isArray(a)?(e[n]=[],r(e[n],t[n])):null!==a&&"object"==typeof a?(e[n]={},r(e[n],t[n])):e[n]=t[n]}}var n=function(){function e(){}return e._insert=function(e,t,r){e.splice(t,0,r)},e._add=function(e,t){e.push(t)},e._contains=function(e,t){return e.indexOf(t)>-1},e._remove=function(e,t){var r=e.indexOf(t);r>-1&&e.splice(r,1)},e._removeByIndex=function(e,t){return e.slice(0,t).concat(e.slice(t+1))},e._indexOf=function(e,t,r){return e.indexOf(t,r)},e._clear=function(e,t,r){if(!(t<0))for(var n=0;n<r&&t+n<e.length;n++)e[t+n]=null},e._nextNonEmptyIndex=function(e,t){t<0&&(t=-1);for(var r=t+1;r<e.length;r++)if(void 0!==e[r]&&null!==e[r])return r;return-1},e._getLength=function(e){return e&&e.length},e._clone=function(e){var t=[];return r(t,e),t},e}();t._ArrayHelper=n},395:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t._ColorHelper=void 0;var n=r(844)._NumberHelper._toHexString,a=Math.min,i=Math.max,o=Math.abs,s=parseInt;function u(e,t,r){return r<0&&(r+=240),r>240&&(r-=240),r<40?e+((t-e)*r+20)/40:r<120?t:r<160?e+((t-e)*(160-r)+20)/40:e}function l(e,t,r){var n,a,i;if(0===r)n=a=i=s(255*t/240+"",10);else{var o,u;n=c(o=2*t-(u=t<=120?s((t*(240+r)+120)/240+""):t+r-s((t*r+120)/240+"")),u,e+80),a=c(o,u,e),i=c(o,u,e-80)}return{a:255,r:n,g:a,b:i}}function c(e,t,r){return a(s((255*u(e,t,r)+120)/240+""),255)}var m={aliceblue:[240,248,255,255],antiquewhite:[250,235,215,255],aqua:[0,255,255,255],aquamarine:[127,255,212,255],azure:[240,255,255,255],beige:[245,245,220,255],bisque:[255,228,196,255],black:[0,0,0,255],blanchedalmond:[255,235,205,255],blue:[0,0,255,255],blueviolet:[138,43,226,255],brown:[165,42,42,255],burlywood:[222,184,135,255],cadetblue:[95,158,160,255],chartreuse:[127,255,0,255],chocolate:[210,105,30,255],coral:[255,127,80,255],cornflowerblue:[100,149,237,255],cornsilk:[255,248,220,255],crimson:[220,20,60,255],cyan:[0,255,255,255],darkblue:[0,0,139,255],darkcyan:[0,139,139,255],darkgoldenrod:[184,134,11,255],darkgray:[169,169,169,255],darkgreen:[0,100,0,255],darkgrey:[169,169,169,255],darkkhaki:[189,183,107,255],darkmagenta:[139,0,139,255],darkolivegreen:[85,107,47,255],darkorange:[255,140,0,255],darkorchid:[153,50,204,255],darkred:[139,0,0,255],darksalmon:[233,150,122,255],darkseagreen:[143,188,143,255],darkslateblue:[72,61,139,255],darkslategray:[47,79,79,255],darkslategrey:[47,79,79,255],darkturquoise:[0,206,209,255],darkviolet:[148,0,211,255],deeppink:[255,20,147,255],deepskyblue:[0,191,255,255],dimgray:[105,105,105,255],dimgrey:[105,105,105,255],dodgerblue:[30,144,255,255],firebrick:[178,34,34,255],floralwhite:[255,250,240,255],forestgreen:[34,139,34,255],fuchsia:[255,0,255,255],gainsboro:[220,220,220,255],ghostwhite:[248,248,255,255],gold:[255,215,0,255],goldenrod:[218,165,32,255],gray:[128,128,128,255],green:[0,128,0,255],greenyellow:[173,255,47,255],grey:[128,128,128,255],honeydew:[240,255,240,255],hotpink:[255,105,180,255],indianred:[205,92,92,255],indigo:[75,0,130,255],ivory:[255,255,240,255],khaki:[240,230,140,255],lavender:[230,230,250,255],lavenderblush:[255,240,245,255],lawngreen:[124,252,0,255],lemonchiffon:[255,250,205,255],lightblue:[173,216,230,255],lightcoral:[240,128,128,255],lightcyan:[224,255,255,255],lightgoldenrodyellow:[250,250,210,255],lightgray:[211,211,211,255],lightgreen:[144,238,144,255],lightgrey:[211,211,211,255],lightpink:[255,182,193,255],lightsalmon:[255,160,122,255],lightseagreen:[32,178,170,255],lightskyblue:[135,206,250,255],lightslategray:[119,136,153,255],lightslategrey:[119,136,153,255],lightsteelblue:[176,196,222,255],lightyellow:[255,255,224,255],lime:[0,255,0,255],limegreen:[50,205,50,255],linen:[250,240,230,255],magenta:[255,0,255,255],maroon:[128,0,0,255],mediumaquamarine:[102,205,170,255],mediumblue:[0,0,205,255],mediumorchid:[186,85,211,255],mediumpurple:[147,112,219,255],mediumseagreen:[60,179,113,255],mediumslateblue:[123,104,238,255],mediumspringgreen:[0,250,154,255],mediumturquoise:[72,209,204,255],mediumvioletred:[199,21,133,255],midnightblue:[25,25,112,255],mintcream:[245,255,250,255],mistyrose:[255,228,225,255],moccasin:[255,228,181,255],navajowhite:[255,222,173,255],navy:[0,0,128,255],oldlace:[253,245,230,255],olive:[128,128,0,255],olivedrab:[107,142,35,255],orange:[255,165,0,255],orangered:[255,69,0,255],orchid:[218,112,214,255],palegoldenrod:[238,232,170,255],palegreen:[152,251,152,255],paleturquoise:[175,238,238,255],palevioletred:[219,112,147,255],papayawhip:[255,239,213,255],peachpuff:[255,218,185,255],peru:[205,133,63,255],pink:[255,192,203,255],plum:[221,160,221,255],powderblue:[176,224,230,255],purple:[128,0,128,255],rebeccapurple:[102,51,153,255],red:[255,0,0,255],rosybrown:[188,143,143,255],royalblue:[65,105,225,255],saddlebrown:[139,69,19,255],salmon:[250,128,114,255],sandybrown:[244,164,96,255],seagreen:[46,139,87,255],seashell:[255,245,238,255],sienna:[160,82,45,255],silver:[192,192,192,255],skyblue:[135,206,235,255],slateblue:[106,90,205,255],slategray:[112,128,144,255],slategrey:[112,128,144,255],snow:[255,250,250,255],springgreen:[0,255,127,255],steelblue:[70,130,180,255],tan:[210,180,140,255],teal:[0,128,128,255],thistle:[216,191,216,255],tomato:[255,99,71,255],turquoise:[64,224,208,255],violet:[238,130,238,255],wheat:[245,222,179,255],white:[255,255,255,255],whitesmoke:[245,245,245,255],yellow:[255,255,0,255],yellowgreen:[154,205,50,255]},y=function(){function e(e){var t=e.r,r=e.g,n=e.b,o=i(i(t,r),n),u=a(a(t,r),n),l=o+u;this._luminosity=s((240*l+255)/510+"",10);var c=o-u;if(0===c)this._saturation=0,this._hue=160;else{this._luminosity<=120?this._saturation=s((240*c+l/2)/l+"",10):this._saturation=s((240*c+(510-l)/2)/(510-l)+"",10);var m=(40*(o-t)+c/2)/c,y=(40*(o-r)+c/2)/c,h=(40*(o-n)+c/2)/c;this._hue=s(t===o?h-y+"":r===o?80+m-h+"":160+y-m+"",10),this._hue<0&&(this._hue+=240),this._hue>240&&(this._hue-=240)}}return e.prototype._getLighterColor=function(e){var t=this._luminosity,r=this._newLuma(this._luminosity,500,!0);return l(this._hue,t+(r-t)*e,this._saturation)},e.prototype._newLuma=function(e,t,r){return 0===t?e:r?t>0?(e*(1e3-t)+241*t)/1e3:e*(t+1e3)/1e3:((e+=240*t/1e3)<0&&(e=0),e>240&&(e=240),e)},e}(),h=/rgba?\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})(?:,\s*(\.\d+|\d(?:\.\d+)?))?\)/;function f(e){if(/^#[A-Fa-f0-9]+$/.test(e)){var t=e.replace(/^#/,""),r=t.length,n="",a="";if(6===r||8===r)n=t.substr(0,6),8===r&&(a=t.substr(6,2));else if(3===r||4===r){var i=t.split(3===r?/(.)/:/(..)/);n=i.filter(Boolean).map((function(e){return parseInt(3===r?e+e:e,16)})).map((function(e){return e.toString(16).padStart(2,"0")})).join(""),4===r&&(a=i[3]+i[3])}return[parseInt(n.slice(0,2),16),parseInt(n.slice(2,4),16),parseInt(n.slice(4,6),16),s=a?parseInt(a,16):255]}if(e.toLowerCase()in m)return m[e.toLowerCase()];var o=h.exec(e);if(null!==o){var s=void 0===o[4]?255:255*+o[4];return[o[1],o[2],o[3],s]}return null}var d=function(){function e(){}return e._toString=function(e){var t=e.a,r=e.r,a=e.g,i=e.b;return 3===arguments.length&&(t=255,r=arguments[0],a=arguments[1],i=arguments[2]),4===arguments.length&&(t=arguments[0],r=arguments[1],a=arguments[2],i=arguments[3]),255===t?"#"+n(r,!0,2)+n(a,!0,2)+n(i,!0,2):"rgba("+r+","+a+","+i+","+t+")"},e._equal=function(e,t){return e.stops||e.type?JSON.stringify(e)===JSON.stringify(t):e.a===t.a&&e.r===t.r&&e.g===t.g&&e.b===t.b},e._getBrightness=function(e){return(299*e.r+587*e.g+114*e.b)/1e3},e._isTwoColorSimilar=function(e,t){var r=255-o(e.r-t.r),n=255-o(e.g-t.g),a=255-o(e.b-t.b),i=o(e.a-t.a);return!!(((r/=255)+(n/=255)+(a/=255))/3>=.9&&i<=.05)},e._invertColor=function(t){var r=255^t.r,n=255^t.g,a=255^t.b;return e._toString(t.a,r,n,a)},e._stringToARGB=function(t){if("object"!=typeof document)return f(t);var n=e._ctx;if(n||(i=document.createElement("canvas"))&&i.getContext&&(n=e._ctx=i.getContext("2d",{willReadFrequently:!0})),!n){var a=r(736);if(a&&a.createCanvas){var i=a.createCanvas(2,2);n=e._ctx=i.getContext("2d")}if(!n)return f(t)}n.clearRect(1,1,1,1),n.fillStyle=t,n.fillRect(1,1,1,1);var o=n.getImageData(1,1,1,1);return o?o.data:null},e._fromString=function(t){if(t instanceof e)return t;if(null!==t&&"object"==typeof t)return t;var r=0,n=0,a=0,i=0;if(t){var o=e._stringToARGB(t);o&&(n=o[0],a=o[1],i=o[2],r=o[3])}return{a:r,r:n,g:a,b:i}},e._applyTint=function(t,r){if(0===r)return t;var n=new y(t),a=s((r>0?(240-n._luminosity)*r:n._luminosity*r)+"",10);return e._fromHLS(n._hue,n._luminosity+a,n._saturation)},e._getLighterColor=function(t,r){var n=e._fromString(t),a=new y(n)._getLighterColor(r);return e._toString(a)},e._hueToRGB=u,e._fromHLS=l,e}();t._ColorHelper=d},818:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t._isInstanceOf=t._hasOwnProperty=t._deleteElementsForMap=t._deleteElements=t._addElementsForMap=t._addElements=t.ResourceManager=t.SR=void 0;var n=r(286),a=r(612),i=r(534);t.SR={en:a};var o=i._Types._extend,s=function(){function e(e,t){this.res=e,this._moduleName=t,this._resourcesMap=n.CultureManager._resourcesMap,this.cachedResource=this._getResourceCollection(e,!0),this._buildResourcesMap(this.cachedResource,t),this._cultureVersion=0}return e.prototype.getResource=function(){var e=this._getResourceCollection(this.res,!this.cachedResource);return e&&(this.cachedResource=e),this._buildResourcesMap(this.cachedResource,this._moduleName),this.cachedResource},e.prototype._buildResourcesMap=function(e,t){if(t){var r=n.CultureManager.culture().toLowerCase();this._resourcesMap[r]=this._resourcesMap[r]||{},this._resourcesMap[r][t]=e,n.CultureManager._resourcesMap=this._resourcesMap}},e.prototype._getResourceCollection=function(e,t){var r=n.CultureManager.culture();if(e&&r){var a=n.CultureManager._cultureVersion;if(this._cultureVersion===a&&!t)return;if(this._cultureVersion=a,n.CultureManager.getLanguage(r)){var i=o(!0,{},e.en);return n.CultureManager._languageTranslate(r,i,this._moduleName),i}var s=r.substr(0,2).toLowerCase();return e.hasOwnProperty(s)?e[s]:e.en}return{}},e}();t.ResourceManager=s,t._addElements=function(e,t,r,n){if(e&&0<=r&&r<t){var a,i=[],o=void 0;for(o=r;o<t;o++)void 0!==e[o]&&i.push(o);for(a=i.length,o=0;o<a;o++){var s=i[a-o-1],u=e[s];e[s]=null,e[Math.floor(s)+n]=u}}},t._addElementsForMap=function(e,t,r,n){if(e&&0<=t){for(var a,i=[],o=void 0,s=0,u=Array.from(e.keys());s<u.length;s++){(l=u[s])>=t&&i.push(l)}for(i.sort((function(e,t){return e-t})),a=i.length,o=0;o<a;o++){var l=i[a-o-1],c=e.get(l);e.delete(l);var m=l+r;e.set(m,c),n&&n(c,m)}}},t._deleteElements=function(e,t,r,n){if(e&&0<=r&&r<t){var a,i=[],o=r+n,s=void 0;for(s=r;s<t;s++)void 0!==e[s]&&(r<=s&&s<o?e[s]=null:s>=o&&i.push(s));for(a=i.length,s=0;s<a;s++){var u=i[s],l=e[u];e[u]=null,e[Math.floor(u)-n]=l}}},t._deleteElementsForMap=function(e,t,r,n){if(e&&0<=t){for(var a,i=[],o=t+r,s=void 0,u=0,l=Array.from(e.keys());u<l.length;u++){var c=l[u];e.has(c)&&(t<=c&&c<o?(n&&n(e.get(c),-1),e.delete(c)):c>=o&&i.push(c))}for(i.sort((function(e,t){return e-t})),a=i.length,s=0;s<a;s++){c=i[s];var m=e.get(c);e.delete(c);var y=c-r;e.set(y,m),n&&n(m,y)}}},t._hasOwnProperty=function(e,t){return e.hasOwnProperty(t)},t._isInstanceOf=function(e,t){return e instanceof t}},97:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t._DateTimeHelper=t.getSR=void 0;var n=r(818),a=r(480),i=r(305),o=r(286),s=r(534)._Types._isNullOrUndefined,u=a._StringHelper._padZeroLeft,l=parseInt,c=!1,m=Math.floor,y=Math.abs,h=new n.ResourceManager(n.SR,"Common");t.getSR=h.getResource.bind(h);var f={};function d(e,r,a,i){var s=a.DateTimeFormat,l=s.Calendar.convert;if(!r||!r.length)return a&&a.name.length?l?d(e,s.fullDateTimePattern,a):e.toLocaleString():e.toString();var c,h,f,_=s.eras,g="",M=/([^d]|^)(d|dd)([^d]|$)/g;function v(){return h||f||(h=M.test(r),f=!0),h}var b,F=0,S=/\/|dddd|ddd|dd|d|MMMM|MMM|MM|M|yyyy|yyy|yy|y|hh|h|HH|H|mm|m|ss|s|tt|t|fff|ff|f|000|00|0|zzz|zz|z|ggg|gg|g|ee|e|\[H+\]|\[h+\]|\[m+\]|\[s+\]/g;function D(e,t){return b?b[t]:function(e,t){if(n.HandleExcelSpecialDate)return n.HandleExcelSpecialDate.call(null,e,t);switch(t){case 0:return e.getFullYear();case 1:return e.getMonth();case 2:return e.getDate();default:return}}(e,t)}"s"!==r&&l&&(b=l.fromGregorian(e));for(var x=-2,C=-2,T={_value:""},N=0;;N++){var H=S.lastIndex,E=S.exec(r),P=r.slice(H,E?E.index:r.length);if(T._value="",F+=p(P,T),g+=T._value,!E)break;if(F%2!=1){var O=D(e,0),w=e.getDay(),k=e.getHours(),I=e.getMinutes(),A=e.getSeconds(),$=e.getMilliseconds(),R=e.getTimezoneOffset();switch(E[0]){case"dddd":g+=s.dayNames[w];break;case"ddd":g+=s.abbreviatedDayNames[w];break;case"dd":h=!0,g+=u(D(e,2),2);break;case"d":h=!0,g+=D(e,2);break;case"MMMM":g+=s.monthGenitiveNames&&v()?s.monthGenitiveNames[D(e,1)]:s.monthNames[D(e,1)];break;case"MMM":g+=s.abbreviatedMonthGenitiveNames&&v()?s.abbreviatedMonthGenitiveNames[D(e,1)]:s.abbreviatedMonthNames[D(e,1)];break;case"MM":g+=u(D(e,1)+1,2);break;case"M":g+=D(e,1)+1;break;case"yyyy":case"yyy":g+=x>=0?o._EraHelper._formatEraPart("ee",e,i):u(b?b[0]:O,4);break;case"yy":g+=x>=0?o._EraHelper._formatEraPart("ee",e,i):u((b?b[0]:O)%100,2);break;case"y":g+=x>=0?o._EraHelper._formatEraPart("e",e,i):""+(b?b[0]:O)%100;break;case"hh":0==(c=k%12)&&(c=12),g+=u(c,2);break;case"h":0==(c=k%12)&&(c=12),g+=c;break;case"HH":g+=u(k,2);break;case"H":g+=k.toString();break;case"mm":g+=u(I,2);break;case"m":g+=I.toString();break;case"ss":g+=u(A,2);break;case"s":g+=A.toString();break;case"tt":g+=k<12?s.amDesignator:s.pmDesignator;break;case"t":g+=(k<12?s.amDesignator:s.pmDesignator).charAt(0);break;case"f":case"0":g+=u($,3).charAt(0);break;case"ff":case"00":g+=u($,3).substr(0,2);break;case"fff":case"000":g+=u($,3);break;case"z":g+=((c=R/60)<=0?"+":"-")+m(y(c));break;case"zz":g+=((c=R/60)<=0?"+":"-")+u(m(y(c)),2);break;case"zzz":g+=((c=R/60)<=0?"+":"-")+u(m(y(c)),2)+":"+u(y(R%60),2);break;case"g":case"gg":case"ggg":if(!_)break;if(x===N-1){x=N;break}g+=o._EraHelper._formatEraPart(E[0],e,i),x=N;break;case"e":case"ee":if(!_){g+=u(b?b[0]:O,4);break}if(C===N-1){C=N;break}g+=o._EraHelper._formatEraPart(E[0],e,i),C=N;break;case"/":g+=s.dateSeparator;break;default:if(!/\[(H+|h+|m+|s+)\]/.test(E[0]))throw Error((0,t.getSR)().Exp_InvalidDateFormat);g+=E[0]}}else g+=E[0]}return g.toString()}function p(e,t){for(var r=0,n=c,a=0,i=e.length;a<i;a++){var o=e.charAt(a);switch(o){case'"':n?t._value+="'":r++,n=c;break;case"\\":n&&(t._value+="\\"),n=!n;break;default:t._value+=o,n=c}}return r}function _(e,t){var r=new Date;if(e.DateTimeFormat.eras&&t<100){var n=o._EraHelper._getEraDate(r)._eraYear;(t+=n-n%100)>e.DateTimeFormat.Calendar.TwoDigitYearMax&&(t-=100)}return t}function g(e){var t=e.getTimezoneOffset();return-485===t&&(t=-485-43/60),-321===t&&(t=-321-10/60),-507===t&&(t=-507-52/60),-402===t&&(t=-402-4/60),t}var M=function(){function e(){}return e._customCultureFormat=function(e,t,r,n){return r||(r=o.CultureManager._getCultureInfo()),d(e,t,r,n)},e._localeFormat=function(e,t,r){return d(e,t,r||o.CultureManager._getCultureInfo())},e._parseDate=function(t,r,n){var a,i,o,s,u,l=c;for((u=n).slice(1).forEach((function(e){e&&(l=!0)})),l||(u=u.concat(r._getDateTimePattern())),i=u.length,a=1;a<i;a++)if((s=u[a])&&(l=!0,o=e._parseExact(t,s,r)))return o;return null},e._parseLocale=function(t,r,n){var a,i;return r||n||void 0===(i=f[t])?(a=r?[t,r]:[t],i=e._parseDate(t,n||o.CultureManager._getCultureInfo(),a),r||n||(f[t]=i),i?new Date(i):i):i?new Date(i):i},e._parseInvariant=function(t,r){return e._parseDate(t,o.CultureManager._getCultureInfo("invariant"),[t,r])},e._parseExact=function(e,r,n){e=e.trim();var s=n.DateTimeFormat,u=1041===n.id,m=function(e,r,n){if(e._parseRegExp){if(e._parseRegExp[r])return e._parseRegExp[r]}else e._parseRegExp={};var a=r;a=(a=a.replace("%M","M")).replace(/([\^\$\.\*\+\?\|\[\]\(\)\{\}])/g,"\\\\$1");for(var o,s="^",u={_value:""},l=[],c=0,m=0,y=/\/|dddd|ddd|dd|d|MMMM|MMM|MM|M|yyyy|yyy|yy|y|hh|h|HH|H|mm|m|ss|s|tt|t|fff|ff|f|000|00|0|zzz|zz|z|ggg|gg|g|ee|e|\[H+\]|\[h+\]|\[m+\]|\[s+\]/g;null!==(o=y.exec(a));){u._value="";var h=a.slice(c,o.index);if(c=y.lastIndex,m+=p(h,u),s+=u._value,m%2!=1){switch(o[0]){case"dddd":case"ddd":case"MMMM":case"MMM":case"gggg":case"ggg":case"gg":case"g":s+="(\\D+)";break;case"tt":case"t":s+="(\\D*)";break;case"dd":case"d":case"MM":case"M":case"yy":case"y":case"HH":case"H":case"hh":case"h":case"mm":case"m":case"ss":case"s":s+="(\\d\\d?\\d?)";break;case"eee":case"ee":case"e":s+=n?"(\\u5143|\\d\\d?)":"(\\d\\d?)";break;case"yyy":case"yyyy":s+="(\\d{2}|\\d{4})";break;case"fff":case"000":s+="(\\d{3})";break;case"ff":case"00":s+="(\\d{2})";break;case"f":case"0":s+="(\\d)";break;case"zzz":s+="([+-]?\\d\\d?:\\d{2})";break;case"zz":case"z":s+="([+-]?\\d\\d?)";break;case"/":s+="/"===e.dateSeparator?"(\\/)":"([\\/\\"+e.dateSeparator+"])";break;default:throw Error((0,t.getSR)().Exp_InvalidDateFormat)}i._ArrayHelper._add(l,o[0])}else s+=o[0]}u._value="",p(a.slice(c),u),s+=u._value;var f=(s+="$").toString().replace(/\s+/g,"\\s+"),d={_regExp:f,_groups:l,_exp:RegExp(f)};return e._parseRegExp[r]=d,d}(s,r,u),y=m._exp.exec(e);if(null===y)return null;for(var h,f=m._groups,d=null,g=null,M=null,v=null,b=null,F=0,S=0,D=0,x=0,C=null,T=c,N=c,H=0,E=f.length;H<E;H++){var P=y[H+1];if(P)switch(f[H]){case"dd":case"d":if((v=l(P,10))<1||v>31)return null;break;case"MMMM":if((M=n._getMonthIndex(P))<0||M>11)return null;break;case"MMM":if((M=n._getAbbrMonthIndex(P))<0||M>11)return null;break;case"M":case"MM":case"%M":if((M=l(P,10)-1)<0||M>11)return null;break;case"e":case"ee":if((g=u&&"元"===P?1:_(n,l(P,10)))<0||g>9999)return null;break;case"y":case"yy":case"yyy":case"yyyy":if((g=l(P,10))<0||g>9999)return null;break;case"h":case"hh":case"H":case"HH":if((F=l(P,10))<0)return null;break;case"m":case"mm":if((S=l(P,10))<0||S>59)return null;break;case"s":case"ss":if((D=l(P,10))<0||D>59)return null;break;case"tt":case"t":var O=P.toUpperCase();if(T=O===s.pmDesignator.toUpperCase(),N=O===s.amDesignator.toUpperCase(),!T&&!N)return null;break;case"f":case"0":if((x=100*l(P,10))<0||x>999)return null;break;case"ff":case"00":if((x=10*l(P,10))<0||x>999)return null;break;case"fff":case"000":if((x=l(P,10))<0||x>999)return null;break;case"dddd":if((b=n._getDayIndex(P))<0||b>6)return null;break;case"ddd":if((b=n._getAbbrDayIndex(P))<0||b>6)return null;break;case"zzz":var w=P.split(/:/);if(2!==w.length)return null;if((h=l(w[0],10))<-12||h>13)return null;var k=l(w[1],10);if(k<0||k>59)return null;C=60*h+(a._StringHelper._startsWith(P,"-")?-k:k);break;case"z":case"zz":if((h=l(P,10))<-12||h>13)return null;C=60*h;break;case"g":case"gg":case"ggg":var I=P;if(!I||!s.eras)return null;if((d=o._EraHelper._parseEraPart(f[H],I))<0)return null}}var A,$=/^(\d|\d\d|\d\d\d):/.test(e),R=$?new Date(1899,11,30):new Date,U=s.Calendar.convert;if(U&&(A=U.fromGregorian(R)),U||(A=[R.getFullYear(),R.getMonth(),R.getDate()]),null===g?g=A[0]:g<100&&(s.eras&&null!==d?g=o._EraHelper._getYearFromEra(d||0,g):g+=g>=30?1900:2e3),null===M&&(M=A[1]),null===v&&(v=$?A[2]:1),U){if(null===(R=U.toGregorian(g,M,v)))return null}else{if(R.setFullYear(g,M,v),R.getDate()!==v)return null;if(null!==b&&R.getDay()!==b)return null}if(T&&F<12?F+=12:N&&12===F&&(F=0),R.setHours(F,S,D,x),null!==C){var B=R.getMinutes()-(C+R.getTimezoneOffset());R.setHours(R.getHours()+B/60,B%60)}return R},e._fromOADate=function(e){var t=g(new Date(864e5*(e-25569))),r=Math.round(864e5*(e-25569+t/1440)),n=new Date(r),a=t>=0?1:-1,i=g(new Date(r+36e5*a));if(y(t-i)>=60){var o=new Date(r+60*(i-t)*1e3);if(t>i){if(-1===a||i===g(n))return o}else if(t<i&&(1===a||i===g(n)))return o}return n},e._fromOADateString=function(t){if("/OADate("===t.substr(0,8)){var r=parseFloat(t.substr(8,t.length-10));return e._fromOADate(r)}},e._toOADateString=function(t){return"/OADate("+e._toOADate(t)+")/"},e._toOADate=function(e){if(s(e))return 0;if("number"!=typeof e&&"string"!=typeof e||(e=new Date(e)),e instanceof Date){var t=g(e);return(1440*e.getTime()+3181192704e6-864e5*t)/124416e6}return 0},e._DT=function(r){var n=null,a=!0;if(s(r))n=e._fromOADate(0);else if(r instanceof Date)n=new Date(r.valueOf());else if("string"==typeof r){var i=e._parseLocale(r);if(!i)if(isNaN(r))if(e._isInvalidDateString(r))a=c;else{isNaN((i=new Date(r)).valueOf())&&(a=c);var o=/^[-+=\s]*(\d+)\W+(\d+)\W+(\d+)$/.exec(r.replace(/ |\n/g,"").trim());o&&4===o.length&&(-1!==o.indexOf(i.getFullYear().toString())&&-1!==o.indexOf(""+(i.getMonth()+1))&&-1!==o.indexOf(i.getDate().toString())||(a=c))}else(i=e._fromOADate(parseFloat(r)))||(a=c);n=i}else"number"==typeof r?n=e._fromOADate(r):a=c;if(a)return n;throw(0,t.getSR)().Exp_InvalidCast},e._isInvalidDateString=function(t){var r,n,a=o.CultureManager._getCultureInfo().DateTimeFormat,i=e._invalidCharInDateStr,s=function(e,t){var r=0;return t.forEach((function(t){t&&e.indexOf(t)>-1&&r++})),r>1};return s(t,a.monthNames)||s(t,a.abbreviatedMonthNames)||s(t,a.dayNames)||s(t,a.abbreviatedDayNames)||function(e,t){if(e&&e.indexOf(" ")>-1){var r=e.split(" "),n=r.length;return n>=2&&t.indexOf(r[n-2])<=-1&&!isNaN(r[n-1])}return!1}(t,a.monthNames.concat(a.abbreviatedMonthNames))||(r=t,n=!1,i.forEach((function(e){r.indexOf(e)>-1&&(n=!0)})),n)},e._isDate=function(e){return e&&(e.constructor===Date||e.getUTCDate&&e.setFullYear)},e._invalidCharInDateStr=["@","#","!","`","^","$","*","(",")","&"],e}();t._DateTimeHelper=M},646:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t._growth=t._trend=void 0;var n=r(844),a=isNaN,i="rowCount",o="colCount";function s(e){return e}function u(e,t,r,s,u,l,c,m,y,h,f){var d,p,_,g,M,v,b,F,S,D,x,C,T,N,H,E,P=r[i],O=r[o],w=t[i],k=t[o],I=s[i],A=s[o],$=1===O,R=1===k;if(w===P&&k===O){var U=0,B=0,L=0,j=0;for(b=P*O,d=0;d<P;d++)for(p=0;p<O;p++){if(g=l(r[d][p]),M=l(t[d][p]),e&&(a(g)||a(M)))return y;U+=g,B+=g*g,L+=M=h(M),j+=g*M}var G=b*j-U*L;F=u?(L*B-U*j)/(b*B-U*U):0;var Y=(v=u?G/(b*B-U*U):j/B).toString();for((Y.indexOf("000000000000")>1||Y.indexOf("999999999999")>1)&&(v=n._NumberHelper._fixNumber(v,12),F=n._NumberHelper._fixNumber(F,12)),S=[],d=0;d<I;d++)for(S[d]=[],p=0;p<A;p++){if(g=l(s[d][p]),e&&a(g))return y;S[d][p]=0===G?t[0][0]:f(n._NumberHelper._safeAdd(v*g,F))}return c?new c(S):S}if(R&&w===P||1===w&&k===O){for(g=[],M=[],H=O+1,E=O+2,d=0;d<P;d++){if(F=l(x=R?t[d][0]:t[0][d]),e&&a(F))return y;M[d]=$?h(F):F}for(d=0;d<P;d++)for(g[d]=[],p=0;p<O;p++){if(F=l(r[d][p]),e&&a(F))return y;g[d][p]=F}var z=[];for(v=0;v<H;v++)for(z[v]=[],b=0;b<E;b++)z[v][b]=0;for(_=0;_<P;_++)for(z[0][H]+=M[_],d=0;d<O;d++)for(x=d+1,z[0][x]+=g[_][d],z[x][0]=z[0][x],z[x][H]+=g[_][d]*M[_],p=d;p<O;p++)z[T=p+1][x]+=g[_][d]*g[_][p],z[x][T]=z[T][x];z[0][0]=P;var K=u?0:1;for(D=K;D<H;D++){if(e){if(0===z[D][D]){for(N=!1,p=D+1;!N&&p<H;p++)if(0!==z[p][D]){for(_=0;_<E;_++)T=z[D][_],z[D][_]=z[p][_],z[p][_]=T;N=!0}if(!N)return m}}else{for(d=D;d<H&&0===z[d][D];)d++;if(d>=H)return m;for(C=K;C<E;C++)x=z[D][C],z[D][C]=z[d][C],z[d][C]=x}for(x=1/z[D][D],C=K;C<E;C++)z[D][C]*=x;for(d=K;d<H;d++)if(d!==D)for(x=-z[d][D],C=0;C<E;C++)z[d][C]+=x*z[D][C];u||(z[0][H]=0)}for(S=[],R||(S[0]=[]),d=0;d<I;d++){for(R&&(S[d]=[]),x=z[0][H],p=0;p<O;p++){if(F=l(R?s[d][p]:s[p][d]),e&&a(F))return y;x+=z[p+1][H]*F}R?S[d][0]=f(x):S[0][d]=f(x)}return c?new c(S):S}return m}t._trend=function(e,t,r,n,a,i,o,l){return u(!0,e,t,r,n,a,i,l,o,s,s)},t._growth=function(e,t,r,n,a,l,c){var m,y;for(m=0;m<e[i];m++)for(y=0;y<e[o];y++)if(e[m][y]<=0)return l;return u(!1,e,t,r,n,s,a,c,null,Math.log,Math.exp)}},844:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t._NumberHelper=void 0;var n=r(818),a=r(534),i=r(576),o=r(480),s=r(286),u=a._Types._isNullOrUndefined,l=o._StringHelper._padZeroLeft,c=o._StringHelper._padZeroRight,m=null,y=void 0,h=parseInt,f=parseFloat,d=!1,p=!0,_=Math.floor,g=Math.abs,M=Math.pow,v=Math.min,b=Number.MAX_VALUE,F=function(e,t,r){return e.substr(t,r)},S=function(e){return i._RegexHelper._getReg(e)},D=new n.ResourceManager(n.SR),x=D.getResource.bind(D),C="##################0",T="################",N={1:"+",0:"","-1":"-"},H=["0","#","?"],E={"¤":"¤",Br:"Br",Fdj:"Fdj",Nfk:"Nfk",R:"R",$:"$",FCFA:"FCFA","GH₵":"GH₵",ብር:"ብር","ر.س.‏":"ر.س.‏",XDR:"XDR","د.إ.‏":"د.إ.‏","د.ب.‏":"د.ب.‏","د.ج.‏":"د.ج.‏","ج.م.‏":"ج.م.‏","₪":"₪","د.ع.‏":"د.ع.‏","د.ا.‏":"د.ا.‏","ف.ج.ق.‏":"ف.ج.ق.‏","د.ك.‏":"د.ك.‏","ل.ل.‏":"ل.ل.‏","د.ل.‏":"د.ل.‏","د.م.‏":"د.م.‏","أ.م.‏":"أ.م.‏","ر.ع.‏":"ر.ع.‏","ر.ق.‏":"ر.ق.‏","ج.س.":"ج.س.",S:"S","£":"£","ل.س.‏":"ل.س.‏","د.ت.‏":"د.ت.‏","ر.ي.‏":"ر.ي.‏","₹":"₹",TSh:"TSh","€":"€","₼":"₼","₽":"₽",K:"K","лв.":"лв.","₦":"₦",CFA:"CFA","৳":"৳","¥":"¥",KM:"KM",КМ:"КМ",USh:"USh",Kč:"Kč","kr.":"kr.",Ksh:"Ksh",CHF:"CHF","ރ.":"ރ.","Nu.":"Nu.",EC$:"EC$",P:"P",US$:"US$",D:"D",Rp:"Rp",Ar:"Ar",MOP$:"MOP$",Rs:"Rs",MK:"MK",RM:"RM","₱":"₱",RF:"RF",SR:"SR",SDG:"SDG",Le:"Le","NAf.":"NAf.",E:"E",T$:"T$",VT:"VT",WS$:"WS$",Bs:"Bs","₡":"₡",Q:"Q",L:"L",C$:"C$","B/.":"B/.","S/.":"S/.","₲":"₲","Bs.":"Bs.",ريال:"ريال",FG:"FG",UM:"UM",kr:"kr",FBu:"FBu",FC:"FC",DA:"DA",G:"G",CF:"CF",DH:"DH",FCFP:"FCFP",LS:"LS",DT:"DT",kn:"kn",HUF:"HUF","֏":"֏",ISK:"ISK","₾":"₾","​":"​","₸":"₸","៛":"៛","₩":"₩",сом:"сом",Kz:"Kz","₭":"₭",MTn:"MTn",ден:"ден","₮":"₮",रु:"रु","Afl.":"Afl.","ߖߕ.":"ߖߕ.","руб.":"руб.",zł:"zł","؋":"؋",R$:"R$",Db:"Db",RON:"RON","₴":"₴",MAD:"MAD","රු.":"රු.",Lekë:"Lekë",den:"den",RSD:"RSD","дин.":"дин.","ܠ.ܣ.‏":"ܠ.ܣ.‏","Rs.":"Rs.",смн:"смн","฿":"฿","m.":"m.","₺":"₺",ⴷⵔ:"ⴷⵔ",soʻm:"soʻm",сўм:"сўм","₫":"₫",HK$:"HK$",MOP:"MOP",NT$:"NT$"};function P(e,t,r,n){return t&&0!==t.length&&"i"!==t?function(e,t,r,n){return B(e,k(t),r,n)}(e,t,r.NumberFormat,n):r&&r.name.length>0?e.toLocaleString():e.toString()}function O(e,t){for(var r=_(g(e)),n={_integer:1,_decimal:0};r>=10&&Number.isFinite(r);)r/=10,n._integer++;var a,i=e.toString(),o=i.search(/e/gi),s=i.indexOf(t);if(-1!==o){var u=F(i,0,o),l=F(i,o+1),c=0;-1!==s&&(c=F(u,s+1).length),(a=c-f(l))<0&&(a=0),n._decimal=a}else a=0,-1!==s&&(a=F(i,s+1).length),n._decimal=a;return n}function w(e){for(var t={_symbol:e.charAt(0),_sign:0,_exp:0},r="",n=1;n<e.length;n++)if("+"===(r=e.charAt(n)))t._sign=1;else{if("-"!==r){if("0"===r){t._exp=e.length-n;break}throw Error(x().Exp_InvalidExponentFormat)}t._sign=-1}return t}function k(e){for(var t,r={_intPart:m,_decPart:m,_group:d,_scale:0,_percent:0,_permille:0,_exponent:m},n="",a=d,i=d,o=d,s=d,u=d,l=d,c=m,y=[],h=0;h<e.length;h++){if(t=e.charAt(h),a)n+=t,'"'===t&&(y.push(n),n="",a=d);else if(i){if("E"===c||"e"===c){if(!(["+","-","0"].indexOf(t)>=0)){i=d,h--;continue}n+=t}else if("+"===c||"-"===c){if("0"!==t){i=d,h--;continue}n+=t}else if("0"===c){if("0"!==t){i=d,u||(u=p,r._exponent=w(n)),h--;continue}n+=t}}else if("*"!==c&&"_"!==c&&"\\"!==c||""===n)if("*"===t||"_"===t||"\\"===t)l=d,""!==n&&(y.push(n),n=""),n+=t;else if("'"===t)l=d,""!==n&&(y.push(n),n=""),y.push(t);else if('"'===t)l=d,a=p,""!==n&&(y.push(n),n=""),n+=t;else if(H.indexOf(t)>=0)l=p,H.indexOf(c)<0&&""!==n&&(y.push(n),n=""),n+=t;else if("."!==t||o)if("%"===t)l=d,r._percent++,""!==n&&(y.push(n),n=""),y.push(t);else if("‰"===t)l=d,r._permille++,""!==n&&(y.push(n),n=""),y.push(t);else if(","===t)if(l){var f=void 0;""!==n&&(y.push(n),n="");for(var _=p,g="",M=h+1;M<e.length;M++)if(f=e.charAt(M),'"'!==g)if("\\"!==g&&"_"!==g){if(H.indexOf(f)>=0){_=d;break}if("."===f||";"===f)break;g=f}else g="";else'"'===f&&(g="");_?r._scale++:o||(f=e.charAt(h+1))&&H.indexOf(f)>=0&&(s=p)}else n+=t;else"E"===t||"e"===t?(l=d,i=p,""!==n&&(y.push(n),n=""),n+=t):(l=d,H.indexOf(c)>=0&&""!==n&&(y.push(n),n=""),n+=t);else""!==n&&(y.push(n),n=""),r._intPart=y,y=[],o=p,l=d;else n+=t,y.push(n),n="";c=t}return""!==n&&(i&&!u&&(r._exponent=w(n)),y.push(n)),s&&(r._group=p),o?r._decPart=y:r._intPart=y,r}function I(e,t,r,n,a,i){var o=function(e,t){if(t=+t,isNaN(e=+e)||t%1!=0)return NaN;var r=e<0;if(e=r?-e:e,typeof t===y||0===t)return e=Math.round(e),r?-e:e;var n=e.toString().split("e");return e=Math.round(+(n[0]+"e"+(n[1]?+n[1]-t:-t))),+((n=(e=r?-e:e).toString().split("e"))[0]+"e"+(n[1]?+n[1]+t:t))}(e,-t);isFinite(o)||(o=e);var s,u,m=(e=o).toString(),f=m.split(/e/i);return m=f[0],u=f.length>1?h(f[1],10):0,f=m.split("."),m=f[0],s=f.length>1?f[1]:"",u>0?(m+=(s=c(s,u)).slice(0,u),s=F(s,u)):u<0&&(u=-u,s=(m=e<0?i+l(m.replace(i,""),u+1):l(m,u+1)).slice(-u,m.length)+s,m=m.slice(0,-u)),m+(t>0?a+(s=s.length>t?s.slice(0,t):c(s,t)):"")}function A(e){var t=m;if(e){t="";for(var r=0;r<e.length;r++){var n=e[r];/^(0|#|\?)+/g.test(n)&&(t+=n)}}return t}var $=Math.pow(2,48);function R(e,t){return e===t||0!==e&&0!==t&&(g(e-t)<g(e)/$||(e=Y(e,15),t=Y(t,15),g(e-t)<g(e)/$))}function U(e,t,r,n,a,i,o,s){var u=s.numberGroupSizes,c=s.numberGroupSeparator,m=s.negativeSign,y=s.percentSymbol,h=s.perMilleSymbol,f=n._exponent,_=F(t,0,1);_===m&&(t=F(t,1));var g=1===t.length&&"0"===t?0:t.length;t=0===g?"":t;for(var M=0,v="",b=e.length-1;b>=0;b--){var S="",D=e[b];if(/^(0|#|\?)+/g.test(D)){if(v!==r){for(var C=D.length,T=g-M-1;T>=0&&C>0;T--){S=t.charAt(T)+S,C--,M++}for(var H=C-1;H>=0;H--){var P=D[H];M++,"0"===P?S=P+S:"?"===P&&(""!==S&&(i.push({type:"number",value:S}),S=""),i.push({type:"numberPlaceholder",value:P}))}(v=D+v)===r&&M<g&&(S=t.substr(0,g-M)+S),""!==S&&i.push({type:"number",value:S})}}else if(n._exponent&&!o.replaceExponent&&/^((E(\+|-)?|e(\+|-)?)\d+)/g.test(D)){o.replaceExponent=p;var O="";O+=f._symbol,O+=N[f._sign],O+=l(a.toString(),f._exp),i.push({type:"exponent",value:O})}else"_"===D[0]?i.push({type:"placeholder",value:D[1]}):"*"===D[0]?o.hasInfilling||(i.push({type:"fillingChar",value:D[1]}),o.hasInfilling=!0,o.infillIndex=i.length-1):"\\"===D[0]?2===D.length&&i.push({type:"text",value:D[1]}):'"'===D[0]&&'"'===D[D.length-1]?D.length>2&&i.push({type:"text",value:D.substr(1,D.length-2)}):D===y?i.push({type:"percent",value:D}):D===h?i.push({type:"permille",value:D}):E[D]?i.push({type:"currency",value:D}):i.push({type:"text",value:D})}_===m&&r&&i.push({type:"text",value:_}),n._group===p&&function(e,t,r,n){for(var a=t[0],i=1,o=0,s=d,u=e.length,l=0;l<u;l++){var c=e[l].type;if("number"===c){for(var m="",y=e[l].value,h=y.length-1;h>=0;){if(!(1<=a&&a<=9||0===a&&i===t.length))throw Error(x().Exp_InvalidNumberGroupSize);/\d/gi.test(y[h])?(s&&(m&&e.push({type:"number",value:m}),e.push({type:"groupSeparator",value:r}),m="",s=d),o++):o=0,m=y[h]+m,o===a&&a>0&&(s=p,o=0,i<t.length&&(a=t[i],i++)),h--}m&&e.push({type:c,value:m})}else"fillingChar"===c&&(n.infillIndex=e.length-u),e.push({type:c,value:e[l].value})}e.splice(0,u)}(i,u,c,o),i.reverse(),o.infillIndex=i.length-1-o.infillIndex}function B(e,t,r,n){var a=[];e=function(e,t,r,n){var a=e;return t>0&&(a=Y(a*M(100,t),15)),r>0&&(a=Y(a*M(1e3,r),15)),n>0&&(a=Y(a/M(1e3,n),15)),a}(e,t._percent,t._permille,t._scale);var i=t._intPart,o=t._decPart;if(!i&&!o)return a;var s,u=A(i),c=A(o);if(c||(c=""),t._exponent){var m=function(e,t,r){var n={value:e,exponentValue:0},a=O(e,".")._integer,i=g(e),o=r?r.length:1;if(i>=1)a>o?(a-=o,n.value=e/M(10,a),n.exponentValue=a):n.exponentValue=0,-1===t._sign&&(t._sign=0);else if(i<1&&i>0){t._sign=-1;for(var s=M(10,o);10*i<s&&!R(10*i,s);)i*=10,n.exponentValue++;var u=M(10,n.exponentValue);n.value*=u>b?0:u}return n}(e,t._exponent,u);e=m.value,s=m.exponentValue}var y=O(e,".");g(e)>1&&y._integer+y._decimal>15&&(e=Y(e,15));r.numberGroupSizes,r.numberGroupSeparator;var h=r.numberDecimalSeparator,f=r.negativeSign,_=I(e,v(y._decimal,c.length),0,0,h,f);if(n||(_=function(e,t){var r=e;return-1!==e.indexOf(t)&&(r=e.replace(/0+$/,"")),r}(_,h)),""===_)return a.push({type:"text",value:(i?i.join(""):"")+(o?o.join(""):"")}),a;var F={hasInfilling:d,infillIndex:-1,replaceExponent:d},S=_.split(h)[0];return"10"!==S||isNaN(s)||(S="1",s+=t&&t._exponent&&-1===t._exponent._sign?-1:1),i&&U(i,S,u,t,s,a,F,r),e===1/0||e===-1/0||("0"!==S&&""===u&&o&&a.push({type:"number",value:S}),o&&function(e,t,r,n,a,i,o,s,u){var c=u.numberDecimalSeparator,m=u.percentSymbol,y=u.perMilleSymbol,h=t.indexOf(c),f=a._exponent;(h>0||n!==C||r!==T)&&o.push({type:"decimalSeparator",value:c});for(var d=-1!==h?t.substring(h+1):"",_=0,g="",M=0;M<e.length;M++){var v=e[M];if(/^(0|#|\?)+/g.test(v)){var b="";if(g!==r){for(var F=v.length,S=0,D=_;F>0&&d.length-_>0;)b+=d.charAt(D),F--,_++,S++,D++;for(var x=S;F>0;){var H=v[x];x++,_++,F--,"0"===H?b+=H:"?"===H&&(""!==b&&(o.push({type:"number",value:b}),b=""),o.push({type:"numberPlaceholder",value:H}))}""!==b&&o.push({type:"number",value:b}),g+=v}}else if(f&&!s.replaceExponent&&/^((E(\+|-)?|e(\+|-)?)\d+)/g.test(v)){s.replaceExponent=p;var P="";P+=f._symbol,P+=N[f._sign],P+=l(i.toString(),f._exp),o.push({type:"exponent",value:P})}else"_"===v[0]?o.push({type:"placeholder",value:v[1]}):"*"===v[0]?(o.push({type:"fillingChar",value:v[1]}),s.hasInfilling&&o.splice(s.infillIndex,1),s.hasInfilling=!0,s.infillIndex=o.length-1):"\\"===v[0]?2===v.length&&o.push({type:"text",value:v[1]}):'"'===v[0]&&'"'===v[v.length-1]?v.length>2&&o.push({type:"text",value:v.substr(1,v.length-2)}):v===m?o.push({type:"percent",value:v}):v===y?o.push({type:"permille",value:v}):E[v]?o.push({type:"currency",value:v}):o.push({type:"text",value:v})}}(o,_,c,u,t,s,a,F,r)),a}function L(e,t){if((e=u(e)?"":o._StringHelper._trimEnd(e,"")).match(/^[+-]?infinity$/i))return f(e);if(e.match(/^0x[a-f0-9]+$/i))return h(e,10);var r,n,a=t.NumberFormat,i=a.numberNegativePattern,s=j(e,a,i),l=s[0],c=s[1];""===l&&1!==i&&(l=(s=j(e,a,1))[0],c=s[1]),""===l&&(l="+"),c[0]===a.currencySymbol&&(c=F(c,1));var y=c.indexOf("e");y<0&&(y=c.indexOf("E")),y<0?(n=c,r=m):(n=F(c,0,y),r=F(c,y+1));var d,p,_=n.indexOf(".");_<0?(d=n,p=m):(d=F(n,0,_),p=F(n,_+1));var g=l+(d=d.split(",").join(""));if(p!==m&&(g+="."+p),g[g.length-1]===a.percentSymbol){g=F(g,0,g.length-1);var M=(g=o._StringHelper._trimEnd(g,"")).indexOf(".");-1===M&&(M=g.length);var v="";v+=F(g,0,M-2),v+=".",v+=F(g,M-2,2),g=v+=F(g,M+1)}if(r!==m){var b=j(r,a,1);""===b[0]&&(b[0]="+"),g+="e"+b[0]+b[1]}return g.match(/^[+-]?\d*\.?\d*(e[+-]?\d+)?$/)?f(g):NaN}function j(e,t,r){var n=t.negativeSign,a=t.positiveSign;if(4!==r&&2!==r||(n=" "+n,a=" "+a),4===r||3===r){if(o._StringHelper._endsWith(e,n))return["-",F(e,0,e.length-n.length)];if(o._StringHelper._endsWith(e,a))return["+",F(e,0,e.length-a.length)]}else if(2===r||1===r){if(o._StringHelper._startsWith(e,n))return["-",F(e,n.length)];if(o._StringHelper._startsWith(e,a))return["+",F(e,a.length)]}else{if(0!==r)throw Error("");if(o._StringHelper._startsWith(e,"(")&&o._StringHelper._endsWith(e,")"))return["-",F(e,1,e.length-2)]}return["",e]}function G(e){var t=s.CultureManager._getCultureInfo().NumberFormat;return"string"==typeof e&&(t=s.CultureManager._getCultureInfo(e).NumberFormat),t}function Y(e,t){return"number"==typeof e&&e.toString().length>=t&&(e=+e.toPrecision(t)),e}t._NumberHelper={_parseLocale:function(e){return L(e,s.CultureManager._getCultureInfo())},_parseInvariant:function(e){return L(e,s.CultureManager._getCultureInfo("invariant"))},_customCultureFormat:function(e,t,r,n){return r||(r=s.CultureManager._getCultureInfo()),P(e,t,r,n)},_replaceNormalToCultureSymbol:function(e,t){if("string"!=typeof e)return e;var r=G(t),n=r.numberDecimalSeparator,a=r.numberGroupSeparator;return"."!==n&&(e=e.replace(S("[.]"),"#dot#")),","!==a&&(e=e.replace(S("[,]"),"#group#")),"."!==n&&(e=e.replace(S("#dot#"),n)),","!==a&&(e=e.replace(S("#group#"),a)),e},_replaceCultureSymbolToNormal:function(e,t){if("string"!=typeof e)return e;var r=G(t),n=r.numberDecimalSeparator,a=r.numberGroupSeparator;return"."!==n&&(e=e.replace(S("["+n+"]"),"#dot#")),","!==a&&(e=e.replace(S("["+a+"]"),"#group#")),"."!==n&&(e=e.replace(S("#dot#"),".")),","!==a&&(e=e.replace(S("#group#"),",")),e},_isValidCultureNumberString:function(e,t){if("string"==typeof e){var r=G(t),n=r.numberDecimalSeparator,a=r.numberGroupSeparator;if("."!==n&&"."!==a&&e.indexOf(".")>=0||","!==n&&","!==a&&e.indexOf(",")>=0)return!1}return!0},_parseFloat:function(e,t){return f(this._replaceCultureSymbolToNormal(e,t))},_toHexString:function(e,t,r){if(0!==g(_(e)-e))throw Error(x().Exp_BadFormatSpecifier);var n=e>=0?e.toString(16):(4294967295+e+1).toString(16);return n=t?n.toLowerCase():n.toUpperCase(),!u(r)&&n.length<r?l(n,r):n},_parseCustomNumberFormatter:k,_formatNumber:B,_approxEqual:R,_safeAdd:function(e,t){return R(e,-t)?0:e+t},_formatObjectToString:function(e){var t="";if(Array.isArray(e)&&e.length>0)for(var r=0;r<e.length;r++){var n=e[r].type,a=e[r].value;if("placeholder"===n)t+=" ";else{if("fillingChar"===n)continue;t+="numberPlaceholder"===n?" ":a}}return t},_generalNumberInt:C,_generalNumberDec:T,_fixNumber:Y}},674:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.rbush=void 0;var r=Math.max,n=Math.min,a=1/0;function i(e,t){this._maxEntries=r(4,e||9),this._minEntries=r(2,Math.ceil(.4*this._maxEntries)),t&&this._initFormat(t),this.clear()}function o(e,t,r){if(!r)return t.indexOf(e);for(var n=0;n<t.length;n++)if(r(e,t[n]))return n;return-1}function s(e,t){u(e,0,e.children.length,t,e)}function u(e,t,r,n,i){i||(i=p(null)),i.minX=a,i.minY=a,i.maxX=-1/0,i.maxY=-1/0;for(var o=t,s=void 0;o<r;o++)s=e.children[o],l(i,e.leaf?n(s):s);return i}function l(e,t){return e.minX=n(e.minX,t.minX),e.minY=n(e.minY,t.minY),e.maxX=r(e.maxX,t.maxX),e.maxY=r(e.maxY,t.maxY),e}function c(e,t){return e.minX-t.minX}function m(e,t){return e.minY-t.minY}function y(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function h(e){return e.maxX-e.minX+(e.maxY-e.minY)}function f(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&(t.maxX>=0&&t.maxX<=e.maxX||e.minX<0)&&(t.maxY>=0&&t.maxY<=e.maxY||e.minY<0)}function d(e,t){return(-1===e.minY||-1===t.minY||e.minY<=t.maxY&&t.minY<=e.maxY)&&(-1===e.minX||-1===t.minX||e.minX<=t.maxX&&t.minX<=e.maxX)}function p(e){return{children:e,height:1,leaf:!0,minX:a,minY:a,maxX:-1/0,maxY:-1/0}}t.rbush=i,i.prototype={all:function(){return this._all(this.data,[])},search:function(e){var t=this.data,r=[],n=this.toBBox;if(!d(e,t))return r;for(var a,i,o,s,u=[];t;){for(a=0,i=t.children.length;a<i;a++)o=t.children[a],d(e,s=t.leaf?n(o):o)&&(t.leaf?r.push(o):f(e,s)?this._all(o,r):u.push(o));t=u.pop()}return r},collides:function(e){var t=this.data,r=this.toBBox;if(!d(e,t))return!1;for(var n,a,i,o,s=[];t;){for(n=0,a=t.children.length;n<a;n++)if(i=t.children[n],d(e,o=t.leaf?r(i):i)){if(t.leaf||f(e,o))return!0;s.push(i)}t=s.pop()}return!1},insert:function(e){return e&&this._insert(e,this.data.height-1),this},clear:function(){return this.data=p([]),this},remove:function(e,t){if(!e)return this;for(var r,n,a,i,s=this.data,u=this.toBBox(e),l=[],c=[];s||l.length;){if(s||(s=l.pop(),n=l[l.length-1],r=c.pop(),i=!0),s.leaf&&-1!==(a=o(e,s.children,t)))return s.children.splice(a,1),l.push(s),this._condense(l),this;i||s.leaf||!f(s,u)?n?(r++,s=n.children[r],i=!1):s=null:(l.push(s),c.push(r),r=0,n=s,s=s.children[0])}return this},toBBox:function(e){return e},compareMinX:c,compareMinY:m,toJSON:function(){return this.data},fromJSON:function(e){return this.data=e,this},_all:function(e,t){for(var r=[];e;)e.leaf?t.push.apply(t,e.children):r.push.apply(r,e.children),e=r.pop();return t},_chooseSubtree:function(e,t,i,o){for(var s,u,l,c,m,h,f,d;o.push(t),!t.leaf&&o.length-1!==i;){for(f=d=a,s=0,u=t.children.length;s<u;s++)m=y(l=t.children[s]),p=e,(h=(r((_=l).maxX,p.maxX)-n(_.minX,p.minX))*(r(_.maxY,p.maxY)-n(_.minY,p.minY))-m)<d?(d=h,f=m<f?m:f,c=l):h===d&&m<f&&(f=m,c=l);t=c||t.children[0]}var p,_;return t},_insert:function(e,t,r){var n=this.toBBox,a=r?e:n(e),i=[],o=this._chooseSubtree(a,this.data,t,i);for(o.children.push(e),l(o,a);t>=0&&i[t].children.length>this._maxEntries;)this._split(i,t),t--;this._adjustParentBBoxes(a,i,t)},_split:function(e,t){var r=e[t],n=r.children.length,a=this._minEntries;this._chooseSplitAxis(r,a,n);var i=this._chooseSplitIndex(r,a,n),o=p(r.children.splice(i,r.children.length-i));o.height=r.height,o.leaf=r.leaf,s(r,this.toBBox),s(o,this.toBBox),t?e[t-1].children.push(o):this._splitRoot(r,o)},_splitRoot:function(e,t){this.data=p([e,t]),this.data.height=e.height+1,this.data.leaf=!1,s(this.data,this.toBBox)},_chooseSplitIndex:function(e,t,i){var o,s,l,c,m,h,f,d,p,_,g,M,v,b;for(h=f=a,o=t;o<=i-t;o++)p=s=u(e,0,o,this.toBBox),_=l=u(e,o,i,this.toBBox),g=void 0,M=void 0,v=void 0,b=void 0,g=r(p.minX,_.minX),M=r(p.minY,_.minY),v=n(p.maxX,_.maxX),b=n(p.maxY,_.maxY),c=r(0,v-g)*r(0,b-M),m=y(s)+y(l),c<h?(h=c,d=o,f=m<f?m:f):c===h&&m<f&&(f=m,d=o);return d},_chooseSplitAxis:function(e,t,r){var n=e.leaf?this.compareMinX:c,a=e.leaf?this.compareMinY:m;this._allDistMargin(e,t,r,n)<this._allDistMargin(e,t,r,a)&&e.children.sort(n)},_allDistMargin:function(e,t,r,n){e.children.sort(n);var a,i,o=this.toBBox,s=u(e,0,t,o),c=u(e,r-t,r,o),m=h(s)+h(c);for(a=t;a<r-t;a++)i=e.children[a],l(s,e.leaf?o(i):i),m+=h(s);for(a=r-t-1;a>=t;a--)i=e.children[a],l(c,e.leaf?o(i):i),m+=h(c);return m},_adjustParentBBoxes:function(e,t,r){for(var n=r;n>=0;n--)l(t[n],e)},_condense:function(e){for(var t=e.length-1,r=void 0;t>=0;t--)0===e[t].children.length?t>0?(r=e[t-1].children).splice(r.indexOf(e[t]),1):this.clear():s(e[t],this.toBBox)},_initFormat:function(e){var t=["return a"," - b",";"];this.compareMinX=Function("a","b",t.join(e[0])),this.compareMinY=Function("a","b",t.join(e[1])),this.toBBox=Function("a","return {minX: a"+e[0]+", minY: a"+e[1]+", maxX: a"+e[2]+", maxY: a"+e[3]+"};")}}},576:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t._RegexHelper=void 0;var n=r(480),a=function(){function e(){}return e._getRegWithModifiers=function(t,r){var n;if(r&&e._regDictWithModifiers[r]&&e._regDictWithModifiers[r][t])n=e._regDictWithModifiers[r][t];else try{null==r?(n=RegExp(t),r="empty"):n=RegExp(t,r),e._regDictWithModifiers[r]||(e._regDictWithModifiers[r]={}),e._regDictWithModifiers[r][t]=n}catch(e){return null}return n.lastIndex=0,n},e._getReg=function(t){var r=e._regDict[t];return r||(r=e._regDict[t]=RegExp(t,"g")),r.lastIndex=0,r},e._getRegIgnoreCase=function(t){var r=e._regDictIgnoreCase[t];return r||(r=e._regDictIgnoreCase[t]=RegExp(t,"gi")),r.lastIndex=0,r},e._getWildcardCriteria=function(t,r,n){if(e._wildcardParseRecord[t])return e._wildcardParseResultBuffer[t];var a=r?"[?*]+":"[~?*]+";if(e._getReg(a).test(t)){for(var i=[],o=t.split(""),s=void 0,u={".":!0,"+":!0,$:!0,"^":!0,"[":!0,"]":!0,"(":!0,")":!0,"{":!0,"}":!0,"|":!0,"/":!0,"\\":!0},l=0;l<o.length;l++)if("~"===(s=o[l])){if(!(l<o.length-1))break;"*"!==(s=o[++l])&&"?"!==s||i.push("\\"),i.push(s)}else"?"===s?i.push("."):"*"===s?(i.push("[\\s\\S]"),n?i.push("+"):i.push("*")):u[s]?(i.push("\\"),i.push(s)):i.push(s);return i.join("")}return null},e._getWildcardCriteriaFullMatch=function(t,r,n){var a=e._getWildcardCriteria(t,r,n);return a&&(a="^"+a+"$"),a},e._getReplaceSymbol=function(e,t){for(var r="#"+e+"0#",a=1;t.indexOf(r)>0;)r=n._StringHelper._join(r,"#"+e+(a-1)+"#","#"+e+a+"#"),a++;return r},e._replaceRegString2NormalString=function(e){return e.replace(/([\~\!\@\#\$\%\^\&\*\(\)\-\_\+\=\[\]\{\}\|\\\;\:\'\"\,\.\/\<\>\?])/,"\\$1")},e._regDict={},e._regDictIgnoreCase={},e._regDictWithModifiers={},e._wildcardParseRecord={},e._wildcardParseResultBuffer={},e}();t._RegexHelper=a},480:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t._StringHelper=void 0;var n=r(576);function a(e,t,r){return e.substr(t,r)}function i(e){return null==e}function o(e,t,r,n){if(i(t))throw Error();if(""===t)return!0;if(t.length>e.length)return!1;var a=e,o=t;return r&&(a=a.toLowerCase(),o=o.toLowerCase()),n(a,o)}t._StringHelper={_contains:function(e,t,r){return r&&(e=e.toLowerCase(),t=t.toLowerCase()),""===t||e.indexOf(t)>=0},_indexOf:function(e,t,r){if(r){var n=e.toLowerCase(),a=t.toLowerCase();return n.indexOf(a)}return e.indexOf(t)},_trimStart:function(e,t){if(!t)return e;for(var r=e;a(r,0,t.length)===t;)r=a(r,t.length);return r},_trimEnd:function(e,t){if(!t)return e;for(var r=e;a(r,r.length-t.length,t.length)===t;)r=a(r,0,r.length-t.length);return r},_insert:function(e,t,r){if(t<0||t>e.length||i(r))throw Error();return a(e,0,t)+r+a(e,t,e.length-t)},_remove:function(e,t,r){if(i(r)&&(r=e.length-t),t<0||r<0||t+r>e.length)throw Error();return a(e,0,t)+a(e,t+r,e.length-t-r)},_startsWith:function(e,t,r){return void 0===r&&(r=!1),o(e,t,r,(function(e,t){return e.slice(0,t.length)===t}))},_endsWith:function(e,t,r){return void 0===r&&(r=!1),o(e,t,r,(function(e,t){return e.slice(-t.length)===t}))},_replace:function(e,t,r,n){if(!t)throw Error();return r=(""+r).replace(/\$/g,"$$$$"),e.replace(RegExp(t,"g"+(n?"i":"")),r)},_replaceAllNoReg:function(e,r,a,i){return r=n._RegexHelper._replaceRegString2NormalString(r),t._StringHelper._replace(e,r,a,i)},_leftBefore:function(e,t){var r=e.indexOf(t);return r<0||r>=e.length?e:a(e,0,r)},_count:function(e,t){for(var r=0,n=e.indexOf(t);n>=0;)r+=1,n=e.indexOf(t,n+1);return r},_join:function(e,t,r){return e.split(t).join(r)},_format:function(e,t){for(var r=e,n=0;n<t.length;n++){var a=RegExp("\\{"+n+"\\}","g");r=r.replace(a,t[n])}return r},_padZero:function(e,t,r){for(var n=e.toString(),a=n.length;a<t;a++)n=r?"0"+n:n+"0";return n},_padZeroLeft:function(e,r){return t._StringHelper._padZero(e,r,!0)},_padZeroRight:function(e,r){return t._StringHelper._padZero(e,r,!1)},_compareStringIgnoreCase:function(e,t){return e===t||!e&&!t||e&&t&&e.toLowerCase()===t.toLowerCase()},_toUpperCase:function(e){return e.toUpperCase()},_escapeHtml:function(e){var t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},r=n._RegexHelper._getReg("(?:&|<|>|\"|'|`)");return r.test(e)?e.replace(r,(function(e){return t[e]})):e},_unescapeHtml:function(e){var t={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#x27;":"'","&#x60;":"`"},r=n._RegexHelper._getReg("(?:&amp;|&lt;|&gt;|&quot;|&#x27;|&#x60;)");return r.test(e)?e.replace(r,(function(e){return t[e]})):e},_escapeJavascript:function(e){for(var t=e,r=/javascript:/gi;t.match(r);)t=t.replace(r,"");return t}}},534:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t._Types=void 0;var r="undefined"!=typeof window?window.File:null,n="undefined"!=typeof window?window.Blob:null;t._Types={_class2type:null,_each:function(e,r){if(t._Types._isArraylike(e))for(var n=0,a=e.length;n<a&&!1!==r.call(e[n],n,e[n]);n++);else for(var i in e)if(e.hasOwnProperty(i)&&!1===r.call(e[i],i,e[i]))break;return e},_isEmptyObject:function(e){return!e||"object"==typeof e&&0===Object.keys(e).length},_isFunction:function(e){return"function"===t._Types._getType(e)},_isArray:function(e){return Array.isArray?Array.isArray(e):"array"===t._Types._getType(e)},_isNumeric:function(e){return t._Types._isString(e)&&(e=parseFloat(e)),!isNaN(e)&&isFinite(e)},_isString:function(e){return"string"==typeof e},_getType:function(e){if(null===e)return"null";var r=t._Types._class2type;if(!r){r=t._Types._class2type={};for(var n=["Boolean","Number","String","Function","Array","Date","RegExp","Object","Error"],a=0,i=n.length;a<i;a++)r["[object "+n[a]+"]"]=n[a].toLowerCase()}var o=r.toString,s=typeof e;return"object"===s||"function"===s?r[o.call(e)]||"object":s},_inArray:function(e,r,n){var a;if(r){var i=[].indexOf;if(i)return i.call(r,e,n);for(a=r.length,t._Types._isNullOrUndefined(n)&&(n=0),n=n<0?Math.max(0,a+n):n;n<a;n++)if(n in r&&r[n]===e)return n}return-1},_merge:function(e,t){var r=t.length,n=e.length,a=0;if("number"==typeof r)for(;a<r;a++)e[n]=t[a],n++;else for(;void 0!==t[a];)e[n]=t[a],n++,a++;return e.length=n,e},_map:function(e,r,n){var a,i=[];if(t._Types._isArraylike(e))for(var o=0,s=e.length;o<s;o++)null!==(a=r(e[o],o,n))&&(i[i.length]=a);else{var u=void 0;for(u in e)e.hasOwnProperty(u)&&null!==(a=r(e[u],u,n))&&(i[i.length]=a)}return i.concat([])},_extend:function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var n,a,i,o,s,u,l=e[0]||{},c=1,m=e.length,y=!1;for("boolean"==typeof l&&(y=l,l=e[1]||{},c=2),"object"==typeof l||t._Types._isFunction(l)||(l={}),m===c&&(l=this,--c);c<m;c++)if(s=e[c],!t._Types._isNullOrUndefined(s))for(o in s)n=l[o],l!==(i=s[o])&&(a=t._Types._isArray(i),y&&i&&(t._Types._isPlainObject(i)||a)?(u=a?n&&t._Types._isArray(n)?n:[]:n&&t._Types._isPlainObject(n)?n:{},l[o]=t._Types._extend(y,u,i)):void 0!==i&&(l[o]=i));return l},_inherit:function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n},_isWindow:function(e){return null!==e&&e===e.window},_isPlainObject:function(e){if(!e||"object"!==t._Types._getType(e)||e.nodeType||t._Types._isWindow(e))return!1;var r,n={}.hasOwnProperty;try{if(e.constructor&&!n.call(e,"constructor")&&!n.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(e){return!1}for(r in e);return void 0===r||n.call(e,r)},_isArraylike:function(e){if(t._Types._isNullOrUndefined(e))return!1;var r=e.length,n=t._Types._getType(e);return!t._Types._isWindow(e)&&(!(1!==e.nodeType||!r)||"array"===n||"function"!==n&&(0===r||"number"==typeof r&&r>0&&r-1 in e))},_makeArray:function(e,r){var n=r||[];return null!==e&&(t._Types._isArraylike(Object(e))?t._Types._merge(n,"string"==typeof e?[e]:e):[].push.call(n,e)),n},_isType:null,_isNullOrUndefined:function(e){return null==e},_isNumber:null,_toDouble:null,_cloneObject:function(e){if(!e)return e;if("number"==typeof e||"string"==typeof e||"boolean"==typeof e||t._Types._isNullOrUndefined(e))return e;if(e.clone)return e.clone();if(e instanceof Date)return new Date(e.valueOf());var a,i,o;if(r&&e instanceof r)return new r([e],e.name,{type:e.type,lastModified:e.lastModified});if(n&&e instanceof n)return new n([e],{type:e.type});for(i in a=e instanceof Object?new e.constructor:new e.constructor(e.valueOf()),e)e.hasOwnProperty(i)&&(o=e[i],e.hasOwnProperty(i)&&a[i]!==o&&(a[i]="object"==typeof o?t._Types._cloneObject(o):o));return a}}},612:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Exp_Separator=t.Exp_InvalidCast=t.Exp_InvalidNumberFormat=t.Exp_BadFormatSpecifier=t.Exp_InvalidNumberGroupSize=t.Exp_InvalidSemicolons=t.Exp_InvalidExponentFormat=t.Exp_InvalidDateFormat=void 0,t.Exp_InvalidDateFormat="Invalid date format pattern",t.Exp_InvalidExponentFormat="invalid exponent format",t.Exp_InvalidSemicolons="invalid format : too many semicolons",t.Exp_InvalidNumberGroupSize="NumberGroupSize must be between 1 and 9, except for the last element, which can be zero.",t.Exp_BadFormatSpecifier="Bad Format Specifier",t.Exp_InvalidNumberFormat="Invalid number format pattern",t.Exp_InvalidCast="InvalidCastException",t.Exp_Separator="numberDecimalSeparator, listSeparator and arrayListSeparator should be different in culture info."},479:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.UUIDGenerator=void 0;var r=function(){function e(){}return e.wrap=function(e){return"{".concat(e.toUpperCase(),"}")},e.uuidv4=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))},e.secureUUID=function(){return"undefined"!=typeof crypto&&crypto.randomUUID?crypto.randomUUID():this.uuidv4()},e.secureUpperCaseUUID=function(){return this.wrap(this.secureUUID())},e.isValidUpperCaseUUID=function(e){return/^\{[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}\}$/i.test(e)},e}();t.UUIDGenerator=r},814:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.UndoManager=t.CommandManager=t.Key=void 0;var n=r(536);Object.defineProperty(t,"Key",{enumerable:!0,get:function(){return n.Key}}),Object.defineProperty(t,"CommandManager",{enumerable:!0,get:function(){return n.CommandManager}});var a=r(748);Object.defineProperty(t,"UndoManager",{enumerable:!0,get:function(){return a.UndoManager}})},536:function(e,t){var r;Object.defineProperty(t,"__esModule",{value:!0}),t.CommandManager=t.Key=void 0,function(e){e[e.left=37]="left",e[e.right=39]="right",e[e.up=38]="up",e[e.down=40]="down",e[e.tab=9]="tab",e[e.enter=13]="enter",e[e.shift=16]="shift",e[e.ctrl=17]="ctrl",e[e.space=32]="space",e[e.altkey=18]="altkey",e[e.home=36]="home",e[e.end=35]="end",e[e.pup=33]="pup",e[e.pdn=34]="pdn",e[e.backspace=8]="backspace",e[e.del=46]="del",e[e.esc=27]="esc",e[e.a=65]="a",e[e.c=67]="c",e[e.v=86]="v",e[e.x=88]="x",e[e.z=90]="z",e[e.y=89]="y"}(r=t.Key||(t.Key={}));var n=function(){function e(e,t,r){this._owner=e,this._cmdDef=t,this._name=r;var n,a=this;Object.defineProperty(a,"shortcutKey",{get:function(){return a._shortcutKey},set:function(e){var t=a._shortcutKey;if(t!==e){var r=(n=a._owner._shortcutKeys)[t];if(r){var i=r.indexOf(a);i>=0&&r.splice(i,1)}a._shortcutKey=e,e&&((r=n[e])||(n[e]=r=[]),r.splice(0,0,a))}}})}return e.prototype.canUndo=function(){return this._cmdDef.canUndo},e.prototype.execute=function(e,t,r){var n,a,i=!0,o=!0;if(this._cmdDef&&t){var s={command:t,result:a,_actionType:r,actionType:r,metaData:null===(n=this._cmdDef)||void 0===n?void 0:n.metaData,r:null,isBefore:!0};this._owner._triggerInternalListener(s),s.r&&(o=!1,a=!1)}if(o){try{i=!1!==(a=(this._cmdDef.execute||this._cmdDef)(e,t,1===r))}catch(e){i=!1}t&&i&&this._owner._commandExecuted({command:this._getCmdOptions(t),result:a,_actionType:r,actionType:r})}if(this._owner&&t){var u={command:t,result:a,_actionType:r,actionType:r,isBefore:!1};this._owner._triggerInternalListener(u)}return a},e.prototype._getCmdOptions=function(e){return e&&!e.cmd&&(e.cmd=this._name),e},e}(),a=function(){function e(e){this._context=e,this._listeners={},this._internalListeners={},this._afterInternalListeners={},this._shortcutKeys={}}return e.prototype.register=function(e,t,r,a,i,o,s){var u=new n(this,t,e);this[e]=u,r&&(u.shortcutKey=this.getShortcutKey(r,a,i,o,s))},e.prototype.getCommand=function(e){return this[e]},e.prototype.execute=function(e){var t=this[e.cmd];if(t)return t.execute(this._context,e,0)},e.prototype.setShortcutKey=function(e,t,r,n,a,i){if(e){var o=this[e];o&&(o.shortcutKey=this.getShortcutKey(t,r,n,a,i))}else{var s=this.getShortcutKey(t,r,n,a,i),u=this.getCommands(s);if(u)for(var l=u.length-1;l>=0;l--)u[l].shortcutKey=void 0}},e.prototype.getShortcutKey=function(e,t,n,a,i){if(e){var o=65<=e&&e<=90?String.fromCharCode(e):r[e];return o||(o=e),o+(t?"+ctrl":"")+(n?"+shift":"")+(a?"+alt":"")+(i?"+window":"")}},e.prototype.getCommands=function(e){return this._shortcutKeys[e]},e.prototype.addListener=function(e,t){this._listeners[e]=t},e.prototype.removeListener=function(e){delete this._listeners[e]},e.prototype._commandExecuted=function(e){var t=this._listeners;for(var r in t)t.hasOwnProperty(r)&&t[r](e)},e.prototype._addInternalListener=function(e,t){this._internalListeners[e]=t},e.prototype._removeInternalListener=function(e){delete this._internalListeners[e]},e.prototype._triggerInternalListener=function(e){var t=this._internalListeners;for(var r in t)t.hasOwnProperty(r)&&t[r](e)},e.prototype._dispose=function(){this._context=null},e}();t.CommandManager=a},748:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.UndoManager=void 0;var r=function(){function e(e,t,r){this._context=e,t<0&&(t=2147483647),this._maxLength=t,this._allowUndo=r,this._undoStack=[],this._redoStack=[],this._hasNewChange=!1}return e.prototype._addCommand=function(e,t){if(e){if(1===t)this._redoStack.push(e);else{var r=this._maxLength,n=this._undoStack.length;if(r>0&&n>=r)for(var a=0;a<n-r+1;a++)this._undoStack.shift();this._undoStack.push(e),0===t&&(this._redoStack=[])}this._hasNewChange=!0}},e.prototype.canUndo=function(){return this._undoStack.length>0},e.prototype.undo=function(){var e=this._undoStack,t=!0;if(this._allowUndo&&this.canUndo()){var r=e[e.length-1];try{var n=this._context.commandManager()[r.cmd];n&&(r._fromUndoManager=!0,t=n.execute(this._context,r,1))}catch(e){t=!1}delete r._fromUndoManager,!1!==t&&(e.pop(),this._hasNewChange=!0,this._redoStack.push(r))}return t},e.prototype.canRedo=function(){return this._redoStack.length>0},e.prototype.redo=function(){var e=this._redoStack,t=!0;if(this._allowUndo&&this.canRedo()){var r=e[e.length-1];try{var n=this._context.commandManager()[r.cmd];n&&(r._fromUndoManager=!0,t=n.execute(this._context,r,2))}catch(e){t=!1}delete r._fromUndoManager,!1!==t&&(e.pop(),this._hasNewChange=!0,this._undoStack.push(r))}return t},e.prototype.getRedoStack=function(){return this._redoStack.slice()},e.prototype.getUndoStack=function(){return this._undoStack.slice()},e.prototype.maxSize=function(e){return arguments.length<1?this._maxLength:(e>=0&&(this._maxLength=e),this)},e.prototype.clear=function(){this._undoStack=[],this._redoStack=[]},e.prototype._filter=function(e){this._undoStack=this._undoStack.filter(e),this._redoStack=this._redoStack.filter(e)},e.prototype._dispose=function(){this._context=null},e.prototype.setNewChangeStatus=function(e){this._hasNewChange=e},e.prototype.getNewChangeStatus=function(){return this._hasNewChange},e}();t.UndoManager=r},569:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var a=Object.getOwnPropertyDescriptor(t,r);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,a)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),a=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),a(r(2),t)},498:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Exp_InvalidCast=t.Exp_ValueIllegal=t.Exp_TokenIllegal=t.Exp_DuplicatedDescriptor=t.Exp_ValueIsNull=t.Exp_FormatIllegal=t.Exp_InvalidBackslash=t.Exp_TokenIsNull=void 0,t.Exp_TokenIsNull="token is null",t.Exp_InvalidBackslash="the '\\' cannot be evaluated",t.Exp_FormatIllegal="format is illegal.",t.Exp_ValueIsNull="value is null",t.Exp_DuplicatedDescriptor="The type of descriptor was added.",t.Exp_TokenIllegal="token is illegal.",t.Exp_ValueIllegal="value is illegal.",t.Exp_InvalidCast="InvalidCastException"},2:function(e,t,r){var n,a=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+t+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.GeneralFormatter=t._NumberFormatDateTime=t.FormatterBase=void 0;var i=r(480),o=r(97),s=r(534),u=r(844),l=r(286),c=r(818),m=r(498),y=r(810),h=r(61);s._Types._extend(c.SR.en,m);var f=new c.ResourceManager(c.SR),d=f.getResource.bind(f);s._Types._isType=function(e,t){if(s._Types._isNullOrUndefined(e))return"null"===t;if(!t)return!1;if(t instanceof Function&&e instanceof t)return!0;if(typeof e===t)return!0;if("function"===t&&/^\s*\bfunction\b/.test(""+e))return!0;if(Object.prototype.toString.call(e).slice(8,-1).toLowerCase()===t.toLowerCase())return!0;if("DateTime"===t)return e instanceof Date;if("TimeSpan"===t){if(e instanceof Date){var r=o._DateTimeHelper._toOADate(e);return r>=0&&r<1}return!1}return!1},s._Types._isNumber=function(e,t){return!!u._NumberHelper._isValidCultureNumberString(e,t)&&("string"!=typeof e||-1===e.search(/[\r\n\t]/g))&&(e=u._NumberHelper._replaceCultureSymbolToNormal(e,t),s._Types._isType(e,"number")||s._Types._isType(e,"DateTime")||s._Types._isType(e,"TimeSpan")||e&&!s._Types._isType(e,"boolean")&&!isNaN(e)&&!isNaN(parseFloat(e))&&!(e.length>=2&&"0"===e[0]&&"x"===e[1]))},s._Types._toDouble=function(e){return s._Types._isNullOrUndefined(e)||""===e?0:s._Types._isType(e,"number")?e:s._Types._isType(e,"string")&&!isNaN(e)?u._NumberHelper._parseLocale(e):s._Types._isType(e,"boolean")?e?1:0:s._Types._isType(e,"DateTime")?o._DateTimeHelper._toOADate(e):s._Types._isType(e,"TimeSpan")?Math.floor(o._DateTimeHelper._toOADate(e)):parseFloat(e)};var p=null,_=Math.abs,g={_yearTwoDigit:"yy",_yearSingleDigit:"y",_yearFourDigit:"yyyy",_monthSingleDigit:"m",_monthTwoDigit:"mm",_monthAbbreviation:"mmm",_monthUnabbreviated:"mmmm",_monthJD:"mmmmm",_daySingleDigit:"d",_dayTwoDigit:"dd",_dayWeekDayAbbreviation:"aaa",_dayWeekDayUnabbreviated:"aaaa",_hoursSingleDigit:"h",_hoursTwoDigit:"hh",_minuteSingleDigit:"m",_minuteTwoDigit:"mm",_secondSingleDigit:"s",_secondTwoDigit:"ss",_eraYear:"e",_aMPMTwoDigit:"AM/PM",_aMPMSingleDigit:"A/P",_placeholderMonthJD:"@mmmmm",_defaultAbsoluteTime:new Date(1899,11,30,0,0,0,0)},M=[g._yearSingleDigit,g._yearTwoDigit,g._yearFourDigit,g._monthSingleDigit,g._monthTwoDigit,g._monthAbbreviation,g._monthUnabbreviated,g._monthJD,g._daySingleDigit,g._dayTwoDigit,g._dayWeekDayAbbreviation,g._dayWeekDayUnabbreviated,g._hoursSingleDigit,g._hoursTwoDigit,g._minuteSingleDigit,g._minuteTwoDigit,g._secondSingleDigit,g._secondTwoDigit,"ggg","gg","g","ee","e"],v={_positive:0,_negative:1,_zero:2,_text:3},b=[{_positive:0,_negative:0,_zero:0,_text:0},{_positive:0,_negative:1,_zero:0,_text:0},{_positive:0,_negative:1,_zero:2,_text:0},{_positive:0,_negative:1,_zero:2,_text:3}],F=RegExp("([.+?*$^\\[\\](){}|/])","g"),S=[["M/d","MMM/d","MMMM/d","d/M","d/MMM","d/MMMM","M-d","MMM-d","MMMM-d","d-M","d-MMM","d-MMMM"],["M/y","MMM/y","M/yyyy","MMM/yyyy","M-y","MMM-y","M-yyyy","MMM-yyyy"],["M/d/y","MMM/d/y","MMMM/d/y","M/d/yyyy","MMM/d/yyyy","MMMM/d/yyyy","d/M/y","d/MMM/y","d/MMMM/y","d/M/yyyy","d/MMM/yyyy","d/MMMM/yyyy","yyyy/M/d","M-d-y","MMM-d-y","MMMM-d-y","M-d-yyyy","MMM-d-yyyy","MMMM-d-yyyy","d-M-y","d-MMM-y","d-MMMM-y","d-M-yyyy","d-MMM-yyyy","d-MMMM-yyyy","yyyy-M-d"],["H:m","h:m tt"],["H:m:s","H:m:s"],["H:m:s.FFF","h:m:s.FFF tt"],["h:m:s tt","h:mm:ss tt"],["M/d H:m","MMM/d H:m","MMMM/d H:m","d/M H:m","d/MMM H:m","d/MMMM H:m","M/y H:m","MMM/y H:m","M/yyyy H:m","MMM/yyyy H:m","M/d/y H:m","MMM/d/y H:m","MMMM/d/y H:m","M/d/yyyy H:m","MMM/d/yyyy H:m","MMMM/d/yyyy H:m","M-d H:m","MMM-d H:m","MMMM-d H:m","d-M H:m","d-MMM H:m","d-MMMM H:m","M-y H:m","MMM-y H:m","M-yyyy H:m","MMM-yyyy H:m","M-d-y H:m","MMM-d-y H:m","MMMM-d-y H:m","M-d-yyyy H:m","MMM-d-yyyy H:m","MMMM-d-yyyy H:m","M/d h:m tt","MMM/d h:m tt","MMMM/d h:m tt","d/M h:m tt","d/MMM h:m tt","d/MMMM h:m tt","M/y h:m tt","MMM/y h:m tt","M/yyyy h:m tt","MMM/yyyy h:m tt","M/d/y h:m tt","MMM/d/y h:m tt","MMMM/d/y h:m tt","M/d/yyyy h:m tt","MMM/d/yyyy h:m tt","MMMM/d/yyyy h:m tt","M-d h:m tt","MMM-d h:m tt","MMMM-d h:m tt","d-M h:m tt","d-MMM h:m tt","d-MMMM h:m tt","M-y h:m tt","MMM-y h:m tt","M-yyyy h:m tt","MMM-yyyy h:m tt","M-d-y h:m tt","MMM-d-y h:m tt","MMMM-d-y h:m tt","M-d-yyyy h:m tt","MMM-d-yyyy h:m tt","MMMM-d-yyyy h:m tt","d/M/y H:m","d/MMM/y H:m","d/MMMM/y H:m","d/M/yyyy H:m","d/mmm/yyyy H:m","d/MMMM/yyyy H:m","yyyy/M/d H:m","d-M-y H:m","d-MMM-y H:m","d-MMMM-y H:m","d-M-yyyy H:m","d-MMM-yyyy H:m","d-MMMM-yyyy H:m","yyyy-M-d H:m","d/M/y h:m tt","d/MMM/y h:m tt","d/MMMM/y h:m tt","d/M/yyyy h:m tt","d/mmm/yyyy h:m tt","d/MMMM/yyyy h:m tt","yyyy/M/d h:m tt","d-M-y h:m tt","d-MMM-y h:m tt","d-MMMM-y h:m tt","d-M-yyyy h:m tt","d-MMM-yyyy h:m tt","d-MMMM-yyyy h:m tt","yyyy-M-d h:m tt"],["M/d H:m:s","MMM/d H:m:s","MMMM/d H:m:s","d/M H:m:s","d/MMM H:m:s","d/MMMM H:m:s","M/y H:m:s","MMM/y H:m:s","M/yyyy H:m:s","MMM/yyyy H:m:s","M/d/y H:m:s","MMM/d/y H:m:s","MMMM/d/y H:m:s","M/d/yyyy H:m:s","MMM/d/yyyy H:m:s","MMMM/d/yyyy H:m:s","d/M/y H:m:s","d/MMM/y H:m:s","d/MMMM/y H:m:s","d/M/yyyy H:m:s","d/MMM/yyyy H:m:s","d/MMMM/yyyy H:m:s","yyyy/M/d H:m:s","M-d H:m:s","MMM-d H:m:s","MMMM-d H:m:s","d-M H:m:s","d-MMM H:m:s","d-MMMM H:m:s","M-y H:m:s","MMM-y H:m:s","M-yyyy H:m:s","MMM-yyyy H:m:s","M-d-y H:m:s","MMM-d-y H:m:s","MMMM-d-y H:m:s","M-d-yyyy H:m:s","MMM-d-yyyy H:m:s","MMMM-d-yyyy H:m:s","d-M-y H:m:s","d-MMM-y H:m:s","d-MMMM-y H:m:s","d-M-yyyy H:m:s","d-MMM-yyyy H:m:s","d-MMMM-yyyy H:m:s","yyyy-M-d H:m:s","M/d h:m:s tt","MMM/d h:m:s tt","MMMM/d h:m:s tt","d/M h:m:s tt","d/MMM h:m:s tt","d/MMMM h:m:s tt","M/y h:m:s tt","MMM/y h:m:s tt","M/yyyy h:m:s tt","MMM/yyyy h:m:s tt","M/d/y h:m:s tt","MMM/d/y h:m:s tt","MMMM/d/y h:m:s tt","M/d/yyyy h:m:s tt","MMM/d/yyyy h:m:s tt","MMMM/d/yyyy h:m:s tt","d/M/y h:m:s tt","d/MMM/y h:m:s tt","d/MMMM/y h:m:s tt","d/M/yyyy h:m:s tt","d/MMM/yyyy h:m:s tt","d/MMMM/yyyy h:m:s tt","yyyy/M/d h:m:s tt","M/d/yyyy h:mm:ss tt","M-d h:m:s tt","MMM-d h:m:s tt","MMMM-d h:m:s tt","d-M h:m:s tt","d-MMM h:m:s tt","d-MMMM h:m:s tt","M-y h:m:s tt","MMM-y h:m:s tt","M-yyyy h:m:s tt","MMM-yyyy h:m:s tt","M-d-y h:m:s tt","MMM-d-y h:m:s tt","MMMM-d-y h:m:s tt","M-d-yyyy h:m:s tt","MMM-d-yyyy h:m:s tt","MMMM-d-yyyy h:m:s tt","d-M-y h:m:s tt","d-MMM-y h:m:s tt","d-MMMM-y h:m:s tt","d-M-yyyy h:m:s tt","d-MMM-yyyy h:m:s tt","d-MMMM-yyyy h:m:s tt","yyyy-M-d h:m:s tt","M/d/yyyy H:m:s","M-d-yyyy H:m:s","M/d/yyyy h:m:s tt","M-d-yyyy H:m:s tt"],["M/d H:m:s.FFF","MMM/d H:m:s.FFF","MMMM/d H:m:s.FFF","d/M H:m:s.FFF","d/MMM H:m:s.FFF","d/MMMM H:m:s.FFF","M/y H:m:s.FFF","MMM/y H:m:s.FFF","M/yyyy H:m:s.FFF","MMM/yyyy H:m:s.FFF","M/d/y H:m:s.FFF","MMM/d/y H:m:s.FFF","MMMM/d/y H:m:s.FFF","MMM/d/yyyy H:m:s.FFF","MMMM/d/yyyy H:m:s.FFF","d/M/y H:m:s.FFF","d/MMM/y H:m:s.FFF","d/MMMM/y H:m:s.FFF","d/M/yyyy H:m:s.FFF","d/MMM/yyyy H:m:s.FFF","d/MMMM/yyyy H:m:s.FFF","yyyy/M/d H:m:s.FFF","M-d H:m:s.FFF","MMM-d H:m:s.FFF","MMMM-d H:m:s.FFF","d-M H:m:s.FFF","d-MMM H:m:s.FFF","d-MMMM H:m:s.FFF","M-y H:m:s.FFF","MMM-y H:m:s.FFF","M-yyyy H:m:s.FFF","MMM-Yyyy H:m:s.FFF","M-d-y H:m:s.FFF","MMM-d-y H:m:s.FFF","MMMM-d-y H:m:s.FFF","MMM-d-yyyy H:m:s.FFF","MMMM-d-yyyy H:m:s.FFF","D-M-y H:m:s.FFF","d-MMM-y H:m:s.FFF","d-MMMM-y H:m:s.FFF","D-M-yyyy H:m:s.FFF","d-MMM-yyyy H:m:s.FFF","d-MMMM-yyyy H:m:s.FFF","yyyy-M-d H:m:s.FFF","M/d h:m:s.FFF tt","MMM/d h:m:s.FFF tt","MMMM/d h:m:s.FFF tt","d/M h:m:s.FFF tt","d/MMM h:m:s.FFF tt","d/MMMM h:m:s.FFF tt","M/y h:m:s.FFF tt","MMM/y h:m:s.FFF tt","M/yyyy h:m:s.FFF tt","MMM/yyyy h:m:s.FFF tt","M/d/y h:m:s.FFF tt","MMM/d/y h:m:s.FFF tt","MMMM/d/y h:m:s.FFF tt","MMM/d/yyyy h:m:s.FFF tt","MMMM/d/yyyy h:m:s.FFF tt","d/M/y h:m:s.FFF tt","d/MMM/y h:m:s.FFF tt","d/MMMM/y h:m:s.FFF tt","d/M/yyyy h:m:s.FFF tt","d/MMM/yyyy h:m:s.FFF tt","d/MMMM/yyyy h:m:s.FFF tt","yyyy/M/d h:m:s.FFF tt","M-d h:m:s.FFF tt","MMM-d h:m:s.FFF tt","MMMM-d h:m:s.FFF tt","d-M h:m:s.FFF tt","d-MMM h:m:s.FFF tt","d-MMMM h:m:s.FFF tt","M-y h:m:s.FFF tt","MMM-y h:m:s.FFF tt","M-yyyy h:m:s.FFF tt","MMM-Yyyy h:m:s.FFF tt","M-d-y h:m:s.FFF tt","MMM-d-y h:m:s.FFF tt","MMMM-d-y h:m:s.FFF tt","MMM-d-yyyy H:m:s.FFF tt","MMMM-d-yyyy h:m:s.FFF tt","d-M-y h:m:s.FFF tt","d-MMM-y h:m:s.FFF tt","d-MMMM-y h:m:s.FFF tt","d-M-yyyy h:m:s.FFF tt","d-MMM-yyyy h:m:s.FFF tt","d-MMMM-yyyy h:m:s.FFF tt","yyyy-M-d h:m:s.FFF tt"]],D=["#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"],x=RegExp("color\\s*(\\d+)","i"),C=s._Types._isType,T=s._Types._isArray,N=u._NumberHelper,H=N._generalNumberInt+"."+N._generalNumberDec,E=N._formatObjectToString,P=N._customCultureFormat,O=N._fixNumber,w=s._Types._isNullOrUndefined,k=isNaN,I=function(e){return l.CultureManager._getCultureInfo(e)},A=function(e){return I(e).DateTimeFormat},$=function(e){return I(e).NumberFormat},R=function(e){return e&&e.toLowerCase()},U=function(){throw Error(d().Exp_FormatIllegal)},B=function(){return l.CultureManager.booleanMapping},L={_Empty:"",_format:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];if(0===arguments.length)return p;for(var a=r[0],i=1;i<arguments.length;i++){var o=RegExp("\\{"+(i-1)+"\\}","gm");a=a.replace(o,arguments[i])}return a},_isNullOrEmpty:function(e){return!e||e===L._Empty}},j=function(e){var t=e.charCodeAt(0);return t>=48&&t<=57},G=function(e){var t=e.charCodeAt(0);return t>=9&&t<=13||32===t||133===t||160===t},Y=function(){function e(e,t){ye.call(this,t);this._content=e;var r=this._content,n=ue(r[0],"$",!1),a=r.indexOf("-");if(!(n&&a>-1))throw Error(d().Exp_TokenIllegal);this._currencySymbol=ee(r,1,a-1),(r=i._StringHelper._remove(r,0,a+1)).length>0&&(this._locateID=parseInt(r,16))}return e.prototype.cultureInfo=function(){return this._cultureInfo||(this._cultureInfo=I(this._locateID)),this._cultureInfo},e.prototype.currencySymbol=function(){return this._currencySymbol?i._StringHelper._replace(this._currencySymbol,"\\.",'"."'):L._Empty},e.prototype.allowScience=function(){if(this._cultureInfo)return!this._cultureInfo.isJCKCulture},e.prototype.toString=function(){return this._content?ne(this._content):L._Empty},e.Name="LocaleIDFormatPart",e}(),z=function(){function e(e,t){this.formatCached=e,this.cultureName=t,this.typeName=""}return e.prototype.format=function(e,t){return p},e.prototype.parse=function(e){return p},e.prototype.formatString=function(e){return this.formatCached},e.prototype.toJSON=function(){var e={};for(var t in this)this.hasOwnProperty(t)&&(e[t]=this[t]);return e},e.prototype.fromJSON=function(e){if(e)for(var t in e)void 0!==e[t]&&(this[t]=e[t])},e}();t.FormatterBase=z;var K=function(){function e(e,t){ye.call(this,t);for(var r,n,a,o=this,s=["<=","<>",">=",">","<","="],u=0,l=s.length;u<l;u++)if(r=s[u],i._StringHelper._startsWith(e,r,!0)){n=i._StringHelper._remove(e,0,r.length);var c=parseFloat(n);k(c)||(a=c);break}if(a===p&&void 0===a)throw Error(d().Exp_TokenIllegal);o.value=a,o._compareOperator=r,o.isMeetCondition=function(e){var t=o._compareOperator,r=o.value;switch(t){case"<=":return e<=r;case"<>":return e!==r;case">=":return e>=r;case">":return e>r;case"<":return e<r;case"=":return e===r}}}return e.prototype.toString=function(){return ne(this._compareOperator+this.value.toString())},e}(),W=function(){function e(e,t){ye.call(this,t);if(this.token=e,this.type=parseInt(i._StringHelper._remove(e,0,5),10),this.type<0||this.type>4)throw Error(d().Exp_TokenIllegal)}return e.prototype._replaceNumberString=function(t,r,n){if(!t||t===L._Empty)return t;for(var a,o,s=t,u=t,l=-1,c=-1,m=!1,y=t.length-1;y>=0;y--){var h=u[y];!k(h)&&!ue(h," ",!1)||ue(h,".",!1)&&!m?(ue(h,".",!1)&&(m=!0),-1===l&&(l=y),c=y):c>-1&&l>-1&&(a=ee(u,c,l-c+1),k(parseFloat(a))||(o=e.numberString(a,r,n),s=i._StringHelper._remove(s,c,l-c+1),s=i._StringHelper._insert(s,c,o)),l=-1,c=-1,m=!1)}return c>-1&&l>-1&&(a=ee(u,c,l-c+1),k(parseFloat(a))||(o=e.numberString(a,r,n),s=i._StringHelper._remove(s,c,l-c+1),s=i._StringHelper._insert(s,c,o))),s},e.prototype.toString=function(){if(this.type>-1)return ne("DBNum"+this.type);throw Error()},e.numberString=function(t,r,n){var a=e.formatNumberString,i=t.split(".");if(i){if(1===i.length)return a(i[0],r.numbers,n?r.letters:p);if(2===i.length)return a(i[0],r.numbers,n?r.letters:p)+"."+a(i[1],r.numbers)}throw Error(d().Exp_ValueIllegal)},e.formatNumberString=function(t,r,n){var a,i=t,o=0,s=0;if(2===arguments.length){for(var u="";o<i.length;o++)a=ee(i,o,1),u+=r[s=parseInt(a,10)];return u}if(3===arguments.length){if(!n)return e.formatNumberString(t,r);for(var l=0,c="",m=i.length,y=!1,h=[];o<m;o++){var f=n.length-1-o;f>-1?h.push(n[f].toString()):h.push(L._Empty)}for(var d=[],p=h.length-1;p>=0;p--)d[h.length-p-1]=h[p];h=d;var _=!1;for(p=0;p<m;p++){a=ee(i,p,1),s=parseInt(a,10);var g=void 0,M=L._Empty;m-p-16>0?(g=r[s],M="",_=!0):p!==m-1&&p!==m-5&&p!==m-9&&p!==m-13?"0"===a?(g="",M="",l+=1):"0"!==a&&0!==l?(g=r[0]+r[s],M=h[p],l=0):(g=r[s],M=h[p],l=0):"0"!==a&&0!==l?(g=r[0]+r[s],M=h[p],l=0):"0"!==a&&0===l||_?(g=r[s],M=h[p],l=0,_=!1):"0"===a&&l>=3?(g="",M="",l+=1):m>=11?(g="",l+=1):(g="",M=h[p],l+=1),g+M===L._Empty||(y=!1),p!==m-13||y||(M=h[p],y=!0),p!==m-9||y||(M=h[p],y=!0),p===m-1&&(M=h[p],y=!0),c=c+g+M}return 0===parseInt(t,10)?r[0]:c}},e}(),X=function(){function e(e,t,r,n,a,i){me.call(this,t,r,n,i);this._formatString=this._fixFormat(le(e)),this._absTimeParts=a,this._formatType=2,this._init()}return e.prototype._init=function(){var t={_value:this._formatString};if(e._evaluateFormat(t._value)){var r=this._processAMPM(t),n=A(this.cultureName).amDesignator&&A(this.cultureName).pmDesignator;if(this.hasJD=this._replace(t._value,g._monthJD,'"'+g._placeholderMonthJD+'"',!0,!1,t,!1),this._replace(t._value,g._monthUnabbreviated,"MMMM",!0,!1,t,!1),this._replace(t._value,g._monthAbbreviation,"MMM",!0,!1,t,!1),this._replaceMonth(t._value,t),this._replace(t._value,g._dayWeekDayAbbreviation,"ddd",!0,!0,t,!0),this._replace(t._value,g._dayWeekDayUnabbreviated,"dddd",!0,!0,t,!0),r&&n||(this._replace(t._value,g._hoursSingleDigit,"H",!0,!0,t,!1),this._replace(t._value,g._hoursTwoDigit,"HH",!0,!0,t,!1)),this._partDBNumberFormat&&(this._partLocaleID||I(this.cultureName).NumberFormat.dbNumber)&&(this._hasYearDelay=this._hasYearDelay||this._replace(t._value,g._yearFourDigit,'"@'+g._yearFourDigit+'"',!0,!1,t,!0),this._hasYearDelay=this._hasYearDelay||this._replace(t._value,g._yearTwoDigit,'"@'+g._yearTwoDigit+'"',!0,!1,t,!0)),this._absTimeParts)for(var a=0;a<this._absTimeParts.length;a++){var i=this._absTimeParts[a];this._replace(t._value,i._originalToken,"@"+i._originalToken,!0,!0,t,!0)}this._validDateTimeFormatString=t._value}else U()},e.prototype.formatString=function(){return this._formatString},e.prototype.format=function(e){var t=L._Empty,r=p;try{if((r=o._DateTimeHelper._DT(e))&&k(r.valueOf())&&(r=p),r?e=r:t=e.toString(),r){if(t=o._DateTimeHelper._customCultureFormat(r,this._validDateTimeFormatString,this._partLocaleID&&this._partLocaleID.cultureInfo()||I(this.cultureName),this._isShowEraFirstYear),this.hasJD){var n=I(this.cultureName).DateTimeFormat.monthNames[r.getMonth()];t=i._StringHelper._replace(t,g._placeholderMonthJD,ee(n,0,1))}if(this._absTimeParts)for(var a=24*(o._DateTimeHelper._toOADate(r)-o._DateTimeHelper._toOADate(g._defaultAbsoluteTime))*60*60*1e3,s=0;s<this._absTimeParts.length;s++){var u=this._absTimeParts[s],l=u._getTimeSpan(a);if(!w(l)){var c=u._originalToken.replace("[","\\[").replace("]","\\]"),m=u._originalToken.replace("[","").replace("]",""),y=i._StringHelper._padZeroLeft(l+"",m.length);t=i._StringHelper._replace(t,"@"+c,y)}}}}catch(r){t=te(e)}return function(e,t,r,n,a){var i=e;if(!w(n)&&t instanceof Date){var s=fe(r,n.type,a);if(!s)return e;i=n._replaceNumberString(i,s,!0),1===n.type&&(i=i.replace(RegExp("一十","g"),"十")),i=(i=i.replace("@"+g._yearFourDigit,o._DateTimeHelper._localeFormat(t,g._yearFourDigit))).replace("@"+g._yearTwoDigit,o._DateTimeHelper._localeFormat(t,g._yearTwoDigit)),i=n._replaceNumberString(i,s,!1)}return i}(t,e,this._partLocaleID,this._partDBNumberFormat,this.cultureName)},e.prototype.parse=function(e){if(!e||e===L._Empty)return p;var t=e,r=R(t);if("true"===r)return!0;if("false"===r)return!1;if(this._validDateTimeFormatString){var n=o._DateTimeHelper._parseExact(t,this._validDateTimeFormatString,I(this.cultureName));if(n)return n}try{var a=o._DateTimeHelper._DT(t);return a&&!k(a)?a:k((a=new Date(t)).valueOf())?t:a}catch(e){return t}},e.prototype._fixFormat=function(e){for(var t=e,r="",n=!1,a=0;a<t.length;a++){var i=t[a];if('"'===i)n=!n;else if(!n)if("Y"===i||"D"===i||"S"===i||"E"===i||"G"===i)i=R(i);else if("M"===i){var o=t[a-1];ue("A",o,!0)||ue("P",o,!0)||(i=R(i))}r+=i}return r},e.prototype._processAMPM=function(e){var t=A(this.cultureName).amDesignator,r=A(this.cultureName).pmDesignator,n=[g._aMPMTwoDigit];t&&r?n.push(t+"/"+r):n.push(g._aMPMTwoDigit),n.push(g._aMPMSingleDigit);for(var a=["tt","tt","t"],o=e._value,s=0;s<3;s++){if(i._StringHelper._contains(o,a[s]))return!0;if(i._StringHelper._contains(o,n[s],!0))return e._value=i._StringHelper._replace(o,n[s],a[s],!0),!0}return!1},e.prototype._replaceMonth=function(e,t){for(var r=function(e){for(var t=[],r=!1,n=!1,a="",i=function(e,t){return{type:e,content:t}},o=function(e){return!w(e)&&-1!=="yYdDhHmMsSeE".indexOf(e)},s=function(r,n){if(o(r)){for(var a=r,s=e[n+1];o(s)&&s.toLowerCase()===r.toLowerCase()&&(a+=s,n<e.length-1);)n++,s=e[n+1];t.push(i("symbolic",a))}else"a"===r&&"aaa"===e.slice(n,n+3).toLowerCase()?(t.push(i("symbolic",e.slice(n,n+3))),n+=2):t.push(i("text",r));return n},u=0;u<e.length;u++){var l=e[u];if(r)t.push(i("text","\\"+l)),r=!1;else if(n&&'"'!==l)a+=l;else switch(l){case"\\":r=!0;break;case'"':n&&(t.push(i("text",'"'+a+'"')),a=""),n=!n;break;default:u=s(l,u)}}return t}(e),n=-1,a=-1,i=0;i<r.length;i++){var o=r[i];"symbolic"===o.type?"m"===o.content[0].toLowerCase()?n>=0?(o.content=o.content.toLowerCase(),n=-1):(o.content=o.content.toUpperCase(),a=i):"s"===o.content[0].toLowerCase()?a>=0&&(r[a].content=r[a].content.toLowerCase(),a=-1):"h"===o.content[0].toLowerCase()?(n=i,a=-1):a=-1:a>=0&&i>0&&"0"===o.content&&"."===r[i-1].content&&i===a+2&&(r[a].content=r[a].content.toLowerCase())}t._value=r.map((function(e){return e.content})).join("")},e.prototype._replace=function(t,r,n,a,o,s,u){if(a||o){var l=[],c=!0;!e.hasDate(t)&&e.hasTime(t)&&(c=!1);for(var m=!1,y=0;y<t.length;y++){var h=t[y];if(e.hasTime(h)&&!m?c=!1:e.hasDate(h)&&!m&&(c=!0),a&&ue(h,r[0],u)&&c||o&&ue(h,r[0],u)&&!c){for(var f=!0,d=0;d<r.length;d++)if(d+y>=t.length||!ue(r[d],t[d+y],u)){f=!1;break}var p=y+r.length-1;if(f&&p+1<t.length){var _=t[p],g=-1;for(g=p+1;g<t.length&&ue(_,t[g],u);g++);g>p+1&&(y=g,f=!1)}f&&!m&&l.splice(0,0,y)}'"'===h&&(m=!m)}if(s._value=t,l.length>0){for(y=0;y<l.length;y++){var M=l[y];s._value=i._StringHelper._remove(s._value,M,r.length),s._value=i._StringHelper._insert(s._value,M,n)}return!0}return!1}return!1},e.hasTime=function(e){return i._StringHelper._indexOf(e,g._hoursSingleDigit[0],!0)>-1||i._StringHelper._indexOf(e,g._secondSingleDigit[0],!0)>-1},e.hasDate=function(e){return i._StringHelper._indexOf(e,g._yearTwoDigit[0],!0)>-1||i._StringHelper._indexOf(e,g._daySingleDigit[0],!0)>-1},e._evaluateFormat=function(e,t){return ce(e,t||M)},e}();t._NumberFormatDateTime=X;var J=function(){function e(e,t){ye.call(this,t);var r,n=R(e)[0];if("h"===n)r=3600;else if("m"===n)r=60;else{if("s"!==n)throw Error(d().Exp_TokenIllegal);r=1}this._getTimeSpan=function(e){var t=e/1e3/r;return Math.abs(t-Math.round(t))<1e-6?Math.round(t):Math.floor(t)}}return e.Name="ABSTimeFormatPart",e}(),V=function(){function e(e,t){ye.call(this,t);var r=x.exec(e);if(null!==r){var n=Number(r[1]);(n-=1)>=0&&n<D.length&&(e=D[n])}this.foreColor=e}return e.prototype.toString=function(){return ne(this.foreColor)},e.Name="ColorFormatPart",e}(),q=function(){function e(e,t,r,n){me.call(this,t,r,n);this._isGeneralNumber=!1,this._formatType=1,this._fullFormatString=ae(e);var a=le(e);if(t&&(a=oe(a,this._partLocaleID._originalToken,this._partLocaleID.currencySymbol())),(a=ae(a)).indexOf("/")>-1){var i=function(e,t){var r=[];if(e===p||""===e)return r;var n,a,i=!1,o=[],s=!1;for(n=0;n<e.length;n++)'"'!==(a=e[n])||i||(s=!s),i||s||a!==t?o.push(a):(r.push(o.join("")),o=[]),i="\\"===a&&!i;return r.push(o.join("")),r}(a,"/");if(i&&2===i.length){this._fractionDenominatorFormat=i[1];var o=i[0];if(o){var s=o.lastIndexOf(" ");s>-1?(this._fractionIntegerFormat=ee(o,0,s),this._fractionNumeratorFormat=ee(o,s+1,o.length-s-1)):this._fractionNumeratorFormat=o}}}this._numberFormatString=a}return e.prototype.formatString=function(){return this._fullFormatString},e.prototype.format=function(t){if(C(t,"boolean"))return t.toString().toUpperCase();var r=s._Types._toDouble(t);if(k(r)||!isFinite(r)||k(t))return"string"==typeof t?t:p;var n,a,i,o,u,l=I(this.cultureName);if(this._fractionNumeratorFormat&&this._fractionDenominatorFormat){var c={value:0},m={value:0},y={value:0},h=this._getDenominatorLength();if(e.getFraction(r,h,c,m,y)){var f=e.getGCD(m.value,y.value);if(f>1&&(m.value/=f,y.value/=f),this._fractionIntegerFormat){u="",1===y.value&&(c.value+=m.value,m.value=0,y.value=0);var d=E(P(c.value,this._fractionIntegerFormat,l));d&&"0"!==d&&(u+=d,u+=" "),0===c.value&&r<0&&(u+=l.NumberFormat.negativeSign),0===r&&(u+="0"),n=this._fractionDenominatorFormat,!k(a=parseFloat(n))&&a>0&&(0!==m.value&&0!==y.value&&(m.value*=a/y.value),y.value=a,n=n.replace(/^\d+/,e.toNumberPlaceholder(a)),o=(i=Math.ceil(m.value))-m.value,m.value=parseFloat(o<=.5&&o>=0?i.toString():""+(i-1)));var _=this._fractionNumeratorFormat,g=parseFloat(_);if(!k(g)&&0===g){var M=_.length,v=m.value.toString(),b=v.length;M>b?_=_.substr(0,M-(M-b)):M<b&&(v=v.substr(0,b-(b-M)),m.value=parseInt(v,10))}var F=this._getFormattedFractionString(m.value,y.value,_,n,l);return 0===m.value&&(F=F.replace(/./g," "),""===d)?"0 "+F:""===(u+=F)?"0":u}u="";var S=c.value*y.value+m.value;return n=this._fractionDenominatorFormat,(a=parseFloat(n))>0?(S*=a/y.value,y.value=a,u+=(S=parseFloat((o=(i=Math.ceil(S))-S)<=.5&&o>=0?i.toString():""+(i-1)))+"/"+y.value):u+=this._getFormattedFractionString(S,y.value,this._fractionNumeratorFormat,this._fractionDenominatorFormat,l),0===S?"0":u}return r.toString()}return function(e,t,r,n,a){if(!w(n)){var i=fe(r,n.type,a);if(!w(i)){for(var o=!1,s=void 0,u=I(a),l=void 0,c=0,m=e.length;c<m;c++)"decimalSeparator"===e[c].type&&(o=!0,e[c].value=n._replaceNumberString(e[c].value,i,t),s=e[c].value),"number"===e[c].type&&(e[c].value=o?n._replaceNumberString(s+e[c].value,i,t).slice(1):n._replaceNumberString(e[c].value,i,t),"ja-JP"===u.name()&&e[c].value.length>1&&("一千"!==(l=e[c].value.substr(0,2))&&"一百"!==l&&"一十"!==l||(e[c].value=e[c].value.substr(1))));return e}}return e}(P(r,this._numberFormatString,l),this._isGeneralNumber,this._partLocaleID,this._partDBNumberFormat,this.cultureName)},e.prototype.parse=function(e){if(!e||e===L._Empty)return p;var t=function(e){return e&&e.toUpperCase()}(e);if("TRUE"===t||t===B()&&B().boolean_true)return!0;if("FALSE"===t||t===B()&&B().boolean_false)return!1;var r="("===e.charAt(0)&&")"===e.charAt(e.length-1);r&&(e=e.substring(1,e.length-1));var n=this._fractionNumeratorFormat&&this._fractionDenominatorFormat,a=this._trimPercentSign(this._numberFormatString)._isPer;if(n||a){var o=0;if(n&&this._fractionIntegerFormat){var s=(e=e.trim()).lastIndexOf(" ");0<s&&s<e.length-1&&(o=parseInt(e.substr(0,s),10),e=e.substr(s+1))}var u=e.indexOf("/");if(0<u&&u<e.length-1){var l=e.substr(0,u),c=e.substr(u+1);if(!k(l)&&!k(c)){var m=parseInt(l,10),y=parseInt(c,10);if(!k(m)&&!k(y)&&0!==y)return o+m/y}}}e=this._trimSpecialSymbol(e),e=this._trimCurrencySymbol(e);var h=this._trimPercentSign(e),f=h._isPer,d=h._str;if(this._isValidNumberString(d)){d=i._StringHelper._replaceAllNoReg(d,$(this.cultureName).numberGroupSeparator,"",!1);var g=N._parseFloat(d,this.cultureName);if(!k(g)&&isFinite(g)){if(f&&(g=O(g/100,15)),r){if("-"===d.charAt(0)||"+"===d.charAt(0))return p;g=-1*_(g)}return g}}return p},e.prototype._getDenominatorLength=function(){var e=this._fractionDenominatorFormat,t=0;if(e)for(var r=e.length,n=0;n<r&&e[n].match(/[#?\d]/);n++)t++;return t},e.prototype._isValidNumberString=function(e){for(var t="",r=0,n=0,a=0,i=p,o=$(this.cultureName),s=e.length-1;s>-1;s--){if(e[s]===o.numberDecimalSeparator)r++,a>0&&(i=!1),t="";else if("e"===R(e[s])){if(n++,t="",s===e.length-1)return!1}else if(e[s]===o.numberGroupSeparator)i=3===t.length,a++,t="";else if("-"===e[s]||"+"===e[s]){if(s>0&&"e"!==R(e[s-1]))return!1}else{if(!j(e[s]))return!1;if(t+=e[s],0===s&&0===parseInt(t,10)&&i)return!1}if(r>1||n>1||!1===i)return!1}return!0},e.prototype._trimSpecialSymbol=function(e){for(var t=e,r=[],n=0;n<t.length;n++)j(t[n])&&r.push(n);for(var a=$(this.cultureName),o=[a.currencyDecimalSeparator,a.currencyGroupSeparator,a.currencySymbol,"$",a.nanSymbol,a.negativeInfinitySymbol,a.negativeSign,a.numberDecimalSeparator,a.numberGroupSeparator,a.percentDecimalSeparator,a.percentGroupSeparator,a.percentSymbol,a.perMilleSymbol,a.positiveInfinitySymbol,a.positiveSign],s=t.length-1;s>-1;s--){var u=t[s];if(G(u)&&o.indexOf(u.toString())<=-1)(s<r[0]||r[r.length-1]<s)&&(t=i._StringHelper._remove(t,s,1));else if("-"===u||"+"===u){var l=s>0?t[s-1].toString():p;if(["e","E","(",$(this.cultureName).currencySymbol,"$"].indexOf(l)<0)break}}return t},e.prototype._trimCurrencySymbol=function(e){if(i._StringHelper._startsWith(e,"$")){if((t=i._StringHelper._remove(e,0,1)).indexOf("$")<0)return t}else{var t,r=$(this.cultureName).currencySymbol;if("$"!==r&&i._StringHelper._startsWith(e,r)&&(t=i._StringHelper._remove(e,0,r.length)).indexOf(r)<0)return t}return e},e.prototype._trimPercentSign=function(e){var t=$(this.cultureName).percentSymbol,r=!0,n=e;return i._StringHelper._startsWith(e,t)?n=i._StringHelper._remove(e,0,t.length):i._StringHelper._endsWith(e,t)?n=i._StringHelper._remove(e,e.length-t.length,t.length):r=!1,i._StringHelper._contains(n,t)&&(r=!1),{_str:n,_isPer:r}},e.prototype._getFormattedFractionString=function(e,t,r,n,a){var i=E(P(e,r,a)),o=E(P("0."+t,"#."+n,a,!0)),s=a&&a.NumberFormat&&a.NumberFormat.numberDecimalSeparator||".",u=i+"/"+o.substr(o.indexOf(s)+1);return""===r&&(u=e+u),""===n&&(u+=t),u},e.getGCD=function(e,t){if(0===e)return _(t);if(0===t)return _(e);for(var r=Math.max(e,t),n=Math.min(e,t),a=r%n;0!==a;)a=(r=n)%(n=a);return _(n)},e.getFraction=function(e,t,r,n,a){var i=0,o=0,s=0,u=0,l=Math.ceil;e>0?1==(u=e-l(e)+1)?(u=0,i=e):i=l(e)-1:e<0&&(i=l(e),u=l(e)-e);var c=Math.pow(10,t-1),m=Math.pow(10,t)-1;c<2&&(c=2),m<2&&(m=2);for(var y=!1,h=0,f=c;f<=m;f++){var d=Math.round(f*u),p=d/f,g=_(p-u);if((!y||g<_(h-u))&&(y=!0,h=p,o=d,s=f,g<1e-6))break}return r.value=i,n.value=o,a.value=s,y},e.toNumberPlaceholder=function(e){return e.toString().replace(/\d/g,"?")},e}(),Z=function(){function e(t,r,n,a){me.call(this,r,n,a),arguments.length>0?(e._isValidNumberFormatString(t)||U(),this._fullFormatString=t):this._fullFormatString="General",this._formatType=0}return e._isValidNumberFormatString=function(e){for(var t="",r=!1,n=-1,a=e.length,i=0;i<a;i++){var o=e[i];'"'===o?n=(r=!r)?i:-1:r||(t+=o)}return n>0&&(t+=e.substring(n,a)),!(t.indexOf("0")>=0||t.indexOf("#")>=0||t.indexOf(".")>=0||t.indexOf("@")>=0)},e.prototype._getDigitalFormat=function(){if(!this._digitalFormat){var e=this._fullFormatString;e=oe(e,"General",H),this._digitalFormat=new q(e,this._partLocaleID,this._partDBNumberFormat,this.cultureName),this._digitalFormat._isGeneralNumber=!0}return this._digitalFormat},e.prototype._getExponentialDigitalFormat=function(){return this._exponentialDigitalFormat||(this._exponentialDigitalFormat=new q("0.#####E+00",this._partLocaleID,this._partDBNumberFormat,this.cultureName),this._exponentialDigitalFormat._isGeneralNumber=!0),this._exponentialDigitalFormat},e.prototype.formatString=function(){return i._StringHelper._replace(this._fullFormatString,"@NumberFormat","General")},e.prototype.format=function(e){if(s._Types._isNumber(e,this.cultureName)){var t=!this._partLocaleID||this._partLocaleID.allowScience(),r=s._Types._toDouble(e);if(void 0!==r&&r!==p)return _(r)>99999999999&&t||_(r)<1e-11&&0!==r?this._getExponentialDigitalFormat().format(e):this._getDigitalFormat().format(e)}else{if(C(e,"string")){var n=i._StringHelper._replace(this.formatString(),'"',"");return n=se(n),e}if(C(e,"boolean"))return e.toString().toUpperCase()}return""},e.prototype.parse=function(e){if(L._isNullOrEmpty(e))return p;if("number"==typeof e)return e;var t=!1,r=e.trim(),n=i._StringHelper._indexOf(r,"-",!1);n>0&&!ue(r.charAt(n-1),"E",!0)&&(t=!0);var a,s=I(this.cultureName),u=s.DateTimeFormat,c=u.dateSeparator,m=u.timeSeparator,y=u.monthNames,h=u.abbreviatedMonthNames,f=function(e,t){if(!t||0===t.length)return!1;for(var r=!1,n=0,a=t.length;n<a;n++)if(i._StringHelper._contains(e,t[n],!0)){r=!0;break}return r};if(t||i._StringHelper._contains(r,c,!1)||i._StringHelper._contains(r,m,!1)||i._StringHelper._contains(r,"/",!1)||i._StringHelper._contains(r,":",!1)||i._StringHelper._contains(r,"-",!1)||i._StringHelper._contains(r,"年",!1)||i._StringHelper._contains(r,"月",!1)||i._StringHelper._contains(r,"日",!1)||f(r,y)||f(r,h)||"ja-JP"===s.name()&&l._EraHelper._symbols.indexOf(r[0].toUpperCase())>=0&&i._StringHelper._contains(r,".",!1)){var d=o._DateTimeHelper._parseLocale(r);if(d)return d}var g,M="-"===r.charAt(0);if(M||"+"===r.charAt(0)){if("("===(r=i._StringHelper._remove(r,0,1)).charAt(0)&&")"===r.charAt(r.length-1))return e}else if("("===r.charAt(0)&&")"===r.charAt(r.length-1)&&(g=!0,"-"===(r=(r=r.substring(1,r.length-1)).trim()).charAt(0)||"+"===r.charAt(0)))return e;return(a=this._getDigitalFormat().parse(r))!==p&&void 0!==a?g&&C(a,"boolean")?e:(g||M)&&C(a,"number")?-1*_(a):a:e},e}(),Q=function(){function e(e,t,r,n){me.call(this,t,r,n);var a=le(e,!1);t&&(a=oe(a,this._partLocaleID._originalToken,this._partLocaleID.currencySymbol())),a=se(a=ae(a)),this._formatString=a,this._formatType=3}return e.prototype.format=function(e,t){try{var r;r=e instanceof Date?o._DateTimeHelper._toOADate(e).toString():te(e);var n=this._parseFormat(this._formatString);return this._toFormattedObject(r,n.formatTokens,e,n.hasAtPart,t)}catch(e){return""}},e.prototype.parse=function(e){return e||""},e.prototype.formatString=function(){return this._formatString},e.prototype._parseFormat=function(e){for(var t,r=[],n=!1,a="",i=!1,o=p,s=0;s<e.length;s++)t=e.charAt(s),i?('"'!==t?a+=t:(a+=t,r.push(a),a="",i=!1),o=t):"*"!==o&&"_"!==o&&"\\"!==o||""===a?"*"!==t&&"_"!==t&&"\\"!==t?"@"!==t?'"'!==t?(a+=t,o=t):(o=t,""!==a&&r.push(a),a=t,i=!0):(o=t,""!==a&&(r.push(a),a=""),r.push(t),n=!0):(o=t,""!==a&&(r.push(a),a=""),a+=t):(a+=t,r.push(a),a="");return""!==a&&r.push(a),{formatTokens:r,hasAtPart:n}},e.prototype._toFormattedObject=function(e,t,r,n,a){var i=[],o=!1;if("string"!=typeof r||n||a)for(var s=t.length-1;s>=0;s--){var u=t[s];"*"===u[0]?o||(o=!0,i.push({type:"fillingChar",value:u[1]})):"_"===u[0]?i.push({type:"placeholder",value:u[1]}):'"'===u[0]&&'"'===u[u.length-1]?u.length>=2&&i.push({type:"text",value:u.substr(1,u.length-2)}):"\\@"===u?i.push({type:"text",value:"@"}):"@"===u[0]?i.push({type:"text",value:e}):i.push({type:"text",value:u})}else i.push({type:"text",value:r});return i.reverse()},e}();function ee(e,t,r){return e.substr(t,r)}function te(e){return s._Types._isNullOrUndefined(e)?"":"boolean"==typeof e?e?"TRUE":"FALSE":"string"==typeof e?e:e.toString()}function re(e,t){if("\\"===e[t])throw Error(d().Exp_InvalidBackslash);if(t-1>0&&t-1<e.length&&"\\"===e[t-1]){if(t-2<0)return!0;if(t-2>0&&t-2<e.length)return"\\"!==e[t-2]}return!1}function ne(e){if(!e)throw Error(d().Exp_TokenIsNull);return"["+e+"]"}function ae(e){if(void 0===e||e===p||""===e)return e;for(var t="",r=0,n=!1,a=0;a<e.length;a++){var i=e[a];'"'===i?(n=!n,t+=i):n?t+=i:"["===i?r++:"]"===i?--r<0&&(r=0):0===r&&(t+=i)}return t.toString()}function ie(e){return e=oe(e,"[",""),oe(e,"]","")}function oe(e,t,r){return!e||e===L._Empty||ue(t,r,!0)?e:(t=t.replace(F,"\\$1"),e.replace(RegExp(t,"g"),r))}function se(e){for(var t=e.length,r=!1,n="",a=0;a<t;a++){var i=e.charAt(a);"\\"===i?(r=!r)&&"@"!==e.charAt(a+1)||(n+=i):(r=!1,n+=i)}return n}function ue(e,t,r){return r?R(e)===R(t):e===t}function le(e,t){1===arguments.length&&(t=!0);for(var r=!1,n="",a=0;a<e.length;a++){var i=e[a];if('"'===i)r=!r;else if(!r&&!t&&"/"===i&&!re(e,a))continue;n+=i}return n}function ce(e,t){if(!e||e===L._Empty)return!1;for(var r=function(e){for(var t="",r=!1,n=0,a=e.length;n<a;n++){var i=e[n];'"'===i&&(r=!r),"E"===i||r||(t+=R(i))}return t}(le(e)),n=0;n<t.length;n++){var a=r.indexOf(t[n]);if(0===a||a>0&&"_"!==r[a-1]&&"*"!==r[a-1])return!0}return!1}function me(e,t,r,n){this._partLocaleID=e,this._partDBNumberFormat=t,this.cultureName=r,this._isShowEraFirstYear=n}function ye(e){this._originalToken=e}function he(e){var t,r=ie(e);if(!r||r===L._Empty)return t;var n=r[0];return["<",">","="].indexOf(n)>-1?(t=K).Name="ConditionalFormatPart":i._StringHelper._startsWith(r,"DBNum",!0)?(t=W).Name="DBNumberFormatPart":ue(r[0],"$",!1)&&r.indexOf("-")>-1?(t=Y).Name="LocaleIDFormatPart":function(e){var t=R(e),r=t[0];if("h"!==r&&"m"!==r&&"s"!==r)return!1;for(var n=1;n<t.length;n++)if(r!==t[n])return!1;return!0}(r)?(t=J).Name="ABSTimeFormatPart":r.indexOf("$")<0&&r.length>=3&&((t=V).Name="ColorFormatPart"),t}function fe(e,t,r){var n;if(n=e?e.cultureInfo():I(r),t<4||4===t&&("ko-kr"===r||"ko-kr"===n.name())){var a=n.NumberFormat.dbNumber;if(a)return a[t]}return p}var de=function(){function e(e,t){0===arguments.length?(this.formatCached="General",this._numberFormat=new Z):this._init(e,t)}return e.prototype._init=function(t,r){t!==p&&void 0!==t||U();var n=t;this.formatCached=t;for(var a="",i="",o=!1,s=!1,u=!1,c=[],m=0;m<t.length;m++){var y=t[m];if('"'===y)s=!s,i+=y;else if(s)i+=y;else if("["===y)o&&U(),i&&(a||(a=""),a+=i),i=y.toString(),o=!0;else if("]"===y){if(o||U(),i){var h=(i+=y).toString(),f=he(i.toString());if(f)"ABSTimeFormatPart"===f.Name?(c.push(new f(e.preProcessPart(h),h)),a+=i):h===l._EraHelper.eraExcelFormatter?(this.addPart(f,l._EraHelper.eraInternalFormatter),u=!0):this.addPart(f,h);else{var d=e.partToNormalStr(h);a+=d,n=oe(t,h,d)}i=""}else U();o=!1}else i+=y}i?o?U():a+=i:a||(a=this._getDBNumberDefaultFormat()),this.localeIDFormatPart&&(r=this.localeIDFormatPart.cultureInfo().name());var _=function(e,t){var r,n=!1;return ce(e=e?e.toString():L._Empty,["general"])?r=Z:X._evaluateFormat(e)?r=X:ce(e,["E+","E-","#",".",",","%","0","/","?"])||t?(n=!0,r=q):(n=!0,r=Q),{_isDigitalOrText:n,_type:r}}(a,this.conditionalFormatPart),g=_._type,M=_._isDigitalOrText?n:a;g?this._numberFormat=new g(M,this.localeIDFormatPart,this.dbNumberFormatPart,r,c.length>0?c:p,u):U()},e.prototype._getDBNumberDefaultFormat=function(){var t=this,r="";return t.dbNumberFormatPart&&(e.proNames.some((function(e){return"dbNumberFormatPart"!==e&&t[e]}))||(r="General")),r},e.prototype.formatString=function(){for(var t="",r=0,n=e.proNames.length;r<n;r++){var a=e.proNames[r];this[a]&&(t+=this[a].toString())}return t+this._numberFormat.formatString()},e.prototype.addPart=function(t,r){for(var n=e.proNames,a=e.preProcessPart(r),i=0,o=n.length;i<o;i++){var s=n[i];if(ue(s,t.Name,!0)){if(this[s])throw Error(d().Exp_DuplicatedDescriptor);this[s]=new t(a,r)}}},e.prototype.format=function(e,t){return this._numberFormat.format(e,t)},e.prototype.parse=function(e){return this._numberFormat.parse(e)},e.checkFormatter=function(e){if(!e||e===L._Empty)throw Error(d().Exp_TokenIllegal)},e.preProcessPart=function(t){e.checkFormatter(t);var r=ie(t);return e.checkFormatter(r),r},e.partToNormalStr=function(t){var r=e.preProcessPart(t);return"$"===r[0]&&(r=r.slice(1)),'"'+r+'"'},e.proNames=["colorFormatPart","conditionalFormatPart","dbNumberFormatPart","localeIDFormatPart"],e}(),pe=function(e){function t(t,r){var n=e.call(this,t,r)||this,a=n;return a._isSingleFormatterInfo=!0,a.PropertyChanged=[],L._isNullOrEmpty(t)&&(t="General"),a.formatCached=t,a.cultureName=r,a.init(),n}return a(t,e),t.prototype.toJSON=function(){var e={formatCached:this.formatCached};return this.cultureName&&(e.customerCultureName=this.cultureName),"general"===R(this.formatCached)&&delete e.formatCached,e},t.prototype.hasFormattedColor=function(){for(var e in v)if(v.hasOwnProperty(e)){var t=this.getFormatter(v[e]);if(t&&t.colorFormatPart)return!0}return!1},t.prototype.formatString=function(e){if(0===arguments.length){for(var t=L._Empty,r=0,n=this.formatters.length;r<n;r++){t+=this.formatters[r].formatString(),r!==n-1&&(t+=";")}return t}if(!e)throw Error(d().Exp_ValueIsNull);return this.formatters=p,this.formatCached=e,this.init(),this._raisePropertyChanged("formatString"),this},t.prototype.getFormatter=function(e){return this.formatters&&this.formatters[e]},t.prototype.getPreferredEditingFormatter=function(e){var r,n=A(this.cultureName),a=$(this.cultureName),i=t.defFormatter;if(C(e,"TimeSpan"))return i(n.longTimePattern);if(C(e,"DateTime")){var o=0===e.getHours()&&0===e.getMinutes()&&0===e.getSeconds()&&0===e.getMilliseconds()?"":" h:mm:ss";return i(n.shortDatePattern+o)}if(s._Types._isNumber(e,this.cultureName)){var u=s._Types._toDouble(e);return i(u>=1e21||u<=1e-17&&u>0||u<=-1e21||u<0&&u>=-1e-17?null!==(r=a.scientificNotation)&&void 0!==r?r:"0.##############E+00":H)}return i("General")},t.prototype.getPreferredDisplayFormatter=function(e,r){var n=t.defFormatter;if(r||(r={value:p}),r.value=p,L._isNullOrEmpty(e))return new t;var a=e,u=r.value=this.parse(a);if(C(u,"DateTime")||C(u,"TimeSpan")){var l={pattern:S,formatter:["d-mmm","mmm-yy",A().shortDatePattern,"h:mm","h:mm:ss","h:mm:ss.0","h:mm:ss tt",A().shortDatePattern+" h:mm",A().shortDatePattern+" h:mm:ss",A().shortDatePattern+" h:mm:ss.0"]},c=l.pattern,m=l.formatter,y=I(this.cultureName),h=y.DateTimeFormat,f=h.preselectedFormatters;if(f.length>0&&(c=c.concat([f]),m=m.concat([f[0]])),"ja-JP"===y.name()){c=c.concat([h.eraFormatter]),m=m.concat(["ge.M.d"]);var d=y._eraFormatter.filter((function(e){return"ggge"===e.substr(0,4)}));c=c.concat([d]),m=m.concat(['ggge"年"M"月"d"日']);var _=y._eraFormatter.filter((function(e){return"gge"===e.substr(0,3)}));c=c.concat([_]),m=m.concat(['gge"年"M"月"d"日']);var g=y._eraFormatter.filter((function(e){return"ge"===e.substr(0,2)}));c=c.concat([g]),m=m.concat(['ge"年"M"月"d"日'])}for(var M=0;M<c.length;M++)for(var v=c[M],b=0;b<v.length;b++){var F=v[b],D=o._DateTimeHelper._parseLocale(e,F);if(D&&D-u==0)return new t(m[M])}}else if(s._Types._isNumber(u,this.cultureName)){var x=$(this.cultureName),T=x.currencySymbol,N=x.numberDecimalSeparator,H=x.percentSymbol,E=x.numberGroupSeparator,P=i._StringHelper._contains,O=P(a,N)?".00":"";if(a[0]===T)return n(L._format("{0}#,##0{1};[Red]({0}#,##0{1})",T,O));if(P(a,"E",!0))return n("0.00E+00");if(a[0].toString()===H||a[a.length-1].toString()===H)return n(L._format("0{0}%",O));if(P(a,E))return n(L._format("#,##0{0}",O))}return n("General")},t.prototype.format=function(e,t){if(C(e,"boolean"))return B()&&(e=e?B().boolean_true:B().boolean_false),e.toString().toUpperCase();var r,n=0,a=this._getFormatInfo(e);if(a){var i=a.colorFormatPart;t&&i&&(t.conditionalForeColor=t.value=i.foreColor),(r=s._Types._isNumber(e,this.cultureName))&&(n=s._Types._toDouble(e));var o=L._Empty;try{if(r&&a===this.getFormatter(v._negative)&&0!==this.expressionNumber)(o=a.format(a.considerNegSymbol?n:_(n)))===p&&C(e,"string")&&(o=e);else if(void 0===(o=a.value)){var u=!this._isSingleFormatterInfo&&a===this.getFormatter(v._text);o=a.format(e,r||u)}t&&(t.content=T(o)?o:[{type:"text",value:o}]),T(o)&&(o=N._formatObjectToString(o))}catch(t){C(e,"string")&&(o=e.toString())}return o}return r&&n<0?"-":C(e,"string")?e.toString():void 0===e||e===p?L._Empty:e.toString()},t.prototype.parse=function(e){return this.formatters&&this.formatters.length>0?this.formatters[0].parse(e):p},t.prototype.init=function(){var e=this.formatCached;L._isNullOrEmpty(e)&&U(),this.formatters=[];var t=function(e){for(var t=[],r=0,n=0,a=e.length,i=0;i<a;i++)"_"===e[i]?r++:(";"!==e[i]||0!==r&&r%2!=0||(t.push(e.substring(n,i)),n=i+1),r=0);return n<=a&&t.push(e.substring(n,a)),t}(e);this._isSingleFormatterInfo=1===t.length,(!t||t.length<1||t.length>4)&&U();for(var r=0;r<t.length;r++){-1!==t[r].indexOf("@")&&-1===t[r].indexOf("\\@")&&(r!==t.length-1?U():this.hasAt=!0);var n=new de(t[r],this.cultureName);this.formatters.push(n)}this.getFormatter(v._positive)||U(),this._refreshFormatPart()},t.prototype._refreshFormatPart=function(){this.expressionNumber=this.formatters.length-(this.hasAt?1:0);var e=(0===this.expressionNumber?1:this.expressionNumber)-1;v=s._Types._extend({},b[e]),this.hasAt&&0!==this.expressionNumber&&(v._text=this.formatters.length-1)},t.prototype._getFormatInfo=function(e){this._refreshFormatPart();var t=this.getFormatter(v._positive),r=t&&t.conditionalFormatPart,n=this.getFormatter(v._text);if(r&&(v._zero=2,this.hasAt||(v._text=3)),"string"==typeof e&&k(e))return n||(r?e:t);if(s._Types._isNumber(e,this.cultureName)||C(e,"boolean")){var a=this.getFormatter(v._negative),i=this.getFormatter(v._zero),o=s._Types._toDouble(e),u=r&&t.conditionalFormatPart.isMeetCondition(o),l=a&&a.conditionalFormatPart,c=l&&a.conditionalFormatPart.isMeetCondition(o),m=void 0;if(this._isSingleFormatterInfo||(r?u:o>0||0===o&&!i))m=t;else if(l?c:o<0)m=a;else if(i)m=i;else if(a){if(r&&l)return{value:o+""};m=a}return m&&(!r||l||m!==a||i||(m.considerNegSymbol=!0),r&&l&&m===a&&a.conditionalFormatPart&&a.conditionalFormatPart.isMeetCondition(1e-10)&&(m.considerNegSymbol=!0),this.expressionNumber<=1&&(m.considerNegSymbol=!0)),m}return p},t.prototype._raisePropertyChanged=function(e){if(this.PropertyChanged)for(var t=0;t<this.PropertyChanged.length;t++){var r=this.PropertyChanged[t];"function"==typeof r&&r(this,e)}},t.defFormatter=function(e){var r=t[e];return r||(r=new t(e),t[e]=r),r},t.test=function(e){var t=!0;try{var r=new y.Lexer(e);new h.Parser(r).parse()}catch(e){t=!1}return t},t}(z);t.GeneralFormatter=pe},826:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.throwError=t.BACKSLASH=t.UNDERLINE=t.ASTERISK=t.DOUBLE_QUOTE=t.SEMICOLON=void 0,t.SEMICOLON=";",t.DOUBLE_QUOTE='"',t.ASTERISK="*",t.UNDERLINE="_",t.BACKSLASH="\\";t.throwError=function(){throw Error("Invalid Number Format")}},810:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.Lexer=void 0;var n=r(826),a=function(e){return!!["0","#","?",".","%",",","/",n.BACKSLASH,n.ASTERISK,n.UNDERLINE,"@"].find((function(t){return t===e}))},i=function(e){return[n.BACKSLASH,n.ASTERISK,n.UNDERLINE].find((function(t){return t===e}))},o=function(e,t){return{type:e,value:t}},s=function(){function e(e){this._tokens=[],this._input=e,this._tokenize()}return e.prototype._tokenize=function(){for(var e=0,t=this._input;e<t.length;e++){var r=t[e];if(a(r)){if(i(r)){this._tokens.push(o("symbol",r)),e<t.length-1&&(this._tokens.push(o("char",t[e+1])),e++);continue}this._tokens.push(o("symbol",r))}else if(r!==n.SEMICOLON){if(r===n.DOUBLE_QUOTE){var s=t.slice(e+1).search(n.DOUBLE_QUOTE);if(-1!==s){s=s+e+1,this._tokens.push(o("text",t.slice(e+1,s))),e=s;continue}(0,n.throwError)()}this._tokens.push(o("char",r))}else this._tokens.push(o("semicolon",r))}this._tokens.push(o("EOF",""))},e.prototype._nextToken=function(){return this._tokens.shift()},e}();t.Lexer=s},61:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.Parser=void 0;var n=r(826),a=function(){function e(e){this._lexer=e,this._currentToken=e._nextToken()}return e.prototype._eat=function(e){this._currentToken.type===e?this._currentToken=this._lexer._nextToken():(0,n.throwError)()},e.prototype.parse=function(){for(var e=[];"EOF"!==this._currentToken.type;)e.push(this._parseFormatPart()),e.length>4&&(0,n.throwError)();return{type:"numberFormat",body:e}},e.prototype._parseFormatPart=function(){for(var e=[];"semicolon"!==this._currentToken.type&&"EOF"!==this._currentToken.type;){"symbol"===this._currentToken.type?e.push(this._parseSymbol()):e.push(this._parseCharOrString())}return"semicolon"===this._currentToken.type&&this._eat("semicolon"),{type:"formatPart",body:e}},e.prototype._parseSymbol=function(){var e,t=this._currentToken.value;return t===n.ASTERISK?(this._eat("symbol"),e={type:"asterisk",body:this._currentToken.value},this._eat("char")):t===n.BACKSLASH?(this._eat("symbol"),e={type:"char",body:this._currentToken.value},this._eat("char")):t===n.UNDERLINE?(this._eat("symbol"),e={type:"underline",body:this._currentToken.value},this._eat("char")):(e={type:"symbol",body:this._currentToken.value},this._eat("symbol")),e},e.prototype._parseCharOrString=function(){var e,t=this._currentToken.type;return"char"===t?(e={type:"char",body:this._currentToken.value},this._eat("char")):"text"===t&&(e={type:"text",body:this._currentToken.value},this._eat("text")),e},e}();t.Parser=a},736:function(e){e.exports=canvas}},r={};function n(e){var a=r[e];if(void 0!==a)return a.exports;var i=r[e]={exports:{}};return t[e].call(i.exports,i,i.exports,n),i.exports}n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}();var a={};!function(){var e=a;Object.defineProperty(e,"__esModule",{value:!0}),e.Formatter=e.Commands=e.Common=void 0;var t=n(38);e.Common=t;var r=n(814);e.Commands=r;var i=n(569);e.Formatter=i}(),(e=void 0===e?{}:e).Spread=a}()},532:()=>{var e;!function(){"use strict";var t={38:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var a=Object.getOwnPropertyDescriptor(t,r);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,a)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),a=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.UserManagerEvent=t.UserManager=t.UUIDGenerator=t._getSR=t.rbush=t.CultureManager=t.CultureInfo=t._StringHelper=t._RegexHelper=t._NumberHelper=t._DateTimeHelper=t._ArrayHelper=t._Types=t._ColorHelper=void 0;var i=r(395);Object.defineProperty(t,"_ColorHelper",{enumerable:!0,get:function(){return i._ColorHelper}});var o=r(534);Object.defineProperty(t,"_Types",{enumerable:!0,get:function(){return o._Types}});var s=r(305);Object.defineProperty(t,"_ArrayHelper",{enumerable:!0,get:function(){return s._ArrayHelper}});var u=r(97);Object.defineProperty(t,"_DateTimeHelper",{enumerable:!0,get:function(){return u._DateTimeHelper}}),Object.defineProperty(t,"_getSR",{enumerable:!0,get:function(){return u.getSR}});var l=r(844);Object.defineProperty(t,"_NumberHelper",{enumerable:!0,get:function(){return l._NumberHelper}});var c=r(576);Object.defineProperty(t,"_RegexHelper",{enumerable:!0,get:function(){return c._RegexHelper}});var m=r(480);Object.defineProperty(t,"_StringHelper",{enumerable:!0,get:function(){return m._StringHelper}});var y=r(674);Object.defineProperty(t,"rbush",{enumerable:!0,get:function(){return y.rbush}});var h=r(818),f=r(479);Object.defineProperty(t,"UUIDGenerator",{enumerable:!0,get:function(){return f.UUIDGenerator}}),Object.defineProperty(t,"HandleExcelSpecialDate",{set:function(e){h.HandleExcelSpecialDate=e},get:function(){return h.HandleExcelSpecialDate}}),a(r(818),t);var d=r(286);Object.defineProperty(t,"CultureInfo",{enumerable:!0,get:function(){return d.CultureInfo}}),Object.defineProperty(t,"CultureManager",{enumerable:!0,get:function(){return d.CultureManager}}),a(r(646),t);var p=r(561);Object.defineProperty(t,"UserManager",{enumerable:!0,get:function(){return p.UserManager}}),Object.defineProperty(t,"UserManagerEvent",{enumerable:!0,get:function(){return p.UserManagerEvent}})},286:function(e,t,r){var n,a=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+t+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.CultureManager=t._EraHelper=t.CultureInfo=t.TimelineDateOrder=void 0;var i,o=r(534),s=r(818),u=r(305),l=r(576),c="undefined"!=typeof window?window:r.g,m=o._Types._each,y=o._Types._extend,h=(new Date).getFullYear(),f=["MM/dd/yyyy","MM/d/yyyy","M/dd/yyyy","M/d/yyyy","yy/MM/dd","yy/MM/d","yy/M/dd","yy/M/d","yyyy/MM/dd","yyyy/MM/d","yyyy/M/dd","yyyy/M/d"],d=["hh:mm:ss","hh:mm:s","hh:m:ss","hh:m:s","h:mm:ss","h:mm:s","h:m:ss","h:m:s","hh:mm:ss tt","hh:mm:s tt","hh:m:ss tt","hh:m:s tt","h:mm:ss tt","h:mm:s tt","h:m:ss tt","h:m:s tt","hh:mm","hh:m","h:mm","h:m","hh:mm tt","hh:m tt","h:mm tt","h:m tt"],p=["MM-dd-yyyy","MM-d-yyyy","M-dd-yyyy","M-d-yyyy","yy-MM-dd","yy-MM-d","yy-M-dd","yy-M-d","yyyy-MM-dd","yyyy-MM-d","yyyy-M-dd","yyyy-M-d","dd-MMMM-yy","dd-MMM-yy"],_=f.concat(d);function g(e){return e.split(" ").join(" ").toUpperCase()}function M(e){for(var t=[],r=0,n=e.length;r<n;r++)t[r]=g(e[r]);return t}function v(e,t,r){var n=g(e),a=t.indexOf(n);return-1===a&&(a=r.indexOf(n)),a}function b(e){if(e){var t=e.charCodeAt(0);if(t>=11904&&t<12032||t>=8208&&t<8252||t>=12288&&t<40960||t>=43360&&t<43392||t>=44032&&t<55215||t>=63744&&t<64256||t>=65280&&t<65535)return!0}return!1}function F(e,t,r){if(" "===e||r&&" "===e)return 0;var n=r&&r(e);return t.lineBreakingForbidStart&&-1!==t.lineBreakingForbidStart.indexOf(e)?!r||n?7:6:t.lineBreakingForbidEnd&&-1!==t.lineBreakingForbidEnd.indexOf(e)?!r||n?5:4:n?2:t.lineBreakingChar&&-1!==t.lineBreakingChar.indexOf(e)?3:1}m(f,(function(e,t){m(d,(function(e,r){e<d.length-4&&_.push(t+" "+r)}))})),_=_.concat(p),m(p,(function(e,t){m(d,(function(e,r){e<d.length-4&&_.push(t+" "+r)}))})),function(e){e[e.year=1]="year",e[e.quarterOrMonth=2]="quarterOrMonth",e[e.date=3]="date"}(i=t.TimelineDateOrder||(t.TimelineDateOrder={}));var S={"00":1,"01":1,"02":1,"03":1,"04":1,"05":1,"06":1,"07":1,12:1,15:1,21:1,22:1,23:1,24:1,25:1,31:1,32:1,33:1,34:1,35:1,36:1,37:1,62:1,65:1,71:1,72:1,73:1,74:1,75:1};function D(e,t,r){if(!e)return[];for(var n=[e[0]],a=0,i=F(e[0],t,r),o=1;o<e.length;o++){var s=F(e[o],t,r);S[i+""+s]&&void 0===n[++a]&&(n[a]=""),n[a]+=e[o],i=s}return n}var x=function(){function e(){this.NumberFormat={currencyDecimalDigits:2,currencyDecimalSeparator:".",currencyGroupSeparator:",",currencyGroupSizes:[3],currencyNegativePattern:0,currencyPositivePattern:0,currencySymbol:"¤",digitSubstitution:1,isReadOnly:!0,numberGroupSizes:[3],nanSymbol:"NaN",nativeDigits:["0","1","2","3","4","5","6","7","8","9"],numberNegativePattern:1,negativeInfinitySymbol:"-Infinity",negativeSign:"-",numberDecimalDigits:2,numberDecimalSeparator:".",numberGroupSeparator:",",positiveInfinitySymbol:"Infinity",positiveSign:"+",percentDecimalDigits:2,percentDecimalSeparator:".",percentGroupSeparator:",",percentGroupSizes:[3],percentNegativePattern:0,percentPositivePattern:0,percentSymbol:"%",perMilleSymbol:"‰",listSeparator:",",arrayListSeparator:",",arrayGroupSeparator:";",dbNumber:{},standardDictionaryNumbers:{Hundreds:"Hundreds",Thousands:"Thousands",Millions:"Millions",Billions:"Billions",Trillions:"Trillions"},scientificNotation:"0.##############E+00"},this.DateTimeFormat={abbreviatedDayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],abbreviatedMonthGenitiveNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""],abbreviatedMonthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""],amDesignator:"AM",calendarIsReadOnly:!0,calendarWeekRule:0,Calendar:{MinSupportedDateTime:"@-62135568000000@",MaxSupportedDateTime:"@253402300799999@",AlgorithmType:1,CalendarType:1,Eras:[1],TwoDigitYearMax:2029,isReadOnly:!0},dateSeparator:"/",dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],defaultDatePattern:"MM/dd/yyyy H:mm:ss",firstDayOfWeek:0,fullDateTimePattern:"dddd, dd MMMM yyyy HH:mm:ss",longDatePattern:"dddd, dd MMMM yyyy",longTimePattern:"HH:mm:ss",monthDayPattern:"MMMM dd",monthGenitiveNames:["January","February","March","April","May","June","July","August","September","October","November","December",""],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December",""],nativeCalendarName:"Gregorian Calendar",pmDesignator:"PM",rfc1123Pattern:"ddd, dd MMM yyyy HH':'mm':'ss 'GMT'",shortDatePattern:"MM/dd/yyyy",shortestDayNames:["Su","Mo","Tu","We","Th","Fr","Sa"],shortTimePattern:"HH:mm",sortableDateTimePattern:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",timeSeparator:":",universalSortableDateTimePattern:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",yearMonthPattern:"yyyy MMMM",filterDialogDateFormatter:"yyyy/mmmm/dd",preselectedFormatters:[],eraFormatter:["ge/M/d","ge-M-d","ge.M.d","gee/MM/dd"]},this.name=function(){return""},this.id=-1,this.LocalNumberFormat={},this.displayName="",this.fontScriptCode=void 0,this.predefinedFormats={},this.TimelineDateOrder=[i.quarterOrMonth,i.date,i.year],this.TimelineDateSuffix={year:"",quarter:"",month:"",date:""},this.TextFormat={lineBreakingChar:[" ","-"]},this.equalCharacters=void 0}return e.prototype._getDistributedBreakingChar=function(){return[" "]},e.prototype._getDistributedWords=function(e){var t={lineBreakingChar:this._getDistributedBreakingChar()};return this.TextFormat&&this.TextFormat.lineBreakingStrategy?this.TextFormat.lineBreakingStrategy(e,t):D(e,t)},e.prototype._getTextWords=function(e){if(this.TextFormat&&this.TextFormat.lineBreakingStrategy){var t={lineBreakingChar:this.TextFormat.lineBreakingChar,lineBreakingForbidEnd:this.TextFormat.lineBreakingForbidEnd,lineBreakingForbidStart:this.TextFormat.lineBreakingForbidStart};return this.TextFormat.lineBreakingStrategy(e,t)}return D(e,this.TextFormat||{lineBreakingChar:[" ","-"]})},e.prototype._getDateTimePattern=function(){if(!this._dateTimeFormatPattern){var e=this.DateTimeFormat,t=e.shortDatePattern.replace(/m/g,"M"),r=[t,t+" h:mm",t+" h:mm:ss",t+" h:mm:ss.0","MMMdd","MMMd","MMM dd","MMM d"];if(r=r.concat(_),1041===this.id){var n=e.eraFormatter;r=(r=r.concat(this._eraFormatter)).concat(n)}r=r.concat(e.preselectedFormatters),this._dateTimeFormatPattern=r}return this._dateTimeFormatPattern},e.prototype._getMonthIndex=function(e){return this._upperMonths||(this._upperMonths=M(this.DateTimeFormat.monthNames),this._upperMonthsGenitive=M(this.DateTimeFormat.monthGenitiveNames)),v(e,this._upperMonths,this._upperMonthsGenitive)},e.prototype._getAbbrMonthIndex=function(e){return this._upperAbbrMonths||(this._upperAbbrMonths=M(this.DateTimeFormat.abbreviatedMonthNames),this._upperAbbrMonthsGenitive=M(this.DateTimeFormat.abbreviatedMonthGenitiveNames)),v(e,this._upperAbbrMonths,this._upperAbbrMonthsGenitive)},e.prototype._getDayIndex=function(e){return this._upperDays||(this._upperDays=M(this.DateTimeFormat.dayNames)),this._upperDays.indexOf(g(e))},e.prototype._getAbbrDayIndex=function(e){return this._upperAbbrDays||(this._upperAbbrDays=M(this.DateTimeFormat.abbreviatedDayNames)),this._upperAbbrDays.indexOf(g(e))},e}();t.CultureInfo=x;var C=function(){function e(){}return e._isValidEraDate=function(t){return t>=e._getEraMin()&&t<=e._getEraMax()},e._getEraDates=function(){var e=x.eras;if(void 0!==e){for(var t=[],r=0;r<e.length;r++)t[r]=new Date(e[r].startDate.replace(/-/g,"/"));return t}return this._EraDates},e._getEraPropByFormat=function(t){var r,n;switch(t){case"g":r="symbol",n=e._symbols;break;case"gg":r="abbreviation",n=e._abbreviations;break;case"ggg":r="name",n=e._names;break;default:return[]}var a=x.eras,i=[];if(void 0!==a){for(var o=0;o<a.length;o++)i[o]=a[o][r];return i}return n},e._getEraMax=function(){var e=x.eras;if(void 0!==e&&e.length>0){var t=new Date(e[e.length-1].startDate.replace(/-/g,"/"));return t.setFullYear(t.getFullYear()+99),t}return this._EraMax},e._getEraMin=function(){var e=x.eras;return void 0!==e&&e.length>0?new Date(e[0].startDate.replace(/-/g,"/")):this._EraMin},e._getEraCount=function(){var e=x.eras;return void 0!==e?e.length:this._EraCount},e._getEraYears=function(){var e=x.eras;if(void 0!==e){for(var t=[],r=1;r<e.length;r++){var n=new Date(e[r-1].startDate.replace(/-/g,"/")),a=new Date(e[r].startDate.replace(/-/g,"/"));t[r-1]=a.getFullYear()-n.getFullYear()+1}return t[r-1]=99,t}return this._EraYears},e._getEraDate=function(t){var r={_era:-1,_eraYear:-1};if(!e._isValidEraDate(t)){if(!(t>e._getEraMax()))return r;t=e._getEraMax()}for(var n=0;n<e._getEraCount();n++){if(t<(n+1!==e._getEraCount()?e._getEraDates()[n+1]:e._addMilliseconds(e._getEraMax(),1))){r._era=n,r._eraYear=t.getFullYear()-e._getEraDates()[n].getFullYear()+1;break}}return r},e._addMilliseconds=function(e,t){var r=new Date(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds());return r.setMilliseconds(r.getMilliseconds()+t),new Date(r.valueOf())},e._getYearFromEra=function(t,r){return e._getEraDates()[t].getFullYear()+r-1},e._parseEraPart=function(t,r){r=r.toUpperCase();for(var n=e._getEraPropByFormat(t),a=0;a<n.length;a++)if(n[a]===r)return a;return-1},e._formatEraPart=function(t,r,n){var a=e,i=a._getEraDate(r),o=i._era;if(o>=0){var s=a._getEraPropByFormat(t);if(s.length>0)return s[o]}var u=i._eraYear;if(u>=0){var l=u.toString();if("1"===l&&n)return"元";if("ee"===t)return 1===l.length&&(l="0"+l),l;if("e"===t)return l}return""},e._EraDates=[new Date(1868,8,8),new Date(1912,6,30),new Date(1926,11,25),new Date(1989,0,8),new Date(2019,4,1)],e._EraCount=5,e._EraYears=[45,15,64,31,99],e._EraMax=new Date(2117,11,31,23,59,59),e._EraMin=new Date(1868,8,8),e._shortcuts=["1,m","2,t","3,s","4,h","5,r"],e._EraIndices=[0,1,2,3,0,1,2,3],e._names=["明治","大正","昭和","平成","令和"],e._symbols=["M","T","S","H","R"],e._abbreviations=["明","大","昭","平","令"],e._EraYearMax=99,e.eraExcelFormatter="[$-ja-JP-x-gannen]",e.eraInternalFormatter="[$-411]",e}();t._EraHelper=C;var T=function(e){function t(){var t=e.call(this)||this;O.call(t,"NumberFormat",["currencySymbol","isReadOnly"],["$",!1]);return O.call(t,"DateTimeFormat",["fullDateTimePattern","longDatePattern","longTimePattern","shortDatePattern","shortTimePattern","yearMonthPattern","calendarIsReadOnly","preselectedFormatters"],["dddd, MMMM dd, yyyy h:mm:ss tt","dddd, MMMM dd, yyyy","h:mm:ss tt","M/d/yyyy","h:mm tt","MMMM, yyyy",!1,["MMM yyyy","MMMM yyyy"]]),t.DateTimeFormat.defaultDatePattern=t.DateTimeFormat.shortDatePattern+" H:mm:ss",t.name=function(){return"en-US"},t.displayName="English (United States)",t.id=1033,t.predefinedFormats={Accounting:'_([$$-409]* #,##0.00_);_([$$-409]* (#,##0.00);_([$$-409]* "-"??_);_(@_)',Comma:'_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)',Currency:["[$$-409]#,##0","[$$-409]#,##0;[Red][$$-409]#,##0","[$$-409]#,##0_);([$$-409]#,##0)","[$$-409]#,##0_);[Red]([$$-409]#,##0)"],Date:["m/d/yyyy","[$-409]dddd, mmmm dd, yyyy","m/d;@","m/d/yy;@","mm/dd/yy;@","[$-409]d-mmm;@","[$-409]d-mmm-yy;@","[$-409]mmm-yy;@","[$-409]mmmm-yy;@","[$-409]mmmm d, yyyy;@","[$-409]m/d/yy h:mm AM/PM;@","m/d/yy h:mm;@","[$-409]mmmmm;@","[$-409]mmmmm-yy;@","m/d/yyyy;@","[$-409]d-mmm-yyyy;@"],Time:["[$-409]h:mm:ss AM/PM","h:mm;@","[$-409]h:mm AM/PM;@","h:mm:ss;@","[$-409]h:mm:ss AM/PM;@","mm:ss.0;@","[h]:mm:ss;@","[$-409]m/d/yy h:mm AM/PM;@","m/d/yy h:mm;@"],Special:{"Zip Code":"00000","Zip Code + 4":"00000-0000","Phone Number":"[<=9999999]###-####;(###) ###-####","Social Security Number":"000-00-0000"},shortcut:{Number:"0.00",Currency:"[$$-409]#,##0.00",Accounting:'_([$$-409]* #,##0.00_);_([$$-409]* (#,##0.00);_([$$-409]* "-"??_);_(@_)',ShortDate:"m/d/yyyy",LongDate:"[$-409]dddd, mmmm dd, yyyy",Time:"[$-409]h:mm:ss AM/PM",Percentage:"0.00%",Fraction:"# ?/?",Scientific:"0.00E+00",Text:"@",Comma:'_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)'}},t}return a(t,e),t}(x),N=function(e){function t(){var t=e.call(this)||this;O.call(t,"NumberFormat",["currencyDecimalDigits","currencyNegativePattern","currencySymbol","isReadOnly","nanSymbol","negativeInfinitySymbol","percentNegativePattern","percentPositivePattern","positiveInfinitySymbol","dbNumber","standardDictionaryNumbers"],[0,1,"¥",!1,"NaN (非数値)","-∞",1,1,"+∞",{1:{letters:["兆","千","百","十","亿","千","百","十","万","千","百","十",""],numbers:["〇","一","二","三","四","五","六","七","八","九"]},2:{letters:["兆","阡","百","拾","億","阡","百","拾","萬","阡","百","拾",""],numbers:["〇","壱","弐","参","四","伍","六","七","八","九"]},3:{letters:null,numbers:["0","1","2","3","4","5","6","7","8","9"]}},{Hundreds:"百",Thousands:"千",Millions:"百万",Billions:"十億",Trillions:"兆"}]);var r=["1","2","3","4","5","6","7","8","9","10","11","12",""],n=["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月",""];return O.call(t,"DateTimeFormat",["abbreviatedDayNames","abbreviatedMonthGenitiveNames","abbreviatedMonthNames","amDesignator","calendarIsReadOnly","dayNames","fullDateTimePattern","longDatePattern","longTimePattern","monthDayPattern","monthGenitiveNames","monthNames","nativeCalendarName","pmDesignator","shortDatePattern","shortestDayNames","shortTimePattern","yearMonthPattern","filterDialogDateFormatter","preselectedFormatters","EraFilterDialogDateFormatter"],[["日","月","火","水","木","金","土"],r,r,"午前",!1,["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"],"yyyy'年'M'月'd'日' H:mm:ss","yyyy'年'M'月'd'日'","H:mm:ss","M'月'd'日'",n,n,"西暦 (日本語)","午後","yyyy/MM/dd",["日","月","火","水","木","金","土"],"H:mm","yyyy'年'M'月'","yyyy年/mmmm/d日",["yyyy年M月d日","yyyy年M月dd日","yyyy年MM月d日","yyyy年MM月dd日"],"ggge/mmmm/d日"]),t.DateTimeFormat.eras=!0,t.DateTimeFormat.defaultDatePattern=t.DateTimeFormat.shortDatePattern+" "+t.DateTimeFormat.longTimePattern,t._eraFormatter=['gggee"年"MM"月"dd"日','gggee"年"M"月"d"日','ge"年"M"月"d"日','ggge"年"M"月"d"日','ggee"年"M"月"d"日','gge"年"M"月"d"日'],t.name=function(){return"ja-JP"},t.id=1041,t.displayName="Japanese (Japan)",t.isJCKCulture=!0,t.predefinedFormats={Accounting:'_-[$¥-411]* #,##0.00_-;-[$¥-411]* #,##0.00_-;_-[$¥-411]* "-"??_-;_-@_-',Comma:'_-* #,##0.00_-;-* #,##0.00_-;_-* "-"??_-;_-@_-',Currency:["[$¥-411]#,##0_);[Red]([$¥-411]#,##0)","[$¥-411]#,##0_);([$¥-411]#,##0)","[$¥-411]#,##0;[Red][$¥-411]#,##0","[$¥-411]#,##0;-[$¥-411]#,##0","[$¥-411]#,##0;[Red]-[$¥-411]#,##0"],Date:["yyyy/mm/dd","[$-411]dddd, mmmm dd, yyyy",'yyyy"年"m"月"d"日";@','yyyy"年"m"月";@','m"月"d"日";@',"yyyy/m/d;@","[$-409]yyyy/m/d h:mm AM/PM;@","yyyy/m/d h:mm;@","m/d;@","m/d/yy;@","mm/dd/yy;@","[$-409]d-mmm;@","[$-409]d-mmm-yy;@","[$-409]dd-mmm-yy;@","[$-409]mmm-yy;@","[$-409]mmmm-yy;@","[$-409]mmmmm;@","[$-409]mmmmm-yy;@"],Time:["[$-411]h:mm:ss AM/PM","h:mm;@","[$-409]h:mm AM/PM;@","h:mm:ss;@","[$-409]h:mm:ss AM/PM;@","[$-409]yyyy/m/d h:mm AM/PM;@","yyyy/m/d h:mm;@",'h"時"mm"分";@','h"時"mm"分"ss"秒";@'],Special:{郵便番号:"[<=999]000;[<=9999]000-00;000-0000","電話番号(東京)":"[<=99999999]####-####;(00) ####-####","正負記号 (+ = △; - = ▲)":'"△" #,##0;"▲" #,##0',"漢数字(十二万三千四百)":"[DBNum1][$-411]General","大字 (壱拾弐萬参阡四百)":"[DBNum2][$-411]General","全角 (12345)":"[DBNum3][$-411]0","全角 桁区切り(12,345)":"[DBNum3][$-411]#,##0"},shortcut:{Number:"0.00",Currency:"[$¥-411]#,##0.00",Accounting:'_-[$¥-411]* #,##0.00_-;-[$¥-411]* #,##0.00_-;_-[$¥-411]* "-"??_-;_-@_-',ShortDate:"yyyy/mm/dd",LongDate:"[$-411]dddd, mmmm dd, yyyy",Time:"[$-411]h:mm:ss AM/PM",Percentage:"0.00%",Fraction:"# ?/?",Scientific:"0.00E+00",Text:"@",Comma:'_-* #,##0.00_-;-* #,##0.00_-;_-* "-"??_-;_-@_-'}},t.TimelineDateOrder=[i.year,i.quarterOrMonth,i.date],t.TimelineDateSuffix={year:"年",quarter:"",month:"月",date:"日"},t.TextFormat={lineBreakingChar:[" "," ","-"],lineBreakingForbidStart:["!","%",")",",",".",":",";","?","]","}","!","%",")",",",".",":",";","?","]","}","」","。","、","ー"],lineBreakingForbidEnd:["(","[","{","(","[","{","「","$","$","\\","¥"],lineBreakingStrategy:function(e,t){return D(e,t,b)}},t.equalCharacters=["―ゝゞ゠ヽヾー","㆐㆑㇤㇥","‸⁊",".․","&⁋","%⁏","$⁒","#⁗",'"⁍',"‹⁓"],t}return a(t,e),t}(x),H=function(e){function t(){var t=e.call(this)||this;O.call(t,"NumberFormat",["currencyNegativePattern","currencySymbol","isReadOnly","nanSymbol","negativeInfinitySymbol","percentNegativePattern","percentPositivePattern","positiveInfinitySymbol","dbNumber","standardDictionaryNumbers"],[2,"¥",!1,"非数字","负无穷大",1,1,"正无穷大",{1:{letters:["兆","千","百","十","亿","千","百","十","万","千","百","十",""],numbers:["○","一","二","三","四","五","六","七","八","九"]},2:{letters:["兆","仟","佰","拾","亿","仟","佰","拾","万","仟","佰","拾",""],numbers:["零","壹","贰","叁","肆","伍","陆","柒","捌","玖"]},3:{letters:null,numbers:["0","1","2","3","4","5","6","7","8","9"]}},{Hundreds:"百",Thousands:"千",Millions:"百万",Billions:"十亿",Trillions:"兆"}]);var r=["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月",""],n=["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月",""];return O.call(t,"DateTimeFormat",["abbreviatedDayNames","abbreviatedMonthGenitiveNames","abbreviatedMonthNames","amDesignator","calendarIsReadOnly","dayNames","firstDayOfWeek","fullDateTimePattern","longDatePattern","longTimePattern","monthDayPattern","monthGenitiveNames","monthNames","nativeCalendarName","pmDesignator","shortDatePattern","shortestDayNames","shortTimePattern","yearMonthPattern","filterDialogDateFormatter","preselectedFormatters"],[["周日","周一","周二","周三","周四","周五","周六"],r,r,"上午",!1,["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],1,"yyyy'年'M'月'd'日' H:mm:ss","yyyy'年'M'月'd'日'","H:mm:ss","M'月'd'日'",n,n,"公历","下午","yyyy/M/d",["日","一","二","三","四","五","六"],"H:mm","yyyy'年'M'月'","yyyy年/mmmm/d日",["yyyy年M月","M月d日","yyyy年M月d日","h时mm分","h时mm分ss秒"]]),t.DateTimeFormat.defaultDatePattern=t.DateTimeFormat.shortDatePattern+" "+t.DateTimeFormat.longTimePattern,t.name=function(){return"zh-cn"},t.id=2052,t.displayName="Chinese (China)",t.isJCKCulture=!0,t.localeCompare=function(e,t){var r=e.localeCompare(t,"zh");return r<0&&e>="一"&&t<"一"||r>0&&t>="一"&&e<"一"?-r:r},t.predefinedFormats={Accounting:'_ [$¥-804]* #,##0.00_ ;_ [$¥-804]* -#,##0.00_ ;_ [$¥-804]* "-"??_ ;_ @_ ',Comma:'_ * #,##0.00_ ;_ * -#,##0.00_ ;_ * "-"??_ ;_ @_ ',Currency:["[$¥-804]#,##0","[$¥-804]#,##0;[Red][$¥-804]#,##0","[$¥-804]#,##0;[$¥-804]-#,##0","[$¥-804]#,##0;[Red][$¥-804]-#,##0"],Date:["yyyy/m/d","[$-804]dddd, mmmm dd, yyyy","yyyy-mm-dd;@",'[DBNum1][$-804]yyyy"年"m"月"d"日";@','[DBNum1][$-804]yyyy"年"m"月";@','[DBNum1][$-804]m"月"d"日";@',"[$-409]yyyy/m/d h:mm AM/PM;@",'yyyy"年"m"月"d"日";@','yyyy"年"m"月";@','m"月"d"日";@',"mm/dd/yy;@","m/d/yy;@","yyyy/m/d h:mm AM/PM;@","yyyy/m/d h:mm;@","[$-409]d-mmm;@","[$-409]d-mmm-yy;@","[$-409]dd-mmm-yy;@","[$-409]mmm-yy;@","[$-409]m","[$-409]m-d;@"],Time:["[$-804]h:mm:ss AM/PM","h:mm;@","[$-409]h:mm AM/PM;@","h:mm:ss;@",'h"时"mm"分";@','h"时"mm"分"ss"秒";@','[$-804]上午/下午h"时"mm"分";@','[$-804]上午/下午h"时"mm"分"ss"秒";@','[DBNum1][$-804]h"时"mm"分";@','[DBNum1][$-804]上午/下午h"时"mm"分";@'],Special:{邮政编码:"000000",中文小写字母:"[DBNum1][$-804]General",中文大写字母:"[DBNum2][$-804]General"},shortcut:{Number:"0.00",Currency:"[$¥-804]#,##0.00",Accounting:'_ [$¥-804]* #,##0.00_ ;_ [$¥-804]* -#,##0.00_ ;_ [$¥-804]* "-"??_ ;_ @_ ',ShortDate:"yyyy/m/d",LongDate:"[$-804]dddd, mmmm dd, yyyy",Time:"[$-804]h:mm:ss AM/PM",Percentage:"0.00%",Fraction:"# ?/?",Scientific:"0.00E+00",Text:"@",Comma:'_ * #,##0.00_ ;_ * -#,##0.00_ ;_ * "-"??_ ;_ @_ '}},t.TimelineDateOrder=[i.year,i.quarterOrMonth,i.date],t.TimelineDateSuffix={year:"年",quarter:"",month:"",date:"日"},t.TextFormat={lineBreakingChar:[" "," ","-"],lineBreakingForbidStart:["!","%",")",",",".",":",";","?","]","}","!","%",")",",",".",":",";","?","]","}"],lineBreakingForbidEnd:["(","[","{","(","[","{"],lineBreakingStrategy:function(e,t){return D(e,t,b)}},t.normalizeDateTimeString=function(e){var t;if(l._RegexHelper._getReg("^([0-9]{1,2}|[0-9]{4})年[0-9]{1,2}月$").test(e))return(t=e.split("年"))[1].replace("月","")+"/1/"+t[0];if(l._RegexHelper._getReg("^[0-9]{1,2}月[0-9]{1,2}日$").test(e))return(t=e.split("月"))[0]+"/"+t[1].replace("日","")+"/"+h;if(l._RegexHelper._getReg("^(上午|下午)?[0-9]{1,2}时[0-9]{1,2}分([0-9]{1,2}秒)?$").test(e)){var r=e.replace("时",":").replace("分",":").replace("秒","");return(r=r.endsWith(":")?r+"00":r).startsWith("上午")&&(r=r.replace("上午","")+" AM"),r.startsWith("下午")&&(r=r.replace("下午","")+" PM"),r}return e.includes("上午")||e.includes("下午")?e.replace("上午","am").replace("下午","pm"):null},t}return a(t,e),t.prototype._getDistributedBreakingChar=function(){return[" "," "]},t}(x),E=function(e){function t(){var t=e.call(this)||this;O.call(t,"NumberFormat",["currencyDecimalDigits","currencyNegativePattern","currencySymbol","isReadOnly","dbNumber","standardDictionaryNumbers"],[0,1,"₩",!1,{1:{letters:["兆","千","百","十","億","千","百","十","万","千","百","十",""],numbers:["0","一","二","三","四","五","六","七","八","九"]},2:{letters:["兆","阡","百","拾","億","阡","百","拾","萬","阡","百","拾",""],numbers:["零","壹","貳","參","四","伍","六","七","八","九"]},3:{letters:["兆","千","百","十","億","千","百","十","万","千","百","十",""],numbers:["0","1","2","3","4","5","6","7","8","9"]},4:{letters:["조","천","백","십","억","천","백","십","만","천","백","십",""],numbers:["○","일","이","삼","사","오","육","칠","팔","구"]}},{Hundreds:"백",Thousands:"천",Millions:"백만",Billions:"10억",Trillions:"조"}]);var r=["1","2","3","4","5","6","7","8","9","10","11","12",""],n=["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월",""];return O.call(t,"DateTimeFormat",["abbreviatedDayNames","abbreviatedMonthGenitiveNames","abbreviatedMonthNames","amDesignator","calendarIsReadOnly","dayNames","firstDayOfWeek","fullDateTimePattern","longDatePattern","longTimePattern","monthDayPattern","monthGenitiveNames","monthNames","nativeCalendarName","pmDesignator","shortDatePattern","shortestDayNames","shortTimePattern","yearMonthPattern","filterDialogDateFormatter"],[["일","월","화","수","목","금","토"],r,r,"오전",!1,["일요일","월요일","화요일","수요일","목요일","금요일","토요일"],1,"yyyy'년' M'월' d'일' dddd h:mm:ss","yyyy'년' M'월' d'일' dddd","h:mm:ss","M'월' d'일'",n,n,"서기","오후","yyyy-MM-dd",["일","월","화","수","목","금","토"],"tt h:mm","yyyy'년' M'월'","yyyy년/mmmm/d일"]),t.DateTimeFormat.defaultDatePattern=t.DateTimeFormat.shortDatePattern+" "+t.DateTimeFormat.longTimePattern,t.name=function(){return"ko-kr"},t.id=1042,t.displayName="Korean (Korea)",t.isJCKCulture=!0,t.predefinedFormats={Accounting:'_-[$₩-412]* #,##0.00_-;-[$₩-412]* #,##0.00_-;_-[$₩-412]* "-"??_-;_-@_-',Comma:'_-* #,##0.00_-;-* #,##0.00_-;_-* "-"??_-;_-@_-',Currency:["[$₩-412]#,##0","[$₩-412]#,##0;[Red][$₩-412]#,##0","[$₩-412]#,##0;-[$₩-412]#,##0","[$₩-412]#,##0;[Red]-[$₩-412]#,##0"],Date:["yyyy-mm-dd",'yyyy"년" m"월" d"일" dddd',"yyyy-mm-dd;@",'yyyy"년" m"월" d"일";@','yy"年" m"月" d"日";@','yyyy"년" m"월";@','m"월" d"일";@',"yy-m-d;@","yy-m-d h:mm;@",'m"月"d"日";@',"[$-412]yy-m-d AM/PM h:mm;@","yy/m/d;@","yyyy/m/d h:mm;@","m/d;@","m/d/yy;@","mm/dd/yy;@","[$-409]d-mmm;@","[$-409]d-mmm-yy;@","[$-409]dd-mmm-yy;@","[$-409]mmm-yy;@","[$-409]m","[$-409]m-d;@"],Time:["[$-412]h:mm:ss AM/PM","h:mm;@","h:mm:ss;@","[$-412]AM/PM h:mm;@","[$-412]AM/PM h:mm:ss;@","[$-409]h:mm AM/PM;@","[$-409]h:mm:ss AM/PM;@",'yyyy"-"m"-"d h:mm;@','[$-412]yyyy"-"m"-"d AM/PM h:mm;@','[$-409]yyyy"-"m"-"d h:mm AM/PM;@','h"시" mm"분";@','h"시" mm"분" ss"초";@','[$-412]AM/PM h"시" mm"분";@','[$-412]AM/PM h"시" mm"분" ss"초";@'],Special:{"우편 번호":"000-000","전화 번호 (국번 4자리)":"[<=999999]####-####;(0##) ####-####","전화 번호 (국번 3자리)":"[<=9999999]###-####;(0##) ###-####",주민등록번호:"000000-0000000","숫자(한자)":"[DBNum1][$-412]General","숫자(한자-갖은자)":"[DBNum2][$-412]General","숫자(한글)":"[DBNum4][$-412]General"},shortcut:{Number:"0.00",Currency:"[$₩-412]#,##0.00",Accounting:'_-[$₩-412]* #,##0.00_-;-[$₩-412]* #,##0.00_-;_-[$₩-412]* "-"??_-;_-@_-',ShortDate:"yyyy-mm-dd",LongDate:'yyyy"년" m"월" d"일" dddd',Time:"[$-412]h:mm:ss AM/PM",Percentage:"0%",Fraction:"# ?/?",Scientific:"0.00E+00",Text:"@",Comma:'_-* #,##0.00_-;-* #,##0.00_-;_-* "-"??_-;_-@_-'}},t.TimelineDateOrder=[i.year,i.quarterOrMonth,i.date],t.TimelineDateSuffix={year:"년",quarter:"",month:"월",date:"일"},t}return a(t,e),t}(x),P={invariant:new x,"en-us":new T,"ja-jp":new N,"zh-cn":new H,"ko-kr":new E};function O(e,t,r){for(var n,a=0,i=t.length;a<i;a++)n=t[a],this[e][n]=r[a]}var w={},k=["lsru","lsde","ls1","ls2","ls3","ls4","ls5","ls6","ls7","ls8","ls9","ls10","ls11"],I=["wmk1","wmk2"],A=function(){function e(){this._cultureVersion=1,this._resourcesMap={}}return e.instance=function(){return this._instance||(this._instance=new this)},e.prototype.culture=function(t){if(0===arguments.length)return e._cRName;var r,n,a;t&&e._cRName!==t&&(e._cRName=t.toLowerCase(),this._cultureVersion++,r=e._cRName,n=e._instance.getCultureInfo(),"object"==typeof document&&("function"!=typeof CustomEvent?(a=document.createEvent("CustomEvent")).initCustomEvent("cultureChanged",!1,!1,void 0):a=new CustomEvent("cultureChanged",{}),a.cultureInfo=r,c.gcCultureInfo=r,c.gcCultureObj=n,document.dispatchEvent(a)))},e.prototype.addCultureInfo=function(e,t,r){if(t&&t instanceof x){var n=t.NumberFormat&&t.NumberFormat.numberDecimalSeparator,a=t.NumberFormat.arrayListSeparator,i=t.NumberFormat.arrayGroupSeparator;if(n===t.NumberFormat.listSeparator||i===a)throw new s.ResourceManager(s.SR).getResource().Exp_Separator;P[e.toLowerCase()]=t}if(r&&"object"==typeof r){var o=e.toLowerCase();w[o]=y(!0,{},r),this._cultureVersion++}},e.prototype.getCultureInfoDict=function(){return P},e.prototype.getCultureInfo=function(t){if(0===arguments.length)return P[e._cRName];"string"==typeof t&&(t=t.toLowerCase());var r=P,n=null;for(var a in r)if(a===t||void 0!==r[a].id&&r[a].id===t){n=r[a];break}return n},e.prototype.getLanguage=function(e){if("string"==typeof e){var t=e.toLowerCase();return w[t]}return null},e.prototype.getResources=function(e){var t=this.culture().toLowerCase();if(null==e&&(e=t),"string"==typeof e){var r=e.toLowerCase();if(this._resourcesMap[r])return this._adjustCurrentResources(this._resourcesMap[r])}return null},e.prototype._adjustCurrentResources=function(e){var t="PivotTables",r="ReportSheet",n="GanttSheet",a="DataChart",i="Sheets",o=y(!0,{},e);o[t]&&this._deleteSkipKey(o[t],I),o[r]&&this._deleteSkipKey(o[r],I),o[n]&&this._deleteSkipKey(o[n],I),o[a]&&this._deleteSkipKey(o[a],I),o[i]&&this._deleteSkipKey(o[i],k);var s=o.CalcEngine;return s&&(o.Functions=s._builtInFunctionsResource,o.TableFunctions=s._tableFunctionsResource,delete s._builtInFunctionsResource,delete s._tableFunctionsResource),o},e.prototype._deleteSkipKey=function(e,t){for(var r=0,n=t;r<n.length;r++){delete e[n[r]]}},e.prototype._languageTranslate=function(e,t,r){var n=w[e.toLowerCase()];for(var a in t)if(!u._ArrayHelper._contains(k,a)){var i=this._getTranslate(n,a,r);(null!==i&&"string"==typeof i&&"string"==typeof t[a]||null!==i&&"object"==typeof i&&!Array.isArray(i))&&(t[a]=i)}t._builtInFunctionsResource&&n.Functions&&this._translateFunctions(n.Functions,t._builtInFunctionsResource),t._tableFunctionsResource&&n.TableFunctions&&y(!0,t._tableFunctionsResource,n.TableFunctions)},e.prototype._getTranslate=function(e,t,r){if(e.hasOwnProperty(t))return e[t];if(r&&(a=e[r])&&"object"==typeof a&&a.hasOwnProperty(t))return a[t];for(var n in e){var a;if((a=e[n])&&"object"==typeof a&&a.hasOwnProperty(t))return a[t]}return null},e.prototype._translateFunctions=function(e,t){for(var r in t)if(e.hasOwnProperty(r)){var n=t[r],a=e[r],i=n.parameters,o=a.parameters;for(var s in n.description=a.description,i)if(o.hasOwnProperty(s)){var u=o[s];"string"==typeof u&&(i[s].name=u)}}return{}},e.prototype._getCultureInfo=function(t){var r=this.getCultureInfo(t);return r||(r=P[e._cRName])||(r=new x),r},e.prototype._getFilterDialogFormatterStr=function(e,t){var r=(this.getCultureInfo(e)||this.getCultureInfo("en-US")).DateTimeFormat,n=r.filterDialogDateFormatter;return(t.indexOf("g")>=0||t.indexOf("e")>=0)&&(n=r.EraFilterDialogDateFormatter||n),n},e._cRName="en-us",e}();t.CultureManager=A.instance()},561:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var a=Object.getOwnPropertyDescriptor(t,r);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,a)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),a=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),a(r(895),t)},566:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Error_InvalidRemoteConfigurationForUserFetching=t.Error_GraphQLSchemaMustBeProvidedForGraphQLAdapter=t.Error_FailedToFetchUsers=t.Error_RemoteConfigurationForUserFetchingNotProvided=t.GUEST_USER=void 0,t.GUEST_USER="Guest",t.Error_RemoteConfigurationForUserFetchingNotProvided="Remote configuration for user fetching is not provided.",t.Error_FailedToFetchUsers="Failed to fetch users: ",t.Error_GraphQLSchemaMustBeProvidedForGraphQLAdapter="GraphQL schema must be provided for graphql adapter.",t.Error_InvalidRemoteConfigurationForUserFetching="Invalid remote configuration for user fetching."},895:function(e,t,r){var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(a,i){function o(e){try{u(n.next(e))}catch(e){i(e)}}function s(e){try{u(n.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?a(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,s)}u((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var r,n,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(u){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(o=0)),o;)try{if(r=1,n&&(a=2&s[0]?n.return:s[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,s[1])).done)return a;switch(n=0,a&&(s=[2&s[0],a.value]),s[0]){case 0:case 1:a=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,n=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((a=(a=o.trys).length>0&&a[a.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!a||s[1]>a[0]&&s[1]<a[3])){o.label=s[1];break}if(6===s[0]&&o.label<a[1]){o.label=a[1],a=s;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(s);break}a[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],n=0}finally{r=a=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.UserManager=t.UserManagerEvent=void 0;var i=r(566),o=r(818),s=r(479),u=r(534),l=r(305);u._Types._extend(o.SR.en,i);var c,m=new o.ResourceManager(o.SR),y=m.getResource.bind(m),h=u._Types._isNullOrUndefined,f=l._ArrayHelper._clone,d=u._Types._cloneObject,p=["#3B82F6","#10B981","#8B5CF6","#F59E0B","#EF4444","#06B6D4","#EC4899","#84CC16","#6366F1","#14B8A6","#F97316","#A855F7","#22C55E","#EAB308","#F43F5E","#0EA5E9","#D946EF","#65A30D","#DC2626","#7C3AED"];!function(e){e.CurrentUserChanged="CurrentUserChanged"}(c=t.UserManagerEvent||(t.UserManagerEvent={}));var _=function(){function e(e){var t={id:s.UUIDGenerator.secureUpperCaseUUID(),name:y().GUEST_USER,color:"#26A69A",_isDefault:!0};this._users=[t],this._currentUserId=t.id,this.options=e,this._currentColorIndex=0,this._listeners=new Map([[c.CurrentUserChanged,[]]])}return e.instance=function(){return this._instance||(this._instance=new this)},e.prototype.configure=function(e){this.options=e},e.prototype._getSync=function(e){for(var t=this._users,r=0;r<t.length;r++)if(t[r].id===e)return d(t[r])},e.prototype._get=function(e){var t;return n(this,void 0,void 0,(function(){var r;return a(this,(function(n){switch(n.label){case 0:return(null===(t=this.options)||void 0===t?void 0:t.get)?[4,this.options.get(e)]:[3,2];case 1:return(r=n.sent())&&this._add(r),[2,r];case 2:return[2]}}))}))},e.prototype._getOrCreate=function(e){e||(e=s.UUIDGenerator.secureUpperCaseUUID());var t=this._getSync(e);return t||(t={id:e,name:y().GUEST_USER}),this._add(t),t},e.prototype._assignColorToUsers=function(e){var t=this;Array.isArray(e)&&e.forEach((function(e){e&&!e.color&&(e.color=t._getCurrentColor(e.id))}))},e.prototype._search=function(e){var t;return n(this,void 0,void 0,(function(){var r,n;return a(this,(function(a){switch(a.label){case 0:return(null===(t=(r=this).options)||void 0===t?void 0:t.search)?[4,r.options.search(e)]:[3,2];case 1:return n=a.sent(),r._assignColorToUsers(n),[2,n];case 2:return[2,[]]}}))}))},e.prototype.bind=function(e,t){this._listeners.has(e)||this._listeners.set(e,[]);var r=this._listeners.get(e);Array.isArray(r)&&r.push(t)},e.prototype.current=function(e){var t=this;if(h(e))return t._currentUserId;if(t._currentUserId!==e){var r=t._currentUserId;t._currentUserId=e,Promise.all([t._get(r),t._get(e)]).then((function(n){var a=n[0],i=n[1];a||(a=t._getSync(r))&&a._isDefault&&(t._users=t._users.filter((function(e){return!e._isDefault}))),t._triggerCurrentUserChanged(a,i,r,e)})).catch((function(n){t._triggerCurrentUserChanged(void 0,void 0,r,e)}))}return t._currentUserId},e.prototype._triggerCurrentUserChanged=function(e,t,r,n){e||(e=this._getSync(r)),t||(t=this._getSync(n)),this._trigger(c.CurrentUserChanged,{oldCurrentUser:e,newCurrentUser:t})},e.prototype._getUsers=function(){return f(this._users)},e.prototype.unbind=function(e,t){if(this._listeners.has(e)){var r=this._listeners.get(e);if(!Array.isArray(r))return;t?r.splice(r.indexOf(t),1):r.splice(0)}},e.prototype._trigger=function(e,t){if(this._listeners.has(e)){var r=this._listeners.get(e);if(!Array.isArray(r))return;r.forEach((function(r){r(e,t)}))}},e.prototype._fromJSON=function(e){e&&(this._assignColorToUsers(e),this._users=e||[])},e.prototype._toJSON=function(){return f(this._users)},e.prototype._getCurrentColorIndex=function(){var e,t=this._currentColorIndex,r=(null===(e=this.options)||void 0===e?void 0:e.colorScheme)?this.options.colorScheme.length:p.length;return this._currentColorIndex=(t+1)%r,t},e.prototype._hashString=function(e){var t=0;if(!e||0===e.length)return t;for(var r=0;r<e.length;r++){t=(t<<5)-t+e.charCodeAt(r),t|=0}return Math.abs(t)},e.prototype._getColorIndexForUser=function(e){var t,r=(null===(t=this.options)||void 0===t?void 0:t.colorScheme)?this.options.colorScheme.length:p.length;return this._hashString(e)%r},e.prototype._getCurrentColor=function(e){var t,r=(null===(t=this.options)||void 0===t?void 0:t.colorScheme)||p;return e?r[this._getColorIndexForUser(e)]:r[this._getCurrentColorIndex()]},e.prototype._add=function(e){for(var t=this._users,r=0;r<t.length;r++)if(t[r].id===e.id)return t[r]=e,void(e.color||(e.color=this._getCurrentColor(e.id)));e.color||(e.color=this._getCurrentColor(e.id)),t.push(e)},e.prototype._create=function(e,t){var r={id:e||s.UUIDGenerator.secureUpperCaseUUID(),name:t||y().GUEST_USER};return this._add(r),r},e.prototype._remove=function(e){this._users=this._users.filter((function(t){return t.id!==e}))},e.prototype._dispose=function(){this._listeners.clear(),this._users=[],this._currentUserId=""},e}();t.UserManager=_.instance()},305:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t._ArrayHelper=void 0;function r(e,t){for(var n in t)if(t.hasOwnProperty(n)){var a=t[n];Array.isArray(a)?(e[n]=[],r(e[n],t[n])):null!==a&&"object"==typeof a?(e[n]={},r(e[n],t[n])):e[n]=t[n]}}var n=function(){function e(){}return e._insert=function(e,t,r){e.splice(t,0,r)},e._add=function(e,t){e.push(t)},e._contains=function(e,t){return e.indexOf(t)>-1},e._remove=function(e,t){var r=e.indexOf(t);r>-1&&e.splice(r,1)},e._removeByIndex=function(e,t){return e.slice(0,t).concat(e.slice(t+1))},e._indexOf=function(e,t,r){return e.indexOf(t,r)},e._clear=function(e,t,r){if(!(t<0))for(var n=0;n<r&&t+n<e.length;n++)e[t+n]=null},e._nextNonEmptyIndex=function(e,t){t<0&&(t=-1);for(var r=t+1;r<e.length;r++)if(void 0!==e[r]&&null!==e[r])return r;return-1},e._getLength=function(e){return e&&e.length},e._clone=function(e){var t=[];return r(t,e),t},e}();t._ArrayHelper=n},395:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t._ColorHelper=void 0;var n=r(844)._NumberHelper._toHexString,a=Math.min,i=Math.max,o=Math.abs,s=parseInt;function u(e,t,r){return r<0&&(r+=240),r>240&&(r-=240),r<40?e+((t-e)*r+20)/40:r<120?t:r<160?e+((t-e)*(160-r)+20)/40:e}function l(e,t,r){var n,a,i;if(0===r)n=a=i=s(255*t/240+"",10);else{var o,u;n=c(o=2*t-(u=t<=120?s((t*(240+r)+120)/240+""):t+r-s((t*r+120)/240+"")),u,e+80),a=c(o,u,e),i=c(o,u,e-80)}return{a:255,r:n,g:a,b:i}}function c(e,t,r){return a(s((255*u(e,t,r)+120)/240+""),255)}var m={aliceblue:[240,248,255,255],antiquewhite:[250,235,215,255],aqua:[0,255,255,255],aquamarine:[127,255,212,255],azure:[240,255,255,255],beige:[245,245,220,255],bisque:[255,228,196,255],black:[0,0,0,255],blanchedalmond:[255,235,205,255],blue:[0,0,255,255],blueviolet:[138,43,226,255],brown:[165,42,42,255],burlywood:[222,184,135,255],cadetblue:[95,158,160,255],chartreuse:[127,255,0,255],chocolate:[210,105,30,255],coral:[255,127,80,255],cornflowerblue:[100,149,237,255],cornsilk:[255,248,220,255],crimson:[220,20,60,255],cyan:[0,255,255,255],darkblue:[0,0,139,255],darkcyan:[0,139,139,255],darkgoldenrod:[184,134,11,255],darkgray:[169,169,169,255],darkgreen:[0,100,0,255],darkgrey:[169,169,169,255],darkkhaki:[189,183,107,255],darkmagenta:[139,0,139,255],darkolivegreen:[85,107,47,255],darkorange:[255,140,0,255],darkorchid:[153,50,204,255],darkred:[139,0,0,255],darksalmon:[233,150,122,255],darkseagreen:[143,188,143,255],darkslateblue:[72,61,139,255],darkslategray:[47,79,79,255],darkslategrey:[47,79,79,255],darkturquoise:[0,206,209,255],darkviolet:[148,0,211,255],deeppink:[255,20,147,255],deepskyblue:[0,191,255,255],dimgray:[105,105,105,255],dimgrey:[105,105,105,255],dodgerblue:[30,144,255,255],firebrick:[178,34,34,255],floralwhite:[255,250,240,255],forestgreen:[34,139,34,255],fuchsia:[255,0,255,255],gainsboro:[220,220,220,255],ghostwhite:[248,248,255,255],gold:[255,215,0,255],goldenrod:[218,165,32,255],gray:[128,128,128,255],green:[0,128,0,255],greenyellow:[173,255,47,255],grey:[128,128,128,255],honeydew:[240,255,240,255],hotpink:[255,105,180,255],indianred:[205,92,92,255],indigo:[75,0,130,255],ivory:[255,255,240,255],khaki:[240,230,140,255],lavender:[230,230,250,255],lavenderblush:[255,240,245,255],lawngreen:[124,252,0,255],lemonchiffon:[255,250,205,255],lightblue:[173,216,230,255],lightcoral:[240,128,128,255],lightcyan:[224,255,255,255],lightgoldenrodyellow:[250,250,210,255],lightgray:[211,211,211,255],lightgreen:[144,238,144,255],lightgrey:[211,211,211,255],lightpink:[255,182,193,255],lightsalmon:[255,160,122,255],lightseagreen:[32,178,170,255],lightskyblue:[135,206,250,255],lightslategray:[119,136,153,255],lightslategrey:[119,136,153,255],lightsteelblue:[176,196,222,255],lightyellow:[255,255,224,255],lime:[0,255,0,255],limegreen:[50,205,50,255],linen:[250,240,230,255],magenta:[255,0,255,255],maroon:[128,0,0,255],mediumaquamarine:[102,205,170,255],mediumblue:[0,0,205,255],mediumorchid:[186,85,211,255],mediumpurple:[147,112,219,255],mediumseagreen:[60,179,113,255],mediumslateblue:[123,104,238,255],mediumspringgreen:[0,250,154,255],mediumturquoise:[72,209,204,255],mediumvioletred:[199,21,133,255],midnightblue:[25,25,112,255],mintcream:[245,255,250,255],mistyrose:[255,228,225,255],moccasin:[255,228,181,255],navajowhite:[255,222,173,255],navy:[0,0,128,255],oldlace:[253,245,230,255],olive:[128,128,0,255],olivedrab:[107,142,35,255],orange:[255,165,0,255],orangered:[255,69,0,255],orchid:[218,112,214,255],palegoldenrod:[238,232,170,255],palegreen:[152,251,152,255],paleturquoise:[175,238,238,255],palevioletred:[219,112,147,255],papayawhip:[255,239,213,255],peachpuff:[255,218,185,255],peru:[205,133,63,255],pink:[255,192,203,255],plum:[221,160,221,255],powderblue:[176,224,230,255],purple:[128,0,128,255],rebeccapurple:[102,51,153,255],red:[255,0,0,255],rosybrown:[188,143,143,255],royalblue:[65,105,225,255],saddlebrown:[139,69,19,255],salmon:[250,128,114,255],sandybrown:[244,164,96,255],seagreen:[46,139,87,255],seashell:[255,245,238,255],sienna:[160,82,45,255],silver:[192,192,192,255],skyblue:[135,206,235,255],slateblue:[106,90,205,255],slategray:[112,128,144,255],slategrey:[112,128,144,255],snow:[255,250,250,255],springgreen:[0,255,127,255],steelblue:[70,130,180,255],tan:[210,180,140,255],teal:[0,128,128,255],thistle:[216,191,216,255],tomato:[255,99,71,255],turquoise:[64,224,208,255],violet:[238,130,238,255],wheat:[245,222,179,255],white:[255,255,255,255],whitesmoke:[245,245,245,255],yellow:[255,255,0,255],yellowgreen:[154,205,50,255]},y=function(){function e(e){var t=e.r,r=e.g,n=e.b,o=i(i(t,r),n),u=a(a(t,r),n),l=o+u;this._luminosity=s((240*l+255)/510+"",10);var c=o-u;if(0===c)this._saturation=0,this._hue=160;else{this._luminosity<=120?this._saturation=s((240*c+l/2)/l+"",10):this._saturation=s((240*c+(510-l)/2)/(510-l)+"",10);var m=(40*(o-t)+c/2)/c,y=(40*(o-r)+c/2)/c,h=(40*(o-n)+c/2)/c;this._hue=s(t===o?h-y+"":r===o?80+m-h+"":160+y-m+"",10),this._hue<0&&(this._hue+=240),this._hue>240&&(this._hue-=240)}}return e.prototype._getLighterColor=function(e){var t=this._luminosity,r=this._newLuma(this._luminosity,500,!0);return l(this._hue,t+(r-t)*e,this._saturation)},e.prototype._newLuma=function(e,t,r){return 0===t?e:r?t>0?(e*(1e3-t)+241*t)/1e3:e*(t+1e3)/1e3:((e+=240*t/1e3)<0&&(e=0),e>240&&(e=240),e)},e}(),h=/rgba?\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})(?:,\s*(\.\d+|\d(?:\.\d+)?))?\)/;function f(e){if(/^#[A-Fa-f0-9]+$/.test(e)){var t=e.replace(/^#/,""),r=t.length,n="",a="";if(6===r||8===r)n=t.substr(0,6),8===r&&(a=t.substr(6,2));else if(3===r||4===r){var i=t.split(3===r?/(.)/:/(..)/);n=i.filter(Boolean).map((function(e){return parseInt(3===r?e+e:e,16)})).map((function(e){return e.toString(16).padStart(2,"0")})).join(""),4===r&&(a=i[3]+i[3])}return[parseInt(n.slice(0,2),16),parseInt(n.slice(2,4),16),parseInt(n.slice(4,6),16),s=a?parseInt(a,16):255]}if(e.toLowerCase()in m)return m[e.toLowerCase()];var o=h.exec(e);if(null!==o){var s=void 0===o[4]?255:255*+o[4];return[o[1],o[2],o[3],s]}return null}var d=function(){function e(){}return e._toString=function(e){var t=e.a,r=e.r,a=e.g,i=e.b;return 3===arguments.length&&(t=255,r=arguments[0],a=arguments[1],i=arguments[2]),4===arguments.length&&(t=arguments[0],r=arguments[1],a=arguments[2],i=arguments[3]),255===t?"#"+n(r,!0,2)+n(a,!0,2)+n(i,!0,2):"rgba("+r+","+a+","+i+","+t+")"},e._equal=function(e,t){return e.stops||e.type?JSON.stringify(e)===JSON.stringify(t):e.a===t.a&&e.r===t.r&&e.g===t.g&&e.b===t.b},e._getBrightness=function(e){return(299*e.r+587*e.g+114*e.b)/1e3},e._isTwoColorSimilar=function(e,t){var r=255-o(e.r-t.r),n=255-o(e.g-t.g),a=255-o(e.b-t.b),i=o(e.a-t.a);return!!(((r/=255)+(n/=255)+(a/=255))/3>=.9&&i<=.05)},e._invertColor=function(t){var r=255^t.r,n=255^t.g,a=255^t.b;return e._toString(t.a,r,n,a)},e._stringToARGB=function(t){if("object"!=typeof document)return f(t);var n=e._ctx;if(n||(i=document.createElement("canvas"))&&i.getContext&&(n=e._ctx=i.getContext("2d",{willReadFrequently:!0})),!n){var a=r(736);if(a&&a.createCanvas){var i=a.createCanvas(2,2);n=e._ctx=i.getContext("2d")}if(!n)return f(t)}n.clearRect(1,1,1,1),n.fillStyle=t,n.fillRect(1,1,1,1);var o=n.getImageData(1,1,1,1);return o?o.data:null},e._fromString=function(t){if(t instanceof e)return t;if(null!==t&&"object"==typeof t)return t;var r=0,n=0,a=0,i=0;if(t){var o=e._stringToARGB(t);o&&(n=o[0],a=o[1],i=o[2],r=o[3])}return{a:r,r:n,g:a,b:i}},e._applyTint=function(t,r){if(0===r)return t;var n=new y(t),a=s((r>0?(240-n._luminosity)*r:n._luminosity*r)+"",10);return e._fromHLS(n._hue,n._luminosity+a,n._saturation)},e._getLighterColor=function(t,r){var n=e._fromString(t),a=new y(n)._getLighterColor(r);return e._toString(a)},e._hueToRGB=u,e._fromHLS=l,e}();t._ColorHelper=d},818:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t._isInstanceOf=t._hasOwnProperty=t._deleteElementsForMap=t._deleteElements=t._addElementsForMap=t._addElements=t.ResourceManager=t.SR=void 0;var n=r(286),a=r(612),i=r(534);t.SR={en:a};var o=i._Types._extend,s=function(){function e(e,t){this.res=e,this._moduleName=t,this._resourcesMap=n.CultureManager._resourcesMap,this.cachedResource=this._getResourceCollection(e,!0),this._buildResourcesMap(this.cachedResource,t),this._cultureVersion=0}return e.prototype.getResource=function(){var e=this._getResourceCollection(this.res,!this.cachedResource);return e&&(this.cachedResource=e),this._buildResourcesMap(this.cachedResource,this._moduleName),this.cachedResource},e.prototype._buildResourcesMap=function(e,t){if(t){var r=n.CultureManager.culture().toLowerCase();this._resourcesMap[r]=this._resourcesMap[r]||{},this._resourcesMap[r][t]=e,n.CultureManager._resourcesMap=this._resourcesMap}},e.prototype._getResourceCollection=function(e,t){var r=n.CultureManager.culture();if(e&&r){var a=n.CultureManager._cultureVersion;if(this._cultureVersion===a&&!t)return;if(this._cultureVersion=a,n.CultureManager.getLanguage(r)){var i=o(!0,{},e.en);return n.CultureManager._languageTranslate(r,i,this._moduleName),i}var s=r.substr(0,2).toLowerCase();return e.hasOwnProperty(s)?e[s]:e.en}return{}},e}();t.ResourceManager=s,t._addElements=function(e,t,r,n){if(e&&0<=r&&r<t){var a,i=[],o=void 0;for(o=r;o<t;o++)void 0!==e[o]&&i.push(o);for(a=i.length,o=0;o<a;o++){var s=i[a-o-1],u=e[s];e[s]=null,e[Math.floor(s)+n]=u}}},t._addElementsForMap=function(e,t,r,n){if(e&&0<=t){for(var a,i=[],o=void 0,s=0,u=Array.from(e.keys());s<u.length;s++){(l=u[s])>=t&&i.push(l)}for(i.sort((function(e,t){return e-t})),a=i.length,o=0;o<a;o++){var l=i[a-o-1],c=e.get(l);e.delete(l);var m=l+r;e.set(m,c),n&&n(c,m)}}},t._deleteElements=function(e,t,r,n){if(e&&0<=r&&r<t){var a,i=[],o=r+n,s=void 0;for(s=r;s<t;s++)void 0!==e[s]&&(r<=s&&s<o?e[s]=null:s>=o&&i.push(s));for(a=i.length,s=0;s<a;s++){var u=i[s],l=e[u];e[u]=null,e[Math.floor(u)-n]=l}}},t._deleteElementsForMap=function(e,t,r,n){if(e&&0<=t){for(var a,i=[],o=t+r,s=void 0,u=0,l=Array.from(e.keys());u<l.length;u++){var c=l[u];e.has(c)&&(t<=c&&c<o?(n&&n(e.get(c),-1),e.delete(c)):c>=o&&i.push(c))}for(i.sort((function(e,t){return e-t})),a=i.length,s=0;s<a;s++){c=i[s];var m=e.get(c);e.delete(c);var y=c-r;e.set(y,m),n&&n(m,y)}}},t._hasOwnProperty=function(e,t){return e.hasOwnProperty(t)},t._isInstanceOf=function(e,t){return e instanceof t}},97:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t._DateTimeHelper=t.getSR=void 0;var n=r(818),a=r(480),i=r(305),o=r(286),s=r(534)._Types._isNullOrUndefined,u=a._StringHelper._padZeroLeft,l=parseInt,c=!1,m=Math.floor,y=Math.abs,h=new n.ResourceManager(n.SR,"Common");t.getSR=h.getResource.bind(h);var f={};function d(e,r,a,i){var s=a.DateTimeFormat,l=s.Calendar.convert;if(!r||!r.length)return a&&a.name.length?l?d(e,s.fullDateTimePattern,a):e.toLocaleString():e.toString();var c,h,f,_=s.eras,g="",M=/([^d]|^)(d|dd)([^d]|$)/g;function v(){return h||f||(h=M.test(r),f=!0),h}var b,F=0,S=/\/|dddd|ddd|dd|d|MMMM|MMM|MM|M|yyyy|yyy|yy|y|hh|h|HH|H|mm|m|ss|s|tt|t|fff|ff|f|000|00|0|zzz|zz|z|ggg|gg|g|ee|e|\[H+\]|\[h+\]|\[m+\]|\[s+\]/g;function D(e,t){return b?b[t]:function(e,t){if(n.HandleExcelSpecialDate)return n.HandleExcelSpecialDate.call(null,e,t);switch(t){case 0:return e.getFullYear();case 1:return e.getMonth();case 2:return e.getDate();default:return}}(e,t)}"s"!==r&&l&&(b=l.fromGregorian(e));for(var x=-2,C=-2,T={_value:""},N=0;;N++){var H=S.lastIndex,E=S.exec(r),P=r.slice(H,E?E.index:r.length);if(T._value="",F+=p(P,T),g+=T._value,!E)break;if(F%2!=1){var O=D(e,0),w=e.getDay(),k=e.getHours(),I=e.getMinutes(),A=e.getSeconds(),$=e.getMilliseconds(),R=e.getTimezoneOffset();switch(E[0]){case"dddd":g+=s.dayNames[w];break;case"ddd":g+=s.abbreviatedDayNames[w];break;case"dd":h=!0,g+=u(D(e,2),2);break;case"d":h=!0,g+=D(e,2);break;case"MMMM":g+=s.monthGenitiveNames&&v()?s.monthGenitiveNames[D(e,1)]:s.monthNames[D(e,1)];break;case"MMM":g+=s.abbreviatedMonthGenitiveNames&&v()?s.abbreviatedMonthGenitiveNames[D(e,1)]:s.abbreviatedMonthNames[D(e,1)];break;case"MM":g+=u(D(e,1)+1,2);break;case"M":g+=D(e,1)+1;break;case"yyyy":case"yyy":g+=x>=0?o._EraHelper._formatEraPart("ee",e,i):u(b?b[0]:O,4);break;case"yy":g+=x>=0?o._EraHelper._formatEraPart("ee",e,i):u((b?b[0]:O)%100,2);break;case"y":g+=x>=0?o._EraHelper._formatEraPart("e",e,i):""+(b?b[0]:O)%100;break;case"hh":0==(c=k%12)&&(c=12),g+=u(c,2);break;case"h":0==(c=k%12)&&(c=12),g+=c;break;case"HH":g+=u(k,2);break;case"H":g+=k.toString();break;case"mm":g+=u(I,2);break;case"m":g+=I.toString();break;case"ss":g+=u(A,2);break;case"s":g+=A.toString();break;case"tt":g+=k<12?s.amDesignator:s.pmDesignator;break;case"t":g+=(k<12?s.amDesignator:s.pmDesignator).charAt(0);break;case"f":case"0":g+=u($,3).charAt(0);break;case"ff":case"00":g+=u($,3).substr(0,2);break;case"fff":case"000":g+=u($,3);break;case"z":g+=((c=R/60)<=0?"+":"-")+m(y(c));break;case"zz":g+=((c=R/60)<=0?"+":"-")+u(m(y(c)),2);break;case"zzz":g+=((c=R/60)<=0?"+":"-")+u(m(y(c)),2)+":"+u(y(R%60),2);break;case"g":case"gg":case"ggg":if(!_)break;if(x===N-1){x=N;break}g+=o._EraHelper._formatEraPart(E[0],e,i),x=N;break;case"e":case"ee":if(!_){g+=u(b?b[0]:O,4);break}if(C===N-1){C=N;break}g+=o._EraHelper._formatEraPart(E[0],e,i),C=N;break;case"/":g+=s.dateSeparator;break;default:if(!/\[(H+|h+|m+|s+)\]/.test(E[0]))throw Error((0,t.getSR)().Exp_InvalidDateFormat);g+=E[0]}}else g+=E[0]}return g.toString()}function p(e,t){for(var r=0,n=c,a=0,i=e.length;a<i;a++){var o=e.charAt(a);switch(o){case'"':n?t._value+="'":r++,n=c;break;case"\\":n&&(t._value+="\\"),n=!n;break;default:t._value+=o,n=c}}return r}function _(e,t){var r=new Date;if(e.DateTimeFormat.eras&&t<100){var n=o._EraHelper._getEraDate(r)._eraYear;(t+=n-n%100)>e.DateTimeFormat.Calendar.TwoDigitYearMax&&(t-=100)}return t}function g(e){var t=e.getTimezoneOffset();return-485===t&&(t=-485-43/60),-321===t&&(t=-321-10/60),-507===t&&(t=-507-52/60),-402===t&&(t=-402-4/60),t}var M=function(){function e(){}return e._customCultureFormat=function(e,t,r,n){return r||(r=o.CultureManager._getCultureInfo()),d(e,t,r,n)},e._localeFormat=function(e,t,r){return d(e,t,r||o.CultureManager._getCultureInfo())},e._parseDate=function(t,r,n){var a,i,o,s,u,l=c;for((u=n).slice(1).forEach((function(e){e&&(l=!0)})),l||(u=u.concat(r._getDateTimePattern())),i=u.length,a=1;a<i;a++)if((s=u[a])&&(l=!0,o=e._parseExact(t,s,r)))return o;return null},e._parseLocale=function(t,r,n){var a,i;return r||n||void 0===(i=f[t])?(a=r?[t,r]:[t],i=e._parseDate(t,n||o.CultureManager._getCultureInfo(),a),r||n||(f[t]=i),i?new Date(i):i):i?new Date(i):i},e._parseInvariant=function(t,r){return e._parseDate(t,o.CultureManager._getCultureInfo("invariant"),[t,r])},e._parseExact=function(e,r,n){e=e.trim();var s=n.DateTimeFormat,u=1041===n.id,m=function(e,r,n){if(e._parseRegExp){if(e._parseRegExp[r])return e._parseRegExp[r]}else e._parseRegExp={};var a=r;a=(a=a.replace("%M","M")).replace(/([\^\$\.\*\+\?\|\[\]\(\)\{\}])/g,"\\\\$1");for(var o,s="^",u={_value:""},l=[],c=0,m=0,y=/\/|dddd|ddd|dd|d|MMMM|MMM|MM|M|yyyy|yyy|yy|y|hh|h|HH|H|mm|m|ss|s|tt|t|fff|ff|f|000|00|0|zzz|zz|z|ggg|gg|g|ee|e|\[H+\]|\[h+\]|\[m+\]|\[s+\]/g;null!==(o=y.exec(a));){u._value="";var h=a.slice(c,o.index);if(c=y.lastIndex,m+=p(h,u),s+=u._value,m%2!=1){switch(o[0]){case"dddd":case"ddd":case"MMMM":case"MMM":case"gggg":case"ggg":case"gg":case"g":s+="(\\D+)";break;case"tt":case"t":s+="(\\D*)";break;case"dd":case"d":case"MM":case"M":case"yy":case"y":case"HH":case"H":case"hh":case"h":case"mm":case"m":case"ss":case"s":s+="(\\d\\d?\\d?)";break;case"eee":case"ee":case"e":s+=n?"(\\u5143|\\d\\d?)":"(\\d\\d?)";break;case"yyy":case"yyyy":s+="(\\d{2}|\\d{4})";break;case"fff":case"000":s+="(\\d{3})";break;case"ff":case"00":s+="(\\d{2})";break;case"f":case"0":s+="(\\d)";break;case"zzz":s+="([+-]?\\d\\d?:\\d{2})";break;case"zz":case"z":s+="([+-]?\\d\\d?)";break;case"/":s+="/"===e.dateSeparator?"(\\/)":"([\\/\\"+e.dateSeparator+"])";break;default:throw Error((0,t.getSR)().Exp_InvalidDateFormat)}i._ArrayHelper._add(l,o[0])}else s+=o[0]}u._value="",p(a.slice(c),u),s+=u._value;var f=(s+="$").toString().replace(/\s+/g,"\\s+"),d={_regExp:f,_groups:l,_exp:RegExp(f)};return e._parseRegExp[r]=d,d}(s,r,u),y=m._exp.exec(e);if(null===y)return null;for(var h,f=m._groups,d=null,g=null,M=null,v=null,b=null,F=0,S=0,D=0,x=0,C=null,T=c,N=c,H=0,E=f.length;H<E;H++){var P=y[H+1];if(P)switch(f[H]){case"dd":case"d":if((v=l(P,10))<1||v>31)return null;break;case"MMMM":if((M=n._getMonthIndex(P))<0||M>11)return null;break;case"MMM":if((M=n._getAbbrMonthIndex(P))<0||M>11)return null;break;case"M":case"MM":case"%M":if((M=l(P,10)-1)<0||M>11)return null;break;case"e":case"ee":if((g=u&&"元"===P?1:_(n,l(P,10)))<0||g>9999)return null;break;case"y":case"yy":case"yyy":case"yyyy":if((g=l(P,10))<0||g>9999)return null;break;case"h":case"hh":case"H":case"HH":if((F=l(P,10))<0)return null;break;case"m":case"mm":if((S=l(P,10))<0||S>59)return null;break;case"s":case"ss":if((D=l(P,10))<0||D>59)return null;break;case"tt":case"t":var O=P.toUpperCase();if(T=O===s.pmDesignator.toUpperCase(),N=O===s.amDesignator.toUpperCase(),!T&&!N)return null;break;case"f":case"0":if((x=100*l(P,10))<0||x>999)return null;break;case"ff":case"00":if((x=10*l(P,10))<0||x>999)return null;break;case"fff":case"000":if((x=l(P,10))<0||x>999)return null;break;case"dddd":if((b=n._getDayIndex(P))<0||b>6)return null;break;case"ddd":if((b=n._getAbbrDayIndex(P))<0||b>6)return null;break;case"zzz":var w=P.split(/:/);if(2!==w.length)return null;if((h=l(w[0],10))<-12||h>13)return null;var k=l(w[1],10);if(k<0||k>59)return null;C=60*h+(a._StringHelper._startsWith(P,"-")?-k:k);break;case"z":case"zz":if((h=l(P,10))<-12||h>13)return null;C=60*h;break;case"g":case"gg":case"ggg":var I=P;if(!I||!s.eras)return null;if((d=o._EraHelper._parseEraPart(f[H],I))<0)return null}}var A,$=/^(\d|\d\d|\d\d\d):/.test(e),R=$?new Date(1899,11,30):new Date,U=s.Calendar.convert;if(U&&(A=U.fromGregorian(R)),U||(A=[R.getFullYear(),R.getMonth(),R.getDate()]),null===g?g=A[0]:g<100&&(s.eras&&null!==d?g=o._EraHelper._getYearFromEra(d||0,g):g+=g>=30?1900:2e3),null===M&&(M=A[1]),null===v&&(v=$?A[2]:1),U){if(null===(R=U.toGregorian(g,M,v)))return null}else{if(R.setFullYear(g,M,v),R.getDate()!==v)return null;if(null!==b&&R.getDay()!==b)return null}if(T&&F<12?F+=12:N&&12===F&&(F=0),R.setHours(F,S,D,x),null!==C){var B=R.getMinutes()-(C+R.getTimezoneOffset());R.setHours(R.getHours()+B/60,B%60)}return R},e._fromOADate=function(e){var t=g(new Date(864e5*(e-25569))),r=Math.round(864e5*(e-25569+t/1440)),n=new Date(r),a=t>=0?1:-1,i=g(new Date(r+36e5*a));if(y(t-i)>=60){var o=new Date(r+60*(i-t)*1e3);if(t>i){if(-1===a||i===g(n))return o}else if(t<i&&(1===a||i===g(n)))return o}return n},e._fromOADateString=function(t){if("/OADate("===t.substr(0,8)){var r=parseFloat(t.substr(8,t.length-10));return e._fromOADate(r)}},e._toOADateString=function(t){return"/OADate("+e._toOADate(t)+")/"},e._toOADate=function(e){if(s(e))return 0;if("number"!=typeof e&&"string"!=typeof e||(e=new Date(e)),e instanceof Date){var t=g(e);return(1440*e.getTime()+3181192704e6-864e5*t)/124416e6}return 0},e._DT=function(r){var n=null,a=!0;if(s(r))n=e._fromOADate(0);else if(r instanceof Date)n=new Date(r.valueOf());else if("string"==typeof r){var i=e._parseLocale(r);if(!i)if(isNaN(r))if(e._isInvalidDateString(r))a=c;else{isNaN((i=new Date(r)).valueOf())&&(a=c);var o=/^[-+=\s]*(\d+)\W+(\d+)\W+(\d+)$/.exec(r.replace(/ |\n/g,"").trim());o&&4===o.length&&(-1!==o.indexOf(i.getFullYear().toString())&&-1!==o.indexOf(""+(i.getMonth()+1))&&-1!==o.indexOf(i.getDate().toString())||(a=c))}else(i=e._fromOADate(parseFloat(r)))||(a=c);n=i}else"number"==typeof r?n=e._fromOADate(r):a=c;if(a)return n;throw(0,t.getSR)().Exp_InvalidCast},e._isInvalidDateString=function(t){var r,n,a=o.CultureManager._getCultureInfo().DateTimeFormat,i=e._invalidCharInDateStr,s=function(e,t){var r=0;return t.forEach((function(t){t&&e.indexOf(t)>-1&&r++})),r>1};return s(t,a.monthNames)||s(t,a.abbreviatedMonthNames)||s(t,a.dayNames)||s(t,a.abbreviatedDayNames)||function(e,t){if(e&&e.indexOf(" ")>-1){var r=e.split(" "),n=r.length;return n>=2&&t.indexOf(r[n-2])<=-1&&!isNaN(r[n-1])}return!1}(t,a.monthNames.concat(a.abbreviatedMonthNames))||(r=t,n=!1,i.forEach((function(e){r.indexOf(e)>-1&&(n=!0)})),n)},e._isDate=function(e){return e&&(e.constructor===Date||e.getUTCDate&&e.setFullYear)},e._invalidCharInDateStr=["@","#","!","`","^","$","*","(",")","&"],e}();t._DateTimeHelper=M},646:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t._growth=t._trend=void 0;var n=r(844),a=isNaN,i="rowCount",o="colCount";function s(e){return e}function u(e,t,r,s,u,l,c,m,y,h,f){var d,p,_,g,M,v,b,F,S,D,x,C,T,N,H,E,P=r[i],O=r[o],w=t[i],k=t[o],I=s[i],A=s[o],$=1===O,R=1===k;if(w===P&&k===O){var U=0,B=0,L=0,j=0;for(b=P*O,d=0;d<P;d++)for(p=0;p<O;p++){if(g=l(r[d][p]),M=l(t[d][p]),e&&(a(g)||a(M)))return y;U+=g,B+=g*g,L+=M=h(M),j+=g*M}var G=b*j-U*L;F=u?(L*B-U*j)/(b*B-U*U):0;var Y=(v=u?G/(b*B-U*U):j/B).toString();for((Y.indexOf("000000000000")>1||Y.indexOf("999999999999")>1)&&(v=n._NumberHelper._fixNumber(v,12),F=n._NumberHelper._fixNumber(F,12)),S=[],d=0;d<I;d++)for(S[d]=[],p=0;p<A;p++){if(g=l(s[d][p]),e&&a(g))return y;S[d][p]=0===G?t[0][0]:f(n._NumberHelper._safeAdd(v*g,F))}return c?new c(S):S}if(R&&w===P||1===w&&k===O){for(g=[],M=[],H=O+1,E=O+2,d=0;d<P;d++){if(F=l(x=R?t[d][0]:t[0][d]),e&&a(F))return y;M[d]=$?h(F):F}for(d=0;d<P;d++)for(g[d]=[],p=0;p<O;p++){if(F=l(r[d][p]),e&&a(F))return y;g[d][p]=F}var z=[];for(v=0;v<H;v++)for(z[v]=[],b=0;b<E;b++)z[v][b]=0;for(_=0;_<P;_++)for(z[0][H]+=M[_],d=0;d<O;d++)for(x=d+1,z[0][x]+=g[_][d],z[x][0]=z[0][x],z[x][H]+=g[_][d]*M[_],p=d;p<O;p++)z[T=p+1][x]+=g[_][d]*g[_][p],z[x][T]=z[T][x];z[0][0]=P;var K=u?0:1;for(D=K;D<H;D++){if(e){if(0===z[D][D]){for(N=!1,p=D+1;!N&&p<H;p++)if(0!==z[p][D]){for(_=0;_<E;_++)T=z[D][_],z[D][_]=z[p][_],z[p][_]=T;N=!0}if(!N)return m}}else{for(d=D;d<H&&0===z[d][D];)d++;if(d>=H)return m;for(C=K;C<E;C++)x=z[D][C],z[D][C]=z[d][C],z[d][C]=x}for(x=1/z[D][D],C=K;C<E;C++)z[D][C]*=x;for(d=K;d<H;d++)if(d!==D)for(x=-z[d][D],C=0;C<E;C++)z[d][C]+=x*z[D][C];u||(z[0][H]=0)}for(S=[],R||(S[0]=[]),d=0;d<I;d++){for(R&&(S[d]=[]),x=z[0][H],p=0;p<O;p++){if(F=l(R?s[d][p]:s[p][d]),e&&a(F))return y;x+=z[p+1][H]*F}R?S[d][0]=f(x):S[0][d]=f(x)}return c?new c(S):S}return m}t._trend=function(e,t,r,n,a,i,o,l){return u(!0,e,t,r,n,a,i,l,o,s,s)},t._growth=function(e,t,r,n,a,l,c){var m,y;for(m=0;m<e[i];m++)for(y=0;y<e[o];y++)if(e[m][y]<=0)return l;return u(!1,e,t,r,n,s,a,c,null,Math.log,Math.exp)}},844:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t._NumberHelper=void 0;var n=r(818),a=r(534),i=r(576),o=r(480),s=r(286),u=a._Types._isNullOrUndefined,l=o._StringHelper._padZeroLeft,c=o._StringHelper._padZeroRight,m=null,y=void 0,h=parseInt,f=parseFloat,d=!1,p=!0,_=Math.floor,g=Math.abs,M=Math.pow,v=Math.min,b=Number.MAX_VALUE,F=function(e,t,r){return e.substr(t,r)},S=function(e){return i._RegexHelper._getReg(e)},D=new n.ResourceManager(n.SR),x=D.getResource.bind(D),C="##################0",T="################",N={1:"+",0:"","-1":"-"},H=["0","#","?"],E={"¤":"¤",Br:"Br",Fdj:"Fdj",Nfk:"Nfk",R:"R",$:"$",FCFA:"FCFA","GH₵":"GH₵",ብር:"ብር","ر.س.‏":"ر.س.‏",XDR:"XDR","د.إ.‏":"د.إ.‏","د.ب.‏":"د.ب.‏","د.ج.‏":"د.ج.‏","ج.م.‏":"ج.م.‏","₪":"₪","د.ع.‏":"د.ع.‏","د.ا.‏":"د.ا.‏","ف.ج.ق.‏":"ف.ج.ق.‏","د.ك.‏":"د.ك.‏","ل.ل.‏":"ل.ل.‏","د.ل.‏":"د.ل.‏","د.م.‏":"د.م.‏","أ.م.‏":"أ.م.‏","ر.ع.‏":"ر.ع.‏","ر.ق.‏":"ر.ق.‏","ج.س.":"ج.س.",S:"S","£":"£","ل.س.‏":"ل.س.‏","د.ت.‏":"د.ت.‏","ر.ي.‏":"ر.ي.‏","₹":"₹",TSh:"TSh","€":"€","₼":"₼","₽":"₽",K:"K","лв.":"лв.","₦":"₦",CFA:"CFA","৳":"৳","¥":"¥",KM:"KM",КМ:"КМ",USh:"USh",Kč:"Kč","kr.":"kr.",Ksh:"Ksh",CHF:"CHF","ރ.":"ރ.","Nu.":"Nu.",EC$:"EC$",P:"P",US$:"US$",D:"D",Rp:"Rp",Ar:"Ar",MOP$:"MOP$",Rs:"Rs",MK:"MK",RM:"RM","₱":"₱",RF:"RF",SR:"SR",SDG:"SDG",Le:"Le","NAf.":"NAf.",E:"E",T$:"T$",VT:"VT",WS$:"WS$",Bs:"Bs","₡":"₡",Q:"Q",L:"L",C$:"C$","B/.":"B/.","S/.":"S/.","₲":"₲","Bs.":"Bs.",ريال:"ريال",FG:"FG",UM:"UM",kr:"kr",FBu:"FBu",FC:"FC",DA:"DA",G:"G",CF:"CF",DH:"DH",FCFP:"FCFP",LS:"LS",DT:"DT",kn:"kn",HUF:"HUF","֏":"֏",ISK:"ISK","₾":"₾","​":"​","₸":"₸","៛":"៛","₩":"₩",сом:"сом",Kz:"Kz","₭":"₭",MTn:"MTn",ден:"ден","₮":"₮",रु:"रु","Afl.":"Afl.","ߖߕ.":"ߖߕ.","руб.":"руб.",zł:"zł","؋":"؋",R$:"R$",Db:"Db",RON:"RON","₴":"₴",MAD:"MAD","රු.":"රු.",Lekë:"Lekë",den:"den",RSD:"RSD","дин.":"дин.","ܠ.ܣ.‏":"ܠ.ܣ.‏","Rs.":"Rs.",смн:"смн","฿":"฿","m.":"m.","₺":"₺",ⴷⵔ:"ⴷⵔ",soʻm:"soʻm",сўм:"сўм","₫":"₫",HK$:"HK$",MOP:"MOP",NT$:"NT$"};function P(e,t,r,n){return t&&0!==t.length&&"i"!==t?function(e,t,r,n){return B(e,k(t),r,n)}(e,t,r.NumberFormat,n):r&&r.name.length>0?e.toLocaleString():e.toString()}function O(e,t){for(var r=_(g(e)),n={_integer:1,_decimal:0};r>=10&&Number.isFinite(r);)r/=10,n._integer++;var a,i=e.toString(),o=i.search(/e/gi),s=i.indexOf(t);if(-1!==o){var u=F(i,0,o),l=F(i,o+1),c=0;-1!==s&&(c=F(u,s+1).length),(a=c-f(l))<0&&(a=0),n._decimal=a}else a=0,-1!==s&&(a=F(i,s+1).length),n._decimal=a;return n}function w(e){for(var t={_symbol:e.charAt(0),_sign:0,_exp:0},r="",n=1;n<e.length;n++)if("+"===(r=e.charAt(n)))t._sign=1;else{if("-"!==r){if("0"===r){t._exp=e.length-n;break}throw Error(x().Exp_InvalidExponentFormat)}t._sign=-1}return t}function k(e){for(var t,r={_intPart:m,_decPart:m,_group:d,_scale:0,_percent:0,_permille:0,_exponent:m},n="",a=d,i=d,o=d,s=d,u=d,l=d,c=m,y=[],h=0;h<e.length;h++){if(t=e.charAt(h),a)n+=t,'"'===t&&(y.push(n),n="",a=d);else if(i){if("E"===c||"e"===c){if(!(["+","-","0"].indexOf(t)>=0)){i=d,h--;continue}n+=t}else if("+"===c||"-"===c){if("0"!==t){i=d,h--;continue}n+=t}else if("0"===c){if("0"!==t){i=d,u||(u=p,r._exponent=w(n)),h--;continue}n+=t}}else if("*"!==c&&"_"!==c&&"\\"!==c||""===n)if("*"===t||"_"===t||"\\"===t)l=d,""!==n&&(y.push(n),n=""),n+=t;else if("'"===t)l=d,""!==n&&(y.push(n),n=""),y.push(t);else if('"'===t)l=d,a=p,""!==n&&(y.push(n),n=""),n+=t;else if(H.indexOf(t)>=0)l=p,H.indexOf(c)<0&&""!==n&&(y.push(n),n=""),n+=t;else if("."!==t||o)if("%"===t)l=d,r._percent++,""!==n&&(y.push(n),n=""),y.push(t);else if("‰"===t)l=d,r._permille++,""!==n&&(y.push(n),n=""),y.push(t);else if(","===t)if(l){var f=void 0;""!==n&&(y.push(n),n="");for(var _=p,g="",M=h+1;M<e.length;M++)if(f=e.charAt(M),'"'!==g)if("\\"!==g&&"_"!==g){if(H.indexOf(f)>=0){_=d;break}if("."===f||";"===f)break;g=f}else g="";else'"'===f&&(g="");_?r._scale++:o||(f=e.charAt(h+1))&&H.indexOf(f)>=0&&(s=p)}else n+=t;else"E"===t||"e"===t?(l=d,i=p,""!==n&&(y.push(n),n=""),n+=t):(l=d,H.indexOf(c)>=0&&""!==n&&(y.push(n),n=""),n+=t);else""!==n&&(y.push(n),n=""),r._intPart=y,y=[],o=p,l=d;else n+=t,y.push(n),n="";c=t}return""!==n&&(i&&!u&&(r._exponent=w(n)),y.push(n)),s&&(r._group=p),o?r._decPart=y:r._intPart=y,r}function I(e,t,r,n,a,i){var o=function(e,t){if(t=+t,isNaN(e=+e)||t%1!=0)return NaN;var r=e<0;if(e=r?-e:e,typeof t===y||0===t)return e=Math.round(e),r?-e:e;var n=e.toString().split("e");return e=Math.round(+(n[0]+"e"+(n[1]?+n[1]-t:-t))),+((n=(e=r?-e:e).toString().split("e"))[0]+"e"+(n[1]?+n[1]+t:t))}(e,-t);isFinite(o)||(o=e);var s,u,m=(e=o).toString(),f=m.split(/e/i);return m=f[0],u=f.length>1?h(f[1],10):0,f=m.split("."),m=f[0],s=f.length>1?f[1]:"",u>0?(m+=(s=c(s,u)).slice(0,u),s=F(s,u)):u<0&&(u=-u,s=(m=e<0?i+l(m.replace(i,""),u+1):l(m,u+1)).slice(-u,m.length)+s,m=m.slice(0,-u)),m+(t>0?a+(s=s.length>t?s.slice(0,t):c(s,t)):"")}function A(e){var t=m;if(e){t="";for(var r=0;r<e.length;r++){var n=e[r];/^(0|#|\?)+/g.test(n)&&(t+=n)}}return t}var $=Math.pow(2,48);function R(e,t){return e===t||0!==e&&0!==t&&(g(e-t)<g(e)/$||(e=Y(e,15),t=Y(t,15),g(e-t)<g(e)/$))}function U(e,t,r,n,a,i,o,s){var u=s.numberGroupSizes,c=s.numberGroupSeparator,m=s.negativeSign,y=s.percentSymbol,h=s.perMilleSymbol,f=n._exponent,_=F(t,0,1);_===m&&(t=F(t,1));var g=1===t.length&&"0"===t?0:t.length;t=0===g?"":t;for(var M=0,v="",b=e.length-1;b>=0;b--){var S="",D=e[b];if(/^(0|#|\?)+/g.test(D)){if(v!==r){for(var C=D.length,T=g-M-1;T>=0&&C>0;T--){S=t.charAt(T)+S,C--,M++}for(var H=C-1;H>=0;H--){var P=D[H];M++,"0"===P?S=P+S:"?"===P&&(""!==S&&(i.push({type:"number",value:S}),S=""),i.push({type:"numberPlaceholder",value:P}))}(v=D+v)===r&&M<g&&(S=t.substr(0,g-M)+S),""!==S&&i.push({type:"number",value:S})}}else if(n._exponent&&!o.replaceExponent&&/^((E(\+|-)?|e(\+|-)?)\d+)/g.test(D)){o.replaceExponent=p;var O="";O+=f._symbol,O+=N[f._sign],O+=l(a.toString(),f._exp),i.push({type:"exponent",value:O})}else"_"===D[0]?i.push({type:"placeholder",value:D[1]}):"*"===D[0]?o.hasInfilling||(i.push({type:"fillingChar",value:D[1]}),o.hasInfilling=!0,o.infillIndex=i.length-1):"\\"===D[0]?2===D.length&&i.push({type:"text",value:D[1]}):'"'===D[0]&&'"'===D[D.length-1]?D.length>2&&i.push({type:"text",value:D.substr(1,D.length-2)}):D===y?i.push({type:"percent",value:D}):D===h?i.push({type:"permille",value:D}):E[D]?i.push({type:"currency",value:D}):i.push({type:"text",value:D})}_===m&&r&&i.push({type:"text",value:_}),n._group===p&&function(e,t,r,n){for(var a=t[0],i=1,o=0,s=d,u=e.length,l=0;l<u;l++){var c=e[l].type;if("number"===c){for(var m="",y=e[l].value,h=y.length-1;h>=0;){if(!(1<=a&&a<=9||0===a&&i===t.length))throw Error(x().Exp_InvalidNumberGroupSize);/\d/gi.test(y[h])?(s&&(m&&e.push({type:"number",value:m}),e.push({type:"groupSeparator",value:r}),m="",s=d),o++):o=0,m=y[h]+m,o===a&&a>0&&(s=p,o=0,i<t.length&&(a=t[i],i++)),h--}m&&e.push({type:c,value:m})}else"fillingChar"===c&&(n.infillIndex=e.length-u),e.push({type:c,value:e[l].value})}e.splice(0,u)}(i,u,c,o),i.reverse(),o.infillIndex=i.length-1-o.infillIndex}function B(e,t,r,n){var a=[];e=function(e,t,r,n){var a=e;return t>0&&(a=Y(a*M(100,t),15)),r>0&&(a=Y(a*M(1e3,r),15)),n>0&&(a=Y(a/M(1e3,n),15)),a}(e,t._percent,t._permille,t._scale);var i=t._intPart,o=t._decPart;if(!i&&!o)return a;var s,u=A(i),c=A(o);if(c||(c=""),t._exponent){var m=function(e,t,r){var n={value:e,exponentValue:0},a=O(e,".")._integer,i=g(e),o=r?r.length:1;if(i>=1)a>o?(a-=o,n.value=e/M(10,a),n.exponentValue=a):n.exponentValue=0,-1===t._sign&&(t._sign=0);else if(i<1&&i>0){t._sign=-1;for(var s=M(10,o);10*i<s&&!R(10*i,s);)i*=10,n.exponentValue++;var u=M(10,n.exponentValue);n.value*=u>b?0:u}return n}(e,t._exponent,u);e=m.value,s=m.exponentValue}var y=O(e,".");g(e)>1&&y._integer+y._decimal>15&&(e=Y(e,15));r.numberGroupSizes,r.numberGroupSeparator;var h=r.numberDecimalSeparator,f=r.negativeSign,_=I(e,v(y._decimal,c.length),0,0,h,f);if(n||(_=function(e,t){var r=e;return-1!==e.indexOf(t)&&(r=e.replace(/0+$/,"")),r}(_,h)),""===_)return a.push({type:"text",value:(i?i.join(""):"")+(o?o.join(""):"")}),a;var F={hasInfilling:d,infillIndex:-1,replaceExponent:d},S=_.split(h)[0];return"10"!==S||isNaN(s)||(S="1",s+=t&&t._exponent&&-1===t._exponent._sign?-1:1),i&&U(i,S,u,t,s,a,F,r),e===1/0||e===-1/0||("0"!==S&&""===u&&o&&a.push({type:"number",value:S}),o&&function(e,t,r,n,a,i,o,s,u){var c=u.numberDecimalSeparator,m=u.percentSymbol,y=u.perMilleSymbol,h=t.indexOf(c),f=a._exponent;(h>0||n!==C||r!==T)&&o.push({type:"decimalSeparator",value:c});for(var d=-1!==h?t.substring(h+1):"",_=0,g="",M=0;M<e.length;M++){var v=e[M];if(/^(0|#|\?)+/g.test(v)){var b="";if(g!==r){for(var F=v.length,S=0,D=_;F>0&&d.length-_>0;)b+=d.charAt(D),F--,_++,S++,D++;for(var x=S;F>0;){var H=v[x];x++,_++,F--,"0"===H?b+=H:"?"===H&&(""!==b&&(o.push({type:"number",value:b}),b=""),o.push({type:"numberPlaceholder",value:H}))}""!==b&&o.push({type:"number",value:b}),g+=v}}else if(f&&!s.replaceExponent&&/^((E(\+|-)?|e(\+|-)?)\d+)/g.test(v)){s.replaceExponent=p;var P="";P+=f._symbol,P+=N[f._sign],P+=l(i.toString(),f._exp),o.push({type:"exponent",value:P})}else"_"===v[0]?o.push({type:"placeholder",value:v[1]}):"*"===v[0]?(o.push({type:"fillingChar",value:v[1]}),s.hasInfilling&&o.splice(s.infillIndex,1),s.hasInfilling=!0,s.infillIndex=o.length-1):"\\"===v[0]?2===v.length&&o.push({type:"text",value:v[1]}):'"'===v[0]&&'"'===v[v.length-1]?v.length>2&&o.push({type:"text",value:v.substr(1,v.length-2)}):v===m?o.push({type:"percent",value:v}):v===y?o.push({type:"permille",value:v}):E[v]?o.push({type:"currency",value:v}):o.push({type:"text",value:v})}}(o,_,c,u,t,s,a,F,r)),a}function L(e,t){if((e=u(e)?"":o._StringHelper._trimEnd(e,"")).match(/^[+-]?infinity$/i))return f(e);if(e.match(/^0x[a-f0-9]+$/i))return h(e,10);var r,n,a=t.NumberFormat,i=a.numberNegativePattern,s=j(e,a,i),l=s[0],c=s[1];""===l&&1!==i&&(l=(s=j(e,a,1))[0],c=s[1]),""===l&&(l="+"),c[0]===a.currencySymbol&&(c=F(c,1));var y=c.indexOf("e");y<0&&(y=c.indexOf("E")),y<0?(n=c,r=m):(n=F(c,0,y),r=F(c,y+1));var d,p,_=n.indexOf(".");_<0?(d=n,p=m):(d=F(n,0,_),p=F(n,_+1));var g=l+(d=d.split(",").join(""));if(p!==m&&(g+="."+p),g[g.length-1]===a.percentSymbol){g=F(g,0,g.length-1);var M=(g=o._StringHelper._trimEnd(g,"")).indexOf(".");-1===M&&(M=g.length);var v="";v+=F(g,0,M-2),v+=".",v+=F(g,M-2,2),g=v+=F(g,M+1)}if(r!==m){var b=j(r,a,1);""===b[0]&&(b[0]="+"),g+="e"+b[0]+b[1]}return g.match(/^[+-]?\d*\.?\d*(e[+-]?\d+)?$/)?f(g):NaN}function j(e,t,r){var n=t.negativeSign,a=t.positiveSign;if(4!==r&&2!==r||(n=" "+n,a=" "+a),4===r||3===r){if(o._StringHelper._endsWith(e,n))return["-",F(e,0,e.length-n.length)];if(o._StringHelper._endsWith(e,a))return["+",F(e,0,e.length-a.length)]}else if(2===r||1===r){if(o._StringHelper._startsWith(e,n))return["-",F(e,n.length)];if(o._StringHelper._startsWith(e,a))return["+",F(e,a.length)]}else{if(0!==r)throw Error("");if(o._StringHelper._startsWith(e,"(")&&o._StringHelper._endsWith(e,")"))return["-",F(e,1,e.length-2)]}return["",e]}function G(e){var t=s.CultureManager._getCultureInfo().NumberFormat;return"string"==typeof e&&(t=s.CultureManager._getCultureInfo(e).NumberFormat),t}function Y(e,t){return"number"==typeof e&&e.toString().length>=t&&(e=+e.toPrecision(t)),e}t._NumberHelper={_parseLocale:function(e){return L(e,s.CultureManager._getCultureInfo())},_parseInvariant:function(e){return L(e,s.CultureManager._getCultureInfo("invariant"))},_customCultureFormat:function(e,t,r,n){return r||(r=s.CultureManager._getCultureInfo()),P(e,t,r,n)},_replaceNormalToCultureSymbol:function(e,t){if("string"!=typeof e)return e;var r=G(t),n=r.numberDecimalSeparator,a=r.numberGroupSeparator;return"."!==n&&(e=e.replace(S("[.]"),"#dot#")),","!==a&&(e=e.replace(S("[,]"),"#group#")),"."!==n&&(e=e.replace(S("#dot#"),n)),","!==a&&(e=e.replace(S("#group#"),a)),e},_replaceCultureSymbolToNormal:function(e,t){if("string"!=typeof e)return e;var r=G(t),n=r.numberDecimalSeparator,a=r.numberGroupSeparator;return"."!==n&&(e=e.replace(S("["+n+"]"),"#dot#")),","!==a&&(e=e.replace(S("["+a+"]"),"#group#")),"."!==n&&(e=e.replace(S("#dot#"),".")),","!==a&&(e=e.replace(S("#group#"),",")),e},_isValidCultureNumberString:function(e,t){if("string"==typeof e){var r=G(t),n=r.numberDecimalSeparator,a=r.numberGroupSeparator;if("."!==n&&"."!==a&&e.indexOf(".")>=0||","!==n&&","!==a&&e.indexOf(",")>=0)return!1}return!0},_parseFloat:function(e,t){return f(this._replaceCultureSymbolToNormal(e,t))},_toHexString:function(e,t,r){if(0!==g(_(e)-e))throw Error(x().Exp_BadFormatSpecifier);var n=e>=0?e.toString(16):(4294967295+e+1).toString(16);return n=t?n.toLowerCase():n.toUpperCase(),!u(r)&&n.length<r?l(n,r):n},_parseCustomNumberFormatter:k,_formatNumber:B,_approxEqual:R,_safeAdd:function(e,t){return R(e,-t)?0:e+t},_formatObjectToString:function(e){var t="";if(Array.isArray(e)&&e.length>0)for(var r=0;r<e.length;r++){var n=e[r].type,a=e[r].value;if("placeholder"===n)t+=" ";else{if("fillingChar"===n)continue;t+="numberPlaceholder"===n?" ":a}}return t},_generalNumberInt:C,_generalNumberDec:T,_fixNumber:Y}},674:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.rbush=void 0;var r=Math.max,n=Math.min,a=1/0;function i(e,t){this._maxEntries=r(4,e||9),this._minEntries=r(2,Math.ceil(.4*this._maxEntries)),t&&this._initFormat(t),this.clear()}function o(e,t,r){if(!r)return t.indexOf(e);for(var n=0;n<t.length;n++)if(r(e,t[n]))return n;return-1}function s(e,t){u(e,0,e.children.length,t,e)}function u(e,t,r,n,i){i||(i=p(null)),i.minX=a,i.minY=a,i.maxX=-1/0,i.maxY=-1/0;for(var o=t,s=void 0;o<r;o++)s=e.children[o],l(i,e.leaf?n(s):s);return i}function l(e,t){return e.minX=n(e.minX,t.minX),e.minY=n(e.minY,t.minY),e.maxX=r(e.maxX,t.maxX),e.maxY=r(e.maxY,t.maxY),e}function c(e,t){return e.minX-t.minX}function m(e,t){return e.minY-t.minY}function y(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function h(e){return e.maxX-e.minX+(e.maxY-e.minY)}function f(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&(t.maxX>=0&&t.maxX<=e.maxX||e.minX<0)&&(t.maxY>=0&&t.maxY<=e.maxY||e.minY<0)}function d(e,t){return(-1===e.minY||-1===t.minY||e.minY<=t.maxY&&t.minY<=e.maxY)&&(-1===e.minX||-1===t.minX||e.minX<=t.maxX&&t.minX<=e.maxX)}function p(e){return{children:e,height:1,leaf:!0,minX:a,minY:a,maxX:-1/0,maxY:-1/0}}t.rbush=i,i.prototype={all:function(){return this._all(this.data,[])},search:function(e){var t=this.data,r=[],n=this.toBBox;if(!d(e,t))return r;for(var a,i,o,s,u=[];t;){for(a=0,i=t.children.length;a<i;a++)o=t.children[a],d(e,s=t.leaf?n(o):o)&&(t.leaf?r.push(o):f(e,s)?this._all(o,r):u.push(o));t=u.pop()}return r},collides:function(e){var t=this.data,r=this.toBBox;if(!d(e,t))return!1;for(var n,a,i,o,s=[];t;){for(n=0,a=t.children.length;n<a;n++)if(i=t.children[n],d(e,o=t.leaf?r(i):i)){if(t.leaf||f(e,o))return!0;s.push(i)}t=s.pop()}return!1},insert:function(e){return e&&this._insert(e,this.data.height-1),this},clear:function(){return this.data=p([]),this},remove:function(e,t){if(!e)return this;for(var r,n,a,i,s=this.data,u=this.toBBox(e),l=[],c=[];s||l.length;){if(s||(s=l.pop(),n=l[l.length-1],r=c.pop(),i=!0),s.leaf&&-1!==(a=o(e,s.children,t)))return s.children.splice(a,1),l.push(s),this._condense(l),this;i||s.leaf||!f(s,u)?n?(r++,s=n.children[r],i=!1):s=null:(l.push(s),c.push(r),r=0,n=s,s=s.children[0])}return this},toBBox:function(e){return e},compareMinX:c,compareMinY:m,toJSON:function(){return this.data},fromJSON:function(e){return this.data=e,this},_all:function(e,t){for(var r=[];e;)e.leaf?t.push.apply(t,e.children):r.push.apply(r,e.children),e=r.pop();return t},_chooseSubtree:function(e,t,i,o){for(var s,u,l,c,m,h,f,d;o.push(t),!t.leaf&&o.length-1!==i;){for(f=d=a,s=0,u=t.children.length;s<u;s++)m=y(l=t.children[s]),p=e,(h=(r((_=l).maxX,p.maxX)-n(_.minX,p.minX))*(r(_.maxY,p.maxY)-n(_.minY,p.minY))-m)<d?(d=h,f=m<f?m:f,c=l):h===d&&m<f&&(f=m,c=l);t=c||t.children[0]}var p,_;return t},_insert:function(e,t,r){var n=this.toBBox,a=r?e:n(e),i=[],o=this._chooseSubtree(a,this.data,t,i);for(o.children.push(e),l(o,a);t>=0&&i[t].children.length>this._maxEntries;)this._split(i,t),t--;this._adjustParentBBoxes(a,i,t)},_split:function(e,t){var r=e[t],n=r.children.length,a=this._minEntries;this._chooseSplitAxis(r,a,n);var i=this._chooseSplitIndex(r,a,n),o=p(r.children.splice(i,r.children.length-i));o.height=r.height,o.leaf=r.leaf,s(r,this.toBBox),s(o,this.toBBox),t?e[t-1].children.push(o):this._splitRoot(r,o)},_splitRoot:function(e,t){this.data=p([e,t]),this.data.height=e.height+1,this.data.leaf=!1,s(this.data,this.toBBox)},_chooseSplitIndex:function(e,t,i){var o,s,l,c,m,h,f,d,p,_,g,M,v,b;for(h=f=a,o=t;o<=i-t;o++)p=s=u(e,0,o,this.toBBox),_=l=u(e,o,i,this.toBBox),g=void 0,M=void 0,v=void 0,b=void 0,g=r(p.minX,_.minX),M=r(p.minY,_.minY),v=n(p.maxX,_.maxX),b=n(p.maxY,_.maxY),c=r(0,v-g)*r(0,b-M),m=y(s)+y(l),c<h?(h=c,d=o,f=m<f?m:f):c===h&&m<f&&(f=m,d=o);return d},_chooseSplitAxis:function(e,t,r){var n=e.leaf?this.compareMinX:c,a=e.leaf?this.compareMinY:m;this._allDistMargin(e,t,r,n)<this._allDistMargin(e,t,r,a)&&e.children.sort(n)},_allDistMargin:function(e,t,r,n){e.children.sort(n);var a,i,o=this.toBBox,s=u(e,0,t,o),c=u(e,r-t,r,o),m=h(s)+h(c);for(a=t;a<r-t;a++)i=e.children[a],l(s,e.leaf?o(i):i),m+=h(s);for(a=r-t-1;a>=t;a--)i=e.children[a],l(c,e.leaf?o(i):i),m+=h(c);return m},_adjustParentBBoxes:function(e,t,r){for(var n=r;n>=0;n--)l(t[n],e)},_condense:function(e){for(var t=e.length-1,r=void 0;t>=0;t--)0===e[t].children.length?t>0?(r=e[t-1].children).splice(r.indexOf(e[t]),1):this.clear():s(e[t],this.toBBox)},_initFormat:function(e){var t=["return a"," - b",";"];this.compareMinX=Function("a","b",t.join(e[0])),this.compareMinY=Function("a","b",t.join(e[1])),this.toBBox=Function("a","return {minX: a"+e[0]+", minY: a"+e[1]+", maxX: a"+e[2]+", maxY: a"+e[3]+"};")}}},576:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t._RegexHelper=void 0;var n=r(480),a=function(){function e(){}return e._getRegWithModifiers=function(t,r){var n;if(r&&e._regDictWithModifiers[r]&&e._regDictWithModifiers[r][t])n=e._regDictWithModifiers[r][t];else try{null==r?(n=RegExp(t),r="empty"):n=RegExp(t,r),e._regDictWithModifiers[r]||(e._regDictWithModifiers[r]={}),e._regDictWithModifiers[r][t]=n}catch(e){return null}return n.lastIndex=0,n},e._getReg=function(t){var r=e._regDict[t];return r||(r=e._regDict[t]=RegExp(t,"g")),r.lastIndex=0,r},e._getRegIgnoreCase=function(t){var r=e._regDictIgnoreCase[t];return r||(r=e._regDictIgnoreCase[t]=RegExp(t,"gi")),r.lastIndex=0,r},e._getWildcardCriteria=function(t,r,n){if(e._wildcardParseRecord[t])return e._wildcardParseResultBuffer[t];var a=r?"[?*]+":"[~?*]+";if(e._getReg(a).test(t)){for(var i=[],o=t.split(""),s=void 0,u={".":!0,"+":!0,$:!0,"^":!0,"[":!0,"]":!0,"(":!0,")":!0,"{":!0,"}":!0,"|":!0,"/":!0,"\\":!0},l=0;l<o.length;l++)if("~"===(s=o[l])){if(!(l<o.length-1))break;"*"!==(s=o[++l])&&"?"!==s||i.push("\\"),i.push(s)}else"?"===s?i.push("."):"*"===s?(i.push("[\\s\\S]"),n?i.push("+"):i.push("*")):u[s]?(i.push("\\"),i.push(s)):i.push(s);return i.join("")}return null},e._getWildcardCriteriaFullMatch=function(t,r,n){var a=e._getWildcardCriteria(t,r,n);return a&&(a="^"+a+"$"),a},e._getReplaceSymbol=function(e,t){for(var r="#"+e+"0#",a=1;t.indexOf(r)>0;)r=n._StringHelper._join(r,"#"+e+(a-1)+"#","#"+e+a+"#"),a++;return r},e._replaceRegString2NormalString=function(e){return e.replace(/([\~\!\@\#\$\%\^\&\*\(\)\-\_\+\=\[\]\{\}\|\\\;\:\'\"\,\.\/\<\>\?])/,"\\$1")},e._regDict={},e._regDictIgnoreCase={},e._regDictWithModifiers={},e._wildcardParseRecord={},e._wildcardParseResultBuffer={},e}();t._RegexHelper=a},480:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t._StringHelper=void 0;var n=r(576);function a(e,t,r){return e.substr(t,r)}function i(e){return null==e}function o(e,t,r,n){if(i(t))throw Error();if(""===t)return!0;if(t.length>e.length)return!1;var a=e,o=t;return r&&(a=a.toLowerCase(),o=o.toLowerCase()),n(a,o)}t._StringHelper={_contains:function(e,t,r){return r&&(e=e.toLowerCase(),t=t.toLowerCase()),""===t||e.indexOf(t)>=0},_indexOf:function(e,t,r){if(r){var n=e.toLowerCase(),a=t.toLowerCase();return n.indexOf(a)}return e.indexOf(t)},_trimStart:function(e,t){if(!t)return e;for(var r=e;a(r,0,t.length)===t;)r=a(r,t.length);return r},_trimEnd:function(e,t){if(!t)return e;for(var r=e;a(r,r.length-t.length,t.length)===t;)r=a(r,0,r.length-t.length);return r},_insert:function(e,t,r){if(t<0||t>e.length||i(r))throw Error();return a(e,0,t)+r+a(e,t,e.length-t)},_remove:function(e,t,r){if(i(r)&&(r=e.length-t),t<0||r<0||t+r>e.length)throw Error();return a(e,0,t)+a(e,t+r,e.length-t-r)},_startsWith:function(e,t,r){return void 0===r&&(r=!1),o(e,t,r,(function(e,t){return e.slice(0,t.length)===t}))},_endsWith:function(e,t,r){return void 0===r&&(r=!1),o(e,t,r,(function(e,t){return e.slice(-t.length)===t}))},_replace:function(e,t,r,n){if(!t)throw Error();return r=(""+r).replace(/\$/g,"$$$$"),e.replace(RegExp(t,"g"+(n?"i":"")),r)},_replaceAllNoReg:function(e,r,a,i){return r=n._RegexHelper._replaceRegString2NormalString(r),t._StringHelper._replace(e,r,a,i)},_leftBefore:function(e,t){var r=e.indexOf(t);return r<0||r>=e.length?e:a(e,0,r)},_count:function(e,t){for(var r=0,n=e.indexOf(t);n>=0;)r+=1,n=e.indexOf(t,n+1);return r},_join:function(e,t,r){return e.split(t).join(r)},_format:function(e,t){for(var r=e,n=0;n<t.length;n++){var a=RegExp("\\{"+n+"\\}","g");r=r.replace(a,t[n])}return r},_padZero:function(e,t,r){for(var n=e.toString(),a=n.length;a<t;a++)n=r?"0"+n:n+"0";return n},_padZeroLeft:function(e,r){return t._StringHelper._padZero(e,r,!0)},_padZeroRight:function(e,r){return t._StringHelper._padZero(e,r,!1)},_compareStringIgnoreCase:function(e,t){return e===t||!e&&!t||e&&t&&e.toLowerCase()===t.toLowerCase()},_toUpperCase:function(e){return e.toUpperCase()},_escapeHtml:function(e){var t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},r=n._RegexHelper._getReg("(?:&|<|>|\"|'|`)");return r.test(e)?e.replace(r,(function(e){return t[e]})):e},_unescapeHtml:function(e){var t={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#x27;":"'","&#x60;":"`"},r=n._RegexHelper._getReg("(?:&amp;|&lt;|&gt;|&quot;|&#x27;|&#x60;)");return r.test(e)?e.replace(r,(function(e){return t[e]})):e},_escapeJavascript:function(e){for(var t=e,r=/javascript:/gi;t.match(r);)t=t.replace(r,"");return t}}},534:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t._Types=void 0;var r="undefined"!=typeof window?window.File:null,n="undefined"!=typeof window?window.Blob:null;t._Types={_class2type:null,_each:function(e,r){if(t._Types._isArraylike(e))for(var n=0,a=e.length;n<a&&!1!==r.call(e[n],n,e[n]);n++);else for(var i in e)if(e.hasOwnProperty(i)&&!1===r.call(e[i],i,e[i]))break;return e},_isEmptyObject:function(e){return!e||"object"==typeof e&&0===Object.keys(e).length},_isFunction:function(e){return"function"===t._Types._getType(e)},_isArray:function(e){return Array.isArray?Array.isArray(e):"array"===t._Types._getType(e)},_isNumeric:function(e){return t._Types._isString(e)&&(e=parseFloat(e)),!isNaN(e)&&isFinite(e)},_isString:function(e){return"string"==typeof e},_getType:function(e){if(null===e)return"null";var r=t._Types._class2type;if(!r){r=t._Types._class2type={};for(var n=["Boolean","Number","String","Function","Array","Date","RegExp","Object","Error"],a=0,i=n.length;a<i;a++)r["[object "+n[a]+"]"]=n[a].toLowerCase()}var o=r.toString,s=typeof e;return"object"===s||"function"===s?r[o.call(e)]||"object":s},_inArray:function(e,r,n){var a;if(r){var i=[].indexOf;if(i)return i.call(r,e,n);for(a=r.length,t._Types._isNullOrUndefined(n)&&(n=0),n=n<0?Math.max(0,a+n):n;n<a;n++)if(n in r&&r[n]===e)return n}return-1},_merge:function(e,t){var r=t.length,n=e.length,a=0;if("number"==typeof r)for(;a<r;a++)e[n]=t[a],n++;else for(;void 0!==t[a];)e[n]=t[a],n++,a++;return e.length=n,e},_map:function(e,r,n){var a,i=[];if(t._Types._isArraylike(e))for(var o=0,s=e.length;o<s;o++)null!==(a=r(e[o],o,n))&&(i[i.length]=a);else{var u=void 0;for(u in e)e.hasOwnProperty(u)&&null!==(a=r(e[u],u,n))&&(i[i.length]=a)}return i.concat([])},_extend:function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var n,a,i,o,s,u,l=e[0]||{},c=1,m=e.length,y=!1;for("boolean"==typeof l&&(y=l,l=e[1]||{},c=2),"object"==typeof l||t._Types._isFunction(l)||(l={}),m===c&&(l=this,--c);c<m;c++)if(s=e[c],!t._Types._isNullOrUndefined(s))for(o in s)n=l[o],l!==(i=s[o])&&(a=t._Types._isArray(i),y&&i&&(t._Types._isPlainObject(i)||a)?(u=a?n&&t._Types._isArray(n)?n:[]:n&&t._Types._isPlainObject(n)?n:{},l[o]=t._Types._extend(y,u,i)):void 0!==i&&(l[o]=i));return l},_inherit:function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n},_isWindow:function(e){return null!==e&&e===e.window},_isPlainObject:function(e){if(!e||"object"!==t._Types._getType(e)||e.nodeType||t._Types._isWindow(e))return!1;var r,n={}.hasOwnProperty;try{if(e.constructor&&!n.call(e,"constructor")&&!n.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(e){return!1}for(r in e);return void 0===r||n.call(e,r)},_isArraylike:function(e){if(t._Types._isNullOrUndefined(e))return!1;var r=e.length,n=t._Types._getType(e);return!t._Types._isWindow(e)&&(!(1!==e.nodeType||!r)||"array"===n||"function"!==n&&(0===r||"number"==typeof r&&r>0&&r-1 in e))},_makeArray:function(e,r){var n=r||[];return null!==e&&(t._Types._isArraylike(Object(e))?t._Types._merge(n,"string"==typeof e?[e]:e):[].push.call(n,e)),n},_isType:null,_isNullOrUndefined:function(e){return null==e},_isNumber:null,_toDouble:null,_cloneObject:function(e){if(!e)return e;if("number"==typeof e||"string"==typeof e||"boolean"==typeof e||t._Types._isNullOrUndefined(e))return e;if(e.clone)return e.clone();if(e instanceof Date)return new Date(e.valueOf());var a,i,o;if(r&&e instanceof r)return new r([e],e.name,{type:e.type,lastModified:e.lastModified});if(n&&e instanceof n)return new n([e],{type:e.type});for(i in a=e instanceof Object?new e.constructor:new e.constructor(e.valueOf()),e)e.hasOwnProperty(i)&&(o=e[i],e.hasOwnProperty(i)&&a[i]!==o&&(a[i]="object"==typeof o?t._Types._cloneObject(o):o));return a}}},612:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Exp_Separator=t.Exp_InvalidCast=t.Exp_InvalidNumberFormat=t.Exp_BadFormatSpecifier=t.Exp_InvalidNumberGroupSize=t.Exp_InvalidSemicolons=t.Exp_InvalidExponentFormat=t.Exp_InvalidDateFormat=void 0,t.Exp_InvalidDateFormat="Invalid date format pattern",t.Exp_InvalidExponentFormat="invalid exponent format",t.Exp_InvalidSemicolons="invalid format : too many semicolons",t.Exp_InvalidNumberGroupSize="NumberGroupSize must be between 1 and 9, except for the last element, which can be zero.",t.Exp_BadFormatSpecifier="Bad Format Specifier",t.Exp_InvalidNumberFormat="Invalid number format pattern",t.Exp_InvalidCast="InvalidCastException",t.Exp_Separator="numberDecimalSeparator, listSeparator and arrayListSeparator should be different in culture info."},479:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.UUIDGenerator=void 0;var r=function(){function e(){}return e.wrap=function(e){return"{".concat(e.toUpperCase(),"}")},e.uuidv4=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))},e.secureUUID=function(){return"undefined"!=typeof crypto&&crypto.randomUUID?crypto.randomUUID():this.uuidv4()},e.secureUpperCaseUUID=function(){return this.wrap(this.secureUUID())},e.isValidUpperCaseUUID=function(e){return/^\{[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}\}$/i.test(e)},e}();t.UUIDGenerator=r},814:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.UndoManager=t.CommandManager=t.Key=void 0;var n=r(536);Object.defineProperty(t,"Key",{enumerable:!0,get:function(){return n.Key}}),Object.defineProperty(t,"CommandManager",{enumerable:!0,get:function(){return n.CommandManager}});var a=r(748);Object.defineProperty(t,"UndoManager",{enumerable:!0,get:function(){return a.UndoManager}})},536:function(e,t){var r;Object.defineProperty(t,"__esModule",{value:!0}),t.CommandManager=t.Key=void 0,function(e){e[e.left=37]="left",e[e.right=39]="right",e[e.up=38]="up",e[e.down=40]="down",e[e.tab=9]="tab",e[e.enter=13]="enter",e[e.shift=16]="shift",e[e.ctrl=17]="ctrl",e[e.space=32]="space",e[e.altkey=18]="altkey",e[e.home=36]="home",e[e.end=35]="end",e[e.pup=33]="pup",e[e.pdn=34]="pdn",e[e.backspace=8]="backspace",e[e.del=46]="del",e[e.esc=27]="esc",e[e.a=65]="a",e[e.c=67]="c",e[e.v=86]="v",e[e.x=88]="x",e[e.z=90]="z",e[e.y=89]="y"}(r=t.Key||(t.Key={}));var n=function(){function e(e,t,r){this._owner=e,this._cmdDef=t,this._name=r;var n,a=this;Object.defineProperty(a,"shortcutKey",{get:function(){return a._shortcutKey},set:function(e){var t=a._shortcutKey;if(t!==e){var r=(n=a._owner._shortcutKeys)[t];if(r){var i=r.indexOf(a);i>=0&&r.splice(i,1)}a._shortcutKey=e,e&&((r=n[e])||(n[e]=r=[]),r.splice(0,0,a))}}})}return e.prototype.canUndo=function(){return this._cmdDef.canUndo},e.prototype.execute=function(e,t,r){var n,a,i=!0,o=!0;if(this._cmdDef&&t){var s={command:t,result:a,_actionType:r,actionType:r,metaData:null===(n=this._cmdDef)||void 0===n?void 0:n.metaData,r:null,isBefore:!0};this._owner._triggerInternalListener(s),s.r&&(o=!1,a=!1)}if(o){try{i=!1!==(a=(this._cmdDef.execute||this._cmdDef)(e,t,1===r))}catch(e){i=!1}t&&i&&this._owner._commandExecuted({command:this._getCmdOptions(t),result:a,_actionType:r,actionType:r})}if(this._owner&&t){var u={command:t,result:a,_actionType:r,actionType:r,isBefore:!1};this._owner._triggerInternalListener(u)}return a},e.prototype._getCmdOptions=function(e){return e&&!e.cmd&&(e.cmd=this._name),e},e}(),a=function(){function e(e){this._context=e,this._listeners={},this._internalListeners={},this._afterInternalListeners={},this._shortcutKeys={}}return e.prototype.register=function(e,t,r,a,i,o,s){var u=new n(this,t,e);this[e]=u,r&&(u.shortcutKey=this.getShortcutKey(r,a,i,o,s))},e.prototype.getCommand=function(e){return this[e]},e.prototype.execute=function(e){var t=this[e.cmd];if(t)return t.execute(this._context,e,0)},e.prototype.setShortcutKey=function(e,t,r,n,a,i){if(e){var o=this[e];o&&(o.shortcutKey=this.getShortcutKey(t,r,n,a,i))}else{var s=this.getShortcutKey(t,r,n,a,i),u=this.getCommands(s);if(u)for(var l=u.length-1;l>=0;l--)u[l].shortcutKey=void 0}},e.prototype.getShortcutKey=function(e,t,n,a,i){if(e){var o=65<=e&&e<=90?String.fromCharCode(e):r[e];return o||(o=e),o+(t?"+ctrl":"")+(n?"+shift":"")+(a?"+alt":"")+(i?"+window":"")}},e.prototype.getCommands=function(e){return this._shortcutKeys[e]},e.prototype.addListener=function(e,t){this._listeners[e]=t},e.prototype.removeListener=function(e){delete this._listeners[e]},e.prototype._commandExecuted=function(e){var t=this._listeners;for(var r in t)t.hasOwnProperty(r)&&t[r](e)},e.prototype._addInternalListener=function(e,t){this._internalListeners[e]=t},e.prototype._removeInternalListener=function(e){delete this._internalListeners[e]},e.prototype._triggerInternalListener=function(e){var t=this._internalListeners;for(var r in t)t.hasOwnProperty(r)&&t[r](e)},e.prototype._dispose=function(){this._context=null},e}();t.CommandManager=a},748:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.UndoManager=void 0;var r=function(){function e(e,t,r){this._context=e,t<0&&(t=2147483647),this._maxLength=t,this._allowUndo=r,this._undoStack=[],this._redoStack=[],this._hasNewChange=!1}return e.prototype._addCommand=function(e,t){if(e){if(1===t)this._redoStack.push(e);else{var r=this._maxLength,n=this._undoStack.length;if(r>0&&n>=r)for(var a=0;a<n-r+1;a++)this._undoStack.shift();this._undoStack.push(e),0===t&&(this._redoStack=[])}this._hasNewChange=!0}},e.prototype.canUndo=function(){return this._undoStack.length>0},e.prototype.undo=function(){var e=this._undoStack,t=!0;if(this._allowUndo&&this.canUndo()){var r=e[e.length-1];try{var n=this._context.commandManager()[r.cmd];n&&(r._fromUndoManager=!0,t=n.execute(this._context,r,1))}catch(e){t=!1}delete r._fromUndoManager,!1!==t&&(e.pop(),this._hasNewChange=!0,this._redoStack.push(r))}return t},e.prototype.canRedo=function(){return this._redoStack.length>0},e.prototype.redo=function(){var e=this._redoStack,t=!0;if(this._allowUndo&&this.canRedo()){var r=e[e.length-1];try{var n=this._context.commandManager()[r.cmd];n&&(r._fromUndoManager=!0,t=n.execute(this._context,r,2))}catch(e){t=!1}delete r._fromUndoManager,!1!==t&&(e.pop(),this._hasNewChange=!0,this._undoStack.push(r))}return t},e.prototype.getRedoStack=function(){return this._redoStack.slice()},e.prototype.getUndoStack=function(){return this._undoStack.slice()},e.prototype.maxSize=function(e){return arguments.length<1?this._maxLength:(e>=0&&(this._maxLength=e),this)},e.prototype.clear=function(){this._undoStack=[],this._redoStack=[]},e.prototype._filter=function(e){this._undoStack=this._undoStack.filter(e),this._redoStack=this._redoStack.filter(e)},e.prototype._dispose=function(){this._context=null},e.prototype.setNewChangeStatus=function(e){this._hasNewChange=e},e.prototype.getNewChangeStatus=function(){return this._hasNewChange},e}();t.UndoManager=r},569:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var a=Object.getOwnPropertyDescriptor(t,r);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,a)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),a=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),a(r(2),t)},498:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Exp_InvalidCast=t.Exp_ValueIllegal=t.Exp_TokenIllegal=t.Exp_DuplicatedDescriptor=t.Exp_ValueIsNull=t.Exp_FormatIllegal=t.Exp_InvalidBackslash=t.Exp_TokenIsNull=void 0,t.Exp_TokenIsNull="token is null",t.Exp_InvalidBackslash="the '\\' cannot be evaluated",t.Exp_FormatIllegal="format is illegal.",t.Exp_ValueIsNull="value is null",t.Exp_DuplicatedDescriptor="The type of descriptor was added.",t.Exp_TokenIllegal="token is illegal.",t.Exp_ValueIllegal="value is illegal.",t.Exp_InvalidCast="InvalidCastException"},2:function(e,t,r){var n,a=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+t+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.GeneralFormatter=t._NumberFormatDateTime=t.FormatterBase=void 0;var i=r(480),o=r(97),s=r(534),u=r(844),l=r(286),c=r(818),m=r(498),y=r(810),h=r(61);s._Types._extend(c.SR.en,m);var f=new c.ResourceManager(c.SR),d=f.getResource.bind(f);s._Types._isType=function(e,t){if(s._Types._isNullOrUndefined(e))return"null"===t;if(!t)return!1;if(t instanceof Function&&e instanceof t)return!0;if(typeof e===t)return!0;if("function"===t&&/^\s*\bfunction\b/.test(""+e))return!0;if(Object.prototype.toString.call(e).slice(8,-1).toLowerCase()===t.toLowerCase())return!0;if("DateTime"===t)return e instanceof Date;if("TimeSpan"===t){if(e instanceof Date){var r=o._DateTimeHelper._toOADate(e);return r>=0&&r<1}return!1}return!1},s._Types._isNumber=function(e,t){return!!u._NumberHelper._isValidCultureNumberString(e,t)&&("string"!=typeof e||-1===e.search(/[\r\n\t]/g))&&(e=u._NumberHelper._replaceCultureSymbolToNormal(e,t),s._Types._isType(e,"number")||s._Types._isType(e,"DateTime")||s._Types._isType(e,"TimeSpan")||e&&!s._Types._isType(e,"boolean")&&!isNaN(e)&&!isNaN(parseFloat(e))&&!(e.length>=2&&"0"===e[0]&&"x"===e[1]))},s._Types._toDouble=function(e){return s._Types._isNullOrUndefined(e)||""===e?0:s._Types._isType(e,"number")?e:s._Types._isType(e,"string")&&!isNaN(e)?u._NumberHelper._parseLocale(e):s._Types._isType(e,"boolean")?e?1:0:s._Types._isType(e,"DateTime")?o._DateTimeHelper._toOADate(e):s._Types._isType(e,"TimeSpan")?Math.floor(o._DateTimeHelper._toOADate(e)):parseFloat(e)};var p=null,_=Math.abs,g={_yearTwoDigit:"yy",_yearSingleDigit:"y",_yearFourDigit:"yyyy",_monthSingleDigit:"m",_monthTwoDigit:"mm",_monthAbbreviation:"mmm",_monthUnabbreviated:"mmmm",_monthJD:"mmmmm",_daySingleDigit:"d",_dayTwoDigit:"dd",_dayWeekDayAbbreviation:"aaa",_dayWeekDayUnabbreviated:"aaaa",_hoursSingleDigit:"h",_hoursTwoDigit:"hh",_minuteSingleDigit:"m",_minuteTwoDigit:"mm",_secondSingleDigit:"s",_secondTwoDigit:"ss",_eraYear:"e",_aMPMTwoDigit:"AM/PM",_aMPMSingleDigit:"A/P",_placeholderMonthJD:"@mmmmm",_defaultAbsoluteTime:new Date(1899,11,30,0,0,0,0)},M=[g._yearSingleDigit,g._yearTwoDigit,g._yearFourDigit,g._monthSingleDigit,g._monthTwoDigit,g._monthAbbreviation,g._monthUnabbreviated,g._monthJD,g._daySingleDigit,g._dayTwoDigit,g._dayWeekDayAbbreviation,g._dayWeekDayUnabbreviated,g._hoursSingleDigit,g._hoursTwoDigit,g._minuteSingleDigit,g._minuteTwoDigit,g._secondSingleDigit,g._secondTwoDigit,"ggg","gg","g","ee","e"],v={_positive:0,_negative:1,_zero:2,_text:3},b=[{_positive:0,_negative:0,_zero:0,_text:0},{_positive:0,_negative:1,_zero:0,_text:0},{_positive:0,_negative:1,_zero:2,_text:0},{_positive:0,_negative:1,_zero:2,_text:3}],F=RegExp("([.+?*$^\\[\\](){}|/])","g"),S=[["M/d","MMM/d","MMMM/d","d/M","d/MMM","d/MMMM","M-d","MMM-d","MMMM-d","d-M","d-MMM","d-MMMM"],["M/y","MMM/y","M/yyyy","MMM/yyyy","M-y","MMM-y","M-yyyy","MMM-yyyy"],["M/d/y","MMM/d/y","MMMM/d/y","M/d/yyyy","MMM/d/yyyy","MMMM/d/yyyy","d/M/y","d/MMM/y","d/MMMM/y","d/M/yyyy","d/MMM/yyyy","d/MMMM/yyyy","yyyy/M/d","M-d-y","MMM-d-y","MMMM-d-y","M-d-yyyy","MMM-d-yyyy","MMMM-d-yyyy","d-M-y","d-MMM-y","d-MMMM-y","d-M-yyyy","d-MMM-yyyy","d-MMMM-yyyy","yyyy-M-d"],["H:m","h:m tt"],["H:m:s","H:m:s"],["H:m:s.FFF","h:m:s.FFF tt"],["h:m:s tt","h:mm:ss tt"],["M/d H:m","MMM/d H:m","MMMM/d H:m","d/M H:m","d/MMM H:m","d/MMMM H:m","M/y H:m","MMM/y H:m","M/yyyy H:m","MMM/yyyy H:m","M/d/y H:m","MMM/d/y H:m","MMMM/d/y H:m","M/d/yyyy H:m","MMM/d/yyyy H:m","MMMM/d/yyyy H:m","M-d H:m","MMM-d H:m","MMMM-d H:m","d-M H:m","d-MMM H:m","d-MMMM H:m","M-y H:m","MMM-y H:m","M-yyyy H:m","MMM-yyyy H:m","M-d-y H:m","MMM-d-y H:m","MMMM-d-y H:m","M-d-yyyy H:m","MMM-d-yyyy H:m","MMMM-d-yyyy H:m","M/d h:m tt","MMM/d h:m tt","MMMM/d h:m tt","d/M h:m tt","d/MMM h:m tt","d/MMMM h:m tt","M/y h:m tt","MMM/y h:m tt","M/yyyy h:m tt","MMM/yyyy h:m tt","M/d/y h:m tt","MMM/d/y h:m tt","MMMM/d/y h:m tt","M/d/yyyy h:m tt","MMM/d/yyyy h:m tt","MMMM/d/yyyy h:m tt","M-d h:m tt","MMM-d h:m tt","MMMM-d h:m tt","d-M h:m tt","d-MMM h:m tt","d-MMMM h:m tt","M-y h:m tt","MMM-y h:m tt","M-yyyy h:m tt","MMM-yyyy h:m tt","M-d-y h:m tt","MMM-d-y h:m tt","MMMM-d-y h:m tt","M-d-yyyy h:m tt","MMM-d-yyyy h:m tt","MMMM-d-yyyy h:m tt","d/M/y H:m","d/MMM/y H:m","d/MMMM/y H:m","d/M/yyyy H:m","d/mmm/yyyy H:m","d/MMMM/yyyy H:m","yyyy/M/d H:m","d-M-y H:m","d-MMM-y H:m","d-MMMM-y H:m","d-M-yyyy H:m","d-MMM-yyyy H:m","d-MMMM-yyyy H:m","yyyy-M-d H:m","d/M/y h:m tt","d/MMM/y h:m tt","d/MMMM/y h:m tt","d/M/yyyy h:m tt","d/mmm/yyyy h:m tt","d/MMMM/yyyy h:m tt","yyyy/M/d h:m tt","d-M-y h:m tt","d-MMM-y h:m tt","d-MMMM-y h:m tt","d-M-yyyy h:m tt","d-MMM-yyyy h:m tt","d-MMMM-yyyy h:m tt","yyyy-M-d h:m tt"],["M/d H:m:s","MMM/d H:m:s","MMMM/d H:m:s","d/M H:m:s","d/MMM H:m:s","d/MMMM H:m:s","M/y H:m:s","MMM/y H:m:s","M/yyyy H:m:s","MMM/yyyy H:m:s","M/d/y H:m:s","MMM/d/y H:m:s","MMMM/d/y H:m:s","M/d/yyyy H:m:s","MMM/d/yyyy H:m:s","MMMM/d/yyyy H:m:s","d/M/y H:m:s","d/MMM/y H:m:s","d/MMMM/y H:m:s","d/M/yyyy H:m:s","d/MMM/yyyy H:m:s","d/MMMM/yyyy H:m:s","yyyy/M/d H:m:s","M-d H:m:s","MMM-d H:m:s","MMMM-d H:m:s","d-M H:m:s","d-MMM H:m:s","d-MMMM H:m:s","M-y H:m:s","MMM-y H:m:s","M-yyyy H:m:s","MMM-yyyy H:m:s","M-d-y H:m:s","MMM-d-y H:m:s","MMMM-d-y H:m:s","M-d-yyyy H:m:s","MMM-d-yyyy H:m:s","MMMM-d-yyyy H:m:s","d-M-y H:m:s","d-MMM-y H:m:s","d-MMMM-y H:m:s","d-M-yyyy H:m:s","d-MMM-yyyy H:m:s","d-MMMM-yyyy H:m:s","yyyy-M-d H:m:s","M/d h:m:s tt","MMM/d h:m:s tt","MMMM/d h:m:s tt","d/M h:m:s tt","d/MMM h:m:s tt","d/MMMM h:m:s tt","M/y h:m:s tt","MMM/y h:m:s tt","M/yyyy h:m:s tt","MMM/yyyy h:m:s tt","M/d/y h:m:s tt","MMM/d/y h:m:s tt","MMMM/d/y h:m:s tt","M/d/yyyy h:m:s tt","MMM/d/yyyy h:m:s tt","MMMM/d/yyyy h:m:s tt","d/M/y h:m:s tt","d/MMM/y h:m:s tt","d/MMMM/y h:m:s tt","d/M/yyyy h:m:s tt","d/MMM/yyyy h:m:s tt","d/MMMM/yyyy h:m:s tt","yyyy/M/d h:m:s tt","M/d/yyyy h:mm:ss tt","M-d h:m:s tt","MMM-d h:m:s tt","MMMM-d h:m:s tt","d-M h:m:s tt","d-MMM h:m:s tt","d-MMMM h:m:s tt","M-y h:m:s tt","MMM-y h:m:s tt","M-yyyy h:m:s tt","MMM-yyyy h:m:s tt","M-d-y h:m:s tt","MMM-d-y h:m:s tt","MMMM-d-y h:m:s tt","M-d-yyyy h:m:s tt","MMM-d-yyyy h:m:s tt","MMMM-d-yyyy h:m:s tt","d-M-y h:m:s tt","d-MMM-y h:m:s tt","d-MMMM-y h:m:s tt","d-M-yyyy h:m:s tt","d-MMM-yyyy h:m:s tt","d-MMMM-yyyy h:m:s tt","yyyy-M-d h:m:s tt","M/d/yyyy H:m:s","M-d-yyyy H:m:s","M/d/yyyy h:m:s tt","M-d-yyyy H:m:s tt"],["M/d H:m:s.FFF","MMM/d H:m:s.FFF","MMMM/d H:m:s.FFF","d/M H:m:s.FFF","d/MMM H:m:s.FFF","d/MMMM H:m:s.FFF","M/y H:m:s.FFF","MMM/y H:m:s.FFF","M/yyyy H:m:s.FFF","MMM/yyyy H:m:s.FFF","M/d/y H:m:s.FFF","MMM/d/y H:m:s.FFF","MMMM/d/y H:m:s.FFF","MMM/d/yyyy H:m:s.FFF","MMMM/d/yyyy H:m:s.FFF","d/M/y H:m:s.FFF","d/MMM/y H:m:s.FFF","d/MMMM/y H:m:s.FFF","d/M/yyyy H:m:s.FFF","d/MMM/yyyy H:m:s.FFF","d/MMMM/yyyy H:m:s.FFF","yyyy/M/d H:m:s.FFF","M-d H:m:s.FFF","MMM-d H:m:s.FFF","MMMM-d H:m:s.FFF","d-M H:m:s.FFF","d-MMM H:m:s.FFF","d-MMMM H:m:s.FFF","M-y H:m:s.FFF","MMM-y H:m:s.FFF","M-yyyy H:m:s.FFF","MMM-Yyyy H:m:s.FFF","M-d-y H:m:s.FFF","MMM-d-y H:m:s.FFF","MMMM-d-y H:m:s.FFF","MMM-d-yyyy H:m:s.FFF","MMMM-d-yyyy H:m:s.FFF","D-M-y H:m:s.FFF","d-MMM-y H:m:s.FFF","d-MMMM-y H:m:s.FFF","D-M-yyyy H:m:s.FFF","d-MMM-yyyy H:m:s.FFF","d-MMMM-yyyy H:m:s.FFF","yyyy-M-d H:m:s.FFF","M/d h:m:s.FFF tt","MMM/d h:m:s.FFF tt","MMMM/d h:m:s.FFF tt","d/M h:m:s.FFF tt","d/MMM h:m:s.FFF tt","d/MMMM h:m:s.FFF tt","M/y h:m:s.FFF tt","MMM/y h:m:s.FFF tt","M/yyyy h:m:s.FFF tt","MMM/yyyy h:m:s.FFF tt","M/d/y h:m:s.FFF tt","MMM/d/y h:m:s.FFF tt","MMMM/d/y h:m:s.FFF tt","MMM/d/yyyy h:m:s.FFF tt","MMMM/d/yyyy h:m:s.FFF tt","d/M/y h:m:s.FFF tt","d/MMM/y h:m:s.FFF tt","d/MMMM/y h:m:s.FFF tt","d/M/yyyy h:m:s.FFF tt","d/MMM/yyyy h:m:s.FFF tt","d/MMMM/yyyy h:m:s.FFF tt","yyyy/M/d h:m:s.FFF tt","M-d h:m:s.FFF tt","MMM-d h:m:s.FFF tt","MMMM-d h:m:s.FFF tt","d-M h:m:s.FFF tt","d-MMM h:m:s.FFF tt","d-MMMM h:m:s.FFF tt","M-y h:m:s.FFF tt","MMM-y h:m:s.FFF tt","M-yyyy h:m:s.FFF tt","MMM-Yyyy h:m:s.FFF tt","M-d-y h:m:s.FFF tt","MMM-d-y h:m:s.FFF tt","MMMM-d-y h:m:s.FFF tt","MMM-d-yyyy H:m:s.FFF tt","MMMM-d-yyyy h:m:s.FFF tt","d-M-y h:m:s.FFF tt","d-MMM-y h:m:s.FFF tt","d-MMMM-y h:m:s.FFF tt","d-M-yyyy h:m:s.FFF tt","d-MMM-yyyy h:m:s.FFF tt","d-MMMM-yyyy h:m:s.FFF tt","yyyy-M-d h:m:s.FFF tt"]],D=["#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"],x=RegExp("color\\s*(\\d+)","i"),C=s._Types._isType,T=s._Types._isArray,N=u._NumberHelper,H=N._generalNumberInt+"."+N._generalNumberDec,E=N._formatObjectToString,P=N._customCultureFormat,O=N._fixNumber,w=s._Types._isNullOrUndefined,k=isNaN,I=function(e){return l.CultureManager._getCultureInfo(e)},A=function(e){return I(e).DateTimeFormat},$=function(e){return I(e).NumberFormat},R=function(e){return e&&e.toLowerCase()},U=function(){throw Error(d().Exp_FormatIllegal)},B=function(){return l.CultureManager.booleanMapping},L={_Empty:"",_format:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];if(0===arguments.length)return p;for(var a=r[0],i=1;i<arguments.length;i++){var o=RegExp("\\{"+(i-1)+"\\}","gm");a=a.replace(o,arguments[i])}return a},_isNullOrEmpty:function(e){return!e||e===L._Empty}},j=function(e){var t=e.charCodeAt(0);return t>=48&&t<=57},G=function(e){var t=e.charCodeAt(0);return t>=9&&t<=13||32===t||133===t||160===t},Y=function(){function e(e,t){ye.call(this,t);this._content=e;var r=this._content,n=ue(r[0],"$",!1),a=r.indexOf("-");if(!(n&&a>-1))throw Error(d().Exp_TokenIllegal);this._currencySymbol=ee(r,1,a-1),(r=i._StringHelper._remove(r,0,a+1)).length>0&&(this._locateID=parseInt(r,16))}return e.prototype.cultureInfo=function(){return this._cultureInfo||(this._cultureInfo=I(this._locateID)),this._cultureInfo},e.prototype.currencySymbol=function(){return this._currencySymbol?i._StringHelper._replace(this._currencySymbol,"\\.",'"."'):L._Empty},e.prototype.allowScience=function(){if(this._cultureInfo)return!this._cultureInfo.isJCKCulture},e.prototype.toString=function(){return this._content?ne(this._content):L._Empty},e.Name="LocaleIDFormatPart",e}(),z=function(){function e(e,t){this.formatCached=e,this.cultureName=t,this.typeName=""}return e.prototype.format=function(e,t){return p},e.prototype.parse=function(e){return p},e.prototype.formatString=function(e){return this.formatCached},e.prototype.toJSON=function(){var e={};for(var t in this)this.hasOwnProperty(t)&&(e[t]=this[t]);return e},e.prototype.fromJSON=function(e){if(e)for(var t in e)void 0!==e[t]&&(this[t]=e[t])},e}();t.FormatterBase=z;var K=function(){function e(e,t){ye.call(this,t);for(var r,n,a,o=this,s=["<=","<>",">=",">","<","="],u=0,l=s.length;u<l;u++)if(r=s[u],i._StringHelper._startsWith(e,r,!0)){n=i._StringHelper._remove(e,0,r.length);var c=parseFloat(n);k(c)||(a=c);break}if(a===p&&void 0===a)throw Error(d().Exp_TokenIllegal);o.value=a,o._compareOperator=r,o.isMeetCondition=function(e){var t=o._compareOperator,r=o.value;switch(t){case"<=":return e<=r;case"<>":return e!==r;case">=":return e>=r;case">":return e>r;case"<":return e<r;case"=":return e===r}}}return e.prototype.toString=function(){return ne(this._compareOperator+this.value.toString())},e}(),W=function(){function e(e,t){ye.call(this,t);if(this.token=e,this.type=parseInt(i._StringHelper._remove(e,0,5),10),this.type<0||this.type>4)throw Error(d().Exp_TokenIllegal)}return e.prototype._replaceNumberString=function(t,r,n){if(!t||t===L._Empty)return t;for(var a,o,s=t,u=t,l=-1,c=-1,m=!1,y=t.length-1;y>=0;y--){var h=u[y];!k(h)&&!ue(h," ",!1)||ue(h,".",!1)&&!m?(ue(h,".",!1)&&(m=!0),-1===l&&(l=y),c=y):c>-1&&l>-1&&(a=ee(u,c,l-c+1),k(parseFloat(a))||(o=e.numberString(a,r,n),s=i._StringHelper._remove(s,c,l-c+1),s=i._StringHelper._insert(s,c,o)),l=-1,c=-1,m=!1)}return c>-1&&l>-1&&(a=ee(u,c,l-c+1),k(parseFloat(a))||(o=e.numberString(a,r,n),s=i._StringHelper._remove(s,c,l-c+1),s=i._StringHelper._insert(s,c,o))),s},e.prototype.toString=function(){if(this.type>-1)return ne("DBNum"+this.type);throw Error()},e.numberString=function(t,r,n){var a=e.formatNumberString,i=t.split(".");if(i){if(1===i.length)return a(i[0],r.numbers,n?r.letters:p);if(2===i.length)return a(i[0],r.numbers,n?r.letters:p)+"."+a(i[1],r.numbers)}throw Error(d().Exp_ValueIllegal)},e.formatNumberString=function(t,r,n){var a,i=t,o=0,s=0;if(2===arguments.length){for(var u="";o<i.length;o++)a=ee(i,o,1),u+=r[s=parseInt(a,10)];return u}if(3===arguments.length){if(!n)return e.formatNumberString(t,r);for(var l=0,c="",m=i.length,y=!1,h=[];o<m;o++){var f=n.length-1-o;f>-1?h.push(n[f].toString()):h.push(L._Empty)}for(var d=[],p=h.length-1;p>=0;p--)d[h.length-p-1]=h[p];h=d;var _=!1;for(p=0;p<m;p++){a=ee(i,p,1),s=parseInt(a,10);var g=void 0,M=L._Empty;m-p-16>0?(g=r[s],M="",_=!0):p!==m-1&&p!==m-5&&p!==m-9&&p!==m-13?"0"===a?(g="",M="",l+=1):"0"!==a&&0!==l?(g=r[0]+r[s],M=h[p],l=0):(g=r[s],M=h[p],l=0):"0"!==a&&0!==l?(g=r[0]+r[s],M=h[p],l=0):"0"!==a&&0===l||_?(g=r[s],M=h[p],l=0,_=!1):"0"===a&&l>=3?(g="",M="",l+=1):m>=11?(g="",l+=1):(g="",M=h[p],l+=1),g+M===L._Empty||(y=!1),p!==m-13||y||(M=h[p],y=!0),p!==m-9||y||(M=h[p],y=!0),p===m-1&&(M=h[p],y=!0),c=c+g+M}return 0===parseInt(t,10)?r[0]:c}},e}(),X=function(){function e(e,t,r,n,a,i){me.call(this,t,r,n,i);this._formatString=this._fixFormat(le(e)),this._absTimeParts=a,this._formatType=2,this._init()}return e.prototype._init=function(){var t={_value:this._formatString};if(e._evaluateFormat(t._value)){var r=this._processAMPM(t),n=A(this.cultureName).amDesignator&&A(this.cultureName).pmDesignator;if(this.hasJD=this._replace(t._value,g._monthJD,'"'+g._placeholderMonthJD+'"',!0,!1,t,!1),this._replace(t._value,g._monthUnabbreviated,"MMMM",!0,!1,t,!1),this._replace(t._value,g._monthAbbreviation,"MMM",!0,!1,t,!1),this._replaceMonth(t._value,t),this._replace(t._value,g._dayWeekDayAbbreviation,"ddd",!0,!0,t,!0),this._replace(t._value,g._dayWeekDayUnabbreviated,"dddd",!0,!0,t,!0),r&&n||(this._replace(t._value,g._hoursSingleDigit,"H",!0,!0,t,!1),this._replace(t._value,g._hoursTwoDigit,"HH",!0,!0,t,!1)),this._partDBNumberFormat&&(this._partLocaleID||I(this.cultureName).NumberFormat.dbNumber)&&(this._hasYearDelay=this._hasYearDelay||this._replace(t._value,g._yearFourDigit,'"@'+g._yearFourDigit+'"',!0,!1,t,!0),this._hasYearDelay=this._hasYearDelay||this._replace(t._value,g._yearTwoDigit,'"@'+g._yearTwoDigit+'"',!0,!1,t,!0)),this._absTimeParts)for(var a=0;a<this._absTimeParts.length;a++){var i=this._absTimeParts[a];this._replace(t._value,i._originalToken,"@"+i._originalToken,!0,!0,t,!0)}this._validDateTimeFormatString=t._value}else U()},e.prototype.formatString=function(){return this._formatString},e.prototype.format=function(e){var t=L._Empty,r=p;try{if((r=o._DateTimeHelper._DT(e))&&k(r.valueOf())&&(r=p),r?e=r:t=e.toString(),r){if(t=o._DateTimeHelper._customCultureFormat(r,this._validDateTimeFormatString,this._partLocaleID&&this._partLocaleID.cultureInfo()||I(this.cultureName),this._isShowEraFirstYear),this.hasJD){var n=I(this.cultureName).DateTimeFormat.monthNames[r.getMonth()];t=i._StringHelper._replace(t,g._placeholderMonthJD,ee(n,0,1))}if(this._absTimeParts)for(var a=24*(o._DateTimeHelper._toOADate(r)-o._DateTimeHelper._toOADate(g._defaultAbsoluteTime))*60*60*1e3,s=0;s<this._absTimeParts.length;s++){var u=this._absTimeParts[s],l=u._getTimeSpan(a);if(!w(l)){var c=u._originalToken.replace("[","\\[").replace("]","\\]"),m=u._originalToken.replace("[","").replace("]",""),y=i._StringHelper._padZeroLeft(l+"",m.length);t=i._StringHelper._replace(t,"@"+c,y)}}}}catch(r){t=te(e)}return function(e,t,r,n,a){var i=e;if(!w(n)&&t instanceof Date){var s=fe(r,n.type,a);if(!s)return e;i=n._replaceNumberString(i,s,!0),1===n.type&&(i=i.replace(RegExp("一十","g"),"十")),i=(i=i.replace("@"+g._yearFourDigit,o._DateTimeHelper._localeFormat(t,g._yearFourDigit))).replace("@"+g._yearTwoDigit,o._DateTimeHelper._localeFormat(t,g._yearTwoDigit)),i=n._replaceNumberString(i,s,!1)}return i}(t,e,this._partLocaleID,this._partDBNumberFormat,this.cultureName)},e.prototype.parse=function(e){if(!e||e===L._Empty)return p;var t=e,r=R(t);if("true"===r)return!0;if("false"===r)return!1;if(this._validDateTimeFormatString){var n=o._DateTimeHelper._parseExact(t,this._validDateTimeFormatString,I(this.cultureName));if(n)return n}try{var a=o._DateTimeHelper._DT(t);return a&&!k(a)?a:k((a=new Date(t)).valueOf())?t:a}catch(e){return t}},e.prototype._fixFormat=function(e){for(var t=e,r="",n=!1,a=0;a<t.length;a++){var i=t[a];if('"'===i)n=!n;else if(!n)if("Y"===i||"D"===i||"S"===i||"E"===i||"G"===i)i=R(i);else if("M"===i){var o=t[a-1];ue("A",o,!0)||ue("P",o,!0)||(i=R(i))}r+=i}return r},e.prototype._processAMPM=function(e){var t=A(this.cultureName).amDesignator,r=A(this.cultureName).pmDesignator,n=[g._aMPMTwoDigit];t&&r?n.push(t+"/"+r):n.push(g._aMPMTwoDigit),n.push(g._aMPMSingleDigit);for(var a=["tt","tt","t"],o=e._value,s=0;s<3;s++){if(i._StringHelper._contains(o,a[s]))return!0;if(i._StringHelper._contains(o,n[s],!0))return e._value=i._StringHelper._replace(o,n[s],a[s],!0),!0}return!1},e.prototype._replaceMonth=function(e,t){for(var r=function(e){for(var t=[],r=!1,n=!1,a="",i=function(e,t){return{type:e,content:t}},o=function(e){return!w(e)&&-1!=="yYdDhHmMsSeE".indexOf(e)},s=function(r,n){if(o(r)){for(var a=r,s=e[n+1];o(s)&&s.toLowerCase()===r.toLowerCase()&&(a+=s,n<e.length-1);)n++,s=e[n+1];t.push(i("symbolic",a))}else"a"===r&&"aaa"===e.slice(n,n+3).toLowerCase()?(t.push(i("symbolic",e.slice(n,n+3))),n+=2):t.push(i("text",r));return n},u=0;u<e.length;u++){var l=e[u];if(r)t.push(i("text","\\"+l)),r=!1;else if(n&&'"'!==l)a+=l;else switch(l){case"\\":r=!0;break;case'"':n&&(t.push(i("text",'"'+a+'"')),a=""),n=!n;break;default:u=s(l,u)}}return t}(e),n=-1,a=-1,i=0;i<r.length;i++){var o=r[i];"symbolic"===o.type?"m"===o.content[0].toLowerCase()?n>=0?(o.content=o.content.toLowerCase(),n=-1):(o.content=o.content.toUpperCase(),a=i):"s"===o.content[0].toLowerCase()?a>=0&&(r[a].content=r[a].content.toLowerCase(),a=-1):"h"===o.content[0].toLowerCase()?(n=i,a=-1):a=-1:a>=0&&i>0&&"0"===o.content&&"."===r[i-1].content&&i===a+2&&(r[a].content=r[a].content.toLowerCase())}t._value=r.map((function(e){return e.content})).join("")},e.prototype._replace=function(t,r,n,a,o,s,u){if(a||o){var l=[],c=!0;!e.hasDate(t)&&e.hasTime(t)&&(c=!1);for(var m=!1,y=0;y<t.length;y++){var h=t[y];if(e.hasTime(h)&&!m?c=!1:e.hasDate(h)&&!m&&(c=!0),a&&ue(h,r[0],u)&&c||o&&ue(h,r[0],u)&&!c){for(var f=!0,d=0;d<r.length;d++)if(d+y>=t.length||!ue(r[d],t[d+y],u)){f=!1;break}var p=y+r.length-1;if(f&&p+1<t.length){var _=t[p],g=-1;for(g=p+1;g<t.length&&ue(_,t[g],u);g++);g>p+1&&(y=g,f=!1)}f&&!m&&l.splice(0,0,y)}'"'===h&&(m=!m)}if(s._value=t,l.length>0){for(y=0;y<l.length;y++){var M=l[y];s._value=i._StringHelper._remove(s._value,M,r.length),s._value=i._StringHelper._insert(s._value,M,n)}return!0}return!1}return!1},e.hasTime=function(e){return i._StringHelper._indexOf(e,g._hoursSingleDigit[0],!0)>-1||i._StringHelper._indexOf(e,g._secondSingleDigit[0],!0)>-1},e.hasDate=function(e){return i._StringHelper._indexOf(e,g._yearTwoDigit[0],!0)>-1||i._StringHelper._indexOf(e,g._daySingleDigit[0],!0)>-1},e._evaluateFormat=function(e,t){return ce(e,t||M)},e}();t._NumberFormatDateTime=X;var J=function(){function e(e,t){ye.call(this,t);var r,n=R(e)[0];if("h"===n)r=3600;else if("m"===n)r=60;else{if("s"!==n)throw Error(d().Exp_TokenIllegal);r=1}this._getTimeSpan=function(e){var t=e/1e3/r;return Math.abs(t-Math.round(t))<1e-6?Math.round(t):Math.floor(t)}}return e.Name="ABSTimeFormatPart",e}(),V=function(){function e(e,t){ye.call(this,t);var r=x.exec(e);if(null!==r){var n=Number(r[1]);(n-=1)>=0&&n<D.length&&(e=D[n])}this.foreColor=e}return e.prototype.toString=function(){return ne(this.foreColor)},e.Name="ColorFormatPart",e}(),q=function(){function e(e,t,r,n){me.call(this,t,r,n);this._isGeneralNumber=!1,this._formatType=1,this._fullFormatString=ae(e);var a=le(e);if(t&&(a=oe(a,this._partLocaleID._originalToken,this._partLocaleID.currencySymbol())),(a=ae(a)).indexOf("/")>-1){var i=function(e,t){var r=[];if(e===p||""===e)return r;var n,a,i=!1,o=[],s=!1;for(n=0;n<e.length;n++)'"'!==(a=e[n])||i||(s=!s),i||s||a!==t?o.push(a):(r.push(o.join("")),o=[]),i="\\"===a&&!i;return r.push(o.join("")),r}(a,"/");if(i&&2===i.length){this._fractionDenominatorFormat=i[1];var o=i[0];if(o){var s=o.lastIndexOf(" ");s>-1?(this._fractionIntegerFormat=ee(o,0,s),this._fractionNumeratorFormat=ee(o,s+1,o.length-s-1)):this._fractionNumeratorFormat=o}}}this._numberFormatString=a}return e.prototype.formatString=function(){return this._fullFormatString},e.prototype.format=function(t){if(C(t,"boolean"))return t.toString().toUpperCase();var r=s._Types._toDouble(t);if(k(r)||!isFinite(r)||k(t))return"string"==typeof t?t:p;var n,a,i,o,u,l=I(this.cultureName);if(this._fractionNumeratorFormat&&this._fractionDenominatorFormat){var c={value:0},m={value:0},y={value:0},h=this._getDenominatorLength();if(e.getFraction(r,h,c,m,y)){var f=e.getGCD(m.value,y.value);if(f>1&&(m.value/=f,y.value/=f),this._fractionIntegerFormat){u="",1===y.value&&(c.value+=m.value,m.value=0,y.value=0);var d=E(P(c.value,this._fractionIntegerFormat,l));d&&"0"!==d&&(u+=d,u+=" "),0===c.value&&r<0&&(u+=l.NumberFormat.negativeSign),0===r&&(u+="0"),n=this._fractionDenominatorFormat,!k(a=parseFloat(n))&&a>0&&(0!==m.value&&0!==y.value&&(m.value*=a/y.value),y.value=a,n=n.replace(/^\d+/,e.toNumberPlaceholder(a)),o=(i=Math.ceil(m.value))-m.value,m.value=parseFloat(o<=.5&&o>=0?i.toString():""+(i-1)));var _=this._fractionNumeratorFormat,g=parseFloat(_);if(!k(g)&&0===g){var M=_.length,v=m.value.toString(),b=v.length;M>b?_=_.substr(0,M-(M-b)):M<b&&(v=v.substr(0,b-(b-M)),m.value=parseInt(v,10))}var F=this._getFormattedFractionString(m.value,y.value,_,n,l);return 0===m.value&&(F=F.replace(/./g," "),""===d)?"0 "+F:""===(u+=F)?"0":u}u="";var S=c.value*y.value+m.value;return n=this._fractionDenominatorFormat,(a=parseFloat(n))>0?(S*=a/y.value,y.value=a,u+=(S=parseFloat((o=(i=Math.ceil(S))-S)<=.5&&o>=0?i.toString():""+(i-1)))+"/"+y.value):u+=this._getFormattedFractionString(S,y.value,this._fractionNumeratorFormat,this._fractionDenominatorFormat,l),0===S?"0":u}return r.toString()}return function(e,t,r,n,a){if(!w(n)){var i=fe(r,n.type,a);if(!w(i)){for(var o=!1,s=void 0,u=I(a),l=void 0,c=0,m=e.length;c<m;c++)"decimalSeparator"===e[c].type&&(o=!0,e[c].value=n._replaceNumberString(e[c].value,i,t),s=e[c].value),"number"===e[c].type&&(e[c].value=o?n._replaceNumberString(s+e[c].value,i,t).slice(1):n._replaceNumberString(e[c].value,i,t),"ja-JP"===u.name()&&e[c].value.length>1&&("一千"!==(l=e[c].value.substr(0,2))&&"一百"!==l&&"一十"!==l||(e[c].value=e[c].value.substr(1))));return e}}return e}(P(r,this._numberFormatString,l),this._isGeneralNumber,this._partLocaleID,this._partDBNumberFormat,this.cultureName)},e.prototype.parse=function(e){if(!e||e===L._Empty)return p;var t=function(e){return e&&e.toUpperCase()}(e);if("TRUE"===t||t===B()&&B().boolean_true)return!0;if("FALSE"===t||t===B()&&B().boolean_false)return!1;var r="("===e.charAt(0)&&")"===e.charAt(e.length-1);r&&(e=e.substring(1,e.length-1));var n=this._fractionNumeratorFormat&&this._fractionDenominatorFormat,a=this._trimPercentSign(this._numberFormatString)._isPer;if(n||a){var o=0;if(n&&this._fractionIntegerFormat){var s=(e=e.trim()).lastIndexOf(" ");0<s&&s<e.length-1&&(o=parseInt(e.substr(0,s),10),e=e.substr(s+1))}var u=e.indexOf("/");if(0<u&&u<e.length-1){var l=e.substr(0,u),c=e.substr(u+1);if(!k(l)&&!k(c)){var m=parseInt(l,10),y=parseInt(c,10);if(!k(m)&&!k(y)&&0!==y)return o+m/y}}}e=this._trimSpecialSymbol(e),e=this._trimCurrencySymbol(e);var h=this._trimPercentSign(e),f=h._isPer,d=h._str;if(this._isValidNumberString(d)){d=i._StringHelper._replaceAllNoReg(d,$(this.cultureName).numberGroupSeparator,"",!1);var g=N._parseFloat(d,this.cultureName);if(!k(g)&&isFinite(g)){if(f&&(g=O(g/100,15)),r){if("-"===d.charAt(0)||"+"===d.charAt(0))return p;g=-1*_(g)}return g}}return p},e.prototype._getDenominatorLength=function(){var e=this._fractionDenominatorFormat,t=0;if(e)for(var r=e.length,n=0;n<r&&e[n].match(/[#?\d]/);n++)t++;return t},e.prototype._isValidNumberString=function(e){for(var t="",r=0,n=0,a=0,i=p,o=$(this.cultureName),s=e.length-1;s>-1;s--){if(e[s]===o.numberDecimalSeparator)r++,a>0&&(i=!1),t="";else if("e"===R(e[s])){if(n++,t="",s===e.length-1)return!1}else if(e[s]===o.numberGroupSeparator)i=3===t.length,a++,t="";else if("-"===e[s]||"+"===e[s]){if(s>0&&"e"!==R(e[s-1]))return!1}else{if(!j(e[s]))return!1;if(t+=e[s],0===s&&0===parseInt(t,10)&&i)return!1}if(r>1||n>1||!1===i)return!1}return!0},e.prototype._trimSpecialSymbol=function(e){for(var t=e,r=[],n=0;n<t.length;n++)j(t[n])&&r.push(n);for(var a=$(this.cultureName),o=[a.currencyDecimalSeparator,a.currencyGroupSeparator,a.currencySymbol,"$",a.nanSymbol,a.negativeInfinitySymbol,a.negativeSign,a.numberDecimalSeparator,a.numberGroupSeparator,a.percentDecimalSeparator,a.percentGroupSeparator,a.percentSymbol,a.perMilleSymbol,a.positiveInfinitySymbol,a.positiveSign],s=t.length-1;s>-1;s--){var u=t[s];if(G(u)&&o.indexOf(u.toString())<=-1)(s<r[0]||r[r.length-1]<s)&&(t=i._StringHelper._remove(t,s,1));else if("-"===u||"+"===u){var l=s>0?t[s-1].toString():p;if(["e","E","(",$(this.cultureName).currencySymbol,"$"].indexOf(l)<0)break}}return t},e.prototype._trimCurrencySymbol=function(e){if(i._StringHelper._startsWith(e,"$")){if((t=i._StringHelper._remove(e,0,1)).indexOf("$")<0)return t}else{var t,r=$(this.cultureName).currencySymbol;if("$"!==r&&i._StringHelper._startsWith(e,r)&&(t=i._StringHelper._remove(e,0,r.length)).indexOf(r)<0)return t}return e},e.prototype._trimPercentSign=function(e){var t=$(this.cultureName).percentSymbol,r=!0,n=e;return i._StringHelper._startsWith(e,t)?n=i._StringHelper._remove(e,0,t.length):i._StringHelper._endsWith(e,t)?n=i._StringHelper._remove(e,e.length-t.length,t.length):r=!1,i._StringHelper._contains(n,t)&&(r=!1),{_str:n,_isPer:r}},e.prototype._getFormattedFractionString=function(e,t,r,n,a){var i=E(P(e,r,a)),o=E(P("0."+t,"#."+n,a,!0)),s=a&&a.NumberFormat&&a.NumberFormat.numberDecimalSeparator||".",u=i+"/"+o.substr(o.indexOf(s)+1);return""===r&&(u=e+u),""===n&&(u+=t),u},e.getGCD=function(e,t){if(0===e)return _(t);if(0===t)return _(e);for(var r=Math.max(e,t),n=Math.min(e,t),a=r%n;0!==a;)a=(r=n)%(n=a);return _(n)},e.getFraction=function(e,t,r,n,a){var i=0,o=0,s=0,u=0,l=Math.ceil;e>0?1==(u=e-l(e)+1)?(u=0,i=e):i=l(e)-1:e<0&&(i=l(e),u=l(e)-e);var c=Math.pow(10,t-1),m=Math.pow(10,t)-1;c<2&&(c=2),m<2&&(m=2);for(var y=!1,h=0,f=c;f<=m;f++){var d=Math.round(f*u),p=d/f,g=_(p-u);if((!y||g<_(h-u))&&(y=!0,h=p,o=d,s=f,g<1e-6))break}return r.value=i,n.value=o,a.value=s,y},e.toNumberPlaceholder=function(e){return e.toString().replace(/\d/g,"?")},e}(),Z=function(){function e(t,r,n,a){me.call(this,r,n,a),arguments.length>0?(e._isValidNumberFormatString(t)||U(),this._fullFormatString=t):this._fullFormatString="General",this._formatType=0}return e._isValidNumberFormatString=function(e){for(var t="",r=!1,n=-1,a=e.length,i=0;i<a;i++){var o=e[i];'"'===o?n=(r=!r)?i:-1:r||(t+=o)}return n>0&&(t+=e.substring(n,a)),!(t.indexOf("0")>=0||t.indexOf("#")>=0||t.indexOf(".")>=0||t.indexOf("@")>=0)},e.prototype._getDigitalFormat=function(){if(!this._digitalFormat){var e=this._fullFormatString;e=oe(e,"General",H),this._digitalFormat=new q(e,this._partLocaleID,this._partDBNumberFormat,this.cultureName),this._digitalFormat._isGeneralNumber=!0}return this._digitalFormat},e.prototype._getExponentialDigitalFormat=function(){return this._exponentialDigitalFormat||(this._exponentialDigitalFormat=new q("0.#####E+00",this._partLocaleID,this._partDBNumberFormat,this.cultureName),this._exponentialDigitalFormat._isGeneralNumber=!0),this._exponentialDigitalFormat},e.prototype.formatString=function(){return i._StringHelper._replace(this._fullFormatString,"@NumberFormat","General")},e.prototype.format=function(e){if(s._Types._isNumber(e,this.cultureName)){var t=!this._partLocaleID||this._partLocaleID.allowScience(),r=s._Types._toDouble(e);if(void 0!==r&&r!==p)return _(r)>99999999999&&t||_(r)<1e-11&&0!==r?this._getExponentialDigitalFormat().format(e):this._getDigitalFormat().format(e)}else{if(C(e,"string")){var n=i._StringHelper._replace(this.formatString(),'"',"");return n=se(n),e}if(C(e,"boolean"))return e.toString().toUpperCase()}return""},e.prototype.parse=function(e){if(L._isNullOrEmpty(e))return p;if("number"==typeof e)return e;var t=!1,r=e.trim(),n=i._StringHelper._indexOf(r,"-",!1);n>0&&!ue(r.charAt(n-1),"E",!0)&&(t=!0);var a,s=I(this.cultureName),u=s.DateTimeFormat,c=u.dateSeparator,m=u.timeSeparator,y=u.monthNames,h=u.abbreviatedMonthNames,f=function(e,t){if(!t||0===t.length)return!1;for(var r=!1,n=0,a=t.length;n<a;n++)if(i._StringHelper._contains(e,t[n],!0)){r=!0;break}return r};if(t||i._StringHelper._contains(r,c,!1)||i._StringHelper._contains(r,m,!1)||i._StringHelper._contains(r,"/",!1)||i._StringHelper._contains(r,":",!1)||i._StringHelper._contains(r,"-",!1)||i._StringHelper._contains(r,"年",!1)||i._StringHelper._contains(r,"月",!1)||i._StringHelper._contains(r,"日",!1)||f(r,y)||f(r,h)||"ja-JP"===s.name()&&l._EraHelper._symbols.indexOf(r[0].toUpperCase())>=0&&i._StringHelper._contains(r,".",!1)){var d=o._DateTimeHelper._parseLocale(r);if(d)return d}var g,M="-"===r.charAt(0);if(M||"+"===r.charAt(0)){if("("===(r=i._StringHelper._remove(r,0,1)).charAt(0)&&")"===r.charAt(r.length-1))return e}else if("("===r.charAt(0)&&")"===r.charAt(r.length-1)&&(g=!0,"-"===(r=(r=r.substring(1,r.length-1)).trim()).charAt(0)||"+"===r.charAt(0)))return e;return(a=this._getDigitalFormat().parse(r))!==p&&void 0!==a?g&&C(a,"boolean")?e:(g||M)&&C(a,"number")?-1*_(a):a:e},e}(),Q=function(){function e(e,t,r,n){me.call(this,t,r,n);var a=le(e,!1);t&&(a=oe(a,this._partLocaleID._originalToken,this._partLocaleID.currencySymbol())),a=se(a=ae(a)),this._formatString=a,this._formatType=3}return e.prototype.format=function(e,t){try{var r;r=e instanceof Date?o._DateTimeHelper._toOADate(e).toString():te(e);var n=this._parseFormat(this._formatString);return this._toFormattedObject(r,n.formatTokens,e,n.hasAtPart,t)}catch(e){return""}},e.prototype.parse=function(e){return e||""},e.prototype.formatString=function(){return this._formatString},e.prototype._parseFormat=function(e){for(var t,r=[],n=!1,a="",i=!1,o=p,s=0;s<e.length;s++)t=e.charAt(s),i?('"'!==t?a+=t:(a+=t,r.push(a),a="",i=!1),o=t):"*"!==o&&"_"!==o&&"\\"!==o||""===a?"*"!==t&&"_"!==t&&"\\"!==t?"@"!==t?'"'!==t?(a+=t,o=t):(o=t,""!==a&&r.push(a),a=t,i=!0):(o=t,""!==a&&(r.push(a),a=""),r.push(t),n=!0):(o=t,""!==a&&(r.push(a),a=""),a+=t):(a+=t,r.push(a),a="");return""!==a&&r.push(a),{formatTokens:r,hasAtPart:n}},e.prototype._toFormattedObject=function(e,t,r,n,a){var i=[],o=!1;if("string"!=typeof r||n||a)for(var s=t.length-1;s>=0;s--){var u=t[s];"*"===u[0]?o||(o=!0,i.push({type:"fillingChar",value:u[1]})):"_"===u[0]?i.push({type:"placeholder",value:u[1]}):'"'===u[0]&&'"'===u[u.length-1]?u.length>=2&&i.push({type:"text",value:u.substr(1,u.length-2)}):"\\@"===u?i.push({type:"text",value:"@"}):"@"===u[0]?i.push({type:"text",value:e}):i.push({type:"text",value:u})}else i.push({type:"text",value:r});return i.reverse()},e}();function ee(e,t,r){return e.substr(t,r)}function te(e){return s._Types._isNullOrUndefined(e)?"":"boolean"==typeof e?e?"TRUE":"FALSE":"string"==typeof e?e:e.toString()}function re(e,t){if("\\"===e[t])throw Error(d().Exp_InvalidBackslash);if(t-1>0&&t-1<e.length&&"\\"===e[t-1]){if(t-2<0)return!0;if(t-2>0&&t-2<e.length)return"\\"!==e[t-2]}return!1}function ne(e){if(!e)throw Error(d().Exp_TokenIsNull);return"["+e+"]"}function ae(e){if(void 0===e||e===p||""===e)return e;for(var t="",r=0,n=!1,a=0;a<e.length;a++){var i=e[a];'"'===i?(n=!n,t+=i):n?t+=i:"["===i?r++:"]"===i?--r<0&&(r=0):0===r&&(t+=i)}return t.toString()}function ie(e){return e=oe(e,"[",""),oe(e,"]","")}function oe(e,t,r){return!e||e===L._Empty||ue(t,r,!0)?e:(t=t.replace(F,"\\$1"),e.replace(RegExp(t,"g"),r))}function se(e){for(var t=e.length,r=!1,n="",a=0;a<t;a++){var i=e.charAt(a);"\\"===i?(r=!r)&&"@"!==e.charAt(a+1)||(n+=i):(r=!1,n+=i)}return n}function ue(e,t,r){return r?R(e)===R(t):e===t}function le(e,t){1===arguments.length&&(t=!0);for(var r=!1,n="",a=0;a<e.length;a++){var i=e[a];if('"'===i)r=!r;else if(!r&&!t&&"/"===i&&!re(e,a))continue;n+=i}return n}function ce(e,t){if(!e||e===L._Empty)return!1;for(var r=function(e){for(var t="",r=!1,n=0,a=e.length;n<a;n++){var i=e[n];'"'===i&&(r=!r),"E"===i||r||(t+=R(i))}return t}(le(e)),n=0;n<t.length;n++){var a=r.indexOf(t[n]);if(0===a||a>0&&"_"!==r[a-1]&&"*"!==r[a-1])return!0}return!1}function me(e,t,r,n){this._partLocaleID=e,this._partDBNumberFormat=t,this.cultureName=r,this._isShowEraFirstYear=n}function ye(e){this._originalToken=e}function he(e){var t,r=ie(e);if(!r||r===L._Empty)return t;var n=r[0];return["<",">","="].indexOf(n)>-1?(t=K).Name="ConditionalFormatPart":i._StringHelper._startsWith(r,"DBNum",!0)?(t=W).Name="DBNumberFormatPart":ue(r[0],"$",!1)&&r.indexOf("-")>-1?(t=Y).Name="LocaleIDFormatPart":function(e){var t=R(e),r=t[0];if("h"!==r&&"m"!==r&&"s"!==r)return!1;for(var n=1;n<t.length;n++)if(r!==t[n])return!1;return!0}(r)?(t=J).Name="ABSTimeFormatPart":r.indexOf("$")<0&&r.length>=3&&((t=V).Name="ColorFormatPart"),t}function fe(e,t,r){var n;if(n=e?e.cultureInfo():I(r),t<4||4===t&&("ko-kr"===r||"ko-kr"===n.name())){var a=n.NumberFormat.dbNumber;if(a)return a[t]}return p}var de=function(){function e(e,t){0===arguments.length?(this.formatCached="General",this._numberFormat=new Z):this._init(e,t)}return e.prototype._init=function(t,r){t!==p&&void 0!==t||U();var n=t;this.formatCached=t;for(var a="",i="",o=!1,s=!1,u=!1,c=[],m=0;m<t.length;m++){var y=t[m];if('"'===y)s=!s,i+=y;else if(s)i+=y;else if("["===y)o&&U(),i&&(a||(a=""),a+=i),i=y.toString(),o=!0;else if("]"===y){if(o||U(),i){var h=(i+=y).toString(),f=he(i.toString());if(f)"ABSTimeFormatPart"===f.Name?(c.push(new f(e.preProcessPart(h),h)),a+=i):h===l._EraHelper.eraExcelFormatter?(this.addPart(f,l._EraHelper.eraInternalFormatter),u=!0):this.addPart(f,h);else{var d=e.partToNormalStr(h);a+=d,n=oe(t,h,d)}i=""}else U();o=!1}else i+=y}i?o?U():a+=i:a||(a=this._getDBNumberDefaultFormat()),this.localeIDFormatPart&&(r=this.localeIDFormatPart.cultureInfo().name());var _=function(e,t){var r,n=!1;return ce(e=e?e.toString():L._Empty,["general"])?r=Z:X._evaluateFormat(e)?r=X:ce(e,["E+","E-","#",".",",","%","0","/","?"])||t?(n=!0,r=q):(n=!0,r=Q),{_isDigitalOrText:n,_type:r}}(a,this.conditionalFormatPart),g=_._type,M=_._isDigitalOrText?n:a;g?this._numberFormat=new g(M,this.localeIDFormatPart,this.dbNumberFormatPart,r,c.length>0?c:p,u):U()},e.prototype._getDBNumberDefaultFormat=function(){var t=this,r="";return t.dbNumberFormatPart&&(e.proNames.some((function(e){return"dbNumberFormatPart"!==e&&t[e]}))||(r="General")),r},e.prototype.formatString=function(){for(var t="",r=0,n=e.proNames.length;r<n;r++){var a=e.proNames[r];this[a]&&(t+=this[a].toString())}return t+this._numberFormat.formatString()},e.prototype.addPart=function(t,r){for(var n=e.proNames,a=e.preProcessPart(r),i=0,o=n.length;i<o;i++){var s=n[i];if(ue(s,t.Name,!0)){if(this[s])throw Error(d().Exp_DuplicatedDescriptor);this[s]=new t(a,r)}}},e.prototype.format=function(e,t){return this._numberFormat.format(e,t)},e.prototype.parse=function(e){return this._numberFormat.parse(e)},e.checkFormatter=function(e){if(!e||e===L._Empty)throw Error(d().Exp_TokenIllegal)},e.preProcessPart=function(t){e.checkFormatter(t);var r=ie(t);return e.checkFormatter(r),r},e.partToNormalStr=function(t){var r=e.preProcessPart(t);return"$"===r[0]&&(r=r.slice(1)),'"'+r+'"'},e.proNames=["colorFormatPart","conditionalFormatPart","dbNumberFormatPart","localeIDFormatPart"],e}(),pe=function(e){function t(t,r){var n=e.call(this,t,r)||this,a=n;return a._isSingleFormatterInfo=!0,a.PropertyChanged=[],L._isNullOrEmpty(t)&&(t="General"),a.formatCached=t,a.cultureName=r,a.init(),n}return a(t,e),t.prototype.toJSON=function(){var e={formatCached:this.formatCached};return this.cultureName&&(e.customerCultureName=this.cultureName),"general"===R(this.formatCached)&&delete e.formatCached,e},t.prototype.hasFormattedColor=function(){for(var e in v)if(v.hasOwnProperty(e)){var t=this.getFormatter(v[e]);if(t&&t.colorFormatPart)return!0}return!1},t.prototype.formatString=function(e){if(0===arguments.length){for(var t=L._Empty,r=0,n=this.formatters.length;r<n;r++){t+=this.formatters[r].formatString(),r!==n-1&&(t+=";")}return t}if(!e)throw Error(d().Exp_ValueIsNull);return this.formatters=p,this.formatCached=e,this.init(),this._raisePropertyChanged("formatString"),this},t.prototype.getFormatter=function(e){return this.formatters&&this.formatters[e]},t.prototype.getPreferredEditingFormatter=function(e){var r,n=A(this.cultureName),a=$(this.cultureName),i=t.defFormatter;if(C(e,"TimeSpan"))return i(n.longTimePattern);if(C(e,"DateTime")){var o=0===e.getHours()&&0===e.getMinutes()&&0===e.getSeconds()&&0===e.getMilliseconds()?"":" h:mm:ss";return i(n.shortDatePattern+o)}if(s._Types._isNumber(e,this.cultureName)){var u=s._Types._toDouble(e);return i(u>=1e21||u<=1e-17&&u>0||u<=-1e21||u<0&&u>=-1e-17?null!==(r=a.scientificNotation)&&void 0!==r?r:"0.##############E+00":H)}return i("General")},t.prototype.getPreferredDisplayFormatter=function(e,r){var n=t.defFormatter;if(r||(r={value:p}),r.value=p,L._isNullOrEmpty(e))return new t;var a=e,u=r.value=this.parse(a);if(C(u,"DateTime")||C(u,"TimeSpan")){var l={pattern:S,formatter:["d-mmm","mmm-yy",A().shortDatePattern,"h:mm","h:mm:ss","h:mm:ss.0","h:mm:ss tt",A().shortDatePattern+" h:mm",A().shortDatePattern+" h:mm:ss",A().shortDatePattern+" h:mm:ss.0"]},c=l.pattern,m=l.formatter,y=I(this.cultureName),h=y.DateTimeFormat,f=h.preselectedFormatters;if(f.length>0&&(c=c.concat([f]),m=m.concat([f[0]])),"ja-JP"===y.name()){c=c.concat([h.eraFormatter]),m=m.concat(["ge.M.d"]);var d=y._eraFormatter.filter((function(e){return"ggge"===e.substr(0,4)}));c=c.concat([d]),m=m.concat(['ggge"年"M"月"d"日']);var _=y._eraFormatter.filter((function(e){return"gge"===e.substr(0,3)}));c=c.concat([_]),m=m.concat(['gge"年"M"月"d"日']);var g=y._eraFormatter.filter((function(e){return"ge"===e.substr(0,2)}));c=c.concat([g]),m=m.concat(['ge"年"M"月"d"日'])}for(var M=0;M<c.length;M++)for(var v=c[M],b=0;b<v.length;b++){var F=v[b],D=o._DateTimeHelper._parseLocale(e,F);if(D&&D-u==0)return new t(m[M])}}else if(s._Types._isNumber(u,this.cultureName)){var x=$(this.cultureName),T=x.currencySymbol,N=x.numberDecimalSeparator,H=x.percentSymbol,E=x.numberGroupSeparator,P=i._StringHelper._contains,O=P(a,N)?".00":"";if(a[0]===T)return n(L._format("{0}#,##0{1};[Red]({0}#,##0{1})",T,O));if(P(a,"E",!0))return n("0.00E+00");if(a[0].toString()===H||a[a.length-1].toString()===H)return n(L._format("0{0}%",O));if(P(a,E))return n(L._format("#,##0{0}",O))}return n("General")},t.prototype.format=function(e,t){if(C(e,"boolean"))return B()&&(e=e?B().boolean_true:B().boolean_false),e.toString().toUpperCase();var r,n=0,a=this._getFormatInfo(e);if(a){var i=a.colorFormatPart;t&&i&&(t.conditionalForeColor=t.value=i.foreColor),(r=s._Types._isNumber(e,this.cultureName))&&(n=s._Types._toDouble(e));var o=L._Empty;try{if(r&&a===this.getFormatter(v._negative)&&0!==this.expressionNumber)(o=a.format(a.considerNegSymbol?n:_(n)))===p&&C(e,"string")&&(o=e);else if(void 0===(o=a.value)){var u=!this._isSingleFormatterInfo&&a===this.getFormatter(v._text);o=a.format(e,r||u)}t&&(t.content=T(o)?o:[{type:"text",value:o}]),T(o)&&(o=N._formatObjectToString(o))}catch(t){C(e,"string")&&(o=e.toString())}return o}return r&&n<0?"-":C(e,"string")?e.toString():void 0===e||e===p?L._Empty:e.toString()},t.prototype.parse=function(e){return this.formatters&&this.formatters.length>0?this.formatters[0].parse(e):p},t.prototype.init=function(){var e=this.formatCached;L._isNullOrEmpty(e)&&U(),this.formatters=[];var t=function(e){for(var t=[],r=0,n=0,a=e.length,i=0;i<a;i++)"_"===e[i]?r++:(";"!==e[i]||0!==r&&r%2!=0||(t.push(e.substring(n,i)),n=i+1),r=0);return n<=a&&t.push(e.substring(n,a)),t}(e);this._isSingleFormatterInfo=1===t.length,(!t||t.length<1||t.length>4)&&U();for(var r=0;r<t.length;r++){-1!==t[r].indexOf("@")&&-1===t[r].indexOf("\\@")&&(r!==t.length-1?U():this.hasAt=!0);var n=new de(t[r],this.cultureName);this.formatters.push(n)}this.getFormatter(v._positive)||U(),this._refreshFormatPart()},t.prototype._refreshFormatPart=function(){this.expressionNumber=this.formatters.length-(this.hasAt?1:0);var e=(0===this.expressionNumber?1:this.expressionNumber)-1;v=s._Types._extend({},b[e]),this.hasAt&&0!==this.expressionNumber&&(v._text=this.formatters.length-1)},t.prototype._getFormatInfo=function(e){this._refreshFormatPart();var t=this.getFormatter(v._positive),r=t&&t.conditionalFormatPart,n=this.getFormatter(v._text);if(r&&(v._zero=2,this.hasAt||(v._text=3)),"string"==typeof e&&k(e))return n||(r?e:t);if(s._Types._isNumber(e,this.cultureName)||C(e,"boolean")){var a=this.getFormatter(v._negative),i=this.getFormatter(v._zero),o=s._Types._toDouble(e),u=r&&t.conditionalFormatPart.isMeetCondition(o),l=a&&a.conditionalFormatPart,c=l&&a.conditionalFormatPart.isMeetCondition(o),m=void 0;if(this._isSingleFormatterInfo||(r?u:o>0||0===o&&!i))m=t;else if(l?c:o<0)m=a;else if(i)m=i;else if(a){if(r&&l)return{value:o+""};m=a}return m&&(!r||l||m!==a||i||(m.considerNegSymbol=!0),r&&l&&m===a&&a.conditionalFormatPart&&a.conditionalFormatPart.isMeetCondition(1e-10)&&(m.considerNegSymbol=!0),this.expressionNumber<=1&&(m.considerNegSymbol=!0)),m}return p},t.prototype._raisePropertyChanged=function(e){if(this.PropertyChanged)for(var t=0;t<this.PropertyChanged.length;t++){var r=this.PropertyChanged[t];"function"==typeof r&&r(this,e)}},t.defFormatter=function(e){var r=t[e];return r||(r=new t(e),t[e]=r),r},t.test=function(e){var t=!0;try{var r=new y.Lexer(e);new h.Parser(r).parse()}catch(e){t=!1}return t},t}(z);t.GeneralFormatter=pe},826:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.throwError=t.BACKSLASH=t.UNDERLINE=t.ASTERISK=t.DOUBLE_QUOTE=t.SEMICOLON=void 0,t.SEMICOLON=";",t.DOUBLE_QUOTE='"',t.ASTERISK="*",t.UNDERLINE="_",t.BACKSLASH="\\";t.throwError=function(){throw Error("Invalid Number Format")}},810:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.Lexer=void 0;var n=r(826),a=function(e){return!!["0","#","?",".","%",",","/",n.BACKSLASH,n.ASTERISK,n.UNDERLINE,"@"].find((function(t){return t===e}))},i=function(e){return[n.BACKSLASH,n.ASTERISK,n.UNDERLINE].find((function(t){return t===e}))},o=function(e,t){return{type:e,value:t}},s=function(){function e(e){this._tokens=[],this._input=e,this._tokenize()}return e.prototype._tokenize=function(){for(var e=0,t=this._input;e<t.length;e++){var r=t[e];if(a(r)){if(i(r)){this._tokens.push(o("symbol",r)),e<t.length-1&&(this._tokens.push(o("char",t[e+1])),e++);continue}this._tokens.push(o("symbol",r))}else if(r!==n.SEMICOLON){if(r===n.DOUBLE_QUOTE){var s=t.slice(e+1).search(n.DOUBLE_QUOTE);if(-1!==s){s=s+e+1,this._tokens.push(o("text",t.slice(e+1,s))),e=s;continue}(0,n.throwError)()}this._tokens.push(o("char",r))}else this._tokens.push(o("semicolon",r))}this._tokens.push(o("EOF",""))},e.prototype._nextToken=function(){return this._tokens.shift()},e}();t.Lexer=s},61:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.Parser=void 0;var n=r(826),a=function(){function e(e){this._lexer=e,this._currentToken=e._nextToken()}return e.prototype._eat=function(e){this._currentToken.type===e?this._currentToken=this._lexer._nextToken():(0,n.throwError)()},e.prototype.parse=function(){for(var e=[];"EOF"!==this._currentToken.type;)e.push(this._parseFormatPart()),e.length>4&&(0,n.throwError)();return{type:"numberFormat",body:e}},e.prototype._parseFormatPart=function(){for(var e=[];"semicolon"!==this._currentToken.type&&"EOF"!==this._currentToken.type;){"symbol"===this._currentToken.type?e.push(this._parseSymbol()):e.push(this._parseCharOrString())}return"semicolon"===this._currentToken.type&&this._eat("semicolon"),{type:"formatPart",body:e}},e.prototype._parseSymbol=function(){var e,t=this._currentToken.value;return t===n.ASTERISK?(this._eat("symbol"),e={type:"asterisk",body:this._currentToken.value},this._eat("char")):t===n.BACKSLASH?(this._eat("symbol"),e={type:"char",body:this._currentToken.value},this._eat("char")):t===n.UNDERLINE?(this._eat("symbol"),e={type:"underline",body:this._currentToken.value},this._eat("char")):(e={type:"symbol",body:this._currentToken.value},this._eat("symbol")),e},e.prototype._parseCharOrString=function(){var e,t=this._currentToken.type;return"char"===t?(e={type:"char",body:this._currentToken.value},this._eat("char")):"text"===t&&(e={type:"text",body:this._currentToken.value},this._eat("text")),e},e}();t.Parser=a},736:function(e){e.exports=canvas}},r={};function n(e){var a=r[e];if(void 0!==a)return a.exports;var i=r[e]={exports:{}};return t[e].call(i.exports,i,i.exports,n),i.exports}n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}();var a={};!function(){var e=a;Object.defineProperty(e,"__esModule",{value:!0}),e.Formatter=e.Commands=e.Common=void 0;var t=n(38);e.Common=t;var r=n(814);e.Commands=r;var i=n(569);e.Formatter=i}(),(e=void 0===e?{}:e).Spread=a}()},331:e=>{"use strict";e.exports=require("pako")},87:e=>{"use strict";e.exports=require("socket.io-client")},884:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var a=Object.getOwnPropertyDescriptor(t,r);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,a)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),a=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_REQUEST_PATH=void 0,a(r(589),t),a(r(735),t),a(r(31),t),a(r(76),t),a(r(959),t),t.DEFAULT_REQUEST_PATH="/collaboration/"},31:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.LoggerManager=t.LogLevel=void 0,function(e){e[e.DEBUG=0]="DEBUG",e[e.INFO=1]="INFO",e[e.WARN=2]="WARN",e[e.ERROR=3]="ERROR"}(r||(t.LogLevel=r={}));class n{debug(...e){}info(...e){}warn(...e){}error(...e){}}class a{constructor(e){this.namespace=e}debug(...e){this.isEnabled&&i.getLogLevel()<=r.DEBUG&&this.logger.debug(`[${this.namespace}]`,...e)}info(...e){this.isEnabled&&i.getLogLevel()<=r.INFO&&this.logger.info(`[${this.namespace}]`,...e)}warn(...e){this.isEnabled&&i.getLogLevel()<=r.WARN&&this.logger.warn(`[${this.namespace}]`,...e)}error(...e){this.isEnabled&&i.getLogLevel()<=r.ERROR&&this.logger.error(`[${this.namespace}]`,...e)}get isEnabled(){return i._isEnabledNamespace(this.namespace)}get logger(){return i.getInstance()}}class i{static getInstance(){return i._instance||(i._instance=new n),i._instance}static createLogger(e){return new a(e)}static setLogger(e){i._instance=e}static setLogLevel(e){i._logLevel=e}static getLogLevel(){return i._logLevel}static enableNamespace(e){i._enabledNamespace.push(...e)}static disableNamespace(e){i._enabledNamespace=i._enabledNamespace.filter((t=>!e.includes(t)))}static _isEnabledNamespace(e){return!!i._enabledNamespace.includes("*")||i._enabledNamespace.some((t=>{if(t===e)return!0;if(t.endsWith(".*")){const r=t.slice(0,-2);return e===r||e.startsWith(r+".")}return!1}))}}t.LoggerManager=i,i._enabledNamespace=[],i._logLevel=r.INFO},735:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SOCKET_IO_MESSAGE_EVENT=t.COMPRESSION_THRESHOLD=void 0,t.COMPRESSION_THRESHOLD=128,t.SOCKET_IO_MESSAGE_EVENT="m"},589:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Middleware=void 0;t.Middleware=class{constructor(){this.middlewares=new Map,this.hooks=new Map}use(e,t){this.middlewares.has(e)||this.middlewares.set(e,[]),this.middlewares.get(e).push(t)}on(e,t){this.hooks.has(e)||this.hooks.set(e,[]),this.hooks.get(e).push(t)}async trigger(e,t,r){let n=this.middlewares.get(e);if(!n||0===n.length)return r();n=n.slice();const a=async e=>{if(e)return await r(e);const i=n.shift();if(!i)return await r();await i(t,a)};await a()}async emit(e,t){const r=this.hooks.get(e);if(r)for(const e of r)await e(t)}}},959:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Observable=void 0;t.Observable=class{constructor(){this._observers=new Map}on(e,t){return r(this._observers,e,(()=>new Set)).add(t),t}once(e,t){const r=(...n)=>{this.off(e,r),t(...n)};this.on(e,r)}off(e,t){const r=this._observers.get(e);void 0!==r&&(r.delete(t),0===r.size&&this._observers.delete(e))}emit(e,t){return Array.from((this._observers.get(e)||new Map).values()).forEach((e=>e(...t)))}destroy(){this._observers=new Map}};const r=(e,t,r)=>{let n=e.get(t);return void 0===n&&(n=r(),e.set(t,n)),n}},76:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNullOrUndefined=function(e){return null==e},t.isEqual=function e(t,r,n=new WeakMap){if(t===r)return!0;if(Number.isNaN(t)&&Number.isNaN(r))return!0;if(null===t||null===r||"object"!=typeof t||"object"!=typeof r)return!1;if(n.has(t)&&n.get(t)===r)return!0;n.set(t,r);const a=Object.prototype.toString.call(t),i=Object.prototype.toString.call(r);if(a!==i)return!1;if(t instanceof Date||r instanceof Date)return t.getTime()===r.getTime();if(t instanceof RegExp||r instanceof RegExp)return t.toString()===r.toString();if(t instanceof Map||r instanceof Map)return t.size===r.size&&Array.from(t.entries()).every((([t,a])=>r.has(t)&&e(a,r.get(t),n)));if(t instanceof Set||r instanceof Set)return Array.from(t).every(((t,a)=>e(t,Array.from(r)[a],n)));if(Array.isArray(t)&&Array.isArray(r))return t.length===r.length&&t.every(((t,a)=>e(t,r[a],n)));const o=Object.keys(t),s=Object.keys(r);if(o.length!==s.length)return!1;return o.every((a=>Object.prototype.hasOwnProperty.call(r,a)&&e(t[a],r[a],n)))},t.uuid=function(e=8){let t="";for(let a=0;a<e;a++){const e=~~(Math.random()*n);t+=r[e]}return t};const r="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",n=r.length}},t={};function r(n){var a=t[n];if(void 0!==a)return a.exports;var i=t[n]={exports:{}};return e[n].call(i.exports,i,i.exports,r),i.exports}r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}();var n={};return(()=>{"use strict";var e=n;Object.defineProperty(e,"__esModule",{value:!0}),e.LoggerManager=e.Connection=e.DisconnectReason=e.Client=void 0;const t=r(234);Object.defineProperty(e,"Client",{enumerable:!0,get:function(){return t.Client}});const a=r(42);Object.defineProperty(e,"DisconnectReason",{enumerable:!0,get:function(){return a.DisconnectReason}}),Object.defineProperty(e,"Connection",{enumerable:!0,get:function(){return a.Connection}});const i=r(884);Object.defineProperty(e,"LoggerManager",{enumerable:!0,get:function(){return i.LoggerManager}}),r(222)})(),n})()));