@progress/kendo-angular-inputs 8.0.7-dev.202202251414 → 8.0.7-dev.202202281011
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/js/kendo-angular-inputs.js +1 -1
- package/dist/cdn/main.js +1 -1
- package/dist/es/main.js +0 -1
- package/dist/es/package-metadata.js +1 -1
- package/dist/es2015/main.d.ts +0 -1
- package/dist/es2015/main.js +0 -1
- package/dist/es2015/package-metadata.js +1 -1
- package/dist/fesm2015/index.js +2 -2
- package/dist/fesm5/index.js +2 -2
- package/dist/npm/main.js +0 -2
- package/dist/npm/package-metadata.js +1 -1
- package/dist/systemjs/kendo-angular-inputs.js +1 -1
- package/package.json +1 -1
|
@@ -17,4 +17,4 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
17
17
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
18
18
|
PERFORMANCE OF THIS SOFTWARE.
|
|
19
19
|
***************************************************************************** */
|
|
20
|
-
var i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function r(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function a(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n}function s(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}function u(e,t){return function(n,i){t(n,i,e)}}function c(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{u(i.next(e))}catch(e){o(e)}}function s(e){try{u(i.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((i=i.apply(e,t||[])).next())}))}function d(e,t){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(r=a.trys,(r=r.length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}function p(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}function h(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||(t[n]=e[n])}function f(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,r,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a}function v(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(m(arguments[t]));return e}function g(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,r++)i[r]=o[a];return i}function y(e){return this instanceof y?(this.v=e,this):new y(e)}function _(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,r=n.apply(e,t||[]),o=[];return i={},a("next"),a("throw"),a("return"),i[Symbol.asyncIterator]=function(){return this},i;function a(e){r[e]&&(i[e]=function(t){return new Promise((function(n,i){o.push([e,t,n,i])>1||s(e,t)}))})}function s(e,t){try{(n=r[e](t)).value instanceof y?Promise.resolve(n.value.v).then(u,c):l(o[0][2],n)}catch(e){l(o[0][3],e)}var n}function u(e){s("next",e)}function c(e){s("throw",e)}function l(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function b(e){var t,n;return t={},i("next"),i("throw",(function(e){throw e})),i("return"),t[Symbol.iterator]=function(){return this},t;function i(i,r){t[i]=e[i]?function(t){return(n=!n)?{value:y(e[i](t)),done:"return"===i}:r?r(t):t}:r}}function C(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=f(e),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(n){t[n]=e[n]&&function(t){return new Promise((function(i,r){(function(e,t,n,i){Promise.resolve(i).then((function(t){e({value:t,done:n})}),t)})(i,r,(t=e[n](t)).done,t.value)}))}}}function k(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function w(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function x(e){return e&&e.__esModule?e:{default:e}}function S(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function E(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}},function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t){e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isPresent=function(e){return null!=e},t.areSame=function(e,t){return e===t||null===e&&void 0===t||void 0===e&&null===t},t.requiresZoneOnBlur=function(e){return e&&(!e.touched||e.control&&"blur"===e.control.updateOn)},t.fitIntoBounds=function(e,n,i){return!t.isPresent(e)||isNaN(e)||e<=n?n:e>=i?i:e};var i={small:"sm",medium:"md",large:"lg"},r={small:"sm",medium:"md",large:"lg",full:"full"};t.getStylingClasses=function(e,t,n,o){switch(t){case"size":return{toRemove:"k-"+e+"-"+i[n],toAdd:o?"k-"+e+"-"+i[o]:null};case"rounded":return{toRemove:"k-rounded-"+r[n],toAdd:o?"k-rounded-"+r[o]:null};case"fillMode":return{toRemove:"k-"+e+"-"+n,toAdd:o?"k-"+e+"-"+o:null}}}},function(e,t){e.exports=i},function(e,t){e.exports=r},function(e,t){e.exports=o},function(e,t){e.exports=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata={name:"@progress/kendo-angular-inputs",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1645798303,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(4),r=n(18),o=n(1);t.calculateFixedTrackSize=function(e){return(e.max-e.min)/e.smallStep*e.fixedTickWidth},t.calculateTrackSize=function(e,t,n){void 0===n&&(n=!0);var i=e-(n?2*parseFloat(t):0);return Math.floor(i)},t.calculateTicksCount=function(e,t,n){if(void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=1),n<=0)throw new Error("Invalid argument: smallStep must be a positive number");var i=Math.abs(r.subtract(t,e)),o=Math.floor(r.divide(i,n));return r.add(o,1)},t.calculateValueFromTick=function(e,t){var n=t.max,i=t.min,o=t.smallStep,a=t.reverse,s=t.vertical,u=r.add(i,r.multiply(e,o));return s||a?Math.abs(r.subtract(u,n)):u},t.calculateHandlePosition=function(e){var t=e.trackWidth,n=e.min,r=e.max,o=e.reverse,a=e.value,s=t/Math.abs(r-n),u=i.isPresent(a)?s*(a-n):n;return o&&(u=t-u),Math.floor(u)},t.decreaseValueToStep=function(e,n,i){var o=n.max,a=n.min,s=n.smallStep,u=n.largeStep;void 0===i&&(i=!1);var c,l=i&&u?r.multiply(s,u):s,d=r.subtract(e,a),p=r.remainder(d,l);return c=0===p?r.subtract(d,l):r.subtract(d,p),t.limitValue(r.add(c,a),a,o)},t.increaseValueToStep=function(e,n,i){var o=n.max,a=n.min,s=n.smallStep,u=n.largeStep;void 0===i&&(i=!1);var c=i&&u?r.multiply(s,u):s,l=r.subtract(e,a),d=r.remainder(l,c),p=r.add(r.subtract(l,d),c);return t.limitValue(r.add(p,a),a,o)},t.isStartHandle=function(e){return e.id.indexOf("k-start-handle")>-1},t.snapValue=function(e,n){var i=n.smallStep,r=n.min,o=n.max,a=t.limitValue(e,r,o);if(e!==a)return a;var s=t.decreaseValueToStep(e,n),u=t.increaseValueToStep(e,n);return(e-r)%i==0?e:u-e<=(u-s)/2?u:s},t.trimValue=function(e,t,n){return n>e?e:n<t?t:n},t.trimValueRange=function(e,n,i){return i?[t.trimValue(e,n,i[0]),t.trimValue(e,n,i[1])]:[n,n]},t.identity=function(e){return e},t.isSameRange=function(e,t){return i.areSame(e[0],t[0])&&i.areSame(e[1],t[1])},t.elementOffset=function(e){var t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||0)}},t.limitValue=function(e,t,n){return Math.max(Math.min(e,n),t)},t.eventValue=function(e,n,i){var o=i.min,a=i.max,s=i.vertical,u=i.rtl,c=t.elementOffset(n),l=(s?e.pageY-c.top:e.pageX-c.left)*((a-o)/(s?n.clientHeight:n.clientWidth)),d=u||s?a-l:o+l,p=r.fractionLength(i.smallStep);return d=r.toFixedPrecision(d,p+1),t.snapValue(d,i)},t.isButton=function(e){return e.className.indexOf("k-button-increase")>=0||e.className.indexOf("k-button-decrease")>=0},t.increment=function(e){return t.increaseValueToStep(e.value,e)},t.decrement=function(e){return t.decreaseValueToStep(e.value,e)},t.incrementLarge=function(e){return t.increaseValueToStep(e.value,e,!0)},t.decrementLarge=function(e){return t.decreaseValueToStep(e.value,e,!0)},t.validateValue=function(e){if(o.isDevMode&&e&&e[0]>e[1])throw new Error("[RangeSlider] The start value should not be greater than the end value.")},t.default={calculateFixedTrackSize:t.calculateFixedTrackSize,calculateValueFromTick:t.calculateValueFromTick,calculateTrackSize:t.calculateTrackSize,calculateTicksCount:t.calculateTicksCount,calculateHandlePosition:t.calculateHandlePosition,decreaseValueToStep:t.decreaseValueToStep,decrement:t.decrement,decrementLarge:t.decrementLarge,eventValue:t.eventValue,identity:t.identity,increment:t.increment,incrementLarge:t.incrementLarge,isButton:t.isButton,isSameRange:t.isSameRange,isStartHandle:t.isStartHandle,increaseValueToStep:t.increaseValueToStep,trimValue:t.trimValue,trimValueRange:t.trimValueRange,snapValue:t.snapValue,validateValue:t.validateValue}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.hasClass=function(e,t){return Boolean((n=e.className,String(n).trim().split(" ")).find((function(e){return e===t})));var n},t.invokeElementMethod=function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];if(e&&e.nativeElement)return e.nativeElement[t].apply(e.nativeElement,n)},t.isUntouched=function(e){return e&&e.nativeElement&&t.hasClass(e.nativeElement,"ng-untouched")},t.containsFocus=function(e,t){return e&&t&&(e===t||e.contains(t))},t.closest=function(e,t){for(;e&&!t(e);)e=e.parentNode;return e}},function(e,t,n){"use strict";n.r(t),n.d(t,"audit",(function(){return A})),n.d(t,"auditTime",(function(){return K})),n.d(t,"buffer",(function(){return U})),n.d(t,"bufferCount",(function(){return Y})),n.d(t,"bufferTime",(function(){return ee})),n.d(t,"bufferToggle",(function(){return se})),n.d(t,"bufferWhen",(function(){return le})),n.d(t,"catchError",(function(){return he})),n.d(t,"combineAll",(function(){return be})),n.d(t,"combineLatest",(function(){return ke})),n.d(t,"concat",(function(){return je})),n.d(t,"concatAll",(function(){return Ne})),n.d(t,"concatMap",(function(){return De})),n.d(t,"concatMapTo",(function(){return ze})),n.d(t,"count",(function(){return Fe})),n.d(t,"debounce",(function(){return We})),n.d(t,"debounceTime",(function(){return Ke})),n.d(t,"defaultIfEmpty",(function(){return Ye})),n.d(t,"delay",(function(){return rt})),n.d(t,"delayWhen",(function(){return ut})),n.d(t,"dematerialize",(function(){return ht})),n.d(t,"distinct",(function(){return vt})),n.d(t,"distinctUntilChanged",(function(){return _t})),n.d(t,"distinctUntilKeyChanged",(function(){return kt})),n.d(t,"elementAt",(function(){return Dt})),n.d(t,"endWith",(function(){return zt})),n.d(t,"every",(function(){return Ft})),n.d(t,"exhaust",(function(){return Wt})),n.d(t,"exhaustMap",(function(){return Kt})),n.d(t,"expand",(function(){return $t})),n.d(t,"filter",(function(){return St})),n.d(t,"finalize",(function(){return Qt})),n.d(t,"find",(function(){return tn})),n.d(t,"findIndex",(function(){return on})),n.d(t,"first",(function(){return an})),n.d(t,"groupBy",(function(){return hn})),n.d(t,"ignoreElements",(function(){return _n})),n.d(t,"isEmpty",(function(){return kn})),n.d(t,"last",(function(){return In})),n.d(t,"map",(function(){return Pe})),n.d(t,"mapTo",(function(){return Tn})),n.d(t,"materialize",(function(){return Vn})),n.d(t,"max",(function(){return zn})),n.d(t,"merge",(function(){return Hn})),n.d(t,"mergeAll",(function(){return Me})),n.d(t,"mergeMap",(function(){return Oe})),n.d(t,"flatMap",(function(){return Oe})),n.d(t,"mergeMapTo",(function(){return Ln})),n.d(t,"mergeScan",(function(){return Wn})),n.d(t,"min",(function(){return Kn})),n.d(t,"multicast",(function(){return Jn})),n.d(t,"observeOn",(function(){return ti})),n.d(t,"onErrorResumeNext",(function(){return oi})),n.d(t,"pairwise",(function(){return ui})),n.d(t,"partition",(function(){return pi})),n.d(t,"pluck",(function(){return hi})),n.d(t,"publish",(function(){return mi})),n.d(t,"publishBehavior",(function(){return gi})),n.d(t,"publishLast",(function(){return _i})),n.d(t,"publishReplay",(function(){return xi})),n.d(t,"race",(function(){return Ii})),n.d(t,"reduce",(function(){return Dn})),n.d(t,"repeat",(function(){return Ti})),n.d(t,"repeatWhen",(function(){return Vi})),n.d(t,"retry",(function(){return Ni})),n.d(t,"retryWhen",(function(){return Di})),n.d(t,"refCount",(function(){return Un})),n.d(t,"sample",(function(){return Hi})),n.d(t,"sampleTime",(function(){return Zi})),n.d(t,"scan",(function(){return Nn})),n.d(t,"sequenceEqual",(function(){return qi})),n.d(t,"share",(function(){return Ji})),n.d(t,"shareReplay",(function(){return er})),n.d(t,"single",(function(){return tr})),n.d(t,"skip",(function(){return rr})),n.d(t,"skipLast",(function(){return sr})),n.d(t,"skipUntil",(function(){return lr})),n.d(t,"skipWhile",(function(){return hr})),n.d(t,"startWith",(function(){return vr})),n.d(t,"subscribeOn",(function(){return xr})),n.d(t,"switchAll",(function(){return Tr})),n.d(t,"switchMap",(function(){return Er})),n.d(t,"switchMapTo",(function(){return Or})),n.d(t,"take",(function(){return Nt})),n.d(t,"takeLast",(function(){return Sn})),n.d(t,"takeUntil",(function(){return Br})),n.d(t,"takeWhile",(function(){return Mr})),n.d(t,"tap",(function(){return It})),n.d(t,"throttle",(function(){return Dr})),n.d(t,"throttleTime",(function(){return Hr})),n.d(t,"throwIfEmpty",(function(){return Rt})),n.d(t,"timeInterval",(function(){return Gr})),n.d(t,"timeout",(function(){return Qr})),n.d(t,"timeoutWith",(function(){return $r})),n.d(t,"timestamp",(function(){return Jr})),n.d(t,"toArray",(function(){return no})),n.d(t,"window",(function(){return io})),n.d(t,"windowCount",(function(){return ao})),n.d(t,"windowTime",(function(){return co})),n.d(t,"windowToggle",(function(){return go})),n.d(t,"windowWhen",(function(){return bo})),n.d(t,"withLatestFrom",(function(){return wo})),n.d(t,"zip",(function(){return Vo})),n.d(t,"zipAll",(function(){return Ro}));var i=n(0);function r(e){return"function"==typeof e}var o=!1,a={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){e&&(new Error).stack;o=e},get useDeprecatedSynchronousErrorHandling(){return o}};function s(e){setTimeout((function(){throw e}))}var u={closed:!0,next:function(e){},error:function(e){if(a.useDeprecatedSynchronousErrorHandling)throw e;s(e)},complete:function(){}},c=Array.isArray||function(e){return e&&"number"==typeof e.length};function l(e){return null!==e&&"object"==typeof e}function d(e){return Error.call(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=e,this}d.prototype=Object.create(Error.prototype);var p=d,h=function(){function e(e){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,e&&(this._unsubscribe=e)}return e.prototype.unsubscribe=function(){var e,t=!1;if(!this.closed){var n=this._parent,i=this._parents,o=this._unsubscribe,a=this._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var s=-1,u=i?i.length:0;n;)n.remove(this),n=++s<u&&i[s]||null;if(r(o))try{o.call(this)}catch(n){t=!0,e=n instanceof p?f(n.errors):[n]}if(c(a))for(s=-1,u=a.length;++s<u;){var d=a[s];if(l(d))try{d.unsubscribe()}catch(n){t=!0,e=e||[],n instanceof p?e=e.concat(f(n.errors)):e.push(n)}}if(t)throw new p(e)}},e.prototype.add=function(t){var n=t;switch(typeof t){case"function":n=new e(t);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof e)){var i=n;(n=new e)._subscriptions=[i]}break;default:if(!t)return e.EMPTY;throw new Error("unrecognized teardown "+t+" added to Subscription.")}if(n._addParent(this)){var r=this._subscriptions;r?r.push(n):this._subscriptions=[n]}return n},e.prototype.remove=function(e){var t=this._subscriptions;if(t){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}},e.prototype._addParent=function(e){var t=this._parent,n=this._parents;return t!==e&&(t?n?-1===n.indexOf(e)&&(n.push(e),!0):(this._parents=[e],!0):(this._parent=e,!0))},e.EMPTY=function(e){return e.closed=!0,e}(new e),e}();function f(e){return e.reduce((function(e,t){return e.concat(t instanceof p?t.errors:t)}),[])}var m="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random(),v=function(e){function t(n,i,r){var o=e.call(this)||this;switch(o.syncErrorValue=null,o.syncErrorThrown=!1,o.syncErrorThrowable=!1,o.isStopped=!1,arguments.length){case 0:o.destination=u;break;case 1:if(!n){o.destination=u;break}if("object"==typeof n){n instanceof t?(o.syncErrorThrowable=n.syncErrorThrowable,o.destination=n,n.add(o)):(o.syncErrorThrowable=!0,o.destination=new g(o,n));break}default:o.syncErrorThrowable=!0,o.destination=new g(o,n,i,r)}return o}return i.__extends(t,e),t.prototype[m]=function(){return this},t.create=function(e,n,i){var r=new t(e,n,i);return r.syncErrorThrowable=!1,r},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this))},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){this.destination.error(e),this.unsubscribe()},t.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},t.prototype._unsubscribeAndRecycle=function(){var e=this._parent,t=this._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=e,this._parents=t,this},t}(h),g=function(e){function t(t,n,i,o){var a,s=e.call(this)||this;s._parentSubscriber=t;var c=s;return r(n)?a=n:n&&(a=n.next,i=n.error,o=n.complete,n!==u&&(r((c=Object.create(n)).unsubscribe)&&s.add(c.unsubscribe.bind(c)),c.unsubscribe=s.unsubscribe.bind(s))),s._context=c,s._next=a,s._error=i,s._complete=o,s}return i.__extends(t,e),t.prototype.next=function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}},t.prototype.error=function(e){if(!this.isStopped){var t=this._parentSubscriber,n=a.useDeprecatedSynchronousErrorHandling;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):s(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;s(e)}}},t.prototype.complete=function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return e._complete.call(e._context)};a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},t.prototype.__tryOrUnsub=function(e,t){try{e.call(this._context,t)}catch(e){if(this.unsubscribe(),a.useDeprecatedSynchronousErrorHandling)throw e;s(e)}},t.prototype.__tryOrSetError=function(e,t,n){if(!a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(t){return a.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=t,e.syncErrorThrown=!0,!0):(s(t),!0)}return!1},t.prototype._unsubscribe=function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()},t}(v),y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.notifyNext=function(e,t,n,i,r){this.destination.next(t)},t.prototype.notifyError=function(e,t){this.destination.error(e)},t.prototype.notifyComplete=function(e){this.destination.complete()},t}(v),_=function(e){function t(t,n,i){var r=e.call(this)||this;return r.parent=t,r.outerValue=n,r.outerIndex=i,r.index=0,r}return i.__extends(t,e),t.prototype._next=function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)},t.prototype._error=function(e){this.parent.notifyError(e,this),this.unsubscribe()},t.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},t}(v);var b="function"==typeof Symbol&&Symbol.observable||"@@observable";function C(){}function k(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return w(e)}function w(e){return e?1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)}:C}var x=function(){function e(e){this._isScalar=!1,e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var i=this.operator,r=function(e,t,n){if(e){if(e instanceof v)return e;if(e[m])return e[m]()}return e||t||n?new v(e,t,n):new v(u)}(e,t,n);if(i?r.add(i.call(r,this.source)):r.add(this.source||a.useDeprecatedSynchronousErrorHandling&&!r.syncErrorThrowable?this._subscribe(r):this._trySubscribe(r)),a.useDeprecatedSynchronousErrorHandling&&r.syncErrorThrowable&&(r.syncErrorThrowable=!1,r.syncErrorThrown))throw r.syncErrorValue;return r},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){a.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),!function(e){for(;e;){var t=e,n=t.closed,i=t.destination,r=t.isStopped;if(n||r)return!1;e=i&&i instanceof v?i:null}return!0}(e)?console.warn(t):e.error(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=S(t))((function(t,i){var r;r=n.subscribe((function(t){try{e(t)}catch(e){i(e),r&&r.unsubscribe()}}),i,t)}))},e.prototype._subscribe=function(e){var t=this.source;return t&&t.subscribe(e)},e.prototype[b]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 0===e.length?this:w(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=S(e))((function(e,n){var i;t.subscribe((function(e){return i=e}),(function(e){return n(e)}),(function(){return e(i)}))}))},e.create=function(t){return new e(t)},e}();function S(e){if(e||(e=a.Promise||Promise),!e)throw new Error("no Promise impl found");return e}var E=function(e){return function(t){for(var n=0,i=e.length;n<i&&!t.closed;n++)t.next(e[n]);t.closed||t.complete()}},P=function(e){return function(t){return e.then((function(e){t.closed||(t.next(e),t.complete())}),(function(e){return t.error(e)})).then(null,s),t}};function I(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}var T=I(),O=function(e){return function(t){for(var n=e[T]();;){var i=n.next();if(i.done){t.complete();break}if(t.next(i.value),t.closed)break}return"function"==typeof n.return&&t.add((function(){n.return&&n.return()})),t}},B=function(e){return function(t){var n=e[b]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(t)}},V=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e};function R(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}var M=function(e){if(e instanceof x)return function(t){return e._isScalar?(t.next(e.value),void t.complete()):e.subscribe(t)};if(e&&"function"==typeof e[b])return B(e);if(V(e))return E(e);if(R(e))return P(e);if(e&&"function"==typeof e[T])return O(e);var t=l(e)?"an invalid object":"'"+e+"'";throw new TypeError("You provided "+t+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")};function N(e,t,n,i,r){if(void 0===r&&(r=new _(e,n,i)),!r.closed)return M(t)(r)}function A(e){return function(t){return t.lift(new j(e))}}var j=function(){function e(e){this.durationSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new D(e,this.durationSelector))},e}(),D=function(e){function t(t,n){var i=e.call(this,t)||this;return i.durationSelector=n,i.hasValue=!1,i}return i.__extends(t,e),t.prototype._next=function(e){if(this.value=e,this.hasValue=!0,!this.throttled){var t=void 0;try{t=(0,this.durationSelector)(e)}catch(e){return this.destination.error(e)}var n=N(this,t);!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}},t.prototype.clearThrottle=function(){var e=this.value,t=this.hasValue,n=this.throttled;n&&(this.remove(n),this.throttled=null,n.unsubscribe()),t&&(this.value=null,this.hasValue=!1,this.destination.next(e))},t.prototype.notifyNext=function(e,t,n,i){this.clearThrottle()},t.prototype.notifyComplete=function(){this.clearThrottle()},t}(y),z=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.scheduler=t,i.work=n,i.pending=!1,i}return i.__extends(t,e),t.prototype.schedule=function(e,t){if(void 0===t&&(t=0),this.closed)return this;this.state=e;var n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(i,this.id,t),this},t.prototype.requestAsyncId=function(e,t,n){return void 0===n&&(n=0),setInterval(e.flush.bind(e,this),n)},t.prototype.recycleAsyncId=function(e,t,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var n=!1,i=void 0;try{this.work(e)}catch(e){n=!0,i=!!e&&e||new Error(e)}if(n)return this.unsubscribe(),i},t.prototype._unsubscribe=function(){var e=this.id,t=this.scheduler,n=t.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null},t}(function(e){function t(t,n){return e.call(this)||this}return i.__extends(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(h)),F=function(){function e(t,n){void 0===n&&(n=e.now),this.SchedulerAction=t,this.now=n}return e.prototype.schedule=function(e,t,n){return void 0===t&&(t=0),new this.SchedulerAction(this,e).schedule(n,t)},e.now=function(){return Date.now()},e}(),H=function(e){function t(n,i){void 0===i&&(i=F.now);var r=e.call(this,n,(function(){return t.delegate&&t.delegate!==r?t.delegate.now():i()}))||this;return r.actions=[],r.active=!1,r.scheduled=void 0,r}return i.__extends(t,e),t.prototype.schedule=function(n,i,r){return void 0===i&&(i=0),t.delegate&&t.delegate!==this?t.delegate.schedule(n,i,r):e.prototype.schedule.call(this,n,i,r)},t.prototype.flush=function(e){var t=this.actions;if(this.active)t.push(e);else{var n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}},t}(F),L=new H(z);function W(e){return!c(e)&&e-parseFloat(e)+1>=0}function Z(e){return e&&"function"==typeof e.schedule}function G(e){var t=e.index,n=e.period,i=e.subscriber;if(i.next(t),!i.closed){if(-1===n)return i.complete();e.index=t+1,this.schedule(e,n)}}function K(e,t){return void 0===t&&(t=L),A((function(){return function(e,t,n){void 0===e&&(e=0);var i=-1;return W(t)?i=Number(t)<1?1:Number(t):Z(t)&&(n=t),Z(n)||(n=L),new x((function(t){var r=W(e)?e:+e-n.now();return n.schedule(G,r,{index:0,period:i,subscriber:t})}))}(e,t)}))}function U(e){return function(t){return t.lift(new q(e))}}var q=function(){function e(e){this.closingNotifier=e}return e.prototype.call=function(e,t){return t.subscribe(new $(e,this.closingNotifier))},e}(),$=function(e){function t(t,n){var i=e.call(this,t)||this;return i.buffer=[],i.add(N(i,n)),i}return i.__extends(t,e),t.prototype._next=function(e){this.buffer.push(e)},t.prototype.notifyNext=function(e,t,n,i,r){var o=this.buffer;this.buffer=[],this.destination.next(o)},t}(y);function Y(e,t){return void 0===t&&(t=null),function(n){return n.lift(new X(e,t))}}var X=function(){function e(e,t){this.bufferSize=e,this.startBufferEvery=t,this.subscriberClass=t&&e!==t?J:Q}return e.prototype.call=function(e,t){return t.subscribe(new this.subscriberClass(e,this.bufferSize,this.startBufferEvery))},e}(),Q=function(e){function t(t,n){var i=e.call(this,t)||this;return i.bufferSize=n,i.buffer=[],i}return i.__extends(t,e),t.prototype._next=function(e){var t=this.buffer;t.push(e),t.length==this.bufferSize&&(this.destination.next(t),this.buffer=[])},t.prototype._complete=function(){var t=this.buffer;t.length>0&&this.destination.next(t),e.prototype._complete.call(this)},t}(v),J=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.bufferSize=n,r.startBufferEvery=i,r.buffers=[],r.count=0,r}return i.__extends(t,e),t.prototype._next=function(e){var t=this.bufferSize,n=this.startBufferEvery,i=this.buffers,r=this.count;this.count++,r%n==0&&i.push([]);for(var o=i.length;o--;){var a=i[o];a.push(e),a.length===t&&(i.splice(o,1),this.destination.next(a))}},t.prototype._complete=function(){for(var t=this.buffers,n=this.destination;t.length>0;){var i=t.shift();i.length>0&&n.next(i)}e.prototype._complete.call(this)},t}(v);function ee(e){var t=arguments.length,n=L;Z(arguments[arguments.length-1])&&(n=arguments[arguments.length-1],t--);var i=null;t>=2&&(i=arguments[1]);var r=Number.POSITIVE_INFINITY;return t>=3&&(r=arguments[2]),function(t){return t.lift(new te(e,i,r,n))}}var te=function(){function e(e,t,n,i){this.bufferTimeSpan=e,this.bufferCreationInterval=t,this.maxBufferSize=n,this.scheduler=i}return e.prototype.call=function(e,t){return t.subscribe(new ie(e,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))},e}(),ne=function(){return function(){this.buffer=[]}}(),ie=function(e){function t(t,n,i,r,o){var a=e.call(this,t)||this;a.bufferTimeSpan=n,a.bufferCreationInterval=i,a.maxBufferSize=r,a.scheduler=o,a.contexts=[];var s=a.openContext();if(a.timespanOnly=null==i||i<0,a.timespanOnly){var u={subscriber:a,context:s,bufferTimeSpan:n};a.add(s.closeAction=o.schedule(re,n,u))}else{var c={subscriber:a,context:s},l={bufferTimeSpan:n,bufferCreationInterval:i,subscriber:a,scheduler:o};a.add(s.closeAction=o.schedule(ae,n,c)),a.add(o.schedule(oe,i,l))}return a}return i.__extends(t,e),t.prototype._next=function(e){for(var t,n=this.contexts,i=n.length,r=0;r<i;r++){var o=n[r],a=o.buffer;a.push(e),a.length==this.maxBufferSize&&(t=o)}t&&this.onBufferFull(t)},t.prototype._error=function(t){this.contexts.length=0,e.prototype._error.call(this,t)},t.prototype._complete=function(){for(var t=this.contexts,n=this.destination;t.length>0;){var i=t.shift();n.next(i.buffer)}e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){this.contexts=null},t.prototype.onBufferFull=function(e){this.closeContext(e);var t=e.closeAction;if(t.unsubscribe(),this.remove(t),!this.closed&&this.timespanOnly){e=this.openContext();var n=this.bufferTimeSpan,i={subscriber:this,context:e,bufferTimeSpan:n};this.add(e.closeAction=this.scheduler.schedule(re,n,i))}},t.prototype.openContext=function(){var e=new ne;return this.contexts.push(e),e},t.prototype.closeContext=function(e){this.destination.next(e.buffer);var t=this.contexts;(t?t.indexOf(e):-1)>=0&&t.splice(t.indexOf(e),1)},t}(v);function re(e){var t=e.subscriber,n=e.context;n&&t.closeContext(n),t.closed||(e.context=t.openContext(),e.context.closeAction=this.schedule(e,e.bufferTimeSpan))}function oe(e){var t=e.bufferCreationInterval,n=e.bufferTimeSpan,i=e.subscriber,r=e.scheduler,o=i.openContext();i.closed||(i.add(o.closeAction=r.schedule(ae,n,{subscriber:i,context:o})),this.schedule(e,t))}function ae(e){var t=e.subscriber,n=e.context;t.closeContext(n)}function se(e,t){return function(n){return n.lift(new ue(e,t))}}var ue=function(){function e(e,t){this.openings=e,this.closingSelector=t}return e.prototype.call=function(e,t){return t.subscribe(new ce(e,this.openings,this.closingSelector))},e}(),ce=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.openings=n,r.closingSelector=i,r.contexts=[],r.add(N(r,n)),r}return i.__extends(t,e),t.prototype._next=function(e){for(var t=this.contexts,n=t.length,i=0;i<n;i++)t[i].buffer.push(e)},t.prototype._error=function(t){for(var n=this.contexts;n.length>0;){var i=n.shift();i.subscription.unsubscribe(),i.buffer=null,i.subscription=null}this.contexts=null,e.prototype._error.call(this,t)},t.prototype._complete=function(){for(var t=this.contexts;t.length>0;){var n=t.shift();this.destination.next(n.buffer),n.subscription.unsubscribe(),n.buffer=null,n.subscription=null}this.contexts=null,e.prototype._complete.call(this)},t.prototype.notifyNext=function(e,t,n,i,r){e?this.closeBuffer(e):this.openBuffer(t)},t.prototype.notifyComplete=function(e){this.closeBuffer(e.context)},t.prototype.openBuffer=function(e){try{var t=this.closingSelector.call(this,e);t&&this.trySubscribe(t)}catch(e){this._error(e)}},t.prototype.closeBuffer=function(e){var t=this.contexts;if(t&&e){var n=e.buffer,i=e.subscription;this.destination.next(n),t.splice(t.indexOf(e),1),this.remove(i),i.unsubscribe()}},t.prototype.trySubscribe=function(e){var t=this.contexts,n=new h,i={buffer:[],subscription:n};t.push(i);var r=N(this,e,i);!r||r.closed?this.closeBuffer(i):(r.context=i,this.add(r),n.add(r))},t}(y);function le(e){return function(t){return t.lift(new de(e))}}var de=function(){function e(e){this.closingSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new pe(e,this.closingSelector))},e}(),pe=function(e){function t(t,n){var i=e.call(this,t)||this;return i.closingSelector=n,i.subscribing=!1,i.openBuffer(),i}return i.__extends(t,e),t.prototype._next=function(e){this.buffer.push(e)},t.prototype._complete=function(){var t=this.buffer;t&&this.destination.next(t),e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){this.buffer=null,this.subscribing=!1},t.prototype.notifyNext=function(e,t,n,i,r){this.openBuffer()},t.prototype.notifyComplete=function(){this.subscribing?this.complete():this.openBuffer()},t.prototype.openBuffer=function(){var e=this.closingSubscription;e&&(this.remove(e),e.unsubscribe());var t,n=this.buffer;this.buffer&&this.destination.next(n),this.buffer=[];try{t=(0,this.closingSelector)()}catch(e){return this.error(e)}e=new h,this.closingSubscription=e,this.add(e),this.subscribing=!0,e.add(N(this,t)),this.subscribing=!1},t}(y);function he(e){return function(t){var n=new fe(e),i=t.lift(n);return n.caught=i}}var fe=function(){function e(e){this.selector=e}return e.prototype.call=function(e,t){return t.subscribe(new me(e,this.selector,this.caught))},e}(),me=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.selector=n,r.caught=i,r}return i.__extends(t,e),t.prototype.error=function(t){if(!this.isStopped){var n=void 0;try{n=this.selector(t,this.caught)}catch(t){return void e.prototype.error.call(this,t)}this._unsubscribeAndRecycle();var i=new _(this,void 0,void 0);this.add(i),N(this,n,void 0,void 0,i)}},t}(y);function ve(e,t){return new x(t?function(n){var i=new h,r=0;return i.add(t.schedule((function(){r!==e.length?(n.next(e[r++]),n.closed||i.add(this.schedule())):n.complete()}))),i}:E(e))}var ge={};var ye=function(){function e(e){this.resultSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new _e(e,this.resultSelector))},e}(),_e=function(e){function t(t,n){var i=e.call(this,t)||this;return i.resultSelector=n,i.active=0,i.values=[],i.observables=[],i}return i.__extends(t,e),t.prototype._next=function(e){this.values.push(ge),this.observables.push(e)},t.prototype._complete=function(){var e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(var n=0;n<t;n++){var i=e[n];this.add(N(this,i,i,n))}}},t.prototype.notifyComplete=function(e){0==(this.active-=1)&&this.destination.complete()},t.prototype.notifyNext=function(e,t,n,i,r){var o=this.values,a=o[n],s=this.toRespond?a===ge?--this.toRespond:this.toRespond:0;o[n]=t,0===s&&(this.resultSelector?this._tryResultSelector(o):this.destination.next(o.slice()))},t.prototype._tryResultSelector=function(e){var t;try{t=this.resultSelector.apply(this,e)}catch(e){return void this.destination.error(e)}this.destination.next(t)},t}(y);function be(e){return function(t){return t.lift(new ye(e))}}function Ce(e,t){if(!t)return e instanceof x?e:new x(M(e));if(null!=e){if(function(e){return e&&"function"==typeof e[b]}(e))return function(e,t){return new x(t?function(n){var i=new h;return i.add(t.schedule((function(){var r=e[b]();i.add(r.subscribe({next:function(e){i.add(t.schedule((function(){return n.next(e)})))},error:function(e){i.add(t.schedule((function(){return n.error(e)})))},complete:function(){i.add(t.schedule((function(){return n.complete()})))}}))}))),i}:B(e))}(e,t);if(R(e))return function(e,t){return new x(t?function(n){var i=new h;return i.add(t.schedule((function(){return e.then((function(e){i.add(t.schedule((function(){n.next(e),i.add(t.schedule((function(){return n.complete()})))})))}),(function(e){i.add(t.schedule((function(){return n.error(e)})))}))}))),i}:P(e))}(e,t);if(V(e))return ve(e,t);if(function(e){return e&&"function"==typeof e[T]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new x(t?function(n){var i,r=new h;return r.add((function(){i&&"function"==typeof i.return&&i.return()})),r.add(t.schedule((function(){i=e[T](),r.add(t.schedule((function(){if(!n.closed){var e,t;try{var r=i.next();e=r.value,t=r.done}catch(e){return void n.error(e)}t?n.complete():(n.next(e),this.schedule())}})))}))),r}:O(e))}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}function ke(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=null;return"function"==typeof e[e.length-1]&&(n=e.pop()),1===e.length&&c(e[0])&&(e=e[0].slice()),function(t){return t.lift.call(Ce([t].concat(e)),new ye(n))}}var we=new x((function(e){return e.complete()}));function xe(e){return e?function(e){return new x((function(t){return e.schedule((function(){return t.complete()}))}))}(e):we}function Se(e){var t=new x((function(t){t.next(e),t.complete()}));return t._isScalar=!0,t.value=e,t}function Ee(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e[e.length-1];switch(Z(n)?e.pop():n=void 0,e.length){case 0:return xe(n);case 1:return n?ve(e,n):Se(e[0]);default:return ve(e,n)}}function Pe(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new Ie(e,t))}}var Ie=function(){function e(e,t){this.project=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new Te(e,this.project,this.thisArg))},e}(),Te=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.project=n,r.count=0,r.thisArg=i||r,r}return i.__extends(t,e),t.prototype._next=function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(e){return void this.destination.error(e)}this.destination.next(t)},t}(v);function Oe(e,t,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof t?function(i){return i.pipe(Oe((function(n,i){return Ce(e(n,i)).pipe(Pe((function(e,r){return t(n,e,i,r)})))}),n))}:("number"==typeof t&&(n=t),function(t){return t.lift(new Be(e,n))})}var Be=function(){function e(e,t){void 0===t&&(t=Number.POSITIVE_INFINITY),this.project=e,this.concurrent=t}return e.prototype.call=function(e,t){return t.subscribe(new Ve(e,this.project,this.concurrent))},e}(),Ve=function(e){function t(t,n,i){void 0===i&&(i=Number.POSITIVE_INFINITY);var r=e.call(this,t)||this;return r.project=n,r.concurrent=i,r.hasCompleted=!1,r.buffer=[],r.active=0,r.index=0,r}return i.__extends(t,e),t.prototype._next=function(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)},t.prototype._tryNext=function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(e){return void this.destination.error(e)}this.active++,this._innerSub(t,e,n)},t.prototype._innerSub=function(e,t,n){var i=new _(this,void 0,void 0);this.destination.add(i),N(this,e,t,n,i)},t.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()},t.prototype.notifyNext=function(e,t,n,i,r){this.destination.next(t)},t.prototype.notifyComplete=function(e){var t=this.buffer;this.remove(e),this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},t}(y);function Re(e){return e}function Me(e){return void 0===e&&(e=Number.POSITIVE_INFINITY),Oe(Re,e)}function Ne(){return Me(1)}function Ae(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Ne()(Ee.apply(void 0,e))}function je(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return t.lift.call(Ae.apply(void 0,[t].concat(e)))}}function De(e,t){return Oe(e,t,1)}function ze(e,t){return De((function(){return e}),t)}function Fe(e){return function(t){return t.lift(new He(e,t))}}var He=function(){function e(e,t){this.predicate=e,this.source=t}return e.prototype.call=function(e,t){return t.subscribe(new Le(e,this.predicate,this.source))},e}(),Le=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.predicate=n,r.source=i,r.count=0,r.index=0,r}return i.__extends(t,e),t.prototype._next=function(e){this.predicate?this._tryPredicate(e):this.count++},t.prototype._tryPredicate=function(e){var t;try{t=this.predicate(e,this.index++,this.source)}catch(e){return void this.destination.error(e)}t&&this.count++},t.prototype._complete=function(){this.destination.next(this.count),this.destination.complete()},t}(v);function We(e){return function(t){return t.lift(new Ze(e))}}var Ze=function(){function e(e){this.durationSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new Ge(e,this.durationSelector))},e}(),Ge=function(e){function t(t,n){var i=e.call(this,t)||this;return i.durationSelector=n,i.hasValue=!1,i.durationSubscription=null,i}return i.__extends(t,e),t.prototype._next=function(e){try{var t=this.durationSelector.call(this,e);t&&this._tryNext(e,t)}catch(e){this.destination.error(e)}},t.prototype._complete=function(){this.emitValue(),this.destination.complete()},t.prototype._tryNext=function(e,t){var n=this.durationSubscription;this.value=e,this.hasValue=!0,n&&(n.unsubscribe(),this.remove(n)),(n=N(this,t))&&!n.closed&&this.add(this.durationSubscription=n)},t.prototype.notifyNext=function(e,t,n,i,r){this.emitValue()},t.prototype.notifyComplete=function(){this.emitValue()},t.prototype.emitValue=function(){if(this.hasValue){var t=this.value,n=this.durationSubscription;n&&(this.durationSubscription=null,n.unsubscribe(),this.remove(n)),this.value=null,this.hasValue=!1,e.prototype._next.call(this,t)}},t}(y);function Ke(e,t){return void 0===t&&(t=L),function(n){return n.lift(new Ue(e,t))}}var Ue=function(){function e(e,t){this.dueTime=e,this.scheduler=t}return e.prototype.call=function(e,t){return t.subscribe(new qe(e,this.dueTime,this.scheduler))},e}(),qe=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.dueTime=n,r.scheduler=i,r.debouncedSubscription=null,r.lastValue=null,r.hasValue=!1,r}return i.__extends(t,e),t.prototype._next=function(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule($e,this.dueTime,this))},t.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},t.prototype.debouncedNext=function(){if(this.clearDebounce(),this.hasValue){var e=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}},t.prototype.clearDebounce=function(){var e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)},t}(v);function $e(e){e.debouncedNext()}function Ye(e){return void 0===e&&(e=null),function(t){return t.lift(new Qe(e))}}var Xe,Qe=function(){function e(e){this.defaultValue=e}return e.prototype.call=function(e,t){return t.subscribe(new Je(e,this.defaultValue))},e}(),Je=function(e){function t(t,n){var i=e.call(this,t)||this;return i.defaultValue=n,i.isEmpty=!0,i}return i.__extends(t,e),t.prototype._next=function(e){this.isEmpty=!1,this.destination.next(e)},t.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()},t}(v);function et(e){return e instanceof Date&&!isNaN(+e)}function tt(e,t){return new x(t?function(n){return t.schedule(nt,0,{error:e,subscriber:n})}:function(t){return t.error(e)})}function nt(e){var t=e.error;e.subscriber.error(t)}Xe||(Xe={});var it=function(){function e(e,t,n){this.kind=e,this.value=t,this.error=n,this.hasValue="N"===e}return e.prototype.observe=function(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}},e.prototype.do=function(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}},e.prototype.accept=function(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)},e.prototype.toObservable=function(){switch(this.kind){case"N":return Ee(this.value);case"E":return tt(this.error);case"C":return xe()}throw new Error("unexpected notification kind value")},e.createNext=function(t){return void 0!==t?new e("N",t):e.undefinedValueNotification},e.createError=function(t){return new e("E",void 0,t)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e("C"),e.undefinedValueNotification=new e("N",void 0),e}();function rt(e,t){void 0===t&&(t=L);var n=et(e)?+e-t.now():Math.abs(e);return function(e){return e.lift(new ot(n,t))}}var ot=function(){function e(e,t){this.delay=e,this.scheduler=t}return e.prototype.call=function(e,t){return t.subscribe(new at(e,this.delay,this.scheduler))},e}(),at=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.delay=n,r.scheduler=i,r.queue=[],r.active=!1,r.errored=!1,r}return i.__extends(t,e),t.dispatch=function(e){for(var t=e.source,n=t.queue,i=e.scheduler,r=e.destination;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(r);if(n.length>0){var o=Math.max(0,n[0].time-i.now());this.schedule(e,o)}else this.unsubscribe(),t.active=!1},t.prototype._schedule=function(e){this.active=!0,this.destination.add(e.schedule(t.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))},t.prototype.scheduleNotification=function(e){if(!0!==this.errored){var t=this.scheduler,n=new st(t.now()+this.delay,e);this.queue.push(n),!1===this.active&&this._schedule(t)}},t.prototype._next=function(e){this.scheduleNotification(it.createNext(e))},t.prototype._error=function(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()},t.prototype._complete=function(){this.scheduleNotification(it.createComplete()),this.unsubscribe()},t}(v),st=function(){return function(e,t){this.time=e,this.notification=t}}();function ut(e,t){return t?function(n){return new dt(n,t).lift(new ct(e))}:function(t){return t.lift(new ct(e))}}var ct=function(){function e(e){this.delayDurationSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new lt(e,this.delayDurationSelector))},e}(),lt=function(e){function t(t,n){var i=e.call(this,t)||this;return i.delayDurationSelector=n,i.completed=!1,i.delayNotifierSubscriptions=[],i.index=0,i}return i.__extends(t,e),t.prototype.notifyNext=function(e,t,n,i,r){this.destination.next(e),this.removeSubscription(r),this.tryComplete()},t.prototype.notifyError=function(e,t){this._error(e)},t.prototype.notifyComplete=function(e){var t=this.removeSubscription(e);t&&this.destination.next(t),this.tryComplete()},t.prototype._next=function(e){var t=this.index++;try{var n=this.delayDurationSelector(e,t);n&&this.tryDelay(n,e)}catch(e){this.destination.error(e)}},t.prototype._complete=function(){this.completed=!0,this.tryComplete(),this.unsubscribe()},t.prototype.removeSubscription=function(e){e.unsubscribe();var t=this.delayNotifierSubscriptions.indexOf(e);return-1!==t&&this.delayNotifierSubscriptions.splice(t,1),e.outerValue},t.prototype.tryDelay=function(e,t){var n=N(this,e,t);n&&!n.closed&&(this.destination.add(n),this.delayNotifierSubscriptions.push(n))},t.prototype.tryComplete=function(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()},t}(y),dt=function(e){function t(t,n){var i=e.call(this)||this;return i.source=t,i.subscriptionDelay=n,i}return i.__extends(t,e),t.prototype._subscribe=function(e){this.subscriptionDelay.subscribe(new pt(e,this.source))},t}(x),pt=function(e){function t(t,n){var i=e.call(this)||this;return i.parent=t,i.source=n,i.sourceSubscribed=!1,i}return i.__extends(t,e),t.prototype._next=function(e){this.subscribeToSource()},t.prototype._error=function(e){this.unsubscribe(),this.parent.error(e)},t.prototype._complete=function(){this.unsubscribe(),this.subscribeToSource()},t.prototype.subscribeToSource=function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))},t}(v);function ht(){return function(e){return e.lift(new ft)}}var ft=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new mt(e))},e}(),mt=function(e){function t(t){return e.call(this,t)||this}return i.__extends(t,e),t.prototype._next=function(e){e.observe(this.destination)},t}(v);function vt(e,t){return function(n){return n.lift(new gt(e,t))}}var gt=function(){function e(e,t){this.keySelector=e,this.flushes=t}return e.prototype.call=function(e,t){return t.subscribe(new yt(e,this.keySelector,this.flushes))},e}(),yt=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.keySelector=n,r.values=new Set,i&&r.add(N(r,i)),r}return i.__extends(t,e),t.prototype.notifyNext=function(e,t,n,i,r){this.values.clear()},t.prototype.notifyError=function(e,t){this._error(e)},t.prototype._next=function(e){this.keySelector?this._useKeySelector(e):this._finalizeNext(e,e)},t.prototype._useKeySelector=function(e){var t,n=this.destination;try{t=this.keySelector(e)}catch(e){return void n.error(e)}this._finalizeNext(t,e)},t.prototype._finalizeNext=function(e,t){var n=this.values;n.has(e)||(n.add(e),this.destination.next(t))},t}(y);function _t(e,t){return function(n){return n.lift(new bt(e,t))}}var bt=function(){function e(e,t){this.compare=e,this.keySelector=t}return e.prototype.call=function(e,t){return t.subscribe(new Ct(e,this.compare,this.keySelector))},e}(),Ct=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.keySelector=i,r.hasKey=!1,"function"==typeof n&&(r.compare=n),r}return i.__extends(t,e),t.prototype.compare=function(e,t){return e===t},t.prototype._next=function(e){var t;try{var n=this.keySelector;t=n?n(e):e}catch(e){return this.destination.error(e)}var i=!1;if(this.hasKey)try{i=(0,this.compare)(this.key,t)}catch(e){return this.destination.error(e)}else this.hasKey=!0;i||(this.key=t,this.destination.next(e))},t}(v);function kt(e,t){return _t((function(n,i){return t?t(n[e],i[e]):n[e]===i[e]}))}function wt(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}wt.prototype=Object.create(Error.prototype);var xt=wt;function St(e,t){return function(n){return n.lift(new Et(e,t))}}var Et=function(){function e(e,t){this.predicate=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new Pt(e,this.predicate,this.thisArg))},e}(),Pt=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.predicate=n,r.thisArg=i,r.count=0,r}return i.__extends(t,e),t.prototype._next=function(e){var t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(e){return void this.destination.error(e)}t&&this.destination.next(e)},t}(v);function It(e,t,n){return function(i){return i.lift(new Tt(e,t,n))}}var Tt=function(){function e(e,t,n){this.nextOrObserver=e,this.error=t,this.complete=n}return e.prototype.call=function(e,t){return t.subscribe(new Ot(e,this.nextOrObserver,this.error,this.complete))},e}(),Ot=function(e){function t(t,n,i,o){var a=e.call(this,t)||this;return a._tapNext=C,a._tapError=C,a._tapComplete=C,a._tapError=i||C,a._tapComplete=o||C,r(n)?(a._context=a,a._tapNext=n):n&&(a._context=n,a._tapNext=n.next||C,a._tapError=n.error||C,a._tapComplete=n.complete||C),a}return i.__extends(t,e),t.prototype._next=function(e){try{this._tapNext.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.next(e)},t.prototype._error=function(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)},t.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()},t}(v);function Bt(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}Bt.prototype=Object.create(Error.prototype);var Vt=Bt,Rt=function(e){return void 0===e&&(e=Mt),It({hasValue:!1,next:function(){this.hasValue=!0},complete:function(){if(!this.hasValue)throw e()}})};function Mt(){return new Vt}function Nt(e){return function(t){return 0===e?xe():t.lift(new At(e))}}var At=function(){function e(e){if(this.total=e,this.total<0)throw new xt}return e.prototype.call=function(e,t){return t.subscribe(new jt(e,this.total))},e}(),jt=function(e){function t(t,n){var i=e.call(this,t)||this;return i.total=n,i.count=0,i}return i.__extends(t,e),t.prototype._next=function(e){var t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))},t}(v);function Dt(e,t){if(e<0)throw new xt;var n=arguments.length>=2;return function(i){return i.pipe(St((function(t,n){return n===e})),Nt(1),n?Ye(t):Rt((function(){return new xt})))}}function zt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){var n=e[e.length-1];Z(n)?e.pop():n=null;var i=e.length;return Ae(t,1!==i||n?i>0?ve(e,n):xe(n):Se(e[0]))}}function Ft(e,t){return function(n){return n.lift(new Ht(e,t,n))}}var Ht=function(){function e(e,t,n){this.predicate=e,this.thisArg=t,this.source=n}return e.prototype.call=function(e,t){return t.subscribe(new Lt(e,this.predicate,this.thisArg,this.source))},e}(),Lt=function(e){function t(t,n,i,r){var o=e.call(this,t)||this;return o.predicate=n,o.thisArg=i,o.source=r,o.index=0,o.thisArg=i||o,o}return i.__extends(t,e),t.prototype.notifyComplete=function(e){this.destination.next(e),this.destination.complete()},t.prototype._next=function(e){var t=!1;try{t=this.predicate.call(this.thisArg,e,this.index++,this.source)}catch(e){return void this.destination.error(e)}t||this.notifyComplete(!1)},t.prototype._complete=function(){this.notifyComplete(!0)},t}(v);function Wt(){return function(e){return e.lift(new Zt)}}var Zt=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new Gt(e))},e}(),Gt=function(e){function t(t){var n=e.call(this,t)||this;return n.hasCompleted=!1,n.hasSubscription=!1,n}return i.__extends(t,e),t.prototype._next=function(e){this.hasSubscription||(this.hasSubscription=!0,this.add(N(this,e)))},t.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()},t.prototype.notifyComplete=function(e){this.remove(e),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},t}(y);function Kt(e,t){return t?function(n){return n.pipe(Kt((function(n,i){return Ce(e(n,i)).pipe(Pe((function(e,r){return t(n,e,i,r)})))})))}:function(t){return t.lift(new Ut(e))}}var Ut=function(){function e(e){this.project=e}return e.prototype.call=function(e,t){return t.subscribe(new qt(e,this.project))},e}(),qt=function(e){function t(t,n){var i=e.call(this,t)||this;return i.project=n,i.hasSubscription=!1,i.hasCompleted=!1,i.index=0,i}return i.__extends(t,e),t.prototype._next=function(e){this.hasSubscription||this.tryNext(e)},t.prototype.tryNext=function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(e){return void this.destination.error(e)}this.hasSubscription=!0,this._innerSub(t,e,n)},t.prototype._innerSub=function(e,t,n){var i=new _(this,void 0,void 0);this.destination.add(i),N(this,e,t,n,i)},t.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()},t.prototype.notifyNext=function(e,t,n,i,r){this.destination.next(t)},t.prototype.notifyError=function(e){this.destination.error(e)},t.prototype.notifyComplete=function(e){this.destination.remove(e),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},t}(y);function $t(e,t,n){return void 0===t&&(t=Number.POSITIVE_INFINITY),void 0===n&&(n=void 0),t=(t||0)<1?Number.POSITIVE_INFINITY:t,function(i){return i.lift(new Yt(e,t,n))}}var Yt=function(){function e(e,t,n){this.project=e,this.concurrent=t,this.scheduler=n}return e.prototype.call=function(e,t){return t.subscribe(new Xt(e,this.project,this.concurrent,this.scheduler))},e}(),Xt=function(e){function t(t,n,i,r){var o=e.call(this,t)||this;return o.project=n,o.concurrent=i,o.scheduler=r,o.index=0,o.active=0,o.hasCompleted=!1,i<Number.POSITIVE_INFINITY&&(o.buffer=[]),o}return i.__extends(t,e),t.dispatch=function(e){var t=e.subscriber,n=e.result,i=e.value,r=e.index;t.subscribeToProjection(n,i,r)},t.prototype._next=function(e){var n=this.destination;if(n.closed)this._complete();else{var i=this.index++;if(this.active<this.concurrent){n.next(e);try{var r=(0,this.project)(e,i);if(this.scheduler){var o={subscriber:this,result:r,value:e,index:i};this.destination.add(this.scheduler.schedule(t.dispatch,0,o))}else this.subscribeToProjection(r,e,i)}catch(e){n.error(e)}}else this.buffer.push(e)}},t.prototype.subscribeToProjection=function(e,t,n){this.active++,this.destination.add(N(this,e,t,n))},t.prototype._complete=function(){this.hasCompleted=!0,this.hasCompleted&&0===this.active&&this.destination.complete(),this.unsubscribe()},t.prototype.notifyNext=function(e,t,n,i,r){this._next(t)},t.prototype.notifyComplete=function(e){var t=this.buffer;this.destination.remove(e),this.active--,t&&t.length>0&&this._next(t.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()},t}(y);function Qt(e){return function(t){return t.lift(new Jt(e))}}var Jt=function(){function e(e){this.callback=e}return e.prototype.call=function(e,t){return t.subscribe(new en(e,this.callback))},e}(),en=function(e){function t(t,n){var i=e.call(this,t)||this;return i.add(new h(n)),i}return i.__extends(t,e),t}(v);function tn(e,t){if("function"!=typeof e)throw new TypeError("predicate is not a function");return function(n){return n.lift(new nn(e,n,!1,t))}}var nn=function(){function e(e,t,n,i){this.predicate=e,this.source=t,this.yieldIndex=n,this.thisArg=i}return e.prototype.call=function(e,t){return t.subscribe(new rn(e,this.predicate,this.source,this.yieldIndex,this.thisArg))},e}(),rn=function(e){function t(t,n,i,r,o){var a=e.call(this,t)||this;return a.predicate=n,a.source=i,a.yieldIndex=r,a.thisArg=o,a.index=0,a}return i.__extends(t,e),t.prototype.notifyComplete=function(e){var t=this.destination;t.next(e),t.complete(),this.unsubscribe()},t.prototype._next=function(e){var t=this.predicate,n=this.thisArg,i=this.index++;try{t.call(n||this,e,i,this.source)&&this.notifyComplete(this.yieldIndex?i:e)}catch(e){this.destination.error(e)}},t.prototype._complete=function(){this.notifyComplete(this.yieldIndex?-1:void 0)},t}(v);function on(e,t){return function(n){return n.lift(new nn(e,n,!0,t))}}function an(e,t){var n=arguments.length>=2;return function(i){return i.pipe(e?St((function(t,n){return e(t,n,i)})):Re,Nt(1),n?Ye(t):Rt((function(){return new Vt})))}}function sn(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}sn.prototype=Object.create(Error.prototype);var un=sn,cn=function(e){function t(t,n){var i=e.call(this)||this;return i.subject=t,i.subscriber=n,i.closed=!1,i}return i.__extends(t,e),t.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e=this.subject,t=e.observers;if(this.subject=null,t&&0!==t.length&&!e.isStopped&&!e.closed){var n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}},t}(h),ln=function(e){function t(t){var n=e.call(this,t)||this;return n.destination=t,n}return i.__extends(t,e),t}(v),dn=function(e){function t(){var t=e.call(this)||this;return t.observers=[],t.closed=!1,t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return i.__extends(t,e),t.prototype[m]=function(){return new ln(this)},t.prototype.lift=function(e){var t=new pn(this,this);return t.operator=e,t},t.prototype.next=function(e){if(this.closed)throw new un;if(!this.isStopped)for(var t=this.observers,n=t.length,i=t.slice(),r=0;r<n;r++)i[r].next(e)},t.prototype.error=function(e){if(this.closed)throw new un;this.hasError=!0,this.thrownError=e,this.isStopped=!0;for(var t=this.observers,n=t.length,i=t.slice(),r=0;r<n;r++)i[r].error(e);this.observers.length=0},t.prototype.complete=function(){if(this.closed)throw new un;this.isStopped=!0;for(var e=this.observers,t=e.length,n=e.slice(),i=0;i<t;i++)n[i].complete();this.observers.length=0},t.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},t.prototype._trySubscribe=function(t){if(this.closed)throw new un;return e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){if(this.closed)throw new un;return this.hasError?(e.error(this.thrownError),h.EMPTY):this.isStopped?(e.complete(),h.EMPTY):(this.observers.push(e),new cn(this,e))},t.prototype.asObservable=function(){var e=new x;return e.source=this,e},t.create=function(e,t){return new pn(e,t)},t}(x),pn=function(e){function t(t,n){var i=e.call(this)||this;return i.destination=t,i.source=n,i}return i.__extends(t,e),t.prototype.next=function(e){var t=this.destination;t&&t.next&&t.next(e)},t.prototype.error=function(e){var t=this.destination;t&&t.error&&this.destination.error(e)},t.prototype.complete=function(){var e=this.destination;e&&e.complete&&this.destination.complete()},t.prototype._subscribe=function(e){return this.source?this.source.subscribe(e):h.EMPTY},t}(dn);function hn(e,t,n,i){return function(r){return r.lift(new fn(e,t,n,i))}}var fn=function(){function e(e,t,n,i){this.keySelector=e,this.elementSelector=t,this.durationSelector=n,this.subjectSelector=i}return e.prototype.call=function(e,t){return t.subscribe(new mn(e,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))},e}(),mn=function(e){function t(t,n,i,r,o){var a=e.call(this,t)||this;return a.keySelector=n,a.elementSelector=i,a.durationSelector=r,a.subjectSelector=o,a.groups=null,a.attemptedToUnsubscribe=!1,a.count=0,a}return i.__extends(t,e),t.prototype._next=function(e){var t;try{t=this.keySelector(e)}catch(e){return void this.error(e)}this._group(e,t)},t.prototype._group=function(e,t){var n=this.groups;n||(n=this.groups=new Map);var i,r=n.get(t);if(this.elementSelector)try{i=this.elementSelector(e)}catch(e){this.error(e)}else i=e;if(!r){r=this.subjectSelector?this.subjectSelector():new dn,n.set(t,r);var o=new gn(t,r,this);if(this.destination.next(o),this.durationSelector){var a=void 0;try{a=this.durationSelector(new gn(t,r))}catch(e){return void this.error(e)}this.add(a.subscribe(new vn(t,r,this)))}}r.closed||r.next(i)},t.prototype._error=function(e){var t=this.groups;t&&(t.forEach((function(t,n){t.error(e)})),t.clear()),this.destination.error(e)},t.prototype._complete=function(){var e=this.groups;e&&(e.forEach((function(e,t){e.complete()})),e.clear()),this.destination.complete()},t.prototype.removeGroup=function(e){this.groups.delete(e)},t.prototype.unsubscribe=function(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&e.prototype.unsubscribe.call(this))},t}(v),vn=function(e){function t(t,n,i){var r=e.call(this,n)||this;return r.key=t,r.group=n,r.parent=i,r}return i.__extends(t,e),t.prototype._next=function(e){this.complete()},t.prototype._unsubscribe=function(){var e=this.parent,t=this.key;this.key=this.parent=null,e&&e.removeGroup(t)},t}(v),gn=function(e){function t(t,n,i){var r=e.call(this)||this;return r.key=t,r.groupSubject=n,r.refCountSubscription=i,r}return i.__extends(t,e),t.prototype._subscribe=function(e){var t=new h,n=this.refCountSubscription,i=this.groupSubject;return n&&!n.closed&&t.add(new yn(n)),t.add(i.subscribe(e)),t},t}(x),yn=function(e){function t(t){var n=e.call(this)||this;return n.parent=t,t.count++,n}return i.__extends(t,e),t.prototype.unsubscribe=function(){var t=this.parent;t.closed||this.closed||(e.prototype.unsubscribe.call(this),t.count-=1,0===t.count&&t.attemptedToUnsubscribe&&t.unsubscribe())},t}(h);function _n(){return function(e){return e.lift(new bn)}}var bn=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new Cn(e))},e}(),Cn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype._next=function(e){},t}(v);function kn(){return function(e){return e.lift(new wn)}}var wn=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new xn(e))},e}(),xn=function(e){function t(t){return e.call(this,t)||this}return i.__extends(t,e),t.prototype.notifyComplete=function(e){var t=this.destination;t.next(e),t.complete()},t.prototype._next=function(e){this.notifyComplete(!1)},t.prototype._complete=function(){this.notifyComplete(!0)},t}(v);function Sn(e){return function(t){return 0===e?xe():t.lift(new En(e))}}var En=function(){function e(e){if(this.total=e,this.total<0)throw new xt}return e.prototype.call=function(e,t){return t.subscribe(new Pn(e,this.total))},e}(),Pn=function(e){function t(t,n){var i=e.call(this,t)||this;return i.total=n,i.ring=new Array,i.count=0,i}return i.__extends(t,e),t.prototype._next=function(e){var t=this.ring,n=this.total,i=this.count++;t.length<n?t.push(e):t[i%n]=e},t.prototype._complete=function(){var e=this.destination,t=this.count;if(t>0)for(var n=this.count>=this.total?this.total:this.count,i=this.ring,r=0;r<n;r++){var o=t++%n;e.next(i[o])}e.complete()},t}(v);function In(e,t){var n=arguments.length>=2;return function(i){return i.pipe(e?St((function(t,n){return e(t,n,i)})):Re,Sn(1),n?Ye(t):Rt((function(){return new Vt})))}}function Tn(e){return function(t){return t.lift(new On(e))}}var On=function(){function e(e){this.value=e}return e.prototype.call=function(e,t){return t.subscribe(new Bn(e,this.value))},e}(),Bn=function(e){function t(t,n){var i=e.call(this,t)||this;return i.value=n,i}return i.__extends(t,e),t.prototype._next=function(e){this.destination.next(this.value)},t}(v);function Vn(){return function(e){return e.lift(new Rn)}}var Rn=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new Mn(e))},e}(),Mn=function(e){function t(t){return e.call(this,t)||this}return i.__extends(t,e),t.prototype._next=function(e){this.destination.next(it.createNext(e))},t.prototype._error=function(e){var t=this.destination;t.next(it.createError(e)),t.complete()},t.prototype._complete=function(){var e=this.destination;e.next(it.createComplete()),e.complete()},t}(v);function Nn(e,t){var n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new An(e,t,n))}}var An=function(){function e(e,t,n){void 0===n&&(n=!1),this.accumulator=e,this.seed=t,this.hasSeed=n}return e.prototype.call=function(e,t){return t.subscribe(new jn(e,this.accumulator,this.seed,this.hasSeed))},e}(),jn=function(e){function t(t,n,i,r){var o=e.call(this,t)||this;return o.accumulator=n,o._seed=i,o.hasSeed=r,o.index=0,o}return i.__extends(t,e),Object.defineProperty(t.prototype,"seed",{get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e},enumerable:!0,configurable:!0}),t.prototype._next=function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)},t.prototype._tryNext=function(e){var t,n=this.index++;try{t=this.accumulator(this.seed,e,n)}catch(e){this.destination.error(e)}this.seed=t,this.destination.next(t)},t}(v);function Dn(e,t){return arguments.length>=2?function(n){return k(Nn(e,t),Sn(1),Ye(t))(n)}:function(t){return k(Nn((function(t,n,i){return e(t,n,i+1)})),Sn(1))(t)}}function zn(e){return Dn("function"==typeof e?function(t,n){return e(t,n)>0?t:n}:function(e,t){return e>t?e:t})}function Fn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Number.POSITIVE_INFINITY,i=null,r=e[e.length-1];return Z(r)?(i=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(n=e.pop())):"number"==typeof r&&(n=e.pop()),null===i&&1===e.length&&e[0]instanceof x?e[0]:Me(n)(ve(e,i))}function Hn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return t.lift.call(Fn.apply(void 0,[t].concat(e)))}}function Ln(e,t,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof t?Oe((function(){return e}),t,n):("number"==typeof t&&(n=t),Oe((function(){return e}),n))}function Wn(e,t,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),function(i){return i.lift(new Zn(e,t,n))}}var Zn=function(){function e(e,t,n){this.accumulator=e,this.seed=t,this.concurrent=n}return e.prototype.call=function(e,t){return t.subscribe(new Gn(e,this.accumulator,this.seed,this.concurrent))},e}(),Gn=function(e){function t(t,n,i,r){var o=e.call(this,t)||this;return o.accumulator=n,o.acc=i,o.concurrent=r,o.hasValue=!1,o.hasCompleted=!1,o.buffer=[],o.active=0,o.index=0,o}return i.__extends(t,e),t.prototype._next=function(e){if(this.active<this.concurrent){var t=this.index++,n=this.destination,i=void 0;try{i=(0,this.accumulator)(this.acc,e,t)}catch(e){return n.error(e)}this.active++,this._innerSub(i,e,t)}else this.buffer.push(e)},t.prototype._innerSub=function(e,t,n){var i=new _(this,void 0,void 0);this.destination.add(i),N(this,e,t,n,i)},t.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete()),this.unsubscribe()},t.prototype.notifyNext=function(e,t,n,i,r){var o=this.destination;this.acc=t,this.hasValue=!0,o.next(t)},t.prototype.notifyComplete=function(e){var t=this.buffer;this.destination.remove(e),this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())},t}(y);function Kn(e){return Dn("function"==typeof e?function(t,n){return e(t,n)<0?t:n}:function(e,t){return e<t?e:t})}function Un(){return function(e){return e.lift(new qn(e))}}var qn=function(){function e(e){this.connectable=e}return e.prototype.call=function(e,t){var n=this.connectable;n._refCount++;var i=new $n(e,n),r=t.subscribe(i);return i.closed||(i.connection=n.connect()),r},e}(),$n=function(e){function t(t,n){var i=e.call(this,t)||this;return i.connectable=n,i}return i.__extends(t,e),t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var n=this.connection,i=e._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}else this.connection=null},t}(v),Yn=function(e){function t(t,n){var i=e.call(this)||this;return i.source=t,i.subjectFactory=n,i._refCount=0,i._isComplete=!1,i}return i.__extends(t,e),t.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},t.prototype.getSubject=function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject},t.prototype.connect=function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new h).add(this.source.subscribe(new Qn(this.getSubject(),this))),e.closed?(this._connection=null,e=h.EMPTY):this._connection=e),e},t.prototype.refCount=function(){return Un()(this)},t}(x).prototype,Xn={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:Yn._subscribe},_isComplete:{value:Yn._isComplete,writable:!0},getSubject:{value:Yn.getSubject},connect:{value:Yn.connect},refCount:{value:Yn.refCount}},Qn=function(e){function t(t,n){var i=e.call(this,t)||this;return i.connectable=n,i}return i.__extends(t,e),t.prototype._error=function(t){this._unsubscribe(),e.prototype._error.call(this,t)},t.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}},t}(ln);function Jn(e,t){return function(n){var i;if(i="function"==typeof e?e:function(){return e},"function"==typeof t)return n.lift(new ei(i,t));var r=Object.create(n,Xn);return r.source=n,r.subjectFactory=i,r}}var ei=function(){function e(e,t){this.subjectFactory=e,this.selector=t}return e.prototype.call=function(e,t){var n=this.selector,i=this.subjectFactory(),r=n(i).subscribe(e);return r.add(t.subscribe(i)),r},e}();function ti(e,t){return void 0===t&&(t=0),function(n){return n.lift(new ni(e,t))}}var ni=function(){function e(e,t){void 0===t&&(t=0),this.scheduler=e,this.delay=t}return e.prototype.call=function(e,t){return t.subscribe(new ii(e,this.scheduler,this.delay))},e}(),ii=function(e){function t(t,n,i){void 0===i&&(i=0);var r=e.call(this,t)||this;return r.scheduler=n,r.delay=i,r}return i.__extends(t,e),t.dispatch=function(e){var t=e.notification,n=e.destination;t.observe(n),this.unsubscribe()},t.prototype.scheduleMessage=function(e){this.destination.add(this.scheduler.schedule(t.dispatch,this.delay,new ri(e,this.destination)))},t.prototype._next=function(e){this.scheduleMessage(it.createNext(e))},t.prototype._error=function(e){this.scheduleMessage(it.createError(e)),this.unsubscribe()},t.prototype._complete=function(){this.scheduleMessage(it.createComplete()),this.unsubscribe()},t}(v),ri=function(){return function(e,t){this.notification=e,this.destination=t}}();function oi(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 1===e.length&&c(e[0])&&(e=e[0]),function(t){return t.lift(new ai(e))}}var ai=function(){function e(e){this.nextSources=e}return e.prototype.call=function(e,t){return t.subscribe(new si(e,this.nextSources))},e}(),si=function(e){function t(t,n){var i=e.call(this,t)||this;return i.destination=t,i.nextSources=n,i}return i.__extends(t,e),t.prototype.notifyError=function(e,t){this.subscribeToNextSource()},t.prototype.notifyComplete=function(e){this.subscribeToNextSource()},t.prototype._error=function(e){this.subscribeToNextSource(),this.unsubscribe()},t.prototype._complete=function(){this.subscribeToNextSource(),this.unsubscribe()},t.prototype.subscribeToNextSource=function(){var e=this.nextSources.shift();if(e){var t=new _(this,void 0,void 0);this.destination.add(t),N(this,e,void 0,void 0,t)}else this.destination.complete()},t}(y);function ui(){return function(e){return e.lift(new ci)}}var ci=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new li(e))},e}(),li=function(e){function t(t){var n=e.call(this,t)||this;return n.hasPrev=!1,n}return i.__extends(t,e),t.prototype._next=function(e){this.hasPrev?this.destination.next([this.prev,e]):this.hasPrev=!0,this.prev=e},t}(v);function di(e,t){function n(){return!n.pred.apply(n.thisArg,arguments)}return n.pred=e,n.thisArg=t,n}function pi(e,t){return function(n){return[St(e,t)(n),St(di(e,t))(n)]}}function hi(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.length;if(0===n)throw new Error("list of properties cannot be empty.");return function(t){return Pe(fi(e,n))(t)}}function fi(e,t){return function(n){for(var i=n,r=0;r<t;r++){var o=i[e[r]];if(void 0===o)return;i=o}return i}}function mi(e){return e?Jn((function(){return new dn}),e):Jn(new dn)}var vi=function(e){function t(t){var n=e.call(this)||this;return n._value=t,n}return i.__extends(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),t.prototype._subscribe=function(t){var n=e.prototype._subscribe.call(this,t);return n&&!n.closed&&t.next(this._value),n},t.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new un;return this._value},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(dn);function gi(e){return function(t){return Jn(new vi(e))(t)}}var yi=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.value=null,t.hasNext=!1,t.hasCompleted=!1,t}return i.__extends(t,e),t.prototype._subscribe=function(t){return this.hasError?(t.error(this.thrownError),h.EMPTY):this.hasCompleted&&this.hasNext?(t.next(this.value),t.complete(),h.EMPTY):e.prototype._subscribe.call(this,t)},t.prototype.next=function(e){this.hasCompleted||(this.value=e,this.hasNext=!0)},t.prototype.error=function(t){this.hasCompleted||e.prototype.error.call(this,t)},t.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&e.prototype.next.call(this,this.value),e.prototype.complete.call(this)},t}(dn);function _i(){return function(e){return Jn(new yi)(e)}}var bi=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.scheduler=t,i.work=n,i}return i.__extends(t,e),t.prototype.schedule=function(t,n){return void 0===n&&(n=0),n>0?e.prototype.schedule.call(this,t,n):(this.delay=n,this.state=t,this.scheduler.flush(this),this)},t.prototype.execute=function(t,n){return n>0||this.closed?e.prototype.execute.call(this,t,n):this._execute(t,n)},t.prototype.requestAsyncId=function(t,n,i){return void 0===i&&(i=0),null!==i&&i>0||null===i&&this.delay>0?e.prototype.requestAsyncId.call(this,t,n,i):t.flush(this)},t}(z),Ci=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(H))(bi),ki=function(e){function t(t,n,i){void 0===t&&(t=Number.POSITIVE_INFINITY),void 0===n&&(n=Number.POSITIVE_INFINITY);var r=e.call(this)||this;return r.scheduler=i,r._events=[],r._infiniteTimeWindow=!1,r._bufferSize=t<1?1:t,r._windowTime=n<1?1:n,n===Number.POSITIVE_INFINITY?(r._infiniteTimeWindow=!0,r.next=r.nextInfiniteTimeWindow):r.next=r.nextTimeWindow,r}return i.__extends(t,e),t.prototype.nextInfiniteTimeWindow=function(t){var n=this._events;n.push(t),n.length>this._bufferSize&&n.shift(),e.prototype.next.call(this,t)},t.prototype.nextTimeWindow=function(t){this._events.push(new wi(this._getNow(),t)),this._trimBufferThenGetEvents(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){var t,n=this._infiniteTimeWindow,i=n?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,o=i.length;if(this.closed)throw new un;if(this.isStopped||this.hasError?t=h.EMPTY:(this.observers.push(e),t=new cn(this,e)),r&&e.add(e=new ii(e,r)),n)for(var a=0;a<o&&!e.closed;a++)e.next(i[a]);else for(a=0;a<o&&!e.closed;a++)e.next(i[a].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),t},t.prototype._getNow=function(){return(this.scheduler||Ci).now()},t.prototype._trimBufferThenGetEvents=function(){for(var e=this._getNow(),t=this._bufferSize,n=this._windowTime,i=this._events,r=i.length,o=0;o<r&&!(e-i[o].time<n);)o++;return r>t&&(o=Math.max(o,r-t)),o>0&&i.splice(0,o),i},t}(dn),wi=function(){return function(e,t){this.time=e,this.value=t}}();function xi(e,t,n,i){n&&"function"!=typeof n&&(i=n);var r="function"==typeof n?n:void 0,o=new ki(e,t,i);return function(e){return Jn((function(){return o}),r)(e)}}function Si(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(1===e.length){if(!c(e[0]))return e[0];e=e[0]}return ve(e,void 0).lift(new Ei)}var Ei=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new Pi(e))},e}(),Pi=function(e){function t(t){var n=e.call(this,t)||this;return n.hasFirst=!1,n.observables=[],n.subscriptions=[],n}return i.__extends(t,e),t.prototype._next=function(e){this.observables.push(e)},t.prototype._complete=function(){var e=this.observables,t=e.length;if(0===t)this.destination.complete();else{for(var n=0;n<t&&!this.hasFirst;n++){var i=e[n],r=N(this,i,i,n);this.subscriptions&&this.subscriptions.push(r),this.add(r)}this.observables=null}},t.prototype.notifyNext=function(e,t,n,i,r){if(!this.hasFirst){this.hasFirst=!0;for(var o=0;o<this.subscriptions.length;o++)if(o!==n){var a=this.subscriptions[o];a.unsubscribe(),this.remove(a)}this.subscriptions=null}this.destination.next(t)},t}(y);function Ii(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return 1===e.length&&c(e[0])&&(e=e[0]),t.lift.call(Si.apply(void 0,[t].concat(e)))}}function Ti(e){return void 0===e&&(e=-1),function(t){return 0===e?xe():e<0?t.lift(new Oi(-1,t)):t.lift(new Oi(e-1,t))}}var Oi=function(){function e(e,t){this.count=e,this.source=t}return e.prototype.call=function(e,t){return t.subscribe(new Bi(e,this.count,this.source))},e}(),Bi=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.count=n,r.source=i,r}return i.__extends(t,e),t.prototype.complete=function(){if(!this.isStopped){var t=this.source,n=this.count;if(0===n)return e.prototype.complete.call(this);n>-1&&(this.count=n-1),t.subscribe(this._unsubscribeAndRecycle())}},t}(v);function Vi(e){return function(t){return t.lift(new Ri(e))}}var Ri=function(){function e(e){this.notifier=e}return e.prototype.call=function(e,t){return t.subscribe(new Mi(e,this.notifier,t))},e}(),Mi=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.notifier=n,r.source=i,r.sourceIsBeingSubscribedTo=!0,r}return i.__extends(t,e),t.prototype.notifyNext=function(e,t,n,i,r){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)},t.prototype.notifyComplete=function(t){if(!1===this.sourceIsBeingSubscribedTo)return e.prototype.complete.call(this)},t.prototype.complete=function(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return e.prototype.complete.call(this);this._unsubscribeAndRecycle(),this.notifications.next()}},t.prototype._unsubscribe=function(){var e=this.notifications,t=this.retriesSubscription;e&&(e.unsubscribe(),this.notifications=null),t&&(t.unsubscribe(),this.retriesSubscription=null),this.retries=null},t.prototype._unsubscribeAndRecycle=function(){var t=this._unsubscribe;return this._unsubscribe=null,e.prototype._unsubscribeAndRecycle.call(this),this._unsubscribe=t,this},t.prototype.subscribeToRetries=function(){var t;this.notifications=new dn;try{t=(0,this.notifier)(this.notifications)}catch(t){return e.prototype.complete.call(this)}this.retries=t,this.retriesSubscription=N(this,t)},t}(y);function Ni(e){return void 0===e&&(e=-1),function(t){return t.lift(new Ai(e,t))}}var Ai=function(){function e(e,t){this.count=e,this.source=t}return e.prototype.call=function(e,t){return t.subscribe(new ji(e,this.count,this.source))},e}(),ji=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.count=n,r.source=i,r}return i.__extends(t,e),t.prototype.error=function(t){if(!this.isStopped){var n=this.source,i=this.count;if(0===i)return e.prototype.error.call(this,t);i>-1&&(this.count=i-1),n.subscribe(this._unsubscribeAndRecycle())}},t}(v);function Di(e){return function(t){return t.lift(new zi(e,t))}}var zi=function(){function e(e,t){this.notifier=e,this.source=t}return e.prototype.call=function(e,t){return t.subscribe(new Fi(e,this.notifier,this.source))},e}(),Fi=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.notifier=n,r.source=i,r}return i.__extends(t,e),t.prototype.error=function(t){if(!this.isStopped){var n=this.errors,i=this.retries,r=this.retriesSubscription;if(i)this.errors=null,this.retriesSubscription=null;else{n=new dn;try{i=(0,this.notifier)(n)}catch(t){return e.prototype.error.call(this,t)}r=N(this,i)}this._unsubscribeAndRecycle(),this.errors=n,this.retries=i,this.retriesSubscription=r,n.next(t)}},t.prototype._unsubscribe=function(){var e=this.errors,t=this.retriesSubscription;e&&(e.unsubscribe(),this.errors=null),t&&(t.unsubscribe(),this.retriesSubscription=null),this.retries=null},t.prototype.notifyNext=function(e,t,n,i,r){var o=this._unsubscribe;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=o,this.source.subscribe(this)},t}(y);function Hi(e){return function(t){return t.lift(new Li(e))}}var Li=function(){function e(e){this.notifier=e}return e.prototype.call=function(e,t){var n=new Wi(e),i=t.subscribe(n);return i.add(N(n,this.notifier)),i},e}(),Wi=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.hasValue=!1,t}return i.__extends(t,e),t.prototype._next=function(e){this.value=e,this.hasValue=!0},t.prototype.notifyNext=function(e,t,n,i,r){this.emitValue()},t.prototype.notifyComplete=function(){this.emitValue()},t.prototype.emitValue=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))},t}(y);function Zi(e,t){return void 0===t&&(t=L),function(n){return n.lift(new Gi(e,t))}}var Gi=function(){function e(e,t){this.period=e,this.scheduler=t}return e.prototype.call=function(e,t){return t.subscribe(new Ki(e,this.period,this.scheduler))},e}(),Ki=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.period=n,r.scheduler=i,r.hasValue=!1,r.add(i.schedule(Ui,n,{subscriber:r,period:n})),r}return i.__extends(t,e),t.prototype._next=function(e){this.lastValue=e,this.hasValue=!0},t.prototype.notifyNext=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))},t}(v);function Ui(e){var t=e.subscriber,n=e.period;t.notifyNext(),this.schedule(e,n)}function qi(e,t){return function(n){return n.lift(new $i(e,t))}}var $i=function(){function e(e,t){this.compareTo=e,this.comparator=t}return e.prototype.call=function(e,t){return t.subscribe(new Yi(e,this.compareTo,this.comparator))},e}(),Yi=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.compareTo=n,r.comparator=i,r._a=[],r._b=[],r._oneComplete=!1,r.destination.add(n.subscribe(new Xi(t,r))),r}return i.__extends(t,e),t.prototype._next=function(e){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(e),this.checkValues())},t.prototype._complete=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0,this.unsubscribe()},t.prototype.checkValues=function(){for(var e=this._a,t=this._b,n=this.comparator;e.length>0&&t.length>0;){var i=e.shift(),r=t.shift(),o=!1;try{o=n?n(i,r):i===r}catch(e){this.destination.error(e)}o||this.emit(!1)}},t.prototype.emit=function(e){var t=this.destination;t.next(e),t.complete()},t.prototype.nextB=function(e){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(e),this.checkValues())},t.prototype.completeB=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0},t}(v),Xi=function(e){function t(t,n){var i=e.call(this,t)||this;return i.parent=n,i}return i.__extends(t,e),t.prototype._next=function(e){this.parent.nextB(e)},t.prototype._error=function(e){this.parent.error(e),this.unsubscribe()},t.prototype._complete=function(){this.parent.completeB(),this.unsubscribe()},t}(v);function Qi(){return new dn}function Ji(){return function(e){return Un()(Jn(Qi)(e))}}function er(e,t,n){var i;return i=e&&"object"==typeof e?e:{bufferSize:e,windowTime:t,refCount:!1,scheduler:n},function(e){return e.lift(function(e){var t,n,i=e.bufferSize,r=void 0===i?Number.POSITIVE_INFINITY:i,o=e.windowTime,a=void 0===o?Number.POSITIVE_INFINITY:o,s=e.refCount,u=e.scheduler,c=0,l=!1,d=!1;return function(e){c++,t&&!l||(l=!1,t=new ki(r,a,u),n=e.subscribe({next:function(e){t.next(e)},error:function(e){l=!0,t.error(e)},complete:function(){d=!0,t.complete()}}));var i=t.subscribe(this);this.add((function(){c--,i.unsubscribe(),n&&!d&&s&&0===c&&(n.unsubscribe(),n=void 0,t=void 0)}))}}(i))}}function tr(e){return function(t){return t.lift(new nr(e,t))}}var nr=function(){function e(e,t){this.predicate=e,this.source=t}return e.prototype.call=function(e,t){return t.subscribe(new ir(e,this.predicate,this.source))},e}(),ir=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.predicate=n,r.source=i,r.seenValue=!1,r.index=0,r}return i.__extends(t,e),t.prototype.applySingleValue=function(e){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=e)},t.prototype._next=function(e){var t=this.index++;this.predicate?this.tryNext(e,t):this.applySingleValue(e)},t.prototype.tryNext=function(e,t){try{this.predicate(e,t,this.source)&&this.applySingleValue(e)}catch(e){this.destination.error(e)}},t.prototype._complete=function(){var e=this.destination;this.index>0?(e.next(this.seenValue?this.singleValue:void 0),e.complete()):e.error(new Vt)},t}(v);function rr(e){return function(t){return t.lift(new or(e))}}var or=function(){function e(e){this.total=e}return e.prototype.call=function(e,t){return t.subscribe(new ar(e,this.total))},e}(),ar=function(e){function t(t,n){var i=e.call(this,t)||this;return i.total=n,i.count=0,i}return i.__extends(t,e),t.prototype._next=function(e){++this.count>this.total&&this.destination.next(e)},t}(v);function sr(e){return function(t){return t.lift(new ur(e))}}var ur=function(){function e(e){if(this._skipCount=e,this._skipCount<0)throw new xt}return e.prototype.call=function(e,t){return 0===this._skipCount?t.subscribe(new v(e)):t.subscribe(new cr(e,this._skipCount))},e}(),cr=function(e){function t(t,n){var i=e.call(this,t)||this;return i._skipCount=n,i._count=0,i._ring=new Array(n),i}return i.__extends(t,e),t.prototype._next=function(e){var t=this._skipCount,n=this._count++;if(n<t)this._ring[n]=e;else{var i=n%t,r=this._ring,o=r[i];r[i]=e,this.destination.next(o)}},t}(v);function lr(e){return function(t){return t.lift(new dr(e))}}var dr=function(){function e(e){this.notifier=e}return e.prototype.call=function(e,t){return t.subscribe(new pr(e,this.notifier))},e}(),pr=function(e){function t(t,n){var i=e.call(this,t)||this;i.hasValue=!1;var r=new _(i,void 0,void 0);return i.add(r),i.innerSubscription=r,N(i,n,void 0,void 0,r),i}return i.__extends(t,e),t.prototype._next=function(t){this.hasValue&&e.prototype._next.call(this,t)},t.prototype.notifyNext=function(e,t,n,i,r){this.hasValue=!0,this.innerSubscription&&this.innerSubscription.unsubscribe()},t.prototype.notifyComplete=function(){},t}(y);function hr(e){return function(t){return t.lift(new fr(e))}}var fr=function(){function e(e){this.predicate=e}return e.prototype.call=function(e,t){return t.subscribe(new mr(e,this.predicate))},e}(),mr=function(e){function t(t,n){var i=e.call(this,t)||this;return i.predicate=n,i.skipping=!0,i.index=0,i}return i.__extends(t,e),t.prototype._next=function(e){var t=this.destination;this.skipping&&this.tryCallPredicate(e),this.skipping||t.next(e)},t.prototype.tryCallPredicate=function(e){try{var t=this.predicate(e,this.index++);this.skipping=Boolean(t)}catch(e){this.destination.error(e)}},t}(v);function vr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){var n=e[e.length-1];Z(n)?e.pop():n=null;var i=e.length;return Ae(1!==i||n?i>0?ve(e,n):xe(n):Se(e[0]),t)}}var gr=1,yr={};var _r=function(e){var t=gr++;return yr[t]=e,Promise.resolve().then((function(){return function(e){var t=yr[e];t&&t()}(t)})),t},br=function(e){delete yr[e]},Cr=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.scheduler=t,i.work=n,i}return i.__extends(t,e),t.prototype.requestAsyncId=function(t,n,i){return void 0===i&&(i=0),null!==i&&i>0?e.prototype.requestAsyncId.call(this,t,n,i):(t.actions.push(this),t.scheduled||(t.scheduled=_r(t.flush.bind(t,null))))},t.prototype.recycleAsyncId=function(t,n,i){if(void 0===i&&(i=0),null!==i&&i>0||null===i&&this.delay>0)return e.prototype.recycleAsyncId.call(this,t,n,i);0===t.actions.length&&(br(n),t.scheduled=void 0)},t}(z),kr=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.flush=function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,i=-1,r=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++i<r&&(e=n.shift()));if(this.active=!1,t){for(;++i<r&&(e=n.shift());)e.unsubscribe();throw t}},t}(H))(Cr),wr=function(e){function t(t,n,i){void 0===n&&(n=0),void 0===i&&(i=kr);var r=e.call(this)||this;return r.source=t,r.delayTime=n,r.scheduler=i,(!W(n)||n<0)&&(r.delayTime=0),i&&"function"==typeof i.schedule||(r.scheduler=kr),r}return i.__extends(t,e),t.create=function(e,n,i){return void 0===n&&(n=0),void 0===i&&(i=kr),new t(e,n,i)},t.dispatch=function(e){var t=e.source,n=e.subscriber;return this.add(t.subscribe(n))},t.prototype._subscribe=function(e){var n=this.delayTime,i=this.source;return this.scheduler.schedule(t.dispatch,n,{source:i,subscriber:e})},t}(x);function xr(e,t){return void 0===t&&(t=0),function(n){return n.lift(new Sr(e,t))}}var Sr=function(){function e(e,t){this.scheduler=e,this.delay=t}return e.prototype.call=function(e,t){return new wr(t,this.delay,this.scheduler).subscribe(e)},e}();function Er(e,t){return"function"==typeof t?function(n){return n.pipe(Er((function(n,i){return Ce(e(n,i)).pipe(Pe((function(e,r){return t(n,e,i,r)})))})))}:function(t){return t.lift(new Pr(e))}}var Pr=function(){function e(e){this.project=e}return e.prototype.call=function(e,t){return t.subscribe(new Ir(e,this.project))},e}(),Ir=function(e){function t(t,n){var i=e.call(this,t)||this;return i.project=n,i.index=0,i}return i.__extends(t,e),t.prototype._next=function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(e){return void this.destination.error(e)}this._innerSub(t,e,n)},t.prototype._innerSub=function(e,t,n){var i=this.innerSubscription;i&&i.unsubscribe();var r=new _(this,void 0,void 0);this.destination.add(r),this.innerSubscription=N(this,e,t,n,r)},t.prototype._complete=function(){var t=this.innerSubscription;t&&!t.closed||e.prototype._complete.call(this),this.unsubscribe()},t.prototype._unsubscribe=function(){this.innerSubscription=null},t.prototype.notifyComplete=function(t){this.destination.remove(t),this.innerSubscription=null,this.isStopped&&e.prototype._complete.call(this)},t.prototype.notifyNext=function(e,t,n,i,r){this.destination.next(t)},t}(y);function Tr(){return Er(Re)}function Or(e,t){return t?Er((function(){return e}),t):Er((function(){return e}))}function Br(e){return function(t){return t.lift(new Vr(e))}}var Vr=function(){function e(e){this.notifier=e}return e.prototype.call=function(e,t){var n=new Rr(e),i=N(n,this.notifier);return i&&!n.seenValue?(n.add(i),t.subscribe(n)):n},e}(),Rr=function(e){function t(t){var n=e.call(this,t)||this;return n.seenValue=!1,n}return i.__extends(t,e),t.prototype.notifyNext=function(e,t,n,i,r){this.seenValue=!0,this.complete()},t.prototype.notifyComplete=function(){},t}(y);function Mr(e,t){return void 0===t&&(t=!1),function(n){return n.lift(new Nr(e,t))}}var Nr=function(){function e(e,t){this.predicate=e,this.inclusive=t}return e.prototype.call=function(e,t){return t.subscribe(new Ar(e,this.predicate,this.inclusive))},e}(),Ar=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.predicate=n,r.inclusive=i,r.index=0,r}return i.__extends(t,e),t.prototype._next=function(e){var t,n=this.destination;try{t=this.predicate(e,this.index++)}catch(e){return void n.error(e)}this.nextOrComplete(e,t)},t.prototype.nextOrComplete=function(e,t){var n=this.destination;Boolean(t)?n.next(e):(this.inclusive&&n.next(e),n.complete())},t}(v),jr={leading:!0,trailing:!1};function Dr(e,t){return void 0===t&&(t=jr),function(n){return n.lift(new zr(e,t.leading,t.trailing))}}var zr=function(){function e(e,t,n){this.durationSelector=e,this.leading=t,this.trailing=n}return e.prototype.call=function(e,t){return t.subscribe(new Fr(e,this.durationSelector,this.leading,this.trailing))},e}(),Fr=function(e){function t(t,n,i,r){var o=e.call(this,t)||this;return o.destination=t,o.durationSelector=n,o._leading=i,o._trailing=r,o._hasValue=!1,o}return i.__extends(t,e),t.prototype._next=function(e){this._hasValue=!0,this._sendValue=e,this._throttled||(this._leading?this.send():this.throttle(e))},t.prototype.send=function(){var e=this._hasValue,t=this._sendValue;e&&(this.destination.next(t),this.throttle(t)),this._hasValue=!1,this._sendValue=null},t.prototype.throttle=function(e){var t=this.tryDurationSelector(e);t&&this.add(this._throttled=N(this,t))},t.prototype.tryDurationSelector=function(e){try{return this.durationSelector(e)}catch(e){return this.destination.error(e),null}},t.prototype.throttlingDone=function(){var e=this._throttled,t=this._trailing;e&&e.unsubscribe(),this._throttled=null,t&&this.send()},t.prototype.notifyNext=function(e,t,n,i,r){this.throttlingDone()},t.prototype.notifyComplete=function(){this.throttlingDone()},t}(y);function Hr(e,t,n){return void 0===t&&(t=L),void 0===n&&(n=jr),function(i){return i.lift(new Lr(e,t,n.leading,n.trailing))}}var Lr=function(){function e(e,t,n,i){this.duration=e,this.scheduler=t,this.leading=n,this.trailing=i}return e.prototype.call=function(e,t){return t.subscribe(new Wr(e,this.duration,this.scheduler,this.leading,this.trailing))},e}(),Wr=function(e){function t(t,n,i,r,o){var a=e.call(this,t)||this;return a.duration=n,a.scheduler=i,a.leading=r,a.trailing=o,a._hasTrailingValue=!1,a._trailingValue=null,a}return i.__extends(t,e),t.prototype._next=function(e){this.throttled?this.trailing&&(this._trailingValue=e,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(Zr,this.duration,{subscriber:this})),this.leading&&this.destination.next(e))},t.prototype._complete=function(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()},t.prototype.clearThrottle=function(){var e=this.throttled;e&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),e.unsubscribe(),this.remove(e),this.throttled=null)},t}(v);function Zr(e){e.subscriber.clearThrottle()}function Gr(e){return void 0===e&&(e=L),function(t){return n=function(){return t.pipe(Nn((function(t,n){var i=t.current;return{value:n,current:e.now(),last:i}}),{current:e.now(),value:void 0,last:void 0}),Pe((function(e){var t=e.current,n=e.last,i=e.value;return new Kr(i,t-n)})))},new x((function(e){var t;try{t=n()}catch(t){return void e.error(t)}return(t?Ce(t):xe()).subscribe(e)}));var n}}var Kr=function(){return function(e,t){this.value=e,this.interval=t}}();function Ur(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}Ur.prototype=Object.create(Error.prototype);var qr=Ur;function $r(e,t,n){return void 0===n&&(n=L),function(i){var r=et(e),o=r?+e-n.now():Math.abs(e);return i.lift(new Yr(o,r,t,n))}}var Yr=function(){function e(e,t,n,i){this.waitFor=e,this.absoluteTimeout=t,this.withObservable=n,this.scheduler=i}return e.prototype.call=function(e,t){return t.subscribe(new Xr(e,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))},e}(),Xr=function(e){function t(t,n,i,r,o){var a=e.call(this,t)||this;return a.absoluteTimeout=n,a.waitFor=i,a.withObservable=r,a.scheduler=o,a.action=null,a.scheduleTimeout(),a}return i.__extends(t,e),t.dispatchTimeout=function(e){var t=e.withObservable;e._unsubscribeAndRecycle(),e.add(N(e,t))},t.prototype.scheduleTimeout=function(){var e=this.action;e?this.action=e.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(t.dispatchTimeout,this.waitFor,this))},t.prototype._next=function(t){this.absoluteTimeout||this.scheduleTimeout(),e.prototype._next.call(this,t)},t.prototype._unsubscribe=function(){this.action=null,this.scheduler=null,this.withObservable=null},t}(y);function Qr(e,t){return void 0===t&&(t=L),$r(e,tt(new qr),t)}function Jr(e){return void 0===e&&(e=L),Pe((function(t){return new eo(t,e.now())}))}var eo=function(){return function(e,t){this.value=e,this.timestamp=t}}();function to(e,t,n){return 0===n?[t]:(e.push(t),e)}function no(){return Dn(to,[])}function io(e){return function(t){return t.lift(new ro(e))}}var ro=function(){function e(e){this.windowBoundaries=e}return e.prototype.call=function(e,t){var n=new oo(e),i=t.subscribe(n);return i.closed||n.add(N(n,this.windowBoundaries)),i},e}(),oo=function(e){function t(t){var n=e.call(this,t)||this;return n.window=new dn,t.next(n.window),n}return i.__extends(t,e),t.prototype.notifyNext=function(e,t,n,i,r){this.openWindow()},t.prototype.notifyError=function(e,t){this._error(e)},t.prototype.notifyComplete=function(e){this._complete()},t.prototype._next=function(e){this.window.next(e)},t.prototype._error=function(e){this.window.error(e),this.destination.error(e)},t.prototype._complete=function(){this.window.complete(),this.destination.complete()},t.prototype._unsubscribe=function(){this.window=null},t.prototype.openWindow=function(){var e=this.window;e&&e.complete();var t=this.destination,n=this.window=new dn;t.next(n)},t}(y);function ao(e,t){return void 0===t&&(t=0),function(n){return n.lift(new so(e,t))}}var so=function(){function e(e,t){this.windowSize=e,this.startWindowEvery=t}return e.prototype.call=function(e,t){return t.subscribe(new uo(e,this.windowSize,this.startWindowEvery))},e}(),uo=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.destination=t,r.windowSize=n,r.startWindowEvery=i,r.windows=[new dn],r.count=0,t.next(r.windows[0]),r}return i.__extends(t,e),t.prototype._next=function(e){for(var t=this.startWindowEvery>0?this.startWindowEvery:this.windowSize,n=this.destination,i=this.windowSize,r=this.windows,o=r.length,a=0;a<o&&!this.closed;a++)r[a].next(e);var s=this.count-i+1;if(s>=0&&s%t==0&&!this.closed&&r.shift().complete(),++this.count%t==0&&!this.closed){var u=new dn;r.push(u),n.next(u)}},t.prototype._error=function(e){var t=this.windows;if(t)for(;t.length>0&&!this.closed;)t.shift().error(e);this.destination.error(e)},t.prototype._complete=function(){var e=this.windows;if(e)for(;e.length>0&&!this.closed;)e.shift().complete();this.destination.complete()},t.prototype._unsubscribe=function(){this.count=0,this.windows=null},t}(v);function co(e){var t=L,n=null,i=Number.POSITIVE_INFINITY;return Z(arguments[3])&&(t=arguments[3]),Z(arguments[2])?t=arguments[2]:W(arguments[2])&&(i=arguments[2]),Z(arguments[1])?t=arguments[1]:W(arguments[1])&&(n=arguments[1]),function(r){return r.lift(new lo(e,n,i,t))}}var lo=function(){function e(e,t,n,i){this.windowTimeSpan=e,this.windowCreationInterval=t,this.maxWindowSize=n,this.scheduler=i}return e.prototype.call=function(e,t){return t.subscribe(new ho(e,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))},e}(),po=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._numberOfNextedValues=0,t}return i.__extends(t,e),t.prototype.next=function(t){this._numberOfNextedValues++,e.prototype.next.call(this,t)},Object.defineProperty(t.prototype,"numberOfNextedValues",{get:function(){return this._numberOfNextedValues},enumerable:!0,configurable:!0}),t}(dn),ho=function(e){function t(t,n,i,r,o){var a=e.call(this,t)||this;a.destination=t,a.windowTimeSpan=n,a.windowCreationInterval=i,a.maxWindowSize=r,a.scheduler=o,a.windows=[];var s=a.openWindow();if(null!==i&&i>=0){var u={subscriber:a,window:s,context:null},c={windowTimeSpan:n,windowCreationInterval:i,subscriber:a,scheduler:o};a.add(o.schedule(vo,n,u)),a.add(o.schedule(mo,i,c))}else{var l={subscriber:a,window:s,windowTimeSpan:n};a.add(o.schedule(fo,n,l))}return a}return i.__extends(t,e),t.prototype._next=function(e){for(var t=this.windows,n=t.length,i=0;i<n;i++){var r=t[i];r.closed||(r.next(e),r.numberOfNextedValues>=this.maxWindowSize&&this.closeWindow(r))}},t.prototype._error=function(e){for(var t=this.windows;t.length>0;)t.shift().error(e);this.destination.error(e)},t.prototype._complete=function(){for(var e=this.windows;e.length>0;){var t=e.shift();t.closed||t.complete()}this.destination.complete()},t.prototype.openWindow=function(){var e=new po;return this.windows.push(e),this.destination.next(e),e},t.prototype.closeWindow=function(e){e.complete();var t=this.windows;t.splice(t.indexOf(e),1)},t}(v);function fo(e){var t=e.subscriber,n=e.windowTimeSpan,i=e.window;i&&t.closeWindow(i),e.window=t.openWindow(),this.schedule(e,n)}function mo(e){var t=e.windowTimeSpan,n=e.subscriber,i=e.scheduler,r=e.windowCreationInterval,o=n.openWindow(),a={action:this,subscription:null},s={subscriber:n,window:o,context:a};a.subscription=i.schedule(vo,t,s),this.add(a.subscription),this.schedule(e,r)}function vo(e){var t=e.subscriber,n=e.window,i=e.context;i&&i.action&&i.subscription&&i.action.remove(i.subscription),t.closeWindow(n)}function go(e,t){return function(n){return n.lift(new yo(e,t))}}var yo=function(){function e(e,t){this.openings=e,this.closingSelector=t}return e.prototype.call=function(e,t){return t.subscribe(new _o(e,this.openings,this.closingSelector))},e}(),_o=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.openings=n,r.closingSelector=i,r.contexts=[],r.add(r.openSubscription=N(r,n,n)),r}return i.__extends(t,e),t.prototype._next=function(e){var t=this.contexts;if(t)for(var n=t.length,i=0;i<n;i++)t[i].window.next(e)},t.prototype._error=function(t){var n=this.contexts;if(this.contexts=null,n)for(var i=n.length,r=-1;++r<i;){var o=n[r];o.window.error(t),o.subscription.unsubscribe()}e.prototype._error.call(this,t)},t.prototype._complete=function(){var t=this.contexts;if(this.contexts=null,t)for(var n=t.length,i=-1;++i<n;){var r=t[i];r.window.complete(),r.subscription.unsubscribe()}e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){var e=this.contexts;if(this.contexts=null,e)for(var t=e.length,n=-1;++n<t;){var i=e[n];i.window.unsubscribe(),i.subscription.unsubscribe()}},t.prototype.notifyNext=function(e,t,n,i,r){if(e===this.openings){var o=void 0;try{o=(0,this.closingSelector)(t)}catch(e){return this.error(e)}var a=new dn,s=new h,u={window:a,subscription:s};this.contexts.push(u);var c=N(this,o,u);c.closed?this.closeWindow(this.contexts.length-1):(c.context=u,s.add(c)),this.destination.next(a)}else this.closeWindow(this.contexts.indexOf(e))},t.prototype.notifyError=function(e){this.error(e)},t.prototype.notifyComplete=function(e){e!==this.openSubscription&&this.closeWindow(this.contexts.indexOf(e.context))},t.prototype.closeWindow=function(e){if(-1!==e){var t=this.contexts,n=t[e],i=n.window,r=n.subscription;t.splice(e,1),i.complete(),r.unsubscribe()}},t}(y);function bo(e){return function(t){return t.lift(new Co(e))}}var Co=function(){function e(e){this.closingSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new ko(e,this.closingSelector))},e}(),ko=function(e){function t(t,n){var i=e.call(this,t)||this;return i.destination=t,i.closingSelector=n,i.openWindow(),i}return i.__extends(t,e),t.prototype.notifyNext=function(e,t,n,i,r){this.openWindow(r)},t.prototype.notifyError=function(e,t){this._error(e)},t.prototype.notifyComplete=function(e){this.openWindow(e)},t.prototype._next=function(e){this.window.next(e)},t.prototype._error=function(e){this.window.error(e),this.destination.error(e),this.unsubscribeClosingNotification()},t.prototype._complete=function(){this.window.complete(),this.destination.complete(),this.unsubscribeClosingNotification()},t.prototype.unsubscribeClosingNotification=function(){this.closingNotification&&this.closingNotification.unsubscribe()},t.prototype.openWindow=function(e){void 0===e&&(e=null),e&&(this.remove(e),e.unsubscribe());var t=this.window;t&&t.complete();var n,i=this.window=new dn;this.destination.next(i);try{n=(0,this.closingSelector)()}catch(e){return this.destination.error(e),void this.window.error(e)}this.add(this.closingNotification=N(this,n))},t}(y);function wo(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){var n;"function"==typeof e[e.length-1]&&(n=e.pop());var i=e;return t.lift(new xo(i,n))}}var xo=function(){function e(e,t){this.observables=e,this.project=t}return e.prototype.call=function(e,t){return t.subscribe(new So(e,this.observables,this.project))},e}(),So=function(e){function t(t,n,i){var r=e.call(this,t)||this;r.observables=n,r.project=i,r.toRespond=[];var o=n.length;r.values=new Array(o);for(var a=0;a<o;a++)r.toRespond.push(a);for(a=0;a<o;a++){var s=n[a];r.add(N(r,s,s,a))}return r}return i.__extends(t,e),t.prototype.notifyNext=function(e,t,n,i,r){this.values[n]=t;var o=this.toRespond;if(o.length>0){var a=o.indexOf(n);-1!==a&&o.splice(a,1)}},t.prototype.notifyComplete=function(){},t.prototype._next=function(e){if(0===this.toRespond.length){var t=[e].concat(this.values);this.project?this._tryProject(t):this.destination.next(t)}},t.prototype._tryProject=function(e){var t;try{t=this.project.apply(this,e)}catch(e){return void this.destination.error(e)}this.destination.next(t)},t}(y);function Eo(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e[e.length-1];return"function"==typeof n&&e.pop(),ve(e,void 0).lift(new Po(n))}var Po=function(){function e(e){this.resultSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new Io(e,this.resultSelector))},e}(),Io=function(e){function t(t,n,i){void 0===i&&(i=Object.create(null));var r=e.call(this,t)||this;return r.iterators=[],r.active=0,r.resultSelector="function"==typeof n?n:null,r.values=i,r}return i.__extends(t,e),t.prototype._next=function(e){var t=this.iterators;c(e)?t.push(new Oo(e)):"function"==typeof e[T]?t.push(new To(e[T]())):t.push(new Bo(this.destination,this,e))},t.prototype._complete=function(){var e=this.iterators,t=e.length;if(this.unsubscribe(),0!==t){this.active=t;for(var n=0;n<t;n++){var i=e[n];if(i.stillUnsubscribed)this.destination.add(i.subscribe(i,n));else this.active--}}else this.destination.complete()},t.prototype.notifyInactive=function(){this.active--,0===this.active&&this.destination.complete()},t.prototype.checkIterators=function(){for(var e=this.iterators,t=e.length,n=this.destination,i=0;i<t;i++){if("function"==typeof(a=e[i]).hasValue&&!a.hasValue())return}var r=!1,o=[];for(i=0;i<t;i++){var a,s=(a=e[i]).next();if(a.hasCompleted()&&(r=!0),s.done)return void n.complete();o.push(s.value)}this.resultSelector?this._tryresultSelector(o):n.next(o),r&&n.complete()},t.prototype._tryresultSelector=function(e){var t;try{t=this.resultSelector.apply(this,e)}catch(e){return void this.destination.error(e)}this.destination.next(t)},t}(v),To=function(){function e(e){this.iterator=e,this.nextResult=e.next()}return e.prototype.hasValue=function(){return!0},e.prototype.next=function(){var e=this.nextResult;return this.nextResult=this.iterator.next(),e},e.prototype.hasCompleted=function(){var e=this.nextResult;return e&&e.done},e}(),Oo=function(){function e(e){this.array=e,this.index=0,this.length=0,this.length=e.length}return e.prototype[T]=function(){return this},e.prototype.next=function(e){var t=this.index++,n=this.array;return t<this.length?{value:n[t],done:!1}:{value:null,done:!0}},e.prototype.hasValue=function(){return this.array.length>this.index},e.prototype.hasCompleted=function(){return this.array.length===this.index},e}(),Bo=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.parent=n,r.observable=i,r.stillUnsubscribed=!0,r.buffer=[],r.isComplete=!1,r}return i.__extends(t,e),t.prototype[T]=function(){return this},t.prototype.next=function(){var e=this.buffer;return 0===e.length&&this.isComplete?{value:null,done:!0}:{value:e.shift(),done:!1}},t.prototype.hasValue=function(){return this.buffer.length>0},t.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete},t.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},t.prototype.notifyNext=function(e,t,n,i,r){this.buffer.push(t),this.parent.checkIterators()},t.prototype.subscribe=function(e,t){return N(this,this.observable,this,t)},t}(y);function Vo(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return t.lift.call(Eo.apply(void 0,[t].concat(e)))}}function Ro(e){return function(t){return t.lift(new Po(e))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0);i.__exportStar(n(104),t),i.__exportStar(n(106),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_OUTPUT_FORMAT="rgba",t.DEFAULT_GRADIENT_BACKGROUND_COLOR="rgba(255, 0, 0, 1)",t.DRAGHANDLE_MOVE_SPEED=5,t.AAA_RATIO=7,t.AA_RATIO=4.5,t.DEFAULT_PRESET="office",t.DEFAULT_ACCESSIBLE_PRESET="accessible",t.STEP_COUNT=16},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=function(){function e(e){this.templateRef=e}return e=i.__decorate([r.Directive({selector:"[kendoSliderLabelTemplate]"}),i.__param(0,r.Optional()),i.__metadata("design:paramtypes",[r.TemplateRef])],e)}();t.LabelTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0);i.__exportStar(n(100),t),i.__exportStar(n(101),t),i.__exportStar(n(102),t),i.__exportStar(n(103),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(5),a=n(7),s=n(12),u=n(10),c=n(82),l=n(2),d=n(4),p=n(10),h=n(11),f=n(3),m=n(34),v=function(e){function t(t,n,i,r,o,a){var s=e.call(this,t,n,i,r,o,a)||this;return s.localization=t,s.injector=n,s.renderer=i,s.ngZone=r,s.changeDetector=o,s.hostElement=a,s.focusableId="k-"+f.guid(),s.animate=!0,s.showButtons=!0,s.value=s.min,s.focusChangedProgrammatically=!1,s.onWrapClick=function(e){var t=e.target;if(!s.isDisabled&&!p.isButton(t)&&!p.isButton(t.parentNode)){var n=p.eventValue(e,s.track.nativeElement,s.getProps());s.changeValue(n)}h.invokeElementMethod(s.draghandle,"focus")},s.onKeyDown=function(e){var t=s.getProps(),n=t.max,i=t.min,r=s.keyBinding[e.keyCode];if(!s.isDisabled&&r){var o=r(t);s.changeValue(u.trimValue(n,i,o)),e.preventDefault()}},s.ngChange=function(e){},s.ngTouched=function(){},s.decreaseValue=function(){s.changeValue(p.decreaseValueToStep(s.value,s.getProps()))},s.increaseValue=function(){s.changeValue(p.increaseValueToStep(s.value,s.getProps()))},s.handleBlur=function(){s.changeDetector.markForCheck(),s.focused=!1,(f.hasObservers(s.onBlur)||d.requiresZoneOnBlur(s.control))&&s.ngZone.run((function(){s.ngTouched(),s.focusChangedProgrammatically||s.onBlur.emit()}))},s}var n;return i.__extends(t,e),n=t,Object.defineProperty(t.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentValue",{get:function(){return d.isPresent(this.value)?this.value.toString():""},enumerable:!0,configurable:!0}),t.prototype.focus=function(){this.disabled||(this.focusChangedProgrammatically=!0,h.invokeElementMethod(this.draghandle,"focus"),this.focusChangedProgrammatically=!1)},t.prototype.blur=function(){this.focusChangedProgrammatically=!0,h.invokeElementMethod(this.draghandle,"blur"),this.handleBlur(),this.focusChangedProgrammatically=!1},t.prototype.ngOnChanges=function(e){var t=this;f.anyChanged(["value","fixedTickWidth","tickPlacement"],e,!0)&&this.ngZone.onStable.asObservable().pipe(s.take(1)).subscribe((function(){t.sizeComponent(!1)}))},t.prototype.ngAfterViewInit=function(){var e=this;f.isDocumentAvailable()&&(this.showButtons&&(this.setValueChangeInterval(this.increaseButton.nativeElement,(function(){return e.increaseValue()})),this.setValueChangeInterval(this.decreaseButton.nativeElement,(function(){return e.decreaseValue()}))),this.sizeComponent(!1),this.ticks&&this.ticks.tickElements.changes.subscribe((function(){return e.sizeComponent(!1)})),this.attachElementEventHandlers())},t.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},Object.defineProperty(t.prototype,"incrementMessage",{get:function(){return this.incrementTitle||this.localizationService.get("increment")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"decrementMessage",{get:function(){return this.decrementTitle||this.localizationService.get("decrement")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dragHandleMessage",{get:function(){return this.dragHandleTitle||this.localizationService.get("dragHandle")},enumerable:!0,configurable:!0}),t.prototype.handleDragPress=function(e){e.originalEvent&&e.originalEvent.preventDefault(),this.renderer.removeClass(this.hostElement.nativeElement,"k-slider-transitions")},t.prototype.onHandleDrag=function(e){this.dragging=!0,this.changeValue(p.eventValue(e,this.track.nativeElement,this.getProps()))},t.prototype.onHandleRelease=function(){this.dragging=!1,this.renderer.addClass(this.hostElement.nativeElement,"k-slider-transitions")},t.prototype.writeValue=function(e){this.changeDetector.markForCheck(),this.value=e,this.sizeComponent(this.animate)},t.prototype.registerOnChange=function(e){this.ngChange=e},t.prototype.registerOnTouched=function(e){this.ngTouched=e},t.prototype.changeValue=function(e){var t=this;d.areSame(this.value,e)||this.ngZone.run((function(){t.value=e,t.ngChange(e),t.valueChange.emit(e),t.sizeComponent(t.animate),t.changeDetector.markForCheck()}))},t.prototype.sizeComponent=function(e){if(f.isDocumentAvailable()){var t=this.wrapper.nativeElement,n=this.track.nativeElement,i=this.sliderSelection.nativeElement,r=this.draghandle.nativeElement,o=this.ticks?this.ticksContainer.nativeElement:null;e||this.renderer.removeClass(this.hostElement.nativeElement,"k-slider-transitions"),this.resetStyles([n,i,r,o,this.hostElement.nativeElement]);var a=this.getProps(),s=new c.SliderModel(a,t,n,this.renderer);s.resizeTrack(),this.ticks&&s.resizeTicks(this.ticksContainer.nativeElement,this.ticks.tickElements.map((function(e){return e.nativeElement}))),s.positionHandle(r),s.positionSelection(i),e||(this.hostElement.nativeElement.getBoundingClientRect(),this.renderer.addClass(this.hostElement.nativeElement,"k-slider-transitions")),this.fixedTickWidth&&s.resizeWrapper()}},Object.defineProperty(t.prototype,"focused",{set:function(e){this.isFocused!==e&&this.hostElement&&(this.isFocused=e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dragging",{set:function(e){if(this.isDragged!==e&&this.sliderSelection&&this.draghandle){var t=this.sliderSelection.nativeElement,n=this.draghandle.nativeElement;e?(this.renderer.addClass(t,"k-pressed"),this.renderer.addClass(n,"k-pressed")):(this.renderer.removeClass(t,"k-pressed"),this.renderer.removeClass(n,"k-pressed")),this.isDragged=e}},enumerable:!0,configurable:!0}),t.prototype.setValueChangeInterval=function(e,t){var n=this;this.ngZone.runOutsideAngular((function(){var i=a.fromEvent(e,"mousedown"),r=a.fromEvent(e,"mouseup"),o=a.fromEvent(e,"mouseout"),u=i.pipe(s.filter((function(e){return 0===e.button&&!n.isDisabled})),s.concatMap((function(){return a.interval(150).pipe(s.startWith(-1),s.takeUntil(a.merge(r,o)))}))).subscribe((function(){n.isFocused||h.invokeElementMethod(n.draghandle,"focus"),t()}));n.subscriptions.add(u)}))},t.prototype.getProps=function(){return{buttons:this.showButtons,disabled:this.disabled,fixedTickWidth:this.fixedTickWidth,largeStep:this.largeStep,max:this.max,min:this.min,readonly:this.readonly,reverse:this.reverse,rtl:this.localizationService.rtl,smallStep:this.smallStep,value:u.trimValue(this.max,this.min,this.value),vertical:this.vertical}},t.prototype.attachElementEventHandlers=function(){var e=this,t=this.hostElement.nativeElement,n=!1,i=!1;this.ngZone.runOutsideAngular((function(){e.subscriptions.add(e.renderer.listen(t,"focusin",(function(){e.isFocused||e.ngZone.run((function(){e.focusChangedProgrammatically||e.onFocus.emit(),e.focused=!0}))}))),e.subscriptions.add(e.renderer.listen(t,"focusout",(function(t){e.isFocused&&(n?(t.relatedTarget!==e.draghandle.nativeElement&&e.handleBlur(),n=!1):i||e.handleBlur())}))),e.subscriptions.add(e.renderer.listen(t,"mouseenter",(function(){i=!0}))),e.subscriptions.add(e.renderer.listen(t,"mouseleave",(function(){i=!1}))),e.subscriptions.add(e.renderer.listen(t,"keydown",(function(e){n=e.keyCode===f.Keys.Tab})))}))},i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"focusableId",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"dragHandleTitle",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"incrementTitle",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],t.prototype,"animate",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"decrementTitle",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],t.prototype,"showButtons",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],t.prototype,"value",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],t.prototype,"tabIndex",null),i.__decorate([r.ViewChild("draghandle",{static:!0}),i.__metadata("design:type",r.ElementRef)],t.prototype,"draghandle",void 0),i.__decorate([r.ViewChild("decreaseButton",{static:!1}),i.__metadata("design:type",r.ElementRef)],t.prototype,"decreaseButton",void 0),i.__decorate([r.ViewChild("increaseButton",{static:!1}),i.__metadata("design:type",r.ElementRef)],t.prototype,"increaseButton",void 0),t=n=i.__decorate([r.Component({exportAs:"kendoSlider",providers:[l.LocalizationService,{provide:l.L10N_PREFIX,useValue:"kendo.slider"},{multi:!0,provide:o.NG_VALUE_ACCESSOR,useExisting:r.forwardRef((function(){return n}))},{provide:f.KendoInput,useExisting:r.forwardRef((function(){return n}))}],selector:"kendo-slider",template:'\n <ng-container kendoSliderLocalizedMessages\n i18n-increment="kendo.slider.increment|The title of the **Increase** button of the Slider."\n increment="increment"\n i18n-decrement="kendo.slider.decrement|The title of the **Decrease** button of the Slider."\n decrement="decrement"\n i18n-dragHandle="kendo.slider.dragHandle|The title of the drag handle of the Slider."\n dragHandle="Drag"\n >\n <div class="k-slider-wrap" #wrap\n [class.k-slider-buttons]="showButtons"\n [class.k-slider-topleft]="tickPlacement === \'before\'"\n [class.k-slider-bottomright]="tickPlacement === \'after\'"\n [kendoEventsOutsideAngular]="{ click: onWrapClick, keydown: onKeyDown }"\n >\n <button *ngIf="showButtons" type="button" #decreaseButton\n class="k-button-decrease k-button k-button-md k-rounded-full k-button-rectangle k-button-solid k-button-solid-base k-icon-button"\n [title]="decrementMessage"\n [attr.tabindex]="-1"\n role="presentation">\n <span class="k-button-icon k-icon"\n [class.k-i-arrow-w]="!vertical"\n [class.k-i-arrow-s]="vertical">\n </span>\n </button>\n <div class="k-slider-track-wrap">\n <ul kendoSliderTicks\n #ticks\n *ngIf="tickPlacement !== \'none\'"\n [tickTitle]="title"\n [vertical]="vertical"\n [step]="smallStep"\n [largeStep]="largeStep"\n [min]="min"\n [max]="max"\n [labelTemplate]="labelTemplate?.templateRef"\n [attr.aria-hidden]="true"\n >\n </ul>\n <div #track class="k-slider-track">\n <div #sliderSelection class="k-slider-selection">\n </div>\n <a #draghandle\n role="slider"\n [attr.aria-valuemin]="min"\n [attr.aria-valuemax]="max"\n [attr.aria-valuenow]="currentValue"\n [attr.aria-valuetext]="currentValue"\n [attr.aria-disabled]="disabled ? true : undefined"\n [attr.aria-readonly]="readonly ? true : undefined"\n [attr.aria-orientation]="vertical ? \'vertical\' : \'horizontal\'"\n [style.touch-action]="isDisabled ? \'\' : \'none\'"\n class="k-draghandle"\n [title]="dragHandleMessage"\n [attr.tabindex]="disabled ? \'-1\' : tabIndex"\n [id]="focusableId"\n kendoDraggable\n (kendoPress)="ifEnabled(handleDragPress, $event)"\n (kendoDrag)="ifEnabled(onHandleDrag, $event)"\n (kendoRelease)="ifEnabled(onHandleRelease, $event)"\n ></a>\n </div>\n </div>\n <button *ngIf="showButtons" type="button" #increaseButton\n class="k-button-increase k-button k-button-md k-rounded-full k-button-rectangle k-button-solid k-button-solid-base k-icon-button"\n [title]="incrementMessage"\n (click)="$event.preventDefault()"\n [attr.tabindex]="-1"\n [attr.aria-label]="currentValue"\n role="presentation">\n <span class="k-button-icon k-icon"\n [class.k-i-arrow-e]="!vertical"\n [class.k-i-arrow-n]="vertical">\n </span>\n </button>\n <kendo-resize-sensor (resize)="sizeComponent(false)"></kendo-resize-sensor>\n </div>\n '}),i.__metadata("design:paramtypes",[l.LocalizationService,r.Injector,r.Renderer2,r.NgZone,r.ChangeDetectorRef,r.ElementRef])],t)}(m.SliderBase);t.SliderComponent=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.limitPrecision=function(e){return Math.min(e,20)},t.fractionLength=function(e){return(String(e).split(".")[1]||"").length};var i=function(e,n){return Math.max(t.fractionLength(e),t.fractionLength(n))};t.toFixedPrecision=function(e,n){var i=t.limitPrecision(n);return parseFloat(e.toFixed(i))},t.add=function(e,n){var r=i(e,n);return t.toFixedPrecision(e+n,r)},t.subtract=function(e,n){return t.add(e,-n)},t.multiply=function(e,n){var i=t.fractionLength(e)+t.fractionLength(n);return t.toFixedPrecision(e*n,i)},t.divide=function(e,t){if(0===t)return NaN;var n=i(e,t),r=Math.pow(10,n);return r*e/(r*t)},t.remainder=function(e,n){return Math.abs(t.subtract(e,t.multiply(n,Math.floor(t.divide(e,n)))))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(3),a=n(4),s=n(11),u=n(18),c=n(84),l=n(85),d=n(5),p=n(86),h=n(2),f=n(8),m=n(9),v=n(39),g=n(87),y=n(88),_=n(32),b=["min","max","step","decimals"],C={decimals:null,max:null,min:null,step:1},k=function(){function e(e,t,n,i,s,u,c){var l=this;this.intl=e,this.renderer=t,this.localizationService=n,this.injector=i,this.ngZone=s,this.changeDetector=u,this.hostElement=c,this.focusableId="k-"+o.guid(),this.disabled=!1,this.readonly=!1,this.title="",this.autoCorrect=!1,this.decimals=null,this.step=1,this.spinners=!0,this.rangeValidation=!0,this.tabindex=0,this.changeValueOnScroll=!0,this.selectOnFocus=!0,this.value=null,this.valueChange=new r.EventEmitter,this.onFocus=new r.EventEmitter,this.onBlur=new r.EventEmitter,this.ArrowDirection=y.ArrowDirection,this.arrowDirection=y.ArrowDirection.None,this.hostClasses=!0,this.inputValue="",this.minValidateFn=g.noop,this.maxValidateFn=g.noop,this._format="n2",this.isPasted=!1,this.mouseDown=!1,this._size="medium",this._rounded="medium",this._fillMode="solid",this.ngChange=g.noop,this.ngTouched=g.noop,this.ngValidatorChange=g.noop,this.domEvents=[],this.increasePress=function(e){l.arrowPress(y.ArrowDirection.Up,e)},this.decreasePress=function(e){l.arrowPress(y.ArrowDirection.Down,e)},this.releaseArrow=function(){clearTimeout(l.spinTimeout),l.arrowDirection!==y.ArrowDirection.None&&(l.arrowDirection=y.ArrowDirection.None,l.changeDetector.detectChanges())},this.handlePaste=function(){l.isPasted=!0},this.handleInput=function(){var e=l.numericInput.nativeElement,t=e.selectionStart,n=e.selectionEnd,i=e.value;if(l.pressedKey===o.Keys.NumpadDecimal&&(i=l.replaceNumpadDotValue()),l.isPasted&&(i=l.formatInputValue(l.intl.parseNumber(i))),!l.isValid(i))return e.value=l.inputValue,void l.setSelection(t-1,n-1);var r=l.intl.parseNumber(i),a=l.restrictDecimals(r);if(l.autoCorrect){var s=l.limitInputValue(a);a=s.value,t=s.selectionStart,n=s.selectionEnd}r!==a||l.hasTrailingZeros(i)||!l.focused?(l.setInputValue(a),l.setSelection(t,n)):l.inputValue=i,l.isPasted&&(e.value=l.inputValue),l.updateValue(a),l.previousSelection=null,l.isPasted=!1},this.handleDragEnter=function(){l.focused||l.isDisabled||l.setInputValue(l.value,!0)},this.handleMouseDown=function(){l.mouseDown=!0},this.handleFocus=function(){if(!l.focused&&(l.focused=!0,!l.isDisabled)){var e=l.selectOnFocus||!l.mouseDown;l.ngZone.runOutsideAngular((function(){setTimeout((function(){e?l.selectAll():l.selectCaret()}),0)}))}l.mouseDown=!1,o.hasObservers(l.onFocus)&&l.ngZone.run((function(){l.onFocus.emit()}))},this.handleBlur=function(){l.changeDetector.markForCheck(),l.focused=!1,l.inputValue!==l.elementValue&&l.handleInput(),l.setInputValue(),(o.hasObservers(l.onBlur)||a.requiresZoneOnBlur(l.control))&&l.ngZone.run((function(){l.ngTouched(),l.onBlur.emit()}))},this.handleKeyDown=function(e){if(!l.isDisabled){var t;e.keyCode===o.Keys.ArrowDown?t=-1:e.keyCode===o.Keys.ArrowUp&&(t=1),t&&l.step&&(e.preventDefault(),l.addStep(t));var n=l.numericInput.nativeElement;l.previousSelection={end:n.selectionEnd,start:n.selectionStart},l.pressedKey=e.keyCode}},this.handleWheel=function(e){if(l.focused&&!l.isDisabled&&l.changeValueOnScroll){e.preventDefault();var t=g.getDeltaFromMouseWheel(e);l.addStep(t)}},f.validatePackage(m.packageMetadata),this.direction=n.rtl?"rtl":"ltr"}var t;return t=e,Object.defineProperty(e.prototype,"format",{get:function(){var e=this._format;return null!=e?e:"n2"},set:function(e){this._format=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(e){this.handleClasses(e,"size"),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.handleClasses(e,"rounded"),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.handleClasses(e,"fillMode"),this._fillMode=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disableClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.subscriptions=this.localizationService.changes.subscribe((function(t){var n=t.rtl;e.direction=n?"rtl":"ltr"})),this.subscriptions.add(this.intl.changes.subscribe(this.intlChange.bind(this))),this.hostElement&&this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.control=this.injector.get(d.NgControl,null),this.ngZone.runOutsideAngular((function(){e.domEvents.push(e.renderer.listen(e.hostElement.nativeElement,"mousewheel",e.handleWheel.bind(e))),e.domEvents.push(e.renderer.listen(e.hostElement.nativeElement,"DOMMouseScroll",e.handleWheel.bind(e)))}))},e.prototype.ngAfterViewInit=function(){var e=this;["size","rounded","fillMode"].forEach((function(t){e.handleClasses(e[t],t)}))},e.prototype.ngOnChanges=function(e){o.anyChanged(b,e,!1)&&this.parseOptions(b.filter((function(t){return e[t]}))),this.verifySettings(),o.anyChanged(["min","max","rangeValidation"],e,!1)&&(this.minValidateFn=this.rangeValidation?l.createMinValidator(this.min):g.noop,this.maxValidateFn=this.rangeValidation?c.createMaxValidator(this.max):g.noop,this.ngValidatorChange()),o.anyChanged(["autoCorrect","decimals","min"],e)&&delete this.numericRegex,o.anyChanged(["value","format"],e,!1)&&(this.verifyValue(this.value),this.value=this.restrictModelValue(this.value),this.focused&&this.intl.parseNumber(this.elementValue)===this.value||this.setInputValue())},e.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe(),clearTimeout(this.spinTimeout),this.domEvents.forEach((function(e){return e()}))},e.prototype.validate=function(e){return this.minValidateFn(e)||this.maxValidateFn(e)},e.prototype.registerOnValidatorChange=function(e){this.ngValidatorChange=e},e.prototype.writeValue=function(e){this.verifyValue(e);var t=this.restrictModelValue(e);this.value=t,this.setInputValue()},e.prototype.registerOnChange=function(e){this.ngChange=e},e.prototype.registerOnTouched=function(e){this.ngTouched=e},e.prototype.setDisabledState=function(e){this.changeDetector.markForCheck(),this.disabled=e},e.prototype.focus=function(){s.invokeElementMethod(this.numericInput,"focus")},e.prototype.blur=function(){s.invokeElementMethod(this.numericInput,"blur")},e.prototype.notifyValueChange=function(){this.setInputValue()},Object.defineProperty(e.prototype,"incrementTitle",{get:function(){return this.localizationService.get("increment")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"decrementTitle",{get:function(){return this.localizationService.get("decrement")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"decimalSeparator",{get:function(){return this.intl.numberSymbols().decimal},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"elementValue",{get:function(){return this.numericInput.nativeElement.value},set:function(e){this.renderer.setProperty(this.numericInput.nativeElement,"value",e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"focused",{get:function(){return this.isFocused},set:function(e){if(this.isFocused!==e&&this.hostElement){var t=this.hostElement.nativeElement;e?this.renderer.addClass(t,"k-focus"):this.renderer.removeClass(t,"k-focus"),this.isFocused=e}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasDecimals",{get:function(){return null!==this.decimals&&this.decimals>=0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isDisabled",{get:function(){return this.disabled||this.readonly},enumerable:!0,configurable:!0}),e.prototype.arrowPress=function(e,t){t.preventDefault(),this.isDisabled||g.isRightClick(t)||(_.mobileOS||(this.focused=!0,this.focus()),this.arrowDirection!==e&&(this.arrowDirection=e,this.changeDetector.detectChanges()),this.step?this.spin(e,v.INITIAL_SPIN_DELAY):this.setInputValue())},e.prototype.updateValue=function(e){var t=this;a.areSame(this.value,e)||this.ngZone.run((function(){t.value=e,t.ngChange(e),t.valueChange.emit(e),t.changeDetector.markForCheck()}))},e.prototype.replaceNumpadDotValue=function(){var e=this.inputValue||"";if(this.previousSelection){var t=this.numericInput.nativeElement,n=t.selectionStart,i=t.selectionEnd,r=this.previousSelection,o=r.start,a=r.end;t.value=e=e.substring(0,o)+this.decimalSeparator+e.substring(a),this.setSelection(n,i)}return e},e.prototype.isValid=function(e){return this.numericRegex||(this.numericRegex=g.numericRegex({autoCorrect:this.autoCorrect,decimals:this.decimals,min:this.min,separator:this.decimalSeparator})),this.numericRegex.test(e)},e.prototype.spin=function(e,t){var n=this;clearTimeout(this.spinTimeout),this.spinTimeout=window.setTimeout((function(){n.spin(e,v.SPIN_DELAY)}),t),this.addStep(e)},e.prototype.addStep=function(e){var t=u.add(this.value||0,this.step*e);t=this.limitValue(t),t=this.restrictDecimals(t),this.setInputValue(t),this.updateValue(t)},e.prototype.setSelection=function(e,t){this.focused&&s.invokeElementMethod(this.numericInput,"setSelectionRange",e,t)},e.prototype.limitValue=function(e){var t=e;return this.isInRange(e)||(g.isNumber(this.max)&&e>this.max&&(t=this.max),g.isNumber(this.min)&&e<this.min&&(t=this.min)),t},e.prototype.limitInputValue=function(e){var t=this.numericInput.nativeElement,n=t.selectionStart,i=t.selectionEnd,r=t.value,o=e,a=!1;if(!this.isInRange(e)){var s=r.length-String(this.inputValue).length,u=this.min,c=this.max,l=g.isNumber(c),d=g.isNumber(u),p=void 0,h=void 0,f=e;if(0===n&&this.inputValue.substr(1)===r)return{selectionEnd:i,selectionStart:n,value:null};if(l&&e>c?e>0?h=!0:p=c:d&&e<u&&(e>0?p=u:h=!0),p){var m=this.tryPadValue(e,p);m&&g.decimalPart(e)!==g.decimalPart(p)&&(f=m,a=!0)}else h&&this.inputValue&&n!==r.length&&(f=parseFloat(r.substr(0,n)+r.substr(n+s)));o=this.limitValue(f),a=(a||o!==f)&&this.previousSelection&&this.previousSelection.end-this.previousSelection.start+s>0}return{selectionEnd:a?String(o).length:i,selectionStart:n,value:o}},e.prototype.tryPadValue=function(e,t){var n,i=String(Math.floor(t)).length,r=g.pad(e,i),o=g.pad(e,i+1);return this.isInRange(r)?n=r:this.isInRange(o)&&(n=o),n},e.prototype.isInRange=function(e){return!g.isNumber(e)||(!g.isNumber(this.min)||this.min<=e)&&(!g.isNumber(this.max)||e<=this.max)},e.prototype.restrictModelValue=function(e){var t=this.restrictDecimals(e,!0);return this.autoCorrect&&this.limitValue(t)!==t&&(t=null),t},e.prototype.restrictDecimals=function(e,t){var n=e;if(e&&this.hasDecimals){var i=this.decimals,r=String(e);if(t||v.EXPONENT_REGEX.test(r))n=u.toFixedPrecision(e,i);else{var o=r.split(v.POINT),a=o[1];a&&a.length>i&&(a=a.substr(0,i),n=parseFloat(""+o[0]+v.POINT+a))}}return n},e.prototype.formatInputValue=function(e){var t=String(e),n=v.EXPONENT_REGEX.exec(t);return n&&(t=e.toFixed(u.limitPrecision(parseInt(n[1],10)))),t.replace(v.POINT,this.decimalSeparator)},e.prototype.formatValue=function(e,t){return null!==e&&g.defined(e)&&""!==e?t&&!this.readonly?this.formatInputValue(e):this.intl.formatNumber(e,this.format):""},e.prototype.setInputValue=function(e,t){void 0===e&&(e=this.value),void 0===t&&(t=this.focused);var n=this.formatValue(e,t);this.elementValue=n,this.inputValue=n},e.prototype.verifySettings=function(){if(r.isDevMode()&&null!==this.min&&null!==this.max&&this.min>this.max)throw new Error("The max value should be bigger than the min. See "+v.MIN_DOC_LINK+" and "+v.MAX_DOC_LINK+".")},e.prototype.verifyValue=function(e){if(r.isDevMode()&&e&&"number"!=typeof e)throw new Error("The NumericTextBox component requires value of type Number and "+JSON.stringify(e)+" was set.")},e.prototype.parseOptions=function(e){for(var t=0;t<e.length;t++){var n=e[t],i=this[n];if("string"==typeof i){var o=parseFloat(i),a=!isNaN(o);if(r.isDevMode()&&!a&&""!==i)throw new Error("The NumericTextBox component requires value of type Number or a String representing a number for the "+n+" property and "+JSON.stringify(i)+" was set.");this[n]=a?o:C[n]}}},e.prototype.intlChange=function(){delete this.numericRegex,!this.numericInput||this.focused&&this.isValid(this.elementValue)||this.setInputValue()},e.prototype.hasTrailingZeros=function(e){if(this.hasDecimals&&this.focused){var t=e.split(this.decimalSeparator)[1];return t&&t.length>this.decimals&&t.lastIndexOf("0")===t.length-1}},e.prototype.selectAll=function(){this.setInputValue(),this.setSelection(0,this.inputValue.length)},e.prototype.selectCaret=function(){var e=g.getCaretPosition(this.numericInput.nativeElement),t=this.elementValue,n=t.substring(0,e);if(this.setInputValue(),n.length){var i=g.extractSignificantNumericChars(n,this.decimalSeparator),r=this.adjustSignificantChars(t,i);this.setSelection(r,r)}else this.setSelection(0,0)},e.prototype.numberOfLeadingZeroes=function(e){var t=e.indexOf(this.decimalSeparator),n=e.match(/^[^1-9]*?(0+)/);if(n){var i=n[0].length,r=n[1].length;return i===t?r-1:r}return 0},e.prototype.adjustSignificantChars=function(e,t){var n=this.numberOfLeadingZeroes(e);return n>0?Math.max(0,t-n):t},e.prototype.handleClasses=function(e,t){var n=this.hostElement.nativeElement,i=a.getStylingClasses("input",t,this[t],e);i.toRemove&&this.renderer.removeClass(n,i.toRemove),i.toAdd&&this.renderer.addClass(n,i.toAdd)},i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"focusableId",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"readonly",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"title",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"autoCorrect",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"format",null),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"max",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"min",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"decimals",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"placeholder",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"step",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"spinners",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"rangeValidation",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"tabindex",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],e.prototype,"tabIndex",null),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"changeValueOnScroll",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"selectOnFocus",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"value",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"maxlength",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"size",null),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"rounded",null),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"fillMode",null),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"valueChange",void 0),i.__decorate([r.Output("focus"),i.__metadata("design:type",r.EventEmitter)],e.prototype,"onFocus",void 0),i.__decorate([r.Output("blur"),i.__metadata("design:type",r.EventEmitter)],e.prototype,"onBlur",void 0),i.__decorate([r.ViewChild("numericInput",{static:!0}),i.__metadata("design:type",r.ElementRef)],e.prototype,"numericInput",void 0),i.__decorate([r.HostBinding("attr.dir"),i.__metadata("design:type",String)],e.prototype,"direction",void 0),i.__decorate([r.HostBinding("class.k-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"disableClass",null),i.__decorate([r.HostBinding("class.k-input"),r.HostBinding("class.k-numerictextbox"),i.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),e=t=i.__decorate([r.Component({exportAs:"kendoNumericTextBox",providers:[h.LocalizationService,{provide:h.L10N_PREFIX,useValue:"kendo.numerictextbox"},{provide:d.NG_VALUE_ACCESSOR,useExisting:r.forwardRef((function(){return t})),multi:!0},{provide:d.NG_VALIDATORS,useExisting:r.forwardRef((function(){return t})),multi:!0},{provide:o.KendoInput,useExisting:r.forwardRef((function(){return t}))}],selector:"kendo-numerictextbox",template:'\n <ng-container kendoNumericTextBoxLocalizedMessages\n i18n-increment="kendo.numerictextbox.increment|The title for the **Increment** button in the NumericTextBox"\n increment="Increase value"\n i18n-decrement="kendo.numerictextbox.decrement|The title for the **Decrement** button in the NumericTextBox"\n decrement="Decrease value"\n >\n </ng-container>\n <input\n role="spinbutton"\n class="k-input-inner"\n autocomplete="off"\n autocorrect="off"\n [id]="focusableId"\n [attr.aria-valuemin]="min"\n [attr.aria-valuemax]="max"\n [attr.aria-valuenow]="value"\n [attr.title]="title"\n [attr.placeholder]="placeholder"\n [attr.maxLength]="maxlength"\n [tabindex]="tabIndex"\n [disabled]="disabled"\n [readonly]="readonly"\n [kendoEventsOutsideAngular]="{\n mousedown: handleMouseDown,\n dragenter: handleDragEnter,\n keydown: handleKeyDown,\n input: handleInput,\n focus: handleFocus,\n blur: handleBlur,\n paste: handlePaste\n }"\n #numericInput />\n <span\n class="k-input-spinner k-spin-button" *ngIf="spinners"\n [kendoEventsOutsideAngular]="{ mouseup: releaseArrow, mouseleave: releaseArrow }"\n >\n <button\n type="button"\n [kendoEventsOutsideAngular]="{ mousedown: increasePress }"\n [attr.aria-hidden]="true"\n [attr.aria-label]="incrementTitle"\n [title]="incrementTitle"\n [class.k-active]="arrowDirection === ArrowDirection.Up"\n class="k-spinner-increase k-button k-icon-button k-button-solid k-button-solid-base"\n tabindex="-1"\n >\n <span class="k-button-icon k-icon k-i-arrow-n"></span>\n </button>\n <button\n type="button"\n [kendoEventsOutsideAngular]="{ mousedown: decreasePress }"\n [attr.aria-hidden]="true"\n [attr.aria-label]="decrementTitle"\n [title]="decrementTitle"\n [class.k-active]="arrowDirection === ArrowDirection.Down"\n class="k-spinner-decrease k-button k-icon-button k-button-solid k-button-solid-base"\n tabindex="-1"\n >\n <span class="k-button-icon k-icon k-i-arrow-s"></span>\n </button>\n </span>\n '}),i.__metadata("design:paramtypes",[p.IntlService,r.Renderer2,h.LocalizationService,r.Injector,r.NgZone,r.ChangeDetectorRef,r.ElementRef])],e)}();t.NumericTextBoxComponent=k},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(6),a=n(17),s=n(45),u=n(47),c=n(93),l=n(15),d=function(){function e(){}return e=i.__decorate([r.NgModule({declarations:[a.SliderComponent,c.SliderCustomMessagesComponent,u.LocalizedSliderMessagesDirective],exports:[a.SliderComponent,c.SliderCustomMessagesComponent,l.LabelTemplateDirective,u.LocalizedSliderMessagesDirective],imports:[o.CommonModule,s.SlidersCommonModule]})],e)}();t.SliderModule=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(19),a=n(6),s=n(55),u=n(40),c=n(3),l=function(){function e(){}return e=i.__decorate([r.NgModule({declarations:[s.LocalizedNumericTextBoxMessagesDirective,o.NumericTextBoxComponent,u.NumericTextBoxCustomMessagesComponent],exports:[o.NumericTextBoxComponent,u.NumericTextBoxCustomMessagesComponent],imports:[a.CommonModule,c.EventsModule]})],e)}();t.NumericTextBoxModule=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=function(){function e(e){this.templateRef=e}return e=i.__decorate([r.Directive({selector:"[kendoTextBoxSuffixTemplate]"}),i.__param(0,r.Optional()),i.__metadata("design:paramtypes",[r.TemplateRef])],e)}();t.TextBoxSuffixTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=function(){function e(e){this.templateRef=e}return e=i.__decorate([r.Directive({selector:"[kendoTextBoxPrefixTemplate]"}),i.__param(0,r.Optional()),i.__metadata("design:paramtypes",[r.TemplateRef])],e)}();t.TextBoxPrefixTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(62),a=n(38);t.SHARED_DIRECTIVES=[o.InputSeparatorComponent,a.TextAreaDirective];var s=function(){function e(){}return e=i.__decorate([r.NgModule({declarations:[t.SHARED_DIRECTIVES],exports:[t.SHARED_DIRECTIVES]})],e)}();t.SharedModule=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(5),a=n(7),s=n(2),u=n(3),c=n(8),l=n(26),d=n(98),p=n(9),h=n(16),f=n(13),m=n(4),v=n(28),g=n(29),y=n(71),_=n(72),b=function(){function e(e,t,n,i,o,s){var u=this;this.host=e,this.service=t,this.localizationService=n,this.cdr=i,this.renderer=o,this.ngZone=s,this.hostClasses=!0,this.readonly=!1,this.disabled=!1,this.format="rgba",this.clearButton=!0,this.preview=!0,this.actionsLayout="end",this.views=["gradient","palette"],this.valueChange=new r.EventEmitter,this.cancel=new r.EventEmitter,this.activeViewChange=new r.EventEmitter,this.actionButtonClick=new r.EventEmitter,this._tabindex=0,this._gradientSettings={opacity:!0,delay:0},this._paletteSettings={},this.subscriptions=new a.Subscription,this.notifyNgChanged=function(){},this.notifyNgTouched=function(){},c.validatePackage(p.packageMetadata),this.dynamicRTLSubscription=this.localizationService.changes.subscribe((function(e){var t=e.rtl;u.direction=t?"rtl":"ltr"}))}var t;return t=e,Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaReadonly",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostTabindex",{get:function(){return this.tabindex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=f.parseColor(e,this.format,this.gradientSettings.opacity)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabindex",{get:function(){return this.disabled?void 0:this._tabindex},set:function(e){var t=Number(e);this._tabindex=isNaN(t)?0:t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gradientSettings",{get:function(){return this._gradientSettings},set:function(e){Object.assign(this._gradientSettings,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paletteSettings",{get:function(){return this._paletteSettings},set:function(e){Object.assign(this._paletteSettings,e)},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.selection=this.value,this._paletteSettings=this.service.getPaletteSettings(this._paletteSettings,this.format),this.setActiveView()},e.prototype.ngAfterViewInit=function(){this.setHostElementAriaLabel(),this.initDomEvents(),this.setSizingVariables()},e.prototype.ngOnChanges=function(e){u.isChanged("value",e)&&(this.selection=this.value,this.setHostElementAriaLabel()),u.isChanged("paletteSettings",e)&&this.setSizingVariables()},e.prototype.ngOnDestroy=function(){this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe(),this.subscriptions.unsubscribe()},Object.defineProperty(e.prototype,"headerHasContent",{get:function(){return this.preview||this.views.length>1||this.clearButton},enumerable:!0,configurable:!0}),e.prototype.isEmpty=function(){return!1},e.prototype.focus=function(){this.disabled&&this.focused||(this.host.nativeElement.focus(),this.focused=!0)},e.prototype.blur=function(){this.focused&&(this.notifyNgTouched(),this.host.nativeElement.blur(),this.focused=!1)},e.prototype.reset=function(){m.isPresent(this.value)&&(this.value=void 0,this.notifyNgChanged(void 0),this.setHostElementAriaLabel())},e.prototype.onViewChange=function(e){var t=this;this.activeView!==e&&(this.activeView=e,this.activeViewChange.emit(e),"gradient"===this.activeView&&this.ngZone.runOutsideAngular((function(){setTimeout((function(){t.gradient.gradientDragHandle.nativeElement.focus()}))})))},e.prototype.onClearButtonClick=function(){this.resetInnerComponentValue(),this.host.nativeElement.focus()},e.prototype.handleValueChange=function(e){this.preview?this.changeCurrentValue(e):this.setFlatColorPickerValue(e)},e.prototype.onAction=function(e){"apply"===e.target?this.setFlatColorPickerValue(this.selection):this.resetSelection(e.originalEvent),this.actionButtonClick.emit()},e.prototype.writeValue=function(e){this.value=e},e.prototype.registerOnChange=function(e){this.notifyNgChanged=e},e.prototype.registerOnTouched=function(e){this.notifyNgTouched=e},e.prototype.setDisabledState=function(e){this.cdr.markForCheck(),this.disabled=e},e.prototype.resetSelection=function(e){var t=new h.ColorPickerCancelEvent(e);this.cancel.emit(t),t.isDefaultPrevented()||(this.selection=this.value),this.notifyNgTouched()},e.prototype.setHostElementAriaLabel=function(){var e=f.parseColor(this.value,this.format,this.gradientSettings.opacity),t=""+(this.value?e:this.localizationService.get("flatColorPickerNoColor"));this.renderer.setAttribute(this.host.nativeElement,"aria-label",t)},e.prototype.setSizingVariables=function(){var e=this.service.paletteTileLayout(this.paletteSettings.tileSize),t="--kendo-color-preview-columns: "+this.paletteSettings.columns+";\n --kendo-color-preview-width: "+e.width+"px;\n --kendo-color-preview-height: "+e.height+"px;";this.host.nativeElement.querySelector(".k-coloreditor-views.k-vstack").setAttribute("style",t)},e.prototype.changeCurrentValue=function(e){this.selection=e,this.notifyNgTouched()},e.prototype.resetInnerComponentValue=function(){this.selection=null,this.gradient?this.gradient.reset():this.palette.reset()},e.prototype.setFlatColorPickerValue=function(e){this.value!==e&&(this.value=e,this.valueChange.emit(e),this.notifyNgChanged(e),this.setHostElementAriaLabel())},e.prototype.setActiveView=function(){if(m.isPresent(this.activeView)){if(r.isDevMode()&&-1===this.views.indexOf(this.activeView))throw new Error("Invalid configuration: The current activeView is not present in the views collection")}else this.activeView=this.views[0]},e.prototype.initDomEvents=function(){var e=this;if(this.host){var t=this.host.nativeElement;this.ngZone.runOutsideAngular((function(){e.subscriptions.add(e.renderer.listen(t,"focus",(function(){e.focused=!0}))),e.subscriptions.add(e.renderer.listen(t,"blur",(function(){e.focused=!1,e.notifyNgTouched()})))}))}},i.__decorate([r.HostBinding("class.k-flatcolorpicker"),r.HostBinding("class.k-coloreditor"),i.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),i.__decorate([r.HostBinding("class.k-state-disabled"),r.HostBinding("attr.aria-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"disabledClass",null),i.__decorate([r.HostBinding("attr.aria-readonly"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"ariaReadonly",null),i.__decorate([r.HostBinding("attr.dir"),i.__metadata("design:type",String)],e.prototype,"direction",void 0),i.__decorate([r.HostBinding("attr.tabindex"),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[])],e.prototype,"hostTabindex",null),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"readonly",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"format",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"value",null),i.__decorate([r.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],e.prototype,"tabindex",null),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"clearButton",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"preview",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"actionsLayout",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"activeView",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Array)],e.prototype,"views",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"gradientSettings",null),i.__decorate([r.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"paletteSettings",null),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"valueChange",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"cancel",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"activeViewChange",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"actionButtonClick",void 0),i.__decorate([r.ViewChild("header",{static:!1}),i.__metadata("design:type",y.FlatColorPickerHeaderComponent)],e.prototype,"header",void 0),i.__decorate([r.ViewChild("gradient",{static:!1}),i.__metadata("design:type",v.ColorGradientComponent)],e.prototype,"gradient",void 0),i.__decorate([r.ViewChild("palette",{static:!1}),i.__metadata("design:type",g.ColorPaletteComponent)],e.prototype,"palette",void 0),i.__decorate([r.ViewChild("footer",{static:!1}),i.__metadata("design:type",_.FlatColorPickerActionButtonsComponent)],e.prototype,"footer",void 0),e=t=i.__decorate([r.Component({exportAs:"kendoFlatColorPicker",selector:"kendo-flatcolorpicker",providers:[{multi:!0,provide:o.NG_VALUE_ACCESSOR,useExisting:r.forwardRef((function(){return t}))},{provide:u.KendoInput,useExisting:r.forwardRef((function(){return t}))},d.FlatColorPickerService,l.FlatColorPickerLocalizationService,{provide:s.LocalizationService,useExisting:l.FlatColorPickerLocalizationService},{provide:s.L10N_PREFIX,useValue:"kendo.flatcolorpicker"}],template:'\n <ng-container kendoFlatColorPickerLocalizedMessages\n i18n-flatColorPickerNoColor="kendo.flatcolorpicker.flatColorPickerNoColor|The aria-label applied to the FlatColorPicker component when the value is empty."\n flatColorPickerNoColor="Flatcolorpicker no color chosen"\n i18n-colorGradientNoColor="kendo.flatcolorpicker.colorGradientNoColor|The aria-label applied to the ColorGradient component when the value is empty."\n colorGradientNoColor="Colorgradient no color chosen"\n i18n-colorPaletteNoColor="kendo.flatcolorpicker.colorPaletteNoColor|The aria-label applied to the ColorPalette component when the value is empty."\n colorPaletteNoColor="Colorpalette no color chosen"\n i18n-colorGradientHandle="kendo.flatcolorpicker.colorGradientHandle|The title for the gradient color drag handle chooser."\n colorGradientHandle="Choose color"\n i18n-clearButton="kendo.flatcolorpicker.clearButton|The title for the clear button."\n clearButton="Clear value"\n i18n-hueSliderHandle="kendo.flatcolorpicker.hueSliderHandle|The title for the hue slider handle."\n hueSliderHandle="Set hue"\n i18n-opacitySliderHandle="kendo.flatcolorpicker.opacitySliderHandle|The title for the opacity slider handle."\n opacitySliderHandle="Set opacity"\n i18n-contrastRatio="kendo.flatcolorpicker.contrastRatio|The contrast ratio message for the contrast tool."\n contrastRatio="Contrast ratio"\n i18n-previewColor="kendo.flatcolorpicker.previewColor|The message for the color preview pane."\n previewColor="Color preview"\n i18n-revertSelection="kendo.flatcolorpicker.revertSelection|The message for the selected color pane."\n revertSelection="Revert selection"\n i18n-gradientView="kendo.flatcolorpicker.gradientView|The message for the gradient view button."\n gradientView="Gradient view"\n i18n-paletteView="kendo.flatcolorpicker.paletteView|The message for the palette view button."\n paletteView="Palette view"\n i18n-formatButton="kendo.flatcolorpicker.formatButton|The message for the input format toggle button."\n formatButton="Change color format"\n i18n-applyButton="kendo.flatcolorpicker.applyButton|The message for the Apply action button."\n applyButton="Apply"\n i18n-cancelButton="kendo.flatcolorpicker.cancelButton|The message for the Cancel action button."\n cancelButton="Cancel">\n </ng-container>\n <div kendoFlatColorPickerHeader\n *ngIf="headerHasContent"\n #header\n [clearButton]="clearButton"\n [activeView]="activeView"\n [views]="views"\n [value]="value"\n [selection]="selection"\n [preview]="preview"\n (clearButtonClick)="onClearButtonClick()"\n (viewChange)="onViewChange($event)"\n (valuePaneClick)="resetSelection($event)">\n </div>\n <div class="k-coloreditor-views k-vstack">\n <kendo-colorgradient #gradient\n *ngIf="activeView === \'gradient\'"\n [tabindex]="null"\n [value]="selection"\n [format]="format"\n [opacity]="gradientSettings.opacity"\n [delay]="gradientSettings.delay"\n [contrastTool]="gradientSettings.contrastTool"\n [readonly]="readonly"\n (valueChange)="handleValueChange($event)"\n >\n </kendo-colorgradient>\n <kendo-colorpalette #palette\n *ngIf="activeView === \'palette\'"\n kendoFocusOnDomReady\n [palette]="paletteSettings.palette"\n [columns]="paletteSettings.columns"\n [tileSize]="paletteSettings.tileSize"\n [format]="format"\n [value]="selection"\n (valueChange)="handleValueChange($event)"\n >\n </kendo-colorpalette>\n </div>\n <div kendoFlatColorPickerActionButtons *ngIf="preview"\n #footer\n [ngClass]="\'k-justify-content-\' + actionsLayout"\n (actionButtonClick)="onAction($event)">\n </div>\n'}),i.__metadata("design:paramtypes",[r.ElementRef,d.FlatColorPickerService,s.LocalizationService,r.ChangeDetectorRef,r.Renderer2,r.NgZone])],e)}();t.FlatColorPickerComponent=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(2),a=n(69),s=function(e){function t(t,n,i,r){var o=e.call(this,t,n,i)||this;return o.colorPickerLocalization=r,o}return i.__extends(t,e),t.prototype.get=function(t){return this.colorPickerLocalization?this.colorPickerLocalization.get(t):e.prototype.get.call(this,t)},t=i.__decorate([i.__param(0,r.Inject(o.L10N_PREFIX)),i.__param(1,r.Optional()),i.__param(2,r.Optional()),i.__param(2,r.Inject(o.RTL)),i.__param(3,r.Optional()),i.__param(3,r.Inject(a.ColorPickerLocalizationService)),i.__metadata("design:paramtypes",[String,o.MessageService,Boolean,a.ColorPickerLocalizationService])],t)}(o.LocalizationService);t.FlatColorPickerLocalizationService=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(0).__exportStar(n(99),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(5),a=n(7),s=n(12),u=n(2),c=n(3),l=n(8),d=n(11),p=n(13),h=n(4),f=n(17),m=n(107),v=n(70),g=n(14),y=n(9),_=0,b=function(){function e(e,t,n,i,o){var s=this;this.host=e,this.ngZone=t,this.renderer=n,this.cdr=i,this.localizationService=o,this.hostClasses=!0,this.id="k-colorgradient-"+_++,this.opacity=!0,this.disabled=!1,this.readonly=!1,this.clearButton=!1,this.delay=0,this.format=g.DEFAULT_OUTPUT_FORMAT,this.valueChange=new r.EventEmitter,this.backgroundColor=g.DEFAULT_GRADIENT_BACKGROUND_COLOR,this.hsva=new a.BehaviorSubject({}),this._tabindex=0,this.listeners=[],this.hueSliderTouched=!1,this.alphaSliderTouched=!1,this.updateValues=new a.Subject,this.notifyNgChanged=function(){},this.notifyNgTouched=function(){},l.validatePackage(y.packageMetadata),this.dynamicRTLSubscription=o.changes.subscribe((function(e){var t=e.rtl;s.direction=t?"rtl":"ltr"}))}var t;return t=e,Object.defineProperty(e.prototype,"readonlyAttribute",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gradientId",{get:function(){return this.id},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostTabindex",{get:function(){return this.tabindex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=p.parseColor(e,this.format,this.opacity)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contrastTool",{get:function(){return this._contrastTool},set:function(e){this._contrastTool=p.parseColor(e,this.format,this.opacity)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabindex",{get:function(){return this.disabled?void 0:this._tabindex},set:function(e){if(h.isPresent(e)){var t=Number(e);this._tabindex=isNaN(t)?0:t}else this._tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isFocused",{get:function(){return!(!c.isDocumentAvailable()||!h.isPresent(this.host))&&(this.host.nativeElement===document.activeElement||this.host.nativeElement.contains(document.activeElement))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"alphaSliderValue",{get:function(){if(h.isPresent(this.hsva.value)&&h.isPresent(this.hsva.value.a))return 100*this.hsva.value.a},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gradientRect",{get:function(){return this.gradientWrapper.nativeElement.getBoundingClientRect()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contrastToolVisible",{get:function(){return this.contrastTool&&this.contrastTool.length>0},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){this.updateUI(),this.cdr.detectChanges(),this.addEventListeners(),this.subscribeChanges()},e.prototype.ngOnChanges=function(e){c.isChanged("value",e)&&!this.isFocused&&this.updateUI(),c.isChanged("delay",e)&&(this.unsubscribeChanges(),this.subscribeChanges())},e.prototype.ngOnDestroy=function(){this.listeners.forEach((function(e){return e()})),this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe(),this.unsubscribeChanges()},e.prototype.focus=function(){this.disabled||this.gradientDragHandle.nativeElement.focus()},e.prototype.reset=function(){this.handleValueChange(void 0),this.updateUI(),this.host.nativeElement.focus()},e.prototype.handleDragPress=function(e){this.disabled||this.readonly||!h.isPresent(e.originalEvent)||(this.focus(),e.originalEvent.preventDefault())},e.prototype.onHandleDrag=function(e){this.disabled||this.readonly||(this.renderer.addClass(this.gradientWrapper.nativeElement,"k-dragging"),this.changePosition(e))},e.prototype.onHandleRelease=function(){this.disabled||this.readonly||(this.renderer.removeClass(this.gradientWrapper.nativeElement,"k-dragging"),this.handleValueChange(p.getColorFromHSV(this.hsva.value,this.format,this.opacity)))},e.prototype.onKeyboardAction=function(e){var t=this;if(!this.disabled&&!this.readonly&&e.key&&-1!==e.key.indexOf("Arrow")){e.preventDefault();var n=this.gradientDragHandle.nativeElement;this.renderer.addClass(this.gradientWrapper.nativeElement,"k-dragging");var i=0,r=0;switch(e.key){case"ArrowRight":i=g.DRAGHANDLE_MOVE_SPEED;break;case"ArrowLeft":i=-g.DRAGHANDLE_MOVE_SPEED;break;case"ArrowUp":r=-g.DRAGHANDLE_MOVE_SPEED;break;case"ArrowDown":r=g.DRAGHANDLE_MOVE_SPEED}var o=parseInt(n.style.top,10)+r,a=parseInt(n.style.left,10)+i;this.renderer.setStyle(n,"top",o+"px"),this.renderer.setStyle(n,"left",a+"px"),this.ngZone.run((function(){return t.moveDragHandle(a,o)}))}},e.prototype.changePosition=function(e){var t=this;if(!this.disabled&&!this.readonly){this.gradientDragHandle.nativeElement.focus();var n=this.gradientRect,i=e.clientX-n.left,r=e.clientY-n.top;this.ngZone.run((function(){return t.moveDragHandle(i,r)}))}},e.prototype.handleHueSliderChange=function(e){var t=this.hsva.value;t.h=e,this.hsva.next(t),this.handleValueChange(p.getColorFromHSV(this.hsva.value,this.format,this.opacity)),this.backgroundColor=p.getColorFromHue(e),this.setBackgroundColor(this.backgroundColor),this.setAlphaSliderBackground(this.backgroundColor),this.hueSliderTouched=!0},e.prototype.handleAlphaSliderChange=function(e){var t=this.hsva.value;t.a=e/100,this.hsva.next(t),this.handleValueChange(p.getColorFromHSV(this.hsva.value,this.format,this.opacity)),this.alphaSliderTouched=!0},e.prototype.handleInputsValueChange=function(e){var t=p.parseColor(e,this.format,this.opacity);this.value!==t&&(this.handleValueChange(t),this.updateUI())},e.prototype.writeValue=function(e){this.value=e,h.isPresent(this.gradientWrapper)&&this.updateUI()},e.prototype.registerOnChange=function(e){this.notifyNgChanged=e},e.prototype.registerOnTouched=function(e){this.notifyNgTouched=e},e.prototype.setDisabledState=function(e){this.cdr.markForCheck(),this.disabled=e},Object.defineProperty(e.prototype,"colorGradientHandleTitle",{get:function(){return this.localizationService.get("colorGradientHandle")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"colorGradientHandleAriaLabel",{get:function(){var e=p.parseColor(this.value,this.format,this.opacity);return""+(this.value?e:this.localizationService.get("colorGradientHandle"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hueSliderTitle",{get:function(){return this.localizationService.get("hueSliderHandle")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"opacitySliderTitle",{get:function(){return this.localizationService.get("opacitySliderHandle")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"clearButtonTitle",{get:function(){return this.localizationService.get("clearButton")},enumerable:!0,configurable:!0}),e.prototype.isEmpty=function(){return!1},e.prototype.moveDragHandle=function(e,t){var n=this.gradientRect,r=n.width,o=n.height,a=h.fitIntoBounds(t,0,o),s=h.fitIntoBounds(e,0,r);this.setDragHandleElementPosition(a,s);var u=this.hsva.value;u.s=s/r,u.v=1-a/o,this.hsva.next(u),this.updateValues.next(p.getColorFromHSV(this.hsva.value,this.format,this.opacity)),this.setAlphaSliderBackground(p.getColorFromHSV(i.__assign({},this.hsva.value,{a:1}),this.format,this.opacity))},e.prototype.handleValueChange=function(e){this.value!==e&&(this.value=e,this.valueChange.emit(e),this.notifyNgChanged(e),this.setHostElementAriaLabel())},e.prototype.setDragHandleElementPosition=function(e,t){var n=this.gradientDragHandle.nativeElement;this.renderer.setStyle(n,"top",e+"px"),this.renderer.setStyle(n,"left",t+"px")},e.prototype.setAlphaSliderBackground=function(e){if(h.isPresent(this.alphaSlider)){var t=this.alphaSlider.track.nativeElement;this.renderer.setStyle(t,"background","linear-gradient(to top, transparent, "+e+")")}},e.prototype.setHostElementAriaLabel=function(){var e=p.parseColor(this.value,this.format,this.opacity);this.renderer.setAttribute(this.host.nativeElement,"aria-label",""+(this.value?e:this.localizationService.get("colorGradientNoColor")))},e.prototype.setBackgroundColor=function(e){this.renderer.setStyle(this.hsvRectangle.nativeElement,"background",e)},e.prototype.updateUI=function(){if(c.isDocumentAvailable()){if(this.hueSliderTouched||this.alphaSliderTouched)return this.hueSliderTouched=!1,void(this.alphaSliderTouched=!1);this.hsva.next(this.value?p.getHSV(this.value):{h:0,s:0,v:1,a:1});var e=this.gradientRect,t=(1-this.hsva.value.v)*e.height,n=this.hsva.value.s*e.width;this.setDragHandleElementPosition(t,n),this.backgroundColor=p.getColorFromHue(this.hsva.value.h),this.setBackgroundColor(this.backgroundColor),this.setAlphaSliderBackground(this.backgroundColor),this.setHostElementAriaLabel()}},e.prototype.addEventListeners=function(){var e=this;this.ngZone.runOutsideAngular((function(){var t=e.renderer.listen(e.host.nativeElement,"focusout",(function(t){!d.containsFocus(e.host.nativeElement,t.relatedTarget)&&d.isUntouched(e.host)&&e.ngZone.run((function(){return e.notifyNgTouched()}))})),n=e.renderer.listen(e.gradientDragHandle.nativeElement,"keydown",(function(t){e.onKeyboardAction(t)})),i=e.renderer.listen(e.gradientDragHandle.nativeElement,"keyup",(function(){e.renderer.removeClass(e.gradientWrapper.nativeElement,"k-dragging"),e.readonly||e.disabled||e.ngZone.run((function(){return e.handleValueChange(p.getColorFromHSV(e.hsva.value,e.format,e.opacity))}))})),r=e.renderer.listen(e.gradientDragHandle.nativeElement,"focusin",(function(){e.renderer.addClass(e.gradientDragHandle.nativeElement,"k-state-focus")})),o=e.renderer.listen(e.gradientDragHandle.nativeElement,"focusout",(function(){e.renderer.removeClass(e.gradientDragHandle.nativeElement,"k-state-focus")}));e.listeners.push(t,n,i,r,o)}))},e.prototype.subscribeChanges=function(){var e=this;this.changeRequestsSubscription=this.updateValues.pipe(s.throttleTime(this.delay)).subscribe((function(t){e.handleValueChange(t)}))},e.prototype.unsubscribeChanges=function(){this.changeRequestsSubscription&&this.changeRequestsSubscription.unsubscribe()},i.__decorate([r.HostBinding("class.k-colorgradient"),i.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),i.__decorate([r.HostBinding("attr.aria-readonly"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"readonlyAttribute",null),i.__decorate([r.HostBinding("class.k-state-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"disabledClass",null),i.__decorate([r.HostBinding("attr.id"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],e.prototype,"gradientId",null),i.__decorate([r.HostBinding("attr.dir"),i.__metadata("design:type",String)],e.prototype,"direction",void 0),i.__decorate([r.HostBinding("attr.tabindex"),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[])],e.prototype,"hostTabindex",null),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"id",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"opacity",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"readonly",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"clearButton",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"delay",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"value",null),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"contrastTool",null),i.__decorate([r.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],e.prototype,"tabindex",null),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"format",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"valueChange",void 0),i.__decorate([r.ViewChild("gradientDragHandle",{read:r.ElementRef,static:!1}),i.__metadata("design:type",r.ElementRef)],e.prototype,"gradientDragHandle",void 0),i.__decorate([r.ViewChild("inputs",{static:!1}),i.__metadata("design:type",v.ColorInputComponent)],e.prototype,"inputs",void 0),i.__decorate([r.ViewChild("alphaSlider",{static:!1}),i.__metadata("design:type",f.SliderComponent)],e.prototype,"alphaSlider",void 0),i.__decorate([r.ViewChild("gradientWrapper",{static:!1}),i.__metadata("design:type",r.ElementRef)],e.prototype,"gradientWrapper",void 0),i.__decorate([r.ViewChild("hsvRectangle",{static:!1}),i.__metadata("design:type",r.ElementRef)],e.prototype,"hsvRectangle",void 0),e=t=i.__decorate([r.Component({exportAs:"kendoColorGradient",selector:"kendo-colorgradient",providers:[{multi:!0,provide:o.NG_VALUE_ACCESSOR,useExisting:r.forwardRef((function(){return t}))},{provide:c.KendoInput,useExisting:r.forwardRef((function(){return t}))},m.ColorGradientLocalizationService,{provide:u.LocalizationService,useExisting:m.ColorGradientLocalizationService},{provide:u.L10N_PREFIX,useValue:"kendo.colorgradient"}],template:'\n <ng-container kendoColorGradientLocalizedMessages\n i18n-colorGradientNoColor="kendo.colorgradient.colorGradientNoColor|The aria-label applied to the ColorGradient component when the value is empty."\n colorGradientNoColor="Colorgradient no color chosen"\n i18n-colorGradientHandle="kendo.colorgradient.colorGradientHandle|The title for the gradient color drag handle chooser."\n colorGradientHandle="Choose color"\n i18n-clearButton="kendo.colorgradient.clearButton|The title for the clear button."\n clearButton="Clear value"\n i18n-hueSliderHandle="kendo.colorgradient.hueSliderHandle|The title for the hue slider handle."\n hueSliderHandle="Set hue"\n i18n-opacitySliderHandle="kendo.colorgradient.opacitySliderHandle|The title for the opacity slider handle."\n opacitySliderHandle="Set opacity"\n i18n-passContrast="kendo.colorgradient.passContrast|The pass message for the contrast tool."\n passContrast="Pass"\n i18n-failContrast="kendo.colorgradient.failContrast|The fail message for the contrast tool."\n failContrast="Fail"\n i18n-contrastRatio="kendo.colorgradient.contrastRatio|The contrast ratio message for the contrast tool."\n contrastRatio="Contrast ratio"\n i18n-formatButton="kendo.colorgradient.formatButton|The message for the input format toggle button."\n formatButton="Change color format">\n </ng-container>\n <div class="k-colorgradient-canvas k-hstack">\n <div class="k-hsv-rectangle" #hsvRectangle>\n <div\n #gradientWrapper\n kendoDraggable\n class="k-hsv-gradient"\n (click)="changePosition($event)"\n (kendoPress)="handleDragPress($event)"\n (kendoDrag)="onHandleDrag($event)"\n (kendoRelease)="onHandleRelease()">\n <div\n #gradientDragHandle\n class="k-hsv-draghandle k-draghandle"\n tabindex="0"\n [attr.title]="colorGradientHandleTitle"\n [attr.aria-label]="colorGradientHandleAriaLabel"\n >\n </div>\n </div>\n <svg kendoColorContrastSvg\n *ngIf="contrastToolVisible && gradientWrapper"\n class="k-color-contrast-svg"\n xmlns="http://www.w3.org/2000/svg"\n [wrapper]="gradientWrapper ? gradientWrapper : undefined"\n [hsva]="hsva"\n [backgroundColor]="contrastTool">\n </svg>\n </div>\n <div class="k-hsv-controls k-hstack {{ clearButton ? \'k-sliders-wrap-clearable\' : \'\' }}">\n <span class="k-clear-color k-button k-button-md k-button-flat k-button-flat-base k-button-icon"\n *ngIf="clearButton"\n (click)="reset()"\n (keydown.enter)="reset()"\n (keydown.space)="reset()"\n [attr.aria-label]="clearButtonTitle"\n [attr.title]="clearButtonTitle"\n tabindex="0">\n <span class="k-icon k-i-reset-color"></span>\n </span>\n <kendo-slider\n [ngClass]="{\'k-align-self-end\': clearButton}"\n class="k-hue-slider k-colorgradient-slider"\n [dragHandleTitle]="hueSliderTitle"\n [disabled]="disabled"\n [readonly]="readonly"\n [showButtons]="false"\n [tickPlacement]="\'none\'"\n [vertical]="true"\n [min]="0"\n [max]="360"\n [value]="hsva.value.h"\n [smallStep]="5"\n [largeStep]="10"\n (valueChange)="handleHueSliderChange($event)"\n >\n </kendo-slider>\n <kendo-slider\n *ngIf="opacity"\n #alphaSlider\n [ngClass]="{\'k-align-self-end\': clearButton}"\n class="k-alpha-slider k-colorgradient-slider"\n [dragHandleTitle]="opacitySliderTitle"\n [disabled]="disabled"\n [readonly]="readonly"\n [showButtons]="false"\n [tickPlacement]="\'none\'"\n [vertical]="true"\n [min]="0"\n [max]="100"\n [smallStep]="1"\n [largeStep]="10"\n [value]="alphaSliderValue"\n (valueChange)="handleAlphaSliderChange($event)"\n >\n </kendo-slider>\n </div>\n </div>\n <kendo-colorinput #inputs\n [opacity]="opacity"\n [formatView]="format"\n [value]="value"\n [disabled]="disabled"\n [readonly]="readonly"\n (valueChange)="handleInputsValueChange($event)"\n >\n </kendo-colorinput>\n <div class="k-colorgradient-color-contrast k-vbox"\n *ngIf="contrastToolVisible"\n kendoContrastTool\n [value]="value"\n [ratio]="contrastTool">\n </div>\n ',styles:["\n .k-clear-color {\n position: absolute;\n top: 0;\n left: 50%;\n transform: translateX(-50%);\n }\n .k-colorgradient-slider.k-align-self-end {\n height: 140px;\n }\n\n .k-color-contrast-svg {\n position: absolute;\n overflow: visible;\n pointer-events: none;\n left: 0px;\n top: 0px;\n }\n "]}),i.__metadata("design:paramtypes",[r.ElementRef,r.NgZone,r.Renderer2,r.ChangeDetectorRef,u.LocalizationService])],e)}();t.ColorGradientComponent=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(5),a=n(3),s=n(2),u=n(8),c=n(12),l=n(108),d=n(9),p=n(27),h=n(13),f=n(4),m=n(109),v=0,g=function(){function e(e,t,n,i,o,s){var c=this;this.host=e,this.service=t,this.cdr=n,this.renderer=i,this.localizationService=o,this.ngZone=s,this.id="k-colorpalette-"+v++,this.format="hex",this.disabled=!1,this.readonly=!1,this.tileSize={width:24,height:24},this.selectionChange=new r.EventEmitter,this.valueChange=new r.EventEmitter,this.cellSelection=new r.EventEmitter,this.hostClasses=!0,this.uniqueId=a.guid(),this._tabindex=0,this.notifyNgTouched=function(){},this.notifyNgChanged=function(){},u.validatePackage(d.packageMetadata),this.dynamicRTLSubscription=o.changes.subscribe((function(e){var t=e.rtl;c.direction=t?"rtl":"ltr"}))}var t;return t=e,Object.defineProperty(e.prototype,"paletteId",{get:function(){return this.id},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=h.parseColor(e,this.format)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"columns",{get:function(){return this._columns},set:function(e){this._columns=e>1?e:1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"palette",{get:function(){return this._palette},set:function(e){var t=this;f.isPresent(e)||(e="office"),"string"==typeof e&&f.isPresent(p.PALETTEPRESETS[e])&&(this.columns=this.columns||p.PALETTEPRESETS[e].columns,e=p.PALETTEPRESETS[e].colors);var n="string"==typeof e?e.split(","):e;this._palette=n.map((function(e){return h.parseColor(e,t.format,!1,!1)}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabindex",{get:function(){return this.disabled?void 0:this._tabindex},set:function(e){var t=Number(e);this._tabindex=isNaN(t)?0:t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tileLayout",{get:function(){return"number"!=typeof this.tileSize?this.tileSize:{width:this.tileSize,height:this.tileSize}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"colorRows",{get:function(){return this.service.colorRows},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostTabindex",{get:function(){return this.tabindex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readonlyAttribute",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){if(0===this.colorRows.length){var e="name"!==this.format?"office":"accessible";this.palette=this.palette||e,this.setRows()}},e.prototype.ngAfterViewInit=function(){var e=this;this.setHostElementAriaLabel(),this.value&&this.ngZone.onStable.pipe(c.take(1)).subscribe((function(){e.selectCell(e.value)}))},e.prototype.ngOnDestroy=function(){this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe()},e.prototype.ngOnChanges=function(e){(e.palette||e.columns)&&this.setRows(),(e.palette||e.value||e.columns)&&(this.selectCell(this.value),this.setHostElementAriaLabel())},e.prototype.handleKeydown=function(e){var t="rtl"===this.direction;switch(e.keyCode){case a.Keys.ArrowDown:this.handleCellNavigation(0,1);break;case a.Keys.ArrowUp:this.handleCellNavigation(0,-1);break;case a.Keys.ArrowRight:this.handleCellNavigation(t?-1:1,0);break;case a.Keys.ArrowLeft:this.handleCellNavigation(t?1:-1,0);break;case a.Keys.Enter:this.handleEnter();break;default:return}e.preventDefault()},e.prototype.handleHostBlur=function(){this.notifyNgTouched(),this.handleCellFocusOnBlur()},e.prototype.handleCellSelection=function(e,t){if(!this.readonly){this.selectedCell=t,this.focusedCell=this.selectedCell,this.focusInComponent=!0;var n=h.parseColor(e,this.format,!1,!1);this.cellSelection.emit(n),this.handleValueChange(n),this.selection!==n&&(this.selection=n,this.selectionChange.emit(n)),t&&(this.activeCellId="k-"+this.selectedCell.row+"-"+this.selectedCell.col+"-"+this.uniqueId)}},e.prototype.writeValue=function(e){this.value=e,this.selectCell(e)},e.prototype.registerOnChange=function(e){this.notifyNgChanged=e},e.prototype.registerOnTouched=function(e){this.notifyNgTouched=e},e.prototype.setDisabledState=function(e){this.cdr.markForCheck(),this.disabled=e},e.prototype.isEmpty=function(){return!1},e.prototype.reset=function(){this.focusedCell=null,f.isPresent(this.value)&&this.handleValueChange(void 0),this.selectedCell=void 0},e.prototype.handleValueChange=function(e){this.value!==e&&(this.value=e,this.valueChange.emit(e),this.notifyNgChanged(e),this.setHostElementAriaLabel())},e.prototype.handleCellFocusOnBlur=function(){this.focusInComponent=!1,this.focusedCell=this.selectedCell},e.prototype.selectCell=function(e){this.selectedCell=this.service.getCellCoordsFor(e),this.focusedCell=this.selectedCell},e.prototype.setRows=function(){f.isPresent(this.palette)&&(this.columns=this.columns||10,this.service.setColorMatrix(this.palette,this.columns))},e.prototype.handleCellNavigation=function(e,t){this.readonly||(this.focusedCell=this.service.getNextCell(this.focusedCell,e,t),this.focusInComponent=!0)},e.prototype.setHostElementAriaLabel=function(){var e=h.parseColor(this.value,this.format);this.renderer.setAttribute(this.host.nativeElement,"aria-label",""+(this.value?e:this.localizationService.get("colorPaletteNoColor")))},e.prototype.handleEnter=function(){if(f.isPresent(this.focusedCell)){var e=this.service.getColorAt(this.focusedCell);this.handleCellSelection(e,this.focusedCell)}},i.__decorate([r.HostBinding("attr.dir"),i.__metadata("design:type",String)],e.prototype,"direction",void 0),i.__decorate([r.HostBinding("attr.id"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],e.prototype,"paletteId",null),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"id",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"format",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"value",null),i.__decorate([r.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],e.prototype,"columns",null),i.__decorate([r.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"palette",null),i.__decorate([r.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],e.prototype,"tabindex",null),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"readonly",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"tileSize",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"selectionChange",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"valueChange",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"cellSelection",void 0),i.__decorate([r.HostBinding("attr.tabindex"),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[])],e.prototype,"hostTabindex",null),i.__decorate([r.HostBinding("class.k-colorpalette"),i.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),i.__decorate([r.HostBinding("attr.aria-disabled"),r.HostBinding("class.k-state-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"disabledClass",null),i.__decorate([r.HostBinding("attr.aria-readonly"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"readonlyAttribute",null),i.__decorate([r.HostListener("keydown",["$event"]),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Object]),i.__metadata("design:returntype",void 0)],e.prototype,"handleKeydown",null),i.__decorate([r.HostListener("blur"),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[]),i.__metadata("design:returntype",void 0)],e.prototype,"handleHostBlur",null),e=t=i.__decorate([r.Component({exportAs:"kendoColorPalette",selector:"kendo-colorpalette",providers:[{multi:!0,provide:o.NG_VALUE_ACCESSOR,useExisting:r.forwardRef((function(){return t}))},{provide:a.KendoInput,useExisting:r.forwardRef((function(){return t}))},m.ColorPaletteService,l.ColorPaletteLocalizationService,{provide:s.LocalizationService,useExisting:l.ColorPaletteLocalizationService},{provide:s.L10N_PREFIX,useValue:"kendo.colorpalette"}],template:'\n <ng-container kendoColorPaletteLocalizedMessages\n i18n-colorPaletteNoColor="kendo.colorpalette.colorPaletteNoColor|The aria-label applied to the ColorPalette component when the value is empty."\n colorPaletteNoColor="Colorpalette no color chosen">\n </ng-container>\n <div role="listbox" class="k-colorpalette-table-wrap"\n [attr.aria-activedescendant]="activeCellId">\n <table class="k-colorpalette-table k-palette">\n <tbody>\n <tr *ngFor="let row of colorRows; let rowIndex = index">\n <td *ngFor="let color of row; let colIndex = index"\n role="option"\n [class.k-state-selected]="selectedCell?.row === rowIndex && selectedCell?.col === colIndex"\n [class.k-state-focus]="focusInComponent && focusedCell?.row === rowIndex && focusedCell?.col === colIndex"\n [attr.aria-selected]="selectedCell?.row === rowIndex && selectedCell?.col === colIndex"\n [attr.aria-label]="color"\n class="k-colorpalette-tile"\n [id]="\'k-\' + rowIndex + \'-\' + colIndex + \'-\' + uniqueId"\n [attr.value]="color"\n (click)="handleCellSelection(color, { row: rowIndex, col: colIndex })"\n [ngStyle]="{\n backgroundColor: color,\n width: tileLayout.width + \'px\',\n height: tileLayout.height + \'px\',\n minWidth: tileLayout.width + \'px\'\n }">\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n '}),i.__metadata("design:paramtypes",[r.ElementRef,m.ColorPaletteService,r.ChangeDetectorRef,r.Renderer2,s.LocalizationService,r.NgZone])],e)}();t.ColorPaletteComponent=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=0,a=function(){function e(){this.hostClass=!0,this.align="start",this.id="kendo-error-"+o++,this.roleAttribute="alert"}return Object.defineProperty(e.prototype,"startClass",{get:function(){return"start"===this.align},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endClass",{get:function(){return"end"===this.align},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"idAttribute",{get:function(){return this.id},enumerable:!0,configurable:!0}),i.__decorate([r.HostBinding("class.k-form-error"),i.__metadata("design:type",Boolean)],e.prototype,"hostClass",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"align",void 0),i.__decorate([r.HostBinding("attr.role"),i.__metadata("design:type",String)],e.prototype,"roleAttribute",void 0),i.__decorate([r.HostBinding("class.k-text-start"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"startClass",null),i.__decorate([r.HostBinding("class.k-text-end"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"endClass",null),i.__decorate([r.HostBinding("attr.id"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],e.prototype,"idAttribute",null),e=i.__decorate([r.Component({selector:"kendo-formerror",template:"\n <ng-content></ng-content>\n "})],e)}();t.ErrorComponent=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=0,a=function(){function e(){this.align="start",this.id="kendo-hint-"+o++,this.hostClass=!0}return Object.defineProperty(e.prototype,"startClass",{get:function(){return"start"===this.align},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endClass",{get:function(){return"end"===this.align},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"idAttribute",{get:function(){return this.id},enumerable:!0,configurable:!0}),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"align",void 0),i.__decorate([r.HostBinding("class.k-form-hint"),i.__metadata("design:type",Boolean)],e.prototype,"hostClass",void 0),i.__decorate([r.HostBinding("class.k-text-start"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"startClass",null),i.__decorate([r.HostBinding("class.k-text-end"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"endClass",null),i.__decorate([r.HostBinding("attr.id"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],e.prototype,"idAttribute",null),e=i.__decorate([r.Component({selector:"kendo-formhint",template:"\n <ng-content></ng-content>\n "})],e)}();t.HintComponent=a},function(e,t,n){"use strict";n.r(t),n.d(t,"detectMobileOS",(function(){return c})),n.d(t,"detectDesktopBrowser",(function(){return l})),n.d(t,"browser",(function(){return p})),n.d(t,"mobileOS",(function(){return h})),n.d(t,"touch",(function(){return f})),n.d(t,"msPointers",(function(){return m})),n.d(t,"pointers",(function(){return v})),n.d(t,"touchEnabled",(function(){return g})),n.d(t,"getter",(function(){return C})),n.d(t,"setter",(function(){return x}));var i=function(){return"undefined"!=typeof window},r={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/},o={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/},a={edge:/(edge)[ \/]([\w.]+)/i,webkit:/(chrome)[ \/]([\w.]+)/i,safari:/(webkit)[ \/]([\w.]+)/i,opera:/(opera)(?:.*version|)[ \/]([\w.]+)/i,msie:/(msie\s|trident.*? rv:)([\w.]+)/i,mozilla:/(mozilla)(?:.*? rv:([\w.]+)|)/i},s={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},u=function(e,t,n){for(var i in t)if(t.hasOwnProperty(i)&&t[i].test(e))return i;return void 0!==n?n:e},c=function(e){var t,n=[];for(var i in r)if(r.hasOwnProperty(i)){if(!(n=e.match(r[i])))continue;if("windows"===i&&"plugins"in window.navigator)return null;var a={};return a.device=i,a.browser=u(e,s,"default"),a.name=u(i,o),a[a.name]=!0,a.majorVersion=n[2],a.minorVersion=n[3]?n[3].replace("_","."):".0",t=a.minorVersion.replace(".","").substr(0,2),a.flatVersion=a.majorVersion+t+new Array(3-(t.length<3?t.length:2)).join("0"),a.cordova=void 0!==typeof window.PhoneGap||void 0!==typeof window.cordova,a.appMode=window.navigator.standalone||/file|local|wmapp/.test(window.location.protocol)||a.cordova,a}return null},l=function(e){var t=null,n=[];for(var i in a)if(a.hasOwnProperty(i)&&(n=e.match(a[i]))){(t={})[i]=!0,t[n[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,t.version=parseInt(document.documentMode||n[2],10);break}return t},d=i()&&window.navigator?window.navigator.userAgent:null,p=d?l(d):null,h=d?c(d):null,f=i()&&"ontouchstart"in window,m=p&&!p.chrome&&window.MSPointerEvent,v=p&&!p.chrome&&window.PointerEvent,g=h&&(f||m||v),y=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g;function _(e){var t=[];return e.replace(y,(function(e,n,i,r){t.push(void 0!==n?n:i||r)})),t}var b={};function C(e){if(b[e])return b[e];var t=_(e);return b[e]=function(e){for(var n=e,i=0;i<t.length&&n;i++)n=n[t[i]];return n},b[e]}b[void 0]=function(e){return e};var k={undefined:function(e){return e}},w=function(e,t){return t&&t.arrays&&!isNaN(Number(e))?[]:{}};function x(e){if(k[e])return k[e];var t=_(e);return k[e]=function(e,n,i){for(var r=e,o=t.length-1,a=0;a<o&&r;a++)r=r[t[a]]=r[t[a]]||w(t[a+1],i);r[t[o]]=n},k[e]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(10),r=n(18),o=function(){function e(e,t,n,i){this.props=e,this.wrapper=t,this.track=n,this.renderer=i,this.props=e,this.wrapper=t,this.track=n,this.tickSizes=this.getTickSizes()}return e.prototype.resizeTrack=function(){var e=this.props.vertical?"height":"width",t=this.props.vertical?"width":"height",n=this.trackWidth();this.track.parentElement.style[e]=n+"px",this.track.parentElement.style[t]=""},e.prototype.resizeTicks=function(e,t){var n=this,i=this.props.vertical?"height":"width";t.slice().map((function(e,t){return e.style[i]=n.tickSizes[t]+"px"})),this.props.vertical&&this.adjustPadding(e)},e.prototype.resizeWrapper=function(){var e=this.props.vertical?"height":"width",t=i.calculateFixedTrackSize(this.props),n=this.wrapper.parentElement;t&&(n.style[e]="auto")},e.prototype.trackWidth=function(){return this.props.fixedTickWidth?i.calculateFixedTrackSize(this.props):this.elementSize(this.track.parentElement)},e.prototype.getTickSizes=function(){for(var e=this.props,t=e.min,n=e.max,o=e.smallStep,a=i.calculateTicksCount(t,n,o),s=this.trackWidth(),u=s/r.subtract(n,t),c=[],l=0,d=0,p=0;p<a;p++){d=+(d+=0===p||p===a-1?o/2*u:o*u).toFixed(2)-.01;var h=Math.round(d-l);c.push(h),l+=h}return l>=s&&(c[c.length-1]-=1),c},e.prototype.adjustPadding=function(e){var t=this.tickSizes.reduce((function(e,t){return e+t}),0),n=this.trackWidth()-t;if(0!==n){var i=n+this.elementOffset(this.track);e.style.paddingTop=i+"px"}},e.prototype.elementOffset=function(e){var t=this.props.vertical,n=getComputedStyle(e);return parseInt(t?n.bottom:n.left,10)},e.prototype.elementSize=function(e){return this.props.vertical?e.clientHeight:e.clientWidth},e}();t.SliderModelBase=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(10),o=n(1),a=n(7),s=n(5),u=n(3),c=n(8),l=n(9),d=n(15),p=function(){function e(e,t,n,i,s,u){var d=this;this.localizationService=e,this.injector=t,this.renderer=n,this.ngZone=i,this.changeDetector=s,this.hostElement=u,this.title=r.identity,this.tickPlacement="both",this.vertical=!1,this.min=0,this.max=10,this.smallStep=1,this.largeStep=null,this.disabled=!1,this.readonly=!1,this.tabindex=0,this.onFocus=new o.EventEmitter,this.onBlur=new o.EventEmitter,this.valueChange=new o.EventEmitter,this.sliderClass=!0,this.widgetClass=!0,this.subscriptions=new a.Subscription,this.ifEnabled=function(e,t){d.isDisabled||e.call(d,t)},c.validatePackage(l.packageMetadata),this.direction=e.rtl?"rtl":"ltr"}return Object.defineProperty(e.prototype,"horizontalClass",{get:function(){return!this.vertical},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"verticalClass",{get:function(){return this.vertical},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),e.prototype.setDisabledState=function(e){this.changeDetector.markForCheck(),this.disabled=e},e.prototype.ngOnInit=function(){var e=this;this.subscriptions.add(this.localizationService.changes.subscribe((function(t){var n=t.rtl;e.direction=n?"rtl":"ltr",e.sizeComponent()}))),this.hostElement&&this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.control=this.injector.get(s.NgControl,null)},Object.defineProperty(e.prototype,"isDisabled",{get:function(){return this.disabled||this.readonly},enumerable:!0,configurable:!0}),e.prototype.isEmpty=function(){return!1},Object.defineProperty(e.prototype,"reverse",{get:function(){return this.localizationService.rtl&&!this.vertical},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"keyBinding",{get:function(){var e,t=this.reverse;return(e={})[u.Keys.ArrowLeft]=t?r.increment:r.decrement,e[u.Keys.ArrowRight]=t?r.decrement:r.increment,e[u.Keys.ArrowDown]=r.decrement,e[u.Keys.ArrowUp]=r.increment,e[u.Keys.PageUp]=r.incrementLarge,e[u.Keys.PageDown]=r.decrementLarge,e[u.Keys.Home]=function(e){return e.min},e[u.Keys.End]=function(e){return e.max},e},enumerable:!0,configurable:!0}),e.prototype.resetStyles=function(e){var t=this;e.forEach((function(e){e&&(t.vertical?(t.renderer.removeStyle(e,"width"),t.renderer.removeStyle(e,"left"),t.renderer.removeStyle(e,"right")):(t.renderer.removeStyle(e,"height"),t.renderer.removeStyle(e,"bottom")),t.renderer.removeStyle(e,"padding-top"))}))},i.__decorate([o.Input(),i.__metadata("design:type",Function)],e.prototype,"title",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"tickPlacement",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"vertical",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],e.prototype,"min",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],e.prototype,"max",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],e.prototype,"smallStep",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],e.prototype,"largeStep",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],e.prototype,"fixedTickWidth",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"readonly",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],e.prototype,"tabindex",void 0),i.__decorate([o.Output("focus"),i.__metadata("design:type",o.EventEmitter)],e.prototype,"onFocus",void 0),i.__decorate([o.Output("blur"),i.__metadata("design:type",o.EventEmitter)],e.prototype,"onBlur",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),i.__decorate([o.HostBinding("attr.dir"),i.__metadata("design:type",String)],e.prototype,"direction",void 0),i.__decorate([o.HostBinding("class.k-slider-horizontal"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"horizontalClass",null),i.__decorate([o.HostBinding("class.k-slider-vertical"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"verticalClass",null),i.__decorate([o.HostBinding("class.k-slider"),i.__metadata("design:type",Boolean)],e.prototype,"sliderClass",void 0),i.__decorate([o.HostBinding("class.k-widget"),i.__metadata("design:type",Boolean)],e.prototype,"widgetClass",void 0),i.__decorate([o.HostBinding("class.k-state-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"disabledClass",null),i.__decorate([o.ViewChild("wrap",{static:!0}),i.__metadata("design:type",o.ElementRef)],e.prototype,"wrapper",void 0),i.__decorate([o.ViewChild("track",{static:!0}),i.__metadata("design:type",o.ElementRef)],e.prototype,"track",void 0),i.__decorate([o.ViewChild("sliderSelection",{static:!0}),i.__metadata("design:type",o.ElementRef)],e.prototype,"sliderSelection",void 0),i.__decorate([o.ViewChild("ticks",{read:o.ElementRef,static:!1}),i.__metadata("design:type",o.ElementRef)],e.prototype,"ticksContainer",void 0),i.__decorate([o.ViewChild("ticks",{static:!1}),i.__metadata("design:type",Object)],e.prototype,"ticks",void 0),i.__decorate([o.ContentChild(d.LabelTemplateDirective,{static:!1}),i.__metadata("design:type",d.LabelTemplateDirective)],e.prototype,"labelTemplate",void 0),e}();t.SliderBase=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(5),a=n(12),s=n(10),u=n(83),c=n(2),l=n(10),d=n(11),p=n(3),h=n(4),f=n(34),m=function(e){function t(t,n,r,o,a,u){var c=e.call(this,t,n,r,o,a,u)||this;return c.localization=t,c.injector=n,c.renderer=r,c.ngZone=o,c.changeDetector=a,c.hostElement=u,c.startHandleId="k-start-handle-"+p.guid(),c.endHandleId="k-end-handle-"+p.guid(),c.focusableId=c.startHandleId,c.handleZIndex=0,c.activeHandle="startHandle",c.focusChangedProgrammatically=!1,c.onWrapClick=function(e){if(!c.isDisabled){c.value=c.value||[c.min,c.min];var t=l.eventValue(e,c.track.nativeElement,c.getProps()),n=void 0,i=n=c.value,r=i[0],o=i[1];t<=r?(n=[t,o],c.activeHandle="startHandle"):r<t&&t<o?t<(r+o)/2?(n=[t,o],c.activeHandle="startHandle"):(n=[r,t],c.activeHandle="endHandle"):t>=o&&(n=[r,t],c.activeHandle="endHandle");var a="startHandle"===c.activeHandle?c.draghandleStart:c.draghandleEnd;d.invokeElementMethod(a,"focus"),c.changeValue(n)}},c.onKeyDown=function(e){c.value=c.value||[c.min,c.min];var t=c.getProps(),n=t.max,r=t.min,o=c.keyBinding[e.keyCode];if(!c.isDisabled&&o){c.renderer.setStyle(e.target,"zIndex",++c.handleZIndex);var a=l.isStartHandle(e.target),u=o(i.__assign({},t,{value:a?c.value[0]:c.value[1]}));a?u>c.value[1]&&(c.value[1]=u):u<c.value[0]&&(c.value[0]=u);var d=s.trimValue(n,r,u),p=a?[d,c.value[1]]:[c.value[0],d];c.changeValue(p),e.preventDefault()}},c.ngChange=function(e){},c.ngTouched=function(){},c.handleBlur=function(){c.changeDetector.markForCheck(),c.focused=!1,(p.hasObservers(c.onBlur)||h.requiresZoneOnBlur(c.control))&&c.ngZone.run((function(){c.ngTouched(),c.focusChangedProgrammatically||c.onBlur.emit()}))},c}var n;return i.__extends(t,e),n=t,t.prototype.focus=function(){this.focusChangedProgrammatically=!0,d.invokeElementMethod(this.draghandleStart,"focus"),this.focusChangedProgrammatically=!1},t.prototype.blur=function(){this.focusChangedProgrammatically=!0;var e="startHandle"===this.activeHandle?this.draghandleStart:this.draghandleEnd;d.invokeElementMethod(e,"blur"),this.handleBlur(),this.focusChangedProgrammatically=!1},t.prototype.ngOnInit=function(){this.value||(this.value=[this.min,this.max]),e.prototype.ngOnInit.call(this)},t.prototype.ngOnChanges=function(e){var t=this;p.anyChanged(["value","fixedTickWidth","tickPlacement"],e,!0)&&(e.value&&e.value.currentValue&&s.validateValue(e.value.currentValue),this.ngZone.onStable.asObservable().pipe(a.take(1)).subscribe((function(){t.sizeComponent()})))},t.prototype.ngAfterViewInit=function(){var e=this;p.isDocumentAvailable()&&(this.sizeComponent(),this.ticks&&this.ticks.tickElements.changes.subscribe((function(){return e.sizeComponent()})),this.attachElementEventHandlers())},t.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},t.prototype.textFor=function(e){return this.localization.get(e)},Object.defineProperty(t.prototype,"valueText",{get:function(){return this.value?this.value[0]+" - "+this.value[1]:""},enumerable:!0,configurable:!0}),t.prototype.handleDragPress=function(e){e.originalEvent&&e.originalEvent.preventDefault();var t=e.originalEvent.target;this.draggedHandle=t,this.renderer.setStyle(t,"zIndex",++this.handleZIndex)},t.prototype.onHandleDrag=function(e){var t=this;this.value=this.value||[this.min,this.min];var n=e.originalEvent.target,i=this.draggedHandle.getBoundingClientRect();this.lastHandlePosition={x:i.left,y:i.top},this.dragging={value:!0,target:n};var r=e.pageX<this.lastHandlePosition.x,o=e.pageX>this.lastHandlePosition.x,a=e.pageY>this.lastHandlePosition.y,s=function(){return t.changeValue([l.eventValue(e,t.track.nativeElement,t.getProps()),t.value[1]])},u=function(){return t.changeValue([t.value[0],l.eventValue(e,t.track.nativeElement,t.getProps())])},c=function(){return t.changeValue([l.eventValue(e,t.track.nativeElement,t.getProps()),l.eventValue(e,t.track.nativeElement,t.getProps())])},d=l.isStartHandle(this.draggedHandle),p=this.vertical,h=!p,f=p&&a||(this.reverse?h&&o:h&&r);this.value[0]===this.value[1]?f?d?s():c():d?c():u():d?s():u()},t.prototype.onHandleRelease=function(e){this.dragging={value:!1,target:e.originalEvent.target},this.draggedHandle=void 0},t.prototype.writeValue=function(e){s.validateValue(e),this.value=e,this.sizeComponent()},t.prototype.registerOnChange=function(e){this.ngChange=e},t.prototype.registerOnTouched=function(e){this.ngTouched=e},t.prototype.changeValue=function(e){var t=this;this.value&&s.isSameRange(this.value,e)||this.ngZone.run((function(){t.value=e,t.ngChange(e),t.value&&t.valueChange.emit(e),t.sizeComponent()}))},t.prototype.sizeComponent=function(){if(p.isDocumentAvailable()){var e=this.wrapper.nativeElement,t=this.track.nativeElement,n=this.sliderSelection.nativeElement,i=this.draghandleStart.nativeElement,r=this.draghandleEnd.nativeElement,o=this.ticks?this.ticksContainer.nativeElement:null;this.resetStyles([t,n,i,r,o,this.hostElement.nativeElement]);var a=this.getProps(),s=new u.RangeSliderModel(a,e,t,this.renderer);s.resizeTrack(),this.ticks&&s.resizeTicks(this.ticksContainer.nativeElement,this.ticks.tickElements.map((function(e){return e.nativeElement}))),s.positionHandle(i),s.positionHandle(r),s.positionSelection(i,n),this.fixedTickWidth&&s.resizeWrapper()}},Object.defineProperty(t.prototype,"isDisabled",{get:function(){return this.disabled||this.readonly},enumerable:!0,configurable:!0}),t.prototype.isEmpty=function(){return!1},Object.defineProperty(t.prototype,"focused",{set:function(e){this.isFocused!==e&&this.hostElement&&(this.isFocused=e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dragging",{set:function(e){if(this.isDragged!==e.value&&this.sliderSelection&&this.draghandleStart&&this.draghandleEnd){var t=this.sliderSelection.nativeElement,n=e.target;e.value?(this.renderer.addClass(t,"k-pressed"),this.renderer.addClass(n,"k-pressed")):(this.renderer.removeClass(t,"k-pressed"),this.renderer.removeClass(n,"k-pressed")),this.isDragged=e.value}},enumerable:!0,configurable:!0}),t.prototype.getProps=function(){return{disabled:this.disabled,fixedTickWidth:this.fixedTickWidth,largeStep:this.largeStep,max:this.max,min:this.min,readonly:this.readonly,reverse:this.reverse,rtl:this.localizationService.rtl,smallStep:this.smallStep,value:s.trimValueRange(this.max,this.min,this.value),vertical:this.vertical,buttons:!1}},t.prototype.attachElementEventHandlers=function(){var e=this,t=this.hostElement.nativeElement,n=!1,i=!1;this.ngZone.runOutsideAngular((function(){e.subscriptions.add(e.renderer.listen(t,"focusin",(function(){e.isFocused||e.ngZone.run((function(){e.focusChangedProgrammatically||e.onFocus.emit(),e.focused=!0}))}))),e.subscriptions.add(e.renderer.listen(t,"focusout",(function(t){e.isFocused&&(n?(t.relatedTarget!==e.draghandleStart.nativeElement&&t.relatedTarget!==e.draghandleEnd.nativeElement&&e.handleBlur(),n=!1):i||e.handleBlur())}))),e.subscriptions.add(e.renderer.listen(t,"mouseenter",(function(){i=!0}))),e.subscriptions.add(e.renderer.listen(t,"mouseleave",(function(){i=!1}))),e.subscriptions.add(e.renderer.listen(t,"keydown",(function(e){n=e.keyCode===p.Keys.Tab})))}))},i.__decorate([r.Input(),i.__metadata("design:type",Array)],t.prototype,"value",void 0),i.__decorate([r.ViewChild("draghandleStart",{static:!0}),i.__metadata("design:type",r.ElementRef)],t.prototype,"draghandleStart",void 0),i.__decorate([r.ViewChild("draghandleEnd",{static:!0}),i.__metadata("design:type",r.ElementRef)],t.prototype,"draghandleEnd",void 0),t=n=i.__decorate([r.Component({exportAs:"kendoRangeSlider",providers:[c.LocalizationService,{provide:c.L10N_PREFIX,useValue:"kendo.rangeslider"},{multi:!0,provide:o.NG_VALUE_ACCESSOR,useExisting:r.forwardRef((function(){return n}))},{provide:p.KendoInput,useExisting:r.forwardRef((function(){return n}))}],selector:"kendo-rangeslider",template:'\n <ng-container kendoSliderLocalizedMessages\n i18n-dragHandleStart="kendo.rangeslider.dragHandleStart|The title of the **Start** drag handle of the Slider."\n dragHandleStart="Drag"\n i18n-dragHandleEnd="kendo.rangeslider.dragHandleEnd|The title of the **End** drag handle of the Slider."\n dragHandleEnd="Drag"\n >\n\n <div class="k-slider-wrap" #wrap\n [class.k-slider-topleft]="tickPlacement === \'before\'"\n [class.k-slider-bottomright]="tickPlacement === \'after\'"\n [kendoEventsOutsideAngular]="{ click: onWrapClick, keydown: onKeyDown }"\n >\n <div class="k-slider-track-wrap">\n <ul kendoSliderTicks\n #ticks\n *ngIf="tickPlacement !== \'none\'"\n [tickTitle]="title"\n [vertical]="vertical"\n [step]="smallStep"\n [largeStep]="largeStep"\n [min]="min"\n [max]="max"\n [labelTemplate]="labelTemplate?.templateRef"\n [attr.aria-hidden]="true"\n >\n </ul>\n <div #track class="k-slider-track">\n <div #sliderSelection class="k-slider-selection">\n </div>\n <a #draghandleStart\n role="slider"\n [id]="startHandleId"\n [attr.tabindex]="disabled ? undefined : tabindex"\n [attr.aria-valuemin]="min"\n [attr.aria-valuemax]="max"\n [attr.aria-valuenow]="value ? value[0] : null"\n [attr.aria-valuetext]="valueText"\n [attr.aria-disabled]="disabled ? true : undefined"\n [attr.aria-readonly]="readonly ? true : undefined"\n [attr.aria-orientation]="vertical ? \'vertical\' : \'horizontal\'"\n [style.touch-action]="isDisabled ? \'\' : \'none\'"\n class="k-draghandle"\n [title]="textFor(\'dragHandleStart\')"\n kendoDraggable\n (kendoPress)="ifEnabled(handleDragPress ,$event)"\n (kendoDrag)="ifEnabled(onHandleDrag ,$event)"\n (kendoRelease)="ifEnabled(onHandleRelease, $event)"\n ></a>\n <a #draghandleEnd\n role="slider"\n [id]="endHandleId"\n [attr.tabindex]="disabled ? undefined : tabindex"\n [attr.aria-valuemin]="min"\n [attr.aria-valuemax]="max"\n [attr.aria-valuenow]="value ? value[1] : null"\n [attr.aria-valuetext]="valueText"\n [attr.aria-disabled]="disabled ? true : undefined"\n [attr.aria-readonly]="readonly ? true : undefined"\n [attr.aria-orientation]="vertical ? \'vertical\' : \'horizontal\'"\n [style.touch-action]="isDisabled ? \'\' : \'none\'"\n class="k-draghandle"\n [title]="textFor(\'dragHandleEnd\')"\n kendoDraggable\n (kendoPress)="ifEnabled(handleDragPress ,$event)"\n (kendoDrag)="ifEnabled(onHandleDrag ,$event)"\n (kendoRelease)="ifEnabled(onHandleRelease, $event)"\n ></a>\n </div>\n </div>\n <kendo-resize-sensor (resize)="sizeComponent()"></kendo-resize-sensor>\n </div>\n '}),i.__metadata("design:paramtypes",[c.LocalizationService,r.Injector,r.Renderer2,r.NgZone,r.ChangeDetectorRef,r.ElementRef])],t)}(f.SliderBase);t.RangeSliderComponent=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(5),a=n(2),s=n(3),u=n(8),c=n(9),l=n(4),d=n(7),p=n(12),h=n(32),f=function(){function e(e,t,n,i,o,a){var p=this;this.renderer=e,this.hostElement=t,this.localizationService=n,this.injector=i,this.changeDetector=o,this.ngZone=a,this.focusableId="k-"+s.guid(),this.disabled=!1,this.readonly=!1,this.tabindex=0,this.onFocus=new r.EventEmitter,this.onBlur=new r.EventEmitter,this.valueChange=new r.EventEmitter,this.hostClasses=!0,this.initialized=!1,this.hostClickSubscription=new d.Subscription,this._checked=!1,this._size="medium",this._trackRounded="full",this._thumbRounded="full",this.ngChange=function(e){},this.ngTouched=function(){},this.handleFocus=function(){p.isFocused||(p.focused=!0,s.hasObservers(p.onFocus)&&p.ngZone.run((function(){p.onFocus.emit()})))},this.handleBlur=function(e){var t=e&&e.relatedTarget;p.hostElement.nativeElement.contains(t)||(p.changeDetector.markForCheck(),p.focused=!1,(s.hasObservers(p.onBlur)||l.requiresZoneOnBlur(p.control))&&p.ngZone.run((function(){p.ngTouched(),p.onBlur.emit()})))},u.validatePackage(c.packageMetadata),this.direction=n.rtl?"rtl":"ltr",this.keyDownHandler=this.keyDownHandler.bind(this),this.clickHandler=this.clickHandler.bind(this)}var t;return t=e,Object.defineProperty(e.prototype,"checked",{get:function(){return this._checked},set:function(e){this.setHostClasses(e),this._checked=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(e){this.handleClasses(e,"size"),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"thumbRounded",{get:function(){return this._thumbRounded},set:function(e){this.handleThumbClasses(e),this._thumbRounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"trackRounded",{get:function(){return this._trackRounded},set:function(e){this.handleTrackClasses(e),this._trackRounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ieClass",{get:function(){return h.browser&&h.browser.msie},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaDisabled",{get:function(){return!!this.disabled||void 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaReadonly",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onLabelMessage",{get:function(){return this.onLabel||this.localizationService.get("on")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"offLabelMessage",{get:function(){return this.offLabel||this.localizationService.get("off")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isEnabled",{get:function(){return!this.disabled&&!this.readonly},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;if(this.hostElement){var t=this.hostElement.nativeElement;this.renderer.removeAttribute(t,"tabindex")}this.localizationChangeSubscription=this.localizationService.changes.pipe(p.skip(1)).subscribe((function(t){var n=t.rtl;e.direction=n?"rtl":"ltr"})),this.control=this.injector.get(o.NgControl,null),this.ngZone.onStable.pipe(p.take(1)).subscribe((function(){return e.initialized=!0}))},e.prototype.ngAfterViewInit=function(){var e=this.hostElement.nativeElement;this.attachHostClickHandler(),this.checked||e.classList.contains("k-switch-off")||this.renderer.addClass(e,"k-switch-off"),this.handleClasses(this.size,"size"),this.handleTrackClasses(this.trackRounded),this.handleThumbClasses(this.thumbRounded)},e.prototype.ngOnDestroy=function(){this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe(),this.hostClickSubscription&&this.hostClickSubscription.unsubscribe()},e.prototype.focus=function(){this.track&&this.track.nativeElement.focus()},e.prototype.blur=function(){this.track&&this.track.nativeElement.blur()},e.prototype.setDisabledState=function(e){this.disabled=e,this.changeDetector.markForCheck()},e.prototype.writeValue=function(e){this.checked=null!==e&&e,this.changeDetector.markForCheck()},e.prototype.registerOnChange=function(e){this.ngChange=e},e.prototype.registerOnTouched=function(e){this.ngTouched=e},e.prototype.keyDownHandler=function(e){var t=e.keyCode;!this.isEnabled||t!==s.Keys.Space&&t!==s.Keys.Enter||(this.changeValue(!this.checked),e.preventDefault())},e.prototype.clickHandler=function(){this.isEnabled&&this.changeValue(!this.checked)},e.prototype.isEmpty=function(){return!1},e.prototype.changeValue=function(e){var t=this;this.checked!==e&&this.ngZone.run((function(){t.checked=e,t.ngChange(e),t.valueChange.emit(e),t.changeDetector.markForCheck()}))},Object.defineProperty(e.prototype,"focused",{set:function(e){if(this.isFocused!==e&&this.hostElement){var t=this.hostElement.nativeElement;e?this.renderer.addClass(t,"k-focus"):this.renderer.removeClass(t,"k-focus"),this.isFocused=e}},enumerable:!0,configurable:!0}),e.prototype.attachHostClickHandler=function(){var e=this;this.ngZone.runOutsideAngular((function(){e.hostClickSubscription.add(e.renderer.listen(e.hostElement.nativeElement,"click",e.clickHandler))}))},e.prototype.setHostClasses=function(e){var t=this.hostElement.nativeElement;e?(this.renderer.removeClass(t,"k-switch-off"),this.renderer.addClass(t,"k-switch-on")):(this.renderer.removeClass(t,"k-switch-on"),this.renderer.addClass(t,"k-switch-off"))},e.prototype.handleClasses=function(e,t){var n=this.hostElement.nativeElement,i=l.getStylingClasses("switch",t,this[t],e);i.toRemove&&this.renderer.removeClass(n,i.toRemove),i.toAdd&&this.renderer.addClass(n,i.toAdd)},e.prototype.handleTrackClasses=function(e){var t=this.hostElement.nativeElement,n=this.track.nativeElement,i=l.getStylingClasses("switch","rounded",this.trackRounded,e);i.toRemove&&(this.renderer.removeClass(t,i.toRemove),this.renderer.removeClass(n,i.toRemove)),i.toAdd&&(this.renderer.addClass(t,i.toAdd),this.renderer.addClass(n,i.toAdd))},e.prototype.handleThumbClasses=function(e){var t=this.thumb.nativeElement,n=l.getStylingClasses("switch","rounded",this.thumbRounded,e);n.toRemove&&this.renderer.removeClass(t,n.toRemove),n.toAdd&&this.renderer.addClass(t,n.toAdd)},i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"focusableId",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"onLabel",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"offLabel",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[Boolean])],e.prototype,"checked",null),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"readonly",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"tabindex",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"size",null),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"thumbRounded",null),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"trackRounded",null),i.__decorate([r.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],e.prototype,"tabIndex",null),i.__decorate([r.Output("focus"),i.__metadata("design:type",r.EventEmitter)],e.prototype,"onFocus",void 0),i.__decorate([r.Output("blur"),i.__metadata("design:type",r.EventEmitter)],e.prototype,"onBlur",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"valueChange",void 0),i.__decorate([r.HostBinding("attr.dir"),i.__metadata("design:type",String)],e.prototype,"direction",void 0),i.__decorate([r.HostBinding("class.k-ie"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"ieClass",null),i.__decorate([r.HostBinding("attr.aria-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"ariaDisabled",null),i.__decorate([r.HostBinding("attr.aria-readonly"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"ariaReadonly",null),i.__decorate([r.HostBinding("class.k-switch"),i.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),i.__decorate([r.HostBinding("class.k-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"disabledClass",null),i.__decorate([r.ViewChild("track",{static:!0}),i.__metadata("design:type",Object)],e.prototype,"track",void 0),i.__decorate([r.ViewChild("thumb",{static:!0}),i.__metadata("design:type",Object)],e.prototype,"thumb",void 0),e=t=i.__decorate([r.Component({exportAs:"kendoSwitch",providers:[a.LocalizationService,{provide:a.L10N_PREFIX,useValue:"kendo.switch"},{multi:!0,provide:o.NG_VALUE_ACCESSOR,useExisting:r.forwardRef((function(){return t}))},{provide:s.KendoInput,useExisting:r.forwardRef((function(){return t}))}],selector:"kendo-switch",template:'\n <ng-container kendoSwitchLocalizedMessages\n i18n-on="kendo.switch.on|The **On** label of the Switch."\n on="ON"\n i18n-off="kendo.switch.off|The **Off** label of the Switch."\n off="OFF"\n >\n\n <span\n #track\n class="k-switch-track"\n [id]="focusableId"\n role="switch"\n [style.transitionDuration]="initialized ? \'200ms\' : \'0ms\'"\n [attr.aria-checked]="checked"\n [attr.tabindex]="(disabled ? undefined : tabIndex)"\n [kendoEventsOutsideAngular]="{ keydown: keyDownHandler, focus: handleFocus, blur: handleBlur }"\n >\n <span class="k-switch-label-on" [attr.aria-hidden]="true" >{{onLabelMessage}}</span>\n <span class="k-switch-label-off" [attr.aria-hidden]="true">{{offLabelMessage}}</span>\n </span>\n <span\n class="k-switch-thumb-wrap"\n tabindex="-1"\n [style.transitionDuration]="initialized ? \'200ms\' : \'0ms\'" [kendoEventsOutsideAngular]="{\n keydown: keyDownHandler,\n focus: handleFocus,\n blur: handleBlur\n }">\n <span #thumb class="k-switch-thumb"></span>\n </span>\n '}),i.__metadata("design:paramtypes",[r.Renderer2,r.ElementRef,a.LocalizationService,r.Injector,r.ChangeDetectorRef,r.NgZone])],e)}();t.SwitchComponent=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(3),a=function(){function e(e,t,n){this.renderer=e,this.inputElement=t,this.ngZone=n,this.hostClasses=!0,this.onFocus=new r.EventEmitter,this.onBlur=new r.EventEmitter,this.onValueChange=new r.EventEmitter,this.autoFillStart=new r.EventEmitter,this.autoFillEnd=new r.EventEmitter,this.listeners=[]}var t;return t=e,Object.defineProperty(e.prototype,"value",{get:function(){return this.inputElement.nativeElement.value},set:function(e){this.inputElement&&(this.inputElement.nativeElement.value=null==e?"":e,this.onValueChange.emit())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this.inputElement.nativeElement.id},set:function(e){this.renderer.setAttribute(this.inputElement.nativeElement,"id",e)},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){var e=this,t=this.inputElement.nativeElement;this.listeners=[this.renderer.listen(t,"focus",(function(){return e.onFocus.emit()})),this.renderer.listen(t,"blur",(function(){return e.onBlur.emit()}))],this.ngZone.runOutsideAngular((function(){e.renderer.listen(t,"animationstart",(function(t){"autoFillStart"===t.animationName?e.autoFillStart.emit():"autoFillEnd"===t.animationName&&e.autoFillEnd.emit()}))}))},e.prototype.ngOnDestroy=function(){this.listeners.forEach((function(e){return e()}))},i.__decorate([r.HostBinding("class.k-textbox"),r.HostBinding("class.k-input"),r.HostBinding("class.k-input-md"),r.HostBinding("class.k-rounded-md"),r.HostBinding("class.k-input-solid"),i.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"value",null),e=t=i.__decorate([r.Directive({selector:"input[kendoTextBox]",providers:[{provide:o.KendoInput,useExisting:r.forwardRef((function(){return t}))}]}),i.__metadata("design:paramtypes",[r.Renderer2,r.ElementRef,r.NgZone])],e)}();t.TextBoxDirective=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(5),a=n(3),s=n(4),u=n(2),c=n(7),l=n(12),d=function(){function e(e,t,n,i,o,a){this.renderer=e,this.element=t,this.zone=n,this.changeDetector=i,this.injector=o,this.elementClasses=!0,this.autofillClass=!0,this.valueChange=new r.EventEmitter,this.autoSize=!1,this.onFocus=new r.EventEmitter,this.onBlur=new r.EventEmitter,this.onValueChange=new r.EventEmitter,this.autoFillStart=new r.EventEmitter,this.autoFillEnd=new r.EventEmitter,this.listeners=[],this.ngChange=function(e){},this.ngTouched=function(){},this.direction=a?"rtl":"ltr"}var t;return t=e,Object.defineProperty(e.prototype,"id",{get:function(){return this.element.nativeElement.id},set:function(e){this.renderer.setAttribute(this.element.nativeElement,"id",e)},enumerable:!0,configurable:!0}),e.prototype.writeValue=function(e){this.elementValue=e,this.resize()},e.prototype.registerOnChange=function(e){this.ngChange=e},e.prototype.registerOnTouched=function(e){this.ngTouched=e},e.prototype.setDisabledState=function(e){this.setElementProperty("disabled",e)},e.prototype.ngOnInit=function(){var e=this,t=this.element.nativeElement;this.zone.runOutsideAngular((function(){e.listeners=[e.renderer.listen(t,"focus",e.handleFocus.bind(e)),e.renderer.listen(t,"blur",e.handleBlur.bind(e)),e.renderer.listen(t,"animationstart",(function(t){"autoFillStart"===t.animationName?e.autoFillStart.emit():"autoFillEnd"===t.animationName&&e.autoFillEnd.emit()}))],a.isDocumentAvailable()&&e.autoSize&&(e.resizeSubscription=c.fromEvent(window,"resize").pipe(l.debounceTime(50)).subscribe((function(){return e.resize()}))),e.inputSubscription=c.fromEvent(t,"input").subscribe(e.handleInput.bind(e))})),this.control=this.injector.get(o.NgControl,null)},e.prototype.ngOnChanges=function(e){var t=this,n=this.element.nativeElement;e.value&&(this.elementValue=this.value),e.autoSize&&(this.autoSize?(this.initialHeight=n.offsetHeight,this.renderer.setStyle(n,"resize","none")):(this.renderer.setStyle(n,"overflow-y","auto"),this.renderer.setStyle(n,"resize","both"),n.style.height=this.initialHeight+"px")),this.zone.onStable.pipe(l.take(1)).subscribe((function(){return t.resize()}))},e.prototype.ngOnDestroy=function(){this.listeners.forEach((function(e){return e()})),this.inputSubscription&&this.inputSubscription.unsubscribe(),this.resizeSubscription&&this.resizeSubscription.unsubscribe()},Object.defineProperty(e.prototype,"elementValue",{get:function(){return this.element?this.element.nativeElement.value:""},set:function(e){this.setElementProperty("value",null==e?"":e)},enumerable:!0,configurable:!0}),e.prototype.setElementProperty=function(e,t){this.element&&this.renderer.setProperty(this.element.nativeElement,e,t)},e.prototype.resize=function(){if(this.autoSize){var e=this.element.nativeElement;this.renderer.setStyle(e,"overflow-y","hidden"),e.style.height=this.initialHeight+"px";var t=e.scrollHeight;t>this.initialHeight&&(e.style.height=t+"px")}},e.prototype.handleInput=function(){var e=this,t=this.elementValue;this.value=t,(this.control||a.hasObservers(this.onValueChange)||a.hasObservers(this.valueChange))&&this.zone.run((function(){e.ngChange(t),e.onValueChange.emit(t),e.valueChange.emit(t),e.changeDetector.markForCheck()})),this.resize()},e.prototype.handleFocus=function(){var e=this;a.hasObservers(this.onFocus)&&this.zone.run((function(){e.onFocus.emit()}))},e.prototype.handleBlur=function(){var e=this;(a.hasObservers(this.onBlur)||s.requiresZoneOnBlur(this.control))&&this.zone.run((function(){e.ngTouched(),e.onBlur.emit(),e.changeDetector.markForCheck()}))},i.__decorate([r.HostBinding("class.k-textarea"),r.HostBinding("class.k-input"),r.HostBinding("class.k-input-md"),r.HostBinding("class.k-rounded-md"),r.HostBinding("class.k-input-solid"),i.__metadata("design:type",Boolean)],e.prototype,"elementClasses",void 0),i.__decorate([r.HostBinding("class.k-autofill"),i.__metadata("design:type",Boolean)],e.prototype,"autofillClass",void 0),i.__decorate([r.HostBinding("attr.dir"),i.__metadata("design:type",String)],e.prototype,"direction",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"valueChange",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"autoSize",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"value",void 0),e=t=i.__decorate([r.Directive({providers:[{provide:o.NG_VALUE_ACCESSOR,useExisting:r.forwardRef((function(){return t})),multi:!0},{provide:a.KendoInput,useExisting:r.forwardRef((function(){return t}))}],selector:"textarea[kendoTextArea]"}),i.__param(5,r.Optional()),i.__param(5,r.Inject(u.RTL)),i.__metadata("design:paramtypes",[r.Renderer2,r.ElementRef,r.NgZone,r.ChangeDetectorRef,r.Injector,Boolean])],e)}();t.TextAreaDirective=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MIN_DOC_LINK="http://www.telerik.com/kendo-angular-ui/components/inputs/api/NumericTextBoxComponent/#toc-min",t.MAX_DOC_LINK="http://www.telerik.com/kendo-angular-ui/components/inputs/api/NumericTextBoxComponent/#toc-max",t.POINT=".",t.INITIAL_SPIN_DELAY=500,t.SPIN_DELAY=50,t.EXPONENT_REGEX=/[eE][\-+]?([0-9]+)/},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(2),a=n(41),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=i.__decorate([r.Component({providers:[{provide:a.NumericTextBoxMessages,useExisting:r.forwardRef((function(){return n}))}],selector:"kendo-numerictextbox-messages",template:""}),i.__metadata("design:paramtypes",[o.LocalizationService])],t)}(a.NumericTextBoxMessages);t.NumericTextBoxCustomMessagesComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"decrement",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"increment",void 0),t}(n(2).ComponentMessages);t.NumericTextBoxMessages=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(5),a=n(2),s=n(8),u=n(9),c=n(89),l=n(3),d=n(11),p=n(4),h=Promise.resolve(null),f=function(){function e(e,t,n,i,o,a,c){var d=this;this.service=e,this.renderer=t,this.hostElement=n,this.ngZone=i,this.injector=o,this.changeDetector=a,this.focusableId="k-"+l.guid(),this.disabled=!1,this.readonly=!1,this.hostClasses=!0,this.prompt="_",this.promptPlaceholder=" ",this.includeLiterals=!1,this.maskOnFocus=!1,this.maskValidation=!0,this.tabindex=0,this.onFocus=new r.EventEmitter,this.onBlur=new r.EventEmitter,this.valueChange=new r.EventEmitter,this.focusClick=!1,this.defaultRules={"#":/[\d\s\+\-]/,"&":/[\S]/,0:/[\d]/,9:/[\d\s]/,"?":/[a-zA-Z\s]/,A:/[a-zA-Z0-9]/,C:/./,L:/[a-zA-Z]/,a:/[a-zA-Z0-9\s]/},this.isPasted=!1,this.selection=[0,0],this._size="medium",this._rounded="medium",this._fillMode="solid",this.handleFocus=function(){d.focused=!0,d.maskOnFocus&&d.emptyMask&&(d.updateInput(d.service.maskRaw(d.value)),d.ngZone.runOutsideAngular((function(){setTimeout((function(){d.setSelection(0,0)}),0)}))),l.hasObservers(d.onFocus)&&d.ngZone.run((function(){d.onFocus.emit()}))},this.handleClick=function(){if(d.focused&&!d.focusClick){d.focusClick=!0;var e=d.input.nativeElement;e.selectionStart===e.selectionEnd&&d.setFocusSelection()}},this.handleBlur=function(){d.changeDetector.markForCheck(),d.focused=!1,d.focusClick=!1,d.maskOnFocus&&d.emptyMask&&d.updateInput(d.maskedValue),(l.hasObservers(d.onBlur)||p.requiresZoneOnBlur(d.control))&&d.ngZone.run((function(){d.onTouched(),d.onBlur.emit()}))},this.onChange=function(e){},this.onTouched=function(){},s.validatePackage(u.packageMetadata),this.direction=c?"rtl":"ltr",this.updateService()}var t;return t=e,Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(e){this.handleClasses(e,"size"),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.handleClasses(e,"rounded"),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.handleClasses(e,"fillMode"),this._fillMode=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostDisabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rules",{get:function(){return this._rules||this.defaultRules},set:function(e){this._rules=Object.assign({},this.defaultRules,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.hostElement&&this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.control=this.injector.get(o.NgControl,null)},e.prototype.ngAfterViewInit=function(){var e=this;["size","rounded","fillMode"].forEach((function(t){e.handleClasses(e[t],t)}))},e.prototype.isEmpty=function(){if(this.input)return!Boolean(this.input.nativeElement.value)},e.prototype.handleDragDrop=function(){return!1},e.prototype.focus=function(){this.input&&(this.input.nativeElement.focus(),this.setFocusSelection())},e.prototype.blur=function(){this.input&&this.input.nativeElement.blur()},e.prototype.pasteHandler=function(e){var t=e.target,n=t.selectionStart,i=t.selectionEnd;i!==n&&(this.isPasted=!0,this.selection=[n,i])},e.prototype.inputHandler=function(e){var t,n=e.target.value,i=this.selection,r=i[0],o=i[1];if(!this.mask)return this.updateValue(n),void(this.isPasted=!1);if(this.isPasted){this.isPasted=!1;var a=this.maskedValue.length-o,s=n.length-a;t=this.service.maskInRange(n.slice(r,s),this.maskedValue,r,o)}else t=this.service.maskInput(n,this.maskedValue,e.target.selectionStart);this.updateInput(t.value,t.selection),this.updateValue(t.value)},e.prototype.ngOnChanges=function(e){var t=this;if(e.value&&(this.value=this.normalizeValue()),this.mask){var n=this.extractChanges(e);if(this.updateService(n),l.isChanged("value",e)){var i=this.service.maskRaw(this.value);i!==this.maskedValue&&this.updateInput(i)}else l.anyChanged(["promptPlaceholder","includeLiterals"],e)?h.then((function(){t.updateValue(t.maskedValue)})):this.updateInput(this.service.maskRaw(this.value))}else this.updateInput(this.value)},e.prototype.writeValue=function(e){this.value=this.normalizeValue(e),this.updateInput(this.service.maskRaw(this.value))},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this.changeDetector.markForCheck(),this.disabled=e},e.prototype.validate=function(e){return!1!==this.maskValidation&&this.mask&&this.service.validationValue(this.maskedValue)&&-1!==this.maskedValue.indexOf(this.prompt)?{patternError:{mask:this.mask,maskedValue:this.maskedValue,value:this.value}}:null},e.prototype.updateValue=function(e){this.mask&&!this.service.validationValue(e)?this.value="":this.value=this.service.rawValue(e),this.onChange(this.value),this.valueChange.emit(this.value)},e.prototype.updateInput=function(e,t){void 0===e&&(e=""),this.maskedValue=e;var n=this.maskOnFocus&&!this.focused&&this.emptyMask?"":e;this.renderer.setProperty(this.input.nativeElement,"value",n),void 0!==t&&this.setSelection(t,t)},e.prototype.extractChanges=function(e){return Object.keys(e).filter((function(e){return"rules"!==e})).reduce((function(t,n){return t[n]=e[n].currentValue,t}),{})},e.prototype.updateService=function(e){var t=Object.assign({includeLiterals:this.includeLiterals,mask:this.mask,prompt:this.prompt,promptPlaceholder:this.promptPlaceholder,rules:this.rules},e);this.service.update(t)},e.prototype.setSelection=function(e,t){void 0===e&&(e=this.selection[0]),void 0===t&&(t=this.selection[1]),this.focused&&d.invokeElementMethod(this.input,"setSelectionRange",e,t)},Object.defineProperty(e.prototype,"emptyMask",{get:function(){return this.service.maskRaw()===this.maskedValue},enumerable:!0,configurable:!0}),e.prototype.setFocusSelection=function(){var e=this.input.nativeElement.selectionStart,t=this.maskedValue?this.maskedValue.indexOf(this.prompt):0;t>=0&&t<e&&(this.selection=[t,t],this.setSelection())},Object.defineProperty(e.prototype,"focused",{get:function(){return this.isFocused},set:function(e){if(this.isFocused!==e&&this.hostElement){var t=this.hostElement.nativeElement;e?this.renderer.addClass(t,"k-focus"):this.renderer.removeClass(t,"k-focus"),this.isFocused=e}},enumerable:!0,configurable:!0}),e.prototype.normalizeValue=function(e){void 0===e&&(e=this.value);var t=p.isPresent(e);if(t&&"string"!=typeof e){if(r.isDevMode())throw new Error("The MaskedTextBox component supports only string values.");return String(e)}return t?e:""},e.prototype.handleClasses=function(e,t){var n=this.hostElement.nativeElement,i=p.getStylingClasses("input",t,this[t],e);i.toRemove&&this.renderer.removeClass(n,i.toRemove),i.toAdd&&this.renderer.addClass(n,i.toAdd)},i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"focusableId",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"readonly",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"title",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"size",null),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"rounded",null),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"fillMode",null),i.__decorate([r.HostBinding("attr.dir"),i.__metadata("design:type",String)],e.prototype,"direction",void 0),i.__decorate([r.HostBinding("class.k-input"),r.HostBinding("class.k-maskedtextbox"),i.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),i.__decorate([r.HostBinding("class.k-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"hostDisabledClass",null),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"mask",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"value",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"rules",null),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"prompt",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"promptPlaceholder",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"includeLiterals",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"maskOnFocus",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"maskValidation",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"tabindex",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],e.prototype,"tabIndex",null),i.__decorate([r.Output("focus"),i.__metadata("design:type",r.EventEmitter)],e.prototype,"onFocus",void 0),i.__decorate([r.Output("blur"),i.__metadata("design:type",r.EventEmitter)],e.prototype,"onBlur",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"valueChange",void 0),i.__decorate([r.ViewChild("input",{static:!0}),i.__metadata("design:type",r.ElementRef)],e.prototype,"input",void 0),i.__decorate([r.HostListener("paste",["$event"]),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Object]),i.__metadata("design:returntype",void 0)],e.prototype,"pasteHandler",null),i.__decorate([r.HostListener("input",["$event"]),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Object]),i.__metadata("design:returntype",void 0)],e.prototype,"inputHandler",null),e=t=i.__decorate([r.Component({exportAs:"kendoMaskedTextBox",providers:[c.MaskingService,{multi:!0,provide:o.NG_VALUE_ACCESSOR,useExisting:r.forwardRef((function(){return t}))},{multi:!0,provide:o.NG_VALIDATORS,useExisting:r.forwardRef((function(){return t}))},{provide:l.KendoInput,useExisting:r.forwardRef((function(){return t}))}],selector:"kendo-maskedtextbox",template:'\n <input type="text"\n #input\n autocomplete="off"\n autocorrect="off"\n autocapitalize="off"\n spellcheck="false"\n class="k-input-inner"\n [id]="focusableId"\n [tabindex]="tabIndex"\n [attr.title]="title"\n [disabled]="disabled"\n [readonly]="readonly"\n [kendoEventsOutsideAngular]="{\n focus: handleFocus,\n blur: handleBlur,\n click: handleClick,\n dragstart: handleDragDrop,\n drop: handleDragDrop\n }"\n />\n '}),i.__param(6,r.Optional()),i.__param(6,r.Inject(a.RTL)),i.__metadata("design:paramtypes",[c.MaskingService,r.Renderer2,r.ElementRef,r.NgZone,r.Injector,r.ChangeDetectorRef,Boolean])],e)}();t.MaskedTextBoxComponent=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(44),r=n(91),o=function(e){return(e||"").split("")},a=function(){function e(e){this.parse=e}return e.prototype.run=function(e,t){return void 0===t&&(t=""),e instanceof r.Stream?this.parse(e):this.parse(new r.Stream(o(e),o(t)))},e.prototype.map=function(t){var n=this;return new e((function(e){return n.parse(e).map(t)}))},e.prototype.chain=function(t){var n=this;return new e((function(e){return n.parse(e).chain((function(e,n){return t(e).run(n)}))}))},e.prototype.isLiteral=function(e){return this.run(e).type===i.ResultType.Literal},e}();t.Parser=a,t.mask=function(e){var t=e.prompt,n=e.promptPlaceholder;return function(e){return new a((function(r){for(;!r.eof();){var o=r.peek(),a=o.char,s=o.control;if(a===s&&s===t)return r.eat(),new i.Result(t,r,i.ResultType.Mask);if(e.test(a))return r.eat(),new i.Result(a,r,i.ResultType.Mask);if(a===n)return r.eat(),new i.Result(t,r,i.ResultType.Mask);r.eat_input()}return r.eat(),new i.Result(t,r,i.ResultType.Mask)}))}},t.literal=function(e){return new a((function(t){return t.peek().char===e?(t.eat(),new i.Result(e,t,i.ResultType.Literal)):new i.Result(e,t,i.ResultType.Literal)}))},t.unmask=function(e){return function(t){return new a((function(n){for(;!n.eof();){var r=n.peek(),o=r.char,a=r.control;if(o===e&&a===e)return n.eat(),new i.Result(o,n);if(t.test(o))return n.eat(),new i.Result(o,n);n.eat_input()}return n.eat(),new i.Result("",n)}))}},t.unliteral=function(e){return new a((function(t){return t.eof()?new i.Result("",t):(t.peek().char===e&&t.eat(),new i.Result(e,t))}))},t.token=function(e,t){return new a((function(n){var r=n.next().char,o=e[r];return"\\"===r?(r=n.next().char,new i.Result(t.literal(r),n)):o?new i.Result(t.mask(o),n):new i.Result(t.literal(r),n)}))},t.rawMask=function(e){var t=e.prompt,n=e.promptPlaceholder;return new a((function(e){var r=e.next().char;return r===t?new i.Result(n,e):new i.Result(r,e)}))},t.rawLiteral=function(e){return new a((function(t){var n=t.next().char;return e?new i.Result(n,t):new i.Result("",t)}))}},function(e,t,n){"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Literal=0]="Literal",e[e.Mask=1]="Mask",e[e.Undefined=2]="Undefined"}(i=t.ResultType||(t.ResultType={}));var r=function(){function e(e,t,n){void 0===n&&(n=i.Undefined),this.value=e,this.rest=t,this.type=n}return e.prototype.map=function(t){return new e(t(this.value),this.rest)},e.prototype.chain=function(e){return e(this.value,this.rest)},e.prototype.fold=function(e,t){return e(this.value,this.rest)},e.prototype.concat=function(e){return this.map((function(t,n){return e.chain((function(e,n){return t.concat([e])}))}))},e.prototype.toString=function(){return"Result({ value: '"+this.value+"', rest: "+this.rest+" })"},e}();t.Result=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(6),a=n(46),s=n(15),u=n(3),c=function(){function e(){}return e=i.__decorate([r.NgModule({declarations:[a.SliderTicksComponent,s.LabelTemplateDirective],exports:[s.LabelTemplateDirective,a.SliderTicksComponent,u.DraggableModule,u.EventsModule,u.ResizeSensorModule],imports:[o.CommonModule,u.DraggableModule,u.EventsModule,u.ResizeSensorModule]})],e)}();t.SlidersCommonModule=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(10),a=function(e){this.value=e,this.classes={"k-tick":!0}},s=function(){function e(){this.wrapperClasses="k-reset k-slider-items",this.ticks=[]}return e.prototype.ngOnChanges=function(e){this.createTicks()},e.prototype.createTicks=function(){for(var e=o.calculateTicksCount(this.min,this.max,this.step),t=this.largeStep,n={max:this.max,min:this.min,smallStep:this.step},i=[],r=0;r<e;r++)i.push(new a(o.calculateValueFromTick(r,n))),t&&r%t==0&&(i[r].large=!0,i[r].classes["k-tick-large"]=!0);i.length>0&&(Object.assign(i[0].classes,this.endTickClasses(!0)),Object.assign(i[i.length-1].classes,this.endTickClasses(!1))),this.ticks=i},e.prototype.endTickClasses=function(e){return{"k-first":e&&!this.vertical||!e&&this.vertical,"k-last":!e&&!this.vertical||e&&this.vertical}},i.__decorate([r.HostBinding("class"),i.__metadata("design:type",String)],e.prototype,"wrapperClasses",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function)],e.prototype,"tickTitle",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"vertical",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"step",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"largeStep",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"min",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"max",void 0),i.__decorate([r.Input(),i.__metadata("design:type",r.TemplateRef)],e.prototype,"labelTemplate",void 0),i.__decorate([r.ViewChildren("tickElement"),i.__metadata("design:type",r.QueryList)],e.prototype,"tickElements",void 0),e=i.__decorate([r.Component({selector:"[kendoSliderTicks]",template:'\n <li #tickElement *ngFor="let tick of ticks;"\n [ngClass]="tick.classes"\n title="{{ tickTitle(tick.value) }}"\n role="presentation"\n >\n <ng-container [ngSwitch]="tick.large">\n <span class="k-label" *ngSwitchCase="true">\n <ng-container [ngTemplateOutlet]="labelTemplate || defaultLabel" [ngTemplateOutletContext]="tick">\n </ng-container>\n </span>\n <ng-container *ngSwitchCase="false"> </ng-container>\n </ng-container>\n </li>\n\n <ng-template #defaultLabel let-value="value">\n {{ tickTitle(value) }}\n </ng-template>\n '})],e)}();t.SliderTicksComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(2),a=n(48),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,t=n=i.__decorate([r.Directive({providers:[{provide:a.SliderMessages,useExisting:r.forwardRef((function(){return n}))}],selector:"[kendoSliderLocalizedMessages]"}),i.__metadata("design:paramtypes",[o.LocalizationService])],t)}(a.SliderMessages);t.LocalizedSliderMessagesDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"decrement",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"increment",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"dragHandle",void 0),t}(n(2).ComponentMessages);t.SliderMessages=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(6),a=n(45),s=n(35),u=n(50),c=n(94),l=n(15),d=function(){function e(){}return e=i.__decorate([r.NgModule({declarations:[s.RangeSliderComponent,c.RangeSliderCustomMessagesComponent,u.LocalizedRangeSliderMessagesDirective],exports:[s.RangeSliderComponent,c.RangeSliderCustomMessagesComponent,u.LocalizedRangeSliderMessagesDirective,l.LabelTemplateDirective],imports:[o.CommonModule,a.SlidersCommonModule]})],e)}();t.RangeSliderModule=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(2),a=n(51),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,t=n=i.__decorate([r.Directive({providers:[{provide:a.RangeSliderMessages,useExisting:r.forwardRef((function(){return n}))}],selector:"[kendoSliderLocalizedMessages]"}),i.__metadata("design:paramtypes",[o.LocalizationService])],t)}(a.RangeSliderMessages);t.LocalizedRangeSliderMessagesDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"dragHandleStart",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"dragHandleEnd",void 0),t}(n(2).ComponentMessages);t.RangeSliderMessages=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(36),a=n(6),s=n(3),u=n(53),c=n(95),l=n(3),d=function(){function e(){}return e=i.__decorate([r.NgModule({declarations:[o.SwitchComponent,c.SwitchCustomMessagesComponent,u.LocalizedSwitchMessagesDirective],exports:[o.SwitchComponent,c.SwitchCustomMessagesComponent,u.LocalizedSwitchMessagesDirective],imports:[a.CommonModule,l.EventsModule,s.ResizeSensorModule]})],e)}();t.SwitchModule=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(2),a=n(54),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,t=n=i.__decorate([r.Directive({providers:[{provide:a.Messages,useExisting:r.forwardRef((function(){return n}))}],selector:"[kendoSwitchLocalizedMessages]"}),i.__metadata("design:paramtypes",[o.LocalizationService])],t)}(a.Messages);t.LocalizedSwitchMessagesDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"on",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"off",void 0),t}(n(2).ComponentMessages);t.Messages=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(2),a=n(41),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,t=n=i.__decorate([r.Directive({providers:[{provide:a.NumericTextBoxMessages,useExisting:r.forwardRef((function(){return n}))}],selector:"[kendoNumericTextBoxLocalizedMessages]"}),i.__metadata("design:paramtypes",[o.LocalizationService])],t)}(a.NumericTextBoxMessages);t.LocalizedNumericTextBoxMessagesDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(42),a=n(6),s=n(3),u=function(){function e(){}return e=i.__decorate([r.NgModule({declarations:[o.MaskedTextBoxComponent],exports:[o.MaskedTextBoxComponent],imports:[a.CommonModule,s.EventsModule]})],e)}();t.MaskedTextBoxModule=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(37),a=n(58),s=n(6),u=n(3),c=n(22),l=n(23),d=n(96),p=n(61),h=n(24),f=function(){function e(){}return e=i.__decorate([r.NgModule({declarations:[o.TextBoxDirective,a.TextBoxComponent,c.TextBoxSuffixTemplateDirective,l.TextBoxPrefixTemplateDirective,d.TextBoxCustomMessagesComponent,p.LocalizedTextBoxMessagesDirective],exports:[o.TextBoxDirective,a.TextBoxComponent,c.TextBoxSuffixTemplateDirective,l.TextBoxPrefixTemplateDirective,u.EventsModule,d.TextBoxCustomMessagesComponent,p.LocalizedTextBoxMessagesDirective,h.SHARED_DIRECTIVES],imports:[s.CommonModule,u.EventsModule,h.SharedModule]})],e)}();t.TextBoxModule=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(59),o=n(11),a=n(5),s=n(1),u=n(8),c=n(9),l=n(11),d=n(4),p=n(3),h=n(22),f=n(23),m=n(2),v=n(59),g=function(){function e(e,t,n,i,o,a){var l=this;this.localizationService=e,this.ngZone=t,this.changeDetector=n,this.renderer=i,this.injector=o,this.hostElement=a,this.focusableId="k-"+p.guid(),this.title="",this.disabled=!1,this.readonly=!1,this.tabindex=0,this.value=null,this.selectOnFocus=!1,this.showSuccessIcon=!1,this.showErrorIcon=!1,this.clearButton=!1,this.valueChange=new s.EventEmitter,this.inputFocus=new s.EventEmitter,this.inputBlur=new s.EventEmitter,this.onFocus=new s.EventEmitter,this.onBlur=new s.EventEmitter,this.hostClasses=!0,this._isFocused=!1,this.focusChangedProgrammatically=!1,this._size="medium",this._rounded="medium",this._fillMode="solid",this.handleInputFocus=function(){l.disabled||(l.selectOnFocus&&l.value&&l.ngZone.run((function(){setTimeout((function(){l.selectAll()}))})),p.hasObservers(l.onFocus)&&(l.isFocused||l.ngZone.run((function(){l.onFocus.emit()}))),p.hasObservers(l.inputFocus)&&(!l.focusChangedProgrammatically||l.focusChangedProgrammatically&&l.clearButtonClicked)&&l.ngZone.run((function(){l.inputFocus.emit()})),l.ngZone.run((function(){l.isFocused=!0})))},this.handleInputBlur=function(){l.changeDetector.markForCheck(),(p.hasObservers(l.inputBlur)||d.requiresZoneOnBlur(l.control))&&l.ngZone.run((function(){l.ngTouched(),l.inputBlur.emit()}))},this.handleInput=function(e){var t=v.isSafari(navigator.userAgent)&&r.isJapanese(e.target.value)?e.data:e.target.value;l.updateValue(t)},this.ngChange=function(e){},this.ngTouched=function(){},u.validatePackage(c.packageMetadata),this.direction=e.rtl?"rtl":"ltr"}var t;return t=e,Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(e){this.handleClasses(e,"size"),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.handleClasses(e,"rounded"),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.handleClasses(e,"fillMode"),this._fillMode=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.control=this.injector.get(a.NgControl,null),this.checkClearButton(),this.subscriptions=this.localizationService.changes.subscribe((function(t){var n=t.rtl;e.direction=n?"rtl":"ltr"}))},e.prototype.ngAfterViewInit=function(){var e=this,t=this.hostElement.nativeElement,n=!1,i=!1;this.ngZone.runOutsideAngular((function(){e.subscriptions.add(e.renderer.listen(t,"focusin",(function(){e.isFocused||e.ngZone.run((function(){e.onFocus.emit(),e.isFocused=!0}))}))),e.subscriptions.add(e.renderer.listen(t,"focusout",(function(t){e.isFocused&&(i?(o.closest(t.relatedTarget,(function(t){return t===e.hostElement.nativeElement}))||e.handleBlur(),i=!1):n||e.clearButtonClicked||e.handleBlur())}))),e.subscriptions.add(e.renderer.listen(t,"mouseenter",(function(){n=!0}))),e.subscriptions.add(e.renderer.listen(t,"mouseleave",(function(){n=!1}))),e.subscriptions.add(e.renderer.listen(t,"keydown",(function(e){i=e.keyCode===p.Keys.Tab})))}));["size","rounded","fillMode"].forEach((function(t){e.handleClasses(e[t],t)}))},e.prototype.ngOnChanges=function(e){(e.disabled||e.readonly||e.value)&&this.checkClearButton()},e.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},e.prototype.focus=function(){this.input&&(this.focusChangedProgrammatically=!0,this.isFocused=!0,this.input.nativeElement.focus(),this.focusChangedProgrammatically=!1)},e.prototype.blur=function(){this.focusChangedProgrammatically=!0;var e=this.hostElement.nativeElement.querySelector(":focus");e&&e.blur(),this.isFocused=!1,this.focusChangedProgrammatically=!1},e.prototype.clearTitle=function(){return this.localizationService.get("clear")},e.prototype.checkClearButton=function(){this.showClearButton=!this.disabled&&!this.readonly&&this.clearButton&&!!this.value},e.prototype.clearValue=function(e){e&&e.preventDefault(),this.clearButtonClicked=!0,this.input.nativeElement.value="",this.input.nativeElement.focus(),this.updateValue(""),this.checkClearButton(),this.clearButtonClicked=!1},e.prototype.writeValue=function(e){this.value=e,this.checkClearButton()},e.prototype.registerOnChange=function(e){this.ngChange=e},e.prototype.registerOnTouched=function(e){this.ngTouched=e},e.prototype.setDisabledState=function(e){this.changeDetector.markForCheck(),this.disabled=e},e.prototype.showErrorsInitial=function(){if(!this.control)return!1;var e=this.control,t=e.invalid,n=e.dirty,i=e.touched;return t&&(n||i)},e.prototype.showSuccessInitial=function(){if(!this.control)return!1;var e=this.control,t=e.valid,n=e.dirty,i=e.touched;return t&&(n||i)},Object.defineProperty(e.prototype,"successIconClasses",{get:function(){return this.successIcon?""+this.successIcon:"k-input-validation-icon k-icon k-i-check"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"errorIconClasses",{get:function(){return this.errorIcon?""+this.errorIcon:"k-input-validation-icon k-icon k-i-warning"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"clearButtonClasses",{get:function(){return this.clearButtonIcon?this.clearButtonIcon:"k-icon k-i-x"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasErrors",{get:function(){return"initial"===this.showErrorIcon?this.showErrorsInitial():this.showErrorIcon},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isSuccessful",{get:function(){return"initial"===this.showSuccessIcon?this.showSuccessInitial():this.showSuccessIcon},enumerable:!0,configurable:!0}),e.prototype.setSelection=function(e,t){this.isFocused&&l.invokeElementMethod(this.input,"setSelectionRange",e,t)},e.prototype.selectAll=function(){this.value&&this.setSelection(0,this.value.length)},e.prototype.updateValue=function(e){var t=this;d.areSame(this.value,e)||this.ngZone.run((function(){t.value=e,t.ngChange(e),t.valueChange.emit(e),t.checkClearButton(),t.changeDetector.markForCheck()}))},Object.defineProperty(e.prototype,"isFocused",{get:function(){return this._isFocused},set:function(e){if(this._isFocused!==e&&this.hostElement){var t=this.hostElement.nativeElement;e&&!this.disabled?this.renderer.addClass(t,"k-focus"):this.renderer.removeClass(t,"k-focus"),this._isFocused=e}},enumerable:!0,configurable:!0}),e.prototype.handleBlur=function(){var e=this;this.ngZone.run((function(){e.focusChangedProgrammatically||e.onBlur.emit(),e.isFocused=!1}))},e.prototype.handleClasses=function(e,t){var n=this.hostElement.nativeElement,i=d.getStylingClasses("input",t,this[t],e);i.toRemove&&this.renderer.removeClass(n,i.toRemove),i.toAdd&&this.renderer.addClass(n,i.toAdd)},i.__decorate([s.Input(),i.__metadata("design:type",String)],e.prototype,"focusableId",void 0),i.__decorate([s.Input(),i.__metadata("design:type",String)],e.prototype,"title",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Boolean)],e.prototype,"readonly",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Number)],e.prototype,"tabindex",void 0),i.__decorate([s.Input(),i.__metadata("design:type",String)],e.prototype,"value",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Boolean)],e.prototype,"selectOnFocus",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Object)],e.prototype,"showSuccessIcon",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Object)],e.prototype,"showErrorIcon",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Boolean)],e.prototype,"clearButton",void 0),i.__decorate([s.Input(),i.__metadata("design:type",String)],e.prototype,"successIcon",void 0),i.__decorate([s.Input(),i.__metadata("design:type",String)],e.prototype,"errorIcon",void 0),i.__decorate([s.Input(),i.__metadata("design:type",String)],e.prototype,"clearButtonIcon",void 0),i.__decorate([s.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"size",null),i.__decorate([s.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"rounded",null),i.__decorate([s.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"fillMode",null),i.__decorate([s.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],e.prototype,"tabIndex",null),i.__decorate([s.Input(),i.__metadata("design:type",String)],e.prototype,"placeholder",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Number)],e.prototype,"maxlength",void 0),i.__decorate([s.Output(),i.__metadata("design:type",s.EventEmitter)],e.prototype,"valueChange",void 0),i.__decorate([s.Output(),i.__metadata("design:type",s.EventEmitter)],e.prototype,"inputFocus",void 0),i.__decorate([s.Output(),i.__metadata("design:type",s.EventEmitter)],e.prototype,"inputBlur",void 0),i.__decorate([s.Output("focus"),i.__metadata("design:type",s.EventEmitter)],e.prototype,"onFocus",void 0),i.__decorate([s.Output("blur"),i.__metadata("design:type",s.EventEmitter)],e.prototype,"onBlur",void 0),i.__decorate([s.ViewChild("input",{static:!0}),i.__metadata("design:type",s.ElementRef)],e.prototype,"input",void 0),i.__decorate([s.ContentChild(h.TextBoxSuffixTemplateDirective,{static:!1}),i.__metadata("design:type",h.TextBoxSuffixTemplateDirective)],e.prototype,"suffixTemplate",void 0),i.__decorate([s.ContentChild(f.TextBoxPrefixTemplateDirective,{static:!1}),i.__metadata("design:type",f.TextBoxPrefixTemplateDirective)],e.prototype,"prefixTemplate",void 0),i.__decorate([s.HostBinding("class.k-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"disabledClass",null),i.__decorate([s.HostBinding("class.k-textbox"),s.HostBinding("class.k-input"),i.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),i.__decorate([s.HostBinding("attr.dir"),i.__metadata("design:type",String)],e.prototype,"direction",void 0),e=t=i.__decorate([s.Component({exportAs:"kendoTextBox",providers:[m.LocalizationService,{provide:m.L10N_PREFIX,useValue:"kendo.textbox"},{provide:a.NG_VALUE_ACCESSOR,useExisting:s.forwardRef((function(){return t})),multi:!0},{provide:p.KendoInput,useExisting:s.forwardRef((function(){return t}))}],selector:"kendo-textbox",template:'\n <ng-container kendoTextBoxLocalizedMessages\n i18n-clear="kendo.textbox.clear|The title for the **Clear** button in the TextBox."\n clear="Clear">\n </ng-container>\n <span class="k-input-prefix">\n <ng-template\n *ngIf="prefixTemplate"\n [ngTemplateOutlet]="prefixTemplate?.templateRef">\n </ng-template>\n </span>\n <input #input\n class="k-input-inner"\n [id]="focusableId"\n [disabled]="disabled"\n [readonly]="readonly"\n [attr.tabindex]="disabled ? undefined : tabindex"\n [value]="value"\n [attr.placeholder]="placeholder"\n [attr.title]="title"\n [attr.maxlength]="maxlength"\n [kendoEventsOutsideAngular]="{\n focus: handleInputFocus,\n blur: handleInputBlur,\n input: handleInput}"\n />\n <span\n role="button"\n class="k-clear-value"\n *ngIf="showClearButton"\n (click)="clearValue()"\n (mousedown)="$event.preventDefault()"\n [tabindex]="tabIndex"\n [attr.aria-label]="clearTitle()"\n [title]="clearTitle()"\n (keydown.enter)="clearValue($event)"\n (keydown.space)="clearValue($event)">\n <span [ngClass]="clearButtonClasses"></span>\n </span>\n <span *ngIf="hasErrors" [ngClass]="errorIconClasses"></span>\n <span *ngIf="isSuccessful" [ngClass]="successIconClasses"></span>\n <span class="k-input-suffix">\n <ng-template\n *ngIf="suffixTemplate"\n [ngTemplateOutlet]="suffixTemplate?.templateRef">\n </ng-template>\n </span>\n '}),i.__metadata("design:paramtypes",[m.LocalizationService,s.NgZone,s.ChangeDetectorRef,s.Renderer2,s.Injector,s.ElementRef])],e)}();t.TextBoxComponent=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(32);t.isSafari=function(e){return i.detectDesktopBrowser(e).safari||i.detectMobileOS(e)&&"mobilesafari"===i.detectMobileOS(e).browser},t.isJapanese=function(e){return/[\u3000-\u303F]|[\u3040-\u309F]|[\u30A0-\u30FF]|[\uFF00-\uFFEF]|[\u4E00-\u9FAF]|[\u2605-\u2606]|[\u2190-\u2195]|\u203B/g.test(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"clear",void 0),t}(n(2).ComponentMessages);t.TextBoxMessages=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(2),a=n(60),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,t=n=i.__decorate([r.Directive({providers:[{provide:a.TextBoxMessages,useExisting:r.forwardRef((function(){return n}))}],selector:"[kendoTextBoxLocalizedMessages]"}),i.__metadata("design:paramtypes",[o.LocalizationService])],t)}(a.TextBoxMessages);t.LocalizedTextBoxMessagesDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=function(){function e(){this.hostClass=!0}return i.__decorate([r.HostBinding("class.k-input-separator"),i.__metadata("design:type",Boolean)],e.prototype,"hostClass",void 0),e=i.__decorate([r.Component({selector:"kendo-input-separator, kendo-textbox-separator",template:""})],e)}();t.InputSeparatorComponent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(6),a=n(64),s=n(3),u=n(65),c=n(24),l=function(){function e(){}return e=i.__decorate([r.NgModule({declarations:[a.TextAreaComponent,u.TextAreaSuffixComponent],exports:[a.TextAreaComponent,s.EventsModule,u.TextAreaSuffixComponent,c.SHARED_DIRECTIVES],imports:[o.CommonModule,s.EventsModule,c.SharedModule]})],e)}();t.TextAreaModule=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(7),a=n(12),s=n(5),u=n(3),c=n(2),l=n(97),d=n(4),p=n(11),h=n(11),f=n(8),m=n(9),v={vertical:"k-resize-vertical",horizontal:"k-resize-horizontal",both:"k-resize-both",none:"k-resize-none",auto:"k-resize-none"},g=function(e){function t(t,n,i,o,a,s){var c=e.call(this,t,n,i,o,a,s)||this;return c.localizationService=t,c.ngZone=n,c.changeDetector=i,c.renderer=o,c.injector=a,c.hostElement=s,c.focusableId="k-"+u.guid(),c.hostClasses=!0,c.flow="vertical",c.tabindex=0,c.resizable="vertical",c.onFocus=new r.EventEmitter,c.onBlur=new r.EventEmitter,c.valueChange=new r.EventEmitter,c._size="medium",c._rounded="medium",c._fillMode="solid",c.handleInput=function(e){var t=e.target.value;c.updateValue(t),c.resize()},c.handleInputFocus=function(){c.disabled||(c.selectOnFocus&&c.value&&c.ngZone.run((function(){setTimeout((function(){c.selectAll()}))})),u.hasObservers(c.onFocus)&&(c.isFocused||c.ngZone.run((function(){c.onFocus.emit()}))),u.hasObservers(c.inputFocus)&&(c.focusChangedProgrammatically||c.ngZone.run((function(){c.inputFocus.emit()}))),c.ngZone.run((function(){c.isFocused=!0})))},f.validatePackage(m.packageMetadata),c.direction=t.rtl?"rtl":"ltr",c}var n;return i.__extends(t,e),n=t,Object.defineProperty(t.prototype,"flowCol",{get:function(){return"vertical"===this.flow},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"flowRow",{get:function(){return"horizontal"===this.flow},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this._size},set:function(e){this.handleClasses(e,"size"),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.handleClasses(e,"rounded"),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.handleClasses(e,"fillMode"),this._fillMode=e},enumerable:!0,configurable:!0}),t.prototype.ngAfterViewInit=function(){var e=this,t=this.hostElement.nativeElement,n=!1,i=!1;this.ngZone.runOutsideAngular((function(){e.subscriptions.add(e.renderer.listen(t,"focusin",(function(){e.isFocused||e.ngZone.run((function(){e.onFocus.emit(),e.isFocused=!0}))}))),e.subscriptions.add(e.renderer.listen(t,"focusout",(function(t){e.isFocused&&(i?(h.closest(t.relatedTarget,(function(t){return t===e.hostElement.nativeElement}))||e.handleBlur(),i=!1):n||e.handleBlur())}))),e.subscriptions.add(e.renderer.listen(t,"mouseenter",(function(){n=!0}))),e.subscriptions.add(e.renderer.listen(t,"mouseleave",(function(){n=!1}))),e.subscriptions.add(e.renderer.listen(t,"keydown",(function(e){i=e.keyCode===u.Keys.Tab}))),e.handleFlow()}));["size","rounded","fillMode"].forEach((function(t){e.handleClasses(e[t],t)}))},t.prototype.ngOnInit=function(){var e=this;this.control=this.injector.get(s.NgControl,null),u.isDocumentAvailable()&&"auto"===this.resizable&&(this.resizeSubscription=o.fromEvent(window,"resize").pipe(a.debounceTime(50)).subscribe((function(){return e.resize()}))),this.hostElement&&this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.subscriptions=this.localizationService.changes.subscribe((function(t){var n=t.rtl;e.direction=n?"rtl":"ltr"}))},t.prototype.ngOnChanges=function(e){var t=this.hostElement.nativeElement,n=this.input.nativeElement;e.flow&&this.handleFlow(),e.resizable&&("auto"===this.resizable?this.initialHeight=n.offsetHeight:(this.renderer.setStyle(n,"overflow-y","auto"),this.renderer.setStyle(n,"resize","both"),n.style.height=this.initialHeight+"px")),e.cols&&(d.isPresent(e.cols.currentValue)?this.renderer.setStyle(t,"width","auto"):this.renderer.removeStyle(t,"width"))},t.prototype.ngAfterViewChecked=function(){this.resize()},t.prototype.writeValue=function(e){this.value=e},t.prototype.registerOnChange=function(e){this.ngChange=e},t.prototype.registerOnTouched=function(e){this.ngTouched=e},t.prototype.updateValue=function(e){var t=this;d.areSame(this.value,e)||this.ngZone.run((function(){t.value=e,t.ngChange(e),t.valueChange.emit(e),t.changeDetector.markForCheck()}))},t.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this),this.resizeSubscription&&this.resizeSubscription.unsubscribe()},Object.defineProperty(t.prototype,"resizableClass",{get:function(){return v[this.resizable]},enumerable:!0,configurable:!0}),t.prototype.focus=function(){this.input&&(this.focusChangedProgrammatically=!0,this.isFocused=!0,this.input.nativeElement.focus(),this.focusChangedProgrammatically=!1)},t.prototype.blur=function(){this.focusChangedProgrammatically=!0;var e=this.hostElement.nativeElement.querySelector(":focus");e&&e.blur(),this.isFocused=!1,this.focusChangedProgrammatically=!1},t.prototype.resize=function(){if("auto"===this.resizable){var e=this.input.nativeElement;this.renderer.setStyle(e,"overflow-y","hidden"),this.renderer.setStyle(e,"height",this.initialHeight+"px");var t=e.scrollHeight;t>this.initialHeight&&(e.style.height=t+"px")}},Object.defineProperty(t.prototype,"isFocused",{get:function(){return this._isFocused},set:function(e){if(this._isFocused!==e&&this.hostElement){var t=this.hostElement.nativeElement;e&&!this.disabled?this.renderer.addClass(t,"k-focus"):this.renderer.removeClass(t,"k-focus"),this._isFocused=e}},enumerable:!0,configurable:!0}),t.prototype.handleBlur=function(){var e=this;this.ngZone.run((function(){e.focusChangedProgrammatically||e.onBlur.emit(),e.isFocused=!1}))},t.prototype.setSelection=function(e,t){this.isFocused&&p.invokeElementMethod(this.input,"setSelectionRange",e,t)},t.prototype.selectAll=function(){this.value&&this.setSelection(0,this.value.length)},t.prototype.handleClasses=function(e,t){var n=this.hostElement.nativeElement,i=d.getStylingClasses("input",t,this[t],e);i.toRemove&&this.renderer.removeClass(n,i.toRemove),i.toAdd&&this.renderer.addClass(n,i.toAdd)},t.prototype.handleFlow=function(){var e="vertical"===this.flow,t=this.hostElement.nativeElement,n=this.input.nativeElement,i=t.children[1];this.renderer.setStyle(n,"flex",e?"none":"1"),i&&this.renderer.setStyle(i,"align-items",e?"center":"start")},i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"focusableId",void 0),i.__decorate([r.HostBinding("class.k-textarea"),r.HostBinding("class.k-input"),i.__metadata("design:type",Boolean)],t.prototype,"hostClasses",void 0),i.__decorate([r.HostBinding("class.!k-flex-col"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],t.prototype,"flowCol",null),i.__decorate([r.HostBinding("class.!k-flex-row"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],t.prototype,"flowRow",null),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"flow",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],t.prototype,"rows",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],t.prototype,"cols",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],t.prototype,"maxlength",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],t.prototype,"tabindex",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],t.prototype,"tabIndex",null),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"resizable",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],t.prototype,"size",null),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],t.prototype,"rounded",null),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],t.prototype,"fillMode",null),i.__decorate([r.Output("focus"),i.__metadata("design:type",r.EventEmitter)],t.prototype,"onFocus",void 0),i.__decorate([r.Output("blur"),i.__metadata("design:type",r.EventEmitter)],t.prototype,"onBlur",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],t.prototype,"valueChange",void 0),t=n=i.__decorate([r.Component({exportAs:"kendoTextArea",providers:[c.LocalizationService,{provide:c.L10N_PREFIX,useValue:"kendo.textarea"},{provide:s.NG_VALUE_ACCESSOR,useExisting:r.forwardRef((function(){return n})),multi:!0},{provide:u.KendoInput,useExisting:r.forwardRef((function(){return n}))}],selector:"kendo-textarea",template:'\n <textarea\n #input\n [attr.aria-multiline]="true"\n [attr.aria-disabled]="disabled ? true : undefined"\n [attr.aria-readonly]="readonly ? true : undefined"\n class="k-input-inner"\n [ngClass]="resizableClass"\n [id]="focusableId"\n [value]="value"\n [attr.placeholder]="placeholder"\n [disabled]="disabled"\n [readonly]="readonly"\n [attr.rows]="rows"\n [attr.cols]="cols"\n [attr.tabindex]="tabIndex"\n [attr.title]="title"\n [attr.maxlength]="maxlength"\n [kendoEventsOutsideAngular]="{\n focus: handleInputFocus,\n blur: handleInputBlur,\n input: handleInput}">\n </textarea>\n <ng-content select="kendo-textarea-suffix"></ng-content>\n ',styles:["\n :host {\n display: inline-flex;\n }\n "]}),i.__metadata("design:paramtypes",[c.LocalizationService,r.NgZone,r.ChangeDetectorRef,r.Renderer2,r.Injector,r.ElementRef])],t)}(l.TextFieldsBase);t.TextAreaComponent=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=function(){function e(){this.hostClass=!0}return i.__decorate([r.HostBinding("class.k-input-suffix"),i.__metadata("design:type",Boolean)],e.prototype,"hostClass",void 0),e=i.__decorate([r.Component({exportAs:"kendoTextAreaSuffix",selector:"kendo-textarea-suffix",template:"<ng-content></ng-content>"})],e)}();t.TextAreaSuffixComponent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(6),a=n(67),s=n(3),u=n(20),c=n(21),l=n(68),d=n(29),p=n(28),h=n(70),f=n(71),m=n(72),v=n(25),g=n(110),y=n(74),_=n(111),b=n(112),C=n(113),k=n(114),w=[l.ColorPickerComponent,d.ColorPaletteComponent,p.ColorGradientComponent,v.FlatColorPickerComponent,y.LocalizedColorPickerMessagesDirective,g.ColorPickerCustomMessagesComponent],x=[h.ColorInputComponent,_.FocusOnDomReadyDirective,C.ContrastComponent,b.ContrastValidationComponent,f.FlatColorPickerHeaderComponent,m.FlatColorPickerActionButtonsComponent,k.ColorContrastSvgComponent],S=function(){function e(){}return e=i.__decorate([r.NgModule({declarations:[w,x],exports:[w],imports:[u.SliderModule,c.NumericTextBoxModule,o.CommonModule,a.PopupModule,s.DraggableModule]})],e)}();t.ColorPickerModule=S},function(e,t){e.exports=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(12),o=n(1),a=n(5),s=n(7),u=n(25),c=n(67),l=n(8),d=n(3),p=n(2),h=n(9),f=n(27),m=n(16),v=n(13),g=n(4),y=n(69),_=n(14),b=["focus","blur"],C=function(){function e(e,t,n,i,r,a){var u=this;this.host=e,this.popupService=t,this.cdr=n,this.localizationService=i,this.ngZone=r,this.renderer=a,this.hostClasses=!0,this.role="listbox",this.views=["gradient","palette"],this.readonly=!1,this.disabled=!1,this.format="rgba",this.clearButton=!0,this.preview=!1,this.actionsLayout="end",this.valueChange=new o.EventEmitter,this.open=new o.EventEmitter,this.close=new o.EventEmitter,this.onFocus=new o.EventEmitter,this.onBlur=new o.EventEmitter,this.cancel=new o.EventEmitter,this.activeColorClick=new o.EventEmitter,this.activeViewChange=new o.EventEmitter,this.isFocused=!1,this._tabindex=0,this._popupSettings={animate:!0},this._paletteSettings={},this._gradientSettings={opacity:!0,delay:0},this._size="medium",this._rounded="medium",this._fillMode="solid",this.subscriptions=new s.Subscription,this.notifyNgTouched=function(){},this.notifyNgChanged=function(){},this.domFocusListener=function(e){return e.stopImmediatePropagation()},l.validatePackage(h.packageMetadata),this.dynamicRTLSubscription=this.localizationService.changes.subscribe((function(e){var t=e.rtl;u.direction=t?"rtl":"ltr"}))}var t;return t=e,Object.defineProperty(e.prototype,"focusedClass",{get:function(){return this.isFocused},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaReadonly",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaExpanded",{get:function(){return this.isOpen},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostTabindex",{get:function(){return this.tabindex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"view",{get:function(){return this.views&&this.views.length>0?this.views[0]:null},set:function(e){this.views=[e]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=v.parseColor(e,this.format,this.gradientSettings.opacity)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign(this._popupSettings,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paletteSettings",{get:function(){return this._paletteSettings},set:function(e){this._paletteSettings=Object.assign(this._paletteSettings,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gradientSettings",{get:function(){return this._gradientSettings},set:function(e){this._gradientSettings=Object.assign(this._gradientSettings,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabindex",{get:function(){return this.disabled?void 0:this._tabindex},set:function(e){var t=Number(e);this._tabindex=isNaN(t)?0:t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(e){this.handleClasses(e,"size"),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.handleClasses(e,"rounded"),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.handleClasses(e,"fillMode"),this._fillMode=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isOpen",{get:function(){return g.isPresent(this.popupRef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"iconStyles",{get:function(){return this.iconClass?this.iconClass:this.icon?"k-icon k-i-"+this.icon:void 0},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e="name"!==this.format?_.DEFAULT_PRESET:_.DEFAULT_ACCESSIBLE_PRESET,t=this._paletteSettings.palette,n="string"==typeof t&&f.PALETTEPRESETS[t]?f.PALETTEPRESETS[t].columns:void 0;this._paletteSettings={palette:t||e,tileSize:this._paletteSettings.tileSize||24,columns:this._paletteSettings.columns||n||10}},e.prototype.ngAfterViewInit=function(){var e=this;["size","rounded","fillMode"].forEach((function(t){e.handleClasses(e[t],t)})),this.setHostElementAriaLabel(),this.handleHostId(),this.initDomEvents()},e.prototype.ngOnChanges=function(e){e.format&&"name"===e.format.currentValue&&(this.activeView="palette"),"gradient"===this.activeView&&this.gradientSettings.opacity&&(this.format="rgba",this.value=v.parseColor(this.value,this.format,this.gradientSettings.opacity)),d.isChanged("value",e)&&this.setHostElementAriaLabel()},e.prototype.ngOnDestroy=function(){this.closePopup(),this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe(),this.subscriptions.unsubscribe(),this.handleDomEvents("remove",b)},e.prototype.handleCancelEvent=function(e){this.cancel.emit(e)},e.prototype.togglePopup=function(){this.focus(),this.toggleWithEvents(!this.isOpen)},e.prototype.handleWrapperClick=function(e){var t=this;if(!this.disabled){if(this.focus(),d.closest(e.target,(function(e){return e===t.activeColor.nativeElement}))){var n=new m.ActiveColorClickEvent(this.value);return this.activeColorClick.emit(n),void(n.isOpenPrevented()&&!this.isOpen||this.toggleWithEvents(!this.isOpen))}this.toggleWithEvents(!this.isOpen)}},e.prototype.focus=function(){this.isFocused=!0,this.host.nativeElement.focus()},e.prototype.handleWrapperFocus=function(){var e=this;this.isFocused||this.ngZone.run((function(){e.focus(),e.onFocus.emit()}))},e.prototype.blur=function(){this.isFocused=!1,this.host.nativeElement.blur(),this.notifyNgTouched()},e.prototype.handleWrapperBlur=function(){var e=this;this.isOpen||this.ngZone.run((function(){e.onBlur.emit(),e.isFocused=!1}))},e.prototype.reset=function(){g.isPresent(this.value)&&(this._value=void 0,this.setHostElementAriaLabel(),this.notifyNgChanged(void 0))},e.prototype.toggle=function(e){this.disabled||this.readonly||(this.cdr.markForCheck(),this.closePopup(),(e=g.isPresent(e)?e:!this.isOpen)&&this.openPopup())},e.prototype.handleValueChange=function(e){var t=v.parseColor(e,this.format,this.gradientSettings.opacity);t!==this.value&&(this.value=t,this.valueChange.emit(t),this.setHostElementAriaLabel(),this.notifyNgChanged(t))},e.prototype.handlePopupBlur=function(e){this.popupBlurInvalid(e)||(this.isFocused=!1,this.onBlur.emit(),this.notifyNgTouched(),this.toggleWithEvents(!1))},e.prototype.writeValue=function(e){this.value=e},e.prototype.registerOnChange=function(e){this.notifyNgChanged=e},e.prototype.registerOnTouched=function(e){this.notifyNgTouched=e},e.prototype.setDisabledState=function(e){this.cdr.markForCheck(),this.disabled=e},e.prototype.handleWrapperKeyDown=function(e){var t=this;e.keyCode!==d.Keys.ArrowDown&&e.keyCode!==d.Keys.Enter||(e.preventDefault(),this.ngZone.run((function(){t.toggleWithEvents(!0)})))},e.prototype.handlePopupKeyDown=function(e){if(e.keyCode===d.Keys.Escape&&(this.toggleWithEvents(!1),this.host.nativeElement.focus()),e.keyCode===d.Keys.Tab){var t=e.shiftKey?this.firstFocusableElement.nativeElement:this.lastFocusableElement.nativeElement,n=e.shiftKey?this.lastFocusableElement.nativeElement:this.firstFocusableElement.nativeElement;e.target===t&&(e.preventDefault(),n.focus())}},e.prototype.isEmpty=function(){return!1},e.prototype.setHostElementAriaLabel=function(){var e=""+(this.value?this.value:this.localizationService.get("colorPickerNoColor"));this.renderer.setAttribute(this.host.nativeElement,"aria-label",e)},e.prototype.handleClasses=function(e,t){var n=this.host.nativeElement,i=g.getStylingClasses("picker",t,this[t],e);i.toRemove&&this.renderer.removeClass(n,i.toRemove),i.toAdd&&this.renderer.addClass(n,i.toAdd)},e.prototype.popupBlurInvalid=function(e){var t=this,n=this.popupRef.popupElement.contains(e.relatedTarget);return d.closest(e.relatedTarget,(function(e){return e===t.host.nativeElement}))||n},e.prototype.toggleWithEvents=function(e){var t,n=this.isOpen===e;this.disabled||this.readonly||n||(e?(t=new m.ColorPickerOpenEvent,this.open.emit(t)):(t=new m.ColorPickerCloseEvent,this.close.emit(t)),t.isDefaultPrevented()||this.toggle(e),e&&this.focusFirstElement())},e.prototype.focusFirstElement=function(){var e=this;this.ngZone.onStable.pipe(r.take(1)).subscribe((function(){if(e.flatColorPicker){var t=e.flatColorPicker.gradient;(t?t.gradientDragHandle:e.flatColorPicker.palette.host).nativeElement.focus()}}))},e.prototype.openPopup=function(){var e=this,t="rtl"===this.direction?"right":"left",n={horizontal:t,vertical:"bottom"},i={horizontal:t,vertical:"top"};this.popupRef=this.popupService.open({anchor:this.activeColor,animate:this.popupSettings.animate,appendTo:this.popupSettings.appendTo,popupAlign:i,anchorAlign:n,popupClass:"k-colorpicker-popup",content:this.popupTemplate,positionMode:"absolute"}),this.popupRef.popupAnchorViewportLeave.subscribe((function(){e.toggleWithEvents(!1),e.isOpen||e.host.nativeElement.focus({preventScroll:!0})}))},e.prototype.closePopup=function(){this.isOpen&&(this.popupRef.close(),this.popupRef=null)},Object.defineProperty(e.prototype,"firstFocusableElement",{get:function(){if(!this.flatColorPicker.header||this.views.length<=1&&!this.flatColorPicker.clearButton){var e=this.flatColorPicker.gradient;return e?e.gradientDragHandle:this.flatColorPicker.palette.host}return this.views.length>1?this.flatColorPicker.header.viewButtonsCollection.toArray()[0]:this.flatColorPicker.header.clearButtonElement},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lastFocusableElement",{get:function(){if(this.preview)return this.flatColorPicker.footer.lastButton;if(this.flatColorPicker.palette)return this.flatColorPicker.palette.host;var e=this.flatColorPicker.gradient,t=e&&e.inputs;return e&&t&&"hex"===t.formatView?t.hexInput:this.gradientSettings.opacity?t.opacityInput.numericInput:t.blueInput},enumerable:!0,configurable:!0}),e.prototype.handleDomEvents=function(e,t){var n=this,i=this.host.nativeElement;t.forEach((function(t){return i[e+"EventListener"](t,n.domFocusListener,!0)}))},e.prototype.initDomEvents=function(){var e=this;if(this.host){var t=this.host.nativeElement;this.ngZone.runOutsideAngular((function(){e.subscriptions.add(e.renderer.listen(t,"focusin",(function(){e.handleWrapperFocus()}))),e.subscriptions.add(e.renderer.listen(t,"focusout",(function(t){var n=!!e.popupRef&&d.closest(t.relatedTarget,(function(t){return t===e.flatColorPicker.host.nativeElement})),i=d.closest(t.relatedTarget,(function(t){return t===e.host.nativeElement}));n||i||e.handleWrapperBlur()}))),e.handleDomEvents("add",b),e.subscriptions.add(e.renderer.listen(t,"keydown",(function(t){e.handleWrapperKeyDown(t)}))),e.subscriptions.add(e.renderer.listen(t,"click",(function(t){e.ngZone.run((function(){e.handleWrapperClick(t)}))})))}))}},e.prototype.handleHostId=function(){var e=this.host.nativeElement,t=e.getAttribute("id");if(t)this.focusableId=t;else{var n="k-"+d.guid();e.setAttribute("id",n),this.focusableId=n}},i.__decorate([o.HostBinding("class.k-colorpicker"),o.HostBinding("class.k-icon-picker"),o.HostBinding("class.k-picker"),i.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),i.__decorate([o.HostBinding("class.k-focus"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"focusedClass",null),i.__decorate([o.HostBinding("attr.aria-disabled"),o.HostBinding("class.k-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"disabledClass",null),i.__decorate([o.HostBinding("attr.aria-readonly"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"ariaReadonly",null),i.__decorate([o.HostBinding("attr.aria-expanded"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"ariaExpanded",null),i.__decorate([o.HostBinding("attr.tabindex"),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[])],e.prototype,"hostTabindex",null),i.__decorate([o.HostBinding("attr.dir"),i.__metadata("design:type",String)],e.prototype,"direction",void 0),i.__decorate([o.HostBinding("attr.role"),i.__metadata("design:type",String)],e.prototype,"role",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Array)],e.prototype,"views",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"view",null),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"activeView",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"readonly",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"format",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"value",null),i.__decorate([o.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"popupSettings",null),i.__decorate([o.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"paletteSettings",null),i.__decorate([o.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"gradientSettings",null),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"icon",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"iconClass",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"clearButton",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],e.prototype,"tabindex",null),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"preview",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"actionsLayout",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"size",null),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"rounded",null),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"fillMode",null),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"open",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"close",void 0),i.__decorate([o.Output("focus"),i.__metadata("design:type",o.EventEmitter)],e.prototype,"onFocus",void 0),i.__decorate([o.Output("blur"),i.__metadata("design:type",o.EventEmitter)],e.prototype,"onBlur",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"cancel",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"activeColorClick",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"activeViewChange",void 0),i.__decorate([o.ViewChild("container",{read:o.ViewContainerRef,static:!0}),i.__metadata("design:type",o.ViewContainerRef)],e.prototype,"container",void 0),i.__decorate([o.ViewChild("activeColor",{static:!0}),i.__metadata("design:type",o.ElementRef)],e.prototype,"activeColor",void 0),i.__decorate([o.ViewChild("popupTemplate",{static:!0}),i.__metadata("design:type",o.TemplateRef)],e.prototype,"popupTemplate",void 0),i.__decorate([o.ViewChild("flatColorPicker",{static:!1}),i.__metadata("design:type",u.FlatColorPickerComponent)],e.prototype,"flatColorPicker",void 0),e=t=i.__decorate([o.Component({exportAs:"kendoColorPicker",selector:"kendo-colorpicker",providers:[{multi:!0,provide:a.NG_VALUE_ACCESSOR,useExisting:o.forwardRef((function(){return t}))},{provide:d.KendoInput,useExisting:o.forwardRef((function(){return t}))},y.ColorPickerLocalizationService,{provide:p.LocalizationService,useExisting:y.ColorPickerLocalizationService},{provide:p.L10N_PREFIX,useValue:"kendo.colorpicker"}],template:'\n <ng-container kendoColorPickerLocalizedMessages\n i18n-colorPickerNoColor="kendo.colorpicker.colorPickerNoColor|The aria-label applied to the ColorPicker component when the value is empty."\n colorPickerNoColor="Colorpicker no color chosen"\n i18n-flatColorPickerNoColor="kendo.colorpicker.flatColorPickerNoColor|The aria-label applied to the FlatColorPicker component when the value is empty."\n flatColorPickerNoColor="Flatcolorpicker no color chosen"\n i18n-colorGradientNoColor="kendo.colorpicker.colorGradientNoColor|The aria-label applied to the ColorGradient component when the value is empty."\n colorGradientNoColor="Colorgradient no color chosen"\n i18n-colorPaletteNoColor="kendo.colorpicker.colorPaletteNoColor|The aria-label applied to the ColorPalette component when the value is empty."\n colorPaletteNoColor="Colorpalette no color chosen"\n i18n-colorGradientHandle="kendo.colorpicker.colorGradientHandle|The title for the gradient color drag handle chooser."\n colorGradientHandle="Choose color"\n i18n-clearButton="kendo.colorpicker.clearButton|The title for the clear button."\n clearButton="Clear value"\n i18n-hueSliderHandle="kendo.colorpicker.hueSliderHandle|The title for the hue slider handle."\n hueSliderHandle="Set hue"\n i18n-opacitySliderHandle="kendo.colorpicker.opacitySliderHandle|The title for the opacity slider handle."\n opacitySliderHandle="Set opacity"\n i18n-contrastRatio="kendo.colorpicker.contrastRatio|The contrast ratio message for the contrast tool."\n contrastRatio="Contrast ratio"\n i18n-previewColor="kendo.colorpicker.previewColor|The message for the color preview pane."\n previewColor="Color preview"\n i18n-revertSelection="kendo.colorpicker.revertSelection|The message for the selected color pane."\n revertSelection="Revert selection"\n i18n-gradientView="kendo.colorpicker.gradientView|The message for the gradient view button."\n gradientView="Gradient view"\n i18n-paletteView="kendo.colorpicker.paletteView|The message for the palette view button."\n paletteView="Palette view"\n i18n-formatButton="kendo.colorpicker.formatButton|The message for the input format toggle button."\n formatButton="Change color format"\n i18n-applyButton="kendo.colorpicker.applyButton|The message for the Apply action button."\n applyButton="Apply"\n i18n-cancelButton="kendo.colorpicker.cancelButton|The message for the Cancel action button."\n cancelButton="Cancel">\n </ng-container>\n <span #activeColor class="k-input-inner">\n <span\n class="k-value-icon k-color-preview"\n [ngClass]="{\'k-icon-color-preview\': iconStyles, \'k-no-color\': !value}">\n <span *ngIf="iconClass || icon" class="k-color-preview-icon k-icon" [ngClass]="iconStyles"></span>\n <span class="k-color-preview-mask" [style.background-color]="value"></span>\n </span>\n </span>\n <button\n tabindex="-1"\n type="button"\n class="k-input-button k-button k-button-md k-button-solid k-button-solid-base k-icon-button">\n <span class="k-button-icon k-icon k-i-arrow-s"></span>\n </button>\n <ng-template #popupTemplate>\n <kendo-flatcolorpicker\n #flatColorPicker\n [value]="value"\n [format]="format"\n [views]="views"\n [activeView]="activeView"\n [actionsLayout]="actionsLayout"\n [preview]="preview"\n [gradientSettings]="gradientSettings"\n [paletteSettings]="paletteSettings"\n [clearButton]="clearButton"\n (cancel)="handleCancelEvent($event)"\n (focusout)="handlePopupBlur($event)"\n (valueChange)="handleValueChange($event)"\n (keydown)="handlePopupKeyDown($event)"\n (activeViewChange)="activeViewChange.emit($event)"\n (actionButtonClick)="togglePopup()">\n </kendo-flatcolorpicker>\n </ng-template>\n <ng-container #container></ng-container>\n '}),i.__metadata("design:paramtypes",[o.ElementRef,c.PopupService,o.ChangeDetectorRef,p.LocalizationService,o.NgZone,o.Renderer2])],e)}();t.ColorPickerComponent=C},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(2),a=function(e){function t(t,n,i){return e.call(this,t,n,i)||this}return i.__extends(t,e),t=i.__decorate([i.__param(0,r.Inject(o.L10N_PREFIX)),i.__param(1,r.Optional()),i.__param(2,r.Optional()),i.__param(2,r.Inject(o.RTL)),i.__metadata("design:paramtypes",[String,o.MessageService,Boolean])],t)}(o.LocalizationService);t.ColorPickerLocalizationService=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(13),a=n(4),s=n(3),u=n(7),c=n(2),l=n(19),d=function(){function e(e,t,n){this.host=e,this.renderer=t,this.localizationService=n,this.focusableId="k-"+s.guid(),this.opacity=!0,this.disabled=!1,this.readonly=!1,this.valueChange=new r.EventEmitter,this.colorInputClass=!0,this.rgba={},this.subscriptions=new u.Subscription}return Object.defineProperty(e.prototype,"isFocused",{get:function(){if(!s.isDocumentAvailable()||!a.isPresent(this.host))return!1;var e=document.activeElement;return this.host.nativeElement.contains(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rgbaInputValid",{get:function(){var e=this;return Object.keys(this.rgba).every((function(t){return a.isPresent(e.rgba[t])}))},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){this.initDomEvents()},e.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},e.prototype.ngOnChanges=function(e){a.isPresent(e.value)&&!this.isFocused&&(this.hex=o.parseColor(this.value,"hex",this.opacity),this.rgba=o.getRGBA(this.value),this.rgba.a=o.parseColor(this.value,"rgba",this.opacity)?this.rgba.a:1)},Object.defineProperty(e.prototype,"formatButtonTitle",{get:function(){return this.localizationService.get("formatButton")},enumerable:!0,configurable:!0}),e.prototype.handleRgbaValueChange=function(){var e=o.getColorFromRGBA(this.rgba);this.rgbaInputValid&&e!==this.value&&(this.value=e,this.rgba=o.getRGBA(this.value),this.hex=o.parseColor(e,"hex",this.opacity),this.valueChange.emit(e))},e.prototype.handleHexValueChange=function(e){this.hex=e;var t=o.parseColor(e,"rgba",this.opacity);a.isPresent(t)&&t!==this.value&&(this.value=t,this.rgba=o.getRGBA(t),this.valueChange.emit(t))},e.prototype.handleRgbaInputBlur=function(){this.rgbaInputValid||(this.rgba=o.getRGBA(this.value))},e.prototype.handleHexInputBlur=function(){this.hex=o.parseColor(this.value,"hex",this.opacity)},e.prototype.toggleFormatView=function(){this.formatView="hex"===this.formatView?"rgba":"hex"},e.prototype.initDomEvents=function(){var e=this;this.host&&this.subscriptions.add(this.renderer.listen(this.toggleFormatButton.nativeElement,"click",(function(){return e.toggleFormatView()})))},i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"focusableId",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"formatView",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"value",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"opacity",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"readonly",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"valueChange",void 0),i.__decorate([r.HostBinding("class.k-colorgradient-inputs"),r.HostBinding("class.k-hstack"),i.__metadata("design:type",Boolean)],e.prototype,"colorInputClass",void 0),i.__decorate([r.ViewChild("opacityInput",{static:!1}),i.__metadata("design:type",l.NumericTextBoxComponent)],e.prototype,"opacityInput",void 0),i.__decorate([r.ViewChild("hexInput",{read:r.ElementRef,static:!1}),i.__metadata("design:type",r.ElementRef)],e.prototype,"hexInput",void 0),i.__decorate([r.ViewChild("blueInput",{read:r.ElementRef,static:!1}),i.__metadata("design:type",r.ElementRef)],e.prototype,"blueInput",void 0),i.__decorate([r.ViewChild("toggleFormatButton",{static:!1}),i.__metadata("design:type",r.ElementRef)],e.prototype,"toggleFormatButton",void 0),e=i.__decorate([r.Component({selector:"kendo-colorinput",template:'\n <div class="k-vstack">\n <button #toggleFormatButton\n class="k-colorgradient-toggle-mode k-button k-button-md k-button-flat k-button-flat-base k-icon-button"\n [attr.aria-label]="formatButtonTitle"\n [attr.title]="formatButtonTitle"\n type="button"\n >\n <span class="k-button-icon k-icon k-i-arrows-kpi"></span>\n </button>\n </div>\n <div *ngIf="formatView === \'hex\'" class="k-vstack">\n <input\n #hexInput\n [id]="focusableId"\n class="k-input k-textbox k-input-solid k-input-md k-rounded-md k-hex-value"\n [disabled]="disabled"\n [readonly]="readonly"\n [value]="hex || \'\'"\n (blur)="handleHexInputBlur()"\n (input)="handleHexValueChange(hexInput.value)"\n />\n <label [for]="focusableId" class="k-colorgradient-input-label">HEX</label>\n </div>\n <ng-container *ngIf="formatView === \'rgba\'">\n <div class="k-vstack">\n <kendo-numerictextbox\n #red\n [disabled]="disabled"\n [readonly]="readonly"\n [min]="0"\n [max]="255"\n [(value)]="rgba.r"\n [autoCorrect]="true"\n [spinners]="false"\n [format]="\'n\'"\n [decimals]="0"\n (blur)="handleRgbaInputBlur()"\n (valueChange)="handleRgbaValueChange()">\n </kendo-numerictextbox>\n <label [for]="red.focusableId" class="k-colorgradient-input-label">R</label>\n </div>\n <div class="k-vstack">\n <kendo-numerictextbox\n #green\n [disabled]="disabled"\n [readonly]="readonly"\n [min]="0"\n [max]="255"\n [(value)]="rgba.g"\n [autoCorrect]="true"\n [spinners]="false"\n [format]="\'n\'"\n [decimals]="0"\n (blur)="handleRgbaInputBlur()"\n (valueChange)="handleRgbaValueChange()">\n </kendo-numerictextbox>\n <label [for]="green.focusableId" class="k-colorgradient-input-label">G</label>\n </div>\n <div class="k-vstack">\n <kendo-numerictextbox\n #blue\n [disabled]="disabled"\n [readonly]="readonly"\n [min]="0"\n [max]="255"\n [(value)]="rgba.b"\n [autoCorrect]="true"\n [spinners]="false"\n [format]="\'n\'"\n [decimals]="0"\n (blur)="handleRgbaInputBlur()"\n (valueChange)="handleRgbaValueChange()">\n </kendo-numerictextbox>\n <label [for]="blue.focusableId" class="k-colorgradient-input-label">B</label>\n </div>\n <div class="k-vstack" *ngIf="opacity">\n <kendo-numerictextbox #opacityInput\n #alpha\n [disabled]="disabled"\n [readonly]="readonly"\n [min]="0"\n [max]="1"\n [(value)]="rgba.a"\n [autoCorrect]="true"\n [spinners]="false"\n [step]="0.01"\n [format]="\'n2\'"\n [decimals]="2"\n (blur)="handleRgbaInputBlur()"\n (valueChange)="handleRgbaValueChange()">\n </kendo-numerictextbox>\n <label [for]="alpha.focusableId" class="k-colorgradient-input-label">A</label>\n </div>\n </ng-container>\n '}),i.__metadata("design:paramtypes",[r.ElementRef,r.Renderer2,c.LocalizationService])],e)}();t.ColorInputComponent=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(2),a=function(){function e(e){this.localizationService=e,this.hostClasses=!0,this.viewChange=new r.EventEmitter,this.valuePaneClick=new r.EventEmitter,this.clearButtonClick=new r.EventEmitter}return e.prototype.onViewButtonClick=function(e){this.activeView=e,this.viewChange.emit(e)},Object.defineProperty(e.prototype,"viewButtons",{get:function(){return this.views&&this.views.indexOf("gradient")>=0&&this.views.indexOf("palette")>=0},enumerable:!0,configurable:!0}),e.prototype.getViewButtonIcon=function(e){return"gradient"===e?"k-i-color-canvas":"k-i-palette"},e.prototype.getText=function(e){return this.localizationService.get(e)},i.__decorate([r.HostBinding("class.k-coloreditor-header"),r.HostBinding("class.k-hstack"),i.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"clearButton",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"activeView",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Array)],e.prototype,"views",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"preview",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"value",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"selection",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"viewChange",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"valuePaneClick",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"clearButtonClick",void 0),i.__decorate([r.ViewChildren("viewButtons",{read:r.ElementRef}),i.__metadata("design:type",r.QueryList)],e.prototype,"viewButtonsCollection",void 0),i.__decorate([r.ViewChild("clearButton",{read:r.ElementRef,static:!1}),i.__metadata("design:type",r.ElementRef)],e.prototype,"clearButtonElement",void 0),e=i.__decorate([r.Component({selector:"[kendoFlatColorPickerHeader]",template:'\n <div class="k-coloreditor-header-actions k-hstack">\n <div *ngIf="viewButtons" class="k-button-group k-button-group-flat">\n <button *ngFor="let view of views"\n #viewButtons\n type="button"\n (click)="onViewButtonClick(view)"\n class="k-button k-button-md k-button-flat k-button-flat-base k-icon-button"\n [attr.title]="getText(view === \'gradient\' ? \'gradientView\' : \'paletteView\')"\n [attr.aria-label]="getText(view === \'gradient\' ? \'gradientView\' : \'paletteView\')"\n [attr.aria-pressed]="activeView === view"\n [ngClass]="activeView === view ? \'k-state-selected\' : \'\'"\n >\n <span\n class="k-button-icon k-icon"\n [ngClass]="getViewButtonIcon(view)">\n </span>\n </button>\n </div>\n </div>\n <div class="k-spacer"></div>\n <div class="k-coloreditor-header-actions k-hstack">\n <button *ngIf="clearButton"\n #clearButton\n type="button"\n class="k-button k-button-md k-button-flat k-button-flat-base k-icon-button k-coloreditor-reset"\n [attr.aria-label]="getText(\'clearButton\')"\n [attr.title]="getText(\'clearButton\')"\n (click)="clearButtonClick.emit()">\n <span class="k-button-icon k-icon k-i-reset-color"></span>\n </button>\n <div class="k-coloreditor-preview k-vstack" *ngIf="preview">\n <span\n class="k-coloreditor-preview-color k-color-preview"\n [attr.title]="getText(\'previewColor\')"\n [style.background-color]="selection">\n </span>\n <span class="k-coloreditor-current-color k-color-preview"\n [style.background-color]="value"\n [attr.title]="getText(\'revertSelection\')"\n (click)="valuePaneClick.emit($event)">\n </span>\n </div>\n </div>\n '}),i.__metadata("design:paramtypes",[o.LocalizationService])],e)}();t.FlatColorPickerHeaderComponent=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(2),a=function(){function e(e){this.localizationService=e,this.hostClasses=!0,this.actionButtonClick=new r.EventEmitter}return e.prototype.getText=function(e){return this.localizationService.get(e)},e.prototype.onActionButtonClick=function(e,t){var n={target:e,originalEvent:t};this.actionButtonClick.emit(n)},i.__decorate([r.HostBinding("class.k-coloreditor-footer"),r.HostBinding("class.k-actions"),r.HostBinding("class.k-hstack"),i.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"actionButtonClick",void 0),i.__decorate([r.ViewChild("last",{read:r.ElementRef,static:!1}),i.__metadata("design:type",r.ElementRef)],e.prototype,"lastButton",void 0),e=i.__decorate([r.Component({selector:"[kendoFlatColorPickerActionButtons]",template:'\n <button\n class="k-coloreditor-cancel k-button k-button-md k-button-solid k-button-solid-base"\n [attr.title]="getText(\'cancelButton\')"\n (click)="onActionButtonClick(\'cancel\', $event)"\n type="button"\n >{{getText(\'cancelButton\')}}</button>\n <button #last\n class="k-coloreditor-apply k-button k-button-md k-button-solid k-button-solid-primary"\n [attr.title]="getText(\'applyButton\')"\n (click)="onActionButtonClick(\'apply\', $event)"\n type="button"\n >{{getText(\'applyButton\')}}</button>\n '}),i.__metadata("design:paramtypes",[o.LocalizationService])],e)}();t.FlatColorPickerActionButtonsComponent=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"colorPaletteNoColor",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"colorGradientNoColor",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"flatColorPickerNoColor",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"colorPickerNoColor",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"colorGradientHandle",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"clearButton",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"hueSliderHandle",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"opacitySliderHandle",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"hexInputPlaceholder",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"redInputPlaceholder",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"greenInputPlaceholder",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"blueInputPlaceholder",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"alphaInputPlaceholder",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"passContrast",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"failContrast",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"contrastRatio",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"previewColor",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"revertSelection",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"gradientView",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"paletteView",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"formatButton",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"applyButton",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"cancelButton",void 0),t}(n(2).ComponentMessages);t.ColorPickerMessages=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(2),a=n(73),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,t=n=i.__decorate([r.Directive({providers:[{provide:a.ColorPickerMessages,useExisting:r.forwardRef((function(){return n}))}],selector:"[kendoColorPickerLocalizedMessages], [kendoFlatColorPickerLocalizedMessages], [kendoColorGradientLocalizedMessages], [kendoColorPaletteLocalizedMessages]"}),i.__metadata("design:paramtypes",[o.LocalizationService])],t)}(a.ColorPickerMessages);t.LocalizedColorPickerMessagesDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(76),a=n(6),s=function(){function e(){}return e=i.__decorate([r.NgModule({declarations:[o.CheckBoxDirective],exports:[o.CheckBoxDirective],imports:[a.CommonModule]})],e)}();t.CheckBoxModule=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(4),a=function(){function e(e,t){this.renderer=e,this.hostElement=t,this.kendoClass=!0,this._size="medium",this._rounded="medium"}return Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(e){this.handleClasses(e,"size"),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.handleClasses(e,"rounded"),this._rounded=e},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){var e=this;["size","rounded"].forEach((function(t){e.handleClasses(e[t],t)}))},e.prototype.handleClasses=function(e,t){var n=this.hostElement.nativeElement,i=o.getStylingClasses("checkbox",t,this[t],e);i.toRemove&&this.renderer.removeClass(n,i.toRemove),i.toAdd&&this.renderer.addClass(n,i.toAdd)},i.__decorate([r.HostBinding("class.k-checkbox"),i.__metadata("design:type",Boolean)],e.prototype,"kendoClass",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"size",null),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"rounded",null),e=i.__decorate([r.Directive({selector:"input[kendoCheckBox]"}),i.__metadata("design:paramtypes",[r.Renderer2,r.ElementRef])],e)}();t.CheckBoxDirective=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(78),a=n(6),s=function(){function e(){}return e=i.__decorate([r.NgModule({declarations:[o.RadioButtonDirective],exports:[o.RadioButtonDirective],imports:[a.CommonModule]})],e)}();t.RadioButtonModule=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(8),a=n(4),s=n(9),u=function(){function e(e,t){this.renderer=e,this.hostElement=t,this.kendoClass=!0,this._size="medium",o.validatePackage(s.packageMetadata)}return Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(e){this.handleClasses(e,"size"),this._size=e},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){var e=this;["size"].forEach((function(t){e.handleClasses(e[t],t)}))},e.prototype.handleClasses=function(e,t){var n=this.hostElement.nativeElement,i=a.getStylingClasses("radio",t,this[t],e);i.toRemove&&this.renderer.removeClass(n,i.toRemove),i.toAdd&&this.renderer.addClass(n,i.toAdd)},i.__decorate([r.HostBinding("class.k-radio"),i.__metadata("design:type",Boolean)],e.prototype,"kendoClass",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"size",null),e=i.__decorate([r.Directive({selector:"input[kendoRadioButton]"}),i.__metadata("design:paramtypes",[r.Renderer2,r.ElementRef])],e)}();t.RadioButtonDirective=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(6),a=n(80),s=n(31),u=n(30),c=function(){function e(){}return e=i.__decorate([r.NgModule({declarations:[s.HintComponent,u.ErrorComponent,a.FormFieldComponent],exports:[s.HintComponent,u.ErrorComponent,a.FormFieldComponent],imports:[o.CommonModule]})],e)}();t.FormFieldModule=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(5),a=n(7),s=n(3),u=n(2),c=n(8),l=n(9),d=n(30),p=n(31),h=function(){function e(e,t,n){var i=this;this.renderer=e,this.localizationService=t,this.hostElement=n,this.hostClass=!0,this.showHints="initial",this.orientation="vertical",this.showErrors="initial",this.subscriptions=new a.Subscription,this.rtl=!1,c.validatePackage(l.packageMetadata),this.subscriptions.add(this.localizationService.changes.subscribe((function(e){var t=e.rtl;i.rtl=t,i.direction=i.rtl?"rtl":"ltr"})))}return Object.defineProperty(e.prototype,"errorClass",{get:function(){return!!this.control&&(this.control.invalid&&(this.control.touched||this.control.dirty))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return!!this.control&&(!this.isRadioControl(this.control)&&(this.disabledControl()||this.disabledElement()||this.disabledKendoInput()))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formControls",{set:function(e){this.validateFormControl(e),this.control=e.first},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"horizontal",{get:function(){return"horizontal"===this.orientation},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasHints",{get:function(){return"always"===this.showHints||this.showHintsInitial()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasErrors",{get:function(){return"always"===this.showErrors||this.showErrorsInitial()},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){this.setDescription()},e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},e.prototype.disabledKendoInput=function(){return this.kendoInput&&this.kendoInput.disabled},e.prototype.disabledControl=function(){return this.control.disabled},e.prototype.disabledElement=function(){return this.controlElementRefs.toArray().every((function(e){return e.nativeElement.hasAttribute("disabled")}))},e.prototype.validateFormControl=function(e){if(r.isDevMode()&&1!==e.length&&!this.isControlGroup(e))throw new Error("The `kendo-formfield` component should contain only one control of type NgControl with a formControlName(https://angular.io/api/forms/FormControlName)or an ngModel(https://angular.io/api/forms/NgModel) binding.")},e.prototype.isControlGroup=function(e){var t=this;if(!e.length)return!1;var n=e.first.name;return e.toArray().every((function(e){return e.name===n&&t.isRadioControl(e)}))},e.prototype.isRadioControl=function(e){return e.valueAccessor instanceof o.RadioControlValueAccessor},e.prototype.updateDescription=function(){var e=this,t=this.findControlElements();t&&t.forEach((function(t){if(e.errorChildren.length>0||e.hintChildren.length>0){var n=e.generateDescriptionIds(t);e.renderer.setAttribute(t,"aria-describedby",n)}}))},e.prototype.findControlElements=function(){if(this.controlElementRefs)return this.kendoInput&&this.kendoInput.focusableId&&s.isDocumentAvailable()?[this.hostElement.nativeElement.querySelector("#"+this.kendoInput.focusableId)]:this.controlElementRefs.map((function(e){return e.nativeElement}))},e.prototype.generateDescriptionIds=function(e){var t=new Set;e.hasAttribute("aria-describedby")&&e.getAttribute("aria-describedby").split(" ").forEach((function(e){e.includes("kendo-hint-")||e.includes("kendo-error-")||t.add(e)}));return this.hintChildren.forEach((function(e){t.add(e.id)})),this.errorChildren.forEach((function(e){t.add(e.id)})),Array.from(t).join(" ")},e.prototype.showHintsInitial=function(){if(!this.control)return!0;var e=this.control,t=e.valid,n=e.untouched,i=e.pristine;return t||n&&i},e.prototype.showErrorsInitial=function(){if(!this.control)return!1;var e=this.control,t=e.invalid,n=e.dirty,i=e.touched;return t&&(n||i)},e.prototype.setDescription=function(){var e=this;this.updateDescription(),this.subscriptions.add(this.errorChildren.changes.subscribe((function(){return e.updateDescription()}))),this.subscriptions.add(this.hintChildren.changes.subscribe((function(){return e.updateDescription()})))},i.__decorate([r.HostBinding("class.k-form-field"),i.__metadata("design:type",Boolean)],e.prototype,"hostClass",void 0),i.__decorate([r.HostBinding("attr.dir"),i.__metadata("design:type",String)],e.prototype,"direction",void 0),i.__decorate([r.HostBinding("class.k-form-field-error"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"errorClass",null),i.__decorate([r.HostBinding("class.k-form-field-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"disabledClass",null),i.__decorate([r.ContentChildren(o.NgControl,{descendants:!0}),i.__metadata("design:type",r.QueryList),i.__metadata("design:paramtypes",[r.QueryList])],e.prototype,"formControls",null),i.__decorate([r.ContentChildren(o.NgControl,{read:r.ElementRef,descendants:!0}),i.__metadata("design:type",r.QueryList)],e.prototype,"controlElementRefs",void 0),i.__decorate([r.ContentChild(s.KendoInput,{static:!0}),i.__metadata("design:type",Object)],e.prototype,"kendoInput",void 0),i.__decorate([r.ContentChildren(d.ErrorComponent,{descendants:!0}),i.__metadata("design:type",r.QueryList)],e.prototype,"errorChildren",void 0),i.__decorate([r.ContentChildren(p.HintComponent,{descendants:!0}),i.__metadata("design:type",r.QueryList)],e.prototype,"hintChildren",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"showHints",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"orientation",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"showErrors",void 0),e=i.__decorate([r.Component({selector:"kendo-formfield",template:'\n <ng-content select="label, kendo-label"></ng-content>\n <div [class.k-form-field-wrap]="horizontal">\n <ng-content></ng-content>\n <ng-content select="kendo-formhint" *ngIf="hasHints"></ng-content>\n <ng-content select="kendo-formerror" *ngIf="hasErrors"></ng-content>\n </div>\n ',providers:[u.LocalizationService,{provide:u.L10N_PREFIX,useValue:"kendo.formfield"}]}),i.__metadata("design:paramtypes",[r.Renderer2,u.LocalizationService,r.ElementRef])],e)}();t.FormFieldComponent=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(17);t.SliderComponent=r.SliderComponent;var o=n(35);t.RangeSliderComponent=o.RangeSliderComponent;var a=n(15);t.LabelTemplateDirective=a.LabelTemplateDirective;var s=n(36);t.SwitchComponent=s.SwitchComponent;var u=n(37);t.TextBoxDirective=u.TextBoxDirective;var c=n(38);t.TextAreaDirective=c.TextAreaDirective;var l=n(19);t.NumericTextBoxComponent=l.NumericTextBoxComponent;var d=n(40);t.NumericTextBoxCustomMessagesComponent=d.NumericTextBoxCustomMessagesComponent;var p=n(42);t.MaskedTextBoxComponent=p.MaskedTextBoxComponent;var h=n(92);t.InputsModule=h.InputsModule;var f=n(46);t.SliderTicksComponent=f.SliderTicksComponent;var m=n(20);t.SliderModule=m.SliderModule;var v=n(49);t.RangeSliderModule=v.RangeSliderModule;var g=n(52);t.SwitchModule=g.SwitchModule;var y=n(21);t.NumericTextBoxModule=y.NumericTextBoxModule;var _=n(56);t.MaskedTextBoxModule=_.MaskedTextBoxModule;var b=n(57);t.TextBoxModule=b.TextBoxModule;var C=n(63);t.TextAreaModule=C.TextAreaModule;var k=n(75);t.CheckBoxModule=k.CheckBoxModule;var w=n(77);t.RadioButtonModule=w.RadioButtonModule;var x=n(68);t.ColorPickerComponent=x.ColorPickerComponent;var S=n(29);t.ColorPaletteComponent=S.ColorPaletteComponent;var E=n(28);t.ColorGradientComponent=E.ColorGradientComponent;var P=n(66);t.ColorPickerModule=P.ColorPickerModule,i.__exportStar(n(16),t);var I=n(25);t.FlatColorPickerComponent=I.FlatColorPickerComponent;var T=n(16);t.ColorPickerCancelEvent=T.ColorPickerCancelEvent;var O=n(76);t.CheckBoxDirective=O.CheckBoxDirective;var B=n(78);t.RadioButtonDirective=B.RadioButtonDirective;var V=n(31);t.HintComponent=V.HintComponent;var R=n(30);t.ErrorComponent=R.ErrorComponent;var M=n(80);t.FormFieldComponent=M.FormFieldComponent;var N=n(79);t.FormFieldModule=N.FormFieldModule;var A=n(58);t.TextBoxComponent=A.TextBoxComponent;var j=n(23);t.TextBoxPrefixTemplateDirective=j.TextBoxPrefixTemplateDirective;var D=n(22);t.TextBoxSuffixTemplateDirective=D.TextBoxSuffixTemplateDirective;var z=n(64);t.TextAreaComponent=z.TextAreaComponent;var F=n(65);t.TextAreaSuffixComponent=F.TextAreaSuffixComponent;var H=n(62);t.InputSeparatorComponent=H.InputSeparatorComponent;var L=n(24);t.SharedModule=L.SharedModule;var W=n(74);t.LocalizedColorPickerMessagesDirective=W.LocalizedColorPickerMessagesDirective;var Z=n(55);t.LocalizedNumericTextBoxMessagesDirective=Z.LocalizedNumericTextBoxMessagesDirective;var G=n(61);t.LocalizedTextBoxMessagesDirective=G.LocalizedTextBoxMessagesDirective;var K=n(47);t.LocalizedSliderMessagesDirective=K.LocalizedSliderMessagesDirective;var U=n(50);t.LocalizedRangeSliderMessagesDirective=U.LocalizedRangeSliderMessagesDirective;var q=n(53);t.LocalizedSwitchMessagesDirective=q.LocalizedSwitchMessagesDirective},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(10),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.positionHandle=function(e){var t=this.props,n=t.max,i=t.min,o=t.reverse,a=t.vertical?"bottom":"left",s=this.trackWidth(),u=r.trimValue(n,i,this.props.value);this.handlePosition=r.calculateHandlePosition({min:i,max:n,reverse:o,value:u,trackWidth:s}),this.renderer.setStyle(e,a,this.handlePosition+"px")},t.prototype.positionSelection=function(e){var t=this.props,n=t.reverse,i=t.vertical?"height":"width",r=this.handlePosition;n&&(r=this.trackWidth()-r),this.renderer.setStyle(e,i,r+"px")},t}(n(33).SliderModelBase);t.SliderModel=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(10),o=n(10),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.positionHandle=function(e){if(e.id){var t=this.props,n=t.max,i=t.min,a=t.reverse,s=t.vertical?"bottom":"left",u=this.trackWidth(),c=r.isStartHandle(e)?o.trimValueRange(n,i,this.props.value)[0]:o.trimValueRange(n,i,this.props.value)[1];r.isStartHandle(e)?(this.startHandlePosition=o.calculateHandlePosition({min:i,max:n,reverse:a,value:c,trackWidth:u}),this.renderer.setStyle(e,s,this.startHandlePosition+"px")):(this.endHandlePosition=o.calculateHandlePosition({min:i,max:n,reverse:a,value:c,trackWidth:u}),this.renderer.setStyle(e,s,this.endHandlePosition+"px"))}},t.prototype.positionSelection=function(e,t){var n=this.props,i=n.reverse,r=n.vertical,o=r?"height":"width",a=r?"bottom":i?"right":"left",s=Math.abs(this.endHandlePosition-this.startHandlePosition),u=r?e.style.bottom:e.style.left;this.renderer.setStyle(t,o,s+"px"),this.renderer.setStyle(t,a,i?this.trackWidth()-parseFloat(u)+"px":parseFloat(u)+"px")},t}(n(33).SliderModelBase);t.RangeSliderModel=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(4);t.createMaxValidator=function(e){return function(t){return!i.isPresent(e)||!i.isPresent(t.value)||t.value<=e?null:{maxError:{maxValue:e,value:t.value}}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(4);t.createMinValidator=function(e){return function(t){return!i.isPresent(e)||!i.isPresent(t.value)||t.value>=e?null:{minError:{minValue:e,value:t.value}}}}},function(e,t){e.exports=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(39);t.numericRegex=function(e){var t,n=e.autoCorrect,r=e.decimals,o=e.min,a=e.separator;return a===i.POINT&&(a="\\"+a),t=0===r?"\\d*":"(?:(?:\\d+("+a+"\\d*)?)|(?:"+a+"\\d*))?",new RegExp("^"+(n&&null!==o&&o>=0?"":"-?")+t+"$")},t.decimalPart=function(e){return e>=0?Math.floor(e):Math.ceil(e)},t.noop=function(e){},t.defined=function(e){return void 0!==e},t.isNumber=function(e){return!isNaN(e)&&null!==e},t.pad=function(e,t){var n=t-String(e).length,i=e;if(n>0){var r=new Array(n+1).join("0");i=parseFloat(e+r)}return i},t.getDeltaFromMouseWheel=function(e){var t=0;return e.wheelDelta?t=(t=e.wheelDelta/120)>0?Math.ceil(t):Math.floor(t):e.detail&&(t=Math.round(-e.detail/3)),t},t.getCaretPosition=function(e){return e.selectionStart},t.extractSignificantNumericChars=function(e,t){var n=t+"0123456789-";return e.split("").reduce((function(e,t){return n.includes(t)?++e:e}),0)},t.isRightClick=function(e){var t=e.button&&2===e.button,n=e.which&&3===e.which;return t||n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Down=-1]="Down",e[e.None=0]="None",e[e.Up=1]="Up"}(t.ArrowDirection||(t.ArrowDirection={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(90),a=n(43),s=function(){function e(){this.rules={},this.prompt="_",this.mask="",this.promptPlaceholder=" ",this.includeLiterals=!1,this.maskTokens=[],this.unmaskTokens=[],this.rawTokens=[],this.validationTokens=[]}return e.prototype.update=function(e){var t=e.mask,n=void 0===t?"":t,i=e.prompt,r=void 0===i?"":i,o=e.promptPlaceholder,a=void 0===o?" ":o,s=e.rules,u=void 0===s?{}:s,c=e.includeLiterals,l=void 0!==c&&c;this.mask=n,this.prompt=r,this.promptPlaceholder=a,this.rules=u,this.includeLiterals=l,this.tokenize()},e.prototype.validationValue=function(e){void 0===e&&(e="");var t=e;return o.sequence(this.validationTokens).run(e).fold((function(e){t=e.join("")})),t},e.prototype.rawValue=function(e){void 0===e&&(e="");var t=e;return this.rawTokens.length?(o.sequence(this.rawTokens).run(e).fold((function(e){t=e.join("")})),t):t},e.prototype.maskRaw=function(e){void 0===e&&(e="");var t=e;return this.maskTokens.length?(o.sequence(this.maskTokens).run(e).fold((function(e){t=e.join("")})),t):t},e.prototype.maskInput=function(e,t,n){return e.length<t.length?this.maskRemoved(e,t,n):this.maskInserted(e,t,n)},e.prototype.maskInRange=function(e,t,n,i){var r="",a=i,s=t.split("").slice(0,n),u=t.split("").slice(i);return o.sequence(this.maskTokens.slice(n,i)).run(e).fold((function(e){r=s.concat(e).concat(u).join("")})),{selection:a,value:r}},e.prototype.maskRemoved=function(e,t,n){var i=this,r="",a=n,s=e.split("").slice(n),u=e.split("").slice(0,n).join(""),c=this.maskTokens.length-(e.length-n);return o.sequence(this.maskTokens.slice(0,c)).run(u,t).fold((function(e){a=i.adjustPosition(e,a),r=e.concat(s).join("")})),{selection:a,value:r}},e.prototype.adjustPosition=function(e,t){var n=e[t];return this.maskTokens[t].isLiteral(n)||n===this.prompt?t:t+1},e.prototype.maskInserted=function(e,t,n){var i=this,r="",a=n,s=e.slice(0,n);return o.sequence(this.unmaskTokens).run(s,t).chain((function(e){a=e.join("").length;var n=t.slice(a);return o.sequence(i.maskTokens).run(e.join("")+n,t)})).fold((function(e){r=e.join("")})),{selection:a,value:r}},Object.defineProperty(e.prototype,"maskTokenCreator",{get:function(){var e=this.prompt,t=this.promptPlaceholder;return{literal:function(e){return a.literal(e)},mask:function(n){return a.mask({prompt:e,promptPlaceholder:t})(n)}}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"unmaskTokenCreator",{get:function(){var e=this;return{literal:function(e){return a.unliteral(e)},mask:function(t){return a.unmask(e.prompt)(t)}}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rawTokenCreator",{get:function(){var e=this.prompt,t=this.promptPlaceholder,n=this.includeLiterals;return{literal:function(e){return a.rawLiteral(n)},mask:function(n){return a.rawMask({prompt:e,promptPlaceholder:t})}}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validationTokenCreator",{get:function(){var e=this.prompt;return{literal:function(e){return a.rawLiteral(!1)},mask:function(t){return a.rawMask({prompt:e,promptPlaceholder:""})}}},enumerable:!0,configurable:!0}),e.prototype.tokenize=function(){var e=this;o.greedy(a.token(this.rules,this.maskTokenCreator)).run(this.mask).fold((function(t,n){e.maskTokens=t})),o.greedy(a.token(this.rules,this.unmaskTokenCreator)).run(this.mask).fold((function(t,n){e.unmaskTokens=t})),o.greedy(a.token(this.rules,this.rawTokenCreator)).run(this.mask).fold((function(t,n){e.rawTokens=t})),o.greedy(a.token(this.rules,this.validationTokenCreator)).run(this.mask).fold((function(t,n){e.validationTokens=t}))},e=i.__decorate([r.Injectable()],e)}();t.MaskingService=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(43),r=n(44);t.sequence=function(e){return e.reduce((function(e,t){return n=t,e.chain((function(e){return n.map((function(t){return e.concat([t])}))}));var n}),(t=[],new i.Parser((function(e){return new r.Result(t,e)}))));var t},t.greedy=function(e){return new i.Parser((function(t){for(var n=new r.Result([],t);!t.eof();)n=n.concat(e.run(t));return n}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){void 0===e&&(e=[]),void 0===t&&(t=[]),this.input=e,this.control=t,this.inputCursor=0,this.controlCursor=0}return e.prototype.eof=function(){return this.inputCursor>=this.input.length},e.prototype.next=function(){return{char:this.input[this.inputCursor++],control:this.control[this.controlCursor++]}},e.prototype.peek=function(){return{char:this.input[this.inputCursor],control:this.control[this.controlCursor]}},e.prototype.eat_input=function(){this.inputCursor++},e.prototype.eat_control=function(){this.controlCursor++},e.prototype.eat=function(){this.inputCursor++,this.controlCursor++},e}();t.Stream=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(20),a=n(49),s=n(52),u=n(21),c=n(56),l=n(57),d=n(63),p=n(6),h=n(66),f=n(75),m=n(77),v=n(79),g=function(){function e(){}return e=i.__decorate([r.NgModule({exports:[d.TextAreaModule,l.TextBoxModule,o.SliderModule,a.RangeSliderModule,s.SwitchModule,u.NumericTextBoxModule,c.MaskedTextBoxModule,h.ColorPickerModule,f.CheckBoxModule,m.RadioButtonModule,v.FormFieldModule],imports:[p.CommonModule]})],e)}();t.InputsModule=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(2),a=n(48),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=i.__decorate([r.Component({providers:[{provide:a.SliderMessages,useExisting:r.forwardRef((function(){return n}))}],selector:"kendo-slider-messages",template:""}),i.__metadata("design:paramtypes",[o.LocalizationService])],t)}(a.SliderMessages);t.SliderCustomMessagesComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(2),a=n(51),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=i.__decorate([r.Component({providers:[{provide:a.RangeSliderMessages,useExisting:r.forwardRef((function(){return n}))}],selector:"kendo-rangeslider-messages",template:""}),i.__metadata("design:paramtypes",[o.LocalizationService])],t)}(a.RangeSliderMessages);t.RangeSliderCustomMessagesComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(2),a=n(54),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=i.__decorate([r.Component({providers:[{provide:a.Messages,useExisting:r.forwardRef((function(){return n}))}],selector:"kendo-switch-messages",template:""}),i.__metadata("design:paramtypes",[o.LocalizationService])],t)}(a.Messages);t.SwitchCustomMessagesComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(2),a=n(60),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=i.__decorate([r.Component({providers:[{provide:a.TextBoxMessages,useExisting:r.forwardRef((function(){return n}))}],selector:"kendo-textbox-messages",template:""}),i.__metadata("design:paramtypes",[o.LocalizationService])],t)}(a.TextBoxMessages);t.TextBoxCustomMessagesComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(7),o=n(1),a=n(4),s=n(3),u=function(){function e(e,t,n,i,u,c){var l=this;this.localizationService=e,this.ngZone=t,this.changeDetector=n,this.renderer=i,this.injector=u,this.hostElement=c,this.title="",this.disabled=!1,this.readonly=!1,this.value=null,this.selectOnFocus=!1,this.inputFocus=new o.EventEmitter,this.inputBlur=new o.EventEmitter,this.subscriptions=new r.Subscription,this._isFocused=!1,this.focusChangedProgrammatically=!1,this.handleInputBlur=function(){l.changeDetector.markForCheck(),(s.hasObservers(l.inputBlur)||a.requiresZoneOnBlur(l.control))&&l.ngZone.run((function(){l.ngTouched(),l.inputBlur.emit()}))},this.ngChange=function(e){},this.ngTouched=function(){}}return Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},e.prototype.setDisabledState=function(e){this.changeDetector.markForCheck(),this.disabled=e},i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"title",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"readonly",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"value",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"selectOnFocus",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"placeholder",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"inputFocus",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"inputBlur",void 0),i.__decorate([o.ViewChild("input",{static:!0}),i.__metadata("design:type",o.ElementRef)],e.prototype,"input",void 0),i.__decorate([o.HostBinding("class.k-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"disabledClass",null),i.__decorate([o.HostBinding("attr.dir"),i.__metadata("design:type",String)],e.prototype,"direction",void 0),e}();t.TextFieldsBase=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(14),a=n(27),s=function(){function e(){}return e.prototype.getPaletteSettings=function(e,t){var n="name"!==t?o.DEFAULT_PRESET:o.DEFAULT_ACCESSIBLE_PRESET,i=e.palette,r="string"==typeof i&&a.PALETTEPRESETS[i]?a.PALETTEPRESETS[i].columns:void 0;return{palette:i||n,tileSize:e.tileSize||24,columns:e.columns||r||10}},e.prototype.paletteTileLayout=function(e){return"number"==typeof e?{width:e,height:e}:{width:e.width?e.width:e.height,height:e.height?e.height:e.width}},e=i.__decorate([r.Injectable()],e)}();t.FlatColorPickerService=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PALETTEPRESETS={basic:{colors:"000000,7f7f7f,880015,ed1c24,ff7f27,fff200,22b14c,00a2e8,3f48cc,a349a4,ffffff,c3c3c3,b97a57,ffaec9,ffc90e,efe4b0,b5e61d,99d9ea,7092be,c8bfe7",columns:10},office:{colors:"ffffff, 000000, e6e6e6, 435569, 4371c4, ed7e32, a5a4a5, febf04, 5a9bd5, 71ae48, f2f2f3, 7f7f7f, d1cece, d5dde3, dae1f4, fce5d4, deeded, fff2cc, deeaf6, e1efd9, d7d8d8, 585959, aeabab, adbaca, b4c5e7, f6caac, dbdbdb, ffe498, bcd6ee, c5e0b2, bfbfc0, 3f3f3f, 767070, 8595b1, 8fabdb, f5b183, c9c8c9, fed965, 9bc4e5, a8d08d, a5a5a6, 262625, 393939, 334050, 2e5496, c45a11, 7b7b7a, bf9000, 2f75b5, 548235, 7f7f7f, 0b0c0c, 161616, 222a34, 203764, 843d0b, 525252, 7f6000, 1d4d79, 375623",columns:10},apex:{colors:"ffffff, 000000, c9c2d1, 69676d, ceb966, 9cb084, 6bb1c9, 6585cf, 7e6bc9, a379bb, f2f2f2, 7f7f7f, f4f2f5, e0e0e2, f5f1e0, ebefe6, e1eff4, e0e6f5, e5e1f4, ece4f1, d8d8d8, 595959, e9e6ec, c2c1c5, ebe3c1, d7dfcd, c3dfe9, c1ceeb, cbc3e9, dac9e3, bfbfbf, 3f3f3f, dedae3, a4a3a8, e1d5a3, c3cfb5, a6d0de, a2b5e2, b1a6de, c7aed6, a5a5a5, 262626, 9688a5, 4e4d51, ae9638, 758c5a, 3d8da9, 365bb0, 533da9, 7d4d99, 7f7f7f, 0c0c0c, 635672, 343336, 746425, 4e5d3c, 295e70, 243c75, 372970, 533366",columns:10},austin:{colors:"ffffff, 000000, caf278, 3e3d2d, 94c600, 71685a, ff6700, 909465, 956b43, fea022, f2f2f2, 7f7f7f, f4fce4, dddcd0, efffc0, e3e1dc, ffe0cb, e8e9df, ece1d6, feecd2, d8d8d8, 595959, e9f9c9, bbb9a1, dfff82, c8c3ba, ffc299, d2d4c0, dac3ad, fed9a6, bfbfbf, 3f3f3f, dff7ae, ada598, cfff43, ada598, ffa365, bcbfa1, c8a585, fec67a, a5a5a5, 262626, a9ea25, 2e2d21, 6f9400, 544e43, bf4d00, 6c6f4b, 6f5032, d77b00, 7f7f7f, 0c0c0c, 74a50f, 1f1e16, 4a6300, 38342d, 7f3300, 484a32, 4a3521, 8f5200",columns:10},clarity:{colors:"ffffff, 292934, f3f2dc, d2533c, 93a299, ad8f67, 726056, 4c5a6a, 808da0, 79463d, f2f2f2, e7e7ec, e7e5b9, f6dcd8, e9ecea, eee8e0, e4dedb, d8dde3, e5e8ec, e9d6d3, d8d8d8, c4c4d1, d5d185, edbab1, d3d9d6, ded2c2, c9beb8, b2bcc8, ccd1d9, d3aea7, bfbfbf, 8a8aa3, aca73b, e4978a, bec7c1, cdbba3, af9e94, 8c9bac, b2bac6, bd857c, a5a5a5, 56566e, 56531d, a43925, 6b7c72, 866b48, 554840, 39434f, 5c697b, 5a342d, 7f7f7f, 3b3b4b, 22210b, 6d2619, 47534c, 594730, 39302b, 262d35, 3d4652, 3c231e",columns:10},slipstream:{colors:"ffffff, 000000, b4dcfa, 212745, 4e67c8, 5eccf3, a7ea52, 5dceaf, ff8021, f14124, f2f2f2, 7f7f7f, 8bc9f7, c7cce4, dbe0f4, def4fc, edfadc, def5ef, ffe5d2, fcd9d3, d8d8d8, 595959, 4facf3, 909aca, b8c2e9, beeafa, dbf6b9, beebdf, ffcca6, f9b3a7, bfbfbf, 3f3f3f, 0d78c9, 5967af, 94a3de, 9ee0f7, caf297, 9de1cf, ffb279, f68d7b, a5a5a5, 262626, 063c64, 181d33, 31479f, 11b2eb, 81d319, 34ac8b, d85c00, c3260c, 7f7f7f, 0c0c0c, 021828, 101322, 202f6a, 0b769c, 568c11, 22725c, 903d00, 821908",columns:10},metro:{colors:"ffffff, 000000, d6ecff, 4e5b6f, 7fd13b, ea157a, feb80a, 00addc, 738ac8, 1ab39f, f2f2f2, 7f7f7f, a7d6ff, d9dde4, e5f5d7, fad0e4, fef0cd, c5f2ff, e2e7f4, c9f7f1, d8d8d8, 595959, 60b5ff, b3bcca, cbecb0, f6a1c9, fee29c, 8be6ff, c7d0e9, 94efe3, bfbfbf, 3f3f3f, 007dea, 8d9baf, b2e389, f272af, fed46b, 51d9ff, aab8de, 5fe7d5, a5a5a5, 262626, 003e75, 3a4453, 5ea226, af0f5b, c58c00, 0081a5, 425ea9, 138677, 7f7f7f, 0c0c0c, 00192e, 272d37, 3f6c19, 750a3d, 835d00, 00566e, 2c3f71, 0c594f",columns:10},flow:{colors:"ffffff, 000000, dbf5f9, 04617b, 0f6fc6, 009dd9, 0bd0d9, 10cf9b, 7cca62, a5c249, f2f2f2, 7f7f7f, b2e9f2, b4ecfc, c7e2fa, c4eeff, c9fafc, c9faed, e4f4df, edf2da, d8d8d8, 595959, 76d9e8, 6adafa, 90c6f6, 89deff, 93f5f9, 94f6db, cae9c0, dbe6b6, bfbfbf, 3f3f3f, 21b2c8, 20c8f7, 59a9f2, 4fceff, 5df0f6, 5ff2ca, b0dfa0, c9da91, a5a5a5, 262626, 105964, 02485c, 0b5394, 0075a2, 089ca2, 0b9b74, 54a838, 7e9532, 7f7f7f, 0c0c0c, 062328, 01303d, 073763, 004e6c, 05686c, 07674d, 387025, 546321",columns:10},hardcover:{colors:"ffffff, 000000, ece9c6, 895d1d, 873624, d6862d, d0be40, 877f6c, 972109, aeb795, f2f2f2, 7f7f7f, e1dca5, f2e0c6, f0d0c9, f6e6d5, f5f2d8, e7e5e1, fbc7bc, eef0e9, d8d8d8, 595959, d0c974, e6c28d, e2a293, eeceaa, ece5b2, cfccc3, f78f7a, dee2d4, bfbfbf, 3f3f3f, a29a36, daa454, d4735e, e6b681, e2d88c, b7b2a5, f35838, ced3bf, a5a5a5, 262626, 514d1b, 664515, 65281a, a2641f, a39428, 655f50, 711806, 879464, 7f7f7f, 0c0c0c, 201e0a, 442e0e, 431b11, 6c4315, 6d621a, 433f35, 4b1004, 5a6243",columns:10},trek:{colors:"ffffff, 000000, fbeec9, 4e3b30, f0a22e, a5644e, b58b80, c3986d, a19574, c17529, f2f2f2, 7f7f7f, f7e09e, e1d6cf, fcecd5, eddfda, f0e7e5, f3eae1, ece9e3, f5e3d1, d8d8d8, 595959, f3cc5f, c4ad9f, f9d9ab, dcc0b6, e1d0cc, e7d5c4, d9d4c7, ebc7a3, bfbfbf, 3f3f3f, d29f0f, a78470, f6c781, cba092, d2b9b2, dbc1a7, c6bfab, e1ac76, a5a5a5, 262626, 694f07, 3a2c24, c87d0e, 7b4b3a, 926255, a17242, 7b7153, 90571e, 7f7f7f, 0c0c0c, 2a1f03, 271d18, 855309, 523226, 614138, 6b4c2c, 524b37, 603a14",columns:10},verve:{colors:"ffffff, 000000, d2d2d2, 666666, ff388c, e40059, 9c007f, 68007f, 005bd3, 00349e, f2f2f2, 7f7f7f, bdbdbd, e0e0e0, ffd7e8, ffc6dc, ffb8f1, f1b2ff, c3dcff, b8cfff, d8d8d8, 595959, 9d9d9d, c1c1c1, ffafd1, ff8eba, ff71e4, e365ff, 87baff, 72a0ff, bfbfbf, 3f3f3f, 696969, a3a3a3, ff87ba, ff5597, ff2ad7, d519ff, 4b98ff, 2b71ff, a5a5a5, 262626, 343434, 4c4c4c, e90062, ab0042, 75005f, 4e005f, 00449e, 002676, 7f7f7f, 0c0c0c, 151515, 333333, 9b0041, 72002c, 4e003f, 34003f, 002d69, 00194f",columns:10},monochrome:{colors:"000000, 1a1a1a, 333333, 4d4d4d, 666666, 808080, 999999, b3b3b3, cccccc, e6e6e6, f2f2f2, ffffff",columns:12},accessible:{colors:"black, grey, darkred, red, darkorange, gold, green, blue, darkblue, purple, white, darkgrey, saddlebrown, pink, orange, yellow, lightgreen, lightskyblue, lightblue, mediumpurple",columns:10}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(t){var n=e.call(this)||this;return n.originalEvent=t,n}return i.__extends(t,e),t}(n(3).PreventableEvent);t.ColorPickerCancelEvent=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(n(3).PreventableEvent);t.ColorPickerCloseEvent=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(n(3).PreventableEvent);t.ColorPickerOpenEvent=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e){this.color=e,this.openPrevented=!1}return e.prototype.preventOpen=function(){this.openPrevented=!0},e.prototype.isOpenPrevented=function(){return this.openPrevented},e}();t.ActiveColorClickEvent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(105),r=n(4);function o(e,t){if(e=e.toLowerCase().trim(),r.isPresent(i.namedColors[e]))return e;i.parseColor(e,t)&&(e=i.parseColor(e,t).toHex());var n=Object.keys(i.namedColors).find((function(t){return i.namedColors[t]===e}));if(!n&&!t)throw new Error("The provided color "+e+" is not supported for 'format=\"name\"' property.To display "+e+" color, the component 'format' property should be set to 'hex' or 'rgba' ");return n}t.parseColor=function(e,n,a,s){void 0===a&&(a=!1),void 0===s&&(s=!0);if(-1===["hex","rgba","name"].indexOf(n))throw new Error("Unsupported color output format '"+n+"'. The available options are 'hex', 'rgba' or 'name'.");if(r.isPresent(e)){if("name"===n)return o(e,s);var u=i.parseColor(e.trim(),s);if(r.isPresent(u))return"hex"===n?t.getHexValue(u,a):u.toCssRgba()}},t.getHSV=function(e,t){void 0===t&&(t=!0);var n=i.parseColor(e,t);return r.isPresent(n)?n.toHSV():{}},t.getRGBA=function(e,t){void 0===t&&(t=!0);var n=i.parseColor(e,t);return r.isPresent(n)?n.toBytes():{}},t.getColorFromHSV=function(e,n,o){void 0===n&&(n="rgba"),void 0===o&&(o=!1);var a=r.fitIntoBounds(e.h,0,359.9),s=r.fitIntoBounds(e.s,0,1),u=r.fitIntoBounds(e.v,0,1),c=r.fitIntoBounds(e.a,0,1),l=i.Color.fromHSV(a,s,u,c);return"hex"===n?t.getHexValue(l,o):l.toCssRgba()},t.getHexValue=function(e,t){return t&&e.a<1?e.toCss({alpha:!0}):e.toCss()},t.getColorFromHue=function(e){return t.getColorFromHSV({h:e,s:1,v:1,a:1})},t.getColorFromRGBA=function(e){var t=r.fitIntoBounds(e.r,0,255),n=r.fitIntoBounds(e.g,0,255),o=r.fitIntoBounds(e.b,0,255),a=r.fitIntoBounds(e.a,0,1);return i.Color.fromBytes(t,n,o,a).toCssRgba()},t.nameFormat=o,t.getRGBFromRGBA=function(e,t){var n=r.fitIntoBounds(e.r,0,255),i=r.fitIntoBounds(e.g,0,255),o=r.fitIntoBounds(e.b,0,255),a=r.fitIntoBounds(e.a,0,1),s=r.fitIntoBounds(t.r,0,255),u=r.fitIntoBounds(t.g,0,255),c=r.fitIntoBounds(t.b,0,255);return{r:Math.round((1-a)*s+a*n),g:Math.round((1-a)*u+a*i),b:Math.round((1-a)*c+a*o)}},t.getLuminance=function(e){var t=[e.r,e.g,e.b].map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}));return.2126*t[0]+.7152*t[1]+.0722*t[2]},t.getContrast=function(e,t){return(Math.max(e,t)+.05)/(Math.min(e,t)+.05)},t.getContrastFromTwoRGBAs=function(e,n){return t.getContrast(t.getLuminance(t.getRGBFromRGBA(e,n)),t.getLuminance(t.getRGBFromRGBA(n,{r:0,g:0,b:0,a:1})))}},function(e,t){e.exports=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bezierCommand=function(e){return function(t,n,i){var r=e(i[n-1],i[n-2],t),o=r[0],a=r[1],s=e(t,i[n-1],i[n+1],!0);return"C "+o+","+a+" "+s[0]+","+s[1]+" "+t[0]+","+t[1]}},t.controlPoint=function(e){return function(t,n,i,r){var o=e(n||t,i||t),a=o.angle+(r?Math.PI:0),s=.1*o.length;return[t[0]+Math.cos(a)*s,t[1]+Math.sin(a)*s]}},t.line=function(e,t){var n=t[0]-e[0],i=t[1]-e[1];return{length:Math.sqrt(Math.pow(n,2)+Math.pow(i,2)),angle:Math.atan2(i,n)}},t.d=function(e,t){return 0===e.length?"":e.reduce((function(e,n,i,r){return 0===i?"M "+n[0]+","+n[1]:e+" "+t(n,i,r)}),"")},t.svgPath=function(e,t){return 0===e.length?"":e.reduce((function(e,n,i,r){return 0===i?"M "+n[0]+","+n[1]:e+" "+t(n,i,r)}),"")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(2),a=n(26),s=function(e){function t(t,n,i,r){var o=e.call(this,t,n,i)||this;return o.flatColorPickerLocalization=r,o}return i.__extends(t,e),t.prototype.get=function(t){return this.flatColorPickerLocalization?this.flatColorPickerLocalization.get(t):e.prototype.get.call(this,t)},t=i.__decorate([i.__param(0,r.Inject(o.L10N_PREFIX)),i.__param(1,r.Optional()),i.__param(2,r.Optional()),i.__param(2,r.Inject(o.RTL)),i.__param(3,r.Optional()),i.__param(3,r.Inject(a.FlatColorPickerLocalizationService)),i.__metadata("design:paramtypes",[String,o.MessageService,Boolean,a.FlatColorPickerLocalizationService])],t)}(o.LocalizationService);t.ColorGradientLocalizationService=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(2),a=n(26),s=function(e){function t(t,n,i,r){var o=e.call(this,t,n,i)||this;return o.flatColorPickerLocalization=r,o}return i.__extends(t,e),t.prototype.get=function(t){return this.flatColorPickerLocalization?this.flatColorPickerLocalization.get(t):e.prototype.get.call(this,t)},t=i.__decorate([i.__param(0,r.Inject(o.L10N_PREFIX)),i.__param(1,r.Optional()),i.__param(2,r.Optional()),i.__param(2,r.Inject(o.RTL)),i.__param(3,r.Optional()),i.__param(3,r.Inject(a.FlatColorPickerLocalizationService)),i.__metadata("design:paramtypes",[String,o.MessageService,Boolean,a.FlatColorPickerLocalizationService])],t)}(o.LocalizationService);t.ColorPaletteLocalizationService=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(4),a=function(){function e(){this.colorRows=[]}return e.prototype.setColorMatrix=function(e,t){if(this.colorRows=[],o.isPresent(e)&&e.length){t=t||e.length;for(var n=0;n<e.length;n+=t){var i=e.slice(n,t+n);this.colorRows.push(i)}}},e.prototype.getCellCoordsFor=function(e){if(o.isPresent(e))for(var t=0;t<this.colorRows.length;t++)for(var n=0;n<this.colorRows[t].length;n++)if(this.colorRows[t][n]===e)return{row:t,col:n}},e.prototype.getColorAt=function(e){if(o.isPresent(e)&&o.isPresent(this.colorRows[e.row]))return this.colorRows[e.row][e.col]},e.prototype.getNextCell=function(e,t,n){if(!(o.isPresent(e)&&o.isPresent(e.row)&&o.isPresent(e.col)))return{row:0,col:0};var i=this.clampIndex(e.row+n,this.colorRows.length-1);return{row:i,col:this.clampIndex(e.col+t,this.colorRows[i].length-1)}},e.prototype.clampIndex=function(e,t){return e<0?0:e>t?t:e},e=i.__decorate([r.Injectable()],e)}();t.ColorPaletteService=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(2),a=n(73),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=i.__decorate([r.Component({providers:[{provide:a.ColorPickerMessages,useExisting:r.forwardRef((function(){return n}))}],selector:"kendo-colorpicker-messages, kendo-flatcolorpicker-messages, kendo-colorgradient-messages, kendo-colorpalette-messages",template:""}),i.__metadata("design:paramtypes",[o.LocalizationService])],t)}(a.ColorPickerMessages);t.ColorPickerCustomMessagesComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=function(){function e(e,t){this.host=e,this.ngZone=t}return e.prototype.ngAfterContentInit=function(){this.focusOnNextTick()},e.prototype.focusOnNextTick=function(){var e=this;this.ngZone.runOutsideAngular((function(){return setTimeout((function(){return e.host.nativeElement.focus()}))}))},e=i.__decorate([r.Directive({selector:"[kendoFocusOnDomReady]"}),i.__metadata("design:paramtypes",[r.ElementRef,r.NgZone])],e)}();t.FocusOnDomReadyDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(14),o=n(2),a=n(1),s=function(){function e(e){this.localization=e}return Object.defineProperty(e.prototype,"passMessage",{get:function(){return this.localization.get("passContrast")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"failMessage",{get:function(){return this.localization.get("failContrast")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contrastText",{get:function(){var e="AA"===this.type?r.AA_RATIO:r.AAA_RATIO;return this.type+": "+e.toFixed(1)},enumerable:!0,configurable:!0}),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"type",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"pass",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"value",void 0),e=i.__decorate([a.Component({selector:"[kendoContrastValidation]",template:'\n <span>{{contrastText}}</span>\n <ng-container *ngIf="value">\n <span class="k-contrast-validation k-text-success" *ngIf="pass">\n {{passMessage}}\n <span class="k-icon k-i-check"></span>\n </span>\n <span class="k-contrast-validation k-text-error" *ngIf="!pass">\n {{failMessage}}\n <span class="k-icon k-i-close"></span>\n </span>\n </ng-container>\n '}),i.__metadata("design:paramtypes",[o.LocalizationService])],e)}();t.ContrastValidationComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(2),a=n(13),s=n(14),u=function(){function e(e){this.localization=e}return Object.defineProperty(e.prototype,"formatedRatio",{get:function(){return this.contrastRatio.toFixed(2)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contrastRatioText",{get:function(){return this.localization.get("contrastRatio")+": "+(this.value?this.formatedRatio:"n/a")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"satisfiesAACondition",{get:function(){return this.contrastRatio>=s.AA_RATIO},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"satisfiesAAACondition",{get:function(){return this.contrastRatio>=s.AAA_RATIO},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contrastRatio",{get:function(){return a.getContrastFromTwoRGBAs(a.getRGBA(this.value),a.getRGBA(this.ratio))},enumerable:!0,configurable:!0}),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"value",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"ratio",void 0),e=i.__decorate([r.Component({selector:"[kendoContrastTool]",template:'\n <div class="k-contrast-ratio">\n <span class="k-contrast-ratio-text">{{contrastRatioText}}</span>\n <ng-container *ngIf="value">\n <span class="k-contrast-validation k-text-success" *ngIf="satisfiesAACondition">\n <span class="k-icon k-i-check"></span>\n <span class="k-icon k-i-check" *ngIf="satisfiesAAACondition"></span>\n </span>\n <span class="k-contrast-validation k-text-error" *ngIf="!satisfiesAACondition">\n <span class="k-icon k-i-close"></span>\n </span>\n </ng-container>\n </div>\n <div kendoContrastValidation\n type="AA"\n [value]="value"\n [pass]="satisfiesAACondition">\n </div>\n <div kendoContrastValidation\n type="AAA"\n [value]="value"\n [pass]="satisfiesAAACondition">\n </div>\n '}),i.__metadata("design:paramtypes",[o.LocalizationService])],e)}();t.ContrastComponent=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(7),a=n(4),s=n(14),u=n(13),c=function(){function e(){this.hostClass=!0}return e.prototype.ngAfterViewInit=function(){var e=this;this.metrics=this.wrapper.getBoundingClientRect(),this.oldA=this.hsva.value.a,this.oldH=this.hsva.value.h,this.hsva.subscribe((function(t){t.h===e.oldH&&t.a===e.oldA||(e.oldH=t.h,e.oldA=t.a,e.setPaths())}))},e.prototype.ngOnChanges=function(e){a.isPresent(e.backgroundColor)&&this.metrics&&this.setPaths()},e.prototype.setPaths=function(){var e=u.bezierCommand(u.controlPoint(u.line));this.paths=[u.svgPath(this.getPaths(s.AA_RATIO,s.STEP_COUNT),e),u.svgPath(this.getPaths(s.AA_RATIO,s.STEP_COUNT,!0),e),u.svgPath(this.getPaths(s.AAA_RATIO,s.STEP_COUNT),e),u.svgPath(this.getPaths(s.AAA_RATIO,s.STEP_COUNT,!0),e)]},e.prototype.findValue=function(e,t,n,i,r){var o=(n+i)/2,a=Object.assign({},this.hsva.value,{s:t/this.metrics.width,v:1-o/this.metrics.height}),s=u.getContrastFromTwoRGBAs(u.getRGBA(u.getColorFromHSV(a)),u.getRGBA(this.backgroundColor||""));return n+.5>i?s<e+1&&s>e-1?o:null:r(s,e)?this.findValue(e,t,n,i-(i-n)/2,r):this.findValue(e,t,n+(i-n)/2,i,r)},e.prototype.getPaths=function(e,t,n){void 0===n&&(n=!1);for(var i=[],r=0;r<=this.metrics.width;r+=this.metrics.width/t){var o=this.findValue(e,r,0,this.metrics.height,n?function(e,t){return e<t}:function(e,t){return e>t});null!==o&&i.push([r,o])}return i},i.__decorate([r.HostBinding("class.k-color-contrast-svg"),i.__metadata("design:type",Boolean)],e.prototype,"hostClass",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"wrapper",void 0),i.__decorate([r.Input(),i.__metadata("design:type",o.BehaviorSubject)],e.prototype,"hsva",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"backgroundColor",void 0),e=i.__decorate([r.Component({selector:"[kendoColorContrastSvg]",template:'\n <svg:path *ngFor="let path of paths" [attr.d]="path" fill="none" stroke="white" stroke-width="1"></svg:path>\n '})],e)}();t.ColorContrastSvgComponent=c}])}));
|
|
20
|
+
var i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function r(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function a(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n}function s(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}function u(e,t){return function(n,i){t(n,i,e)}}function c(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{u(i.next(e))}catch(e){o(e)}}function s(e){try{u(i.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((i=i.apply(e,t||[])).next())}))}function d(e,t){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(r=a.trys,(r=r.length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}function p(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}function h(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||(t[n]=e[n])}function f(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,r,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a}function v(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(m(arguments[t]));return e}function g(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,r++)i[r]=o[a];return i}function y(e){return this instanceof y?(this.v=e,this):new y(e)}function _(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,r=n.apply(e,t||[]),o=[];return i={},a("next"),a("throw"),a("return"),i[Symbol.asyncIterator]=function(){return this},i;function a(e){r[e]&&(i[e]=function(t){return new Promise((function(n,i){o.push([e,t,n,i])>1||s(e,t)}))})}function s(e,t){try{(n=r[e](t)).value instanceof y?Promise.resolve(n.value.v).then(u,c):l(o[0][2],n)}catch(e){l(o[0][3],e)}var n}function u(e){s("next",e)}function c(e){s("throw",e)}function l(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function b(e){var t,n;return t={},i("next"),i("throw",(function(e){throw e})),i("return"),t[Symbol.iterator]=function(){return this},t;function i(i,r){t[i]=e[i]?function(t){return(n=!n)?{value:y(e[i](t)),done:"return"===i}:r?r(t):t}:r}}function C(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=f(e),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(n){t[n]=e[n]&&function(t){return new Promise((function(i,r){(function(e,t,n,i){Promise.resolve(i).then((function(t){e({value:t,done:n})}),t)})(i,r,(t=e[n](t)).done,t.value)}))}}}function k(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function w(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function x(e){return e&&e.__esModule?e:{default:e}}function S(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function E(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}},function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t){e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isPresent=function(e){return null!=e},t.areSame=function(e,t){return e===t||null===e&&void 0===t||void 0===e&&null===t},t.requiresZoneOnBlur=function(e){return e&&(!e.touched||e.control&&"blur"===e.control.updateOn)},t.fitIntoBounds=function(e,n,i){return!t.isPresent(e)||isNaN(e)||e<=n?n:e>=i?i:e};var i={small:"sm",medium:"md",large:"lg"},r={small:"sm",medium:"md",large:"lg",full:"full"};t.getStylingClasses=function(e,t,n,o){switch(t){case"size":return{toRemove:"k-"+e+"-"+i[n],toAdd:o?"k-"+e+"-"+i[o]:null};case"rounded":return{toRemove:"k-rounded-"+r[n],toAdd:o?"k-rounded-"+r[o]:null};case"fillMode":return{toRemove:"k-"+e+"-"+n,toAdd:o?"k-"+e+"-"+o:null}}}},function(e,t){e.exports=i},function(e,t){e.exports=r},function(e,t){e.exports=o},function(e,t){e.exports=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata={name:"@progress/kendo-angular-inputs",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1646042872,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(4),r=n(17),o=n(1);t.calculateFixedTrackSize=function(e){return(e.max-e.min)/e.smallStep*e.fixedTickWidth},t.calculateTrackSize=function(e,t,n){void 0===n&&(n=!0);var i=e-(n?2*parseFloat(t):0);return Math.floor(i)},t.calculateTicksCount=function(e,t,n){if(void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=1),n<=0)throw new Error("Invalid argument: smallStep must be a positive number");var i=Math.abs(r.subtract(t,e)),o=Math.floor(r.divide(i,n));return r.add(o,1)},t.calculateValueFromTick=function(e,t){var n=t.max,i=t.min,o=t.smallStep,a=t.reverse,s=t.vertical,u=r.add(i,r.multiply(e,o));return s||a?Math.abs(r.subtract(u,n)):u},t.calculateHandlePosition=function(e){var t=e.trackWidth,n=e.min,r=e.max,o=e.reverse,a=e.value,s=t/Math.abs(r-n),u=i.isPresent(a)?s*(a-n):n;return o&&(u=t-u),Math.floor(u)},t.decreaseValueToStep=function(e,n,i){var o=n.max,a=n.min,s=n.smallStep,u=n.largeStep;void 0===i&&(i=!1);var c,l=i&&u?r.multiply(s,u):s,d=r.subtract(e,a),p=r.remainder(d,l);return c=0===p?r.subtract(d,l):r.subtract(d,p),t.limitValue(r.add(c,a),a,o)},t.increaseValueToStep=function(e,n,i){var o=n.max,a=n.min,s=n.smallStep,u=n.largeStep;void 0===i&&(i=!1);var c=i&&u?r.multiply(s,u):s,l=r.subtract(e,a),d=r.remainder(l,c),p=r.add(r.subtract(l,d),c);return t.limitValue(r.add(p,a),a,o)},t.isStartHandle=function(e){return e.id.indexOf("k-start-handle")>-1},t.snapValue=function(e,n){var i=n.smallStep,r=n.min,o=n.max,a=t.limitValue(e,r,o);if(e!==a)return a;var s=t.decreaseValueToStep(e,n),u=t.increaseValueToStep(e,n);return(e-r)%i==0?e:u-e<=(u-s)/2?u:s},t.trimValue=function(e,t,n){return n>e?e:n<t?t:n},t.trimValueRange=function(e,n,i){return i?[t.trimValue(e,n,i[0]),t.trimValue(e,n,i[1])]:[n,n]},t.identity=function(e){return e},t.isSameRange=function(e,t){return i.areSame(e[0],t[0])&&i.areSame(e[1],t[1])},t.elementOffset=function(e){var t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||0)}},t.limitValue=function(e,t,n){return Math.max(Math.min(e,n),t)},t.eventValue=function(e,n,i){var o=i.min,a=i.max,s=i.vertical,u=i.rtl,c=t.elementOffset(n),l=(s?e.pageY-c.top:e.pageX-c.left)*((a-o)/(s?n.clientHeight:n.clientWidth)),d=u||s?a-l:o+l,p=r.fractionLength(i.smallStep);return d=r.toFixedPrecision(d,p+1),t.snapValue(d,i)},t.isButton=function(e){return e.className.indexOf("k-button-increase")>=0||e.className.indexOf("k-button-decrease")>=0},t.increment=function(e){return t.increaseValueToStep(e.value,e)},t.decrement=function(e){return t.decreaseValueToStep(e.value,e)},t.incrementLarge=function(e){return t.increaseValueToStep(e.value,e,!0)},t.decrementLarge=function(e){return t.decreaseValueToStep(e.value,e,!0)},t.validateValue=function(e){if(o.isDevMode&&e&&e[0]>e[1])throw new Error("[RangeSlider] The start value should not be greater than the end value.")},t.default={calculateFixedTrackSize:t.calculateFixedTrackSize,calculateValueFromTick:t.calculateValueFromTick,calculateTrackSize:t.calculateTrackSize,calculateTicksCount:t.calculateTicksCount,calculateHandlePosition:t.calculateHandlePosition,decreaseValueToStep:t.decreaseValueToStep,decrement:t.decrement,decrementLarge:t.decrementLarge,eventValue:t.eventValue,identity:t.identity,increment:t.increment,incrementLarge:t.incrementLarge,isButton:t.isButton,isSameRange:t.isSameRange,isStartHandle:t.isStartHandle,increaseValueToStep:t.increaseValueToStep,trimValue:t.trimValue,trimValueRange:t.trimValueRange,snapValue:t.snapValue,validateValue:t.validateValue}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.hasClass=function(e,t){return Boolean((n=e.className,String(n).trim().split(" ")).find((function(e){return e===t})));var n},t.invokeElementMethod=function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];if(e&&e.nativeElement)return e.nativeElement[t].apply(e.nativeElement,n)},t.isUntouched=function(e){return e&&e.nativeElement&&t.hasClass(e.nativeElement,"ng-untouched")},t.containsFocus=function(e,t){return e&&t&&(e===t||e.contains(t))},t.closest=function(e,t){for(;e&&!t(e);)e=e.parentNode;return e}},function(e,t,n){"use strict";n.r(t),n.d(t,"audit",(function(){return A})),n.d(t,"auditTime",(function(){return K})),n.d(t,"buffer",(function(){return U})),n.d(t,"bufferCount",(function(){return Y})),n.d(t,"bufferTime",(function(){return ee})),n.d(t,"bufferToggle",(function(){return se})),n.d(t,"bufferWhen",(function(){return le})),n.d(t,"catchError",(function(){return he})),n.d(t,"combineAll",(function(){return be})),n.d(t,"combineLatest",(function(){return ke})),n.d(t,"concat",(function(){return je})),n.d(t,"concatAll",(function(){return Ne})),n.d(t,"concatMap",(function(){return De})),n.d(t,"concatMapTo",(function(){return ze})),n.d(t,"count",(function(){return Fe})),n.d(t,"debounce",(function(){return We})),n.d(t,"debounceTime",(function(){return Ke})),n.d(t,"defaultIfEmpty",(function(){return Ye})),n.d(t,"delay",(function(){return rt})),n.d(t,"delayWhen",(function(){return ut})),n.d(t,"dematerialize",(function(){return ht})),n.d(t,"distinct",(function(){return vt})),n.d(t,"distinctUntilChanged",(function(){return _t})),n.d(t,"distinctUntilKeyChanged",(function(){return kt})),n.d(t,"elementAt",(function(){return Dt})),n.d(t,"endWith",(function(){return zt})),n.d(t,"every",(function(){return Ft})),n.d(t,"exhaust",(function(){return Wt})),n.d(t,"exhaustMap",(function(){return Kt})),n.d(t,"expand",(function(){return $t})),n.d(t,"filter",(function(){return St})),n.d(t,"finalize",(function(){return Qt})),n.d(t,"find",(function(){return tn})),n.d(t,"findIndex",(function(){return on})),n.d(t,"first",(function(){return an})),n.d(t,"groupBy",(function(){return hn})),n.d(t,"ignoreElements",(function(){return _n})),n.d(t,"isEmpty",(function(){return kn})),n.d(t,"last",(function(){return In})),n.d(t,"map",(function(){return Pe})),n.d(t,"mapTo",(function(){return Tn})),n.d(t,"materialize",(function(){return Vn})),n.d(t,"max",(function(){return zn})),n.d(t,"merge",(function(){return Hn})),n.d(t,"mergeAll",(function(){return Me})),n.d(t,"mergeMap",(function(){return Oe})),n.d(t,"flatMap",(function(){return Oe})),n.d(t,"mergeMapTo",(function(){return Ln})),n.d(t,"mergeScan",(function(){return Wn})),n.d(t,"min",(function(){return Kn})),n.d(t,"multicast",(function(){return Jn})),n.d(t,"observeOn",(function(){return ti})),n.d(t,"onErrorResumeNext",(function(){return oi})),n.d(t,"pairwise",(function(){return ui})),n.d(t,"partition",(function(){return pi})),n.d(t,"pluck",(function(){return hi})),n.d(t,"publish",(function(){return mi})),n.d(t,"publishBehavior",(function(){return gi})),n.d(t,"publishLast",(function(){return _i})),n.d(t,"publishReplay",(function(){return xi})),n.d(t,"race",(function(){return Ii})),n.d(t,"reduce",(function(){return Dn})),n.d(t,"repeat",(function(){return Ti})),n.d(t,"repeatWhen",(function(){return Vi})),n.d(t,"retry",(function(){return Ni})),n.d(t,"retryWhen",(function(){return Di})),n.d(t,"refCount",(function(){return Un})),n.d(t,"sample",(function(){return Hi})),n.d(t,"sampleTime",(function(){return Zi})),n.d(t,"scan",(function(){return Nn})),n.d(t,"sequenceEqual",(function(){return qi})),n.d(t,"share",(function(){return Ji})),n.d(t,"shareReplay",(function(){return er})),n.d(t,"single",(function(){return tr})),n.d(t,"skip",(function(){return rr})),n.d(t,"skipLast",(function(){return sr})),n.d(t,"skipUntil",(function(){return lr})),n.d(t,"skipWhile",(function(){return hr})),n.d(t,"startWith",(function(){return vr})),n.d(t,"subscribeOn",(function(){return xr})),n.d(t,"switchAll",(function(){return Tr})),n.d(t,"switchMap",(function(){return Er})),n.d(t,"switchMapTo",(function(){return Or})),n.d(t,"take",(function(){return Nt})),n.d(t,"takeLast",(function(){return Sn})),n.d(t,"takeUntil",(function(){return Br})),n.d(t,"takeWhile",(function(){return Mr})),n.d(t,"tap",(function(){return It})),n.d(t,"throttle",(function(){return Dr})),n.d(t,"throttleTime",(function(){return Hr})),n.d(t,"throwIfEmpty",(function(){return Rt})),n.d(t,"timeInterval",(function(){return Gr})),n.d(t,"timeout",(function(){return Qr})),n.d(t,"timeoutWith",(function(){return $r})),n.d(t,"timestamp",(function(){return Jr})),n.d(t,"toArray",(function(){return no})),n.d(t,"window",(function(){return io})),n.d(t,"windowCount",(function(){return ao})),n.d(t,"windowTime",(function(){return co})),n.d(t,"windowToggle",(function(){return go})),n.d(t,"windowWhen",(function(){return bo})),n.d(t,"withLatestFrom",(function(){return wo})),n.d(t,"zip",(function(){return Vo})),n.d(t,"zipAll",(function(){return Ro}));var i=n(0);function r(e){return"function"==typeof e}var o=!1,a={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){e&&(new Error).stack;o=e},get useDeprecatedSynchronousErrorHandling(){return o}};function s(e){setTimeout((function(){throw e}))}var u={closed:!0,next:function(e){},error:function(e){if(a.useDeprecatedSynchronousErrorHandling)throw e;s(e)},complete:function(){}},c=Array.isArray||function(e){return e&&"number"==typeof e.length};function l(e){return null!==e&&"object"==typeof e}function d(e){return Error.call(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=e,this}d.prototype=Object.create(Error.prototype);var p=d,h=function(){function e(e){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,e&&(this._unsubscribe=e)}return e.prototype.unsubscribe=function(){var e,t=!1;if(!this.closed){var n=this._parent,i=this._parents,o=this._unsubscribe,a=this._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var s=-1,u=i?i.length:0;n;)n.remove(this),n=++s<u&&i[s]||null;if(r(o))try{o.call(this)}catch(n){t=!0,e=n instanceof p?f(n.errors):[n]}if(c(a))for(s=-1,u=a.length;++s<u;){var d=a[s];if(l(d))try{d.unsubscribe()}catch(n){t=!0,e=e||[],n instanceof p?e=e.concat(f(n.errors)):e.push(n)}}if(t)throw new p(e)}},e.prototype.add=function(t){var n=t;switch(typeof t){case"function":n=new e(t);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof e)){var i=n;(n=new e)._subscriptions=[i]}break;default:if(!t)return e.EMPTY;throw new Error("unrecognized teardown "+t+" added to Subscription.")}if(n._addParent(this)){var r=this._subscriptions;r?r.push(n):this._subscriptions=[n]}return n},e.prototype.remove=function(e){var t=this._subscriptions;if(t){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}},e.prototype._addParent=function(e){var t=this._parent,n=this._parents;return t!==e&&(t?n?-1===n.indexOf(e)&&(n.push(e),!0):(this._parents=[e],!0):(this._parent=e,!0))},e.EMPTY=function(e){return e.closed=!0,e}(new e),e}();function f(e){return e.reduce((function(e,t){return e.concat(t instanceof p?t.errors:t)}),[])}var m="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random(),v=function(e){function t(n,i,r){var o=e.call(this)||this;switch(o.syncErrorValue=null,o.syncErrorThrown=!1,o.syncErrorThrowable=!1,o.isStopped=!1,arguments.length){case 0:o.destination=u;break;case 1:if(!n){o.destination=u;break}if("object"==typeof n){n instanceof t?(o.syncErrorThrowable=n.syncErrorThrowable,o.destination=n,n.add(o)):(o.syncErrorThrowable=!0,o.destination=new g(o,n));break}default:o.syncErrorThrowable=!0,o.destination=new g(o,n,i,r)}return o}return i.__extends(t,e),t.prototype[m]=function(){return this},t.create=function(e,n,i){var r=new t(e,n,i);return r.syncErrorThrowable=!1,r},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this))},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){this.destination.error(e),this.unsubscribe()},t.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},t.prototype._unsubscribeAndRecycle=function(){var e=this._parent,t=this._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=e,this._parents=t,this},t}(h),g=function(e){function t(t,n,i,o){var a,s=e.call(this)||this;s._parentSubscriber=t;var c=s;return r(n)?a=n:n&&(a=n.next,i=n.error,o=n.complete,n!==u&&(r((c=Object.create(n)).unsubscribe)&&s.add(c.unsubscribe.bind(c)),c.unsubscribe=s.unsubscribe.bind(s))),s._context=c,s._next=a,s._error=i,s._complete=o,s}return i.__extends(t,e),t.prototype.next=function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}},t.prototype.error=function(e){if(!this.isStopped){var t=this._parentSubscriber,n=a.useDeprecatedSynchronousErrorHandling;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):s(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;s(e)}}},t.prototype.complete=function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return e._complete.call(e._context)};a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},t.prototype.__tryOrUnsub=function(e,t){try{e.call(this._context,t)}catch(e){if(this.unsubscribe(),a.useDeprecatedSynchronousErrorHandling)throw e;s(e)}},t.prototype.__tryOrSetError=function(e,t,n){if(!a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(t){return a.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=t,e.syncErrorThrown=!0,!0):(s(t),!0)}return!1},t.prototype._unsubscribe=function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()},t}(v),y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.notifyNext=function(e,t,n,i,r){this.destination.next(t)},t.prototype.notifyError=function(e,t){this.destination.error(e)},t.prototype.notifyComplete=function(e){this.destination.complete()},t}(v),_=function(e){function t(t,n,i){var r=e.call(this)||this;return r.parent=t,r.outerValue=n,r.outerIndex=i,r.index=0,r}return i.__extends(t,e),t.prototype._next=function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)},t.prototype._error=function(e){this.parent.notifyError(e,this),this.unsubscribe()},t.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},t}(v);var b="function"==typeof Symbol&&Symbol.observable||"@@observable";function C(){}function k(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return w(e)}function w(e){return e?1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)}:C}var x=function(){function e(e){this._isScalar=!1,e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var i=this.operator,r=function(e,t,n){if(e){if(e instanceof v)return e;if(e[m])return e[m]()}return e||t||n?new v(e,t,n):new v(u)}(e,t,n);if(i?r.add(i.call(r,this.source)):r.add(this.source||a.useDeprecatedSynchronousErrorHandling&&!r.syncErrorThrowable?this._subscribe(r):this._trySubscribe(r)),a.useDeprecatedSynchronousErrorHandling&&r.syncErrorThrowable&&(r.syncErrorThrowable=!1,r.syncErrorThrown))throw r.syncErrorValue;return r},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){a.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),!function(e){for(;e;){var t=e,n=t.closed,i=t.destination,r=t.isStopped;if(n||r)return!1;e=i&&i instanceof v?i:null}return!0}(e)?console.warn(t):e.error(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=S(t))((function(t,i){var r;r=n.subscribe((function(t){try{e(t)}catch(e){i(e),r&&r.unsubscribe()}}),i,t)}))},e.prototype._subscribe=function(e){var t=this.source;return t&&t.subscribe(e)},e.prototype[b]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 0===e.length?this:w(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=S(e))((function(e,n){var i;t.subscribe((function(e){return i=e}),(function(e){return n(e)}),(function(){return e(i)}))}))},e.create=function(t){return new e(t)},e}();function S(e){if(e||(e=a.Promise||Promise),!e)throw new Error("no Promise impl found");return e}var E=function(e){return function(t){for(var n=0,i=e.length;n<i&&!t.closed;n++)t.next(e[n]);t.closed||t.complete()}},P=function(e){return function(t){return e.then((function(e){t.closed||(t.next(e),t.complete())}),(function(e){return t.error(e)})).then(null,s),t}};function I(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}var T=I(),O=function(e){return function(t){for(var n=e[T]();;){var i=n.next();if(i.done){t.complete();break}if(t.next(i.value),t.closed)break}return"function"==typeof n.return&&t.add((function(){n.return&&n.return()})),t}},B=function(e){return function(t){var n=e[b]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(t)}},V=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e};function R(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}var M=function(e){if(e instanceof x)return function(t){return e._isScalar?(t.next(e.value),void t.complete()):e.subscribe(t)};if(e&&"function"==typeof e[b])return B(e);if(V(e))return E(e);if(R(e))return P(e);if(e&&"function"==typeof e[T])return O(e);var t=l(e)?"an invalid object":"'"+e+"'";throw new TypeError("You provided "+t+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")};function N(e,t,n,i,r){if(void 0===r&&(r=new _(e,n,i)),!r.closed)return M(t)(r)}function A(e){return function(t){return t.lift(new j(e))}}var j=function(){function e(e){this.durationSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new D(e,this.durationSelector))},e}(),D=function(e){function t(t,n){var i=e.call(this,t)||this;return i.durationSelector=n,i.hasValue=!1,i}return i.__extends(t,e),t.prototype._next=function(e){if(this.value=e,this.hasValue=!0,!this.throttled){var t=void 0;try{t=(0,this.durationSelector)(e)}catch(e){return this.destination.error(e)}var n=N(this,t);!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}},t.prototype.clearThrottle=function(){var e=this.value,t=this.hasValue,n=this.throttled;n&&(this.remove(n),this.throttled=null,n.unsubscribe()),t&&(this.value=null,this.hasValue=!1,this.destination.next(e))},t.prototype.notifyNext=function(e,t,n,i){this.clearThrottle()},t.prototype.notifyComplete=function(){this.clearThrottle()},t}(y),z=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.scheduler=t,i.work=n,i.pending=!1,i}return i.__extends(t,e),t.prototype.schedule=function(e,t){if(void 0===t&&(t=0),this.closed)return this;this.state=e;var n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(i,this.id,t),this},t.prototype.requestAsyncId=function(e,t,n){return void 0===n&&(n=0),setInterval(e.flush.bind(e,this),n)},t.prototype.recycleAsyncId=function(e,t,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var n=!1,i=void 0;try{this.work(e)}catch(e){n=!0,i=!!e&&e||new Error(e)}if(n)return this.unsubscribe(),i},t.prototype._unsubscribe=function(){var e=this.id,t=this.scheduler,n=t.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null},t}(function(e){function t(t,n){return e.call(this)||this}return i.__extends(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(h)),F=function(){function e(t,n){void 0===n&&(n=e.now),this.SchedulerAction=t,this.now=n}return e.prototype.schedule=function(e,t,n){return void 0===t&&(t=0),new this.SchedulerAction(this,e).schedule(n,t)},e.now=function(){return Date.now()},e}(),H=function(e){function t(n,i){void 0===i&&(i=F.now);var r=e.call(this,n,(function(){return t.delegate&&t.delegate!==r?t.delegate.now():i()}))||this;return r.actions=[],r.active=!1,r.scheduled=void 0,r}return i.__extends(t,e),t.prototype.schedule=function(n,i,r){return void 0===i&&(i=0),t.delegate&&t.delegate!==this?t.delegate.schedule(n,i,r):e.prototype.schedule.call(this,n,i,r)},t.prototype.flush=function(e){var t=this.actions;if(this.active)t.push(e);else{var n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}},t}(F),L=new H(z);function W(e){return!c(e)&&e-parseFloat(e)+1>=0}function Z(e){return e&&"function"==typeof e.schedule}function G(e){var t=e.index,n=e.period,i=e.subscriber;if(i.next(t),!i.closed){if(-1===n)return i.complete();e.index=t+1,this.schedule(e,n)}}function K(e,t){return void 0===t&&(t=L),A((function(){return function(e,t,n){void 0===e&&(e=0);var i=-1;return W(t)?i=Number(t)<1?1:Number(t):Z(t)&&(n=t),Z(n)||(n=L),new x((function(t){var r=W(e)?e:+e-n.now();return n.schedule(G,r,{index:0,period:i,subscriber:t})}))}(e,t)}))}function U(e){return function(t){return t.lift(new q(e))}}var q=function(){function e(e){this.closingNotifier=e}return e.prototype.call=function(e,t){return t.subscribe(new $(e,this.closingNotifier))},e}(),$=function(e){function t(t,n){var i=e.call(this,t)||this;return i.buffer=[],i.add(N(i,n)),i}return i.__extends(t,e),t.prototype._next=function(e){this.buffer.push(e)},t.prototype.notifyNext=function(e,t,n,i,r){var o=this.buffer;this.buffer=[],this.destination.next(o)},t}(y);function Y(e,t){return void 0===t&&(t=null),function(n){return n.lift(new X(e,t))}}var X=function(){function e(e,t){this.bufferSize=e,this.startBufferEvery=t,this.subscriberClass=t&&e!==t?J:Q}return e.prototype.call=function(e,t){return t.subscribe(new this.subscriberClass(e,this.bufferSize,this.startBufferEvery))},e}(),Q=function(e){function t(t,n){var i=e.call(this,t)||this;return i.bufferSize=n,i.buffer=[],i}return i.__extends(t,e),t.prototype._next=function(e){var t=this.buffer;t.push(e),t.length==this.bufferSize&&(this.destination.next(t),this.buffer=[])},t.prototype._complete=function(){var t=this.buffer;t.length>0&&this.destination.next(t),e.prototype._complete.call(this)},t}(v),J=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.bufferSize=n,r.startBufferEvery=i,r.buffers=[],r.count=0,r}return i.__extends(t,e),t.prototype._next=function(e){var t=this.bufferSize,n=this.startBufferEvery,i=this.buffers,r=this.count;this.count++,r%n==0&&i.push([]);for(var o=i.length;o--;){var a=i[o];a.push(e),a.length===t&&(i.splice(o,1),this.destination.next(a))}},t.prototype._complete=function(){for(var t=this.buffers,n=this.destination;t.length>0;){var i=t.shift();i.length>0&&n.next(i)}e.prototype._complete.call(this)},t}(v);function ee(e){var t=arguments.length,n=L;Z(arguments[arguments.length-1])&&(n=arguments[arguments.length-1],t--);var i=null;t>=2&&(i=arguments[1]);var r=Number.POSITIVE_INFINITY;return t>=3&&(r=arguments[2]),function(t){return t.lift(new te(e,i,r,n))}}var te=function(){function e(e,t,n,i){this.bufferTimeSpan=e,this.bufferCreationInterval=t,this.maxBufferSize=n,this.scheduler=i}return e.prototype.call=function(e,t){return t.subscribe(new ie(e,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))},e}(),ne=function(){return function(){this.buffer=[]}}(),ie=function(e){function t(t,n,i,r,o){var a=e.call(this,t)||this;a.bufferTimeSpan=n,a.bufferCreationInterval=i,a.maxBufferSize=r,a.scheduler=o,a.contexts=[];var s=a.openContext();if(a.timespanOnly=null==i||i<0,a.timespanOnly){var u={subscriber:a,context:s,bufferTimeSpan:n};a.add(s.closeAction=o.schedule(re,n,u))}else{var c={subscriber:a,context:s},l={bufferTimeSpan:n,bufferCreationInterval:i,subscriber:a,scheduler:o};a.add(s.closeAction=o.schedule(ae,n,c)),a.add(o.schedule(oe,i,l))}return a}return i.__extends(t,e),t.prototype._next=function(e){for(var t,n=this.contexts,i=n.length,r=0;r<i;r++){var o=n[r],a=o.buffer;a.push(e),a.length==this.maxBufferSize&&(t=o)}t&&this.onBufferFull(t)},t.prototype._error=function(t){this.contexts.length=0,e.prototype._error.call(this,t)},t.prototype._complete=function(){for(var t=this.contexts,n=this.destination;t.length>0;){var i=t.shift();n.next(i.buffer)}e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){this.contexts=null},t.prototype.onBufferFull=function(e){this.closeContext(e);var t=e.closeAction;if(t.unsubscribe(),this.remove(t),!this.closed&&this.timespanOnly){e=this.openContext();var n=this.bufferTimeSpan,i={subscriber:this,context:e,bufferTimeSpan:n};this.add(e.closeAction=this.scheduler.schedule(re,n,i))}},t.prototype.openContext=function(){var e=new ne;return this.contexts.push(e),e},t.prototype.closeContext=function(e){this.destination.next(e.buffer);var t=this.contexts;(t?t.indexOf(e):-1)>=0&&t.splice(t.indexOf(e),1)},t}(v);function re(e){var t=e.subscriber,n=e.context;n&&t.closeContext(n),t.closed||(e.context=t.openContext(),e.context.closeAction=this.schedule(e,e.bufferTimeSpan))}function oe(e){var t=e.bufferCreationInterval,n=e.bufferTimeSpan,i=e.subscriber,r=e.scheduler,o=i.openContext();i.closed||(i.add(o.closeAction=r.schedule(ae,n,{subscriber:i,context:o})),this.schedule(e,t))}function ae(e){var t=e.subscriber,n=e.context;t.closeContext(n)}function se(e,t){return function(n){return n.lift(new ue(e,t))}}var ue=function(){function e(e,t){this.openings=e,this.closingSelector=t}return e.prototype.call=function(e,t){return t.subscribe(new ce(e,this.openings,this.closingSelector))},e}(),ce=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.openings=n,r.closingSelector=i,r.contexts=[],r.add(N(r,n)),r}return i.__extends(t,e),t.prototype._next=function(e){for(var t=this.contexts,n=t.length,i=0;i<n;i++)t[i].buffer.push(e)},t.prototype._error=function(t){for(var n=this.contexts;n.length>0;){var i=n.shift();i.subscription.unsubscribe(),i.buffer=null,i.subscription=null}this.contexts=null,e.prototype._error.call(this,t)},t.prototype._complete=function(){for(var t=this.contexts;t.length>0;){var n=t.shift();this.destination.next(n.buffer),n.subscription.unsubscribe(),n.buffer=null,n.subscription=null}this.contexts=null,e.prototype._complete.call(this)},t.prototype.notifyNext=function(e,t,n,i,r){e?this.closeBuffer(e):this.openBuffer(t)},t.prototype.notifyComplete=function(e){this.closeBuffer(e.context)},t.prototype.openBuffer=function(e){try{var t=this.closingSelector.call(this,e);t&&this.trySubscribe(t)}catch(e){this._error(e)}},t.prototype.closeBuffer=function(e){var t=this.contexts;if(t&&e){var n=e.buffer,i=e.subscription;this.destination.next(n),t.splice(t.indexOf(e),1),this.remove(i),i.unsubscribe()}},t.prototype.trySubscribe=function(e){var t=this.contexts,n=new h,i={buffer:[],subscription:n};t.push(i);var r=N(this,e,i);!r||r.closed?this.closeBuffer(i):(r.context=i,this.add(r),n.add(r))},t}(y);function le(e){return function(t){return t.lift(new de(e))}}var de=function(){function e(e){this.closingSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new pe(e,this.closingSelector))},e}(),pe=function(e){function t(t,n){var i=e.call(this,t)||this;return i.closingSelector=n,i.subscribing=!1,i.openBuffer(),i}return i.__extends(t,e),t.prototype._next=function(e){this.buffer.push(e)},t.prototype._complete=function(){var t=this.buffer;t&&this.destination.next(t),e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){this.buffer=null,this.subscribing=!1},t.prototype.notifyNext=function(e,t,n,i,r){this.openBuffer()},t.prototype.notifyComplete=function(){this.subscribing?this.complete():this.openBuffer()},t.prototype.openBuffer=function(){var e=this.closingSubscription;e&&(this.remove(e),e.unsubscribe());var t,n=this.buffer;this.buffer&&this.destination.next(n),this.buffer=[];try{t=(0,this.closingSelector)()}catch(e){return this.error(e)}e=new h,this.closingSubscription=e,this.add(e),this.subscribing=!0,e.add(N(this,t)),this.subscribing=!1},t}(y);function he(e){return function(t){var n=new fe(e),i=t.lift(n);return n.caught=i}}var fe=function(){function e(e){this.selector=e}return e.prototype.call=function(e,t){return t.subscribe(new me(e,this.selector,this.caught))},e}(),me=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.selector=n,r.caught=i,r}return i.__extends(t,e),t.prototype.error=function(t){if(!this.isStopped){var n=void 0;try{n=this.selector(t,this.caught)}catch(t){return void e.prototype.error.call(this,t)}this._unsubscribeAndRecycle();var i=new _(this,void 0,void 0);this.add(i),N(this,n,void 0,void 0,i)}},t}(y);function ve(e,t){return new x(t?function(n){var i=new h,r=0;return i.add(t.schedule((function(){r!==e.length?(n.next(e[r++]),n.closed||i.add(this.schedule())):n.complete()}))),i}:E(e))}var ge={};var ye=function(){function e(e){this.resultSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new _e(e,this.resultSelector))},e}(),_e=function(e){function t(t,n){var i=e.call(this,t)||this;return i.resultSelector=n,i.active=0,i.values=[],i.observables=[],i}return i.__extends(t,e),t.prototype._next=function(e){this.values.push(ge),this.observables.push(e)},t.prototype._complete=function(){var e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(var n=0;n<t;n++){var i=e[n];this.add(N(this,i,i,n))}}},t.prototype.notifyComplete=function(e){0==(this.active-=1)&&this.destination.complete()},t.prototype.notifyNext=function(e,t,n,i,r){var o=this.values,a=o[n],s=this.toRespond?a===ge?--this.toRespond:this.toRespond:0;o[n]=t,0===s&&(this.resultSelector?this._tryResultSelector(o):this.destination.next(o.slice()))},t.prototype._tryResultSelector=function(e){var t;try{t=this.resultSelector.apply(this,e)}catch(e){return void this.destination.error(e)}this.destination.next(t)},t}(y);function be(e){return function(t){return t.lift(new ye(e))}}function Ce(e,t){if(!t)return e instanceof x?e:new x(M(e));if(null!=e){if(function(e){return e&&"function"==typeof e[b]}(e))return function(e,t){return new x(t?function(n){var i=new h;return i.add(t.schedule((function(){var r=e[b]();i.add(r.subscribe({next:function(e){i.add(t.schedule((function(){return n.next(e)})))},error:function(e){i.add(t.schedule((function(){return n.error(e)})))},complete:function(){i.add(t.schedule((function(){return n.complete()})))}}))}))),i}:B(e))}(e,t);if(R(e))return function(e,t){return new x(t?function(n){var i=new h;return i.add(t.schedule((function(){return e.then((function(e){i.add(t.schedule((function(){n.next(e),i.add(t.schedule((function(){return n.complete()})))})))}),(function(e){i.add(t.schedule((function(){return n.error(e)})))}))}))),i}:P(e))}(e,t);if(V(e))return ve(e,t);if(function(e){return e&&"function"==typeof e[T]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new x(t?function(n){var i,r=new h;return r.add((function(){i&&"function"==typeof i.return&&i.return()})),r.add(t.schedule((function(){i=e[T](),r.add(t.schedule((function(){if(!n.closed){var e,t;try{var r=i.next();e=r.value,t=r.done}catch(e){return void n.error(e)}t?n.complete():(n.next(e),this.schedule())}})))}))),r}:O(e))}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}function ke(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=null;return"function"==typeof e[e.length-1]&&(n=e.pop()),1===e.length&&c(e[0])&&(e=e[0].slice()),function(t){return t.lift.call(Ce([t].concat(e)),new ye(n))}}var we=new x((function(e){return e.complete()}));function xe(e){return e?function(e){return new x((function(t){return e.schedule((function(){return t.complete()}))}))}(e):we}function Se(e){var t=new x((function(t){t.next(e),t.complete()}));return t._isScalar=!0,t.value=e,t}function Ee(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e[e.length-1];switch(Z(n)?e.pop():n=void 0,e.length){case 0:return xe(n);case 1:return n?ve(e,n):Se(e[0]);default:return ve(e,n)}}function Pe(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new Ie(e,t))}}var Ie=function(){function e(e,t){this.project=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new Te(e,this.project,this.thisArg))},e}(),Te=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.project=n,r.count=0,r.thisArg=i||r,r}return i.__extends(t,e),t.prototype._next=function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(e){return void this.destination.error(e)}this.destination.next(t)},t}(v);function Oe(e,t,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof t?function(i){return i.pipe(Oe((function(n,i){return Ce(e(n,i)).pipe(Pe((function(e,r){return t(n,e,i,r)})))}),n))}:("number"==typeof t&&(n=t),function(t){return t.lift(new Be(e,n))})}var Be=function(){function e(e,t){void 0===t&&(t=Number.POSITIVE_INFINITY),this.project=e,this.concurrent=t}return e.prototype.call=function(e,t){return t.subscribe(new Ve(e,this.project,this.concurrent))},e}(),Ve=function(e){function t(t,n,i){void 0===i&&(i=Number.POSITIVE_INFINITY);var r=e.call(this,t)||this;return r.project=n,r.concurrent=i,r.hasCompleted=!1,r.buffer=[],r.active=0,r.index=0,r}return i.__extends(t,e),t.prototype._next=function(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)},t.prototype._tryNext=function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(e){return void this.destination.error(e)}this.active++,this._innerSub(t,e,n)},t.prototype._innerSub=function(e,t,n){var i=new _(this,void 0,void 0);this.destination.add(i),N(this,e,t,n,i)},t.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()},t.prototype.notifyNext=function(e,t,n,i,r){this.destination.next(t)},t.prototype.notifyComplete=function(e){var t=this.buffer;this.remove(e),this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},t}(y);function Re(e){return e}function Me(e){return void 0===e&&(e=Number.POSITIVE_INFINITY),Oe(Re,e)}function Ne(){return Me(1)}function Ae(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Ne()(Ee.apply(void 0,e))}function je(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return t.lift.call(Ae.apply(void 0,[t].concat(e)))}}function De(e,t){return Oe(e,t,1)}function ze(e,t){return De((function(){return e}),t)}function Fe(e){return function(t){return t.lift(new He(e,t))}}var He=function(){function e(e,t){this.predicate=e,this.source=t}return e.prototype.call=function(e,t){return t.subscribe(new Le(e,this.predicate,this.source))},e}(),Le=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.predicate=n,r.source=i,r.count=0,r.index=0,r}return i.__extends(t,e),t.prototype._next=function(e){this.predicate?this._tryPredicate(e):this.count++},t.prototype._tryPredicate=function(e){var t;try{t=this.predicate(e,this.index++,this.source)}catch(e){return void this.destination.error(e)}t&&this.count++},t.prototype._complete=function(){this.destination.next(this.count),this.destination.complete()},t}(v);function We(e){return function(t){return t.lift(new Ze(e))}}var Ze=function(){function e(e){this.durationSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new Ge(e,this.durationSelector))},e}(),Ge=function(e){function t(t,n){var i=e.call(this,t)||this;return i.durationSelector=n,i.hasValue=!1,i.durationSubscription=null,i}return i.__extends(t,e),t.prototype._next=function(e){try{var t=this.durationSelector.call(this,e);t&&this._tryNext(e,t)}catch(e){this.destination.error(e)}},t.prototype._complete=function(){this.emitValue(),this.destination.complete()},t.prototype._tryNext=function(e,t){var n=this.durationSubscription;this.value=e,this.hasValue=!0,n&&(n.unsubscribe(),this.remove(n)),(n=N(this,t))&&!n.closed&&this.add(this.durationSubscription=n)},t.prototype.notifyNext=function(e,t,n,i,r){this.emitValue()},t.prototype.notifyComplete=function(){this.emitValue()},t.prototype.emitValue=function(){if(this.hasValue){var t=this.value,n=this.durationSubscription;n&&(this.durationSubscription=null,n.unsubscribe(),this.remove(n)),this.value=null,this.hasValue=!1,e.prototype._next.call(this,t)}},t}(y);function Ke(e,t){return void 0===t&&(t=L),function(n){return n.lift(new Ue(e,t))}}var Ue=function(){function e(e,t){this.dueTime=e,this.scheduler=t}return e.prototype.call=function(e,t){return t.subscribe(new qe(e,this.dueTime,this.scheduler))},e}(),qe=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.dueTime=n,r.scheduler=i,r.debouncedSubscription=null,r.lastValue=null,r.hasValue=!1,r}return i.__extends(t,e),t.prototype._next=function(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule($e,this.dueTime,this))},t.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},t.prototype.debouncedNext=function(){if(this.clearDebounce(),this.hasValue){var e=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}},t.prototype.clearDebounce=function(){var e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)},t}(v);function $e(e){e.debouncedNext()}function Ye(e){return void 0===e&&(e=null),function(t){return t.lift(new Qe(e))}}var Xe,Qe=function(){function e(e){this.defaultValue=e}return e.prototype.call=function(e,t){return t.subscribe(new Je(e,this.defaultValue))},e}(),Je=function(e){function t(t,n){var i=e.call(this,t)||this;return i.defaultValue=n,i.isEmpty=!0,i}return i.__extends(t,e),t.prototype._next=function(e){this.isEmpty=!1,this.destination.next(e)},t.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()},t}(v);function et(e){return e instanceof Date&&!isNaN(+e)}function tt(e,t){return new x(t?function(n){return t.schedule(nt,0,{error:e,subscriber:n})}:function(t){return t.error(e)})}function nt(e){var t=e.error;e.subscriber.error(t)}Xe||(Xe={});var it=function(){function e(e,t,n){this.kind=e,this.value=t,this.error=n,this.hasValue="N"===e}return e.prototype.observe=function(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}},e.prototype.do=function(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}},e.prototype.accept=function(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)},e.prototype.toObservable=function(){switch(this.kind){case"N":return Ee(this.value);case"E":return tt(this.error);case"C":return xe()}throw new Error("unexpected notification kind value")},e.createNext=function(t){return void 0!==t?new e("N",t):e.undefinedValueNotification},e.createError=function(t){return new e("E",void 0,t)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e("C"),e.undefinedValueNotification=new e("N",void 0),e}();function rt(e,t){void 0===t&&(t=L);var n=et(e)?+e-t.now():Math.abs(e);return function(e){return e.lift(new ot(n,t))}}var ot=function(){function e(e,t){this.delay=e,this.scheduler=t}return e.prototype.call=function(e,t){return t.subscribe(new at(e,this.delay,this.scheduler))},e}(),at=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.delay=n,r.scheduler=i,r.queue=[],r.active=!1,r.errored=!1,r}return i.__extends(t,e),t.dispatch=function(e){for(var t=e.source,n=t.queue,i=e.scheduler,r=e.destination;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(r);if(n.length>0){var o=Math.max(0,n[0].time-i.now());this.schedule(e,o)}else this.unsubscribe(),t.active=!1},t.prototype._schedule=function(e){this.active=!0,this.destination.add(e.schedule(t.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))},t.prototype.scheduleNotification=function(e){if(!0!==this.errored){var t=this.scheduler,n=new st(t.now()+this.delay,e);this.queue.push(n),!1===this.active&&this._schedule(t)}},t.prototype._next=function(e){this.scheduleNotification(it.createNext(e))},t.prototype._error=function(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()},t.prototype._complete=function(){this.scheduleNotification(it.createComplete()),this.unsubscribe()},t}(v),st=function(){return function(e,t){this.time=e,this.notification=t}}();function ut(e,t){return t?function(n){return new dt(n,t).lift(new ct(e))}:function(t){return t.lift(new ct(e))}}var ct=function(){function e(e){this.delayDurationSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new lt(e,this.delayDurationSelector))},e}(),lt=function(e){function t(t,n){var i=e.call(this,t)||this;return i.delayDurationSelector=n,i.completed=!1,i.delayNotifierSubscriptions=[],i.index=0,i}return i.__extends(t,e),t.prototype.notifyNext=function(e,t,n,i,r){this.destination.next(e),this.removeSubscription(r),this.tryComplete()},t.prototype.notifyError=function(e,t){this._error(e)},t.prototype.notifyComplete=function(e){var t=this.removeSubscription(e);t&&this.destination.next(t),this.tryComplete()},t.prototype._next=function(e){var t=this.index++;try{var n=this.delayDurationSelector(e,t);n&&this.tryDelay(n,e)}catch(e){this.destination.error(e)}},t.prototype._complete=function(){this.completed=!0,this.tryComplete(),this.unsubscribe()},t.prototype.removeSubscription=function(e){e.unsubscribe();var t=this.delayNotifierSubscriptions.indexOf(e);return-1!==t&&this.delayNotifierSubscriptions.splice(t,1),e.outerValue},t.prototype.tryDelay=function(e,t){var n=N(this,e,t);n&&!n.closed&&(this.destination.add(n),this.delayNotifierSubscriptions.push(n))},t.prototype.tryComplete=function(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()},t}(y),dt=function(e){function t(t,n){var i=e.call(this)||this;return i.source=t,i.subscriptionDelay=n,i}return i.__extends(t,e),t.prototype._subscribe=function(e){this.subscriptionDelay.subscribe(new pt(e,this.source))},t}(x),pt=function(e){function t(t,n){var i=e.call(this)||this;return i.parent=t,i.source=n,i.sourceSubscribed=!1,i}return i.__extends(t,e),t.prototype._next=function(e){this.subscribeToSource()},t.prototype._error=function(e){this.unsubscribe(),this.parent.error(e)},t.prototype._complete=function(){this.unsubscribe(),this.subscribeToSource()},t.prototype.subscribeToSource=function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))},t}(v);function ht(){return function(e){return e.lift(new ft)}}var ft=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new mt(e))},e}(),mt=function(e){function t(t){return e.call(this,t)||this}return i.__extends(t,e),t.prototype._next=function(e){e.observe(this.destination)},t}(v);function vt(e,t){return function(n){return n.lift(new gt(e,t))}}var gt=function(){function e(e,t){this.keySelector=e,this.flushes=t}return e.prototype.call=function(e,t){return t.subscribe(new yt(e,this.keySelector,this.flushes))},e}(),yt=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.keySelector=n,r.values=new Set,i&&r.add(N(r,i)),r}return i.__extends(t,e),t.prototype.notifyNext=function(e,t,n,i,r){this.values.clear()},t.prototype.notifyError=function(e,t){this._error(e)},t.prototype._next=function(e){this.keySelector?this._useKeySelector(e):this._finalizeNext(e,e)},t.prototype._useKeySelector=function(e){var t,n=this.destination;try{t=this.keySelector(e)}catch(e){return void n.error(e)}this._finalizeNext(t,e)},t.prototype._finalizeNext=function(e,t){var n=this.values;n.has(e)||(n.add(e),this.destination.next(t))},t}(y);function _t(e,t){return function(n){return n.lift(new bt(e,t))}}var bt=function(){function e(e,t){this.compare=e,this.keySelector=t}return e.prototype.call=function(e,t){return t.subscribe(new Ct(e,this.compare,this.keySelector))},e}(),Ct=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.keySelector=i,r.hasKey=!1,"function"==typeof n&&(r.compare=n),r}return i.__extends(t,e),t.prototype.compare=function(e,t){return e===t},t.prototype._next=function(e){var t;try{var n=this.keySelector;t=n?n(e):e}catch(e){return this.destination.error(e)}var i=!1;if(this.hasKey)try{i=(0,this.compare)(this.key,t)}catch(e){return this.destination.error(e)}else this.hasKey=!0;i||(this.key=t,this.destination.next(e))},t}(v);function kt(e,t){return _t((function(n,i){return t?t(n[e],i[e]):n[e]===i[e]}))}function wt(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}wt.prototype=Object.create(Error.prototype);var xt=wt;function St(e,t){return function(n){return n.lift(new Et(e,t))}}var Et=function(){function e(e,t){this.predicate=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new Pt(e,this.predicate,this.thisArg))},e}(),Pt=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.predicate=n,r.thisArg=i,r.count=0,r}return i.__extends(t,e),t.prototype._next=function(e){var t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(e){return void this.destination.error(e)}t&&this.destination.next(e)},t}(v);function It(e,t,n){return function(i){return i.lift(new Tt(e,t,n))}}var Tt=function(){function e(e,t,n){this.nextOrObserver=e,this.error=t,this.complete=n}return e.prototype.call=function(e,t){return t.subscribe(new Ot(e,this.nextOrObserver,this.error,this.complete))},e}(),Ot=function(e){function t(t,n,i,o){var a=e.call(this,t)||this;return a._tapNext=C,a._tapError=C,a._tapComplete=C,a._tapError=i||C,a._tapComplete=o||C,r(n)?(a._context=a,a._tapNext=n):n&&(a._context=n,a._tapNext=n.next||C,a._tapError=n.error||C,a._tapComplete=n.complete||C),a}return i.__extends(t,e),t.prototype._next=function(e){try{this._tapNext.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.next(e)},t.prototype._error=function(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)},t.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()},t}(v);function Bt(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}Bt.prototype=Object.create(Error.prototype);var Vt=Bt,Rt=function(e){return void 0===e&&(e=Mt),It({hasValue:!1,next:function(){this.hasValue=!0},complete:function(){if(!this.hasValue)throw e()}})};function Mt(){return new Vt}function Nt(e){return function(t){return 0===e?xe():t.lift(new At(e))}}var At=function(){function e(e){if(this.total=e,this.total<0)throw new xt}return e.prototype.call=function(e,t){return t.subscribe(new jt(e,this.total))},e}(),jt=function(e){function t(t,n){var i=e.call(this,t)||this;return i.total=n,i.count=0,i}return i.__extends(t,e),t.prototype._next=function(e){var t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))},t}(v);function Dt(e,t){if(e<0)throw new xt;var n=arguments.length>=2;return function(i){return i.pipe(St((function(t,n){return n===e})),Nt(1),n?Ye(t):Rt((function(){return new xt})))}}function zt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){var n=e[e.length-1];Z(n)?e.pop():n=null;var i=e.length;return Ae(t,1!==i||n?i>0?ve(e,n):xe(n):Se(e[0]))}}function Ft(e,t){return function(n){return n.lift(new Ht(e,t,n))}}var Ht=function(){function e(e,t,n){this.predicate=e,this.thisArg=t,this.source=n}return e.prototype.call=function(e,t){return t.subscribe(new Lt(e,this.predicate,this.thisArg,this.source))},e}(),Lt=function(e){function t(t,n,i,r){var o=e.call(this,t)||this;return o.predicate=n,o.thisArg=i,o.source=r,o.index=0,o.thisArg=i||o,o}return i.__extends(t,e),t.prototype.notifyComplete=function(e){this.destination.next(e),this.destination.complete()},t.prototype._next=function(e){var t=!1;try{t=this.predicate.call(this.thisArg,e,this.index++,this.source)}catch(e){return void this.destination.error(e)}t||this.notifyComplete(!1)},t.prototype._complete=function(){this.notifyComplete(!0)},t}(v);function Wt(){return function(e){return e.lift(new Zt)}}var Zt=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new Gt(e))},e}(),Gt=function(e){function t(t){var n=e.call(this,t)||this;return n.hasCompleted=!1,n.hasSubscription=!1,n}return i.__extends(t,e),t.prototype._next=function(e){this.hasSubscription||(this.hasSubscription=!0,this.add(N(this,e)))},t.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()},t.prototype.notifyComplete=function(e){this.remove(e),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},t}(y);function Kt(e,t){return t?function(n){return n.pipe(Kt((function(n,i){return Ce(e(n,i)).pipe(Pe((function(e,r){return t(n,e,i,r)})))})))}:function(t){return t.lift(new Ut(e))}}var Ut=function(){function e(e){this.project=e}return e.prototype.call=function(e,t){return t.subscribe(new qt(e,this.project))},e}(),qt=function(e){function t(t,n){var i=e.call(this,t)||this;return i.project=n,i.hasSubscription=!1,i.hasCompleted=!1,i.index=0,i}return i.__extends(t,e),t.prototype._next=function(e){this.hasSubscription||this.tryNext(e)},t.prototype.tryNext=function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(e){return void this.destination.error(e)}this.hasSubscription=!0,this._innerSub(t,e,n)},t.prototype._innerSub=function(e,t,n){var i=new _(this,void 0,void 0);this.destination.add(i),N(this,e,t,n,i)},t.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()},t.prototype.notifyNext=function(e,t,n,i,r){this.destination.next(t)},t.prototype.notifyError=function(e){this.destination.error(e)},t.prototype.notifyComplete=function(e){this.destination.remove(e),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},t}(y);function $t(e,t,n){return void 0===t&&(t=Number.POSITIVE_INFINITY),void 0===n&&(n=void 0),t=(t||0)<1?Number.POSITIVE_INFINITY:t,function(i){return i.lift(new Yt(e,t,n))}}var Yt=function(){function e(e,t,n){this.project=e,this.concurrent=t,this.scheduler=n}return e.prototype.call=function(e,t){return t.subscribe(new Xt(e,this.project,this.concurrent,this.scheduler))},e}(),Xt=function(e){function t(t,n,i,r){var o=e.call(this,t)||this;return o.project=n,o.concurrent=i,o.scheduler=r,o.index=0,o.active=0,o.hasCompleted=!1,i<Number.POSITIVE_INFINITY&&(o.buffer=[]),o}return i.__extends(t,e),t.dispatch=function(e){var t=e.subscriber,n=e.result,i=e.value,r=e.index;t.subscribeToProjection(n,i,r)},t.prototype._next=function(e){var n=this.destination;if(n.closed)this._complete();else{var i=this.index++;if(this.active<this.concurrent){n.next(e);try{var r=(0,this.project)(e,i);if(this.scheduler){var o={subscriber:this,result:r,value:e,index:i};this.destination.add(this.scheduler.schedule(t.dispatch,0,o))}else this.subscribeToProjection(r,e,i)}catch(e){n.error(e)}}else this.buffer.push(e)}},t.prototype.subscribeToProjection=function(e,t,n){this.active++,this.destination.add(N(this,e,t,n))},t.prototype._complete=function(){this.hasCompleted=!0,this.hasCompleted&&0===this.active&&this.destination.complete(),this.unsubscribe()},t.prototype.notifyNext=function(e,t,n,i,r){this._next(t)},t.prototype.notifyComplete=function(e){var t=this.buffer;this.destination.remove(e),this.active--,t&&t.length>0&&this._next(t.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()},t}(y);function Qt(e){return function(t){return t.lift(new Jt(e))}}var Jt=function(){function e(e){this.callback=e}return e.prototype.call=function(e,t){return t.subscribe(new en(e,this.callback))},e}(),en=function(e){function t(t,n){var i=e.call(this,t)||this;return i.add(new h(n)),i}return i.__extends(t,e),t}(v);function tn(e,t){if("function"!=typeof e)throw new TypeError("predicate is not a function");return function(n){return n.lift(new nn(e,n,!1,t))}}var nn=function(){function e(e,t,n,i){this.predicate=e,this.source=t,this.yieldIndex=n,this.thisArg=i}return e.prototype.call=function(e,t){return t.subscribe(new rn(e,this.predicate,this.source,this.yieldIndex,this.thisArg))},e}(),rn=function(e){function t(t,n,i,r,o){var a=e.call(this,t)||this;return a.predicate=n,a.source=i,a.yieldIndex=r,a.thisArg=o,a.index=0,a}return i.__extends(t,e),t.prototype.notifyComplete=function(e){var t=this.destination;t.next(e),t.complete(),this.unsubscribe()},t.prototype._next=function(e){var t=this.predicate,n=this.thisArg,i=this.index++;try{t.call(n||this,e,i,this.source)&&this.notifyComplete(this.yieldIndex?i:e)}catch(e){this.destination.error(e)}},t.prototype._complete=function(){this.notifyComplete(this.yieldIndex?-1:void 0)},t}(v);function on(e,t){return function(n){return n.lift(new nn(e,n,!0,t))}}function an(e,t){var n=arguments.length>=2;return function(i){return i.pipe(e?St((function(t,n){return e(t,n,i)})):Re,Nt(1),n?Ye(t):Rt((function(){return new Vt})))}}function sn(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}sn.prototype=Object.create(Error.prototype);var un=sn,cn=function(e){function t(t,n){var i=e.call(this)||this;return i.subject=t,i.subscriber=n,i.closed=!1,i}return i.__extends(t,e),t.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e=this.subject,t=e.observers;if(this.subject=null,t&&0!==t.length&&!e.isStopped&&!e.closed){var n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}},t}(h),ln=function(e){function t(t){var n=e.call(this,t)||this;return n.destination=t,n}return i.__extends(t,e),t}(v),dn=function(e){function t(){var t=e.call(this)||this;return t.observers=[],t.closed=!1,t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return i.__extends(t,e),t.prototype[m]=function(){return new ln(this)},t.prototype.lift=function(e){var t=new pn(this,this);return t.operator=e,t},t.prototype.next=function(e){if(this.closed)throw new un;if(!this.isStopped)for(var t=this.observers,n=t.length,i=t.slice(),r=0;r<n;r++)i[r].next(e)},t.prototype.error=function(e){if(this.closed)throw new un;this.hasError=!0,this.thrownError=e,this.isStopped=!0;for(var t=this.observers,n=t.length,i=t.slice(),r=0;r<n;r++)i[r].error(e);this.observers.length=0},t.prototype.complete=function(){if(this.closed)throw new un;this.isStopped=!0;for(var e=this.observers,t=e.length,n=e.slice(),i=0;i<t;i++)n[i].complete();this.observers.length=0},t.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},t.prototype._trySubscribe=function(t){if(this.closed)throw new un;return e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){if(this.closed)throw new un;return this.hasError?(e.error(this.thrownError),h.EMPTY):this.isStopped?(e.complete(),h.EMPTY):(this.observers.push(e),new cn(this,e))},t.prototype.asObservable=function(){var e=new x;return e.source=this,e},t.create=function(e,t){return new pn(e,t)},t}(x),pn=function(e){function t(t,n){var i=e.call(this)||this;return i.destination=t,i.source=n,i}return i.__extends(t,e),t.prototype.next=function(e){var t=this.destination;t&&t.next&&t.next(e)},t.prototype.error=function(e){var t=this.destination;t&&t.error&&this.destination.error(e)},t.prototype.complete=function(){var e=this.destination;e&&e.complete&&this.destination.complete()},t.prototype._subscribe=function(e){return this.source?this.source.subscribe(e):h.EMPTY},t}(dn);function hn(e,t,n,i){return function(r){return r.lift(new fn(e,t,n,i))}}var fn=function(){function e(e,t,n,i){this.keySelector=e,this.elementSelector=t,this.durationSelector=n,this.subjectSelector=i}return e.prototype.call=function(e,t){return t.subscribe(new mn(e,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))},e}(),mn=function(e){function t(t,n,i,r,o){var a=e.call(this,t)||this;return a.keySelector=n,a.elementSelector=i,a.durationSelector=r,a.subjectSelector=o,a.groups=null,a.attemptedToUnsubscribe=!1,a.count=0,a}return i.__extends(t,e),t.prototype._next=function(e){var t;try{t=this.keySelector(e)}catch(e){return void this.error(e)}this._group(e,t)},t.prototype._group=function(e,t){var n=this.groups;n||(n=this.groups=new Map);var i,r=n.get(t);if(this.elementSelector)try{i=this.elementSelector(e)}catch(e){this.error(e)}else i=e;if(!r){r=this.subjectSelector?this.subjectSelector():new dn,n.set(t,r);var o=new gn(t,r,this);if(this.destination.next(o),this.durationSelector){var a=void 0;try{a=this.durationSelector(new gn(t,r))}catch(e){return void this.error(e)}this.add(a.subscribe(new vn(t,r,this)))}}r.closed||r.next(i)},t.prototype._error=function(e){var t=this.groups;t&&(t.forEach((function(t,n){t.error(e)})),t.clear()),this.destination.error(e)},t.prototype._complete=function(){var e=this.groups;e&&(e.forEach((function(e,t){e.complete()})),e.clear()),this.destination.complete()},t.prototype.removeGroup=function(e){this.groups.delete(e)},t.prototype.unsubscribe=function(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&e.prototype.unsubscribe.call(this))},t}(v),vn=function(e){function t(t,n,i){var r=e.call(this,n)||this;return r.key=t,r.group=n,r.parent=i,r}return i.__extends(t,e),t.prototype._next=function(e){this.complete()},t.prototype._unsubscribe=function(){var e=this.parent,t=this.key;this.key=this.parent=null,e&&e.removeGroup(t)},t}(v),gn=function(e){function t(t,n,i){var r=e.call(this)||this;return r.key=t,r.groupSubject=n,r.refCountSubscription=i,r}return i.__extends(t,e),t.prototype._subscribe=function(e){var t=new h,n=this.refCountSubscription,i=this.groupSubject;return n&&!n.closed&&t.add(new yn(n)),t.add(i.subscribe(e)),t},t}(x),yn=function(e){function t(t){var n=e.call(this)||this;return n.parent=t,t.count++,n}return i.__extends(t,e),t.prototype.unsubscribe=function(){var t=this.parent;t.closed||this.closed||(e.prototype.unsubscribe.call(this),t.count-=1,0===t.count&&t.attemptedToUnsubscribe&&t.unsubscribe())},t}(h);function _n(){return function(e){return e.lift(new bn)}}var bn=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new Cn(e))},e}(),Cn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype._next=function(e){},t}(v);function kn(){return function(e){return e.lift(new wn)}}var wn=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new xn(e))},e}(),xn=function(e){function t(t){return e.call(this,t)||this}return i.__extends(t,e),t.prototype.notifyComplete=function(e){var t=this.destination;t.next(e),t.complete()},t.prototype._next=function(e){this.notifyComplete(!1)},t.prototype._complete=function(){this.notifyComplete(!0)},t}(v);function Sn(e){return function(t){return 0===e?xe():t.lift(new En(e))}}var En=function(){function e(e){if(this.total=e,this.total<0)throw new xt}return e.prototype.call=function(e,t){return t.subscribe(new Pn(e,this.total))},e}(),Pn=function(e){function t(t,n){var i=e.call(this,t)||this;return i.total=n,i.ring=new Array,i.count=0,i}return i.__extends(t,e),t.prototype._next=function(e){var t=this.ring,n=this.total,i=this.count++;t.length<n?t.push(e):t[i%n]=e},t.prototype._complete=function(){var e=this.destination,t=this.count;if(t>0)for(var n=this.count>=this.total?this.total:this.count,i=this.ring,r=0;r<n;r++){var o=t++%n;e.next(i[o])}e.complete()},t}(v);function In(e,t){var n=arguments.length>=2;return function(i){return i.pipe(e?St((function(t,n){return e(t,n,i)})):Re,Sn(1),n?Ye(t):Rt((function(){return new Vt})))}}function Tn(e){return function(t){return t.lift(new On(e))}}var On=function(){function e(e){this.value=e}return e.prototype.call=function(e,t){return t.subscribe(new Bn(e,this.value))},e}(),Bn=function(e){function t(t,n){var i=e.call(this,t)||this;return i.value=n,i}return i.__extends(t,e),t.prototype._next=function(e){this.destination.next(this.value)},t}(v);function Vn(){return function(e){return e.lift(new Rn)}}var Rn=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new Mn(e))},e}(),Mn=function(e){function t(t){return e.call(this,t)||this}return i.__extends(t,e),t.prototype._next=function(e){this.destination.next(it.createNext(e))},t.prototype._error=function(e){var t=this.destination;t.next(it.createError(e)),t.complete()},t.prototype._complete=function(){var e=this.destination;e.next(it.createComplete()),e.complete()},t}(v);function Nn(e,t){var n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new An(e,t,n))}}var An=function(){function e(e,t,n){void 0===n&&(n=!1),this.accumulator=e,this.seed=t,this.hasSeed=n}return e.prototype.call=function(e,t){return t.subscribe(new jn(e,this.accumulator,this.seed,this.hasSeed))},e}(),jn=function(e){function t(t,n,i,r){var o=e.call(this,t)||this;return o.accumulator=n,o._seed=i,o.hasSeed=r,o.index=0,o}return i.__extends(t,e),Object.defineProperty(t.prototype,"seed",{get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e},enumerable:!0,configurable:!0}),t.prototype._next=function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)},t.prototype._tryNext=function(e){var t,n=this.index++;try{t=this.accumulator(this.seed,e,n)}catch(e){this.destination.error(e)}this.seed=t,this.destination.next(t)},t}(v);function Dn(e,t){return arguments.length>=2?function(n){return k(Nn(e,t),Sn(1),Ye(t))(n)}:function(t){return k(Nn((function(t,n,i){return e(t,n,i+1)})),Sn(1))(t)}}function zn(e){return Dn("function"==typeof e?function(t,n){return e(t,n)>0?t:n}:function(e,t){return e>t?e:t})}function Fn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Number.POSITIVE_INFINITY,i=null,r=e[e.length-1];return Z(r)?(i=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(n=e.pop())):"number"==typeof r&&(n=e.pop()),null===i&&1===e.length&&e[0]instanceof x?e[0]:Me(n)(ve(e,i))}function Hn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return t.lift.call(Fn.apply(void 0,[t].concat(e)))}}function Ln(e,t,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof t?Oe((function(){return e}),t,n):("number"==typeof t&&(n=t),Oe((function(){return e}),n))}function Wn(e,t,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),function(i){return i.lift(new Zn(e,t,n))}}var Zn=function(){function e(e,t,n){this.accumulator=e,this.seed=t,this.concurrent=n}return e.prototype.call=function(e,t){return t.subscribe(new Gn(e,this.accumulator,this.seed,this.concurrent))},e}(),Gn=function(e){function t(t,n,i,r){var o=e.call(this,t)||this;return o.accumulator=n,o.acc=i,o.concurrent=r,o.hasValue=!1,o.hasCompleted=!1,o.buffer=[],o.active=0,o.index=0,o}return i.__extends(t,e),t.prototype._next=function(e){if(this.active<this.concurrent){var t=this.index++,n=this.destination,i=void 0;try{i=(0,this.accumulator)(this.acc,e,t)}catch(e){return n.error(e)}this.active++,this._innerSub(i,e,t)}else this.buffer.push(e)},t.prototype._innerSub=function(e,t,n){var i=new _(this,void 0,void 0);this.destination.add(i),N(this,e,t,n,i)},t.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete()),this.unsubscribe()},t.prototype.notifyNext=function(e,t,n,i,r){var o=this.destination;this.acc=t,this.hasValue=!0,o.next(t)},t.prototype.notifyComplete=function(e){var t=this.buffer;this.destination.remove(e),this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())},t}(y);function Kn(e){return Dn("function"==typeof e?function(t,n){return e(t,n)<0?t:n}:function(e,t){return e<t?e:t})}function Un(){return function(e){return e.lift(new qn(e))}}var qn=function(){function e(e){this.connectable=e}return e.prototype.call=function(e,t){var n=this.connectable;n._refCount++;var i=new $n(e,n),r=t.subscribe(i);return i.closed||(i.connection=n.connect()),r},e}(),$n=function(e){function t(t,n){var i=e.call(this,t)||this;return i.connectable=n,i}return i.__extends(t,e),t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var n=this.connection,i=e._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}else this.connection=null},t}(v),Yn=function(e){function t(t,n){var i=e.call(this)||this;return i.source=t,i.subjectFactory=n,i._refCount=0,i._isComplete=!1,i}return i.__extends(t,e),t.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},t.prototype.getSubject=function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject},t.prototype.connect=function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new h).add(this.source.subscribe(new Qn(this.getSubject(),this))),e.closed?(this._connection=null,e=h.EMPTY):this._connection=e),e},t.prototype.refCount=function(){return Un()(this)},t}(x).prototype,Xn={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:Yn._subscribe},_isComplete:{value:Yn._isComplete,writable:!0},getSubject:{value:Yn.getSubject},connect:{value:Yn.connect},refCount:{value:Yn.refCount}},Qn=function(e){function t(t,n){var i=e.call(this,t)||this;return i.connectable=n,i}return i.__extends(t,e),t.prototype._error=function(t){this._unsubscribe(),e.prototype._error.call(this,t)},t.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}},t}(ln);function Jn(e,t){return function(n){var i;if(i="function"==typeof e?e:function(){return e},"function"==typeof t)return n.lift(new ei(i,t));var r=Object.create(n,Xn);return r.source=n,r.subjectFactory=i,r}}var ei=function(){function e(e,t){this.subjectFactory=e,this.selector=t}return e.prototype.call=function(e,t){var n=this.selector,i=this.subjectFactory(),r=n(i).subscribe(e);return r.add(t.subscribe(i)),r},e}();function ti(e,t){return void 0===t&&(t=0),function(n){return n.lift(new ni(e,t))}}var ni=function(){function e(e,t){void 0===t&&(t=0),this.scheduler=e,this.delay=t}return e.prototype.call=function(e,t){return t.subscribe(new ii(e,this.scheduler,this.delay))},e}(),ii=function(e){function t(t,n,i){void 0===i&&(i=0);var r=e.call(this,t)||this;return r.scheduler=n,r.delay=i,r}return i.__extends(t,e),t.dispatch=function(e){var t=e.notification,n=e.destination;t.observe(n),this.unsubscribe()},t.prototype.scheduleMessage=function(e){this.destination.add(this.scheduler.schedule(t.dispatch,this.delay,new ri(e,this.destination)))},t.prototype._next=function(e){this.scheduleMessage(it.createNext(e))},t.prototype._error=function(e){this.scheduleMessage(it.createError(e)),this.unsubscribe()},t.prototype._complete=function(){this.scheduleMessage(it.createComplete()),this.unsubscribe()},t}(v),ri=function(){return function(e,t){this.notification=e,this.destination=t}}();function oi(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 1===e.length&&c(e[0])&&(e=e[0]),function(t){return t.lift(new ai(e))}}var ai=function(){function e(e){this.nextSources=e}return e.prototype.call=function(e,t){return t.subscribe(new si(e,this.nextSources))},e}(),si=function(e){function t(t,n){var i=e.call(this,t)||this;return i.destination=t,i.nextSources=n,i}return i.__extends(t,e),t.prototype.notifyError=function(e,t){this.subscribeToNextSource()},t.prototype.notifyComplete=function(e){this.subscribeToNextSource()},t.prototype._error=function(e){this.subscribeToNextSource(),this.unsubscribe()},t.prototype._complete=function(){this.subscribeToNextSource(),this.unsubscribe()},t.prototype.subscribeToNextSource=function(){var e=this.nextSources.shift();if(e){var t=new _(this,void 0,void 0);this.destination.add(t),N(this,e,void 0,void 0,t)}else this.destination.complete()},t}(y);function ui(){return function(e){return e.lift(new ci)}}var ci=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new li(e))},e}(),li=function(e){function t(t){var n=e.call(this,t)||this;return n.hasPrev=!1,n}return i.__extends(t,e),t.prototype._next=function(e){this.hasPrev?this.destination.next([this.prev,e]):this.hasPrev=!0,this.prev=e},t}(v);function di(e,t){function n(){return!n.pred.apply(n.thisArg,arguments)}return n.pred=e,n.thisArg=t,n}function pi(e,t){return function(n){return[St(e,t)(n),St(di(e,t))(n)]}}function hi(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.length;if(0===n)throw new Error("list of properties cannot be empty.");return function(t){return Pe(fi(e,n))(t)}}function fi(e,t){return function(n){for(var i=n,r=0;r<t;r++){var o=i[e[r]];if(void 0===o)return;i=o}return i}}function mi(e){return e?Jn((function(){return new dn}),e):Jn(new dn)}var vi=function(e){function t(t){var n=e.call(this)||this;return n._value=t,n}return i.__extends(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),t.prototype._subscribe=function(t){var n=e.prototype._subscribe.call(this,t);return n&&!n.closed&&t.next(this._value),n},t.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new un;return this._value},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(dn);function gi(e){return function(t){return Jn(new vi(e))(t)}}var yi=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.value=null,t.hasNext=!1,t.hasCompleted=!1,t}return i.__extends(t,e),t.prototype._subscribe=function(t){return this.hasError?(t.error(this.thrownError),h.EMPTY):this.hasCompleted&&this.hasNext?(t.next(this.value),t.complete(),h.EMPTY):e.prototype._subscribe.call(this,t)},t.prototype.next=function(e){this.hasCompleted||(this.value=e,this.hasNext=!0)},t.prototype.error=function(t){this.hasCompleted||e.prototype.error.call(this,t)},t.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&e.prototype.next.call(this,this.value),e.prototype.complete.call(this)},t}(dn);function _i(){return function(e){return Jn(new yi)(e)}}var bi=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.scheduler=t,i.work=n,i}return i.__extends(t,e),t.prototype.schedule=function(t,n){return void 0===n&&(n=0),n>0?e.prototype.schedule.call(this,t,n):(this.delay=n,this.state=t,this.scheduler.flush(this),this)},t.prototype.execute=function(t,n){return n>0||this.closed?e.prototype.execute.call(this,t,n):this._execute(t,n)},t.prototype.requestAsyncId=function(t,n,i){return void 0===i&&(i=0),null!==i&&i>0||null===i&&this.delay>0?e.prototype.requestAsyncId.call(this,t,n,i):t.flush(this)},t}(z),Ci=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(H))(bi),ki=function(e){function t(t,n,i){void 0===t&&(t=Number.POSITIVE_INFINITY),void 0===n&&(n=Number.POSITIVE_INFINITY);var r=e.call(this)||this;return r.scheduler=i,r._events=[],r._infiniteTimeWindow=!1,r._bufferSize=t<1?1:t,r._windowTime=n<1?1:n,n===Number.POSITIVE_INFINITY?(r._infiniteTimeWindow=!0,r.next=r.nextInfiniteTimeWindow):r.next=r.nextTimeWindow,r}return i.__extends(t,e),t.prototype.nextInfiniteTimeWindow=function(t){var n=this._events;n.push(t),n.length>this._bufferSize&&n.shift(),e.prototype.next.call(this,t)},t.prototype.nextTimeWindow=function(t){this._events.push(new wi(this._getNow(),t)),this._trimBufferThenGetEvents(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){var t,n=this._infiniteTimeWindow,i=n?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,o=i.length;if(this.closed)throw new un;if(this.isStopped||this.hasError?t=h.EMPTY:(this.observers.push(e),t=new cn(this,e)),r&&e.add(e=new ii(e,r)),n)for(var a=0;a<o&&!e.closed;a++)e.next(i[a]);else for(a=0;a<o&&!e.closed;a++)e.next(i[a].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),t},t.prototype._getNow=function(){return(this.scheduler||Ci).now()},t.prototype._trimBufferThenGetEvents=function(){for(var e=this._getNow(),t=this._bufferSize,n=this._windowTime,i=this._events,r=i.length,o=0;o<r&&!(e-i[o].time<n);)o++;return r>t&&(o=Math.max(o,r-t)),o>0&&i.splice(0,o),i},t}(dn),wi=function(){return function(e,t){this.time=e,this.value=t}}();function xi(e,t,n,i){n&&"function"!=typeof n&&(i=n);var r="function"==typeof n?n:void 0,o=new ki(e,t,i);return function(e){return Jn((function(){return o}),r)(e)}}function Si(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(1===e.length){if(!c(e[0]))return e[0];e=e[0]}return ve(e,void 0).lift(new Ei)}var Ei=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new Pi(e))},e}(),Pi=function(e){function t(t){var n=e.call(this,t)||this;return n.hasFirst=!1,n.observables=[],n.subscriptions=[],n}return i.__extends(t,e),t.prototype._next=function(e){this.observables.push(e)},t.prototype._complete=function(){var e=this.observables,t=e.length;if(0===t)this.destination.complete();else{for(var n=0;n<t&&!this.hasFirst;n++){var i=e[n],r=N(this,i,i,n);this.subscriptions&&this.subscriptions.push(r),this.add(r)}this.observables=null}},t.prototype.notifyNext=function(e,t,n,i,r){if(!this.hasFirst){this.hasFirst=!0;for(var o=0;o<this.subscriptions.length;o++)if(o!==n){var a=this.subscriptions[o];a.unsubscribe(),this.remove(a)}this.subscriptions=null}this.destination.next(t)},t}(y);function Ii(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return 1===e.length&&c(e[0])&&(e=e[0]),t.lift.call(Si.apply(void 0,[t].concat(e)))}}function Ti(e){return void 0===e&&(e=-1),function(t){return 0===e?xe():e<0?t.lift(new Oi(-1,t)):t.lift(new Oi(e-1,t))}}var Oi=function(){function e(e,t){this.count=e,this.source=t}return e.prototype.call=function(e,t){return t.subscribe(new Bi(e,this.count,this.source))},e}(),Bi=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.count=n,r.source=i,r}return i.__extends(t,e),t.prototype.complete=function(){if(!this.isStopped){var t=this.source,n=this.count;if(0===n)return e.prototype.complete.call(this);n>-1&&(this.count=n-1),t.subscribe(this._unsubscribeAndRecycle())}},t}(v);function Vi(e){return function(t){return t.lift(new Ri(e))}}var Ri=function(){function e(e){this.notifier=e}return e.prototype.call=function(e,t){return t.subscribe(new Mi(e,this.notifier,t))},e}(),Mi=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.notifier=n,r.source=i,r.sourceIsBeingSubscribedTo=!0,r}return i.__extends(t,e),t.prototype.notifyNext=function(e,t,n,i,r){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)},t.prototype.notifyComplete=function(t){if(!1===this.sourceIsBeingSubscribedTo)return e.prototype.complete.call(this)},t.prototype.complete=function(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return e.prototype.complete.call(this);this._unsubscribeAndRecycle(),this.notifications.next()}},t.prototype._unsubscribe=function(){var e=this.notifications,t=this.retriesSubscription;e&&(e.unsubscribe(),this.notifications=null),t&&(t.unsubscribe(),this.retriesSubscription=null),this.retries=null},t.prototype._unsubscribeAndRecycle=function(){var t=this._unsubscribe;return this._unsubscribe=null,e.prototype._unsubscribeAndRecycle.call(this),this._unsubscribe=t,this},t.prototype.subscribeToRetries=function(){var t;this.notifications=new dn;try{t=(0,this.notifier)(this.notifications)}catch(t){return e.prototype.complete.call(this)}this.retries=t,this.retriesSubscription=N(this,t)},t}(y);function Ni(e){return void 0===e&&(e=-1),function(t){return t.lift(new Ai(e,t))}}var Ai=function(){function e(e,t){this.count=e,this.source=t}return e.prototype.call=function(e,t){return t.subscribe(new ji(e,this.count,this.source))},e}(),ji=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.count=n,r.source=i,r}return i.__extends(t,e),t.prototype.error=function(t){if(!this.isStopped){var n=this.source,i=this.count;if(0===i)return e.prototype.error.call(this,t);i>-1&&(this.count=i-1),n.subscribe(this._unsubscribeAndRecycle())}},t}(v);function Di(e){return function(t){return t.lift(new zi(e,t))}}var zi=function(){function e(e,t){this.notifier=e,this.source=t}return e.prototype.call=function(e,t){return t.subscribe(new Fi(e,this.notifier,this.source))},e}(),Fi=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.notifier=n,r.source=i,r}return i.__extends(t,e),t.prototype.error=function(t){if(!this.isStopped){var n=this.errors,i=this.retries,r=this.retriesSubscription;if(i)this.errors=null,this.retriesSubscription=null;else{n=new dn;try{i=(0,this.notifier)(n)}catch(t){return e.prototype.error.call(this,t)}r=N(this,i)}this._unsubscribeAndRecycle(),this.errors=n,this.retries=i,this.retriesSubscription=r,n.next(t)}},t.prototype._unsubscribe=function(){var e=this.errors,t=this.retriesSubscription;e&&(e.unsubscribe(),this.errors=null),t&&(t.unsubscribe(),this.retriesSubscription=null),this.retries=null},t.prototype.notifyNext=function(e,t,n,i,r){var o=this._unsubscribe;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=o,this.source.subscribe(this)},t}(y);function Hi(e){return function(t){return t.lift(new Li(e))}}var Li=function(){function e(e){this.notifier=e}return e.prototype.call=function(e,t){var n=new Wi(e),i=t.subscribe(n);return i.add(N(n,this.notifier)),i},e}(),Wi=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.hasValue=!1,t}return i.__extends(t,e),t.prototype._next=function(e){this.value=e,this.hasValue=!0},t.prototype.notifyNext=function(e,t,n,i,r){this.emitValue()},t.prototype.notifyComplete=function(){this.emitValue()},t.prototype.emitValue=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))},t}(y);function Zi(e,t){return void 0===t&&(t=L),function(n){return n.lift(new Gi(e,t))}}var Gi=function(){function e(e,t){this.period=e,this.scheduler=t}return e.prototype.call=function(e,t){return t.subscribe(new Ki(e,this.period,this.scheduler))},e}(),Ki=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.period=n,r.scheduler=i,r.hasValue=!1,r.add(i.schedule(Ui,n,{subscriber:r,period:n})),r}return i.__extends(t,e),t.prototype._next=function(e){this.lastValue=e,this.hasValue=!0},t.prototype.notifyNext=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))},t}(v);function Ui(e){var t=e.subscriber,n=e.period;t.notifyNext(),this.schedule(e,n)}function qi(e,t){return function(n){return n.lift(new $i(e,t))}}var $i=function(){function e(e,t){this.compareTo=e,this.comparator=t}return e.prototype.call=function(e,t){return t.subscribe(new Yi(e,this.compareTo,this.comparator))},e}(),Yi=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.compareTo=n,r.comparator=i,r._a=[],r._b=[],r._oneComplete=!1,r.destination.add(n.subscribe(new Xi(t,r))),r}return i.__extends(t,e),t.prototype._next=function(e){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(e),this.checkValues())},t.prototype._complete=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0,this.unsubscribe()},t.prototype.checkValues=function(){for(var e=this._a,t=this._b,n=this.comparator;e.length>0&&t.length>0;){var i=e.shift(),r=t.shift(),o=!1;try{o=n?n(i,r):i===r}catch(e){this.destination.error(e)}o||this.emit(!1)}},t.prototype.emit=function(e){var t=this.destination;t.next(e),t.complete()},t.prototype.nextB=function(e){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(e),this.checkValues())},t.prototype.completeB=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0},t}(v),Xi=function(e){function t(t,n){var i=e.call(this,t)||this;return i.parent=n,i}return i.__extends(t,e),t.prototype._next=function(e){this.parent.nextB(e)},t.prototype._error=function(e){this.parent.error(e),this.unsubscribe()},t.prototype._complete=function(){this.parent.completeB(),this.unsubscribe()},t}(v);function Qi(){return new dn}function Ji(){return function(e){return Un()(Jn(Qi)(e))}}function er(e,t,n){var i;return i=e&&"object"==typeof e?e:{bufferSize:e,windowTime:t,refCount:!1,scheduler:n},function(e){return e.lift(function(e){var t,n,i=e.bufferSize,r=void 0===i?Number.POSITIVE_INFINITY:i,o=e.windowTime,a=void 0===o?Number.POSITIVE_INFINITY:o,s=e.refCount,u=e.scheduler,c=0,l=!1,d=!1;return function(e){c++,t&&!l||(l=!1,t=new ki(r,a,u),n=e.subscribe({next:function(e){t.next(e)},error:function(e){l=!0,t.error(e)},complete:function(){d=!0,t.complete()}}));var i=t.subscribe(this);this.add((function(){c--,i.unsubscribe(),n&&!d&&s&&0===c&&(n.unsubscribe(),n=void 0,t=void 0)}))}}(i))}}function tr(e){return function(t){return t.lift(new nr(e,t))}}var nr=function(){function e(e,t){this.predicate=e,this.source=t}return e.prototype.call=function(e,t){return t.subscribe(new ir(e,this.predicate,this.source))},e}(),ir=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.predicate=n,r.source=i,r.seenValue=!1,r.index=0,r}return i.__extends(t,e),t.prototype.applySingleValue=function(e){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=e)},t.prototype._next=function(e){var t=this.index++;this.predicate?this.tryNext(e,t):this.applySingleValue(e)},t.prototype.tryNext=function(e,t){try{this.predicate(e,t,this.source)&&this.applySingleValue(e)}catch(e){this.destination.error(e)}},t.prototype._complete=function(){var e=this.destination;this.index>0?(e.next(this.seenValue?this.singleValue:void 0),e.complete()):e.error(new Vt)},t}(v);function rr(e){return function(t){return t.lift(new or(e))}}var or=function(){function e(e){this.total=e}return e.prototype.call=function(e,t){return t.subscribe(new ar(e,this.total))},e}(),ar=function(e){function t(t,n){var i=e.call(this,t)||this;return i.total=n,i.count=0,i}return i.__extends(t,e),t.prototype._next=function(e){++this.count>this.total&&this.destination.next(e)},t}(v);function sr(e){return function(t){return t.lift(new ur(e))}}var ur=function(){function e(e){if(this._skipCount=e,this._skipCount<0)throw new xt}return e.prototype.call=function(e,t){return 0===this._skipCount?t.subscribe(new v(e)):t.subscribe(new cr(e,this._skipCount))},e}(),cr=function(e){function t(t,n){var i=e.call(this,t)||this;return i._skipCount=n,i._count=0,i._ring=new Array(n),i}return i.__extends(t,e),t.prototype._next=function(e){var t=this._skipCount,n=this._count++;if(n<t)this._ring[n]=e;else{var i=n%t,r=this._ring,o=r[i];r[i]=e,this.destination.next(o)}},t}(v);function lr(e){return function(t){return t.lift(new dr(e))}}var dr=function(){function e(e){this.notifier=e}return e.prototype.call=function(e,t){return t.subscribe(new pr(e,this.notifier))},e}(),pr=function(e){function t(t,n){var i=e.call(this,t)||this;i.hasValue=!1;var r=new _(i,void 0,void 0);return i.add(r),i.innerSubscription=r,N(i,n,void 0,void 0,r),i}return i.__extends(t,e),t.prototype._next=function(t){this.hasValue&&e.prototype._next.call(this,t)},t.prototype.notifyNext=function(e,t,n,i,r){this.hasValue=!0,this.innerSubscription&&this.innerSubscription.unsubscribe()},t.prototype.notifyComplete=function(){},t}(y);function hr(e){return function(t){return t.lift(new fr(e))}}var fr=function(){function e(e){this.predicate=e}return e.prototype.call=function(e,t){return t.subscribe(new mr(e,this.predicate))},e}(),mr=function(e){function t(t,n){var i=e.call(this,t)||this;return i.predicate=n,i.skipping=!0,i.index=0,i}return i.__extends(t,e),t.prototype._next=function(e){var t=this.destination;this.skipping&&this.tryCallPredicate(e),this.skipping||t.next(e)},t.prototype.tryCallPredicate=function(e){try{var t=this.predicate(e,this.index++);this.skipping=Boolean(t)}catch(e){this.destination.error(e)}},t}(v);function vr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){var n=e[e.length-1];Z(n)?e.pop():n=null;var i=e.length;return Ae(1!==i||n?i>0?ve(e,n):xe(n):Se(e[0]),t)}}var gr=1,yr={};var _r=function(e){var t=gr++;return yr[t]=e,Promise.resolve().then((function(){return function(e){var t=yr[e];t&&t()}(t)})),t},br=function(e){delete yr[e]},Cr=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.scheduler=t,i.work=n,i}return i.__extends(t,e),t.prototype.requestAsyncId=function(t,n,i){return void 0===i&&(i=0),null!==i&&i>0?e.prototype.requestAsyncId.call(this,t,n,i):(t.actions.push(this),t.scheduled||(t.scheduled=_r(t.flush.bind(t,null))))},t.prototype.recycleAsyncId=function(t,n,i){if(void 0===i&&(i=0),null!==i&&i>0||null===i&&this.delay>0)return e.prototype.recycleAsyncId.call(this,t,n,i);0===t.actions.length&&(br(n),t.scheduled=void 0)},t}(z),kr=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.flush=function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,i=-1,r=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++i<r&&(e=n.shift()));if(this.active=!1,t){for(;++i<r&&(e=n.shift());)e.unsubscribe();throw t}},t}(H))(Cr),wr=function(e){function t(t,n,i){void 0===n&&(n=0),void 0===i&&(i=kr);var r=e.call(this)||this;return r.source=t,r.delayTime=n,r.scheduler=i,(!W(n)||n<0)&&(r.delayTime=0),i&&"function"==typeof i.schedule||(r.scheduler=kr),r}return i.__extends(t,e),t.create=function(e,n,i){return void 0===n&&(n=0),void 0===i&&(i=kr),new t(e,n,i)},t.dispatch=function(e){var t=e.source,n=e.subscriber;return this.add(t.subscribe(n))},t.prototype._subscribe=function(e){var n=this.delayTime,i=this.source;return this.scheduler.schedule(t.dispatch,n,{source:i,subscriber:e})},t}(x);function xr(e,t){return void 0===t&&(t=0),function(n){return n.lift(new Sr(e,t))}}var Sr=function(){function e(e,t){this.scheduler=e,this.delay=t}return e.prototype.call=function(e,t){return new wr(t,this.delay,this.scheduler).subscribe(e)},e}();function Er(e,t){return"function"==typeof t?function(n){return n.pipe(Er((function(n,i){return Ce(e(n,i)).pipe(Pe((function(e,r){return t(n,e,i,r)})))})))}:function(t){return t.lift(new Pr(e))}}var Pr=function(){function e(e){this.project=e}return e.prototype.call=function(e,t){return t.subscribe(new Ir(e,this.project))},e}(),Ir=function(e){function t(t,n){var i=e.call(this,t)||this;return i.project=n,i.index=0,i}return i.__extends(t,e),t.prototype._next=function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(e){return void this.destination.error(e)}this._innerSub(t,e,n)},t.prototype._innerSub=function(e,t,n){var i=this.innerSubscription;i&&i.unsubscribe();var r=new _(this,void 0,void 0);this.destination.add(r),this.innerSubscription=N(this,e,t,n,r)},t.prototype._complete=function(){var t=this.innerSubscription;t&&!t.closed||e.prototype._complete.call(this),this.unsubscribe()},t.prototype._unsubscribe=function(){this.innerSubscription=null},t.prototype.notifyComplete=function(t){this.destination.remove(t),this.innerSubscription=null,this.isStopped&&e.prototype._complete.call(this)},t.prototype.notifyNext=function(e,t,n,i,r){this.destination.next(t)},t}(y);function Tr(){return Er(Re)}function Or(e,t){return t?Er((function(){return e}),t):Er((function(){return e}))}function Br(e){return function(t){return t.lift(new Vr(e))}}var Vr=function(){function e(e){this.notifier=e}return e.prototype.call=function(e,t){var n=new Rr(e),i=N(n,this.notifier);return i&&!n.seenValue?(n.add(i),t.subscribe(n)):n},e}(),Rr=function(e){function t(t){var n=e.call(this,t)||this;return n.seenValue=!1,n}return i.__extends(t,e),t.prototype.notifyNext=function(e,t,n,i,r){this.seenValue=!0,this.complete()},t.prototype.notifyComplete=function(){},t}(y);function Mr(e,t){return void 0===t&&(t=!1),function(n){return n.lift(new Nr(e,t))}}var Nr=function(){function e(e,t){this.predicate=e,this.inclusive=t}return e.prototype.call=function(e,t){return t.subscribe(new Ar(e,this.predicate,this.inclusive))},e}(),Ar=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.predicate=n,r.inclusive=i,r.index=0,r}return i.__extends(t,e),t.prototype._next=function(e){var t,n=this.destination;try{t=this.predicate(e,this.index++)}catch(e){return void n.error(e)}this.nextOrComplete(e,t)},t.prototype.nextOrComplete=function(e,t){var n=this.destination;Boolean(t)?n.next(e):(this.inclusive&&n.next(e),n.complete())},t}(v),jr={leading:!0,trailing:!1};function Dr(e,t){return void 0===t&&(t=jr),function(n){return n.lift(new zr(e,t.leading,t.trailing))}}var zr=function(){function e(e,t,n){this.durationSelector=e,this.leading=t,this.trailing=n}return e.prototype.call=function(e,t){return t.subscribe(new Fr(e,this.durationSelector,this.leading,this.trailing))},e}(),Fr=function(e){function t(t,n,i,r){var o=e.call(this,t)||this;return o.destination=t,o.durationSelector=n,o._leading=i,o._trailing=r,o._hasValue=!1,o}return i.__extends(t,e),t.prototype._next=function(e){this._hasValue=!0,this._sendValue=e,this._throttled||(this._leading?this.send():this.throttle(e))},t.prototype.send=function(){var e=this._hasValue,t=this._sendValue;e&&(this.destination.next(t),this.throttle(t)),this._hasValue=!1,this._sendValue=null},t.prototype.throttle=function(e){var t=this.tryDurationSelector(e);t&&this.add(this._throttled=N(this,t))},t.prototype.tryDurationSelector=function(e){try{return this.durationSelector(e)}catch(e){return this.destination.error(e),null}},t.prototype.throttlingDone=function(){var e=this._throttled,t=this._trailing;e&&e.unsubscribe(),this._throttled=null,t&&this.send()},t.prototype.notifyNext=function(e,t,n,i,r){this.throttlingDone()},t.prototype.notifyComplete=function(){this.throttlingDone()},t}(y);function Hr(e,t,n){return void 0===t&&(t=L),void 0===n&&(n=jr),function(i){return i.lift(new Lr(e,t,n.leading,n.trailing))}}var Lr=function(){function e(e,t,n,i){this.duration=e,this.scheduler=t,this.leading=n,this.trailing=i}return e.prototype.call=function(e,t){return t.subscribe(new Wr(e,this.duration,this.scheduler,this.leading,this.trailing))},e}(),Wr=function(e){function t(t,n,i,r,o){var a=e.call(this,t)||this;return a.duration=n,a.scheduler=i,a.leading=r,a.trailing=o,a._hasTrailingValue=!1,a._trailingValue=null,a}return i.__extends(t,e),t.prototype._next=function(e){this.throttled?this.trailing&&(this._trailingValue=e,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(Zr,this.duration,{subscriber:this})),this.leading&&this.destination.next(e))},t.prototype._complete=function(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()},t.prototype.clearThrottle=function(){var e=this.throttled;e&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),e.unsubscribe(),this.remove(e),this.throttled=null)},t}(v);function Zr(e){e.subscriber.clearThrottle()}function Gr(e){return void 0===e&&(e=L),function(t){return n=function(){return t.pipe(Nn((function(t,n){var i=t.current;return{value:n,current:e.now(),last:i}}),{current:e.now(),value:void 0,last:void 0}),Pe((function(e){var t=e.current,n=e.last,i=e.value;return new Kr(i,t-n)})))},new x((function(e){var t;try{t=n()}catch(t){return void e.error(t)}return(t?Ce(t):xe()).subscribe(e)}));var n}}var Kr=function(){return function(e,t){this.value=e,this.interval=t}}();function Ur(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}Ur.prototype=Object.create(Error.prototype);var qr=Ur;function $r(e,t,n){return void 0===n&&(n=L),function(i){var r=et(e),o=r?+e-n.now():Math.abs(e);return i.lift(new Yr(o,r,t,n))}}var Yr=function(){function e(e,t,n,i){this.waitFor=e,this.absoluteTimeout=t,this.withObservable=n,this.scheduler=i}return e.prototype.call=function(e,t){return t.subscribe(new Xr(e,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))},e}(),Xr=function(e){function t(t,n,i,r,o){var a=e.call(this,t)||this;return a.absoluteTimeout=n,a.waitFor=i,a.withObservable=r,a.scheduler=o,a.action=null,a.scheduleTimeout(),a}return i.__extends(t,e),t.dispatchTimeout=function(e){var t=e.withObservable;e._unsubscribeAndRecycle(),e.add(N(e,t))},t.prototype.scheduleTimeout=function(){var e=this.action;e?this.action=e.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(t.dispatchTimeout,this.waitFor,this))},t.prototype._next=function(t){this.absoluteTimeout||this.scheduleTimeout(),e.prototype._next.call(this,t)},t.prototype._unsubscribe=function(){this.action=null,this.scheduler=null,this.withObservable=null},t}(y);function Qr(e,t){return void 0===t&&(t=L),$r(e,tt(new qr),t)}function Jr(e){return void 0===e&&(e=L),Pe((function(t){return new eo(t,e.now())}))}var eo=function(){return function(e,t){this.value=e,this.timestamp=t}}();function to(e,t,n){return 0===n?[t]:(e.push(t),e)}function no(){return Dn(to,[])}function io(e){return function(t){return t.lift(new ro(e))}}var ro=function(){function e(e){this.windowBoundaries=e}return e.prototype.call=function(e,t){var n=new oo(e),i=t.subscribe(n);return i.closed||n.add(N(n,this.windowBoundaries)),i},e}(),oo=function(e){function t(t){var n=e.call(this,t)||this;return n.window=new dn,t.next(n.window),n}return i.__extends(t,e),t.prototype.notifyNext=function(e,t,n,i,r){this.openWindow()},t.prototype.notifyError=function(e,t){this._error(e)},t.prototype.notifyComplete=function(e){this._complete()},t.prototype._next=function(e){this.window.next(e)},t.prototype._error=function(e){this.window.error(e),this.destination.error(e)},t.prototype._complete=function(){this.window.complete(),this.destination.complete()},t.prototype._unsubscribe=function(){this.window=null},t.prototype.openWindow=function(){var e=this.window;e&&e.complete();var t=this.destination,n=this.window=new dn;t.next(n)},t}(y);function ao(e,t){return void 0===t&&(t=0),function(n){return n.lift(new so(e,t))}}var so=function(){function e(e,t){this.windowSize=e,this.startWindowEvery=t}return e.prototype.call=function(e,t){return t.subscribe(new uo(e,this.windowSize,this.startWindowEvery))},e}(),uo=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.destination=t,r.windowSize=n,r.startWindowEvery=i,r.windows=[new dn],r.count=0,t.next(r.windows[0]),r}return i.__extends(t,e),t.prototype._next=function(e){for(var t=this.startWindowEvery>0?this.startWindowEvery:this.windowSize,n=this.destination,i=this.windowSize,r=this.windows,o=r.length,a=0;a<o&&!this.closed;a++)r[a].next(e);var s=this.count-i+1;if(s>=0&&s%t==0&&!this.closed&&r.shift().complete(),++this.count%t==0&&!this.closed){var u=new dn;r.push(u),n.next(u)}},t.prototype._error=function(e){var t=this.windows;if(t)for(;t.length>0&&!this.closed;)t.shift().error(e);this.destination.error(e)},t.prototype._complete=function(){var e=this.windows;if(e)for(;e.length>0&&!this.closed;)e.shift().complete();this.destination.complete()},t.prototype._unsubscribe=function(){this.count=0,this.windows=null},t}(v);function co(e){var t=L,n=null,i=Number.POSITIVE_INFINITY;return Z(arguments[3])&&(t=arguments[3]),Z(arguments[2])?t=arguments[2]:W(arguments[2])&&(i=arguments[2]),Z(arguments[1])?t=arguments[1]:W(arguments[1])&&(n=arguments[1]),function(r){return r.lift(new lo(e,n,i,t))}}var lo=function(){function e(e,t,n,i){this.windowTimeSpan=e,this.windowCreationInterval=t,this.maxWindowSize=n,this.scheduler=i}return e.prototype.call=function(e,t){return t.subscribe(new ho(e,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))},e}(),po=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._numberOfNextedValues=0,t}return i.__extends(t,e),t.prototype.next=function(t){this._numberOfNextedValues++,e.prototype.next.call(this,t)},Object.defineProperty(t.prototype,"numberOfNextedValues",{get:function(){return this._numberOfNextedValues},enumerable:!0,configurable:!0}),t}(dn),ho=function(e){function t(t,n,i,r,o){var a=e.call(this,t)||this;a.destination=t,a.windowTimeSpan=n,a.windowCreationInterval=i,a.maxWindowSize=r,a.scheduler=o,a.windows=[];var s=a.openWindow();if(null!==i&&i>=0){var u={subscriber:a,window:s,context:null},c={windowTimeSpan:n,windowCreationInterval:i,subscriber:a,scheduler:o};a.add(o.schedule(vo,n,u)),a.add(o.schedule(mo,i,c))}else{var l={subscriber:a,window:s,windowTimeSpan:n};a.add(o.schedule(fo,n,l))}return a}return i.__extends(t,e),t.prototype._next=function(e){for(var t=this.windows,n=t.length,i=0;i<n;i++){var r=t[i];r.closed||(r.next(e),r.numberOfNextedValues>=this.maxWindowSize&&this.closeWindow(r))}},t.prototype._error=function(e){for(var t=this.windows;t.length>0;)t.shift().error(e);this.destination.error(e)},t.prototype._complete=function(){for(var e=this.windows;e.length>0;){var t=e.shift();t.closed||t.complete()}this.destination.complete()},t.prototype.openWindow=function(){var e=new po;return this.windows.push(e),this.destination.next(e),e},t.prototype.closeWindow=function(e){e.complete();var t=this.windows;t.splice(t.indexOf(e),1)},t}(v);function fo(e){var t=e.subscriber,n=e.windowTimeSpan,i=e.window;i&&t.closeWindow(i),e.window=t.openWindow(),this.schedule(e,n)}function mo(e){var t=e.windowTimeSpan,n=e.subscriber,i=e.scheduler,r=e.windowCreationInterval,o=n.openWindow(),a={action:this,subscription:null},s={subscriber:n,window:o,context:a};a.subscription=i.schedule(vo,t,s),this.add(a.subscription),this.schedule(e,r)}function vo(e){var t=e.subscriber,n=e.window,i=e.context;i&&i.action&&i.subscription&&i.action.remove(i.subscription),t.closeWindow(n)}function go(e,t){return function(n){return n.lift(new yo(e,t))}}var yo=function(){function e(e,t){this.openings=e,this.closingSelector=t}return e.prototype.call=function(e,t){return t.subscribe(new _o(e,this.openings,this.closingSelector))},e}(),_o=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.openings=n,r.closingSelector=i,r.contexts=[],r.add(r.openSubscription=N(r,n,n)),r}return i.__extends(t,e),t.prototype._next=function(e){var t=this.contexts;if(t)for(var n=t.length,i=0;i<n;i++)t[i].window.next(e)},t.prototype._error=function(t){var n=this.contexts;if(this.contexts=null,n)for(var i=n.length,r=-1;++r<i;){var o=n[r];o.window.error(t),o.subscription.unsubscribe()}e.prototype._error.call(this,t)},t.prototype._complete=function(){var t=this.contexts;if(this.contexts=null,t)for(var n=t.length,i=-1;++i<n;){var r=t[i];r.window.complete(),r.subscription.unsubscribe()}e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){var e=this.contexts;if(this.contexts=null,e)for(var t=e.length,n=-1;++n<t;){var i=e[n];i.window.unsubscribe(),i.subscription.unsubscribe()}},t.prototype.notifyNext=function(e,t,n,i,r){if(e===this.openings){var o=void 0;try{o=(0,this.closingSelector)(t)}catch(e){return this.error(e)}var a=new dn,s=new h,u={window:a,subscription:s};this.contexts.push(u);var c=N(this,o,u);c.closed?this.closeWindow(this.contexts.length-1):(c.context=u,s.add(c)),this.destination.next(a)}else this.closeWindow(this.contexts.indexOf(e))},t.prototype.notifyError=function(e){this.error(e)},t.prototype.notifyComplete=function(e){e!==this.openSubscription&&this.closeWindow(this.contexts.indexOf(e.context))},t.prototype.closeWindow=function(e){if(-1!==e){var t=this.contexts,n=t[e],i=n.window,r=n.subscription;t.splice(e,1),i.complete(),r.unsubscribe()}},t}(y);function bo(e){return function(t){return t.lift(new Co(e))}}var Co=function(){function e(e){this.closingSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new ko(e,this.closingSelector))},e}(),ko=function(e){function t(t,n){var i=e.call(this,t)||this;return i.destination=t,i.closingSelector=n,i.openWindow(),i}return i.__extends(t,e),t.prototype.notifyNext=function(e,t,n,i,r){this.openWindow(r)},t.prototype.notifyError=function(e,t){this._error(e)},t.prototype.notifyComplete=function(e){this.openWindow(e)},t.prototype._next=function(e){this.window.next(e)},t.prototype._error=function(e){this.window.error(e),this.destination.error(e),this.unsubscribeClosingNotification()},t.prototype._complete=function(){this.window.complete(),this.destination.complete(),this.unsubscribeClosingNotification()},t.prototype.unsubscribeClosingNotification=function(){this.closingNotification&&this.closingNotification.unsubscribe()},t.prototype.openWindow=function(e){void 0===e&&(e=null),e&&(this.remove(e),e.unsubscribe());var t=this.window;t&&t.complete();var n,i=this.window=new dn;this.destination.next(i);try{n=(0,this.closingSelector)()}catch(e){return this.destination.error(e),void this.window.error(e)}this.add(this.closingNotification=N(this,n))},t}(y);function wo(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){var n;"function"==typeof e[e.length-1]&&(n=e.pop());var i=e;return t.lift(new xo(i,n))}}var xo=function(){function e(e,t){this.observables=e,this.project=t}return e.prototype.call=function(e,t){return t.subscribe(new So(e,this.observables,this.project))},e}(),So=function(e){function t(t,n,i){var r=e.call(this,t)||this;r.observables=n,r.project=i,r.toRespond=[];var o=n.length;r.values=new Array(o);for(var a=0;a<o;a++)r.toRespond.push(a);for(a=0;a<o;a++){var s=n[a];r.add(N(r,s,s,a))}return r}return i.__extends(t,e),t.prototype.notifyNext=function(e,t,n,i,r){this.values[n]=t;var o=this.toRespond;if(o.length>0){var a=o.indexOf(n);-1!==a&&o.splice(a,1)}},t.prototype.notifyComplete=function(){},t.prototype._next=function(e){if(0===this.toRespond.length){var t=[e].concat(this.values);this.project?this._tryProject(t):this.destination.next(t)}},t.prototype._tryProject=function(e){var t;try{t=this.project.apply(this,e)}catch(e){return void this.destination.error(e)}this.destination.next(t)},t}(y);function Eo(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e[e.length-1];return"function"==typeof n&&e.pop(),ve(e,void 0).lift(new Po(n))}var Po=function(){function e(e){this.resultSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new Io(e,this.resultSelector))},e}(),Io=function(e){function t(t,n,i){void 0===i&&(i=Object.create(null));var r=e.call(this,t)||this;return r.iterators=[],r.active=0,r.resultSelector="function"==typeof n?n:null,r.values=i,r}return i.__extends(t,e),t.prototype._next=function(e){var t=this.iterators;c(e)?t.push(new Oo(e)):"function"==typeof e[T]?t.push(new To(e[T]())):t.push(new Bo(this.destination,this,e))},t.prototype._complete=function(){var e=this.iterators,t=e.length;if(this.unsubscribe(),0!==t){this.active=t;for(var n=0;n<t;n++){var i=e[n];if(i.stillUnsubscribed)this.destination.add(i.subscribe(i,n));else this.active--}}else this.destination.complete()},t.prototype.notifyInactive=function(){this.active--,0===this.active&&this.destination.complete()},t.prototype.checkIterators=function(){for(var e=this.iterators,t=e.length,n=this.destination,i=0;i<t;i++){if("function"==typeof(a=e[i]).hasValue&&!a.hasValue())return}var r=!1,o=[];for(i=0;i<t;i++){var a,s=(a=e[i]).next();if(a.hasCompleted()&&(r=!0),s.done)return void n.complete();o.push(s.value)}this.resultSelector?this._tryresultSelector(o):n.next(o),r&&n.complete()},t.prototype._tryresultSelector=function(e){var t;try{t=this.resultSelector.apply(this,e)}catch(e){return void this.destination.error(e)}this.destination.next(t)},t}(v),To=function(){function e(e){this.iterator=e,this.nextResult=e.next()}return e.prototype.hasValue=function(){return!0},e.prototype.next=function(){var e=this.nextResult;return this.nextResult=this.iterator.next(),e},e.prototype.hasCompleted=function(){var e=this.nextResult;return e&&e.done},e}(),Oo=function(){function e(e){this.array=e,this.index=0,this.length=0,this.length=e.length}return e.prototype[T]=function(){return this},e.prototype.next=function(e){var t=this.index++,n=this.array;return t<this.length?{value:n[t],done:!1}:{value:null,done:!0}},e.prototype.hasValue=function(){return this.array.length>this.index},e.prototype.hasCompleted=function(){return this.array.length===this.index},e}(),Bo=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.parent=n,r.observable=i,r.stillUnsubscribed=!0,r.buffer=[],r.isComplete=!1,r}return i.__extends(t,e),t.prototype[T]=function(){return this},t.prototype.next=function(){var e=this.buffer;return 0===e.length&&this.isComplete?{value:null,done:!0}:{value:e.shift(),done:!1}},t.prototype.hasValue=function(){return this.buffer.length>0},t.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete},t.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},t.prototype.notifyNext=function(e,t,n,i,r){this.buffer.push(t),this.parent.checkIterators()},t.prototype.subscribe=function(e,t){return N(this,this.observable,this,t)},t}(y);function Vo(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return t.lift.call(Eo.apply(void 0,[t].concat(e)))}}function Ro(e){return function(t){return t.lift(new Po(e))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0);i.__exportStar(n(104),t),i.__exportStar(n(106),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_OUTPUT_FORMAT="rgba",t.DEFAULT_GRADIENT_BACKGROUND_COLOR="rgba(255, 0, 0, 1)",t.DRAGHANDLE_MOVE_SPEED=5,t.AAA_RATIO=7,t.AA_RATIO=4.5,t.DEFAULT_PRESET="office",t.DEFAULT_ACCESSIBLE_PRESET="accessible",t.STEP_COUNT=16},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=function(){function e(e){this.templateRef=e}return e=i.__decorate([r.Directive({selector:"[kendoSliderLabelTemplate]"}),i.__param(0,r.Optional()),i.__metadata("design:paramtypes",[r.TemplateRef])],e)}();t.LabelTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(5),a=n(7),s=n(12),u=n(10),c=n(82),l=n(2),d=n(4),p=n(10),h=n(11),f=n(3),m=n(34),v=function(e){function t(t,n,i,r,o,a){var s=e.call(this,t,n,i,r,o,a)||this;return s.localization=t,s.injector=n,s.renderer=i,s.ngZone=r,s.changeDetector=o,s.hostElement=a,s.focusableId="k-"+f.guid(),s.animate=!0,s.showButtons=!0,s.value=s.min,s.focusChangedProgrammatically=!1,s.onWrapClick=function(e){var t=e.target;if(!s.isDisabled&&!p.isButton(t)&&!p.isButton(t.parentNode)){var n=p.eventValue(e,s.track.nativeElement,s.getProps());s.changeValue(n)}h.invokeElementMethod(s.draghandle,"focus")},s.onKeyDown=function(e){var t=s.getProps(),n=t.max,i=t.min,r=s.keyBinding[e.keyCode];if(!s.isDisabled&&r){var o=r(t);s.changeValue(u.trimValue(n,i,o)),e.preventDefault()}},s.ngChange=function(e){},s.ngTouched=function(){},s.decreaseValue=function(){s.changeValue(p.decreaseValueToStep(s.value,s.getProps()))},s.increaseValue=function(){s.changeValue(p.increaseValueToStep(s.value,s.getProps()))},s.handleBlur=function(){s.changeDetector.markForCheck(),s.focused=!1,(f.hasObservers(s.onBlur)||d.requiresZoneOnBlur(s.control))&&s.ngZone.run((function(){s.ngTouched(),s.focusChangedProgrammatically||s.onBlur.emit()}))},s}var n;return i.__extends(t,e),n=t,Object.defineProperty(t.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentValue",{get:function(){return d.isPresent(this.value)?this.value.toString():""},enumerable:!0,configurable:!0}),t.prototype.focus=function(){this.disabled||(this.focusChangedProgrammatically=!0,h.invokeElementMethod(this.draghandle,"focus"),this.focusChangedProgrammatically=!1)},t.prototype.blur=function(){this.focusChangedProgrammatically=!0,h.invokeElementMethod(this.draghandle,"blur"),this.handleBlur(),this.focusChangedProgrammatically=!1},t.prototype.ngOnChanges=function(e){var t=this;f.anyChanged(["value","fixedTickWidth","tickPlacement"],e,!0)&&this.ngZone.onStable.asObservable().pipe(s.take(1)).subscribe((function(){t.sizeComponent(!1)}))},t.prototype.ngAfterViewInit=function(){var e=this;f.isDocumentAvailable()&&(this.showButtons&&(this.setValueChangeInterval(this.increaseButton.nativeElement,(function(){return e.increaseValue()})),this.setValueChangeInterval(this.decreaseButton.nativeElement,(function(){return e.decreaseValue()}))),this.sizeComponent(!1),this.ticks&&this.ticks.tickElements.changes.subscribe((function(){return e.sizeComponent(!1)})),this.attachElementEventHandlers())},t.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},Object.defineProperty(t.prototype,"incrementMessage",{get:function(){return this.incrementTitle||this.localizationService.get("increment")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"decrementMessage",{get:function(){return this.decrementTitle||this.localizationService.get("decrement")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dragHandleMessage",{get:function(){return this.dragHandleTitle||this.localizationService.get("dragHandle")},enumerable:!0,configurable:!0}),t.prototype.handleDragPress=function(e){e.originalEvent&&e.originalEvent.preventDefault(),this.renderer.removeClass(this.hostElement.nativeElement,"k-slider-transitions")},t.prototype.onHandleDrag=function(e){this.dragging=!0,this.changeValue(p.eventValue(e,this.track.nativeElement,this.getProps()))},t.prototype.onHandleRelease=function(){this.dragging=!1,this.renderer.addClass(this.hostElement.nativeElement,"k-slider-transitions")},t.prototype.writeValue=function(e){this.changeDetector.markForCheck(),this.value=e,this.sizeComponent(this.animate)},t.prototype.registerOnChange=function(e){this.ngChange=e},t.prototype.registerOnTouched=function(e){this.ngTouched=e},t.prototype.changeValue=function(e){var t=this;d.areSame(this.value,e)||this.ngZone.run((function(){t.value=e,t.ngChange(e),t.valueChange.emit(e),t.sizeComponent(t.animate),t.changeDetector.markForCheck()}))},t.prototype.sizeComponent=function(e){if(f.isDocumentAvailable()){var t=this.wrapper.nativeElement,n=this.track.nativeElement,i=this.sliderSelection.nativeElement,r=this.draghandle.nativeElement,o=this.ticks?this.ticksContainer.nativeElement:null;e||this.renderer.removeClass(this.hostElement.nativeElement,"k-slider-transitions"),this.resetStyles([n,i,r,o,this.hostElement.nativeElement]);var a=this.getProps(),s=new c.SliderModel(a,t,n,this.renderer);s.resizeTrack(),this.ticks&&s.resizeTicks(this.ticksContainer.nativeElement,this.ticks.tickElements.map((function(e){return e.nativeElement}))),s.positionHandle(r),s.positionSelection(i),e||(this.hostElement.nativeElement.getBoundingClientRect(),this.renderer.addClass(this.hostElement.nativeElement,"k-slider-transitions")),this.fixedTickWidth&&s.resizeWrapper()}},Object.defineProperty(t.prototype,"focused",{set:function(e){this.isFocused!==e&&this.hostElement&&(this.isFocused=e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dragging",{set:function(e){if(this.isDragged!==e&&this.sliderSelection&&this.draghandle){var t=this.sliderSelection.nativeElement,n=this.draghandle.nativeElement;e?(this.renderer.addClass(t,"k-pressed"),this.renderer.addClass(n,"k-pressed")):(this.renderer.removeClass(t,"k-pressed"),this.renderer.removeClass(n,"k-pressed")),this.isDragged=e}},enumerable:!0,configurable:!0}),t.prototype.setValueChangeInterval=function(e,t){var n=this;this.ngZone.runOutsideAngular((function(){var i=a.fromEvent(e,"mousedown"),r=a.fromEvent(e,"mouseup"),o=a.fromEvent(e,"mouseout"),u=i.pipe(s.filter((function(e){return 0===e.button&&!n.isDisabled})),s.concatMap((function(){return a.interval(150).pipe(s.startWith(-1),s.takeUntil(a.merge(r,o)))}))).subscribe((function(){n.isFocused||h.invokeElementMethod(n.draghandle,"focus"),t()}));n.subscriptions.add(u)}))},t.prototype.getProps=function(){return{buttons:this.showButtons,disabled:this.disabled,fixedTickWidth:this.fixedTickWidth,largeStep:this.largeStep,max:this.max,min:this.min,readonly:this.readonly,reverse:this.reverse,rtl:this.localizationService.rtl,smallStep:this.smallStep,value:u.trimValue(this.max,this.min,this.value),vertical:this.vertical}},t.prototype.attachElementEventHandlers=function(){var e=this,t=this.hostElement.nativeElement,n=!1,i=!1;this.ngZone.runOutsideAngular((function(){e.subscriptions.add(e.renderer.listen(t,"focusin",(function(){e.isFocused||e.ngZone.run((function(){e.focusChangedProgrammatically||e.onFocus.emit(),e.focused=!0}))}))),e.subscriptions.add(e.renderer.listen(t,"focusout",(function(t){e.isFocused&&(n?(t.relatedTarget!==e.draghandle.nativeElement&&e.handleBlur(),n=!1):i||e.handleBlur())}))),e.subscriptions.add(e.renderer.listen(t,"mouseenter",(function(){i=!0}))),e.subscriptions.add(e.renderer.listen(t,"mouseleave",(function(){i=!1}))),e.subscriptions.add(e.renderer.listen(t,"keydown",(function(e){n=e.keyCode===f.Keys.Tab})))}))},i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"focusableId",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"dragHandleTitle",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"incrementTitle",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],t.prototype,"animate",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"decrementTitle",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],t.prototype,"showButtons",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],t.prototype,"value",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],t.prototype,"tabIndex",null),i.__decorate([r.ViewChild("draghandle",{static:!0}),i.__metadata("design:type",r.ElementRef)],t.prototype,"draghandle",void 0),i.__decorate([r.ViewChild("decreaseButton",{static:!1}),i.__metadata("design:type",r.ElementRef)],t.prototype,"decreaseButton",void 0),i.__decorate([r.ViewChild("increaseButton",{static:!1}),i.__metadata("design:type",r.ElementRef)],t.prototype,"increaseButton",void 0),t=n=i.__decorate([r.Component({exportAs:"kendoSlider",providers:[l.LocalizationService,{provide:l.L10N_PREFIX,useValue:"kendo.slider"},{multi:!0,provide:o.NG_VALUE_ACCESSOR,useExisting:r.forwardRef((function(){return n}))},{provide:f.KendoInput,useExisting:r.forwardRef((function(){return n}))}],selector:"kendo-slider",template:'\n <ng-container kendoSliderLocalizedMessages\n i18n-increment="kendo.slider.increment|The title of the **Increase** button of the Slider."\n increment="increment"\n i18n-decrement="kendo.slider.decrement|The title of the **Decrease** button of the Slider."\n decrement="decrement"\n i18n-dragHandle="kendo.slider.dragHandle|The title of the drag handle of the Slider."\n dragHandle="Drag"\n >\n <div class="k-slider-wrap" #wrap\n [class.k-slider-buttons]="showButtons"\n [class.k-slider-topleft]="tickPlacement === \'before\'"\n [class.k-slider-bottomright]="tickPlacement === \'after\'"\n [kendoEventsOutsideAngular]="{ click: onWrapClick, keydown: onKeyDown }"\n >\n <button *ngIf="showButtons" type="button" #decreaseButton\n class="k-button-decrease k-button k-button-md k-rounded-full k-button-rectangle k-button-solid k-button-solid-base k-icon-button"\n [title]="decrementMessage"\n [attr.tabindex]="-1"\n role="presentation">\n <span class="k-button-icon k-icon"\n [class.k-i-arrow-w]="!vertical"\n [class.k-i-arrow-s]="vertical">\n </span>\n </button>\n <div class="k-slider-track-wrap">\n <ul kendoSliderTicks\n #ticks\n *ngIf="tickPlacement !== \'none\'"\n [tickTitle]="title"\n [vertical]="vertical"\n [step]="smallStep"\n [largeStep]="largeStep"\n [min]="min"\n [max]="max"\n [labelTemplate]="labelTemplate?.templateRef"\n [attr.aria-hidden]="true"\n >\n </ul>\n <div #track class="k-slider-track">\n <div #sliderSelection class="k-slider-selection">\n </div>\n <a #draghandle\n role="slider"\n [attr.aria-valuemin]="min"\n [attr.aria-valuemax]="max"\n [attr.aria-valuenow]="currentValue"\n [attr.aria-valuetext]="currentValue"\n [attr.aria-disabled]="disabled ? true : undefined"\n [attr.aria-readonly]="readonly ? true : undefined"\n [attr.aria-orientation]="vertical ? \'vertical\' : \'horizontal\'"\n [style.touch-action]="isDisabled ? \'\' : \'none\'"\n class="k-draghandle"\n [title]="dragHandleMessage"\n [attr.tabindex]="disabled ? \'-1\' : tabIndex"\n [id]="focusableId"\n kendoDraggable\n (kendoPress)="ifEnabled(handleDragPress, $event)"\n (kendoDrag)="ifEnabled(onHandleDrag, $event)"\n (kendoRelease)="ifEnabled(onHandleRelease, $event)"\n ></a>\n </div>\n </div>\n <button *ngIf="showButtons" type="button" #increaseButton\n class="k-button-increase k-button k-button-md k-rounded-full k-button-rectangle k-button-solid k-button-solid-base k-icon-button"\n [title]="incrementMessage"\n (click)="$event.preventDefault()"\n [attr.tabindex]="-1"\n [attr.aria-label]="currentValue"\n role="presentation">\n <span class="k-button-icon k-icon"\n [class.k-i-arrow-e]="!vertical"\n [class.k-i-arrow-n]="vertical">\n </span>\n </button>\n <kendo-resize-sensor (resize)="sizeComponent(false)"></kendo-resize-sensor>\n </div>\n '}),i.__metadata("design:paramtypes",[l.LocalizationService,r.Injector,r.Renderer2,r.NgZone,r.ChangeDetectorRef,r.ElementRef])],t)}(m.SliderBase);t.SliderComponent=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.limitPrecision=function(e){return Math.min(e,20)},t.fractionLength=function(e){return(String(e).split(".")[1]||"").length};var i=function(e,n){return Math.max(t.fractionLength(e),t.fractionLength(n))};t.toFixedPrecision=function(e,n){var i=t.limitPrecision(n);return parseFloat(e.toFixed(i))},t.add=function(e,n){var r=i(e,n);return t.toFixedPrecision(e+n,r)},t.subtract=function(e,n){return t.add(e,-n)},t.multiply=function(e,n){var i=t.fractionLength(e)+t.fractionLength(n);return t.toFixedPrecision(e*n,i)},t.divide=function(e,t){if(0===t)return NaN;var n=i(e,t),r=Math.pow(10,n);return r*e/(r*t)},t.remainder=function(e,n){return Math.abs(t.subtract(e,t.multiply(n,Math.floor(t.divide(e,n)))))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(3),a=n(4),s=n(11),u=n(17),c=n(84),l=n(85),d=n(5),p=n(86),h=n(2),f=n(8),m=n(9),v=n(39),g=n(87),y=n(88),_=n(32),b=["min","max","step","decimals"],C={decimals:null,max:null,min:null,step:1},k=function(){function e(e,t,n,i,s,u,c){var l=this;this.intl=e,this.renderer=t,this.localizationService=n,this.injector=i,this.ngZone=s,this.changeDetector=u,this.hostElement=c,this.focusableId="k-"+o.guid(),this.disabled=!1,this.readonly=!1,this.title="",this.autoCorrect=!1,this.decimals=null,this.step=1,this.spinners=!0,this.rangeValidation=!0,this.tabindex=0,this.changeValueOnScroll=!0,this.selectOnFocus=!0,this.value=null,this.valueChange=new r.EventEmitter,this.onFocus=new r.EventEmitter,this.onBlur=new r.EventEmitter,this.ArrowDirection=y.ArrowDirection,this.arrowDirection=y.ArrowDirection.None,this.hostClasses=!0,this.inputValue="",this.minValidateFn=g.noop,this.maxValidateFn=g.noop,this._format="n2",this.isPasted=!1,this.mouseDown=!1,this._size="medium",this._rounded="medium",this._fillMode="solid",this.ngChange=g.noop,this.ngTouched=g.noop,this.ngValidatorChange=g.noop,this.domEvents=[],this.increasePress=function(e){l.arrowPress(y.ArrowDirection.Up,e)},this.decreasePress=function(e){l.arrowPress(y.ArrowDirection.Down,e)},this.releaseArrow=function(){clearTimeout(l.spinTimeout),l.arrowDirection!==y.ArrowDirection.None&&(l.arrowDirection=y.ArrowDirection.None,l.changeDetector.detectChanges())},this.handlePaste=function(){l.isPasted=!0},this.handleInput=function(){var e=l.numericInput.nativeElement,t=e.selectionStart,n=e.selectionEnd,i=e.value;if(l.pressedKey===o.Keys.NumpadDecimal&&(i=l.replaceNumpadDotValue()),l.isPasted&&(i=l.formatInputValue(l.intl.parseNumber(i))),!l.isValid(i))return e.value=l.inputValue,void l.setSelection(t-1,n-1);var r=l.intl.parseNumber(i),a=l.restrictDecimals(r);if(l.autoCorrect){var s=l.limitInputValue(a);a=s.value,t=s.selectionStart,n=s.selectionEnd}r!==a||l.hasTrailingZeros(i)||!l.focused?(l.setInputValue(a),l.setSelection(t,n)):l.inputValue=i,l.isPasted&&(e.value=l.inputValue),l.updateValue(a),l.previousSelection=null,l.isPasted=!1},this.handleDragEnter=function(){l.focused||l.isDisabled||l.setInputValue(l.value,!0)},this.handleMouseDown=function(){l.mouseDown=!0},this.handleFocus=function(){if(!l.focused&&(l.focused=!0,!l.isDisabled)){var e=l.selectOnFocus||!l.mouseDown;l.ngZone.runOutsideAngular((function(){setTimeout((function(){e?l.selectAll():l.selectCaret()}),0)}))}l.mouseDown=!1,o.hasObservers(l.onFocus)&&l.ngZone.run((function(){l.onFocus.emit()}))},this.handleBlur=function(){l.changeDetector.markForCheck(),l.focused=!1,l.inputValue!==l.elementValue&&l.handleInput(),l.setInputValue(),(o.hasObservers(l.onBlur)||a.requiresZoneOnBlur(l.control))&&l.ngZone.run((function(){l.ngTouched(),l.onBlur.emit()}))},this.handleKeyDown=function(e){if(!l.isDisabled){var t;e.keyCode===o.Keys.ArrowDown?t=-1:e.keyCode===o.Keys.ArrowUp&&(t=1),t&&l.step&&(e.preventDefault(),l.addStep(t));var n=l.numericInput.nativeElement;l.previousSelection={end:n.selectionEnd,start:n.selectionStart},l.pressedKey=e.keyCode}},this.handleWheel=function(e){if(l.focused&&!l.isDisabled&&l.changeValueOnScroll){e.preventDefault();var t=g.getDeltaFromMouseWheel(e);l.addStep(t)}},f.validatePackage(m.packageMetadata),this.direction=n.rtl?"rtl":"ltr"}var t;return t=e,Object.defineProperty(e.prototype,"format",{get:function(){var e=this._format;return null!=e?e:"n2"},set:function(e){this._format=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(e){this.handleClasses(e,"size"),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.handleClasses(e,"rounded"),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.handleClasses(e,"fillMode"),this._fillMode=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disableClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.subscriptions=this.localizationService.changes.subscribe((function(t){var n=t.rtl;e.direction=n?"rtl":"ltr"})),this.subscriptions.add(this.intl.changes.subscribe(this.intlChange.bind(this))),this.hostElement&&this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.control=this.injector.get(d.NgControl,null),this.ngZone.runOutsideAngular((function(){e.domEvents.push(e.renderer.listen(e.hostElement.nativeElement,"mousewheel",e.handleWheel.bind(e))),e.domEvents.push(e.renderer.listen(e.hostElement.nativeElement,"DOMMouseScroll",e.handleWheel.bind(e)))}))},e.prototype.ngAfterViewInit=function(){var e=this;["size","rounded","fillMode"].forEach((function(t){e.handleClasses(e[t],t)}))},e.prototype.ngOnChanges=function(e){o.anyChanged(b,e,!1)&&this.parseOptions(b.filter((function(t){return e[t]}))),this.verifySettings(),o.anyChanged(["min","max","rangeValidation"],e,!1)&&(this.minValidateFn=this.rangeValidation?l.createMinValidator(this.min):g.noop,this.maxValidateFn=this.rangeValidation?c.createMaxValidator(this.max):g.noop,this.ngValidatorChange()),o.anyChanged(["autoCorrect","decimals","min"],e)&&delete this.numericRegex,o.anyChanged(["value","format"],e,!1)&&(this.verifyValue(this.value),this.value=this.restrictModelValue(this.value),this.focused&&this.intl.parseNumber(this.elementValue)===this.value||this.setInputValue())},e.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe(),clearTimeout(this.spinTimeout),this.domEvents.forEach((function(e){return e()}))},e.prototype.validate=function(e){return this.minValidateFn(e)||this.maxValidateFn(e)},e.prototype.registerOnValidatorChange=function(e){this.ngValidatorChange=e},e.prototype.writeValue=function(e){this.verifyValue(e);var t=this.restrictModelValue(e);this.value=t,this.setInputValue()},e.prototype.registerOnChange=function(e){this.ngChange=e},e.prototype.registerOnTouched=function(e){this.ngTouched=e},e.prototype.setDisabledState=function(e){this.changeDetector.markForCheck(),this.disabled=e},e.prototype.focus=function(){s.invokeElementMethod(this.numericInput,"focus")},e.prototype.blur=function(){s.invokeElementMethod(this.numericInput,"blur")},e.prototype.notifyValueChange=function(){this.setInputValue()},Object.defineProperty(e.prototype,"incrementTitle",{get:function(){return this.localizationService.get("increment")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"decrementTitle",{get:function(){return this.localizationService.get("decrement")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"decimalSeparator",{get:function(){return this.intl.numberSymbols().decimal},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"elementValue",{get:function(){return this.numericInput.nativeElement.value},set:function(e){this.renderer.setProperty(this.numericInput.nativeElement,"value",e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"focused",{get:function(){return this.isFocused},set:function(e){if(this.isFocused!==e&&this.hostElement){var t=this.hostElement.nativeElement;e?this.renderer.addClass(t,"k-focus"):this.renderer.removeClass(t,"k-focus"),this.isFocused=e}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasDecimals",{get:function(){return null!==this.decimals&&this.decimals>=0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isDisabled",{get:function(){return this.disabled||this.readonly},enumerable:!0,configurable:!0}),e.prototype.arrowPress=function(e,t){t.preventDefault(),this.isDisabled||g.isRightClick(t)||(_.mobileOS||(this.focused=!0,this.focus()),this.arrowDirection!==e&&(this.arrowDirection=e,this.changeDetector.detectChanges()),this.step?this.spin(e,v.INITIAL_SPIN_DELAY):this.setInputValue())},e.prototype.updateValue=function(e){var t=this;a.areSame(this.value,e)||this.ngZone.run((function(){t.value=e,t.ngChange(e),t.valueChange.emit(e),t.changeDetector.markForCheck()}))},e.prototype.replaceNumpadDotValue=function(){var e=this.inputValue||"";if(this.previousSelection){var t=this.numericInput.nativeElement,n=t.selectionStart,i=t.selectionEnd,r=this.previousSelection,o=r.start,a=r.end;t.value=e=e.substring(0,o)+this.decimalSeparator+e.substring(a),this.setSelection(n,i)}return e},e.prototype.isValid=function(e){return this.numericRegex||(this.numericRegex=g.numericRegex({autoCorrect:this.autoCorrect,decimals:this.decimals,min:this.min,separator:this.decimalSeparator})),this.numericRegex.test(e)},e.prototype.spin=function(e,t){var n=this;clearTimeout(this.spinTimeout),this.spinTimeout=window.setTimeout((function(){n.spin(e,v.SPIN_DELAY)}),t),this.addStep(e)},e.prototype.addStep=function(e){var t=u.add(this.value||0,this.step*e);t=this.limitValue(t),t=this.restrictDecimals(t),this.setInputValue(t),this.updateValue(t)},e.prototype.setSelection=function(e,t){this.focused&&s.invokeElementMethod(this.numericInput,"setSelectionRange",e,t)},e.prototype.limitValue=function(e){var t=e;return this.isInRange(e)||(g.isNumber(this.max)&&e>this.max&&(t=this.max),g.isNumber(this.min)&&e<this.min&&(t=this.min)),t},e.prototype.limitInputValue=function(e){var t=this.numericInput.nativeElement,n=t.selectionStart,i=t.selectionEnd,r=t.value,o=e,a=!1;if(!this.isInRange(e)){var s=r.length-String(this.inputValue).length,u=this.min,c=this.max,l=g.isNumber(c),d=g.isNumber(u),p=void 0,h=void 0,f=e;if(0===n&&this.inputValue.substr(1)===r)return{selectionEnd:i,selectionStart:n,value:null};if(l&&e>c?e>0?h=!0:p=c:d&&e<u&&(e>0?p=u:h=!0),p){var m=this.tryPadValue(e,p);m&&g.decimalPart(e)!==g.decimalPart(p)&&(f=m,a=!0)}else h&&this.inputValue&&n!==r.length&&(f=parseFloat(r.substr(0,n)+r.substr(n+s)));o=this.limitValue(f),a=(a||o!==f)&&this.previousSelection&&this.previousSelection.end-this.previousSelection.start+s>0}return{selectionEnd:a?String(o).length:i,selectionStart:n,value:o}},e.prototype.tryPadValue=function(e,t){var n,i=String(Math.floor(t)).length,r=g.pad(e,i),o=g.pad(e,i+1);return this.isInRange(r)?n=r:this.isInRange(o)&&(n=o),n},e.prototype.isInRange=function(e){return!g.isNumber(e)||(!g.isNumber(this.min)||this.min<=e)&&(!g.isNumber(this.max)||e<=this.max)},e.prototype.restrictModelValue=function(e){var t=this.restrictDecimals(e,!0);return this.autoCorrect&&this.limitValue(t)!==t&&(t=null),t},e.prototype.restrictDecimals=function(e,t){var n=e;if(e&&this.hasDecimals){var i=this.decimals,r=String(e);if(t||v.EXPONENT_REGEX.test(r))n=u.toFixedPrecision(e,i);else{var o=r.split(v.POINT),a=o[1];a&&a.length>i&&(a=a.substr(0,i),n=parseFloat(""+o[0]+v.POINT+a))}}return n},e.prototype.formatInputValue=function(e){var t=String(e),n=v.EXPONENT_REGEX.exec(t);return n&&(t=e.toFixed(u.limitPrecision(parseInt(n[1],10)))),t.replace(v.POINT,this.decimalSeparator)},e.prototype.formatValue=function(e,t){return null!==e&&g.defined(e)&&""!==e?t&&!this.readonly?this.formatInputValue(e):this.intl.formatNumber(e,this.format):""},e.prototype.setInputValue=function(e,t){void 0===e&&(e=this.value),void 0===t&&(t=this.focused);var n=this.formatValue(e,t);this.elementValue=n,this.inputValue=n},e.prototype.verifySettings=function(){if(r.isDevMode()&&null!==this.min&&null!==this.max&&this.min>this.max)throw new Error("The max value should be bigger than the min. See "+v.MIN_DOC_LINK+" and "+v.MAX_DOC_LINK+".")},e.prototype.verifyValue=function(e){if(r.isDevMode()&&e&&"number"!=typeof e)throw new Error("The NumericTextBox component requires value of type Number and "+JSON.stringify(e)+" was set.")},e.prototype.parseOptions=function(e){for(var t=0;t<e.length;t++){var n=e[t],i=this[n];if("string"==typeof i){var o=parseFloat(i),a=!isNaN(o);if(r.isDevMode()&&!a&&""!==i)throw new Error("The NumericTextBox component requires value of type Number or a String representing a number for the "+n+" property and "+JSON.stringify(i)+" was set.");this[n]=a?o:C[n]}}},e.prototype.intlChange=function(){delete this.numericRegex,!this.numericInput||this.focused&&this.isValid(this.elementValue)||this.setInputValue()},e.prototype.hasTrailingZeros=function(e){if(this.hasDecimals&&this.focused){var t=e.split(this.decimalSeparator)[1];return t&&t.length>this.decimals&&t.lastIndexOf("0")===t.length-1}},e.prototype.selectAll=function(){this.setInputValue(),this.setSelection(0,this.inputValue.length)},e.prototype.selectCaret=function(){var e=g.getCaretPosition(this.numericInput.nativeElement),t=this.elementValue,n=t.substring(0,e);if(this.setInputValue(),n.length){var i=g.extractSignificantNumericChars(n,this.decimalSeparator),r=this.adjustSignificantChars(t,i);this.setSelection(r,r)}else this.setSelection(0,0)},e.prototype.numberOfLeadingZeroes=function(e){var t=e.indexOf(this.decimalSeparator),n=e.match(/^[^1-9]*?(0+)/);if(n){var i=n[0].length,r=n[1].length;return i===t?r-1:r}return 0},e.prototype.adjustSignificantChars=function(e,t){var n=this.numberOfLeadingZeroes(e);return n>0?Math.max(0,t-n):t},e.prototype.handleClasses=function(e,t){var n=this.hostElement.nativeElement,i=a.getStylingClasses("input",t,this[t],e);i.toRemove&&this.renderer.removeClass(n,i.toRemove),i.toAdd&&this.renderer.addClass(n,i.toAdd)},i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"focusableId",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"readonly",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"title",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"autoCorrect",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"format",null),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"max",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"min",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"decimals",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"placeholder",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"step",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"spinners",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"rangeValidation",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"tabindex",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],e.prototype,"tabIndex",null),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"changeValueOnScroll",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"selectOnFocus",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"value",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"maxlength",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"size",null),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"rounded",null),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"fillMode",null),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"valueChange",void 0),i.__decorate([r.Output("focus"),i.__metadata("design:type",r.EventEmitter)],e.prototype,"onFocus",void 0),i.__decorate([r.Output("blur"),i.__metadata("design:type",r.EventEmitter)],e.prototype,"onBlur",void 0),i.__decorate([r.ViewChild("numericInput",{static:!0}),i.__metadata("design:type",r.ElementRef)],e.prototype,"numericInput",void 0),i.__decorate([r.HostBinding("attr.dir"),i.__metadata("design:type",String)],e.prototype,"direction",void 0),i.__decorate([r.HostBinding("class.k-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"disableClass",null),i.__decorate([r.HostBinding("class.k-input"),r.HostBinding("class.k-numerictextbox"),i.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),e=t=i.__decorate([r.Component({exportAs:"kendoNumericTextBox",providers:[h.LocalizationService,{provide:h.L10N_PREFIX,useValue:"kendo.numerictextbox"},{provide:d.NG_VALUE_ACCESSOR,useExisting:r.forwardRef((function(){return t})),multi:!0},{provide:d.NG_VALIDATORS,useExisting:r.forwardRef((function(){return t})),multi:!0},{provide:o.KendoInput,useExisting:r.forwardRef((function(){return t}))}],selector:"kendo-numerictextbox",template:'\n <ng-container kendoNumericTextBoxLocalizedMessages\n i18n-increment="kendo.numerictextbox.increment|The title for the **Increment** button in the NumericTextBox"\n increment="Increase value"\n i18n-decrement="kendo.numerictextbox.decrement|The title for the **Decrement** button in the NumericTextBox"\n decrement="Decrease value"\n >\n </ng-container>\n <input\n role="spinbutton"\n class="k-input-inner"\n autocomplete="off"\n autocorrect="off"\n [id]="focusableId"\n [attr.aria-valuemin]="min"\n [attr.aria-valuemax]="max"\n [attr.aria-valuenow]="value"\n [attr.title]="title"\n [attr.placeholder]="placeholder"\n [attr.maxLength]="maxlength"\n [tabindex]="tabIndex"\n [disabled]="disabled"\n [readonly]="readonly"\n [kendoEventsOutsideAngular]="{\n mousedown: handleMouseDown,\n dragenter: handleDragEnter,\n keydown: handleKeyDown,\n input: handleInput,\n focus: handleFocus,\n blur: handleBlur,\n paste: handlePaste\n }"\n #numericInput />\n <span\n class="k-input-spinner k-spin-button" *ngIf="spinners"\n [kendoEventsOutsideAngular]="{ mouseup: releaseArrow, mouseleave: releaseArrow }"\n >\n <button\n type="button"\n [kendoEventsOutsideAngular]="{ mousedown: increasePress }"\n [attr.aria-hidden]="true"\n [attr.aria-label]="incrementTitle"\n [title]="incrementTitle"\n [class.k-active]="arrowDirection === ArrowDirection.Up"\n class="k-spinner-increase k-button k-icon-button k-button-solid k-button-solid-base"\n tabindex="-1"\n >\n <span class="k-button-icon k-icon k-i-arrow-n"></span>\n </button>\n <button\n type="button"\n [kendoEventsOutsideAngular]="{ mousedown: decreasePress }"\n [attr.aria-hidden]="true"\n [attr.aria-label]="decrementTitle"\n [title]="decrementTitle"\n [class.k-active]="arrowDirection === ArrowDirection.Down"\n class="k-spinner-decrease k-button k-icon-button k-button-solid k-button-solid-base"\n tabindex="-1"\n >\n <span class="k-button-icon k-icon k-i-arrow-s"></span>\n </button>\n </span>\n '}),i.__metadata("design:paramtypes",[p.IntlService,r.Renderer2,h.LocalizationService,r.Injector,r.NgZone,r.ChangeDetectorRef,r.ElementRef])],e)}();t.NumericTextBoxComponent=k},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(6),a=n(16),s=n(45),u=n(47),c=n(93),l=n(15),d=function(){function e(){}return e=i.__decorate([r.NgModule({declarations:[a.SliderComponent,c.SliderCustomMessagesComponent,u.LocalizedSliderMessagesDirective],exports:[a.SliderComponent,c.SliderCustomMessagesComponent,l.LabelTemplateDirective,u.LocalizedSliderMessagesDirective],imports:[o.CommonModule,s.SlidersCommonModule]})],e)}();t.SliderModule=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(18),a=n(6),s=n(55),u=n(40),c=n(3),l=function(){function e(){}return e=i.__decorate([r.NgModule({declarations:[s.LocalizedNumericTextBoxMessagesDirective,o.NumericTextBoxComponent,u.NumericTextBoxCustomMessagesComponent],exports:[o.NumericTextBoxComponent,u.NumericTextBoxCustomMessagesComponent],imports:[a.CommonModule,c.EventsModule]})],e)}();t.NumericTextBoxModule=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=function(){function e(e){this.templateRef=e}return e=i.__decorate([r.Directive({selector:"[kendoTextBoxSuffixTemplate]"}),i.__param(0,r.Optional()),i.__metadata("design:paramtypes",[r.TemplateRef])],e)}();t.TextBoxSuffixTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=function(){function e(e){this.templateRef=e}return e=i.__decorate([r.Directive({selector:"[kendoTextBoxPrefixTemplate]"}),i.__param(0,r.Optional()),i.__metadata("design:paramtypes",[r.TemplateRef])],e)}();t.TextBoxPrefixTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(62),a=n(38);t.SHARED_DIRECTIVES=[o.InputSeparatorComponent,a.TextAreaDirective];var s=function(){function e(){}return e=i.__decorate([r.NgModule({declarations:[t.SHARED_DIRECTIVES],exports:[t.SHARED_DIRECTIVES]})],e)}();t.SharedModule=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(5),a=n(7),s=n(2),u=n(3),c=n(8),l=n(25),d=n(98),p=n(9),h=n(27),f=n(13),m=n(4),v=n(28),g=n(29),y=n(71),_=n(72),b=function(){function e(e,t,n,i,o,s){var u=this;this.host=e,this.service=t,this.localizationService=n,this.cdr=i,this.renderer=o,this.ngZone=s,this.hostClasses=!0,this.readonly=!1,this.disabled=!1,this.format="rgba",this.clearButton=!0,this.preview=!0,this.actionsLayout="end",this.views=["gradient","palette"],this.valueChange=new r.EventEmitter,this.cancel=new r.EventEmitter,this.activeViewChange=new r.EventEmitter,this.actionButtonClick=new r.EventEmitter,this._tabindex=0,this._gradientSettings={opacity:!0,delay:0},this._paletteSettings={},this.subscriptions=new a.Subscription,this.notifyNgChanged=function(){},this.notifyNgTouched=function(){},c.validatePackage(p.packageMetadata),this.dynamicRTLSubscription=this.localizationService.changes.subscribe((function(e){var t=e.rtl;u.direction=t?"rtl":"ltr"}))}var t;return t=e,Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaReadonly",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostTabindex",{get:function(){return this.tabindex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=f.parseColor(e,this.format,this.gradientSettings.opacity)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabindex",{get:function(){return this.disabled?void 0:this._tabindex},set:function(e){var t=Number(e);this._tabindex=isNaN(t)?0:t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gradientSettings",{get:function(){return this._gradientSettings},set:function(e){Object.assign(this._gradientSettings,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paletteSettings",{get:function(){return this._paletteSettings},set:function(e){Object.assign(this._paletteSettings,e)},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.selection=this.value,this._paletteSettings=this.service.getPaletteSettings(this._paletteSettings,this.format),this.setActiveView()},e.prototype.ngAfterViewInit=function(){this.setHostElementAriaLabel(),this.initDomEvents(),this.setSizingVariables()},e.prototype.ngOnChanges=function(e){u.isChanged("value",e)&&(this.selection=this.value,this.setHostElementAriaLabel()),u.isChanged("paletteSettings",e)&&this.setSizingVariables()},e.prototype.ngOnDestroy=function(){this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe(),this.subscriptions.unsubscribe()},Object.defineProperty(e.prototype,"headerHasContent",{get:function(){return this.preview||this.views.length>1||this.clearButton},enumerable:!0,configurable:!0}),e.prototype.isEmpty=function(){return!1},e.prototype.focus=function(){this.disabled&&this.focused||(this.host.nativeElement.focus(),this.focused=!0)},e.prototype.blur=function(){this.focused&&(this.notifyNgTouched(),this.host.nativeElement.blur(),this.focused=!1)},e.prototype.reset=function(){m.isPresent(this.value)&&(this.value=void 0,this.notifyNgChanged(void 0),this.setHostElementAriaLabel())},e.prototype.onViewChange=function(e){var t=this;this.activeView!==e&&(this.activeView=e,this.activeViewChange.emit(e),"gradient"===this.activeView&&this.ngZone.runOutsideAngular((function(){setTimeout((function(){t.gradient.gradientDragHandle.nativeElement.focus()}))})))},e.prototype.onClearButtonClick=function(){this.resetInnerComponentValue(),this.host.nativeElement.focus()},e.prototype.handleValueChange=function(e){this.preview?this.changeCurrentValue(e):this.setFlatColorPickerValue(e)},e.prototype.onAction=function(e){"apply"===e.target?this.setFlatColorPickerValue(this.selection):this.resetSelection(e.originalEvent),this.actionButtonClick.emit()},e.prototype.writeValue=function(e){this.value=e},e.prototype.registerOnChange=function(e){this.notifyNgChanged=e},e.prototype.registerOnTouched=function(e){this.notifyNgTouched=e},e.prototype.setDisabledState=function(e){this.cdr.markForCheck(),this.disabled=e},e.prototype.resetSelection=function(e){var t=new h.ColorPickerCancelEvent(e);this.cancel.emit(t),t.isDefaultPrevented()||(this.selection=this.value),this.notifyNgTouched()},e.prototype.setHostElementAriaLabel=function(){var e=f.parseColor(this.value,this.format,this.gradientSettings.opacity),t=""+(this.value?e:this.localizationService.get("flatColorPickerNoColor"));this.renderer.setAttribute(this.host.nativeElement,"aria-label",t)},e.prototype.setSizingVariables=function(){var e=this.service.paletteTileLayout(this.paletteSettings.tileSize),t="--kendo-color-preview-columns: "+this.paletteSettings.columns+";\n --kendo-color-preview-width: "+e.width+"px;\n --kendo-color-preview-height: "+e.height+"px;";this.host.nativeElement.querySelector(".k-coloreditor-views.k-vstack").setAttribute("style",t)},e.prototype.changeCurrentValue=function(e){this.selection=e,this.notifyNgTouched()},e.prototype.resetInnerComponentValue=function(){this.selection=null,this.gradient?this.gradient.reset():this.palette.reset()},e.prototype.setFlatColorPickerValue=function(e){this.value!==e&&(this.value=e,this.valueChange.emit(e),this.notifyNgChanged(e),this.setHostElementAriaLabel())},e.prototype.setActiveView=function(){if(m.isPresent(this.activeView)){if(r.isDevMode()&&-1===this.views.indexOf(this.activeView))throw new Error("Invalid configuration: The current activeView is not present in the views collection")}else this.activeView=this.views[0]},e.prototype.initDomEvents=function(){var e=this;if(this.host){var t=this.host.nativeElement;this.ngZone.runOutsideAngular((function(){e.subscriptions.add(e.renderer.listen(t,"focus",(function(){e.focused=!0}))),e.subscriptions.add(e.renderer.listen(t,"blur",(function(){e.focused=!1,e.notifyNgTouched()})))}))}},i.__decorate([r.HostBinding("class.k-flatcolorpicker"),r.HostBinding("class.k-coloreditor"),i.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),i.__decorate([r.HostBinding("class.k-state-disabled"),r.HostBinding("attr.aria-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"disabledClass",null),i.__decorate([r.HostBinding("attr.aria-readonly"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"ariaReadonly",null),i.__decorate([r.HostBinding("attr.dir"),i.__metadata("design:type",String)],e.prototype,"direction",void 0),i.__decorate([r.HostBinding("attr.tabindex"),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[])],e.prototype,"hostTabindex",null),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"readonly",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"format",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"value",null),i.__decorate([r.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],e.prototype,"tabindex",null),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"clearButton",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"preview",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"actionsLayout",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"activeView",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Array)],e.prototype,"views",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"gradientSettings",null),i.__decorate([r.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"paletteSettings",null),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"valueChange",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"cancel",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"activeViewChange",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"actionButtonClick",void 0),i.__decorate([r.ViewChild("header",{static:!1}),i.__metadata("design:type",y.FlatColorPickerHeaderComponent)],e.prototype,"header",void 0),i.__decorate([r.ViewChild("gradient",{static:!1}),i.__metadata("design:type",v.ColorGradientComponent)],e.prototype,"gradient",void 0),i.__decorate([r.ViewChild("palette",{static:!1}),i.__metadata("design:type",g.ColorPaletteComponent)],e.prototype,"palette",void 0),i.__decorate([r.ViewChild("footer",{static:!1}),i.__metadata("design:type",_.FlatColorPickerActionButtonsComponent)],e.prototype,"footer",void 0),e=t=i.__decorate([r.Component({exportAs:"kendoFlatColorPicker",selector:"kendo-flatcolorpicker",providers:[{multi:!0,provide:o.NG_VALUE_ACCESSOR,useExisting:r.forwardRef((function(){return t}))},{provide:u.KendoInput,useExisting:r.forwardRef((function(){return t}))},d.FlatColorPickerService,l.FlatColorPickerLocalizationService,{provide:s.LocalizationService,useExisting:l.FlatColorPickerLocalizationService},{provide:s.L10N_PREFIX,useValue:"kendo.flatcolorpicker"}],template:'\n <ng-container kendoFlatColorPickerLocalizedMessages\n i18n-flatColorPickerNoColor="kendo.flatcolorpicker.flatColorPickerNoColor|The aria-label applied to the FlatColorPicker component when the value is empty."\n flatColorPickerNoColor="Flatcolorpicker no color chosen"\n i18n-colorGradientNoColor="kendo.flatcolorpicker.colorGradientNoColor|The aria-label applied to the ColorGradient component when the value is empty."\n colorGradientNoColor="Colorgradient no color chosen"\n i18n-colorPaletteNoColor="kendo.flatcolorpicker.colorPaletteNoColor|The aria-label applied to the ColorPalette component when the value is empty."\n colorPaletteNoColor="Colorpalette no color chosen"\n i18n-colorGradientHandle="kendo.flatcolorpicker.colorGradientHandle|The title for the gradient color drag handle chooser."\n colorGradientHandle="Choose color"\n i18n-clearButton="kendo.flatcolorpicker.clearButton|The title for the clear button."\n clearButton="Clear value"\n i18n-hueSliderHandle="kendo.flatcolorpicker.hueSliderHandle|The title for the hue slider handle."\n hueSliderHandle="Set hue"\n i18n-opacitySliderHandle="kendo.flatcolorpicker.opacitySliderHandle|The title for the opacity slider handle."\n opacitySliderHandle="Set opacity"\n i18n-contrastRatio="kendo.flatcolorpicker.contrastRatio|The contrast ratio message for the contrast tool."\n contrastRatio="Contrast ratio"\n i18n-previewColor="kendo.flatcolorpicker.previewColor|The message for the color preview pane."\n previewColor="Color preview"\n i18n-revertSelection="kendo.flatcolorpicker.revertSelection|The message for the selected color pane."\n revertSelection="Revert selection"\n i18n-gradientView="kendo.flatcolorpicker.gradientView|The message for the gradient view button."\n gradientView="Gradient view"\n i18n-paletteView="kendo.flatcolorpicker.paletteView|The message for the palette view button."\n paletteView="Palette view"\n i18n-formatButton="kendo.flatcolorpicker.formatButton|The message for the input format toggle button."\n formatButton="Change color format"\n i18n-applyButton="kendo.flatcolorpicker.applyButton|The message for the Apply action button."\n applyButton="Apply"\n i18n-cancelButton="kendo.flatcolorpicker.cancelButton|The message for the Cancel action button."\n cancelButton="Cancel">\n </ng-container>\n <div kendoFlatColorPickerHeader\n *ngIf="headerHasContent"\n #header\n [clearButton]="clearButton"\n [activeView]="activeView"\n [views]="views"\n [value]="value"\n [selection]="selection"\n [preview]="preview"\n (clearButtonClick)="onClearButtonClick()"\n (viewChange)="onViewChange($event)"\n (valuePaneClick)="resetSelection($event)">\n </div>\n <div class="k-coloreditor-views k-vstack">\n <kendo-colorgradient #gradient\n *ngIf="activeView === \'gradient\'"\n [tabindex]="null"\n [value]="selection"\n [format]="format"\n [opacity]="gradientSettings.opacity"\n [delay]="gradientSettings.delay"\n [contrastTool]="gradientSettings.contrastTool"\n [readonly]="readonly"\n (valueChange)="handleValueChange($event)"\n >\n </kendo-colorgradient>\n <kendo-colorpalette #palette\n *ngIf="activeView === \'palette\'"\n kendoFocusOnDomReady\n [palette]="paletteSettings.palette"\n [columns]="paletteSettings.columns"\n [tileSize]="paletteSettings.tileSize"\n [format]="format"\n [value]="selection"\n (valueChange)="handleValueChange($event)"\n >\n </kendo-colorpalette>\n </div>\n <div kendoFlatColorPickerActionButtons *ngIf="preview"\n #footer\n [ngClass]="\'k-justify-content-\' + actionsLayout"\n (actionButtonClick)="onAction($event)">\n </div>\n'}),i.__metadata("design:paramtypes",[r.ElementRef,d.FlatColorPickerService,s.LocalizationService,r.ChangeDetectorRef,r.Renderer2,r.NgZone])],e)}();t.FlatColorPickerComponent=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(2),a=n(69),s=function(e){function t(t,n,i,r){var o=e.call(this,t,n,i)||this;return o.colorPickerLocalization=r,o}return i.__extends(t,e),t.prototype.get=function(t){return this.colorPickerLocalization?this.colorPickerLocalization.get(t):e.prototype.get.call(this,t)},t=i.__decorate([i.__param(0,r.Inject(o.L10N_PREFIX)),i.__param(1,r.Optional()),i.__param(2,r.Optional()),i.__param(2,r.Inject(o.RTL)),i.__param(3,r.Optional()),i.__param(3,r.Inject(a.ColorPickerLocalizationService)),i.__metadata("design:paramtypes",[String,o.MessageService,Boolean,a.ColorPickerLocalizationService])],t)}(o.LocalizationService);t.FlatColorPickerLocalizationService=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(0).__exportStar(n(99),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0);i.__exportStar(n(100),t),i.__exportStar(n(101),t),i.__exportStar(n(102),t),i.__exportStar(n(103),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(5),a=n(7),s=n(12),u=n(2),c=n(3),l=n(8),d=n(11),p=n(13),h=n(4),f=n(16),m=n(107),v=n(70),g=n(14),y=n(9),_=0,b=function(){function e(e,t,n,i,o){var s=this;this.host=e,this.ngZone=t,this.renderer=n,this.cdr=i,this.localizationService=o,this.hostClasses=!0,this.id="k-colorgradient-"+_++,this.opacity=!0,this.disabled=!1,this.readonly=!1,this.clearButton=!1,this.delay=0,this.format=g.DEFAULT_OUTPUT_FORMAT,this.valueChange=new r.EventEmitter,this.backgroundColor=g.DEFAULT_GRADIENT_BACKGROUND_COLOR,this.hsva=new a.BehaviorSubject({}),this._tabindex=0,this.listeners=[],this.hueSliderTouched=!1,this.alphaSliderTouched=!1,this.updateValues=new a.Subject,this.notifyNgChanged=function(){},this.notifyNgTouched=function(){},l.validatePackage(y.packageMetadata),this.dynamicRTLSubscription=o.changes.subscribe((function(e){var t=e.rtl;s.direction=t?"rtl":"ltr"}))}var t;return t=e,Object.defineProperty(e.prototype,"readonlyAttribute",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gradientId",{get:function(){return this.id},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostTabindex",{get:function(){return this.tabindex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=p.parseColor(e,this.format,this.opacity)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contrastTool",{get:function(){return this._contrastTool},set:function(e){this._contrastTool=p.parseColor(e,this.format,this.opacity)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabindex",{get:function(){return this.disabled?void 0:this._tabindex},set:function(e){if(h.isPresent(e)){var t=Number(e);this._tabindex=isNaN(t)?0:t}else this._tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isFocused",{get:function(){return!(!c.isDocumentAvailable()||!h.isPresent(this.host))&&(this.host.nativeElement===document.activeElement||this.host.nativeElement.contains(document.activeElement))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"alphaSliderValue",{get:function(){if(h.isPresent(this.hsva.value)&&h.isPresent(this.hsva.value.a))return 100*this.hsva.value.a},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gradientRect",{get:function(){return this.gradientWrapper.nativeElement.getBoundingClientRect()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contrastToolVisible",{get:function(){return this.contrastTool&&this.contrastTool.length>0},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){this.updateUI(),this.cdr.detectChanges(),this.addEventListeners(),this.subscribeChanges()},e.prototype.ngOnChanges=function(e){c.isChanged("value",e)&&!this.isFocused&&this.updateUI(),c.isChanged("delay",e)&&(this.unsubscribeChanges(),this.subscribeChanges())},e.prototype.ngOnDestroy=function(){this.listeners.forEach((function(e){return e()})),this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe(),this.unsubscribeChanges()},e.prototype.focus=function(){this.disabled||this.gradientDragHandle.nativeElement.focus()},e.prototype.reset=function(){this.handleValueChange(void 0),this.updateUI(),this.host.nativeElement.focus()},e.prototype.handleDragPress=function(e){this.disabled||this.readonly||!h.isPresent(e.originalEvent)||(this.focus(),e.originalEvent.preventDefault())},e.prototype.onHandleDrag=function(e){this.disabled||this.readonly||(this.renderer.addClass(this.gradientWrapper.nativeElement,"k-dragging"),this.changePosition(e))},e.prototype.onHandleRelease=function(){this.disabled||this.readonly||(this.renderer.removeClass(this.gradientWrapper.nativeElement,"k-dragging"),this.handleValueChange(p.getColorFromHSV(this.hsva.value,this.format,this.opacity)))},e.prototype.onKeyboardAction=function(e){var t=this;if(!this.disabled&&!this.readonly&&e.key&&-1!==e.key.indexOf("Arrow")){e.preventDefault();var n=this.gradientDragHandle.nativeElement;this.renderer.addClass(this.gradientWrapper.nativeElement,"k-dragging");var i=0,r=0;switch(e.key){case"ArrowRight":i=g.DRAGHANDLE_MOVE_SPEED;break;case"ArrowLeft":i=-g.DRAGHANDLE_MOVE_SPEED;break;case"ArrowUp":r=-g.DRAGHANDLE_MOVE_SPEED;break;case"ArrowDown":r=g.DRAGHANDLE_MOVE_SPEED}var o=parseInt(n.style.top,10)+r,a=parseInt(n.style.left,10)+i;this.renderer.setStyle(n,"top",o+"px"),this.renderer.setStyle(n,"left",a+"px"),this.ngZone.run((function(){return t.moveDragHandle(a,o)}))}},e.prototype.changePosition=function(e){var t=this;if(!this.disabled&&!this.readonly){this.gradientDragHandle.nativeElement.focus();var n=this.gradientRect,i=e.clientX-n.left,r=e.clientY-n.top;this.ngZone.run((function(){return t.moveDragHandle(i,r)}))}},e.prototype.handleHueSliderChange=function(e){var t=this.hsva.value;t.h=e,this.hsva.next(t),this.handleValueChange(p.getColorFromHSV(this.hsva.value,this.format,this.opacity)),this.backgroundColor=p.getColorFromHue(e),this.setBackgroundColor(this.backgroundColor),this.setAlphaSliderBackground(this.backgroundColor),this.hueSliderTouched=!0},e.prototype.handleAlphaSliderChange=function(e){var t=this.hsva.value;t.a=e/100,this.hsva.next(t),this.handleValueChange(p.getColorFromHSV(this.hsva.value,this.format,this.opacity)),this.alphaSliderTouched=!0},e.prototype.handleInputsValueChange=function(e){var t=p.parseColor(e,this.format,this.opacity);this.value!==t&&(this.handleValueChange(t),this.updateUI())},e.prototype.writeValue=function(e){this.value=e,h.isPresent(this.gradientWrapper)&&this.updateUI()},e.prototype.registerOnChange=function(e){this.notifyNgChanged=e},e.prototype.registerOnTouched=function(e){this.notifyNgTouched=e},e.prototype.setDisabledState=function(e){this.cdr.markForCheck(),this.disabled=e},Object.defineProperty(e.prototype,"colorGradientHandleTitle",{get:function(){return this.localizationService.get("colorGradientHandle")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"colorGradientHandleAriaLabel",{get:function(){var e=p.parseColor(this.value,this.format,this.opacity);return""+(this.value?e:this.localizationService.get("colorGradientHandle"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hueSliderTitle",{get:function(){return this.localizationService.get("hueSliderHandle")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"opacitySliderTitle",{get:function(){return this.localizationService.get("opacitySliderHandle")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"clearButtonTitle",{get:function(){return this.localizationService.get("clearButton")},enumerable:!0,configurable:!0}),e.prototype.isEmpty=function(){return!1},e.prototype.moveDragHandle=function(e,t){var n=this.gradientRect,r=n.width,o=n.height,a=h.fitIntoBounds(t,0,o),s=h.fitIntoBounds(e,0,r);this.setDragHandleElementPosition(a,s);var u=this.hsva.value;u.s=s/r,u.v=1-a/o,this.hsva.next(u),this.updateValues.next(p.getColorFromHSV(this.hsva.value,this.format,this.opacity)),this.setAlphaSliderBackground(p.getColorFromHSV(i.__assign({},this.hsva.value,{a:1}),this.format,this.opacity))},e.prototype.handleValueChange=function(e){this.value!==e&&(this.value=e,this.valueChange.emit(e),this.notifyNgChanged(e),this.setHostElementAriaLabel())},e.prototype.setDragHandleElementPosition=function(e,t){var n=this.gradientDragHandle.nativeElement;this.renderer.setStyle(n,"top",e+"px"),this.renderer.setStyle(n,"left",t+"px")},e.prototype.setAlphaSliderBackground=function(e){if(h.isPresent(this.alphaSlider)){var t=this.alphaSlider.track.nativeElement;this.renderer.setStyle(t,"background","linear-gradient(to top, transparent, "+e+")")}},e.prototype.setHostElementAriaLabel=function(){var e=p.parseColor(this.value,this.format,this.opacity);this.renderer.setAttribute(this.host.nativeElement,"aria-label",""+(this.value?e:this.localizationService.get("colorGradientNoColor")))},e.prototype.setBackgroundColor=function(e){this.renderer.setStyle(this.hsvRectangle.nativeElement,"background",e)},e.prototype.updateUI=function(){if(c.isDocumentAvailable()){if(this.hueSliderTouched||this.alphaSliderTouched)return this.hueSliderTouched=!1,void(this.alphaSliderTouched=!1);this.hsva.next(this.value?p.getHSV(this.value):{h:0,s:0,v:1,a:1});var e=this.gradientRect,t=(1-this.hsva.value.v)*e.height,n=this.hsva.value.s*e.width;this.setDragHandleElementPosition(t,n),this.backgroundColor=p.getColorFromHue(this.hsva.value.h),this.setBackgroundColor(this.backgroundColor),this.setAlphaSliderBackground(this.backgroundColor),this.setHostElementAriaLabel()}},e.prototype.addEventListeners=function(){var e=this;this.ngZone.runOutsideAngular((function(){var t=e.renderer.listen(e.host.nativeElement,"focusout",(function(t){!d.containsFocus(e.host.nativeElement,t.relatedTarget)&&d.isUntouched(e.host)&&e.ngZone.run((function(){return e.notifyNgTouched()}))})),n=e.renderer.listen(e.gradientDragHandle.nativeElement,"keydown",(function(t){e.onKeyboardAction(t)})),i=e.renderer.listen(e.gradientDragHandle.nativeElement,"keyup",(function(){e.renderer.removeClass(e.gradientWrapper.nativeElement,"k-dragging"),e.readonly||e.disabled||e.ngZone.run((function(){return e.handleValueChange(p.getColorFromHSV(e.hsva.value,e.format,e.opacity))}))})),r=e.renderer.listen(e.gradientDragHandle.nativeElement,"focusin",(function(){e.renderer.addClass(e.gradientDragHandle.nativeElement,"k-state-focus")})),o=e.renderer.listen(e.gradientDragHandle.nativeElement,"focusout",(function(){e.renderer.removeClass(e.gradientDragHandle.nativeElement,"k-state-focus")}));e.listeners.push(t,n,i,r,o)}))},e.prototype.subscribeChanges=function(){var e=this;this.changeRequestsSubscription=this.updateValues.pipe(s.throttleTime(this.delay)).subscribe((function(t){e.handleValueChange(t)}))},e.prototype.unsubscribeChanges=function(){this.changeRequestsSubscription&&this.changeRequestsSubscription.unsubscribe()},i.__decorate([r.HostBinding("class.k-colorgradient"),i.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),i.__decorate([r.HostBinding("attr.aria-readonly"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"readonlyAttribute",null),i.__decorate([r.HostBinding("class.k-state-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"disabledClass",null),i.__decorate([r.HostBinding("attr.id"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],e.prototype,"gradientId",null),i.__decorate([r.HostBinding("attr.dir"),i.__metadata("design:type",String)],e.prototype,"direction",void 0),i.__decorate([r.HostBinding("attr.tabindex"),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[])],e.prototype,"hostTabindex",null),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"id",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"opacity",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"readonly",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"clearButton",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"delay",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"value",null),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"contrastTool",null),i.__decorate([r.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],e.prototype,"tabindex",null),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"format",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"valueChange",void 0),i.__decorate([r.ViewChild("gradientDragHandle",{read:r.ElementRef,static:!1}),i.__metadata("design:type",r.ElementRef)],e.prototype,"gradientDragHandle",void 0),i.__decorate([r.ViewChild("inputs",{static:!1}),i.__metadata("design:type",v.ColorInputComponent)],e.prototype,"inputs",void 0),i.__decorate([r.ViewChild("alphaSlider",{static:!1}),i.__metadata("design:type",f.SliderComponent)],e.prototype,"alphaSlider",void 0),i.__decorate([r.ViewChild("gradientWrapper",{static:!1}),i.__metadata("design:type",r.ElementRef)],e.prototype,"gradientWrapper",void 0),i.__decorate([r.ViewChild("hsvRectangle",{static:!1}),i.__metadata("design:type",r.ElementRef)],e.prototype,"hsvRectangle",void 0),e=t=i.__decorate([r.Component({exportAs:"kendoColorGradient",selector:"kendo-colorgradient",providers:[{multi:!0,provide:o.NG_VALUE_ACCESSOR,useExisting:r.forwardRef((function(){return t}))},{provide:c.KendoInput,useExisting:r.forwardRef((function(){return t}))},m.ColorGradientLocalizationService,{provide:u.LocalizationService,useExisting:m.ColorGradientLocalizationService},{provide:u.L10N_PREFIX,useValue:"kendo.colorgradient"}],template:'\n <ng-container kendoColorGradientLocalizedMessages\n i18n-colorGradientNoColor="kendo.colorgradient.colorGradientNoColor|The aria-label applied to the ColorGradient component when the value is empty."\n colorGradientNoColor="Colorgradient no color chosen"\n i18n-colorGradientHandle="kendo.colorgradient.colorGradientHandle|The title for the gradient color drag handle chooser."\n colorGradientHandle="Choose color"\n i18n-clearButton="kendo.colorgradient.clearButton|The title for the clear button."\n clearButton="Clear value"\n i18n-hueSliderHandle="kendo.colorgradient.hueSliderHandle|The title for the hue slider handle."\n hueSliderHandle="Set hue"\n i18n-opacitySliderHandle="kendo.colorgradient.opacitySliderHandle|The title for the opacity slider handle."\n opacitySliderHandle="Set opacity"\n i18n-passContrast="kendo.colorgradient.passContrast|The pass message for the contrast tool."\n passContrast="Pass"\n i18n-failContrast="kendo.colorgradient.failContrast|The fail message for the contrast tool."\n failContrast="Fail"\n i18n-contrastRatio="kendo.colorgradient.contrastRatio|The contrast ratio message for the contrast tool."\n contrastRatio="Contrast ratio"\n i18n-formatButton="kendo.colorgradient.formatButton|The message for the input format toggle button."\n formatButton="Change color format">\n </ng-container>\n <div class="k-colorgradient-canvas k-hstack">\n <div class="k-hsv-rectangle" #hsvRectangle>\n <div\n #gradientWrapper\n kendoDraggable\n class="k-hsv-gradient"\n (click)="changePosition($event)"\n (kendoPress)="handleDragPress($event)"\n (kendoDrag)="onHandleDrag($event)"\n (kendoRelease)="onHandleRelease()">\n <div\n #gradientDragHandle\n class="k-hsv-draghandle k-draghandle"\n tabindex="0"\n [attr.title]="colorGradientHandleTitle"\n [attr.aria-label]="colorGradientHandleAriaLabel"\n >\n </div>\n </div>\n <svg kendoColorContrastSvg\n *ngIf="contrastToolVisible && gradientWrapper"\n class="k-color-contrast-svg"\n xmlns="http://www.w3.org/2000/svg"\n [wrapper]="gradientWrapper ? gradientWrapper : undefined"\n [hsva]="hsva"\n [backgroundColor]="contrastTool">\n </svg>\n </div>\n <div class="k-hsv-controls k-hstack {{ clearButton ? \'k-sliders-wrap-clearable\' : \'\' }}">\n <span class="k-clear-color k-button k-button-md k-button-flat k-button-flat-base k-button-icon"\n *ngIf="clearButton"\n (click)="reset()"\n (keydown.enter)="reset()"\n (keydown.space)="reset()"\n [attr.aria-label]="clearButtonTitle"\n [attr.title]="clearButtonTitle"\n tabindex="0">\n <span class="k-icon k-i-reset-color"></span>\n </span>\n <kendo-slider\n [ngClass]="{\'k-align-self-end\': clearButton}"\n class="k-hue-slider k-colorgradient-slider"\n [dragHandleTitle]="hueSliderTitle"\n [disabled]="disabled"\n [readonly]="readonly"\n [showButtons]="false"\n [tickPlacement]="\'none\'"\n [vertical]="true"\n [min]="0"\n [max]="360"\n [value]="hsva.value.h"\n [smallStep]="5"\n [largeStep]="10"\n (valueChange)="handleHueSliderChange($event)"\n >\n </kendo-slider>\n <kendo-slider\n *ngIf="opacity"\n #alphaSlider\n [ngClass]="{\'k-align-self-end\': clearButton}"\n class="k-alpha-slider k-colorgradient-slider"\n [dragHandleTitle]="opacitySliderTitle"\n [disabled]="disabled"\n [readonly]="readonly"\n [showButtons]="false"\n [tickPlacement]="\'none\'"\n [vertical]="true"\n [min]="0"\n [max]="100"\n [smallStep]="1"\n [largeStep]="10"\n [value]="alphaSliderValue"\n (valueChange)="handleAlphaSliderChange($event)"\n >\n </kendo-slider>\n </div>\n </div>\n <kendo-colorinput #inputs\n [opacity]="opacity"\n [formatView]="format"\n [value]="value"\n [disabled]="disabled"\n [readonly]="readonly"\n (valueChange)="handleInputsValueChange($event)"\n >\n </kendo-colorinput>\n <div class="k-colorgradient-color-contrast k-vbox"\n *ngIf="contrastToolVisible"\n kendoContrastTool\n [value]="value"\n [ratio]="contrastTool">\n </div>\n ',styles:["\n .k-clear-color {\n position: absolute;\n top: 0;\n left: 50%;\n transform: translateX(-50%);\n }\n .k-colorgradient-slider.k-align-self-end {\n height: 140px;\n }\n\n .k-color-contrast-svg {\n position: absolute;\n overflow: visible;\n pointer-events: none;\n left: 0px;\n top: 0px;\n }\n "]}),i.__metadata("design:paramtypes",[r.ElementRef,r.NgZone,r.Renderer2,r.ChangeDetectorRef,u.LocalizationService])],e)}();t.ColorGradientComponent=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(5),a=n(3),s=n(2),u=n(8),c=n(12),l=n(108),d=n(9),p=n(26),h=n(13),f=n(4),m=n(109),v=0,g=function(){function e(e,t,n,i,o,s){var c=this;this.host=e,this.service=t,this.cdr=n,this.renderer=i,this.localizationService=o,this.ngZone=s,this.id="k-colorpalette-"+v++,this.format="hex",this.disabled=!1,this.readonly=!1,this.tileSize={width:24,height:24},this.selectionChange=new r.EventEmitter,this.valueChange=new r.EventEmitter,this.cellSelection=new r.EventEmitter,this.hostClasses=!0,this.uniqueId=a.guid(),this._tabindex=0,this.notifyNgTouched=function(){},this.notifyNgChanged=function(){},u.validatePackage(d.packageMetadata),this.dynamicRTLSubscription=o.changes.subscribe((function(e){var t=e.rtl;c.direction=t?"rtl":"ltr"}))}var t;return t=e,Object.defineProperty(e.prototype,"paletteId",{get:function(){return this.id},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=h.parseColor(e,this.format)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"columns",{get:function(){return this._columns},set:function(e){this._columns=e>1?e:1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"palette",{get:function(){return this._palette},set:function(e){var t=this;f.isPresent(e)||(e="office"),"string"==typeof e&&f.isPresent(p.PALETTEPRESETS[e])&&(this.columns=this.columns||p.PALETTEPRESETS[e].columns,e=p.PALETTEPRESETS[e].colors);var n="string"==typeof e?e.split(","):e;this._palette=n.map((function(e){return h.parseColor(e,t.format,!1,!1)}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabindex",{get:function(){return this.disabled?void 0:this._tabindex},set:function(e){var t=Number(e);this._tabindex=isNaN(t)?0:t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tileLayout",{get:function(){return"number"!=typeof this.tileSize?this.tileSize:{width:this.tileSize,height:this.tileSize}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"colorRows",{get:function(){return this.service.colorRows},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostTabindex",{get:function(){return this.tabindex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readonlyAttribute",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){if(0===this.colorRows.length){var e="name"!==this.format?"office":"accessible";this.palette=this.palette||e,this.setRows()}},e.prototype.ngAfterViewInit=function(){var e=this;this.setHostElementAriaLabel(),this.value&&this.ngZone.onStable.pipe(c.take(1)).subscribe((function(){e.selectCell(e.value)}))},e.prototype.ngOnDestroy=function(){this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe()},e.prototype.ngOnChanges=function(e){(e.palette||e.columns)&&this.setRows(),(e.palette||e.value||e.columns)&&(this.selectCell(this.value),this.setHostElementAriaLabel())},e.prototype.handleKeydown=function(e){var t="rtl"===this.direction;switch(e.keyCode){case a.Keys.ArrowDown:this.handleCellNavigation(0,1);break;case a.Keys.ArrowUp:this.handleCellNavigation(0,-1);break;case a.Keys.ArrowRight:this.handleCellNavigation(t?-1:1,0);break;case a.Keys.ArrowLeft:this.handleCellNavigation(t?1:-1,0);break;case a.Keys.Enter:this.handleEnter();break;default:return}e.preventDefault()},e.prototype.handleHostBlur=function(){this.notifyNgTouched(),this.handleCellFocusOnBlur()},e.prototype.handleCellSelection=function(e,t){if(!this.readonly){this.selectedCell=t,this.focusedCell=this.selectedCell,this.focusInComponent=!0;var n=h.parseColor(e,this.format,!1,!1);this.cellSelection.emit(n),this.handleValueChange(n),this.selection!==n&&(this.selection=n,this.selectionChange.emit(n)),t&&(this.activeCellId="k-"+this.selectedCell.row+"-"+this.selectedCell.col+"-"+this.uniqueId)}},e.prototype.writeValue=function(e){this.value=e,this.selectCell(e)},e.prototype.registerOnChange=function(e){this.notifyNgChanged=e},e.prototype.registerOnTouched=function(e){this.notifyNgTouched=e},e.prototype.setDisabledState=function(e){this.cdr.markForCheck(),this.disabled=e},e.prototype.isEmpty=function(){return!1},e.prototype.reset=function(){this.focusedCell=null,f.isPresent(this.value)&&this.handleValueChange(void 0),this.selectedCell=void 0},e.prototype.handleValueChange=function(e){this.value!==e&&(this.value=e,this.valueChange.emit(e),this.notifyNgChanged(e),this.setHostElementAriaLabel())},e.prototype.handleCellFocusOnBlur=function(){this.focusInComponent=!1,this.focusedCell=this.selectedCell},e.prototype.selectCell=function(e){this.selectedCell=this.service.getCellCoordsFor(e),this.focusedCell=this.selectedCell},e.prototype.setRows=function(){f.isPresent(this.palette)&&(this.columns=this.columns||10,this.service.setColorMatrix(this.palette,this.columns))},e.prototype.handleCellNavigation=function(e,t){this.readonly||(this.focusedCell=this.service.getNextCell(this.focusedCell,e,t),this.focusInComponent=!0)},e.prototype.setHostElementAriaLabel=function(){var e=h.parseColor(this.value,this.format);this.renderer.setAttribute(this.host.nativeElement,"aria-label",""+(this.value?e:this.localizationService.get("colorPaletteNoColor")))},e.prototype.handleEnter=function(){if(f.isPresent(this.focusedCell)){var e=this.service.getColorAt(this.focusedCell);this.handleCellSelection(e,this.focusedCell)}},i.__decorate([r.HostBinding("attr.dir"),i.__metadata("design:type",String)],e.prototype,"direction",void 0),i.__decorate([r.HostBinding("attr.id"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],e.prototype,"paletteId",null),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"id",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"format",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"value",null),i.__decorate([r.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],e.prototype,"columns",null),i.__decorate([r.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"palette",null),i.__decorate([r.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],e.prototype,"tabindex",null),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"readonly",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"tileSize",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"selectionChange",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"valueChange",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"cellSelection",void 0),i.__decorate([r.HostBinding("attr.tabindex"),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[])],e.prototype,"hostTabindex",null),i.__decorate([r.HostBinding("class.k-colorpalette"),i.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),i.__decorate([r.HostBinding("attr.aria-disabled"),r.HostBinding("class.k-state-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"disabledClass",null),i.__decorate([r.HostBinding("attr.aria-readonly"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"readonlyAttribute",null),i.__decorate([r.HostListener("keydown",["$event"]),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Object]),i.__metadata("design:returntype",void 0)],e.prototype,"handleKeydown",null),i.__decorate([r.HostListener("blur"),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[]),i.__metadata("design:returntype",void 0)],e.prototype,"handleHostBlur",null),e=t=i.__decorate([r.Component({exportAs:"kendoColorPalette",selector:"kendo-colorpalette",providers:[{multi:!0,provide:o.NG_VALUE_ACCESSOR,useExisting:r.forwardRef((function(){return t}))},{provide:a.KendoInput,useExisting:r.forwardRef((function(){return t}))},m.ColorPaletteService,l.ColorPaletteLocalizationService,{provide:s.LocalizationService,useExisting:l.ColorPaletteLocalizationService},{provide:s.L10N_PREFIX,useValue:"kendo.colorpalette"}],template:'\n <ng-container kendoColorPaletteLocalizedMessages\n i18n-colorPaletteNoColor="kendo.colorpalette.colorPaletteNoColor|The aria-label applied to the ColorPalette component when the value is empty."\n colorPaletteNoColor="Colorpalette no color chosen">\n </ng-container>\n <div role="listbox" class="k-colorpalette-table-wrap"\n [attr.aria-activedescendant]="activeCellId">\n <table class="k-colorpalette-table k-palette">\n <tbody>\n <tr *ngFor="let row of colorRows; let rowIndex = index">\n <td *ngFor="let color of row; let colIndex = index"\n role="option"\n [class.k-state-selected]="selectedCell?.row === rowIndex && selectedCell?.col === colIndex"\n [class.k-state-focus]="focusInComponent && focusedCell?.row === rowIndex && focusedCell?.col === colIndex"\n [attr.aria-selected]="selectedCell?.row === rowIndex && selectedCell?.col === colIndex"\n [attr.aria-label]="color"\n class="k-colorpalette-tile"\n [id]="\'k-\' + rowIndex + \'-\' + colIndex + \'-\' + uniqueId"\n [attr.value]="color"\n (click)="handleCellSelection(color, { row: rowIndex, col: colIndex })"\n [ngStyle]="{\n backgroundColor: color,\n width: tileLayout.width + \'px\',\n height: tileLayout.height + \'px\',\n minWidth: tileLayout.width + \'px\'\n }">\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n '}),i.__metadata("design:paramtypes",[r.ElementRef,m.ColorPaletteService,r.ChangeDetectorRef,r.Renderer2,s.LocalizationService,r.NgZone])],e)}();t.ColorPaletteComponent=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=0,a=function(){function e(){this.hostClass=!0,this.align="start",this.id="kendo-error-"+o++,this.roleAttribute="alert"}return Object.defineProperty(e.prototype,"startClass",{get:function(){return"start"===this.align},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endClass",{get:function(){return"end"===this.align},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"idAttribute",{get:function(){return this.id},enumerable:!0,configurable:!0}),i.__decorate([r.HostBinding("class.k-form-error"),i.__metadata("design:type",Boolean)],e.prototype,"hostClass",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"align",void 0),i.__decorate([r.HostBinding("attr.role"),i.__metadata("design:type",String)],e.prototype,"roleAttribute",void 0),i.__decorate([r.HostBinding("class.k-text-start"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"startClass",null),i.__decorate([r.HostBinding("class.k-text-end"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"endClass",null),i.__decorate([r.HostBinding("attr.id"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],e.prototype,"idAttribute",null),e=i.__decorate([r.Component({selector:"kendo-formerror",template:"\n <ng-content></ng-content>\n "})],e)}();t.ErrorComponent=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=0,a=function(){function e(){this.align="start",this.id="kendo-hint-"+o++,this.hostClass=!0}return Object.defineProperty(e.prototype,"startClass",{get:function(){return"start"===this.align},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endClass",{get:function(){return"end"===this.align},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"idAttribute",{get:function(){return this.id},enumerable:!0,configurable:!0}),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"align",void 0),i.__decorate([r.HostBinding("class.k-form-hint"),i.__metadata("design:type",Boolean)],e.prototype,"hostClass",void 0),i.__decorate([r.HostBinding("class.k-text-start"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"startClass",null),i.__decorate([r.HostBinding("class.k-text-end"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"endClass",null),i.__decorate([r.HostBinding("attr.id"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],e.prototype,"idAttribute",null),e=i.__decorate([r.Component({selector:"kendo-formhint",template:"\n <ng-content></ng-content>\n "})],e)}();t.HintComponent=a},function(e,t,n){"use strict";n.r(t),n.d(t,"detectMobileOS",(function(){return c})),n.d(t,"detectDesktopBrowser",(function(){return l})),n.d(t,"browser",(function(){return p})),n.d(t,"mobileOS",(function(){return h})),n.d(t,"touch",(function(){return f})),n.d(t,"msPointers",(function(){return m})),n.d(t,"pointers",(function(){return v})),n.d(t,"touchEnabled",(function(){return g})),n.d(t,"getter",(function(){return C})),n.d(t,"setter",(function(){return x}));var i=function(){return"undefined"!=typeof window},r={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/},o={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/},a={edge:/(edge)[ \/]([\w.]+)/i,webkit:/(chrome)[ \/]([\w.]+)/i,safari:/(webkit)[ \/]([\w.]+)/i,opera:/(opera)(?:.*version|)[ \/]([\w.]+)/i,msie:/(msie\s|trident.*? rv:)([\w.]+)/i,mozilla:/(mozilla)(?:.*? rv:([\w.]+)|)/i},s={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},u=function(e,t,n){for(var i in t)if(t.hasOwnProperty(i)&&t[i].test(e))return i;return void 0!==n?n:e},c=function(e){var t,n=[];for(var i in r)if(r.hasOwnProperty(i)){if(!(n=e.match(r[i])))continue;if("windows"===i&&"plugins"in window.navigator)return null;var a={};return a.device=i,a.browser=u(e,s,"default"),a.name=u(i,o),a[a.name]=!0,a.majorVersion=n[2],a.minorVersion=n[3]?n[3].replace("_","."):".0",t=a.minorVersion.replace(".","").substr(0,2),a.flatVersion=a.majorVersion+t+new Array(3-(t.length<3?t.length:2)).join("0"),a.cordova=void 0!==typeof window.PhoneGap||void 0!==typeof window.cordova,a.appMode=window.navigator.standalone||/file|local|wmapp/.test(window.location.protocol)||a.cordova,a}return null},l=function(e){var t=null,n=[];for(var i in a)if(a.hasOwnProperty(i)&&(n=e.match(a[i]))){(t={})[i]=!0,t[n[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,t.version=parseInt(document.documentMode||n[2],10);break}return t},d=i()&&window.navigator?window.navigator.userAgent:null,p=d?l(d):null,h=d?c(d):null,f=i()&&"ontouchstart"in window,m=p&&!p.chrome&&window.MSPointerEvent,v=p&&!p.chrome&&window.PointerEvent,g=h&&(f||m||v),y=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g;function _(e){var t=[];return e.replace(y,(function(e,n,i,r){t.push(void 0!==n?n:i||r)})),t}var b={};function C(e){if(b[e])return b[e];var t=_(e);return b[e]=function(e){for(var n=e,i=0;i<t.length&&n;i++)n=n[t[i]];return n},b[e]}b[void 0]=function(e){return e};var k={undefined:function(e){return e}},w=function(e,t){return t&&t.arrays&&!isNaN(Number(e))?[]:{}};function x(e){if(k[e])return k[e];var t=_(e);return k[e]=function(e,n,i){for(var r=e,o=t.length-1,a=0;a<o&&r;a++)r=r[t[a]]=r[t[a]]||w(t[a+1],i);r[t[o]]=n},k[e]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(10),r=n(17),o=function(){function e(e,t,n,i){this.props=e,this.wrapper=t,this.track=n,this.renderer=i,this.props=e,this.wrapper=t,this.track=n,this.tickSizes=this.getTickSizes()}return e.prototype.resizeTrack=function(){var e=this.props.vertical?"height":"width",t=this.props.vertical?"width":"height",n=this.trackWidth();this.track.parentElement.style[e]=n+"px",this.track.parentElement.style[t]=""},e.prototype.resizeTicks=function(e,t){var n=this,i=this.props.vertical?"height":"width";t.slice().map((function(e,t){return e.style[i]=n.tickSizes[t]+"px"})),this.props.vertical&&this.adjustPadding(e)},e.prototype.resizeWrapper=function(){var e=this.props.vertical?"height":"width",t=i.calculateFixedTrackSize(this.props),n=this.wrapper.parentElement;t&&(n.style[e]="auto")},e.prototype.trackWidth=function(){return this.props.fixedTickWidth?i.calculateFixedTrackSize(this.props):this.elementSize(this.track.parentElement)},e.prototype.getTickSizes=function(){for(var e=this.props,t=e.min,n=e.max,o=e.smallStep,a=i.calculateTicksCount(t,n,o),s=this.trackWidth(),u=s/r.subtract(n,t),c=[],l=0,d=0,p=0;p<a;p++){d=+(d+=0===p||p===a-1?o/2*u:o*u).toFixed(2)-.01;var h=Math.round(d-l);c.push(h),l+=h}return l>=s&&(c[c.length-1]-=1),c},e.prototype.adjustPadding=function(e){var t=this.tickSizes.reduce((function(e,t){return e+t}),0),n=this.trackWidth()-t;if(0!==n){var i=n+this.elementOffset(this.track);e.style.paddingTop=i+"px"}},e.prototype.elementOffset=function(e){var t=this.props.vertical,n=getComputedStyle(e);return parseInt(t?n.bottom:n.left,10)},e.prototype.elementSize=function(e){return this.props.vertical?e.clientHeight:e.clientWidth},e}();t.SliderModelBase=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(10),o=n(1),a=n(7),s=n(5),u=n(3),c=n(8),l=n(9),d=n(15),p=function(){function e(e,t,n,i,s,u){var d=this;this.localizationService=e,this.injector=t,this.renderer=n,this.ngZone=i,this.changeDetector=s,this.hostElement=u,this.title=r.identity,this.tickPlacement="both",this.vertical=!1,this.min=0,this.max=10,this.smallStep=1,this.largeStep=null,this.disabled=!1,this.readonly=!1,this.tabindex=0,this.onFocus=new o.EventEmitter,this.onBlur=new o.EventEmitter,this.valueChange=new o.EventEmitter,this.sliderClass=!0,this.widgetClass=!0,this.subscriptions=new a.Subscription,this.ifEnabled=function(e,t){d.isDisabled||e.call(d,t)},c.validatePackage(l.packageMetadata),this.direction=e.rtl?"rtl":"ltr"}return Object.defineProperty(e.prototype,"horizontalClass",{get:function(){return!this.vertical},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"verticalClass",{get:function(){return this.vertical},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),e.prototype.setDisabledState=function(e){this.changeDetector.markForCheck(),this.disabled=e},e.prototype.ngOnInit=function(){var e=this;this.subscriptions.add(this.localizationService.changes.subscribe((function(t){var n=t.rtl;e.direction=n?"rtl":"ltr",e.sizeComponent()}))),this.hostElement&&this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.control=this.injector.get(s.NgControl,null)},Object.defineProperty(e.prototype,"isDisabled",{get:function(){return this.disabled||this.readonly},enumerable:!0,configurable:!0}),e.prototype.isEmpty=function(){return!1},Object.defineProperty(e.prototype,"reverse",{get:function(){return this.localizationService.rtl&&!this.vertical},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"keyBinding",{get:function(){var e,t=this.reverse;return(e={})[u.Keys.ArrowLeft]=t?r.increment:r.decrement,e[u.Keys.ArrowRight]=t?r.decrement:r.increment,e[u.Keys.ArrowDown]=r.decrement,e[u.Keys.ArrowUp]=r.increment,e[u.Keys.PageUp]=r.incrementLarge,e[u.Keys.PageDown]=r.decrementLarge,e[u.Keys.Home]=function(e){return e.min},e[u.Keys.End]=function(e){return e.max},e},enumerable:!0,configurable:!0}),e.prototype.resetStyles=function(e){var t=this;e.forEach((function(e){e&&(t.vertical?(t.renderer.removeStyle(e,"width"),t.renderer.removeStyle(e,"left"),t.renderer.removeStyle(e,"right")):(t.renderer.removeStyle(e,"height"),t.renderer.removeStyle(e,"bottom")),t.renderer.removeStyle(e,"padding-top"))}))},i.__decorate([o.Input(),i.__metadata("design:type",Function)],e.prototype,"title",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"tickPlacement",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"vertical",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],e.prototype,"min",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],e.prototype,"max",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],e.prototype,"smallStep",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],e.prototype,"largeStep",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],e.prototype,"fixedTickWidth",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"readonly",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],e.prototype,"tabindex",void 0),i.__decorate([o.Output("focus"),i.__metadata("design:type",o.EventEmitter)],e.prototype,"onFocus",void 0),i.__decorate([o.Output("blur"),i.__metadata("design:type",o.EventEmitter)],e.prototype,"onBlur",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),i.__decorate([o.HostBinding("attr.dir"),i.__metadata("design:type",String)],e.prototype,"direction",void 0),i.__decorate([o.HostBinding("class.k-slider-horizontal"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"horizontalClass",null),i.__decorate([o.HostBinding("class.k-slider-vertical"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"verticalClass",null),i.__decorate([o.HostBinding("class.k-slider"),i.__metadata("design:type",Boolean)],e.prototype,"sliderClass",void 0),i.__decorate([o.HostBinding("class.k-widget"),i.__metadata("design:type",Boolean)],e.prototype,"widgetClass",void 0),i.__decorate([o.HostBinding("class.k-state-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"disabledClass",null),i.__decorate([o.ViewChild("wrap",{static:!0}),i.__metadata("design:type",o.ElementRef)],e.prototype,"wrapper",void 0),i.__decorate([o.ViewChild("track",{static:!0}),i.__metadata("design:type",o.ElementRef)],e.prototype,"track",void 0),i.__decorate([o.ViewChild("sliderSelection",{static:!0}),i.__metadata("design:type",o.ElementRef)],e.prototype,"sliderSelection",void 0),i.__decorate([o.ViewChild("ticks",{read:o.ElementRef,static:!1}),i.__metadata("design:type",o.ElementRef)],e.prototype,"ticksContainer",void 0),i.__decorate([o.ViewChild("ticks",{static:!1}),i.__metadata("design:type",Object)],e.prototype,"ticks",void 0),i.__decorate([o.ContentChild(d.LabelTemplateDirective,{static:!1}),i.__metadata("design:type",d.LabelTemplateDirective)],e.prototype,"labelTemplate",void 0),e}();t.SliderBase=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(5),a=n(12),s=n(10),u=n(83),c=n(2),l=n(10),d=n(11),p=n(3),h=n(4),f=n(34),m=function(e){function t(t,n,r,o,a,u){var c=e.call(this,t,n,r,o,a,u)||this;return c.localization=t,c.injector=n,c.renderer=r,c.ngZone=o,c.changeDetector=a,c.hostElement=u,c.startHandleId="k-start-handle-"+p.guid(),c.endHandleId="k-end-handle-"+p.guid(),c.focusableId=c.startHandleId,c.handleZIndex=0,c.activeHandle="startHandle",c.focusChangedProgrammatically=!1,c.onWrapClick=function(e){if(!c.isDisabled){c.value=c.value||[c.min,c.min];var t=l.eventValue(e,c.track.nativeElement,c.getProps()),n=void 0,i=n=c.value,r=i[0],o=i[1];t<=r?(n=[t,o],c.activeHandle="startHandle"):r<t&&t<o?t<(r+o)/2?(n=[t,o],c.activeHandle="startHandle"):(n=[r,t],c.activeHandle="endHandle"):t>=o&&(n=[r,t],c.activeHandle="endHandle");var a="startHandle"===c.activeHandle?c.draghandleStart:c.draghandleEnd;d.invokeElementMethod(a,"focus"),c.changeValue(n)}},c.onKeyDown=function(e){c.value=c.value||[c.min,c.min];var t=c.getProps(),n=t.max,r=t.min,o=c.keyBinding[e.keyCode];if(!c.isDisabled&&o){c.renderer.setStyle(e.target,"zIndex",++c.handleZIndex);var a=l.isStartHandle(e.target),u=o(i.__assign({},t,{value:a?c.value[0]:c.value[1]}));a?u>c.value[1]&&(c.value[1]=u):u<c.value[0]&&(c.value[0]=u);var d=s.trimValue(n,r,u),p=a?[d,c.value[1]]:[c.value[0],d];c.changeValue(p),e.preventDefault()}},c.ngChange=function(e){},c.ngTouched=function(){},c.handleBlur=function(){c.changeDetector.markForCheck(),c.focused=!1,(p.hasObservers(c.onBlur)||h.requiresZoneOnBlur(c.control))&&c.ngZone.run((function(){c.ngTouched(),c.focusChangedProgrammatically||c.onBlur.emit()}))},c}var n;return i.__extends(t,e),n=t,t.prototype.focus=function(){this.focusChangedProgrammatically=!0,d.invokeElementMethod(this.draghandleStart,"focus"),this.focusChangedProgrammatically=!1},t.prototype.blur=function(){this.focusChangedProgrammatically=!0;var e="startHandle"===this.activeHandle?this.draghandleStart:this.draghandleEnd;d.invokeElementMethod(e,"blur"),this.handleBlur(),this.focusChangedProgrammatically=!1},t.prototype.ngOnInit=function(){this.value||(this.value=[this.min,this.max]),e.prototype.ngOnInit.call(this)},t.prototype.ngOnChanges=function(e){var t=this;p.anyChanged(["value","fixedTickWidth","tickPlacement"],e,!0)&&(e.value&&e.value.currentValue&&s.validateValue(e.value.currentValue),this.ngZone.onStable.asObservable().pipe(a.take(1)).subscribe((function(){t.sizeComponent()})))},t.prototype.ngAfterViewInit=function(){var e=this;p.isDocumentAvailable()&&(this.sizeComponent(),this.ticks&&this.ticks.tickElements.changes.subscribe((function(){return e.sizeComponent()})),this.attachElementEventHandlers())},t.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},t.prototype.textFor=function(e){return this.localization.get(e)},Object.defineProperty(t.prototype,"valueText",{get:function(){return this.value?this.value[0]+" - "+this.value[1]:""},enumerable:!0,configurable:!0}),t.prototype.handleDragPress=function(e){e.originalEvent&&e.originalEvent.preventDefault();var t=e.originalEvent.target;this.draggedHandle=t,this.renderer.setStyle(t,"zIndex",++this.handleZIndex)},t.prototype.onHandleDrag=function(e){var t=this;this.value=this.value||[this.min,this.min];var n=e.originalEvent.target,i=this.draggedHandle.getBoundingClientRect();this.lastHandlePosition={x:i.left,y:i.top},this.dragging={value:!0,target:n};var r=e.pageX<this.lastHandlePosition.x,o=e.pageX>this.lastHandlePosition.x,a=e.pageY>this.lastHandlePosition.y,s=function(){return t.changeValue([l.eventValue(e,t.track.nativeElement,t.getProps()),t.value[1]])},u=function(){return t.changeValue([t.value[0],l.eventValue(e,t.track.nativeElement,t.getProps())])},c=function(){return t.changeValue([l.eventValue(e,t.track.nativeElement,t.getProps()),l.eventValue(e,t.track.nativeElement,t.getProps())])},d=l.isStartHandle(this.draggedHandle),p=this.vertical,h=!p,f=p&&a||(this.reverse?h&&o:h&&r);this.value[0]===this.value[1]?f?d?s():c():d?c():u():d?s():u()},t.prototype.onHandleRelease=function(e){this.dragging={value:!1,target:e.originalEvent.target},this.draggedHandle=void 0},t.prototype.writeValue=function(e){s.validateValue(e),this.value=e,this.sizeComponent()},t.prototype.registerOnChange=function(e){this.ngChange=e},t.prototype.registerOnTouched=function(e){this.ngTouched=e},t.prototype.changeValue=function(e){var t=this;this.value&&s.isSameRange(this.value,e)||this.ngZone.run((function(){t.value=e,t.ngChange(e),t.value&&t.valueChange.emit(e),t.sizeComponent()}))},t.prototype.sizeComponent=function(){if(p.isDocumentAvailable()){var e=this.wrapper.nativeElement,t=this.track.nativeElement,n=this.sliderSelection.nativeElement,i=this.draghandleStart.nativeElement,r=this.draghandleEnd.nativeElement,o=this.ticks?this.ticksContainer.nativeElement:null;this.resetStyles([t,n,i,r,o,this.hostElement.nativeElement]);var a=this.getProps(),s=new u.RangeSliderModel(a,e,t,this.renderer);s.resizeTrack(),this.ticks&&s.resizeTicks(this.ticksContainer.nativeElement,this.ticks.tickElements.map((function(e){return e.nativeElement}))),s.positionHandle(i),s.positionHandle(r),s.positionSelection(i,n),this.fixedTickWidth&&s.resizeWrapper()}},Object.defineProperty(t.prototype,"isDisabled",{get:function(){return this.disabled||this.readonly},enumerable:!0,configurable:!0}),t.prototype.isEmpty=function(){return!1},Object.defineProperty(t.prototype,"focused",{set:function(e){this.isFocused!==e&&this.hostElement&&(this.isFocused=e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dragging",{set:function(e){if(this.isDragged!==e.value&&this.sliderSelection&&this.draghandleStart&&this.draghandleEnd){var t=this.sliderSelection.nativeElement,n=e.target;e.value?(this.renderer.addClass(t,"k-pressed"),this.renderer.addClass(n,"k-pressed")):(this.renderer.removeClass(t,"k-pressed"),this.renderer.removeClass(n,"k-pressed")),this.isDragged=e.value}},enumerable:!0,configurable:!0}),t.prototype.getProps=function(){return{disabled:this.disabled,fixedTickWidth:this.fixedTickWidth,largeStep:this.largeStep,max:this.max,min:this.min,readonly:this.readonly,reverse:this.reverse,rtl:this.localizationService.rtl,smallStep:this.smallStep,value:s.trimValueRange(this.max,this.min,this.value),vertical:this.vertical,buttons:!1}},t.prototype.attachElementEventHandlers=function(){var e=this,t=this.hostElement.nativeElement,n=!1,i=!1;this.ngZone.runOutsideAngular((function(){e.subscriptions.add(e.renderer.listen(t,"focusin",(function(){e.isFocused||e.ngZone.run((function(){e.focusChangedProgrammatically||e.onFocus.emit(),e.focused=!0}))}))),e.subscriptions.add(e.renderer.listen(t,"focusout",(function(t){e.isFocused&&(n?(t.relatedTarget!==e.draghandleStart.nativeElement&&t.relatedTarget!==e.draghandleEnd.nativeElement&&e.handleBlur(),n=!1):i||e.handleBlur())}))),e.subscriptions.add(e.renderer.listen(t,"mouseenter",(function(){i=!0}))),e.subscriptions.add(e.renderer.listen(t,"mouseleave",(function(){i=!1}))),e.subscriptions.add(e.renderer.listen(t,"keydown",(function(e){n=e.keyCode===p.Keys.Tab})))}))},i.__decorate([r.Input(),i.__metadata("design:type",Array)],t.prototype,"value",void 0),i.__decorate([r.ViewChild("draghandleStart",{static:!0}),i.__metadata("design:type",r.ElementRef)],t.prototype,"draghandleStart",void 0),i.__decorate([r.ViewChild("draghandleEnd",{static:!0}),i.__metadata("design:type",r.ElementRef)],t.prototype,"draghandleEnd",void 0),t=n=i.__decorate([r.Component({exportAs:"kendoRangeSlider",providers:[c.LocalizationService,{provide:c.L10N_PREFIX,useValue:"kendo.rangeslider"},{multi:!0,provide:o.NG_VALUE_ACCESSOR,useExisting:r.forwardRef((function(){return n}))},{provide:p.KendoInput,useExisting:r.forwardRef((function(){return n}))}],selector:"kendo-rangeslider",template:'\n <ng-container kendoSliderLocalizedMessages\n i18n-dragHandleStart="kendo.rangeslider.dragHandleStart|The title of the **Start** drag handle of the Slider."\n dragHandleStart="Drag"\n i18n-dragHandleEnd="kendo.rangeslider.dragHandleEnd|The title of the **End** drag handle of the Slider."\n dragHandleEnd="Drag"\n >\n\n <div class="k-slider-wrap" #wrap\n [class.k-slider-topleft]="tickPlacement === \'before\'"\n [class.k-slider-bottomright]="tickPlacement === \'after\'"\n [kendoEventsOutsideAngular]="{ click: onWrapClick, keydown: onKeyDown }"\n >\n <div class="k-slider-track-wrap">\n <ul kendoSliderTicks\n #ticks\n *ngIf="tickPlacement !== \'none\'"\n [tickTitle]="title"\n [vertical]="vertical"\n [step]="smallStep"\n [largeStep]="largeStep"\n [min]="min"\n [max]="max"\n [labelTemplate]="labelTemplate?.templateRef"\n [attr.aria-hidden]="true"\n >\n </ul>\n <div #track class="k-slider-track">\n <div #sliderSelection class="k-slider-selection">\n </div>\n <a #draghandleStart\n role="slider"\n [id]="startHandleId"\n [attr.tabindex]="disabled ? undefined : tabindex"\n [attr.aria-valuemin]="min"\n [attr.aria-valuemax]="max"\n [attr.aria-valuenow]="value ? value[0] : null"\n [attr.aria-valuetext]="valueText"\n [attr.aria-disabled]="disabled ? true : undefined"\n [attr.aria-readonly]="readonly ? true : undefined"\n [attr.aria-orientation]="vertical ? \'vertical\' : \'horizontal\'"\n [style.touch-action]="isDisabled ? \'\' : \'none\'"\n class="k-draghandle"\n [title]="textFor(\'dragHandleStart\')"\n kendoDraggable\n (kendoPress)="ifEnabled(handleDragPress ,$event)"\n (kendoDrag)="ifEnabled(onHandleDrag ,$event)"\n (kendoRelease)="ifEnabled(onHandleRelease, $event)"\n ></a>\n <a #draghandleEnd\n role="slider"\n [id]="endHandleId"\n [attr.tabindex]="disabled ? undefined : tabindex"\n [attr.aria-valuemin]="min"\n [attr.aria-valuemax]="max"\n [attr.aria-valuenow]="value ? value[1] : null"\n [attr.aria-valuetext]="valueText"\n [attr.aria-disabled]="disabled ? true : undefined"\n [attr.aria-readonly]="readonly ? true : undefined"\n [attr.aria-orientation]="vertical ? \'vertical\' : \'horizontal\'"\n [style.touch-action]="isDisabled ? \'\' : \'none\'"\n class="k-draghandle"\n [title]="textFor(\'dragHandleEnd\')"\n kendoDraggable\n (kendoPress)="ifEnabled(handleDragPress ,$event)"\n (kendoDrag)="ifEnabled(onHandleDrag ,$event)"\n (kendoRelease)="ifEnabled(onHandleRelease, $event)"\n ></a>\n </div>\n </div>\n <kendo-resize-sensor (resize)="sizeComponent()"></kendo-resize-sensor>\n </div>\n '}),i.__metadata("design:paramtypes",[c.LocalizationService,r.Injector,r.Renderer2,r.NgZone,r.ChangeDetectorRef,r.ElementRef])],t)}(f.SliderBase);t.RangeSliderComponent=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(5),a=n(2),s=n(3),u=n(8),c=n(9),l=n(4),d=n(7),p=n(12),h=n(32),f=function(){function e(e,t,n,i,o,a){var p=this;this.renderer=e,this.hostElement=t,this.localizationService=n,this.injector=i,this.changeDetector=o,this.ngZone=a,this.focusableId="k-"+s.guid(),this.disabled=!1,this.readonly=!1,this.tabindex=0,this.onFocus=new r.EventEmitter,this.onBlur=new r.EventEmitter,this.valueChange=new r.EventEmitter,this.hostClasses=!0,this.initialized=!1,this.hostClickSubscription=new d.Subscription,this._checked=!1,this._size="medium",this._trackRounded="full",this._thumbRounded="full",this.ngChange=function(e){},this.ngTouched=function(){},this.handleFocus=function(){p.isFocused||(p.focused=!0,s.hasObservers(p.onFocus)&&p.ngZone.run((function(){p.onFocus.emit()})))},this.handleBlur=function(e){var t=e&&e.relatedTarget;p.hostElement.nativeElement.contains(t)||(p.changeDetector.markForCheck(),p.focused=!1,(s.hasObservers(p.onBlur)||l.requiresZoneOnBlur(p.control))&&p.ngZone.run((function(){p.ngTouched(),p.onBlur.emit()})))},u.validatePackage(c.packageMetadata),this.direction=n.rtl?"rtl":"ltr",this.keyDownHandler=this.keyDownHandler.bind(this),this.clickHandler=this.clickHandler.bind(this)}var t;return t=e,Object.defineProperty(e.prototype,"checked",{get:function(){return this._checked},set:function(e){this.setHostClasses(e),this._checked=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(e){this.handleClasses(e,"size"),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"thumbRounded",{get:function(){return this._thumbRounded},set:function(e){this.handleThumbClasses(e),this._thumbRounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"trackRounded",{get:function(){return this._trackRounded},set:function(e){this.handleTrackClasses(e),this._trackRounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ieClass",{get:function(){return h.browser&&h.browser.msie},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaDisabled",{get:function(){return!!this.disabled||void 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaReadonly",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onLabelMessage",{get:function(){return this.onLabel||this.localizationService.get("on")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"offLabelMessage",{get:function(){return this.offLabel||this.localizationService.get("off")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isEnabled",{get:function(){return!this.disabled&&!this.readonly},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;if(this.hostElement){var t=this.hostElement.nativeElement;this.renderer.removeAttribute(t,"tabindex")}this.localizationChangeSubscription=this.localizationService.changes.pipe(p.skip(1)).subscribe((function(t){var n=t.rtl;e.direction=n?"rtl":"ltr"})),this.control=this.injector.get(o.NgControl,null),this.ngZone.onStable.pipe(p.take(1)).subscribe((function(){return e.initialized=!0}))},e.prototype.ngAfterViewInit=function(){var e=this.hostElement.nativeElement;this.attachHostClickHandler(),this.checked||e.classList.contains("k-switch-off")||this.renderer.addClass(e,"k-switch-off"),this.handleClasses(this.size,"size"),this.handleTrackClasses(this.trackRounded),this.handleThumbClasses(this.thumbRounded)},e.prototype.ngOnDestroy=function(){this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe(),this.hostClickSubscription&&this.hostClickSubscription.unsubscribe()},e.prototype.focus=function(){this.track&&this.track.nativeElement.focus()},e.prototype.blur=function(){this.track&&this.track.nativeElement.blur()},e.prototype.setDisabledState=function(e){this.disabled=e,this.changeDetector.markForCheck()},e.prototype.writeValue=function(e){this.checked=null!==e&&e,this.changeDetector.markForCheck()},e.prototype.registerOnChange=function(e){this.ngChange=e},e.prototype.registerOnTouched=function(e){this.ngTouched=e},e.prototype.keyDownHandler=function(e){var t=e.keyCode;!this.isEnabled||t!==s.Keys.Space&&t!==s.Keys.Enter||(this.changeValue(!this.checked),e.preventDefault())},e.prototype.clickHandler=function(){this.isEnabled&&this.changeValue(!this.checked)},e.prototype.isEmpty=function(){return!1},e.prototype.changeValue=function(e){var t=this;this.checked!==e&&this.ngZone.run((function(){t.checked=e,t.ngChange(e),t.valueChange.emit(e),t.changeDetector.markForCheck()}))},Object.defineProperty(e.prototype,"focused",{set:function(e){if(this.isFocused!==e&&this.hostElement){var t=this.hostElement.nativeElement;e?this.renderer.addClass(t,"k-focus"):this.renderer.removeClass(t,"k-focus"),this.isFocused=e}},enumerable:!0,configurable:!0}),e.prototype.attachHostClickHandler=function(){var e=this;this.ngZone.runOutsideAngular((function(){e.hostClickSubscription.add(e.renderer.listen(e.hostElement.nativeElement,"click",e.clickHandler))}))},e.prototype.setHostClasses=function(e){var t=this.hostElement.nativeElement;e?(this.renderer.removeClass(t,"k-switch-off"),this.renderer.addClass(t,"k-switch-on")):(this.renderer.removeClass(t,"k-switch-on"),this.renderer.addClass(t,"k-switch-off"))},e.prototype.handleClasses=function(e,t){var n=this.hostElement.nativeElement,i=l.getStylingClasses("switch",t,this[t],e);i.toRemove&&this.renderer.removeClass(n,i.toRemove),i.toAdd&&this.renderer.addClass(n,i.toAdd)},e.prototype.handleTrackClasses=function(e){var t=this.hostElement.nativeElement,n=this.track.nativeElement,i=l.getStylingClasses("switch","rounded",this.trackRounded,e);i.toRemove&&(this.renderer.removeClass(t,i.toRemove),this.renderer.removeClass(n,i.toRemove)),i.toAdd&&(this.renderer.addClass(t,i.toAdd),this.renderer.addClass(n,i.toAdd))},e.prototype.handleThumbClasses=function(e){var t=this.thumb.nativeElement,n=l.getStylingClasses("switch","rounded",this.thumbRounded,e);n.toRemove&&this.renderer.removeClass(t,n.toRemove),n.toAdd&&this.renderer.addClass(t,n.toAdd)},i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"focusableId",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"onLabel",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"offLabel",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[Boolean])],e.prototype,"checked",null),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"readonly",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"tabindex",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"size",null),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"thumbRounded",null),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"trackRounded",null),i.__decorate([r.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],e.prototype,"tabIndex",null),i.__decorate([r.Output("focus"),i.__metadata("design:type",r.EventEmitter)],e.prototype,"onFocus",void 0),i.__decorate([r.Output("blur"),i.__metadata("design:type",r.EventEmitter)],e.prototype,"onBlur",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"valueChange",void 0),i.__decorate([r.HostBinding("attr.dir"),i.__metadata("design:type",String)],e.prototype,"direction",void 0),i.__decorate([r.HostBinding("class.k-ie"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"ieClass",null),i.__decorate([r.HostBinding("attr.aria-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"ariaDisabled",null),i.__decorate([r.HostBinding("attr.aria-readonly"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"ariaReadonly",null),i.__decorate([r.HostBinding("class.k-switch"),i.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),i.__decorate([r.HostBinding("class.k-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"disabledClass",null),i.__decorate([r.ViewChild("track",{static:!0}),i.__metadata("design:type",Object)],e.prototype,"track",void 0),i.__decorate([r.ViewChild("thumb",{static:!0}),i.__metadata("design:type",Object)],e.prototype,"thumb",void 0),e=t=i.__decorate([r.Component({exportAs:"kendoSwitch",providers:[a.LocalizationService,{provide:a.L10N_PREFIX,useValue:"kendo.switch"},{multi:!0,provide:o.NG_VALUE_ACCESSOR,useExisting:r.forwardRef((function(){return t}))},{provide:s.KendoInput,useExisting:r.forwardRef((function(){return t}))}],selector:"kendo-switch",template:'\n <ng-container kendoSwitchLocalizedMessages\n i18n-on="kendo.switch.on|The **On** label of the Switch."\n on="ON"\n i18n-off="kendo.switch.off|The **Off** label of the Switch."\n off="OFF"\n >\n\n <span\n #track\n class="k-switch-track"\n [id]="focusableId"\n role="switch"\n [style.transitionDuration]="initialized ? \'200ms\' : \'0ms\'"\n [attr.aria-checked]="checked"\n [attr.tabindex]="(disabled ? undefined : tabIndex)"\n [kendoEventsOutsideAngular]="{ keydown: keyDownHandler, focus: handleFocus, blur: handleBlur }"\n >\n <span class="k-switch-label-on" [attr.aria-hidden]="true" >{{onLabelMessage}}</span>\n <span class="k-switch-label-off" [attr.aria-hidden]="true">{{offLabelMessage}}</span>\n </span>\n <span\n class="k-switch-thumb-wrap"\n tabindex="-1"\n [style.transitionDuration]="initialized ? \'200ms\' : \'0ms\'" [kendoEventsOutsideAngular]="{\n keydown: keyDownHandler,\n focus: handleFocus,\n blur: handleBlur\n }">\n <span #thumb class="k-switch-thumb"></span>\n </span>\n '}),i.__metadata("design:paramtypes",[r.Renderer2,r.ElementRef,a.LocalizationService,r.Injector,r.ChangeDetectorRef,r.NgZone])],e)}();t.SwitchComponent=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(3),a=function(){function e(e,t,n){this.renderer=e,this.inputElement=t,this.ngZone=n,this.hostClasses=!0,this.onFocus=new r.EventEmitter,this.onBlur=new r.EventEmitter,this.onValueChange=new r.EventEmitter,this.autoFillStart=new r.EventEmitter,this.autoFillEnd=new r.EventEmitter,this.listeners=[]}var t;return t=e,Object.defineProperty(e.prototype,"value",{get:function(){return this.inputElement.nativeElement.value},set:function(e){this.inputElement&&(this.inputElement.nativeElement.value=null==e?"":e,this.onValueChange.emit())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this.inputElement.nativeElement.id},set:function(e){this.renderer.setAttribute(this.inputElement.nativeElement,"id",e)},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){var e=this,t=this.inputElement.nativeElement;this.listeners=[this.renderer.listen(t,"focus",(function(){return e.onFocus.emit()})),this.renderer.listen(t,"blur",(function(){return e.onBlur.emit()}))],this.ngZone.runOutsideAngular((function(){e.renderer.listen(t,"animationstart",(function(t){"autoFillStart"===t.animationName?e.autoFillStart.emit():"autoFillEnd"===t.animationName&&e.autoFillEnd.emit()}))}))},e.prototype.ngOnDestroy=function(){this.listeners.forEach((function(e){return e()}))},i.__decorate([r.HostBinding("class.k-textbox"),r.HostBinding("class.k-input"),r.HostBinding("class.k-input-md"),r.HostBinding("class.k-rounded-md"),r.HostBinding("class.k-input-solid"),i.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"value",null),e=t=i.__decorate([r.Directive({selector:"input[kendoTextBox]",providers:[{provide:o.KendoInput,useExisting:r.forwardRef((function(){return t}))}]}),i.__metadata("design:paramtypes",[r.Renderer2,r.ElementRef,r.NgZone])],e)}();t.TextBoxDirective=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(5),a=n(3),s=n(4),u=n(2),c=n(7),l=n(12),d=function(){function e(e,t,n,i,o,a){this.renderer=e,this.element=t,this.zone=n,this.changeDetector=i,this.injector=o,this.elementClasses=!0,this.autofillClass=!0,this.valueChange=new r.EventEmitter,this.autoSize=!1,this.onFocus=new r.EventEmitter,this.onBlur=new r.EventEmitter,this.onValueChange=new r.EventEmitter,this.autoFillStart=new r.EventEmitter,this.autoFillEnd=new r.EventEmitter,this.listeners=[],this.ngChange=function(e){},this.ngTouched=function(){},this.direction=a?"rtl":"ltr"}var t;return t=e,Object.defineProperty(e.prototype,"id",{get:function(){return this.element.nativeElement.id},set:function(e){this.renderer.setAttribute(this.element.nativeElement,"id",e)},enumerable:!0,configurable:!0}),e.prototype.writeValue=function(e){this.elementValue=e,this.resize()},e.prototype.registerOnChange=function(e){this.ngChange=e},e.prototype.registerOnTouched=function(e){this.ngTouched=e},e.prototype.setDisabledState=function(e){this.setElementProperty("disabled",e)},e.prototype.ngOnInit=function(){var e=this,t=this.element.nativeElement;this.zone.runOutsideAngular((function(){e.listeners=[e.renderer.listen(t,"focus",e.handleFocus.bind(e)),e.renderer.listen(t,"blur",e.handleBlur.bind(e)),e.renderer.listen(t,"animationstart",(function(t){"autoFillStart"===t.animationName?e.autoFillStart.emit():"autoFillEnd"===t.animationName&&e.autoFillEnd.emit()}))],a.isDocumentAvailable()&&e.autoSize&&(e.resizeSubscription=c.fromEvent(window,"resize").pipe(l.debounceTime(50)).subscribe((function(){return e.resize()}))),e.inputSubscription=c.fromEvent(t,"input").subscribe(e.handleInput.bind(e))})),this.control=this.injector.get(o.NgControl,null)},e.prototype.ngOnChanges=function(e){var t=this,n=this.element.nativeElement;e.value&&(this.elementValue=this.value),e.autoSize&&(this.autoSize?(this.initialHeight=n.offsetHeight,this.renderer.setStyle(n,"resize","none")):(this.renderer.setStyle(n,"overflow-y","auto"),this.renderer.setStyle(n,"resize","both"),n.style.height=this.initialHeight+"px")),this.zone.onStable.pipe(l.take(1)).subscribe((function(){return t.resize()}))},e.prototype.ngOnDestroy=function(){this.listeners.forEach((function(e){return e()})),this.inputSubscription&&this.inputSubscription.unsubscribe(),this.resizeSubscription&&this.resizeSubscription.unsubscribe()},Object.defineProperty(e.prototype,"elementValue",{get:function(){return this.element?this.element.nativeElement.value:""},set:function(e){this.setElementProperty("value",null==e?"":e)},enumerable:!0,configurable:!0}),e.prototype.setElementProperty=function(e,t){this.element&&this.renderer.setProperty(this.element.nativeElement,e,t)},e.prototype.resize=function(){if(this.autoSize){var e=this.element.nativeElement;this.renderer.setStyle(e,"overflow-y","hidden"),e.style.height=this.initialHeight+"px";var t=e.scrollHeight;t>this.initialHeight&&(e.style.height=t+"px")}},e.prototype.handleInput=function(){var e=this,t=this.elementValue;this.value=t,(this.control||a.hasObservers(this.onValueChange)||a.hasObservers(this.valueChange))&&this.zone.run((function(){e.ngChange(t),e.onValueChange.emit(t),e.valueChange.emit(t),e.changeDetector.markForCheck()})),this.resize()},e.prototype.handleFocus=function(){var e=this;a.hasObservers(this.onFocus)&&this.zone.run((function(){e.onFocus.emit()}))},e.prototype.handleBlur=function(){var e=this;(a.hasObservers(this.onBlur)||s.requiresZoneOnBlur(this.control))&&this.zone.run((function(){e.ngTouched(),e.onBlur.emit(),e.changeDetector.markForCheck()}))},i.__decorate([r.HostBinding("class.k-textarea"),r.HostBinding("class.k-input"),r.HostBinding("class.k-input-md"),r.HostBinding("class.k-rounded-md"),r.HostBinding("class.k-input-solid"),i.__metadata("design:type",Boolean)],e.prototype,"elementClasses",void 0),i.__decorate([r.HostBinding("class.k-autofill"),i.__metadata("design:type",Boolean)],e.prototype,"autofillClass",void 0),i.__decorate([r.HostBinding("attr.dir"),i.__metadata("design:type",String)],e.prototype,"direction",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"valueChange",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"autoSize",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"value",void 0),e=t=i.__decorate([r.Directive({providers:[{provide:o.NG_VALUE_ACCESSOR,useExisting:r.forwardRef((function(){return t})),multi:!0},{provide:a.KendoInput,useExisting:r.forwardRef((function(){return t}))}],selector:"textarea[kendoTextArea]"}),i.__param(5,r.Optional()),i.__param(5,r.Inject(u.RTL)),i.__metadata("design:paramtypes",[r.Renderer2,r.ElementRef,r.NgZone,r.ChangeDetectorRef,r.Injector,Boolean])],e)}();t.TextAreaDirective=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MIN_DOC_LINK="http://www.telerik.com/kendo-angular-ui/components/inputs/api/NumericTextBoxComponent/#toc-min",t.MAX_DOC_LINK="http://www.telerik.com/kendo-angular-ui/components/inputs/api/NumericTextBoxComponent/#toc-max",t.POINT=".",t.INITIAL_SPIN_DELAY=500,t.SPIN_DELAY=50,t.EXPONENT_REGEX=/[eE][\-+]?([0-9]+)/},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(2),a=n(41),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=i.__decorate([r.Component({providers:[{provide:a.NumericTextBoxMessages,useExisting:r.forwardRef((function(){return n}))}],selector:"kendo-numerictextbox-messages",template:""}),i.__metadata("design:paramtypes",[o.LocalizationService])],t)}(a.NumericTextBoxMessages);t.NumericTextBoxCustomMessagesComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"decrement",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"increment",void 0),t}(n(2).ComponentMessages);t.NumericTextBoxMessages=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(5),a=n(2),s=n(8),u=n(9),c=n(89),l=n(3),d=n(11),p=n(4),h=Promise.resolve(null),f=function(){function e(e,t,n,i,o,a,c){var d=this;this.service=e,this.renderer=t,this.hostElement=n,this.ngZone=i,this.injector=o,this.changeDetector=a,this.focusableId="k-"+l.guid(),this.disabled=!1,this.readonly=!1,this.hostClasses=!0,this.prompt="_",this.promptPlaceholder=" ",this.includeLiterals=!1,this.maskOnFocus=!1,this.maskValidation=!0,this.tabindex=0,this.onFocus=new r.EventEmitter,this.onBlur=new r.EventEmitter,this.valueChange=new r.EventEmitter,this.focusClick=!1,this.defaultRules={"#":/[\d\s\+\-]/,"&":/[\S]/,0:/[\d]/,9:/[\d\s]/,"?":/[a-zA-Z\s]/,A:/[a-zA-Z0-9]/,C:/./,L:/[a-zA-Z]/,a:/[a-zA-Z0-9\s]/},this.isPasted=!1,this.selection=[0,0],this._size="medium",this._rounded="medium",this._fillMode="solid",this.handleFocus=function(){d.focused=!0,d.maskOnFocus&&d.emptyMask&&(d.updateInput(d.service.maskRaw(d.value)),d.ngZone.runOutsideAngular((function(){setTimeout((function(){d.setSelection(0,0)}),0)}))),l.hasObservers(d.onFocus)&&d.ngZone.run((function(){d.onFocus.emit()}))},this.handleClick=function(){if(d.focused&&!d.focusClick){d.focusClick=!0;var e=d.input.nativeElement;e.selectionStart===e.selectionEnd&&d.setFocusSelection()}},this.handleBlur=function(){d.changeDetector.markForCheck(),d.focused=!1,d.focusClick=!1,d.maskOnFocus&&d.emptyMask&&d.updateInput(d.maskedValue),(l.hasObservers(d.onBlur)||p.requiresZoneOnBlur(d.control))&&d.ngZone.run((function(){d.onTouched(),d.onBlur.emit()}))},this.onChange=function(e){},this.onTouched=function(){},s.validatePackage(u.packageMetadata),this.direction=c?"rtl":"ltr",this.updateService()}var t;return t=e,Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(e){this.handleClasses(e,"size"),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.handleClasses(e,"rounded"),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.handleClasses(e,"fillMode"),this._fillMode=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostDisabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rules",{get:function(){return this._rules||this.defaultRules},set:function(e){this._rules=Object.assign({},this.defaultRules,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.hostElement&&this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.control=this.injector.get(o.NgControl,null)},e.prototype.ngAfterViewInit=function(){var e=this;["size","rounded","fillMode"].forEach((function(t){e.handleClasses(e[t],t)}))},e.prototype.isEmpty=function(){if(this.input)return!Boolean(this.input.nativeElement.value)},e.prototype.handleDragDrop=function(){return!1},e.prototype.focus=function(){this.input&&(this.input.nativeElement.focus(),this.setFocusSelection())},e.prototype.blur=function(){this.input&&this.input.nativeElement.blur()},e.prototype.pasteHandler=function(e){var t=e.target,n=t.selectionStart,i=t.selectionEnd;i!==n&&(this.isPasted=!0,this.selection=[n,i])},e.prototype.inputHandler=function(e){var t,n=e.target.value,i=this.selection,r=i[0],o=i[1];if(!this.mask)return this.updateValue(n),void(this.isPasted=!1);if(this.isPasted){this.isPasted=!1;var a=this.maskedValue.length-o,s=n.length-a;t=this.service.maskInRange(n.slice(r,s),this.maskedValue,r,o)}else t=this.service.maskInput(n,this.maskedValue,e.target.selectionStart);this.updateInput(t.value,t.selection),this.updateValue(t.value)},e.prototype.ngOnChanges=function(e){var t=this;if(e.value&&(this.value=this.normalizeValue()),this.mask){var n=this.extractChanges(e);if(this.updateService(n),l.isChanged("value",e)){var i=this.service.maskRaw(this.value);i!==this.maskedValue&&this.updateInput(i)}else l.anyChanged(["promptPlaceholder","includeLiterals"],e)?h.then((function(){t.updateValue(t.maskedValue)})):this.updateInput(this.service.maskRaw(this.value))}else this.updateInput(this.value)},e.prototype.writeValue=function(e){this.value=this.normalizeValue(e),this.updateInput(this.service.maskRaw(this.value))},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this.changeDetector.markForCheck(),this.disabled=e},e.prototype.validate=function(e){return!1!==this.maskValidation&&this.mask&&this.service.validationValue(this.maskedValue)&&-1!==this.maskedValue.indexOf(this.prompt)?{patternError:{mask:this.mask,maskedValue:this.maskedValue,value:this.value}}:null},e.prototype.updateValue=function(e){this.mask&&!this.service.validationValue(e)?this.value="":this.value=this.service.rawValue(e),this.onChange(this.value),this.valueChange.emit(this.value)},e.prototype.updateInput=function(e,t){void 0===e&&(e=""),this.maskedValue=e;var n=this.maskOnFocus&&!this.focused&&this.emptyMask?"":e;this.renderer.setProperty(this.input.nativeElement,"value",n),void 0!==t&&this.setSelection(t,t)},e.prototype.extractChanges=function(e){return Object.keys(e).filter((function(e){return"rules"!==e})).reduce((function(t,n){return t[n]=e[n].currentValue,t}),{})},e.prototype.updateService=function(e){var t=Object.assign({includeLiterals:this.includeLiterals,mask:this.mask,prompt:this.prompt,promptPlaceholder:this.promptPlaceholder,rules:this.rules},e);this.service.update(t)},e.prototype.setSelection=function(e,t){void 0===e&&(e=this.selection[0]),void 0===t&&(t=this.selection[1]),this.focused&&d.invokeElementMethod(this.input,"setSelectionRange",e,t)},Object.defineProperty(e.prototype,"emptyMask",{get:function(){return this.service.maskRaw()===this.maskedValue},enumerable:!0,configurable:!0}),e.prototype.setFocusSelection=function(){var e=this.input.nativeElement.selectionStart,t=this.maskedValue?this.maskedValue.indexOf(this.prompt):0;t>=0&&t<e&&(this.selection=[t,t],this.setSelection())},Object.defineProperty(e.prototype,"focused",{get:function(){return this.isFocused},set:function(e){if(this.isFocused!==e&&this.hostElement){var t=this.hostElement.nativeElement;e?this.renderer.addClass(t,"k-focus"):this.renderer.removeClass(t,"k-focus"),this.isFocused=e}},enumerable:!0,configurable:!0}),e.prototype.normalizeValue=function(e){void 0===e&&(e=this.value);var t=p.isPresent(e);if(t&&"string"!=typeof e){if(r.isDevMode())throw new Error("The MaskedTextBox component supports only string values.");return String(e)}return t?e:""},e.prototype.handleClasses=function(e,t){var n=this.hostElement.nativeElement,i=p.getStylingClasses("input",t,this[t],e);i.toRemove&&this.renderer.removeClass(n,i.toRemove),i.toAdd&&this.renderer.addClass(n,i.toAdd)},i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"focusableId",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"readonly",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"title",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"size",null),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"rounded",null),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"fillMode",null),i.__decorate([r.HostBinding("attr.dir"),i.__metadata("design:type",String)],e.prototype,"direction",void 0),i.__decorate([r.HostBinding("class.k-input"),r.HostBinding("class.k-maskedtextbox"),i.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),i.__decorate([r.HostBinding("class.k-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"hostDisabledClass",null),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"mask",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"value",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"rules",null),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"prompt",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"promptPlaceholder",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"includeLiterals",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"maskOnFocus",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"maskValidation",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"tabindex",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],e.prototype,"tabIndex",null),i.__decorate([r.Output("focus"),i.__metadata("design:type",r.EventEmitter)],e.prototype,"onFocus",void 0),i.__decorate([r.Output("blur"),i.__metadata("design:type",r.EventEmitter)],e.prototype,"onBlur",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"valueChange",void 0),i.__decorate([r.ViewChild("input",{static:!0}),i.__metadata("design:type",r.ElementRef)],e.prototype,"input",void 0),i.__decorate([r.HostListener("paste",["$event"]),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Object]),i.__metadata("design:returntype",void 0)],e.prototype,"pasteHandler",null),i.__decorate([r.HostListener("input",["$event"]),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Object]),i.__metadata("design:returntype",void 0)],e.prototype,"inputHandler",null),e=t=i.__decorate([r.Component({exportAs:"kendoMaskedTextBox",providers:[c.MaskingService,{multi:!0,provide:o.NG_VALUE_ACCESSOR,useExisting:r.forwardRef((function(){return t}))},{multi:!0,provide:o.NG_VALIDATORS,useExisting:r.forwardRef((function(){return t}))},{provide:l.KendoInput,useExisting:r.forwardRef((function(){return t}))}],selector:"kendo-maskedtextbox",template:'\n <input type="text"\n #input\n autocomplete="off"\n autocorrect="off"\n autocapitalize="off"\n spellcheck="false"\n class="k-input-inner"\n [id]="focusableId"\n [tabindex]="tabIndex"\n [attr.title]="title"\n [disabled]="disabled"\n [readonly]="readonly"\n [kendoEventsOutsideAngular]="{\n focus: handleFocus,\n blur: handleBlur,\n click: handleClick,\n dragstart: handleDragDrop,\n drop: handleDragDrop\n }"\n />\n '}),i.__param(6,r.Optional()),i.__param(6,r.Inject(a.RTL)),i.__metadata("design:paramtypes",[c.MaskingService,r.Renderer2,r.ElementRef,r.NgZone,r.Injector,r.ChangeDetectorRef,Boolean])],e)}();t.MaskedTextBoxComponent=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(44),r=n(91),o=function(e){return(e||"").split("")},a=function(){function e(e){this.parse=e}return e.prototype.run=function(e,t){return void 0===t&&(t=""),e instanceof r.Stream?this.parse(e):this.parse(new r.Stream(o(e),o(t)))},e.prototype.map=function(t){var n=this;return new e((function(e){return n.parse(e).map(t)}))},e.prototype.chain=function(t){var n=this;return new e((function(e){return n.parse(e).chain((function(e,n){return t(e).run(n)}))}))},e.prototype.isLiteral=function(e){return this.run(e).type===i.ResultType.Literal},e}();t.Parser=a,t.mask=function(e){var t=e.prompt,n=e.promptPlaceholder;return function(e){return new a((function(r){for(;!r.eof();){var o=r.peek(),a=o.char,s=o.control;if(a===s&&s===t)return r.eat(),new i.Result(t,r,i.ResultType.Mask);if(e.test(a))return r.eat(),new i.Result(a,r,i.ResultType.Mask);if(a===n)return r.eat(),new i.Result(t,r,i.ResultType.Mask);r.eat_input()}return r.eat(),new i.Result(t,r,i.ResultType.Mask)}))}},t.literal=function(e){return new a((function(t){return t.peek().char===e?(t.eat(),new i.Result(e,t,i.ResultType.Literal)):new i.Result(e,t,i.ResultType.Literal)}))},t.unmask=function(e){return function(t){return new a((function(n){for(;!n.eof();){var r=n.peek(),o=r.char,a=r.control;if(o===e&&a===e)return n.eat(),new i.Result(o,n);if(t.test(o))return n.eat(),new i.Result(o,n);n.eat_input()}return n.eat(),new i.Result("",n)}))}},t.unliteral=function(e){return new a((function(t){return t.eof()?new i.Result("",t):(t.peek().char===e&&t.eat(),new i.Result(e,t))}))},t.token=function(e,t){return new a((function(n){var r=n.next().char,o=e[r];return"\\"===r?(r=n.next().char,new i.Result(t.literal(r),n)):o?new i.Result(t.mask(o),n):new i.Result(t.literal(r),n)}))},t.rawMask=function(e){var t=e.prompt,n=e.promptPlaceholder;return new a((function(e){var r=e.next().char;return r===t?new i.Result(n,e):new i.Result(r,e)}))},t.rawLiteral=function(e){return new a((function(t){var n=t.next().char;return e?new i.Result(n,t):new i.Result("",t)}))}},function(e,t,n){"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Literal=0]="Literal",e[e.Mask=1]="Mask",e[e.Undefined=2]="Undefined"}(i=t.ResultType||(t.ResultType={}));var r=function(){function e(e,t,n){void 0===n&&(n=i.Undefined),this.value=e,this.rest=t,this.type=n}return e.prototype.map=function(t){return new e(t(this.value),this.rest)},e.prototype.chain=function(e){return e(this.value,this.rest)},e.prototype.fold=function(e,t){return e(this.value,this.rest)},e.prototype.concat=function(e){return this.map((function(t,n){return e.chain((function(e,n){return t.concat([e])}))}))},e.prototype.toString=function(){return"Result({ value: '"+this.value+"', rest: "+this.rest+" })"},e}();t.Result=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(6),a=n(46),s=n(15),u=n(3),c=function(){function e(){}return e=i.__decorate([r.NgModule({declarations:[a.SliderTicksComponent,s.LabelTemplateDirective],exports:[s.LabelTemplateDirective,a.SliderTicksComponent,u.DraggableModule,u.EventsModule,u.ResizeSensorModule],imports:[o.CommonModule,u.DraggableModule,u.EventsModule,u.ResizeSensorModule]})],e)}();t.SlidersCommonModule=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(10),a=function(e){this.value=e,this.classes={"k-tick":!0}},s=function(){function e(){this.wrapperClasses="k-reset k-slider-items",this.ticks=[]}return e.prototype.ngOnChanges=function(e){this.createTicks()},e.prototype.createTicks=function(){for(var e=o.calculateTicksCount(this.min,this.max,this.step),t=this.largeStep,n={max:this.max,min:this.min,smallStep:this.step},i=[],r=0;r<e;r++)i.push(new a(o.calculateValueFromTick(r,n))),t&&r%t==0&&(i[r].large=!0,i[r].classes["k-tick-large"]=!0);i.length>0&&(Object.assign(i[0].classes,this.endTickClasses(!0)),Object.assign(i[i.length-1].classes,this.endTickClasses(!1))),this.ticks=i},e.prototype.endTickClasses=function(e){return{"k-first":e&&!this.vertical||!e&&this.vertical,"k-last":!e&&!this.vertical||e&&this.vertical}},i.__decorate([r.HostBinding("class"),i.__metadata("design:type",String)],e.prototype,"wrapperClasses",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function)],e.prototype,"tickTitle",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"vertical",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"step",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"largeStep",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"min",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"max",void 0),i.__decorate([r.Input(),i.__metadata("design:type",r.TemplateRef)],e.prototype,"labelTemplate",void 0),i.__decorate([r.ViewChildren("tickElement"),i.__metadata("design:type",r.QueryList)],e.prototype,"tickElements",void 0),e=i.__decorate([r.Component({selector:"[kendoSliderTicks]",template:'\n <li #tickElement *ngFor="let tick of ticks;"\n [ngClass]="tick.classes"\n title="{{ tickTitle(tick.value) }}"\n role="presentation"\n >\n <ng-container [ngSwitch]="tick.large">\n <span class="k-label" *ngSwitchCase="true">\n <ng-container [ngTemplateOutlet]="labelTemplate || defaultLabel" [ngTemplateOutletContext]="tick">\n </ng-container>\n </span>\n <ng-container *ngSwitchCase="false"> </ng-container>\n </ng-container>\n </li>\n\n <ng-template #defaultLabel let-value="value">\n {{ tickTitle(value) }}\n </ng-template>\n '})],e)}();t.SliderTicksComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(2),a=n(48),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,t=n=i.__decorate([r.Directive({providers:[{provide:a.SliderMessages,useExisting:r.forwardRef((function(){return n}))}],selector:"[kendoSliderLocalizedMessages]"}),i.__metadata("design:paramtypes",[o.LocalizationService])],t)}(a.SliderMessages);t.LocalizedSliderMessagesDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"decrement",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"increment",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"dragHandle",void 0),t}(n(2).ComponentMessages);t.SliderMessages=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(6),a=n(45),s=n(35),u=n(50),c=n(94),l=n(15),d=function(){function e(){}return e=i.__decorate([r.NgModule({declarations:[s.RangeSliderComponent,c.RangeSliderCustomMessagesComponent,u.LocalizedRangeSliderMessagesDirective],exports:[s.RangeSliderComponent,c.RangeSliderCustomMessagesComponent,u.LocalizedRangeSliderMessagesDirective,l.LabelTemplateDirective],imports:[o.CommonModule,a.SlidersCommonModule]})],e)}();t.RangeSliderModule=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(2),a=n(51),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,t=n=i.__decorate([r.Directive({providers:[{provide:a.RangeSliderMessages,useExisting:r.forwardRef((function(){return n}))}],selector:"[kendoSliderLocalizedMessages]"}),i.__metadata("design:paramtypes",[o.LocalizationService])],t)}(a.RangeSliderMessages);t.LocalizedRangeSliderMessagesDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"dragHandleStart",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"dragHandleEnd",void 0),t}(n(2).ComponentMessages);t.RangeSliderMessages=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(36),a=n(6),s=n(3),u=n(53),c=n(95),l=n(3),d=function(){function e(){}return e=i.__decorate([r.NgModule({declarations:[o.SwitchComponent,c.SwitchCustomMessagesComponent,u.LocalizedSwitchMessagesDirective],exports:[o.SwitchComponent,c.SwitchCustomMessagesComponent,u.LocalizedSwitchMessagesDirective],imports:[a.CommonModule,l.EventsModule,s.ResizeSensorModule]})],e)}();t.SwitchModule=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(2),a=n(54),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,t=n=i.__decorate([r.Directive({providers:[{provide:a.Messages,useExisting:r.forwardRef((function(){return n}))}],selector:"[kendoSwitchLocalizedMessages]"}),i.__metadata("design:paramtypes",[o.LocalizationService])],t)}(a.Messages);t.LocalizedSwitchMessagesDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"on",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"off",void 0),t}(n(2).ComponentMessages);t.Messages=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(2),a=n(41),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,t=n=i.__decorate([r.Directive({providers:[{provide:a.NumericTextBoxMessages,useExisting:r.forwardRef((function(){return n}))}],selector:"[kendoNumericTextBoxLocalizedMessages]"}),i.__metadata("design:paramtypes",[o.LocalizationService])],t)}(a.NumericTextBoxMessages);t.LocalizedNumericTextBoxMessagesDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(42),a=n(6),s=n(3),u=function(){function e(){}return e=i.__decorate([r.NgModule({declarations:[o.MaskedTextBoxComponent],exports:[o.MaskedTextBoxComponent],imports:[a.CommonModule,s.EventsModule]})],e)}();t.MaskedTextBoxModule=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(37),a=n(58),s=n(6),u=n(3),c=n(21),l=n(22),d=n(96),p=n(61),h=n(23),f=function(){function e(){}return e=i.__decorate([r.NgModule({declarations:[o.TextBoxDirective,a.TextBoxComponent,c.TextBoxSuffixTemplateDirective,l.TextBoxPrefixTemplateDirective,d.TextBoxCustomMessagesComponent,p.LocalizedTextBoxMessagesDirective],exports:[o.TextBoxDirective,a.TextBoxComponent,c.TextBoxSuffixTemplateDirective,l.TextBoxPrefixTemplateDirective,u.EventsModule,d.TextBoxCustomMessagesComponent,p.LocalizedTextBoxMessagesDirective,h.SHARED_DIRECTIVES],imports:[s.CommonModule,u.EventsModule,h.SharedModule]})],e)}();t.TextBoxModule=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(59),o=n(11),a=n(5),s=n(1),u=n(8),c=n(9),l=n(11),d=n(4),p=n(3),h=n(21),f=n(22),m=n(2),v=n(59),g=function(){function e(e,t,n,i,o,a){var l=this;this.localizationService=e,this.ngZone=t,this.changeDetector=n,this.renderer=i,this.injector=o,this.hostElement=a,this.focusableId="k-"+p.guid(),this.title="",this.disabled=!1,this.readonly=!1,this.tabindex=0,this.value=null,this.selectOnFocus=!1,this.showSuccessIcon=!1,this.showErrorIcon=!1,this.clearButton=!1,this.valueChange=new s.EventEmitter,this.inputFocus=new s.EventEmitter,this.inputBlur=new s.EventEmitter,this.onFocus=new s.EventEmitter,this.onBlur=new s.EventEmitter,this.hostClasses=!0,this._isFocused=!1,this.focusChangedProgrammatically=!1,this._size="medium",this._rounded="medium",this._fillMode="solid",this.handleInputFocus=function(){l.disabled||(l.selectOnFocus&&l.value&&l.ngZone.run((function(){setTimeout((function(){l.selectAll()}))})),p.hasObservers(l.onFocus)&&(l.isFocused||l.ngZone.run((function(){l.onFocus.emit()}))),p.hasObservers(l.inputFocus)&&(!l.focusChangedProgrammatically||l.focusChangedProgrammatically&&l.clearButtonClicked)&&l.ngZone.run((function(){l.inputFocus.emit()})),l.ngZone.run((function(){l.isFocused=!0})))},this.handleInputBlur=function(){l.changeDetector.markForCheck(),(p.hasObservers(l.inputBlur)||d.requiresZoneOnBlur(l.control))&&l.ngZone.run((function(){l.ngTouched(),l.inputBlur.emit()}))},this.handleInput=function(e){var t=v.isSafari(navigator.userAgent)&&r.isJapanese(e.target.value)?e.data:e.target.value;l.updateValue(t)},this.ngChange=function(e){},this.ngTouched=function(){},u.validatePackage(c.packageMetadata),this.direction=e.rtl?"rtl":"ltr"}var t;return t=e,Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(e){this.handleClasses(e,"size"),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.handleClasses(e,"rounded"),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.handleClasses(e,"fillMode"),this._fillMode=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.control=this.injector.get(a.NgControl,null),this.checkClearButton(),this.subscriptions=this.localizationService.changes.subscribe((function(t){var n=t.rtl;e.direction=n?"rtl":"ltr"}))},e.prototype.ngAfterViewInit=function(){var e=this,t=this.hostElement.nativeElement,n=!1,i=!1;this.ngZone.runOutsideAngular((function(){e.subscriptions.add(e.renderer.listen(t,"focusin",(function(){e.isFocused||e.ngZone.run((function(){e.onFocus.emit(),e.isFocused=!0}))}))),e.subscriptions.add(e.renderer.listen(t,"focusout",(function(t){e.isFocused&&(i?(o.closest(t.relatedTarget,(function(t){return t===e.hostElement.nativeElement}))||e.handleBlur(),i=!1):n||e.clearButtonClicked||e.handleBlur())}))),e.subscriptions.add(e.renderer.listen(t,"mouseenter",(function(){n=!0}))),e.subscriptions.add(e.renderer.listen(t,"mouseleave",(function(){n=!1}))),e.subscriptions.add(e.renderer.listen(t,"keydown",(function(e){i=e.keyCode===p.Keys.Tab})))}));["size","rounded","fillMode"].forEach((function(t){e.handleClasses(e[t],t)}))},e.prototype.ngOnChanges=function(e){(e.disabled||e.readonly||e.value)&&this.checkClearButton()},e.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},e.prototype.focus=function(){this.input&&(this.focusChangedProgrammatically=!0,this.isFocused=!0,this.input.nativeElement.focus(),this.focusChangedProgrammatically=!1)},e.prototype.blur=function(){this.focusChangedProgrammatically=!0;var e=this.hostElement.nativeElement.querySelector(":focus");e&&e.blur(),this.isFocused=!1,this.focusChangedProgrammatically=!1},e.prototype.clearTitle=function(){return this.localizationService.get("clear")},e.prototype.checkClearButton=function(){this.showClearButton=!this.disabled&&!this.readonly&&this.clearButton&&!!this.value},e.prototype.clearValue=function(e){e&&e.preventDefault(),this.clearButtonClicked=!0,this.input.nativeElement.value="",this.input.nativeElement.focus(),this.updateValue(""),this.checkClearButton(),this.clearButtonClicked=!1},e.prototype.writeValue=function(e){this.value=e,this.checkClearButton()},e.prototype.registerOnChange=function(e){this.ngChange=e},e.prototype.registerOnTouched=function(e){this.ngTouched=e},e.prototype.setDisabledState=function(e){this.changeDetector.markForCheck(),this.disabled=e},e.prototype.showErrorsInitial=function(){if(!this.control)return!1;var e=this.control,t=e.invalid,n=e.dirty,i=e.touched;return t&&(n||i)},e.prototype.showSuccessInitial=function(){if(!this.control)return!1;var e=this.control,t=e.valid,n=e.dirty,i=e.touched;return t&&(n||i)},Object.defineProperty(e.prototype,"successIconClasses",{get:function(){return this.successIcon?""+this.successIcon:"k-input-validation-icon k-icon k-i-check"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"errorIconClasses",{get:function(){return this.errorIcon?""+this.errorIcon:"k-input-validation-icon k-icon k-i-warning"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"clearButtonClasses",{get:function(){return this.clearButtonIcon?this.clearButtonIcon:"k-icon k-i-x"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasErrors",{get:function(){return"initial"===this.showErrorIcon?this.showErrorsInitial():this.showErrorIcon},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isSuccessful",{get:function(){return"initial"===this.showSuccessIcon?this.showSuccessInitial():this.showSuccessIcon},enumerable:!0,configurable:!0}),e.prototype.setSelection=function(e,t){this.isFocused&&l.invokeElementMethod(this.input,"setSelectionRange",e,t)},e.prototype.selectAll=function(){this.value&&this.setSelection(0,this.value.length)},e.prototype.updateValue=function(e){var t=this;d.areSame(this.value,e)||this.ngZone.run((function(){t.value=e,t.ngChange(e),t.valueChange.emit(e),t.checkClearButton(),t.changeDetector.markForCheck()}))},Object.defineProperty(e.prototype,"isFocused",{get:function(){return this._isFocused},set:function(e){if(this._isFocused!==e&&this.hostElement){var t=this.hostElement.nativeElement;e&&!this.disabled?this.renderer.addClass(t,"k-focus"):this.renderer.removeClass(t,"k-focus"),this._isFocused=e}},enumerable:!0,configurable:!0}),e.prototype.handleBlur=function(){var e=this;this.ngZone.run((function(){e.focusChangedProgrammatically||e.onBlur.emit(),e.isFocused=!1}))},e.prototype.handleClasses=function(e,t){var n=this.hostElement.nativeElement,i=d.getStylingClasses("input",t,this[t],e);i.toRemove&&this.renderer.removeClass(n,i.toRemove),i.toAdd&&this.renderer.addClass(n,i.toAdd)},i.__decorate([s.Input(),i.__metadata("design:type",String)],e.prototype,"focusableId",void 0),i.__decorate([s.Input(),i.__metadata("design:type",String)],e.prototype,"title",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Boolean)],e.prototype,"readonly",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Number)],e.prototype,"tabindex",void 0),i.__decorate([s.Input(),i.__metadata("design:type",String)],e.prototype,"value",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Boolean)],e.prototype,"selectOnFocus",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Object)],e.prototype,"showSuccessIcon",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Object)],e.prototype,"showErrorIcon",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Boolean)],e.prototype,"clearButton",void 0),i.__decorate([s.Input(),i.__metadata("design:type",String)],e.prototype,"successIcon",void 0),i.__decorate([s.Input(),i.__metadata("design:type",String)],e.prototype,"errorIcon",void 0),i.__decorate([s.Input(),i.__metadata("design:type",String)],e.prototype,"clearButtonIcon",void 0),i.__decorate([s.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"size",null),i.__decorate([s.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"rounded",null),i.__decorate([s.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"fillMode",null),i.__decorate([s.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],e.prototype,"tabIndex",null),i.__decorate([s.Input(),i.__metadata("design:type",String)],e.prototype,"placeholder",void 0),i.__decorate([s.Input(),i.__metadata("design:type",Number)],e.prototype,"maxlength",void 0),i.__decorate([s.Output(),i.__metadata("design:type",s.EventEmitter)],e.prototype,"valueChange",void 0),i.__decorate([s.Output(),i.__metadata("design:type",s.EventEmitter)],e.prototype,"inputFocus",void 0),i.__decorate([s.Output(),i.__metadata("design:type",s.EventEmitter)],e.prototype,"inputBlur",void 0),i.__decorate([s.Output("focus"),i.__metadata("design:type",s.EventEmitter)],e.prototype,"onFocus",void 0),i.__decorate([s.Output("blur"),i.__metadata("design:type",s.EventEmitter)],e.prototype,"onBlur",void 0),i.__decorate([s.ViewChild("input",{static:!0}),i.__metadata("design:type",s.ElementRef)],e.prototype,"input",void 0),i.__decorate([s.ContentChild(h.TextBoxSuffixTemplateDirective,{static:!1}),i.__metadata("design:type",h.TextBoxSuffixTemplateDirective)],e.prototype,"suffixTemplate",void 0),i.__decorate([s.ContentChild(f.TextBoxPrefixTemplateDirective,{static:!1}),i.__metadata("design:type",f.TextBoxPrefixTemplateDirective)],e.prototype,"prefixTemplate",void 0),i.__decorate([s.HostBinding("class.k-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"disabledClass",null),i.__decorate([s.HostBinding("class.k-textbox"),s.HostBinding("class.k-input"),i.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),i.__decorate([s.HostBinding("attr.dir"),i.__metadata("design:type",String)],e.prototype,"direction",void 0),e=t=i.__decorate([s.Component({exportAs:"kendoTextBox",providers:[m.LocalizationService,{provide:m.L10N_PREFIX,useValue:"kendo.textbox"},{provide:a.NG_VALUE_ACCESSOR,useExisting:s.forwardRef((function(){return t})),multi:!0},{provide:p.KendoInput,useExisting:s.forwardRef((function(){return t}))}],selector:"kendo-textbox",template:'\n <ng-container kendoTextBoxLocalizedMessages\n i18n-clear="kendo.textbox.clear|The title for the **Clear** button in the TextBox."\n clear="Clear">\n </ng-container>\n <span class="k-input-prefix">\n <ng-template\n *ngIf="prefixTemplate"\n [ngTemplateOutlet]="prefixTemplate?.templateRef">\n </ng-template>\n </span>\n <input #input\n class="k-input-inner"\n [id]="focusableId"\n [disabled]="disabled"\n [readonly]="readonly"\n [attr.tabindex]="disabled ? undefined : tabindex"\n [value]="value"\n [attr.placeholder]="placeholder"\n [attr.title]="title"\n [attr.maxlength]="maxlength"\n [kendoEventsOutsideAngular]="{\n focus: handleInputFocus,\n blur: handleInputBlur,\n input: handleInput}"\n />\n <span\n role="button"\n class="k-clear-value"\n *ngIf="showClearButton"\n (click)="clearValue()"\n (mousedown)="$event.preventDefault()"\n [tabindex]="tabIndex"\n [attr.aria-label]="clearTitle()"\n [title]="clearTitle()"\n (keydown.enter)="clearValue($event)"\n (keydown.space)="clearValue($event)">\n <span [ngClass]="clearButtonClasses"></span>\n </span>\n <span *ngIf="hasErrors" [ngClass]="errorIconClasses"></span>\n <span *ngIf="isSuccessful" [ngClass]="successIconClasses"></span>\n <span class="k-input-suffix">\n <ng-template\n *ngIf="suffixTemplate"\n [ngTemplateOutlet]="suffixTemplate?.templateRef">\n </ng-template>\n </span>\n '}),i.__metadata("design:paramtypes",[m.LocalizationService,s.NgZone,s.ChangeDetectorRef,s.Renderer2,s.Injector,s.ElementRef])],e)}();t.TextBoxComponent=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(32);t.isSafari=function(e){return i.detectDesktopBrowser(e).safari||i.detectMobileOS(e)&&"mobilesafari"===i.detectMobileOS(e).browser},t.isJapanese=function(e){return/[\u3000-\u303F]|[\u3040-\u309F]|[\u30A0-\u30FF]|[\uFF00-\uFFEF]|[\u4E00-\u9FAF]|[\u2605-\u2606]|[\u2190-\u2195]|\u203B/g.test(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"clear",void 0),t}(n(2).ComponentMessages);t.TextBoxMessages=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(2),a=n(60),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,t=n=i.__decorate([r.Directive({providers:[{provide:a.TextBoxMessages,useExisting:r.forwardRef((function(){return n}))}],selector:"[kendoTextBoxLocalizedMessages]"}),i.__metadata("design:paramtypes",[o.LocalizationService])],t)}(a.TextBoxMessages);t.LocalizedTextBoxMessagesDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=function(){function e(){this.hostClass=!0}return i.__decorate([r.HostBinding("class.k-input-separator"),i.__metadata("design:type",Boolean)],e.prototype,"hostClass",void 0),e=i.__decorate([r.Component({selector:"kendo-input-separator, kendo-textbox-separator",template:""})],e)}();t.InputSeparatorComponent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(6),a=n(64),s=n(3),u=n(65),c=n(23),l=function(){function e(){}return e=i.__decorate([r.NgModule({declarations:[a.TextAreaComponent,u.TextAreaSuffixComponent],exports:[a.TextAreaComponent,s.EventsModule,u.TextAreaSuffixComponent,c.SHARED_DIRECTIVES],imports:[o.CommonModule,s.EventsModule,c.SharedModule]})],e)}();t.TextAreaModule=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(7),a=n(12),s=n(5),u=n(3),c=n(2),l=n(97),d=n(4),p=n(11),h=n(11),f=n(8),m=n(9),v={vertical:"k-resize-vertical",horizontal:"k-resize-horizontal",both:"k-resize-both",none:"k-resize-none",auto:"k-resize-none"},g=function(e){function t(t,n,i,o,a,s){var c=e.call(this,t,n,i,o,a,s)||this;return c.localizationService=t,c.ngZone=n,c.changeDetector=i,c.renderer=o,c.injector=a,c.hostElement=s,c.focusableId="k-"+u.guid(),c.hostClasses=!0,c.flow="vertical",c.tabindex=0,c.resizable="vertical",c.onFocus=new r.EventEmitter,c.onBlur=new r.EventEmitter,c.valueChange=new r.EventEmitter,c._size="medium",c._rounded="medium",c._fillMode="solid",c.handleInput=function(e){var t=e.target.value;c.updateValue(t),c.resize()},c.handleInputFocus=function(){c.disabled||(c.selectOnFocus&&c.value&&c.ngZone.run((function(){setTimeout((function(){c.selectAll()}))})),u.hasObservers(c.onFocus)&&(c.isFocused||c.ngZone.run((function(){c.onFocus.emit()}))),u.hasObservers(c.inputFocus)&&(c.focusChangedProgrammatically||c.ngZone.run((function(){c.inputFocus.emit()}))),c.ngZone.run((function(){c.isFocused=!0})))},f.validatePackage(m.packageMetadata),c.direction=t.rtl?"rtl":"ltr",c}var n;return i.__extends(t,e),n=t,Object.defineProperty(t.prototype,"flowCol",{get:function(){return"vertical"===this.flow},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"flowRow",{get:function(){return"horizontal"===this.flow},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this._size},set:function(e){this.handleClasses(e,"size"),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.handleClasses(e,"rounded"),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.handleClasses(e,"fillMode"),this._fillMode=e},enumerable:!0,configurable:!0}),t.prototype.ngAfterViewInit=function(){var e=this,t=this.hostElement.nativeElement,n=!1,i=!1;this.ngZone.runOutsideAngular((function(){e.subscriptions.add(e.renderer.listen(t,"focusin",(function(){e.isFocused||e.ngZone.run((function(){e.onFocus.emit(),e.isFocused=!0}))}))),e.subscriptions.add(e.renderer.listen(t,"focusout",(function(t){e.isFocused&&(i?(h.closest(t.relatedTarget,(function(t){return t===e.hostElement.nativeElement}))||e.handleBlur(),i=!1):n||e.handleBlur())}))),e.subscriptions.add(e.renderer.listen(t,"mouseenter",(function(){n=!0}))),e.subscriptions.add(e.renderer.listen(t,"mouseleave",(function(){n=!1}))),e.subscriptions.add(e.renderer.listen(t,"keydown",(function(e){i=e.keyCode===u.Keys.Tab}))),e.handleFlow()}));["size","rounded","fillMode"].forEach((function(t){e.handleClasses(e[t],t)}))},t.prototype.ngOnInit=function(){var e=this;this.control=this.injector.get(s.NgControl,null),u.isDocumentAvailable()&&"auto"===this.resizable&&(this.resizeSubscription=o.fromEvent(window,"resize").pipe(a.debounceTime(50)).subscribe((function(){return e.resize()}))),this.hostElement&&this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.subscriptions=this.localizationService.changes.subscribe((function(t){var n=t.rtl;e.direction=n?"rtl":"ltr"}))},t.prototype.ngOnChanges=function(e){var t=this.hostElement.nativeElement,n=this.input.nativeElement;e.flow&&this.handleFlow(),e.resizable&&("auto"===this.resizable?this.initialHeight=n.offsetHeight:(this.renderer.setStyle(n,"overflow-y","auto"),this.renderer.setStyle(n,"resize","both"),n.style.height=this.initialHeight+"px")),e.cols&&(d.isPresent(e.cols.currentValue)?this.renderer.setStyle(t,"width","auto"):this.renderer.removeStyle(t,"width"))},t.prototype.ngAfterViewChecked=function(){this.resize()},t.prototype.writeValue=function(e){this.value=e},t.prototype.registerOnChange=function(e){this.ngChange=e},t.prototype.registerOnTouched=function(e){this.ngTouched=e},t.prototype.updateValue=function(e){var t=this;d.areSame(this.value,e)||this.ngZone.run((function(){t.value=e,t.ngChange(e),t.valueChange.emit(e),t.changeDetector.markForCheck()}))},t.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this),this.resizeSubscription&&this.resizeSubscription.unsubscribe()},Object.defineProperty(t.prototype,"resizableClass",{get:function(){return v[this.resizable]},enumerable:!0,configurable:!0}),t.prototype.focus=function(){this.input&&(this.focusChangedProgrammatically=!0,this.isFocused=!0,this.input.nativeElement.focus(),this.focusChangedProgrammatically=!1)},t.prototype.blur=function(){this.focusChangedProgrammatically=!0;var e=this.hostElement.nativeElement.querySelector(":focus");e&&e.blur(),this.isFocused=!1,this.focusChangedProgrammatically=!1},t.prototype.resize=function(){if("auto"===this.resizable){var e=this.input.nativeElement;this.renderer.setStyle(e,"overflow-y","hidden"),this.renderer.setStyle(e,"height",this.initialHeight+"px");var t=e.scrollHeight;t>this.initialHeight&&(e.style.height=t+"px")}},Object.defineProperty(t.prototype,"isFocused",{get:function(){return this._isFocused},set:function(e){if(this._isFocused!==e&&this.hostElement){var t=this.hostElement.nativeElement;e&&!this.disabled?this.renderer.addClass(t,"k-focus"):this.renderer.removeClass(t,"k-focus"),this._isFocused=e}},enumerable:!0,configurable:!0}),t.prototype.handleBlur=function(){var e=this;this.ngZone.run((function(){e.focusChangedProgrammatically||e.onBlur.emit(),e.isFocused=!1}))},t.prototype.setSelection=function(e,t){this.isFocused&&p.invokeElementMethod(this.input,"setSelectionRange",e,t)},t.prototype.selectAll=function(){this.value&&this.setSelection(0,this.value.length)},t.prototype.handleClasses=function(e,t){var n=this.hostElement.nativeElement,i=d.getStylingClasses("input",t,this[t],e);i.toRemove&&this.renderer.removeClass(n,i.toRemove),i.toAdd&&this.renderer.addClass(n,i.toAdd)},t.prototype.handleFlow=function(){var e="vertical"===this.flow,t=this.hostElement.nativeElement,n=this.input.nativeElement,i=t.children[1];this.renderer.setStyle(n,"flex",e?"none":"1"),i&&this.renderer.setStyle(i,"align-items",e?"center":"start")},i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"focusableId",void 0),i.__decorate([r.HostBinding("class.k-textarea"),r.HostBinding("class.k-input"),i.__metadata("design:type",Boolean)],t.prototype,"hostClasses",void 0),i.__decorate([r.HostBinding("class.!k-flex-col"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],t.prototype,"flowCol",null),i.__decorate([r.HostBinding("class.!k-flex-row"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],t.prototype,"flowRow",null),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"flow",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],t.prototype,"rows",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],t.prototype,"cols",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],t.prototype,"maxlength",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],t.prototype,"tabindex",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],t.prototype,"tabIndex",null),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"resizable",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],t.prototype,"size",null),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],t.prototype,"rounded",null),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],t.prototype,"fillMode",null),i.__decorate([r.Output("focus"),i.__metadata("design:type",r.EventEmitter)],t.prototype,"onFocus",void 0),i.__decorate([r.Output("blur"),i.__metadata("design:type",r.EventEmitter)],t.prototype,"onBlur",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],t.prototype,"valueChange",void 0),t=n=i.__decorate([r.Component({exportAs:"kendoTextArea",providers:[c.LocalizationService,{provide:c.L10N_PREFIX,useValue:"kendo.textarea"},{provide:s.NG_VALUE_ACCESSOR,useExisting:r.forwardRef((function(){return n})),multi:!0},{provide:u.KendoInput,useExisting:r.forwardRef((function(){return n}))}],selector:"kendo-textarea",template:'\n <textarea\n #input\n [attr.aria-multiline]="true"\n [attr.aria-disabled]="disabled ? true : undefined"\n [attr.aria-readonly]="readonly ? true : undefined"\n class="k-input-inner"\n [ngClass]="resizableClass"\n [id]="focusableId"\n [value]="value"\n [attr.placeholder]="placeholder"\n [disabled]="disabled"\n [readonly]="readonly"\n [attr.rows]="rows"\n [attr.cols]="cols"\n [attr.tabindex]="tabIndex"\n [attr.title]="title"\n [attr.maxlength]="maxlength"\n [kendoEventsOutsideAngular]="{\n focus: handleInputFocus,\n blur: handleInputBlur,\n input: handleInput}">\n </textarea>\n <ng-content select="kendo-textarea-suffix"></ng-content>\n ',styles:["\n :host {\n display: inline-flex;\n }\n "]}),i.__metadata("design:paramtypes",[c.LocalizationService,r.NgZone,r.ChangeDetectorRef,r.Renderer2,r.Injector,r.ElementRef])],t)}(l.TextFieldsBase);t.TextAreaComponent=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=function(){function e(){this.hostClass=!0}return i.__decorate([r.HostBinding("class.k-input-suffix"),i.__metadata("design:type",Boolean)],e.prototype,"hostClass",void 0),e=i.__decorate([r.Component({exportAs:"kendoTextAreaSuffix",selector:"kendo-textarea-suffix",template:"<ng-content></ng-content>"})],e)}();t.TextAreaSuffixComponent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(6),a=n(67),s=n(3),u=n(19),c=n(20),l=n(68),d=n(29),p=n(28),h=n(70),f=n(71),m=n(72),v=n(24),g=n(110),y=n(74),_=n(111),b=n(112),C=n(113),k=n(114),w=[l.ColorPickerComponent,d.ColorPaletteComponent,p.ColorGradientComponent,v.FlatColorPickerComponent,y.LocalizedColorPickerMessagesDirective,g.ColorPickerCustomMessagesComponent],x=[h.ColorInputComponent,_.FocusOnDomReadyDirective,C.ContrastComponent,b.ContrastValidationComponent,f.FlatColorPickerHeaderComponent,m.FlatColorPickerActionButtonsComponent,k.ColorContrastSvgComponent],S=function(){function e(){}return e=i.__decorate([r.NgModule({declarations:[w,x],exports:[w],imports:[u.SliderModule,c.NumericTextBoxModule,o.CommonModule,a.PopupModule,s.DraggableModule]})],e)}();t.ColorPickerModule=S},function(e,t){e.exports=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(12),o=n(1),a=n(5),s=n(7),u=n(24),c=n(67),l=n(8),d=n(3),p=n(2),h=n(9),f=n(26),m=n(27),v=n(13),g=n(4),y=n(69),_=n(14),b=["focus","blur"],C=function(){function e(e,t,n,i,r,a){var u=this;this.host=e,this.popupService=t,this.cdr=n,this.localizationService=i,this.ngZone=r,this.renderer=a,this.hostClasses=!0,this.role="listbox",this.views=["gradient","palette"],this.readonly=!1,this.disabled=!1,this.format="rgba",this.clearButton=!0,this.preview=!1,this.actionsLayout="end",this.valueChange=new o.EventEmitter,this.open=new o.EventEmitter,this.close=new o.EventEmitter,this.onFocus=new o.EventEmitter,this.onBlur=new o.EventEmitter,this.cancel=new o.EventEmitter,this.activeColorClick=new o.EventEmitter,this.activeViewChange=new o.EventEmitter,this.isFocused=!1,this._tabindex=0,this._popupSettings={animate:!0},this._paletteSettings={},this._gradientSettings={opacity:!0,delay:0},this._size="medium",this._rounded="medium",this._fillMode="solid",this.subscriptions=new s.Subscription,this.notifyNgTouched=function(){},this.notifyNgChanged=function(){},this.domFocusListener=function(e){return e.stopImmediatePropagation()},l.validatePackage(h.packageMetadata),this.dynamicRTLSubscription=this.localizationService.changes.subscribe((function(e){var t=e.rtl;u.direction=t?"rtl":"ltr"}))}var t;return t=e,Object.defineProperty(e.prototype,"focusedClass",{get:function(){return this.isFocused},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaReadonly",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaExpanded",{get:function(){return this.isOpen},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostTabindex",{get:function(){return this.tabindex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"view",{get:function(){return this.views&&this.views.length>0?this.views[0]:null},set:function(e){this.views=[e]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=v.parseColor(e,this.format,this.gradientSettings.opacity)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign(this._popupSettings,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paletteSettings",{get:function(){return this._paletteSettings},set:function(e){this._paletteSettings=Object.assign(this._paletteSettings,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gradientSettings",{get:function(){return this._gradientSettings},set:function(e){this._gradientSettings=Object.assign(this._gradientSettings,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabindex",{get:function(){return this.disabled?void 0:this._tabindex},set:function(e){var t=Number(e);this._tabindex=isNaN(t)?0:t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(e){this.handleClasses(e,"size"),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.handleClasses(e,"rounded"),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.handleClasses(e,"fillMode"),this._fillMode=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isOpen",{get:function(){return g.isPresent(this.popupRef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"iconStyles",{get:function(){return this.iconClass?this.iconClass:this.icon?"k-icon k-i-"+this.icon:void 0},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e="name"!==this.format?_.DEFAULT_PRESET:_.DEFAULT_ACCESSIBLE_PRESET,t=this._paletteSettings.palette,n="string"==typeof t&&f.PALETTEPRESETS[t]?f.PALETTEPRESETS[t].columns:void 0;this._paletteSettings={palette:t||e,tileSize:this._paletteSettings.tileSize||24,columns:this._paletteSettings.columns||n||10}},e.prototype.ngAfterViewInit=function(){var e=this;["size","rounded","fillMode"].forEach((function(t){e.handleClasses(e[t],t)})),this.setHostElementAriaLabel(),this.handleHostId(),this.initDomEvents()},e.prototype.ngOnChanges=function(e){e.format&&"name"===e.format.currentValue&&(this.activeView="palette"),"gradient"===this.activeView&&this.gradientSettings.opacity&&(this.format="rgba",this.value=v.parseColor(this.value,this.format,this.gradientSettings.opacity)),d.isChanged("value",e)&&this.setHostElementAriaLabel()},e.prototype.ngOnDestroy=function(){this.closePopup(),this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe(),this.subscriptions.unsubscribe(),this.handleDomEvents("remove",b)},e.prototype.handleCancelEvent=function(e){this.cancel.emit(e)},e.prototype.togglePopup=function(){this.focus(),this.toggleWithEvents(!this.isOpen)},e.prototype.handleWrapperClick=function(e){var t=this;if(!this.disabled){if(this.focus(),d.closest(e.target,(function(e){return e===t.activeColor.nativeElement}))){var n=new m.ActiveColorClickEvent(this.value);return this.activeColorClick.emit(n),void(n.isOpenPrevented()&&!this.isOpen||this.toggleWithEvents(!this.isOpen))}this.toggleWithEvents(!this.isOpen)}},e.prototype.focus=function(){this.isFocused=!0,this.host.nativeElement.focus()},e.prototype.handleWrapperFocus=function(){var e=this;this.isFocused||this.ngZone.run((function(){e.focus(),e.onFocus.emit()}))},e.prototype.blur=function(){this.isFocused=!1,this.host.nativeElement.blur(),this.notifyNgTouched()},e.prototype.handleWrapperBlur=function(){var e=this;this.isOpen||this.ngZone.run((function(){e.onBlur.emit(),e.isFocused=!1}))},e.prototype.reset=function(){g.isPresent(this.value)&&(this._value=void 0,this.setHostElementAriaLabel(),this.notifyNgChanged(void 0))},e.prototype.toggle=function(e){this.disabled||this.readonly||(this.cdr.markForCheck(),this.closePopup(),(e=g.isPresent(e)?e:!this.isOpen)&&this.openPopup())},e.prototype.handleValueChange=function(e){var t=v.parseColor(e,this.format,this.gradientSettings.opacity);t!==this.value&&(this.value=t,this.valueChange.emit(t),this.setHostElementAriaLabel(),this.notifyNgChanged(t))},e.prototype.handlePopupBlur=function(e){this.popupBlurInvalid(e)||(this.isFocused=!1,this.onBlur.emit(),this.notifyNgTouched(),this.toggleWithEvents(!1))},e.prototype.writeValue=function(e){this.value=e},e.prototype.registerOnChange=function(e){this.notifyNgChanged=e},e.prototype.registerOnTouched=function(e){this.notifyNgTouched=e},e.prototype.setDisabledState=function(e){this.cdr.markForCheck(),this.disabled=e},e.prototype.handleWrapperKeyDown=function(e){var t=this;e.keyCode!==d.Keys.ArrowDown&&e.keyCode!==d.Keys.Enter||(e.preventDefault(),this.ngZone.run((function(){t.toggleWithEvents(!0)})))},e.prototype.handlePopupKeyDown=function(e){if(e.keyCode===d.Keys.Escape&&(this.toggleWithEvents(!1),this.host.nativeElement.focus()),e.keyCode===d.Keys.Tab){var t=e.shiftKey?this.firstFocusableElement.nativeElement:this.lastFocusableElement.nativeElement,n=e.shiftKey?this.lastFocusableElement.nativeElement:this.firstFocusableElement.nativeElement;e.target===t&&(e.preventDefault(),n.focus())}},e.prototype.isEmpty=function(){return!1},e.prototype.setHostElementAriaLabel=function(){var e=""+(this.value?this.value:this.localizationService.get("colorPickerNoColor"));this.renderer.setAttribute(this.host.nativeElement,"aria-label",e)},e.prototype.handleClasses=function(e,t){var n=this.host.nativeElement,i=g.getStylingClasses("picker",t,this[t],e);i.toRemove&&this.renderer.removeClass(n,i.toRemove),i.toAdd&&this.renderer.addClass(n,i.toAdd)},e.prototype.popupBlurInvalid=function(e){var t=this,n=this.popupRef.popupElement.contains(e.relatedTarget);return d.closest(e.relatedTarget,(function(e){return e===t.host.nativeElement}))||n},e.prototype.toggleWithEvents=function(e){var t,n=this.isOpen===e;this.disabled||this.readonly||n||(e?(t=new m.ColorPickerOpenEvent,this.open.emit(t)):(t=new m.ColorPickerCloseEvent,this.close.emit(t)),t.isDefaultPrevented()||this.toggle(e),e&&this.focusFirstElement())},e.prototype.focusFirstElement=function(){var e=this;this.ngZone.onStable.pipe(r.take(1)).subscribe((function(){if(e.flatColorPicker){var t=e.flatColorPicker.gradient;(t?t.gradientDragHandle:e.flatColorPicker.palette.host).nativeElement.focus()}}))},e.prototype.openPopup=function(){var e=this,t="rtl"===this.direction?"right":"left",n={horizontal:t,vertical:"bottom"},i={horizontal:t,vertical:"top"};this.popupRef=this.popupService.open({anchor:this.activeColor,animate:this.popupSettings.animate,appendTo:this.popupSettings.appendTo,popupAlign:i,anchorAlign:n,popupClass:"k-colorpicker-popup",content:this.popupTemplate,positionMode:"absolute"}),this.popupRef.popupAnchorViewportLeave.subscribe((function(){e.toggleWithEvents(!1),e.isOpen||e.host.nativeElement.focus({preventScroll:!0})}))},e.prototype.closePopup=function(){this.isOpen&&(this.popupRef.close(),this.popupRef=null)},Object.defineProperty(e.prototype,"firstFocusableElement",{get:function(){if(!this.flatColorPicker.header||this.views.length<=1&&!this.flatColorPicker.clearButton){var e=this.flatColorPicker.gradient;return e?e.gradientDragHandle:this.flatColorPicker.palette.host}return this.views.length>1?this.flatColorPicker.header.viewButtonsCollection.toArray()[0]:this.flatColorPicker.header.clearButtonElement},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lastFocusableElement",{get:function(){if(this.preview)return this.flatColorPicker.footer.lastButton;if(this.flatColorPicker.palette)return this.flatColorPicker.palette.host;var e=this.flatColorPicker.gradient,t=e&&e.inputs;return e&&t&&"hex"===t.formatView?t.hexInput:this.gradientSettings.opacity?t.opacityInput.numericInput:t.blueInput},enumerable:!0,configurable:!0}),e.prototype.handleDomEvents=function(e,t){var n=this,i=this.host.nativeElement;t.forEach((function(t){return i[e+"EventListener"](t,n.domFocusListener,!0)}))},e.prototype.initDomEvents=function(){var e=this;if(this.host){var t=this.host.nativeElement;this.ngZone.runOutsideAngular((function(){e.subscriptions.add(e.renderer.listen(t,"focusin",(function(){e.handleWrapperFocus()}))),e.subscriptions.add(e.renderer.listen(t,"focusout",(function(t){var n=!!e.popupRef&&d.closest(t.relatedTarget,(function(t){return t===e.flatColorPicker.host.nativeElement})),i=d.closest(t.relatedTarget,(function(t){return t===e.host.nativeElement}));n||i||e.handleWrapperBlur()}))),e.handleDomEvents("add",b),e.subscriptions.add(e.renderer.listen(t,"keydown",(function(t){e.handleWrapperKeyDown(t)}))),e.subscriptions.add(e.renderer.listen(t,"click",(function(t){e.ngZone.run((function(){e.handleWrapperClick(t)}))})))}))}},e.prototype.handleHostId=function(){var e=this.host.nativeElement,t=e.getAttribute("id");if(t)this.focusableId=t;else{var n="k-"+d.guid();e.setAttribute("id",n),this.focusableId=n}},i.__decorate([o.HostBinding("class.k-colorpicker"),o.HostBinding("class.k-icon-picker"),o.HostBinding("class.k-picker"),i.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),i.__decorate([o.HostBinding("class.k-focus"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"focusedClass",null),i.__decorate([o.HostBinding("attr.aria-disabled"),o.HostBinding("class.k-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"disabledClass",null),i.__decorate([o.HostBinding("attr.aria-readonly"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"ariaReadonly",null),i.__decorate([o.HostBinding("attr.aria-expanded"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"ariaExpanded",null),i.__decorate([o.HostBinding("attr.tabindex"),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[])],e.prototype,"hostTabindex",null),i.__decorate([o.HostBinding("attr.dir"),i.__metadata("design:type",String)],e.prototype,"direction",void 0),i.__decorate([o.HostBinding("attr.role"),i.__metadata("design:type",String)],e.prototype,"role",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Array)],e.prototype,"views",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"view",null),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"activeView",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"readonly",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"format",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"value",null),i.__decorate([o.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"popupSettings",null),i.__decorate([o.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"paletteSettings",null),i.__decorate([o.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"gradientSettings",null),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"icon",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"iconClass",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"clearButton",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],e.prototype,"tabindex",null),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"preview",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"actionsLayout",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"size",null),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"rounded",null),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"fillMode",null),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"open",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"close",void 0),i.__decorate([o.Output("focus"),i.__metadata("design:type",o.EventEmitter)],e.prototype,"onFocus",void 0),i.__decorate([o.Output("blur"),i.__metadata("design:type",o.EventEmitter)],e.prototype,"onBlur",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"cancel",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"activeColorClick",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"activeViewChange",void 0),i.__decorate([o.ViewChild("container",{read:o.ViewContainerRef,static:!0}),i.__metadata("design:type",o.ViewContainerRef)],e.prototype,"container",void 0),i.__decorate([o.ViewChild("activeColor",{static:!0}),i.__metadata("design:type",o.ElementRef)],e.prototype,"activeColor",void 0),i.__decorate([o.ViewChild("popupTemplate",{static:!0}),i.__metadata("design:type",o.TemplateRef)],e.prototype,"popupTemplate",void 0),i.__decorate([o.ViewChild("flatColorPicker",{static:!1}),i.__metadata("design:type",u.FlatColorPickerComponent)],e.prototype,"flatColorPicker",void 0),e=t=i.__decorate([o.Component({exportAs:"kendoColorPicker",selector:"kendo-colorpicker",providers:[{multi:!0,provide:a.NG_VALUE_ACCESSOR,useExisting:o.forwardRef((function(){return t}))},{provide:d.KendoInput,useExisting:o.forwardRef((function(){return t}))},y.ColorPickerLocalizationService,{provide:p.LocalizationService,useExisting:y.ColorPickerLocalizationService},{provide:p.L10N_PREFIX,useValue:"kendo.colorpicker"}],template:'\n <ng-container kendoColorPickerLocalizedMessages\n i18n-colorPickerNoColor="kendo.colorpicker.colorPickerNoColor|The aria-label applied to the ColorPicker component when the value is empty."\n colorPickerNoColor="Colorpicker no color chosen"\n i18n-flatColorPickerNoColor="kendo.colorpicker.flatColorPickerNoColor|The aria-label applied to the FlatColorPicker component when the value is empty."\n flatColorPickerNoColor="Flatcolorpicker no color chosen"\n i18n-colorGradientNoColor="kendo.colorpicker.colorGradientNoColor|The aria-label applied to the ColorGradient component when the value is empty."\n colorGradientNoColor="Colorgradient no color chosen"\n i18n-colorPaletteNoColor="kendo.colorpicker.colorPaletteNoColor|The aria-label applied to the ColorPalette component when the value is empty."\n colorPaletteNoColor="Colorpalette no color chosen"\n i18n-colorGradientHandle="kendo.colorpicker.colorGradientHandle|The title for the gradient color drag handle chooser."\n colorGradientHandle="Choose color"\n i18n-clearButton="kendo.colorpicker.clearButton|The title for the clear button."\n clearButton="Clear value"\n i18n-hueSliderHandle="kendo.colorpicker.hueSliderHandle|The title for the hue slider handle."\n hueSliderHandle="Set hue"\n i18n-opacitySliderHandle="kendo.colorpicker.opacitySliderHandle|The title for the opacity slider handle."\n opacitySliderHandle="Set opacity"\n i18n-contrastRatio="kendo.colorpicker.contrastRatio|The contrast ratio message for the contrast tool."\n contrastRatio="Contrast ratio"\n i18n-previewColor="kendo.colorpicker.previewColor|The message for the color preview pane."\n previewColor="Color preview"\n i18n-revertSelection="kendo.colorpicker.revertSelection|The message for the selected color pane."\n revertSelection="Revert selection"\n i18n-gradientView="kendo.colorpicker.gradientView|The message for the gradient view button."\n gradientView="Gradient view"\n i18n-paletteView="kendo.colorpicker.paletteView|The message for the palette view button."\n paletteView="Palette view"\n i18n-formatButton="kendo.colorpicker.formatButton|The message for the input format toggle button."\n formatButton="Change color format"\n i18n-applyButton="kendo.colorpicker.applyButton|The message for the Apply action button."\n applyButton="Apply"\n i18n-cancelButton="kendo.colorpicker.cancelButton|The message for the Cancel action button."\n cancelButton="Cancel">\n </ng-container>\n <span #activeColor class="k-input-inner">\n <span\n class="k-value-icon k-color-preview"\n [ngClass]="{\'k-icon-color-preview\': iconStyles, \'k-no-color\': !value}">\n <span *ngIf="iconClass || icon" class="k-color-preview-icon k-icon" [ngClass]="iconStyles"></span>\n <span class="k-color-preview-mask" [style.background-color]="value"></span>\n </span>\n </span>\n <button\n tabindex="-1"\n type="button"\n class="k-input-button k-button k-button-md k-button-solid k-button-solid-base k-icon-button">\n <span class="k-button-icon k-icon k-i-arrow-s"></span>\n </button>\n <ng-template #popupTemplate>\n <kendo-flatcolorpicker\n #flatColorPicker\n [value]="value"\n [format]="format"\n [views]="views"\n [activeView]="activeView"\n [actionsLayout]="actionsLayout"\n [preview]="preview"\n [gradientSettings]="gradientSettings"\n [paletteSettings]="paletteSettings"\n [clearButton]="clearButton"\n (cancel)="handleCancelEvent($event)"\n (focusout)="handlePopupBlur($event)"\n (valueChange)="handleValueChange($event)"\n (keydown)="handlePopupKeyDown($event)"\n (activeViewChange)="activeViewChange.emit($event)"\n (actionButtonClick)="togglePopup()">\n </kendo-flatcolorpicker>\n </ng-template>\n <ng-container #container></ng-container>\n '}),i.__metadata("design:paramtypes",[o.ElementRef,c.PopupService,o.ChangeDetectorRef,p.LocalizationService,o.NgZone,o.Renderer2])],e)}();t.ColorPickerComponent=C},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(2),a=function(e){function t(t,n,i){return e.call(this,t,n,i)||this}return i.__extends(t,e),t=i.__decorate([i.__param(0,r.Inject(o.L10N_PREFIX)),i.__param(1,r.Optional()),i.__param(2,r.Optional()),i.__param(2,r.Inject(o.RTL)),i.__metadata("design:paramtypes",[String,o.MessageService,Boolean])],t)}(o.LocalizationService);t.ColorPickerLocalizationService=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(13),a=n(4),s=n(3),u=n(7),c=n(2),l=n(18),d=function(){function e(e,t,n){this.host=e,this.renderer=t,this.localizationService=n,this.focusableId="k-"+s.guid(),this.opacity=!0,this.disabled=!1,this.readonly=!1,this.valueChange=new r.EventEmitter,this.colorInputClass=!0,this.rgba={},this.subscriptions=new u.Subscription}return Object.defineProperty(e.prototype,"isFocused",{get:function(){if(!s.isDocumentAvailable()||!a.isPresent(this.host))return!1;var e=document.activeElement;return this.host.nativeElement.contains(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rgbaInputValid",{get:function(){var e=this;return Object.keys(this.rgba).every((function(t){return a.isPresent(e.rgba[t])}))},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){this.initDomEvents()},e.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},e.prototype.ngOnChanges=function(e){a.isPresent(e.value)&&!this.isFocused&&(this.hex=o.parseColor(this.value,"hex",this.opacity),this.rgba=o.getRGBA(this.value),this.rgba.a=o.parseColor(this.value,"rgba",this.opacity)?this.rgba.a:1)},Object.defineProperty(e.prototype,"formatButtonTitle",{get:function(){return this.localizationService.get("formatButton")},enumerable:!0,configurable:!0}),e.prototype.handleRgbaValueChange=function(){var e=o.getColorFromRGBA(this.rgba);this.rgbaInputValid&&e!==this.value&&(this.value=e,this.rgba=o.getRGBA(this.value),this.hex=o.parseColor(e,"hex",this.opacity),this.valueChange.emit(e))},e.prototype.handleHexValueChange=function(e){this.hex=e;var t=o.parseColor(e,"rgba",this.opacity);a.isPresent(t)&&t!==this.value&&(this.value=t,this.rgba=o.getRGBA(t),this.valueChange.emit(t))},e.prototype.handleRgbaInputBlur=function(){this.rgbaInputValid||(this.rgba=o.getRGBA(this.value))},e.prototype.handleHexInputBlur=function(){this.hex=o.parseColor(this.value,"hex",this.opacity)},e.prototype.toggleFormatView=function(){this.formatView="hex"===this.formatView?"rgba":"hex"},e.prototype.initDomEvents=function(){var e=this;this.host&&this.subscriptions.add(this.renderer.listen(this.toggleFormatButton.nativeElement,"click",(function(){return e.toggleFormatView()})))},i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"focusableId",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"formatView",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"value",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"opacity",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"readonly",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"valueChange",void 0),i.__decorate([r.HostBinding("class.k-colorgradient-inputs"),r.HostBinding("class.k-hstack"),i.__metadata("design:type",Boolean)],e.prototype,"colorInputClass",void 0),i.__decorate([r.ViewChild("opacityInput",{static:!1}),i.__metadata("design:type",l.NumericTextBoxComponent)],e.prototype,"opacityInput",void 0),i.__decorate([r.ViewChild("hexInput",{read:r.ElementRef,static:!1}),i.__metadata("design:type",r.ElementRef)],e.prototype,"hexInput",void 0),i.__decorate([r.ViewChild("blueInput",{read:r.ElementRef,static:!1}),i.__metadata("design:type",r.ElementRef)],e.prototype,"blueInput",void 0),i.__decorate([r.ViewChild("toggleFormatButton",{static:!1}),i.__metadata("design:type",r.ElementRef)],e.prototype,"toggleFormatButton",void 0),e=i.__decorate([r.Component({selector:"kendo-colorinput",template:'\n <div class="k-vstack">\n <button #toggleFormatButton\n class="k-colorgradient-toggle-mode k-button k-button-md k-button-flat k-button-flat-base k-icon-button"\n [attr.aria-label]="formatButtonTitle"\n [attr.title]="formatButtonTitle"\n type="button"\n >\n <span class="k-button-icon k-icon k-i-arrows-kpi"></span>\n </button>\n </div>\n <div *ngIf="formatView === \'hex\'" class="k-vstack">\n <input\n #hexInput\n [id]="focusableId"\n class="k-input k-textbox k-input-solid k-input-md k-rounded-md k-hex-value"\n [disabled]="disabled"\n [readonly]="readonly"\n [value]="hex || \'\'"\n (blur)="handleHexInputBlur()"\n (input)="handleHexValueChange(hexInput.value)"\n />\n <label [for]="focusableId" class="k-colorgradient-input-label">HEX</label>\n </div>\n <ng-container *ngIf="formatView === \'rgba\'">\n <div class="k-vstack">\n <kendo-numerictextbox\n #red\n [disabled]="disabled"\n [readonly]="readonly"\n [min]="0"\n [max]="255"\n [(value)]="rgba.r"\n [autoCorrect]="true"\n [spinners]="false"\n [format]="\'n\'"\n [decimals]="0"\n (blur)="handleRgbaInputBlur()"\n (valueChange)="handleRgbaValueChange()">\n </kendo-numerictextbox>\n <label [for]="red.focusableId" class="k-colorgradient-input-label">R</label>\n </div>\n <div class="k-vstack">\n <kendo-numerictextbox\n #green\n [disabled]="disabled"\n [readonly]="readonly"\n [min]="0"\n [max]="255"\n [(value)]="rgba.g"\n [autoCorrect]="true"\n [spinners]="false"\n [format]="\'n\'"\n [decimals]="0"\n (blur)="handleRgbaInputBlur()"\n (valueChange)="handleRgbaValueChange()">\n </kendo-numerictextbox>\n <label [for]="green.focusableId" class="k-colorgradient-input-label">G</label>\n </div>\n <div class="k-vstack">\n <kendo-numerictextbox\n #blue\n [disabled]="disabled"\n [readonly]="readonly"\n [min]="0"\n [max]="255"\n [(value)]="rgba.b"\n [autoCorrect]="true"\n [spinners]="false"\n [format]="\'n\'"\n [decimals]="0"\n (blur)="handleRgbaInputBlur()"\n (valueChange)="handleRgbaValueChange()">\n </kendo-numerictextbox>\n <label [for]="blue.focusableId" class="k-colorgradient-input-label">B</label>\n </div>\n <div class="k-vstack" *ngIf="opacity">\n <kendo-numerictextbox #opacityInput\n #alpha\n [disabled]="disabled"\n [readonly]="readonly"\n [min]="0"\n [max]="1"\n [(value)]="rgba.a"\n [autoCorrect]="true"\n [spinners]="false"\n [step]="0.01"\n [format]="\'n2\'"\n [decimals]="2"\n (blur)="handleRgbaInputBlur()"\n (valueChange)="handleRgbaValueChange()">\n </kendo-numerictextbox>\n <label [for]="alpha.focusableId" class="k-colorgradient-input-label">A</label>\n </div>\n </ng-container>\n '}),i.__metadata("design:paramtypes",[r.ElementRef,r.Renderer2,c.LocalizationService])],e)}();t.ColorInputComponent=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(2),a=function(){function e(e){this.localizationService=e,this.hostClasses=!0,this.viewChange=new r.EventEmitter,this.valuePaneClick=new r.EventEmitter,this.clearButtonClick=new r.EventEmitter}return e.prototype.onViewButtonClick=function(e){this.activeView=e,this.viewChange.emit(e)},Object.defineProperty(e.prototype,"viewButtons",{get:function(){return this.views&&this.views.indexOf("gradient")>=0&&this.views.indexOf("palette")>=0},enumerable:!0,configurable:!0}),e.prototype.getViewButtonIcon=function(e){return"gradient"===e?"k-i-color-canvas":"k-i-palette"},e.prototype.getText=function(e){return this.localizationService.get(e)},i.__decorate([r.HostBinding("class.k-coloreditor-header"),r.HostBinding("class.k-hstack"),i.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"clearButton",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"activeView",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Array)],e.prototype,"views",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"preview",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"value",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"selection",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"viewChange",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"valuePaneClick",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"clearButtonClick",void 0),i.__decorate([r.ViewChildren("viewButtons",{read:r.ElementRef}),i.__metadata("design:type",r.QueryList)],e.prototype,"viewButtonsCollection",void 0),i.__decorate([r.ViewChild("clearButton",{read:r.ElementRef,static:!1}),i.__metadata("design:type",r.ElementRef)],e.prototype,"clearButtonElement",void 0),e=i.__decorate([r.Component({selector:"[kendoFlatColorPickerHeader]",template:'\n <div class="k-coloreditor-header-actions k-hstack">\n <div *ngIf="viewButtons" class="k-button-group k-button-group-flat">\n <button *ngFor="let view of views"\n #viewButtons\n type="button"\n (click)="onViewButtonClick(view)"\n class="k-button k-button-md k-button-flat k-button-flat-base k-icon-button"\n [attr.title]="getText(view === \'gradient\' ? \'gradientView\' : \'paletteView\')"\n [attr.aria-label]="getText(view === \'gradient\' ? \'gradientView\' : \'paletteView\')"\n [attr.aria-pressed]="activeView === view"\n [ngClass]="activeView === view ? \'k-state-selected\' : \'\'"\n >\n <span\n class="k-button-icon k-icon"\n [ngClass]="getViewButtonIcon(view)">\n </span>\n </button>\n </div>\n </div>\n <div class="k-spacer"></div>\n <div class="k-coloreditor-header-actions k-hstack">\n <button *ngIf="clearButton"\n #clearButton\n type="button"\n class="k-button k-button-md k-button-flat k-button-flat-base k-icon-button k-coloreditor-reset"\n [attr.aria-label]="getText(\'clearButton\')"\n [attr.title]="getText(\'clearButton\')"\n (click)="clearButtonClick.emit()">\n <span class="k-button-icon k-icon k-i-reset-color"></span>\n </button>\n <div class="k-coloreditor-preview k-vstack" *ngIf="preview">\n <span\n class="k-coloreditor-preview-color k-color-preview"\n [attr.title]="getText(\'previewColor\')"\n [style.background-color]="selection">\n </span>\n <span class="k-coloreditor-current-color k-color-preview"\n [style.background-color]="value"\n [attr.title]="getText(\'revertSelection\')"\n (click)="valuePaneClick.emit($event)">\n </span>\n </div>\n </div>\n '}),i.__metadata("design:paramtypes",[o.LocalizationService])],e)}();t.FlatColorPickerHeaderComponent=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(2),a=function(){function e(e){this.localizationService=e,this.hostClasses=!0,this.actionButtonClick=new r.EventEmitter}return e.prototype.getText=function(e){return this.localizationService.get(e)},e.prototype.onActionButtonClick=function(e,t){var n={target:e,originalEvent:t};this.actionButtonClick.emit(n)},i.__decorate([r.HostBinding("class.k-coloreditor-footer"),r.HostBinding("class.k-actions"),r.HostBinding("class.k-hstack"),i.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"actionButtonClick",void 0),i.__decorate([r.ViewChild("last",{read:r.ElementRef,static:!1}),i.__metadata("design:type",r.ElementRef)],e.prototype,"lastButton",void 0),e=i.__decorate([r.Component({selector:"[kendoFlatColorPickerActionButtons]",template:'\n <button\n class="k-coloreditor-cancel k-button k-button-md k-button-solid k-button-solid-base"\n [attr.title]="getText(\'cancelButton\')"\n (click)="onActionButtonClick(\'cancel\', $event)"\n type="button"\n >{{getText(\'cancelButton\')}}</button>\n <button #last\n class="k-coloreditor-apply k-button k-button-md k-button-solid k-button-solid-primary"\n [attr.title]="getText(\'applyButton\')"\n (click)="onActionButtonClick(\'apply\', $event)"\n type="button"\n >{{getText(\'applyButton\')}}</button>\n '}),i.__metadata("design:paramtypes",[o.LocalizationService])],e)}();t.FlatColorPickerActionButtonsComponent=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"colorPaletteNoColor",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"colorGradientNoColor",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"flatColorPickerNoColor",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"colorPickerNoColor",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"colorGradientHandle",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"clearButton",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"hueSliderHandle",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"opacitySliderHandle",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"hexInputPlaceholder",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"redInputPlaceholder",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"greenInputPlaceholder",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"blueInputPlaceholder",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"alphaInputPlaceholder",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"passContrast",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"failContrast",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"contrastRatio",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"previewColor",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"revertSelection",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"gradientView",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"paletteView",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"formatButton",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"applyButton",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"cancelButton",void 0),t}(n(2).ComponentMessages);t.ColorPickerMessages=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(2),a=n(73),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,t=n=i.__decorate([r.Directive({providers:[{provide:a.ColorPickerMessages,useExisting:r.forwardRef((function(){return n}))}],selector:"[kendoColorPickerLocalizedMessages], [kendoFlatColorPickerLocalizedMessages], [kendoColorGradientLocalizedMessages], [kendoColorPaletteLocalizedMessages]"}),i.__metadata("design:paramtypes",[o.LocalizationService])],t)}(a.ColorPickerMessages);t.LocalizedColorPickerMessagesDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(76),a=n(6),s=function(){function e(){}return e=i.__decorate([r.NgModule({declarations:[o.CheckBoxDirective],exports:[o.CheckBoxDirective],imports:[a.CommonModule]})],e)}();t.CheckBoxModule=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(4),a=function(){function e(e,t){this.renderer=e,this.hostElement=t,this.kendoClass=!0,this._size="medium",this._rounded="medium"}return Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(e){this.handleClasses(e,"size"),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.handleClasses(e,"rounded"),this._rounded=e},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){var e=this;["size","rounded"].forEach((function(t){e.handleClasses(e[t],t)}))},e.prototype.handleClasses=function(e,t){var n=this.hostElement.nativeElement,i=o.getStylingClasses("checkbox",t,this[t],e);i.toRemove&&this.renderer.removeClass(n,i.toRemove),i.toAdd&&this.renderer.addClass(n,i.toAdd)},i.__decorate([r.HostBinding("class.k-checkbox"),i.__metadata("design:type",Boolean)],e.prototype,"kendoClass",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"size",null),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"rounded",null),e=i.__decorate([r.Directive({selector:"input[kendoCheckBox]"}),i.__metadata("design:paramtypes",[r.Renderer2,r.ElementRef])],e)}();t.CheckBoxDirective=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(78),a=n(6),s=function(){function e(){}return e=i.__decorate([r.NgModule({declarations:[o.RadioButtonDirective],exports:[o.RadioButtonDirective],imports:[a.CommonModule]})],e)}();t.RadioButtonModule=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(8),a=n(4),s=n(9),u=function(){function e(e,t){this.renderer=e,this.hostElement=t,this.kendoClass=!0,this._size="medium",o.validatePackage(s.packageMetadata)}return Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(e){this.handleClasses(e,"size"),this._size=e},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){var e=this;["size"].forEach((function(t){e.handleClasses(e[t],t)}))},e.prototype.handleClasses=function(e,t){var n=this.hostElement.nativeElement,i=a.getStylingClasses("radio",t,this[t],e);i.toRemove&&this.renderer.removeClass(n,i.toRemove),i.toAdd&&this.renderer.addClass(n,i.toAdd)},i.__decorate([r.HostBinding("class.k-radio"),i.__metadata("design:type",Boolean)],e.prototype,"kendoClass",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"size",null),e=i.__decorate([r.Directive({selector:"input[kendoRadioButton]"}),i.__metadata("design:paramtypes",[r.Renderer2,r.ElementRef])],e)}();t.RadioButtonDirective=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(6),a=n(80),s=n(31),u=n(30),c=function(){function e(){}return e=i.__decorate([r.NgModule({declarations:[s.HintComponent,u.ErrorComponent,a.FormFieldComponent],exports:[s.HintComponent,u.ErrorComponent,a.FormFieldComponent],imports:[o.CommonModule]})],e)}();t.FormFieldModule=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(5),a=n(7),s=n(3),u=n(2),c=n(8),l=n(9),d=n(30),p=n(31),h=function(){function e(e,t,n){var i=this;this.renderer=e,this.localizationService=t,this.hostElement=n,this.hostClass=!0,this.showHints="initial",this.orientation="vertical",this.showErrors="initial",this.subscriptions=new a.Subscription,this.rtl=!1,c.validatePackage(l.packageMetadata),this.subscriptions.add(this.localizationService.changes.subscribe((function(e){var t=e.rtl;i.rtl=t,i.direction=i.rtl?"rtl":"ltr"})))}return Object.defineProperty(e.prototype,"errorClass",{get:function(){return!!this.control&&(this.control.invalid&&(this.control.touched||this.control.dirty))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return!!this.control&&(!this.isRadioControl(this.control)&&(this.disabledControl()||this.disabledElement()||this.disabledKendoInput()))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formControls",{set:function(e){this.validateFormControl(e),this.control=e.first},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"horizontal",{get:function(){return"horizontal"===this.orientation},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasHints",{get:function(){return"always"===this.showHints||this.showHintsInitial()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasErrors",{get:function(){return"always"===this.showErrors||this.showErrorsInitial()},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){this.setDescription()},e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},e.prototype.disabledKendoInput=function(){return this.kendoInput&&this.kendoInput.disabled},e.prototype.disabledControl=function(){return this.control.disabled},e.prototype.disabledElement=function(){return this.controlElementRefs.toArray().every((function(e){return e.nativeElement.hasAttribute("disabled")}))},e.prototype.validateFormControl=function(e){if(r.isDevMode()&&1!==e.length&&!this.isControlGroup(e))throw new Error("The `kendo-formfield` component should contain only one control of type NgControl with a formControlName(https://angular.io/api/forms/FormControlName)or an ngModel(https://angular.io/api/forms/NgModel) binding.")},e.prototype.isControlGroup=function(e){var t=this;if(!e.length)return!1;var n=e.first.name;return e.toArray().every((function(e){return e.name===n&&t.isRadioControl(e)}))},e.prototype.isRadioControl=function(e){return e.valueAccessor instanceof o.RadioControlValueAccessor},e.prototype.updateDescription=function(){var e=this,t=this.findControlElements();t&&t.forEach((function(t){if(e.errorChildren.length>0||e.hintChildren.length>0){var n=e.generateDescriptionIds(t);e.renderer.setAttribute(t,"aria-describedby",n)}}))},e.prototype.findControlElements=function(){if(this.controlElementRefs)return this.kendoInput&&this.kendoInput.focusableId&&s.isDocumentAvailable()?[this.hostElement.nativeElement.querySelector("#"+this.kendoInput.focusableId)]:this.controlElementRefs.map((function(e){return e.nativeElement}))},e.prototype.generateDescriptionIds=function(e){var t=new Set;e.hasAttribute("aria-describedby")&&e.getAttribute("aria-describedby").split(" ").forEach((function(e){e.includes("kendo-hint-")||e.includes("kendo-error-")||t.add(e)}));return this.hintChildren.forEach((function(e){t.add(e.id)})),this.errorChildren.forEach((function(e){t.add(e.id)})),Array.from(t).join(" ")},e.prototype.showHintsInitial=function(){if(!this.control)return!0;var e=this.control,t=e.valid,n=e.untouched,i=e.pristine;return t||n&&i},e.prototype.showErrorsInitial=function(){if(!this.control)return!1;var e=this.control,t=e.invalid,n=e.dirty,i=e.touched;return t&&(n||i)},e.prototype.setDescription=function(){var e=this;this.updateDescription(),this.subscriptions.add(this.errorChildren.changes.subscribe((function(){return e.updateDescription()}))),this.subscriptions.add(this.hintChildren.changes.subscribe((function(){return e.updateDescription()})))},i.__decorate([r.HostBinding("class.k-form-field"),i.__metadata("design:type",Boolean)],e.prototype,"hostClass",void 0),i.__decorate([r.HostBinding("attr.dir"),i.__metadata("design:type",String)],e.prototype,"direction",void 0),i.__decorate([r.HostBinding("class.k-form-field-error"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"errorClass",null),i.__decorate([r.HostBinding("class.k-form-field-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"disabledClass",null),i.__decorate([r.ContentChildren(o.NgControl,{descendants:!0}),i.__metadata("design:type",r.QueryList),i.__metadata("design:paramtypes",[r.QueryList])],e.prototype,"formControls",null),i.__decorate([r.ContentChildren(o.NgControl,{read:r.ElementRef,descendants:!0}),i.__metadata("design:type",r.QueryList)],e.prototype,"controlElementRefs",void 0),i.__decorate([r.ContentChild(s.KendoInput,{static:!0}),i.__metadata("design:type",Object)],e.prototype,"kendoInput",void 0),i.__decorate([r.ContentChildren(d.ErrorComponent,{descendants:!0}),i.__metadata("design:type",r.QueryList)],e.prototype,"errorChildren",void 0),i.__decorate([r.ContentChildren(p.HintComponent,{descendants:!0}),i.__metadata("design:type",r.QueryList)],e.prototype,"hintChildren",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"showHints",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"orientation",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"showErrors",void 0),e=i.__decorate([r.Component({selector:"kendo-formfield",template:'\n <ng-content select="label, kendo-label"></ng-content>\n <div [class.k-form-field-wrap]="horizontal">\n <ng-content></ng-content>\n <ng-content select="kendo-formhint" *ngIf="hasHints"></ng-content>\n <ng-content select="kendo-formerror" *ngIf="hasErrors"></ng-content>\n </div>\n ',providers:[u.LocalizationService,{provide:u.L10N_PREFIX,useValue:"kendo.formfield"}]}),i.__metadata("design:paramtypes",[r.Renderer2,u.LocalizationService,r.ElementRef])],e)}();t.FormFieldComponent=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(16);t.SliderComponent=r.SliderComponent;var o=n(35);t.RangeSliderComponent=o.RangeSliderComponent;var a=n(15);t.LabelTemplateDirective=a.LabelTemplateDirective;var s=n(36);t.SwitchComponent=s.SwitchComponent;var u=n(37);t.TextBoxDirective=u.TextBoxDirective;var c=n(38);t.TextAreaDirective=c.TextAreaDirective;var l=n(18);t.NumericTextBoxComponent=l.NumericTextBoxComponent;var d=n(40);t.NumericTextBoxCustomMessagesComponent=d.NumericTextBoxCustomMessagesComponent;var p=n(42);t.MaskedTextBoxComponent=p.MaskedTextBoxComponent;var h=n(92);t.InputsModule=h.InputsModule;var f=n(46);t.SliderTicksComponent=f.SliderTicksComponent;var m=n(19);t.SliderModule=m.SliderModule;var v=n(49);t.RangeSliderModule=v.RangeSliderModule;var g=n(52);t.SwitchModule=g.SwitchModule;var y=n(20);t.NumericTextBoxModule=y.NumericTextBoxModule;var _=n(56);t.MaskedTextBoxModule=_.MaskedTextBoxModule;var b=n(57);t.TextBoxModule=b.TextBoxModule;var C=n(63);t.TextAreaModule=C.TextAreaModule;var k=n(75);t.CheckBoxModule=k.CheckBoxModule;var w=n(77);t.RadioButtonModule=w.RadioButtonModule;var x=n(68);t.ColorPickerComponent=x.ColorPickerComponent;var S=n(29);t.ColorPaletteComponent=S.ColorPaletteComponent;var E=n(28);t.ColorGradientComponent=E.ColorGradientComponent;var P=n(66);t.ColorPickerModule=P.ColorPickerModule,i.__exportStar(n(27),t);var I=n(24);t.FlatColorPickerComponent=I.FlatColorPickerComponent;var T=n(76);t.CheckBoxDirective=T.CheckBoxDirective;var O=n(78);t.RadioButtonDirective=O.RadioButtonDirective;var B=n(31);t.HintComponent=B.HintComponent;var V=n(30);t.ErrorComponent=V.ErrorComponent;var R=n(80);t.FormFieldComponent=R.FormFieldComponent;var M=n(79);t.FormFieldModule=M.FormFieldModule;var N=n(58);t.TextBoxComponent=N.TextBoxComponent;var A=n(22);t.TextBoxPrefixTemplateDirective=A.TextBoxPrefixTemplateDirective;var j=n(21);t.TextBoxSuffixTemplateDirective=j.TextBoxSuffixTemplateDirective;var D=n(64);t.TextAreaComponent=D.TextAreaComponent;var z=n(65);t.TextAreaSuffixComponent=z.TextAreaSuffixComponent;var F=n(62);t.InputSeparatorComponent=F.InputSeparatorComponent;var H=n(23);t.SharedModule=H.SharedModule;var L=n(74);t.LocalizedColorPickerMessagesDirective=L.LocalizedColorPickerMessagesDirective;var W=n(55);t.LocalizedNumericTextBoxMessagesDirective=W.LocalizedNumericTextBoxMessagesDirective;var Z=n(61);t.LocalizedTextBoxMessagesDirective=Z.LocalizedTextBoxMessagesDirective;var G=n(47);t.LocalizedSliderMessagesDirective=G.LocalizedSliderMessagesDirective;var K=n(50);t.LocalizedRangeSliderMessagesDirective=K.LocalizedRangeSliderMessagesDirective;var U=n(53);t.LocalizedSwitchMessagesDirective=U.LocalizedSwitchMessagesDirective},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(10),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.positionHandle=function(e){var t=this.props,n=t.max,i=t.min,o=t.reverse,a=t.vertical?"bottom":"left",s=this.trackWidth(),u=r.trimValue(n,i,this.props.value);this.handlePosition=r.calculateHandlePosition({min:i,max:n,reverse:o,value:u,trackWidth:s}),this.renderer.setStyle(e,a,this.handlePosition+"px")},t.prototype.positionSelection=function(e){var t=this.props,n=t.reverse,i=t.vertical?"height":"width",r=this.handlePosition;n&&(r=this.trackWidth()-r),this.renderer.setStyle(e,i,r+"px")},t}(n(33).SliderModelBase);t.SliderModel=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(10),o=n(10),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.positionHandle=function(e){if(e.id){var t=this.props,n=t.max,i=t.min,a=t.reverse,s=t.vertical?"bottom":"left",u=this.trackWidth(),c=r.isStartHandle(e)?o.trimValueRange(n,i,this.props.value)[0]:o.trimValueRange(n,i,this.props.value)[1];r.isStartHandle(e)?(this.startHandlePosition=o.calculateHandlePosition({min:i,max:n,reverse:a,value:c,trackWidth:u}),this.renderer.setStyle(e,s,this.startHandlePosition+"px")):(this.endHandlePosition=o.calculateHandlePosition({min:i,max:n,reverse:a,value:c,trackWidth:u}),this.renderer.setStyle(e,s,this.endHandlePosition+"px"))}},t.prototype.positionSelection=function(e,t){var n=this.props,i=n.reverse,r=n.vertical,o=r?"height":"width",a=r?"bottom":i?"right":"left",s=Math.abs(this.endHandlePosition-this.startHandlePosition),u=r?e.style.bottom:e.style.left;this.renderer.setStyle(t,o,s+"px"),this.renderer.setStyle(t,a,i?this.trackWidth()-parseFloat(u)+"px":parseFloat(u)+"px")},t}(n(33).SliderModelBase);t.RangeSliderModel=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(4);t.createMaxValidator=function(e){return function(t){return!i.isPresent(e)||!i.isPresent(t.value)||t.value<=e?null:{maxError:{maxValue:e,value:t.value}}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(4);t.createMinValidator=function(e){return function(t){return!i.isPresent(e)||!i.isPresent(t.value)||t.value>=e?null:{minError:{minValue:e,value:t.value}}}}},function(e,t){e.exports=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(39);t.numericRegex=function(e){var t,n=e.autoCorrect,r=e.decimals,o=e.min,a=e.separator;return a===i.POINT&&(a="\\"+a),t=0===r?"\\d*":"(?:(?:\\d+("+a+"\\d*)?)|(?:"+a+"\\d*))?",new RegExp("^"+(n&&null!==o&&o>=0?"":"-?")+t+"$")},t.decimalPart=function(e){return e>=0?Math.floor(e):Math.ceil(e)},t.noop=function(e){},t.defined=function(e){return void 0!==e},t.isNumber=function(e){return!isNaN(e)&&null!==e},t.pad=function(e,t){var n=t-String(e).length,i=e;if(n>0){var r=new Array(n+1).join("0");i=parseFloat(e+r)}return i},t.getDeltaFromMouseWheel=function(e){var t=0;return e.wheelDelta?t=(t=e.wheelDelta/120)>0?Math.ceil(t):Math.floor(t):e.detail&&(t=Math.round(-e.detail/3)),t},t.getCaretPosition=function(e){return e.selectionStart},t.extractSignificantNumericChars=function(e,t){var n=t+"0123456789-";return e.split("").reduce((function(e,t){return n.includes(t)?++e:e}),0)},t.isRightClick=function(e){var t=e.button&&2===e.button,n=e.which&&3===e.which;return t||n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Down=-1]="Down",e[e.None=0]="None",e[e.Up=1]="Up"}(t.ArrowDirection||(t.ArrowDirection={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(90),a=n(43),s=function(){function e(){this.rules={},this.prompt="_",this.mask="",this.promptPlaceholder=" ",this.includeLiterals=!1,this.maskTokens=[],this.unmaskTokens=[],this.rawTokens=[],this.validationTokens=[]}return e.prototype.update=function(e){var t=e.mask,n=void 0===t?"":t,i=e.prompt,r=void 0===i?"":i,o=e.promptPlaceholder,a=void 0===o?" ":o,s=e.rules,u=void 0===s?{}:s,c=e.includeLiterals,l=void 0!==c&&c;this.mask=n,this.prompt=r,this.promptPlaceholder=a,this.rules=u,this.includeLiterals=l,this.tokenize()},e.prototype.validationValue=function(e){void 0===e&&(e="");var t=e;return o.sequence(this.validationTokens).run(e).fold((function(e){t=e.join("")})),t},e.prototype.rawValue=function(e){void 0===e&&(e="");var t=e;return this.rawTokens.length?(o.sequence(this.rawTokens).run(e).fold((function(e){t=e.join("")})),t):t},e.prototype.maskRaw=function(e){void 0===e&&(e="");var t=e;return this.maskTokens.length?(o.sequence(this.maskTokens).run(e).fold((function(e){t=e.join("")})),t):t},e.prototype.maskInput=function(e,t,n){return e.length<t.length?this.maskRemoved(e,t,n):this.maskInserted(e,t,n)},e.prototype.maskInRange=function(e,t,n,i){var r="",a=i,s=t.split("").slice(0,n),u=t.split("").slice(i);return o.sequence(this.maskTokens.slice(n,i)).run(e).fold((function(e){r=s.concat(e).concat(u).join("")})),{selection:a,value:r}},e.prototype.maskRemoved=function(e,t,n){var i=this,r="",a=n,s=e.split("").slice(n),u=e.split("").slice(0,n).join(""),c=this.maskTokens.length-(e.length-n);return o.sequence(this.maskTokens.slice(0,c)).run(u,t).fold((function(e){a=i.adjustPosition(e,a),r=e.concat(s).join("")})),{selection:a,value:r}},e.prototype.adjustPosition=function(e,t){var n=e[t];return this.maskTokens[t].isLiteral(n)||n===this.prompt?t:t+1},e.prototype.maskInserted=function(e,t,n){var i=this,r="",a=n,s=e.slice(0,n);return o.sequence(this.unmaskTokens).run(s,t).chain((function(e){a=e.join("").length;var n=t.slice(a);return o.sequence(i.maskTokens).run(e.join("")+n,t)})).fold((function(e){r=e.join("")})),{selection:a,value:r}},Object.defineProperty(e.prototype,"maskTokenCreator",{get:function(){var e=this.prompt,t=this.promptPlaceholder;return{literal:function(e){return a.literal(e)},mask:function(n){return a.mask({prompt:e,promptPlaceholder:t})(n)}}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"unmaskTokenCreator",{get:function(){var e=this;return{literal:function(e){return a.unliteral(e)},mask:function(t){return a.unmask(e.prompt)(t)}}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rawTokenCreator",{get:function(){var e=this.prompt,t=this.promptPlaceholder,n=this.includeLiterals;return{literal:function(e){return a.rawLiteral(n)},mask:function(n){return a.rawMask({prompt:e,promptPlaceholder:t})}}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validationTokenCreator",{get:function(){var e=this.prompt;return{literal:function(e){return a.rawLiteral(!1)},mask:function(t){return a.rawMask({prompt:e,promptPlaceholder:""})}}},enumerable:!0,configurable:!0}),e.prototype.tokenize=function(){var e=this;o.greedy(a.token(this.rules,this.maskTokenCreator)).run(this.mask).fold((function(t,n){e.maskTokens=t})),o.greedy(a.token(this.rules,this.unmaskTokenCreator)).run(this.mask).fold((function(t,n){e.unmaskTokens=t})),o.greedy(a.token(this.rules,this.rawTokenCreator)).run(this.mask).fold((function(t,n){e.rawTokens=t})),o.greedy(a.token(this.rules,this.validationTokenCreator)).run(this.mask).fold((function(t,n){e.validationTokens=t}))},e=i.__decorate([r.Injectable()],e)}();t.MaskingService=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(43),r=n(44);t.sequence=function(e){return e.reduce((function(e,t){return n=t,e.chain((function(e){return n.map((function(t){return e.concat([t])}))}));var n}),(t=[],new i.Parser((function(e){return new r.Result(t,e)}))));var t},t.greedy=function(e){return new i.Parser((function(t){for(var n=new r.Result([],t);!t.eof();)n=n.concat(e.run(t));return n}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){void 0===e&&(e=[]),void 0===t&&(t=[]),this.input=e,this.control=t,this.inputCursor=0,this.controlCursor=0}return e.prototype.eof=function(){return this.inputCursor>=this.input.length},e.prototype.next=function(){return{char:this.input[this.inputCursor++],control:this.control[this.controlCursor++]}},e.prototype.peek=function(){return{char:this.input[this.inputCursor],control:this.control[this.controlCursor]}},e.prototype.eat_input=function(){this.inputCursor++},e.prototype.eat_control=function(){this.controlCursor++},e.prototype.eat=function(){this.inputCursor++,this.controlCursor++},e}();t.Stream=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(19),a=n(49),s=n(52),u=n(20),c=n(56),l=n(57),d=n(63),p=n(6),h=n(66),f=n(75),m=n(77),v=n(79),g=function(){function e(){}return e=i.__decorate([r.NgModule({exports:[d.TextAreaModule,l.TextBoxModule,o.SliderModule,a.RangeSliderModule,s.SwitchModule,u.NumericTextBoxModule,c.MaskedTextBoxModule,h.ColorPickerModule,f.CheckBoxModule,m.RadioButtonModule,v.FormFieldModule],imports:[p.CommonModule]})],e)}();t.InputsModule=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(2),a=n(48),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=i.__decorate([r.Component({providers:[{provide:a.SliderMessages,useExisting:r.forwardRef((function(){return n}))}],selector:"kendo-slider-messages",template:""}),i.__metadata("design:paramtypes",[o.LocalizationService])],t)}(a.SliderMessages);t.SliderCustomMessagesComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(2),a=n(51),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=i.__decorate([r.Component({providers:[{provide:a.RangeSliderMessages,useExisting:r.forwardRef((function(){return n}))}],selector:"kendo-rangeslider-messages",template:""}),i.__metadata("design:paramtypes",[o.LocalizationService])],t)}(a.RangeSliderMessages);t.RangeSliderCustomMessagesComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(2),a=n(54),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=i.__decorate([r.Component({providers:[{provide:a.Messages,useExisting:r.forwardRef((function(){return n}))}],selector:"kendo-switch-messages",template:""}),i.__metadata("design:paramtypes",[o.LocalizationService])],t)}(a.Messages);t.SwitchCustomMessagesComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(2),a=n(60),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=i.__decorate([r.Component({providers:[{provide:a.TextBoxMessages,useExisting:r.forwardRef((function(){return n}))}],selector:"kendo-textbox-messages",template:""}),i.__metadata("design:paramtypes",[o.LocalizationService])],t)}(a.TextBoxMessages);t.TextBoxCustomMessagesComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(7),o=n(1),a=n(4),s=n(3),u=function(){function e(e,t,n,i,u,c){var l=this;this.localizationService=e,this.ngZone=t,this.changeDetector=n,this.renderer=i,this.injector=u,this.hostElement=c,this.title="",this.disabled=!1,this.readonly=!1,this.value=null,this.selectOnFocus=!1,this.inputFocus=new o.EventEmitter,this.inputBlur=new o.EventEmitter,this.subscriptions=new r.Subscription,this._isFocused=!1,this.focusChangedProgrammatically=!1,this.handleInputBlur=function(){l.changeDetector.markForCheck(),(s.hasObservers(l.inputBlur)||a.requiresZoneOnBlur(l.control))&&l.ngZone.run((function(){l.ngTouched(),l.inputBlur.emit()}))},this.ngChange=function(e){},this.ngTouched=function(){}}return Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},e.prototype.setDisabledState=function(e){this.changeDetector.markForCheck(),this.disabled=e},i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"title",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"readonly",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"value",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"selectOnFocus",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"placeholder",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"inputFocus",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"inputBlur",void 0),i.__decorate([o.ViewChild("input",{static:!0}),i.__metadata("design:type",o.ElementRef)],e.prototype,"input",void 0),i.__decorate([o.HostBinding("class.k-disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"disabledClass",null),i.__decorate([o.HostBinding("attr.dir"),i.__metadata("design:type",String)],e.prototype,"direction",void 0),e}();t.TextFieldsBase=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(14),a=n(26),s=function(){function e(){}return e.prototype.getPaletteSettings=function(e,t){var n="name"!==t?o.DEFAULT_PRESET:o.DEFAULT_ACCESSIBLE_PRESET,i=e.palette,r="string"==typeof i&&a.PALETTEPRESETS[i]?a.PALETTEPRESETS[i].columns:void 0;return{palette:i||n,tileSize:e.tileSize||24,columns:e.columns||r||10}},e.prototype.paletteTileLayout=function(e){return"number"==typeof e?{width:e,height:e}:{width:e.width?e.width:e.height,height:e.height?e.height:e.width}},e=i.__decorate([r.Injectable()],e)}();t.FlatColorPickerService=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PALETTEPRESETS={basic:{colors:"000000,7f7f7f,880015,ed1c24,ff7f27,fff200,22b14c,00a2e8,3f48cc,a349a4,ffffff,c3c3c3,b97a57,ffaec9,ffc90e,efe4b0,b5e61d,99d9ea,7092be,c8bfe7",columns:10},office:{colors:"ffffff, 000000, e6e6e6, 435569, 4371c4, ed7e32, a5a4a5, febf04, 5a9bd5, 71ae48, f2f2f3, 7f7f7f, d1cece, d5dde3, dae1f4, fce5d4, deeded, fff2cc, deeaf6, e1efd9, d7d8d8, 585959, aeabab, adbaca, b4c5e7, f6caac, dbdbdb, ffe498, bcd6ee, c5e0b2, bfbfc0, 3f3f3f, 767070, 8595b1, 8fabdb, f5b183, c9c8c9, fed965, 9bc4e5, a8d08d, a5a5a6, 262625, 393939, 334050, 2e5496, c45a11, 7b7b7a, bf9000, 2f75b5, 548235, 7f7f7f, 0b0c0c, 161616, 222a34, 203764, 843d0b, 525252, 7f6000, 1d4d79, 375623",columns:10},apex:{colors:"ffffff, 000000, c9c2d1, 69676d, ceb966, 9cb084, 6bb1c9, 6585cf, 7e6bc9, a379bb, f2f2f2, 7f7f7f, f4f2f5, e0e0e2, f5f1e0, ebefe6, e1eff4, e0e6f5, e5e1f4, ece4f1, d8d8d8, 595959, e9e6ec, c2c1c5, ebe3c1, d7dfcd, c3dfe9, c1ceeb, cbc3e9, dac9e3, bfbfbf, 3f3f3f, dedae3, a4a3a8, e1d5a3, c3cfb5, a6d0de, a2b5e2, b1a6de, c7aed6, a5a5a5, 262626, 9688a5, 4e4d51, ae9638, 758c5a, 3d8da9, 365bb0, 533da9, 7d4d99, 7f7f7f, 0c0c0c, 635672, 343336, 746425, 4e5d3c, 295e70, 243c75, 372970, 533366",columns:10},austin:{colors:"ffffff, 000000, caf278, 3e3d2d, 94c600, 71685a, ff6700, 909465, 956b43, fea022, f2f2f2, 7f7f7f, f4fce4, dddcd0, efffc0, e3e1dc, ffe0cb, e8e9df, ece1d6, feecd2, d8d8d8, 595959, e9f9c9, bbb9a1, dfff82, c8c3ba, ffc299, d2d4c0, dac3ad, fed9a6, bfbfbf, 3f3f3f, dff7ae, ada598, cfff43, ada598, ffa365, bcbfa1, c8a585, fec67a, a5a5a5, 262626, a9ea25, 2e2d21, 6f9400, 544e43, bf4d00, 6c6f4b, 6f5032, d77b00, 7f7f7f, 0c0c0c, 74a50f, 1f1e16, 4a6300, 38342d, 7f3300, 484a32, 4a3521, 8f5200",columns:10},clarity:{colors:"ffffff, 292934, f3f2dc, d2533c, 93a299, ad8f67, 726056, 4c5a6a, 808da0, 79463d, f2f2f2, e7e7ec, e7e5b9, f6dcd8, e9ecea, eee8e0, e4dedb, d8dde3, e5e8ec, e9d6d3, d8d8d8, c4c4d1, d5d185, edbab1, d3d9d6, ded2c2, c9beb8, b2bcc8, ccd1d9, d3aea7, bfbfbf, 8a8aa3, aca73b, e4978a, bec7c1, cdbba3, af9e94, 8c9bac, b2bac6, bd857c, a5a5a5, 56566e, 56531d, a43925, 6b7c72, 866b48, 554840, 39434f, 5c697b, 5a342d, 7f7f7f, 3b3b4b, 22210b, 6d2619, 47534c, 594730, 39302b, 262d35, 3d4652, 3c231e",columns:10},slipstream:{colors:"ffffff, 000000, b4dcfa, 212745, 4e67c8, 5eccf3, a7ea52, 5dceaf, ff8021, f14124, f2f2f2, 7f7f7f, 8bc9f7, c7cce4, dbe0f4, def4fc, edfadc, def5ef, ffe5d2, fcd9d3, d8d8d8, 595959, 4facf3, 909aca, b8c2e9, beeafa, dbf6b9, beebdf, ffcca6, f9b3a7, bfbfbf, 3f3f3f, 0d78c9, 5967af, 94a3de, 9ee0f7, caf297, 9de1cf, ffb279, f68d7b, a5a5a5, 262626, 063c64, 181d33, 31479f, 11b2eb, 81d319, 34ac8b, d85c00, c3260c, 7f7f7f, 0c0c0c, 021828, 101322, 202f6a, 0b769c, 568c11, 22725c, 903d00, 821908",columns:10},metro:{colors:"ffffff, 000000, d6ecff, 4e5b6f, 7fd13b, ea157a, feb80a, 00addc, 738ac8, 1ab39f, f2f2f2, 7f7f7f, a7d6ff, d9dde4, e5f5d7, fad0e4, fef0cd, c5f2ff, e2e7f4, c9f7f1, d8d8d8, 595959, 60b5ff, b3bcca, cbecb0, f6a1c9, fee29c, 8be6ff, c7d0e9, 94efe3, bfbfbf, 3f3f3f, 007dea, 8d9baf, b2e389, f272af, fed46b, 51d9ff, aab8de, 5fe7d5, a5a5a5, 262626, 003e75, 3a4453, 5ea226, af0f5b, c58c00, 0081a5, 425ea9, 138677, 7f7f7f, 0c0c0c, 00192e, 272d37, 3f6c19, 750a3d, 835d00, 00566e, 2c3f71, 0c594f",columns:10},flow:{colors:"ffffff, 000000, dbf5f9, 04617b, 0f6fc6, 009dd9, 0bd0d9, 10cf9b, 7cca62, a5c249, f2f2f2, 7f7f7f, b2e9f2, b4ecfc, c7e2fa, c4eeff, c9fafc, c9faed, e4f4df, edf2da, d8d8d8, 595959, 76d9e8, 6adafa, 90c6f6, 89deff, 93f5f9, 94f6db, cae9c0, dbe6b6, bfbfbf, 3f3f3f, 21b2c8, 20c8f7, 59a9f2, 4fceff, 5df0f6, 5ff2ca, b0dfa0, c9da91, a5a5a5, 262626, 105964, 02485c, 0b5394, 0075a2, 089ca2, 0b9b74, 54a838, 7e9532, 7f7f7f, 0c0c0c, 062328, 01303d, 073763, 004e6c, 05686c, 07674d, 387025, 546321",columns:10},hardcover:{colors:"ffffff, 000000, ece9c6, 895d1d, 873624, d6862d, d0be40, 877f6c, 972109, aeb795, f2f2f2, 7f7f7f, e1dca5, f2e0c6, f0d0c9, f6e6d5, f5f2d8, e7e5e1, fbc7bc, eef0e9, d8d8d8, 595959, d0c974, e6c28d, e2a293, eeceaa, ece5b2, cfccc3, f78f7a, dee2d4, bfbfbf, 3f3f3f, a29a36, daa454, d4735e, e6b681, e2d88c, b7b2a5, f35838, ced3bf, a5a5a5, 262626, 514d1b, 664515, 65281a, a2641f, a39428, 655f50, 711806, 879464, 7f7f7f, 0c0c0c, 201e0a, 442e0e, 431b11, 6c4315, 6d621a, 433f35, 4b1004, 5a6243",columns:10},trek:{colors:"ffffff, 000000, fbeec9, 4e3b30, f0a22e, a5644e, b58b80, c3986d, a19574, c17529, f2f2f2, 7f7f7f, f7e09e, e1d6cf, fcecd5, eddfda, f0e7e5, f3eae1, ece9e3, f5e3d1, d8d8d8, 595959, f3cc5f, c4ad9f, f9d9ab, dcc0b6, e1d0cc, e7d5c4, d9d4c7, ebc7a3, bfbfbf, 3f3f3f, d29f0f, a78470, f6c781, cba092, d2b9b2, dbc1a7, c6bfab, e1ac76, a5a5a5, 262626, 694f07, 3a2c24, c87d0e, 7b4b3a, 926255, a17242, 7b7153, 90571e, 7f7f7f, 0c0c0c, 2a1f03, 271d18, 855309, 523226, 614138, 6b4c2c, 524b37, 603a14",columns:10},verve:{colors:"ffffff, 000000, d2d2d2, 666666, ff388c, e40059, 9c007f, 68007f, 005bd3, 00349e, f2f2f2, 7f7f7f, bdbdbd, e0e0e0, ffd7e8, ffc6dc, ffb8f1, f1b2ff, c3dcff, b8cfff, d8d8d8, 595959, 9d9d9d, c1c1c1, ffafd1, ff8eba, ff71e4, e365ff, 87baff, 72a0ff, bfbfbf, 3f3f3f, 696969, a3a3a3, ff87ba, ff5597, ff2ad7, d519ff, 4b98ff, 2b71ff, a5a5a5, 262626, 343434, 4c4c4c, e90062, ab0042, 75005f, 4e005f, 00449e, 002676, 7f7f7f, 0c0c0c, 151515, 333333, 9b0041, 72002c, 4e003f, 34003f, 002d69, 00194f",columns:10},monochrome:{colors:"000000, 1a1a1a, 333333, 4d4d4d, 666666, 808080, 999999, b3b3b3, cccccc, e6e6e6, f2f2f2, ffffff",columns:12},accessible:{colors:"black, grey, darkred, red, darkorange, gold, green, blue, darkblue, purple, white, darkgrey, saddlebrown, pink, orange, yellow, lightgreen, lightskyblue, lightblue, mediumpurple",columns:10}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(t){var n=e.call(this)||this;return n.originalEvent=t,n}return i.__extends(t,e),t}(n(3).PreventableEvent);t.ColorPickerCancelEvent=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(n(3).PreventableEvent);t.ColorPickerCloseEvent=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(n(3).PreventableEvent);t.ColorPickerOpenEvent=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e){this.color=e,this.openPrevented=!1}return e.prototype.preventOpen=function(){this.openPrevented=!0},e.prototype.isOpenPrevented=function(){return this.openPrevented},e}();t.ActiveColorClickEvent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(105),r=n(4);function o(e,t){if(e=e.toLowerCase().trim(),r.isPresent(i.namedColors[e]))return e;i.parseColor(e,t)&&(e=i.parseColor(e,t).toHex());var n=Object.keys(i.namedColors).find((function(t){return i.namedColors[t]===e}));if(!n&&!t)throw new Error("The provided color "+e+" is not supported for 'format=\"name\"' property.To display "+e+" color, the component 'format' property should be set to 'hex' or 'rgba' ");return n}t.parseColor=function(e,n,a,s){void 0===a&&(a=!1),void 0===s&&(s=!0);if(-1===["hex","rgba","name"].indexOf(n))throw new Error("Unsupported color output format '"+n+"'. The available options are 'hex', 'rgba' or 'name'.");if(r.isPresent(e)){if("name"===n)return o(e,s);var u=i.parseColor(e.trim(),s);if(r.isPresent(u))return"hex"===n?t.getHexValue(u,a):u.toCssRgba()}},t.getHSV=function(e,t){void 0===t&&(t=!0);var n=i.parseColor(e,t);return r.isPresent(n)?n.toHSV():{}},t.getRGBA=function(e,t){void 0===t&&(t=!0);var n=i.parseColor(e,t);return r.isPresent(n)?n.toBytes():{}},t.getColorFromHSV=function(e,n,o){void 0===n&&(n="rgba"),void 0===o&&(o=!1);var a=r.fitIntoBounds(e.h,0,359.9),s=r.fitIntoBounds(e.s,0,1),u=r.fitIntoBounds(e.v,0,1),c=r.fitIntoBounds(e.a,0,1),l=i.Color.fromHSV(a,s,u,c);return"hex"===n?t.getHexValue(l,o):l.toCssRgba()},t.getHexValue=function(e,t){return t&&e.a<1?e.toCss({alpha:!0}):e.toCss()},t.getColorFromHue=function(e){return t.getColorFromHSV({h:e,s:1,v:1,a:1})},t.getColorFromRGBA=function(e){var t=r.fitIntoBounds(e.r,0,255),n=r.fitIntoBounds(e.g,0,255),o=r.fitIntoBounds(e.b,0,255),a=r.fitIntoBounds(e.a,0,1);return i.Color.fromBytes(t,n,o,a).toCssRgba()},t.nameFormat=o,t.getRGBFromRGBA=function(e,t){var n=r.fitIntoBounds(e.r,0,255),i=r.fitIntoBounds(e.g,0,255),o=r.fitIntoBounds(e.b,0,255),a=r.fitIntoBounds(e.a,0,1),s=r.fitIntoBounds(t.r,0,255),u=r.fitIntoBounds(t.g,0,255),c=r.fitIntoBounds(t.b,0,255);return{r:Math.round((1-a)*s+a*n),g:Math.round((1-a)*u+a*i),b:Math.round((1-a)*c+a*o)}},t.getLuminance=function(e){var t=[e.r,e.g,e.b].map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}));return.2126*t[0]+.7152*t[1]+.0722*t[2]},t.getContrast=function(e,t){return(Math.max(e,t)+.05)/(Math.min(e,t)+.05)},t.getContrastFromTwoRGBAs=function(e,n){return t.getContrast(t.getLuminance(t.getRGBFromRGBA(e,n)),t.getLuminance(t.getRGBFromRGBA(n,{r:0,g:0,b:0,a:1})))}},function(e,t){e.exports=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bezierCommand=function(e){return function(t,n,i){var r=e(i[n-1],i[n-2],t),o=r[0],a=r[1],s=e(t,i[n-1],i[n+1],!0);return"C "+o+","+a+" "+s[0]+","+s[1]+" "+t[0]+","+t[1]}},t.controlPoint=function(e){return function(t,n,i,r){var o=e(n||t,i||t),a=o.angle+(r?Math.PI:0),s=.1*o.length;return[t[0]+Math.cos(a)*s,t[1]+Math.sin(a)*s]}},t.line=function(e,t){var n=t[0]-e[0],i=t[1]-e[1];return{length:Math.sqrt(Math.pow(n,2)+Math.pow(i,2)),angle:Math.atan2(i,n)}},t.d=function(e,t){return 0===e.length?"":e.reduce((function(e,n,i,r){return 0===i?"M "+n[0]+","+n[1]:e+" "+t(n,i,r)}),"")},t.svgPath=function(e,t){return 0===e.length?"":e.reduce((function(e,n,i,r){return 0===i?"M "+n[0]+","+n[1]:e+" "+t(n,i,r)}),"")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(2),a=n(25),s=function(e){function t(t,n,i,r){var o=e.call(this,t,n,i)||this;return o.flatColorPickerLocalization=r,o}return i.__extends(t,e),t.prototype.get=function(t){return this.flatColorPickerLocalization?this.flatColorPickerLocalization.get(t):e.prototype.get.call(this,t)},t=i.__decorate([i.__param(0,r.Inject(o.L10N_PREFIX)),i.__param(1,r.Optional()),i.__param(2,r.Optional()),i.__param(2,r.Inject(o.RTL)),i.__param(3,r.Optional()),i.__param(3,r.Inject(a.FlatColorPickerLocalizationService)),i.__metadata("design:paramtypes",[String,o.MessageService,Boolean,a.FlatColorPickerLocalizationService])],t)}(o.LocalizationService);t.ColorGradientLocalizationService=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(2),a=n(25),s=function(e){function t(t,n,i,r){var o=e.call(this,t,n,i)||this;return o.flatColorPickerLocalization=r,o}return i.__extends(t,e),t.prototype.get=function(t){return this.flatColorPickerLocalization?this.flatColorPickerLocalization.get(t):e.prototype.get.call(this,t)},t=i.__decorate([i.__param(0,r.Inject(o.L10N_PREFIX)),i.__param(1,r.Optional()),i.__param(2,r.Optional()),i.__param(2,r.Inject(o.RTL)),i.__param(3,r.Optional()),i.__param(3,r.Inject(a.FlatColorPickerLocalizationService)),i.__metadata("design:paramtypes",[String,o.MessageService,Boolean,a.FlatColorPickerLocalizationService])],t)}(o.LocalizationService);t.ColorPaletteLocalizationService=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(4),a=function(){function e(){this.colorRows=[]}return e.prototype.setColorMatrix=function(e,t){if(this.colorRows=[],o.isPresent(e)&&e.length){t=t||e.length;for(var n=0;n<e.length;n+=t){var i=e.slice(n,t+n);this.colorRows.push(i)}}},e.prototype.getCellCoordsFor=function(e){if(o.isPresent(e))for(var t=0;t<this.colorRows.length;t++)for(var n=0;n<this.colorRows[t].length;n++)if(this.colorRows[t][n]===e)return{row:t,col:n}},e.prototype.getColorAt=function(e){if(o.isPresent(e)&&o.isPresent(this.colorRows[e.row]))return this.colorRows[e.row][e.col]},e.prototype.getNextCell=function(e,t,n){if(!(o.isPresent(e)&&o.isPresent(e.row)&&o.isPresent(e.col)))return{row:0,col:0};var i=this.clampIndex(e.row+n,this.colorRows.length-1);return{row:i,col:this.clampIndex(e.col+t,this.colorRows[i].length-1)}},e.prototype.clampIndex=function(e,t){return e<0?0:e>t?t:e},e=i.__decorate([r.Injectable()],e)}();t.ColorPaletteService=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(2),a=n(73),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return i.__extends(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=i.__decorate([r.Component({providers:[{provide:a.ColorPickerMessages,useExisting:r.forwardRef((function(){return n}))}],selector:"kendo-colorpicker-messages, kendo-flatcolorpicker-messages, kendo-colorgradient-messages, kendo-colorpalette-messages",template:""}),i.__metadata("design:paramtypes",[o.LocalizationService])],t)}(a.ColorPickerMessages);t.ColorPickerCustomMessagesComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=function(){function e(e,t){this.host=e,this.ngZone=t}return e.prototype.ngAfterContentInit=function(){this.focusOnNextTick()},e.prototype.focusOnNextTick=function(){var e=this;this.ngZone.runOutsideAngular((function(){return setTimeout((function(){return e.host.nativeElement.focus()}))}))},e=i.__decorate([r.Directive({selector:"[kendoFocusOnDomReady]"}),i.__metadata("design:paramtypes",[r.ElementRef,r.NgZone])],e)}();t.FocusOnDomReadyDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(14),o=n(2),a=n(1),s=function(){function e(e){this.localization=e}return Object.defineProperty(e.prototype,"passMessage",{get:function(){return this.localization.get("passContrast")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"failMessage",{get:function(){return this.localization.get("failContrast")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contrastText",{get:function(){var e="AA"===this.type?r.AA_RATIO:r.AAA_RATIO;return this.type+": "+e.toFixed(1)},enumerable:!0,configurable:!0}),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"type",void 0),i.__decorate([a.Input(),i.__metadata("design:type",Boolean)],e.prototype,"pass",void 0),i.__decorate([a.Input(),i.__metadata("design:type",String)],e.prototype,"value",void 0),e=i.__decorate([a.Component({selector:"[kendoContrastValidation]",template:'\n <span>{{contrastText}}</span>\n <ng-container *ngIf="value">\n <span class="k-contrast-validation k-text-success" *ngIf="pass">\n {{passMessage}}\n <span class="k-icon k-i-check"></span>\n </span>\n <span class="k-contrast-validation k-text-error" *ngIf="!pass">\n {{failMessage}}\n <span class="k-icon k-i-close"></span>\n </span>\n </ng-container>\n '}),i.__metadata("design:paramtypes",[o.LocalizationService])],e)}();t.ContrastValidationComponent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(2),a=n(13),s=n(14),u=function(){function e(e){this.localization=e}return Object.defineProperty(e.prototype,"formatedRatio",{get:function(){return this.contrastRatio.toFixed(2)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contrastRatioText",{get:function(){return this.localization.get("contrastRatio")+": "+(this.value?this.formatedRatio:"n/a")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"satisfiesAACondition",{get:function(){return this.contrastRatio>=s.AA_RATIO},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"satisfiesAAACondition",{get:function(){return this.contrastRatio>=s.AAA_RATIO},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contrastRatio",{get:function(){return a.getContrastFromTwoRGBAs(a.getRGBA(this.value),a.getRGBA(this.ratio))},enumerable:!0,configurable:!0}),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"value",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"ratio",void 0),e=i.__decorate([r.Component({selector:"[kendoContrastTool]",template:'\n <div class="k-contrast-ratio">\n <span class="k-contrast-ratio-text">{{contrastRatioText}}</span>\n <ng-container *ngIf="value">\n <span class="k-contrast-validation k-text-success" *ngIf="satisfiesAACondition">\n <span class="k-icon k-i-check"></span>\n <span class="k-icon k-i-check" *ngIf="satisfiesAAACondition"></span>\n </span>\n <span class="k-contrast-validation k-text-error" *ngIf="!satisfiesAACondition">\n <span class="k-icon k-i-close"></span>\n </span>\n </ng-container>\n </div>\n <div kendoContrastValidation\n type="AA"\n [value]="value"\n [pass]="satisfiesAACondition">\n </div>\n <div kendoContrastValidation\n type="AAA"\n [value]="value"\n [pass]="satisfiesAAACondition">\n </div>\n '}),i.__metadata("design:paramtypes",[o.LocalizationService])],e)}();t.ContrastComponent=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(7),a=n(4),s=n(14),u=n(13),c=function(){function e(){this.hostClass=!0}return e.prototype.ngAfterViewInit=function(){var e=this;this.metrics=this.wrapper.getBoundingClientRect(),this.oldA=this.hsva.value.a,this.oldH=this.hsva.value.h,this.hsva.subscribe((function(t){t.h===e.oldH&&t.a===e.oldA||(e.oldH=t.h,e.oldA=t.a,e.setPaths())}))},e.prototype.ngOnChanges=function(e){a.isPresent(e.backgroundColor)&&this.metrics&&this.setPaths()},e.prototype.setPaths=function(){var e=u.bezierCommand(u.controlPoint(u.line));this.paths=[u.svgPath(this.getPaths(s.AA_RATIO,s.STEP_COUNT),e),u.svgPath(this.getPaths(s.AA_RATIO,s.STEP_COUNT,!0),e),u.svgPath(this.getPaths(s.AAA_RATIO,s.STEP_COUNT),e),u.svgPath(this.getPaths(s.AAA_RATIO,s.STEP_COUNT,!0),e)]},e.prototype.findValue=function(e,t,n,i,r){var o=(n+i)/2,a=Object.assign({},this.hsva.value,{s:t/this.metrics.width,v:1-o/this.metrics.height}),s=u.getContrastFromTwoRGBAs(u.getRGBA(u.getColorFromHSV(a)),u.getRGBA(this.backgroundColor||""));return n+.5>i?s<e+1&&s>e-1?o:null:r(s,e)?this.findValue(e,t,n,i-(i-n)/2,r):this.findValue(e,t,n+(i-n)/2,i,r)},e.prototype.getPaths=function(e,t,n){void 0===n&&(n=!1);for(var i=[],r=0;r<=this.metrics.width;r+=this.metrics.width/t){var o=this.findValue(e,r,0,this.metrics.height,n?function(e,t){return e<t}:function(e,t){return e>t});null!==o&&i.push([r,o])}return i},i.__decorate([r.HostBinding("class.k-color-contrast-svg"),i.__metadata("design:type",Boolean)],e.prototype,"hostClass",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"wrapper",void 0),i.__decorate([r.Input(),i.__metadata("design:type",o.BehaviorSubject)],e.prototype,"hsva",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"backgroundColor",void 0),e=i.__decorate([r.Component({selector:"[kendoColorContrastSvg]",template:'\n <svg:path *ngFor="let path of paths" [attr.d]="path" fill="none" stroke="white" stroke-width="1"></svg:path>\n '})],e)}();t.ColorContrastSvgComponent=c}])}));
|