UNPKG

@progress/kendo-ui

Version:

This package is part of the [Kendo UI for jQuery](http://www.telerik.com/kendo-ui) suite.

1 lines 1.41 MB
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):((e="undefined"!=typeof globalThis?globalThis:e||self).kendo=e.kendo||{},e.kendo._globals=e.kendo._globals||{},e.kendo._globals.UiCore=t())}(this,(function(){let e;const t="change",n={small:"(max-width: 500px)",medium:"(min-width: 500.1px) and (max-width: 768px)",large:"(min-width: 768.1px)"};function i(i){if(i)return e=e||Object.assign({},n,kendo.defaults.breakpoints),i in e&&(i=e[i]),function(e){let n=window.matchMedia(e),i=[],o=[],r=[],a={mediaQueryList:n};const s=e=>{r.forEach((t=>t(e))),e.matches?i.forEach((t=>t(e))):o.forEach((t=>t(e)))};return n.addEventListener(t,s),a.onChange=e=>(r.push(e),a),a.onEnter=e=>{if(i.push(e),n.matches){const i=n.media;e(new MediaQueryListEvent(t,{media:i,matches:!0}))}return a},a.onLeave=e=>(o.push(e),a),a.destroy=()=>{n&&n.removeEventListener(t,s),i=null,o=null,r=null,n=null,a=null},a}(i)}function o(e){class t extends e{static extend(e){const n=class extends t{constructor(){super(),e&&e.init&&e.init.apply(this,arguments)}};return Object.assign(n.prototype,e),r(n.prototype),n.fn=n.prototype,n}}return r(t.prototype),t.fn=t.prototype,t}function r(e){Object.defineProperty(e,"_instance",{get:function(){return this}})}var a={name:"@progress/kendo-ui",productName:"Kendo UI",productCodes:["KENDOUICOMPLETE","KENDOUI","UIASPCORE","KENDOMVC","KENDOUIMVC"],publishDate:1731480436,version:"2024.4.1112".replace(/^\s+|\s+$/g,""),licensingDocsUrl:"https://docs.telerik.com/kendo-ui/intro/installation/using-license-code?utm_medium=product&utm_source=kendojquery&utm_campaign=kendo-ui-jquery-purchase-license-keys-warning"};!function(e,t,r){var s,l=t.kendo=t.kendo||{cultures:{}},c=e.extend,h=e.each,d=Array.isArray,u=e.noop,p=Math,f=t.JSON||{},m={},v=/%/,g=/\{(\d+)(:[^\}]+)?\}/g,_=/(\d+(?:\.?)\d*)px\s*(\d+(?:\.?)\d*)px\s*(\d+(?:\.?)\d*)px\s*(\d+)?/i,b=/^(\+|-?)\d+(\.?)\d*$/,w="month",y="hour",x="zone",k="weekday",z="quarter",C={G:"era",y:"year",q:z,Q:z,M:w,L:w,d:"day",E:k,c:k,e:k,h:y,H:y,k:y,K:y,m:"minute",s:"second",a:"dayperiod",t:"dayperiod",x:x,X:x,z:x,Z:x},S={month:{type:"months",minLength:3,standAlone:"L"},quarter:{type:"quarters",minLength:3,standAlone:"q"},weekday:{type:"days",minLength:{E:0,c:3,e:3},standAlone:"c"},dayperiod:{type:"dayPeriods",minLength:0},era:{type:"eras",minLength:0}},M="function",H="string",T="number",I="object",V="null",B="boolean",A="undefined",E="prefix",L="aria-labelledby",D="aria-label",O={},P={},F=[].slice,R=["themeColor","fillMode","shape","size","rounded","positionMode"],N=function(){var e,t,n,i,o,a,s=arguments[0]||{},l=1,c=arguments.length,h=!1;for("boolean"==typeof s&&(h=s,s=arguments[l]||{},l++),"object"!=typeof s&&"function"!=typeof s&&(s={}),l===c&&(s=this,l--);l<c;l++)if(null!=(o=arguments[l]))for(i in o)"filters"!=i&&"concat"!=i&&":"!=i&&"cssNumber"!=i&&(e=s[i],s!==(n=o[i])&&(h&&n&&(jQuery.isPlainObject(n)||(t=Array.isArray(n)))?(t?(t=!1,a=e&&Array.isArray(e)?e:[]):a=e&&jQuery.isPlainObject(e)?e:{},s[i]=N(h,a,n)):n!==r&&(s[i]=n)));return s};function q(){}l.version="2024.4.1112".replace(/^\s+|\s+$/g,""),q.extend=function(e){var t,n,i=function(){},o=this,r=e&&e.init?e.init:function(){o.apply(this,arguments)};for(t in i.prototype=o.prototype,n=r.fn=r.prototype=new i,e)null!=e[t]&&e[t].constructor===Object?n[t]=c(!0,{},i.prototype[t],e[t]):n[t]=e[t];return n.constructor=r,r.extend=o.extend,r},q.prototype._initOptions=function(e){this.options=oe({},this.options,e)},l.createProxyMember=function(e,t){e.fn[t]=function(){var e=this._instance;if(e)return e[t].apply(e,arguments)}},l.getBaseClass=function(e){if(e instanceof Function){let t=e;const n=Object.getPrototypeOf(t);if(n&&n!==Object&&n.name)return n}return null},l.getAllMethods=function(e){const t=Object.getOwnPropertyNames(e).filter((t=>"function"==typeof e[t])),n=Object.getOwnPropertyNames(Object.getPrototypeOf(new e({}))).filter((e=>"constructor"!==e));return t.concat(n)},l.convertPromiseToDeferred=function(t){let n=e.Deferred();return t.finally(n.always).then(n.resolve).catch(n.reject),n.promise()},l.ConvertClass=o;l.isPresent=e=>null!==e&&e!==r,l.isBlank=e=>null===e||e===r,l.isString=e=>"string"==typeof e,l.isNumeric=e=>!isNaN(e-parseFloat(e)),l.isDate=e=>e&&e.getTime;const j=l.isFunction=e=>"function"==typeof e;var W=function(){this._defaultPrevented=!0},$=function(){return!0===this._defaultPrevented},G=q.extend({init:function(){this._events={}},bind:function(e,t,n){var i,o,a,s,l=this,c=typeof e===H?[e]:e,h=typeof t===M;if(t===r){for(i in e)l.bind(i,e[i]);return l}for(i=0,o=c.length;i<o;i++)e=c[i],(s=h?t:t[e])&&(n&&(a=s,s=function(){l.unbind(e,s),a.apply(l,arguments)},s.original=a),(l._events[e]=l._events[e]||[]).push(s));return l},one:function(e,t){return this.bind(e,t,!0)},first:function(e,t){var n,i,o,r=this,a=typeof e===H?[e]:e,s=typeof t===M;for(n=0,i=a.length;n<i;n++)e=a[n],(o=s?t:t[e])&&(r._events[e]=r._events[e]||[]).unshift(o);return r},trigger:function(e,t){var n,i,o=this,r=o._events[e];if(r){for((t=t||{}).sender=o,t._defaultPrevented=!1,t.preventDefault=W,t.isDefaultPrevented=$,n=0,i=(r=r.slice()).length;n<i;n++)r[n].call(o,t);return!0===t._defaultPrevented}return!1},unbind:function(e,t){var n,i=this,o=i._events[e];if(e===r)i._events={};else if(o)if(t)for(n=o.length-1;n>=0;n--)o[n]!==t&&o[n].original!==t||o.splice(n,1);else i._events[e]=[];return i}});function U(e,t){if(t)return"'"+e.split("'").join("\\'").split('\\"').join('\\\\\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t")+"'";var n=e.charAt(0),i=e.substring(1);return"="===n?"+("+i+")+":":"===n?"+$kendoHtmlEncode("+i+")+":";"+e+";$kendoOutput+="}var K=/^\w+/,Y=/\$\{([^}]*)\}/g,Q=/\\\}/g,X=/__CURLY__/g,J=/\\#/g,Z=/__SHARP__/g,ee=["","0","00","000","0000"];function te(e,t,n){return(n=(t=t||2)-(e+="").length)?ee[t].substring(0,n)+e:e}function ne(t,n){var i,o,r;return(i=t.clone()).css("display",""),i.css("visibility","hidden"),i.appendTo(e("body")),o=i.outerWidth(n||!1),r=i.outerHeight(n||!1),i.remove(),{width:o||0,height:r||0}}function ie(e,t,n){var i=l._outerWidth,o=l._outerHeight,r=e.parent(),a=e.closest(".k-animation-container"),s=e.hasClass("k-tooltip"),c=e.is(":visible"),h=r[0].style,d=e[0].style.height;a.is(":hidden")&&a.css({display:"",position:""}),v.test(h.width)||v.test(h.height)||(c||e.add(r).show(),n&&r.css("width",""),r.css({width:t?i(e,!1,s)+1:i(e,!1,s)}),"auto"===d?e.css({height:o(r)}):r.css({height:o(e)}),c||e.hide())}function oe(e){var t=1,n=arguments.length;for(t=1;t<n;t++)re(e,arguments[t]);return e}function re(e,n){var i,o,r,a,s,c=l.data.ObservableArray,h=l.data.LazyObservableArray,d=l.data.DataSource,u=l.data.HierarchicalDataSource;for(i in n)"__proto__"!==i&&"constructor"!==i&&(!(a=(r=typeof(o=n[i]))===I&&null!==o?o.constructor:null)||a===Array||a===c||a===h||a===d||a===u||a===RegExp||l.isFunction(t.ArrayBuffer)&&a===ArrayBuffer||o instanceof HTMLElement?r!==A&&(e[i]=o):o instanceof Date?e[i]=new Date(o.getTime()):j(o.clone)?e[i]=o.clone():(s=e[i],e[i]=typeof s===I&&s||{},re(e[i],o)));return e}function ae(e,t,n){for(var i in t)if(t.hasOwnProperty(i)&&t[i].test(e))return i;return n!==r?n:e}function se(e){return e.replace(/\-(\w)/g,(function(e,t){return t.toUpperCase()}))}function le(t,n){var i,o={};return document.defaultView&&document.defaultView.getComputedStyle?(i=document.defaultView.getComputedStyle(t,""),n&&e.each(n,(function(e,t){o[t]=i.getPropertyValue(t)}))):(i=t.currentStyle,n&&e.each(n,(function(e,t){o[t]=i[se(t)]}))),l.size(o)||(o=i),o}s={paramName:"data",useWithBlock:!0,render:function(e,t){var n,i,o="";for(n=0,i=t.length;n<i;n++)o+=e(t[n]);return o},compile:function(e,n){var i,o,r,a=c({},this,n),s=a.paramName,h=s.match(K)[0],d=a.useWithBlock,u="var $kendoOutput, $kendoHtmlEncode = kendo.htmlEncode;";if(j(e))return e;for(u+=d?"with("+s+"){":"",u+="$kendoOutput=",o=e.replace(Q,"__CURLY__").replace(Y,"#=$kendoHtmlEncode($1)#").replace(X,"}").replace(J,"__SHARP__").split("#"),r=0;r<o.length;r++)u+=U(o[r],r%2==0);u+=d?";}":";",u=(u+="return $kendoOutput;").replace(Z,"#");try{return(i=new Function(h,u))._slotCount=Math.floor(o.length/2),i}catch(n){if(!l.debugTemplates)throw new Error(l.format("Invalid template:'{0}' Generated code:'{1}'",e,u));t.console.warn(`Invalid template:'${e}' Generated code:'${u}'`)}}},function(){var e,t,n,i=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,o={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},r={}.toString;function a(e){return i.lastIndex=0,i.test(e)?'"'+e.replace(i,(function(e){var t=o[e];return typeof t===H?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)}))+'"':'"'+e+'"'}function s(i,o){var l,c,h,d,u,p,f=e,m=o[i];if(m&&typeof m===I&&typeof m.toJSON===M&&(m=m.toJSON(i)),typeof n===M&&(m=n.call(o,i,m)),(p=typeof m)===H)return a(m);if(p===T)return isFinite(m)?String(m):V;if(p===B||p===V)return String(m);if(p===I){if(!m)return V;if(e+=t,u=[],"[object Array]"===r.apply(m)){for(d=m.length,l=0;l<d;l++)u[l]=s(l,m)||V;return h=0===u.length?"[]":e?"[\n"+e+u.join(",\n"+e)+"\n"+f+"]":"["+u.join(",")+"]",e=f,h}if(n&&typeof n===I)for(d=n.length,l=0;l<d;l++)typeof n[l]===H&&(h=s(c=n[l],m))&&u.push(a(c)+(e?": ":":")+h);else for(c in m)Object.hasOwnProperty.call(m,c)&&(h=s(c,m))&&u.push(a(c)+(e?": ":":")+h);return h=0===u.length?"{}":e?"{\n"+e+u.join(",\n"+e)+"\n"+f+"}":"{"+u.join(",")+"}",e=f,h}}typeof Date.prototype.toJSON!==M&&(Date.prototype.toJSON=function(){var e=this;return isFinite(e.valueOf())?te(e.getUTCFullYear(),4)+"-"+te(e.getUTCMonth()+1)+"-"+te(e.getUTCDate())+"T"+te(e.getUTCHours())+":"+te(e.getUTCMinutes())+":"+te(e.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()}),typeof f.stringify!==M&&(f.stringify=function(i,o,r){var a;if(e="",t="",typeof r===T)for(a=0;a<r;a+=1)t+=" ";else typeof r===H&&(t=r);if(n=o,o&&typeof o!==M&&(typeof o!==I||typeof o.length!==T))throw new Error("JSON.stringify");return s("",{"":i})})}(),function(){var t=/EEEE|dddd|ddd|dd|d|MMMM|MMM|MM|M|yyyy|yy|HH|H|hh|h|mm|m|fff|ff|f|tt|ss|s|zzz|zz|z|"[^"]*"|'[^']*'/g,n=/^(n|c|p|e)(\d*)$/i,i=/(\\.)|(['][^']*[']?)|(["][^"]*["]?)/g,o=/\,/g,a="",s=".",c="#",h="0",d="en-US",u={}.toString;function f(e){if(e){if(e.numberFormat)return e;if(typeof e===H){var t=l.cultures;return t[e]||t[e.split("-")[0]]||null}return null}return null}function m(e){return e&&(e=f(e)),e||l.cultures.current}l.cultures=l.cultures||{},l.cultures["en-US"]={name:d,numberFormat:{pattern:["-n"],decimals:2,",":",",".":".",groupSize:[3],percent:{pattern:["-n %","n %"],decimals:2,",":",",".":".",groupSize:[3],symbol:"%"},currency:{name:"US Dollar",abbr:"USD",pattern:["($n)","$n"],decimals:2,",":",",".":".",groupSize:[3],symbol:"$"}},calendars:{standard:{days:{names:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],namesAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],namesShort:["Su","Mo","Tu","We","Th","Fr","Sa"]},months:{names:["January","February","March","April","May","June","July","August","September","October","November","December"],namesAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]},AM:["AM","am","AM"],PM:["PM","pm","PM"],patterns:{d:"M/d/yyyy",D:"dddd, MMMM dd, yyyy",F:"dddd, MMMM dd, yyyy h:mm:ss tt",g:"M/d/yyyy h:mm tt",G:"M/d/yyyy h:mm:ss tt",m:"MMMM dd",M:"MMMM dd",s:"yyyy'-'MM'-'ddTHH':'mm':'ss",t:"h:mm tt",T:"h:mm:ss tt",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",y:"MMMM, yyyy",Y:"MMMM, yyyy"},"/":"/",":":":",firstDay:0,twoDigitYearMax:2029}}},l.culture=function(e){var t,n,i=l.cultures;if(e===r)return(n=i.current.calendars).standard.AM&&n.standard.AM.length&&n.standard.PM&&n.standard.PM.length&&n.standard.AM.indexOf("PMA0")<0&&(n.standard.AM.indexOf("AM")>-1||n.standard.PM.indexOf("PM")>-1)&&(n.standard.AM.push("a","A","PMa","PMA","PMa0","PMA0"),n.standard.PM.push("p","P","AMp","AMP","AMp0","AMP0")),i.current;(t=f(e)||i[d]).calendar=t.calendars.standard,i.current=t},l.findCulture=f,l.getCulture=m,l.kendoCultureToIntl=function(e){e=m(e)||l.cultures.current;let t={};t[e.numberFormat.currency.abbr]=e.numberFormat.currency;const n={},[i,o]=e.name.split("-");if(n.name=i,n.identity={language:i},o&&(n.territory=o),e.numberFormat&&(n.numbers={symbols:{decimal:e.numberFormat["."],group:e.numberFormat[","],percentSign:e.numberFormat.percent?.symbol||"%"},decimal:{patterns:e.numberFormat.pattern,groupSize:e.numberFormat.groupSize},currency:{patterns:e.numberFormat.currency?.pattern,groupSize:e.numberFormat.currency?.groupSize},percent:{patterns:e.numberFormat.percent?.pattern,groupSize:e.numberFormat.percent?.groupSize,decimals:e.numberFormat.percent?.decimals}},e.numberFormat.currency&&(n.numbers.currencies={[e.numberFormat.currency.abbr]:e.numberFormat.currency},n.numbers.localeCurrency=e.numberFormat.currency.abbr)),e.calendars&&e.calendars.standard){const t=e.calendars.standard;n.calendar={patterns:{d:t.patterns.d,D:t.patterns.D,F:t.patterns.F,g:t.patterns.g,G:t.patterns.G,m:t.patterns.m,M:t.patterns.M,s:t.patterns.s,t:t.patterns.t,T:t.patterns.T,u:t.patterns.u,y:t.patterns.y,Y:t.patterns.Y},days:{format:{wide:t.days.names,abbreviated:t.days.namesAbbr,short:t.days.namesShort},"stand-alone":{wide:t.days.names,abbreviated:t.days.namesAbbr,short:t.days.namesShort}},months:{format:{wide:t.months.names,abbreviated:t.months.namesAbbr,narrow:t.months.namesAbbr.map((e=>e.charAt(0)))},"stand-alone":{wide:t.months.names,abbreviated:t.months.namesAbbr,narrow:t.months.namesAbbr.map((e=>e.charAt(0)))}},dayPeriods:{format:{abbreviated:{am:t.AM[0],pm:t.PM[0]},narrow:{am:t.AM[1],pm:t.PM[1]},wide:{am:t.AM[0],pm:t.PM[0]}},"stand-alone":{abbreviated:{am:t.AM[0],pm:t.PM[0]},narrow:{am:t.AM[1],pm:t.PM[1]},wide:{am:t.AM[0],pm:t.PM[0]}}}},"firstDay"in t&&(n.firstDay=t.firstDay)}return{localeInfo:()=>({numbers:{localeCurrency:e.numberFormat.currency.abbr,currencies:t,symbols:{group:e.numberFormat[","],decimal:e.numberFormat["."],percentSign:e.numberFormat.percent.symbol}},calendar:{patterns:e.calendars.standard.patterns,months:{format:{wide:e.calendars.standard.months.names,abbreviated:e.calendars.standard.months.namesAbbr}},days:{format:{wide:e.calendars.standard.days.names,abbreviated:e.calendars.standard.days.namesAbbr}}}}),parseDate:(e,t)=>l.parseExactDate(e,t),toString:(e,t)=>b(e,t),format:(e,...t)=>l.format(e,t)}},l.culture(d);var v=function(e,t,n,i){var o,a,l,c,h,d,u=e.indexOf(i[s]),p=i.groupSize.slice(),f=p.shift();if(n=-1!==u?u:n+1,(a=(o=e.substring(t,n)).length)>=f){for(l=a,c=[];l>-1;)if((h=o.substring(l-f,l))&&c.push(h),l-=f,0===(f=(d=p.shift())!==r?d:f)){l>0&&c.push(o.substring(0,l));break}o=c.reverse().join(i[","]),e=e.substring(0,t)+o+e.substring(n)}return e},_=function(e,t,n){return t=t||0,e=e.toString().split("e"),e=Math.round(+(e[0]+"e"+(e[1]?+e[1]+t:t))),n&&(e=-e),(e=+((e=e.toString().split("e"))[0]+"e"+(e[1]?+e[1]-t:-t))).toFixed(Math.min(t,20))},b=function(e,l,d){if(l){if("[object Date]"===u.call(e))return function(e,n,i){var o=(i=m(i)).calendars.standard,a=o.days,s=o.months;return(n=n.pattern||o.patterns[n]||n).replace(t,(function(t){var n,i,l;return"d"===t?i=e.getDate():"dd"===t?i=te(e.getDate()):"ddd"===t?i=a.namesAbbr[e.getDay()]:"dddd"===t||"EEEE"===t?i=a.names[e.getDay()]:"M"===t?i=e.getMonth()+1:"MM"===t?i=te(e.getMonth()+1):"MMM"===t?i=s.namesAbbr[e.getMonth()]:"MMMM"===t?i=s.names[e.getMonth()]:"yy"===t?i=te(e.getFullYear()%100):"yyyy"===t?i=te(e.getFullYear(),4):"h"===t?i=e.getHours()%12||12:"hh"===t?i=te(e.getHours()%12||12):"H"===t?i=e.getHours():"HH"===t?i=te(e.getHours()):"m"===t?i=e.getMinutes():"mm"===t?i=te(e.getMinutes()):"s"===t?i=e.getSeconds():"ss"===t?i=te(e.getSeconds()):"f"===t?i=p.floor(e.getMilliseconds()/100):"ff"===t?((i=e.getMilliseconds())>99&&(i=p.floor(i/10)),i=te(i)):"fff"===t?i=te(e.getMilliseconds(),3):"tt"===t||"aa"===t?i=e.getHours()<12?o.AM[0]:o.PM[0]:"zzz"===t?(l=(n=e.getTimezoneOffset())<0,i=p.abs(n/60).toString().split(".")[0],n=p.abs(n)-60*i,i=(l?"+":"-")+te(i),i+=":"+te(n)):"zz"!==t&&"z"!==t||(l=(i=e.getTimezoneOffset()/60)<0,i=p.abs(i).toString().split(".")[0],i=(l?"+":"-")+("zz"===t?te(i):i)),i!==r?i:t.slice(1,t.length-1)}))}(e,l,d);if(typeof e===T)return function(e,t,l){var d,u,p,f,g,b,w,y,x,k,z,C,S,M,H,T,I,V,B,A,E=(l=m(l)).numberFormat,L=E[s],D=E.decimals,O=E.pattern[0],P=[],F=e<0,R=a,N=a,q=-1;if(e===r)return a;if(!isFinite(e))return e;if(!t)return l.name.length?e.toLocaleString():e.toString();if(g=n.exec(t)){if(p="p"===(t=g[1].toLowerCase()),((u="c"===t)||p)&&(L=(E=u?E.currency:E.percent)[s],D=E.decimals,d=E.symbol,O=E.pattern[F?0:1]),(f=g[2])&&(D=+f),"e"===t)return(f?e.toExponential(D):e.toExponential()).replace(s,E[s]);if(p&&(e*=100),F=(e=_(e,D))<0,b=(e=e.split(s))[0],w=e[1],F&&(b=b.substring(1)),N=v(b,0,b.length,E),w&&(N+=L+w),"n"===t&&!F)return N;for(e=a,x=0,k=O.length;x<k;x++)e+="n"===(z=O.charAt(x))?N:"$"===z||"%"===z?d:z;return e}if((t.indexOf("'")>-1||t.indexOf('"')>-1||t.indexOf("\\")>-1)&&(t=t.replace(i,(function(e){var t=e.charAt(0).replace("\\",""),n=e.slice(1).replace(t,"");return P.push(n),"??"}))),t=t.split(";"),F&&t[1])t=t[1],S=!0;else if(0===e&&t[2]){if(-1==(t=t[2]).indexOf(c)&&-1==t.indexOf(h))return t}else t=t[0];if((p=-1!=t.indexOf("%"))&&(e*=100),(u=-1!=(B=t.indexOf("$")))&&"\\"===t[B-1]&&(t=t.split("\\").join(""),u=!1),(u||p)&&(L=(E=u?E.currency:E.percent)[s],D=E.decimals,d=E.symbol),(C=t.indexOf(",")>-1)&&(t=t.replace(o,a)),M=t.indexOf(s),k=t.length,-1!=M)if(w=(w=(w=e.toString().split("e"))[1]?_(e,Math.abs(w[1])):w[0]).split(s)[1]||a,I=(T=t.lastIndexOf(h)-M)>-1,V=(H=t.lastIndexOf(c)-M)>-1,x=w.length,I||V||(k=(t=t.substring(0,M)+t.substring(M+1)).length,M=-1,x=0),I&&T>H)x=T;else if(H>T)if(V&&x>H){for(var j=_(e,H,F);j.charAt(j.length-1)===h&&H>0&&H>T;)H--,j=_(e,H,F);x=H}else I&&x<T&&(x=T);if(e=_(e,x,F),H=t.indexOf(c),T=t.indexOf(h),q=-1==H&&-1!=T?T:-1!=H&&-1==T?H:H>T?T:H,H=t.lastIndexOf(c),T=t.lastIndexOf(h),A=-1==H&&-1!=T?T:-1!=H&&-1==T||H>T?H:T,q==k&&(A=q),-1!=q){for(b=(N=e.toString().split(s))[0],w=N[1]||a,y=b.length,w.length,F&&-1*e>=0&&(F=!1),e=t.substring(0,q),F&&!S&&(e+="-"),x=q;x<k;){if(z=t.charAt(x),-1==M){if(A-x<y){e+=b;break}}else if(-1!=T&&T<x&&(R=a),M-x<=y&&M-x>-1&&(e+=b,x=M),M===x){e+=(w?L:a)+w,x+=A-M+1;continue}z===h?(e+=z,R=z):z===c&&(e+=R),x++}if(C&&(e=v(e,q+(F&&!S?1:0),Math.max(A,y+q),E)),A>=q&&(e+=t.substring(A+1)),u||p){for(N=a,x=0,k=e.length;x<k;x++)N+="$"===(z=e.charAt(x))||"%"===z?d:z;e=N}if(k=P.length)for(x=0;x<k;x++)e=e.replace("??",P[x])}return e}(e,l,d)}return e!==r?e:""};l.format=function(e){var t=arguments;return e.replace(g,(function(e,n,i){var o=t[parseInt(n,10)+1];return b(o,i?i.substring(1):"")}))},l._extractFormat=function(e){return"{0:"===e.slice(0,3)&&(e=e.slice(3,e.length-1)),e},l._activeElement=function(){try{return document.activeElement}catch(e){return document.documentElement.activeElement}},l._round=_,l._outerWidth=function(t,n,i){return t=e(t),i?ne(t,n).width:e(t).outerWidth(n||!1)||0},l._outerHeight=function(t,n,i){return t=e(t),i?ne(t,n).height:e(t).outerHeight(n||!1)||0},l.toString=b}(),function(){var t=/\u00A0/g,n=/\s/g,i=/[eE][\-+]?[0-9]+/,o=/[+|\-]\d{1,2}/,a=/[+|\-]\d{1,2}:?\d{2}/,s=/^\/Date\((.*?)\)\/$/,c=/[+-]\d*/,h=[[],["G","g","F"],["D","d","y","m","T","t"]],u=[["yyyy-MM-ddTHH:mm:ss.fffffffzzz","yyyy-MM-ddTHH:mm:ss.fffffff","yyyy-MM-ddTHH:mm:ss.fffzzz","yyyy-MM-ddTHH:mm:ss.fff","ddd MMM dd yyyy HH:mm:ss","yyyy-MM-ddTHH:mm:sszzz","yyyy-MM-ddTHH:mmzzz","yyyy-MM-ddTHH:mmzz","yyyy-MM-ddTHH:mm:ss","yyyy-MM-dd HH:mm:ss","yyyy/MM/dd HH:mm:ss"],["yyyy-MM-ddTHH:mm","yyyy-MM-dd HH:mm","yyyy/MM/dd HH:mm"],["yyyy/MM/dd","yyyy-MM-dd","HH:mm:ss","HH:mm"]],f={2:/^\d{1,2}/,3:/^\d{1,3}/,4:/^\d{4}/,exact3:/^\d{3}/},m={}.toString;function v(e,t,n){return!(e>=t&&e<=n)}function g(e){return e.charAt(0)}function _(t){return e.map(t,g)}function b(e){for(var t=0,n=e.length,i=[];t<n;t++)i[t]=(e[t]+"").toLowerCase();return i}function w(e){var t,n={};for(t in e)n[t]=b(e[t]);return n}function y(e){return Array.from(e).sort(((e,t)=>t.length-e.length))[0].length}function x(e,t,n,i,s){if(!e)return null;var c,h,d,u,p,m,g,b,x,k,z,C,S=function(e){for(var n=0;t[P]===e;)n++,P++;return n>0&&(P-=1),n},M=function(t){var n,i,o="";if(2===t)for(let n=0;n<=t;n++)o+=e[F+n]||"";return o=s&&o.match(f.exact3)&&Number.isInteger(Number(o))&&Number(o)>0?function(e){return e.replace(/^0*/,"")}(o):e.substr(F,t),n=f[t]||new RegExp("^\\d{1,"+t+"}"),(i=o.match(n))?(i=i[0],F+=i.length,parseInt(i,10)):null},H=function(t,n,i){for(var o,r,a,s=0,l=t.length,c=0,h=0;s<l;s++)r=(o=t[s]).length,a=e.substr(F,i||r),n&&(a=a.toLowerCase()),a==o&&r>c&&(c=r,h=s);return c?(F+=c,h+1):null},T=function(){var n=!1;return e.charAt(F)===t[P]&&(F++,n=!0),n},I=n.calendars.standard,V=null,B=null,A=null,E=null,L=null,D=null,O=null,P=0,F=0,R=!1,N=new Date,q=I.twoDigitYearMax||2029,j=N.getFullYear();for(t||(t="d"),(u=I.patterns[t])&&(t=u),d=(t=t.split("")).length;P<d;P++)if(c=t[P],R)"'"===c?R=!1:T();else if("d"===c){if(h=S("d"),I._lowerDays||(I._lowerDays=w(I.days)),null!==A&&h>2)continue;if(null===(A=h<3?M(2):H(I._lowerDays[3==h?"namesAbbr":"names"],!0))||v(A,1,31))return null}else if("M"===c){if(h=S("M"),I._lowerMonths||(I._lowerMonths=w(I.months)),null===(B=h<3?M(2):H(I._lowerMonths[3==h?"namesAbbr":"names"],!0))||v(B,1,12))return null;B-=1}else if("y"===c){if(null===(V=M(h=S("y"))))return null;2==h&&("string"==typeof q&&(q=j+parseInt(q,10)),(V=j-j%100+V)>q&&(V-=100))}else if("h"===c){if(S("h"),12==(E=M(2))&&(E=0),null===E||v(E,0,11))return null}else if("H"===c){if(S("H"),null===(E=M(2))||v(E,0,23))return null}else if("m"===c){if(S("m"),null===(L=M(2))||v(L,0,59))return null}else if("s"===c){if(S("s"),null===(D=M(2))||v(D,0,59))return null}else if("f"===c){if(h=S("f"),C=e.substr(F,h).match(f[3]),null!==(O=M(h))&&(O=parseFloat("0."+C[0],10),O=l._round(O,3),O*=1e3),null===O||v(O,0,999))return null}else if("t"===c){if(h=S("t"),b=I.AM,x=I.PM,1===h&&(b=_(b),x=_(x)),!(p=H(x,!1,y(x)))&&!H(b,!1,y(b)))return null}else if("z"===c){if(m=!0,h=S("z"),"Z"===e.substr(F,1)){T();continue}if(!(g=e.substr(F,6).match(h>2?a:o)))return null;if(k=(g=g[0].split(":"))[0],!(z=g[1])&&k.length>3&&(F=k.length-2,z=k.substring(F),k=k.substring(0,F)),v(k=parseInt(k,10),-12,13))return null;if(h>2&&(z=g[0][0]+z,z=parseInt(z,10),isNaN(z)||v(z,-59,59)))return null}else if("'"===c)R=!0,T();else if(!T())return null;return i&&!/^\s*$/.test(e.substr(F))?null:(null===V&&null===B&&null===A&&(null!==E||null!==L||D||null)?(V=j,B=N.getMonth(),A=N.getDate()):(null===V&&(V=j),null===A&&(A=1)),p&&E<12&&(E+=12),m?(k&&(E+=-k),z&&(L+=-z),e=new Date(Date.UTC(V,B,A,E,L,D,O))):function(e,t){t||23!==e.getHours()||e.setHours(e.getHours()+2)}(e=new Date(V,B,A,E,L,D,O),E),V<100&&e.setFullYear(V),e.getDate()!==A&&m===r?null:e)}function k(e,t,n,i,o){if("[object Date]"===m.call(e))return e;var r,a,f,v,g=0,_=null;if(e&&0===e.indexOf("/D")&&(_=s.exec(e)))return _=_[1],a=c.exec(_.substring(1)),_=new Date(parseInt(_,10)),a&&(f=a[0],v="-"===f.substr(0,1)?-1:1,f=f.substring(1),a=v*(60*parseInt(f.substr(0,2),10)+parseInt(f.substring(2),10)),_=l.timezone.apply(_,0),_=l.timezone.convert(_,0,-1*a)),_;for(n=l.getCulture(n),t||(t=function(e){var t,n,i,o=p.max(h.length,u.length),r=(e.calendar||e.calendars.standard).patterns,a=[];for(i=0;i<o;i++){for(t=h[i],n=0;n<t.length;n++)a.push(r[t[n]]);a=a.concat(u[i])}return a}(n)),r=(t=d(t)?t:[t]).length;g<r;g++)if(_=x(e,t[g],n,i,o))return _;return _}l.parseDate=function(e,t,n,i){return k(e,t,n,!1,i)},l.parseExactDate=function(e,t,n){return k(e,t,n,!0)},l.parseInt=function(e,t){var n=l.parseFloat(e,t);return n&&(n|=0),n},l.parseFloat=function(e,o,r){if(!e&&0!==e)return null;if(typeof e===T)return e;e=e.toString();var a,s,c=(o=l.getCulture(o)).numberFormat,h=c.percent,d=c.currency,u=d.symbol,p=h.symbol,f=e.indexOf("-");return i.test(e)?(e=parseFloat(e.replace(c["."],".")),isNaN(e)&&(e=null),e):f>0?null:(f=f>-1,e.indexOf(u)>-1||r&&r.toLowerCase().indexOf("c")>-1?(a=(c=d).pattern[0].replace("$",u).split("n"),e.indexOf(a[0])>-1&&e.indexOf(a[1])>-1&&(e=e.replace(a[0],"").replace(a[1],""),f=!0)):e.indexOf(p)>-1&&(s=!0,c=h,u=p),e=e.replace("-","").replace(u,"").replace(t," ").split(c[","].replace(t," ")).join("").replace(n,"").replace(c["."],"."),e=parseFloat(e),isNaN(e)?e=null:f&&(e*=-1),e&&s&&(e/=100),e)}}(),function(){m._scrollbar=r,m.scrollbar=function(e){if(isNaN(m._scrollbar)||e){var t,n=document.createElement("div");return n.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",n.innerHTML="&nbsp;",document.body.appendChild(n),m._scrollbar=t=n.offsetWidth-n.scrollWidth,document.body.removeChild(n),t}return m._scrollbar},m.isRtl=function(t){return e(t).closest(".k-rtl").length>0};var n=document.createElement("table");try{n.innerHTML="<tr><td></td></tr>",m.tbodyInnerHtml=!0}catch(e){m.tbodyInnerHtml=!1}m.touch="ontouchstart"in t;let i=document.documentElement.style,o="HTMLElement"in t?HTMLElement.prototype:[];m.transforms=m.transitions={css:"",prefix:"",event:"transitionend"},m.hasHW3D="WebKitCSSMatrix"in t&&"m11"in new t.WebKitCSSMatrix||"MozPerspective"in i||"msPerspective"in i,m.cssFlexbox="flexWrap"in i||"WebkitFlexWrap"in i||"msFlexWrap"in i,n=null,m.devicePixelRatio=t.devicePixelRatio===r?1:t.devicePixelRatio;try{m.screenWidth=t.outerWidth||t.screen?t.screen.availWidth:t.innerWidth,m.screenHeight=t.outerHeight||t.screen?t.screen.availHeight:t.innerHeight}catch(e){m.screenWidth=t.screen.availWidth,m.screenHeight=t.screen.availHeight}m.detectOS=function(e){var n,i=!1,o=[],r=!/mobile safari/i.test(e),a={wp:/(Windows Phone(?: OS)?)\s(\d+)\.(\d+(\.\d+)?)/,fire:/(Silk)\/(\d+)\.(\d+(\.\d+)?)/,android:/(Android|Android.*(?:Opera|Firefox).*?\/)\s*(\d+)\.?(\d+(\.\d+)?)?/,iphone:/(iPhone|iPod).*OS\s+(\d+)[\._]([\d\._]+)/,ipad:/(iPad).*OS\s+(\d+)[\._]([\d_]+)/,meego:/(MeeGo).+NokiaBrowser\/(\d+)\.([\d\._]+)/,webos:/(webOS)\/(\d+)\.(\d+(\.\d+)?)/,blackberry:/(BlackBerry|BB10).*?Version\/(\d+)\.(\d+(\.\d+)?)/,playbook:/(PlayBook).*?Tablet\s*OS\s*(\d+)\.(\d+(\.\d+)?)/,windows:/(MSIE)\s+(\d+)\.(\d+(\.\d+)?)/,tizen:/(tizen).*?Version\/(\d+)\.(\d+(\.\d+)?)/i,sailfish:/(sailfish).*rv:(\d+)\.(\d+(\.\d+)?).*firefox/i,ffos:/(Mobile).*rv:(\d+)\.(\d+(\.\d+)?).*Firefox/},s={ios:/^i(phone|pad|pod)$/i,android:/^android|fire$/i,blackberry:/^blackberry|playbook/i,windows:/windows/,wp:/wp/,flat:/sailfish|ffos|tizen/i,meego:/meego/},l={tablet:/playbook|ipad|fire/i},c={omini:/Opera\sMini/i,omobile:/Opera\sMobi/i,firefox:/Firefox|Fennec/i,mobilesafari:/version\/.*safari/i,ie:/MSIE|Windows\sPhone/i,chrome:/chrome|crios/i,webkit:/webkit/i,edge:/edge|edg|edgios|edga/i};for(var h in a)if(a.hasOwnProperty(h)&&(o=e.match(a[h]))){if("windows"==h&&"plugins"in navigator)return!1;(i={}).device=h,i.tablet=ae(h,l,!1),i.browser=ae(e,c,"default"),i.name=ae(h,s),i[i.name]=!0,i.majorVersion=o[2],i.minorVersion=(o[3]||"0").replace("_","."),n=i.minorVersion.replace(".","").substr(0,2),i.flatVersion=i.majorVersion+n+new Array(3-(n.length<3?n.length:2)).join("0"),i.cordova=typeof t.PhoneGap!==A||typeof t.cordova!==A,i.appMode=t.navigator.standalone||/file|local|wmapp/.test(t.location.protocol)||i.cordova,i.android&&(m.devicePixelRatio<1.5&&i.flatVersion<400||r)&&(m.screenWidth>800||m.screenHeight>800)&&(i.tablet=h);break}return i};var a=m.mobileOS=m.detectOS(navigator.userAgent);m.wpDevicePixelRatio=a.wp?screen.width/320:0,m.hasNativeScrolling=!1,(a.ios||a.android&&a.majorVersion>2||a.wp)&&(m.hasNativeScrolling=a),m.delayedClick=function(){if(m.touch){if(a.ios)return!0;if(a.android)return!m.browser.chrome||!(m.browser.version<32)&&!(e("meta[name=viewport]").attr("content")||"").match(/user-scalable=no/i)}return!1},m.mouseAndTouchPresent=m.touch&&!(m.mobileOS.ios||m.mobileOS.android),m.detectBrowser=function(e){var t=!1,n=[],i={edge:/(edge)[ \/]([\w.]+)/i,webkit:/(chrome|crios)[ \/]([\w.]+)/i,safari:/(webkit)[ \/]([\w.]+)/i,opera:/(opera)(?:.*version|)[ \/]([\w.]+)/i,msie:/(msie\s|trident.*? rv:)([\w.]+)/i,mozilla:/(mozilla)(?:.*? rv:([\w.]+)|)/i};for(var o in i)if(i.hasOwnProperty(o)&&(n=e.match(i[o]))){(t={})[o]=!0,t[n[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,t.version=parseInt(document.documentMode||n[2],10),t.chrome&&e.match(/(edg)[ \/]([\w.]+)/i)&&(t.chromiumEdge=!0);break}return t},m.browser=m.detectBrowser(navigator.userAgent),!a&&m.touch&&m.browser.safari&&(a=m.mobileOS={ios:!0,tablet:"tablet",device:"ipad",majorVersion:13}),m.detectClipboardAccess=function(){var e={copy:!!document.queryCommandSupported&&document.queryCommandSupported("copy"),cut:!!document.queryCommandSupported&&document.queryCommandSupported("cut"),paste:!!document.queryCommandSupported&&document.queryCommandSupported("paste")};return m.browser.chrome&&(e.paste=!1,m.browser.version>=43&&(e.copy=!0,e.cut=!0)),e},m.clipboard=m.detectClipboardAccess(),m.zoomLevel=function(){try{var e=m.browser,n=0,i=document.documentElement;return e.msie&&11==e.version&&i.scrollHeight>i.clientHeight&&!m.touch&&(n=m.scrollbar()),m.touch?i.clientWidth/t.innerWidth:e.msie&&e.version>=10?((top||t).document.documentElement.offsetWidth+n)/(top||t).innerWidth:1}catch(e){return 1}},function(t){var n="",i=e(document.documentElement),o=parseInt(t.version,10);t.msie?n="ie":t.mozilla?n="ff":t.safari?n="safari":t.webkit?n="webkit":t.opera?n="opera":t.edge&&(n="edge"),n&&(n="k-"+n+" k-"+n+o),m.mobileOS&&(n+=" k-mobile"),m.cssFlexbox||(n+=" k-no-flexbox"),i.addClass(n)}(m.browser),m.eventCapture=document.documentElement.addEventListener;var s=document.createElement("input");m.placeholder="placeholder"in s,m.propertyChangeEvent="onpropertychange"in s,m.input=function(){for(var e,t=["number","date","time","month","week","datetime","datetime-local"],n=t.length,i="test",o={},r=0;r<n;r++)e=t[r],s.setAttribute("type",e),s.value=i,o[e.replace("-","")]="text"!==s.type&&s.value!==i;return o}(),s.style.cssText="float:left;",m.cssFloat=!!s.style.cssFloat,s=null,m.stableSort=function(){for(var e=[{index:0,field:"b"}],t=1;t<513;t++)e.push({index:t,field:"a"});return e.sort((function(e,t){return e.field>t.field?1:e.field<t.field?-1:0})),1===e[0].index}(),m.matchesSelector=o.webkitMatchesSelector||o.mozMatchesSelector||o.msMatchesSelector||o.oMatchesSelector||o.matchesSelector||o.matches||function(t){for(var n=document.querySelectorAll?(this.parentNode||document).querySelectorAll(t)||[]:e(t),i=n.length;i--;)if(n[i]==this)return!0;return!1},m.matchMedia="matchMedia"in t,m.pushState=t.history&&t.history.pushState,m.hashChange="onhashchange"in t,m.customElements="registerElement"in t.document;var l=m.browser.chrome,c=m.browser.crios,h=m.browser.mozilla,d=m.browser.safari;m.msPointers=!l&&t.MSPointerEvent,m.pointers=!l&&!c&&!h&&!d&&t.PointerEvent,m.kineticScrollNeeded=a&&("ipad"!==a.device||a.majorVersion<13)&&(m.touch||m.msPointers||m.pointers)}();var ce={};function he(e,t,n,i){return typeof e===H&&(j(t)&&(i=t,t=400,n=!1),j(n)&&(i=n,n=!1),typeof t===B&&(n=t,t=400),e={effects:e,duration:t,reverse:n,complete:i}),c({effects:{},duration:400,reverse:!1,init:u,teardown:u,hide:!1},e,{completeCallback:e.complete,complete:u})}function de(t,n,i,o,r){for(var a,s=0,l=t.length;s<l;s++)(a=e(t[s])).queue((function(){ce.promise(a,he(n,i,o,r))}));return t}e.extend(ce,{enabled:!0,Element:function(t){this.element=e(t)},promise:function(e,t){e.is(":visible")||e.css({display:e.data("olddisplay")||"block"}).css("display"),t.hide&&e.data("olddisplay",e.css("display")).hide(),t.init&&t.init(),t.completeCallback&&t.completeCallback(e),e.dequeue()},disable:function(){this.enabled=!1,this.promise=this.promiseShim},enable:function(){this.enabled=!0,this.promise=this.animatedPromise}}),ce.promiseShim=ce.promise,"kendoAnimate"in e.fn||c(e.fn,{kendoStop:function(e,t){return this.stop(e,t)},kendoAnimate:function(e,t,n,i){return de(this,e,t,n,i)},kendoAddClass:function(e,t){return l.toggleClass(this,e,t,!0)},kendoRemoveClass:function(e,t){return l.toggleClass(this,e,t,!1)},kendoToggleClass:function(e,t,n){return l.toggleClass(this,e,t,n)}});var ue=/&/g,pe=/</g,fe=/"/g,me=/'/g,ve=/>/g;var ge=function(e){return e.target};m.touch&&(ge=function(e){var t="originalEvent"in e?e.originalEvent.changedTouches:"changedTouches"in e?e.changedTouches:null;return t?document.elementFromPoint(t[0].clientX,t[0].clientY):e.target},h(["swipe","swipeLeft","swipeRight","swipeUp","swipeDown","doubleTap","tap"],(function(t,n){e.fn[n]=function(e){return this.on(n,e)}}))),m.touch?m.mobileOS?(m.mousedown="touchstart",m.mouseup="touchend",m.mousemove="touchmove",m.mousecancel="touchcancel",m.click="touchend",m.resize="orientationchange"):(m.mousedown="mousedown touchstart",m.mouseup="mouseup touchend",m.mousemove="mousemove touchmove",m.mousecancel="mouseleave touchcancel",m.click="click",m.resize="resize"):m.pointers?(m.mousemove="pointermove",m.mousedown="pointerdown",m.mouseup="pointerup",m.mousecancel="pointercancel",m.click="pointerup",m.resize="orientationchange resize"):m.msPointers?(m.mousemove="MSPointerMove",m.mousedown="MSPointerDown",m.mouseup="MSPointerUp",m.mousecancel="MSPointerCancel",m.click="MSPointerUp",m.resize="orientationchange resize"):(m.mousemove="mousemove",m.mousedown="mousedown",m.mouseup="mouseup",m.mousecancel="mouseleave",m.click="click",m.resize="resize");var _e=/^([a-z]+:)?\/\//i;c(l,{widgets:[],_widgetRegisteredCallbacks:[],ui:l.ui||{},fx:l.fx||function(e){return new l.effects.Element(e)},effects:l.effects||ce,mobile:l.mobile||{},data:l.data||{},dataviz:l.dataviz||{},drawing:l.drawing||{},spreadsheet:{messages:{}},keys:{INSERT:45,DELETE:46,BACKSPACE:8,TAB:9,ENTER:13,ESC:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,END:35,HOME:36,SPACEBAR:32,PAGEUP:33,PAGEDOWN:34,F2:113,F10:121,F12:123,NUMPAD_PLUS:107,NUMPAD_MINUS:109,NUMPAD_DOT:110},support:l.support||m,animate:l.animate||de,ns:"",attr:function(e){return"data-"+l.ns+e},getShadows:function(e){var t=e.css("box-shadow"),n=t&&t.match(_)||[0,0,0,0,0],i=p.max(+n[3],+(n[4]||0));return{left:-n[1]+i,right:+n[1]+i,bottom:+n[2]+i}},wrap:function(n,i,o,r=!0,a){var s,c=l._outerWidth,h=l._outerHeight,d=n.parent(),u=c(t);if(d.parent().removeClass("k-animation-container-sm"),d.hasClass("k-child-animation-container"))ie(n,i,r);else{var p=n[0].style.width,f=n[0].style.height,m=v.test(p),g=v.test(f),_=n.hasClass("k-tooltip")||n.is(".k-menu-horizontal.k-context-menu"),b=n.hasClass("k-tooltip");s=m||g,!m&&(!i||i&&p||_)&&(p=i?c(n,!1,b)+1:c(n,!1,b)),(!g&&(!i||i&&f)||_)&&(f=h(n,!1,b)),n.wrap(e("<div/>").addClass("k-child-animation-container").css({width:a?"auto":p,height:f})),(d=n.parent()).wrap(e("<div/>").addClass("k-animation-container").attr("role","region")),s&&n.css({width:"100%",height:"100%"})}return u<c(d=d.parent())&&(d.addClass("k-animation-container-sm"),o=!0),o&&ie(n,i,r),d},deepExtend:oe,getComputedStyles:le,isScrollable:function(e){if("false"===e.dataset[l.ns+"scrollable"])return!1;if(e&&e.className&&"string"==typeof e.className&&e.className.indexOf("k-auto-scrollable")>-1)return!0;var t=le(e,["overflow"]).overflow;return t.indexOf("auto")>-1||t.indexOf("scroll")>-1},scrollLeft:function t(n,i){var o,a,s=m.browser.webkit,l=m.browser.mozilla,c=m.browser.version;if(n instanceof e&&i!==r)n.each((function(e,n){t(n,i)}));else if(o=n instanceof e?n[0]:n){if(a=m.isRtl(n),i===r)return a&&s&&(c<85||m.browser.safari)?o.scrollWidth-o.clientWidth-o.scrollLeft:Math.abs(o.scrollLeft);a&&s&&(c<85||m.browser.safari)?o.scrollLeft=o.scrollWidth-o.clientWidth-i:o.scrollLeft=a&&(l||s)&&i>0?-i:i}},size:function(e){var t,n=0;for(t in e)e.hasOwnProperty(t)&&"toJSON"!=t&&n++;return n},toCamelCase:se,toHyphens:function(e){return e.replace(/([a-z][A-Z])/g,(function(e){return e.charAt(0)+"-"+e.charAt(1).toLowerCase()}))},getOffset:l.getOffset||function(e,n,i){n||(n="offset");var o=e[n](),r={top:o.top,right:o.right,bottom:o.bottom,left:o.left};if(m.browser.msie&&(m.pointers||m.msPointers)&&!i){var a=m.isRtl(e)?1:-1;r.top-=t.pageYOffset-document.documentElement.scrollTop,r.left-=t.pageXOffset+a*document.documentElement.scrollLeft}return r},parseEffects:l.parseEffects||function(e){var t={};return h("string"==typeof e?e.split(" "):e,(function(e){t[e]=this})),t},toggleClass:l.toggleClass||function(e,t,n,i){return t&&(t=t.split(" "),h(t,(function(t,n){e.toggleClass(n,i)}))),e},directions:l.directions||{left:{reverse:"right"},right:{reverse:"left"},down:{reverse:"up"},up:{reverse:"down"},top:{reverse:"bottom"},bottom:{reverse:"top"},in:{reverse:"out"},out:{reverse:"in"}},Observable:G,Class:q,Template:s,template:s.compile.bind(s),render:s.render.bind(s),stringify:f.stringify.bind(f),eventTarget:ge,htmlEncode:function(e,t){return!0===t&&(e=function(e){var t={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"};return e.replace(/&(?:amp|lt|gt|quot|#39);/g,(function(e){return t[e]}))}(e)),(""+e).replace(ue,"&amp;").replace(pe,"&lt;").replace(ve,"&gt;").replace(fe,"&quot;").replace(me,"&#39;")},unescape:function(e){var n;try{n=t.decodeURIComponent(e)}catch(t){n=e.replace(/%u([\dA-F]{4})|%([\dA-F]{2})/gi,(function(e,t,n){return String.fromCharCode(parseInt("0x"+(t||n),16))}))}return n},isLocalUrl:function(e){return e&&!_e.test(e)},mediaQuery:i,expr:function(e,t,n){return typeof t==H&&(n=t,t=!1),n=n||"d",(e=e||"")&&"["!==e.charAt(0)&&(e="."+e),t?(e=function(e,t){var n,i,o,r,a=t||"d",s=1;for(i=0,o=e.length;i<o;i++)""!==(r=e[i])&&(0!==(n=r.indexOf("["))&&(-1==n?r="."+r:(s++,r="."+r.substring(0,n)+" || {})"+r.substring(n))),s++,a+=r+(i<o-1?" || {})":")"));return new Array(s).join("(")+a}((e=(e=e.replace(/"([^.]*)\.([^"]*)"/g,'"$1_$DOT$_$2"')).replace(/'([^.]*)\.([^']*)'/g,"'$1_$DOT$_$2'")).split("."),n),e=e.replace(/_\$DOT\$_/g,".")):e=n+e,e},exprToArray:(e,t)=>(e=e||"").indexOf(".")>=0||e.indexOf("[")>=0?e.split(/[[\].]/).map((e=>e.replace(/["']/g,""))).filter((e=>e)):""===e?[]:[e],getter:function(e,t){var n=e+t;return O[n]=O[n]||(n=>{const i=l.exprToArray(e,t);let o=n;for(let e=0;e<i.length;e++)if(o=o[i[e]],!l.isPresent(o)&&t)return o;return o})},setter:function(e){return P[e]=P[e]||((t,n)=>{const i=l.exprToArray(e),o=({parent:e,val:t,prop:n,props:i})=>{i.length?(e=e[i.shift()],o({parent:e,val:t,prop:n,props:i})):e[n]=t};o({parent:t,val:n,prop:i.pop(),props:i})})},accessor:function(e){return{get:l.getter(e),set:l.setter(e)}},guid:function(){var e,t,n="",i="abcdef";for(n+=i[Math.floor(Math.random()*Math.floor(6))],e=1;e<32;e++)t=16*p.random()|0,8!=e&&12!=e&&16!=e&&20!=e||(n+="-"),n+=(12==e?4:16==e?3&t|8:t).toString(16);return n},roleSelector:function(e){return e.replace(/(\S+)/g,"["+l.attr("role")+"=$1],").slice(0,-1)},directiveSelector:function(e){var t=e.split(" ");if(t)for(var n=0;n<t.length;n++)"view"!=t[n]&&(t[n]=t[n].replace(/(\w*)(view|bar|strip|over)$/,"$1-$2"));return t.join(" ").replace(/(\S+)/g,"kendo-mobile-$1,").slice(0,-1)},triggeredByInput:function(e){return/^(label|input|textarea|select)$/i.test(e.target.tagName)},onWidgetRegistered:function(e){for(var t=0,n=l.widgets.length;t<n;t++)e(l.widgets[t]);l._widgetRegisteredCallbacks.push(e)},logToConsole:function(e,n){var i=t.console;!l.suppressLog&&void 0!==i&&i.log&&i[n||"log"](e)}});var be=G.extend({init:function(e,t){var n=this;KendoLicensing.validatePackage(a)||(n._showWatermarkOverlay=Je),n.element=l.jQuery(e).handler(n),G.fn.init.call(n);var i,o=t?t.dataSource:null;t&&(i=(n.componentTypes||{})[(t||{}).componentType]),o&&(t=c({},t,{dataSource:{}})),t=n.options=c(!0,{},n.options,n.defaults,i||{},t),o&&(t.dataSource=o),n.element.attr(l.attr("role"))||n.element.attr(l.attr("role"),(t.name||"").toLowerCase()),n.element.data("kendo"+t.prefix+t.name,n),n.bind(n.events,t)},events:[],options:{prefix:""},_hasBindingTarget:function(){return!!this.element[0].kendoBindingTarget},_tabindex:function(e){e=e||this.wrapper;var t=this.element,n="tabindex",i=e.attr(n)||t.attr(n);t.removeAttr(n),e.attr(n,isNaN(i)?0:i)},setOptions:function(t){this._clearCssClasses(t),this._setEvents(t),e.extend(this.options,t),this._applyCssClasses()},_setEvents:function(e){for(var t,n=this,i=0,o=n.events.length;i<o;i++)t=n.events[i],n.options[t]&&e[t]&&(n.unbind(t,n.options[t]),n._events&&n._events[t]&&delete n._events[t]);n.bind(n.events,e)},resize:function(e){var t=this.getSize(),n=this._size;(e||(t.width>0||t.height>0)&&(!n||t.width!==n.width||t.height!==n.height))&&(this._size=t,this._resize(t,e),this.trigger("resize",t))},getSize:function(){return l.dimensions(this.element)},size:function(e){if(!e)return this.getSize();this.setSize(e)},setSize:e.noop,_resize:e.noop,destroy:function(){var e=this;e.element.removeData("kendo"+e.options.prefix+e.options.name),e.element.removeData("handler"),e.unbind()},_destroy:function(){this.destroy()},_applyCssClasses:function(e){var t,n,i,o,r=this.__proto__.options,a=this.options,s=e||this.wrapper||this.element,c=[];if(l.cssProperties.propertyDictionary[r.name]){for(t=0;t<R.length;t++)n=R[t],o=this.options._altname||r.name,r.hasOwnProperty(n)&&("themeColor"===n?(i=l.cssProperties.getValidClass({widget:o,propName:"fillMode",value:a.fillMode}))&&i.length&&c.push(l.cssProperties.getValidClass({widget:o,propName:n,value:a[n],fill:a.fillMode})):c.push(l.cssProperties.getValidClass({widget:o,propName:n,value:a[n]})));s.addClass(c.join(" "))}},_ariaLabel:function(t){var n,i=this.element,o=i.attr("id"),r=e('label[for="'+o+'"]'),a=i.attr(D),s=i.attr(L);t[0]!==i[0]&&(a?t.attr(D,a):s?t.attr(L,s):r.length&&(n=r.attr("id")||this._generateLabelId(r,o||l.guid()),t.attr(L,n)))},_clearCssClasses:function(e,t){var n,i,o,r=this.__proto__.options,a=this.options,s=t||this.wrapper||this.element;if(l.cssProperties.propertyDictionary[r.name])for(n=0;n<R.length;n++)i=R[n],o=this.options._altname||r.name,r.hasOwnProperty(i)&&e.hasOwnProperty(i)&&("themeColor"===i?s.removeClass(l.cssProperties.getValidClass({widget:o,propName:i,value:a[i],fill:a.fillMode})):("fillMode"===i&&s.removeClass(l.cssProperties.getValidClass({widget:o,propName:"themeColor",value:a.themeColor,fill:a.fillMode})),s.removeClass(l.cssProperties.getValidClass({widget:o,propName:i,value:a[i]}))))},_generateLabelId:function(e,t){var n=t+"_label";return e.attr("id",n),n}}),we=be.extend({dataItems:function(){return this.dataSource.flatView()}});l.dimensions=function(e,t){var n=e[0];return t&&e.css(t),{width:n.offsetWidth,height:n.offsetHeight}},l.notify=u;var ye=/template$/i,xe=/^\s*(?:\{(?:.|\r\n|\n)*\}|\[(?:.|\r\n|\n)*\])\s*$/,ke=/^\{(\d+)(:[^\}]+)?\}|^\[[A-Za-z_]+\]$/,ze=/([A-Z])/g;function Ce(e,t,n){let i,o=!1;if(0===t.indexOf("data")&&(t=(t=t.substring(4)).charAt(0).toLowerCase()+t.substring(1)),t=t.replace(ze,"-$1"),i=e.getAttribute("data-"+l.ns+t),null===i&&(i=e.getAttribute("bind:data-"+l.ns+t),o=!0),null===i)i=r;else if("null"===i)i=null;else if("true"===i)i=!0;else if("false"===i)i=!1;else if(b.test(i)&&"mask"!=t&&"format"!=t)i=parseFloat(i);else if(xe.test(i)&&!ke.test(i))try{i=f.parse(i)}catch(e){i=new Function("return ("+i+")")()}else o&&(i=n[i],i instanceof G&&(i=i.toJSON(!0)));return i}function Se(t,n,i){var o,a,s={},c=t.getAttribute("data-"+l.ns+"role");for(o in n)(a=Ce(t,o,i))!==r&&(ye.test(o)&&"drawer"!=c&&("string"==typeof a?a=Me(a)?l.template(e("#"+a).html()):i&&i[a]?l.template(i[a]):l.template(a):j(a)||(a=t.getAttribute(o))),s[o]=a);return s}function Me(t){try{return e("#"+t).length}catch(e){}return!1}function He(t,n){return e.contains(t,n)?-1:1}function Te(){var t=e(this);return e.inArray(t.attr("data-"+l.ns+"role"),["slider","rangeslider","breadcrumb"])>-1||t.is(":visible")}l.initWidget=function(n,i,o,a){var s,c,h,d,u,p,f,m,v,g;if(o?o.roles&&(o=o.roles):o=l.ui.roles,p=(n=n.nodeType?n:n[0]).getAttribute("data-"+l.ns+"role")){h=(v=-1===p.indexOf("."))?o[p]:l.getter(p)(t);var _=e(n).data(),b=h?"kendo"+h.fn.options.prefix+h.fn.options.name:"";for(var w in g=v?new RegExp("^kendo.*"+p+"$","i"):new RegExp("^"+b+"$","i"),_)if(w.match(g)){if(w!==b)return _[w];s=_[w]}if(h){for(m=Ce(n,"dataSource"),i=e.extend({},Se(n,e.extend({},h.fn.options,h.fn.defaults),a),i),m&&(i.dataSource=typeof m===H?l.getter(m)(t):m),d=0,u=h.fn.events.length;d<u;d++)(f=Ce(n,c=h.fn.events[d]))!==r&&(i[c]=l.getter(f)(t));return s?e.isEmptyObject(i)||s.setOptions(i):s=new h(n,i),s}}},l.rolesFromNamespaces=function(e){var t,n,i=[];for(e[0]||(e=[l.ui,l.dataviz.ui]),t=0,n=e.length;t<n;t++)i[t]=e[t].roles;return c.apply(null,[{}].concat(i.reverse()))},l.init=function(t){var n=l.rolesFromNamespaces(F.call(arguments,1));e(t).find("[data-"+l.ns+"role]").addBack().each((function(){l.initWidget(this,{},n)}))},l.destroy=function(t){e(t).find("[data-"+l.ns+"role]").addBack().each((function(){var t=e(this).data();for(var n in t)0===n.indexOf("kendo")&&typeof t[n].destroy===M&&t[n].destroy()}))},l.resize=function(t,n){var i=e(t).find("[data-"+l.ns+"role]").addBack().filter(Te);if(i.length){var o=e.makeArray(i);o.sort(He),e.each(o,(function(){var t=l.widgetInstance(e(this));t&&t.resize(n)}))}},l.parseOptions=Se,c(l.ui,{Widget:be,DataBoundWidget:we,roles:{},progress:function(t,n,i){var o,r,a,s,c,h=t.find(".k-loading-mask"),d=l.support,u=d.browser;c=(i=e.extend({},{width:"100%",height:"100%",top:t.scrollTop(),opacity:!1},i)).opacity?"k-loading-mask k-opaque":"k-loading-mask",n?h.length||(r=(o=d.isRtl(t))?"right":"left",s=l.scrollLeft(t),a=u.webkit&&o?t[0].scrollWidth-t.width()-2*s:0,h=e(l.format("<div class='{0}'><span role='alert' aria-live='polite' class='k-loading-text'>{1}</span><div class='k-loading-image'></div><div class='k-loading-color'></div></div>",c,l.ui.progress.messages.loading)).width(i.width).height(i.height).css("top",i.top).css(r,Math.abs(s)+a).prependTo(t)):h&&h.remove()},plugin:function(t,n,i){var o,a=t.fn.options.name;i=i||"",(n=n||l.ui)[a]=t,n.roles[a.toLowerCase()]=t,o="getKendo"+i+a;var s={name:a="kendo"+i+a,widget:t,prefix:i||""};l.widgets.push(s);for(var c=0,h=l._widgetRegisteredCallbacks.length;c<h;c++)l._widgetRegisteredCallbacks[c](s);e.fn[a]=function(n){var i,o=this;return typeof n===H?(i=F.call(arguments,1),this.each((function(){var t,s,c=e.data(this,a);if(!c)throw new Error(l.format("Cannot call method '{0}' of {1} before it is initialized",n,a));if(typeof(t=c[n])!==M)throw new Error(l.format("Cannot find method '{0}' of {1}",n,a));if((s=t.apply(c,i))!==r)return o=s,!1}))):this.each((function(){return new t(this,n)})),o},e.fn[a].widget=t,e.fn[o]=function(){return this.data(a)}}}),l.ui.progress.messages={loading:"Loading..."};var Ie={bind:function(){return this},nullObject:!0,options:{}},Ve=be.extend({init:function(e,t){be.fn.init.call(this,e,t),this.element.autoApplyNS(),this.wrapper=this.element,this.element.addClass("km-widget")},destroy:function(){be.fn.destroy.call(this),this.element.kendoDestroy()},options:{prefix:"Mobile"},events:[],view:function(){var e=this.element.closest(l.roleSelector("view splitview modalview drawer"));return l.widgetInstance(e,l.mobile.ui)||Ie},viewHasNativeScrolling:function(){var e=this.view();return e&&e.options.useNativeScrolling},container:function(){var e=this.element.closest(l.roleSelector("view layout modalview drawer splitview"));return l.widgetInstance(e.eq(0),l.mobile.ui)||Ie}});function Be(t,n){var i=t.nodeName.toLowerCase();return(/input|select|textarea|button|object/.test(i)?!t.disabled:"a"===i&&t.href||n)&&function(t){return e.expr.pseudos.visible(t)&&!e(t).parents().addBack().filter((function(){return"hidden"===e.css(this,"visibility")})).length}(t)}c(l.mobile,{init:function(e){l.init(e,l.mobile.ui,l.ui,l.dataviz.ui)},roles:{},ui:{Widget:Ve,DataBoundWidget:we.extend(Ve.prototype),roles:{},plugin:function(e){l.ui.plugin(e,l.mobile.ui,"Mobile")}}}),oe(l.dataviz,{init:function(e){l.init(e,l.dataviz.ui)},ui:{roles:{},themes:{},views:[],plugin:function(e){l.ui.plugin(e,l.dataviz.ui)}},roles:{}}),l.touchScroller=function(t,n){return n||(n={}),n.useNative=!0,e(t).map((function(t,i){return i=e(i),!(!m.kineticScrollNeeded||!l.mobile.ui.Scroller||i.data("kendoMobileScroller"))&&(i.kendoMobileScroller(n),i.data("kendoMobileScroller"))}))[0]},l.preventDefault=function(e){e.preventDefault()},l.widgetInstance=function(e,n){var i,o,r=e.data(l.ns+"role"),a=[],s=e.data("kendoView");if(r){if("content"===r&&(r="scroller"),"view"===r&&s)return s;if(n)if(n[0])for(i=0,o=n.length;i<o;i++)a.push(n[i].roles[r]);else a.push(n.roles[r]);else a=[l.ui.roles[r],l.dataviz.ui.roles[r],l.mobile.ui.roles[r]];for(r.indexOf(".")>=0&&(a=[l.getter(r)(t)]),i=0,o=a.length;i<o;i++){var c=a[i];if(c){var h=e.data("kendo"+c.fn.options.prefix+c.fn.options.name);if(h)return h}}}},l.onResize=function(n){var i=n;return m.mobileOS.android&&(i=function(){setTimeout(n,600)}),e(t).on(m.resize,i),i},l.unbindResize=function(n){e(t).off(m.resize,n)},l.attrValue=function(e,t){return e.data(l.ns+t)},l.days={Sunday:0,Monday:1,Tuesday:2,Wednesday:3,Thursday:4,Friday:5,Saturday:6},e.extend(e.expr.pseudos,{kendoFocusable:function(t){var n=e.attr(t,"tabindex");return Be(t,!isNaN(n)&&n>-1)}});var Ae=["mousedown","mousemove","mouseenter","mouseleave","mouseover","mouseout","mouseup","click"],Ee={setupMouseMute:function(){var t=0,n=Ae.length,i=document.documentElement;if(!Ee.mouseTrap&&m.eventCapture){Ee.mouseTrap=!0,Ee.bustClick=!1,Ee.captureMouse=!1;for(var o=function(t){Ee.captureMouse&&("click"===t.type?Ee.bustClick&&!e(t.target).is("label, input, [data-rel=external]")&&(t.preventDefault(),t.stopPropagation()):t.stopPropagation())};t<n;t++)i.addEventListener(Ae[t],o,!0)}},muteMouse:function(e){Ee.captureMouse=!0,e.data.bustClick&&(Ee.bustClick=!0),clearTimeout(Ee.mouseTrapTimeoutID)},unMuteMouse:function(){clearTimeout(Ee.mouseTrapTimeoutID),Ee.mouseTrapTimeoutID=setTimeout((function(){Ee.captureMouse=!1,Ee.bustClick=!1}),400)}},Le={down:"touchstart mousedown",move:"mousemove touchmove",up:"mouseup touchend touchcancel",cancel:"mouseleave touchcancel"};m.touch&&(m.mobileOS.ios||m.mobileOS.android)?Le={down:"touchstart",move:"touchmove",up:"touchend touchcancel",cancel:"touchcancel"}:m.pointers?Le={down:"pointerdown",move:"pointermove",up:"pointerup",cancel:"pointercancel pointerleave"}:m.msPointers&&(Le={down:"MSPointerDown",move:"MSPointerMove",up:"MSPointerUp",cancel:"MSPointerCancel MSPo