VaKeR CYBER ARMY
Logo of a company Server : Apache/2.4.41 (Ubuntu)
System : Linux absol.cf 5.4.0-198-generic #218-Ubuntu SMP Fri Sep 27 20:18:53 UTC 2024 x86_64
User : www-data ( 33)
PHP Version : 7.4.33
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Directory :  /var/www/html/keeview_app/html/absol/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/html/keeview_app/html/absol/absol.lib4worker.js
/*! For license information please see absol.lib4worker.js.LICENSE.txt */
(()=>{var e={268:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i=(n=r(738))&&n.__esModule?n:{default:n};function a(){this.$canvas=null,this.data={},this._loadComputedData()}a.prototype._loadComputedData=function(){var e=this;this.data.chars=i.default.chars,this.data.fonts=Object.keys(i.default.fonts).reduce((function(t,r){var n=i.default.fonts[r];return t[r]={width:e._valueDict2KeyDict(n.width),spacing:e._valueDict2KeyDict(n.spacing,2),fontBoundingBoxAscent:n.fontBoundingBoxAscent,fontBoundingBoxDescent:n.fontBoundingBoxDescent},t}),{})},a.prototype._valueDict2KeyDict=function(e,t){var r=this;return Object.keys(e).reduce((function(n,i){var a=r._splitKey(e[i],t||1),o=parseFloat(i);return a.reduce((function(e,t){return e[t]=o,e}),n),n}),{})},a.prototype._keyDic2ValueDict=function(e){return Object.keys(e).reduce((function(t,r){var n=e[r].toString();return t[n]=t[n]||"",t[n]+=r,t}),{})},a.prototype._splitKey=function(e,t){var r=e.split("");return!t||t<2?r:r.reduce((function(e,r){return e.last+=r,e.last.length>=t&&(e.arr.push(e.last),e.last=""),e}),{arr:[],last:""}).arr},a.prototype._array2keyDict=function(e,t){return e.reduce((function(e,r,n){return e[r]=t[n],e}),{})},a.prototype._makeFontSize=function(e){var t=this,r=i.default.chars,n=this.measureTextByCanvas("demo-abgH","20px "+e),a=r.map((function(e){return t.measureTextByCanvas(e).width})),o=this._array2keyDict(r,a),s=r.reduce((function(e,n,i){return r.reduce((function(e,r,o){var s=t.measureTextByCanvas(n+r).width-a[i]-a[o];return 0!==s&&(e[n+r]=s),e}),e)}),{});i.default[e]={width:t._keyDic2ValueDict(o),spacing:t._keyDic2ValueDict(s),fontBoundingBoxAscent:n.fontBoundingBoxAscent,fontBoundingBoxDescent:n.fontBoundingBoxDescent},this.data.fonts[e]={width:o,spacing:s,fontBoundingBoxAscent:n.fontBoundingBoxAscent,fontBoundingBoxDescent:n.fontBoundingBoxDescent}},a.prototype.measureWidth=function(e,t,r){var n=this.data.fonts[t].width,i=this.data.fonts[t].spacing,a=0,o=e[0],s=e[0];a+=n[s]||0;for(var u=1;u<e.length;++u)a+=i[o+(s=e[u])]||0,a+=n[s]||0,o=s;return a*r/20},a.prototype.measureTextByCanvas=function(e,t){if(!document||!document.createElement)throw new Error("Not support renderer!");var r=(this.$canvas||(this.$canvas=document.createElement("canvas"))).getContext("2d");return t&&(r.font=t),r.measureText(e)};var o=new a;t.default=o},738:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={chars:" !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~©´ÀÁÂÊÍÒÔÙÚÝàáâãèéêìíðòóôõùúýĂăĐđĩũƠơƯưɐɔɕɗəɛɡɣɲʃʒʝʰˆː˘̪̀̃͡τφχẠạẢảẤấẦầẩẫẬậắằẳặẸẹẻẽếỀềểễỆệỉịọỏỐốồổỗỘộỚớỜờởỡỢợụỦủỨứỪừửữựỳỷỹ–‘“”…♥♪【】🤣️�".split(""),fonts:{"Times New Roman":{width:{0:"̪̀̃͡️",5:" ,.",10:"0123456789#$*_bdghknopquvxyðòóôõùúýđũɗɡɣɲọỏốồổỗộụủỳỷỹ–♪",20:"…【】",6.66015625:"!()-I[]`fr´Íʃˆ˘‘",8.1640625:'"',16.66015625:"%",15.556640625:"&m",3.603515625:"'",11.279296875:"+<=>",5.556640625:"/:;\\ijltìíĩʝːỉị",8.876953125:"?acezàáâãèéêăɐɔɕəʒχạảấầẩẫậắằẳặẹẻẽếềểễệ“”",18.41796875:"@",14.443359375:"ADGHKNOQUVXYwÀÁÂÒÔÙÚÝĂĐƠẠẢẤẦẬỐỘỚỜỢỦ",13.33984375:"BCR",12.216796875:"ELTZÊẸỀỆ",11.123046875:"FPS",7.783203125:"Js",17.783203125:"M",18.876953125:"W",9.384765625:"^",9.599609375:"{}",4.00390625:"|",10.8203125:"~",15.1953125:"©",10.576171875:"ơớờởỡợ",15.517578125:"ƯỨỪ",10.83984375:"ưứừửữự",8.3984375:"ɛ",6.42578125:"ʰ",8.037109375:"τ",11.54296875:"φ",11.875:"♥",19.423828125:"🤣�"},spacing:{"-0.7421875":"11W:W;","-2.216796875":"ATP,P.VaVeVyWAY-YAYqYu","-2.578125":"AVV,V.VAVoY,Y.","-1.6015625":"AWF,F.RVTAWaWeWo","-1.8359375":"AYAwAyLTLVPAT-V-W,W.Y:Y;Yp","-1.484375":"AvFALWT,T.V:V;‘‘","-2.001953125":"LYYaYeYoYv","-1.103515625":"LyRWRYT;W-Yir.","-1.201171875":"RTViVrVuWy","-0.80078125":"RyWiWrWur,","-0.99609375":"T:","-0.361328125":"TOffrg","-1.396484375":"TaTcTeToTsTwTy","-0.703125":"TiTrTu","-0.400390625":"r-","-1.298828125":"v,v.w,w.y,y.","-0.439453125":"χφ","-4.443359375":"【̀【̃【̪【͡】̀】̃】̪】͡","-11.38671875":"🤣"},fontBoundingBoxAscent:18,fontBoundingBoxDescent:4},Arial:{width:{0:"̪̀̃͡️",10:"Jcksvxyzýɔɕỳỷỹ♪",20:"…【】",11.123046875:"0123456789#$?L_abdeghnopquàáâãèéêðòóôõùúăđũɐɗəɡɲạảấầẩẫậắằẳặẹẻẽếềểễệọỏốồổỗộụủ–",5.556640625:" !,./:;I[\\]ftÍìíĩː",7.099609375:'"',17.783203125:"%",13.33984375:"&ABEKPSVXYÀÁÂÊÝĂẠẢẤẦẬẸỀỆ",3.818359375:"'",6.66015625:"()-`r´ˆ˘“”",7.783203125:"*",11.6796875:"+<=>~",20.302734375:"@",14.443359375:"CDHNRUwÙÚĐỦ",12.216796875:"FTZ",15.556640625:"GOQÒÔỐỘ",16.66015625:"Mm",18.876953125:"W",9.384765625:"^",4.443359375:"ijlʃỉị‘",6.6796875:"{}",5.1953125:"|",14.736328125:"©",17.1484375:"ƠỚỜỢ",13.115234375:"ơớờởỡợ",17.080078125:"ƯỨỪ",13.388671875:"ưứừửữự",9.169921875:"ɛ",10.01953125:"ɣ",10.8984375:"ʒ",7.94921875:"ʝ",7.666015625:"ʰ",7.900390625:"τ",12.96875:"φ",10.498046875:"χ",11.875:"♥",19.423828125:"🤣�"},spacing:{"-1.484375":"11ATAVAYLTLVLWLYPATAVAVaYAYaYpv,v.y,y.","-0.7421875":"AWLyTiTrTuV:V;VrVuVyWAWaYi","-0.361328125":"AvAwAyRTRVRWRYTOViW-W:W;WeWoWrWuff‘‘","-2.216796875":"F,F.T,T.T:T;TaTcTeToTs","-1.103515625":"FAT-TwTyV-VeVoW,W.Y:YuYvr,r.w,w.","-2.578125":"P,P.Y,Y.","-1.8359375":"V,V.Y-YeYoYq","-0.17578125":"Wy","-1.298828125":"Y;",1.11328125:"ìĩ","-0.283203125":"τφφτ","-0.537109375":"φχχφ","-5":"【̀【̃【̪【͡】̀】̃】̪】͡","-11.38671875":"🤣"},fontBoundingBoxAscent:18,fontBoundingBoxDescent:4}}};t.default=r},470:(e,t)=>{"use strict";function r(e,t){this._this=e,this.commands={},this.assign(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r.prototype.has=function(e){return!!this.commands[e]},r.prototype.add=function(e,t){return this.commands[e]=t,this},r.prototype.remove=function(e){return delete this.commands[e],this},r.prototype.assign=function(e){for(var t in e)"function"==typeof e[t]&&this.add(t,e[t])},r.prototype.invoke=function(){if(this.commands[arguments[0]]){var e=Array.prototype.slice.call(arguments,1);return this.commands[arguments[0]].apply(this._this,e)}throw new Error("No command: "+arguments[0])};var n=r;t.default=n},249:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i=(n=r(833))&&n.__esModule?n:{default:n};function a(e){i.default.call(this),Object.defineProperty(this,"_array",{configurable:!1,enumerable:!1,value:e}),this._makeArrIndex(0,e.length)}Object.defineProperty(a.prototype,"unshift",{enumerable:!1,value:function(){var e=Array.prototype.slice.call(arguments),t=this._array.length;this._makeArrIndex(t,this._array.length+e.length),this._array.unshift.apply(this._array,e),this.emit("additem",{target:this,items:e,type:"additem",offset:0,action:"unshift"},this)}}),Object.defineProperty(a.prototype,"shift",{enumerable:!1,value:function(){var e=void 0;return this._array.length>0&&(e=this._array.shift(),this._removeIndex(this._array.length),this.emit("removeitem",{target:this,type:"additem",offset:0,action:"shift",items:[e],item:e},this)),e}}),Object.defineProperty(a.prototype,"push",{enumerable:!1,value:function(){var e=Array.prototype.slice.call(arguments),t=this._array.length;this._makeArrIndex(this._array.length,this._array.length+e.length),this._array.push.apply(this._array,e),this.emit("additem",{target:this,items:e,type:"additem",offset:t,action:"push"},this)}}),Object.defineProperty(a.prototype,"pop",{enumerable:!1,value:function(){var e=void 0;return this._array.length>0&&(e=this._array.pop(),this._removeIndex(this._array.length),this.emit("removeitem",{target:this,type:"additem",offset:this._array.length,action:"shift",items:[e],item:e},this)),e}}),Object.defineProperty(a.prototype,"replace",{enumerable:!1,value:function(e,t){for(var r=0;r<t.length&&e<this._array.length;++r,++e)this._array[e]=t[r]}}),Object.defineProperty(a.prototype,"toJSON",{enumerable:!1,value:function(){return this._array}}),Object.defineProperty(a.prototype,"valueOf",{enumerable:!1,value:function(){return this._array}}),Object.defineProperty(a.prototype,"_makeArrIndex",{enumerable:!1,value:function(e,t){var r;if(t>e)for(r=e;r<t;++r)this._defineIndex(r);else for(r=e-1;r>=t;--r)this._removeIndex(r)}}),Object.defineProperty(a.prototype,"_defineIndex",{enumerable:!1,value:function(e){e in this||Object.defineProperty(this,e,{set:function(t){var r=this._array[e];this._array[e]=t,this.emit("setitem",{type:"setitem",target:this,oldValue:r,vale:t,offset:e},this)},get:function(){return this._array[e]},configurable:!0,enumerable:!0})}}),Object.defineProperty(a.prototype,"_removeIndex",{enumerable:!1,value:function(e){delete this[e]}}),Object.defineProperty(a.prototype,"splice",{enumerable:!1,value:function(e,t){var r=[],n=Array.prototype.slice.call(arguments,2);return e=null==e?0:e<0?this._array.length+e:e,(t=null==t?this._array.length-e:t>0?t:0)>0&&(this._makeArrIndex(this._array.length,this._array.length-t),r=this._array.splice(e,t),n.length>0?r.length>0?this.emit("replaceitem",{type:"replaceitem",offset:e,oldItems:r,newItems:n,target:this,action:"splice"},this):this.emit("additem",{type:"additem",offset:e,items:n,target:this},this):r.length>0&&this.emit("removeitem",{target:this,type:"additem",offset:0,action:"splice",items:r},this)),r}}),Object.defineProperty(a.prototype,"length",{set:function(e){var t=Number(e),r=this._array.length;if(!(t%1==0&&t>=0))throw new RangeError("Invalid array length");t<r?this.splice(t):t>r&&this.push.apply(this,new Array(t-r)),this._array.length=t},get:function(){return this._array.length}}),Object.getOwnPropertyNames(Array.prototype).forEach((function(e){e in a.prototype||Object.defineProperty(a.prototype,e,{configurable:!1,enumerable:!1,writable:!1,value:Array.prototype[e]})})),Object.getOwnPropertyNames(i.default.prototype).forEach((function(e){e in a.prototype||Object.defineProperty(a.prototype,e,{configurable:!1,enumerable:!1,writable:!1,value:i.default.prototype[e]})}));var o=a;t.default=o},257:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i=(n=r(833))&&n.__esModule?n:{default:n};function a(e){for(var t in i.default.call(this),Object.defineProperty(this,"__o__",{configurable:!1,enumerable:!1,value:e}),e)this.defineProperty(t)}Object.defineProperty(a.prototype,"defineProperty",{configurable:!1,enumerable:!1,writable:!1,value:function(e,t){e in this||Object.defineProperty(this,e,{set:function(t){var r=this.__o__[e];this.__o__[e]=t,this.emit("setproperty",{type:"setproperty",target:this,oldValue:r,vale:t,name:e},this)},get:function(){return this.__o__[e]},configurable:!0,enumerable:!0})}}),Object.getOwnPropertyNames(i.default.prototype).forEach((function(e){e in a.prototype||Object.defineProperty(a.prototype,e,{configurable:!1,enumerable:!1,writable:!1,value:i.default.prototype[e]})}));var o=a;t.default=o},60:(e,t)=>{"use strict";function r(e,t){this.type=t,this.value=e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r.prototype.toString=function(){return this.value+""},r.prototype.valueOf=function(){return this.value},r.prototype.set=function(e){this.value=e},r.prototype.get=function(){return this.value};var n=r;t.default=n},607:(e,t)=>{"use strict";function r(e){this.parent=e,this.data={}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r.prototype.revoke=function(e){return delete this.data[e],this},r.prototype.isDeclared=function(e){return e in this.data},r.prototype.declare=function(e,t,r){if(e in this.data&&!r)throw new Error(e+" is already delared in this scope!");return this.data[e]=t,this},r.prototype.get=function(e){var t=this.findScope(e);if(!t)throw new Error(e+" is not declared!");return t.data[e]},r.prototype.set=function(e,t){var r=this.findScope(e);if(!r)throw new Error(e+" is not declared!");r.data[e]=t},r.prototype.findScope=function(e){for(var t=this;t&&!(e in t.data);)t=t.parent;return t};var n=r;t.default=n},125:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i=r(713),a=(n=r(628))&&n.__esModule?n:{default:n};function o(e){e=e||{},this.id=e.id||(0,i.randomIdent)(16),Object.defineProperty(this,"__cc_listener__",{enumerable:!1,configurable:!0,writable:!1,value:{}}),Object.defineProperty(this,"__cc_line_list_by_id__",{enumerable:!1,configurable:!0,writable:!1,value:{}})}o.prototype.pinOn=function(e,t){var r;return this.__cc_listener__[e]?r=this.__cc_listener__[e]:(r=[],this.__cc_listener__[e]=r),r.indexOf(t)<0?r.push(t):console.warn("Duplicate pin listener!"),this},o.prototype.pinOff=function(e,t){if(!this.__cc_listener__[e])return this;var r=this.__cc_listener__[e],n=r.indexOf(t);return n>=0&&r.splice(n),this},o.prototype.pinFire=function(e){if(!this.__cc_listener__[e])return this;var t=this.__cc_listener__[e].slice(),r=Array.prototype.slice.call(arguments,1);0===r.length&&this.pinHandlers[e]&&this.pinHandlers[e].get&&t.length>0&&r.push(this.pinGetValue(e));for(var n=0;n<t.length;++n)try{t[n].apply(this,r)}catch(e){(0,a.default)(e)}},o.prototype.pinFireAll=function(){for(var e,t=Object.keys(this.pinHandlers),r=0;r<t.length;++r)e=t[r],this.pinHandlers[e]&&this.pinHandlers[e].get&&this.pinFire(e)},o.prototype.pinReceives=function(e){var t=Array.prototype.slice.call(arguments,1);this.pinHandlers[e]&&this.pinHandlers[e].receives&&this.pinHandlers[e].receives.apply(this,t)},o.prototype.pinGetValue=function(e){var t=Array.prototype.slice.call(arguments,1);if(this.pinHandlers[e]&&this.pinHandlers[e].get)return this.pinHandlers[e].get.apply(this,t)},o.prototype.pinGetDescriptor=function(e){var t=Array.prototype.slice.call(arguments,1),r=this.pinHandlers[e]&&this.pinHandlers[e].descriptor;if(r)return"function"==typeof r?this.pinHandlers[e].get.apply(this,t):r},Object.defineProperty(o.prototype,"pinLines",{get:function(){var e=this.__cc_line_list_by_id__;return Object.keys(e).map((function(t){return e[t]}))}}),o.prototype.pinHandlers={};var s=o;t.default=s},141:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(713);function i(e,t,r,i,a,o){o=o||{},a=!!a,Object.defineProperty(this,"id",{enumerable:!0,writable:!1,value:o.id||(0,n.randomIdent)(32)}),Object.defineProperty(this,"u",{enumerable:!0,writable:!1,value:e}),Object.defineProperty(this,"v",{enumerable:!0,writable:!1,value:r}),Object.defineProperty(this,"uPinName",{enumerable:!0,writable:!1,value:t}),Object.defineProperty(this,"vPinName",{enumerable:!0,writable:!1,value:i}),Object.defineProperty(this,"twoWay",{enumerable:!0,writable:!1,value:a}),this.vToU=this.vToU.bind(this),this.uToV=this.uToV.bind(this),this.u.pinOn(this.uPinName,this.uToV),this.twoWay&&this.v.pinOn(this.vPinName,this.vToU),this.u.__cc_line_list_by_id__[this.id]=this,this.v.__cc_line_list_by_id__[this.id]=this}i.prototype.remove=function(){this.u.pinOff(this.uPinName,this.uToV),this.twoWay&&this.v.pinOff(this.vPinName,this.vToU),delete this.u.__cc_line_list_by_id__[this.id],delete this.v.__cc_line_list_by_id__[this.id]},i.prototype.uToV=function(){var e=[this.vPinName].concat(Array.prototype.slice.call(arguments));this.v.pinReceives.apply(this.v,e)},i.prototype.vToU=function(){var e=[this.uPinName].concat(Array.prototype.slice.call(arguments));this.u.pinReceives.apply(this.u,e)};var a=i;t.default=a},628:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){setTimeout((function(){throw e.stack&&(e.message+="\n"+e.stack),e}),0)}},974:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i=(n=r(21))&&n.__esModule?n:{default:n};function a(e){this.rgba=e.slice()}a.prototype.toHex6=function(){return this.rgba.slice(0,3).map((function(e){return((e=255*e>>0)<16?"0":"")+e.toString(16)})).join("")},a.prototype.toHex8=function(){return this.rgba.map((function(e){return((e=255*e>>0)<16?"0":"")+e.toString(16)})).join("")},a.prototype.toHex3=function(){return this.rgba.slice(0,3).map((function(e){return(e=255*e/17>>0).toString(16)})).join("")},a.prototype.toHex4=function(){return this.rgba.map((function(e){return(e=255*e/17>>0).toString(16)})).join("")},a.prototype.toHSLA=function(){return a.rgbaToHSLA(this.rgba)},a.prototype.toHSBA=function(){return a.rgbaToHSBA(this.rgba)},a.prototype.toHWBA=function(){return a.rgbaToHWBA(this.rgba)},a.prototype.toCMYK=function(){return a.rgbToCMYK(this.rgba)},a.prototype.getHighContrastColor=function(){var e,t,r,n=this.toHSBA();return e=n[0]>.5?n[0]-.5:n[0]+.5,t=n[1]>.5?n[1]-.5:n[1]+.5,r=n[2]>.5?n[2]-.5:n[2]+.5,a.fromHSB(e,t,r)},a.prototype.getHightContrastColor=a.prototype.getHighContrastColor,a.prototype.getLuminance=function(){var e=this.rgba.slice(0,3).map((function(e){return e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}));return.2126*e[0]+.7152*e[1]+.0722*e[2]},a.prototype.getContrastWith=function(e){var t=this.getLuminance(),r=e.getLuminance();return(Math.max(t,r)+.05)/(Math.min(t,r)+.05)},a.prototype.getContrastYIQ=function(){return new a((255*this.rgba[0]*299+255*this.rgba[1]*587+255*this.rgba[2]*114)/1e3>=128?[0,0,0,1]:[1,1,1,1])},a.prototype.clone=function(){return new a(this.rgba.slice())},a.prototype.toString=function(e){return e=(e=e||"rgba").toLocaleLowerCase(),a.templates[e](this)},a.prototype.nearestNamedColor=function(e,t){t=t||[5,3,1];var r=this.toHSBA(),n=null,i=1e3;return Object.keys(a.namedColors).concat(e?Object.keys(a.nonStandarNamedColors):[]).forEach((function(e){var o=a.parse(a.namedColors[e]||a.nonStandarNamedColors[e]).toHSBA(),s=Math.abs(r[0]-o[0])*t[0]+Math.abs(r[1]-o[1])*t[1]+Math.abs(r[2]-o[2])*t[2];s<i&&(i=s,n=e)})),n},a.templates=[["rgba","rgba","rgba({{x[0]*255>>0}}, {{x[1]*255>>0}}, {{x[2]*255>>0}}, {{x[3]}})"],["rgb","rgba","rgb({{x[0]*255>>0}}, {{x[1]*255>>0}}, {{x[2]*255>>0}})"],["hsl","toHSLA()","hsl({{x[0] * 360}}, {{x[1] * 100}}%, {{x[2] * 100}}%)"],["hsla","toHSLA()","hsla({{x[0] * 360}}, {{x[1] * 100}}%, {{x[2] * 100}}%, {{x[3]}})"],["hsb","toHSBA()","hsb({{x[0] * 360}}, {{x[1] * 100}}%, {{x[2] * 100}}%)"],["hsba","toHSBA()","hsba({{x[0] * 360}}, {{x[1] * 100}}%, {{x[2] * 100}}%, {{x[3]}})"],["hex3","toHex3()","#{{x}}"],["hex4","toHex4()","#{{x}}"],["hex6","toHex6()","#{{x}}"],["hex8","toHex8()","#{{x}}"],["hwb","toHWBA()","hwb({{x[0] * 360}}, {{x[1] * 100}}%, {{x[2] * 100}}%)"],["hwba","toHWBA()","hwba({{x[0] * 360}}, {{x[1] * 100}}%, {{x[2] * 100}}%, {{x[3]}})"],["cmyk","toCMYK()","cmyk({{x[0] * 100}}%, {{x[1] * 100}}%, {{x[2] * 100}}%)"]].reduce((function(e,t){return e[t[0]]=new Function("color",["var x = color."+t[1]+";","return "+i.default.parse(t[2]).toJSCode()+";"].join("\n")),e}),{}),a.regexes={whiteSpace:/\s*/,integer:/(\d{1,3})/,decimal:/((?:\d+(?:\.\d+)?)|(?:\.\d+))/,percent:/((?:\d+(?:\.\d+)?)|(?:\.\d+))%/,hex3:/^#([a-f0-9])([a-f0-9])([a-f0-9])$/i,hex4:/^#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])$/i,hex6:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/i,hex8:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/i},a.regexes.percent=new RegExp(a.regexes.decimal.source+"%"),a.regexes.rgb=new RegExp(["^rgb\\(",a.regexes.integer.source,",",a.regexes.integer.source,",",a.regexes.integer.source,"\\)$"].join(a.regexes.whiteSpace.source),"i"),a.regexes.rgbPercent=new RegExp(["^rgb\\(",a.regexes.percent.source,",",a.regexes.percent.source,",",a.regexes.percent.source,"\\)$"].join(a.regexes.whiteSpace.source),"i"),a.regexes.rgba=new RegExp(["^rgba\\(",a.regexes.integer.source,",",a.regexes.integer.source,",",a.regexes.integer.source,",",a.regexes.decimal.source,"\\)$"].join(a.regexes.whiteSpace.source),"i"),a.regexes.rgbaPercent=new RegExp(["^rgba\\(",a.regexes.percent.source,",",a.regexes.percent.source,",",a.regexes.percent.source,",",a.regexes.decimal.source,"\\)$"].join(a.regexes.whiteSpace.source),"i"),a.regexes.hsl=new RegExp(["^hsl\\(",a.regexes.integer.source,"[deg]*",",",a.regexes.percent.source,",",a.regexes.percent.source,"\\)$"].join(a.regexes.whiteSpace.source),"i"),a.regexes.hsla=new RegExp(["^hsla\\(",a.regexes.integer.source,"[deg]*",",",a.regexes.percent.source,",",a.regexes.percent.source,",",a.regexes.decimal.source,"\\)$"].join(a.regexes.whiteSpace.source),"i"),a.regexes.hsb=new RegExp(["^hsb\\(",a.regexes.integer.source,"[deg]*",",",a.regexes.percent.source,",",a.regexes.percent.source,"\\)$"].join(a.regexes.whiteSpace.source),"i"),a.regexes.hsba=new RegExp(["^hsba\\(",a.regexes.integer.source,"[deg]*",",",a.regexes.percent.source,",",a.regexes.percent.source,",",a.regexes.decimal.source,"\\)$"].join(a.regexes.whiteSpace.source),"i"),a.regexes.hwb=new RegExp(["^hwb\\(",a.regexes.integer.source,"[deg]*",",",a.regexes.percent.source,",",a.regexes.percent.source,"\\)$"].join(a.regexes.whiteSpace.source),"i"),a.regexes.hwba=new RegExp(["^hwba\\(",a.regexes.integer.source,"[deg]*",",",a.regexes.percent.source,",",a.regexes.percent.source,",",a.regexes.decimal.source,"\\)$"].join(a.regexes.whiteSpace.source),"i"),a.regexes.cmyk=new RegExp(["^cmyk\\(",a.regexes.percent.source,",",a.regexes.percent.source,",",a.regexes.percent.source,",",a.regexes.percent.source,"\\)$"].join(a.regexes.whiteSpace.source),"i"),a.fromInt=function(e,t){var r,n,i,o;return 32==t?(i=(255&e)/255,n=((65280&e)>>8)/255,r=((16711680&e)>>16)/255,o=(e>>24)/255):24==t?(i=(255&e)/255,n=((65280&e)>>8)/255,r=((16711680&e)>>16)/255,o=1):16==t?(i=(31&e)/31,n=((2016&e)>>5)/63,i=(e>>10)/31,o=1):8==t&&(i=(3&e)/3,n=((28&e)>>2)/7,i=(e>>5)/7,o=1),new a([r,n,i,o])},a.fromRGB=function(e,t,r){return new a([e,t,r,1])},a.fromRGBA=function(e,t,r,n){return new a([e,t,r,n])},a.fromHSL=function(e,t,r){return new a(this.hslaToRGBA([e,t,r,1]))},a.fromHSLA=function(e,t,r,n){return new a(this.hslaToRGBA([e,t,r,n]))},a.fromHSB=function(e,t,r){return new a(this.hsbaToRGBA([e,t,r,1]))},a.fromHSBA=function(e,t,r,n){return new a(this.hsbaToRGBA([e,t,r,n]))},a.fromHWB=function(e,t,r){return new a(this.hwbaToRGBA([e,t,r,1]))},a.fromHWBA=function(e,t,r,n){return new a(this.hwbaToRGBA([e,t,r,n]))},a.fromCMYK=function(e,t,r,n){return new a(this.cmykToRGB([e,t,r,n]).concat([0]))},a.parse=function(e){if(this.namedColors[e]&&(e=this.namedColors[e]),this.nonStandarNamedColors[e]&&(e=this.nonStandarNamedColors[e]),this.regexes.hex8.test(e))return this.fromRGBA.apply(this,this.regexes.hex8.exec(e).slice(1).map((function(e){return parseInt(e,16)/255})));if(this.regexes.hex6.test(e))return this.fromRGB.apply(this,this.regexes.hex6.exec(e).slice(1).map((function(e){return parseInt(e,16)/255})));if(this.regexes.hex4.test(e))return this.fromRGBA.apply(this,this.regexes.hex4.exec(e).slice(1).map((function(e){return parseInt(e+e,16)/255})));if(this.regexes.hex3.test(e))return this.fromRGB.apply(this,this.regexes.hex3.exec(e).slice(1).map((function(e){return parseInt(e+e,16)/255})));if(this.regexes.rgba.test(e))return this.fromRGBA.apply(this,this.regexes.rgba.exec(e).slice(1).map((function(e,t){return t<3?parseFloat(e)/255:parseFloat(e)})));if(this.regexes.rgb.test(e))return this.fromRGB.apply(this,this.regexes.rgb.exec(e).slice(1).map((function(e,t){return parseFloat(e)/255})));if(this.regexes.rgbPercent.test(e))return this.fromRGB.apply(this,this.regexes.rgbPercent.exec(e).slice(1).map((function(e,t){return parseFloat(e)/100})));if(this.regexes.rgbaPercent.test(e))return this.fromRGBA.apply(this,this.regexes.rgbaPercent.exec(e).slice(1).map((function(e,t){return parseFloat(e)/(t<3?100:1)})));if(this.regexes.hsl.test(e))return this.fromHSL.apply(this,this.regexes.hsl.exec(e).slice(1).map((function(e,t){return parseFloat(e)/(0==t?360:100)})));if(this.regexes.hsla.test(e))return this.fromHSLA.apply(this,this.regexes.hsla.exec(e).slice(1).map((function(e,t){return parseFloat(e)/(0==t?360:t<3?100:1)})));if(this.regexes.hsb.test(e))return this.fromHSB.apply(this,this.regexes.hsb.exec(e).slice(1).map((function(e,t){return parseFloat(e)/(0==t?360:100)})));if(this.regexes.hsba.test(e))return this.fromHSBA.apply(this,this.regexes.hsba.exec(e).slice(1).map((function(e,t){return parseFloat(e)/(0==t?360:t<3?100:1)})));if(this.regexes.hwb.test(e))return this.fromHWB.apply(this,this.regexes.hwb.exec(e).slice(1).map((function(e,t){return parseFloat(e)/(0==t?360:100)})));if(this.regexes.hwba.test(e))return this.fromHWBA.apply(this,this.regexes.hwba.exec(e).slice(1).map((function(e,t){return parseFloat(e)/(0==t?360:t<3?100:1)})));if(this.regexes.cmyk.test(e))return this.fromCMYK.apply(this,this.regexes.cmyk.exec(e).slice(1).map((function(e,t){return parseFloat(e)/100})));throw new Error("Fail to parse "+e)},a.namedColors={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32",transparent:"#00000000"},a.nonStandarNamedColors={night:"#0C090A",gunmetal:"#2C3539",midnight:"#2B1B17",charcoal:"#34282C",oil:"#3B3131",blackcat:"#413839",iridium:"#3D3C3A",blackeel:"#463E3F",blackcow:"#4C4646",graywolf:"#504A4B",vampiregray:"#565051",graydolphin:"#5C5858",carbongray:"#625D5D",ashgray:"#666362",cloudygray:"#6D6968",smokeygray:"#726E6D",granite:"#837E7C",battleshipgray:"#848482",graycloud:"#B6B6B4",graygoose:"#D1D0CE",platinum:"#E5E4E2",metallicsilver:"#BCC6CC",bluegray:"#98AFC7",raven:"#657383",jetgray:"#616D7E",mistblue:"#646D7E",marbleblue:"#566D7E",shipcove:"#737CA1",mariner:"#4863A0",bluejay:"#2B547E",biscay:"#2B3856",navyblue:"#000080",bluewhale:"#342D7E",lapisblue:"#15317E",denimdarkblue:"#151B8D",earthblue:"#0000A0",cobaltblue:"#0020C2",blueberryblue:"#0041C2",sapphireblue:"#2554C7",blueeyes:"#1569C7",blueorchid:"#1F45FC",bluelotus:"#6960EC",lightslateblue:"#736AFF",windowsblue:"#357EC7",glacialblueice:"#368BC1",silkblue:"#488AC7",blueivy:"#3090C7",bluekoi:"#659EC7",columbiablue:"#87AFC7",babyblue:"#95B9C7",oceanblue:"#2B65EC",blueribbon:"#306EFF",bluedress:"#157DEC",butterflyblue:"#38ACEC",iceberg:"#56A5EC",crystalblue:"#5CB3FF",denimblue:"#79BAEC",dayskyblue:"#82CAFF",jeansblue:"#A0CFEC",blueangel:"#B7CEEC",pastelblue:"#B4CFEC",seablue:"#C2DFFF",coralblue:"#AFDCEC",robineggblue:"#BDEDFF",palebluelily:"#CFECEC",water:"#EBF4FA",lightslate:"#CCFFFF",lightaquamarine:"#93FFE8",electricblue:"#9AFEFF",cyanoraqua:"#00FFFF",tronblue:"#7DFDFE",bluezircon:"#57FEFF",bluelagoon:"#8EEBEC",celeste:"#50EBEC",bluediamond:"#4EE2EC",tiffanyblue:"#81D8D0",cyanopaque:"#92C7C7",bluehosta:"#77BFC7",northernlightsblue:"#78C7C7",jellyfish:"#46C7C7",bluegreen:"#7BCCB5",macawbluegreen:"#43BFC7",seaturtlegreen:"#438D80",greenishblue:"#307D7E",grayishturquoise:"#5E7D7E",beetlegreen:"#4C787E",camouflagegreen:"#78866B",sagegreen:"#848b79",hazelgreen:"#617C58",venomgreen:"#728C00",ferngreen:"#667C26",darkforestgreen:"#254117",mediumforestgreen:"#347235",seaweedgreen:"#437C17",pinegreen:"#387C44",junglegreen:"#347C2C",shamrockgreen:"#347C17",greenonion:"#6AA121",clovergreen:"#3EA055",greensnake:"#6CBB3C",aliengreen:"#6CC417",greenapple:"#4CC417",kellygreen:"#4CC552",zombiegreen:"#54C571",froggreen:"#99C68E",greenpeas:"#89C35C",dollarbillgreen:"#85BB65",iguanagreen:"#9CB071",avocadogreen:"#B2C248",pistachiogreen:"#9DC209",saladgreen:"#A1C935",hummingbirdgreen:"#7FE817",nebulagreen:"#59E817",stoplightgogreen:"#57E964",algaegreen:"#64E986",jadegreen:"#5EFB6E",emeraldgreen:"#5FFB17",dragongreen:"#6AFB92",mintgreen:"#98FF98",greenthumb:"#B5EAAA",lightjade:"#C3FDB8",teagreen:"#CCFB5D",slimegreen:"#BCE954",harvestgold:"#EDE275",sunyellow:"#FFE87C",cornyellow:"#FFF380",parchment:"#FFFFC2",cream:"#FFFFCC",blonde:"#FBF6D9",champagne:"#F7E7CE",vanilla:"#F3E5AB",tanbrown:"#ECE5B6",peach:"#FFE5B4",mustard:"#FFDB58",rubberduckyyellow:"#FFD801",brightgold:"#FDD017",goldenbrown:"#EAC117",macaroniandcheese:"#F2BB66",saffron:"#FBB917",beer:"#FBB117",cantaloupe:"#FFA62F",beeyellow:"#E9AB17",brownsugar:"#E2A76F",deeppeach:"#FFCBA4",gingerbrown:"#C9BE62",schoolbusyellow:"#E8A317",fallleafbrown:"#C8B560",orangegold:"#D4A017",sand:"#C2B280",cookiebrown:"#C7A317",caramel:"#C68E17",brass:"#B5A642",camelbrown:"#C19A6B",bronze:"#CD7F32",tigerorange:"#C88141",cinnamon:"#C58917",bulletshell:"#AF9B60",copper:"#B87333",wood:"#966F33",oakbrown:"#806517",armybrown:"#827B60",sandstone:"#786D5F",mocha:"#493D26",taupe:"#483C32",coffee:"#6F4E37",brownbear:"#835C3B",reddirt:"#7F5217",sepia:"#7F462C",orangesalmon:"#C47451",rust:"#C36241",redfox:"#C35817",sedona:"#CC6600",papayaorange:"#E56717",halloweenorange:"#E66C2C",pumpkinorange:"#F87217",constructionconeorange:"#F87431",sunriseorange:"#E67451",mangoorange:"#FF8040",basketballorange:"#F88158",tangerine:"#E78A61",beanred:"#F75D59",valentinered:"#E55451",shockingorange:"#E55B3C",scarlet:"#FF2400",rubyred:"#F62217",ferrarired:"#F70D1A",fireenginered:"#F62817",lavared:"#E42217",lovered:"#E41B17",grapefruit:"#DC381F",chestnutred:"#C34A2C",cherryred:"#C24641",mahogany:"#C04000",chillipepper:"#C11B17",cranberry:"#9F000F",redwine:"#990012",burgundy:"#8C001A",chestnut:"#954535",bloodred:"#7E3517",sangria:"#7E3817",plumpie:"#7D0541",velvetmaroon:"#7E354D",plumvelvet:"#7D0552",rosyfinch:"#7F4E52",puce:"#7F5A58",dullpurple:"#7F525D",khakirose:"#C5908E",pinkbow:"#C48189",lipstickpink:"#C48793",rose:"#E8ADAA",rosegold:"#ECC5C0",desertsand:"#EDC9AF",pigpink:"#FDD7E4",cottoncandy:"#FCDFFF",pinkbubblegum:"#FFDFDD",flamingopink:"#F9A7B0",pinkrose:"#E7A1B0",pinkdaisy:"#E799A3",cadillacpink:"#E38AAE",carnationpink:"#F778A1",blushred:"#E56E94",watermelonpink:"#FC6C85",violetred:"#F6358A",pinkcupcake:"#E45E9D",pinklemonade:"#E4287C",neonpink:"#F535AA",dimorphothecamagenta:"#E3319D",brightneonpink:"#F433FF",tulippink:"#C25A7C",roguepink:"#C12869",burntpink:"#C12267",bashfulpink:"#C25283",darkcarnationpink:"#C12283",violapurple:"#7E587E",purpleiris:"#571B7E",plumpurple:"#583759",purplemonster:"#461B7E",purplehaze:"#4E387E",eggplant:"#614051",grape:"#5E5A80",purplejam:"#6A287E",purpleflower:"#A74AC7",purpleamethyst:"#6C2DC7",purplesagebush:"#7A5DC7",lovelypurple:"#7F38EC",aztechpurple:"#893BFF",jasminepurple:"#A23BEC",purpledaffodil:"#B041FF",tyrianpurple:"#C45AEC",crocuspurple:"#9172EC",purplemimosa:"#9E7BFF",heliotropepurple:"#D462FF",purpledragon:"#C38EC7",lilac:"#C8A2C8",blushpink:"#E6A9EC",mauve:"#E0B0FF",wisteriapurple:"#C6AEC7",blossompink:"#F9B7FF",periwinkle:"#E9CFEC",lavenderpinocchio:"#EBDDE2",lavenderblue:"#E3E4FA",pearl:"#FDEEF4",milkwhite:"#FEFCFF"},a.rgbToHex=function(e){return"#"+e.slice(0,3).map((function(e){var t=(255*e>>0).toString(16);return t<10&&(t="0"+t),t.toUpperCase()})).join("")},a.rgbaToHex=function(e){return"#"+e.map((function(e){var t=(255*e>>0).toString(16);return t<10&&(t="0"+t),t.toUpperCase()})).join("")},a.hsbaToText=function(e){return"hsba("+(360*e[0]>>0)+"deg, "+(100*e[1]>>0)+"%, "+(100*e[2]>>0)+"%, "+e[3].toFixed(3)+")"},a.hslaToText=function(e){return"hsla("+(360*e[0]>>0)+"deg, "+(100*e[1]>>0)+"%, "+(100*e[2]>>0)+"%, "+e[3].toFixed(3)+")"},a.rgbaToText=function(e){return"rgba("+(255*e[0]>>0)+", "+(255*e[1]>>0)+", "+(255*e[2]>>0)+", "+e[3].toFixed(3)+")"},a.hsbToText=function(e){return"hsb("+(360*e[0]>>0)+"deg, "+(100*e[1]>>0)+"%, "+(100*e[2]>>0)+"%)"},a.hslToText=function(e){return"hsl("+(360*e[0]>>0)+"deg, "+(100*e[1]>>0)+"%, "+(100*e[2]>>0)+"%)"},a.rgbToText=function(e){return"rgb("+(255*e[0]>>0)+", "+(255*e[1]>>0)+", "+(255*e[2]>>0)+")"},a.cmykToText=function(e){return"cmyk("+e.map((function(e){return 100*e+"%"})).join(", ")+")"},a.hsbaToHSLA=function(e){var t=e[0],r=e[1],n=e[2],i=(2-r)*n/2;return 0!==i&&(1===i?r=0:i<.5?r/=2-r:r=r*n/(2-2*i)),[t,r,i,e[3]]},a.hsbaToRGBA=function(e){var t=6*e[0],r=e[1],n=e[2],i=[];if(0===r)i=[n,n,n,e[3]];else{var a,o,s,u=Math.floor(t),c=n*(1-r),l=n*(1-r*(t-u)),p=n*(1-r*(1+u-t));1===u?(a=l,o=n,s=c):2===u?(a=c,o=n,s=p):3===u?(a=c,o=l,s=n):4===u?(a=p,o=c,s=n):5===u?(a=n,o=c,s=l):(a=n,o=p,s=c),i=[a,o,s,e[3]]}return i},a.hslaToHSBA=function(e){var t,r=e[0],n=e[1],i=e[2];return[r,n=2*((t=i<.5?(1+n)*i:i+n-i*n)-i)/t,t,e[3]]},a.hslaToRGBA=function(e){var t=6*e[0],r=e[1],n=e[2],i=[];if(0===r)i=[n,n,n,e[3]];else{var a,o=2*n-(a=n<.5?(1+r)*n:n+r-n*r),s=function(e,t,r){return e<0?e+=6:e>=6&&(e-=6),e<1?t+(r-t)*e:e<3?r:e<4?t+(r-t)*(4-e):t};i=[s(t+2,o,a),s(t,o,a),s(t-2,o,a),e[3]]}return i},a.rgbaToHSBA=function(e){var t,r,n=e[0],i=e[1],a=e[2],o=Math.max(n,i,a),s=o-Math.min(n,i,a);return 0===s?(t=0,r=0):(r=s/o,n===o?t=(i-a)/s:i===o?t=2+(a-n)/s:a===o&&(t=4+(n-i)/s),t<0?t+=6:t>=6&&(t-=6)),[t/6,r,o,e[3]]},a.rgbaToHSLA=function(e){var t,r,n=e[0],i=e[1],a=e[2],o=Math.max(n,i,a),s=Math.min(n,i,a),u=o+s,c=o-s;return 0===c?(t=0,r=0):(r=u<1?c/u:c/(2-u),n===o?t=(i-a)/c:i===o?t=2+(a-n)/c:a===o&&(t=4+(n-i)/c),t<0?t+=6:t>=6&&(t-=6)),[t/6,r,u/2,e[3]]},a.hwbaToHSBA=function(e){return[e[0],1-e[1]/(1-e[2]),1-e[2],e[3]]},a.hsbaToHWBA=function(e){return[e[0],(1-e[1])*e[2],1-e[2],e[3]]},a.rgbaToHWBA=function(e){return this.hsbaToHWBA(this.rgbaToHSBA(e))},a.hwbaToRGBA=function(e){return this.hsbaToRGBA(this.hwbaToHSBA(e))},a.cmykToRGB=function(e){var t=e[0],r=e[1],n=e[2],i=e[3];return[1-(t=t*(1-i)+i),1-(r=r*(1-i)+i),1-(n=n*(1-i)+i)]},a.rgbToCMYK=function(e){var t=1-e[0],r=1-e[1],n=1-e[2],i=Math.min(t,Math.min(r,n));return t=(t-i)/(1-i),r=(r-i)/(1-i),n=(n-i)/(1-i),[t=isNaN(t)?0:t,r=isNaN(r)?0:r,n=isNaN(n)?0:n,i=isNaN(i)?0:i]};var o=a;t.default=o},954:(e,t)=>{"use strict";function r(e){return btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,(function(e,t){return String.fromCharCode("0x"+t)})))}function n(e){return decodeURIComponent(atob(e).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))}Object.defineProperty(t,"__esModule",{value:!0}),t.base64EncodeUnicode=r,t.base64DecodeUnicode=n,t.UnicodeBase64Converter=void 0;var i={encode:r,decode:n};t.UnicodeBase64Converter=i},578:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={323:"text/h323","*":"application/octet-stream","3g2":"video/3gpp2","3gp":"video/3gpp","7z":"application/x-7z-compressed",aac:"audio/aac",abw:"application/x-abiword",acx:"application/internet-property-stream",ai:"application/postscript",aif:"audio/x-aiff",aifc:"audio/x-aiff",aiff:"audio/x-aiff",arc:"application/x-freearc",asf:"video/x-ms-asf",asr:"video/x-ms-asf",asx:"video/x-ms-asf",au:"audio/basic",avi:"video/x-msvideo",axs:"application/olescript",azw:"application/vnd.amazon.ebook",bas:"text/plain",bcpio:"application/x-bcpio",bin:"application/octet-stream",bmp:"image/bmp",bz:"application/x-bzip",bz2:"application/x-bzip2",c:"text/plain",cat:"application/vnd.ms-pkiseccat",cda:"application/x-cdf",cdf:"application/x-netcdf",cer:"application/x-x509-ca-cert",class:"application/octet-stream",clp:"application/x-msclip",cmx:"image/x-cmx",cod:"image/cis-cod",cpio:"application/x-cpio",crd:"application/x-mscardfile",crl:"application/pkix-crl",crt:"application/x-x509-ca-cert",csh:"application/x-csh",css:"text/css",csv:"text/csv",dcr:"application/x-director",der:"application/x-x509-ca-cert",dir:"application/x-director",dll:"application/x-msdownload",dms:"application/octet-stream",doc:"application/msword",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",dot:"application/msword",dvi:"application/x-dvi",dxr:"application/x-director",eot:"application/vnd.ms-fontobject",eps:"application/postscript",epub:"application/epub+zip",etx:"text/x-setext",evy:"application/envoy",exe:"application/octet-stream",fif:"application/fractals",flr:"x-world/x-vrml",gif:"image/gif",gtar:"application/x-gtar",gz:"application/gzip",h:"text/plain",hdf:"application/x-hdf",hlp:"application/winhlp",hqx:"application/mac-binhex40",hta:"application/hta",htc:"text/x-component",htm:"text/html",html:"text/html",htt:"text/webviewhtml",ico:"image/vnd.microsoft.icon",ics:"text/calendar",ief:"image/ief",iii:"application/x-iphone",ins:"application/x-internet-signup",isp:"application/x-internet-signup",jar:"application/java-archive",jfif:"image/pipeg",jpe:"image/jpeg",jpeg:"image/jpeg",jpg:"image/jpeg",js:"text/javascript",json:"application/json",jsonld:"application/ld+json",latex:"application/x-latex",lha:"application/octet-stream",lsf:"video/x-la-asf",lsx:"video/x-la-asf",lzh:"application/octet-stream",m13:"application/x-msmediaview",m14:"application/x-msmediaview",m3u:"audio/x-mpegurl",man:"application/x-troff-man",mdb:"application/x-msaccess",me:"application/x-troff-me",mht:"message/rfc822",mhtml:"message/rfc822",mid:"audio/midi",midi:"audio/midi",mjs:"text/javascript",mny:"application/x-msmoney",mov:"video/quicktime",movie:"video/x-sgi-movie",mp2:"video/mpeg",mp3:"audio/mpeg",mp4:"video/mp4",mpa:"video/mpeg",mpe:"video/mpeg",mpeg:"video/mpeg",mpg:"video/mpeg",mpkg:"application/vnd.apple.installer+xml",mpp:"application/vnd.ms-project",mpv2:"video/mpeg",ms:"application/x-troff-ms",msg:"application/vnd.ms-outlook",mvb:"application/x-msmediaview",nc:"application/x-netcdf",nws:"message/rfc822",oda:"application/oda",odp:"application/vnd.oasis.opendocument.presentation",ods:"application/vnd.oasis.opendocument.spreadsheet",odt:"application/vnd.oasis.opendocument.text",oga:"audio/ogg",ogv:"video/ogg",ogx:"application/ogg",opus:"audio/opus",otf:"font/otf",p10:"application/pkcs10",p12:"application/x-pkcs12",p7b:"application/x-pkcs7-certificates",p7c:"application/x-pkcs7-mime",p7m:"application/x-pkcs7-mime",p7r:"application/x-pkcs7-certreqresp",p7s:"application/x-pkcs7-signature",pbm:"image/x-portable-bitmap",pdf:"application/pdf",pfx:"application/x-pkcs12",pgm:"image/x-portable-graymap",php:"application/x-httpd-php",pko:"application/ynd.ms-pkipko",pma:"application/x-perfmon",pmc:"application/x-perfmon",pml:"application/x-perfmon",pmr:"application/x-perfmon",pmw:"application/x-perfmon",png:"image/png",pnm:"image/x-portable-anymap",pot:"application/vnd.ms-powerpoint",ppm:"image/x-portable-pixmap",pps:"application/vnd.ms-powerpoint",ppt:"application/vnd.ms-powerpoint",pptx:"application/vnd.openxmlformats-officedocument.presentationml.presentation",prf:"application/pics-rules",ps:"application/postscript",pub:"application/x-mspublisher",qt:"video/quicktime",ra:"audio/x-pn-realaudio",ram:"audio/x-pn-realaudio",rar:"application/vnd.rar",ras:"image/x-cmu-raster",rgb:"image/x-rgb",rmi:"audio/mid",roff:"application/x-troff",rtf:"application/rtf",rtx:"text/richtext",scd:"application/x-msschedule",sct:"text/scriptlet",setpay:"application/set-payment-initiation",setreg:"application/set-registration-initiation",sh:"application/x-sh",shar:"application/x-shar",sit:"application/x-stuffit",snd:"audio/basic",spc:"application/x-pkcs7-certificates",spl:"application/futuresplash",src:"application/x-wais-source",sst:"application/vnd.ms-pkicertstore",stl:"application/vnd.ms-pkistl",stm:"text/html",sv4cpio:"application/x-sv4cpio",sv4crc:"application/x-sv4crc",svg:"image/svg+xml",swf:"application/x-shockwave-flash",t:"application/x-troff",tar:"application/x-tar",tcl:"application/x-tcl",tex:"application/x-tex",texi:"application/x-texinfo",texinfo:"application/x-texinfo",tgz:"application/x-compressed",tif:"image/tiff",tiff:"image/tiff",tr:"application/x-troff",trm:"application/x-msterminal",ts:"video/mp2t",tsv:"text/tab-separated-values",ttf:"font/ttf",txt:"text/plain",uls:"text/iuls",ustar:"application/x-ustar",vcf:"text/x-vcard",vrml:"x-world/x-vrml",vsd:"application/vnd.visio",wav:"audio/wav",wcm:"application/vnd.ms-works",wdb:"application/vnd.ms-works",weba:"audio/webm",webm:"video/webm",webp:"image/webp",wks:"application/vnd.ms-works",wmf:"application/x-msmetafile",woff:"font/woff",woff2:"font/woff2",wps:"application/vnd.ms-works",wri:"application/x-mswrite",wrl:"x-world/x-vrml",wrz:"x-world/x-vrml",xaf:"x-world/x-vrml",xbm:"image/x-xbitmap",xhtml:"application/xhtml+xml",xla:"application/vnd.ms-excel",xlc:"application/vnd.ms-excel",xlm:"application/vnd.ms-excel",xls:"application/vnd.ms-excel",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xlt:"application/vnd.ms-excel",xlw:"application/vnd.ms-excel",xml:"application/xml",xof:"x-world/x-vrml",xpm:"image/x-xpixmap",xul:"application/vnd.mozilla.xul+xml",xwd:"image/x-xwindowdump",z:"application/x-compress",zip:"application/zip"}},134:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.blobToFile=function(e,t){return new File([e],t)},t.dataURItoBlob=function(e){for(var t=atob(e.split(",")[1]),r=e.split(",")[0].split(":")[1].split(";")[0],n=new ArrayBuffer(t.length),i=new Uint8Array(n),a=0;a<t.length;a++)i[a]=t.charCodeAt(a);return new Blob([n],{type:r})},t.blobToArrayBuffer=function(e){var t=new FileReader;return new Promise((function(r){t.onload=function(e){var t=e.target.result;r(t)},t.readAsArrayBuffer(e)}))},t.stringToBlob=function(e,t){var r=2===(t=t||"text/plain").split("/").length?t:i.default[t]||"text/plain";return new Blob([e],{type:r})};var n,i=(n=r(578))&&n.__esModule?n:{default:n}},568:(e,t)=>{"use strict";function r(e,t){return e<t?-1:e>t?1:0}function n(e,t,n){n||(n=r);for(var i,a=e[t],o=e.length,s=t<<1|1;s<o&&(i=s+1,s+1<o&&n(e[s],e[i])>0&&(s=i),n(e[s],a)<0);)e[t]=e[s],e[s]=a,s=(t=s)<<1|1}function i(e,t,n){n||(n=r);for(var i,a=e[t];t>0&&n(e[i=t-1>>1],a)>0;)e[t]=e[i],e[i]=a,t=i}function a(e,t){t||(t=r);for(var n=e.length,a=0;a<n;++a)i(e,a,t)}function o(e,t){t||(t=r);var i=e[0],a=e.pop();return e.length>0&&(e[0]=a,n(e,0,t)),i}function s(e,t,n){n||(n=r),e.push(t),i(e,e.length-1,n)}function u(e){this.cmp=e||r,this.arr=[]}Object.defineProperty(t,"__esModule",{value:!0}),t.defaultCmp=r,t.heapDown=n,t.heapUp=i,t.heapify=a,t.heapPop=o,t.heapPush=s,t.default=void 0,u.fromArray=function(e,t){var r=new u(t);return a(e),r.arr=e,r},u.prototype.push=function(e){return s(this.arr,e,this.cmp),this},u.prototype.pop=function(){return o(this.arr,this.cmp)},u.prototype.peek=function(){return this.arr[0]},u.prototype.contains=function(e){return-1!==this.arr.indexOf(e)},u.prototype.clear=function(){return this.arr.splice(0,this.arr.length),this},u.prototype.empty=function(){return 0===this.arr.length},u.prototype.size=function(){return this.arr.length},u.prototype.clone=function(){var e;return(e=new u(this.cmp)).arr=this.arr.slice(0),e},u.prototype.toArray=function(){return this.arr.slice(0)},u.prototype.toSortedArray=function(){for(var e=[],t=this.clone();!t.empty();)e.push(t.pop());return e},u.prototype.insert=u.prototype.push,u.prototype.top=u.prototype.peek,u.prototype.front=u.prototype.peek,u.prototype.has=u.prototype.contains,u.prototype.copy=u.prototype.clone;var c=u;t.default=c},833:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isMouseRight=c,t.isMouseLeft=l,t.hitElement=p,t.copyEvent=f,t.copyTouch=h,t.findChangedTouchByIdent=function(e,t){if(e.changedTouches)for(var r=0;r<e.changedTouches.length;++r)if(e.changedTouches[r].identifier===t)return e.changedTouches[r];return null},t.findTouchByIdent=function(e,t){if(e.touches)for(var r=0;r<e.touches.length;++r)if(e.touches[r].identifier===t)return e.touches[r];return null},t.default=t.touchProperties=t.eventProperties=void 0;var n,i=(n=r(628))&&n.__esModule?n:{default:n};function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(){this._azar_extendEvents||(Object.defineProperty(this,"_azar_extendEvents",{enumerable:!1,value:this._azar_extendEvents||{supported:{},prioritize:{},nonprioritize:{}}}),Object.defineProperty(this,"__azar_force",{value:!("object"===("undefined"==typeof Node?"undefined":a(Node))?this instanceof Node:this&&"object"===a(this)&&"number"==typeof this.nodeType&&"string"==typeof this.nodeName),enumerable:!1}))}o.prototype.defineEvent=function(e){if(e instanceof Array)for(var t=0;t<e.length;++t)this._azar_extendEvents.supported[e[t]]=!0;else this._azar_extendEvents.supported[e]=!0;return this},o.prototype.isSupportedEvent=function(e){return this.__azar_force||!!this._azar_extendEvents.supported[e]},o.prototype.emit=function(e,t){this.fire.apply(this,arguments)},o.prototype.fire=function(e,t){var r,n,a,o,s=Array.prototype.slice.call(arguments,1);if(this.isSupportedEvent(e)){if(this._azar_extendEvents.prioritize[e])for(r=this._azar_extendEvents.prioritize[e].slice(),n=0;n<r.length;++n)try{a=Date.now(),r[n].wrappedCallback.apply(this,s),(o=Date.now())-a>200&&console.log("slow function call ("+o-a+")",r[n])}catch(e){(0,i.default)(e)}if(this._azar_extendEvents.nonprioritize[e])for(r=this._azar_extendEvents.nonprioritize[e].slice(),n=0;n<r.length;++n)try{a=Date.now(),r[n].wrappedCallback.apply(this,s),(o=Date.now())-a>200&&console.log("slow function call ("+o-a+")",r[n])}catch(e){(0,i.default)(e)}}else{if(!this.dispatchEvent)throw new Error("Not support event "+e);var u=new Event(e);t&&Object.assign(u,t),this.dispatchEvent(u)}return this},o.prototype.eventEmittorOnWithTime=function(e,t,r,n){if("object"==a(t)){for(var i in t)this.eventEmittorOnWithTime(e,i,t[i]);return this}if("object"==a(r))return this.eventEmittorOnWithTime(e,t,r.callback,r.cap);for(var o=this._azar_extendEvents[n?"prioritize":"nonprioritize"][t]||[],s=-1,u=0;u<o.length;++u)if(o[u].wrappedCallback==r){s=u;break}if(s<0){var c={isOnce:e,eventName:t,callback:r,cap:!!n};c.wrappedCallback=e?function(){this.off(c.eventName,c.wrappedCallback,c.cap),c.callback.apply(this,arguments)}:c.callback,this.isSupportedEvent(t)||(this.addEventListener?this.addEventListener(t,c.wrappedCallback,!!n):this.attachEvent("on"+t,r,!!n)),o.push(c),this._azar_extendEvents[n?"prioritize":"nonprioritize"][t]=o}else console.warn("dupplicate event");return this},o.prototype.on=function(e,t,r){return this.eventEmittorOnWithTime(!1,e,t,r),this},o.prototype.once=function(e,t,r){return this.eventEmittorOnWithTime(!0,e,t,r),this},o.prototype.off=function(e,t,r){if("object"==a(e)){for(var n in e)this.off(n,e[n]);return this}if("object"==a(t))return this.off(e,t.callback,t.cap);for(var i=this._azar_extendEvents[r?"prioritize":"nonprioritize"][e]||[],o=[],s=0;s<i.length;++s){var u=i[s];u.wrappedCallback==t?this.isSupportedEvent(e)||(this.removeEventListener?this.removeEventListener(u.eventName,u.wrappedCallback,!!u.cap):this.detachEvent("on"+u.eventName,u.wrappedCallback,!!u.cap)):o.push(u)}return this._azar_extendEvents[r?"prioritize":"nonprioritize"][e]=o,this};var s=["altKey","bubbles","button","buttons","cancelBubble","cancelable","clientX","clientY","composed","ctrlKey","currentTarget","defaultPrevented","deltaMode","deltaX","deltaY","deltaZ","detail","eventPhase","explicitOriginalTarget","isTrusted","layerX","layerY","metaKey","movementX","movementY","mozInputSource","mozPressure","offsetX","offsetY","originalTarget","pageX","pageY","rangeOffset","rangeParent","region","relatedTarget","returnValue","screenX","screenY","shiftKey","srcElement","target","timeStamp","type","deltaMode","deltaX","deltaY","deltaZ","preventDefault"];t.eventProperties=s;var u=["clientX","clientY","force","identifier","pageX","pageY","rotationAngle","screenX","screenY","target"];function c(e){var t=!1;return"which"in e?t=3==e.which:"button"in e&&(t=2==e.button),t}function l(e){var t=!1;return"which"in e?t=1==e.which:"button"in e&&(t=1==e.button),t}function p(e,t){for(var r=t.target;r;){if(r===e)return!0;if(r.sponsorElement&&r.sponsorElement!==r.parentElement&&p(e,{target:r.sponsorElement}))return!0;r=r.parentElement}return!1}function f(e,t){for(var r,n,i={},a=0;a<s.length;++a)void 0!==(n=e[r=s[a]])&&(i[r]="function"==typeof n?e[r].bind(e):e[r]);return Object.assign(i,e),t&&Object.assign(i,t),e.changedTouches&&(i.changedTouches=Array.prototype.map.call(e.changedTouches,(function(e){return h(e)}))),e.touches&&(i.touches=Array.prototype.map.call(e.touches,(function(e){return h(e)}))),i}function h(e,t){for(var r,n,i={},a=0;a<u.length;++a)void 0!==(n=e[r=u[a]])&&(i[r]="function"==typeof n?e[r].bind(e):e[r]);return Object.assign(i,e),t&&Object.assign(i,t),i}t.touchProperties=u,o.isMouseRight=c,o.isMouseLeft=l,o.hitElement=p,o.copyEvent=f,o.eventProperties=s;var d=o;t.default=d},608:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={overrideMethod:function(e,t,r){if(void 0===e[t])e[t]=r;else{var n=e[t];e[t]=function(e,t){return function(){var r=this.super;this.super=e;var n=t.apply(this,arguments);return this.super=r,n}}(n,r)}},extends:function(e,t){for(var n in t)"constructor"!==n&&"__proto__"!==n&&("function"==typeof t[n]?r.overrideMethod(e,n,t[n]):void 0!==t[n]&&null!==t[n]&&(e[n]=t[n]))},inherit:function(e,t){Object.keys(t).forEach((function(r){if("constructor"!==r&&"function"==typeof t[r]){var n=t[r],i=e[r];e[r]=i?function(){var e=this.super;this.super=n;var t=i.apply(this,arguments);return this.super=e,t}:n}}))},drillProperty:function(e,t,n,i){if("string"==typeof n)i=i||n,Object.defineProperty(e,n,{set:function(e){t[i]=e},get:function(){return t[i]}});else if(n instanceof Array)for(var a=0;a<n.length;++a)r.drillProperty(e,t,n[a],n[a]);else for(var o in n)r.drillProperty(e,t,o,n[o])},bindFunctions:function(e,t){var r={};for(var n in t)r[n]=t[n].bind(e);return r},inheritCreator:function(e,t){var r;if(t.property&&e.property)for(r in e.property)t.property[r]||(t.property[r]=e.property[r]);for(r in e.prototype)t.prototype[r]?t.prototype[r]=function(e,t){return function(){var r=this.super;this.super=e;var n=t.apply(this,arguments);return this.super=r,n}}(e.prototype[r],t.prototype[r]):t.prototype[r]=e.prototype[r]},mixClass:function(e){for(var t={},r=1;r<arguments.length;++r)Object.assign(t,Object.getOwnPropertyDescriptors(arguments[r].prototype));delete t.constructor,Object.defineProperties(e.prototype,t)}},n=r;t.default=n},21:(e,t)=>{"use strict";function r(e){this.parts=e.parts}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r.prototype.toJSCode=function(){return this.parts.map((function(e){return e.type==r.TYPE_EXPRESSION?"("+e.data+")":JSON.stringify(e.data)})).join("+")},r.__partRegex=/(\{\{(([^\}]|(\}[^\}]))*)\}\})|(([^\{]|(\{[^\{]))+)/g,r.__matchExpression=function(e){return"{"==e[0]&&"{"==e[1]&&"}"==e[e.length-1]&&"}"==e[e.length-2]&&[e,e.substr(2,e.length-4).trim()]},r.TYPE_STRING=0,r.TYPE_EXPRESSION=1,r.parse=function(e){var t=(e+="").match(this.__partRegex);return new r(t?{parts:t.map(function(e){var t=this.__matchExpression(e);return t?{type:this.TYPE_EXPRESSION,data:t[1]}:{type:this.TYPE_STRING,data:e}}.bind(this))}:{parts:[]})};var n=r;t.default=n},483:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,a=(i=n(316))&&i.__esModule?i:{default:i},o=n(909);function s(e,t,r,n,i){this.x=e,this.y=t,this.r=r,this.start=n,this.end=i}s.prototype.isPointInBound=function(e){return!((0,o.distance)(this.x,this.y,e.x,e.y)>r)&&(0,o.radianInRange)(Math.atan2(e.y-this.y,e.x-this.x),start,end)},s.prototype.isRectInBound=function(e){return this.isPointInBound(e.A())&&this.isPointInBound(e.B())&&this.isPointInBound(e.C())&&this.isPointInBound(e.D())},s.prototype.isRectOutBound=function(e){return!(this.isPointInBound(e.A())||this.isPointInBound(e.B())||this.isPointInBound(e.C())||this.isPointInBound(e.D()))},s.prototype.isRectCollapse=function(e){return this.isPointInBound(e.A())||this.isPointInBound(e.B())||this.isPointInBound(e.C())||this.isPointInBound(e.D())},s.prototype.centerPoint=function(){var e=(this.start+this.end)/2,t=this.x+Math.cos(e)*this.r*2/3,r=this.y+Math.sin(e)*this.r*2/3;return new a.default(t,r)},s.prototype.centerRoundPoint=function(){var e=(this.start+this.end)/2,t=this.x+Math.cos(e)*this.r,r=this.y+Math.sin(e)*this.r;return new a.default(t,r)},s.make=function(e,t,r,n,i){return new s(e,t,r,n,i)};var u=s;t.default=u},603:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i=(n=r(316))&&n.__esModule?n:{default:n};function o(e){this.data=e||Array(6).fill(0)}o.identity=function(){return new o([1,0,0,0,1,0,0,0,1])},o.prototype.invert=function(){var e=this.data,t=Array(9),r=e[0],n=e[1],i=e[2],a=e[3],s=e[4],u=e[5],c=e[6],l=e[7],p=e[8],f=p*s-u*l,h=-p*a+u*c,d=l*a-s*c,y=r*f+n*h+i*d;return y?(y=1/y,t[0]=f*y,t[1]=(-p*n+i*l)*y,t[2]=(u*n-i*s)*y,t[3]=h*y,t[4]=(p*r-i*c)*y,t[5]=(-u*r+i*a)*y,t[6]=d*y,t[7]=(-l*r+n*c)*y,t[8]=(s*r-n*a)*y,new o(t)):null},o.prototype.translate=function(e){var t=Array(9),r=this.data,n=r[0],i=r[1],a=r[2],s=r[3],u=r[4],c=r[5],l=r[6],p=r[7],f=r[8],h=e.x,d=e.y;return t[0]=n,t[1]=i,t[2]=a,t[3]=s,t[4]=u,t[5]=c,t[6]=h*n+d*s+l,t[7]=h*i+d*u+p,t[8]=h*a+d*c+f,new o(t)},o.prototype.multiply=function(e){var t=this.data,r=e.data,n=t[0],i=t[1],a=t[2],s=t[3],u=t[4],c=t[5],l=t[6],p=t[7],f=t[8],h=r[0],d=r[1],y=r[2],m=r[3],g=r[4],v=r[5],b=r[6],w=r[7],x=r[8],_=Array(9);return _[0]=h*n+d*s+y*l,_[1]=h*i+d*u+y*p,_[2]=h*a+d*c+y*f,_[3]=m*n+g*s+v*l,_[4]=m*i+g*u+v*p,_[5]=m*a+g*c+v*f,_[6]=b*n+w*s+x*l,_[7]=b*i+w*u+x*p,_[8]=b*a+w*c+x*f,new o(_)},o.prototype.rotate=function(e){var t=this.data,r=t[0],n=t[1],i=t[2],a=t[3],s=t[4],u=t[5],c=t[6],l=t[7],p=t[8],f=Math.sin(e),h=Math.cos(e),d=Array(9);return d[0]=h*r+f*a,d[1]=h*n+f*s,d[2]=h*i+f*u,d[3]=h*a-f*r,d[4]=h*s-f*n,d[5]=h*u-f*i,d[6]=c,d[7]=l,d[8]=p,new o(d)},o.prototype.scale=function(e){var t=e.x,r=e.y,n=Array(9);return n[0]=t*a[0],n[1]=t*a[1],n[2]=t*a[2],n[3]=r*a[3],n[4]=r*a[4],n[5]=r*a[5],n[6]=a[6],n[7]=a[7],n[8]=a[8],new o(n)},o.prototype.transpose=function(){var e=this.data,t=Array(9);return t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8],new o(t)},o.prototype.apply2DTransform=function(e){var t=this.data,r=e.x,n=e.y,a=r*t[0]+n*t[3]+t[6],o=r*t[1]+n*t[4]+t[7];return new i.default(a,o)};var s=o;t.default=s},667:(e,t)=>{"use strict";function r(e,t){1==arguments.length?t=0:0==arguments.length&&(t=0,e=0),this.start=e,this.length=t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r.prototype.contains=function(e){return e>=this.start&&e<=this.start+this.length},r.prototype.merge=function(e){var t=Math.min(this.start,e.start);return new r(t,Math.max(this.start+this.length,e.start+e.length)-t)},r.prototype.centerValue=function(){return this.start+this.length/2},r.prototype.isCollapse=function(e){return Math.max(this.start,e.start)<=Math.min(this.start+this.length,e.start+e.length)},r.prototype.collapsedNumRange=function(e){var t=Math.max(this.start,e.start),n=Math.min(this.start+this.length,e.start+e.length);return t<=n?new r(t,n-t):null},r.prototype.clone=function(){return new r(this.start,this.length)};var n=r;t.default=n},986:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i=(n=r(316))&&n.__esModule?n:{default:n};function a(e,t,r,n){this.width=r,this.height=n,this.x=e,this.y=t}a.prototype.A=function(){return new i.default(this.x,this.y)},a.prototype.B=function(){return new i.default(this.x+this.width,this.y)},a.prototype.C=function(){return new i.default(this.x+this.width,this.y+this.height)},a.prototype.D=function(){return new i.default(this.x,this.y+this.height)},a.prototype.square=function(){return this.width*this.height},a.prototype.nearestPoint=function(e,t){t&&(e=i.default.make(e,t));var r=this.A(),n=r.dist(e),a=this.B().dist(e);return a<n&&(n=a,r=this.B()),(a=this.C().dist(e))<n&&(n=a,r=this.C()),(a=this.D().dist(e))<n&&(n=a,r=this.D()),r},a.prototype.centerPoint=function(){return new i.default(this.x+this.width/2,this.y+this.height/2)},a.prototype.isCollapse=function(e,t){return t||(t=0),!(this.x>=e.x+e.width+t||this.y>=e.y+e.height+t||e.x>=this.x+this.width+t||e.y>=this.y+this.height+t)},a.prototype.collapsedSquare=function(e){var t=this.collapsedRect(e);return t?t.square():0},a.prototype.collapsedRect=function(e){var t,r,n,i,o;return r=Math.max(this.x,e.x),n=Math.max(this.y,e.y),t=Math.min(this.x+this.width,e.x+e.width),o=Math.min(this.y+this.height,e.y+e.height)-n,(i=t-r)>=0&&o>=0?new a(r,n,i,o):null},a.prototype.contains=function(e){return this.x<=e.x&&this.y<=e.y&&this.x+this.width>=e.x+e.width&&this.y+this.height>=e.y+e.height},a.prototype.containsPoint=function(e){return this.x<=e.x&&this.y<=e.y&&this.x+this.width>=e.x&&this.y+this.height>=e.y},a.prototype.merge=function(e){var t=Math.min(this.x,e.x),r=Math.min(this.y,e.y);return new a(t,r,Math.max(this.x+this.width,e.x+e.width)-t,Math.max(this.y+this.height,e.y+e.height)-r)},a.prototype.clone=function(){return new a(this.x,this.y,this.width,this.height)},a.prototype.equals=function(e){return this.x===e.x&&this.y===e.y&&this.height===e.height&&this.width===e.width},a.make=function(e,t,r,n){return new a(e,t,r,n)},a.makeCenter=function(e,t,r,n){return new a(e-r/2,t-n/2,r,n)},a.fromClientRect=function(e){return new a(e.left,e.top,e.width,e.height)},a.boundingPoints=function(e){for(var t,r=1/0,n=1/0,i=-1/0,o=-1/0,s=0;s<e.length;++s)t=e[s],r=Math.min(r,t.x),i=Math.max(i,t.x),n=Math.min(n,t.y),o=Math.max(o,t.y);return new a(r,n,i-r,o-n)};var o=a;t.default=o},316:(e,t)=>{"use strict";function r(e,t){this.x=e,this.y=t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r.prototype.copy=function(){return new r(this.x,this.y)},r.prototype.toString=function(){return"("+this.x+", "+this.y+")"},r.prototype.abs=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.normalized=function(){var e=this.abs();return 0==e&&(e=1),this.div(e)},r.prototype.mult=function(e){return new r(this.x*e,this.y*e)},r.prototype.div=function(e){return new r(this.x/e,this.y/e)},r.prototype.dist=function(e){var t=e.x-this.x,r=e.y-this.y;return Math.sqrt(t*t+r*r)},r.prototype.sub=function(e){return new r(this.x-e.x,this.y-e.y)},r.prototype.add=function(e){return new r(this.x+e.x,this.y+e.y)},r.prototype.inv=function(){return new r(-this.x,-this.y)},r.prototype.linear=function(e,t){return new r(this.x*(1-t)+e.x*t,this.y*(1-t)+e.y*t)},r.prototype.dot=function(e){return this.x*e.x+this.y*e.y},r.prototype.cross=function(e){return this.x*e.y-this.y*e.x},r.prototype.direction=function(){return Math.atan2(this.y,this.x)},r.prototype.translate=function(e,t){return this.add(new r(e,t))},r.prototype.rotate=function(e){var t=Math.sin(e),n=Math.cos(e);return new r(this.x*n-this.y*t,this.x*t+this.y*n)},r.prototype.rotate90=function(){return new r(-this.y,this.x)},r.prototype.equals=function(e){return e&&this.x===e.x&&this.y===e.y},r.fromDirection=function(e){return new r(Math.cos(e),Math.sin(e))},r.make=function(e,t){return e instanceof Array?new r(e[0],e[1]):e instanceof r?e.copy():new r(e,t)},r.ZERO=new r(0,0),r.OX=new r(1,0),r.OY=new r(0,1);var n=r;t.default=n},909:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.map=function(e,t,r,n,i){return(e-t)/(r-t)*(i-n)+n},t.sumArr=function(e){for(var t=0,r=0;r<e.length;++r)t+=e[r];return t},t.radianInRange=function e(t,r,n){return r>n?e(t,n,r):(t<r&&(t+=2*Math.PI*Math.ceil((r-t)/2/Math.PI)),t>n&&(t-=2*Math.PI*Math.ceil((t-n)/2/Math.PI)),t>=r&&t<=n)},t.distance=function(e,t,r,n){var i=e-r,a=t-n;return Math.sqrt(i*i+a*a)},t.numberToString=function(e,t,r,n,i){(null==t||"number"!=typeof t||isNaN(t)||t<-1)&&(t=-1),(null==r||"."!=r&&","!=r)&&(r="."),(null==n||t>=0&&n==r)&&(n=void 0),","!=n&&"."!=n&&(n=void 0),(null==i||"number"!=typeof i||isNaN(i)||i<0)&&(i=0);for(var a=e.toString().match(/[+-]?([0-9]*)(\.([0-9]*))?(e([+-]?[0-9]+))?/),o=a[1]||"",s=a[3]||"",u=parseInt(a[5]||"0"),c=o.split("").map((function(e){return parseInt(e)})),l=s.split("").map((function(e){return parseInt(e)}));u<0;)c.length>0?l.unshift(c.pop()):l.unshift(0),u++;for(;u>0;)l.length>0?c.push(l.unshift()):c.push(0),u++;var p,f,h=0;if(t>l.length)for(;l.length<t;)l.push(0);else if(t<l.length&&t>=0)for(h=l[p=t]>=5?1:0,l.splice(t),--p;h>0;)p>=0?(f=l[p]+h,l[p]=f%10,h=Math.floor(f/10)):(c.length+p<0&&c.unshift(0),f=c[c.length+p]+h,c[c.length+p]=f%10,h=Math.floor(f/10)),--p;for(;c.length<i;)c.unshift(0);var d=e<0?"-":"",y=(c.length+2)%3;if(n)for(p=0;p<c.length;++p)d+=c[p],p%3==y&&p+1<c.length&&(d+=n);else d+=c.join("");return d+(0==l.length?"":r+l.join(""))},t.isNumber=function(e,t){if("number"==typeof e)return!0;if("string"!=typeof e)return!1;var r="."===(t=t||".")?",":".";return!!(e=(e=e.split(r).join("")).replace(t,".")).match(/^[+-]?\d+(\.\d+)?$/)},t.numberAutoFixed=function(e,t){t=t||10,t=Math.round(t);var r=parseFloat("1e+"+t);return Math.round(e*r)/r},t.integerZeroPadding=function(e,t){for(var r=e+"";r.length<t;)r="0"+r;return r},t.harmonicMean=function(e,t){return 2/(1/e+1/t)}},917:(e,t)=>{"use strict";function r(e,t){return Math.floor(Math.random()*(t-e+1))+e}Object.defineProperty(t,"__esModule",{value:!0}),t.randomArbitrary=function(e,t){return Math.random()*(t-e)+e},t.randomInt=r,t.randomPick=function(e){return e[r(0,e.length-1)]}},281:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(r(833)),i=r(713),a=o(r(628));function o(e){return e&&e.__esModule?e:{default:e}}var s="WORKER",u="IFRAME",c="IFRAME_MASTER",l="WORKER_MASTER";function p(e){var t=this;n.default.call(this),this.host=e||self,this.sender=null,this.receiver=null,this.origin=null,this.type="NOT_DETECT",this.id="UNSET",this.sync=this._detectHost().then((function(){return t._attach()})),this.__azarResolveCallbacks={},this.__azarRejectCallbacks={}}p.TYPE_WORKER=s,p.TYPE_IFRAME=u,p.TYPE_IFRAME_MASTER=c,p.TYPE_WORKER_MASTER=l,p.prototype._detectHost=function(){var e=this;return new Promise((function(t){var r=function r(){e.host.removeEventListener?e.host.removeEventListener("load",r):e.host.detachEvent("onload",r),e.sender=e.host.contentWindow,t()};e.host instanceof Worker?(e.type=l,e.sender=e.host,e.receiver=e.host):"IFRAME"===e.host.tagName?(e.type=c,e.receiver=self,e.id=e.host.src,e.origin="*",e.host.addEventListener?e.host.addEventListener("load",r):e.host.attachEvent("onload",r)):p.isInIFrame()?(e.type=u,e.sender=window.parent,e.receiver=e.host,e.id=location.href,e.origin="*"):p.isInWorker()&&(e.type=s,e.sender=e.host,e.receiver=e.host),e.sender&&t()}))},p.prototype._attach=function(){this.receiver.addEventListener?this.receiver.addEventListener("message",this.__azarMessageListener.bind(this),!1):this.receiver.attachEvent?this.receiver.attachEvent("onmessage",this.__azarMessageListener.bind(this)):this.receiver.onmessage=this.__azarMessageListener.bind(this)},p.fromIFrame=function(e){return new p(e)},p.getInstance=function(){if(!p.shareInstance){var e=location.origin,t=p.fromIFrame()?p.getParentUrl().match(/^(http|https):\/\/[^/]+/):null;t=t?t[0]:e;var r=self;p.shareInstance=new p(r,t)}return p.shareInstance},Object.defineProperties(p.prototype,Object.getOwnPropertyDescriptors(n.default.prototype)),p.prototype.constructor=p,p.isInIFrame=function(){return!p.isInWorker()&&top!==self},p.isInWorker=function(){return"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope},p.getParentUrl=function(){return window.location!=window.parent.location?document.referrer:document.location.href},p.prototype.__azarMessageListener=function(e){this.__azarHandleData(e.data)},p.prototype.__azarHandleData=function(e){if(e.bridgeId===this.id&&e.type)if("INVOKE"==e.type)try{var t=this.__azarSelfInvoke(e.name,e.params);t&&"function"==typeof t.then?t.then(function(t){this.__azarResolve(e.taskId,t)}.bind(this)).catch(function(t){(0,a.default)(t),this.__azarResolve(e.taskId,null,t)}.bind(this)):this.__azarResolve(e.taskId,t)}catch(t){(0,a.default)(t),this.__azarResolve(e.taskId,null,t)}else"INVOKE_RESULT"==e.type?this.__azarResolveCallbacks[e.taskId]&&(e.error?this.__azarRejectCallbacks[e.taskId](e.error):this.__azarResolveCallbacks[e.taskId](e.result),delete this.__azarResolveCallbacks[e.taskId],delete this.__azarRejectCallbacks[e.taskId]):"EMIT"==e.type?this.fire.apply(this,e.params):this.fire("message",e,this)},p.prototype.__azarResolve=function(e,t,r){var n={type:"INVOKE_RESULT",taskId:e,result:t,error:r,bridgeId:this.id};this.origin?this.sender.postMessage(n,this.origin):this.sender.postMessage(n)},p.prototype.__azarSelfInvoke=function(e,t){return"function"==typeof this[e]?this[e].apply(this,t):this[e]},p.prototype.emit=function(){var e=[];return e.push.apply(e,arguments),this.sync.then(function(){var t={type:"EMIT",params:e,bridgeId:this.id};this.origin?this.sender.postMessage(t,this.origin):this.sender.postMessage(t)}.bind(this)),this},p.prototype.invoke=function(e){var t=[];return t.push.apply(t,arguments),t.shift(),this.sync.then(function(){var r=(0,i.randomIdent)(32),n={type:"INVOKE",params:t,taskId:r,name:e,bridgeId:this.id};return this.origin?this.host.postMessage(n,this.origin):this.host.postMessage(n),new Promise(function(e,t){this.__azarResolveCallbacks[r]=e,this.__azarRejectCallbacks[r]=t}.bind(this))}.bind(this))},p.prototype.importScriptURLs=function(){return this.invoke.apply(this,["_receiveScriptURLs"].concat(Array.prototype.slice.call(arguments)))},p.prototype.importScript=function(e){var t=new Blob([e],{type:"application/javascript"}),r=URL.createObjectURL(t);return this.importScriptURLs(r)},p.prototype.createMethod=function(e,t){return this[e]=function(){return this.invoke.apply(this,[e].concat(Array.prototype.slice.call(arguments)))},this.invoke.apply(this,["_receiveMethod",e,t.toString()])},p.prototype._receiveScriptURLs=function(){self.importScripts&&self.importScripts.apply(self,arguments)},p.prototype._receiveMethod=function(e,t){this[e]=new Function("return "+t)()};var f=p;t.default=f},67:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(r(281)),i=o(r(608)),a=o(r(333));function o(e){return e&&e.__esModule?e:{default:e}}function s(e){this.worker=new Worker(this._makeCodeUrl(e)),n.default.call(this,this.worker),this._attachClientMethods(e.methods)}s.prototype._makeCodeUrl=function(e){var t=[this._makeLibCode(e.libs),a.default,this._makeMethodCode(e.methods),this._makePropCode(e.props),e.extendCode||""].join("\n\n"),r=new Blob([t],{type:"application/javascript"});return URL.createObjectURL(r)},s.prototype._makePropCode=function(e){return e?"Object.assign(self, "+JSON.stringify(e)+");":""},s.prototype._makeLibCode=function(e){return e?e.map((function(e){return"self.importScripts("+JSON.stringify(e)+");"})).join("\n"):""},s.prototype._makeMethodCode=function(e){return e?Object.keys(e).map((function(t){var r=e[t];if("function"==typeof r)return r=r.toString(),"self["+JSON.stringify(t)+"] = "+r})).join("\n\n"):""},s.prototype._attachClientMethods=function(e){if(!e)return"";Object.keys(e).reduce((function(e,t){return e[t]=function(){return this.invoke.apply(this,[t].concat(Array.prototype.slice.call(arguments)))},e}),this)},i.default.mixClass(s,n.default);var u=s;t.default=u},710:(e,t)=>{"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={makeHttpObject:function(){try{return new XMLHttpRequest}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(e){}try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(e){}throw new Error("Could not create HTTP request object.")},getRequest:function(e,t,i,a){return new Promise((function(o,s){var u=n.makeHttpObject();u.open("GET",e,!0),"string"==typeof t?u.responseType=t||"":t&&"object"==r(t)&&Object.assign(u,t),u.send(null),u.onreadystatechange=function(){if(4==u.readyState)if(200==u.status){var e=u.response;i&&i(e),o(e)}else a&&a(u.status,u.statusText),s(u.status)},u.onerror=function(){a&&a(u.status,u.statusText),s(new Error(u.status+u.statusText))}}))},postRepquest:function(e,t,i,a,o,s){return new Promise((function(u,c){var l=n.makeHttpObject();l.onreadystatechange=function(){4==l.readyState&&(200==l.status?(o&&o(l.response),u(l.response)):s&&(s&&s(l.status,l.statusText),c({status:l.status,statusText:l.statusText})))},l.onerror=function(){s&&s(l.status,l.statusText),c(new Error(l.status+l.statusText))},l.open("POST",e,!0),"string"==typeof i?l.responseType=i||"":i&&"object"==r(i)&&Object.assign(l,i),(a=a||{})["Content-Type"]=a["Content-Type"]||"application/json;charset=UTF-8",Object.keys(a).forEach((function(e){l.setRequestHeader(e,a[e])})),l.send(t)}))},request:function(e,t,n,i,a,o,s){return new Promise((function(u,c){var l=new XMLHttpRequest;l.onreadystatechange=function(){4==l.readyState&&(200==l.status?(o&&o(l.response),u(l.response)):(s&&s(l.status,l.statusText),c({status:l.status,statusText:l.statusText})))},l.onerror=function(){var e=new Error("Network Error!");s&&s(e),c(e)},l.open(e,t,!0),"string"==typeof n?l.responseType=n||"":n&&"object"==r(n)&&Object.assign(l,n),(i=i||{})["Content-Type"]=i["Content-Type"]||"application/json;charset=UTF-8",Object.keys(i).forEach((function(e){l.setRequestHeader(e,i[e])})),l.send(a)}))}},i=n;t.default=i},284:(e,t,r)=>{"use strict";var n,i,a,o=c(r(733)),s=c(r(835)),u=c(r(178));function c(e){return e&&e.__esModule?e:{default:e}}function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}"Intl"in window||(window.Intl=u.default),"atob"in window||(window.atob=o.default),"btoa"in window||(window.btoa=s.default),a=function(){function e(e){var t=this.constructor;return this.then((function(r){return t.resolve(e()).then((function(){return r}))}),(function(r){return t.resolve(e()).then((function(){return t.reject(r)}))}))}function t(){}function n(e){if(!(this instanceof n))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],u(e,this)}function i(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,n._immediateFn((function(){var r=1===e._state?t.onFulfilled:t.onRejected;if(null!==r){var n;try{n=r(e._value)}catch(e){return void o(t.promise,e)}a(t.promise,n)}else(1===e._state?a:o)(t.promise,e._value)}))):e._deferreds.push(t)}function a(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==l(t)||"function"==typeof t)){var r=t.then;if(t instanceof n)return e._state=3,e._value=t,void s(e);if("function"==typeof r)return void u(function(e,t){return function(){e.apply(t,arguments)}}(r,t),e)}e._state=1,e._value=t,s(e)}catch(t){o(e,t)}}function o(e,t){e._state=2,e._value=t,s(e)}function s(e){2===e._state&&0===e._deferreds.length&&n._immediateFn((function(){e._handled||n._unhandledRejectionFn(e._value)}));for(var t=0,r=e._deferreds.length;r>t;t++)i(e,e._deferreds[t]);e._deferreds=null}function u(e,t){var r=!1;try{e((function(e){r||(r=!0,a(t,e))}),(function(e){r||(r=!0,o(t,e))}))}catch(e){if(r)return;r=!0,o(t,e)}}var c=setTimeout;n.prototype.catch=function(e){return this.then(null,e)},n.prototype.then=function(e,r){var n=new this.constructor(t);return i(this,new function(e,t,r){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=r}(e,r,n)),n},n.prototype.finally=e,n.all=function(e){return new n((function(t,r){function n(e,o){try{if(o&&("object"==l(o)||"function"==typeof o)){var s=o.then;if("function"==typeof s)return void s.call(o,(function(t){n(e,t)}),r)}i[e]=o,0==--a&&t(i)}catch(e){r(e)}}if(!e||void 0===e.length)throw new TypeError("Promise.all accepts an array");var i=Array.prototype.slice.call(e);if(0===i.length)return t([]);for(var a=i.length,o=0;i.length>o;o++)n(o,i[o])}))},n.resolve=function(e){return e&&"object"==l(e)&&e.constructor===n?e:new n((function(t){t(e)}))},n.reject=function(e){return new n((function(t,r){r(e)}))},n.race=function(e){return new n((function(t,r){for(var n=0,i=e.length;i>n;n++)e[n].then(t,r)}))},n._immediateFn="function"==typeof setImmediate&&function(e){setImmediate(e)}||function(e){c(e,0)},n._unhandledRejectionFn=function(e){void 0!==console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)};var p=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==r.g)return r.g;throw Error("unable to locate global object")}();"Promise"in p?p.Promise.prototype.finally||(p.Promise.prototype.finally=e):p.Promise=n},"object"==l(t)?a():void 0===(i="function"==typeof(n=a)?n.call(t,r,t,e):n)||(e.exports=i),function(){for(var e=["ms","moz","webkit","o"],t=0;t<e.length&&!window.requestAnimationFrame;++t)window.requestAnimationFrame=window[e[t]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[e[t]+"CancelAnimationFrame"]||window[e[t]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(e,t){return window.setTimeout((function(){e(t)}),1e3/60)}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(e){clearTimeout(e)})}(),function(){var e=Object.prototype,t=e.__defineGetter__,r=e.__defineSetter__,n=e.__lookupGetter__,i=e.__lookupSetter__,a=e.hasOwnProperty,o=!0;try{Object.defineProperty&&Object.defineProperty(document.createElement("div"),"theRandomName",{set:function(){},get:function(){}})}catch(e){o=!1}if((!o||!Object.defineProperty)&&t&&r&&n&&i){var s=Object.defineProperty;Object.defineProperty=function(e,o,u){if(!s||"number"==typeof e.nodeType&&"string"==typeof e.nodeName){if(arguments.length<3)throw new TypeError("Arguments not optional");if(o+="",a.call(u,"value")&&(n.call(e,o)||i.call(e,o)||(e[o]=u.value),a.call(u,"get")||a.call(u,"set")))throw new TypeError("Cannot specify an accessor and a value");return u.get&&t.call(e,o,u.get),u.set&&r.call(e,o,u.set),e}return s.call(this,e,o,u)};var u=Object.getOwnPropertyDescriptor;Object.getOwnPropertyDescriptor=function(e,t){if(!u||"number"==typeof e.nodeType&&"string"==typeof e.nodeName){if(arguments.length<2)throw new TypeError("Arguments not optional.");t+="";var r={configurable:!0,enumerable:!0,writable:!0},o=n.call(e,t),s=i.call(e,t);return a.call(e,t)?o||s?(delete r.writable,r.get=r.set=void 0,o&&(r.get=o),s&&(r.set=s),r):(r.value=e[t],r):r}return u(e,t)}}o&&Object.getOwnPropertyDescriptors||(Object.getOwnPropertyDescriptors=function(e){var t={};for(var r in e)t[r]=Object.getOwnPropertyDescriptor(e,r);return t}),o&&Object.defineProperties||(Object.defineProperties=function(e,t){var r;for(r in t)a.call(t,r)&&Object.defineProperty(e,r,t[r])}),"function"!=typeof Object.assign&&(Object.assign=function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var r=Object(e),n=1;n<arguments.length;n++){var i=arguments[n];if(null!=i)for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])}return r})}(),String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return t=t||0,this.indexOf(e,t)===t}),String.prototype.replaceAll||(String.prototype.replaceAll=function(){var e=arguments[0];return e?"string"==typeof e?this.split(e).join(arguments[1]):e instanceof RegExp?this.replace(new RegExp(e.source,"g"),arguments[1]):void 0:this}),Array.prototype.fill||Object.defineProperty(Array.prototype,"fill",{value:function(e){if(null==this)throw new TypeError("this is null or not defined");for(var t=Object(this),r=t.length>>>0,n=arguments[1],i=n>>0,a=i<0?Math.max(r+i,0):Math.min(i,r),o=arguments[2],s=void 0===o?r:o>>0,u=s<0?Math.max(r+s,0):Math.min(s,r);a<u;)t[a]=e,a++;return t}}),Array.prototype.some||(Array.prototype.some=function(e){if(null==this)throw new TypeError;var t=Object(this),r=t.length>>>0;if("function"!=typeof e)throw new TypeError;for(var n=arguments[1],i=0;i<r;i++)if(i in t&&e.call(n,t[i],i,t))return!0;return!1}),function(){if(!Function.prototype.bind){var e=Array.prototype.slice;Function.prototype.bind=function(t){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var r=e.call(arguments,1),n=r.length,i=this,a=function(){},o=function(){return r.length=n,r.push.apply(r,arguments),i.apply(a.prototype.isPrototypeOf(this)?this:t,r)};return this.prototype&&(a.prototype=this.prototype),o.prototype=new a,o}}}()},294:(e,t)=>{"use strict";function r(e){return e.replace(/à|á|ạ|ả|ã|â|ầ|ấ|ậ|ẩ|ẫ|ă|ằ|ắ|ặ|ẳ|ẵ/g,"a").replace(/À|Á|Ạ|Ả|Ã|Â|Ầ|Ấ|Ậ|Ẩ|Ẫ|Ă|Ằ|Ắ|Ặ|Ẳ|Ẵ/g,"A").replace(/è|é|ẹ|ẻ|ẽ|ê|ề|ế|ệ|ể|ễ/g,"e").replace(/È|É|Ẹ|Ẻ|Ẽ|Ê|Ề|Ế|Ệ|Ể|Ễ/g,"E").replace(/ì|í|ị|ỉ|ĩ/g,"i").replace(/Ì|Í|Ị|Ỉ|Ĩ/g,"I").replace(/ò|ó|ọ|ỏ|õ|ô|ồ|ố|ộ|ổ|ỗ|ơ|ờ|ớ|ợ|ở|ỡ/g,"o").replace(/Ò|Ó|Ọ|Ỏ|Õ|Ô|Ồ|Ố|Ộ|Ổ|Ỗ|Ơ|Ờ|Ớ|Ợ|Ở|Ỡ/g,"O").replace(/ù|ú|ụ|ủ|ũ|ư|ừ|ứ|ự|ử|ữ/g,"u").replace(/Ù|Ú|Ụ|Ủ|Ũ|Ư|Ừ|Ứ|Ự|Ử|Ữ/g,"U").replace(/ỳ|ý|ỵ|ỷ|ỹ/g,"y").replace(/Ỳ|Ý|Ỵ|Ỷ|Ỹ/g,"Y").replace(/đ/g,"d").replace(/Đ/g,"D").replace(/\u0300|\u0301|\u0303|\u0309|\u0323/g,"").replace(/\u02C6|\u0306|\u031B/g,"")}Object.defineProperty(t,"__esModule",{value:!0}),t.wrapToLines=function(e,t){for(var r=[],n="",i="",a=0;a<e.length;++a)e[a].match(/\s/)?n.length+i.length>=t?i.length>0?(r.push(i.trim()),i="",n=n.trimLeft()+e[a]):(i+=n,r.push(i.trim()),i="",n=""):(i+=n,n=e[a]):n+=e[a];return(i=(i+n).trim()).length>0&&r.push(i),r},t.nonAccentVietnamese=r,t.pascalCaseToCamelCase=function(e){return e.substr(0,1).toLowerCase()+e.substr(1)},t.kebabCaseToCamelCase=function(e){return e.replace(/-+([^-])/g,(function(e,t){return t.toUpperCase()}))},t.underScoreToCamelCase=function(e){return e.replace(/(_+)?([^_]+)/g,(function(e,t,r){return t?r?r.substr(0,1).toUpperCase()+r.substr(1).toLowerCase():"":r.toLowerCase()}))},t.camelCaseToPascalCase=function(e){return e.substr(0,1).toUpperCase()+e.substr(1)},t.underScoreToPascalCase=function(e){return e.replace(/(_+|^)?([^_]+)/g,(function(e,t,r){return r.substr(0,1).toUpperCase()+r.substr(1).toLowerCase()}))},t.kebabCaseToPascalCase=function(e){return e.replace(/(-+|^)([^-])/g,(function(e,t,r){return r.toUpperCase()}))},t.pascalCaseToKebabCase=function(e){return e.replace(/[A-Z][^A-Z]*/g,(function(e,t){return 0==t?e.toLowerCase():"-"+e.toLowerCase()}))},t.camelCaseToKebabCase=function(e){return e.replace(/(^|[A-Z])[^A-Z]*/g,(function(e,t){return 0==t?e.toLowerCase():"-"+e.toLowerCase()}))},t.underScoreToKebabCase=function(e){return e.replace(/(^|_+)([^_]+)/g,(function(e,t,r,n){return 0==n?r.toLowerCase():"-"+r.toLowerCase()}))},t.pascalCaseToUnderScore=function(e){return e.replace(/[A-Z][^A-Z]*/g,(function(e,t){return 0==t?e.toLowerCase():"_"+e.toLowerCase()}))},t.pascalCaseToUpperUnderScore=function(e){return e.replace(/[A-Z][^A-Z]*/g,(function(e,t){return 0==t?e.toUpperCase():"_"+e.toUpperCase()}))},t.camelCaseToUnderScore=function(e){return e.replace(/(^|[A-Z])[^A-Z]*/g,(function(e,t){return 0==t?e.toLowerCase():"_"+e.toLowerCase()}))},t.camelCaseToUpperUnderScore=function(e){return e.replace(/(^|[A-Z])[^A-Z]*/g,(function(e,t){return 0==t?e.toUpperCase():"_"+e.toUpperCase()}))},t.kebabCaseToUnderScore=function(e){return e.replace(/(-+|^)([^-]+)/g,(function(e,t,r,n){return 0==n?r.toLowerCase():"_"+r.toLowerCase()}))},t.kebabCaseToUpperUnderScore=function(e){return e.replace(/(-+|^)([^-]+)/g,(function(e,t,r,n){return 0==n?r.toUpperCase():"_"+r.toUpperCase()}))},t.normalizeIdent=function(e,t){var n="_";t&&"spaces"in t&&(n=t.spaces||"");var i="_";t&&"symbols"in t&&(i=t.symbols||"");var a=!1;t&&"startsWithDigit"in t&&(a=t.startsWithDigit||!1);var o=r(e);return"string"==typeof n&&(o=o.replace(/\s+/g,n)),"string"==typeof i&&("_"===n?o=o.replace(/[^a-zA-Z0-9_$]+/g,i):"-"===n&&(o=o.replace(/[^a-zA-Z0-9_$\-]+/g,i))),!a&&o.match(/^[0-9]/)&&(o="$"+o),o},t.breakTextToLineByLength=function(e,t){t=t||256;var n=e.split(/\n/),i=[];return n.forEach((function(e){return function(e){for(var n=r(e).toLowerCase(),a=/(\(?(\d+([.]\d*)?([eE][+-]?\d+)?|[.]\d+([eE][+-]?\d+)?)\)?)|([()_a-z0-9,.]+)|([^\sa-z0-9,._()])/g,o=[],s=a.exec(n);s;)o.push(s.index),s=a.exec(n);0!==o[0]&&o.unshift(0),o.push(n.length),o.push(n.length);for(var u,c,l,p=o[0]||0,f=p,h=1;h<o.length;++h){if((u=o[h])-p>t||h+1===o.length){if((c=e.substring(p,f).trimEnd()).length>t)for(l=c.split("");l.length>0;)c=l.splice(0,t).join(""),i.push(c);else c.length>0&&i.push(c);p=f}f=u}}(e)})),i.join("\n")},String.nonAccentVietnamese=r,String.prototype.nonAccentVietnamese=function(){return String.nonAccentVietnamese(this)}},713:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.randomIdent=function(e){e>0||(e=4);var t=a;return[t[Math.random()*(t.length-10)>>0]].concat(Array(e-1).fill("").map((function(){return t[Math.random()*t.length>>0]}))).join("")},t.parallelMatch=function(e,t){for(var r=Math.min(e.length,t.length),n=0,i=0;i<r;++i)e[i]==t[i]&&++n;return n},t.randomWord=s,t.randomPhrase=u,t.randomSentence=c,t.randomParagraph=function(e){e||(e=1e3);var t=Math.ceil(Math.random()*e/200);return new Array(t).fill(null).map((function(e){return c(e)})).reduce((function(t,r){return t.length+r.length<e&&t.parts.push(r),t}),{parts:[],length:0}).parts.join(" ")},t.ipsumLoremWord=t.identCharacters=void 0;var n,i=r(917),a=(n="qwertyuiopasdfghjklzxcvbnm",((n+=n.toUpperCase())+"_0123456789").split(""));t.identCharacters=a;var o=["lorem","ipsum","dolor","sit","amet","consectetur","adipiscing","elit","sed","do","eiusmod","tempor","incididunt","ut","labore","et","dolore","magna","aliqua","enim","ad","minim","veniam","quis","nostrud","exercitation","ullamco","laboris","nisi","aliquip","ex","ea","commodo","consequat","duis","aute","irure","in","reprehenderit","voluptate","velit","esse","cillum","eu","fugiat","nulla","pariatur","excepteur","sint","occaecat","cupidatat","non","proident","sunt","culpa","qui","officia","deserunt","mollit","anim","id","est","laborum","perspiciatis","unde","omnis","iste","natus","error","voluptatem","accusantium","doloremque","laudantium","totam","rem","aperiam","eaque","ipsa","quae","ab","illo","inventore","veritatis","quasi","architecto","beatae","vitae","dicta","explicabo","nemo","ipsam","quia","voluptas","aspernatur","aut","odit","fugit","consequuntur","magni","dolores","eos","ratione","sequi","nesciunt","neque","porro","quisquam","dolorem","adipisci","numquam","eius","modi","tempora","incidunt","magnam","aliquam","quaerat","minima","nostrum","exercitationem","ullam","corporis","suscipit","laboriosam","aliquid","commodi","consequatur","autem","vel","eum","iure","quam","nihil","molestiae","illum","quo","at","vero","accusamus","iusto","odio","dignissimos","ducimus","blanditiis","praesentium","voluptatum","deleniti","atque","corrupti","quos","quas","molestias","excepturi","occaecati","cupiditate","provident","similique","mollitia","animi","dolorum","fuga","harum","quidem","rerum","facilis","expedita","distinctio","nam","libero","tempore","sum","soluta","nobis","eligendi","optio","cumque","impedit","minus","quod","maxime","placeat","facere","possimus","assumenda","repellendus","temporibus","quibusdam","officiis","debitis","necessitatibus","saepe","eveniet","voluptates","repudiandae","recusandae","itaque","earum","hic","tenetur","a","sapiente","delectus","reiciendis","voluptatibus","maiores","alias","perferendis","doloribus","asperiores","repellat","integer","nec","praesent","cursus","ante","dapibus","diam","sem","nibh","elementum","imperdiet","sagittis","mauris","fusce","tellus","augue","semper","porta","massa","vestibulum","lacinia","arcu","eget","class","aptent","taciti","sociosqu","litora","torquent","per","conubia","nostra","inceptos","himenaeos","curabitur","sodales","ligula","dignissim","nunc","tortor","pellentesque","aenean","scelerisque","maecenas","mattis","convallis","tristique","proin","egestas","porttitor","morbi","lectus","risus","iaculis","luctus","ac","turpis","aliquet","metus","ullamcorper","tincidunt","euismod","quisque","volutpat","condimentum","urna","facilisi","fringilla","suspendisse","potenti","feugiat","mi","sapien","etiam","ultrices","justo","lacus","pharetra","auctor","interdum","primis","faucibus","orci","posuere","cubilia","curae","molestie","dui","blandit","congue","pede","facilisis","laoreet","donec","viverra","malesuada","pulvinar","sollicitudin","cras","nisl","felis","venenatis","ultricies","accumsan","pretium","fermentum","nullam","purus","mollis","vivamus","consectetuer"];function s(){var e=o;return e[(0,i.randomInt)(0,e.length-1)]}function u(e,t){var r=arguments[arguments.length-1],n=1;arguments.length>1&&(n=arguments[0]),r||(r=50);var i=Math.ceil((Math.random()*(r-n)+n)/7);return new Array(i).fill(null).map(s).reduce((function(e,t){return(e.length+t.length<r||e.length<n)&&e.parts.push(t),e}),{parts:[],length:0}).parts.join(" ")}function c(e){e||(e=300);var t=Math.ceil(Math.random()*e/70),r=new Array(t).fill(null).map((function(e){return u(e)})).reduce((function(t,r){return t.length+r.length<e&&t.parts.push(r),t}),{parts:[],length:0}).parts.join(", ");return Math.random()<.03&&(r=r.replace(/\,/i,":")),(r=r.replace(/^./,(function(e){return e.toUpperCase()})))+"."}t.ipsumLoremWord=o},768:(e,t)=>{"use strict";function r(e,t){this.LIMIT_TIMEOUT=2147483647,this.callback=t,this.state="STAND_BY",this.timeout=-1,this.time="number"==typeof e?e:e.getTime(),this.args=Array.prototype.slice.call(arguments,2),this.tick=this.tick.bind(this),this.time>=(new Date).getTime()?this.start():this.kill()}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r.prototype.start=function(){return("STAND_BY"==this.state||"PAUSE"==this.state)&&(this.state="RUNNING",this.tick(),!0)},r.prototype.pause=function(){"RUNNING"==this.state&&(clearTimeout(this.timeout),this.timeout=-1,this.state="PAUSE")},r.prototype.tick=function(){var e=(new Date).getTime();if(e>=this.time)this.callback&&this.callback.apply(null,this.args),this.start="FINISH";else{var t=Math.min(this.LIMIT_TIMEOUT,this.time-e);this.timeout=setTimeout(this.tick,t),this.state="RUNNING"}},r.prototype.kill=function(){return"FINISH"!=this.state&&"DEAD"!=this.state&&(this.timeout>=0&&clearTimeout(this.timeout),this.state="DEAD",!0)};var n=r;t.default=n},286:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDefaultFirstDayOfWeek=u,t.setDefaultFirstDayOfWeek=function(e){!isNaN(e)&&isFinite(e)&&(e=Math.floor(e)%7,s=e)},t.ddmmyyyy=function(e){return N(e,"dd/MM/yyyy")},t.yyymmdd=function(e){return N(e,"yyyy/MM/dd")},t.formatDateString=v,t.formartDateString=function(){return window.ALogger.warn("spelled incorrectly: formartDateString"),v.apply(null,arguments)},t.parseDateString=function(e,t){e=(0,n.nonAccentVietnamese)(e).toLowerCase(),t=(0,n.nonAccentVietnamese)(t).toLowerCase();for(var r,i,a=e.match(m)||[],o=t.match(m)||[],s=(new Date).getFullYear(),u=0,c=1,l=Math.min(a.length,o.length),p=0;p<l;++p)switch(r=a[p],i=o[p]){case"dd":case"d":c=parseInt(r);break;case"mmmm":u=d.indexOf(r.substr(0,1).toUpperCase()+r.substr(1).toLowerCase());break;case"mmm":u=y.indexOf(r.substr(0,1).toUpperCase()+r.substr(1).toLowerCase());break;case"mm":case"MM":u=parseInt(r)-1;break;case"m":case"M":u=parseInt(r)-1;break;case"yy":s=100*Math.floor((new Date).getFullYear()/100)+parseInt(r);break;case"yyyy":s=parseInt(r);break;default:if(r!==i)throw new Error("Unexpected token "+r)}if(isNaN(s))throw new Error("Invalid year");if(isNaN(u)&&-1!==u)throw new Error("Invalid month");if(u=Math.max(0,Math.min(11,u)),isNaN(c))throw new Error("Invalid day");return c=Math.max(1,Math.min(31,c)),isNaN(u)||(c=Math.min(z(2e3,u),c),isNaN(s)||(c=Math.min(z(s,u),c))),new Date(s,u,c)},t.addDate=x,t.prevDate=_,t.nextDate=function(e,t){return x(e,1,t)},t.weekIndexOf=E,t.weekInYear=k,t.beginOfSecond=function(e,t){var r=new Date(e.getTime());return t?r.setUTCMilliseconds(0):r.setMilliseconds(0),r},t.beginOfMinute=function(e,t){var r=new Date(e.getTime());return t?r.setUTCSeconds(0,0):r.setSeconds(0,0),r},t.beginOfDay=C,t.beginOfHour=function(e,t){var r=new Date(e.getTime());return t?r.setUTCMinutes(0,0,0):r.setMinutes(0,0,0),r},t.beginOfWeek=A,t.addWeek=T,t.nextWeek=function(e,t){return T(e,1,t)},t.prevWeek=function(e,t){return T(e,-1,t)},t.beginOfMonth=O,t.beginOfQuarter=M,t.addQuarter=F,t.nextQuarter=function(e,t){return R(R(R(e=M(e),t),t),t)},t.prevQuarter=function(e,t){return L(L(L(e=M(e,t),t),t),t)},t.beginOfYear=j,t.addYear=B,t.nextYear=function(e,t){return B(e,1,t)},t.prevYear=function(e,t){return B(e,-1,t)},t.compareDate=I,t.compareMonth=function(e,t,r){var n=r?e.getUTCMonth():e.getMonth(),i=r?e.getUTCFullYear():e.getFullYear(),a=r?t.getUTCMonth():t.getMonth();return 12*(i-(r?t.getUTCFullYear():t.getFullYear()))+(n-a)},t.compareYear=S,t.addMonth=D,t.addMonthKeepDate=P,t.addMonthKeepDateTime=function(e,t,r){var n=e.getTime()-C(e,r).getTime(),i=P(e,t,r);return new Date(i.getTime()+n)},t.nextMonth=R,t.prevMonth=L,t.monthOfTwoDate=function(e,t){var r,n=1,i=0,a=I(e=C(e),t=C(t));if(a>0)n=-1,r=e,e=t,t=r;else if(0===a)return 0;var o=e.getDate(),s=t.getDate(),u=e.getFullYear(),c=t.getFullYear(),l=e.getMonth(),p=t.getMonth();return o<=s?(i+=12*(c-u)+(p-l),i+=2*(s-o)/(z(u,l)+z(c,p))):(i+=12*(c-u)+(p-l)-1,i+=2*(I(O(R(e)),e)+I(t,O(t)))/(z(u,l)+z(c,p))),n*i},t.daysInMonth=z,t.parseDateTime=function(e,t,r){r=Object.assign({startDayOfWeek:0},r);var n,i,a,o,s={},u=new RegExp(g.source,"g"),c=new RegExp(g.source,"g");for(n=u.exec(e),i=c.exec(t);n&&i;){switch(a=n[0],o=i[0]){case"d":case"dd":s.day=parseInt(a,10);break;case"w":case"ww":s.week=parseInt(a,10)-1;break;case"M":case"MM":s.month=parseInt(a,10)-1;break;case"y":case"yyyy":s.year=parseInt(a,10);break;case"h":case"hh":case"H":case"HH":s.hour=parseInt(a,10);break;case"m":case"mm":s.minute=parseInt(a,10);break;case"a":if("AM"!==a&&"PM"!==a)throw new Error("Invalid period(a):"+a);s.period=a;break;case"Q":case"QQ":s.month=3*(parseInt(a,10)-1);break;default:if(a!==o)throw new Error("Unexpected token "+JSON.stringify(a)+" at "+n.index+", expected "+o)}n=u.exec(e),i=c.exec(t)}s.period&&("AM"===s.period&&12===s.hour?s.hour=0:"PM"===s.period&&s.hour<12&&(s.hour+=12));for(var l,p,f=["year","month","day","hour","minute","second"],h=["y","M","d","h","m","s"],d=[(new Date).getFullYear(),0,1,0,0,0],y=d.slice(),m=f.reduce((function(e,t,r){return t in s&&(e+=h[r]),e}),""),v=0;v<f.length;++v)l=f[v],y[v]=void 0===s[l]?d[v]:s[l];switch("week"in s&&!isNaN(s.week)&&(p=k(y[0],s.week,!1,r.startDayOfWeek),y[1]=p.getMonth(),y[2]=p.getDate()),m){case"hm":y.splice(1,2,(new Date).getMonth(),(new Date).getDate())}return new Date(y[0],y[1],y[2],y[3],y[4],y[5])},t.formatDateTime=N,t.implicitDate=function(e){var t=null;return e instanceof Date?t=new Date(e.getTime()):"number"==typeof e?t=new Date(e):"string"==typeof e&&[q,Y,H,U].some((function(r){var n=e.match(r[0]);return!!n&&(t=r[1](n),!0)})),t&&isNaN(t.getTime())&&(t=null),t},t.formatTimeRange24=function(e,t){t=Object.assign({nextDayText:!window.systemconfig||"string"!=typeof window.systemconfig.language||window.systemconfig.language.toLowerCase().indexOf("vn")>=0||window.systemconfig.language.toLowerCase().indexOf("vi")>=0?"Hôm sau":"Next day"},t||{}),e=e||{};var r=Math.floor(e.dayOffset/o),n=Math.floor(r/60),a=Math.floor(n/24);r%=60,n%=24;var s=e.dayOffset+e.duration,u=Math.floor(s/o),c=Math.floor(u/60),l=Math.floor(c/24);u%=60,c%=24;var p=n+":"+(0,i.integerZeroPadding)(r,2)+" - "+c+":"+(0,i.integerZeroPadding)(u,2);return a!==l&&(p+=" ("+t.nextDayText+")"),p},t.getTimeRangeFromStep=function(e,t,r){var n,i={month:function(e,t){return D(e,t)},quarter:function(e,t){return F(e,t)},year:function(e,t){return B(e,t)}};return{startdate:n={month:function(e){return O(e)},quarter:function(e){return M(e)},year:function(e){return j(e)}}[t](i[t](e,r)),expireddate:i[t](n,1)}},t.LOCAL_DATE_TIME_FORMAT=t.LOCAL_DATE_FORMAT=t.DATE_TIME_TOKEN_RGX=t.formatTokenRegex=t.shortMonthNames=t.monthNames=t.shortDayNames=t.dayNames=t.dateFormatList=t.dateFormat2LocationList=t.language2LocalDateFormat=t.MILLIS_PER_MINUTE=t.MILLIS_PER_HOUR=t.MILLIS_PER_DAY=void 0;var n=r(294),i=r(909),a=864e5;t.MILLIS_PER_DAY=a,t.MILLIS_PER_HOUR=36e5;var o=6e4;t.MILLIS_PER_MINUTE=o;var s=1;function u(){return s}var c={"af-ZA":"yyyy/mm/dd","am-ET":"d/m/yyyy","ar-AE":"dd/mm/yyyy","ar-BH":"dd/mm/yyyy","ar-DZ":"dd-mm-yyyy","ar-EG":"dd/mm/yyyy","ar-IQ":"dd/mm/yyyy","ar-JO":"dd/mm/yyyy","ar-KW":"dd/mm/yyyy","ar-LB":"dd/mm/yyyy","ar-LY":"dd/mm/yyyy","ar-MA":"dd-mm-yyyy","ar-OM":"dd/mm/yyyy","ar-QA":"dd/mm/yyyy","ar-SA":"dd/mm/yy","ar-SY":"dd/mm/yyyy","ar-TN":"dd-mm-yyyy","ar-YE":"dd/mm/yyyy","arn-CL":"dd-mm-yyyy","as-IN":"dd-mm-yyyy","az-Cyrl-AZ":"dd.mm.yyyy","az-Latn-AZ":"dd.mm.yyyy","ba-RU":"dd.mm.yy","be-BY":"dd.mm.yyyy","bg-BG":"dd.m.yyyy","bn-BD":"dd-mm-yy","bn-IN":"dd-mm-yy","bo-CN":"yyyy/m/d","br-FR":"dd/mm/yyyy","bs-Cyrl-BA":"d.m.yyyy","bs-Latn-BA":"d.m.yyyy","ca-ES":"dd/mm/yyyy","co-FR":"dd/mm/yyyy","cs-CZ":"d.m.yyyy","cy-GB":"dd/mm/yyyy","da-DK":"dd-mm-yyyy","de-AT":"dd.mm.yyyy","de-CH":"dd.mm.yyyy","de-DE":"dd.mm.yyyy","de-LI":"dd.mm.yyyy","de-LU":"dd.mm.yyyy","dsb-DE":"d. m. yyyy","dv-MV":"dd/mm/yy","el-GR":"d/m/yyyy","en-029":"mm/dd/yyyy","en-AU":"d/mm/yyyy","en-BZ":"dd/mm/yyyy","en-CA":"dd/mm/yyyy","en-GB":"dd/mm/yyyy","en-IE":"dd/mm/yyyy","en-IN":"dd-mm-yyyy","en-JM":"dd/mm/yyyy","en-MY":"d/m/yyyy","en-NZ":"d/mm/yyyy","en-PH":"m/d/yyyy","en-SG":"d/m/yyyy","en-TT":"dd/mm/yyyy","en-US":"m/d/yyyy","en-ZA":"yyyy/mm/dd","en-ZW":"m/d/yyyy","es-AR":"dd/mm/yyyy","es-BO":"dd/mm/yyyy","es-CL":"dd-mm-yyyy","es-CO":"dd/mm/yyyy","es-CR":"dd/mm/yyyy","es-DO":"dd/mm/yyyy","es-EC":"dd/mm/yyyy","es-ES":"dd/mm/yyyy","es-GT":"dd/mm/yyyy","es-HN":"dd/mm/yyyy","es-MX":"dd/mm/yyyy","es-NI":"dd/mm/yyyy","es-PA":"mm/dd/yyyy","es-PE":"dd/mm/yyyy","es-PR":"dd/mm/yyyy","es-PY":"dd/mm/yyyy","es-SV":"dd/mm/yyyy","es-US":"m/d/yyyy","es-UY":"dd/mm/yyyy","es-VE":"dd/mm/yyyy","et-EE":"d.mm.yyyy","eu-ES":"yyyy/mm/dd","fa-IR":"mm/dd/yyyy","fi-FI":"d.m.yyyy","fil-PH":"m/d/yyyy","fo-FO":"dd-mm-yyyy","fr-BE":"d/mm/yyyy","fr-CA":"yyyy-mm-dd","fr-CH":"dd.mm.yyyy","fr-FR":"dd/mm/yyyy","fr-LU":"dd/mm/yyyy","fr-MC":"dd/mm/yyyy","fy-NL":"d-m-yyyy","ga-IE":"dd/mm/yyyy","gd-GB":"dd/mm/yyyy","gl-ES":"dd/mm/yy","gsw-FR":"dd/mm/yyyy","gu-IN":"dd-mm-yy","ha-Latn-NG":"d/m/yyyy","he-IL":"dd/mm/yyyy","hi-IN":"dd-mm-yyyy","hr-BA":"d.m.yyyy.","hr-HR":"d.m.yyyy","hsb-DE":"d. m. yyyy","hu-HU":"yyyy. mm. dd.","hy-AM":"dd.mm.yyyy","id-ID":"dd/mm/yyyy","ig-NG":"d/m/yyyy","ii-CN":"yyyy/m/d","is-IS":"d.m.yyyy","it-CH":"dd.mm.yyyy","it-IT":"dd/mm/yyyy","iu-Cans-CA":"d/m/yyyy","iu-Latn-CA":"d/mm/yyyy","ja-JP":"yyyy/mm/dd","ka-GE":"dd.mm.yyyy","kk-KZ":"dd.mm.yyyy","kl-GL":"dd-mm-yyyy","km-KH":"yyyy-mm-dd","kn-IN":"dd-mm-yy","ko-KR":"yyyy-mm-dd","kok-IN":"dd-mm-yyyy","ky-KG":"dd.mm.yy","lb-LU":"dd/mm/yyyy","lo-LA":"dd/mm/yyyy","lt-LT":"yyyy.mm.dd","lv-LV":"yyyy.mm.dd.","mi-NZ":"dd/mm/yyyy","mk-MK":"dd.mm.yyyy","ml-IN":"dd-mm-yy","mn-MN":"yy.mm.dd","mn-Mong-CN":"yyyy/m/d","moh-CA":"m/d/yyyy","mr-IN":"dd-mm-yyyy","ms-BN":"dd/mm/yyyy","ms-MY":"dd/mm/yyyy","mt-MT":"dd/mm/yyyy","nb-NO":"dd.mm.yyyy","ne-NP":"m/d/yyyy","nl-BE":"d/mm/yyyy","nl-NL":"d-m-yyyy","nn-NO":"dd.mm.yyyy","nso-ZA":"yyyy/mm/dd","oc-FR":"dd/mm/yyyy","or-IN":"dd-mm-yy","pa-IN":"dd-mm-yy","pl-PL":"yyyy-mm-dd","prs-AF":"dd/mm/yy","ps-AF":"dd/mm/yy","pt-BR":"d/m/yyyy","pt-PT":"dd-mm-yyyy","qut-GT":"dd/mm/yyyy","quz-BO":"dd/mm/yyyy","quz-EC":"dd/mm/yyyy","quz-PE":"dd/mm/yyyy","rm-CH":"dd/mm/yyyy","ro-RO":"dd.mm.yyyy","ru-RU":"dd.mm.yyyy","rw-RW":"m/d/yyyy","sa-IN":"dd-mm-yyyy","sah-RU":"mm.dd.yyyy","se-FI":"d.m.yyyy","se-NO":"dd.mm.yyyy","se-SE":"yyyy-mm-dd","si-LK":"yyyy-mm-dd","sk-SK":"d. m. yyyy","sl-SI":"d.m.yyyy","sma-NO":"dd.mm.yyyy","sma-SE":"yyyy-mm-dd","smj-NO":"dd.mm.yyyy","smj-SE":"yyyy-mm-dd","smn-FI":"d.m.yyyy","sms-FI":"d.m.yyyy","sq-AL":"yyyy-mm-dd","sr-Cyrl-BA":"d.m.yyyy","sr-Cyrl-CS":"d.m.yyyy","sr-Cyrl-ME":"d.m.yyyy","sr-Cyrl-RS":"d.m.yyyy","sr-Latn-BA":"d.m.yyyy","sr-Latn-CS":"d.m.yyyy","sr-Latn-ME":"d.m.yyyy","sr-Latn-RS":"d.m.yyyy","sv-FI":"d.m.yyyy","sv-SE":"yyyy-mm-dd","sw-KE":"m/d/yyyy","syr-SY":"dd/mm/yyyy","ta-IN":"dd-mm-yyyy","te-IN":"dd-mm-yy","tg-Cyrl-TJ":"dd.mm.yy","th-TH":"d/m/yyyy","tk-TM":"dd.mm.yy","tn-ZA":"yyyy/mm/dd","tr-TR":"dd.mm.yyyy","tt-RU":"dd.mm.yyyy","tzm-Latn-DZ":"dd-mm-yyyy","ug-CN":"yyyy-m-d","uk-UA":"dd.mm.yyyy","ur-PK":"dd/mm/yyyy","uz-Cyrl-UZ":"dd.mm.yyyy","uz-Latn-UZ":"dd/mm yyyy","vi-VN":"dd/mm/yyyy","wo-SN":"dd/mm/yyyy","xh-ZA":"yyyy/mm/dd","yo-NG":"d/m/yyyy","zh-CN":"yyyy/m/d","zh-HK":"d/m/yyyy","zh-MO":"d/m/yyyy","zh-SG":"d/m/yyyy","zh-TW":"yyyy/m/d","zu-ZA":"yyyy/mm/dd"};t.language2LocalDateFormat=c;var l=Object.keys(c).reduce((function(e,t){return e[c[t]]=e[c[t]]||[],e[c[t]].push(t),e}),{});t.dateFormat2LocationList=l;var p=Object.keys(l);t.dateFormatList=p;var f=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];t.dayNames=f;var h=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];t.shortDayNames=h;var d=["January","February","March","April","May","June","July","August","September","October","November","December"];t.monthNames=d;var y=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];t.shortMonthNames=y;var m=/([,.\-\/])|([a-zA-Z0-9]+)/g;t.formatTokenRegex=m;var g=/([^\s.\/:\-,]+)|([.\/:\-,]+)/i;function v(e,t){t=t||"dd/mm/yyyy";var r=e.getDate(),n=e.getDay(),i=e.getMonth(),a=e.getFullYear();return t.replace(m,(function(e){switch(e){case"dddd":return f[n];case"ddd":return h[n];case"dd":return r<10?"0"+r:""+r;case"d":return""+r;case"mmmm":return d[i];case"mmm":return y[i];case"mm":return i+1<10?"0"+(i+1):""+(i+1);case"m":return""+(i+1);case"yy":return(a+"").match(/..$/)[0];case"yyyy":return a+"";default:return e}}))}t.DATE_TIME_TOKEN_RGX=g;var b=new Date(2021,4,4).toLocaleDateString().replace(new RegExp(g.source,"g"),(function(e){switch(e){case"2021":return"yyyy";case"5":return"M";case"05":return"MM";case"4":return"d";case"04":return"dd";default:return e}}));t.LOCAL_DATE_FORMAT=b;var w=new Date(2021,4,4,6,7,3).toLocaleString().replace(new RegExp(g.source,"g"),(function(e){switch(e){case"2021":return"yyyy";case"5":return"M";case"05":return"MM";case"4":return"d";case"04":return"dd";case"06":return new Date(2021,4,4,18,7,3).toLocaleString().indexOf(18)>=0?"HH":"hh";case"6":return"h";case"07":return"mm";case"7":return"m";case"03":return"ss";case"3":return"s";case"AM":return"a";default:return e}}));function x(e,t,r){t=Math.round(t);var n=C(e,r);return r?n.setUTCDate(e.getUTCDate()+t):n.setDate(e.getDate()+t),C(n,r)}function _(e,t){return x(e,-1,t)}function E(e,t,r){"number"!=typeof r&&(r=u());var n=j(e,t),i=A(n,t,r),a=A(e,t,r);if(S(n,a)>0)return E(a,t,r);var o=S(i,n)<0?-1:0;return Math.floor(I(e,i,t)/7)+o}function k(e,t,r,n){"number"!=typeof n&&(n=u());var i=new Date(e,0,1);r&&i.setUTCHours(0);var o=A(i,r,n),s=S(i,o)>0?6048e5:0;return new Date(o.getTime()+s+7*t*a)}function C(e,t){var r=new Date(e.getTime());return t?r.setUTCHours(0,0,0,0):r.setHours(0,0,0,0),r}function A(e,t,r){"number"!=typeof r&&(r=u());var n=C(e,t);if(isNaN(n.getTime()))return n;for(;(t?n.getUTCDay():n.getDay())!==r;)n=_(n,t);return n}function T(e,t,r){return x(e=A(e,r),7*(t=Math.round(t)),r)}function O(e,t){var r=t?e.getUTCMonth():e.getMonth(),n=t?e.getUTCFullYear():e.getFullYear(),i=new Date;return t?i.setUTCFullYear(n,r,1):i.setFullYear(n,r,1),C(i,t)}function M(e,t){var r=t?e.getUTCFullYear():e.getFullYear(),n=t?e.getUTCMonth():e.getMonth();n=3*Math.floor(n/3);var i=new Date;return t?i.setUTCFullYear(r,n,1):i.setFullYear(r,n,1),C(i,t)}function F(e,t,r){return t=Math.round(t),D(e=M(e,r),3*t,r)}function j(e,t){var r=t?e.getUTCFullYear():e.getFullYear(),n=new Date;return t?n.setUTCFullYear(r,0,1):n.setFullYear(r,0,1),C(n,t)}function B(e,t,r){t=Math.round(t);var n=r?e.getUTCFullYear():e.getFullYear(),i=new Date;return r?i.setUTCFullYear(n+t,0,1):i.setFullYear(n+t,0,1),C(i,r)}function I(e,t,r){return e=C(e,r),t=C(t,r),Math.floor((e.getTime()-t.getTime())/864e5)}function S(e,t,r){return(r?e.getUTCFullYear():e.getFullYear())-(r?t.getUTCFullYear():t.getFullYear())}function D(e,t,r){var n=O(e,r);return r?n.setUTCMonth(n.getUTCMonth()+t):n.setMonth(n.getMonth()+t),C(n,r)}function P(e,t,r){var n=D(e,t,r),i=r?e.getUTCDate():e.getDate(),a=z(r?e.getUTCFullYear():e.getFullYear(),r?e.getUTCFullYear():e.getFullYear());return x(n,(i=Math.min(i,a))-1,r)}function R(e,t){return D(e,1,t)}function L(e,t){return D(e,-1,t)}function z(e,t){var r=new Date(e,t,1);return I(R(r),r)}function N(e,t,r){r=Object.assign({startDayOfWeek:0},r);var n=new RegExp(g.source,"g");return t.replace(n,(function(t){var n=t;switch(t){case"d":case"dd":n=(0,i.integerZeroPadding)(e.getDate(),t.length);break;case"w":case"ww":n=(0,i.integerZeroPadding)(E(e,!1,r.startDayOfWeek||0)+1,t.length);break;case"M":case"MM":n=(0,i.integerZeroPadding)(e.getMonth()+1,t.length);break;case"MMM":n=y[e.getMonth()];break;case"MMMM":n=d[e.getMonth()];break;case"y":case"yyyy":n=(0,i.integerZeroPadding)(e.getFullYear(),t.length);break;case"yy":n=(0,i.integerZeroPadding)(e.getFullYear()%100,t.length);break;case"a":n=e.getHours()<12?"AM":"PM";break;case"H":case"HH":n=(0,i.integerZeroPadding)(e.getHours(),t.length);break;case"h":case"hh":n=(0,i.integerZeroPadding)(1+(e.getHours()-1)%12,t.length);break;case"m":case"mm":n=(0,i.integerZeroPadding)(e.getMinutes(),t.length);break;case"Q":case"QQ":n=(0,i.integerZeroPadding)(Math.floor(e.getMonth()/3)+1,t.length)}return n}))}t.LOCAL_DATE_TIME_FORMAT=w;var U=[/[+-]?\d+$/,function(e){return new Date(parseInt(e[0]))}],Y=[/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*))(?:Z|(\+|-)([\d|:]*))?$/,function(e){return new Date(e[0])}],H=[/^\/Date\((d|-|.*)\)[\/|\\]$/,function(e){return new Date(parseInt(e[1]))}],q=[/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun)\s+([a-zA-Z]{3})\s+[\d\s:]+GMT[\d+]+\s*\([^)]+\)$/,function(e){return new Date(e[0])}]},733:(e,t,r)=>{"use strict";e=r.nmd(e);var n,i,a,o=r(365).Buffer;function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}a="function"==typeof(i=(n=window).atob)?i:"function"==typeof o?function(e){return new o(e,"base64").toString("binary")}:"object"===s(n.base64js)?function(e){var t=n.base64js.b64ToByteArray(e);return Array.prototype.map.call(t,(function(e){return String.fromCharCode(e)})).join("")}:function(){throw new Error("You're probably in an old browser or an iOS webworker. It might help to include beatgammit's base64-js.")},n.atob=a,"object"===s(e)&&e&&e.exports&&(e.exports=a)},943:(e,t)=>{"use strict";t.byteLength=function(e){var t=u(e),r=t[0],n=t[1];return 3*(r+n)/4-n},t.toByteArray=function(e){var t,r,a=u(e),o=a[0],s=a[1],c=new i(function(e,t,r){return 3*(t+r)/4-r}(0,o,s)),l=0,p=s>0?o-4:o;for(r=0;r<p;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],c[l++]=t>>16&255,c[l++]=t>>8&255,c[l++]=255&t;return 2===s&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,c[l++]=255&t),1===s&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,c[l++]=t>>8&255,c[l++]=255&t),c},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,a=[],o=16383,s=0,u=n-i;s<u;s+=o)a.push(c(e,s,s+o>u?u:s+o));return 1===i?(t=e[n-1],a.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],a.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),a.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,s=a.length;o<s;++o)r[o]=a[o],n[a.charCodeAt(o)]=o;function u(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function c(e,t,n){for(var i,a,o=[],s=t;s<n;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),o.push(r[(a=i)>>18&63]+r[a>>12&63]+r[a>>6&63]+r[63&a]);return o.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},835:(e,t,r)=>{"use strict";var n=r(365).Buffer;e.exports=function(e){return(e instanceof n?e:n.from(e.toString(),"binary")).toString("base64")}},365:(e,t,r)=>{"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return s(e)}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var l=r(943),p=r(405),f="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=y,t.SlowBuffer=function(e){return+e!=e&&(e=0),y.alloc(+e)},t.INSPECT_MAX_BYTES=50;var h=2147483647;function d(e){if(e>h)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,y.prototype),t}function y(e,t,r){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return v(e)}return m(e,t,r)}function m(e,t,r){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!y.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=0|_(e,t),n=d(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(re(e,Uint8Array)){var t=new Uint8Array(e);return w(t.buffer,t.byteOffset,t.byteLength)}return b(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+c(e));if(re(e,ArrayBuffer)||e&&re(e.buffer,ArrayBuffer))return w(e,t,r);if("undefined"!=typeof SharedArrayBuffer&&(re(e,SharedArrayBuffer)||e&&re(e.buffer,SharedArrayBuffer)))return w(e,t,r);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return y.from(n,t,r);var i=function(e){if(y.isBuffer(e)){var t=0|x(e.length),r=d(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||ne(e.length)?d(0):b(e):"Buffer"===e.type&&Array.isArray(e.data)?b(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return y.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+c(e))}function g(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function v(e){return g(e),d(e<0?0:0|x(e))}function b(e){for(var t=e.length<0?0:0|x(e.length),r=d(t),n=0;n<t;n+=1)r[n]=255&e[n];return r}function w(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;return n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),Object.setPrototypeOf(n,y.prototype),n}function x(e){if(e>=h)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+h.toString(16)+" bytes");return 0|e}function _(e,t){if(y.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||re(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+c(e));var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return Q(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return ee(e).length;default:if(i)return n?-1:Q(e).length;t=(""+t).toLowerCase(),i=!0}}function E(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return R(this,t,r);case"utf8":case"utf-8":return I(this,t,r);case"ascii":return D(this,t,r);case"latin1":case"binary":return P(this,t,r);case"base64":return B(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function k(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function C(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),ne(r=+r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=y.from(t,n)),y.isBuffer(t))return 0===t.length?-1:A(e,t,r,n,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):A(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function A(e,t,r,n,i){var a,o=1,s=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;o=2,s/=2,u/=2,r/=2}function c(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var l=-1;for(a=r;a<s;a++)if(c(e,a)===c(t,-1===l?0:a-l)){if(-1===l&&(l=a),a-l+1===u)return l*o}else-1!==l&&(a-=a-l),l=-1}else for(r+u>s&&(r=s-u),a=r;a>=0;a--){for(var p=!0,f=0;f<u;f++)if(c(e,a+f)!==c(t,f)){p=!1;break}if(p)return a}return-1}function T(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var a,o=t.length;for(n>o/2&&(n=o/2),a=0;a<n;++a){var s=parseInt(t.substr(2*a,2),16);if(ne(s))return a;e[r+a]=s}return a}function O(e,t,r,n){return te(Q(t,e.length-r),e,r,n)}function M(e,t,r,n){return te(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function F(e,t,r,n){return te(ee(t),e,r,n)}function j(e,t,r,n){return te(function(e,t){for(var r,n,i,a=[],o=0;o<e.length&&!((t-=2)<0);++o)n=(r=e.charCodeAt(o))>>8,i=r%256,a.push(i),a.push(n);return a}(t,e.length-r),e,r,n)}function B(e,t,r){return 0===t&&r===e.length?l.fromByteArray(e):l.fromByteArray(e.slice(t,r))}function I(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var a=e[i],o=null,s=a>239?4:a>223?3:a>191?2:1;if(i+s<=r){var u=void 0,c=void 0,l=void 0,p=void 0;switch(s){case 1:a<128&&(o=a);break;case 2:128==(192&(u=e[i+1]))&&(p=(31&a)<<6|63&u)>127&&(o=p);break;case 3:u=e[i+1],c=e[i+2],128==(192&u)&&128==(192&c)&&(p=(15&a)<<12|(63&u)<<6|63&c)>2047&&(p<55296||p>57343)&&(o=p);break;case 4:u=e[i+1],c=e[i+2],l=e[i+3],128==(192&u)&&128==(192&c)&&128==(192&l)&&(p=(15&a)<<18|(63&u)<<12|(63&c)<<6|63&l)>65535&&p<1114112&&(o=p)}}null===o?(o=65533,s=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|1023&o),n.push(o),i+=s}return function(e){var t=e.length;if(t<=S)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=S));return r}(n)}t.kMaxLength=h,y.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),y.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(y.prototype,"parent",{enumerable:!0,get:function(){if(y.isBuffer(this))return this.buffer}}),Object.defineProperty(y.prototype,"offset",{enumerable:!0,get:function(){if(y.isBuffer(this))return this.byteOffset}}),y.poolSize=8192,y.from=function(e,t,r){return m(e,t,r)},Object.setPrototypeOf(y.prototype,Uint8Array.prototype),Object.setPrototypeOf(y,Uint8Array),y.alloc=function(e,t,r){return function(e,t,r){return g(e),e<=0?d(e):void 0!==t?"string"==typeof r?d(e).fill(t,r):d(e).fill(t):d(e)}(e,t,r)},y.allocUnsafe=function(e){return v(e)},y.allocUnsafeSlow=function(e){return v(e)},y.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==y.prototype},y.compare=function(e,t){if(re(e,Uint8Array)&&(e=y.from(e,e.offset,e.byteLength)),re(t,Uint8Array)&&(t=y.from(t,t.offset,t.byteLength)),!y.isBuffer(e)||!y.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,i=0,a=Math.min(r,n);i<a;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0},y.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},y.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return y.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=y.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){var a=e[r];if(re(a,Uint8Array))i+a.length>n.length?(y.isBuffer(a)||(a=y.from(a)),a.copy(n,i)):Uint8Array.prototype.set.call(n,a,i);else{if(!y.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(n,i)}i+=a.length}return n},y.byteLength=_,y.prototype._isBuffer=!0,y.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)k(this,t,t+1);return this},y.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)k(this,t,t+3),k(this,t+1,t+2);return this},y.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)k(this,t,t+7),k(this,t+1,t+6),k(this,t+2,t+5),k(this,t+3,t+4);return this},y.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?I(this,0,e):E.apply(this,arguments)},y.prototype.toLocaleString=y.prototype.toString,y.prototype.equals=function(e){if(!y.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===y.compare(this,e)},y.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},f&&(y.prototype[f]=y.prototype.inspect),y.prototype.compare=function(e,t,r,n,i){if(re(e,Uint8Array)&&(e=y.from(e,e.offset,e.byteLength)),!y.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+c(e));if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(this===e)return 0;for(var a=(i>>>=0)-(n>>>=0),o=(r>>>=0)-(t>>>=0),s=Math.min(a,o),u=this.slice(n,i),l=e.slice(t,r),p=0;p<s;++p)if(u[p]!==l[p]){a=u[p],o=l[p];break}return a<o?-1:o<a?1:0},y.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},y.prototype.indexOf=function(e,t,r){return C(this,e,t,r,!0)},y.prototype.lastIndexOf=function(e,t,r){return C(this,e,t,r,!1)},y.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-t;if((void 0===r||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var a=!1;;)switch(n){case"hex":return T(this,e,t,r);case"utf8":case"utf-8":return O(this,e,t,r);case"ascii":case"latin1":case"binary":return M(this,e,t,r);case"base64":return F(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,e,t,r);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),a=!0}},y.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var S=4096;function D(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}function P(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function R(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",a=t;a<r;++a)i+=ie[e[a]];return i}function L(e,t,r){for(var n=e.slice(t,r),i="",a=0;a<n.length-1;a+=2)i+=String.fromCharCode(n[a]+256*n[a+1]);return i}function z(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function N(e,t,r,n,i,a){if(!y.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function U(e,t,r,n,i){K(t,n,i,e,r,7);var a=Number(t&BigInt(4294967295));e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a;var o=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o,r}function Y(e,t,r,n,i){K(t,n,i,e,r,7);var a=Number(t&BigInt(4294967295));e[r+7]=a,a>>=8,e[r+6]=a,a>>=8,e[r+5]=a,a>>=8,e[r+4]=a;var o=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=o,o>>=8,e[r+2]=o,o>>=8,e[r+1]=o,o>>=8,e[r]=o,r+8}function H(e,t,r,n,i,a){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function q(e,t,r,n,i){return t=+t,r>>>=0,i||H(e,0,r,4),p.write(e,t,r,n,23,4),r+4}function W(e,t,r,n,i){return t=+t,r>>>=0,i||H(e,0,r,8),p.write(e,t,r,n,52,8),r+8}y.prototype.slice=function(e,t){var r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);var n=this.subarray(e,t);return Object.setPrototypeOf(n,y.prototype),n},y.prototype.readUintLE=y.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||z(e,t,this.length);for(var n=this[e],i=1,a=0;++a<t&&(i*=256);)n+=this[e+a]*i;return n},y.prototype.readUintBE=y.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||z(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},y.prototype.readUint8=y.prototype.readUInt8=function(e,t){return e>>>=0,t||z(e,1,this.length),this[e]},y.prototype.readUint16LE=y.prototype.readUInt16LE=function(e,t){return e>>>=0,t||z(e,2,this.length),this[e]|this[e+1]<<8},y.prototype.readUint16BE=y.prototype.readUInt16BE=function(e,t){return e>>>=0,t||z(e,2,this.length),this[e]<<8|this[e+1]},y.prototype.readUint32LE=y.prototype.readUInt32LE=function(e,t){return e>>>=0,t||z(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},y.prototype.readUint32BE=y.prototype.readUInt32BE=function(e,t){return e>>>=0,t||z(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},y.prototype.readBigUInt64LE=ae((function(e){$(e>>>=0,"offset");var t=this[e],r=this[e+7];void 0!==t&&void 0!==r||X(e,this.length-8);var n=t+this[++e]*Math.pow(2,8)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,24),i=this[++e]+this[++e]*Math.pow(2,8)+this[++e]*Math.pow(2,16)+r*Math.pow(2,24);return BigInt(n)+(BigInt(i)<<BigInt(32))})),y.prototype.readBigUInt64BE=ae((function(e){$(e>>>=0,"offset");var t=this[e],r=this[e+7];void 0!==t&&void 0!==r||X(e,this.length-8);var n=t*Math.pow(2,24)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,8)+this[++e],i=this[++e]*Math.pow(2,24)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,8)+r;return(BigInt(n)<<BigInt(32))+BigInt(i)})),y.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||z(e,t,this.length);for(var n=this[e],i=1,a=0;++a<t&&(i*=256);)n+=this[e+a]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},y.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||z(e,t,this.length);for(var n=t,i=1,a=this[e+--n];n>0&&(i*=256);)a+=this[e+--n]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},y.prototype.readInt8=function(e,t){return e>>>=0,t||z(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},y.prototype.readInt16LE=function(e,t){e>>>=0,t||z(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},y.prototype.readInt16BE=function(e,t){e>>>=0,t||z(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},y.prototype.readInt32LE=function(e,t){return e>>>=0,t||z(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},y.prototype.readInt32BE=function(e,t){return e>>>=0,t||z(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},y.prototype.readBigInt64LE=ae((function(e){$(e>>>=0,"offset");var t=this[e],r=this[e+7];void 0!==t&&void 0!==r||X(e,this.length-8);var n=this[e+4]+this[e+5]*Math.pow(2,8)+this[e+6]*Math.pow(2,16)+(r<<24);return(BigInt(n)<<BigInt(32))+BigInt(t+this[++e]*Math.pow(2,8)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,24))})),y.prototype.readBigInt64BE=ae((function(e){$(e>>>=0,"offset");var t=this[e],r=this[e+7];void 0!==t&&void 0!==r||X(e,this.length-8);var n=(t<<24)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,8)+this[++e];return(BigInt(n)<<BigInt(32))+BigInt(this[++e]*Math.pow(2,24)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,8)+r)})),y.prototype.readFloatLE=function(e,t){return e>>>=0,t||z(e,4,this.length),p.read(this,e,!0,23,4)},y.prototype.readFloatBE=function(e,t){return e>>>=0,t||z(e,4,this.length),p.read(this,e,!1,23,4)},y.prototype.readDoubleLE=function(e,t){return e>>>=0,t||z(e,8,this.length),p.read(this,e,!0,52,8)},y.prototype.readDoubleBE=function(e,t){return e>>>=0,t||z(e,8,this.length),p.read(this,e,!1,52,8)},y.prototype.writeUintLE=y.prototype.writeUIntLE=function(e,t,r,n){e=+e,t>>>=0,r>>>=0,n||N(this,e,t,r,Math.pow(2,8*r)-1,0);var i=1,a=0;for(this[t]=255&e;++a<r&&(i*=256);)this[t+a]=e/i&255;return t+r},y.prototype.writeUintBE=y.prototype.writeUIntBE=function(e,t,r,n){e=+e,t>>>=0,r>>>=0,n||N(this,e,t,r,Math.pow(2,8*r)-1,0);var i=r-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+r},y.prototype.writeUint8=y.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,1,255,0),this[t]=255&e,t+1},y.prototype.writeUint16LE=y.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},y.prototype.writeUint16BE=y.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},y.prototype.writeUint32LE=y.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},y.prototype.writeUint32BE=y.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},y.prototype.writeBigUInt64LE=ae((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return U(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),y.prototype.writeBigUInt64BE=ae((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Y(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),y.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var i=Math.pow(2,8*r-1);N(this,e,t,r,i-1,-i)}var a=0,o=1,s=0;for(this[t]=255&e;++a<r&&(o*=256);)e<0&&0===s&&0!==this[t+a-1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+r},y.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var i=Math.pow(2,8*r-1);N(this,e,t,r,i-1,-i)}var a=r-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+r},y.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},y.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},y.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},y.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},y.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},y.prototype.writeBigInt64LE=ae((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return U(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),y.prototype.writeBigInt64BE=ae((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Y(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),y.prototype.writeFloatLE=function(e,t,r){return q(this,e,t,!0,r)},y.prototype.writeFloatBE=function(e,t,r){return q(this,e,t,!1,r)},y.prototype.writeDoubleLE=function(e,t,r){return W(this,e,t,!0,r)},y.prototype.writeDoubleBE=function(e,t,r){return W(this,e,t,!1,r)},y.prototype.copy=function(e,t,r,n){if(!y.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var i=n-r;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,r,n):Uint8Array.prototype.set.call(e,this.subarray(r,n),t),i},y.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!y.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===e.length){var i=e.charCodeAt(0);("utf8"===n&&i<128||"latin1"===n)&&(e=i)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var a;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(a=t;a<r;++a)this[a]=e;else{var o=y.isBuffer(e)?e:y.from(e,n),s=o.length;if(0===s)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(a=0;a<r-t;++a)this[a+t]=o[a%s]}return this};var G={};function V(e,t,r){G[e]=function(r){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(d,r);var c,l,p,f,h=(p=d,f=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=u(p);if(f){var r=u(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return o(this,e)});function d(){var r;return n(this,d),r=h.call(this),Object.defineProperty(s(r),"message",{value:t.apply(s(r),arguments),writable:!0,configurable:!0}),r.name="".concat(r.name," [").concat(e,"]"),r.stack,delete r.name,r}return c=d,(l=[{key:"code",get:function(){return e},set:function(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}},{key:"toString",value:function(){return"".concat(this.name," [").concat(e,"]: ").concat(this.message)}}])&&i(c.prototype,l),d}(r)}function Z(e){for(var t="",r=e.length,n="-"===e[0]?1:0;r>=n+4;r-=3)t="_".concat(e.slice(r-3,r)).concat(t);return"".concat(e.slice(0,r)).concat(t)}function K(e,t,r,n,i,a){if(e>r||e<t){var o,s="bigint"==typeof t?"n":"";throw o=a>3?0===t||t===BigInt(0)?">= 0".concat(s," and < 2").concat(s," ** ").concat(8*(a+1)).concat(s):">= -(2".concat(s," ** ").concat(8*(a+1)-1).concat(s,") and < 2 ** ")+"".concat(8*(a+1)-1).concat(s):">= ".concat(t).concat(s," and <= ").concat(r).concat(s),new G.ERR_OUT_OF_RANGE("value",o,e)}!function(e,t,r){$(t,"offset"),void 0!==e[t]&&void 0!==e[t+r]||X(t,e.length-(r+1))}(n,i,a)}function $(e,t){if("number"!=typeof e)throw new G.ERR_INVALID_ARG_TYPE(t,"number",e)}function X(e,t,r){if(Math.floor(e)!==e)throw $(e,r),new G.ERR_OUT_OF_RANGE(r||"offset","an integer",e);if(t<0)throw new G.ERR_BUFFER_OUT_OF_BOUNDS;throw new G.ERR_OUT_OF_RANGE(r||"offset",">= ".concat(r?1:0," and <= ").concat(t),e)}V("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?"".concat(e," is outside of buffer bounds"):"Attempt to access memory outside buffer bounds"}),RangeError),V("ERR_INVALID_ARG_TYPE",(function(e,t){return'The "'.concat(e,'" argument must be of type number. Received type ').concat(c(t))}),TypeError),V("ERR_OUT_OF_RANGE",(function(e,t,r){var n='The value of "'.concat(e,'" is out of range.'),i=r;return Number.isInteger(r)&&Math.abs(r)>Math.pow(2,32)?i=Z(String(r)):"bigint"==typeof r&&(i=String(r),(r>Math.pow(BigInt(2),BigInt(32))||r<-Math.pow(BigInt(2),BigInt(32)))&&(i=Z(i)),i+="n"),n+" It must be ".concat(t,". Received ").concat(i)}),RangeError);var J=/[^+/0-9A-Za-z-_]/g;function Q(e,t){var r;t=t||1/0;for(var n=e.length,i=null,a=[],o=0;o<n;++o){if((r=e.charCodeAt(o))>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===n){(t-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return a}function ee(e){return l.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(J,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function te(e,t,r,n){var i;for(i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function re(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function ne(e){return e!=e}var ie=function(){for(var e="0123456789abcdef",t=new Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)t[n+i]=e[r]+e[i];return t}();function ae(e){return"undefined"==typeof BigInt?oe:e}function oe(){throw new Error("BigInt not supported")}},405:(e,t)=>{"use strict";t.read=function(e,t,r,n,i){var a,o,s=8*i-n-1,u=(1<<s)-1,c=u>>1,l=-7,p=r?i-1:0,f=r?-1:1,h=e[t+p];for(p+=f,a=h&(1<<-l)-1,h>>=-l,l+=s;l>0;a=256*a+e[t+p],p+=f,l-=8);for(o=a&(1<<-l)-1,a>>=-l,l+=n;l>0;o=256*o+e[t+p],p+=f,l-=8);if(0===a)a=1-c;else{if(a===u)return o?NaN:1/0*(h?-1:1);o+=Math.pow(2,n),a-=c}return(h?-1:1)*o*Math.pow(2,a-n)},t.write=function(e,t,r,n,i,a){var o,s,u,c=8*a-i-1,l=(1<<c)-1,p=l>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:a-1,d=n?1:-1,y=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=l):(o=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-o))<1&&(o--,u*=2),(t+=o+p>=1?f/u:f*Math.pow(2,1-p))*u>=2&&(o++,u/=2),o+p>=l?(s=0,o=l):o+p>=1?(s=(t*u-1)*Math.pow(2,i),o+=p):(s=t*Math.pow(2,p-1)*Math.pow(2,i),o=0));i>=8;e[r+h]=255&s,h+=d,s/=256,i-=8);for(o=o<<i|s,c+=i;c>0;e[r+h]=255&o,h+=d,o/=256,c-=8);e[r+h-d]|=128*y}},178:(e,t,r)=>{"use strict";r.g.IntlPolyfill=r(857),r(482),r.g.Intl||(r.g.Intl=r.g.IntlPolyfill,r.g.IntlPolyfill.__applyLocaleSensitivePrototypes()),e.exports=r.g.IntlPolyfill},857:(e,t,r)=>{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i,a="function"==typeof Symbol&&"symbol"===n(Symbol.iterator)?function(e){return n(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":n(e)},o=(i="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,r,n){var a=e&&e.defaultProps,o=arguments.length-3;if(t||0===o||(t={}),t&&a)for(var s in a)void 0===t[s]&&(t[s]=a[s]);else t||(t=a||{});if(1===o)t.children=n;else if(o>1){for(var u=Array(o),c=0;c<o;c++)u[c]=arguments[c+3];t.children=u}return{$$typeof:i,type:e,key:void 0===r?null:""+r,ref:null,props:t,_owner:null}}),s=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),u=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},l=void 0===r.g?self:r.g,p=Object.freeze({jsx:o,asyncToGenerator:function(e){return function(){var t=e.apply(this,arguments);return new Promise((function(e,r){return function n(i,a){try{var o=t[i](a),s=o.value}catch(e){return void r(e)}if(!o.done)return Promise.resolve(s).then((function(e){return n("next",e)}),(function(e){return n("throw",e)}));e(s)}("next")}))}},classCallCheck:function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},createClass:s,defineEnumerableProperties:function(e,t){for(var r in t){var n=t[r];n.configurable=n.enumerable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,r,n)}return e},defaults:function(e,t){for(var r=Object.getOwnPropertyNames(t),n=0;n<r.length;n++){var i=r[n],a=Object.getOwnPropertyDescriptor(t,i);a&&a.configurable&&void 0===e[i]&&Object.defineProperty(e,i,a)}return e},defineProperty:u,get:function e(t,r,n){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,r);if(void 0===i){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,n)}if("value"in i)return i.value;var o=i.get;return void 0!==o?o.call(n):void 0},inherits:function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+n(t));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},interopRequireDefault:function(e){return e&&e.__esModule?e:{default:e}},interopRequireWildcard:function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t},newArrowCheck:function(e,t){if(e!==t)throw new TypeError("Cannot instantiate an arrow function")},objectDestructuringEmpty:function(e){if(null==e)throw new TypeError("Cannot destructure undefined")},objectWithoutProperties:function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r},possibleConstructorReturn:function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==n(t)&&"function"!=typeof t?e:t},selfGlobal:l,set:function e(t,r,n,i){var a=Object.getOwnPropertyDescriptor(t,r);if(void 0===a){var o=Object.getPrototypeOf(t);null!==o&&e(o,r,n,i)}else if("value"in a&&a.writable)a.value=n;else{var s=a.set;void 0!==s&&s.call(i,n)}return n},slicedToArray:function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(n=(o=s.next()).done)&&(r.push(o.value),!t||r.length!==t);n=!0);}catch(e){i=!0,a=e}finally{try{!n&&s.return&&s.return()}finally{if(i)throw a}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},slicedToArrayLoose:function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e)){for(var r,n=[],i=e[Symbol.iterator]();!(r=i.next()).done&&(n.push(r.value),!t||n.length!==t););return n}throw new TypeError("Invalid attempt to destructure non-iterable instance")},taggedTemplateLiteral:function(e,t){return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))},taggedTemplateLiteralLoose:function(e,t){return e.raw=t,e},temporalRef:function(e,t,r){if(e===r)throw new ReferenceError(t+" is not defined - temporal dead zone");return e},temporalUndefined:{},toArray:function(e){return Array.isArray(e)?e:Array.from(e)},toConsumableArray:function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)},typeof:a,extends:c,instanceof:function(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?t[Symbol.hasInstance](e):e instanceof t}}),f=function(){var e=function(){};try{return Object.defineProperty(e,"a",{get:function(){return 1}}),Object.defineProperty(e,"prototype",{writable:!1}),1===e.a&&e.prototype instanceof Object}catch(e){return!1}}(),h=!f&&!Object.prototype.__defineGetter__,d=Object.prototype.hasOwnProperty,y=f?Object.defineProperty:function(e,t,r){"get"in r&&e.__defineGetter__?e.__defineGetter__(t,r.get):d.call(e,t)&&!("value"in r)||(e[t]=r.value)},m=Array.prototype.indexOf||function(e){var t=this;if(!t.length)return-1;for(var r=arguments[1]||0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1},g=Object.create||function(e,t){var r;function n(){}for(var i in n.prototype=e,r=new n,t)d.call(t,i)&&y(r,i,t[i]);return r},v=Array.prototype.slice,b=Array.prototype.concat,w=Array.prototype.push,x=Array.prototype.join,_=Array.prototype.shift,E=Function.prototype.bind||function(e){var t=this,r=v.call(arguments,1);return t.length,function(){return t.apply(e,b.call(r,v.call(arguments)))}},k=g(null),C=Math.random();function A(e){for(var t in e)(e instanceof A||d.call(e,t))&&y(this,t,{value:e[t],enumerable:!0,writable:!0,configurable:!0})}function T(){y(this,"length",{writable:!0,value:0}),arguments.length&&w.apply(this,v.call(arguments))}function O(){if(k.disableRegExpRestore)return function(){};for(var e={lastMatch:RegExp.lastMatch||"",leftContext:RegExp.leftContext,multiline:RegExp.multiline,input:RegExp.input},t=!1,r=1;r<=9;r++)t=(e["$"+r]=RegExp["$"+r])||t;return function(){var r=/[.?*+^$[\]\\(){}|-]/g,n=e.lastMatch.replace(r,"\\$&"),i=new T;if(t)for(var a=1;a<=9;a++){var o=e["$"+a];o?(o=o.replace(r,"\\$&"),n=n.replace(o,"("+o+")")):n="()"+n,w.call(i,n.slice(0,n.indexOf("(")+1)),n=n.slice(n.indexOf("(")+1)}var s=x.call(i,"")+n;s=s.replace(/(\\\(|\\\)|[^()])+/g,(function(e){return"[\\s\\S]{"+e.replace("\\","").length+"}"}));var u=new RegExp(s,e.multiline?"gm":"g");u.lastIndex=e.leftContext.length,u.exec(e.input)}}function M(e){if(null===e)throw new TypeError("Cannot convert null or undefined to object");return"object"===(void 0===e?"undefined":p.typeof(e))?e:Object(e)}function F(e){return"number"==typeof e?e:Number(e)}function j(e){return d.call(e,"__getInternalProperties")?e.__getInternalProperties(C):g(null)}A.prototype=g(null),T.prototype=g(null);var B=RegExp("^(?:(?:[a-z]{2,3}(?:-[a-z]{3}(?:-[a-z]{3}){0,2})?|[a-z]{4}|[a-z]{5,8})(?:-[a-z]{4})?(?:-(?:[a-z]{2}|\\d{3}))?(?:-(?:[a-z0-9]{5,8}|\\d[a-z0-9]{3}))*(?:-[0-9a-wy-z](?:-[a-z0-9]{2,8})+)*(?:-x(?:-[a-z0-9]{1,8})+)?|x(?:-[a-z0-9]{1,8})+|(?:(?:en-GB-oed|i-(?:ami|bnn|default|enochian|hak|klingon|lux|mingo|navajo|pwn|tao|tay|tsu)|sgn-(?:BE-FR|BE-NL|CH-DE))|(?:art-lojban|cel-gaulish|no-bok|no-nyn|zh-(?:guoyu|hakka|min|min-nan|xiang))))$","i"),I=RegExp("^(?!x).*?-((?:[a-z0-9]{5,8}|\\d[a-z0-9]{3}))-(?:\\w{4,8}-(?!x-))*\\1\\b","i"),S=RegExp("^(?!x).*?-([0-9a-wy-z])-(?:\\w+-(?!x-))*\\1\\b","i"),D=RegExp("-[0-9a-wy-z](?:-[a-z0-9]{2,8})+","ig"),P=void 0,R={tags:{"art-lojban":"jbo","i-ami":"ami","i-bnn":"bnn","i-hak":"hak","i-klingon":"tlh","i-lux":"lb","i-navajo":"nv","i-pwn":"pwn","i-tao":"tao","i-tay":"tay","i-tsu":"tsu","no-bok":"nb","no-nyn":"nn","sgn-BE-FR":"sfb","sgn-BE-NL":"vgt","sgn-CH-DE":"sgg","zh-guoyu":"cmn","zh-hakka":"hak","zh-min-nan":"nan","zh-xiang":"hsn","sgn-BR":"bzs","sgn-CO":"csn","sgn-DE":"gsg","sgn-DK":"dsl","sgn-ES":"ssp","sgn-FR":"fsl","sgn-GB":"bfi","sgn-GR":"gss","sgn-IE":"isg","sgn-IT":"ise","sgn-JP":"jsl","sgn-MX":"mfs","sgn-NI":"ncs","sgn-NL":"dse","sgn-NO":"nsl","sgn-PT":"psr","sgn-SE":"swl","sgn-US":"ase","sgn-ZA":"sfs","zh-cmn":"cmn","zh-cmn-Hans":"cmn-Hans","zh-cmn-Hant":"cmn-Hant","zh-gan":"gan","zh-wuu":"wuu","zh-yue":"yue"},subtags:{BU:"MM",DD:"DE",FX:"FR",TP:"TL",YD:"YE",ZR:"CD",heploc:"alalc97",in:"id",iw:"he",ji:"yi",jw:"jv",mo:"ro",ayx:"nun",bjd:"drl",ccq:"rki",cjr:"mom",cka:"cmr",cmk:"xch",drh:"khk",drw:"prs",gav:"dev",hrr:"jal",ibi:"opa",kgh:"kml",lcq:"ppr",mst:"mry",myt:"mry",sca:"hle",tie:"ras",tkk:"twm",tlw:"weo",tnf:"prs",ybd:"rki",yma:"lrr"},extLang:{aao:["aao","ar"],abh:["abh","ar"],abv:["abv","ar"],acm:["acm","ar"],acq:["acq","ar"],acw:["acw","ar"],acx:["acx","ar"],acy:["acy","ar"],adf:["adf","ar"],ads:["ads","sgn"],aeb:["aeb","ar"],aec:["aec","ar"],aed:["aed","sgn"],aen:["aen","sgn"],afb:["afb","ar"],afg:["afg","sgn"],ajp:["ajp","ar"],apc:["apc","ar"],apd:["apd","ar"],arb:["arb","ar"],arq:["arq","ar"],ars:["ars","ar"],ary:["ary","ar"],arz:["arz","ar"],ase:["ase","sgn"],asf:["asf","sgn"],asp:["asp","sgn"],asq:["asq","sgn"],asw:["asw","sgn"],auz:["auz","ar"],avl:["avl","ar"],ayh:["ayh","ar"],ayl:["ayl","ar"],ayn:["ayn","ar"],ayp:["ayp","ar"],bbz:["bbz","ar"],bfi:["bfi","sgn"],bfk:["bfk","sgn"],bjn:["bjn","ms"],bog:["bog","sgn"],bqn:["bqn","sgn"],bqy:["bqy","sgn"],btj:["btj","ms"],bve:["bve","ms"],bvl:["bvl","sgn"],bvu:["bvu","ms"],bzs:["bzs","sgn"],cdo:["cdo","zh"],cds:["cds","sgn"],cjy:["cjy","zh"],cmn:["cmn","zh"],coa:["coa","ms"],cpx:["cpx","zh"],csc:["csc","sgn"],csd:["csd","sgn"],cse:["cse","sgn"],csf:["csf","sgn"],csg:["csg","sgn"],csl:["csl","sgn"],csn:["csn","sgn"],csq:["csq","sgn"],csr:["csr","sgn"],czh:["czh","zh"],czo:["czo","zh"],doq:["doq","sgn"],dse:["dse","sgn"],dsl:["dsl","sgn"],dup:["dup","ms"],ecs:["ecs","sgn"],esl:["esl","sgn"],esn:["esn","sgn"],eso:["eso","sgn"],eth:["eth","sgn"],fcs:["fcs","sgn"],fse:["fse","sgn"],fsl:["fsl","sgn"],fss:["fss","sgn"],gan:["gan","zh"],gds:["gds","sgn"],gom:["gom","kok"],gse:["gse","sgn"],gsg:["gsg","sgn"],gsm:["gsm","sgn"],gss:["gss","sgn"],gus:["gus","sgn"],hab:["hab","sgn"],haf:["haf","sgn"],hak:["hak","zh"],hds:["hds","sgn"],hji:["hji","ms"],hks:["hks","sgn"],hos:["hos","sgn"],hps:["hps","sgn"],hsh:["hsh","sgn"],hsl:["hsl","sgn"],hsn:["hsn","zh"],icl:["icl","sgn"],ils:["ils","sgn"],inl:["inl","sgn"],ins:["ins","sgn"],ise:["ise","sgn"],isg:["isg","sgn"],isr:["isr","sgn"],jak:["jak","ms"],jax:["jax","ms"],jcs:["jcs","sgn"],jhs:["jhs","sgn"],jls:["jls","sgn"],jos:["jos","sgn"],jsl:["jsl","sgn"],jus:["jus","sgn"],kgi:["kgi","sgn"],knn:["knn","kok"],kvb:["kvb","ms"],kvk:["kvk","sgn"],kvr:["kvr","ms"],kxd:["kxd","ms"],lbs:["lbs","sgn"],lce:["lce","ms"],lcf:["lcf","ms"],liw:["liw","ms"],lls:["lls","sgn"],lsg:["lsg","sgn"],lsl:["lsl","sgn"],lso:["lso","sgn"],lsp:["lsp","sgn"],lst:["lst","sgn"],lsy:["lsy","sgn"],ltg:["ltg","lv"],lvs:["lvs","lv"],lzh:["lzh","zh"],max:["max","ms"],mdl:["mdl","sgn"],meo:["meo","ms"],mfa:["mfa","ms"],mfb:["mfb","ms"],mfs:["mfs","sgn"],min:["min","ms"],mnp:["mnp","zh"],mqg:["mqg","ms"],mre:["mre","sgn"],msd:["msd","sgn"],msi:["msi","ms"],msr:["msr","sgn"],mui:["mui","ms"],mzc:["mzc","sgn"],mzg:["mzg","sgn"],mzy:["mzy","sgn"],nan:["nan","zh"],nbs:["nbs","sgn"],ncs:["ncs","sgn"],nsi:["nsi","sgn"],nsl:["nsl","sgn"],nsp:["nsp","sgn"],nsr:["nsr","sgn"],nzs:["nzs","sgn"],okl:["okl","sgn"],orn:["orn","ms"],ors:["ors","ms"],pel:["pel","ms"],pga:["pga","ar"],pks:["pks","sgn"],prl:["prl","sgn"],prz:["prz","sgn"],psc:["psc","sgn"],psd:["psd","sgn"],pse:["pse","ms"],psg:["psg","sgn"],psl:["psl","sgn"],pso:["pso","sgn"],psp:["psp","sgn"],psr:["psr","sgn"],pys:["pys","sgn"],rms:["rms","sgn"],rsi:["rsi","sgn"],rsl:["rsl","sgn"],sdl:["sdl","sgn"],sfb:["sfb","sgn"],sfs:["sfs","sgn"],sgg:["sgg","sgn"],sgx:["sgx","sgn"],shu:["shu","ar"],slf:["slf","sgn"],sls:["sls","sgn"],sqk:["sqk","sgn"],sqs:["sqs","sgn"],ssh:["ssh","ar"],ssp:["ssp","sgn"],ssr:["ssr","sgn"],svk:["svk","sgn"],swc:["swc","sw"],swh:["swh","sw"],swl:["swl","sgn"],syy:["syy","sgn"],tmw:["tmw","ms"],tse:["tse","sgn"],tsm:["tsm","sgn"],tsq:["tsq","sgn"],tss:["tss","sgn"],tsy:["tsy","sgn"],tza:["tza","sgn"],ugn:["ugn","sgn"],ugy:["ugy","sgn"],ukl:["ukl","sgn"],uks:["uks","sgn"],urk:["urk","ms"],uzn:["uzn","uz"],uzs:["uzs","uz"],vgt:["vgt","sgn"],vkk:["vkk","ms"],vkt:["vkt","ms"],vsi:["vsi","sgn"],vsl:["vsl","sgn"],vsv:["vsv","sgn"],wuu:["wuu","zh"],xki:["xki","sgn"],xml:["xml","sgn"],xmm:["xmm","ms"],xms:["xms","sgn"],yds:["yds","sgn"],ysl:["ysl","sgn"],yue:["yue","zh"],zib:["zib","sgn"],zlm:["zlm","ms"],zmi:["zmi","ms"],zsl:["zsl","sgn"],zsm:["zsm","ms"]}};function L(e){for(var t=e.length;t--;){var r=e.charAt(t);r>="a"&&r<="z"&&(e=e.slice(0,t)+r.toUpperCase()+e.slice(t+1))}return e}function z(e){return!!B.test(e)&&!I.test(e)&&!S.test(e)}function N(e){for(var t=void 0,r=void 0,n=1,i=(r=(e=e.toLowerCase()).split("-")).length;n<i;n++)if(2===r[n].length)r[n]=r[n].toUpperCase();else if(4===r[n].length)r[n]=r[n].charAt(0).toUpperCase()+r[n].slice(1);else if(1===r[n].length&&"x"!==r[n])break;(t=(e=x.call(r,"-")).match(D))&&t.length>1&&(t.sort(),e=e.replace(RegExp("(?:"+D.source+")+","i"),x.call(t,""))),d.call(R.tags,e)&&(e=R.tags[e]);for(var a=1,o=(r=e.split("-")).length;a<o;a++)d.call(R.subtags,r[a])?r[a]=R.subtags[r[a]]:d.call(R.extLang,r[a])&&(r[a]=R.extLang[r[a]][0],1===a&&R.extLang[r[1]][1]===r[0]&&(r=v.call(r,a++),o-=1));return x.call(r,"-")}var U=/^[A-Z]{3}$/,Y=/-u(?:-[0-9a-z]{2,8})+/gi;function H(e){if(void 0===e)return new T;for(var t=new T,r=M(e="string"==typeof e?[e]:e),n=function(e){var t=function(e){var t=F(e);return isNaN(t)?0:0===t||-0===t||t===1/0||t===-1/0?t:t<0?-1*Math.floor(Math.abs(t)):Math.floor(Math.abs(t))}(e);return t<=0?0:t===1/0?Math.pow(2,53)-1:Math.min(t,Math.pow(2,53)-1)}(r.length),i=0;i<n;){var a=String(i);if(a in r){var o=r[a];if(null===o||"string"!=typeof o&&"object"!==(void 0===o?"undefined":p.typeof(o)))throw new TypeError("String or Object type expected");var s=String(o);if(!z(s))throw new RangeError("'"+s+"' is not a structurally valid language tag");s=N(s),-1===m.call(t,s)&&w.call(t,s)}i++}return t}function q(e,t){for(var r=t;r;){if(m.call(e,r)>-1)return r;var n=r.lastIndexOf("-");if(n<0)return;n>=2&&"-"===r.charAt(n-2)&&(n-=2),r=r.substring(0,n)}}function W(e,t){for(var r=0,n=t.length,i=void 0,a=void 0,o=void 0;r<n&&!i;)a=t[r],i=q(e,o=String(a).replace(Y,"")),r++;var s=new A;if(void 0!==i){if(s["[[locale]]"]=i,String(a)!==String(o)){var u=a.match(Y)[0],c=a.indexOf("-u-");s["[[extension]]"]=u,s["[[extensionIndex]]"]=c}}else s["[[locale]]"]=P;return s}function G(e,t,r,n,i){if(0===e.length)throw new ReferenceError("No locale data has been provided for this object yet.");var a,o=(a="lookup"===r["[[localeMatcher]]"]?W(e,t):function(e,t){return W(e,t)}(e,t))["[[locale]]"],s=void 0,u=void 0;if(d.call(a,"[[extension]]")){var c=a["[[extension]]"];u=(s=String.prototype.split.call(c,"-")).length}var l=new A;l["[[dataLocale]]"]=o;for(var p="-u",f=0,h=n.length;f<h;){var y=n[f],g=i[o][y],v=g[0],b="",w=m;if(void 0!==s){var x=w.call(s,y);if(-1!==x)if(x+1<u&&s[x+1].length>2){var _=s[x+1];-1!==w.call(g,_)&&(b="-"+y+"-"+(v=_))}else-1!==w(g,"true")&&(v="true")}if(d.call(r,"[["+y+"]]")){var E=r["[["+y+"]]"];-1!==w.call(g,E)&&E!==v&&(v=E,b="")}l["[["+y+"]]"]=v,p+=b,f++}if(p.length>2){var k=o.indexOf("-x-");if(-1===k)o+=p;else{var C=o.substring(0,k),T=o.substring(k);o=C+p+T}o=N(o)}return l["[[locale]]"]=o,l}function V(e,t){for(var r=t.length,n=new T,i=0;i<r;){var a=t[i];void 0!==q(e,String(a).replace(Y,""))&&w.call(n,a),i++}return v.call(n)}function Z(e,t,r){var n,i=void 0;if(void 0!==r&&void 0!==(i=(r=new A(M(r))).localeMatcher)&&"lookup"!==(i=String(i))&&"best fit"!==i)throw new RangeError('matcher should be "lookup" or "best fit"');for(var a in n=void 0===i||"best fit"===i?function(e,t){return V(e,t)}(e,t):V(e,t))d.call(n,a)&&y(n,a,{writable:!1,configurable:!1,value:n[a]});return y(n,"length",{writable:!1}),n}function K(e,t,r,n,i){var a=e[t];if(void 0!==a){if(a="boolean"===r?Boolean(a):"string"===r?String(a):a,void 0!==n&&-1===m.call(n,a))throw new RangeError("'"+a+"' is not an allowed value for `"+t+"`");return a}return i}function $(e,t,r,n,i){var a=e[t];if(void 0!==a){if(a=Number(a),isNaN(a)||a<r||a>n)throw new RangeError("Value is not a number or outside accepted range");return Math.floor(a)}return i}var X={};Object.defineProperty(X,"getCanonicalLocales",{enumerable:!1,configurable:!0,writable:!0,value:function(e){for(var t=H(e),r=[],n=t.length,i=0;i<n;)r[i]=t[i],i++;return r}});var J={BHD:3,BYR:0,XOF:0,BIF:0,XAF:0,CLF:4,CLP:0,KMF:0,DJF:0,XPF:0,GNF:0,ISK:0,IQD:3,JPY:0,JOD:3,KRW:0,KWD:3,LYD:3,OMR:3,PYG:0,RWF:0,TND:3,UGX:0,UYI:0,VUV:0,VND:0};function Q(){var e=arguments[0],t=arguments[1];return this&&this!==X?ee(M(this),e,t):new X.NumberFormat(e,t)}function ee(e,t,r){var n=j(e),i=O();if(!0===n["[[initializedIntlObject]]"])throw new TypeError("`this` object has already been initialized as an Intl object");y(e,"__getInternalProperties",{value:function(){if(arguments[0]===C)return n}}),n["[[initializedIntlObject]]"]=!0;var a=H(t);r=void 0===r?{}:M(r);var o=new A,s=K(r,"localeMatcher","string",new T("lookup","best fit"),"best fit");o["[[localeMatcher]]"]=s;var u=k.NumberFormat["[[localeData]]"],c=G(k.NumberFormat["[[availableLocales]]"],a,o,k.NumberFormat["[[relevantExtensionKeys]]"],u);n["[[locale]]"]=c["[[locale]]"],n["[[numberingSystem]]"]=c["[[nu]]"],n["[[dataLocale]]"]=c["[[dataLocale]]"];var l=c["[[dataLocale]]"],p=K(r,"style","string",new T("decimal","percent","currency"),"decimal");n["[[style]]"]=p;var f,d=K(r,"currency","string");if(void 0!==d&&(f=L(String(d)),!1===U.test(f)))throw new RangeError("'"+d+"' is not a valid currency code");if("currency"===p&&void 0===d)throw new TypeError("Currency code is required when style is currency");var m,g=void 0;"currency"===p&&(d=d.toUpperCase(),n["[[currency]]"]=d,g=void 0!==J[m=d]?J[m]:2);var v=K(r,"currencyDisplay","string",new T("code","symbol","name"),"symbol");"currency"===p&&(n["[[currencyDisplay]]"]=v);var b=$(r,"minimumIntegerDigits",1,21,1);n["[[minimumIntegerDigits]]"]=b;var w=$(r,"minimumFractionDigits",0,20,"currency"===p?g:0);n["[[minimumFractionDigits]]"]=w;var x=$(r,"maximumFractionDigits",w,20,"currency"===p?Math.max(w,g):"percent"===p?Math.max(w,0):Math.max(w,3));n["[[maximumFractionDigits]]"]=x;var _=r.minimumSignificantDigits,E=r.maximumSignificantDigits;void 0===_&&void 0===E||(_=$(r,"minimumSignificantDigits",1,21,1),E=$(r,"maximumSignificantDigits",_,21,21),n["[[minimumSignificantDigits]]"]=_,n["[[maximumSignificantDigits]]"]=E);var F=K(r,"useGrouping","boolean",void 0,!0);n["[[useGrouping]]"]=F;var B=u[l].patterns[p];return n["[[positivePattern]]"]=B.positivePattern,n["[[negativePattern]]"]=B.negativePattern,n["[[boundFormat]]"]=void 0,n["[[initializedNumberFormat]]"]=!0,h&&(e.format=te.call(e)),i(),e}function te(){var e=null!==this&&"object"===p.typeof(this)&&j(this);if(!e||!e["[[initializedNumberFormat]]"])throw new TypeError("`this` value for format() is not an initialized Intl.NumberFormat object.");if(void 0===e["[[boundFormat]]"]){var t=E.call((function(e){return ie(this,Number(e))}),this);e["[[boundFormat]]"]=t}return e["[[boundFormat]]"]}function re(e,t){for(var r=ne(e,t),n=[],i=0,a=0;r.length>a;a++){var o=r[a],s={};s.type=o["[[type]]"],s.value=o["[[value]]"],n[i]=s,i+=1}return n}function ne(e,t){var r=j(e),n=r["[[dataLocale]]"],i=r["[[numberingSystem]]"],a=k.NumberFormat["[[localeData]]"][n],o=a.symbols[i]||a.symbols.latn,s=void 0;!isNaN(t)&&t<0?(t=-t,s=r["[[negativePattern]]"]):s=r["[[positivePattern]]"];for(var u=new T,c=s.indexOf("{",0),l=0,p=0,f=s.length;c>-1&&c<f;){if(-1===(l=s.indexOf("}",c)))throw new Error;if(c>p){var h=s.substring(p,c);w.call(u,{"[[type]]":"literal","[[value]]":h})}var y=s.substring(c+1,l);if("number"===y)if(isNaN(t)){var m=o.nan;w.call(u,{"[[type]]":"nan","[[value]]":m})}else if(isFinite(t)){"percent"===r["[[style]]"]&&isFinite(t)&&(t*=100);var g=void 0;g=d.call(r,"[[minimumSignificantDigits]]")&&d.call(r,"[[maximumSignificantDigits]]")?ae(t,r["[[minimumSignificantDigits]]"],r["[[maximumSignificantDigits]]"]):oe(t,r["[[minimumIntegerDigits]]"],r["[[minimumFractionDigits]]"],r["[[maximumFractionDigits]]"]),se[i]?function(){var e=se[i];g=String(g).replace(/\d/g,(function(t){return e[t]}))}():g=String(g);var v=void 0,b=void 0,x=g.indexOf(".",0);if(x>0?(v=g.substring(0,x),b=g.substring(x+1,x.length)):(v=g,b=void 0),!0===r["[[useGrouping]]"]){var E=o.group,C=[],A=a.patterns.primaryGroupSize||3,O=a.patterns.secondaryGroupSize||A;if(v.length>A){var M=v.length-A,F=M%O,B=v.slice(0,F);for(B.length&&w.call(C,B);F<M;)w.call(C,v.slice(F,F+O)),F+=O;w.call(C,v.slice(M))}else w.call(C,v);if(0===C.length)throw new Error;for(;C.length;){var I=_.call(C);w.call(u,{"[[type]]":"integer","[[value]]":I}),C.length&&w.call(u,{"[[type]]":"group","[[value]]":E})}}else w.call(u,{"[[type]]":"integer","[[value]]":v});if(void 0!==b){var S=o.decimal;w.call(u,{"[[type]]":"decimal","[[value]]":S}),w.call(u,{"[[type]]":"fraction","[[value]]":b})}}else{var D=o.infinity;w.call(u,{"[[type]]":"infinity","[[value]]":D})}else if("plusSign"===y){var P=o.plusSign;w.call(u,{"[[type]]":"plusSign","[[value]]":P})}else if("minusSign"===y){var R=o.minusSign;w.call(u,{"[[type]]":"minusSign","[[value]]":R})}else if("percentSign"===y&&"percent"===r["[[style]]"]){var L=o.percentSign;w.call(u,{"[[type]]":"literal","[[value]]":L})}else if("currency"===y&&"currency"===r["[[style]]"]){var z=r["[[currency]]"],N=void 0;"code"===r["[[currencyDisplay]]"]?N=z:"symbol"===r["[[currencyDisplay]]"]?N=a.currencies[z]||z:"name"===r["[[currencyDisplay]]"]&&(N=z),w.call(u,{"[[type]]":"currency","[[value]]":N})}else{var U=s.substring(c,l);w.call(u,{"[[type]]":"literal","[[value]]":U})}p=l+1,c=s.indexOf("{",p)}if(p<f){var Y=s.substring(p,f);w.call(u,{"[[type]]":"literal","[[value]]":Y})}return u}function ie(e,t){for(var r=ne(e,t),n="",i=0;r.length>i;i++)n+=r[i]["[[value]]"];return n}function ae(e,t,r){var n=r,i=void 0,a=void 0;if(0===e)i=x.call(Array(n+1),"0"),a=0;else{a=function(e){if("function"==typeof Math.log10)return Math.floor(Math.log10(e));var t=Math.round(Math.log(e)*Math.LOG10E);return t-(Number("1e"+t)>e)}(Math.abs(e));var o=Math.round(Math.exp(Math.abs(a-n+1)*Math.LN10));i=String(Math.round(a-n+1<0?e*o:e/o))}if(a>=n)return i+x.call(Array(a-n+1+1),"0");if(a===n-1)return i;if(a>=0?i=i.slice(0,a+1)+"."+i.slice(a+1):a<0&&(i="0."+x.call(Array(1-(a+1)),"0")+i),i.indexOf(".")>=0&&r>t){for(var s=r-t;s>0&&"0"===i.charAt(i.length-1);)i=i.slice(0,-1),s--;"."===i.charAt(i.length-1)&&(i=i.slice(0,-1))}return i}function oe(e,t,r,n){var i,a=n,o=Math.pow(10,a)*e,s=0===o?"0":o.toFixed(0),u=(i=s.indexOf("e"))>-1?s.slice(i+1):0;u&&(s=s.slice(0,i).replace(".",""),s+=x.call(Array(u-(s.length-1)+1),"0"));var c=void 0;if(0!==a){var l=s.length;l<=a&&(s=x.call(Array(a+1-l+1),"0")+s,l=a+1);var p=s.substring(0,l-a),f=s.substring(l-a,s.length);s=p+"."+f,c=p.length}else c=s.length;for(var h=n-r;h>0&&"0"===s.slice(-1);)s=s.slice(0,-1),h--;return"."===s.slice(-1)&&(s=s.slice(0,-1)),c<t&&(s=x.call(Array(t-c+1),"0")+s),s}y(X,"NumberFormat",{configurable:!0,writable:!0,value:Q}),y(X.NumberFormat,"prototype",{writable:!1}),k.NumberFormat={"[[availableLocales]]":[],"[[relevantExtensionKeys]]":["nu"],"[[localeData]]":{}},y(X.NumberFormat,"supportedLocalesOf",{configurable:!0,writable:!0,value:E.call((function(e){if(!d.call(this,"[[availableLocales]]"))throw new TypeError("supportedLocalesOf() is not a constructor");var t=O(),r=arguments[1],n=this["[[availableLocales]]"],i=H(e);return t(),Z(n,i,r)}),k.NumberFormat)}),y(X.NumberFormat.prototype,"format",{configurable:!0,get:te}),Object.defineProperty(X.NumberFormat.prototype,"formatToParts",{configurable:!0,enumerable:!1,writable:!0,value:function(){var e=arguments.length<=0||void 0===arguments[0]?void 0:arguments[0],t=null!==this&&"object"===p.typeof(this)&&j(this);if(!t||!t["[[initializedNumberFormat]]"])throw new TypeError("`this` value for formatToParts() is not an initialized Intl.NumberFormat object.");var r=Number(e);return re(this,r)}});var se={arab:["٠","١","٢","٣","٤","٥","٦","٧","٨","٩"],arabext:["۰","۱","۲","۳","۴","۵","۶","۷","۸","۹"],bali:["᭐","᭑","᭒","᭓","᭔","᭕","᭖","᭗","᭘","᭙"],beng:["০","১","২","৩","৪","৫","৬","৭","৮","৯"],deva:["०","१","२","३","४","५","६","७","८","९"],fullwide:["0","1","2","3","4","5","6","7","8","9"],gujr:["૦","૧","૨","૩","૪","૫","૬","૭","૮","૯"],guru:["੦","੧","੨","੩","੪","੫","੬","੭","੮","੯"],hanidec:["〇","一","二","三","四","五","六","七","八","九"],khmr:["០","១","២","៣","៤","៥","៦","៧","៨","៩"],knda:["೦","೧","೨","೩","೪","೫","೬","೭","೮","೯"],laoo:["໐","໑","໒","໓","໔","໕","໖","໗","໘","໙"],latn:["0","1","2","3","4","5","6","7","8","9"],limb:["᥆","᥇","᥈","᥉","᥊","᥋","᥌","᥍","᥎","᥏"],mlym:["൦","൧","൨","൩","൪","൫","൬","൭","൮","൯"],mong:["᠐","᠑","᠒","᠓","᠔","᠕","᠖","᠗","᠘","᠙"],mymr:["၀","၁","၂","၃","၄","၅","၆","၇","၈","၉"],orya:["୦","୧","୨","୩","୪","୫","୬","୭","୮","୯"],tamldec:["௦","௧","௨","௩","௪","௫","௬","௭","௮","௯"],telu:["౦","౧","౨","౩","౪","౫","౬","౭","౮","౯"],thai:["๐","๑","๒","๓","๔","๕","๖","๗","๘","๙"],tibt:["༠","༡","༢","༣","༤","༥","༦","༧","༨","༩"]};y(X.NumberFormat.prototype,"resolvedOptions",{configurable:!0,writable:!0,value:function(){var e=void 0,t=new A,r=["locale","numberingSystem","style","currency","currencyDisplay","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","useGrouping"],n=null!==this&&"object"===p.typeof(this)&&j(this);if(!n||!n["[[initializedNumberFormat]]"])throw new TypeError("`this` value for resolvedOptions() is not an initialized Intl.NumberFormat object.");for(var i=0,a=r.length;i<a;i++)d.call(n,e="[["+r[i]+"]]")&&(t[r[i]]={value:n[e],writable:!0,configurable:!0,enumerable:!0});return g({},t)}});var ue=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g,ce=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,le=/[rqQASjJgwWIQq]/,pe=["era","year","month","day","weekday","quarter"],fe=["hour","minute","second","hour12","timeZoneName"];function he(e){for(var t=0;t<fe.length;t+=1)if(e.hasOwnProperty(fe[t]))return!1;return!0}function de(e){for(var t=0;t<pe.length;t+=1)if(e.hasOwnProperty(pe[t]))return!1;return!0}function ye(e,t){for(var r={_:{}},n=0;n<pe.length;n+=1)e[pe[n]]&&(r[pe[n]]=e[pe[n]]),e._[pe[n]]&&(r._[pe[n]]=e._[pe[n]]);for(var i=0;i<fe.length;i+=1)t[fe[i]]&&(r[fe[i]]=t[fe[i]]),t._[fe[i]]&&(r._[fe[i]]=t._[fe[i]]);return r}function me(e){return e.pattern12=e.extendedPattern.replace(/'([^']*)'/g,(function(e,t){return t||"'"})),e.pattern=e.pattern12.replace("{ampm}","").replace(ce,""),e}function ge(e,t){switch(e.charAt(0)){case"G":return t.era=["short","short","short","long","narrow"][e.length-1],"{era}";case"y":case"Y":case"u":case"U":case"r":return t.year=2===e.length?"2-digit":"numeric","{year}";case"Q":case"q":return t.quarter=["numeric","2-digit","short","long","narrow"][e.length-1],"{quarter}";case"M":case"L":return t.month=["numeric","2-digit","short","long","narrow"][e.length-1],"{month}";case"w":return t.week=2===e.length?"2-digit":"numeric","{weekday}";case"W":return t.week="numeric","{weekday}";case"d":return t.day=2===e.length?"2-digit":"numeric","{day}";case"D":case"F":case"g":return t.day="numeric","{day}";case"E":return t.weekday=["short","short","short","long","narrow","short"][e.length-1],"{weekday}";case"e":return t.weekday=["numeric","2-digit","short","long","narrow","short"][e.length-1],"{weekday}";case"c":return t.weekday=["numeric",void 0,"short","long","narrow","short"][e.length-1],"{weekday}";case"a":case"b":case"B":return t.hour12=!0,"{ampm}";case"h":case"H":return t.hour=2===e.length?"2-digit":"numeric","{hour}";case"k":case"K":return t.hour12=!0,t.hour=2===e.length?"2-digit":"numeric","{hour}";case"m":return t.minute=2===e.length?"2-digit":"numeric","{minute}";case"s":return t.second=2===e.length?"2-digit":"numeric","{second}";case"S":case"A":return t.second="numeric","{second}";case"z":case"Z":case"O":case"v":case"V":case"X":case"x":return t.timeZoneName=e.length<4?"short":"long","{timeZoneName}"}}function ve(e,t){if(!le.test(t)){var r={originalPattern:t,_:{}};return r.extendedPattern=t.replace(ue,(function(e){return ge(e,r._)})),e.replace(ue,(function(e){return ge(e,r)})),me(r)}}var be={second:{numeric:"s","2-digit":"ss"},minute:{numeric:"m","2-digit":"mm"},year:{numeric:"y","2-digit":"yy"},day:{numeric:"d","2-digit":"dd"},month:{numeric:"L","2-digit":"LL",narrow:"LLLLL",short:"LLL",long:"LLLL"},weekday:{narrow:"ccccc",short:"ccc",long:"cccc"}},we=g(null,{narrow:{},short:{},long:{}});function xe(e,t,r,n,i){var a=e[t]&&e[t][r]?e[t][r]:e.gregory[r],o={narrow:["short","long"],short:["long","narrow"],long:["short","narrow"]},s=d.call(a,n)?a[n]:d.call(a,o[n][0])?a[o[n][0]]:a[o[n][1]];return null!==i?s[i]:s}function _e(){var e=arguments[0],t=arguments[1];return this&&this!==X?Ee(M(this),e,t):new X.DateTimeFormat(e,t)}function Ee(e,t,r){var n=j(e),i=O();if(!0===n["[[initializedIntlObject]]"])throw new TypeError("`this` object has already been initialized as an Intl object");y(e,"__getInternalProperties",{value:function(){if(arguments[0]===C)return n}}),n["[[initializedIntlObject]]"]=!0;var a=H(t);r=Ce(r,"any","date");var o=new A,s=K(r,"localeMatcher","string",new T("lookup","best fit"),"best fit");o["[[localeMatcher]]"]=s;var c=k.DateTimeFormat,l=c["[[localeData]]"],p=G(c["[[availableLocales]]"],a,o,c["[[relevantExtensionKeys]]"],l);n["[[locale]]"]=p["[[locale]]"],n["[[calendar]]"]=p["[[ca]]"],n["[[numberingSystem]]"]=p["[[nu]]"],n["[[dataLocale]]"]=p["[[dataLocale]]"];var f=p["[[dataLocale]]"],g=r.timeZone;if(void 0!==g&&"UTC"!==(g=L(g)))throw new RangeError("timeZone is not supported.");for(var v in n["[[timeZone]]"]=g,o=new A,ke)if(d.call(ke,v)){var b=K(r,v,"string",ke[v]);o["[["+v+"]]"]=b}var w=void 0,x=l[f],_=function(e){return"[object Array]"===Object.prototype.toString.call(e)?e:function(e){var t=e.availableFormats,r=e.timeFormats,n=e.dateFormats,i=[],a=void 0,o=void 0,s=void 0,u=void 0,c=void 0,l=[],p=[];for(a in t)t.hasOwnProperty(a)&&(s=ve(a,o=t[a]))&&(i.push(s),he(s)?p.push(s):de(s)&&l.push(s));for(a in r)r.hasOwnProperty(a)&&(s=ve(a,o=r[a]))&&(i.push(s),l.push(s));for(a in n)n.hasOwnProperty(a)&&(s=ve(a,o=n[a]))&&(i.push(s),p.push(s));for(u=0;u<l.length;u+=1)for(c=0;c<p.length;c+=1)o="long"===p[c].month?p[c].weekday?e.full:e.long:"short"===p[c].month?e.medium:e.short,(s=ye(p[c],l[u])).originalPattern=o,s.extendedPattern=o.replace("{0}",l[u].extendedPattern).replace("{1}",p[c].extendedPattern).replace(/^[,\s]+|[,\s]+$/gi,""),i.push(me(s));return i}(e)}(x.formats);if(s=K(r,"formatMatcher","string",new T("basic","best fit"),"best fit"),x.formats=_,"basic"===s)w=function(e,t){for(var r=-1/0,n=void 0,i=0,a=t.length;i<a;){var o=t[i],s=0;for(var u in ke)if(d.call(ke,u)){var c=e["[["+u+"]]"],l=d.call(o,u)?o[u]:void 0;if(void 0===c&&void 0!==l)s-=20;else if(void 0!==c&&void 0===l)s-=120;else{var p=["2-digit","numeric","narrow","short","long"],f=m.call(p,c),h=m.call(p,l),y=Math.max(Math.min(h-f,2),-2);2===y?s-=6:1===y?s-=3:-1===y?s-=6:-2===y&&(s-=8)}}s>r&&(r=s,n=o),i++}return n}(o,_);else{var E=K(r,"hour12","boolean");o.hour12=void 0===E?x.hour12:E,w=function(e,t){var r=[];for(var n in ke)d.call(ke,n)&&void 0!==e["[["+n+"]]"]&&r.push(n);if(1===r.length){var i=function(e,t){var r;if(be[e]&&be[e][t])return r={originalPattern:be[e][t],_:u({},e,t),extendedPattern:"{"+e+"}"},u(r,e,t),u(r,"pattern12","{"+e+"}"),u(r,"pattern","{"+e+"}"),r}(r[0],e["[["+r[0]+"]]"]);if(i)return i}for(var a=-1/0,o=void 0,s=0,c=t.length;s<c;){var l=t[s],p=0;for(var f in ke)if(d.call(ke,f)){var h=e["[["+f+"]]"],y=d.call(l,f)?l[f]:void 0;if(h!==(d.call(l._,f)?l._[f]:void 0)&&(p-=2),void 0===h&&void 0!==y)p-=20;else if(void 0!==h&&void 0===y)p-=120;else{var g=["2-digit","numeric","narrow","short","long"],v=m.call(g,h),b=m.call(g,y),w=Math.max(Math.min(b-v,2),-2);b<=1&&v>=2||b>=2&&v<=1?w>0?p-=6:w<0&&(p-=8):w>1?p-=3:w<-1&&(p-=6)}}l._.hour12!==e.hour12&&(p-=1),p>a&&(a=p,o=l),s++}return o}(o,_)}for(var M in ke)if(d.call(ke,M)&&d.call(w,M)){var F=w[M];F=w._&&d.call(w._,M)?w._[M]:F,n["[["+M+"]]"]=F}var B=void 0,I=K(r,"hour12","boolean");if(n["[[hour]]"])if(I=void 0===I?x.hour12:I,n["[[hour12]]"]=I,!0===I){var S=x.hourNo0;n["[[hourNo0]]"]=S,B=w.pattern12}else B=w.pattern;else B=w.pattern;return n["[[pattern]]"]=B,n["[[boundFormat]]"]=void 0,n["[[initializedDateTimeFormat]]"]=!0,h&&(e.format=Ae.call(e)),i(),e}y(X,"DateTimeFormat",{configurable:!0,writable:!0,value:_e}),y(_e,"prototype",{writable:!1});var ke={weekday:["narrow","short","long"],era:["narrow","short","long"],year:["2-digit","numeric"],month:["2-digit","numeric","narrow","short","long"],day:["2-digit","numeric"],hour:["2-digit","numeric"],minute:["2-digit","numeric"],second:["2-digit","numeric"],timeZoneName:["short","long"]};function Ce(e,t,r){if(void 0===e)e=null;else{var n=M(e);for(var i in e=new A,n)e[i]=n[i]}e=g(e);var a=!0;return"date"!==t&&"any"!==t||void 0===e.weekday&&void 0===e.year&&void 0===e.month&&void 0===e.day||(a=!1),"time"!==t&&"any"!==t||void 0===e.hour&&void 0===e.minute&&void 0===e.second||(a=!1),!a||"date"!==r&&"all"!==r||(e.year=e.month=e.day="numeric"),!a||"time"!==r&&"all"!==r||(e.hour=e.minute=e.second="numeric"),e}function Ae(){var e=null!==this&&"object"===p.typeof(this)&&j(this);if(!e||!e["[[initializedDateTimeFormat]]"])throw new TypeError("`this` value for format() is not an initialized Intl.DateTimeFormat object.");if(void 0===e["[[boundFormat]]"]){var t=E.call((function(){var e=arguments.length<=0||void 0===arguments[0]?void 0:arguments[0],t=void 0===e?Date.now():F(e);return Oe(this,t)}),this);e["[[boundFormat]]"]=t}return e["[[boundFormat]]"]}function Te(e,t){if(!isFinite(t))throw new RangeError("Invalid valid date passed to format");var r=e.__getInternalProperties(C);O();for(var n,i,a,o,s=r["[[locale]]"],u=new X.NumberFormat([s],{useGrouping:!1}),c=new X.NumberFormat([s],{minimumIntegerDigits:2,useGrouping:!1}),l=(n=t,r["[[calendar]]"],i=r["[[timeZone]]"],new A({"[[weekday]]":(a=new Date(n))[(o="get"+(i||""))+"Day"](),"[[era]]":+(a[o+"FullYear"]()>=0),"[[year]]":a[o+"FullYear"](),"[[month]]":a[o+"Month"](),"[[day]]":a[o+"Date"](),"[[hour]]":a[o+"Hours"](),"[[minute]]":a[o+"Minutes"](),"[[second]]":a[o+"Seconds"](),"[[inDST]]":!1})),p=r["[[pattern]]"],f=new T,h=0,d=p.indexOf("{"),y=0,m=r["[[dataLocale]]"],g=k.DateTimeFormat["[[localeData]]"][m].calendars,v=r["[[calendar]]"];-1!==d;){var b=void 0;if(-1===(y=p.indexOf("}",d)))throw new Error("Unclosed pattern");d>h&&w.call(f,{type:"literal",value:p.substring(h,d)});var x=p.substring(d+1,y);if(ke.hasOwnProperty(x)){var _=r["[["+x+"]]"],E=l["[["+x+"]]"];if("year"===x&&E<=0?E=1-E:"month"===x?E++:"hour"===x&&!0===r["[[hour12]]"]&&0==(E%=12)&&!0===r["[[hourNo0]]"]&&(E=12),"numeric"===_)b=ie(u,E);else if("2-digit"===_)(b=ie(c,E)).length>2&&(b=b.slice(-2));else if(_ in we)switch(x){case"month":b=xe(g,v,"months",_,l["[["+x+"]]"]);break;case"weekday":try{b=xe(g,v,"days",_,l["[["+x+"]]"])}catch(e){throw new Error("Could not find weekday data for locale "+s)}break;case"timeZoneName":b="";break;case"era":try{b=xe(g,v,"eras",_,l["[["+x+"]]"])}catch(e){throw new Error("Could not find era data for locale "+s)}break;default:b=l["[["+x+"]]"]}w.call(f,{type:x,value:b})}else"ampm"===x?(b=xe(g,v,"dayPeriods",l["[[hour]]"]>11?"pm":"am",null),w.call(f,{type:"dayPeriod",value:b})):w.call(f,{type:"literal",value:p.substring(d,y+1)});h=y+1,d=p.indexOf("{",h)}return y<p.length-1&&w.call(f,{type:"literal",value:p.substr(y+1)}),f}function Oe(e,t){for(var r=Te(e,t),n="",i=0;r.length>i;i++)n+=r[i].value;return n}function Me(e,t){for(var r=Te(e,t),n=[],i=0;r.length>i;i++){var a=r[i];n.push({type:a.type,value:a.value})}return n}k.DateTimeFormat={"[[availableLocales]]":[],"[[relevantExtensionKeys]]":["ca","nu"],"[[localeData]]":{}},y(X.DateTimeFormat,"supportedLocalesOf",{configurable:!0,writable:!0,value:E.call((function(e){if(!d.call(this,"[[availableLocales]]"))throw new TypeError("supportedLocalesOf() is not a constructor");var t=O(),r=arguments[1],n=this["[[availableLocales]]"],i=H(e);return t(),Z(n,i,r)}),k.NumberFormat)}),y(X.DateTimeFormat.prototype,"format",{configurable:!0,get:Ae}),Object.defineProperty(X.DateTimeFormat.prototype,"formatToParts",{enumerable:!1,writable:!0,configurable:!0,value:function(){var e=arguments.length<=0||void 0===arguments[0]?void 0:arguments[0],t=null!==this&&"object"===p.typeof(this)&&j(this);if(!t||!t["[[initializedDateTimeFormat]]"])throw new TypeError("`this` value for formatToParts() is not an initialized Intl.DateTimeFormat object.");var r=void 0===e?Date.now():F(e);return Me(this,r)}}),y(X.DateTimeFormat.prototype,"resolvedOptions",{writable:!0,configurable:!0,value:function(){var e=void 0,t=new A,r=["locale","calendar","numberingSystem","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName"],n=null!==this&&"object"===p.typeof(this)&&j(this);if(!n||!n["[[initializedDateTimeFormat]]"])throw new TypeError("`this` value for resolvedOptions() is not an initialized Intl.DateTimeFormat object.");for(var i=0,a=r.length;i<a;i++)d.call(n,e="[["+r[i]+"]]")&&(t[r[i]]={value:n[e],writable:!0,configurable:!0,enumerable:!0});return g({},t)}});var Fe=X.__localeSensitiveProtos={Number:{},Date:{}};Fe.Number.toLocaleString=function(){if("[object Number]"!==Object.prototype.toString.call(this))throw new TypeError("`this` value must be a number for Number.prototype.toLocaleString()");return ie(new Q(arguments[0],arguments[1]),this)},Fe.Date.toLocaleString=function(){if("[object Date]"!==Object.prototype.toString.call(this))throw new TypeError("`this` value must be a Date instance for Date.prototype.toLocaleString()");var e=+this;if(isNaN(e))return"Invalid Date";var t=arguments[0],r=arguments[1],n=new _e(t,r=Ce(r,"any","all"));return Oe(n,e)},Fe.Date.toLocaleDateString=function(){if("[object Date]"!==Object.prototype.toString.call(this))throw new TypeError("`this` value must be a Date instance for Date.prototype.toLocaleDateString()");var e=+this;if(isNaN(e))return"Invalid Date";var t=arguments[0],r=arguments[1],n=new _e(t,r=Ce(r,"date","date"));return Oe(n,e)},Fe.Date.toLocaleTimeString=function(){if("[object Date]"!==Object.prototype.toString.call(this))throw new TypeError("`this` value must be a Date instance for Date.prototype.toLocaleTimeString()");var e=+this;if(isNaN(e))return"Invalid Date";var t=arguments[0],r=arguments[1],n=new _e(t,r=Ce(r,"time","time"));return Oe(n,e)},y(X,"__applyLocaleSensitivePrototypes",{writable:!0,configurable:!0,value:function(){for(var e in y(Number.prototype,"toLocaleString",{writable:!0,configurable:!0,value:Fe.Number.toLocaleString}),y(Date.prototype,"toLocaleString",{writable:!0,configurable:!0,value:Fe.Date.toLocaleString}),Fe.Date)d.call(Fe.Date,e)&&y(Date.prototype,e,{writable:!0,configurable:!0,value:Fe.Date[e]})}}),y(X,"__addLocaleData",{value:function(e){if(!z(e.locale))throw new Error("Object passed doesn't identify itself with a valid language tag");!function(e,t){if(!e.number)throw new Error("Object passed doesn't contain locale data for Intl.NumberFormat");var r=void 0,n=[t],i=t.split("-");for(i.length>2&&4===i[1].length&&w.call(n,i[0]+"-"+i[2]);r=_.call(n);)w.call(k.NumberFormat["[[availableLocales]]"],r),k.NumberFormat["[[localeData]]"][r]=e.number,e.date&&(e.date.nu=e.number.nu,w.call(k.DateTimeFormat["[[availableLocales]]"],r),k.DateTimeFormat["[[localeData]]"][r]=e.date);void 0===P&&function(e){P=e}(t)}(e,e.locale)}}),y(X,"__disableRegExpRestore",{value:function(){k.disableRegExpRestore=!0}}),e.exports=X},326:()=>{"use strict";self.window=self.window||self},333:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n="function safeThrow(error) {\r\n    setTimeout(function () {\r\n        throw  error;\r\n    }, 0);\r\n}\r\n\r\nfunction EventEmitter() {\r\n    if (!this._azar_extendEvents) {\r\n        Object.defineProperty(this, '_azar_extendEvents', {\r\n            enumerable: false,\r\n            value: this._azar_extendEvents || { supported: {}, prioritize: {}, nonprioritize: {} }\r\n        });\r\n        Object.defineProperty(this, '__azar_force', {\r\n            value: true,\r\n            enumerable: false\r\n        });\r\n    }\r\n}\r\n\r\n\r\nEventEmitter.prototype.defineEvent = function (name) {\r\n    if (name instanceof Array) {\r\n        for (var i = 0; i < name.length; ++i)\r\n            this._azar_extendEvents.supported[name[i]] = true;\r\n    }\r\n    else\r\n        this._azar_extendEvents.supported[name] = true;\r\n    return this;\r\n};\r\n\r\nEventEmitter.prototype.isSupportedEvent = function (name) {\r\n    return true;\r\n};\r\n\r\n\r\nEventEmitter.prototype.emit = function (eventName, data) {\r\n    this.fire.apply(this, arguments);\r\n};\r\n\r\nEventEmitter.prototype.fire = function (eventName, data) {\r\n    var others = Array.prototype.slice.call(arguments, 1);\r\n    if (this.isSupportedEvent(eventName)) {\r\n        var listenerList;\r\n        var i;\r\n        if (this._azar_extendEvents.prioritize[eventName]) {\r\n            listenerList = this._azar_extendEvents.prioritize[eventName].slice();\r\n            for (i = 0; i < listenerList.length; ++i) {\r\n                try {\r\n                    listenerList[i].wrappedCallback.apply(this, others);\r\n                } catch (e) {\r\n                   safeThrow(e);\r\n                }\r\n            }\r\n        }\r\n\r\n        if (this._azar_extendEvents.nonprioritize[eventName]) {\r\n            listenerList = this._azar_extendEvents.nonprioritize[eventName].slice();\r\n            for (i = 0; i < listenerList.length; ++i) {\r\n                try {\r\n                    listenerList[i].wrappedCallback.apply(this, others);\r\n                } catch (e) {\r\n                    safeThrow(e);\r\n                }\r\n            }\r\n        }\r\n    }\r\n    else {\r\n        if (this.dispatchEvent) {\r\n            var event = new Event(eventName);\r\n            data && Object.assign(event, data);\r\n            this.dispatchEvent(event);\r\n        }\r\n        else\r\n            throw new Error(\"Not support event \" + eventName);\r\n    }\r\n    return this;\r\n};\r\n\r\n\r\nEventEmitter.prototype.eventEmittorOnWithTime = function (isOnce, arg0, arg1, arg2) {\r\n    if (typeof arg0 == 'object') {\r\n        for (var key in arg0) {\r\n            this.eventEmittorOnWithTime(isOnce, key, arg0[key]);\r\n        }\r\n        return this;\r\n    }\r\n    else {\r\n        if (typeof arg1 == 'object') {\r\n            return this.eventEmittorOnWithTime(isOnce, arg0, arg1.callback, arg1.cap);\r\n        }\r\n        else {\r\n            var eventArr = this._azar_extendEvents[arg2 ? 'prioritize' : 'nonprioritize'][arg0] || [];\r\n            var eventIndex = -1;\r\n            for (var i = 0; i < eventArr.length; ++i) {\r\n                if (eventArr[i].wrappedCallback == arg1) {\r\n                    eventIndex = i;\r\n                    break;\r\n                }\r\n            }\r\n            if (eventIndex < 0) {\r\n                var event = { isOnce: isOnce, eventName: arg0, callback: arg1, cap: !!arg2 };\r\n                //wrappedCallback will be call\r\n                if (isOnce) {\r\n                    event.wrappedCallback = function () {\r\n                        event.callback.apply(this, arguments);\r\n                        this.off(event.eventName, event.wrappedCallback, event.cap);\r\n                    };\r\n                }\r\n                else {\r\n                    event.wrappedCallback = event.callback;\r\n                }\r\n\r\n                if (!this.isSupportedEvent(arg0)) {\r\n                    if (this.addEventListener) {\r\n                        this.addEventListener(arg0, event.wrappedCallback, !!arg2);\r\n                    }\r\n                    else {\r\n                        this.attachEvent('on' + arg0, arg1, !!arg2);\r\n                    }\r\n                }\r\n\r\n                eventArr.push(event);\r\n                this._azar_extendEvents[arg2 ? 'prioritize' : 'nonprioritize'][arg0] = eventArr;\r\n            }\r\n            else {\r\n                console.warn(\"dupplicate event\");\r\n            }\r\n\r\n        }\r\n        return this;\r\n    }\r\n};\r\n\r\n\r\nEventEmitter.prototype.on = function (arg0, arg1, arg2) {\r\n    this.eventEmittorOnWithTime(false, arg0, arg1, arg2);\r\n    return this;\r\n};\r\n\r\n\r\nEventEmitter.prototype.once = function (arg0, arg1, arg2) {\r\n    this.eventEmittorOnWithTime(true, arg0, arg1, arg2);\r\n    return this;\r\n};\r\n\r\nEventEmitter.prototype.off = function (arg0, arg1, arg2) {\r\n    if (typeof arg0 == 'object') {\r\n        for (var key in arg0) {\r\n            this.off(key, arg0[key]);\r\n        }\r\n        return this;\r\n    }\r\n    else {\r\n        if (typeof arg1 == 'object') {\r\n            return this.off(arg0, arg1.callback, arg1.cap);\r\n        }\r\n        else {\r\n            var eventArr = this._azar_extendEvents[arg2 ? 'prioritize' : 'nonprioritize'][arg0] || [];\r\n            var newEventArray = [];\r\n            for (var i = 0; i < eventArr.length; ++i) {\r\n                var event = eventArr[i];\r\n                if (event.wrappedCallback == arg1) {\r\n                    //Dont add to newEventArray\r\n                    if (this.isSupportedEvent(arg0)) {\r\n                    }\r\n                    else {\r\n                        if (this.removeEventListener) {\r\n                            this.removeEventListener(event.eventName, event.wrappedCallback, !!event.cap);\r\n                        }\r\n                        else {\r\n                            this.detachEvent('on' + event.eventName, event.wrappedCallback, !!event.cap);\r\n                        }\r\n                    }\r\n                }\r\n                else {\r\n                    newEventArray.push(event);\r\n                }\r\n            }\r\n            this._azar_extendEvents[arg2 ? 'prioritize' : 'nonprioritize'][arg0] = newEventArray;\r\n            return this;\r\n        }\r\n    }\r\n\r\n};\r\n\r\n\r\nvar TYPE_WORKER = 'WORKER';\r\n\r\n/**\r\n *\r\n * @param {Worker|HTMLIFrameElement|WorkerGlobalScope|Window=} host\r\n */\r\nfunction IFrameBridge(host) {\r\n    EventEmitter.call(this);\r\n    /***\r\n     *\r\n     * @type {Worker|HTMLIFrameElement|WorkerGlobalScope|Window|WorkerGlobalScope|Window}\r\n     */\r\n    this.host = host || self;\r\n    this.sender = null;\r\n    this.receiver = null;\r\n    this.origin = null;\r\n    this.type = 'NOT_DETECT';\r\n    this.id = \"UNSET\";\r\n\r\n    this.sync = this._detectHost().then(() => this._attach());\r\n\r\n    this.__azarResolveCallbacks = {};\r\n    this.__azarRejectCallbacks = {};\r\n}\r\n\r\nIFrameBridge.prototype._detectHost = function () {\r\n          this.type = TYPE_WORKER;\r\n          this.sender = this.host;\r\n          this.receiver = this.host;\r\n          return Promise.resolve();\r\n};\r\n\r\n\r\nIFrameBridge.prototype._attach = function () {\r\n    if (this.receiver.addEventListener) {\r\n        this.receiver.addEventListener(\"message\", this.__azarMessageListener.bind(this), false);\r\n    }\r\n    else if (this.receiver.attachEvent) {\r\n        this.receiver.attachEvent(\"onmessage\", this.__azarMessageListener.bind(this));\r\n    }\r\n    else {\r\n        this.receiver.onmessage = this.__azarMessageListener.bind(this);\r\n    }\r\n};\r\n\r\n\r\nIFrameBridge.getInstance = function () {\r\n    if (!IFrameBridge.shareInstance) {\r\n        var origin = location.origin;\r\n        var rootOrigin = IFrameBridge.getParentUrl().match(/^(http|https):\\/\\/[^/]+/);\r\n        if (rootOrigin) {\r\n            rootOrigin = rootOrigin[0];\r\n        }\r\n        else {\r\n            rootOrigin = origin;\r\n        }\r\n\r\n        // IFrameBridge.shareInstance = new IFrameBridge(self, rootOrigin == origin? undefined: \"*\" || rootOrigin );\r\n        var host = self;\r\n        IFrameBridge.shareInstance = new IFrameBridge(host, rootOrigin);\r\n    }\r\n    return IFrameBridge.shareInstance;\r\n};\r\n\r\n\r\nObject.defineProperties(IFrameBridge.prototype, Object.getOwnPropertyDescriptors(EventEmitter.prototype));\r\nIFrameBridge.prototype.constructor = IFrameBridge;\r\n\r\n\r\nIFrameBridge.getParentUrl = function () {\r\n    var parentUrl = (window.location != window.parent.location)\r\n        ? document.referrer\r\n        : document.location.href;\r\n    return parentUrl;\r\n};\r\n\r\nIFrameBridge.prototype.__azarMessageListener = function (event) {\r\n    this.__azarHandleData(event.data);\r\n};\r\n\r\n\r\nIFrameBridge.prototype.__azarHandleData = function (data) {\r\n    if (data.bridgeId !== this.id) return;\r\n    if (data.type) {\r\n        if (data.type == \"INVOKE\") {\r\n            try {\r\n                var result = this.__azarSelfInvoke(data.name, data.params);\r\n                if (result && typeof result.then == 'function') {\r\n                    result.then(function (result) {\r\n                        this.__azarResolve(data.taskId, result);\r\n                    }.bind(this))\r\n                        .catch(function (err) {\r\n                            safeThrow(err);\r\n                            this.__azarResolve(data.taskId, null, err);\r\n                        }.bind(this));\r\n                }\r\n                else {\r\n                    this.__azarResolve(data.taskId, result);\r\n                }\r\n            } catch (err) {\r\n                safeThrow(err);\r\n                this.__azarResolve(data.taskId, null, err);\r\n            }\r\n        }\r\n        else if (data.type == \"INVOKE_RESULT\") {\r\n            if (this.__azarResolveCallbacks[data.taskId]) {\r\n                if (data.error) {\r\n                    this.__azarRejectCallbacks[data.taskId](data.error);\r\n                }\r\n                else {\r\n                    this.__azarResolveCallbacks[data.taskId](data.result);\r\n                }\r\n                delete this.__azarResolveCallbacks[data.taskId];\r\n                delete this.__azarRejectCallbacks[data.taskId];\r\n            }\r\n        }\r\n        else if (data.type == \"EMIT\") {\r\n            this.fire.apply(this, data.params);\r\n        }\r\n        else this.fire('message', data, this);\r\n    }\r\n};\r\n\r\n\r\nIFrameBridge.prototype.__azarResolve = function (taskId, result, error) {\r\n    var data = {\r\n        type: \"INVOKE_RESULT\",\r\n        taskId: taskId,\r\n        result: result,\r\n        error: error,\r\n        bridgeId: this.id\r\n    };\r\n\r\n    if (this.origin) {\r\n        this.sender.postMessage(data, this.origin);\r\n    }\r\n    else {\r\n        this.sender.postMessage(data);\r\n    }\r\n};\r\n\r\n\r\nIFrameBridge.prototype.__azarSelfInvoke = function (name, params) {\r\n    if (typeof this[name] == 'function') {\r\n        return this[name].apply(this, params);\r\n    }\r\n    else {\r\n        return this[name];\r\n    }\r\n};\r\n\r\n\r\nIFrameBridge.prototype.emit = function () {\r\n    var params = [];\r\n    params.push.apply(params, arguments);\r\n    this.sync.then(function () {\r\n        var data = {\r\n            type: \"EMIT\",\r\n            params: params,\r\n            bridgeId: this.id\r\n        };\r\n        if (this.origin) {\r\n            this.sender.postMessage(data, this.origin);\r\n        }\r\n        else {\r\n            this.sender.postMessage(data);\r\n        }\r\n    }.bind(this));\r\n    return this;\r\n};\r\n\r\n\r\nIFrameBridge.prototype.invoke = function (name) {\r\n    var params = [];\r\n    params.push.apply(params, arguments);\r\n    params.shift();\r\n    return this.sync.then(function () {\r\n        var indent = randomIdent(32);\r\n        var data = {\r\n            type: 'INVOKE',\r\n            params: params,\r\n            taskId: indent,\r\n            name: name,\r\n            bridgeId: this.id\r\n        };\r\n        if (this.origin) {\r\n            this.host.postMessage(data, this.origin);\r\n        }\r\n        else {\r\n            this.host.postMessage(data);\r\n        }\r\n        return new Promise(function (resolve, reject) {\r\n            this.__azarResolveCallbacks[indent] = resolve;\r\n            this.__azarRejectCallbacks[indent] = reject;\r\n        }.bind(this));\r\n    }.bind(this));\r\n};\r\n\r\nIFrameBridge.prototype.importScriptURLs = function () {\r\n    return this.invoke.apply(this, ['_receiveScriptURLs'].concat(Array.prototype.slice.call(arguments)));\r\n};\r\n\r\nIFrameBridge.prototype.importScript = function (code) {\r\n    var blob = new Blob([code], { type: 'application/javascript' });\r\n    var url = URL.createObjectURL(blob);\r\n    return this.importScriptURLs(url);\r\n};\r\n\r\n\r\nIFrameBridge.prototype.createMethod = function (name, fx) {\r\n    this[name] = function () {\r\n        return this.invoke.apply(this, [name].concat(Array.prototype.slice.call(arguments)));\r\n    };\r\n    return this.invoke.apply(this, ['_receiveMethod', name, fx.toString()]);\r\n};\r\n\r\n\r\nIFrameBridge.prototype._receiveScriptURLs = function () {\r\n    if (self.importScripts) {\r\n        self.importScripts.apply(self, arguments);\r\n    }\r\n};\r\n\r\n\r\nIFrameBridge.prototype._receiveMethod = function (name, code) {\r\n    this[name] = (new Function('return ' + code))();\r\n};\r\n\r\n\r\nvar IFrameBridge_prototype_descriptors = Object.getOwnPropertyDescriptors(IFrameBridge.prototype);\r\ndelete IFrameBridge_prototype_descriptors.constructor;\r\n\r\nObject.defineProperties(self, IFrameBridge_prototype_descriptors);\r\nIFrameBridge.call(self, self);"},482:()=>{}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var a=t[r]={id:r,loaded:!1,exports:{}};return e[r](a,a.exports,n),a.loaded=!0,a.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}n(326),n(284);var t=j(n(833)),r=j(n(608)),i=j(n(974)),a=j(n(281)),o=F(n(134)),s=F(n(954)),u=j(n(768)),c=j(n(60)),l=j(n(710)),p=F(n(713)),f=F(n(294)),h=j(n(607)),d=j(n(986)),y=j(n(483)),m=j(n(667)),g=j(n(568)),v=F(n(286)),b=j(n(470)),w=j(n(316)),x=j(n(603)),_=F(n(909)),E=j(n(249)),k=j(n(257)),C=j(n(125)),A=j(n(141)),T=j(n(67)),O=j(n(268));function M(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(M=function(e){return e?r:t})(e)}function F(t,r){if(!r&&t&&t.__esModule)return t;if(null===t||"object"!==e(t)&&"function"!=typeof t)return{default:t};var n=M(r);if(n&&n.has(t))return n.get(t);var i={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&Object.prototype.hasOwnProperty.call(t,o)){var s=a?Object.getOwnPropertyDescriptor(t,o):null;s&&(s.get||s.set)?Object.defineProperty(i,o,s):i[o]=t[o]}return i.default=t,n&&n.set(t,i),i}function j(e){return e&&e.__esModule?e:{default:e}}n.g.absol={int:_,Rectangle:d.default,Arc:y.default,NumRange:m.default,CMDRunner:b.default,VarScope:h.default,OOP:r.default,Color:i.default,EventEmitter:t.default,JSZip:window.JSZip,IFrameBridge:a.default,file:o,base64:s,Alarm:u.default,Ref:c.default,XHR:l.default,string:Object.assign({},f,p),dataStructure:{Heap:g.default},datetime:v,Vec2:w.default,Mat3:x.default,ObservableArray:E.default,ObservableStruct:k.default,circuit:{CCBlock:C.default,CCLine:A.default},Thread:T.default,TextMeasure:O.default},absol})()})();

VaKeR 2022