UNPKG

@syncfusion/ej2-base

Version:

A common package of Essential JS 2 base libraries, methods and class definitions

10 lines 269 kB
/*! * filename: ej2-base.min.js * version : 30.1.42 * Copyright Syncfusion Inc. 2001 - 2024. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing * licensing@syncfusion.com. Any infringement will be prosecuted under * applicable laws. */ this.ej=this.ej||{},this.ej.base=function(M){"use strict";function t(){rt=!1}function e(M,t){var e=t;return e.unshift(void 0),new(Function.prototype.bind.apply(M,e))}function N(M){var t,e=new Uint16Array(5);(window.msCrypto||window.crypto).getRandomValues(e);var N="ej2"+C(e),i=function(e){e.source===window&&"string"==typeof e.data&&e.data.length<=32&&e.data===N&&(M(),t())};return window.addEventListener("message",i,!1),window.postMessage(N,window.location.origin),t=function(){window.removeEventListener("message",i),M=i=N=void 0}}function i(M,t){for(var e=t,N=M.replace(/\[/g,".").replace(/\]/g,"").split("."),i=0;i<N.length&&!z(e);i++)e=e[N[parseInt(i.toString(),10)]];return e}function g(M,t,e){var N,i,g=M.replace(/\[/g,".").replace(/\]/g,"").split("."),D=e||{},I=D,n=g.length;for(N=0;N<n;N++)"__proto__"!==(i=g[parseInt(N.toString(),10)])&&"constructor"!==i&&"prototype"!==i&&(N+1===n?I[""+i]=void 0===t?{}:t:o(I[""+i])&&(I[""+i]={}),I=I[""+i]);return D}function D(M,t){delete M[""+t]}function I(M){var t={};return!o(M)&&M.constructor===t.constructor}function n(M,t){return M[""+t]}function r(M,t){if(!o(t))for(var e=M,N=t,i=0,g=Object.keys(t);i<g.length;i++){var D=g[i];o(e.deepMerge)||-1===e.deepMerge.indexOf(D)||!I(N[""+D])&&!Array.isArray(N[""+D])?e[""+D]=N[""+D]:j(e[""+D],e[""+D],N[""+D],!0)}}function j(M,t,e,N){var i=M&&"object"==typeof M?M:{},g=arguments.length,D=[M,t,e,N];N&&(g-=1);for(var n=1;n<g;n++)!function(M){if(!D[parseInt(M.toString(),10)])return"continue";var t=D[parseInt(M.toString(),10)];Object.keys(t).forEach(function(M){var e,g=i[""+M],D=t[""+M],n=Array.isArray(D)&&Array.isArray(g)&&D.length!==g.length,r=!L()||!(g instanceof Event||n);N&&r&&(I(D)||Array.isArray(D))?I(D)?(e=g||{},Array.isArray(e)&&Object.prototype.hasOwnProperty.call(e,"isComplexArray")?j(e,{},D,N):i[""+M]=j(e,{},D,N)):(e=L()?g&&Object.keys(D).length:g||[],i[""+M]=j([],e,D,e&&e.length||D&&D.length)):i[""+M]=D})}(n);return i}function o(M){return void 0===M||null===M}function z(M){return void 0===M}function a(M){return M+"_"+nt++}function u(M,t){var e;return function(){for(var N=this,i=[],g=0;g<arguments.length;g++)i[g]=arguments[g];var D=function(){return e=null,M.apply(N,i)};clearTimeout(e),e=setTimeout(D,t)}}function T(M){for(var t=[],e=0,N=Object.keys(M);e<N.length;e++){var i=N[e];t.push(encodeURIComponent(i)+"="+encodeURIComponent(""+M[""+i]))}return t.join("&")}function c(M){var t=Object.prototype.toString;return"[object Array]"===t.call(M)&&"[object Object]"===t.call(M[0])}function A(M,t){var e=M;return e===t||!(e===document||!e)&&A(e.parentNode,t)}function y(M){try{throw new Error(M)}catch(M){throw new Error(M.message+"\n"+M.stack)}}function s(M,t){var e=document.createElement("div"),N=[].slice.call(document.getElementsByTagName("head")[0].querySelectorAll("base, link, style")),i=[].slice.call(document.getElementsByTagName("body")[0].querySelectorAll("link, style"));if(i.length)for(var g=0,D=i.length;g<D;g++)N.push(i[parseInt(g.toString(),10)]);var I="";o(t)&&(t=window.open("","print","height=452,width=1024,tabbar=no")),e.appendChild(M.cloneNode(!0));for(var n=0,D=N.length;n<D;n++)I+=N[parseInt(n.toString(),10)].outerHTML;t.document.write("<!DOCTYPE html> <html><head>"+I+"</head><body>"+e.innerHTML+"<script> (function() { window.ready = true; })(); <\/script></body></html>"),t.document.close(),t.focus();var r=setInterval(function(){t.ready&&(t.print(),t.close(),clearInterval(r))},500);return t}function E(M){var t=M+"";return t.match(/auto|cm|mm|in|px|pt|pc|%|em|ex|ch|rem|vw|vh|vmin|vmax/)?t:t+"px"}function l(){rt=!0}function L(){return rt}function O(M){return M instanceof Node||!L()||o(M.xPath)?M:document.evaluate(M.xPath,document,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue}function x(M,t){var e="string"==typeof M?document.querySelector(M):M;if(e[""+It])for(var N=0,i=e[""+It];N<i.length;N++){var g=i[N];if(g instanceof t)return g}return null}function S(M,t){var e="string"==typeof M?document.querySelector(M):M;e[""+It]?e[""+It].push(t):e[""+It]=[t]}function p(){if("undefined"!=typeof window){var M=new Uint16Array(5);return(window.msCrypto||window.crypto).getRandomValues(M)}}function C(M){for(var t="",e=0;e<5;e++)t+=(e?",":"")+M[parseInt(e.toString(),10)];return t}function w(M){return i(M||"",Tt)}function h(t){M.defaultCurrencyCode=t}function d(M){ct=M}function m(M){At=M}function U(M,t){var e=wt.test(M)?document.createElementNS("http://www.w3.org/2000/svg",M):document.createElement(M);return void 0===t?e:(e.innerHTML=t.innerHTML?t.innerHTML:"",void 0!==t.className&&(e.className=t.className),void 0!==t.id&&(e.id=t.id),void 0!==t.styles&&(e.style.cssText=t.styles),void 0!==t.attrs&&G(e,t.attrs),e)}function Q(M,t){var e=M.style.cssText.split(";").reduce(function(M,t){var e=t.split(":"),N=e[0],i=e[1];return N&&i&&(M[N.trim()]=i.trim()),M},{}),N=t.split(";").reduce(function(M,t){var e=t.split(":"),N=e[0],i=e[1];return N&&i&&(M[N.trim()]=i.trim()),M},{}),i=document.createElement("div");Object.keys(Ct({},e,N)).forEach(function(M){i.style.setProperty(M,N[M]||e[M])}),M.style.cssText=i.style.cssText}function Y(M,t){for(var e=k(t),N=RegExp,D=0,n=M;D<n.length;D++)for(var r=n[D],j=0,z=e;j<z.length;j++){var a=z[j];if(I(r)){var u=i("attributes.className",r);o(u)?g("attributes.className",a,r):new N("\\b"+a+"\\b","i").test(u)||g("attributes.className",u+" "+a,r)}else r.classList.contains(a)||r.classList.add(a)}return M}function f(M,t){for(var e=k(t),N=0,D=M;N<D.length;N++){var n=D[N],r=I(n);if(r?i("attributes.className",n):""!==n.className)for(var j=0,o=e;j<o.length;j++){var z=o[j];if(r){var a=i("attributes.className",n).split(" "),u=a.indexOf(z);-1!==u&&a.splice(u,1),g("attributes.className",a.join(" "),n)}else n.classList.remove(z)}}return M}function k(M){var t=[];return"string"==typeof M?t.push(M):t=M,t}function b(M){var t=M;return""===t.style.visibility&&t.offsetWidth>0}function v(M,t,e){for(var N=document.createDocumentFragment(),i=0,g=M;i<g.length;i++){var D=g[i];N.appendChild(D)}return t.insertBefore(N,t.firstElementChild),e&&P(t),M}function B(M,t,e){var N=document.createDocumentFragment();if(M instanceof NodeList)for(;M.length>0;)N.appendChild(M[0]);else for(var i=0,g=M;i<g.length;i++){var D=g[i];N.appendChild(D)}return t.appendChild(N),e&&P(t),M}function P(M){M.querySelectorAll("script").forEach(function(M){var t=document.createElement("script");t.text=M.innerHTML,document.head.appendChild(t),F(t)})}function F(M){var t=M.parentNode;if(t)return t.removeChild(M)}function R(M){var t=M.parentNode;pt.clearEvents(M),t.removeChild(M)}function G(M,t){for(var e=M,N=0,i=Object.keys(t);N<i.length;N++){var g=i[N];if(I(e)){var D=g;"tabindex"===g&&(D="tabIndex"),e.attributes[""+D]=t[""+g]}else e.setAttribute(g,t[""+g])}return e}function H(M,t,e){return void 0===t&&(t=document),M=W(M),t.querySelector(M)}function Z(M,t,e){return void 0===t&&(t=document),M=W(M),t.querySelectorAll(M)}function W(M){var t=/(!|"|\$|%|&|'|\(|\)|\*|\/|:|;|<|=|\?|@|\]|\^|`|{|}|\||\+|~)/g;if(M.match(/#[0-9]/g)||M.match(t)){for(var e=M.split(","),N=0;N<e.length;N++){for(var i=e[parseInt(N.toString(),10)].split(" "),g=0;g<i.length;g++)if(i[parseInt(g.toString(),10)].indexOf("#")>-1&&!i[parseInt(g.toString(),10)].match(/\[.*\]/)){var D=i[parseInt(g.toString(),10)].split("#");if(D[1].match(/^\d/)||D[1].match(t)){var I=i[parseInt(g.toString(),10)].split(".");I[0]=I[0].replace(/#/,"[id='")+"']",i[parseInt(g.toString(),10)]=I.join(".")}}e[parseInt(N.toString(),10)]=i.join(" ")}return e.join(",")}return M}function J(M,t){var e=M;if("function"==typeof e.closest)return e.closest(t);for(;e&&1===e.nodeType;){if($(e,t))return e;e=e.parentNode}return null}function K(M){for(var t=[],e=0,N=Array.prototype.slice.call(M.parentNode.childNodes);e<N.length;e++){var i=N[e];i.nodeType===Node.ELEMENT_NODE&&M!==i&&t.push(i)}return t}function X(M,t,e){var N,g=I(M);return N=g?i("attributes."+t,M):M.getAttribute(t),o(N)&&e&&(g?M.attributes[""+t]=e:M.setAttribute(t,e.toString()),N=e),N}function V(M,t){void 0!==t&&Object.keys(t).forEach(function(e){M.style[""+e]=t[""+e]})}function _(M,t,e){Y([M],t),f([M],e)}function $(M,t){var e=M.matches||M.msMatchesSelector||M.webkitMatchesSelector;return e?e.call(M,t):-1!==[].indexOf.call(document.querySelectorAll(t),M)}function q(M,t){M.innerHTML=t}function MM(M,t){return I(M)?new RegExp("\\b"+t+"\\b","i").test(M.attributes.className):M.classList.contains(t)}function tM(M,t){return I(M)?t?j({},{},M,!0):void 0:M.cloneNode(t)}function eM(M,t){var e,N,i="string"==typeof M?document.getElementById(M):M;if(i&&i.ej2_instances)for(N=0;N<i.ej2_instances.length;N++)if(e=i.ej2_instances[parseInt(N.toString(),10)],"string"==typeof t){if(t===e.getModuleName())return e}else if(e instanceof t)return e}function NM(M){for(var t=[].slice.call(M.getElementsByClassName("e-control")),e=0;e<t.length;e++){var N=t[parseInt(e.toString(),10)].classList[1].split("e-")[1],i=eM(t[parseInt(e.toString(),10)],N);z(i)||i.destroy()}}function iM(M,t,N,i){return Object.prototype.hasOwnProperty.call(M.properties,t)&&M.properties[""+t]instanceof i||(M.properties[""+t]=e(i,[M,t,N])),M.properties[""+t]}function gM(M,t,N,i,g,D){for(var I=[],n=N?N.length:0,r=0;r<n;r++){var j=i;if(D&&(j=i(N[parseInt(r.toString(),10)],M)),g){var o=e(j,[M,t,{},!0]);o.setProperties(N[parseInt(r.toString(),10)],!0),I.push(o)}else I.push(e(j,[M,t,N[parseInt(r.toString(),10)],!1]))}return I}function DM(M,t){return function(){return Object.prototype.hasOwnProperty.call(this.properties,t)||(this.properties[""+t]=M),this.properties[""+t]}}function IM(M,t){return function(e){if(this.properties[""+t]!==e){var N=Object.prototype.hasOwnProperty.call(this.properties,t)?this.properties[""+t]:M;this.saveChanges(t,e,N),this.properties[""+t]=e}}}function nM(M,t,e){return function(){return iM(this,t,M,e)}}function rM(M,t,e){return function(N){iM(this,t,M,e).setProperties(N)}}function jM(M,t,e){return function(){var N=e({});return Object.prototype.hasOwnProperty.call(this.properties,t)?this.properties[""+t]:iM(this,t,M,N)}}function oM(M,t,e){return function(N){var i=e(N,this);iM(this,t,M,i).setProperties(N)}}function zM(M,t,e){return function(){var N=this;if(!Object.prototype.hasOwnProperty.call(this.properties,t)){var i=gM(this,t,M,e,!1);this.properties[""+t]=i}var g=void 0!==this.controlParent&&this.controlParent.ignoreCollectionWatch||this.ignoreCollectionWatch;return Object.prototype.hasOwnProperty.call(this.properties[""+t],"push")||g||["push","pop"].forEach(function(M){var i={value:cM(M,t,e,N.properties[""+t]).bind(N),configurable:!0};Object.defineProperty(N.properties[""+t],M,i)}),Object.prototype.hasOwnProperty.call(this.properties[""+t],"isComplexArray")||Object.defineProperty(this.properties[""+t],"isComplexArray",{value:!0}),this.properties[""+t]}}function aM(M,t,e){return function(N){this.isComplexArraySetter=!0;var i=gM(this,t,M,e,!1),g=gM(this,t,N,e,!0);this.isComplexArraySetter=!1,this.saveChanges(t,g,i),this.properties[""+t]=g}}function uM(M,t,e){return function(N){var i=Object.prototype.hasOwnProperty.call(this.properties,t)?this.properties[""+t]:M,g=gM(this,t,N,e,!0,!0);this.saveChanges(t,g,i),this.properties[""+t]=g}}function TM(M,t,e){return function(){var N=e({});if(!Object.prototype.hasOwnProperty.call(this.properties,t)){var i=gM(this,t,M,N,!1);this.properties[""+t]=i}return this.properties[""+t]}}function cM(M,t,e,N){return function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];var g=this.propName?this.getParentKey()+"."+t+"-":t+"-";switch(M){case"push":for(var D=0;D<e.length;D++){var I=e[parseInt(D.toString(),10)];Array.prototype[""+M].apply(N,[I]);n=AM(g+(N.length-1),I,!this.controlParent,M);this.serverDataBind(n,e[parseInt(D.toString(),10)],!1,M)}break;case"pop":Array.prototype[""+M].apply(N);var n=AM(g+N.length,null,!this.controlParent,M);this.serverDataBind(n,{ejsAction:"pop"},!1,M)}return N}}function AM(M,t,e,N){var i=M;if(e&&(i={},i[""+M]=t,t&&"object"==typeof t)){i[""+M].ejsAction=N}return i}function yM(M){return function(t,e){var N={set:IM(M,e),get:DM(M,e),enumerable:!0,configurable:!0};Object.defineProperty(t,e,N),SM(t,e,"prop",M)}}function sM(M,t){return function(e,N){var i={set:rM(M,N,t),get:nM(M,N,t),enumerable:!0,configurable:!0};Object.defineProperty(e,N,i),SM(e,N,"complexProp",M,t)}}function EM(M){return function(t,e){var N={set:oM({},e,M),get:jM({},e,M),enumerable:!0,configurable:!0};Object.defineProperty(t,e,N),SM(t,e,"complexProp",{},M)}}function lM(M,t){return function(e,N){var i={set:aM(M,N,t),get:zM(M,N,t),enumerable:!0,configurable:!0};Object.defineProperty(e,N,i),SM(e,N,"colProp",M,t)}}function LM(M){return function(t,e){var N={set:uM([],e,M),get:TM([],e,M),enumerable:!0,configurable:!0};Object.defineProperty(t,e,N),SM(t,e,"colProp",{},M)}}function OM(){return function(M,t){var e={set:function(M){var e=this.properties[""+t];if(e!==M){var N=wM(this,t);!1===z(e)&&N.context.removeEventListener(N.prefix,e),N.context.addEventListener(N.prefix,M),this.properties[""+t]=M}},get:DM(void 0,t),enumerable:!0,configurable:!0};Object.defineProperty(M,t,e),SM(M,t,"event")}}function xM(M){}function SM(M,t,e,N,i){z(M.propList)&&(M.propList={props:[],complexProps:[],colProps:[],events:[],propNames:[],complexPropNames:[],colPropNames:[],eventNames:[]}),M.propList[e+"s"].push({propertyName:t,defaultValue:N,type:i}),M.propList[e+"Names"].push(t)}function pM(M){if(z(M.prototype.builderObject)){M.prototype.builderObject={properties:{},propCollections:[],add:function(){this.isPropertyArray=!0,this.propCollections.push(j({},this.properties,{}))}};for(var t=/complex/,e=0,N=Object.keys(M.prototype.propList);e<N.length;e++)for(var i=N[e],g=0,D=M.prototype.propList[""+i];g<D.length;g++)!function(e){t.test(i)?M.prototype.builderObject[e.propertyName]=function(M){var t={};r(t,pM(e.type)),M(t);var N;return N=t.isPropertyArray?t.propCollections:j({},t.properties,{}),this.properties[e.propertyName]=N,t.properties={},t.propCollections=[],t.isPropertyArray=!1,this}:M.prototype.builderObject[e.propertyName]=function(M){return this.properties[e.propertyName]=M,this}}(D[g])}return M.prototype.builderObject}function CM(M){var t=function(M){return this.element=M,this};return function(e){return Object.prototype.hasOwnProperty.call(t,"create")||((t.prototype=pM(M)).create=function(){var t=j({},{},this.properties);return this.properties={},new M(t,this.element)}),new t(e)}}function wM(M,t){if(!1===Object.prototype.hasOwnProperty.call(M,"parentObj"))return{context:M,prefix:t};var e=i("propName",M);return e&&(t=e+"-"+t),wM(i("parentObj",M),t)}function hM(t,e,N){var i=dM(e);return!1===i.rippleFlag||void 0===i.rippleFlag&&!M.isRippleEnabled?function(){}:(t.setAttribute("data-ripple","true"),pt.add(t,"mousedown",mM,{parent:t,rippleOptions:i}),pt.add(t,"mouseup",UM,{parent:t,rippleOptions:i,done:N}),pt.add(t,"mouseleave",QM,{parent:t,rippleOptions:i}),St.isPointer&&pt.add(t,"transitionend",QM,{parent:t,rippleOptions:i}),function(){t.removeAttribute("data-ripple"),pt.remove(t,"mousedown",mM),pt.remove(t,"mouseup",UM),pt.remove(t,"mouseleave",QM),pt.remove(t,"transitionend",QM)})}function dM(M){return{selector:M&&M.selector?M.selector:null,ignore:M&&M.ignore?M.ignore:null,rippleFlag:M&&M.rippleFlag,isCenterRipple:M&&M.isCenterRipple,duration:M&&M.duration?M.duration:350}}function mM(M){var t=M.target,e=this.rippleOptions.selector,N=e?J(t,e):t;if(!(!N||this.rippleOptions&&J(t,this.rippleOptions.ignore))){var i=N.getBoundingClientRect(),g=M.pageX-document.body.scrollLeft,D=M.pageY-(!document.body.scrollTop&&document.documentElement?document.documentElement.scrollTop:document.body.scrollTop),I=Math.max(Math.abs(g-i.left),Math.abs(g-i.right)),n=Math.max(Math.abs(D-i.top),Math.abs(D-i.bottom)),r=Math.sqrt(I*I+n*n),j=2*r+"px",o=g-i.left-r,z=D-i.top-r;this.rippleOptions&&this.rippleOptions.isCenterRipple&&(o=0,z=0,j="100%"),N.classList.add("e-ripple");var a=U("div",{className:"e-ripple-element",styles:"width: "+j+";height: "+j+";left: "+o+"px;top: "+z+"px;transition-duration: "+this.rippleOptions.duration.toString()+"ms;"});N.appendChild(a),window.getComputedStyle(a).getPropertyValue("opacity"),a.style.transform="scale(1)",N!==this.parent&&pt.add(N,"mouseleave",QM,{parent:this.parent,rippleOptions:this.rippleOptions})}}function UM(M){YM(M,this)}function QM(M){YM(M,this)}function YM(M,t){var e=t.rippleOptions.duration,N=M.target,i=t.rippleOptions.selector,g=i?J(N,i):N;if(g&&(!g||-1!==g.className.indexOf("e-ripple"))){var D=Z(".e-ripple-element",g),I=D[D.length-1];I&&(I.style.opacity="0.5"),t.parent!==g&&pt.remove(g,"mouseleave",QM),setTimeout(function(){I&&I.parentNode&&I.parentNode.removeChild(I),g.getElementsByClassName("e-ripple-element").length||g.classList.remove("e-ripple"),t.done&&t.done(M)},e)}}function fM(t){return M.isRippleEnabled=t,M.isRippleEnabled}function kM(t){M.animationMode=t}function bM(t){M.defaultCulture=t,_t.notify("notifyExternalChange",{locale:M.defaultCulture})}function vM(t){h(t),_t.notify("notifyExternalChange",{currencyCode:M.defaultCurrencyCode})}function BM(){for(var M=[],t=0;t<arguments.length;t++)M[t]=arguments[t];for(var e=0,N=M;e<N.length;e++){var i=N[e];j($t,i,{},!0)}}function PM(t){void 0===t&&(t=!0),M.rightToLeft=t,_t.notify("notifyExternalChange",{enableRtl:M.rightToLeft})}function FM(t,e){var N=M.IntlBase.getDependables($t,t,"",!0)[te[0]],g=M.IntlBase.getDependables($t,t,"")[te[1]],D=i("defaultNumberingSystem",N),I=L()?i("numberSymbols",N):i("symbols-numberSystem-"+D,N),n=M.IntlBase.getSymbolPattern(e||"decimal",D,N,!1);return j(I,M.IntlBase.getFormatData(n,!0,"",!0),{dateSeparator:M.IntlBase.getDateSeparator(g)})}function RM(t,e){var N=M.IntlBase.getDependables($t,t,"",!0);return M.IntlBase.getCurrencySymbol(N.numericObject,e)}function GM(t){return M.IntlBase.getDependables($t,"",t,!1)[te[1]]}function HM(M){for(var t="",e=0,N=M;e<N.length;e++){var i=N[e];t+=String.fromCharCode(i)}return t}function ZM(M){De=new ge(M)}function WM(t){M.versionBasedStatePersistence=t}function JM(M,t,e){if("function"==typeof M)return M;var N='var str="'+KM(M,"data",t,e)+"\";var valueRegEx = (/value=\\'([A-Za-z0-9 _]*)((.)([\\w)(!-;?-■\\s]+)['])/g);\n var hrefRegex = (/(?:href)([\\s='\"./]+)([\\w-./?=&\\\\#\"]+)((.)([\\w)(!-;/?-■\\s]+)['])/g);\n if(str.match(valueRegEx)){\n var check = str.match(valueRegEx);\n var str1 = str;\n for (var i=0; i < check.length; i++) {\n var check1 = str.match(valueRegEx)[i].split('value=')[1];\n var change = check1.match(/^'/) !== null ? check1.replace(/^'/, '\"') : check1;\n change =change.match(/.$/)[0] === '\\'' ? change.replace(/.$/,'\"') : change;\n str1 = str1.replace(check1, change);\n }\n str = str.replace(str, str1);\n }\n else if (str.match(/(?:href='')/) === null) {\n if(str.match(hrefRegex)) {\n var check = str.match(hrefRegex);\n var str1 = str;\n for (var i=0; i < check.length; i++) {\n var check1 = str.match(hrefRegex)[i].split('href=')[1];\n if (check1) {\n var change = check1.match(/^'/) !== null ? check1.replace(/^'/, '\"') : check1;\n change =change.match(/.$/)[0] === '\\'' ? change.replace(/.$/,'\"') : change;\n str1 = str1.replace(check1, change);\n }\n }\n str = str.replace(str, str1);\n }\n }\n return str;";return new Function("data",N).bind(t)}function KM(M,t,e,N){var i=0,g=[],D=M.match(/class="([^"]+|)\s{2}/g),I="";if(D&&D.forEach(function(t){I=t.replace(/\s\s+/g," "),M=M.replace(t,I)}),Xe.test(M)){for(var n=!1,r="",j=0;j<M.length;j++)"$"===M[j+""]&&"{"===M[j+1]?n=!0:"}"===M[j+""]&&(n=!1),r+='"'!==M[j+""]||n?M[j+""]:'\\"';M=r}else M=M.replace(/\\?"/g,'\\"');return M.replace(be,"").replace(Je,"'$1'").replace(Xe,function(M,D,I,n){var r=/@|#|\$/gm,j=D.match(He);if(j){var o=j[1];if(Pe.test(D))D='";} '+D.replace(j[1],o.replace(We,function(M){return M=M.trim(),XM(M,!ve.test(M)&&-1===g.indexOf(M),t,g,N)}))+'{ \n str = str + "';else if(Be.test(D))D='"; '+D.replace(j[1],o.replace(Ke,function(M){return qM(M,t,g,N)}))+'{ \n str = str + "';else if(Re.test(D)){var z=j[1].split(" of ");D='"; '+D.replace(j[1],function(M){return g.push(z[0]),g.push(z[0]+"Index"),"var i"+(i+=1)+"=0; i"+i+" < "+XM(z[1],!0,t,g,N)+".length; i"+i+"++"})+"{ \n "+z[0]+"= "+XM(z[1],!0,t,g,N)+"[i"+i+"]; \n var "+z[0]+"Index=i"+i+'; \n str = str + "'}else{var a=D.split("("),u=e&&Object.prototype.hasOwnProperty.call(e,a[0])?"this.":"global";u=/\./.test(a[0])?"":u;var T=j[1].split(",");0===j[1].length||/data/.test(T[0])||/window./.test(T[0])||(j[1]="global"===u?t+"."+j[1]:j[1]);var c=/@|\$|#/gm,A=/\]\./gm;MN.test(D)&&A.test(D)||c.test(D)?/@|\$|#|\]\./gm.test(D)&&(D='"+ '+("global"===u?"":u)+D.replace(j[1],o.replace(qe,function(M){return qM(M,t,g,N)}))+'+ "'):D='" + '+("global"===u?"":u)+D.replace(o,XM(j[1].replace(/,( |)data.|,/gi,","+t+".").replace(/,( |)data.window/gi,",window"),"global"!==u,t,g,N))+'+"'}}else Fe.test(D)?D='"; '+D.replace(Fe,'} else { \n str = str + "'):D.match(Ge)?D=D.replace(Ge,'"; \n } \n str = str + "'):r.test(D)?(D.match(_e)&&(D=$M(D)),D='"+'+_M(D,-1===g.indexOf(D),t,g)+'"]+"'):D=D.match(_e)?'"+'+_M(D=$M(D),-1===g.indexOf(D),t,g)+'"]+"':""!==D?'"+'+XM(D.replace(/,/gi,"+"+t+"."),-1===g.indexOf(D),t,g,N)+'+"':"${}";return D})}function XM(M,t,e,N,i){return!t||Ze.test(M)||-1!==N.indexOf(M.split(".")[0])||i||"true"===M||"false"===M?M:e+"."+M}function VM(M,t,e,N){var i=/^\..*/gm;return!t||Ze.test(M)||-1!==N.indexOf(M.split(".")[0])||i.test(M)?M:e+"."+M}function _M(M,t,e,N){return t&&!Ze.test(M)&&-1===N.indexOf(M.split(".")[0])?e+'["'+M:M}function $M(M){return M.match($e)?M:M.replace(_e,"\\\\")}function qM(M,t,e,N){if(M=M.trim(),/\window\./gm.test(M))return M;var i=/'|"/gm;return/@|\$|#/gm.test(M)&&(M=_M(M,-1===e.indexOf(M),t,e)+'"]'),Ve.test(M)?VM(M,!i.test(M)&&-1===e.indexOf(M),t,e):XM(M,!i.test(M)&&-1===e.indexOf(M),t,e,N)}function Mt(){return"-"+Math.random().toString(36).substr(2,5)}function tt(M,t,e){var N=iN.compile(M,t,e);return function(M,t,e,i,g,D,I,n){var r=N(M,t,e,I,n);if(L()&&!g){var j=i+Mt();if(NN[""+i]||(NN[""+i]=[]),o(D))M.BlazorTemplateId=j,NN[""+i].push(M);else for(var z=0,a=Object.keys(NN[""+i][parseInt(D.toString(),10)]);z<a.length;z++){var u=a[z];"BlazorTemplateId"!==u&&M[""+u]&&(NN[""+i][parseInt(D.toString(),10)][""+u]=M[""+u]),"BlazorTemplateId"===u&&(j=NN[""+i][parseInt(D.toString(),10)][""+u])}return"rowTemplate"===e?[U("tr",{id:j,className:"e-blazor-template"})]:[U("div",{id:j,className:"e-blazor-template"})]}if("string"==typeof r){if(eN.test(r))return(T=U("svg",{innerHTML:r})).childNodes;var T=U(tN.test(r)?"table":"div",{innerHTML:r});return T.childNodes}return r}}function et(M,t,e,N,i){if(L()){window.sfBlazor.updateTemplate(t,NN[""+M],M,e,i),!1!==N&&(NN[""+M]=[])}}function Nt(M,t,e){var N=document.getElementById(M);if(N)for(var i=N.getElementsByClassName("blazor-inner-template"),g=0;g<i.length;g++){var D=" ";D=o(e)?i[parseInt(g.toString(),10)].getAttribute("data-templateId"):i[parseInt(e.toString(),10)].getAttribute("data-templateId");var I=document.getElementById(D);if(I)for(var n=I.childNodes.length,r=0;r<n;r++)o(e)?i[parseInt(g.toString(),10)].appendChild(I.childNodes[0]):(i[parseInt(e.toString(),10)].appendChild(I.childNodes[0]),g=i.length)}}function it(M){iN.compile=M.compile}function gt(){return iN.compile}function Dt(M,t){var e;return M.prototype.CSPTemplate=!0,o(t)?e=M:(e=M.bind(t)).prototype=Object.create(M.prototype),e}var It="ej2_instances",nt=0,rt=!1,jt="undefined"!=typeof window?window:{},ot={latn:{_digits:"0123456789",_type:"numeric"}},zt={decimal:".",group:",",percentSign:"%",plusSign:"+",minusSign:"-",infinity:"∞",nan:"NaN",exponential:"E"},at=[0,1,2,3,4,5,6,7,8,9],ut=function(){function M(){}return M.getMainObject=function(M,t){return i(L()?t:"main."+t,M)},M.getNumberingSystem=function(M){return i("supplemental.numberingSystems",M)||this.numberingSystems},M.reverseObject=function(M,t){for(var e={},N=0,i=t||Object.keys(M);N<i.length;N++){var g=i[N];Object.prototype.hasOwnProperty.call(e,M[""+g])||(e[M[""+g]]=g)}return e},M.getSymbolRegex=function(M){var t=M.map(function(M){return M.replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1")}).join("|");return new RegExp(t,"g")},M.getSymbolMatch=function(M){for(var t={},e=0,N=Object.keys(zt);e<N.length;e++){var i=N[e];t[M[""+i]]=zt[""+i]}return t},M.constructRegex=function(M){for(var t=M.length,e="",N=0;N<t;N++)e+=N!==t-1?M[parseInt(N.toString(),10)]+"|":M[parseInt(N.toString(),10)];return e},M.convertValueParts=function(M,t,e){return M.replace(t,function(M){return e[""+M]})},M.getDefaultNumberingSystem=function(M){var t={};return t.obj=i("numbers",M),t.nSystem=i("defaultNumberingSystem",t.obj),t},M.getCurrentNumericOptions=function(M,t,e,N){var g={},D=this.getDefaultNumberingSystem(M);if(!z(D.nSystem)||N){var I=N?i("obj.mapperDigits",D):i(D.nSystem+"._digits",t);if(!z(I)){g.numericPair=this.reverseObject(I,at);var n=RegExp;g.numberParseRegex=new n(this.constructRegex(I),"g"),g.numericRegex="["+I[0]+"-"+I[9]+"]",e&&(g.numericRegex=I[0]+"-"+I[9],g.symbolNumberSystem=i(N?"numberSymbols":"symbols-numberSystem-"+D.nSystem,D.obj),g.symbolMatch=this.getSymbolMatch(g.symbolNumberSystem),g.numberSystem=D.nSystem)}}return g},M.getNumberMapper=function(M,t,e){var N={mapper:{}},g=this.getDefaultNumberingSystem(M);if(!z(g.nSystem)){N.numberSystem=g.nSystem,N.numberSymbols=i("symbols-numberSystem-"+g.nSystem,g.obj),N.timeSeparator=i("timeSeparator",N.numberSymbols);var D=i(g.nSystem+"._digits",t);if(!z(D))for(var I=0,n=at;I<n.length;I++){var r=n[I];N.mapper[parseInt(r.toString(),10)]=D[parseInt(r.toString(),10)]}}return N},M.nPair="numericPair",M.nRegex="numericRegex",M.numberingSystems=ot,M}(),Tt={DJF:"Fdj",ERN:"Nfk",ETB:"Br",NAD:"$",ZAR:"R",XAF:"FCFA",GHS:"GH₵",XDR:"XDR",AED:"د.إ.",BHD:"د.ب.",DZD:"د.ج.",EGP:"ج.م.",ILS:"₪",IQD:"د.ع.",JOD:"د.ا.",KMF:"CF",KWD:"د.ك.",LBP:"ل.ل.",LYD:"د.ل.",MAD:"د.م.",MRU:"أ.م.",OMR:"ر.ع.",QAR:"ر.ق.",SAR:"ر.س.",SDG:"ج.س.",SOS:"S",SSP:"£",SYP:"ل.س.",TND:"د.ت.",YER:"ر.ي.",CLP:"$",INR:"₹",TZS:"TSh",EUR:"€",AZN:"₼",RUB:"₽",BYN:"Br",ZMW:"K",BGN:"лв.",NGN:"₦",XOF:"CFA",BDT:"৳",CNY:"¥",BAM:"КМ",UGX:"USh",USD:"$",CZK:"Kč",GBP:"£",DKK:"kr.",KES:"Ksh",CHF:"CHF",MVR:"ރ.",BTN:"Nu.",XCD:"EC$",AUD:"$",BBD:"$",BIF:"FBu",BMD:"$",BSD:"$",BWP:"P",BZD:"$",CAD:"$",NZD:"$",FJD:"$",FKP:"£",GIP:"£",GMD:"D",GYD:"$",HKD:"$",IDR:"Rp",JMD:"$",KYD:"$",LRD:"$",MGA:"Ar",MOP:"MOP$",MUR:"Rs",MWK:"MK",MYR:"RM",PGK:"K",PHP:"₱",PKR:"Rs",RWF:"RF",SBD:"$",SCR:"SR",SEK:"kr",SGD:"$",SHP:"£",SLL:"Le",ANG:"NAf.",SZL:"E",TOP:"T$",TTD:"$",VUV:"VT",WST:"WS$",ARS:"$",BOB:"Bs",BRL:"R$",COP:"$",CRC:"₡",CUP:"$",DOP:"$",GTQ:"Q",HNL:"L",MXN:"$",NIO:"C$",PAB:"B/.",PEN:"S/",PYG:"₲",UYU:"$",VES:"Bs.S",IRR:"ريال",GNF:"FG",CDF:"FC",HTG:"G",XPF:"FCFP",HRK:"kn",HUF:"Ft",AMD:"֏",ISK:"kr",JPY:"¥",GEL:"₾",CVE:"​",KZT:"₸",KHR:"៛",KPW:"₩",KRW:"₩",KGS:"сом",AOA:"Kz",LAK:"₭",MZN:"MTn",MKD:"ден",MNT:"₮",BND:"$",MMK:"K",NOK:"kr",NPR:"रु",AWG:"Afl.",SRD:"$",PLN:"zł",AFN:"؋",STN:"Db",MDL:"L",RON:"lei",UAH:"₴",LKR:"රු.",ALL:"Lekë",RSD:"дин.",TJS:"смн",THB:"฿",TMT:"m.",TRY:"₺",UZS:"сўм",VND:"₫",TWD:"NT$"};M.defaultCurrencyCode="USD";var ct=null,At=null,yt=RegExp,st={"en-US":{d:"M/d/y",D:"EEEE, MMMM d, y",f:"EEEE, MMMM d, y h:mm a",F:"EEEE, MMMM d, y h:mm:s a",g:"M/d/y h:mm a",G:"M/d/yyyy h:mm:ss tt",m:"MMMM d",M:"MMMM d",r:"ddd, dd MMM yyyy HH':'mm':'ss 'GMT'",R:"ddd, dd MMM yyyy HH':'mm':'ss 'GMT'",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",t:"h:mm tt",T:"h:m:s tt",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",U:"dddd, MMMM d, yyyy h:mm:ss tt",y:"MMMM yyyy",Y:"MMMM yyyy"}};!function(t){function e(M,e,N,g,D){var n,r=N||"date";if(D)n=I({skeleton:M},D).format||I({skeleton:"d"},"en-US").format;else{if(-1!==t.basicPatterns.indexOf(M)){if(n=i(r+"Formats."+M,e),"dateTime"===r){var j=i("dateFormats."+M,e),o=i("timeFormats."+M,e);n=n.replace("{1}",j).replace("{0}",o)}}else n=i("dateTimeFormats.availableFormats."+M,e);z(n)&&"yMd"===M&&(n="M/d/y")}return n}function N(M,e,N,g){var D={},I=N||"gregorian";if(D.parserObject=ut.getMainObject(M,e)||(L()?t.blazorDefaultObject:t.defaultObject),g)D.numericObject=i("numbers",D.parserObject);else{var n=L()?"dates":"dates.calendars."+I;D.dateObject=i(n,D.parserObject)}return D}function g(M,t,e,N){return i(M+"Formats-numberSystem-"+t+(N?".accounting":".standard"),e)||(N?i(M+"Formats-numberSystem-"+t+".standard",e):"")}function D(M){var e=M.match(t.dateConverterMapper);if(e&&L()){var N=3===e[0].length?"EEE":"EEEE";return M.replace(t.dateConverterMapper,N)}return M}function I(M,t){var e=M.format||M.skeleton,N=i((t||"en-US")+"."+e,st);return N||(N=i("en-US."+e,st)),N&&(N=D(N),M.format=N.replace(/tt/,"a")),M}function n(M){var e=M.match(t.formatRegex),N={},i=e[1].toUpperCase();return N.isAccount="A"===i,N.type=t.patternMatcher[""+i],M.length>1&&(N.fractionDigits=parseInt(e[2],10)),N}function r(M,e,N,i){var g=i?{}:{nlead:"",nend:""},D=M.match(t.customRegex);if(D){i||(g.nlead=a(D[1],N),g.nend=a(D[10],N),g.groupPattern=D[4]);var I=D[7];if(I&&e){var n=I.match(d);o(n)?g.minimumFraction=0:g.minimumFraction=n.length,g.maximumFraction=I.length-1}}return g}function a(M,e){return M?(M=M.replace(t.defaultCurrency,e),""===e?M.trim():M):""}function u(M,t,e,N){var g=e?"."+e:".symbol";return N?"$":i("currencies."+t+g,M)||i("currencies."+t+".symbol-alt-narrow",M)||"$"}function T(M,t,e){for(var N={},i=M.split(";"),g=["pData","nData","zeroData"],D=0;D<i.length;D++)N[""+g[parseInt(D.toString(),10)]]=c(i[parseInt(D.toString(),10)],t,e);return o(N.nData)&&(N.nData=j({},N.pData),N.nData.nlead=o(t)?"-"+N.nData.nlead:t.minusSymbol+N.nData.nlead),N}function c(M,e,N){var i={type:"decimal",minimumFractionDigits:0,maximumFractionDigits:0},D=M.match(t.customRegex);if(o(D)||""===D[5]&&"N/A"!==M)return i.type=void 0,i;i.nlead=D[1],i.nend=D[10];var I=D[6],n=!!I.match(/ $/g),r=-1!==I.replace(/ $/g,"").indexOf(" ");i.useGrouping=-1!==I.indexOf(",")||r,I=I.replace(/,/g,""),I=/\s$/.test(I)?I.replace(/ /g,""):I;var z=D[7];if(-1!==I.indexOf("0")&&(i.minimumIntegerDigits=I.length-I.indexOf("0")),o(z)||(i.minimumFractionDigits=z.lastIndexOf("0"),i.maximumFractionDigits=z.lastIndexOf("#"),-1===i.minimumFractionDigits&&(i.minimumFractionDigits=0),(-1===i.maximumFractionDigits||i.maximumFractionDigits<i.minimumFractionDigits)&&(i.maximumFractionDigits=i.minimumFractionDigits)),o(e)?j(i,A([i.nlead,i.nend],"%","%")):(e.isCustomFormat=!0,j(i,A([i.nlead,i.nend],"$",e.currencySymbol)),i.isCurrency||j(i,A([i.nlead,i.nend],"%",e.percentSymbol))),!o(N)){var a=g(i.type,e.numberMapper.numberSystem,N,!1);i.useGrouping&&(i.groupSeparator=r?" ":e.numberMapper.numberSymbols[m[2]],i.groupData=ct.getGroupingDetails(a.split(";")[0])),i.nlead=i.nlead.replace(/'/g,""),i.nend=n?" "+i.nend.replace(/'/g,""):i.nend.replace(/'/g,"")}return i}function A(M,t,e){for(var N={nlead:M[0],nend:M[1]},i=0;i<2;i++){var g=M[parseInt(i.toString(),10)],D=g.indexOf(t);if(-1!==D&&(D<g.indexOf("'")||D>g.lastIndexOf("'"))){N[""+k[parseInt(i.toString(),10)]]=g.substr(0,D)+e+g.substr(D+1),N[""+k[""+t]]=!0,N.type=N.isCurrency?"currency":"percent";break}}return N}function y(M){var t=(i("dateFormats.short",M)||"").match(/[dM]([^dM])[dM]/i);return t?t[1]:"/"}function s(M,t,g,D){var n=N(g,M,t.calendar);L()&&(t=I(t,M));var r=t.format||e(t.skeleton,n.dateObject,t.type);if(D){if(-1!==(r=r.replace(U,function(M){return Q[""+M]})).indexOf("z")){var j=r.match(/z/g).length,o=void 0,z={timeZone:{}};z.numMapper=ut.getNumberMapper(n.parserObject,ut.getNumberingSystem(g)),z.timeZone=i("dates.timeZoneNames",n.parserObject);var a=(new Date).getTimezoneOffset(),u=j<4?"+H;-H":z.timeZone.hourFormat;u=u.replace(/:/g,z.numMapper.timeSeparator),0===a?o=z.timeZone.gmtZeroFormat:(o=At.getTimeZoneValue(a,u),o=z.timeZone.gmtFormat.replace(/\{0\}/,o)),r=r.replace(/[z]+/,'"'+o+'"')}r=r.replace(/ $/,"")}return r}function E(M,t){if(-1!==M.indexOf(",")){var e=M.split(",");M=e[0]+i("numberMapper.numberSymbols.group",t)+e[1].replace(".",i("numberMapper.numberSymbols.decimal",t))}else M=M.replace(".",i("numberMapper.numberSymbols.decimal",t));return M}function l(e,D,I,o){var z,a=N(I,e,"",!0),T={custom:!0},c=a.numericObject,A={},y=(D.format||"").match(t.currencyFormatRegex),s=t.formatRegex.test(D.format)?n(D.format||"N"):{},l={};if(y){l.numberMapper=L()?j({},a.numericObject):ut.getNumberMapper(a.parserObject,ut.getNumberingSystem(I),!0);var p=L()?i("currencySymbol",a.numericObject):u(a.numericObject,D.currency||M.defaultCurrencyCode,D.altSymbol),C=g("currency",l.numberMapper.numberSystem,a.numericObject,/a/i.test(D.format)),w=(C=C.replace(/\u00A4/g,p)).split(";");A.hasNegativePattern=!!L()||w.length>1,A.nData=L()?i(s.type+"nData",c):r(w[1]||"-"+w[0],!0,p),A.pData=L()?i(s.type+"pData",c):r(w[0],!1,p),y[2]||D.minimumFractionDigits||D.maximumFractionDigits||(z=r(C.split(";")[0],!0,"",!0).minimumFraction)}var h;if(t.formatRegex.test(D.format)||!D.format){if(j(T,n(D.format||"N")),T.custom=!1,h="###0",T.fractionDigits||D.minimumFractionDigits||D.maximumFractionDigits||z){T.fractionDigits&&(D.minimumFractionDigits=D.maximumFractionDigits=T.fractionDigits),h=O(h,z||T.fractionDigits||D.minimumFractionDigits||0,D.maximumFractionDigits||0)}if(D.minimumIntegerDigits&&(h=x(h,D.minimumIntegerDigits)),D.useGrouping&&(h=S(h)),"currency"===T.type||T.type&&L()){L()&&"currency"!==T.type&&(A.pData=i(T.type+"pData",c),A.nData=i(T.type+"nData",c));var d=h;h=A.pData.nlead+d+A.pData.nend,(A.hasNegativePattern||L())&&(h+=";"+A.nData.nlead+d+A.nData.nend)}"percent"!==T.type||L()||(h+=" %")}else h=D.format.replace(/'/g,'"');return Object.keys(l).length>0&&(h=o?h:E(h,l)),h}function O(M,t,e){M+=".";for(var N=0;N<t;N++)M+="0";if(t<e)for(var i=e-t,g=0;g<i;g++)M+="#";return M}function x(M,t){for(var e=M.split("."),N="",i=0;i<t;i++)N+="0";return e[1]?N+"."+e[1]:N}function S(M){var t=M.split("."),e=t[0],N=3-e.length%3;M="";for(var i=(e=(N&&1===N?"#":2===N?"##":"")+e).length-1;i>0;i-=3)M=","+e[i-2]+e[i-1]+e[parseInt(i.toString(),10)]+M;return M=M.slice(1),t[1]?M+"."+t[1]:M}function p(M,t){var e=Y,N=i("supplemental.weekData.firstDay",t),g=M;return/en-/.test(g)&&(g=g.slice(3)),g=g.slice(0,2).toUpperCase()+g.substr(2),N&&(e=N[""+g]||N[g.slice(0,2)]||Y),f[""+e]}function C(M,t,e){var N=w(e);if(t!==N)for(var i=0,g=M;i<g.length;i++){var D=g[i];D.nend=D.nend.replace(t,N),D.nlead=D.nlead.replace(t,N)}}function h(M,t){var e,N=new Date(M.getFullYear(),0,1),i=N.getDay();i=i>=0?i:i+7;var g=Math.floor((M.getTime()-N.getTime()-6e4*(M.getTimezoneOffset()-N.getTimezoneOffset()))/864e5)+1;if(i<4){if((e=Math.floor((g+i-t-1)/7)+1)>52){var D=new Date(M.getFullYear()+1,0,1).getDay();e=(D=D>=0?D:D+7)<4?1:53}}else e=Math.floor((g+i-t-1)/7);return e}t.negativeDataRegex=/^(('[^']+'|''|[^*#@0,.E])*)(\*.)?((([#,]*[0,]*0+)(\.0*[0-9]*#*)?)|([#,]*@+#*))(E\+?0+)?(('[^']+'|''|[^*#@0,.E])*)$/,t.customRegex=/^(('[^']+'|''|[^*#@0,.])*)(\*.)?((([0#,]*[0,]*[0#]*[0# ]*)(\.[0#]*)?)|([#,]*@+#*))(E\+?0+)?(('[^']+'|''|[^*#@0,.E])*)$/,t.latnParseRegex=/0|1|2|3|4|5|6|7|8|9/g;var d=/[0-9]/g;t.defaultCurrency="$";var m=["infinity","nan","group","decimal"],U=/G|M|L|H|c|'| a|yy|y|EEEE|E/g,Q={G:"",M:"m",L:"m",H:"h",c:"d","'":'"'," a":" AM/PM",yy:"yy",y:"yyyy",EEEE:"dddd",E:"ddd"};t.dateConverterMapper=/dddd|ddd/gi;var Y="sun";t.islamicRegex=/^islamic/;var f={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6};t.formatRegex=new yt("(^[ncpae]{1})([0-1]?[0-9]|20)?$","i"),t.currencyFormatRegex=new yt("(^[ca]{1})([0-1]?[0-9]|20)?$","i"),t.curWithoutNumberRegex=/(c|a)$/gi;var k={$:"isCurrency","%":"isPercent","-":"isNegative",0:"nlead",1:"nend"};t.dateParseRegex=/([a-z])\1*|'([^']|'')+'|''|./gi,t.basicPatterns=["short","medium","long","full"],t.defaultObject={dates:{calendars:{gregorian:{months:{"stand-alone":{abbreviated:{1:"Jan",2:"Feb",3:"Mar",4:"Apr",5:"May",6:"Jun",7:"Jul",8:"Aug",9:"Sep",10:"Oct",11:"Nov",12:"Dec"},narrow:{1:"J",2:"F",3:"M",4:"A",5:"M",6:"J",7:"J",8:"A",9:"S",10:"O",11:"N",12:"D"},wide:{1:"January",2:"February",3:"March",4:"April",5:"May",6:"June",7:"July",8:"August",9:"September",10:"October",11:"November",12:"December"}}},days:{"stand-alone":{abbreviated:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},narrow:{sun:"S",mon:"M",tue:"T",wed:"W",thu:"T",fri:"F",sat:"S"},short:{sun:"Su",mon:"Mo",tue:"Tu",wed:"We",thu:"Th",fri:"Fr",sat:"Sa"},wide:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"}}},dayPeriods:{format:{wide:{am:"AM",pm:"PM"}}},eras:{eraNames:{0:"Before Christ","0-alt-variant":"Before Common Era",1:"Anno Domini","1-alt-variant":"Common Era"},eraAbbr:{0:"BC","0-alt-variant":"BCE",1:"AD","1-alt-variant":"CE"},eraNarrow:{0:"B","0-alt-variant":"BCE",1:"A","1-alt-variant":"CE"}},dateFormats:{full:"EEEE, MMMM d, y",long:"MMMM d, y",medium:"MMM d, y",short:"M/d/yy"},timeFormats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},dateTimeFormats:{full:"{1} 'at' {0}",long:"{1} 'at' {0}",medium:"{1}, {0}",short:"{1}, {0}",availableFormats:{d:"d",E:"ccc",Ed:"d E",Ehm:"E h:mm a",EHm:"E HH:mm",Ehms:"E h:mm:ss a",EHms:"E HH:mm:ss",Gy:"y G",GyMMM:"MMM y G",GyMMMd:"MMM d, y G",GyMMMEd:"E, MMM d, y G",h:"h a",H:"HH",hm:"h:mm a",Hm:"HH:mm",hms:"h:mm:ss a",Hms:"HH:mm:ss",hmsv:"h:mm:ss a v",Hmsv:"HH:mm:ss v",hmv:"h:mm a v",Hmv:"HH:mm v",M:"L",Md:"M/d",MEd:"E, M/d",MMM:"LLL",MMMd:"MMM d",MMMEd:"E, MMM d",MMMMd:"MMMM d",ms:"mm:ss",y:"y",yM:"M/y",yMd:"M/d/y",yMEd:"E, M/d/y",yMMM:"MMM y",yMMMd:"MMM d, y",yMMMEd:"E, MMM d, y",yMMMM:"MMMM y"}}},islamic:{months:{"stand-alone":{abbreviated:{1:"Muh.",2:"Saf.",3:"Rab. I",4:"Rab. II",5:"Jum. I",6:"Jum. II",7:"Raj.",8:"Sha.",9:"Ram.",10:"Shaw.",11:"Dhuʻl-Q.",12:"Dhuʻl-H."},narrow:{1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12"},wide:{1:"Muharram",2:"Safar",3:"Rabiʻ I",4:"Rabiʻ II",5:"Jumada I",6:"Jumada II",7:"Rajab",8:"Shaʻban",9:"Ramadan",10:"Shawwal",11:"Dhuʻl-Qiʻdah",12:"Dhuʻl-Hijjah"}}},days:{"stand-alone":{abbreviated:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},narrow:{sun:"S",mon:"M",tue:"T",wed:"W",thu:"T",fri:"F",sat:"S"},short:{sun:"Su",mon:"Mo",tue:"Tu",wed:"We",thu:"Th",fri:"Fr",sat:"Sa"},wide:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"}}},dayPeriods:{format:{wide:{am:"AM",pm:"PM"}}},eras:{eraNames:{0:"AH"},eraAbbr:{0:"AH"},eraNarrow:{0:"AH"}},dateFormats:{full:"EEEE, MMMM d, y G",long:"MMMM d, y G",medium:"MMM d, y G",short:"M/d/y GGGGG"},timeFormats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},dateTimeFormats:{full:"{1} 'at' {0}",long:"{1} 'at' {0}",medium:"{1}, {0}",short:"{1}, {0}",availableFormats:{d:"d",E:"ccc",Ed:"d E",Ehm:"E h:mm a",EHm:"E HH:mm",Ehms:"E h:mm:ss a",EHms:"E HH:mm:ss",Gy:"y G",GyMMM:"MMM y G",GyMMMd:"MMM d, y G",GyMMMEd:"E, MMM d, y G",h:"h a",H:"HH",hm:"h:mm a",Hm:"HH:mm",hms:"h:mm:ss a",Hms:"HH:mm:ss",M:"L",Md:"M/d",MEd:"E, M/d",MMM:"LLL",MMMd:"MMM d",MMMEd:"E, MMM d",MMMMd:"MMMM d",ms:"mm:ss",y:"y G",yyyy:"y G",yyyyM:"M/y GGGGG",yyyyMd:"M/d/y GGGGG",yyyyMEd:"E, M/d/y GGGGG",yyyyMMM:"MMM y G",yyyyMMMd:"MMM d, y G",yyyyMMMEd:"E, MMM d, y G",yyyyMMMM:"MMMM y G",yyyyQQQ:"QQQ y G",yyyyQQQQ:"QQQQ y G"}}}},timeZoneNames:{hourFormat:"+HH:mm;-HH:mm",gmtFormat:"GMT{0}",gmtZeroFormat:"GMT"}},numbers:{currencies:{USD:{displayName:"US Dollar",symbol:"$","symbol-alt-narrow":"$"},EUR:{displayName:"Euro",symbol:"€","symbol-alt-narrow":"€"},GBP:{displayName:"British Pound","symbol-alt-narrow":"£"}},defaultNumberingSystem:"latn",minimumGroupingDigits:"1","symbols-numberSystem-latn":{decimal:".",group:",",list:";",percentSign:"%",plusSign:"+",minusSign:"-",exponential:"E",superscriptingExponent:"×",perMille:"‰",infinity:"∞",nan:"NaN",timeSeparator:":"},"decimalFormats-numberSystem-latn":{standard:"#,##0.###"},"percentFormats-numberSystem-latn":{standard:"#,##0%"},"currencyFormats-numberSystem-latn":{standard:"¤#,##0.00",accounting:"¤#,##0.00;(¤#,##0.00)"},"scientificFormats-numberSystem-latn":{standard:"#E0"}}},t.blazorDefaultObject={numbers:{mapper:{0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9"},mapperDigits:"0123456789",numberSymbols:{decimal:".",group:",",plusSign:"+",minusSign:"-",percentSign:"%",nan:"NaN",timeSeparator:":",infinity:"∞"},timeSeparator:":",currencySymbol:"$",currencypData:{nlead:"$",nend:"",groupSeparator:",",groupData:{primary:3},maximumFraction:2,minimumFraction:2},percentpData:{nlead:"",nend:"%",groupSeparator:",",groupData:{primary:3},maximumFraction:2,minimumFraction:2},percentnData:{nlead:"-",nend:"%",groupSeparator:",",groupData:{primary:3},maximumFraction:2,minimumFraction:2},currencynData:{nlead:"($",nend:")",groupSeparator:",",groupData:{primary:3},maximumFraction:2,minimumFraction:2},decimalnData:{nlead:"-",nend:"",groupData:{primary:3},maximumFraction:2,minimumFraction:2},decimalpData:{nlead:"",nend:"",groupData:{primary:3},maximumFraction:2,minimumFraction:2}},dates:{dayPeriods:{am:"AM",pm:"PM"},dateSeperator:"/",days:{abbreviated:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},short:{sun:"Su",mon:"Mo",tue:"Tu",wed:"We",thu:"Th",fri:"Fr",sat:"Sa"},wide:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"}},months:{abbreviated:{1:"Jan",2:"Feb",3:"Mar",4:"Apr",5:"May",6:"Jun",7:"Jul",8:"Aug",9:"Sep",10:"Oct",11:"Nov",12:"Dec"},wide:{1:"January",2:"February",3:"March",4:"April",5:"May",6:"June",7:"July",8:"August",9:"September",10:"October",11:"November",12:"December"}},eras:{1:"AD"}}},t.monthIndex={3:"abbreviated",4:"wide",5:"narrow",1:"abbreviated"},t.month="months",t.days="days",t.patternMatcher={C:"currency",P:"percent",N:"decimal",A:"currency",E:"scientific"},t.getResultantPattern=e,t.getDependables=N,t.getSymbolPattern=g,t.ConvertDateToWeekFormat=D,t.compareBlazorDateFormats=I,t.getProperNumericSkeleton=n,t.getFormatData=r,t.changeCurrencySymbol=a,t.getCurrencySymbol=u,t.customFormat=T,t.customNumberFormat=c,t.isCurrencyPercent=A,t.getDateSeparator=y,t.getActualDateTimeFormat=s,t.processSymbol=E,t.getActualNumberFormat=l,t.fractionDigitsPattern=O,t.minimumIntegerPattern=x,t.groupingPattern=S,t.getWeekData=p,t.replaceBlazorCurrency=C,t.getWeekOfYear=h}(M.IntlBase||(M.IntlBase={}));var Et=/^(.*?):[ \t]*([^\r\n]*)$/gm,lt="GET",Lt=function(){function M(M,t,e,N){this.mode=!0,this.emitError=!0,this.options={},"string"==typeof M?(this.url=M,this.type=t?t.toUpperCase():lt,this.mode=!!o(e)||e):"object"==typeof M&&(this.options=M,r(this,this.options)),this.type=this.type?this.type.toUpperCase():lt,this.contentType=void 0!==this.contentType?this.contentType:N}return M.prototype.send=function(M){var t=this;this.data=o(M)?this.data:M;var e={cancel:!1,httpRequest:null};return new Promise(function(M,N){t.httpRequest=new XMLHttpRequest,t.httpRequest.onreadystatechange=function(){t.stateChange(M,N)},o(t.onLoad)||(t.httpRequest.onload=t.onLoad),o(t.onProgress)||(t.httpRequest.onprogress=t.onProgress),o(t.onAbort)||(t.httpRequest.onabort=t.onAbort),o(t.onError)||(t.httpRequest.onerror=t.onError),o(t.onUploadProgress)||(t.httpRequest.upload.onprogress=t.onUploadProgress),t.httpRequest.open(t.type,t.url,t.mode),o(t.data)||null===t.contentType||t.httpRequest.setRequestHeader("Content-Type",t.contentType||"application/json; charset=utf-8"),t.beforeSend&&(e.httpRequest=t.httpRequest,t.beforeSend(e)),e.cancel||t.httpRequest.send(o(t.data)?null:t.data)})},M.prototype.successHandler=function(M){return this.onSuccess&&this.onSuccess(M,this),M},M.prototype.failureHandler=function(M){return this.onFailure&&this.onFailure(this.httpRequest),M},M.prototype.stateChange=function(M,t){var e=this.httpRequest.responseText;if(this.dataType&&"json"===this.dataType.toLowerCase())if(""===e)e=void 0;else try{e=JSON.parse(e)}catch(M){}4===this.httpRequest.readyState&&(this.httpRequest.status>=200&&this.httpRequest.status<=299||304===this.httpRequest.status?M(this.successHandler(e)):this.emitError?t(new Error(this.failureHandler(this.httpRequest.statusText))):M())},M.prototype.getResponseHeader=function(M){for(var t={},e=Et.exec(this.httpRequest.getAllResponseHeaders());e;)t[e[1].toLowerCase()]=e[2],e=Et.exec(this.httpRequest.getAllResponseHeaders());var N=t[M.toLowerCase()];return o(N)?null:N},M}(),Ot=function(){function M(M,t,e){this.type="GET",this.emitError=!0,"string"==typeof M?(this.url=M,this.type=o(t)?this.type:t.toUpperCase(),this.contentType=e):I(M)&&Object.keys(M).length>0&&r(this,M),this.contentType=o(this.contentType)?"application/json; charset=utf-8":this.contentType}return M.prototype.send=function(M){var t=this,e={"application/json":"json","multipart/form-data":"formData","application/octet-stream":"blob","application/x-www-form-urlencoded":"formData"};try{o(this.fetchRequest)&&"GET"===this.type?this.fetchRequest=new Request(this.url,{method:this.type}):o(this.fetchRequest)&&(this.data=o(M)?this.data:M,this.fetchRequest=new Request(this.url,{method:this.type,headers:{"Content-Type":this.contentType},body:this.data}));var N={cancel:!1,fetchRequest:this.fetchRequest};return this.triggerEvent(this.beforeSend,N),N.cancel?null:(this.fetchResponse=fetch(this.fetchRequest),this.fetchResponse.then(function(M){if(t.triggerEvent(t.onLoad,M),!M.ok)throw M;for(var N="text",i=0,g=Object.keys(e);i<g.length;i++){var D=g[i];M.headers.get("Content-Type")&&-1!==M.headers.get("Content-Type").indexOf(D)&&(N=e[D])}return M[N]()}).then(function(M){return t.triggerEvent(t.onSuccess,M,t),M}).catch(function(M){var e={};return t.emitError&&(t.triggerEvent(t.onFailure,M),e=Promise.reject(M)),e}))}catch(M){return M}},M.prototype.triggerEvent=function(M,t,e){o(M)||"function"!=typeof M||M(t,e)},M}(),xt={OPERA:/(opera|opr)(?:.*version|)[ /]([\w.]+)/i,EDGE:/(edge)(?:.*version|)[ /]([\w.]+)/i,CHROME:/(chrome|crios)[ /]([\w.]+)/i,PANTHOMEJS:/(phantomjs)[ /]([\w.]+)/i,SAFARI:/(safari)[ /]([\w.]+)/i,WEBKIT:/(webkit)[ /]([\w.]+)/i,MSIE:/(msie|trident) ([\w.]+)/i,MOZILLA:/(mozilla)(?:.*? rv:([\w.]+)|)/i};"undefined"!=typeof window&&(window.browserDetails=window.browserDetails||{});var St=function(){function M(){}return M.extractBrowserDetail=function(){for(var t={culture:{}},e=[],N=0,i=Object.keys(xt);N<i.length;N++){var g=i[N];if(e=M.userAgent.match(xt[""+g])){if(t.name="opr"===e[1].toLowerCase()?"opera":e[1].toLowerCase(),t.name="crios"===e[1].toLowerCase()?"chrome":t.name,t.version=e[2],t.culture.name=t.culture.language=navigator.language,M.userAgent.match(/Trident\/7\./)){t.name="msie";break}var D=M.userAgent.match(/(version)[ /]([\w.]+)/i);"safari"===t.name&&D&&(t.version=D[2]);break}}return t},M.getEvent=function(t){var e={start:{isPointer:"pointerdown",isTouch:"touchstart",isDevice:"mousedown"},move:{isPointer:"pointermove",isTouch:"touchmove",isDevice:"mousemove"},end:{isPointer:"pointerup",isTouch:"touchend",isDevice:"mouseup"},cancel:{isPointer:"pointercancel",isTouch:"touchcancel",isDevice:"mouseleave"}};return M.isPointer?e[""+t].isPointer:M.isTouch?e[""+t].isTouch+(M.isDevice?"":" "+e[""+t].isDevice):e[""+t].isDevice},M.getTouchStartEvent=function(){return M.getEvent("start")},M.getTouchEndEvent=function(){return M.getEvent("end")},M.getTouchMoveEvent=function(){return M.getEvent("move")},M.getTouchCancelEvent=function(){return M.getEvent("cancel")},M.isSafari=function(){return M.isDevice&&M.isIos&&M.isTouch&&"undefined"!=typeof window&&-1===window.navigator.userAgent.toLowerCase().indexOf("iphone")&&window.navigator.userAgent.toLowerCase().indexOf("safari")>-1},M.getValue=function(t,e){var N="undefined"!=typeof window?window.browserDetails:{};return"undefined"!=typeof navigator&&"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1&&!0===M.isTouch&&!xt.CHROME.test(navigator.userAgent)&&(N.isIos=!0,N.isDevice=!0,N.isTouch=!0,N.isPointer=!0,N.isPointer="pointerEnabled"in window.navigator),"undefined"!=typeof window&&window.Capacitor&&"ios"===window.Capacitor.getPlatform()&&(N.isPointer=!1),void 0===N[""+t]?N[""+t]=e.test(M.userAgent):N[""+t]},Object.defineProperty(M,"userAgent",{get:function(){return M.uA},set:function(t){M.uA=t,window.browserDetails={}},enumerable:!0,configurable:!0}),Object.defineProperty(M,"info",{get:function(){return z(window.browserDetails.info)?window.browserDetails.info=M.extractBrowserDetail():window.browserDetails.info},enumerable:!0,configurable:!0}),Object.defineProperty(M,"isIE",{get:function(){return M.getValue("isIE",/msie|trident/i)},enumerable:!0,configurable:!0}),Object.defineProperty(M,"isTouch",{get:function(){return z(window.browserDetails.isTouch)?window.browserDetails.isTouch="ontouchstart"in window.navigator||window&&window.navigator&&window.navigator.maxTouchPoints>0||"ontouchstart"in window:window.browserDetails.isTouch},enumerable:!0,configurable:!0}),Object.defineProperty(M,"isPointer",{get:function(){return z(window.browserDetails.isPointer)?window.browserDetails.isPointer="pointerEnabled"in window.navigator:window.browserDetails.isPointer},enumerable:!0,configurable:!0}),Object.defineProperty(M,"isMSPointer",{get:function(){return z(window.browserDetails.isMSPointer)?window.browserDetails.isMSPointer="msPointerEnabled"in window.navigator:window.browserDetails.isMSPointer},enumerable:!0,configurable:!0}),Object.defineProperty(M,"isDevice",{get:function(){return M.getValue("isDevice",/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini|mobile/i)},enumerable:!0,configurable:!0}),Object.defineProperty(M,"isIos",{get:function(){return M.getValue("isIos",/(ipad|iphone|ipod touch)/i)},enumerable:!0,configurable:!0}),Object.defineProperty(M,"isIos7",{