/** 
 * Kendo UI v2016.3.1118 (http://www.telerik.com/kendo-ui)                                                                                                                                              
 * Copyright 2016 Telerik AD. All rights reserved.                                                                                                                                                      
 *                                                                                                                                                                                                      
 * Kendo UI commercial licenses may be obtained at                                                                                                                                                      
 * http://www.telerik.com/purchase/license-agreement/kendo-ui-complete                                                                                                                                  
 * If you do not own a commercial license, this file shall be governed by the trial license terms.                                                                                                      
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       

*/
!function(i,define){define("kendo.window.min",["kendo.draganddrop.min"],i)}(function(){return function(i,t){function e(i){return t!==i}function n(i,t,e){return Math.max(Math.min(parseInt(i,10),e===1/0?e:parseInt(e,10)),parseInt(t,10))}function o(){return!this.type||this.type.toLowerCase().indexOf("script")>=0}function s(i){var t=this;t.owner=i,t._preventDragging=!1,t._draggable=new d(i.wrapper,{filter:">"+y,group:i.wrapper.id+"-resizing",dragstart:g(t.dragstart,t),drag:g(t.drag,t),dragend:g(t.dragend,t)}),t._draggable.userEvents.bind("press",g(t.addOverlay,t)),t._draggable.userEvents.bind("release",g(t.removeOverlay,t))}function r(i,t){var e=this;e.owner=i,e._preventDragging=!1,e._draggable=new d(i.wrapper,{filter:t,group:i.wrapper.id+"-moving",dragstart:g(e.dragstart,e),drag:g(e.drag,e),dragend:g(e.dragend,e),dragcancel:g(e.dragcancel,e)}),e._draggable.userEvents.stopPropagation=!1}var a=window.kendo,l=a.ui.Widget,d=a.ui.Draggable,c=i.isPlainObject,p=a._activeElement,h=a._outerWidth,f=a._outerHeight,g=i.proxy,u=i.extend,m=i.each,w=a.template,v="body",_=".kendoWindow",k=".k-window",z=".k-window-title",b=z+"bar",x=".k-window-content",y=".k-resize-handle",T=".k-overlay",O="k-content-frame",M="k-i-loading",S="k-state-hover",L="k-state-focused",I="k-window-maximized",P=":visible",H="hidden",C="cursor",D="open",W="activate",F="deactivate",j="close",E="refresh",R="minimize",N="maximize",A="resizeStart",q="resize",G="resizeEnd",U="dragstart",K="dragend",V="error",B="overflow",Q="zIndex",J=".k-window-actions .k-i-minimize,.k-window-actions .k-i-maximize",X=".k-i-pin",Y=".k-i-unpin",Z=X+","+Y,$=".k-window-titlebar .k-window-action",ii=".k-window-titlebar .k-i-refresh",ti=a.isLocalUrl,ei=l.extend({init:function(n,s){var r,d,p,h,f,u,m,w=this,v={},y=!1,T=s&&s.actions&&!s.actions.length;l.fn.init.call(w,n,s),s=w.options,h=s.position,n=w.element,f=s.content,T&&(s.actions=[]),w.appendTo=i(s.appendTo),f&&!c(f)&&(f=s.content={url:f}),n.find("script").filter(o).remove(),n.parent().is(w.appendTo)||h.top!==t&&h.left!==t||(n.is(P)?(v=n.offset(),y=!0):(d=n.css("visibility"),p=n.css("display"),n.css({visibility:H,display:""}),v=n.offset(),n.css({visibility:d,display:p})),h.top===t&&(h.top=v.top),h.left===t&&(h.left=v.left)),e(s.visible)&&null!==s.visible||(s.visible=n.is(P)),r=w.wrapper=n.closest(k),n.is(".k-content")&&r[0]||(n.addClass("k-window-content k-content"),w._createWindow(n,s),r=w.wrapper=n.closest(k),w._dimensions()),w._position(),s.pinned&&w.pin(!0),f&&w.refresh(f),s.visible&&w.toFront(),u=r.children(x),w._tabindex(u),s.visible&&s.modal&&w._overlay(r.is(P)).css({opacity:.5}),r.on("mouseenter"+_,$,g(w._buttonEnter,w)).on("mouseleave"+_,$,g(w._buttonLeave,w)).on("click"+_,"> "+$,g(w._windowActionHandler,w)),u.on("keydown"+_,g(w._keydown,w)).on("focus"+_,g(w._focus,w)).on("blur"+_,g(w._blur,w)),this._resizable(),this._draggable(),m=n.attr("id"),m&&(m+="_wnd_title",r.children(b).children(z).attr("id",m),u.attr({role:"dialog","aria-labelledby":m})),r.add(r.children(".k-resize-handle,"+b)).on("mousedown"+_,g(w.toFront,w)),w.touchScroller=a.touchScroller(n),w._resizeHandler=g(w._onDocumentResize,w),w._marker=a.guid().substring(0,8),i(window).on("resize"+_+w._marker,w._resizeHandler),s.visible&&(w.trigger(D),w.trigger(W)),a.notify(w)},_buttonEnter:function(t){i(t.currentTarget).addClass(S)},_buttonLeave:function(t){i(t.currentTarget).removeClass(S)},_focus:function(){this.wrapper.addClass(L)},_blur:function(){this.wrapper.removeClass(L)},_dimensions:function(){var i,t,e=this.wrapper,o=this.options,s=o.width,r=o.height,a=o.maxHeight,l=["minWidth","minHeight","maxWidth","maxHeight"];for(this.title(o.title),i=0;i<l.length;i++)t=o[l[i]]||"",t!=1/0&&e.css(l[i],t);a!=1/0&&this.element.css("maxHeight",a),e.width(s?(""+s).indexOf("%")>0?s:n(s,o.minWidth,o.maxWidth):""),e.height(r?(""+r).indexOf("%")>0?r:n(r,o.minHeight,o.maxHeight):""),o.visible||e.hide()},_position:function(){var i=this.wrapper,t=this.options.position;0===t.top&&(t.top=""+t.top),0===t.left&&(t.left=""+t.left),i.css({top:t.top||"",left:t.left||""})},_animationOptions:function(i){var t=this.options.animation,e={open:{effects:{}},close:{hide:!0,effects:{}}};return t&&t[i]||e[i]},_resize:function(){a.resize(this.element.children())},_resizable:function(){var t=this.options.resizable,e=this.wrapper;this.resizing&&(e.off("dblclick"+_).children(y).remove(),this.resizing.destroy(),this.resizing=null),t&&(e.on("dblclick"+_,b,g(function(t){i(t.target).closest(".k-window-action").length||this.toggleMaximization()},this)),m("n e s w se sw ne nw".split(" "),function(i,t){e.append(ni.resizeHandle(t))}),this.resizing=new s(this)),e=null},_draggable:function(){var i=this.options.draggable;this.dragging&&(this.dragging.destroy(),this.dragging=null),i&&(this.dragging=new r(this,i.dragHandle||b))},_actions:function(){var t=this.options.actions,e=this.wrapper.children(b),n=e.find(".k-window-actions");t=i.map(t,function(i){return{name:i}}),n.html(a.render(ni.action,t))},setOptions:function(i){var e,n;l.fn.setOptions.call(this,i),e=this.options.scrollable!==!1,this.restore(),this._dimensions(),this._position(),this._resizable(),this._draggable(),this._actions(),t!==i.modal&&(n=this.options.visible!==!1,this._overlay(i.modal&&n)),this.element.css(B,e?"":"hidden")},events:[D,W,F,j,R,N,E,A,q,G,U,K,V],options:{name:"Window",animation:{open:{effects:{zoom:{direction:"in"},fade:{direction:"in"}},duration:350},close:{effects:{zoom:{direction:"out",properties:{scale:.7}},fade:{direction:"out"}},duration:350,hide:!0}},title:"",actions:["Close"],autoFocus:!0,modal:!1,resizable:!0,draggable:!0,minWidth:90,minHeight:50,maxWidth:1/0,maxHeight:1/0,pinned:!1,scrollable:!0,position:{},content:null,visible:null,height:null,width:null,appendTo:"body",isMaximized:!1,isMinimized:!1},_closable:function(){return i.inArray("close",i.map(this.options.actions,function(i){return i.toLowerCase()}))>-1},_keydown:function(i){var t,e,o,s,r,l,d=this,c=d.options,p=a.keys,h=i.keyCode,f=d.wrapper,g=10,u=d.options.isMaximized;i.target!=i.currentTarget||d._closing||(h==p.ESC&&d._closable()&&d._close(!1),!c.draggable||i.ctrlKey||u||(t=a.getOffset(f),h==p.UP?e=f.css("top",t.top-g):h==p.DOWN?e=f.css("top",t.top+g):h==p.LEFT?e=f.css("left",t.left-g):h==p.RIGHT&&(e=f.css("left",t.left+g))),c.resizable&&i.ctrlKey&&!u&&(h==p.UP?(e=!0,s=f.height()-g):h==p.DOWN&&(e=!0,s=f.height()+g),h==p.LEFT?(e=!0,o=f.width()-g):h==p.RIGHT&&(e=!0,o=f.width()+g),e&&(r=n(o,c.minWidth,c.maxWidth),l=n(s,c.minHeight,c.maxHeight),isNaN(r)||(f.width(r),d.options.width=r+"px"),isNaN(l)||(f.height(l),d.options.height=l+"px"),d.resize())),e&&i.preventDefault())},_overlay:function(t){var e=this.appendTo.children(T),n=this.wrapper;return e.length||(e=i("<div class='k-overlay' />")),e.insertBefore(n[0]).toggle(t).css(Q,parseInt(n.css(Q),10)-1),e},_actionForIcon:function(i){var t=/\bk-i-\w+\b/.exec(i[0].className)[0];return{"k-i-close":"_close","k-i-maximize":"maximize","k-i-minimize":"minimize","k-i-restore":"restore","k-i-refresh":"refresh","k-i-pin":"pin","k-i-unpin":"unpin"}[t]},_windowActionHandler:function(e){var n,o;if(!this._closing)return n=i(e.target).closest(".k-window-action").find(".k-icon"),o=this._actionForIcon(n),o?(e.preventDefault(),this[o](),!1):t},_modals:function(){var t=this,e=i(k).filter(function(){var e=i(this),n=t._object(e),o=n&&n.options;return o&&o.modal&&o.visible&&o.appendTo===t.options.appendTo&&e.is(P)}).sort(function(t,e){return+i(t).css("zIndex")-+i(e).css("zIndex")});return t=null,e},_object:function(i){var e=i.children(x),n=a.widgetInstance(e);return n instanceof ei?n:t},center:function(){var t,e,n=this,o=n.options.position,s=n.wrapper,r=i(window),a=0,l=0;return n.options.isMaximized?n:(n.options.pinned||(a=r.scrollTop(),l=r.scrollLeft()),e=l+Math.max(0,(r.width()-s.width())/2),t=a+Math.max(0,(r.height()-s.height()-parseInt(s.css("paddingTop"),10))/2),s.css({left:e,top:t}),o.top=t,o.left=e,n)},title:function(i){var t,e=this,n=e.wrapper,o=e.options,s=n.children(b),r=s.children(z);return arguments.length?(i===!1?(n.addClass("k-window-titleless"),s.remove()):(s.length?r.html(i):(n.prepend(ni.titlebar(o)),e._actions(),s=n.children(b)),t=parseInt(f(s),10),n.css("padding-top",t),s.css("margin-top",-t)),e.options.title=i,e):r.html()},content:function(i,t){var n=this.wrapper.children(x),o=n.children(".km-scroll-container");return n=o[0]?o:n,e(i)?(this.angular("cleanup",function(){return{elements:n.children()}}),a.destroy(this.element.children()),n.empty().html(i),this.angular("compile",function(){var i,e=[];for(i=n.length;--i>=0;)e.push({dataItem:t});return{elements:n.children(),data:e}}),this):n.html()},open:function(){var t,e,n,o=this,s=o.wrapper,r=o.options,l=this._animationOptions("open"),d=s.children(x),c=i(document);return o.trigger(D)||(o._closing&&s.kendoStop(!0,!0),o._closing=!1,o.toFront(),r.autoFocus&&o.element.focus(),r.visible=!0,r.modal&&(e=!!o._modals().length,t=o._overlay(e),t.kendoStop(!0,!0),l.duration&&a.effects.Fade&&!e?(n=a.fx(t).fadeIn(),n.duration(l.duration||0),n.endValue(.5),n.play()):t.css("opacity",.5),t.show()),s.is(P)||(d.css(B,H),s.show().kendoStop().kendoAnimate({effects:l.effects,duration:l.duration,complete:g(this._activate,this)}))),r.isMaximized&&(o._documentScrollTop=c.scrollTop(),o._documentScrollLeft=c.scrollLeft(),i("html, body").css(B,H)),o},_activate:function(){var i=this.options.scrollable!==!1;this.options.autoFocus&&this.element.focus(),this.element.css(B,i?"":"hidden"),a.resize(this.element.children()),this.trigger(W)},_removeOverlay:function(e){var n,o=this._modals(),s=this.options,r=s.modal&&!o.length,l=s.modal?this._overlay(!0):i(t),d=this._animationOptions("close");r?!e&&d.duration&&a.effects.Fade?(n=a.fx(l).fadeOut(),n.duration(d.duration||0),n.startValue(.5),n.play()):this._overlay(!1).remove():o.length&&this._object(o.last())._overlay(!0)},_close:function(t){var e=this,n=e.wrapper,o=e.options,s=this._animationOptions("open"),r=this._animationOptions("close"),a=i(document);if(n.is(P)&&!e.trigger(j,{userTriggered:!t})){if(e._closing)return;e._closing=!0,o.visible=!1,i(k).each(function(t,e){var o=i(e).children(x);e!=n&&o.find("> ."+O).length>0&&o.children(T).remove()}),this._removeOverlay(),n.kendoStop().kendoAnimate({effects:r.effects||s.effects,reverse:r.reverse===!0,duration:r.duration,complete:g(this._deactivate,this)})}e.options.isMaximized&&(i("html, body").css(B,""),e._documentScrollTop&&e._documentScrollTop>0&&a.scrollTop(e._documentScrollTop),e._documentScrollLeft&&e._documentScrollLeft>0&&a.scrollLeft(e._documentScrollLeft))},_deactivate:function(){var i,t=this;t.wrapper.hide().css("opacity",""),t.trigger(F),t.options.modal&&(i=t._object(t._modals().last()),i&&i.toFront())},close:function(){return this._close(!0),this},_actionable:function(t){return i(t).is($+","+$+" .k-icon,:input,a")},_shouldFocus:function(t){var e=p(),n=this.element;return this.options.autoFocus&&!i(e).is(n)&&!this._actionable(t)&&(!n.find(e).length||!n.find(t).length)},toFront:function(t){var e,n,o=this,s=o.wrapper,r=s[0],a=+s.css(Q),l=a,d=t&&t.target||null;return i(k).each(function(t,e){var n=i(e),o=n.css(Q),s=n.children(x);isNaN(o)||(a=Math.max(+o,a)),e!=r&&s.find("> ."+O).length>0&&s.append(ni.overlay)}),(!s[0].style.zIndex||l<a)&&s.css(Q,a+2),o.element.find("> .k-overlay").remove(),o._shouldFocus(d)&&(o.element.focus(),e=i(window).scrollTop(),n=parseInt(s.position().top,10),!o.options.pinned&&n>0&&n<e&&(e>0?i(window).scrollTop(n):s.css("top",e))),s=null,o},toggleMaximization:function(){return this._closing?this:this[this.options.isMaximized?"restore":"maximize"]()},restore:function(){var t=this,e=t.options,n=e.minHeight,o=t.restoreOptions,s=i(document);return e.isMaximized||e.isMinimized?(n&&n!=1/0&&t.wrapper.css("min-height",n),t.wrapper.css({position:e.pinned?"fixed":"absolute",left:o.left,top:o.top,width:o.width,height:o.height}).removeClass(I).find(".k-window-content,.k-resize-handle").show().end().find(".k-window-titlebar .k-i-restore").parent().remove().end().end().find(J).parent().show().end().end().find(Z).parent().show(),t.options.width=o.width,t.options.height=o.height,i("html, body").css(B,""),this._documentScrollTop&&this._documentScrollTop>0&&s.scrollTop(this._documentScrollTop),this._documentScrollLeft&&this._documentScrollLeft>0&&s.scrollLeft(this._documentScrollLeft),e.isMaximized=e.isMinimized=!1,t.resize(),t):t},_sizingAction:function(i,t){var e=this,n=e.wrapper,o=n[0].style,s=e.options;return s.isMaximized||s.isMinimized?e:(e.restoreOptions={width:o.width,height:o.height},n.children(y).hide().end().children(b).find(J).parent().hide().eq(0).before(ni.action({name:"Restore"})),t.call(e),e.wrapper.children(b).find(Z).parent().toggle("maximize"!==i),e.trigger(i),e)},maximize:function(){return this._sizingAction("maximize",function(){var t=this,e=t.wrapper,n=e.position(),o=i(document);u(t.restoreOptions,{left:n.left,top:n.top}),e.css({left:0,top:0,position:"fixed"}).addClass(I),this._documentScrollTop=o.scrollTop(),this._documentScrollLeft=o.scrollLeft(),i("html, body").css(B,H),t.options.isMaximized=!0,t._onDocumentResize()}),this},isMaximized:function(){return this.options.isMaximized},minimize:function(){return this._sizingAction("minimize",function(){var i=this;i.wrapper.css({height:"",minHeight:""}),i.element.hide(),i.options.isMinimized=!0}),this},isMinimized:function(){return this.options.isMinimized},pin:function(t){var e=this,n=i(window),o=e.wrapper,s=parseInt(o.css("top"),10),r=parseInt(o.css("left"),10);(t||!e.options.pinned&&!e.options.isMaximized)&&(o.css({position:"fixed",top:s-n.scrollTop(),left:r-n.scrollLeft()}),o.children(b).find(X).addClass("k-i-unpin").removeClass("k-i-pin"),e.options.pinned=!0)},unpin:function(){var t=this,e=i(window),n=t.wrapper,o=parseInt(n.css("top"),10),s=parseInt(n.css("left"),10);t.options.pinned&&!t.options.isMaximized&&(n.css({position:"",top:o+e.scrollTop(),left:s+e.scrollLeft()}),n.children(b).find(Y).addClass("k-i-pin").removeClass("k-i-unpin"),t.options.pinned=!1)},_onDocumentResize:function(){var t,e,n=this,o=n.wrapper,s=i(window),r=a.support.zoomLevel();n.options.isMaximized&&(t=s.width()/r,e=s.height()/r-parseInt(o.css("padding-top"),10),o.css({width:t,height:e}),n.options.width=t,n.options.height=e,n.resize())},refresh:function(t){var n,o,s,r=this,a=r.options,l=i(r.element);return c(t)||(t={url:t}),t=u({},a.content,t),o=e(a.iframe)?a.iframe:t.iframe,s=t.url,s?(e(o)||(o=!ti(s)),o?(n=l.find("."+O)[0],n?n.src=s||n.src:l.html(ni.contentFrame(u({},a,{content:t}))),l.find("."+O).unbind("load"+_).on("load"+_,g(this._triggerRefresh,this))):r._ajaxRequest(t)):(t.template&&r.content(w(t.template)({})),r.trigger(E)),l.toggleClass("k-window-iframecontent",!!o),r},_triggerRefresh:function(){this.trigger(E)},_ajaxComplete:function(){clearTimeout(this._loadingIconTimeout),this.wrapper.find(ii).removeClass(M)},_ajaxError:function(i,t){this.trigger(V,{status:t,xhr:i})},_ajaxSuccess:function(i){return function(t){var e=t;i&&(e=w(i)(t||{})),this.content(e,t),this.element.prop("scrollTop",0),this.trigger(E)}},_showLoading:function(){this.wrapper.find(ii).addClass(M)},_ajaxRequest:function(t){this._loadingIconTimeout=setTimeout(g(this._showLoading,this),100),i.ajax(u({type:"GET",dataType:"html",cache:!1,error:g(this._ajaxError,this),complete:g(this._ajaxComplete,this),success:g(this._ajaxSuccess(t.template),this)},t))},_destroy:function(){this.resizing&&this.resizing.destroy(),this.dragging&&this.dragging.destroy(),this.wrapper.off(_).children(x).off(_).end().find(".k-resize-handle,.k-window-titlebar").off(_),i(window).off("resize"+_+this._marker),clearTimeout(this._loadingIconTimeout),l.fn.destroy.call(this),this.unbind(t),a.destroy(this.wrapper),this._removeOverlay(!0)},destroy:function(){this._destroy(),this.wrapper.empty().remove(),this.wrapper=this.appendTo=this.element=i()},_createWindow:function(){var t,e,n=this.element,o=this.options,s=a.support.isRtl(n);o.scrollable===!1&&n.css("overflow","hidden"),e=i(ni.wrapper(o)),t=n.find("iframe:not(.k-content)").map(function(){var i=this.getAttribute("src");return this.src="",i}),e.toggleClass("k-rtl",s).appendTo(this.appendTo).append(n).find("iframe:not(.k-content)").each(function(i){this.src=t[i]}),e.find(".k-window-title").css(s?"left":"right",h(e.find(".k-window-actions"))+10),n.css("visibility","").show(),n.find("[data-role=editor]").each(function(){var t=i(this).data("kendoEditor");t&&t.refresh()}),e=n=null}}),ni={wrapper:w("<div class='k-widget k-window' />"),action:w("<a role='button' href='\\#' class='k-window-action k-link' aria-label='#= name #'><span class='k-icon k-i-#= name.toLowerCase() #'></span></a>"),titlebar:w("<div class='k-window-titlebar k-header'>&nbsp;<span class='k-window-title'>#= title #</span><div class='k-window-actions' /></div>"),overlay:"<div class='k-overlay' />",contentFrame:w("<iframe frameborder='0' title='#= title #' class='"+O+"' src='#= content.url #'>This page requires frames in order to show content</iframe>"),resizeHandle:w("<div class='k-resize-handle k-resize-#= data #'></div>")};s.prototype={addOverlay:function(){this.owner.wrapper.append(ni.overlay)},removeOverlay:function(){this.owner.wrapper.find(T).remove()},dragstart:function(t){var e=this,n=e.owner,o=n.wrapper;e._preventDragging=n.trigger(A),e._preventDragging||(e.elementPadding=parseInt(o.css("padding-top"),10),e.initialPosition=a.getOffset(o,"position"),e.resizeDirection=t.currentTarget.prop("className").replace("k-resize-handle k-resize-",""),e.initialSize={width:o.width(),height:o.height()},e.containerOffset=a.getOffset(n.appendTo,"position"),o.children(y).not(t.currentTarget).hide(),i(v).css(C,t.currentTarget.css(C)))},drag:function(t){var e,o,s,r,a,l,d,c,p,h,f,g,u,m,w;this._preventDragging||(e=this,o=e.owner,s=o.wrapper,r=o.options,a=e.resizeDirection,l=e.containerOffset,d=e.initialPosition,c=e.initialSize,u=Math.max(t.x.location,0),m=Math.max(t.y.location,0),a.indexOf("e")>=0?(p=u-d.left-l.left,s.width(n(p,r.minWidth,r.maxWidth))):a.indexOf("w")>=0&&(g=d.left+c.width+l.left,p=n(g-u,r.minWidth,r.maxWidth),s.css({left:g-p-l.left,width:p})),w=m,o.options.pinned&&(w-=i(window).scrollTop()),a.indexOf("s")>=0?(h=w-d.top-e.elementPadding-l.top,s.height(n(h,r.minHeight,r.maxHeight))):a.indexOf("n")>=0&&(f=d.top+c.height+l.top,h=n(f-w,r.minHeight,r.maxHeight),s.css({top:f-h-l.top,height:h})),p&&(o.options.width=p+"px"),h&&(o.options.height=h+"px"),o.resize())},dragend:function(t){if(!this._preventDragging){var e=this,n=e.owner,o=n.wrapper;return o.children(y).not(t.currentTarget).show(),i(v).css(C,""),n.touchScroller&&n.touchScroller.reset(),27==t.keyCode&&o.css(e.initialPosition).css(e.initialSize),n.trigger(G),!1}},destroy:function(){this._draggable&&this._draggable.destroy(),this._draggable=this.owner=null}},r.prototype={dragstart:function(t){var e=this.owner,n=e.element,o=n.find(".k-window-actions"),s=a.getOffset(e.appendTo);this._preventDragging=e.trigger(U),this._preventDragging||(e.initialWindowPosition=a.getOffset(e.wrapper,"position"),e.initialPointerPosition={left:t.x.client,top:t.y.client},e.startPosition={left:t.x.client-e.initialWindowPosition.left,top:t.y.client-e.initialWindowPosition.top},e.minLeftPosition=o.length>0?h(o)+parseInt(o.css("right"),10)-h(n):20-h(n),e.minLeftPosition-=s.left,e.minTopPosition=-s.top,e.wrapper.append(ni.overlay).children(y).hide(),i(v).css(C,t.currentTarget.css(C)))},drag:function(t){var e,n;this._preventDragging||(e=this.owner,n=e.options.position,n.top=Math.max(t.y.client-e.startPosition.top,e.minTopPosition),n.left=Math.max(t.x.client-e.startPosition.left,e.minLeftPosition),a.support.transforms?i(e.wrapper).css("transform","translate("+(t.x.client-e.initialPointerPosition.left)+"px, "+(t.y.client-e.initialPointerPosition.top)+"px)"):i(e.wrapper).css(n))},_finishDrag:function(){var t=this.owner;t.wrapper.children(y).toggle(!t.options.isMinimized).end().find(T).remove(),i(v).css(C,"")},dragcancel:function(i){this._preventDragging||(this._finishDrag(),i.currentTarget.closest(k).css(this.owner.initialWindowPosition))},dragend:function(){if(!this._preventDragging)return i(this.owner.wrapper).css(this.owner.options.position).css("transform",""),this._finishDrag(),this.owner.trigger(K),!1},destroy:function(){this._draggable&&this._draggable.destroy(),this._draggable=this.owner=null}},a.ui.plugin(ei)}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(i,t,e){(e||t)()});
//# sourceMappingURL=kendo.window.min.js.map
