From 51b59c36052427ab8766e121347aea500badfdba Mon Sep 17 00:00:00 2001 From: Denis Anchugov Date: Fri, 2 Feb 2018 18:10:36 +0100 Subject: [PATCH 1/2] Bug fix for https://github.com/WebCabin/wcDocker/issues/108. --- Build/wcDocker.js | 1 + Build/wcDocker.min.js | 15 ++++++--------- Code/docker.js | 1 + 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/Build/wcDocker.js b/Build/wcDocker.js index 999b15a5..9ea956dc 100644 --- a/Build/wcDocker.js +++ b/Build/wcDocker.js @@ -20325,6 +20325,7 @@ define('wcDocker/docker',[ self._draggingSplitter.$pane[1].removeClass('wcResizing'); } + self._creatingPanel = false; self._draggingSplitter = null; self._draggingFrame = null; self._draggingFrameSizer = null; diff --git a/Build/wcDocker.min.js b/Build/wcDocker.min.js index f18111cb..9bec607c 100644 --- a/Build/wcDocker.min.js +++ b/Build/wcDocker.min.js @@ -31,12 +31,9 @@ * */ -!function(){var t,e,a;!function(r){function o(t,e){return g.call(t,e)}function i(t,e){var a,r,o,i,n,s,l,c,h,u,d,f=e&&e.split("/"),p=m.map,b=p&&p["*"]||{};if(t&&"."===t.charAt(0))if(e){for(t=t.split("/"),n=t.length-1,m.nodeIdCompat&&x.test(t[n])&&(t[n]=t[n].replace(x,"")),t=f.slice(0,f.length-1).concat(t),h=0;h0&&(t.splice(h-1,2),h-=2)}t=t.join("/")}else 0===t.indexOf("./")&&(t=t.substring(2));if((f||b)&&p){for(a=t.split("/"),h=a.length;h>0;h-=1){if(r=a.slice(0,h).join("/"),f)for(u=f.length;u>0;u-=1)if(o=p[f.slice(0,u).join("/")],o&&(o=o[r])){i=o,s=h;break}if(i)break;!l&&b&&b[r]&&(l=b[r],c=h)}!i&&l&&(i=l,s=c),i&&(a.splice(0,s,i),t=a.join("/"))}return t}function n(t,e){return function(){var a=T.call(arguments,0);return"string"!=typeof a[0]&&1===a.length&&a.push(null),f.apply(r,a.concat([t,e]))}}function s(t){return function(e){return i(e,t)}}function l(t){return function(e){_[t]=e}}function c(t){if(o(v,t)){var e=v[t];delete v[t],w[t]=!0,d.apply(r,e)}if(!o(_,t)&&!o(w,t))throw new Error("No "+t);return _[t]}function h(t){var e,a=t?t.indexOf("!"):-1;return a>-1&&(e=t.substring(0,a),t=t.substring(a+1,t.length)),[e,t]}function u(t){return function(){return m&&m.config&&m.config[t]||{}}}var d,f,p,b,_={},v={},m={},w={},g=Object.prototype.hasOwnProperty,T=[].slice,x=/\.js$/;p=function(t,e){var a,r=h(t),o=r[0];return t=r[1],o&&(o=i(o,e),a=c(o)),o?t=a&&a.normalize?a.normalize(t,s(e)):i(t,e):(t=i(t,e),r=h(t),o=r[0],t=r[1],o&&(a=c(o))),{f:o?o+"!"+t:t,n:t,pr:o,p:a}},b={require:function(t){return n(t)},exports:function(t){var e=_[t];return"undefined"!=typeof e?e:_[t]={}},module:function(t){return{id:t,uri:"",exports:_[t],config:u(t)}}},d=function(t,e,a,i){var s,h,u,d,f,m,g=[],T=typeof a;if(i=i||t,"undefined"===T||"function"===T){for(e=!e.length&&a.length?["require","exports","module"]:e,f=0;f=0;--_)if(c=b[_],c._uniqueId=c._uniqueId||n++,i=c._meta){for(p=i.bases,w=p.length-1;w>0;--w)v=p[w]._uniqueId,d[v]=(d[v]||0)+1;b[_]=p.slice(0)}else b[_]=[c];f={};t:for(;b.length;){for(_=0;_0;--w)if(c=m[w],u=c._meta,t.mix(i,u&&u.ownProps||c[l]),u)for(v in b=u.weaver)p[v]=(+p[v]||0)|b[v];for(v in r)a(u=r[v])?p[v]=+p[v]||0:i[v]=u;return u={bases:m,ownProps:r,weaver:p,chains:{}},m[0]={_meta:u,prototype:i},o(u,i),h=i[s],h._meta=u,h[l]=i,m[0]=h,t._postprocess(h)}function e(t){this.around=t}function a(t){return t&&t.spr instanceof e}function r(t){var e=[];for(var a in t)e.push(a);return e}function o(e,a){var r=e.weaver,o=e.bases,i=e.chains;for(var n in r)a[n]=t._stub(r[n],o,n,i)}var i,n=0,s="constructor",l="prototype",c={};return(i=function(t,e){for(var a in e)t[a]=e[a]})(t,{mix:i,delegate:function(t){return Object.create(t)},allKeys:r,Super:e,superCall:function(e){return t._makeSuper(e)},_makeSuper:function(t,a){var r=function(){};return r.spr=new(a||e)(t),r},_postprocess:function(t){return t},_error:function(t){throw Error("dcl: "+t)},_instantiate:function(t,e,a){var r=t.spr.around(e);return r.ctr=t.ctr,r},_extractChain:function(t,e,r){for(var o,i,n=t.length-1,h=[],u="around"==r;o=t[n];--n)((i=o._meta)?(i=i.ownProps).hasOwnProperty(e)&&(a(i=i[e])?u?i.spr.around:i=i.spr[r]:u):u&&(i=e==s?o:o[l][e])&&i!==c[e])&&(i.ctr=o,h.push(i));return h},_stubChain:function(t){var e,a=t.length;return a?1==a?(e=t[0],function(){e.apply(this,arguments)}):function(){for(var e=0;a>e;++e)t[e].apply(this,arguments)}:0},_stubSuper:function(e,r){for(var o,i=0,n=c[r];o=e[i];++i)n=a(o)?e[i]=t._instantiate(o,n,r):o;return r!=s?n:function(){n.apply(this,arguments)}},_stubChainSuper:function(e,r,o){for(var i,n,l=0,c=0;i=e[l];++l)a(i)&&(n=l-c,e[l]=t._instantiate(i,n?1==n?e[c]:r(e.slice(c,l)):0,o),c=l);return n=l-c,n?1==n&&o!=s?e[c]:r(c?e.slice(c):e):0},_stub:function(e,a,r,o){var i=o[r]=t._extractChain(a,r,"around");return(e?t._stubChainSuper(i,t._stubChain,r):t._stubSuper(i,r))||function(){}}}),t}),function(t){"undefined"!=typeof a?a("dcl/dcl",["./mini"],t):"undefined"!=typeof module?module.exports=t(e("./mini")):dcl=t(dcl)}(function(t){"use strict";function e(){}function a(e){return t._makeSuper(e,i)}function r(t,a,r){var o=t||e,i=a||e,n=r||e,s=function(){var t,e;o.apply(this,arguments);try{t=n.apply(this,arguments)}catch(a){t=a,e=!0}if(i.call(this,arguments,t),e)throw t;return t};return s.advices={before:t,after:a,around:r},s}function o(e){return function(a,r){var o,i=a._meta;i&&(o=+i.weaver[r]||0,o&&o!=e&&t._error("set chaining",r,a,e,o),i.weaver[r]=e)}}var i=t(t.Super,{constructor:function(){this.before=this.around.before,this.after=this.around.after,this.around=this.around.around}});return t.mix(t,{Advice:i,advise:a,before:function(e){return t.advise({before:e})},after:function(e){return t.advise({after:e})},around:t.superCall,chainBefore:o(1),chainAfter:o(2),isInstanceOf:function(t,e){if(t instanceof e)return!0;var a,r=t.constructor._meta;if(r)for(r=r.bases,a=r.length-1;a>=0;--a)if(r[a]===e)return!0;return!1},_stub:function(e,a,o,i){var n=i[o]=t._extractChain(a,o,"around"),s=t._extractChain(a,o,"before").reverse(),l=t._extractChain(a,o,"after");return n=e?t._stubChainSuper(n,1==e?function(e){return t._stubChain(e.reverse())}:t._stubChain,o):t._stubSuper(n,o),s.length||l.length?r(t._stubChain(s),t._stubChain(l),n):n||function(){}}}),t}),a("wcDocker/types",[],function(){var t={};return t.DOCK={MODAL:"modal",FLOAT:"float",TOP:"top",LEFT:"left",RIGHT:"right",BOTTOM:"bottom",STACKED:"stacked"},t.LAYOUT={SIMPLE:"wcLayoutSimple",TABLE:"wcLayoutTable"},t.EVENT={INIT:"panelInit",LOADED:"dockerLoaded",UPDATED:"panelUpdated",VISIBILITY_CHANGED:"panelVisibilityChanged",BEGIN_DOCK:"panelBeginDock",END_DOCK:"panelEndDock",GAIN_FOCUS:"panelGainFocus",LOST_FOCUS:"panelLostFocus",CLOSING:"panelClosing",CLOSED:"panelClosed",PERSISTENT_CLOSED:"panelPersistentClosed",PERSISTENT_OPENED:"panelPersistentOpened",BUTTON:"panelButton",ATTACHED:"panelAttached",DETACHED:"panelDetached",MOVE_STARTED:"panelMoveStarted",MOVE_ENDED:"panelMoveEnded",MOVED:"panelMoved",RESIZE_STARTED:"panelResizeStarted",RESIZE_ENDED:"panelResizeEnded",RESIZED:"panelResized",ORDER_CHANGED:"panelOrderChanged",SCROLLED:"panelScrolled",SAVE_LAYOUT:"layoutSave",RESTORE_LAYOUT:"layoutRestore",CUSTOM_TAB_CHANGED:"customTabChanged",CUSTOM_TAB_CLOSED:"customTabClosed"},t.PANEL_PLACEHOLDER="__wcDockerPlaceholderPanel",t.COLLAPSED="__wcDockerCollapsedPanel",t.ORIENTATION={VERTICAL:!1,HORIZONTAL:!0},t.TAB={TOP:"top",LEFT:"left",RIGHT:"right",BOTTOM:"bottom"},t}),a("wcDocker/base",["dcl/dcl"],function(t){return t(null,{getOptions:function(){return this._options||this.docker()._options||{}},option:function(t,e){return this.getOptions()[t]||e},instanceOf:function(t,e){return e=e||this,!(!e||-1==e.declaredClass.indexOf(t))},docker:function(t){for(var e=t||this._parent;e&&!e.instanceOf("wcDocker");)e=e._parent;return e},__getClass:function(t){return this.getOptions()[t+"Class"]}})}),a("wcDocker/panel",["dcl/dcl","./types","./base"],function(t,e,a){var r=t(a,{declaredClass:"wcPanel",constructor:function(t,e,a){this.$container=null,this._parent=t,this.$icon=null,this.$title=null,this.$titleText=null,this.$loading=null,this._panelObject=null,this._initialized=!1,this._collapseDirection=void 0,this._type=e,this._title=e,this._titleVisible=!0,this._options=a,this._layout=null,this._buttonList=[],this._actualPos={x:.5,y:.5},this._actualSize={x:0,y:0},this._resizeData={time:-1,timeout:!1,delta:150},this._pos={x:.5,y:.5},this._moveData={time:-1,timeout:!1,delta:150},this._size={x:-1,y:-1},this._minSize={x:100,y:100},this._maxSize={x:1/0,y:1/0},this._scroll={x:0,y:0},this._scrollable={x:!0,y:!0},this._collapsible=!0,this._overflowVisible=!1,this._moveable=!0,this._detachable=!0,this._closeable=!0,this._resizeVisible=!0,this._isVisible=!1,this._events={},this.__init()},title:function(t){return"undefined"!=typeof t&&(t===!1?(this._titleVisible=!1,this.$titleText.html(this._type)):(this._title=t,this.$titleText.html(t)),this.$icon&&this.$titleText.prepend(this.$icon),this._parent&&this._parent.instanceOf("wcFrame")&&this._parent.__updateTabs()),this._title},info:function(){return this.docker().panelTypeInfo(this._type)},layout:function(){return this._layout},focus:function(t){var e=this.docker();if(e){e.__focus(this._parent,t);for(var a=0;a"),this.$titleText.prepend(this.$icon)),this.$icon.removeClass(),this.$icon.addClass("wcTabIcon "+t),this._parent&&this._parent.instanceOf("wcFrame")&&this._parent.__updateTabs()},faicon:function(t){this.$icon||(this.$icon=$("
"),this.$titleText.prepend(this.$icon)),this.$icon.removeClass(),this.$icon.addClass("wcTabIcon fa fa-fw fa-"+t),this._parent&&this._parent.instanceOf("wcFrame")&&this._parent.__updateTabs()},scrollable:function(t,e){return"undefined"!=typeof t&&(this._scrollable.x=t?!0:!1,this._scrollable.y=e?!0:!1),{x:this._scrollable.x,y:this._scrollable.y}},scroll:function(t,e,a){return this.$container?("undefined"!=typeof t&&(a?this.$container.parent().stop().animate({scrollLeft:t,scrollTop:e},a):(this.$container.parent().scrollLeft(t),this.$container.parent().scrollTop(e))),{x:this.$container.parent().scrollLeft(),y:this.$container.parent().scrollTop()}):{x:0,y:0}},collapsible:function(t){return"undefined"!=typeof t&&(this._collapsible=t?!0:!1),this._collapsible},overflowVisible:function(t){return"undefined"!=typeof t&&(this._overflowVisible=t?!0:!1),this._overflowVisible},resizeVisible:function(t){return"undefined"!=typeof t&&(this._resizeVisible=t?!0:!1),this._resizeVisible},moveable:function(t){return"undefined"!=typeof t&&(this._moveable=t?!0:!1,this.$title.toggleClass("wcNotMoveable",!this._moveable)),this._moveable},detachable:function(t){return"undefined"!=typeof t&&(this._detachable=t?!0:!1),this._detachable},closeable:function(t){return"undefined"!=typeof t&&(this._closeable=t?!0:!1,this._parent&&this._parent.__update()),this._closeable},close:function(){var t=this.docker();t&&t.__closePanel(this)},startLoading:function(t,e,a){if(!this.$loading){this.$loading=$('
'),this.$container.append(this.$loading);var r=$('
');"number"!=typeof e&&(e=.4),this.$loading.append(r);var o=$('
');if(this.$loading.append(o),t){var i=$(''+t+"");this.$loading.append(i)}"number"!=typeof a&&(a=1),this.docker().$loading&&(e=0,a=0),r.css("opacity",e),o.css("opacity",a),i&&i.css("opacity",a)}},finishLoading:function(t){if(this.$loading)if(t>0){var e=this;this.$loading.fadeOut(t,function(){e.$loading.remove(),e.$loading=null,e.docker().__testLoadFinished()})}else this.$loading.remove(),this.$loading=null,this.docker().__testLoadFinished()},on:function(t,e){return t?(this._events[t]||(this._events[t]=[]),-1!==this._events[t].indexOf(e)?!1:(this._events[t].push(e),!0)):!1},off:function(t,e){if("undefined"==typeof t)return void(this._events={});if(this._events[t])if("undefined"==typeof e)this._events[t]=[];else for(var a=0;a'),this.$titleText=$("
"+this._title+"
"),this.$title.append(this.$titleText),this._options.hasOwnProperty("title")&&this.title(this._options.title),this._options.icon&&this.icon(this._options.icon),this._options.faicon&&this.faicon(this._options.faicon)},__update:function(){var t=this.docker();if(t&&(this._layout.__update(),this.$container)){if(this._resizeVisible?this._parent.$frame.removeClass("wcHideOnResize"):this._parent.$frame.addClass("wcHideOnResize"),this._initialized)this.__trigger(e.EVENT.UPDATED);else{this._initialized=!0;var a=this;setTimeout(function(){a.__trigger(e.EVENT.INIT),t.__testLoadFinished()},0)}var r=this.$container.width(),o=this.$container.height();(this._actualSize.x!==r||this._actualSize.y!==o)&&(this._resizeData.time=new Date,this._resizeData.timeout||(this._resizeData.timeout=!0,setTimeout(this.__resizeEnd.bind(this),this._resizeData.delta),this.__trigger(e.EVENT.RESIZE_STARTED,{width:this._actualSize.x,height:this._actualSize.y})),this._actualSize.x=r,this._actualSize.y=o,this.__trigger(e.EVENT.RESIZED,{width:this._actualSize.x,height:this._actualSize.y}));var i=this.$container.offset();(this._actualPos.x!==i.left||this._actualPos.y!==i.top)&&(this._moveData.time=new Date,this._moveData.timeout||(this._moveData.timeout=!0,setTimeout(this.__moveEnd.bind(this),this._moveData.delta),this.__trigger(e.EVENT.MOVE_STARTED,{x:this._actualPos.x,y:this._actualPos.y})),this._actualPos.x=i.left,this._actualPos.y=i.top,this.__trigger(e.EVENT.MOVED,{x:this._actualPos.x,y:this._actualPos.y}))}},__resizeEnd:function(){new Date-this._resizeData.timer.x&&t.y>r.y&&t.xr.x&&t.y>r.y&&t.x').css("opacity",0).css("top",t.y+"px").css("left",t.x+"px").css("width",t.w+"px").css("height",t.h+"px"),this._anchorMouse={x:t.x-e.x,y:t.y-e.y},this._rect={x:-this._anchorMouse.x,y:-this._anchorMouse.y,w:t.w,h:t.h},$("body").append(this.$ghost),this.anchor(e,t)},__move:function(t){if(!this._anchor){var e=parseInt(this.$ghost.css("left")),a=parseInt(this.$ghost.css("top"));e=t.x+this._anchorMouse.x,a=t.y+this._anchorMouse.y,this.$ghost.css("left",e+"px"),this.$ghost.css("top",a+"px")}},__rect:function(){return this._rect},__destroy:function(){this.$ghost.stop().animate({opacity:0},{duration:175,complete:function(){$(this).remove()}})}});return a}),a("wcDocker/splitter",["dcl/dcl","./types","./base"],function(t,e,a){var r=t(a,{declaredClass:"wcSplitter",constructor:function(t,e,a){this.$container=$(t),this._parent=e,this._orientation=a,this._pane=[!1,!1],this.$pane=[],this.$bar=null,this._pos=.5,this._posTarget=.5,this._pixelPos=-1,this._findBestPos=!1,this._anim=0,this._boundEvents=[],this.__init(),this.docker()._splitterList.push(this)},initLayouts:function(t,e){var a=t||"wcLayoutTable",r=new(this.docker().__getClass(a))(this.$pane[0],this);a=e||"wcLayoutTable";var o=new(this.docker().__getClass(a))(this.$pane[1],this);this.pane(0,r),this.pane(1,o)},orientation:function(t){return"undefined"==typeof t?this._orientation:void(this._orientation!=t&&(this._orientation=t,this._orientation?this.$bar.removeClass("wcWide").removeClass("wcSplitterBarH").addClass("wcTall").addClass("wcSplitterBarV"):this.$bar.removeClass("wcTall").removeClass("wcSplitterBarV").addClass("wcWide").addClass("wcSplitterBarH"),this.$pane[0].css("top","").css("left","").css("width","").css("height",""),this.$pane[1].css("top","").css("left","").css("width","").css("height",""),this.$bar.css("top","").css("left","").css("width","").css("height",""),this.__update(),this._parent&&this._parent.instanceOf("wcPanel")&&this._parent.__trigger(e.EVENT.UPDATED)))},minSize:function(){var t,e;return this._pane[0]&&"function"==typeof this._pane[0].minSize&&(t=this._pane[0].minSize()),this._pane[1]&&"function"==typeof this._pane[1].minSize&&(e=this._pane[1].minSize()),t&&e?(this._orientation?(t.x+=e.x,t.y=Math.max(t.y,e.y)):(t.y+=e.y,t.x=Math.max(t.x,e.x)),t):t?t:e?e:!1},maxSize:function(){var t,e;return this._pane[0]&&"function"==typeof this._pane[0].maxSize&&(t=this._pane[0].maxSize()),this._pane[1]&&"function"==typeof this._pane[1].maxSize&&(e=this._pane[1].maxSize()),t&&e?(this._orientation?(t.x+=e.x,t.y=Math.min(t.y,e.y)):(t.y+=e.y,t.x=Math.min(t.x,e.x)),t):t?t:e?e:!1},pos:function(t){return"undefined"!=typeof t&&(this._pos=this._posTarget=t,this.__update(),this._parent&&this._parent.instanceOf("wcPanel")&&this._parent.__trigger(e.EVENT.UPDATED)),this._posTarget},animPos:function(t,e){this._posTarget=t;var a=this;this.$bar.queue(function(t){a._anim&&clearInterval(a._anim),a._anim=setInterval(function(){a._pos>a._posTarget&&(a._pos-=(a._pos-a._posTarget)/5,a._pos<=a._posTarget+.01&&(a._pos=a._posTarget)),a._pos=a._posTarget-.01&&(a._pos=a._posTarget)),a.__update(),a._pos==a._posTarget&&(e&&e(),t(),clearInterval(a._anim),a._anim=0)},5)}),this.$bar.dequeue()},pane:function(t,e){if(t>=0&&2>t){if("undefined"==typeof e)return this._pane[t];if(e)return this._pane[t]=e,e._parent=this,e.__container(this.$pane[t]),this._pane[0]&&this._pane[1]&&this.__update(),e;this._pane[t]&&(this._pane[t].__container(null),this._pane[t]=!1)}return!1},left:function(t){return this.pane(0,t)},right:function(t){return this.pane(1,t)},top:function(t){return this.pane(0,t)},bottom:function(t){return this.pane(1,t)},scrollable:function(t,e,a){return"undefined"!=typeof e&&this.$pane[t].toggleClass("wcScrollableX",e),"undefined"!=typeof a&&this.$pane[t].toggleClass("wcScrollableY",a),{x:this.$pane[t].hasClass("wcScrollableX"),y:this.$pane[t].hasClass("wcScrollableY")}},destroy:function(t){var e=this.docker();if(e){var a=this.docker()._splitterList.indexOf(this);a>-1&&this.docker()._splitterList.splice(a,1)}void 0===t||t?this.__destroy():this.__container(null)},__init:function(){if(this.$pane.push($('
')),this.$pane.push($('
')),this.$bar=$('
'),this._orientation?this.$bar.addClass("wcTall").addClass("wcSplitterBarV"):this.$bar.addClass("wcWide").addClass("wcSplitterBarH"),this.__container(this.$container),this._parent&&this._parent.instanceOf("wcPanel")){this._boundEvents.push({event:e.EVENT.UPDATED,handler:this.__update.bind(this)}),this._boundEvents.push({event:e.EVENT.CLOSED,handler:this.destroy.bind(this)});for(var t=0;ta;++a)if(this._pane[a]&&this._pane[a].minSize&&this._pane[a].maxSize&&this._pane[a].maxSize()[t]-this._pane[a].minSize()[t]===0)return!0;return!1},__container:function(t){return"undefined"==typeof t?this.$container:(this.$container=t, -this.$container?(this.$container.append(this.$pane[0]),this.$container.append(this.$pane[1]),this.$container.append(this.$bar)):(this.$pane[0].remove(),this.$pane[1].remove(),this.$bar.remove()),this.$container)},__removeChild:function(t){if(this._pane[0]===t)this._pane[0]=!1;else{if(this._pane[1]!==t)return;this._pane[1]=!1}t&&(t.__container(null),t._parent=null)},__destroy:function(){for(this._anim&&(clearInterval(this._anim),this._anim=0),this.$bar.clearQueue();this._boundEvents.length;)this._parent.off(this._boundEvents[0].event,this._boundEvents[0].handler),this._boundEvents.shift();this._pane[0]&&(this._pane[0].__destroy(),this._pane[0]=null),this._pane[1]&&(this._pane[1].__destroy(),this._pane[1]=null),this.__container(null),this._parent=!1}});return r}),a("wcDocker/frame",["dcl/dcl","./types","./base"],function(t,e,a){var r=t(a,{declaredClass:"wcFrame",LEFT_TAB_BUFFER:15,constructor:function(t,a,r){this.$container=$(t),this._parent=a,this._isFloating=r,this.$frame=null,this.$title=null,this.$titleBar=null,this.$tabBar=null,this.$tabScroll=null,this.$center=null,this.$tabLeft=null,this.$tabRight=null,this.$close=null,this.$collapse=null,this.$top=null,this.$bottom=null,this.$left=null,this.$right=null,this.$corner1=null,this.$corner2=null,this.$corner3=null,this.$corner4=null,this.$buttonBar=null,this.$shadower=null,this.$modalBlocker=null,this._titleVisible=!0,this._canScrollTabs=!1,this._tabOrientation=e.TAB.TOP,this._tabScrollPos=0,this._curTab=-1,this._panelList=[],this._buttonList=[],this._resizeData={time:-1,timeout:!1,delta:150},this._pos={x:.5,y:.5},this._size={x:400,y:400},this._lastSize={x:400,y:400},this._anchorMouse={x:0,y:0},this.__init()},pos:function(t,e,a){var r=this.$container.width(),o=this.$container.height();return"undefined"==typeof t?a?{x:this._pos.x*r,y:this._pos.y*o}:{x:this._pos.x,y:this._pos.y}:void(a?(this._pos.x=t/r,this._pos.y=e/o):(this._pos.x=t,this._pos.y=e))},initSize:function(){for(var t={x:-1,y:-1},e=0;e=e&&this._curTab--,this._panelList[e]._parent===this&&(this._panelList[e].__container(null),this._panelList[e]._parent=null),this._panelList.splice(e,1),t._isVisible=!1;break}return-1===this._curTab&&!this.collapse()&&this._panelList.length&&(this._curTab=0),this.__updateTabs(),this._panelList.length>0},panel:function(t,e){return"undefined"!=typeof t&&(this.isCollapser()&&t===this._curTab&&(this.collapse(),t=-1),t .wcTabScroller > .wcPanelTab[id="'+this._curTab+'"]').removeClass("wcPanelTabActive"),this.$center.children('.wcPanelTabContent[id="'+this._curTab+'"]').addClass("wcPanelTabContentHidden"),this._curTab!==t&&this.collapse(),this._curTab=t,t>-1&&(this.$tabBar.find('> .wcTabScroller > .wcPanelTab[id="'+t+'"]').addClass("wcPanelTabActive"),this.$center.children('.wcPanelTabContent[id="'+t+'"]').removeClass("wcPanelTabContentHidden"),this.expand()),this.__updateTabs(e))),this._curTab>-1&&this._curTab'),this.$title=$('
'),this.$titleBar=$('
'),this.$tabBar=$('
'),this.$tabScroll=$('
'),this.$center=$('
'),this.$tabLeft=$('
<
'),this.$tabRight=$('
>
'),this.$close=$('
X
'),this.$collapse=$('
C
'),this.$buttonBar=$('
'),this.$tabButtonBar=$('
'),this.$tabBar.append(this.$tabScroll),this.$tabBar.append(this.$tabButtonBar),this.$frame.append(this.$buttonBar),this.$buttonBar.append(this.$close),this.$buttonBar.append(this.$collapse),this.$frame.append(this.$center),this._isFloating&&(this.$top=$('
').css("top","-6px").css("left","0px").css("right","0px"),this.$bottom=$('
').css("bottom","-6px").css("left","0px").css("right","0px"),this.$left=$('
').css("left","-6px").css("top","0px").css("bottom","0px"),this.$right=$('
').css("right","-6px").css("top","0px").css("bottom","0px"),this.$corner1=$('
').css("top","-6px").css("left","-6px"),this.$corner2=$('
').css("top","-6px").css("right","-6px"),this.$corner3=$('
').css("bottom","-6px").css("right","-6px"),this.$corner4=$('
').css("bottom","-6px").css("left","-6px"),this.$frame.append(this.$top),this.$frame.append(this.$bottom),this.$frame.append(this.$left),this.$frame.append(this.$right),this.$frame.append(this.$corner1),this.$frame.append(this.$corner2),this.$frame.append(this.$corner3),this.$frame.append(this.$corner4)),this.__container(this.$container),this._isFloating&&this.$frame.addClass("wcFloating"),this.$center.scroll(this.__scrolled.bind(this))},__update:function(){var t=this.$container.width(),e=this.$container.height();if(this._isFloating){var a=this._pos.x*t-this._size.x/2,r=this._pos.y*e-this._size.y/2;0>r&&(r=0),a+this._size.x/2<0&&(a=-this._size.x/2),a+this._size.x/2>t&&(a=t-this._size.x/2),r+parseInt(this.$center.css("top"))>e&&(r=e-parseInt(this.$center.css("top"))),this.$frame.css("left",a+"px"),this.$frame.css("top",r+"px"),this.$frame.css("width",this._size.x+"px"),this.$frame.css("height",this._size.y+"px")}(t!==this._lastSize.x||e!==this._lastSize.y)&&(this._lastSize.x=t,this._lastSize.y=e,this._resizeData.time=new Date,this._resizeData.timeout||(this._resizeData.timeout=!0,setTimeout(this.__resizeEnd.bind(this),this._resizeData.delta))),this.__onTabChange()},__resizeEnd:function(){this.__updateTabs(),new Date-this._resizeData.time1||this._isFloating||this.isCollapser();this.isCollapser()?this.$tabBar.addClass("wcNotMoveable"):(this.$titleBar.removeClass("wcNotMoveable"),this.$tabBar.removeClass("wcNotMoveable")),this.$center.children(".wcPanelTabContent").each(function(){$(this).addClass("wcPanelTabContentHidden wcPanelTabUnused")}),this._titleVisible=!0,this.$title.html("");for(var l=0;l'),this.$center.append(u)),c.__container(u),c._parent=this;var d=this._curTab===l;if(c.isVisible()!==d&&r.push({panel:c,isVisible:d}),u.removeClass("wcPanelTabUnused"),d&&(h&&h.addClass("wcPanelTabActive"),u.removeClass("wcPanelTabContentHidden"),this.$title.html(c.title()),c.$icon)){var f=c.$icon.clone();this.$title.prepend(f)}h&&(i=a(h)-n,o.push(i),i+=h.outerWidth())}var p=this.$titleBar,b=0;if(this._titleVisible){switch(this.$frame.parent()||this.$center.css("top",""),this._tabOrientation){case e.TAB.TOP:this.$frame.prepend(this.$tabBar),this.$titleBar.remove(),this.$tabBar.addClass("wcTabTop").removeClass("wcTabLeft wcTabRight wcTabBottom"),s?this.$title.remove():this.$tabBar.prepend(this.$title),p=this.$tabBar,this.$center.css("left",0).css("right",0).css("bottom",0),b=this.$center.width();break;case e.TAB.BOTTOM:if(this.$frame.prepend(this.$titleBar),this.$titleBar.append(this.$title),s){var _=this.$titleBar.height();this.$frame.append(this.$tabBar),this.$tabBar.addClass("wcTabBottom").removeClass("wcTabTop wcTabLeft wcTabRight"),this.$center.css("left",0).css("right",0).css("bottom",_)}else this.$tabBar.remove();b=this.$center.width();break;case e.TAB.LEFT:if(this.$frame.prepend(this.$titleBar),this.$titleBar.append(this.$title),s){var _=this.$titleBar.height();this.$frame.append(this.$tabBar),this.$tabBar.addClass("wcTabLeft").removeClass("wcTabTop wcTabRight wcTabBottom"),this.$center.css("left",_).css("right",0).css("bottom",0)}else this.$tabBar.remove();b=this.$center.height();break;case e.TAB.RIGHT:if(this.$frame.prepend(this.$titleBar),this.$titleBar.append(this.$title),s){var _=this.$titleBar.height();this.$frame.append(this.$tabBar),this.$tabBar.addClass("wcTabRight").removeClass("wcTabTop wcTabLeft wcTabBottom"),this.$center.css("left",0).css("right",_).css("bottom",0)}else this.$tabBar.remove();b=this.$center.height()}s||this.$center.css("left",0).css("right",0).css("bottom",0)}else this.$titleBar.remove(),this.$tabBar.remove(),this.$center.css("top",0).css("left",0).css("right",0).css("bottom",0);if(this.$center.children(".wcPanelTabUnused").each(function(){$(this).remove()}),this._titleVisible){var v=this.__onTabChange();if(t)for(var l=0;lm?(this._tabScrollPos=m-this.LEFT_TAB_BUFFER,this._tabScrollPos<0&&(this._tabScrollPos=0)):w-g>T&&(this._tabScrollPos=w-T+this.LEFT_TAB_BUFFER);break}if(this._canScrollTabs=!1,i>b-v){this._canScrollTabs=this._titleVisible,this._canScrollTabs&&(this.$tabButtonBar.append(this.$tabRight),this.$tabButtonBar.append(this.$tabLeft),v+=this.$tabRight.outerWidth(),v+=this.$tabLeft.outerWidth());var x=i-(b-v)/2;if(this._tabScrollPos>x)for(var y=this.$tabScroll.children(),l=0;lx){this._tabScrollPos=i-this.LEFT_TAB_BUFFER,this._tabScrollPos<0&&(this._tabScrollPos=0);break}}}else this._tabScrollPos=0,this.$tabLeft.remove(),this.$tabRight.remove();this.$tabScroll.stop().animate({left:-this._tabScrollPos+"px"},"fast");for(var l=0;l.5&&h.bottom>.95?s=e.DOCK.BOTTOM:h.left<=.05?s=e.DOCK.LEFT:h.right>=.95?s=e.DOCK.RIGHT:h.bottom>.95&&(s=e.DOCK.BOTTOM)}var u="",d="";switch(s){case e.DOCK.LEFT:u="left side.",d="wcCollapseLeft";break;case e.DOCK.RIGHT:u="right side.",d="wcCollapseRight";break;case e.DOCK.BOTTOM:u="bottom.",d="wcCollapseBottom"}if(u){var n=this.$collapse.children("div");n[0].className="fa fa-sign-in",n.addClass(d),n.addClass("wcCollapsible"),this.$collapse.show(),this.$collapse.attr("title","Collapse this panel into the "+u),t+=this.$collapse.outerWidth()}}for(var f=0;f"),_=p.className;b.addClass("wcFrameButton"),p.isTogglable&&(b.addClass("wcFrameButtonToggler"),p.isToggled&&(b.addClass("wcFrameButtonToggled"),_=p.toggleClassName||_)),b.attr("title",p.tip),b.data("name",p.name),b.text(p.text),_&&b.prepend($('
')),this._buttonList.push(b),this.$buttonBar.append(b),t+=b.outerWidth()}}if(this._canScrollTabs&&(this.$tabButtonBar.append(this.$tabRight),this.$tabButtonBar.append(this.$tabLeft),a+=this.$tabRight.outerWidth()+this.$tabLeft.outerWidth()),this._titleVisible)switch(this.$buttonBar.css("right",""),this._tabOrientation){case e.TAB.RIGHT:this.$buttonBar.css("right",this.$tabBar.height());case e.TAB.LEFT:this.$tabBar.css("width",this.$center.height()+this.$tabBar.height());break;case e.TAB.TOP:case e.TAB.BOTTOM:this.$tabBar.css("width",this.$center.width())}r.__update(),this.$center.scrollLeft(r._scroll.x),this.$center.scrollTop(r._scroll.y)}return this.$buttonBar.css("min-width",t).css("width",t),this.$tabButtonBar.css("min-width",a).css("width",a),this._tabOrientation===e.TAB.TOP?(this.$tabButtonBar.css("right",t),t+a):(this.$tabButtonBar.css("right",0),a)},__scrolled:function(){var t=this.panel();t._scroll.x=this.$center.scrollLeft(),t._scroll.y=this.$center.scrollTop(),t.__trigger(e.EVENT.SCROLLED)},__focus:function(t){if(t){var e=$('
');this.$frame.append(e),e.animate({opacity:1},100).animate({opacity:0},100).animate({opacity:.6},50).animate({opacity:0},50).queue(function(t){e.remove(),t()})}},__move:function(t){var e=this.$container.width(),a=this.$container.height();this._pos.x=(t.x+this._anchorMouse.x)/e,this._pos.y=(t.y+this._anchorMouse.y)/a},__anchorMove:function(t){var e=this.$container.width(),a=this.$container.height();this._anchorMouse.x=this._pos.x*e-t.x,this._anchorMouse.y=this._pos.y*a-t.y},__tabMove:function(t,e){if(t>=0&&t=0&&e .wcTabScroller > .wcPanelTab[id="'+e+'"]')[0]}return!1},__checkAnchorDrop:function(t,e,a,r,o,i){var n=this.panel();return n&&n.moveable()?n.layout().__checkAnchorDrop(t,e&&this._tabOrientation,a,!this._isFloating&&!this.isCollapser()&&r,this.$frame,n.moveable()&&n.title(),o,this.isCollapser()?this._tabOrientation:void 0,i):!1},__resize:function(t,e){var a=this.$container.width(),r=this.$container.height(),o=this.$container.offset();e.x-=o.left,e.y-=o.top;for(var i=this.minSize(),n=this.maxSize(),s={x:this._pos.x*a-this._size.x/2,y:this._pos.y*r-this._size.y/2},l=0;ln.y&&(s.y+=this._size.y-n.y,this._size.y=n.y);break;case"bottom":this._size.y=e.y-4-s.y,this._size.yn.y&&(this._size.y=n.y);break;case"left":this._size.x+=s.x-e.x-2,s.x=e.x+2,this._size.xn.x&&(s.x+=this._size.x-n.x,this._size.x=n.x);break;case"right":this._size.x=e.x-4-s.x,this._size.xn.x&&(this._size.x=n.x)}this._pos.x=(s.x+this._size.x/2)/a,this._pos.y=(s.y+this._size.y/2)/r}},__shadow:function(t){if(t)this.$shadower||(this.$shadower=$('
'),this.$frame.append(this.$shadower),this.$shadower.animate({opacity:.5},300));else if(this.$shadower){var e=this;this.$shadower.animate({opacity:0},300).queue(function(t){e.$shadower.remove(),e.$shadower=null,t()})}},__rect:function(){if(this.isCollapser())return this._parent.__rect();var t=this.$frame.offset(),e=this.$frame.width(),a=this.$frame.height();return{x:t.left,y:t.top,w:e,h:a}},__container:function(t){return"undefined"==typeof t?this.$container:(this.$container=t,this.$container?this.$container.append(this.$frame):this.$frame.remove(),this.$container)},__destroy:function(){this._curTab=-1;for(var t=0;t'),this.__container(this.$container),this._frame=new(this.docker().__getClass("wcFrame"))(this.$frame,this,!1),this._frame.tabOrientation(this._position)},__update:function(t){this.__adjustCollapsedSize(),this._frame.__update()},__adjustCollapsedSize:function(){this._frame._panelList.length?(this._closeSize=this._frame.$tabBar.outerHeight(),this._parent.$bar.removeClass("wcSplitterHidden")):(this._closeSize=0,this._parent.$bar.addClass("wcSplitterHidden"))},__rect:function(){var t=this.$frame.offset(),a=this.$frame.width(),r=this.$frame.height(),o=this._frame.panel();return o&&(this._position===e.DOCK.BOTTOM?(r=o._size.y,a/=3):(a=o._size.x,r/=3)),{x:t.left,y:t.top,w:a,h:r}},__save:function(){var t={};return t.closeSize=this._closeSize,t.frame=this._frame.__save(),t},__restore:function(t,e){this._closeSize=t.closeSize,this._frame.__restore(t.frame,e),this.__adjustCollapsedSize()},__container:function(t){return"undefined"==typeof t?this.$container:(this.$container=t,this.$container?this.$container.append(this.$frame):this.$frame.remove(),this.$container)},__destroy:function(){this._frame&&(this._frame.__destroy(),this._frame=null),this.__container(null),this._parent=null}});return o}),a("wcDocker/collapser",["dcl/dcl","./types","./splitter","./drawer","./base"],function(t,e,a,r,o){var i=t(o,{declaredClass:"wcCollapser",constructor:function(t,a,r){this.$container=$(t),this.$frame=null,this._position=r,this._parent=a,this._splitter=null,this._drawer=null,this._size=0,this._orientation=this._position===e.DOCK.LEFT||this._position===e.DOCK.RIGHT?e.ORIENTATION.HORIZONTAL:e.ORIENTATION.VERTICAL,this.__init()},collapse:function(t){this._drawer.collapse()},expand:function(){this._drawer.expand()},isExpanded:function(){return this._drawer.isExpanded()},minSize:function(){return{x:this._size,y:this._size}},maxSize:function(){var t=this._orientation===e.ORIENTATION.HORIZONTAL?!0:!1;return{x:t?this._size:1/0,y:t?1/0:this._size}},__init:function(){this.$frame=$('
'),this.__container(this.$container);var t=this.docker();switch(this._splitter=new(this.docker().__getClass("wcSplitter"))(t.$container,this,this._orientation),this._drawer=new(this.docker().__getClass("wcDrawer"))(t.$transition,this._splitter,this._position),this._position){case e.DOCK.LEFT:this._splitter.pane(0,this._drawer),this._splitter.$pane[1].remove(),this._splitter.$pane[0].addClass("wcDrawer"),this._splitter.pos(0);break;case e.DOCK.RIGHT:case e.DOCK.BOTTOM:this._splitter.pane(1,this._drawer),this._splitter.$pane[0].remove(),this._splitter.$pane[1].addClass("wcDrawer"),this._splitter.pos(1)}this._parent.$bar.addClass("wcSplitterHidden")},__update:function(t){this._splitter.__update(),this.__adjustSize()},__adjustSize:function(){this._drawer._frame._panelList.length?this._size=this._drawer._frame.$tabBar.outerHeight():this._size=0},__rect:function(){return this._drawer.__rect()},__save:function(){var t={};return t.size=this._size,t.drawer=this._drawer.__save(),t},__restore:function(t,e){this._size=t.size,this._drawer.__restore(t.drawer,e),this.__adjustSize()},__container:function(t){return"undefined"==typeof t?this.$container:(this.$container=t,this.$container?this.$container.append(this.$frame):this.$frame.remove(),this.$container)},__destroy:function(){this._splitter&&(this._splitter.__destroy(),this._splitter=null,this._frame=null),this.__container(null),this._parent=null}});return i}),a("wcDocker/layout",["dcl/dcl","./types"],function(t,e){var a=t(null,{declaredClass:"wcLayout",constructor:function(t,e){this.$container=$(t),this._parent=e,this.$elem=null,this.__init()},addItem:function(t){},clear:function(){},scene:function(){return this.$elem},__init:function(){},__update:function(){},__checkAnchorDrop:function(t,a,r,o,i,n,s,l,c){function h(t,e,a){return"number"==typeof t||"string"==typeof t&&-1!==t.indexOf("px",t.length-2)?(t=parseInt(t),{x:t,y:t}):"string"==typeof t&&-1!==t.indexOf("%",t.length-1)?(t=parseInt(t)/100,{x:e*t,y:a*t}):{x:0,y:0}}var u=this._parent.docker(),d=i.outerWidth(),f=i.outerHeight(),p=i.offset(),b=i.find(".wcFrameTitleBar").height();n||(b=0);var _=h(u._options.edgeAnchorSize,u.$container.outerWidth(),u.$container.outerHeight()),v=h(u._options.panelAnchorSize,d,f);if(n){if((!l||l===e.TAB.TOP)&&t.y>=p.top&&t.y<=p.top+b&&t.x>=p.left&&t.x<=p.left+d)return r.anchor(t,{x:p.left-2,y:p.top-2,w:d,h:b-2,loc:e.DOCK.STACKED,tab:e.TAB.TOP,item:this,self:a===e.TAB.TOP||s&&a}),!0;if(u._canOrientTabs){if((!l||l===e.TAB.BOTTOM)&&t.y>=p.top+f-b&&t.y<=p.top+f&&t.x>=p.left&&t.x<=p.left+d)return r.anchor(t,{x:p.left-2,y:p.top+f-b-2,w:d,h:b,loc:e.DOCK.STACKED,tab:e.TAB.BOTTOM,item:this,self:a===e.TAB.BOTTOM}),!0;if((!l||l===e.TAB.LEFT)&&t.y>=p.top&&t.y<=p.top+f&&t.x>=p.left&&t.x<=p.left+b)return r.anchor(t,{x:p.left-2,y:p.top-2,w:b-2,h:f,loc:e.DOCK.STACKED,tab:e.TAB.LEFT,item:this,self:a===e.TAB.LEFT}),!0;if((!l||l===e.TAB.RIGHT)&&t.y>=p.top&&t.y<=p.top+f&&t.x>=p.left+d-b&&t.x<=p.left+d)return r.anchor(t,{x:p.left+d-b-2,y:p.top-2,w:b,h:f,loc:e.DOCK.STACKED,tab:e.TAB.RIGHT,item:this,self:a===e.TAB.RIGHT}),!0}}if(c&&r._outer&&r._inner){var m=r._outer.$container.outerWidth(),w=r._outer.$container.outerHeight(),g=r._outer.$container.offset();if(t.y>=g.top&&t.y<=g.top+w&&t.x>=g.left+b&&t.x<=g.left+b+_.x)return r.anchor(t,{x:g.left-2,y:g.top-2,w:m/3,h:w,loc:e.DOCK.LEFT,item:r._inner,self:!1}),!0;if(t.y>=g.top&&t.y<=g.top+w&&t.x>=g.left+m-_.x-b&&t.x<=g.left+m-b)return r.anchor(t,{x:g.left+m-m/3-2,y:g.top-2,w:m/3,h:w,loc:e.DOCK.RIGHT,item:r._inner,self:!1}),!0;if(t.y>=g.top+b&&t.y<=g.top+b+_.y&&t.x>=g.left&&t.x<=g.left+m)return r.anchor(t,{x:g.left-2,y:g.top-2,w:m,h:w/3,loc:e.DOCK.TOP,item:r._inner,self:!1}),!0;if(t.y>=g.top+w-b-_.y&&t.y<=g.top+w-b&&t.x>=g.left&&t.x<=g.left+m)return r.anchor(t,{x:g.left-2,y:g.top+w-w/3-2,w:m,h:w/3,loc:e.DOCK.BOTTOM,item:r._inner,self:!1}),!0}if(!o)return!1;if(this._parent&&this._parent.instanceOf("wcPanel")&&this._parent._isPlaceholder)return r.anchor(t,{x:p.left-2,y:p.top-2,w:d,h:f,loc:e.DOCK.TOP,item:this,self:!1}),!0;if(f>d){if(t.y>=p.top&&t.y<=p.top+b+v.y&&t.x>=p.left&&t.x<=p.left+d)return r.anchor(t,{x:p.left-2,y:p.top-2,w:d,h:.5*f,loc:e.DOCK.TOP,item:this,self:!1}),!0;if(t.y>=p.top+f-v.y-b&&t.y<=p.top+f&&t.x>=p.left&&t.x<=p.left+d)return r.anchor(t,{x:p.left-2,y:p.top+(f-.5*f)-2,w:d,h:.5*f,loc:e.DOCK.BOTTOM,item:this,self:!1}),!0}if(t.y>=p.top&&t.y<=p.top+f){if(t.x>=p.left&&t.x<=p.left+v.x+b)return r.anchor(t,{x:p.left-2,y:p.top-2,w:.5*d,h:f,loc:e.DOCK.LEFT,item:this,self:!1}),!0;if(t.x>=p.left+d-v.x-b&&t.x<=p.left+d)return r.anchor(t,{x:p.left+.5*d-2,y:p.top-2,w:.5*d,h:f,loc:e.DOCK.RIGHT,item:this,self:!1}),!0}if(d>=f){if(t.y>=p.top&&t.y<=p.top+v.y+b&&t.x>=p.left&&t.x<=p.left+d)return r.anchor(t,{x:p.left-2,y:p.top-2,w:d,h:.5*f,loc:e.DOCK.TOP,item:this,self:!1}),!0;if(t.y>=p.top+f-v.y-b&&t.y<=p.top+f&&t.x>=p.left&&t.x<=p.left+d)return r.anchor(t,{x:p.left-2,y:p.top+(f-.5*f)-2,w:d,h:.5*f,loc:e.DOCK.BOTTOM,item:this,self:!1}),!0}return!1},__container:function(t){return"undefined"==typeof t?this.$container:(this.$container=t,this.$container?this.$container.append(this.$elem):this.$elem.remove(),this.$container)},__destroy:function(){this.__container(null),this._parent=null,this.clear(),this.$elem.remove(),this.$elem=null}});return a}),a("wcDocker/layoutsimple",["dcl/dcl","./types","./layout"],function(t,e,a){var r=t(a,{declaredClass:"wcLayoutSimple",addItem:function(t){this.$elem.append(t)},clear:function(){this.$elem.remove(),this.$elem=null,this.__init()},__init:function(){this.$elem=$('
'),this.__container(this.$container)},__update:function(){}});return r}),a("wcDocker/layouttable",["dcl/dcl","./types","./layout"],function(t,e,a){var r=t(a,{declaredClass:"wcLayoutTable",addItem:function(t,e,a,r,o){return("undefined"==typeof e||0>e)&&(e=0),("undefined"==typeof a||0>a)&&(a=0),("undefined"==typeof r||0>=r)&&(r=1),("undefined"==typeof o||0>=o)&&(o=1),this.__resizeGrid(e+r-1,a+o-1),(r>1||o>1)&&!this.__mergeGrid(e,a,r,o)?!1:(this._grid[a][e].$el.append($(t)),this.item(e,a))},item:function(t,e){if(e>=this._grid.length)return!1;if(t>=this._grid[e].length)return!1;var a=this,r={$:a._grid[e][t].$el,css:function(o,i){if(a._grid[e][t].$el){if(void 0===i)return a._grid[e][t].$el.css(o);a._grid[e][t].$el.css(o,i)}return r},stretch:function(o,i){return a.itemStretch(t,e,o,i),r}};return r},itemStretch:function(t,e,a,r){var o=this._batchProcess;this._batchProcess=!0,this.__resizeGrid(t,e);var i=this._grid[e][t];return i.x<0||i.y<0?!1:(void 0!==a&&(i.sx=a),void 0!==r&&(i.sy=r),this._batchProcess=o,o||this.__resizeGrid(0,0),!0)},clear:function(){var t=this.showGrid(),e=this.gridSpacing(),a=this.gridAlternate();this.$elem.remove(),this.__init(),this.showGrid(t),this.gridSpacing(e),this.gridAlternate(a),this._grid=[]},startBatch:function(){this._batchProcess=!0},finishBatch:function(){this._batchProcess=!1,this.__resizeGrid(0,0)},showGrid:function(t){return"undefined"!=typeof t&&this.$elem.toggleClass("wcLayoutGrid",t),this.$elem.hasClass("wcLayoutGrid")},gridSpacing:function(t){return"undefined"!=typeof t&&this.$elem.css("border-spacing",t+"px"),parseInt(this.$elem.css("border-spacing"))},gridAlternate:function(t){return"undefined"!=typeof t&&this.$elem.toggleClass("wcLayoutGridAlternate",t),this.$elem.hasClass("wcLayoutGridAlternate")},__init:function(){this.$elem=$('
'),this.$elem.append($("")),this._grid=[],this.__container(this.$container)},__update:function(){},__resizeGrid:function(t,e){for(var a=0;e>=a;++a){if(this._grid.length<=a){var r=[];r.$row=$(""),this._grid.push(r)}for(var o=0;t>=o;++o)this._grid[a].length<=o&&this._grid[a].push({$el:$(""),x:0,y:0,sx:"",sy:""})}if(!this._batchProcess){var i=this.$elem.find("tbody");$(".wcDockerTransition").append(i);for(var n=$(""),a=0;ao;++o)for(var i=0;a>i;++i){ -var n=this._grid[e+o][t+i];if(!n.$el||0!==n.x||0!==n.y)return!1}var n=this._grid[e][t];a>1&&(n.$el.attr("colspan",""+a),n.x=a-1),r>1&&(n.$el.attr("rowspan",""+r),n.y=r-1);for(var o=0;r>o;++o)for(var i=0;a>i;++i)if(0!==o||0!==i){var n=this._grid[e+o][t+i];n.$el.remove(),n.$el=null,n.x=-i,n.y=-o}return!0}});return r}),a("wcDocker/tabframe",["dcl/dcl","./types","./base"],function(t,e,a){var r=t(a,{declaredClass:"wcTabFrame",LEFT_TAB_BUFFER:15,constructor:function(t,a){this.$container=$(t),this._parent=a,this.$frame=null,this.$tabBar=null,this.$tabScroll=null,this.$center=null,this.$tabLeft=null,this.$tabRight=null,this.$close=null,this._tabOrientation=e.TAB.TOP,this._canScrollTabs=!1,this._tabScrollPos=0,this._curTab=-1,this._layoutList=[],this._moveable=!0,this._boundEvents=[],this.__init()},update:function(){var t=this.$center.scrollTop();this.__updateTabs(),this.$center.scrollTop(t)},destroy:function(){this.__destroy()},tabCount:function(){return this._layoutList.length},tabOrientation:function(t){return void 0!==t&&this._tabOrientation!==t&&this.docker()._canOrientTabs&&(this._tabOrientation=t,this.__updateTabs(),this.__updateTabs()),this._tabOrientation},addTab:function(t,e,a){var r=a||"wcLayoutTable",o=new(this.docker().__getClass(r))(".wcDockerTransition",this._parent);return o.name=t,o._scrollable={x:!0,y:!0},o._scroll={x:0,y:0},o._closeable=!1,o._overflowVisible=!1,"undefined"==typeof e||-1>=e?this._layoutList.push(o):this._layoutList.splice(e,0,o),-1===this._curTab&&this._layoutList.length&&(this._curTab=0),this.__updateTabs(),o},removeTab:function(t){if(t>-1&&t=t&&(this._curTab--,this._curTab<0&&(this._curTab=0)),this.__updateTabs(),this._parent.__trigger(e.EVENT.CUSTOM_TAB_CLOSED,{obj:this,name:a,index:t}),!0}return!1},tab:function(t,a){if("undefined"!=typeof t&&t>-1&&t .wcTabScroller > .wcPanelTab[id="'+this._curTab+'"]').removeClass("wcPanelTabActive"),this.$center.children('.wcPanelTabContent[id="'+this._curTab+'"]').addClass("wcPanelTabContentHidden"),this._curTab=t,this.$tabBar.find('> .wcTabScroller > .wcPanelTab[id="'+t+'"]').addClass("wcPanelTabActive"),this.$center.children('.wcPanelTabContent[id="'+t+'"]').removeClass("wcPanelTabContentHidden"),this.__updateTabs(a);var r=this._layoutList[this._curTab].name;this._parent.__trigger(e.EVENT.CUSTOM_TAB_CHANGED,{obj:this,name:r,index:t})}return this._curTab},layout:function(t){return t>-1&&t=0&&t=0&&e .wcTabScroller > .wcPanelTab[id="'+e+'"]')[0]}return!1},moveable:function(t){return"undefined"!=typeof t&&(this._moveable=t),this._moveable},closeable:function(t,e){if(t>-1&&t-1&&t-1&&t-1&&t-1&&t")),a.$icon.removeClass(),a.$icon.addClass("wcTabIcon "+e)}},faicon:function(t,e){if(t>-1&&t")),a.$icon.removeClass(),a.$icon.addClass("fa fa-fw fa-"+e)}},__init:function(){this.$frame=$('
'),this.$tabBar=$('
'),this.$tabScroll=$('
'),this.$center=$('
'),this.$tabLeft=$('
<
'),this.$tabRight=$('
>
'),this.$close=$('
X
'),this.$buttonBar=$('
'),this.$tabBar.append(this.$tabScroll),this.$tabBar.append(this.$buttonBar),this.$buttonBar.append(this.$close),this.$frame.append(this.$center),this.$frame.append(this.$tabBar),this.__container(this.$container),this._boundEvents.push({event:e.EVENT.UPDATED,handler:this.update.bind(this)}),this._boundEvents.push({event:e.EVENT.CLOSED,handler:this.destroy.bind(this)});for(var t=0;t
'+this._layoutList[n].name+"
");this._moveable&&s.addClass("wcCustomTabMoveable"),this.$tabScroll.append(s),this._layoutList[n].$icon&&s.find("div").prepend(this._layoutList[n].$icon);var l=this.$center.children('.wcPanelTabContent[id="'+n+'"]');l.length||(l=$('
'),this.$center.append(l)),this._layoutList[n].__container(l),this._layoutList[n]._parent=this;var c=this._curTab===n;l.removeClass("wcPanelTabUnused"),c&&(s.addClass("wcPanelTabActive"),l.removeClass("wcPanelTabContentHidden")),o=a(s)-i,r.push(o),o+=s.outerWidth()}var h=0,u=this.$tabBar.height();switch(this._tabOrientation){case e.TAB.TOP:this.$tabBar.addClass("wcTabTop").removeClass("wcTabLeft wcTabRight wcTabBottom"),this.$center.css("top",u).css("left",0).css("right",0).css("bottom",0),h=this.$center.width();break;case e.TAB.BOTTOM:this.$tabBar.addClass("wcTabBottom").removeClass("wcTabTop wcTabLeft wcTabRight"),this.$center.css("top",0).css("left",0).css("right",0).css("bottom",u),h=this.$center.width();break;case e.TAB.LEFT:this.$tabBar.addClass("wcTabLeft").removeClass("wcTabTop wcTabRight wcTabBottom"),this.$center.css("top",0).css("left",u).css("right",0).css("bottom",0),h=this.$center.height();break;case e.TAB.RIGHT:this.$tabBar.addClass("wcTabRight").removeClass("wcTabTop wcTabLeft wcTabBottom"),this.$center.css("top",0).css("left",0).css("right",u).css("bottom",0),h=this.$center.height()}this.$center.children(".wcPanelTabUnused").each(function(){$(this).remove()});var d=this.__onTabChange();if(t)for(var n=0;nf?(this._tabScrollPos=f-this.LEFT_TAB_BUFFER,this._tabScrollPos<0&&(this._tabScrollPos=0)):p-b>_&&(this._tabScrollPos=p-_+this.LEFT_TAB_BUFFER);break}if(this._canScrollTabs=!1,o>h-d){this._canScrollTabs=!0,this.$buttonBar.append(this.$tabRight),this.$buttonBar.append(this.$tabLeft),d+=this.$tabRight.outerWidth(),d+=this.$tabLeft.outerWidth();var v=o-(h-d)/2;if(this._tabScrollPos>v)for(var m=this.$tabScroll.children(),n=0;nv){this._tabScrollPos=o-this.LEFT_TAB_BUFFER,this._tabScrollPos<0&&(this._tabScrollPos=0);break}}}else this._tabScrollPos=0,this.$tabLeft.remove(),this.$tabRight.remove();this.$tabScroll.stop().animate({left:-this._tabScrollPos+"px"},"fast")},__onTabChange:function(){var t=0,a=this.layout(this._curTab);if(a){this.$center.toggleClass("wcScrollableX",a._scrollable.x),this.$center.toggleClass("wcScrollableY",a._scrollable.y),this.$center.toggleClass("wcOverflowVisible",a._overflowVisible),this.$tabLeft.remove(),this.$tabRight.remove(),a._closeable?(this.$close.show(),t+=this.$close.outerWidth()):this.$close.hide(),this._canScrollTabs&&(this.$tabBar.append(this.$tabRight),this.$tabBar.append(this.$tabLeft),t+=this.$tabRight.outerWidth()+this.$tabLeft.outerWidth());var r=this.fitContents(this._curTab);if(r.x){var o=a.scene().outerWidth();(this._tabOrientation===e.TAB.LEFT||this._tabOrientation===e.TAB.RIGHT)&&(o+=this.$tabScroll.height()),this.$container.css("width",o)}else this.$container.css("width","");if(r.y){var i=a.scene().outerHeight();(this._tabOrientation===e.TAB.TOP||this._tabOrientation===e.TAB.BOTTOM)&&(i+=this.$tabScroll.height()),this.$container.css("height",i)}else this.$container.css("height","");switch(this._tabOrientation){case e.TAB.RIGHT:case e.TAB.LEFT:this.$tabBar.css("width",this.$center.height()||"100%");break;case e.TAB.TOP:case e.TAB.BOTTOM:this.$tabBar.css("width",this.$center.width()||"100%")}this.$center.scrollLeft(a._scroll.x),this.$center.scrollTop(a._scroll.y)}return this.$buttonBar.css("min-width",t).css("width",t),t},__scrolled:function(){var t=this.layout(this._curTab);t._scroll.x=this.$center.scrollLeft(),t._scroll.y=this.$center.scrollTop()},__container:function(t){return"undefined"==typeof t?this.$container:(this.$container=t,this.$container?this.$container.append(this.$frame):this.$frame.remove(),this.$container)},__destroy:function(){var t=this.docker();if(t){var e=t._tabList.indexOf(this);e>-1&&t._tabList.splice(e,1)}for(;this._boundEvents.length;)this._parent.off(this._boundEvents[0].event,this._boundEvents[0].handler),this._boundEvents.shift();this._curTab=-1;for(var a=0;ae&&!i||!o||a&&!n&&s||r&&s)return 1;if(e>t&&!a||!s||i&&!r&&o||n&&o)return-1}return 0}function e(t,e,a){for(var r=t.length,o=a?r:-1;a?o--:++o-1;);return a}function s(t,e){for(var a=t.length;a--&&e.indexOf(t.charAt(a))>-1;);return a}function l(e,a){return t(e.criteria,a.criteria)||e.index-a.index}function c(e,a,r){for(var o=-1,i=e.criteria,n=a.criteria,s=i.length,l=r.length;++o=l)return c;var h=r[o];return c*("asc"===h||h===!0?1:-1)}}return e.index-a.index}function h(t){return Kt[t]}function u(t){return Wt[t]}function d(t,e,a){return e?t=Ut[t]:a&&(t=qt[t]),"\\"+t}function f(t){return"\\"+qt[t]}function p(t,e,a){for(var r=t.length,o=e+(a?0:-1);a?o--:++o=t&&t>=9&&13>=t||32==t||160==t||5760==t||6158==t||t>=8192&&(8202>=t||8232==t||8233==t||8239==t||8287==t||12288==t||65279==t)}function v(t,e){for(var a=-1,r=t.length,o=-1,i=[];++ae,o=a?t.length:0,i=Ua(0,o,this.__views__),n=i.start,s=i.end,l=s-n,c=r?s:n-1,h=this.__iteratees__,u=h.length,d=0,f=Sn(l,this.__takeCount__);if(!a||I>o||o==l&&f==l)return oa(t,this.__actions__);var p=[];t:for(;l--&&f>d;){c+=e;for(var b=-1,_=t[c];++b=I?_a(e):null,c=e.length;l&&(n=Jt,s=!1,e=l);t:for(;++ia&&(a=-a>o?0:o+a),r=r===y||r>o?o:+r||0,0>r&&(r+=o),o=a>r?0:r>>>0,a>>>=0;o>a;)t[a++]=e;return t}function Fe(t,e){var a=[];return Nn(t,function(t,r,o){e(t,r,o)&&a.push(t)}),a}function Le(t,e,a,r){var o;return a(t,function(t,a,i){return e(t,a,i)?(o=r?a:t,!1):void 0}),o}function Oe(t,e,a,r){r||(r=[]);for(var o=-1,i=t.length;++or;)t=dr(t)[e[r++]];return r&&r==o?t:y}}function He(t,e,a,r,o,i){return t===e?!0:null==t||null==e||!zo(t)&&!b(e)?t!==t&&e!==e:Ie(t,e,He,a,r,o,i)}function Ie(t,e,a,r,o,i,n){var s=ks(t),l=ks(e),c=W,h=W;s||(c=nn.call(t),c==K?c=X:c!=X&&(s=Go(t))),l||(h=nn.call(e),h==K?h=X:h!=X&&(l=Go(e)));var u=c==X&&!ee(t),d=h==X&&!ee(e),f=c==h;if(f&&!s&&!u)return Ma(t,e,c);if(!o){var p=u&&rn.call(t,"__wrapped__"),b=d&&rn.call(e,"__wrapped__");if(p||b)return a(p?t.value():t,b?e.value():e,r,o,i,n)}if(!f)return!1;i||(i=[]),n||(n=[]);for(var _=i.length;_--;)if(i[_]==t)return n[_]==e;i.push(t),n.push(e);var v=(s?Va:Ra)(t,e,a,r,o,i,n);return i.pop(),n.pop(),v}function Ve(t,e,a){var r=e.length,o=r,i=!a;if(null==t)return!o;for(t=dr(t);r--;){var n=e[r];if(i&&n[2]?n[1]!==t[n[0]]:!(n[0]in t))return!1}for(;++re&&(e=-e>o?0:o+e),a=a===y||a>o?o:+a||0,0>a&&(a+=o),o=e>a?0:a-e>>>0,e>>>=0;for(var i=Ni(o);++r=I,l=s?_a():null,c=[];l?(o=Jt,n=!1):(s=!1,l=e?[]:c);t:for(;++a=o){for(;o>r;){var i=r+o>>>1,n=t[i];(a?e>=n:e>n)&&null!==n?r=i+1:o=i}return o}return na(t,e,Fi,a)}function na(t,e,a,r){e=a(e);for(var o=0,i=t?t.length:0,n=e!==e,s=null===e,l=e===y;i>o;){var c=Tn((o+i)/2),h=a(t[c]),u=h!==y,d=h===h;if(n)var f=d||r;else f=s?d&&u&&(r||null!=h):l?d&&(r||u):null==h?!1:r?e>=h:e>h;f?o=c+1:i=c}return Sn(i,En)}function sa(t,e,a){if("function"!=typeof t)return Fi;if(e===y)return t;switch(a){case 1:return function(a){return t.call(e,a)};case 3:return function(a,r,o){return t.call(e,a,r,o)};case 4:return function(a,r,o,i){return t.call(e,a,r,o,i)};case 5:return function(a,r,o,i,n){return t.call(e,a,r,o,i,n)}}return function(){return t.apply(e,arguments)}}function la(t){var e=new cn(t.byteLength),a=new vn(e);return a.set(new vn(t)),e}function ca(t,e,a){for(var r=a.length,o=-1,i=Cn(t.length-r,0),n=-1,s=e.length,l=Ni(s+i);++n2?a[o-2]:y,n=o>2?a[2]:y,s=o>1?a[o-1]:y;for("function"==typeof i?(i=sa(i,s,5),o-=2):(i="function"==typeof s?s:y,o-=i?1:0),n&&tr(a[0],a[1],n)&&(i=3>o?y:i,o=1);++r-1?r[n]:y}return Le(r,o,t)}}function ya(t){return function(a,r,o){return a&&a.length?(r=Na(r,o,3),e(a,r,t)):-1}}function Ba(t){return function(e,a,r){return a=Na(a,r,3),Le(e,a,t,!0)}}function Ca(t){return function(){for(var e,a=arguments.length,r=t?a:-1,o=0,i=Ni(a);t?r--:++r=I)return e.plant(r).value();for(var o=0,n=a?i[o].apply(this,t):r;++ow){var $=s?oe(s):y,P=Cn(c-w,0),F=p?B:y,A=p?y:B,E=p?T:y,D=p?y:T;e|=p?L:O,e&=~(p?O:L),b||(e&=~(C|S));var k=[t,e,a,E,F,D,A,$,l,P],z=Ea.apply(y,k);return ar(t)&&Zn(z,k),z.placeholder=x,z}}var H=d?a:this,I=f?H[t]:t;return s&&(T=cr(T,s)),u&&l=e||!yn(e))return"";var o=e-r;return a=null==a?" ":a+"",mi(a,wn(o/a.length)).slice(0,o)}function ka(t,e,a,r){function o(){for(var e=-1,s=arguments.length,l=-1,c=r.length,h=Ni(c+s);++ll))return!1;for(;++s-1&&t%1==0&&e>t}function tr(t,e,a){if(!zo(a))return!1;var r=typeof e;if("number"==r?Ja(a)&&Qa(e,a.length):"string"==r&&e in a){var o=a[e];return t===t?t===o:o!==o}return!1}function er(t,e){var a=typeof t;if("string"==a&&yt.test(t)||"number"==a)return!0;if(ks(t))return!1;var r=!xt.test(t);return r||null!=e&&t in dr(e)}function ar(t){var e=Ka(t),a=_[e];if("function"!=typeof a||!(e in et.prototype))return!1;if(t===a)return!0;var r=Un(a);return!!r&&t===r[0]}function rr(t){return"number"==typeof t&&t>-1&&t%1==0&&kn>=t}function or(t){return t===t&&!zo(t)}function ir(t,e){var a=t[1],r=e[1],o=a|r,i=A>o,n=r==A&&a==P||r==A&&a==E&&t[7].length<=e[8]||r==(A|E)&&a==P;if(!i&&!n)return t;r&C&&(t[2]=e[2],o|=a&C?0:$);var s=e[3];if(s){var l=t[3];t[3]=l?ca(l,s,e[4]):oe(s),t[4]=l?v(t[3],N):oe(e[4])}return s=e[5],s&&(l=t[5],t[5]=l?ha(l,s,e[6]):oe(s),t[6]=l?v(t[5],N):oe(e[6])),s=e[7],s&&(t[7]=oe(s)),r&A&&(t[8]=null==t[8]?e[8]:Sn(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=o,t}function nr(t,e){return t===y?e:zs(t,e,nr)}function sr(t,e){t=dr(t);for(var a=-1,r=e.length,o={};++ar;)n[++i]=Ye(t,r,r+=e);return n}function _r(t){for(var e=-1,a=t?t.length:0,r=-1,o=[];++ee?0:e)):[]}function mr(t,e,a){var r=t?t.length:0;return r?((a?tr(t,e,a):null==e)&&(e=1),e=r-(+e||0),Ye(t,0,0>e?0:e)):[]}function wr(t,e,a){return t&&t.length?ra(t,Na(e,a,3),!0,!0):[]}function gr(t,e,a){return t&&t.length?ra(t,Na(e,a,3),!0):[]}function Tr(t,e,a,r){var o=t?t.length:0;return o?(a&&"number"!=typeof a&&tr(t,e,a)&&(a=0,r=o),Pe(t,e,a,r)):[]}function xr(t){return t?t[0]:y}function yr(t,e,a){var r=t?t.length:0;return a&&tr(t,e,a)&&(e=!1),r?Oe(t,e):[]}function Br(t){var e=t?t.length:0;return e?Oe(t,!0):[]}function Cr(t,e,a){var o=t?t.length:0;if(!o)return-1;if("number"==typeof a)a=0>a?Cn(o+a,0):a;else if(a){var i=ia(t,e);return o>i&&(e===e?e===t[i]:t[i]!==t[i])?i:-1}return r(t,e,a||0)}function Sr(t){return mr(t,1)}function $r(t){var e=t?t.length:0;return e?t[e-1]:y}function Pr(t,e,a){var r=t?t.length:0;if(!r)return-1;var o=r;if("number"==typeof a)o=(0>a?Cn(r+a,0):Sn(a||0,r-1))+1;else if(a){o=ia(t,e,!0)-1;var i=t[o];return(e===e?e===i:i!==i)?o:-1}if(e!==e)return p(t,o,!0);for(;o--;)if(t[o]===e)return o;return-1}function Fr(){var t=arguments,e=t[0];if(!e||!e.length)return e;for(var a=0,r=Wa(),o=t.length;++a-1;)_n.call(e,i,1);return e}function Lr(t,e,a){var r=[];if(!t||!t.length)return r;var o=-1,i=[],n=t.length;for(e=Na(e,a,3);++oe?0:e)):[]}function Dr(t,e,a){var r=t?t.length:0;return r?((a?tr(t,e,a):null==e)&&(e=1),e=r-(+e||0),Ye(t,0>e?0:e)):[]}function kr(t,e,a){return t&&t.length?ra(t,Na(e,a,3),!1,!0):[]}function zr(t,e,a){return t&&t.length?ra(t,Na(e,a,3)):[]}function Hr(t,e,a,o){var i=t?t.length:0;if(!i)return[];null!=e&&"boolean"!=typeof e&&(o=a,a=tr(t,e,o)?y:e,e=!1);var n=Na();return(null!=a||n!==xe)&&(a=n(a,o,3)),e&&Wa()===r?m(t,a):ea(t,a)}function Ir(t){if(!t||!t.length)return[];var e=-1,a=0;t=ce(t,function(t){return Ja(t)?(a=Cn(t.length,a),!0):void 0});for(var r=Ni(a);++ea?Cn(o+a,0):a||0,"string"==typeof t||!ks(t)&&Wo(t)?o>=a&&t.indexOf(e,a)>-1:!!o&&Wa(t,e,a)>-1}function eo(t,e,a){var r=ks(t)?he:Me;return e=Na(e,a,3),r(t,e)}function ao(t,e){return eo(t,ki(e))}function ro(t,e,a){var r=ks(t)?ce:Fe;return e=Na(e,a,3),r(t,function(t,a,r){return!e(t,a,r)})}function oo(t,e,a){if(a?tr(t,e,a):null==e){t=ur(t);var r=t.length;return r>0?t[qe(0,r-1)]:y}var o=-1,i=Zo(t),r=i.length,n=r-1;for(e=Sn(0>e?0:+e||0,r);++o0&&(a=e.apply(this,arguments)),1>=t&&(e=y),a}}function bo(t,e,a){function r(){f&&hn(f),c&&hn(c),b=0,c=f=p=y}function o(e,a){a&&hn(a),c=f=p=y,e&&(b=Ts(),h=t.apply(d,l),f||c||(l=d=y))}function i(){var t=e-(Ts()-u);0>=t||t>e?o(p,c):f=bn(i,t)}function n(){o(v,f)}function s(){if(l=arguments,u=Ts(),d=this,p=v&&(f||!m),_===!1)var a=m&&!f;else{c||m||(b=u);var r=_-(u-b),o=0>=r||r>_;o?(c&&(c=hn(c)),b=u,h=t.apply(d,l)):c||(c=bn(n,r))}return o&&f?f=hn(f):f||e===_||(f=bn(i,e)),a&&(o=!0,h=t.apply(d,l)),!o||f||c||(l=d=y),h}var l,c,h,u,d,f,p,b=0,_=!1,v=!0;if("function"!=typeof t)throw new Xi(R);if(e=0>e?0:+e||0,a===!0){var m=!0;v=!1}else zo(a)&&(m=!!a.leading,_="maxWait"in a&&Cn(+a.maxWait||0,e),v="trailing"in a?!!a.trailing:v);return s.cancel=r,s}function _o(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new Xi(R);var a=function(){var r=arguments,o=e?e.apply(this,r):r[0],i=a.cache;if(i.has(o))return i.get(o);var n=t.apply(this,r);return a.cache=i.set(o,n),n};return a.cache=new _o.Cache,a}function vo(t){if("function"!=typeof t)throw new Xi(R);return function(){return!t.apply(this,arguments)}}function mo(t){return po(2,t)}function wo(t,e){if("function"!=typeof t)throw new Xi(R);return e=Cn(e===y?t.length-1:+e||0,0),function(){for(var a=arguments,r=-1,o=Cn(a.length-e,0),i=Ni(o);++re}function So(t,e){return t>=e}function $o(t){return b(t)&&Ja(t)&&rn.call(t,"callee")&&!fn.call(t,"callee")}function Po(t){return t===!0||t===!1||b(t)&&nn.call(t)==G}function Fo(t){return b(t)&&nn.call(t)==j}function Lo(t){return!!t&&1===t.nodeType&&b(t)&&!No(t)}function Oo(t){return null==t?!0:Ja(t)&&(ks(t)||Wo(t)||$o(t)||b(t)&&ko(t.splice))?!t.length:!js(t).length}function Ao(t,e,a,r){a="function"==typeof a?sa(a,r,3):y;var o=a?a(t,e):y;return o===y?He(t,e,a):!!o}function Eo(t){return b(t)&&"string"==typeof t.message&&nn.call(t)==U}function Do(t){return"number"==typeof t&&yn(t)}function ko(t){return zo(t)&&nn.call(t)==q}function zo(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function Ho(t,e,a,r){return a="function"==typeof a?sa(a,r,3):y,Ve(t,Ga(e),a)}function Io(t){return Ro(t)&&t!=+t}function Vo(t){return null==t?!1:ko(t)?ln.test(an.call(t)):b(t)&&(ee(t)?ln:At).test(t)}function Mo(t){return null===t}function Ro(t){return"number"==typeof t||b(t)&&nn.call(t)==Y}function No(t){var e;if(!b(t)||nn.call(t)!=X||ee(t)||$o(t)||!rn.call(t,"constructor")&&(e=t.constructor,"function"==typeof e&&!(e instanceof e)))return!1;var a;return _.support.ownLast?(Ae(t,function(t,e,r){return a=rn.call(r,e),!1}),a!==!1):(Ae(t,function(t,e){a=e}),a===y||rn.call(t,a))}function Ko(t){return zo(t)&&nn.call(t)==J}function Wo(t){return"string"==typeof t||b(t)&&nn.call(t)==tt}function Go(t){return b(t)&&rr(t.length)&&!!Rt[nn.call(t)]}function jo(t){return t===y}function Uo(t,e){return e>t}function qo(t,e){return e>=t}function Zo(t){var e=t?qn(t):0;return rr(e)?e?_.support.unindexedChars&&Wo(t)?t.split(""):oe(t):[]:si(t)}function Yo(t){return Te(t,ai(t))}function Xo(t,e,a){var r=Rn(t);return a&&tr(t,e,a)&&(e=y),e?we(r,e):r}function Jo(t){return ke(t,ai(t))}function Qo(t,e,a){var r=null==t?y:ze(t,fr(e),e+"");return r===y?a:r}function ti(t,e){if(null==t)return!1;var a=rn.call(t,e);if(!a&&!er(e)){if(e=fr(e),t=1==e.length?t:ze(t,Ye(e,0,-1)),null==t)return!1;e=$r(e),a=rn.call(t,e)}return a||rr(t.length)&&Qa(e,t.length)&&(ks(t)||$o(t)||Wo(t))}function ei(t,e,a){a&&tr(t,e,a)&&(e=y);for(var r=-1,o=js(t),i=o.length,n={};++r0,c=a.enumErrorProps&&(t===Qi||t instanceof Wi),h=a.enumPrototypes&&ko(t);++o=Sn(e,a)&&ta?0:+a||0,r),a-=e.length,a>=0&&t.indexOf(e,a)==a}function pi(t){return t=i(t),t&&mt.test(t)?t.replace(_t,u):t}function bi(t){return t=i(t),t&&St.test(t)?t.replace(Ct,d):t||"(?:)"}function _i(t,e,a){t=i(t),e=+e;var r=t.length;if(r>=e||!yn(e))return t;var o=(e-r)/2,n=Tn(o),s=wn(o);return a=Da("",s,a),a.slice(0,n)+t+a}function vi(t,e,a){return(a?tr(t,e,a):null==e)?e=0:e&&(e=+e),t=Ti(t),Pn(t,e||(Ot.test(t)?16:10))}function mi(t,e){var a="";if(t=i(t),e=+e,1>e||!t||!yn(e))return a;do e%2&&(a+=t),e=Tn(e/2),t+=t;while(e);return a}function wi(t,e,a){return t=i(t),a=null==a?0:Sn(0>a?0:+a||0,t.length),t.lastIndexOf(e,a)==a}function gi(t,e,a){var r=_.templateSettings;a&&tr(t,e,a)&&(e=a=y),t=i(t),e=me(we({},a||e),r,ve);var o,n,s=me(we({},e.imports),r.imports,ve),l=js(s),c=aa(s,l),h=0,u=e.interpolate||kt,d="__p += '",p=Zi((e.escape||kt).source+"|"+u.source+"|"+(u===Tt?Ft:kt).source+"|"+(e.evaluate||kt).source+"|$","g"),b="//# sourceURL="+("sourceURL"in e?e.sourceURL:"lodash.templateSources["+ ++Mt+"]")+"\n";t.replace(p,function(e,a,r,i,s,l){return r||(r=i),d+=t.slice(h,l).replace(zt,f),a&&(o=!0,d+="' +\n__e("+a+") +\n'"),s&&(n=!0,d+="';\n"+s+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),h=l+e.length,e}),d+="';\n";var v=e.variable;v||(d="with (obj) {\n"+d+"\n}\n"),d=(n?d.replace(dt,""):d).replace(ft,"$1").replace(pt,"$1;"),d="function("+(v||"obj")+") {\n"+(v?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(n?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var m=rl(function(){return Gi(l,b+"return "+d).apply(y,c)});if(m.source=d,Eo(m))throw m;return m}function Ti(t,e,a){var r=t;return(t=i(t))?(a?tr(r,e,a):null==e)?t.slice(w(t),g(t)+1):(e+="",t.slice(n(t,e),s(t,e)+1)):t}function xi(t,e,a){var r=t;return t=i(t),t?(a?tr(r,e,a):null==e)?t.slice(w(t)):t.slice(n(t,e+"")):t}function yi(t,e,a){var r=t;return t=i(t),t?(a?tr(r,e,a):null==e)?t.slice(0,g(t)+1):t.slice(0,s(t,e+"")+1):t}function Bi(t,e,a){a&&tr(t,e,a)&&(e=y);var r=D,o=k;if(null!=e)if(zo(e)){var n="separator"in e?e.separator:n;r="length"in e?+e.length||0:r,o="omission"in e?i(e.omission):o}else r=+e||0;if(t=i(t),r>=t.length)return t;var s=r-o.length;if(1>s)return o;var l=t.slice(0,s);if(null==n)return l+o;if(Ko(n)){if(t.slice(s).search(n)){var c,h,u=t.slice(0,s);for(n.global||(n=Zi(n.source,(Lt.exec(n)||"")+"g")),n.lastIndex=0;c=n.exec(u);)h=c.index;l=l.slice(0,null==h?s:h)}}else if(t.indexOf(n,s)!=s){var d=l.lastIndexOf(n);d>-1&&(l=l.slice(0,d))}return l+o}function Ci(t){return t=i(t),t&&vt.test(t)?t.replace(bt,T):t}function Si(t,e,a){return a&&tr(t,e,a)&&(e=y),t=i(t),t.match(e||Ht)||[]}function $i(t,e,a){return a&&tr(t,e,a)&&(e=y),b(t)?Li(t):xe(t,e)}function Pi(t){return function(){return t}}function Fi(t){return t}function Li(t){return Re(ye(t,!0))}function Oi(t,e){return Ne(t,ye(e,!0))}function Ai(t,e,a){if(null==a){var r=zo(e),o=r?js(e):y,i=o&&o.length?ke(e,o):y;(i?i.length:r)||(i=!1,a=e,e=t,t=this)}i||(i=ke(e,js(e)));var n=!0,s=-1,l=ko(t),c=i.length;a===!1?n=!1:zo(a)&&"chain"in a&&(n=a.chain);for(;++st||!yn(t))return[];var r=-1,o=Ni(Sn(t,An));for(e=sa(e,a,1);++rr?o[r]=e(r):e(r);return o}function Vi(t){var e=++on;return i(t)+e}function Mi(t,e){return(+t||0)+(+e||0)}function Ri(t,e,a){return a&&tr(t,e,a)&&(e=y),e=Na(e,a,3),1==e.length?be(ks(t)?t:ur(t),e):ta(t,e)}a=a?ae.defaults(te.Object(),a,ae.pick(te,It)):te;var Ni=a.Array,Ki=a.Date,Wi=a.Error,Gi=a.Function,ji=a.Math,Ui=a.Number,qi=a.Object,Zi=a.RegExp,Yi=a.String,Xi=a.TypeError,Ji=Ni.prototype,Qi=Wi.prototype,tn=qi.prototype,en=Yi.prototype,an=Gi.prototype.toString,rn=tn.hasOwnProperty,on=0,nn=tn.toString,sn=te._,ln=Zi("^"+an.call(rn).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),cn=a.ArrayBuffer,hn=a.clearTimeout,un=a.parseFloat,dn=ji.pow,fn=tn.propertyIsEnumerable,pn=ja(a,"Set"),bn=a.setTimeout,_n=Ji.splice,vn=a.Uint8Array,mn=ja(a,"WeakMap"),wn=ji.ceil,gn=ja(qi,"create"),Tn=ji.floor,xn=ja(Ni,"isArray"),yn=a.isFinite,Bn=ja(qi,"keys"),Cn=ji.max,Sn=ji.min,$n=ja(Ki,"now"),Pn=a.parseInt,Fn=ji.random,Ln=Ui.NEGATIVE_INFINITY,On=Ui.POSITIVE_INFINITY,An=4294967295,En=An-1,Dn=An>>>1,kn=9007199254740991,zn=mn&&new mn,Hn={},In={};In[rt]=a.Float32Array,In[ot]=a.Float64Array,In[it]=a.Int8Array,In[nt]=a.Int16Array,In[st]=a.Int32Array,In[lt]=vn,In[ct]=a.Uint8ClampedArray,In[ht]=a.Uint16Array,In[ut]=a.Uint32Array;var Vn={};Vn[W]=Vn[j]=Vn[Y]={constructor:!0,toLocaleString:!0,toString:!0,valueOf:!0},Vn[G]=Vn[tt]={constructor:!0,toString:!0,valueOf:!0},Vn[U]=Vn[q]=Vn[J]={constructor:!0,toString:!0},Vn[X]={constructor:!0},ie(Vt,function(t){for(var e in Vn)if(rn.call(Vn,e)){var a=Vn[e];a[t]=rn.call(a,t)}});var Mn=_.support={};!function(t){var e=function(){this.x=t},a={0:t,length:t},r=[];e.prototype={valueOf:t,y:t};for(var o in new e)r.push(o);Mn.enumErrorProps=fn.call(Qi,"message")||fn.call(Qi,"name"),Mn.enumPrototypes=fn.call(e,"prototype"),Mn.nonEnumShadows=!/valueOf/.test(r),Mn.ownLast="x"!=r[0],Mn.spliceObjects=(_n.call(a,0,1),!a[0]),Mn.unindexedChars="x"[0]+qi("x")[0]!="xx"}(1,0),_.templateSettings={escape:wt,evaluate:gt,interpolate:Tt,variable:"",imports:{_:_}};var Rn=function(){function t(){}return function(e){if(zo(e)){t.prototype=e;var a=new t;t.prototype=y}return a||{}}}(),Nn=fa(Ee),Kn=fa(De,!0),Wn=pa(),Gn=pa(!0),jn=zn?function(t,e){return zn.set(t,e),t}:Fi,Un=zn?function(t){return zn.get(t)}:Di,qn=Ge("length"),Zn=function(){var t=0,e=0;return function(a,r){var o=Ts(),i=H-(o-e);if(e=o,i>0){if(++t>=z)return a}else t=0;return jn(a,r)}}(),Yn=wo(function(t,e){return b(t)&&Ja(t)?Ce(t,Oe(e,!1,!0)):[]}),Xn=ya(),Jn=ya(!0),Qn=wo(function(t){for(var e=t.length,a=e,o=Ni(u),i=Wa(),n=i===r,s=[];a--;){var l=t[a]=Ja(l=t[a])?l:[];o[a]=n&&l.length>=120?_a(a&&l):null}var c=t[0],h=-1,u=c?c.length:0,d=o[0];t:for(;++h2?t[e-2]:y,r=e>1?t[e-1]:y;return e>2&&"function"==typeof a?e-=2:(a=e>1&&"function"==typeof r?(--e,r):y,r=y),t.length=e,Vr(t,a,r)}),ss=wo(function(t){return t=Oe(t),this.thru(function(e){return re(ks(e)?e:[dr(e)],t)})}),ls=wo(function(t,e){return Ja(t)&&(t=ur(t)),ge(t,Oe(e))}),cs=ua(function(t,e,a){rn.call(t,a)?++t[a]:t[a]=1}),hs=xa(Nn),us=xa(Kn,!0),ds=Sa(ie,Nn),fs=Sa(ne,Kn),ps=ua(function(t,e,a){rn.call(t,a)?t[a].push(e):t[a]=[e]}),bs=ua(function(t,e,a){t[a]=e}),_s=wo(function(t,e,a){var r=-1,o="function"==typeof e,i=er(e),n=Ja(t)?Ni(t.length):[];return Nn(t,function(t){var s=o?e:i&&null!=t?t[e]:y;n[++r]=s?s.apply(t,a):Xa(t,e,a)}),n}),vs=ua(function(t,e,a){t[a?0:1].push(e)},function(){return[[],[]]}),ms=Aa(de,Nn),ws=Aa(fe,Kn),gs=wo(function(t,e){if(null==t)return[];var a=e[2];return a&&tr(e[0],e[1],a)&&(e.length=1),Qe(t,Oe(e),[])}),Ts=$n||function(){return(new Ki).getTime()},xs=wo(function(t,e,a){var r=C;if(a.length){var o=v(a,xs.placeholder);r|=L}return Ia(t,r,e,a,o)}),ys=wo(function(t,e){e=e.length?Oe(e):Jo(t);for(var a=-1,r=e.length;++a0||0>e)?new et(a):(0>t?a=a.takeRight(-t):t&&(a=a.drop(t)),e!==y&&(e=+e||0,a=0>e?a.dropRight(-e):a.take(e-t)),a)},et.prototype.takeRightWhile=function(t,e){return this.reverse().takeWhile(t,e).reverse()},et.prototype.toArray=function(){return this.take(On)},Ee(et.prototype,function(t,e){var a=/^(?:filter|map|reject)|While$/.test(e),r=/^(?:first|last)$/.test(e),o=_[r?"take"+("last"==e?"Right":""):e];o&&(_.prototype[e]=function(){var e=r?[1]:arguments,i=this.__chain__,n=this.__wrapped__,s=!!this.__actions__.length,l=n instanceof et,c=e[0],h=l||ks(n);h&&a&&"function"==typeof c&&1!=c.length&&(l=h=!1);var u=function(t){return r&&i?o(t,1)[0]:o.apply(y,ue([t],e))},d={func:Wr,args:[u],thisArg:y},f=l&&!s;if(r&&!i)return f?(n=n.clone(),n.__actions__.push(d),t.call(n)):o.call(y,this.value())[0];if(!r&&h){n=f?n:new et(this);var p=t.apply(n,e);return p.__actions__.push(d),new Q(p,i)}return this.thru(u)})}),ie(["join","pop","push","replace","shift","sort","splice","split","unshift"],function(t){var e=(/^(?:replace|split)$/.test(t)?en:Ji)[t],a=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=!Mn.spliceObjects&&/^(?:pop|shift|splice)$/.test(t),o=/^(?:join|pop|replace|shift)$/.test(t),i=r?function(){var t=e.apply(this,arguments);return 0===this.length&&delete this[0],t}:e;_.prototype[t]=function(){var t=arguments;return o&&!this.__chain__?i.apply(this.value(),t):this[a](function(e){return i.apply(e,t)})}}),Ee(et.prototype,function(t,e){var a=_[e];if(a){var r=a.name+"",o=Hn[r]||(Hn[r]=[]);o.push({name:e,func:a})}}),Hn[Ea(y,S).name]=[{name:"wrapper",func:y}],et.prototype.clone=Kt,et.prototype.reverse=Wt,et.prototype.value=Gt,_.prototype.chain=Gr,_.prototype.commit=jr,_.prototype.concat=ss,_.prototype.plant=Ur,_.prototype.reverse=qr,_.prototype.toString=Zr,_.prototype.run=_.prototype.toJSON=_.prototype.valueOf=_.prototype.value=Yr,_.prototype.collect=_.prototype.map,_.prototype.head=_.prototype.first,_.prototype.select=_.prototype.filter,_.prototype.tail=_.prototype.rest,_}var y,B="3.10.1",C=1,S=2,$=4,P=8,F=16,L=32,O=64,A=128,E=256,D=30,k="...",z=150,H=16,I=200,V=1,M=2,R="Expected a function",N="__lodash_placeholder__",K="[object Arguments]",W="[object Array]",G="[object Boolean]",j="[object Date]",U="[object Error]",q="[object Function]",Z="[object Map]",Y="[object Number]",X="[object Object]",J="[object RegExp]",Q="[object Set]",tt="[object String]",et="[object WeakMap]",at="[object ArrayBuffer]",rt="[object Float32Array]",ot="[object Float64Array]",it="[object Int8Array]",nt="[object Int16Array]",st="[object Int32Array]",lt="[object Uint8Array]",ct="[object Uint8ClampedArray]",ht="[object Uint16Array]",ut="[object Uint32Array]",dt=/\b__p \+= '';/g,ft=/\b(__p \+=) '' \+/g,pt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,bt=/&(?:amp|lt|gt|quot|#39|#96);/g,_t=/[&<>"'`]/g,vt=RegExp(bt.source),mt=RegExp(_t.source),wt=/<%-([\s\S]+?)%>/g,gt=/<%([\s\S]+?)%>/g,Tt=/<%=([\s\S]+?)%>/g,xt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\n\\]|\\.)*?\1)\]/,yt=/^\w*$/,Bt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\n\\]|\\.)*?)\2)\]/g,Ct=/^[:!,]|[\\^$.*+?()[\]{}|\/]|(^[0-9a-fA-Fnrtuvx])|([\n\r\u2028\u2029])/g,St=RegExp(Ct.source),$t=/[\u0300-\u036f\ufe20-\ufe23]/g,Pt=/\\(\\)?/g,Ft=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Lt=/\w*$/,Ot=/^0[xX]/,At=/^\[object .+?Constructor\]$/,Et=/^\d+$/,Dt=/[\xc0-\xd6\xd8-\xde\xdf-\xf6\xf8-\xff]/g,kt=/($^)/,zt=/['\n\r\u2028\u2029\\]/g,Ht=function(){var t="[A-Z\\xc0-\\xd6\\xd8-\\xde]",e="[a-z\\xdf-\\xf6\\xf8-\\xff]+";return RegExp(t+"+(?="+t+e+")|"+t+"?"+e+"|"+t+"+|[0-9]+","g")}(),It=["Array","ArrayBuffer","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Math","Number","Object","RegExp","Set","String","_","clearTimeout","isFinite","parseFloat","parseInt","setTimeout","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap"],Vt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Mt=-1,Rt={};Rt[rt]=Rt[ot]=Rt[it]=Rt[nt]=Rt[st]=Rt[lt]=Rt[ct]=Rt[ht]=Rt[ut]=!0,Rt[K]=Rt[W]=Rt[at]=Rt[G]=Rt[j]=Rt[U]=Rt[q]=Rt[Z]=Rt[Y]=Rt[X]=Rt[J]=Rt[Q]=Rt[tt]=Rt[et]=!1;var Nt={};Nt[K]=Nt[W]=Nt[at]=Nt[G]=Nt[j]=Nt[rt]=Nt[ot]=Nt[it]=Nt[nt]=Nt[st]=Nt[Y]=Nt[X]=Nt[J]=Nt[tt]=Nt[lt]=Nt[ct]=Nt[ht]=Nt[ut]=!0,Nt[U]=Nt[q]=Nt[Z]=Nt[Q]=Nt[et]=!1;var Kt={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss"},Wt={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},Gt={"&":"&","<":"<",">":">",""":'"',"'":"'","`":"`"},jt={"function":!0,object:!0},Ut={0:"x30",1:"x31",2:"x32",3:"x33",4:"x34",5:"x35",6:"x36",7:"x37",8:"x38",9:"x39",A:"x41",B:"x42",C:"x43",D:"x44",E:"x45",F:"x46",a:"x61",b:"x62",c:"x63",d:"x64",e:"x65",f:"x66",n:"x6e",r:"x72",t:"x74",u:"x75",v:"x76",x:"x78"},qt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Zt=jt[typeof exports]&&exports&&!exports.nodeType&&exports,Yt=jt[typeof module]&&module&&!module.nodeType&&module,Xt=Zt&&Yt&&"object"==typeof global&&global&&global.Object&&global,Jt=jt[typeof self]&&self&&self.Object&&self,Qt=jt[typeof window]&&window&&window.Object&&window,te=Xt||Qt!==(this&&this.window)&&Qt||Jt||this,ee=function(){try{Object({toString:0}+"")}catch(t){return function(){return!1}}return function(t){return"function"!=typeof t.toString&&"string"==typeof(t+"")}}(),ae=x();"function"==typeof a&&"object"==typeof a.amd&&a.amd&&a("lodash/main",[],function(){return ae})}.call(this),a("lodash",["lodash/main"],function(t){return t}),a("wcDocker/docker",["dcl/dcl","./types","./panel","./ghost","./splitter","./frame","./collapser","./layoutsimple","./layouttable","./tabframe","./drawer","./base","lodash"],function(t,e,a,r,o,i,n,s,l,c,h,u,d){var f={wcPanel:a,wcGhost:r,wcSplitter:o,wcFrame:i,wcCollapser:n,wcLayoutSimple:s,wcLayoutTable:l,wcDrawer:h,wcTabFrame:c},p=t(u,{declaredClass:"wcDocker",constructor:function(t,e){this.$outer=$(t),this.$container=$('
'), -this.$transition=$('
'),this.$loading=null,this.$outer.append(this.$container),this.$container.append(this.$transition),this._canOrientTabs=!0,this._events={},this._root=null,this._frameList=[],this._floatingList=[],this._modalList=[],this._persistentList=[],this._focusFrame=null,this._placeholderPanel=null,this._contextTimer=0,this._dirty=!1,this._dirtyDontMove=!1,this._splitterList=[],this._tabList=[],this._collapser={},this._dockPanelTypeList=[],this._creatingPanel=!1,this._draggingSplitter=null,this._draggingFrame=null,this._draggingFrameSizer=null,this._draggingFrameTab=null,this._draggingFrameTopper=!1,this._draggingCustomTabFrame=null,this._ghost=null,this._menuTimer=0,this._mouseOrigin={x:0,y:0},this._resizeData={time:-1,timeout:!1,delta:150};var a={themePath:"Themes",theme:"default",loadingClass:"fa fa-spinner fa-pulse",allowContextMenu:!0,hideOnResize:!1,allowCollapse:!0,responseRate:10,moveStartDelay:300,edgeAnchorSize:50,panelAnchorSize:"15%",detachToWidth:"50%",detachToHeight:"50%"};this._options={};for(var r in f)a[r+"Class"]=f[r];for(var r in a)this._options[r]=a[r];for(var r in e)this._options[r]=e[r];this.__init()},themePath:function(t){return void 0!==t&&(this._options.themePath=t),this._options.themePath},theme:function(t){if(void 0!==t){var e=$("#wcTheme"),a=(new Date).getTime(),r=t.indexOf(".css");r>-1&&(t=t.substring(0,r));var o=$('');this._options.theme=t;var i=this;o[0].onload=function(){e.remove(),i.__update()},$("head").append(o)}return this._options.theme},isCollapseEnabled:function(){return this._canOrientTabs&&this._options.allowCollapse},registerPanelType:function(t,e,a){var r=e;"function"==typeof r&&(r={onCreate:e},console.log("WARNING: Passing in the creation function directly to wcDocker.registerPanelType parameter 2 is now deprecated and will be removed in the next version! Please use the preferred options object instead.")),"undefined"!=typeof a&&(r.isPrivate=a,console.log("WARNING: Passing in the isPrivate flag to wcDocker.registerPanelType parameter 3 is now deprecated and will be removed in the next version! Please use the preferred options object instead.")),$.isEmptyObject(r)&&(r=null);for(var o=0;o')),!0},panelTypes:function(t){for(var e=[],a=0;a=d&&h._curTab--,t.__container(this.$transition),t._parent=null,h._panelList.splice(d,1);break}if(!h.isCollapser()&&-1===h._curTab&&h._panelList.length&&(h._curTab=0),h.__updateTabs(),h.collapse(),!h.isCollapser()&&0===h._panelList.length)if(i)this.__addPlaceholder(h);else{var f=this._floatingList.indexOf(h);-1!==f&&this._floatingList.splice(f,1),f=this._frameList.indexOf(h),-1!==f&&this._frameList.splice(f,1);var p=h._parent;if(p&&p.instanceOf("wcSplitter")){p.__removeChild(h);var b;p.pane(0)?(b=p.pane(0),p._pane[0]=null):(b=p.pane(1),p._pane[1]=null),r===p&&(r._shift=b),b.__container(this.$transition),b._parent=null,f=this._splitterList.indexOf(p),-1!==f&&this._splitterList.splice(f,1);var _=p._parent;parentContainer=p.__container(),p.__destroy(),_&&_.instanceOf("wcSplitter")?(_.__removeChild(p),_.pane(0)?_.pane(1,b):_.pane(0,b)):_===this&&(this._root=b,b._parent=this,b.__container(parentContainer)),this.__update()}this._focusFrame===h&&(this._focusFrame=null),h.__destroy()}}t.initSize(l,c),a===e.DOCK.STACKED?this.__addPanelGrouped(t,r,o):this.__addPanelAlone(t,a,r,o),r==this._placeholderPanel&&(this.removePanel(this._placeholderPanel),this._placeholderPanel=null);var v=t._parent;return v&&v.instanceOf("wcFrame")&&1===v._panelList.length&&v.pos(s.left+l/2+20,s.top+c/2+20,!0),this.__update(!0),v&&v.instanceOf("wcFrame")&&u!==v._isFloating&&(v._isFloating?t.__trigger(e.EVENT.DETACHED):t.__trigger(e.EVENT.ATTACHED)),t.__trigger(e.EVENT.MOVED),t},findPanels:function(t){for(var e=[],a=0;a
'),this.$outer.append(this.$loading);var r=$('
');"number"!=typeof e&&(e=.4),r.css("opacity",e),this.$loading.append(r);var o=$('
');if(this.$loading.append(o),t){var i=$(''+t+"");this.$loading.append(i)}"number"!=typeof a&&(a=1),o.css("opacity",a),i&&i.css("opacity",a)}},finishLoading:function(t){if(this.$loading)if(t>0){var e=this;this.$loading.fadeOut(t,function(){e.$loading.remove(),e.$loading=null})}else this.$loading.remove(),this.$loading=null},on:function(t,e){return t?(this._events[t]||(this._events[t]=[]),-1!==this._events[t].indexOf(e)?!1:(this._events[t].push(e),!0)):!1},off:function(t,e){if("undefined"==typeof t)this._events={};else if(this._events[t])if("undefined"==typeof e)this._events[t]=[];else for(var a=0;a0&&o.findPanels(d.name).length>=d.options.limit)continue;var f=null,p=null,b=d.name;d.options&&(d.options.faicon&&(p=d.options.faicon),d.options.icon&&(f=d.options.icon),d.options.title&&(b=d.options.title)),u[d.name]={name:b,icon:f,faicon:p,className:"wcMenuCreatePanel"}}}var _=0,v={},m=a;"function"==typeof a&&(m=a(t,i));for(var l=0;l');if(o.prepend(i),r.icon&&i.addClass(r.icon),r.faicon&&i.addClass("fa fa-menu fa-"+r.faicon+" fa-lg fa-fw"),o.hasClass("context-menu-submenu")){var n=$('
');o.append(n)}}r.items&&s(r.items)}}(e)}(y)},hide:function(t){o._ghost&&(o._ghost.destroy(),o._ghost=!1)}},animation:{duration:250,show:"fadeIn",hide:"fadeOut"},reposition:!1,autoHide:!0,zIndex:200,items:y}}})},bypassMenu:function(){this._menuTimer&&clearTimeout(this._menuTimer);for(var t in $.contextMenu.menus){var e=$.contextMenu.menus[t].selector;$(e).contextMenu(!1)}var a=this;this._menuTimer=setTimeout(function(){for(var t in $.contextMenu.menus){var e=$.contextMenu.menus[t].selector;$(e).contextMenu(!0)}a._menuTimer=null},0)},save:function(){var t={};t.floating=[];for(var a=0;a-1){if(1===g._draggingFrame._panelList.length)return;for(var r=0;r1||g._draggingFrame.panel()!==g._placeholderPanel)for(var r=0;h>r;++r)g.movePanel(g._draggingFrame.panel(),e.DOCK.STACKED,n,c)}var l=n._parent;l&&l.instanceOf("wcFrame")&&l.panel(i),g.__focus(l)}}else{g._draggingFrameTab||g._draggingFrame.panel(0);var n=g._draggingFrame.panel(parseInt($(g._draggingFrameTab).attr("id")));if(g.movePanel(n,e.DOCK.FLOAT,null,g._ghost.__rect()),!g._draggingFrameTab){var h=g._draggingFrame._panelList.length;if(h>1||g._draggingFrame.panel()!==g._placeholderPanel)for(var r=0;h>r;++r)g.movePanel(g._draggingFrame.panel(),e.DOCK.STACKED,n,{tabOrientation:g._draggingFrame._tabOrientation})}var l=n._parent;l&&l.instanceOf("wcFrame")&&(l.pos(a.x,a.y+g._ghost.__rect().h/2-10,!0),l._size.x=g._ghost.__rect().w,l._size.y=g._ghost.__rect().h),l.__update(),g.__focus(l)}else if(g._creatingPanel){var u=e.DOCK.FLOAT,d=null;o&&(u=o.loc,d=o.item?o.item._parent:o.panel),g.addPanel(g._creatingPanel,u,d,g._ghost.rect())}g._ghost.destroy(),g._ghost=null,g.trigger(e.EVENT.END_DOCK),g.__update()}return g._draggingSplitter&&(g._draggingSplitter.$pane[0].removeClass("wcResizing"),g._draggingSplitter.$pane[1].removeClass("wcResizing")),g._draggingSplitter=null,g._draggingFrame=null,g._draggingFrameSizer=null,g._draggingFrameTab=null,g._draggingFrameTopper=!1,g._draggingCustomTabFrame=null,g._removingPanel=null,!0}function r(t){x=t;var e=g.__mouse(t);if(!(3!==e.which&&(g._draggingSplitter||g._draggingFrameSizer||g._draggingCustomTabFrame||g._ghost||g._draggingFrame||g._draggingFrameTab)))return!0;var a=(new Date).getTime();if(a-T1&&g._draggingFrameTab,g._draggingFrameTopper,!g.__isLastFrame(g._draggingFrame))){g._draggingFrame.__shadow(!1);var s=$(document.elementFromPoint(e.x,e.y)),i=s.hasClass("wcPanelTab")?s:s.parents(".wcPanelTab");g._draggingFrameTab&&i.length&&g._draggingFrameTab!==i[0]&&(g._draggingFrameTab=g._draggingFrame.__tabMove(parseInt($(g._draggingFrameTab).attr("id")),parseInt(i.attr("id"))))}else{if((new Date).getTime()-B0;var s=g._draggingFrame.__rect();g._ghost=new(g.__getClass("wcGhost"))(s,a,g),g._draggingFrame.__checkAnchorDrop(a,!0,g._ghost,!0,g._draggingFrameTopper,!g.__isLastFrame(g._draggingFrame)),g.trigger(e.EVENT.BEGIN_DOCK)}break}for(var r=0;r .wcFrameButton",c),$("body").on("touchstart",".wcFrameButtonBar > .wcFrameButton",c),$("body").on("mousedown",".wcFrameTitleBar",p),$("body").on("touchstart",".wcFrameTitleBar",p),$("body").on("mousedown",".wcSplitterBar",f),$("body").on("touchstart",".wcSplitterBar",f),$("body").on("mousedown",".wcPanelTab",m),$("body").on("touchstart",".wcPanelTab",m),$("body").on("mouseup",".wcPanelTab",d),$("body").on("touchend",".wcPanelTab",d),$("body").on("mousedown",".wcLayout",b),$("body").on("touchstart",".wcLayout",b),$("body").on("mousedown",".wcFrameEdge",_),$("body").on("touchstart",".wcFrameEdge",_),$("body").on("mousedown",".wcCreatePanel",v),$("body").on("touchstart",".wcCreatePanel",v),$("body").on("mouseup",a),$("body").on("touchend",a),$("body").on("click",".wcCustomTab .wcFrameButton",h),$("body").on("click",".wcFrameButtonBar > .wcFrameButton",u),$("body").on("keyup",w);var T=(new Date).getTime(),x=null,y=0,B=0},__testLoadFinished:function(){for(var t=0;t>>0,a=Number(arguments[1])||0;for(a=0>a?Math.ceil(a):Math.floor(a),0>a&&(a+=e);e>a;a++)if(a in this&&this[a]===t)return a;return-1});var e=function(){for(var t=3,e=document.createElement("div"),a=e.getElementsByTagName("i");e.innerHTML="",a[0];);return t>4?t:void 0}();9>e?this._canOrientTabs=!1:this._canOrientTabs=t();var a=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);$("body").addClass(a?"wcMobile":"wcDesktop")},__findInner:function(){function t(t){return!!(t&&t.instanceOf("wcFrame")&&t.panel()&&!t.panel().moveable()||t.instanceOf("wcCollapser"))}for(var e=this._root;e&&e.instanceOf("wcSplitter");){var a=t(e._pane[0]),r=t(e._pane[1]);if(a&&!r)e=e._pane[1];else if(r&&!a)e=e._pane[0];else if(!a&&!r)break}return e},__initCollapsers:function(){function t(t){this._collapser[t]=this.__addCollapser(t,a),a=this._collapser[t]._parent,this._frameList.push(this._collapser[t]._drawer._frame)}if(this.isCollapseEnabled()&&$.isEmptyObject(this._collapser)){var a=this.__findInner();t.call(this,e.DOCK.LEFT),t.call(this,e.DOCK.RIGHT),t.call(this,e.DOCK.BOTTOM);var r=this;setTimeout(function(){r.__update()})}},__update:function(t){this._dirty=!0,this._dirtyDontMove=t},__forceUpdate:function(t){this._dirty=!1,this._root&&this._root.__update(t);for(var e=0;e
'),c.$frame.prepend(c.$modalBlocker),t.moveable(!1),c.$frame.addClass("wcModal"),this._modalList.push(c)),o){var h=c.pos(void 0,void 0,!0);o.hasOwnProperty("x")&&(h.x=o.x+o.w/2),o.hasOwnProperty("y")&&(h.y=o.y+o.h/2),c.pos(h.x,h.y,!0),c._size={x:o.w,y:o.h}}return void this.__orderPanels()}if(r){for(var u=r._parent,d=r;u&&!u.instanceOf("wcSplitter")&&!u.instanceOf("wcDocker");)d=u,u=u._parent;if(u&&u.instanceOf("wcSplitter")){var f,p=u.pane(0),b=(u.pane(1),{x:-1,y:-1});if(p===d?(f=new(this.__getClass("wcSplitter"))(this.$transition,u,a!==e.DOCK.BOTTOM&&a!==e.DOCK.TOP),b.x=u.$pane[0].width(),b.y=u.$pane[0].height(),u.pane(0,f)):(f=new(this.__getClass("wcSplitter"))(this.$transition,u,a!==e.DOCK.BOTTOM&&a!==e.DOCK.TOP),b.x=u.$pane[1].width(),b.y=u.$pane[1].height(),u.pane(1,f)),f){if(f.scrollable(0,!1,!1),f.scrollable(1,!1,!1),o||(o={w:t._size.x,h:t._size.y}),o)switch(o.w<0&&(o.w=b.x/2),o.h<0&&(o.h=b.y/2),a){case e.DOCK.LEFT:f.pos(o.w/b.x);break;case e.DOCK.RIGHT:f.pos(1-o.w/b.x);break;case e.DOCK.TOP:f.pos(o.h/b.y);break;case e.DOCK.BOTTOM:f.pos(1-o.h/b.y)}else f.pos(.5);c=new(this.__getClass("wcFrame"))(this.$transition,f,!1),this._frameList.push(c),a===e.DOCK.LEFT||a===e.DOCK.TOP?(f.pane(0,c),f.pane(1,d)):(f.pane(0,d),f.pane(1,c)),c.addPanel(t)}return}}var _=this,v=this.$container,c=new(this.__getClass("wcFrame"))(this.$transition,_,!1);if(this._frameList.push(c),_._root){var f=new(this.__getClass("wcSplitter"))(v,_,a!==e.DOCK.BOTTOM&&a!==e.DOCK.TOP);if(f){c._parent=f,f.scrollable(0,!1,!1),f.scrollable(1,!1,!1);var b={x:v.width(),y:v.height()};if(o)switch(o.w<0&&(o.w=b.x/2),o.h<0&&(o.h=b.y/2),a){case e.DOCK.LEFT:f.pos(o.w/b.x);break;case e.DOCK.RIGHT:f.pos(1-o.w/b.x);break;case e.DOCK.TOP:f.pos(o.h/b.y);break;case e.DOCK.BOTTOM:f.pos(1-o.h/b.y)}else f.__findBestPos();a===e.DOCK.LEFT||a===e.DOCK.TOP?(f.pane(0,c),f.pane(1,_._root)):(f.pane(0,_._root),f.pane(1,c)),_._root=f}}else _._root=c,c.__container(v);c.addPanel(t)},__addCollapser:function(t,a){var r=null;if(a){for(var o=a._parent,i=a;o&&!o.instanceOf("wcSplitter")&&!o.instanceOf("wcDocker");)i=o,o=o._parent;var n=new(this.__getClass("wcSplitter"))(this.$transition,o,t!==e.DOCK.BOTTOM&&t!==e.DOCK.TOP);if(o&&o.instanceOf("wcDocker")&&(this._root=n,n.__container(this.$container)),o&&o.instanceOf("wcSplitter")){var s=o.left(),l=(o.right(),{x:-1,y:-1});s===i?(l.x=o.$pane[0].width(),l.y=o.$pane[0].height(),o.pane(0,n)):(n=new(this.__getClass("wcSplitter"))(this.$transition,o,t!==e.DOCK.BOTTOM&&t!==e.DOCK.TOP),l.x=o.$pane[1].width(),l.y=o.$pane[1].height(),o.pane(1,n))}if(n){switch(n.scrollable(0,!1,!1),n.scrollable(1,!1,!1),r=new(this.__getClass("wcCollapser"))(this.$transition,n,t),t){case e.DOCK.TOP:case e.DOCK.LEFT:n.pos(0);break;case e.DOCK.BOTTOM:case e.DOCK.RIGHT:n.pos(1)}t===e.DOCK.LEFT||t===e.DOCK.TOP?(n.pane(0,r),n.pane(1,i)):(n.pane(0,i),n.pane(1,r))}}return r},__addPlaceholder:function(t){this._placeholderPanel&&console.log("WARNING: wcDocker creating placeholder panel when one already exists"),this._placeholderPanel=new(this.__getClass("wcPanel"))(this,e.PANEL_PLACEHOLDER,{}),this._placeholderPanel._isPlaceholder=!0,this._placeholderPanel.__container(this.$transition),this._placeholderPanel._panelObject=new function(t){t.title(!1),t.closeable(!1)}(this._placeholderPanel),t?this.__addPanelGrouped(this._placeholderPanel,t):this.__addPanelAlone(this._placeholderPanel,e.DOCK.TOP),this.__update()},__closePanel:function(t){var e=!1,a=this.panelTypeInfo(t._type);a&&a.isPersistent&&(e=!0,this._persistentList.push(t)),this.removePanel(t,e),this.__update()},__stringToPercent:function(t,e){if("string"==typeof t){if(-1!==t.indexOf("%",t.length-1))return parseFloat(t)/100;if(-1!==t.indexOf("px",t.length-2))return parseFloat(t)/e}return parseFloat(t)},__stringToPixel:function(t,e){if("string"==typeof t){if(-1!==t.indexOf("%",t.length-1))return parseFloat(t)/100*e;if(-1!==t.indexOf("px",t.length-2))return parseFloat(t)}return parseFloat(t)}});for(var b in e)p[b]=e[b];return p.defaultClasses=f,p}),a("wcDocker/iframe",["dcl/dcl","./types","./base"],function(t,e,a){var r=t(a,{declaredClass:"wcIFrame",constructor:function(t,e){this._panel=e,this._layout=e.layout(),this.$container=$(t),this.$frame=null,this.$focus=null,this.$iFrame=null,this._window=null,this._isDocking=!1,this._isHovering=!1,this._boundEvents=[],this._onLoadFuncs=[],this._onClosedFuncs=[],this.__init()},openURL:function(t){this.__clearFrame(),this.$iFrame=$(""),this.$frame.prepend(this.$iFrame),this.__onMoved(),this._window=this.$iFrame[0].contentWindow||this.$iFrame[0],this.__updateFrame(),this._window.location.replace(t),this.$iFrame[0].focus(),this.$iFrame.hover(this.__onHoverEnter.bind(this),this.__onHoverExit.bind(this));var e=this;this.$iFrame.load(function(){for(var t=0;tiFrames not supported on your device!"),this.$frame.prepend(this.$iFrame),this.__onMoved(),this._window=this.$iFrame[0].contentWindow||this.$iFrame[0],this.__updateFrame(),this._window.document.open(),this._window.document.write(t),this._window.document.close(),this.$iFrame[0].focus(),this.$iFrame.hover(this.__onHoverEnter.bind(this),this.__onHoverExit.bind(this));var e=this;this.$iFrame.load(function(){for(var t=0;tiFrames not supported on your device!"),this.$frame.prepend(this.$iFrame),this.__onMoved(),this._window=this.$iFrame[0].contentWindow||this.$iFrame[0],this.__updateFrame(),this.$iFrame[0].srcdoc=t,this.$iFrame[0].focus(),this.$iFrame.hover(this.__onHoverEnter.bind(this),this.__onHoverExit.bind(this));var e=this;this.$iFrame.load(function(){for(var t=0;t'),this.$focus=$('
'),this._panel.docker().$container.append(this.$frame),this.$frame.append(this.$focus),this._boundEvents.push({event:e.EVENT.VISIBILITY_CHANGED,handler:this.__onVisibilityChanged.bind(this)}),this._boundEvents.push({event:e.EVENT.BEGIN_DOCK,handler:this.__onBeginDock.bind(this)}),this._boundEvents.push({event:e.EVENT.END_DOCK,handler:this.__onEndDock.bind(this)}),this._boundEvents.push({event:e.EVENT.MOVE_STARTED,handler:this.__onMoveStarted.bind(this)}),this._boundEvents.push({event:e.EVENT.RESIZE_STARTED,handler:this.__onMoveStarted.bind(this)}),this._boundEvents.push({event:e.EVENT.MOVE_ENDED,handler:this.__onMoveFinished.bind(this)}),this._boundEvents.push({event:e.EVENT.RESIZE_ENDED,handler:this.__onMoveFinished.bind(this)}),this._boundEvents.push({event:e.EVENT.MOVED,handler:this.__onMoved.bind(this)}),this._boundEvents.push({event:e.EVENT.RESIZED,handler:this.__onMoved.bind(this)}),this._boundEvents.push({event:e.EVENT.ATTACHED,handler:this.__onAttached.bind(this)}),this._boundEvents.push({event:e.EVENT.DETACHED,handler:this.__updateFrame.bind(this)}),this._boundEvents.push({event:e.EVENT.GAIN_FOCUS,handler:this.__updateFrame.bind(this)}),this._boundEvents.push({event:e.EVENT.LOST_FOCUS,handler:this.__updateFrame.bind(this)}),this._boundEvents.push({event:e.EVENT.PERSISTENT_OPENED,handler:this.__updateFrame.bind(this)}),this._boundEvents.push({event:e.EVENT.PERSISTENT_CLOSED,handler:this.__updateFrame.bind(this)}),this._boundEvents.push({event:e.EVENT.CLOSED,handler:this.__onClosed.bind(this)}),this._boundEvents.push({event:e.EVENT.ORDER_CHANGED,handler:this.__onOrderChanged.bind(this)});for(var t=0;t'),this._fontWeights=["normal","bold","bolder","lighter","100","200","300","400","500","600","700","800","900","initial","inherit"],this._borderStyles=[{display:"none",value:""},"dotted","dashed","solid","double","groove","ridge","inset","outset","initial","inherit"],this._shadowStyle=[{display:"normal",value:""},"inset","initial","inherit"],this._parseBoxShadowStyle=function(t){return t=t.toLowerCase(),t.indexOf("inset")>-1?"inset":t.indexOf("initial")>-1?"initial":t.indexOf("inherit")>-1?"inherit":""},this._parseBoxShadowColor=function(t){t=t.toLowerCase();var e=t.indexOf("rgb");if(e>-1){var a=t.indexOf(")");return t.substring(e,a+1)}if(e=t.indexOf("#"),e>-1){var a=t.indexOf(" ");return-1===a&&(a=t.length),t.substring(e,a+1).replace(";","")}},this._parseBoxShadowAttribute=function(t){return function(e){var a=0;e=e.replace(/\s(?![^)]*(\(|$))/g,"");for(var r=e.split(" "),o=0;o=0;--t)this._frameIndex.unshift(this._frames[t].tab()),this._frames[t].destroy();this._frames=[]},buildControls:function(t){var e=this;this._panel.startLoading(),setTimeout(function(){e.clearControls(),$("body").toggleClass("wcMobile",t?!0:!1).toggleClass("wcDesktop",t?!1:!0),e._panel.layout().clear(),e._panel.layout().startBatch(),e._panel.layout().scene().css("padding","10px"),e._panel.layout()._childFrames=[];for(var a=0,r=0;r');e._panel.layout().addItem($(""),0,a,2),e._panel.layout().addItem(i,2,a,2).stretch("20%",""),i.on("change",function(t){if(this.files.length){var a=this.files[0];if("text/css"!==a.type)return void alert("Failed to upload file, must be a stylesheet!");var r=new FileReader;e._panel.startLoading(),setTimeout(function(){r.readAsText(a,"UTF-8"),r.onload=function(t){e.apply(t.target.result);var a=$("body").hasClass("wcMobile");e.pull(e._controls),e.buildControls(a),e._panel.finishLoading(400)},r.onerror=function(t){console.log("Error reading theme file."),e._panel.finishLoading(400)}},100)}}),a+=1;var n=$('');e._panel.layout().addItem(n,0,a).stretch("25%",""),n.click(function(){e._panel.startLoading(),setTimeout(function(){var t=$("body").hasClass("wcMobile");e.pull(e._controls),e.buildControls(t),e._panel.finishLoading(400)},100)});var s=$('');e._panel.layout().addItem(s,1,a).stretch("25%",""),s.click(function(){var t=e.build();e.apply(t),s.addClass("wcButtonActive")}),e.$activeTheme&&e.$activeTheme.parent().length&&s.addClass("wcButtonActive");var l=$('');e._panel.layout().addItem(l,2,a).stretch("25%",""),l.click(function(){e._panel.startLoading(),setTimeout(function(){e.buildControls(!t),e._panel.docker().__update(),e._panel.finishLoading(400)},100)}),t&&l.addClass("wcButtonActive");var c=$('');e._panel.layout().addItem(c,3,a).stretch("25%",""),c.click(function(){var t=e.build(),a=new Blob([t],{type:"text/plain;charset=utf-8"});saveAs(a,"myTheme.css")}),e._panel.layout().finishBatch();for(var r=0;r
'),t.addItem(i,0,r,5).stretch("","100%").css("position","relative")):(i=$("
"),t.addItem(i,0,r,5).css("height","auto"));var n=new a(i,this._panel);t._childFrames.push(n),n.moveable(!1),e.orientation&&n.tabOrientation(e.orientation);for(var s=0;s",0,a,5).stretch("","100%"),o.finishBatch()},addSpacer:function(t,e,a,r){e.name?t.addItem('
'+e.name+"
",0,a,4).stretch("100%",""):t.addItem('
',0,a,4).stretch("100%","")},addColorControl:function(t,e,a,r){function o(t){t?e[c]=t.toRgbString():e[c]=null,!r&&e.isMobileDisabled&&(e.mobileValue=e.value),l.onChanged()}var i=null,n=null,s=null,l=this,c="value",h="isDisabled";r&&(c="mobileValue",h="isMobileDisabled"),n=$('"),t.addItem(n,1,a).stretch("1%","").css("text-align","right"),s=$(''),t.addItem(s,2,a,2).stretch("100%",""),s.spectrum({color:e[c],showAlpha:!0,showPalette:!0,showInput:!0,showInitial:!0,allowEmpty:!0,clickoutFiresChange:!0,palette:[["#000","#444","#666","#999","#ccc","#eee","#f3f3f3","#fff"],["#f00","#f90","#ff0","#0f0","#0ff","#00f","#90f","#f0f"],["#f4cccc","#fce5cd","#fff2cc","#d9ead3","#d0e0e3","#cfe2f3","#d9d2e9","#ead1dc"],["#ea9999","#f9cb9c","#ffe599","#b6d7a8","#a2c4c9","#9fc5e8","#b4a7d6","#d5a6bd"],["#e06666","#f6b26b","#ffd966","#93c47d","#76a5af","#6fa8dc","#8e7cc3","#c27ba0"],["#c00","#e69138","#f1c232","#6aa84f","#45818e","#3d85c6","#674ea7","#a64d79"],["#900","#b45f06","#bf9000","#38761d","#134f5c","#0b5394","#351c75","#741b47"],["#600","#783f04","#7f6000","#274e13","#0c343d","#073763","#20124d","#4c1130"]],selectionPalette:[],maxSelectionSize:8,localStorageKey:"theme.colors",preferredFormat:"hex3",change:o,move:o,hide:o}),e.grouped?i=this._lastCheckbox:(i=$(''),t.addItem(i,0,a).stretch("1%",""),i.attr("checked",!e[h]),this._lastCheckbox=i),i.change(function(){e[h]=!this.checked,s.spectrum(this.checked?"enable":"disable"),l.onChanged()}),e[h]&&s.spectrum("disable")},addTextControl:function(t,e,a,r){var o=null,i=null,n=null,s=this,l="value",c="isDisabled";r&&(l="mobileValue",c="isMobileDisabled"),i=$('"),t.addItem(i,1,a).stretch("1%","").css("text-align","right"),n=$(''),t.addItem(n,2,a,2).stretch("100%",""),n.val(e[l]),n.change(function(){e[l]=$(this).val(),!r&&e.isMobileDisabled&&(e.mobileValue=e.value),s.onChanged()}),e.grouped?o=this._lastCheckbox:(o=$(''),t.addItem(o,0,a).stretch("1%",""),o.attr("checked",!e[c]),this._lastCheckbox=o),o.change(function(){e[c]=!this.checked,n.attr("disabled",!this.checked),s.onChanged()}),e[c]&&n.attr("disabled",!0)},addPixelControl:function(t,e,a,r){var o=null,i=null,n=null,s=this,l="value",c="isDisabled";r&&(l="mobileValue",c="isMobileDisabled"),i=$('"),t.addItem(i,1,a).stretch("1%","").css("text-align","right"),n=$(''),t.addItem(n,2,a,2).stretch("100%",""),n.val(parseInt(e[l])),n.change(function(){e[l]=$(this).val()+"px",!r&&e.isMobileDisabled&&(e.mobileValue=e.value),s.onChanged()}),e.grouped?o=this._lastCheckbox:(o=$(''),t.addItem(o,0,a).stretch("1%",""),o.attr("checked",!e[c]),this._lastCheckbox=o),o.change(function(){e[c]=!this.checked,n.attr("disabled",!this.checked),s.onChanged()}),e[c]&&n.attr("disabled",!0)},addListControl:function(t){return function(e,a,r,o){var i=null,n=null,s=null,l=this,c="value",h="isDisabled";o&&(c="mobileValue",h="isMobileDisabled"),n=$('"),e.addItem(n,1,r).stretch("1%","").css("text-align","right"),s=$(''),e.addItem(s,2,r,2).stretch("100%","");for(var u=0;u"+d+""))}s.change(function(){a[c]=$(this).val(),!o&&a.isMobileDisabled&&(a.mobileValue=a.value),l.onChanged()}),a.grouped?i=this._lastCheckbox:(i=$(''),e.addItem(i,0,r).stretch("1%",""),i.attr("checked",!a[h]),this._lastCheckbox=i),i.change(function(){a[h]=!this.checked,s.attr("disabled",!this.checked),l.onChanged()}),a[h]&&s.attr("disabled",!0)}},build:function(t,e){var a=!1;t||(t={},e=this._controls,a=!0);for(var r=0;r'),$("head").append(this.$activeTheme),this.$activeTheme.text(t),this._panel.docker().__update()},pull:function(t,e){e||(this._objMapping={},this._tempItems=[]);var a=!1,r=$("body").hasClass("wcMobile");$("body").removeClass("wcMobile").addClass("wcDesktop");for(var o=0;o
',name:"Font Family",info:"The font family of standard text",create:this.addTextControl,attribute:"font-family",value:""},{selector:".wcDocker",elem:'
',name:"Font Weight",info:"The font weight of the standard text",create:this.addListControl(this._fontWeights),attribute:"font-weight",value:""},{selector:".wcDocker",elem:'
',name:"Font Size",info:"The font size of standard text",create:this.addPixelControl,attribute:"font-size",value:""},{selector:".wcDocker",elem:'
',name:"Font Color",info:"The font color of standard text",create:this.addColorControl,attribute:"color",value:""},{name:"",create:this.addSpacer},{name:"Background",create:this.addSpacer},{selector:".wcDocker, .wcPanelBackground",elem:'
',name:"Color",info:"The background color to use",create:this.addColorControl,attribute:"background-color",value:""},{selector:".wcDocker, .wcPanelBackground",elem:'
',name:"Box-Shadow Style",info:"The box shadow style",create:this.addListControl(this._shadowStyle),parser:this._parseBoxShadowStyle,attribute:"box-shadow",value:""},{selector:".wcDocker, .wcPanelBackground",elem:'
',name:"Box-Shadow Left Offset",info:"The box shadow horizontal offset from the left (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(1),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcDocker, .wcPanelBackground",elem:'
',name:"Box-Shadow Top Offset",info:"The box shadow vertical offset from the top (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(2),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcDocker, .wcPanelBackground",elem:'
',name:"Box-Shadow Blur",info:"The box shadow blur",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(3),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcDocker, .wcPanelBackground",elem:'
',name:"Box-Shadow Spread",info:"The box shadow spread",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(4),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcDocker, .wcPanelBackground",elem:'
',name:"Box-Shadow Color",info:"The box shadow color",create:this.addColorControl,parser:this._parseBoxShadowColor,attribute:"box-shadow",append:!0,grouped:!0,value:""},{name:"",create:this.addSpacer},{name:"Modal Blocker",create:this.addSpacer},{selector:".wcModalBlocker",elem:'
',name:"Modal Blocker Color",info:"The color of the fullscreen blocker element that appears when a modal panel is visible",create:this.addColorControl,attribute:"background-color",value:""},{name:"",create:this.addSpacer},{name:"Loading Screen",create:this.addSpacer},{selector:".wcLoadingIcon",elem:'
',name:"Loading Icon Color",info:"The icon color or the loading screen to use",create:this.addColorControl,attribute:"color",value:""},{selector:".wcLoadingLabel",elem:'
',name:"Loading Label Color",info:"The label color or the loading screen to use",create:this.addColorControl,attribute:"color",value:""},{selector:".wcLoadingBackground",elem:'
',name:"Loading Screen Color",info:"The background color or the loading screen to use",create:this.addColorControl,attribute:"background-color",value:""},{name:"",create:this.addSpacer -},{name:"Ghost",create:this.addSpacer},{selector:".wcGhost",elem:'
',name:"Ghost Color",info:"The ghost color, this is the overlay that shows where a moving panel is being moved",create:this.addColorControl,attribute:"background-color",value:""},{selector:".wcGhost",elem:'
',name:"Ghost Border Radius",info:"The ghost border radius",create:this.addPixelControl,attribute:"border-radius",value:"0px",mobileValue:"0px"}]},{name:"Frames",scrollable:!0,create:this.addTab,controls:[{name:"Floating Frames",create:this.addSpacer},{selector:".wcFrameEdge",elem:'
',name:"Edge Color",info:"The color of a floating frame",create:this.addColorControl,attribute:"background-color",value:""},{selector:".wcFrameEdge",elem:'
',name:"Edge Border Color",info:"The border color of a floating frame",create:this.addColorControl,attribute:"border-color",value:""},{selector:".wcFrameEdge",attribute:"border-width",value:"2"},{selector:".wcFrameEdge",attribute:"border-style",value:"solid"},{name:"",create:this.addSpacer},{name:"Splitter Frames",create:this.addSpacer},{create:this.addTabFrame,controls:[{name:"Moveable Splitter",create:this.addTab,controls:[{name:"Moveable Splitter",create:this.addSpacer},{selector:".wcSplitterBar.wcSplitterBarV:not(.wcSplitterBarStatic)",elem:'
',name:"Size",info:"The size of a splitter bar",create:this.addPixelControl,attribute:"width",value:"",also:[{selector:".wcSplitterBar.wcSplitterBarH:not(.wcSplitterBarStatic)",attribute:"height"}]},{selector:".wcSplitterBar.wcSplitterBarV:not(.wcSplitterBarStatic), .wcSplitterBar.wcSplitterBarH:not(.wcSplitterBarStatic)",elem:'
',name:"Color",info:"The color of a splitter bar",create:this.addColorControl,attribute:"background-color",value:""},{selector:".wcSplitterBar.wcSplitterBarV:not(.wcSplitterBarStatic), .wcSplitterBar.wcSplitterBarH:not(.wcSplitterBarStatic)",elem:'
',name:"Border Style",info:"The border style of a splitter bar",create:this.addListControl(this._borderStyles),attribute:"border-style",value:""},{selector:".wcSplitterBar.wcSplitterBarV:not(.wcSplitterBarStatic), .wcSplitterBar.wcSplitterBarH:not(.wcSplitterBarStatic)",elem:'
',name:"Border Size",info:"The border size of a splitter bar",create:this.addPixelControl,attribute:"border-width",value:"0px",mobileValue:"0px"},{selector:".wcSplitterBar.wcSplitterBarV:not(.wcSplitterBarStatic), .wcSplitterBar.wcSplitterBarH:not(.wcSplitterBarStatic)",elem:'
',name:"Border Color",info:"The border color of a splitter bar",create:this.addColorControl,attribute:"border-color",value:""}]},{name:"Static Splitter",create:this.addTab,controls:[{name:"Static Splitter",create:this.addSpacer},{selector:".wcSplitterBar.wcSplitterBarV.wcSplitterBarStatic",elem:'
',name:"Size",info:"The size of a static splitter bar",create:this.addPixelControl,attribute:"width",value:"",also:[{selector:".wcSplitterBar.wcSplitterBarH.wcSplitterBarStatic",attribute:"height"}]},{selector:".wcSplitterBar.wcSplitterBarV.wcSplitterBarStatic, .wcSplitterBar.wcSplitterBarH.wcSplitterBarStatic",elem:'
',name:"Color",info:"The color of a static splitter bar",create:this.addColorControl,attribute:"background-color",value:""},{selector:".wcSplitterBar.wcSplitterBarV.wcSplitterBarStatic, .wcSplitterBar.wcSplitterBarH.wcSplitterBarStatic",elem:'
',name:"Border Style",info:"The border style of a static splitter bar",create:this.addListControl(this._borderStyles),attribute:"border-style",value:""},{selector:".wcSplitterBar.wcSplitterBarV.wcSplitterBarStatic, .wcSplitterBar.wcSplitterBarH.wcSplitterBarStatic",elem:'
',name:"Border Size",info:"The border size of a static splitter bar",create:this.addPixelControl,attribute:"border-width",value:"0px",mobileValue:"0px"},{selector:".wcSplitterBar.wcSplitterBarV.wcSplitterBarStatic, .wcSplitterBar.wcSplitterBarH.wcSplitterBarStatic",elem:'
',name:"Border Color",info:"The border color of a static splitter bar",create:this.addColorControl,attribute:"border-color",value:""}]}]}]},{name:"Panels",scrollable:!0,create:this.addTab,controls:[{name:"Panels",create:this.addSpacer},{selector:".wcFrameFlasher",elem:'
',name:"Flash Color",info:"The color of the panel when it focus flashes.",create:this.addColorControl,attribute:"background-color",value:""},{selector:".wcFrameShadower",elem:'
',name:"Shadow Color",info:"The color of the panel when it is being moved by the user.",create:this.addColorControl,attribute:"background-color",value:""},{name:"",create:this.addSpacer},{name:"Panel Buttons",create:this.addSpacer},{create:this.addTabFrame,orientation:e.TAB.TOP,controls:[{name:"Button Normal State",create:this.addTab,controls:[{name:"Button Normal State",create:this.addSpacer},{selector:".wcFrameButton",elem:'
',name:"Size",info:"The size of a panel button",create:this.addPixelControl,attribute:"width,height",notValue:"0px",value:""},{selector:".wcFrameButton",elem:'
',name:"Font Size",info:"The font size of a panel button",create:this.addPixelControl,attribute:"font-size",value:""},{selector:".wcFrameButton",elem:'
',name:"Font Weight",info:"The font weight of a panel button",create:this.addListControl(this._fontWeights),attribute:"font-weight",value:""},{selector:".wcFrameButton",elem:'
',name:"Font Color",info:"The font color of a panel button",create:this.addColorControl,attribute:"color",value:""},{name:"",create:this.addSpacer},{selector:".wcFrameButton",elem:'
',name:"Color",info:"The color of a panel button",create:this.addColorControl,attribute:"background-color",value:""},{name:"",create:this.addSpacer},{selector:".wcFrameButton",elem:'
',name:"Border Style",info:"The border style of a panel button",create:this.addListControl(this._borderStyles),attribute:"border-style",value:""},{selector:".wcFrameButton",elem:'
',name:"Border Size",info:"The border size of a panel button",create:this.addPixelControl,attribute:"border-width",value:"0px",mobileValue:"0px"},{selector:".wcFrameButton",elem:'
',name:"Border Color",info:"The border color of a panel button",create:this.addColorControl,attribute:"border-color",value:""},{name:"",create:this.addSpacer},{selector:".wcFrameButton",elem:'
',name:"Box-Shadow Style",info:"The box shadow style",create:this.addListControl(this._shadowStyle),parser:this._parseBoxShadowStyle,attribute:"box-shadow",value:""},{selector:".wcFrameButton",elem:'
',name:"Box-Shadow Left Offset",info:"The box shadow horizontal offset from the left (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(1),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcFrameButton",elem:'
',name:"Box-Shadow Top Offset",info:"The box shadow vertical offset from the top (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(2),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcFrameButton",elem:'
',name:"Box-Shadow Blur",info:"The box shadow blur",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(3),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcFrameButton",elem:'
',name:"Box-Shadow Spread",info:"The box shadow spread",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(4),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcFrameButton",elem:'
',name:"Box-Shadow Color",info:"The box shadow color",create:this.addColorControl,parser:this._parseBoxShadowColor,attribute:"box-shadow",append:!0,grouped:!0,value:""}]},{name:"Button Hover State",create:this.addTab,controls:[{name:"Button Hover State",create:this.addSpacer},{selector:".wcFrameButton:hover, .wcFrameButtonHover",elem:'
',name:"Size",info:"The size of a panel button",create:this.addPixelControl,attribute:"width,height",notValue:"0px",value:""},{selector:".wcFrameButton:hover, .wcFrameButtonHover",elem:'
',name:"Font Size",info:"The font size of a panel button",create:this.addPixelControl,attribute:"font-size",value:""},{selector:".wcFrameButton:hover, .wcFrameButtonHover",elem:'
',name:"Font Weight",info:"The font weight of a panel button",create:this.addListControl(this._fontWeights),attribute:"font-weight",value:""},{selector:".wcFrameButton:hover, .wcFrameButtonHover",elem:'
',name:"Font Color",info:"The font color of a panel button",create:this.addColorControl,attribute:"color",value:""},{name:"",create:this.addSpacer},{selector:".wcFrameButton:hover, .wcFrameButtonHover",elem:'
',name:"Color",info:"The color of a panel button",create:this.addColorControl,attribute:"background-color",value:""},{name:"",create:this.addSpacer},{selector:".wcFrameButton:hover, .wcFrameButtonHover",elem:'
',name:"Border Style",info:"The border style of a panel button",create:this.addListControl(this._borderStyles),attribute:"border-style",value:""},{selector:".wcFrameButton:hover, .wcFrameButtonHover",elem:'
',name:"Border Size",info:"The border size of a panel button",create:this.addPixelControl,attribute:"border-width",value:"0px",mobileValue:"0px"},{selector:".wcFrameButton:hover, .wcFrameButtonHover",elem:'
',name:"Border Color",info:"The border color of a panel button",create:this.addColorControl,attribute:"border-color",value:""},{name:"",create:this.addSpacer},{selector:".wcFrameButton:hover, .wcFrameButtonHover",elem:'
',name:"Box-Shadow Style",info:"The box shadow style",create:this.addListControl(this._shadowStyle),parser:this._parseBoxShadowStyle,attribute:"box-shadow",value:""},{selector:".wcFrameButton:hover, .wcFrameButtonHover",elem:'
',name:"Box-Shadow Left Offset",info:"The box shadow horizontal offset from the left (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(1),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcFrameButton:hover, .wcFrameButtonHover",elem:'
',name:"Box-Shadow Top Offset",info:"The box shadow vertical offset from the top (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(2),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcFrameButton:hover, .wcFrameButtonHover",elem:'
',name:"Box-Shadow Blur",info:"The box shadow blur",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(3),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcFrameButton:hover, .wcFrameButtonHover",elem:'
',name:"Box-Shadow Spread",info:"The box shadow spread",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(4),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcFrameButton:hover, .wcFrameButtonHover",elem:'
',name:"Box-Shadow Color",info:"The box shadow color",create:this.addColorControl,parser:this._parseBoxShadowColor,attribute:"box-shadow",append:!0,grouped:!0,value:""}]},{name:"Button Active State",create:this.addTab,controls:[{name:"Button Active State",create:this.addSpacer},{selector:".wcFrameButton:active, .wcFrameButtonActive",elem:'
',name:"Size",info:"The size of a panel button",create:this.addPixelControl,attribute:"width,height",notValue:"0px",value:""},{selector:".wcFrameButton:active, .wcFrameButtonActive",elem:'
',name:"Font Size",info:"The font size of a panel button",create:this.addPixelControl,attribute:"font-size",value:""},{selector:".wcFrameButton:active, .wcFrameButtonActive",elem:'
',name:"Font Weight",info:"The font weight of a panel button",create:this.addListControl(this._fontWeights),attribute:"font-weight",value:""},{selector:".wcFrameButton:active, .wcFrameButtonActive",elem:'
',name:"Font Color",info:"The font color of a panel button",create:this.addColorControl,attribute:"color",value:""},{name:"",create:this.addSpacer},{selector:".wcFrameButton:active, .wcFrameButtonActive",elem:'
',name:"Color",info:"The color of a panel button",create:this.addColorControl,attribute:"background-color",value:""},{name:"",create:this.addSpacer},{selector:".wcFrameButton:active, .wcFrameButtonActive",elem:'
',name:"Border Style",info:"The border style of a panel button",create:this.addListControl(this._borderStyles),attribute:"border-style",value:""},{selector:".wcFrameButton:active, .wcFrameButtonActive",elem:'
',name:"Border Size",info:"The border size of a panel button",create:this.addPixelControl,attribute:"border-width",value:"0px",mobileValue:"0px"},{selector:".wcFrameButton:active, .wcFrameButtonActive",elem:'
',name:"Border Color",info:"The border color of a panel button",create:this.addColorControl,attribute:"border-color",value:""},{name:"",create:this.addSpacer},{selector:".wcFrameButton:active, .wcFrameButtonActive",elem:'
',name:"Box-Shadow Style",info:"The box shadow style",create:this.addListControl(this._shadowStyle),parser:this._parseBoxShadowStyle,attribute:"box-shadow",value:""},{selector:".wcFrameButton:active, .wcFrameButtonActive",elem:'
',name:"Box-Shadow Left Offset",info:"The box shadow horizontal offset from the left (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(1),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcFrameButton:active, .wcFrameButtonActive",elem:'
',name:"Box-Shadow Top Offset",info:"The box shadow vertical offset from the top (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(2),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcFrameButton:active, .wcFrameButtonActive",elem:'
',name:"Box-Shadow Blur",info:"The box shadow blur",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(3),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcFrameButton:active, .wcFrameButtonActive",elem:'
',name:"Box-Shadow Spread",info:"The box shadow spread",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(4),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcFrameButton:active, .wcFrameButtonActive",elem:'
',name:"Box-Shadow Color",info:"The box shadow color",create:this.addColorControl,parser:this._parseBoxShadowColor,attribute:"box-shadow",append:!0,grouped:!0,value:""}]}]}]},{name:"Layout",scrollable:!0,create:this.addTab,controls:[{name:"Layout Grid",create:this.addSpacer},{selector:".wcLayoutGridAlternate tr:nth-child(even), .wcLayoutGridAltColor",elem:'
',name:"Odd Row Color",info:"When a layout grid alternate mode is enabled, this is the color to use for each alternate row",create:this.addColorControl,attribute:"background-color",value:"",important:!0},{selector:".wcLayoutGrid, .wcLayoutGrid tr, .wcLayoutGrid td",elem:'
',name:"Border Style",info:"When a layout grid is visible, this is the style of the grid lines",create:this.addListControl(this._borderStyles),attribute:"border-style",value:""},{selector:".wcLayoutGrid, .wcLayoutGrid tr, .wcLayoutGrid td",elem:'
',name:"Border Size",info:"When a layout grid is visible, this is the size of the grid lines",create:this.addPixelControl,attribute:"border-width",value:"0px",mobileValue:"0px"},{selector:".wcLayoutGrid, .wcLayoutGrid tr, .wcLayoutGrid td",elem:'
',name:"Border Color",info:"When a layout grid is visible, this is the color of the grid lines",create:this.addColorControl,attribute:"border-color",value:""}]},{name:"Tabs",scrollable:!0,create:this.addTab,controls:[{name:"Tab Bar",create:this.addSpacer},{selector:".wcFrameTitleBar",elem:'
',name:"Size",info:"The size of the tab bar.",create:this.addPixelControl,attribute:"height",notValue:"0px",value:"",also:[{selector:".wcFrameCenter",attribute:"top"}]},{selector:".wcFrameTitle",elem:'
',name:"Top Offset",info:"The top offset of the tab bar",create:this.addPixelControl,attribute:"padding-top",value:""},{selector:".wcFrameTitleBar",elem:'
',name:"Color",info:"The color of the tab bar",create:this.addColorControl,attribute:"background-color",value:""},{name:"",create:this.addSpacer},{name:"Title Bar",create:this.addSpacer},{selector:".wcFrameTitle",elem:'
',name:"Font Size",info:"The font size of the title bar",create:this.addPixelControl,attribute:"font-size",value:""},{selector:".wcFrameTitle",elem:'
',name:"Font Weight",info:"The font weight of a title bar",create:this.addListControl(this._fontWeights),attribute:"font-weight",value:""},{selector:".wcFrameTitle",elem:'
',name:"Font Color",info:"The font color of the title bar",create:this.addColorControl,attribute:"color",value:""},{selector:".wcFrameTitle",elem:'
',name:"Color",info:"The background color of the title bar",create:this.addColorControl,attribute:"background-color",value:""},{selector:".wcFrameTitle",attribute:"font-weight",value:"bold"},{selector:".wcFrameTitle",attribute:"text-align",value:"center"},{name:"",create:this.addSpacer},{name:"Tab Items",create:this.addSpacer},{create:this.addTabFrame,controls:[{name:"Tab Normal State",create:this.addTab,controls:[{name:"Tab Normal State",create:this.addSpacer},{selector:".wcPanelTab > div",elem:'
',name:"Font Top Offset",info:"The font top offset of a tab item",create:this.addPixelControl,attribute:"margin-top",value:""},{selector:".wcPanelTab",elem:'
',name:"Font Size",info:"The font size of a tab item",create:this.addPixelControl,attribute:"font-size",value:""},{selector:".wcPanelTab",elem:'
',name:"Font Weight",info:"The font weight of a tab item",create:this.addListControl(this._fontWeights),attribute:"font-weight",value:""},{selector:".wcPanelTab",elem:'
',name:"Font Padding",info:"The padding between text and tab border",create:this.addPixelControl,attribute:"padding-left,padding-right",value:""},{selector:".wcPanelTab",elem:'
',name:"Font Color",info:"The font color of a tab item",create:this.addColorControl,attribute:"color",value:""},{name:"",create:this.addSpacer},{selector:".wcPanelTab",elem:'
',name:"Top Offset",info:"The top offset of a tab item",create:this.addPixelControl,attribute:"margin-top",value:""},{selector:".wcPanelTab",elem:'
',name:"Height",info:"The height of a tab item",create:this.addPixelControl,attribute:"height",notValue:"0px",value:""},{selector:".wcPanelTab",elem:'
',name:"Spacing",info:"The spacing between tab items",create:this.addPixelControl,attribute:"margin-right",value:""},{selector:".wcPanelTab",elem:'
',name:"Color",info:"The color of a tab item",create:this.addColorControl,attribute:"background-color",value:""},{name:"",create:this.addSpacer},{selector:".wcPanelTab",elem:'
',name:"Border Style",info:"The border style of a tab item",create:this.addListControl(this._borderStyles),attribute:"border-style",value:""},{selector:".wcPanelTab",elem:'
',name:"Border Size",info:"The border size of a tab item",create:this.addPixelControl,attribute:"border-width",value:"0px",mobileValue:"0px"},{selector:".wcPanelTab",elem:'
',name:"Border Radius",info:"The border radius of a tab item",create:this.addPixelControl,attribute:"border-top-left-radius,border-top-right-radius",value:"0px",mobileValue:"0px"},{selector:".wcPanelTab",elem:'
',name:"Border Color",info:"The border color of a tab item",create:this.addColorControl,attribute:"border-color",value:""},{name:"",create:this.addSpacer},{selector:".wcPanelTab",elem:'
',name:"Box-Shadow Style",info:"The box shadow style",create:this.addListControl(this._shadowStyle),parser:this._parseBoxShadowStyle,attribute:"box-shadow",value:""},{selector:".wcPanelTab",elem:'
',name:"Box-Shadow Left Offset",info:"The box shadow horizontal offset from the left (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(1),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcPanelTab",elem:'
',name:"Box-Shadow Top Offset",info:"The box shadow vertical offset from the top (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(2),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcPanelTab",elem:'
',name:"Box-Shadow Blur",info:"The box shadow blur",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(3),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcPanelTab",elem:'
',name:"Box-Shadow Spread",info:"The box shadow spread",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(4),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcPanelTab",elem:'
',name:"Box-Shadow Color",info:"The box shadow color",create:this.addColorControl,parser:this._parseBoxShadowColor,attribute:"box-shadow",append:!0,grouped:!0,value:""}]},{name:"Tab Hover State",create:this.addTab,controls:[{name:"Tab Hover State",create:this.addSpacer},{selector:".wcPanelTab:hover > div, .wcPanelTabHover > div",elem:'
',name:"Font Top Offset",info:"The font top offset of a tab item",create:this.addPixelControl,attribute:"margin-top",value:""},{selector:".wcPanelTab:hover, .wcPanelTabHover",elem:'
',name:"Font Size",info:"The font size of a tab item",create:this.addPixelControl,attribute:"font-size",value:""},{selector:".wcPanelTab:hover, .wcPanelTabHover",elem:'
',name:"Font Weight",info:"The font weight of a tab item",create:this.addListControl(this._fontWeights),attribute:"font-weight",value:""},{selector:".wcPanelTab:hover, .wcPanelTabHover",elem:'
',name:"Font Padding",info:"The padding between text and tab border",create:this.addPixelControl,attribute:"padding-left,padding-right",value:""},{selector:".wcPanelTab:hover, .wcPanelTabHover",elem:'
',name:"Font Color",info:"The font color of a tab item",create:this.addColorControl,attribute:"color",value:""},{name:"",create:this.addSpacer},{selector:".wcPanelTab:hover, .wcPanelTabHover",elem:'
',name:"Top Offset",info:"The top offset of a tab item",create:this.addPixelControl,attribute:"margin-top",value:""},{selector:".wcPanelTab:hover, .wcPanelTabHover",elem:'
',name:"Height",info:"The height of a tab item",create:this.addPixelControl,attribute:"height",notValue:"0px",value:""},{selector:".wcPanelTab:hover, .wcPanelTabHover",elem:'
',name:"Spacing",info:"The spacing between tab items",create:this.addPixelControl,attribute:"margin-right",value:""},{selector:".wcPanelTab:hover, .wcPanelTabHover",elem:'
',name:"Color",info:"The color of a tab item",create:this.addColorControl,attribute:"background-color",value:""},{name:"",create:this.addSpacer},{selector:".wcPanelTab:hover, .wcPanelTabHover",elem:'
',name:"Border Style",info:"The border style of a tab item",create:this.addListControl(this._borderStyles),attribute:"border-style",value:""},{selector:".wcPanelTab:hover, .wcPanelTabHover",elem:'
',name:"Border Size",info:"The border size of a tab item",create:this.addPixelControl,attribute:"border-width",value:"0px",mobileValue:"0px"},{selector:".wcPanelTab:hover, .wcPanelTabHover",elem:'
',name:"Border Radius",info:"The border radius of a tab item",create:this.addPixelControl,attribute:"border-top-left-radius,border-top-right-radius",value:"0px",mobileValue:"0px"},{selector:".wcPanelTab:hover, .wcPanelTabHover",elem:'
',name:"Border Color",info:"The border color of a tab item",create:this.addColorControl,attribute:"border-color",value:""},{name:"",create:this.addSpacer},{selector:".wcPanelTab:hover, .wcPanelTabHover",elem:'
',name:"Box-Shadow Style",info:"The box shadow style",create:this.addListControl(this._shadowStyle),parser:this._parseBoxShadowStyle,attribute:"box-shadow",value:""},{selector:".wcPanelTab:hover, .wcPanelTabHover",elem:'
',name:"Box-Shadow Left Offset",info:"The box shadow horizontal offset from the left (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(1),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcPanelTab:hover, .wcPanelTabHover",elem:'
',name:"Box-Shadow Top Offset",info:"The box shadow vertical offset from the top (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(2),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcPanelTab:hover, .wcPanelTabHover",elem:'
',name:"Box-Shadow Blur",info:"The box shadow blur",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(3),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcPanelTab:hover, .wcPanelTabHover",elem:'
',name:"Box-Shadow Spread",info:"The box shadow spread",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(4),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcPanelTab:hover, .wcPanelTabHover",elem:'
',name:"Box-Shadow Color",info:"The box shadow color",create:this.addColorControl,parser:this._parseBoxShadowColor,attribute:"box-shadow",append:!0,grouped:!0,value:""}]},{name:"Tab Active State",create:this.addTab,controls:[{name:"Tab Active State",create:this.addSpacer},{selector:".wcPanelTabActive > div",elem:'
',name:"Font Top Offset",info:"The font top offset of a tab item",create:this.addPixelControl,attribute:"margin-top",value:""},{selector:".wcPanelTabActive",elem:'
',name:"Font Size",info:"The font size of a tab item",create:this.addPixelControl,attribute:"font-size",value:""},{selector:".wcPanelTabActive",elem:'
',name:"Font Weight",info:"The font weight of a tab item",create:this.addListControl(this._fontWeights),attribute:"font-weight",value:""},{selector:".wcPanelTabActive",elem:'
',name:"Font Padding",info:"The padding between text and tab border",create:this.addPixelControl,attribute:"padding-left,padding-right",value:""},{selector:".wcPanelTabActive",elem:'
',name:"Font Color",info:"The font color of a tab item",create:this.addColorControl,attribute:"color",value:""},{name:"",create:this.addSpacer},{selector:".wcPanelTabActive",elem:'
',name:"Top Offset",info:"The top offset of a tab item",create:this.addPixelControl,attribute:"margin-top",value:""},{selector:".wcPanelTabActive",elem:'
',name:"Height",info:"The height of a tab item",create:this.addPixelControl,attribute:"height",notValue:"0px",value:""},{selector:".wcPanelTabActive",elem:'
',name:"Spacing",info:"The spacing between tab items",create:this.addPixelControl,attribute:"margin-right",value:""},{selector:".wcPanelTabActive",elem:'
',name:"Color",info:"The color of a tab item",create:this.addColorControl,attribute:"background-color",value:""},{name:"",create:this.addSpacer},{selector:".wcPanelTabActive",elem:'
',name:"Border Style",info:"The border style of a tab item",create:this.addListControl(this._borderStyles),attribute:"border-style",value:""},{selector:".wcPanelTabActive",elem:'
',name:"Border Size",info:"The border size of a tab item",create:this.addPixelControl,attribute:"border-width",value:"0px",mobileValue:"0px"},{selector:".wcPanelTabActive",elem:'
',name:"Border Radius",info:"The border radius of a tab item",create:this.addPixelControl,attribute:"border-top-left-radius,border-top-right-radius",value:"0px",mobileValue:"0px"},{selector:".wcPanelTabActive",elem:'
',name:"Border Color",info:"The border color of a tab item",create:this.addColorControl, -attribute:"border-color",value:""},{name:"",create:this.addSpacer},{selector:".wcPanelTabActive",elem:'
',name:"Box-Shadow Style",info:"The box shadow style",create:this.addListControl(this._shadowStyle),parser:this._parseBoxShadowStyle,attribute:"box-shadow",value:""},{selector:".wcPanelTabActive",elem:'
',name:"Box-Shadow Left Offset",info:"The box shadow horizontal offset from the left (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(1),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcPanelTabActive",elem:'
',name:"Box-Shadow Top Offset",info:"The box shadow vertical offset from the top (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(2),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcPanelTabActive",elem:'
',name:"Box-Shadow Blur",info:"The box shadow blur",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(3),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcPanelTabActive",elem:'
',name:"Box-Shadow Spread",info:"The box shadow spread",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(4),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcPanelTabActive",elem:'
',name:"Box-Shadow Color",info:"The box shadow color",create:this.addColorControl,parser:this._parseBoxShadowColor,attribute:"box-shadow",append:!0,grouped:!0,value:""}]},{name:"Tab Active Hover State",create:this.addTab,controls:[{name:"Tab Active Hover State",create:this.addSpacer},{selector:".wcPanelTabActive:hover > div, .wcPanelTabActiveHover > div",elem:'
',name:"Font Top Offset",info:"The font top offset of a tab item",create:this.addPixelControl,attribute:"margin-top",value:""},{selector:".wcPanelTabActive:hover, .wcPanelTabActiveHover",elem:'
',name:"Font Size",info:"The font size of a tab item",create:this.addPixelControl,attribute:"font-size",value:""},{selector:".wcPanelTabActive:hover, .wcPanelTabActiveHover",elem:'
',name:"Font Weight",info:"The font weight of a tab item",create:this.addListControl(this._fontWeights),attribute:"font-weight",value:""},{selector:".wcPanelTabActive:hover, .wcPanelTabActiveHover",elem:'
',name:"Font Padding",info:"The padding between text and tab border",create:this.addPixelControl,attribute:"padding-left,padding-right",value:""},{selector:".wcPanelTabActive:hover, .wcPanelTabActiveHover",elem:'
',name:"Font Color",info:"The font color of a tab item",create:this.addColorControl,attribute:"color",value:""},{name:"",create:this.addSpacer},{selector:".wcPanelTabActive:hover, .wcPanelTabActiveHover",elem:'
',name:"Top Offset",info:"The top offset of a tab item",create:this.addPixelControl,attribute:"margin-top",value:""},{selector:".wcPanelTabActive:hover, .wcPanelTabActiveHover",elem:'
',name:"Height",info:"The height of a tab item",create:this.addPixelControl,attribute:"height",notValue:"0px",value:""},{selector:".wcPanelTabActive:hover, .wcPanelTabActiveHover",elem:'
',name:"Spacing",info:"The spacing between tab items",create:this.addPixelControl,attribute:"margin-right",value:""},{selector:".wcPanelTabActive:hover, .wcPanelTabActiveHover",elem:'
',name:"Color",info:"The color of a tab item",create:this.addColorControl,attribute:"background-color",value:""},{name:"",create:this.addSpacer},{selector:".wcPanelTabActive:hover, .wcPanelTabActiveHover",elem:'
',name:"Border Style",info:"The border style of a tab item",create:this.addListControl(this._borderStyles),attribute:"border-style",value:""},{selector:".wcPanelTabActive:hover, .wcPanelTabActiveHover",elem:'
',name:"Border Size",info:"The border size of a tab item",create:this.addPixelControl,attribute:"border-width",value:"0px",mobileValue:"0px"},{selector:".wcPanelTabActive:hover, .wcPanelTabActiveHover",elem:'
',name:"Border Radius",info:"The border radius of a tab item",create:this.addPixelControl,attribute:"border-top-left-radius,border-top-right-radius",value:"0px",mobileValue:"0px"},{selector:".wcPanelTabActive:hover, .wcPanelTabActiveHover",elem:'
',name:"Border Color",info:"The border color of a tab item",create:this.addColorControl,attribute:"border-color",value:""},{name:"",create:this.addSpacer},{selector:".wcPanelTabActive:hover, .wcPanelTabActiveHover",elem:'
',name:"Box-Shadow Style",info:"The box shadow style",create:this.addListControl(this._shadowStyle),parser:this._parseBoxShadowStyle,attribute:"box-shadow",value:""},{selector:".wcPanelTabActive:hover, .wcPanelTabActiveHover",elem:'
',name:"Box-Shadow Left Offset",info:"The box shadow horizontal offset from the left (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(1),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcPanelTabActive:hover, .wcPanelTabActiveHover",elem:'
',name:"Box-Shadow Top Offset",info:"The box shadow vertical offset from the top (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(2),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcPanelTabActive:hover, .wcPanelTabActiveHover",elem:'
',name:"Box-Shadow Blur",info:"The box shadow blur",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(3),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcPanelTabActive:hover, .wcPanelTabActiveHover",elem:'
',name:"Box-Shadow Spread",info:"The box shadow spread",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(4),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcPanelTabActive:hover, .wcPanelTabActiveHover",elem:'
',name:"Box-Shadow Color",info:"The box shadow color",create:this.addColorControl,parser:this._parseBoxShadowColor,attribute:"box-shadow",append:!0,grouped:!0,value:""}]}]}]},{name:"Menus",scrollable:!0,create:this.addTab,controls:[{name:"Context Menu",create:this.addSpacer},{selector:".wcMenuList, .context-menu-list",elem:'
    ',name:"Border Style",info:"The border style of the context menu",create:this.addListControl(this._borderStyles),attribute:"border-style",value:""},{selector:".wcMenuList, .context-menu-list",elem:'
      ',name:"Border Size",info:"The border size of the context menu",create:this.addPixelControl,attribute:"border-width",value:"0px",mobileValue:"0px"},{selector:".wcMenuList, .context-menu-list",elem:'
        ',name:"Border Color",info:"The border color of the context menu",create:this.addColorControl,attribute:"border-color",value:""},{name:"",create:this.addSpacer},{name:"Menu Separator Bar",create:this.addSpacer},{selector:".wcMenuSeparator, .context-menu-separator",elem:'
      • ',name:"Color",info:"The background color of the context menu separator bar",create:this.addColorControl,attribute:"background-color",value:"",important:!0},{selector:".wcMenuSeparator, .context-menu-separator",elem:'
      • ',name:"Border Style",info:"The border style of the context menu separator bar",create:this.addListControl(this._borderStyles),attribute:"border-style",value:""},{selector:".wcMenuSeparator, .context-menu-separator",elem:'
      • ',name:"Border Size",info:"The border size of the context menu separator bar",create:this.addPixelControl,attribute:"border-width",value:"0px",mobileValue:"0px"},{selector:".wcMenuSeparator, .context-menu-separator",elem:'
      • ',name:"Border Color",info:"The border color of the context menu separator bar",create:this.addColorControl,attribute:"border-color",value:""},{name:"",create:this.addSpacer},{name:"Menu Items",create:this.addSpacer},{create:this.addTabFrame,controls:[{name:"Menu Normal State",create:this.addTab,controls:[{name:"Menu Normal State",create:this.addSpacer},{selector:".wcMenuList, .wcMenuItem, .context-menu-list, .context-menu-item",elem:'
      • ',name:"Font Family",info:"The font family of the context menu.",create:this.addTextControl,attribute:"font-family",value:""},{selector:".wcMenuList, .wcMenuItem, .context-menu-list, .context-menu-item",elem:'
      • ',name:"Font Weight",info:"The font weight of the context menu.",create:this.addListControl(this._fontWeights),attribute:"font-weight",value:""},{selector:".wcMenuList, .wcMenuItem, .context-menu-list, .context-menu-item",elem:'
      • ',name:"Font Size",info:"The font size of the context menu.",create:this.addPixelControl,attribute:"font-size",value:""},{selector:".wcMenuList, .wcMenuItem, .context-menu-list, .context-menu-item",elem:'
      • ',name:"Font Color",info:"The font color of the context menu.",create:this.addColorControl,attribute:"color",value:""},{name:"",create:this.addSpacer},{selector:".wcMenuList, .wcMenuItem, .context-menu-list, .context-menu-item",elem:'
      • ',name:"Color",info:"The background color of the context menu",create:this.addColorControl,attribute:"background-color",value:""}]},{name:"Menu Hover State",create:this.addTab,controls:[{name:"Menu Hover State",create:this.addSpacer},{selector:".wcMenuItemHover, .wcMenuItem:hover, .context-menu-item.hover",elem:'
      • ',name:"Font Family",info:"The font family of the context menu.",create:this.addTextControl,attribute:"font-family",value:""},{selector:".wcMenuItemHover, .wcMenuItem:hover, .context-menu-item.hover",elem:'
      • ',name:"Font Weight",info:"The font weight of the context menu.",create:this.addListControl(this._fontWeights),attribute:"font-weight",value:""},{selector:".wcMenuItemHover, .wcMenuItem:hover, .context-menu-item.hover",elem:'
      • ',name:"Font Size",info:"The font size of the context menu.",create:this.addPixelControl,attribute:"font-size",value:""},{selector:".wcMenuItemHover, .wcMenuItem:hover, .context-menu-item.hover",elem:'
      • ',name:"Font Color",info:"The font color of the context menu.",create:this.addColorControl,attribute:"color",value:""},{name:"",create:this.addSpacer},{selector:".wcMenuItemHover, .wcMenuItem:hover, .context-menu-item.hover",elem:'
      • ',name:"Color",info:"The background color of the context menu",create:this.addColorControl,attribute:"background-color",value:""}]},{name:"Menu Disabled State",create:this.addTab,controls:[{name:"Menu Disabled State",create:this.addSpacer},{selector:".wcMenuItem.disabled, .context-menu-item.disabled",elem:'
      • ',name:"Font Family",info:"The disabled font family of the context menu.",create:this.addTextControl,attribute:"font-family",value:""},{selector:".wcMenuItem.disabled, .context-menu-item.disabled",elem:'
      • ',name:"Font Weight",info:"The disabled font weight of the context menu.",create:this.addListControl(this._fontWeights),attribute:"font-weight",value:""},{selector:".wcMenuItem.disabled, .context-menu-item.disabled",elem:'
      • ',name:"Font Size",info:"The disabled font size of the context menu.",create:this.addPixelControl,attribute:"font-size",value:""},{selector:".wcMenuItem.disabled, .context-menu-item.disabled",elem:'
      • ',name:"Font Color",info:"The disabled font color of the context menu.",create:this.addColorControl,attribute:"color",value:""},{name:"",create:this.addSpacer},{selector:".wcMenuItem.disabled, .context-menu-item.disabled",elem:'
      • ',name:"Color",info:"The disabled background color of the context menu",create:this.addColorControl,attribute:"background-color",value:""}]}]}]},{name:"Scrollbar",scrollable:!0,create:this.addTab,controls:[{name:"Scrollbar (Chrome Only)",create:this.addSpacer},{selector:".wcScrollbar, ::-webkit-scrollbar",elem:'
        ',name:"Size",info:"The thickness of the scrollbar",create:this.addPixelControl,attribute:"width,height",notValue:"0px",value:""},{selector:".wcScrollbar, ::-webkit-scrollbar, .wcScrollbarCorner, ::-webkit-scrollbar-corner",elem:'
        ',name:"Color",info:"The color of the scrollbar",create:this.addColorControl,attribute:"background-color",value:""},{name:"",create:this.addSpacer},{selector:".wcScrollbarTrack, ::-webkit-scrollbar-track",elem:'
        ',name:"Border Style",info:"The border style of the scrollbar track",create:this.addListControl(this._borderStyles),attribute:"border-style",value:""},{selector:".wcScrollbarTrack, ::-webkit-scrollbar-track",elem:'
        ',name:"Border Size",info:"The border size of the scrollbar track",create:this.addPixelControl,attribute:"border-width",value:"0px",mobileValue:"0px"},{selector:".wcScrollbarTrack, ::-webkit-scrollbar-track",elem:'
        ',name:"Border Radius",info:"The border radius of the scrollbar track",create:this.addPixelControl,attribute:"border-radius",value:"0px",mobileValue:"0px"},{selector:".wcScrollbarTrack, ::-webkit-scrollbar-track",elem:'
        ',name:"Border Color",info:"The border color of the scrollbar track",create:this.addColorControl,attribute:"border-color",value:""},{name:"",create:this.addSpacer},{selector:".wcScrollbarTrack, ::-webkit-scrollbar-track",elem:'
        ',name:"Box-Shadow Style",info:"The box shadow style",create:this.addListControl(this._shadowStyle),parser:this._parseBoxShadowStyle,attribute:"box-shadow",value:""},{selector:".wcScrollbarTrack, ::-webkit-scrollbar-track",elem:'
        ',name:"Box-Shadow Left Offset",info:"The box shadow horizontal offset from the left (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(1),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcScrollbarTrack, ::-webkit-scrollbar-track",elem:'
        ',name:"Box-Shadow Top Offset",info:"The box shadow vertical offset from the top (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(2),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcScrollbarTrack, ::-webkit-scrollbar-track",elem:'
        ',name:"Box-Shadow Blur",info:"The box shadow blur",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(3),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcScrollbarTrack, ::-webkit-scrollbar-track",elem:'
        ',name:"Box-Shadow Spread",info:"The box shadow spread",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(4),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcScrollbarTrack, ::-webkit-scrollbar-track",elem:'
        ',name:"Box-Shadow Color",info:"The box shadow color",create:this.addColorControl,parser:this._parseBoxShadowColor,attribute:"box-shadow",append:!0,grouped:!0,value:""},{name:"",create:this.addSpacer},{name:"Scrollbar Thumb Control (Chrome Only)",create:this.addSpacer},{create:this.addTabFrame,controls:[{name:"Thumb Normal State",create:this.addTab,controls:[{name:"Thumb Normal State",create:this.addSpacer},{selector:".wcScrollbarThumb, ::-webkit-scrollbar-thumb",elem:'
        ',name:"Color",info:"The background color of the scrollbar thumb control",create:this.addColorControl,attribute:"background-color",value:""},{name:"",create:this.addSpacer},{selector:".wcScrollbarThumb, ::-webkit-scrollbar-thumb",elem:'
        ',name:"Border Style",info:"The border style of the scrollbar thumb control",create:this.addListControl(this._borderStyles),attribute:"border-style",value:""},{selector:".wcScrollbarThumb, ::-webkit-scrollbar-thumb",elem:'
        ',name:"Border Size",info:"The border size of the scrollbar thumb control",create:this.addPixelControl,attribute:"border-width",value:"0px",mobileValue:"0px"},{selector:".wcScrollbarThumb, ::-webkit-scrollbar-thumb",elem:'
        ',name:"Border Radius",info:"The border radius of the scrollbar thumb control",create:this.addPixelControl,attribute:"border-radius",value:"0px",mobileValue:"0px"},{selector:".wcScrollbarThumb, ::-webkit-scrollbar-thumb",elem:'
        ',name:"Border Color",info:"The border color of the scrollbar thumb control",create:this.addColorControl,attribute:"border-color",value:""},{name:"",create:this.addSpacer},{selector:".wcScrollbarThumb, ::-webkit-scrollbar-thumb",elem:'
        ',name:"Box-Shadow Style",info:"The box shadow style",create:this.addListControl(this._shadowStyle),parser:this._parseBoxShadowStyle,attribute:"box-shadow",value:""},{selector:".wcScrollbarThumb, ::-webkit-scrollbar-thumb",elem:'
        ',name:"Box-Shadow Left Offset",info:"The box shadow horizontal offset from the left (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(1),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcScrollbarThumb, ::-webkit-scrollbar-thumb",elem:'
        ',name:"Box-Shadow Top Offset",info:"The box shadow vertical offset from the top (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(2),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcScrollbarThumb, ::-webkit-scrollbar-thumb",elem:'
        ',name:"Box-Shadow Blur",info:"The box shadow blur",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(3),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcScrollbarThumb, ::-webkit-scrollbar-thumb",elem:'
        ',name:"Box-Shadow Spread",info:"The box shadow spread",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(4),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcScrollbarThumb, ::-webkit-scrollbar-thumb",elem:'
        ',name:"Box-Shadow Color",info:"The box shadow color",create:this.addColorControl,parser:this._parseBoxShadowColor,attribute:"box-shadow",append:!0,grouped:!0,value:""}]},{name:"Thumb Hover State",create:this.addTab,controls:[{name:"Thumb Hover State",create:this.addSpacer},{selector:".wcScrollbarThumb, ::-webkit-scrollbar-thumb",elem:'
        ',name:"Color",info:"The background color of the scrollbar thumb control",create:this.addColorControl,attribute:"background-color",value:""},{name:"",create:this.addSpacer},{selector:".wcScrollbarThumbHover, .wcScrollBarThumb:hover, ::-webkit-scrollbar-thumb:hover",elem:'
        ',name:"Border Style",info:"The border style of the scrollbar thumb control",create:this.addListControl(this._borderStyles),attribute:"border-style",value:""},{selector:".wcScrollbarThumbHover, .wcScrollBarThumb:hover, ::-webkit-scrollbar-thumb:hover",elem:'
        ',name:"Border Size",info:"The border size of the scrollbar thumb control",create:this.addPixelControl,attribute:"border-width",value:"0px",mobileValue:"0px"},{selector:".wcScrollbarThumbHover, .wcScrollBarThumb:hover, ::-webkit-scrollbar-thumb:hover",elem:'
        ',name:"Border Radius",info:"The border radius of the scrollbar thumb control",create:this.addPixelControl,attribute:"border-radius",value:"0px",mobileValue:"0px"},{selector:".wcScrollbarThumbHover, .wcScrollBarThumb:hover, ::-webkit-scrollbar-thumb:hover",elem:'
        ',name:"Border Color",info:"The border color of the scrollbar thumb control",create:this.addColorControl,attribute:"border-color",value:""},{name:"",create:this.addSpacer},{selector:".wcScrollbarThumbHover, .wcScrollBarThumb:hover, ::-webkit-scrollbar-thumb:hover",elem:'
        ',name:"Box-Shadow Style",info:"The box shadow style",create:this.addListControl(this._shadowStyle),parser:this._parseBoxShadowStyle,attribute:"box-shadow",value:""},{selector:".wcScrollbarThumbHover, .wcScrollBarThumb:hover, ::-webkit-scrollbar-thumb:hover",elem:'
        ',name:"Box-Shadow Left Offset",info:"The box shadow horizontal offset from the left (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(1),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcScrollbarThumbHover, .wcScrollBarThumb:hover, ::-webkit-scrollbar-thumb:hover",elem:'
        ',name:"Box-Shadow Top Offset",info:"The box shadow vertical offset from the top (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(2),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcScrollbarThumbHover, .wcScrollBarThumb:hover, ::-webkit-scrollbar-thumb:hover",elem:'
        ',name:"Box-Shadow Blur",info:"The box shadow blur",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(3),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcScrollbarThumbHover, .wcScrollBarThumb:hover, ::-webkit-scrollbar-thumb:hover",elem:'
        ',name:"Box-Shadow Spread",info:"The box shadow spread",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(4),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcScrollbarThumbHover, .wcScrollBarThumb:hover, ::-webkit-scrollbar-thumb:hover",elem:'
        ',name:"Box-Shadow Color",info:"The box shadow color",create:this.addColorControl,parser:this._parseBoxShadowColor,attribute:"box-shadow",append:!0,grouped:!0,value:""}]},{name:"Thumb Active State",create:this.addTab,controls:[{name:"Thumb Active State",create:this.addSpacer},{selector:".wcScrollbarThumb, ::-webkit-scrollbar-thumb",elem:'
        ',name:"Color",info:"The background color of the scrollbar thumb control",create:this.addColorControl,attribute:"background-color",value:""},{name:"",create:this.addSpacer},{selector:".wcScrollbarThumbActive, .wcScrollBarThumb:active, ::-webkit-scrollbar-thumb:active",elem:'
        ',name:"Border Style",info:"The border style of the scrollbar thumb control",create:this.addListControl(this._borderStyles),attribute:"border-style",value:""},{selector:".wcScrollbarThumbActive, .wcScrollBarThumb:active, ::-webkit-scrollbar-thumb:active",elem:'
        ',name:"Border Size",info:"The border size of the scrollbar thumb control",create:this.addPixelControl,attribute:"border-width",value:"0px",mobileValue:"0px"},{selector:".wcScrollbarThumbActive, .wcScrollBarThumb:active, ::-webkit-scrollbar-thumb:active",elem:'
        ',name:"Border Radius",info:"The border radius of the scrollbar thumb control",create:this.addPixelControl,attribute:"border-radius",value:"0px",mobileValue:"0px"},{selector:".wcScrollbarThumbActive, .wcScrollBarThumb:active, ::-webkit-scrollbar-thumb:active",elem:'
        ',name:"Border Color",info:"The border color of the scrollbar thumb control",create:this.addColorControl,attribute:"border-color",value:""},{name:"",create:this.addSpacer},{selector:".wcScrollbarThumbActive, .wcScrollBarThumb:active, ::-webkit-scrollbar-thumb:active",elem:'
        ',name:"Box-Shadow Style",info:"The box shadow style",create:this.addListControl(this._shadowStyle),parser:this._parseBoxShadowStyle,attribute:"box-shadow",value:""},{selector:".wcScrollbarThumbActive, .wcScrollBarThumb:active, ::-webkit-scrollbar-thumb:active",elem:'
        ',name:"Box-Shadow Left Offset",info:"The box shadow horizontal offset from the left (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(1),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcScrollbarThumbActive, .wcScrollBarThumb:active, ::-webkit-scrollbar-thumb:active",elem:'
        ',name:"Box-Shadow Top Offset",info:"The box shadow vertical offset from the top (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(2),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcScrollbarThumbActive, .wcScrollBarThumb:active, ::-webkit-scrollbar-thumb:active",elem:'
        ',name:"Box-Shadow Blur",info:"The box shadow blur",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(3),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcScrollbarThumbActive, .wcScrollBarThumb:active, ::-webkit-scrollbar-thumb:active",elem:'
        ',name:"Box-Shadow Spread",info:"The box shadow spread",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(4),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcScrollbarThumbActive, .wcScrollBarThumb:active, ::-webkit-scrollbar-thumb:active",elem:'
        ',name:"Box-Shadow Color",info:"The box shadow color",create:this.addColorControl,parser:this._parseBoxShadowColor,attribute:"box-shadow",append:!0,grouped:!0,value:""}]}]}]},{name:"Controls",scrollable:!0,create:this.addTab,controls:[{create:this.addTabFrame,controls:[{name:"Inputs",create:this.addTab,controls:[{name:"Input Controls",create:this.addSpacer},{selector:".wcInput, input",elem:'',name:"Font Family",info:"The font family of the control",create:this.addTextControl,attribute:"font-family",value:""},{selector:".wcInput, input",elem:'',name:"Font Weight",info:"The font weight of the control",create:this.addListControl(this._fontWeights),attribute:"font-weight",value:""},{selector:".wcInput, input",elem:'',name:"Font Size",info:"The font size of the control",create:this.addPixelControl,attribute:"font-size",value:""},{selector:".wcInput, input",elem:'',name:"Font Color",info:"The font color of the control",create:this.addColorControl,attribute:"color",value:""},{name:"",create:this.addSpacer},{selector:".wcInput, input",elem:'',name:"Color",info:"The color of the control",create:this.addColorControl,attribute:"background-color",value:""},{name:"",create:this.addSpacer},{selector:".wcInput, input",elem:'',name:"Border Style",info:"The border style of the control",create:this.addListControl(this._borderStyles),attribute:"border-style",value:""},{selector:".wcInput, input",elem:'',name:"Border Size",info:"The border size of the control",create:this.addPixelControl,attribute:"border-width",value:"0px",mobileValue:"0px"},{selector:".wcInput, input",elem:'',name:"Border Radius",info:"The border radius of the control",create:this.addPixelControl,attribute:"border-radius",value:"0px",mobileValue:"0px"},{selector:".wcInput, input",elem:'',name:"Border Color",info:"The border color of the control",create:this.addColorControl,attribute:"border-color",value:""},{name:"",create:this.addSpacer},{selector:".wcInput, input",elem:'',name:"Box-Shadow Style",info:"The box shadow style",create:this.addListControl(this._shadowStyle),parser:this._parseBoxShadowStyle,attribute:"box-shadow",value:""},{selector:".wcInput, input",elem:'',name:"Box-Shadow Left Offset",info:"The box shadow horizontal offset from the left (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(1),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcInput, input",elem:'',name:"Box-Shadow Top Offset",info:"The box shadow vertical offset from the top (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(2),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcInput, input",elem:'',name:"Box-Shadow Blur",info:"The box shadow blur",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(3),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcInput, input",elem:'',name:"Box-Shadow Spread",info:"The box shadow spread",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(4),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcInput, input",elem:'',name:"Box-Shadow Color",info:"The box shadow color",create:this.addColorControl,parser:this._parseBoxShadowColor,attribute:"box-shadow",append:!0,grouped:!0,value:""}]},{name:"Combo Boxes",create:this.addTab,controls:[{ -name:"Combo Box Controls",create:this.addSpacer},{selector:".wcSelect, select",elem:'',name:"Font Family",info:"The font family of the control",create:this.addTextControl,attribute:"font-family",value:""},{selector:".wcSelect, select",elem:'',name:"Font Weight",info:"The font weight of the control",create:this.addListControl(this._fontWeights),attribute:"font-weight",value:""},{selector:".wcSelect, select",elem:'',name:"Font Size",info:"The font size of the control",create:this.addPixelControl,attribute:"font-size",value:""},{selector:".wcSelect, select",elem:'',name:"Font Color",info:"The font color of the control",create:this.addColorControl,attribute:"color",value:""},{name:"",create:this.addSpacer},{selector:".wcSelect, select",elem:'',name:"Color",info:"The color of the control",create:this.addColorControl,attribute:"background-color",value:""},{name:"",create:this.addSpacer},{selector:".wcSelect, select",elem:'',name:"Border Style",info:"The border style of the control",create:this.addListControl(this._borderStyles),attribute:"border-style",value:""},{selector:".wcSelect, select",elem:'',name:"Border Size",info:"The border size of the control",create:this.addPixelControl,attribute:"border-width",value:"0px",mobileValue:"0px"},{selector:".wcSelect, select",elem:'',name:"Border Radius",info:"The border radius of the control",create:this.addPixelControl,attribute:"border-radius",value:"0px",mobileValue:"0px"},{selector:".wcSelect, select",elem:'',name:"Border Color",info:"The border color of the control",create:this.addColorControl,attribute:"border-color",value:""},{name:"",create:this.addSpacer},{selector:".wcSelect, select",elem:'',name:"Box-Shadow Style",info:"The box shadow style",create:this.addListControl(this._shadowStyle),parser:this._parseBoxShadowStyle,attribute:"box-shadow",value:""},{selector:".wcSelect, select",elem:'',name:"Box-Shadow Left Offset",info:"The box shadow horizontal offset from the left (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(1),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcSelect, select",elem:'',name:"Box-Shadow Top Offset",info:"The box shadow vertical offset from the top (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(2),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcSelect, select",elem:'',name:"Box-Shadow Blur",info:"The box shadow blur",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(3),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcSelect, select",elem:'',name:"Box-Shadow Spread",info:"The box shadow spread",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(4),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcSelect, select",elem:'',name:"Box-Shadow Color",info:"The box shadow color",create:this.addColorControl,parser:this._parseBoxShadowColor,attribute:"box-shadow",append:!0,grouped:!0,value:""}]},{name:"Buttons",create:this.addTab,controls:[{name:"Button Controls",create:this.addSpacer},{create:this.addTabFrame,controls:[{name:"Button Normal State",create:this.addTab,controls:[{name:"Button Normal State",create:this.addSpacer},{selector:".wcButton:focus, button:focus",attribute:"outline",value:"0"},{selector:".wcButton, button",elem:'',name:"Font Family",info:"The font family of the control",create:this.addTextControl,attribute:"font-family",value:""},{selector:".wcButton, button",elem:'',name:"Font Weight",info:"The font weight of the control",create:this.addListControl(this._fontWeights),attribute:"font-weight",value:""},{selector:".wcButton, button",elem:'',name:"Font Size",info:"The font size of the control",create:this.addPixelControl,attribute:"font-size",value:""},{selector:".wcButton, button",elem:'',name:"Font Color",info:"The font color of the control",create:this.addColorControl,attribute:"color",value:""},{name:"",create:this.addSpacer},{selector:".wcButton, button",elem:'',name:"Color",info:"The color of the control",create:this.addColorControl,attribute:"background-color",value:""},{name:"",create:this.addSpacer},{selector:".wcButton, button",elem:'',name:"Border Style",info:"The border style of the control",create:this.addListControl(this._borderStyles),attribute:"border-style",value:""},{selector:".wcButton, button",elem:'',name:"Border Size",info:"The border size of the control",create:this.addPixelControl,attribute:"border-width",value:"0px",mobileValue:"0px"},{selector:".wcButton, button",elem:'',name:"Border Radius",info:"The border radius of the control",create:this.addPixelControl,attribute:"border-radius",value:"0px",mobileValue:"0px"},{selector:".wcButton, button",elem:'',name:"Border Color",info:"The border color of the control",create:this.addColorControl,attribute:"border-color",value:""},{name:"",create:this.addSpacer},{selector:".wcButton, button",elem:'',name:"Box-Shadow Style",info:"The box shadow style",create:this.addListControl(this._shadowStyle),parser:this._parseBoxShadowStyle,attribute:"box-shadow",value:""},{selector:".wcButton, button",elem:'',name:"Box-Shadow Left Offset",info:"The box shadow horizontal offset from the left (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(1),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcButton, button",elem:'',name:"Box-Shadow Top Offset",info:"The box shadow vertical offset from the top (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(2),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcButton, button",elem:'',name:"Box-Shadow Blur",info:"The box shadow blur",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(3),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcButton, button",elem:'',name:"Box-Shadow Spread",info:"The box shadow spread",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(4),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcButton, button",elem:'',name:"Box-Shadow Color",info:"The box shadow color",create:this.addColorControl,parser:this._parseBoxShadowColor,attribute:"box-shadow",append:!0,grouped:!0,value:""}]},{name:"Button Hover State",create:this.addTab,controls:[{name:"Button Hover State",create:this.addSpacer},{selector:".wcButtonHover, .wcButton:hover, button:hover",elem:'',name:"Font Family",info:"The font family of the control",create:this.addTextControl,attribute:"font-family",value:""},{selector:".wcButtonHover, .wcButton:hover, button:hover",elem:'',name:"Font Weight",info:"The font weight of the control",create:this.addListControl(this._fontWeights),attribute:"font-weight",value:""},{selector:".wcButtonHover, .wcButton:hover, button:hover",elem:'',name:"Font Size",info:"The font size of the control",create:this.addPixelControl,attribute:"font-size",value:""},{selector:".wcButtonHover, .wcButton:hover, button:hover",elem:'',name:"Font Color",info:"The font color of the control",create:this.addColorControl,attribute:"color",value:""},{name:"",create:this.addSpacer},{selector:".wcButtonHover, .wcButton:hover, button:hover",elem:'',name:"Color",info:"The color of the control",create:this.addColorControl,attribute:"background-color",value:""},{name:"",create:this.addSpacer},{selector:".wcButtonHover, .wcButton:hover, button:hover",elem:'',name:"Border Style",info:"The border style of the control",create:this.addListControl(this._borderStyles),attribute:"border-style",value:""},{selector:".wcButtonHover, .wcButton:hover, button:hover",elem:'',name:"Border Size",info:"The border size of the control",create:this.addPixelControl,attribute:"border-width",value:"0px",mobileValue:"0px"},{selector:".wcButtonHover, .wcButton:hover, button:hover",elem:'',name:"Border Radius",info:"The border radius of the control",create:this.addPixelControl,attribute:"border-radius",value:"0px",mobileValue:"0px"},{selector:".wcButtonHover, .wcButton:hover, button:hover",elem:'',name:"Border Color",info:"The border color of the control",create:this.addColorControl,attribute:"border-color",value:""},{name:"",create:this.addSpacer},{selector:".wcButtonHover, .wcButton:hover, button:hover",elem:'',name:"Box-Shadow Style",info:"The box shadow style",create:this.addListControl(this._shadowStyle),parser:this._parseBoxShadowStyle,attribute:"box-shadow",value:""},{selector:".wcButtonHover, .wcButton:hover, button:hover",elem:'',name:"Box-Shadow Left Offset",info:"The box shadow horizontal offset from the left (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(1),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcButtonHover, .wcButton:hover, button:hover",elem:'',name:"Box-Shadow Top Offset",info:"The box shadow vertical offset from the top (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(2),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcButtonHover, .wcButton:hover, button:hover",elem:'',name:"Box-Shadow Blur",info:"The box shadow blur",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(3),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcButtonHover, .wcButton:hover, button:hover",elem:'',name:"Box-Shadow Spread",info:"The box shadow spread",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(4),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcButtonHover, .wcButton:hover, button:hover",elem:'',name:"Box-Shadow Color",info:"The box shadow color",create:this.addColorControl,parser:this._parseBoxShadowColor,attribute:"box-shadow",append:!0,grouped:!0,value:""}]},{name:"Button Active State",create:this.addTab,controls:[{name:"Button Active State",create:this.addSpacer},{selector:".wcButtonActive, .wcButton:active, button:active",elem:'',name:"Font Family",info:"The font family of the control",create:this.addTextControl,attribute:"font-family",value:""},{selector:".wcButtonActive, .wcButton:active, button:active",elem:'',name:"Font Weight",info:"The font weight of the control",create:this.addListControl(this._fontWeights),attribute:"font-weight",value:""},{selector:".wcButtonActive, .wcButton:active, button:active",elem:'',name:"Font Size",info:"The font size of the control",create:this.addPixelControl,attribute:"font-size",value:""},{selector:".wcButtonActive, .wcButton:active, button:active",elem:'',name:"Font Color",info:"The font color of the control",create:this.addColorControl,attribute:"color",value:""},{name:"",create:this.addSpacer},{selector:".wcButtonActive, .wcButton:active, button:active",elem:'',name:"Color",info:"The color of the control",create:this.addColorControl,attribute:"background-color",value:""},{name:"",create:this.addSpacer},{selector:".wcButtonActive, .wcButton:active, button:active",elem:'',name:"Border Style",info:"The border style of the control",create:this.addListControl(this._borderStyles),attribute:"border-style",value:""},{selector:".wcButtonActive, .wcButton:active, button:active",elem:'',name:"Border Size",info:"The border size of the control",create:this.addPixelControl,attribute:"border-width",value:"0px",mobileValue:"0px"},{selector:".wcButtonActive, .wcButton:active, button:active",elem:'',name:"Border Radius",info:"The border radius of the control",create:this.addPixelControl,attribute:"border-radius",value:"0px",mobileValue:"0px"},{selector:".wcButtonActive, .wcButton:active, button:active",elem:'',name:"Border Color",info:"The border color of the control",create:this.addColorControl,attribute:"border-color",value:""},{name:"",create:this.addSpacer},{selector:".wcButtonActive, .wcButton:active, button:active",elem:'',name:"Box-Shadow Style",info:"The box shadow style",create:this.addListControl(this._shadowStyle),parser:this._parseBoxShadowStyle,attribute:"box-shadow",value:""},{selector:".wcButtonActive, .wcButton:active, button:active",elem:'',name:"Box-Shadow Left Offset",info:"The box shadow horizontal offset from the left (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(1),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcButtonActive, .wcButton:active, button:active",elem:'',name:"Box-Shadow Top Offset",info:"The box shadow vertical offset from the top (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(2),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcButtonActive, .wcButton:active, button:active",elem:'',name:"Box-Shadow Blur",info:"The box shadow blur",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(3),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcButtonActive, .wcButton:active, button:active",elem:'',name:"Box-Shadow Spread",info:"The box shadow spread",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(4),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcButtonActive, .wcButton:active, button:active",elem:'',name:"Box-Shadow Color",info:"The box shadow color",create:this.addColorControl,parser:this._parseBoxShadowColor,attribute:"box-shadow",append:!0,grouped:!0,value:""}]},{name:"Button Active Hover State",create:this.addTab,controls:[{name:"Button Active Hover State",create:this.addSpacer},{selector:".wcButtonActive.wcButtonHover, .wcButton:hover.wcButtonActive, .wcButton:active.wcButtonHover, .wcButton:active:hover, button:active:hover",elem:'',name:"Font Family",info:"The font family of the control",create:this.addTextControl,attribute:"font-family",value:""},{selector:".wcButtonActive.wcButtonHover, .wcButton:hover.wcButtonActive, .wcButton:active.wcButtonHover, .wcButton:active:hover, button:active:hover",elem:'',name:"Font Weight",info:"The font weight of the control",create:this.addListControl(this._fontWeights),attribute:"font-weight",value:""},{selector:".wcButtonActive.wcButtonHover, .wcButton:hover.wcButtonActive, .wcButton:active.wcButtonHover, .wcButton:active:hover, button:active:hover",elem:'',name:"Font Size",info:"The font size of the control",create:this.addPixelControl,attribute:"font-size",value:""},{selector:".wcButtonActive.wcButtonHover, .wcButton:hover.wcButtonActive, .wcButton:active.wcButtonHover, .wcButton:active:hover, button:active:hover",elem:'',name:"Font Color",info:"The font color of the control",create:this.addColorControl,attribute:"color",value:""},{name:"",create:this.addSpacer},{selector:".wcButtonActive.wcButtonHover, .wcButton:hover.wcButtonActive, .wcButton:active.wcButtonHover, .wcButton:active:hover, button:active:hover",elem:'',name:"Color",info:"The color of the control",create:this.addColorControl,attribute:"background-color",value:""},{name:"",create:this.addSpacer},{selector:".wcButtonActive.wcButtonHover, .wcButton:hover.wcButtonActive, .wcButton:active.wcButtonHover, .wcButton:active:hover, button:active:hover",elem:'',name:"Border Style",info:"The border style of the control",create:this.addListControl(this._borderStyles),attribute:"border-style",value:""},{selector:".wcButtonActive.wcButtonHover, .wcButton:hover.wcButtonActive, .wcButton:active.wcButtonHover, .wcButton:active:hover, button:active:hover",elem:'',name:"Border Size",info:"The border size of the control",create:this.addPixelControl,attribute:"border-width",value:"0px",mobileValue:"0px"},{selector:".wcButtonActive.wcButtonHover, .wcButton:hover.wcButtonActive, .wcButton:active.wcButtonHover, .wcButton:active:hover, button:active:hover",elem:'',name:"Border Radius",info:"The border radius of the control",create:this.addPixelControl,attribute:"border-radius",value:"0px",mobileValue:"0px"},{selector:".wcButtonActive.wcButtonHover, .wcButton:hover.wcButtonActive, .wcButton:active.wcButtonHover, .wcButton:active:hover, button:active:hover",elem:'',name:"Border Color",info:"The border color of the control",create:this.addColorControl,attribute:"border-color",value:""},{name:"",create:this.addSpacer},{selector:".wcButtonActive.wcButtonHover, .wcButton:hover.wcButtonActive, .wcButton:active.wcButtonHover, .wcButton:active:hover, button:active:hover",elem:'',name:"Box-Shadow Style",info:"The box shadow style",create:this.addListControl(this._shadowStyle),parser:this._parseBoxShadowStyle,attribute:"box-shadow",value:""},{selector:".wcButtonActive.wcButtonHover, .wcButton:hover.wcButtonActive, .wcButton:active.wcButtonHover, .wcButton:active:hover, button:active:hover",elem:'',name:"Box-Shadow Left Offset",info:"The box shadow horizontal offset from the left (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(1),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcButtonActive.wcButtonHover, .wcButton:hover.wcButtonActive, .wcButton:active.wcButtonHover, .wcButton:active:hover, button:active:hover",elem:'',name:"Box-Shadow Top Offset",info:"The box shadow vertical offset from the top (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(2),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcButtonActive.wcButtonHover, .wcButton:hover.wcButtonActive, .wcButton:active.wcButtonHover, .wcButton:active:hover, button:active:hover",elem:'',name:"Box-Shadow Blur",info:"The box shadow blur",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(3),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcButtonActive.wcButtonHover, .wcButton:hover.wcButtonActive, .wcButton:active.wcButtonHover, .wcButton:active:hover, button:active:hover",elem:'',name:"Box-Shadow Spread",info:"The box shadow spread",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(4),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcButtonActive.wcButtonHover, .wcButton:hover.wcButtonActive, .wcButton:active.wcButtonHover, .wcButton:active:hover, button:active:hover",elem:'',name:"Box-Shadow Color",info:"The box shadow color",create:this.addColorControl,parser:this._parseBoxShadowColor,attribute:"box-shadow",append:!0,grouped:!0,value:""}]},{name:"Button Disabled State",create:this.addTab,controls:[{name:"Button Disabled State",create:this.addSpacer},{selector:".wcButtonDisabled, .wcButton.disabled, button.disabled, button:disabled",elem:'',name:"Font Family",info:"The font family of the control",create:this.addTextControl,attribute:"font-family",value:""},{selector:".wcButtonDisabled, .wcButton.disabled, button.disabled, button:disabled",elem:'',name:"Font Weight",info:"The font weight of the control",create:this.addListControl(this._fontWeights),attribute:"font-weight",value:""},{selector:".wcButtonDisabled, .wcButton.disabled, button.disabled, button:disabled",elem:'',name:"Font Size",info:"The font size of the control",create:this.addPixelControl,attribute:"font-size",value:""},{selector:".wcButtonDisabled, .wcButton.disabled, button.disabled, button:disabled",elem:'',name:"Font Color",info:"The font color of the control",create:this.addColorControl,attribute:"color",value:""},{name:"",create:this.addSpacer},{selector:".wcButtonDisabled, .wcButton.disabled, button.disabled, button:disabled",elem:'',name:"Color",info:"The color of the control",create:this.addColorControl,attribute:"background-color",value:""},{name:"",create:this.addSpacer},{selector:".wcButtonDisabled, .wcButton.disabled, button.disabled, button:disabled",elem:'',name:"Border Style",info:"The border style of the control",create:this.addListControl(this._borderStyles),attribute:"border-style",value:""},{selector:".wcButtonDisabled, .wcButton.disabled, button.disabled, button:disabled",elem:'',name:"Border Size",info:"The border size of the control",create:this.addPixelControl,attribute:"border-width",value:"0px",mobileValue:"0px"},{selector:".wcButtonDisabled, .wcButton.disabled, button.disabled, button:disabled",elem:'',name:"Border Radius",info:"The border radius of the control",create:this.addPixelControl,attribute:"border-radius",value:"0px",mobileValue:"0px"},{selector:".wcButtonDisabled, .wcButton.disabled, button.disabled, button:disabled",elem:'',name:"Border Color",info:"The border color of the control",create:this.addColorControl,attribute:"border-color",value:""},{name:"",create:this.addSpacer},{selector:".wcButtonDisabled, .wcButton.disabled, button.disabled, button:disabled",elem:'',name:"Box-Shadow Style",info:"The box shadow style",create:this.addListControl(this._shadowStyle),parser:this._parseBoxShadowStyle,attribute:"box-shadow",value:""},{selector:".wcButtonDisabled, .wcButton.disabled, button.disabled, button:disabled",elem:'',name:"Box-Shadow Left Offset",info:"The box shadow horizontal offset from the left (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(1),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcButtonDisabled, .wcButton.disabled, button.disabled, button:disabled",elem:'',name:"Box-Shadow Top Offset",info:"The box shadow vertical offset from the top (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(2),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcButtonDisabled, .wcButton.disabled, button.disabled, button:disabled",elem:'',name:"Box-Shadow Blur",info:"The box shadow blur",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(3),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcButtonDisabled, .wcButton.disabled, button.disabled, button:disabled",elem:'',name:"Box-Shadow Spread",info:"The box shadow spread",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(4),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcButtonDisabled, .wcButton.disabled, button.disabled, button:disabled",elem:'',name:"Box-Shadow Color",info:"The box shadow color",create:this.addColorControl,parser:this._parseBoxShadowColor,attribute:"box-shadow",append:!0,grouped:!0,value:""}]}]}]}]}]}]}]}});return o}),e.config({baseUrl:"./bower_components",shim:{lodash:{exports:"_"}},packages:[{name:"dcl",location:"./dcl"},{name:"wcDocker",location:"../Code"},{name:"lodash",location:"./lodash-compat"}]}),e.config({config:{}}),e(["wcDocker/docker","wcDocker/splitter","wcDocker/tabframe","wcDocker/iframe","wcDocker/ThemeBuilder"],function(t,e,a,r,o){window.wcDocker=t,window.wcSplitter=e,window.wcTabFrame=a,window.wcIFrame=r,window.wcThemeBuilder=o,console.log("exported wcDocker")},void 0,!0),a("wcDockerLibrary",function(){})}(); \ No newline at end of file +!function(){var t,e,i;!function(n){function r(t,e){return $.call(t,e)}function s(t,e){var i,n,r,s,a,o,h,l,c,_,u,f=e&&e.split("/"),p=m.map,d=p&&p["*"]||{};if(t&&"."===t.charAt(0))if(e){for(t=t.split("/"),a=t.length-1,m.nodeIdCompat&&y.test(t[a])&&(t[a]=t[a].replace(y,"")),t=f.slice(0,f.length-1).concat(t),c=0;c0&&(t.splice(c-1,2),c-=2)}t=t.join("/")}else 0===t.indexOf("./")&&(t=t.substring(2));if((f||d)&&p){for(i=t.split("/"),c=i.length;c>0;c-=1){if(n=i.slice(0,c).join("/"),f)for(_=f.length;_>0;_-=1)if(r=p[f.slice(0,_).join("/")],r&&(r=r[n])){s=r,o=c;break}if(s)break;!h&&d&&d[n]&&(h=d[n],l=c)}!s&&h&&(s=h,o=l),s&&(i.splice(0,o,s),t=i.join("/"))}return t}function a(t,e){return function(){var i=w.call(arguments,0);return"string"!=typeof i[0]&&1===i.length&&i.push(null),f.apply(n,i.concat([t,e]))}}function o(t){return function(e){return s(e,t)}}function h(t){return function(e){g[t]=e}}function l(t){if(r(v,t)){var e=v[t];delete v[t],b[t]=!0,u.apply(n,e)}if(!r(g,t)&&!r(b,t))throw new Error("No "+t);return g[t]}function c(t){var e,i=t?t.indexOf("!"):-1;return i>-1&&(e=t.substring(0,i),t=t.substring(i+1,t.length)),[e,t]}function _(t){return function(){return m&&m.config&&m.config[t]||{}}}var u,f,p,d,g={},v={},m={},b={},$=Object.prototype.hasOwnProperty,w=[].slice,y=/\.js$/;p=function(t,e){var i,n=c(t),r=n[0];return t=n[1],r&&(r=s(r,e),i=l(r)),r?t=i&&i.normalize?i.normalize(t,o(e)):s(t,e):(t=s(t,e),n=c(t),r=n[0],t=n[1],r&&(i=l(r))),{f:r?r+"!"+t:t,n:t,pr:r,p:i}},d={require:function(t){return a(t)},exports:function(t){var e=g[t];return"undefined"!=typeof e?e:g[t]={}},module:function(t){return{id:t,uri:"",exports:g[t],config:_(t)}}},u=function(t,e,i,s){var o,c,_,u,f,m,$=[],w=typeof i;if(s=s||t,"undefined"===w||"function"===w){for(e=!e.length&&i.length?["require","exports","module"]:e,f=0;f=0;--g)if(l=d[g],l._uniqueId=l._uniqueId||a++,s=l._meta){for(p=s.bases,b=p.length-1;b>0;--b)v=p[b]._uniqueId,u[v]=(u[v]||0)+1;d[g]=p.slice(0)}else d[g]=[l];f={};t:for(;d.length;){for(g=0;g0;--b)if(l=m[b],_=l._meta,t.mix(s,_&&_.ownProps||l[h]),_)for(v in d=_.weaver)p[v]=(+p[v]||0)|d[v];for(v in n)i(_=n[v])?p[v]=+p[v]||0:s[v]=_;return _={bases:m,ownProps:n,weaver:p,chains:{}},m[0]={_meta:_,prototype:s},r(_,s),c=s[o],c._meta=_,c[h]=s,m[0]=c,t._postprocess(c)}function e(t){this.around=t}function i(t){return t&&t.spr instanceof e}function n(t){var e=[];for(var i in t)e.push(i);return e}function r(e,i){var n=e.weaver,r=e.bases,s=e.chains;for(var a in n)i[a]=t._stub(n[a],r,a,s)}var s,a=0,o="constructor",h="prototype",l={};return(s=function(t,e){for(var i in e)t[i]=e[i]})(t,{mix:s,delegate:function(t){return Object.create(t)},allKeys:n,Super:e,superCall:function(e){return t._makeSuper(e)},_makeSuper:function(t,i){var n=function(){};return n.spr=new(i||e)(t),n},_postprocess:function(t){return t},_error:function(t){throw Error("dcl: "+t)},_instantiate:function(t,e,i){var n=t.spr.around(e);return n.ctr=t.ctr,n},_extractChain:function(t,e,n){for(var r,s,a=t.length-1,c=[],_="around"==n;r=t[a];--a)((s=r._meta)?(s=s.ownProps).hasOwnProperty(e)&&(i(s=s[e])?_?s.spr.around:s=s.spr[n]:_):_&&(s=e==o?r:r[h][e])&&s!==l[e])&&(s.ctr=r,c.push(s));return c},_stubChain:function(t){var e,i=t.length;return i?1==i?(e=t[0],function(){e.apply(this,arguments)}):function(){for(var e=0;i>e;++e)t[e].apply(this,arguments)}:0},_stubSuper:function(e,n){for(var r,s=0,a=l[n];r=e[s];++s)a=i(r)?e[s]=t._instantiate(r,a,n):r;return n!=o?a:function(){a.apply(this,arguments)}},_stubChainSuper:function(e,n,r){for(var s,a,h=0,l=0;s=e[h];++h)i(s)&&(a=h-l,e[h]=t._instantiate(s,a?1==a?e[l]:n(e.slice(l,h)):0,r),l=h);return a=h-l,a?1==a&&r!=o?e[l]:n(l?e.slice(l):e):0},_stub:function(e,i,n,r){var s=r[n]=t._extractChain(i,n,"around");return(e?t._stubChainSuper(s,t._stubChain,n):t._stubSuper(s,n))||function(){}}}),t}),function(t){"undefined"!=typeof i?i("dcl/dcl",["./mini"],t):"undefined"!=typeof module?module.exports=t(e("./mini")):dcl=t(dcl)}(function(t){"use strict";function e(){}function i(e){return t._makeSuper(e,s)}function n(t,i,n){var r=t||e,s=i||e,a=n||e,o=function(){var t,e;r.apply(this,arguments);try{t=a.apply(this,arguments)}catch(i){t=i,e=!0}if(s.call(this,arguments,t),e)throw t;return t};return o.advices={before:t,after:i,around:n},o}function r(e){return function(i,n){var r,s=i._meta;s&&(r=+s.weaver[n]||0,r&&r!=e&&t._error("set chaining",n,i,e,r),s.weaver[n]=e)}}var s=t(t.Super,{constructor:function(){this.before=this.around.before,this.after=this.around.after,this.around=this.around.around}});return t.mix(t,{Advice:s,advise:i,before:function(e){return t.advise({before:e})},after:function(e){return t.advise({after:e})},around:t.superCall,chainBefore:r(1),chainAfter:r(2),isInstanceOf:function(t,e){if(t instanceof e)return!0;var i,n=t.constructor._meta;if(n)for(n=n.bases,i=n.length-1;i>=0;--i)if(n[i]===e)return!0;return!1},_stub:function(e,i,r,s){var a=s[r]=t._extractChain(i,r,"around"),o=t._extractChain(i,r,"before").reverse(),h=t._extractChain(i,r,"after");return a=e?t._stubChainSuper(a,1==e?function(e){return t._stubChain(e.reverse())}:t._stubChain,r):t._stubSuper(a,r),o.length||h.length?n(t._stubChain(o),t._stubChain(h),a):a||function(){}}}),t}),i("wcDocker/types",[],function(){var t={};return t.DOCK={MODAL:"modal",FLOAT:"float",TOP:"top",LEFT:"left",RIGHT:"right",BOTTOM:"bottom",STACKED:"stacked"},t.LAYOUT={SIMPLE:"wcLayoutSimple",TABLE:"wcLayoutTable"},t.EVENT={INIT:"panelInit",LOADED:"dockerLoaded",UPDATED:"panelUpdated",VISIBILITY_CHANGED:"panelVisibilityChanged",BEGIN_DOCK:"panelBeginDock",END_DOCK:"panelEndDock",GAIN_FOCUS:"panelGainFocus",LOST_FOCUS:"panelLostFocus",CLOSING:"panelClosing",CLOSED:"panelClosed",PERSISTENT_CLOSED:"panelPersistentClosed",PERSISTENT_OPENED:"panelPersistentOpened",BUTTON:"panelButton",ATTACHED:"panelAttached",DETACHED:"panelDetached",MOVE_STARTED:"panelMoveStarted",MOVE_ENDED:"panelMoveEnded",MOVED:"panelMoved",RESIZE_STARTED:"panelResizeStarted",RESIZE_ENDED:"panelResizeEnded",RESIZED:"panelResized",ORDER_CHANGED:"panelOrderChanged",SCROLLED:"panelScrolled",SAVE_LAYOUT:"layoutSave",RESTORE_LAYOUT:"layoutRestore",CUSTOM_TAB_CHANGED:"customTabChanged",CUSTOM_TAB_CLOSED:"customTabClosed"},t.PANEL_PLACEHOLDER="__wcDockerPlaceholderPanel",t.COLLAPSED="__wcDockerCollapsedPanel",t.ORIENTATION={VERTICAL:!1,HORIZONTAL:!0},t.TAB={TOP:"top",LEFT:"left",RIGHT:"right",BOTTOM:"bottom"},t}),i("wcDocker/base",["dcl/dcl"],function(t){return t(null,{getOptions:function(){return this._options||this.docker()._options||{}},option:function(t,e){return this.getOptions()[t]||e},instanceOf:function(t,e){return e=e||this,!(!e||-1==e.declaredClass.indexOf(t))},docker:function(t){for(var e=t||this._parent;e&&!e.instanceOf("wcDocker");)e=e._parent;return e},__getClass:function(t){return this.getOptions()[t+"Class"]}})}),i("wcDocker/panel",["dcl/dcl","./types","./base"],function(t,e,i){var n=t(i,{declaredClass:"wcPanel",constructor:function(t,e,i){this.$container=null,this._parent=t,this.$icon=null,this.$title=null,this.$titleText=null,this.$loading=null,this._panelObject=null,this._initialized=!1,this._collapseDirection=void 0,this._type=e,this._title=e,this._titleVisible=!0,this._options=i,this._layout=null,this._buttonList=[],this._actualPos={x:.5,y:.5},this._actualSize={x:0,y:0},this._resizeData={time:-1,timeout:!1,delta:150},this._pos={x:.5,y:.5},this._moveData={time:-1,timeout:!1,delta:150},this._size={x:-1,y:-1},this._minSize={x:100,y:100},this._maxSize={x:1/0,y:1/0},this._scroll={x:0,y:0},this._scrollable={x:!0,y:!0},this._collapsible=!0,this._overflowVisible=!1,this._moveable=!0,this._detachable=!0,this._closeable=!0,this._resizeVisible=!0,this._isVisible=!1,this._events={},this.__init()},title:function(t){return"undefined"!=typeof t&&(t===!1?(this._titleVisible=!1,this.$titleText.html(this._type)):(this._title=t,this.$titleText.html(t)),this.$icon&&this.$titleText.prepend(this.$icon),this._parent&&this._parent.instanceOf("wcFrame")&&this._parent.__updateTabs()),this._title},info:function(){return this.docker().panelTypeInfo(this._type)},layout:function(){return this._layout},focus:function(t){var e=this.docker();if(e){e.__focus(this._parent,t);for(var i=0;i"),this.$titleText.prepend(this.$icon)),this.$icon.removeClass(),this.$icon.addClass("wcTabIcon "+t),this._parent&&this._parent.instanceOf("wcFrame")&&this._parent.__updateTabs()},faicon:function(t){this.$icon||(this.$icon=$("
        "),this.$titleText.prepend(this.$icon)),this.$icon.removeClass(),this.$icon.addClass("wcTabIcon fa fa-fw fa-"+t),this._parent&&this._parent.instanceOf("wcFrame")&&this._parent.__updateTabs()},scrollable:function(t,e){return"undefined"!=typeof t&&(this._scrollable.x=t?!0:!1,this._scrollable.y=e?!0:!1),{x:this._scrollable.x,y:this._scrollable.y}},scroll:function(t,e,i){return this.$container?("undefined"!=typeof t&&(i?this.$container.parent().stop().animate({scrollLeft:t,scrollTop:e},i):(this.$container.parent().scrollLeft(t),this.$container.parent().scrollTop(e))),{x:this.$container.parent().scrollLeft(),y:this.$container.parent().scrollTop()}):{x:0,y:0}},collapsible:function(t){return"undefined"!=typeof t&&(this._collapsible=t?!0:!1),this._collapsible},overflowVisible:function(t){return"undefined"!=typeof t&&(this._overflowVisible=t?!0:!1),this._overflowVisible},resizeVisible:function(t){return"undefined"!=typeof t&&(this._resizeVisible=t?!0:!1),this._resizeVisible},moveable:function(t){return"undefined"!=typeof t&&(this._moveable=t?!0:!1,this.$title.toggleClass("wcNotMoveable",!this._moveable)),this._moveable},detachable:function(t){return"undefined"!=typeof t&&(this._detachable=t?!0:!1),this._detachable},closeable:function(t){return"undefined"!=typeof t&&(this._closeable=t?!0:!1,this._parent&&this._parent.__update()),this._closeable},close:function(){var t=this.docker();t&&t.__closePanel(this)},startLoading:function(t,e,i){if(!this.$loading){this.$loading=$('
        '),this.$container.append(this.$loading);var n=$('
        ');"number"!=typeof e&&(e=.4),this.$loading.append(n);var r=$('
        ');if(this.$loading.append(r),t){var s=$(''+t+"");this.$loading.append(s)}"number"!=typeof i&&(i=1),this.docker().$loading&&(e=0,i=0),n.css("opacity",e),r.css("opacity",i),s&&s.css("opacity",i)}},finishLoading:function(t){if(this.$loading)if(t>0){var e=this;this.$loading.fadeOut(t,function(){e.$loading.remove(),e.$loading=null,e.docker().__testLoadFinished()})}else this.$loading.remove(),this.$loading=null,this.docker().__testLoadFinished()},on:function(t,e){return t?(this._events[t]||(this._events[t]=[]),-1!==this._events[t].indexOf(e)?!1:(this._events[t].push(e),!0)):!1},off:function(t,e){if("undefined"==typeof t)return void(this._events={});if(this._events[t])if("undefined"==typeof e)this._events[t]=[];else for(var i=0;i'),this.$titleText=$("
        "+this._title+"
        "),this.$title.append(this.$titleText),this._options.hasOwnProperty("title")&&this.title(this._options.title),this._options.icon&&this.icon(this._options.icon),this._options.faicon&&this.faicon(this._options.faicon)},__update:function(){var t=this.docker();if(t&&(this._layout.__update(),this.$container)){if(this._resizeVisible?this._parent.$frame.removeClass("wcHideOnResize"):this._parent.$frame.addClass("wcHideOnResize"),this._initialized)this.__trigger(e.EVENT.UPDATED);else{this._initialized=!0;var i=this;setTimeout(function(){i.__trigger(e.EVENT.INIT),t.__testLoadFinished()},0)}var n=this.$container.width(),r=this.$container.height();(this._actualSize.x!==n||this._actualSize.y!==r)&&(this._resizeData.time=new Date,this._resizeData.timeout||(this._resizeData.timeout=!0,setTimeout(this.__resizeEnd.bind(this),this._resizeData.delta),this.__trigger(e.EVENT.RESIZE_STARTED,{width:this._actualSize.x,height:this._actualSize.y})),this._actualSize.x=n,this._actualSize.y=r,this.__trigger(e.EVENT.RESIZED,{width:this._actualSize.x,height:this._actualSize.y}));var s=this.$container.offset();(this._actualPos.x!==s.left||this._actualPos.y!==s.top)&&(this._moveData.time=new Date,this._moveData.timeout||(this._moveData.timeout=!0,setTimeout(this.__moveEnd.bind(this),this._moveData.delta),this.__trigger(e.EVENT.MOVE_STARTED,{x:this._actualPos.x,y:this._actualPos.y})),this._actualPos.x=s.left,this._actualPos.y=s.top,this.__trigger(e.EVENT.MOVED,{x:this._actualPos.x,y:this._actualPos.y}))}},__resizeEnd:function(){new Date-this._resizeData.timen.x&&t.y>n.y&&t.xn.x&&t.y>n.y&&t.x').css("opacity",0).css("top",t.y+"px").css("left",t.x+"px").css("width",t.w+"px").css("height",t.h+"px"),this._anchorMouse={x:t.x-e.x,y:t.y-e.y},this._rect={x:-this._anchorMouse.x,y:-this._anchorMouse.y,w:t.w,h:t.h},$("body").append(this.$ghost),this.anchor(e,t)},__move:function(t){if(!this._anchor){var e=parseInt(this.$ghost.css("left")),i=parseInt(this.$ghost.css("top"));e=t.x+this._anchorMouse.x,i=t.y+this._anchorMouse.y,this.$ghost.css("left",e+"px"),this.$ghost.css("top",i+"px")}},__rect:function(){return this._rect},__destroy:function(){this.$ghost.stop().animate({opacity:0},{duration:100,complete:function(){$(this).remove()}})}});return i}),i("wcDocker/splitter",["dcl/dcl","./types","./base"],function(t,e,i){var n=t(i,{declaredClass:"wcSplitter",constructor:function(t,e,i){this.$container=$(t),this._parent=e,this._orientation=i,this._pane=[!1,!1],this.$pane=[],this.$bar=null,this._pos=.5,this._posTarget=.5,this._pixelPos=-1,this._findBestPos=!1,this._anim=0,this._boundEvents=[],this.__init(),this.docker()._splitterList.push(this)},initLayouts:function(t,e){var i=t||"wcLayoutTable",n=new(this.docker().__getClass(i))(this.$pane[0],this);i=e||"wcLayoutTable";var r=new(this.docker().__getClass(i))(this.$pane[1],this);this.pane(0,n),this.pane(1,r)},orientation:function(t){return"undefined"==typeof t?this._orientation:void(this._orientation!=t&&(this._orientation=t,this._orientation?this.$bar.removeClass("wcWide").removeClass("wcSplitterBarH").addClass("wcTall").addClass("wcSplitterBarV"):this.$bar.removeClass("wcTall").removeClass("wcSplitterBarV").addClass("wcWide").addClass("wcSplitterBarH"),this.$pane[0].css("top","").css("left","").css("width","").css("height",""),this.$pane[1].css("top","").css("left","").css("width","").css("height",""),this.$bar.css("top","").css("left","").css("width","").css("height",""),this.__update(),this._parent&&this._parent.instanceOf("wcPanel")&&this._parent.__trigger(e.EVENT.UPDATED)))},minSize:function(){var t,e;return this._pane[0]&&"function"==typeof this._pane[0].minSize&&(t=this._pane[0].minSize()),this._pane[1]&&"function"==typeof this._pane[1].minSize&&(e=this._pane[1].minSize()),t&&e?(this._orientation?(t.x+=e.x,t.y=Math.max(t.y,e.y)):(t.y+=e.y,t.x=Math.max(t.x,e.x)),t):t?t:e?e:!1},maxSize:function(){var t,e;return this._pane[0]&&"function"==typeof this._pane[0].maxSize&&(t=this._pane[0].maxSize()),this._pane[1]&&"function"==typeof this._pane[1].maxSize&&(e=this._pane[1].maxSize()),t&&e?(this._orientation?(t.x+=e.x,t.y=Math.min(t.y,e.y)):(t.y+=e.y,t.x=Math.min(t.x,e.x)),t):t?t:e?e:!1},pos:function(t){return"undefined"!=typeof t&&(this._pos=this._posTarget=t,this.__update(),this._parent&&this._parent.instanceOf("wcPanel")&&this._parent.__trigger(e.EVENT.UPDATED)),this._posTarget},animPos:function(t,e){this._posTarget=t;var i=this;this.$bar.queue(function(t){i._anim&&clearInterval(i._anim),i._anim=setInterval(function(){i._pos>i._posTarget&&(i._pos-=(i._pos-i._posTarget)/5,i._pos<=i._posTarget+.01&&(i._pos=i._posTarget)),i._pos=i._posTarget-.01&&(i._pos=i._posTarget)),i.__update(),i._pos==i._posTarget&&(e&&e(),t(),clearInterval(i._anim),i._anim=0)},5)}),this.$bar.dequeue()},pane:function(t,e){if(t>=0&&2>t){if("undefined"==typeof e)return this._pane[t];if(e)return this._pane[t]=e,e._parent=this,e.__container(this.$pane[t]),this._pane[0]&&this._pane[1]&&this.__update(),e;this._pane[t]&&(this._pane[t].__container(null),this._pane[t]=!1)}return!1},left:function(t){return this.pane(0,t)},right:function(t){return this.pane(1,t)},top:function(t){return this.pane(0,t)},bottom:function(t){return this.pane(1,t)},scrollable:function(t,e,i){return"undefined"!=typeof e&&this.$pane[t].toggleClass("wcScrollableX",e),"undefined"!=typeof i&&this.$pane[t].toggleClass("wcScrollableY",i),{x:this.$pane[t].hasClass("wcScrollableX"),y:this.$pane[t].hasClass("wcScrollableY")}},destroy:function(t){var e=this.docker();if(e){var i=this.docker()._splitterList.indexOf(this);i>-1&&this.docker()._splitterList.splice(i,1)}void 0===t||t?this.__destroy():this.__container(null)},__init:function(){if(this.$pane.push($('
        ')),this.$pane.push($('
        ')),this.$bar=$('
        '),this._orientation?this.$bar.addClass("wcTall").addClass("wcSplitterBarV"):this.$bar.addClass("wcWide").addClass("wcSplitterBarH"),this.__container(this.$container),this._parent&&this._parent.instanceOf("wcPanel")){this._boundEvents.push({event:e.EVENT.UPDATED,handler:this.__update.bind(this)}),this._boundEvents.push({event:e.EVENT.CLOSED,handler:this.destroy.bind(this)});for(var t=0;ti;++i)if(this._pane[i]&&this._pane[i].minSize&&this._pane[i].maxSize&&this._pane[i].maxSize()[t]-this._pane[i].minSize()[t]===0)return!0;return!1},__container:function(t){return"undefined"==typeof t?this.$container:(this.$container=t, + this.$container?(this.$container.append(this.$pane[0]),this.$container.append(this.$pane[1]),this.$container.append(this.$bar)):(this.$pane[0].remove(),this.$pane[1].remove(),this.$bar.remove()),this.$container)},__removeChild:function(t){if(this._pane[0]===t)this._pane[0]=!1;else{if(this._pane[1]!==t)return;this._pane[1]=!1}t&&(t.__container(null),t._parent=null)},__destroy:function(){for(this._anim&&(clearInterval(this._anim),this._anim=0),this.$bar.clearQueue();this._boundEvents.length;)this._parent.off(this._boundEvents[0].event,this._boundEvents[0].handler),this._boundEvents.shift();this._pane[0]&&(this._pane[0].__destroy(),this._pane[0]=null),this._pane[1]&&(this._pane[1].__destroy(),this._pane[1]=null),this.__container(null),this._parent=!1}});return n}),i("wcDocker/frame",["dcl/dcl","./types","./base"],function(t,e,i){var n=t(i,{declaredClass:"wcFrame",LEFT_TAB_BUFFER:15,constructor:function(t,i,n){this.$container=$(t),this._parent=i,this._isFloating=n,this.$frame=null,this.$title=null,this.$titleBar=null,this.$tabBar=null,this.$tabScroll=null,this.$center=null,this.$tabLeft=null,this.$tabRight=null,this.$close=null,this.$collapse=null,this.$top=null,this.$bottom=null,this.$left=null,this.$right=null,this.$corner1=null,this.$corner2=null,this.$corner3=null,this.$corner4=null,this.$buttonBar=null,this.$shadower=null,this.$modalBlocker=null,this._titleVisible=!0,this._canScrollTabs=!1,this._tabOrientation=e.TAB.TOP,this._tabScrollPos=0,this._curTab=-1,this._panelList=[],this._buttonList=[],this._resizeData={time:-1,timeout:!1,delta:150},this._pos={x:.5,y:.5},this._size={x:400,y:400},this._lastSize={x:400,y:400},this._anchorMouse={x:0,y:0},this.__init()},pos:function(t,e,i){var n=this.$container.width(),r=this.$container.height();return"undefined"==typeof t?i?{x:this._pos.x*n,y:this._pos.y*r}:{x:this._pos.x,y:this._pos.y}:void(i?(this._pos.x=t/n,this._pos.y=e/r):(this._pos.x=t,this._pos.y=e))},initSize:function(){for(var t={x:-1,y:-1},e=0;e=e&&this._curTab--,this._panelList[e]._parent===this&&(this._panelList[e].__container(null),this._panelList[e]._parent=null),this._panelList.splice(e,1),t._isVisible=!1;break}return-1===this._curTab&&!this.collapse()&&this._panelList.length&&(this._curTab=0),this.__updateTabs(),this._panelList.length>0},panel:function(t,e){return"undefined"!=typeof t&&(this.isCollapser()&&t===this._curTab&&(this.collapse(),t=-1),t .wcTabScroller > .wcPanelTab[id="'+this._curTab+'"]').removeClass("wcPanelTabActive"),this.$center.children('.wcPanelTabContent[id="'+this._curTab+'"]').addClass("wcPanelTabContentHidden"),this._curTab!==t&&this.collapse(),this._curTab=t,t>-1&&(this.$tabBar.find('> .wcTabScroller > .wcPanelTab[id="'+t+'"]').addClass("wcPanelTabActive"),this.$center.children('.wcPanelTabContent[id="'+t+'"]').removeClass("wcPanelTabContentHidden"),this.expand()),this.__updateTabs(e))),this._curTab>-1&&this._curTab'),this.$title=$('
        '),this.$titleBar=$('
        '),this.$tabBar=$('
        '),this.$tabScroll=$('
        '),this.$center=$('
        '),this.$tabLeft=$('
        <
        '),this.$tabRight=$('
        >
        '),this.$close=$('
        X
        '),this.$collapse=$('
        C
        '),this.$buttonBar=$('
        '),this.$tabButtonBar=$('
        '),this.$tabBar.append(this.$tabScroll),this.$tabBar.append(this.$tabButtonBar),this.$frame.append(this.$buttonBar),this.$buttonBar.append(this.$close),this.$buttonBar.append(this.$collapse),this.$frame.append(this.$center),this._isFloating&&(this.$top=$('
        ').css("top","-6px").css("left","0px").css("right","0px"),this.$bottom=$('
        ').css("bottom","-6px").css("left","0px").css("right","0px"),this.$left=$('
        ').css("left","-6px").css("top","0px").css("bottom","0px"),this.$right=$('
        ').css("right","-6px").css("top","0px").css("bottom","0px"),this.$corner1=$('
        ').css("top","-6px").css("left","-6px"),this.$corner2=$('
        ').css("top","-6px").css("right","-6px"),this.$corner3=$('
        ').css("bottom","-6px").css("right","-6px"),this.$corner4=$('
        ').css("bottom","-6px").css("left","-6px"),this.$frame.append(this.$top),this.$frame.append(this.$bottom),this.$frame.append(this.$left),this.$frame.append(this.$right),this.$frame.append(this.$corner1),this.$frame.append(this.$corner2),this.$frame.append(this.$corner3),this.$frame.append(this.$corner4)),this.__container(this.$container),this._isFloating&&this.$frame.addClass("wcFloating"),this.$center.scroll(this.__scrolled.bind(this))},__update:function(){var t=this.$container.width(),e=this.$container.height();if(this._isFloating){var i=this._pos.x*t-this._size.x/2,n=this._pos.y*e-this._size.y/2;0>n&&(n=0),i+this._size.x/2<0&&(i=-this._size.x/2),i+this._size.x/2>t&&(i=t-this._size.x/2),n+parseInt(this.$center.css("top"))>e&&(n=e-parseInt(this.$center.css("top"))),this.$frame.css("left",i+"px"),this.$frame.css("top",n+"px"),this.$frame.css("width",this._size.x+"px"),this.$frame.css("height",this._size.y+"px")}(t!==this._lastSize.x||e!==this._lastSize.y)&&(this._lastSize.x=t,this._lastSize.y=e,this._resizeData.time=new Date,this._resizeData.timeout||(this._resizeData.timeout=!0,setTimeout(this.__resizeEnd.bind(this),this._resizeData.delta))),this.__onTabChange()},__resizeEnd:function(){this.__updateTabs(),new Date-this._resizeData.time1||this._isFloating||this.isCollapser();this.isCollapser()?this.$tabBar.addClass("wcNotMoveable"):(this.$titleBar.removeClass("wcNotMoveable"),this.$tabBar.removeClass("wcNotMoveable")),this.$center.children(".wcPanelTabContent").each(function(){$(this).addClass("wcPanelTabContentHidden wcPanelTabUnused")}),this._titleVisible=!0,this.$title.html("");for(var h=0;h'),this.$center.append(_)),l.__container(_),l._parent=this;var u=this._curTab===h;if(l.isVisible()!==u&&n.push({panel:l,isVisible:u}),_.removeClass("wcPanelTabUnused"),u&&(c&&c.addClass("wcPanelTabActive"),_.removeClass("wcPanelTabContentHidden"),this.$title.html(l.title()),l.$icon)){var f=l.$icon.clone();this.$title.prepend(f)}c&&(s=i(c)-a,r.push(s),s+=c.outerWidth())}var p=this.$titleBar,d=0;if(this._titleVisible){switch(this.$frame.parent()||this.$center.css("top",""),this._tabOrientation){case e.TAB.TOP:this.$frame.prepend(this.$tabBar),this.$titleBar.remove(),this.$tabBar.addClass("wcTabTop").removeClass("wcTabLeft wcTabRight wcTabBottom"),o?this.$title.remove():this.$tabBar.prepend(this.$title),p=this.$tabBar,this.$center.css("left",0).css("right",0).css("bottom",0),d=this.$center.width();break;case e.TAB.BOTTOM:if(this.$frame.prepend(this.$titleBar),this.$titleBar.append(this.$title),o){var g=this.$titleBar.height();this.$frame.append(this.$tabBar),this.$tabBar.addClass("wcTabBottom").removeClass("wcTabTop wcTabLeft wcTabRight"),this.$center.css("left",0).css("right",0).css("bottom",g)}else this.$tabBar.remove();d=this.$center.width();break;case e.TAB.LEFT:if(this.$frame.prepend(this.$titleBar),this.$titleBar.append(this.$title),o){var g=this.$titleBar.height();this.$frame.append(this.$tabBar),this.$tabBar.addClass("wcTabLeft").removeClass("wcTabTop wcTabRight wcTabBottom"),this.$center.css("left",g).css("right",0).css("bottom",0)}else this.$tabBar.remove();d=this.$center.height();break;case e.TAB.RIGHT:if(this.$frame.prepend(this.$titleBar),this.$titleBar.append(this.$title),o){var g=this.$titleBar.height();this.$frame.append(this.$tabBar),this.$tabBar.addClass("wcTabRight").removeClass("wcTabTop wcTabLeft wcTabBottom"),this.$center.css("left",0).css("right",g).css("bottom",0)}else this.$tabBar.remove();d=this.$center.height()}o||this.$center.css("left",0).css("right",0).css("bottom",0)}else this.$titleBar.remove(),this.$tabBar.remove(),this.$center.css("top",0).css("left",0).css("right",0).css("bottom",0);if(this.$center.children(".wcPanelTabUnused").each(function(){$(this).remove()}),this._titleVisible){var v=this.__onTabChange();if(t)for(var h=0;hm?(this._tabScrollPos=m-this.LEFT_TAB_BUFFER,this._tabScrollPos<0&&(this._tabScrollPos=0)):b-w>y&&(this._tabScrollPos=b-y+this.LEFT_TAB_BUFFER);break}if(this._canScrollTabs=!1,s>d-v){this._canScrollTabs=this._titleVisible,this._canScrollTabs&&(this.$tabButtonBar.append(this.$tabRight),this.$tabButtonBar.append(this.$tabLeft),v+=this.$tabRight.outerWidth(),v+=this.$tabLeft.outerWidth());var T=s-(d-v)/2;if(this._tabScrollPos>T)for(var E=this.$tabScroll.children(),h=0;hT){this._tabScrollPos=s-this.LEFT_TAB_BUFFER,this._tabScrollPos<0&&(this._tabScrollPos=0);break}}}else this._tabScrollPos=0,this.$tabLeft.remove(),this.$tabRight.remove();this.$tabScroll.stop().animate({left:-this._tabScrollPos+"px"},"fast");for(var h=0;h.5&&c.bottom>.95?o=e.DOCK.BOTTOM:c.left<=.05?o=e.DOCK.LEFT:c.right>=.95?o=e.DOCK.RIGHT:c.bottom>.95&&(o=e.DOCK.BOTTOM)}var _="",u="";switch(o){case e.DOCK.LEFT:_="left side.",u="wcCollapseLeft";break;case e.DOCK.RIGHT:_="right side.",u="wcCollapseRight";break;case e.DOCK.BOTTOM:_="bottom.",u="wcCollapseBottom"}if(_){var a=this.$collapse.children("div");a[0].className="fa fa-sign-in",a.addClass(u),a.addClass("wcCollapsible"),this.$collapse.show(),this.$collapse.attr("title","Collapse this panel into the "+_),t+=this.$collapse.outerWidth()}}for(var f=0;f');this.$frame.append(e),e.animate({opacity:1},100).animate({opacity:0},100).animate({opacity:.6},50).animate({opacity:0},50).queue(function(t){e.remove(),t()})}},__move:function(t){var e=this.$container.width(),i=this.$container.height();this._pos.x=(t.x+this._anchorMouse.x)/e,this._pos.y=(t.y+this._anchorMouse.y)/i},__anchorMove:function(t){var e=this.$container.width(),i=this.$container.height();this._anchorMouse.x=this._pos.x*e-t.x,this._anchorMouse.y=this._pos.y*i-t.y},__tabMove:function(t,e){if(t>=0&&t=0&&e .wcTabScroller > .wcPanelTab[id="'+e+'"]')[0]}return!1},__checkAnchorDrop:function(t,e,i,n,r,s){var a=this.panel();return a&&a.moveable()?a.layout().__checkAnchorDrop(t,e&&this._tabOrientation,i,!this._isFloating&&!this.isCollapser()&&n,this.$frame,a.moveable()&&a.title(),r,this.isCollapser()?this._tabOrientation:void 0,s):!1},__resize:function(t,e){var i=this.$container.width(),n=this.$container.height(),r=this.$container.offset();e.x-=r.left,e.y-=r.top;for(var s=this.minSize(),a=this.maxSize(),o={x:this._pos.x*i-this._size.x/2,y:this._pos.y*n-this._size.y/2},h=0;ha.y&&(o.y+=this._size.y-a.y,this._size.y=a.y);break;case"bottom":this._size.y=e.y-4-o.y,this._size.ya.y&&(this._size.y=a.y);break;case"left":this._size.x+=o.x-e.x-2,o.x=e.x+2,this._size.xa.x&&(o.x+=this._size.x-a.x,this._size.x=a.x);break;case"right":this._size.x=e.x-4-o.x,this._size.xa.x&&(this._size.x=a.x)}this._pos.x=(o.x+this._size.x/2)/i,this._pos.y=(o.y+this._size.y/2)/n}},__shadow:function(t){if(t)this.$shadower||(this.$shadower=$('
        '),this.$frame.append(this.$shadower),this.$shadower.animate({opacity:.5},300));else if(this.$shadower){var e=this;this.$shadower.animate({opacity:0},300).queue(function(t){e.$shadower.remove(),e.$shadower=null,t()})}},__rect:function(){if(this.isCollapser())return this._parent.__rect();var t=this.$frame.offset(),e=this.$frame.width(),i=this.$frame.height();return{x:t.left,y:t.top,w:e,h:i}},__container:function(t){return"undefined"==typeof t?this.$container:(this.$container=t,this.$container?this.$container.append(this.$frame):this.$frame.remove(),this.$container)},__destroy:function(){this._curTab=-1;for(var t=0;t'),this.__container(this.$container),this._frame=new(this.docker().__getClass("wcFrame"))(this.$frame,this,!1),this._frame.tabOrientation(this._position)},__update:function(t){this.__adjustCollapsedSize(),this._frame.__update()},__adjustCollapsedSize:function(){this._frame._panelList.length?(this._closeSize=this._frame.$tabBar.outerHeight(),this._parent.$bar.removeClass("wcSplitterHidden")):(this._closeSize=0,this._parent.$bar.addClass("wcSplitterHidden"))},__rect:function(){var t=this.$frame.offset(),i=this.$frame.width(),n=this.$frame.height(),r=this._frame.panel();return r&&(this._position===e.DOCK.BOTTOM?(n=r._size.y,i/=3):(i=r._size.x,n/=3)),{x:t.left,y:t.top,w:i,h:n}},__save:function(){var t={};return t.closeSize=this._closeSize,t.frame=this._frame.__save(),t},__restore:function(t,e){this._closeSize=t.closeSize,this._frame.__restore(t.frame,e),this.__adjustCollapsedSize()},__container:function(t){return"undefined"==typeof t?this.$container:(this.$container=t,this.$container?this.$container.append(this.$frame):this.$frame.remove(),this.$container)},__destroy:function(){this._frame&&(this._frame.__destroy(),this._frame=null),this.__container(null),this._parent=null}});return r}),i("wcDocker/collapser",["dcl/dcl","./types","./splitter","./drawer","./base"],function(t,e,i,n,r){var s=t(r,{declaredClass:"wcCollapser",constructor:function(t,i,n){this.$container=$(t),this.$frame=null,this._position=n,this._parent=i,this._splitter=null,this._drawer=null,this._size=0,this._orientation=this._position===e.DOCK.LEFT||this._position===e.DOCK.RIGHT?e.ORIENTATION.HORIZONTAL:e.ORIENTATION.VERTICAL,this.__init()},collapse:function(t){this._drawer.collapse()},expand:function(){this._drawer.expand()},isExpanded:function(){return this._drawer.isExpanded()},minSize:function(){return{x:this._size,y:this._size}},maxSize:function(){var t=this._orientation===e.ORIENTATION.HORIZONTAL?!0:!1;return{x:t?this._size:1/0,y:t?1/0:this._size}},__init:function(){this.$frame=$('
        '),this.__container(this.$container);var t=this.docker();switch(this._splitter=new(this.docker().__getClass("wcSplitter"))(t.$container,this,this._orientation),this._drawer=new(this.docker().__getClass("wcDrawer"))(t.$transition,this._splitter,this._position),this._position){case e.DOCK.LEFT:this._splitter.pane(0,this._drawer),this._splitter.$pane[1].remove(),this._splitter.$pane[0].addClass("wcDrawer"),this._splitter.pos(0);break;case e.DOCK.RIGHT:case e.DOCK.BOTTOM:this._splitter.pane(1,this._drawer),this._splitter.$pane[0].remove(),this._splitter.$pane[1].addClass("wcDrawer"),this._splitter.pos(1)}this._parent.$bar.addClass("wcSplitterHidden")},__update:function(t){this._splitter.__update(),this.__adjustSize()},__adjustSize:function(){this._drawer._frame._panelList.length?this._size=this._drawer._frame.$tabBar.outerHeight():this._size=0},__rect:function(){return this._drawer.__rect()},__save:function(){var t={};return t.size=this._size,t.drawer=this._drawer.__save(),t},__restore:function(t,e){this._size=t.size,this._drawer.__restore(t.drawer,e),this.__adjustSize()},__container:function(t){return"undefined"==typeof t?this.$container:(this.$container=t,this.$container?this.$container.append(this.$frame):this.$frame.remove(),this.$container)},__destroy:function(){this._splitter&&(this._splitter.__destroy(),this._splitter=null,this._frame=null),this.__container(null),this._parent=null}});return s}),i("wcDocker/layout",["dcl/dcl","./types"],function(t,e){var i=t(null,{declaredClass:"wcLayout",constructor:function(t,e){this.$container=$(t),this._parent=e,this.$elem=null,this.__init()},addItem:function(t){},clear:function(){},scene:function(){return this.$elem},__init:function(){},__update:function(){},__checkAnchorDrop:function(t,i,n,r,s,a,o,h,l){function c(t,e,i){return"number"==typeof t||"string"==typeof t&&-1!==t.indexOf("px",t.length-2)?(t=parseInt(t),{x:t,y:t}):"string"==typeof t&&-1!==t.indexOf("%",t.length-1)?(t=parseInt(t)/100,{x:e*t,y:i*t}):{x:0,y:0}}var _=this._parent.docker(),u=s.outerWidth(),f=s.outerHeight(),p=s.offset(),d=s.find(".wcFrameTitleBar").height();a||(d=0);var g=c(_._options.edgeAnchorSize,_.$container.outerWidth(),_.$container.outerHeight()),v=c(_._options.panelAnchorSize,u,f);if(a){if((!h||h===e.TAB.TOP)&&t.y>=p.top&&t.y<=p.top+d&&t.x>=p.left&&t.x<=p.left+u)return n.anchor(t,{x:p.left-2,y:p.top-2,w:u,h:d-2,loc:e.DOCK.STACKED,tab:e.TAB.TOP,item:this,self:i===e.TAB.TOP||o&&i}),!0;if(_._canOrientTabs){if((!h||h===e.TAB.BOTTOM)&&t.y>=p.top+f-d&&t.y<=p.top+f&&t.x>=p.left&&t.x<=p.left+u)return n.anchor(t,{x:p.left-2,y:p.top+f-d-2,w:u,h:d,loc:e.DOCK.STACKED,tab:e.TAB.BOTTOM,item:this,self:i===e.TAB.BOTTOM}),!0;if((!h||h===e.TAB.LEFT)&&t.y>=p.top&&t.y<=p.top+f&&t.x>=p.left&&t.x<=p.left+d)return n.anchor(t,{x:p.left-2,y:p.top-2,w:d-2,h:f,loc:e.DOCK.STACKED,tab:e.TAB.LEFT,item:this,self:i===e.TAB.LEFT}),!0;if((!h||h===e.TAB.RIGHT)&&t.y>=p.top&&t.y<=p.top+f&&t.x>=p.left+u-d&&t.x<=p.left+u)return n.anchor(t,{x:p.left+u-d-2,y:p.top-2,w:d,h:f,loc:e.DOCK.STACKED,tab:e.TAB.RIGHT,item:this,self:i===e.TAB.RIGHT}),!0}}if(l&&n._outer&&n._inner){var m=n._outer.$container.outerWidth(),b=n._outer.$container.outerHeight(),$=n._outer.$container.offset();if(t.y>=$.top&&t.y<=$.top+b&&t.x>=$.left+d&&t.x<=$.left+d+g.x)return n.anchor(t,{x:$.left-2,y:$.top-2,w:m/3,h:b,loc:e.DOCK.LEFT,item:n._inner,self:!1}),!0;if(t.y>=$.top&&t.y<=$.top+b&&t.x>=$.left+m-g.x-d&&t.x<=$.left+m-d)return n.anchor(t,{x:$.left+m-m/3-2,y:$.top-2,w:m/3,h:b,loc:e.DOCK.RIGHT,item:n._inner,self:!1}),!0;if(t.y>=$.top+d&&t.y<=$.top+d+g.y&&t.x>=$.left&&t.x<=$.left+m)return n.anchor(t,{x:$.left-2,y:$.top-2,w:m,h:b/3,loc:e.DOCK.TOP,item:n._inner,self:!1}),!0;if(t.y>=$.top+b-d-g.y&&t.y<=$.top+b-d&&t.x>=$.left&&t.x<=$.left+m)return n.anchor(t,{x:$.left-2,y:$.top+b-b/3-2,w:m,h:b/3,loc:e.DOCK.BOTTOM,item:n._inner,self:!1}),!0}if(!r)return!1;if(this._parent&&this._parent.instanceOf("wcPanel")&&this._parent._isPlaceholder)return n.anchor(t,{x:p.left-2,y:p.top-2,w:u,h:f,loc:e.DOCK.TOP,item:this,self:!1}),!0;if(f>u){if(t.y>=p.top&&t.y<=p.top+d+v.y&&t.x>=p.left&&t.x<=p.left+u)return n.anchor(t,{x:p.left-2,y:p.top-2,w:u,h:.5*f,loc:e.DOCK.TOP,item:this,self:!1}),!0;if(t.y>=p.top+f-v.y-d&&t.y<=p.top+f&&t.x>=p.left&&t.x<=p.left+u)return n.anchor(t,{x:p.left-2,y:p.top+(f-.5*f)-2,w:u,h:.5*f,loc:e.DOCK.BOTTOM,item:this,self:!1}),!0}if(t.y>=p.top&&t.y<=p.top+f){if(t.x>=p.left&&t.x<=p.left+v.x+d)return n.anchor(t,{x:p.left-2,y:p.top-2,w:.5*u,h:f,loc:e.DOCK.LEFT,item:this,self:!1}),!0;if(t.x>=p.left+u-v.x-d&&t.x<=p.left+u)return n.anchor(t,{x:p.left+.5*u-2,y:p.top-2,w:.5*u,h:f,loc:e.DOCK.RIGHT,item:this,self:!1}),!0}if(u>=f){if(t.y>=p.top&&t.y<=p.top+v.y+d&&t.x>=p.left&&t.x<=p.left+u)return n.anchor(t,{x:p.left-2,y:p.top-2,w:u,h:.5*f,loc:e.DOCK.TOP,item:this,self:!1}),!0;if(t.y>=p.top+f-v.y-d&&t.y<=p.top+f&&t.x>=p.left&&t.x<=p.left+u)return n.anchor(t,{x:p.left-2,y:p.top+(f-.5*f)-2,w:u,h:.5*f,loc:e.DOCK.BOTTOM,item:this,self:!1}),!0}return!1},__container:function(t){return"undefined"==typeof t?this.$container:(this.$container=t,this.$container?this.$container.append(this.$elem):this.$elem.remove(),this.$container)},__destroy:function(){this.__container(null),this._parent=null,this.clear(),this.$elem.remove(),this.$elem=null}});return i}),i("wcDocker/layoutsimple",["dcl/dcl","./types","./layout"],function(t,e,i){var n=t(i,{declaredClass:"wcLayoutSimple",addItem:function(t){this.$elem.append(t)},clear:function(){this.$elem.remove(),this.$elem=null,this.__init()},__init:function(){this.$elem=$('
        '),this.__container(this.$container)},__update:function(){}});return n}),i("wcDocker/layouttable",["dcl/dcl","./types","./layout"],function(t,e,i){var n=t(i,{declaredClass:"wcLayoutTable",addItem:function(t,e,i,n,r){return("undefined"==typeof e||0>e)&&(e=0),("undefined"==typeof i||0>i)&&(i=0),("undefined"==typeof n||0>=n)&&(n=1),("undefined"==typeof r||0>=r)&&(r=1),this.__resizeGrid(e+n-1,i+r-1),(n>1||r>1)&&!this.__mergeGrid(e,i,n,r)?!1:(this._grid[i][e].$el.append($(t)),this.item(e,i))},item:function(t,e){if(e>=this._grid.length)return!1;if(t>=this._grid[e].length)return!1;var i=this,n={$:i._grid[e][t].$el,css:function(r,s){if(i._grid[e][t].$el){if(void 0===s)return i._grid[e][t].$el.css(r);i._grid[e][t].$el.css(r,s)}return n},stretch:function(r,s){return i.itemStretch(t,e,r,s),n}};return n},itemStretch:function(t,e,i,n){var r=this._batchProcess;this._batchProcess=!0,this.__resizeGrid(t,e);var s=this._grid[e][t];return s.x<0||s.y<0?!1:(void 0!==i&&(s.sx=i),void 0!==n&&(s.sy=n),this._batchProcess=r,r||this.__resizeGrid(0,0),!0)},clear:function(){var t=this.showGrid(),e=this.gridSpacing(),i=this.gridAlternate();this.$elem.remove(),this.__init(),this.showGrid(t),this.gridSpacing(e),this.gridAlternate(i),this._grid=[]},startBatch:function(){this._batchProcess=!0},finishBatch:function(){this._batchProcess=!1,this.__resizeGrid(0,0)},showGrid:function(t){return"undefined"!=typeof t&&this.$elem.toggleClass("wcLayoutGrid",t),this.$elem.hasClass("wcLayoutGrid")},gridSpacing:function(t){return"undefined"!=typeof t&&this.$elem.css("border-spacing",t+"px"),parseInt(this.$elem.css("border-spacing"))},gridAlternate:function(t){return"undefined"!=typeof t&&this.$elem.toggleClass("wcLayoutGridAlternate",t),this.$elem.hasClass("wcLayoutGridAlternate")},__init:function(){this.$elem=$('
        '),this.$elem.append($("")),this._grid=[],this.__container(this.$container)},__update:function(){},__resizeGrid:function(t,e){for(var i=0;e>=i;++i){if(this._grid.length<=i){var n=[];n.$row=$(""),this._grid.push(n)}for(var r=0;t>=r;++r)this._grid[i].length<=r&&this._grid[i].push({$el:$(""),x:0,y:0,sx:"",sy:""})}if(!this._batchProcess){var s=this.$elem.find("tbody");$(".wcDockerTransition").append(s);for(var a=$(""),i=0;ir;++r)for(var s=0;i>s;++s){var a=this._grid[e+r][t+s];if(!a.$el||0!==a.x||0!==a.y)return!1}var a=this._grid[e][t];i>1&&(a.$el.attr("colspan",""+i),a.x=i-1),n>1&&(a.$el.attr("rowspan",""+n),a.y=n-1);for(var r=0;n>r;++r)for(var s=0;i>s;++s)if(0!==r||0!==s){var a=this._grid[e+r][t+s];a.$el.remove(),a.$el=null,a.x=-s,a.y=-r}return!0}});return n}),i("wcDocker/tabframe",["dcl/dcl","./types","./base"],function(t,e,i){var n=t(i,{declaredClass:"wcTabFrame",LEFT_TAB_BUFFER:15,constructor:function(t,i){this.$container=$(t),this._parent=i,this.$frame=null,this.$tabBar=null,this.$tabScroll=null,this.$center=null,this.$tabLeft=null,this.$tabRight=null,this.$close=null,this._tabOrientation=e.TAB.TOP,this._canScrollTabs=!1,this._tabScrollPos=0,this._curTab=-1,this._layoutList=[],this._moveable=!0,this._boundEvents=[],this.__init()},update:function(){var t=this.$center.scrollTop();this.__updateTabs(),this.$center.scrollTop(t)},destroy:function(){this.__destroy()},tabCount:function(){return this._layoutList.length},tabOrientation:function(t){return void 0!==t&&this._tabOrientation!==t&&this.docker()._canOrientTabs&&(this._tabOrientation=t,this.__updateTabs(),this.__updateTabs()),this._tabOrientation},addTab:function(t,e,i){var n=i||"wcLayoutTable",r=new(this.docker().__getClass(n))(".wcDockerTransition",this._parent);return r.name=t,r._scrollable={x:!0,y:!0},r._scroll={x:0,y:0},r._closeable=!1,r._overflowVisible=!1,"undefined"==typeof e||-1>=e?this._layoutList.push(r):this._layoutList.splice(e,0,r),-1===this._curTab&&this._layoutList.length&&(this._curTab=0),this.__updateTabs(),r},removeTab:function(t){if(t>-1&&t=t&&(this._curTab--,this._curTab<0&&(this._curTab=0)),this.__updateTabs(),this._parent.__trigger(e.EVENT.CUSTOM_TAB_CLOSED,{obj:this,name:i,index:t}),!0}return!1},tab:function(t,i){if("undefined"!=typeof t&&t>-1&&t .wcTabScroller > .wcPanelTab[id="'+this._curTab+'"]').removeClass("wcPanelTabActive"),this.$center.children('.wcPanelTabContent[id="'+this._curTab+'"]').addClass("wcPanelTabContentHidden"),this._curTab=t,this.$tabBar.find('> .wcTabScroller > .wcPanelTab[id="'+t+'"]').addClass("wcPanelTabActive"),this.$center.children('.wcPanelTabContent[id="'+t+'"]').removeClass("wcPanelTabContentHidden"),this.__updateTabs(i);var n=this._layoutList[this._curTab].name;this._parent.__trigger(e.EVENT.CUSTOM_TAB_CHANGED,{obj:this,name:n,index:t})}return this._curTab},layout:function(t){return t>-1&&t=0&&t=0&&e .wcTabScroller > .wcPanelTab[id="'+e+'"]')[0]}return!1},moveable:function(t){return"undefined"!=typeof t&&(this._moveable=t),this._moveable},closeable:function(t,e){if(t>-1&&t-1&&t-1&&t-1&&t-1&&t")),i.$icon.removeClass(),i.$icon.addClass("wcTabIcon "+e)}},faicon:function(t,e){if(t>-1&&t")),i.$icon.removeClass(),i.$icon.addClass("fa fa-fw fa-"+e)}},__init:function(){this.$frame=$('
        '),this.$tabBar=$('
        '),this.$tabScroll=$('
        '),this.$center=$('
        '),this.$tabLeft=$('
        <
        '),this.$tabRight=$('
        >
        '),this.$close=$('
        X
        '),this.$buttonBar=$('
        '),this.$tabBar.append(this.$tabScroll),this.$tabBar.append(this.$buttonBar),this.$buttonBar.append(this.$close),this.$frame.append(this.$center),this.$frame.append(this.$tabBar),this.__container(this.$container),this._boundEvents.push({event:e.EVENT.UPDATED,handler:this.update.bind(this)}),this._boundEvents.push({event:e.EVENT.CLOSED,handler:this.destroy.bind(this)});for(var t=0;t
        '+this._layoutList[a].name+"
        ");this._moveable&&o.addClass("wcCustomTabMoveable"),this.$tabScroll.append(o),this._layoutList[a].$icon&&o.find("div").prepend(this._layoutList[a].$icon);var h=this.$center.children('.wcPanelTabContent[id="'+a+'"]');h.length||(h=$('
        '),this.$center.append(h)),this._layoutList[a].__container(h),this._layoutList[a]._parent=this;var l=this._curTab===a;h.removeClass("wcPanelTabUnused"),l&&(o.addClass("wcPanelTabActive"),h.removeClass("wcPanelTabContentHidden")),r=i(o)-s,n.push(r),r+=o.outerWidth()}var c=0,_=this.$tabBar.height();switch(this._tabOrientation){case e.TAB.TOP:this.$tabBar.addClass("wcTabTop").removeClass("wcTabLeft wcTabRight wcTabBottom"),this.$center.css("top",_).css("left",0).css("right",0).css("bottom",0),c=this.$center.width();break;case e.TAB.BOTTOM:this.$tabBar.addClass("wcTabBottom").removeClass("wcTabTop wcTabLeft wcTabRight"),this.$center.css("top",0).css("left",0).css("right",0).css("bottom",_),c=this.$center.width();break;case e.TAB.LEFT:this.$tabBar.addClass("wcTabLeft").removeClass("wcTabTop wcTabRight wcTabBottom"),this.$center.css("top",0).css("left",_).css("right",0).css("bottom",0),c=this.$center.height();break;case e.TAB.RIGHT:this.$tabBar.addClass("wcTabRight").removeClass("wcTabTop wcTabLeft wcTabBottom"),this.$center.css("top",0).css("left",0).css("right",_).css("bottom",0),c=this.$center.height()}this.$center.children(".wcPanelTabUnused").each(function(){$(this).remove()});var u=this.__onTabChange();if(t)for(var a=0;af?(this._tabScrollPos=f-this.LEFT_TAB_BUFFER,this._tabScrollPos<0&&(this._tabScrollPos=0)):p-d>g&&(this._tabScrollPos=p-g+this.LEFT_TAB_BUFFER);break}if(this._canScrollTabs=!1,r>c-u){this._canScrollTabs=!0,this.$buttonBar.append(this.$tabRight),this.$buttonBar.append(this.$tabLeft),u+=this.$tabRight.outerWidth(),u+=this.$tabLeft.outerWidth();var v=r-(c-u)/2;if(this._tabScrollPos>v)for(var m=this.$tabScroll.children(),a=0;av){this._tabScrollPos=r-this.LEFT_TAB_BUFFER,this._tabScrollPos<0&&(this._tabScrollPos=0);break}}}else this._tabScrollPos=0,this.$tabLeft.remove(),this.$tabRight.remove();this.$tabScroll.stop().animate({left:-this._tabScrollPos+"px"},"fast")},__onTabChange:function(){var t=0,i=this.layout(this._curTab);if(i){this.$center.toggleClass("wcScrollableX",i._scrollable.x),this.$center.toggleClass("wcScrollableY",i._scrollable.y),this.$center.toggleClass("wcOverflowVisible",i._overflowVisible),this.$tabLeft.remove(),this.$tabRight.remove(),i._closeable?(this.$close.show(),t+=this.$close.outerWidth()):this.$close.hide(),this._canScrollTabs&&(this.$tabBar.append(this.$tabRight),this.$tabBar.append(this.$tabLeft),t+=this.$tabRight.outerWidth()+this.$tabLeft.outerWidth());var n=this.fitContents(this._curTab);if(n.x){var r=i.scene().outerWidth();(this._tabOrientation===e.TAB.LEFT||this._tabOrientation===e.TAB.RIGHT)&&(r+=this.$tabScroll.height()),this.$container.css("width",r)}else this.$container.css("width","");if(n.y){var s=i.scene().outerHeight();(this._tabOrientation===e.TAB.TOP||this._tabOrientation===e.TAB.BOTTOM)&&(s+=this.$tabScroll.height()),this.$container.css("height",s)}else this.$container.css("height","");switch(this._tabOrientation){case e.TAB.RIGHT:case e.TAB.LEFT:this.$tabBar.css("width",this.$center.height()||"100%");break;case e.TAB.TOP:case e.TAB.BOTTOM:this.$tabBar.css("width",this.$center.width()||"100%")}this.$center.scrollLeft(i._scroll.x),this.$center.scrollTop(i._scroll.y)}return this.$buttonBar.css("min-width",t).css("width",t),t},__scrolled:function(){var t=this.layout(this._curTab);t._scroll.x=this.$center.scrollLeft(),t._scroll.y=this.$center.scrollTop()},__container:function(t){return"undefined"==typeof t?this.$container:(this.$container=t,this.$container?this.$container.append(this.$frame):this.$frame.remove(),this.$container)},__destroy:function(){var t=this.docker();if(t){var e=t._tabList.indexOf(this);e>-1&&t._tabList.splice(e,1)}for(;this._boundEvents.length;)this._parent.off(this._boundEvents[0].event,this._boundEvents[0].handler),this._boundEvents.shift();this._curTab=-1;for(var i=0;ie&&!s||!r||i&&!a&&o||n&&o)return 1;if(e>t&&!i||!o||s&&!n&&r||a&&r)return-1}return 0}function e(t,e,i){for(var n=t.length,r=i?n:-1;i?r--:++r-1;);return i}function o(t,e){for(var i=t.length;i--&&e.indexOf(t.charAt(i))>-1;);return i}function h(e,i){return t(e.criteria,i.criteria)||e.index-i.index}function l(e,i,n){for(var r=-1,s=e.criteria,a=i.criteria,o=s.length,h=n.length;++r=h)return l;var c=n[r];return l*("asc"===c||c===!0?1:-1)}}return e.index-i.index}function c(t){return Kt[t]}function _(t){return Gt[t]}function u(t,e,i){return e?t=Ut[t]:i&&(t=Zt[t]),"\\"+t}function f(t){return"\\"+Zt[t]}function p(t,e,i){for(var n=t.length,r=e+(i?0:-1);i?r--:++r=t&&t>=9&&13>=t||32==t||160==t||5760==t||6158==t||t>=8192&&(8202>=t||8232==t||8233==t||8239==t||8287==t||12288==t||65279==t)}function v(t,e){for(var i=-1,n=t.length,r=-1,s=[];++ie,r=i?t.length:0,s=Ui(0,r,this.__views__),a=s.start,o=s.end,h=o-a,l=n?o:a-1,c=this.__iteratees__,_=c.length,u=0,f=Ca(h,this.__takeCount__);if(!i||N>r||r==h&&f==h)return ri(t,this.__actions__);var p=[];t:for(;h--&&f>u;){l+=e;for(var d=-1,g=t[l];++d<_;){var v=c[d],m=v.iteratee,b=v.type,$=m(g);if(b==M)g=$;else if(!$){if(b==R)continue t;break t}}p[u++]=g}return p}function Wt(){this.__data__={}}function Ut(t){return this.has(t)&&delete this.__data__[t]}function Zt(t){return"__proto__"==t?T:this.__data__[t]}function qt(t){return"__proto__"!=t&&na.call(this.__data__,t)}function Yt(t,e){return"__proto__"!=t&&(this.__data__[t]=e),this}function Xt(t){var e=t?t.length:0;for(this.data={hash:ba(null),set:new fa};e--;)this.push(t[e])}function Jt(t,e){var i=t.data,n="string"==typeof e||Ar(e)?i.set.has(e):i.hash[e];return n?0:-1}function Qt(t){var e=this.data;"string"==typeof t||Ar(t)?e.set.add(t):e.hash[t]=!0}function ne(t,e){for(var i=-1,n=t.length,r=-1,s=e.length,a=Hs(n+s);++i=N?gi(e):null,l=e.length;h&&(a=Jt,o=!1,e=h);t:for(;++si&&(i=-i>r?0:r+i),n=n===T||n>r?r:+n||0,0>n&&(n+=r),r=i>n?0:n>>>0,i>>>=0;r>i;)t[i++]=e;return t}function Le(t,e){var i=[];return Va(t,function(t,n,r){e(t,n,r)&&i.push(t)}),i}function De(t,e,i,n){var r;return i(t,function(t,i,s){return e(t,i,s)?(r=n?i:t,!1):void 0}),r}function Se(t,e,i,n){n||(n=[]);for(var r=-1,s=t.length;++rn;)t=fn(t)[e[n++]];return n&&n==r?t:T}}function ze(t,e,i,n,r,s){return t===e?!0:null==t||null==e||!Ar(t)&&!d(e)?t!==t&&e!==e:Ne(t,e,ze,i,n,r,s)}function Ne(t,e,i,n,r,s,a){var o=Io(t),h=Io(e),l=G,c=G;o||(l=sa.call(t),l==K?l=X:l!=X&&(o=jr(t))),h||(c=sa.call(e),c==K?c=X:c!=X&&(h=jr(e)));var _=l==X&&!ee(t),u=c==X&&!ee(e),f=l==c;if(f&&!o&&!_)return Mi(t,e,l);if(!r){var p=_&&na.call(t,"__wrapped__"),d=u&&na.call(e,"__wrapped__");if(p||d)return i(p?t.value():t,d?e.value():e,n,r,s,a)}if(!f)return!1;s||(s=[]),a||(a=[]);for(var g=s.length;g--;)if(s[g]==t)return a[g]==e;s.push(t),a.push(e);var v=(o?Ri:Vi)(t,e,i,n,r,s,a);return s.pop(),a.pop(),v}function Re(t,e,i){var n=e.length,r=n,s=!i;if(null==t)return!r;for(t=fn(t);n--;){var a=e[n];if(s&&a[2]?a[1]!==t[a[0]]:!(a[0]in t))return!1}for(;++ne&&(e=-e>r?0:r+e),i=i===T||i>r?r:+i||0,0>i&&(i+=r),r=e>i?0:i-e>>>0,e>>>=0;for(var s=Hs(r);++n=N,h=o?gi():null,l=[];h?(r=Jt,a=!1):(o=!1,h=e?[]:l);t:for(;++i=r){for(;r>n;){var s=n+r>>>1,a=t[s];(i?e>=a:e>a)&&null!==a?n=s+1:r=s}return r}return ai(t,e,Ls,i)}function ai(t,e,i,n){e=i(e);for(var r=0,s=t?t.length:0,a=e!==e,o=null===e,h=e===T;s>r;){var l=$a((r+s)/2),c=i(t[l]),_=c!==T,u=c===c;if(a)var f=u||n;else f=o?u&&_&&(n||null!=c):h?u&&(n||_):null==c?!1:n?e>=c:e>c;f?r=l+1:s=l}return Ca(s,Pa)}function oi(t,e,i){if("function"!=typeof t)return Ls;if(e===T)return t;switch(i){case 1:return function(i){return t.call(e,i)};case 3:return function(i,n,r){return t.call(e,i,n,r)};case 4:return function(i,n,r,s){return t.call(e,i,n,r,s)};case 5:return function(i,n,r,s,a){return t.call(e,i,n,r,s,a)}}return function(){return t.apply(e,arguments)}}function hi(t){var e=new ha(t.byteLength),i=new ga(e);return i.set(new ga(t)),e}function li(t,e,i){for(var n=i.length,r=-1,s=Ea(t.length-n,0),a=-1,o=e.length,h=Hs(o+s);++a2?i[r-2]:T,a=r>2?i[2]:T,o=r>1?i[r-1]:T;for("function"==typeof s?(s=oi(s,o,5),r-=2):(s="function"==typeof o?o:T,r-=s?1:0),a&&tn(i[0],i[1],a)&&(s=3>r?T:s,r=1);++n-1?n[a]:T}return De(n,r,t)}}function Ti(t){return function(i,n,r){return i&&i.length?(n=Hi(n,r,3),e(i,n,t)):-1}}function Ei(t){return function(e,i,n){return i=Hi(i,n,3),De(e,i,t,!0)}}function Ci(t){return function(){for(var e,i=arguments.length,n=t?i:-1,r=0,s=Hs(i);t?n--:++n=N)return e.plant(n).value();for(var r=0,a=i?s[r].apply(this,t):n;++rb){var O=o?re(o):T,F=Ea(l-b,0),L=p?E:T,P=p?T:E,B=p?w:T,k=p?T:w;e|=p?D:S,e&=~(p?S:D),d||(e&=~(C|x));var I=[t,e,i,B,L,k,P,O,h,F],A=Bi.apply(T,I);return nn(t)&&Za(A,I),A.placeholder=y,A}}var z=u?i:this,N=f?z[t]:t;return o&&(w=cn(w,o)),_&&h=e||!ya(e))return"";var r=e-n;return i=null==i?" ":i+"",ms(i,ma(r/i.length)).slice(0,r)}function Ii(t,e,i,n){function r(){for(var e=-1,o=arguments.length,h=-1,l=n.length,c=Hs(l+o);++hh))return!1;for(;++o-1&&t%1==0&&e>t}function tn(t,e,i){if(!Ar(i))return!1;var n=typeof e;if("number"==n?Ji(i)&&Qi(e,i.length):"string"==n&&e in i){var r=i[e];return t===t?t===r:r!==r}return!1}function en(t,e){var i=typeof t;if("string"==i&&Tt.test(t)||"number"==i)return!0;if(Io(t))return!1;var n=!yt.test(t);return n||null!=e&&t in fn(e)}function nn(t){var e=Ki(t),i=g[e];if("function"!=typeof i||!(e in et.prototype))return!1;if(t===i)return!0;var n=Wa(i);return!!n&&t===n[0]}function rn(t){return"number"==typeof t&&t>-1&&t%1==0&&ka>=t}function sn(t){return t===t&&!Ar(t)}function an(t,e){var i=t[1],n=e[1],r=i|n,s=P>r,a=n==P&&i==F||n==P&&i==B&&t[7].length<=e[8]||n==(P|B)&&i==F;if(!s&&!a)return t;n&C&&(t[2]=e[2],r|=i&C?0:O);var o=e[3];if(o){var h=t[3];t[3]=h?li(h,o,e[4]):re(o),t[4]=h?v(t[3],H):re(e[4])}return o=e[5],o&&(h=t[5],t[5]=h?ci(h,o,e[6]):re(o),t[6]=h?v(t[5],H):re(e[6])),o=e[7],o&&(t[7]=re(o)),n&P&&(t[8]=null==t[8]?e[8]:Ca(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=r,t}function on(t,e){return t===T?e:Ao(t,e,on)}function hn(t,e){t=fn(t);for(var i=-1,n=e.length,r={};++in;)a[++s]=Ye(t,n,n+=e);return a}function vn(t){for(var e=-1,i=t?t.length:0,n=-1,r=[];++ee?0:e)):[]}function bn(t,e,i){var n=t?t.length:0;return n?((i?tn(t,e,i):null==e)&&(e=1),e=n-(+e||0),Ye(t,0,0>e?0:e)):[]}function $n(t,e,i){return t&&t.length?ni(t,Hi(e,i,3),!0,!0):[]}function wn(t,e,i){return t&&t.length?ni(t,Hi(e,i,3),!0):[]}function yn(t,e,i,n){var r=t?t.length:0;return r?(i&&"number"!=typeof i&&tn(t,e,i)&&(i=0,n=r),Fe(t,e,i,n)):[]}function Tn(t){return t?t[0]:T}function En(t,e,i){var n=t?t.length:0;return i&&tn(t,e,i)&&(e=!1),n?Se(t,e):[]}function Cn(t){var e=t?t.length:0;return e?Se(t,!0):[]}function xn(t,e,i){var r=t?t.length:0;if(!r)return-1;if("number"==typeof i)i=0>i?Ea(r+i,0):i;else if(i){var s=si(t,e);return r>s&&(e===e?e===t[s]:t[s]!==t[s])?s:-1}return n(t,e,i||0)}function On(t){return bn(t,1)}function Fn(t){var e=t?t.length:0;return e?t[e-1]:T}function Ln(t,e,i){var n=t?t.length:0;if(!n)return-1;var r=n;if("number"==typeof i)r=(0>i?Ea(n+i,0):Ca(i||0,n-1))+1;else if(i){r=si(t,e,!0)-1;var s=t[r];return(e===e?e===s:s!==s)?r:-1}if(e!==e)return p(t,r,!0);for(;r--;)if(t[r]===e)return r;return-1}function Dn(){var t=arguments,e=t[0];if(!e||!e.length)return e;for(var i=0,n=Gi(),r=t.length;++i-1;)da.call(e,s,1);return e}function Sn(t,e,i){var n=[];if(!t||!t.length)return n;var r=-1,s=[],a=t.length;for(e=Hi(e,i,3);++re?0:e)):[]}function In(t,e,i){var n=t?t.length:0;return n?((i?tn(t,e,i):null==e)&&(e=1),e=n-(+e||0),Ye(t,0>e?0:e)):[]}function An(t,e,i){return t&&t.length?ni(t,Hi(e,i,3),!1,!0):[]}function zn(t,e,i){return t&&t.length?ni(t,Hi(e,i,3)):[]}function Nn(t,e,i,r){var s=t?t.length:0;if(!s)return[];null!=e&&"boolean"!=typeof e&&(r=i,i=tn(t,e,r)?T:e,e=!1);var a=Hi();return(null!=i||a!==ye)&&(i=a(i,r,3)),e&&Gi()===n?m(t,i):ei(t,i)}function Rn(t){if(!t||!t.length)return[];var e=-1,i=0;t=le(t,function(t){return Ji(t)?(i=Ea(t.length,i),!0):void 0});for(var n=Hs(i);++ei?Ea(r+i,0):i||0,"string"==typeof t||!Io(t)&&Gr(t)?r>=i&&t.indexOf(e,i)>-1:!!r&&Gi(t,e,i)>-1}function ir(t,e,i){var n=Io(t)?ce:Me;return e=Hi(e,i,3),n(t,e)}function nr(t,e){return ir(t,Is(e))}function rr(t,e,i){var n=Io(t)?le:Le;return e=Hi(e,i,3),n(t,function(t,i,n){return!e(t,i,n)})}function sr(t,e,i){if(i?tn(t,e,i):null==e){t=un(t);var n=t.length;return n>0?t[Ze(0,n-1)]:T}var r=-1,s=qr(t),n=s.length,a=n-1;for(e=Ca(0>e?0:+e||0,n);++r0&&(i=e.apply(this,arguments)),1>=t&&(e=T),i}}function dr(t,e,i){function n(){f&&la(f),l&&la(l),d=0,l=f=p=T}function r(e,i){i&&la(i),l=f=p=T,e&&(d=wo(),c=t.apply(u,h),f||l||(h=u=T))}function s(){var t=e-(wo()-_);0>=t||t>e?r(p,l):f=pa(s,t)}function a(){r(v,f)}function o(){if(h=arguments,_=wo(),u=this,p=v&&(f||!m),g===!1)var i=m&&!f;else{l||m||(d=_);var n=g-(_-d),r=0>=n||n>g;r?(l&&(l=la(l)),d=_,c=t.apply(u,h)):l||(l=pa(a,n))}return r&&f?f=la(f):f||e===g||(f=pa(s,e)),i&&(r=!0,c=t.apply(u,h)),!r||f||l||(h=u=T),c}var h,l,c,_,u,f,p,d=0,g=!1,v=!0;if("function"!=typeof t)throw new Xs(V);if(e=0>e?0:+e||0,i===!0){var m=!0;v=!1}else Ar(i)&&(m=!!i.leading,g="maxWait"in i&&Ea(+i.maxWait||0,e),v="trailing"in i?!!i.trailing:v);return o.cancel=n,o}function gr(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new Xs(V);var i=function(){var n=arguments,r=e?e.apply(this,n):n[0],s=i.cache;if(s.has(r))return s.get(r);var a=t.apply(this,n);return i.cache=s.set(r,a),a};return i.cache=new gr.Cache,i}function vr(t){if("function"!=typeof t)throw new Xs(V);return function(){return!t.apply(this,arguments)}}function mr(t){return pr(2,t)}function br(t,e){if("function"!=typeof t)throw new Xs(V);return e=Ea(e===T?t.length-1:+e||0,0),function(){for(var i=arguments,n=-1,r=Ea(i.length-e,0),s=Hs(r);++ne}function xr(t,e){return t>=e}function Or(t){return d(t)&&Ji(t)&&na.call(t,"callee")&&!ua.call(t,"callee")}function Fr(t){return t===!0||t===!1||d(t)&&sa.call(t)==j}function Lr(t){return d(t)&&sa.call(t)==W}function Dr(t){return!!t&&1===t.nodeType&&d(t)&&!Hr(t)}function Sr(t){return null==t?!0:Ji(t)&&(Io(t)||Gr(t)||Or(t)||d(t)&&Ir(t.splice))?!t.length:!Wo(t).length}function Pr(t,e,i,n){i="function"==typeof i?oi(i,n,3):T;var r=i?i(t,e):T;return r===T?ze(t,e,i):!!r}function Br(t){return d(t)&&"string"==typeof t.message&&sa.call(t)==U}function kr(t){return"number"==typeof t&&ya(t)}function Ir(t){return Ar(t)&&sa.call(t)==Z}function Ar(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function zr(t,e,i,n){return i="function"==typeof i?oi(i,n,3):T,Re(t,ji(e),i)}function Nr(t){return Vr(t)&&t!=+t}function Rr(t){return null==t?!1:Ir(t)?oa.test(ia.call(t)):d(t)&&(ee(t)?oa:Pt).test(t)}function Mr(t){return null===t}function Vr(t){return"number"==typeof t||d(t)&&sa.call(t)==Y}function Hr(t){var e;if(!d(t)||sa.call(t)!=X||ee(t)||Or(t)||!na.call(t,"constructor")&&(e=t.constructor,"function"==typeof e&&!(e instanceof e)))return!1;var i;return g.support.ownLast?(Pe(t,function(t,e,n){return i=na.call(n,e),!1}),i!==!1):(Pe(t,function(t,e){i=e}),i===T||na.call(t,i))}function Kr(t){return Ar(t)&&sa.call(t)==J}function Gr(t){return"string"==typeof t||d(t)&&sa.call(t)==tt}function jr(t){return d(t)&&rn(t.length)&&!!Vt[sa.call(t)]}function Wr(t){return t===T}function Ur(t,e){return e>t}function Zr(t,e){return e>=t}function qr(t){var e=t?Ua(t):0;return rn(e)?e?g.support.unindexedChars&&Gr(t)?t.split(""):re(t):[]:os(t)}function Yr(t){return we(t,is(t))}function Xr(t,e,i){var n=Ma(t);return i&&tn(t,e,i)&&(e=T),e?be(n,e):n}function Jr(t){return Ie(t,is(t))}function Qr(t,e,i){var n=null==t?T:Ae(t,pn(e),e+"");return n===T?i:n}function ts(t,e){if(null==t)return!1;var i=na.call(t,e);if(!i&&!en(e)){if(e=pn(e),t=1==e.length?t:Ae(t,Ye(e,0,-1)),null==t)return!1;e=Fn(e),i=na.call(t,e)}return i||rn(t.length)&&Qi(e,t.length)&&(Io(t)||Or(t)||Gr(t))}function es(t,e,i){i&&tn(t,e,i)&&(e=T);for(var n=-1,r=Wo(t),s=r.length,a={};++n0,l=i.enumErrorProps&&(t===Qs||t instanceof Gs),c=i.enumPrototypes&&Ir(t);++r=Ca(e,i)&&ti?0:+i||0,n),i-=e.length,i>=0&&t.indexOf(e,i)==i}function ps(t){return t=s(t),t&&mt.test(t)?t.replace(gt,_):t}function ds(t){return t=s(t),t&&xt.test(t)?t.replace(Ct,u):t||"(?:)"}function gs(t,e,i){t=s(t),e=+e;var n=t.length;if(n>=e||!ya(e))return t;var r=(e-n)/2,a=$a(r),o=ma(r);return i=ki("",o,i),i.slice(0,a)+t+i}function vs(t,e,i){return(i?tn(t,e,i):null==e)?e=0:e&&(e=+e),t=ws(t),Oa(t,e||(St.test(t)?16:10))}function ms(t,e){var i="";if(t=s(t),e=+e,1>e||!t||!ya(e))return i;do e%2&&(i+=t),e=$a(e/2),t+=t;while(e);return i}function bs(t,e,i){return t=s(t),i=null==i?0:Ca(0>i?0:+i||0,t.length),t.lastIndexOf(e,i)==i}function $s(t,e,i){var n=g.templateSettings;i&&tn(t,e,i)&&(e=i=T),t=s(t),e=me(be({},i||e),n,ve);var r,a,o=me(be({},e.imports),n.imports,ve),h=Wo(o),l=ii(o,h),c=0,_=e.interpolate||It,u="__p += '",p=qs((e.escape||It).source+"|"+_.source+"|"+(_===wt?Lt:It).source+"|"+(e.evaluate||It).source+"|$","g"),d="//# sourceURL="+("sourceURL"in e?e.sourceURL:"lodash.templateSources["+ ++Mt+"]")+"\n";t.replace(p,function(e,i,n,s,o,h){return n||(n=s),u+=t.slice(c,h).replace(At,f),i&&(r=!0,u+="' +\n__e("+i+") +\n'"),o&&(a=!0,u+="';\n"+o+";\n__p += '"),n&&(u+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),c=h+e.length,e}),u+="';\n";var v=e.variable;v||(u="with (obj) {\n"+u+"\n}\n"),u=(a?u.replace(ut,""):u).replace(ft,"$1").replace(pt,"$1;"),u="function("+(v||"obj")+") {\n"+(v?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(r?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+u+"return __p\n}";var m=nh(function(){return js(h,d+"return "+u).apply(T,l)});if(m.source=u,Br(m))throw m;return m}function ws(t,e,i){var n=t;return(t=s(t))?(i?tn(n,e,i):null==e)?t.slice(b(t),$(t)+1):(e+="",t.slice(a(t,e),o(t,e)+1)):t}function ys(t,e,i){var n=t;return t=s(t),t?(i?tn(n,e,i):null==e)?t.slice(b(t)):t.slice(a(t,e+"")):t}function Ts(t,e,i){var n=t;return t=s(t),t?(i?tn(n,e,i):null==e)?t.slice(0,$(t)+1):t.slice(0,o(t,e+"")+1):t}function Es(t,e,i){i&&tn(t,e,i)&&(e=T);var n=k,r=I;if(null!=e)if(Ar(e)){var a="separator"in e?e.separator:a;n="length"in e?+e.length||0:n,r="omission"in e?s(e.omission):r}else n=+e||0;if(t=s(t),n>=t.length)return t;var o=n-r.length;if(1>o)return r;var h=t.slice(0,o);if(null==a)return h+r;if(Kr(a)){if(t.slice(o).search(a)){var l,c,_=t.slice(0,o);for(a.global||(a=qs(a.source,(Dt.exec(a)||"")+"g")),a.lastIndex=0;l=a.exec(_);)c=l.index;h=h.slice(0,null==c?o:c)}}else if(t.indexOf(a,o)!=o){var u=h.lastIndexOf(a);u>-1&&(h=h.slice(0,u))}return h+r}function Cs(t){return t=s(t),t&&vt.test(t)?t.replace(dt,w):t}function xs(t,e,i){return i&&tn(t,e,i)&&(e=T),t=s(t),t.match(e||zt)||[]}function Os(t,e,i){return i&&tn(t,e,i)&&(e=T),d(t)?Ds(t):ye(t,e)}function Fs(t){return function(){return t}}function Ls(t){return t}function Ds(t){return Ve(Te(t,!0))}function Ss(t,e){return He(t,Te(e,!0))}function Ps(t,e,i){if(null==i){var n=Ar(e),r=n?Wo(e):T,s=r&&r.length?Ie(e,r):T;(s?s.length:n)||(s=!1,i=e,e=t,t=this)}s||(s=Ie(e,Wo(e)));var a=!0,o=-1,h=Ir(t),l=s.length;i===!1?a=!1:Ar(i)&&"chain"in i&&(a=i.chain);for(;++ot||!ya(t))return[];var n=-1,r=Hs(Ca(t,Sa));for(e=oi(e,i,1);++nn?r[n]=e(n):e(n);return r}function Rs(t){var e=++ra;return s(t)+e}function Ms(t,e){return(+t||0)+(+e||0)}function Vs(t,e,i){return i&&tn(t,e,i)&&(e=T),e=Hi(e,i,3),1==e.length?de(Io(t)?t:un(t),e):ti(t,e)}i=i?ie.defaults(te.Object(),i,ie.pick(te,Nt)):te;var Hs=i.Array,Ks=i.Date,Gs=i.Error,js=i.Function,Ws=i.Math,Us=i.Number,Zs=i.Object,qs=i.RegExp,Ys=i.String,Xs=i.TypeError,Js=Hs.prototype,Qs=Gs.prototype,ta=Zs.prototype,ea=Ys.prototype,ia=js.prototype.toString,na=ta.hasOwnProperty,ra=0,sa=ta.toString,aa=te._,oa=qs("^"+ia.call(na).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ha=i.ArrayBuffer,la=i.clearTimeout,ca=i.parseFloat,_a=Ws.pow,ua=ta.propertyIsEnumerable,fa=Wi(i,"Set"),pa=i.setTimeout,da=Js.splice,ga=i.Uint8Array,va=Wi(i,"WeakMap"),ma=Ws.ceil,ba=Wi(Zs,"create"),$a=Ws.floor,wa=Wi(Hs,"isArray"),ya=i.isFinite,Ta=Wi(Zs,"keys"),Ea=Ws.max,Ca=Ws.min,xa=Wi(Ks,"now"),Oa=i.parseInt,Fa=Ws.random,La=Us.NEGATIVE_INFINITY,Da=Us.POSITIVE_INFINITY,Sa=4294967295,Pa=Sa-1,Ba=Sa>>>1,ka=9007199254740991,Ia=va&&new va,Aa={},za={};za[nt]=i.Float32Array,za[rt]=i.Float64Array,za[st]=i.Int8Array,za[at]=i.Int16Array,za[ot]=i.Int32Array,za[ht]=ga,za[lt]=i.Uint8ClampedArray,za[ct]=i.Uint16Array,za[_t]=i.Uint32Array;var Na={};Na[G]=Na[W]=Na[Y]={constructor:!0,toLocaleString:!0,toString:!0,valueOf:!0},Na[j]=Na[tt]={constructor:!0,toString:!0,valueOf:!0},Na[U]=Na[Z]=Na[J]={constructor:!0,toString:!0},Na[X]={constructor:!0},se(Rt,function(t){for(var e in Na)if(na.call(Na,e)){var i=Na[e];i[t]=na.call(i,t)}});var Ra=g.support={};!function(t){var e=function(){this.x=t},i={0:t,length:t},n=[];e.prototype={valueOf:t,y:t};for(var r in new e)n.push(r);Ra.enumErrorProps=ua.call(Qs,"message")||ua.call(Qs,"name"),Ra.enumPrototypes=ua.call(e,"prototype"),Ra.nonEnumShadows=!/valueOf/.test(n),Ra.ownLast="x"!=n[0],Ra.spliceObjects=(da.call(i,0,1),!i[0]),Ra.unindexedChars="x"[0]+Zs("x")[0]!="xx"}(1,0),g.templateSettings={escape:bt,evaluate:$t,interpolate:wt,variable:"",imports:{_:g}};var Ma=function(){function t(){}return function(e){if(Ar(e)){t.prototype=e;var i=new t;t.prototype=T}return i||{}}}(),Va=fi(Be),Ha=fi(ke,!0),Ka=pi(),Ga=pi(!0),ja=Ia?function(t,e){return Ia.set(t,e),t}:Ls,Wa=Ia?function(t){return Ia.get(t)}:ks,Ua=je("length"),Za=function(){var t=0,e=0;return function(i,n){var r=wo(),s=z-(r-e);if(e=r,s>0){if(++t>=A)return i}else t=0;return ja(i,n)}}(),qa=br(function(t,e){return d(t)&&Ji(t)?Ce(t,Se(e,!1,!0)):[]}),Ya=Ti(),Xa=Ti(!0),Ja=br(function(t){for(var e=t.length,i=e,r=Hs(_),s=Gi(),a=s===n,o=[];i--;){var h=t[i]=Ji(h=t[i])?h:[];r[i]=a&&h.length>=120?gi(i&&h):null}var l=t[0],c=-1,_=l?l.length:0,u=r[0];t:for(;++c<_;)if(h=l[c],(u?Jt(u,h):s(o,h,0))<0){for(var i=e;--i;){var f=r[i];if((f?Jt(f,h):s(t[i],h,0))<0)continue t}u&&u.push(h),o.push(h)}return o}),Qa=br(function(e,i){i=Se(i);var n=$e(e,i);return Ue(e,i.sort(t)),n}),to=zi(),eo=zi(!0),io=br(function(t){return ei(Se(t,!1,!0))}),no=br(function(t,e){return Ji(t)?Ce(t,e):[]}),ro=br(Rn),so=br(function(t){var e=t.length,i=e>2?t[e-2]:T,n=e>1?t[e-1]:T;return e>2&&"function"==typeof i?e-=2:(i=e>1&&"function"==typeof n?(--e,n):T,n=T),t.length=e,Mn(t,i,n)}),ao=br(function(t){return t=Se(t),this.thru(function(e){return ne(Io(e)?e:[fn(e)],t)})}),oo=br(function(t,e){return Ji(t)&&(t=un(t)),$e(t,Se(e))}),ho=_i(function(t,e,i){na.call(t,i)?++t[i]:t[i]=1}),lo=yi(Va),co=yi(Ha,!0),_o=xi(se,Va),uo=xi(ae,Ha),fo=_i(function(t,e,i){na.call(t,i)?t[i].push(e):t[i]=[e]}),po=_i(function(t,e,i){t[i]=e}),go=br(function(t,e,i){var n=-1,r="function"==typeof e,s=en(e),a=Ji(t)?Hs(t.length):[];return Va(t,function(t){var o=r?e:s&&null!=t?t[e]:T;a[++n]=o?o.apply(t,i):Xi(t,e,i)}),a}),vo=_i(function(t,e,i){t[i?0:1].push(e)},function(){return[[],[]]}),mo=Pi(ue,Va),bo=Pi(fe,Ha),$o=br(function(t,e){if(null==t)return[];var i=e[2];return i&&tn(e[0],e[1],i)&&(e.length=1),Qe(t,Se(e),[])}),wo=xa||function(){return(new Ks).getTime()},yo=br(function(t,e,i){var n=C;if(i.length){var r=v(i,yo.placeholder);n|=D}return Ni(t,n,e,i,r)}),To=br(function(t,e){e=e.length?Se(e):Jr(t);for(var i=-1,n=e.length;++i0||0>e)?new et(i):(0>t?i=i.takeRight(-t):t&&(i=i.drop(t)),e!==T&&(e=+e||0,i=0>e?i.dropRight(-e):i.take(e-t)),i)},et.prototype.takeRightWhile=function(t,e){return this.reverse().takeWhile(t,e).reverse()},et.prototype.toArray=function(){return this.take(Da)},Be(et.prototype,function(t,e){var i=/^(?:filter|map|reject)|While$/.test(e),n=/^(?:first|last)$/.test(e),r=g[n?"take"+("last"==e?"Right":""):e];r&&(g.prototype[e]=function(){var e=n?[1]:arguments,s=this.__chain__,a=this.__wrapped__,o=!!this.__actions__.length,h=a instanceof et,l=e[0],c=h||Io(a);c&&i&&"function"==typeof l&&1!=l.length&&(h=c=!1);var _=function(t){return n&&s?r(t,1)[0]:r.apply(T,_e([t],e))},u={func:jn,args:[_],thisArg:T},f=h&&!o;if(n&&!s)return f?(a=a.clone(),a.__actions__.push(u),t.call(a)):r.call(T,this.value())[0];if(!n&&c){a=f?a:new et(this);var p=t.apply(a,e);return p.__actions__.push(u),new Q(p,s)}return this.thru(_)})}),se(["join","pop","push","replace","shift","sort","splice","split","unshift"],function(t){var e=(/^(?:replace|split)$/.test(t)?ea:Js)[t],i=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",n=!Ra.spliceObjects&&/^(?:pop|shift|splice)$/.test(t),r=/^(?:join|pop|replace|shift)$/.test(t),s=n?function(){var t=e.apply(this,arguments);return 0===this.length&&delete this[0],t}:e;g.prototype[t]=function(){var t=arguments;return r&&!this.__chain__?s.apply(this.value(),t):this[i](function(e){return s.apply(e,t)})}}),Be(et.prototype,function(t,e){var i=g[e];if(i){var n=i.name+"",r=Aa[n]||(Aa[n]=[]);r.push({name:e,func:i})}}),Aa[Bi(T,x).name]=[{name:"wrapper",func:T}],et.prototype.clone=Kt,et.prototype.reverse=Gt,et.prototype.value=jt,g.prototype.chain=Wn,g.prototype.commit=Un,g.prototype.concat=ao,g.prototype.plant=Zn,g.prototype.reverse=qn,g.prototype.toString=Yn,g.prototype.run=g.prototype.toJSON=g.prototype.valueOf=g.prototype.value=Xn,g.prototype.collect=g.prototype.map,g.prototype.head=g.prototype.first,g.prototype.select=g.prototype.filter,g.prototype.tail=g.prototype.rest,g}var T,E="3.10.1",C=1,x=2,O=4,F=8,L=16,D=32,S=64,P=128,B=256,k=30,I="...",A=150,z=16,N=200,R=1,M=2,V="Expected a function",H="__lodash_placeholder__",K="[object Arguments]",G="[object Array]",j="[object Boolean]",W="[object Date]",U="[object Error]",Z="[object Function]",q="[object Map]",Y="[object Number]",X="[object Object]",J="[object RegExp]",Q="[object Set]",tt="[object String]",et="[object WeakMap]",it="[object ArrayBuffer]",nt="[object Float32Array]",rt="[object Float64Array]",st="[object Int8Array]",at="[object Int16Array]",ot="[object Int32Array]",ht="[object Uint8Array]",lt="[object Uint8ClampedArray]",ct="[object Uint16Array]",_t="[object Uint32Array]",ut=/\b__p \+= '';/g,ft=/\b(__p \+=) '' \+/g,pt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,dt=/&(?:amp|lt|gt|quot|#39|#96);/g,gt=/[&<>"'`]/g,vt=RegExp(dt.source),mt=RegExp(gt.source),bt=/<%-([\s\S]+?)%>/g,$t=/<%([\s\S]+?)%>/g,wt=/<%=([\s\S]+?)%>/g,yt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\n\\]|\\.)*?\1)\]/,Tt=/^\w*$/,Et=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\n\\]|\\.)*?)\2)\]/g,Ct=/^[:!,]|[\\^$.*+?()[\]{}|\/]|(^[0-9a-fA-Fnrtuvx])|([\n\r\u2028\u2029])/g,xt=RegExp(Ct.source),Ot=/[\u0300-\u036f\ufe20-\ufe23]/g,Ft=/\\(\\)?/g,Lt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Dt=/\w*$/,St=/^0[xX]/,Pt=/^\[object .+?Constructor\]$/,Bt=/^\d+$/,kt=/[\xc0-\xd6\xd8-\xde\xdf-\xf6\xf8-\xff]/g,It=/($^)/,At=/['\n\r\u2028\u2029\\]/g,zt=function(){var t="[A-Z\\xc0-\\xd6\\xd8-\\xde]",e="[a-z\\xdf-\\xf6\\xf8-\\xff]+";return RegExp(t+"+(?="+t+e+")|"+t+"?"+e+"|"+t+"+|[0-9]+","g")}(),Nt=["Array","ArrayBuffer","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Math","Number","Object","RegExp","Set","String","_","clearTimeout","isFinite","parseFloat","parseInt","setTimeout","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap"],Rt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Mt=-1,Vt={};Vt[nt]=Vt[rt]=Vt[st]=Vt[at]=Vt[ot]=Vt[ht]=Vt[lt]=Vt[ct]=Vt[_t]=!0,Vt[K]=Vt[G]=Vt[it]=Vt[j]=Vt[W]=Vt[U]=Vt[Z]=Vt[q]=Vt[Y]=Vt[X]=Vt[J]=Vt[Q]=Vt[tt]=Vt[et]=!1;var Ht={};Ht[K]=Ht[G]=Ht[it]=Ht[j]=Ht[W]=Ht[nt]=Ht[rt]=Ht[st]=Ht[at]=Ht[ot]=Ht[Y]=Ht[X]=Ht[J]=Ht[tt]=Ht[ht]=Ht[lt]=Ht[ct]=Ht[_t]=!0,Ht[U]=Ht[Z]=Ht[q]=Ht[Q]=Ht[et]=!1;var Kt={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss"},Gt={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},jt={"&":"&","<":"<",">":">",""":'"',"'":"'","`":"`"},Wt={"function":!0,object:!0},Ut={0:"x30",1:"x31",2:"x32",3:"x33",4:"x34",5:"x35",6:"x36",7:"x37",8:"x38",9:"x39",A:"x41",B:"x42",C:"x43",D:"x44",E:"x45",F:"x46",a:"x61",b:"x62",c:"x63",d:"x64",e:"x65",f:"x66",n:"x6e",r:"x72",t:"x74",u:"x75",v:"x76",x:"x78"},Zt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},qt=Wt[typeof exports]&&exports&&!exports.nodeType&&exports,Yt=Wt[typeof module]&&module&&!module.nodeType&&module,Xt=qt&&Yt&&"object"==typeof global&&global&&global.Object&&global,Jt=Wt[typeof self]&&self&&self.Object&&self,Qt=Wt[typeof window]&&window&&window.Object&&window,te=Xt||Qt!==(this&&this.window)&&Qt||Jt||this,ee=function(){try{Object({toString:0}+"")}catch(t){return function(){return!1}}return function(t){return"function"!=typeof t.toString&&"string"==typeof(t+"")}}(),ie=y();"function"==typeof i&&"object"==typeof i.amd&&i.amd&&i("lodash/main",[],function(){return ie})}.call(this),i("lodash",["lodash/main"],function(t){return t}),i("wcDocker/docker",["dcl/dcl","./types","./panel","./ghost","./splitter","./frame","./collapser","./layoutsimple","./layouttable","./tabframe","./drawer","./base","lodash"],function(t,e,i,n,r,s,a,o,h,l,c,_,u){var f={wcPanel:i,wcGhost:n,wcSplitter:r,wcFrame:s,wcCollapser:a,wcLayoutSimple:o,wcLayoutTable:h,wcDrawer:c,wcTabFrame:l},p=t(_,{declaredClass:"wcDocker",constructor:function(t,e){ + this.$outer=$(t),this.$container=$('
        '),this.$transition=$('
        '),this.$loading=null,this.$outer.append(this.$container),this.$container.append(this.$transition),this._canOrientTabs=!0,this._events={},this._root=null,this._frameList=[],this._floatingList=[],this._modalList=[],this._persistentList=[],this._focusFrame=null,this._placeholderPanel=null,this._contextTimer=0,this._dirty=!1,this._dirtyDontMove=!1,this._splitterList=[],this._tabList=[],this._collapser={},this._dockPanelTypeList=[],this._creatingPanel=!1,this._draggingSplitter=null,this._draggingFrame=null,this._draggingFrameSizer=null,this._draggingFrameTab=null,this._draggingFrameTopper=!1,this._draggingCustomTabFrame=null,this._ghost=null,this._menuTimer=0,this._mouseOrigin={x:0,y:0},this._resizeData={time:-1,timeout:!1,delta:150};var i={themePath:"Themes",theme:"default",loadingClass:"fa fa-spinner fa-pulse",allowContextMenu:!0,hideOnResize:!1,allowCollapse:!0,responseRate:10,moveStartDelay:300,edgeAnchorSize:50,panelAnchorSize:"15%",detachToWidth:"50%",detachToHeight:"50%"};this._options={};for(var n in f)i[n+"Class"]=f[n];for(var n in i)this._options[n]=i[n];for(var n in e)this._options[n]=e[n];this.__init()},themePath:function(t){return void 0!==t&&(this._options.themePath=t),this._options.themePath},theme:function(t){if(void 0!==t){var e=$("#wcTheme"),i=(new Date).getTime(),n=t.indexOf(".css");n>-1&&(t=t.substring(0,n));var r=$('');this._options.theme=t;var s=this;r[0].onload=function(){e.remove(),s.__update()},$("head").append(r)}return this._options.theme},isCollapseEnabled:function(){return this._canOrientTabs&&this._options.allowCollapse},registerPanelType:function(t,e,i){var n=e;"function"==typeof n&&(n={onCreate:e},console.log("WARNING: Passing in the creation function directly to wcDocker.registerPanelType parameter 2 is now deprecated and will be removed in the next version! Please use the preferred options object instead.")),"undefined"!=typeof i&&(n.isPrivate=i,console.log("WARNING: Passing in the isPrivate flag to wcDocker.registerPanelType parameter 3 is now deprecated and will be removed in the next version! Please use the preferred options object instead.")),$.isEmptyObject(n)&&(n=null);for(var r=0;r')),!0},panelTypes:function(t){for(var e=[],i=0;i=u&&c._curTab--,t.__container(this.$transition),t._parent=null,c._panelList.splice(u,1);break}if(!c.isCollapser()&&-1===c._curTab&&c._panelList.length&&(c._curTab=0),c.__updateTabs(),c.collapse(),!c.isCollapser()&&0===c._panelList.length)if(s)this.__addPlaceholder(c,this._options.placeholderHtml);else{var f=this._floatingList.indexOf(c);-1!==f&&this._floatingList.splice(f,1),f=this._frameList.indexOf(c),-1!==f&&this._frameList.splice(f,1);var p=c._parent;if(p&&p.instanceOf("wcSplitter")){p.__removeChild(c);var d;p.pane(0)?(d=p.pane(0),p._pane[0]=null):(d=p.pane(1),p._pane[1]=null),n===p&&(n._shift=d),d.__container(this.$transition),d._parent=null,f=this._splitterList.indexOf(p),-1!==f&&this._splitterList.splice(f,1);var g=p._parent;parentContainer=p.__container(),p.__destroy(),g&&g.instanceOf("wcSplitter")?(g.__removeChild(p),g.pane(0)?g.pane(1,d):g.pane(0,d)):g===this&&(this._root=d,d._parent=this,d.__container(parentContainer)),this.__update()}this._focusFrame===c&&(this._focusFrame=null),c.__destroy()}}t.initSize(h,l),i===e.DOCK.STACKED?this.__addPanelGrouped(t,n,r):this.__addPanelAlone(t,i,n,r),n==this._placeholderPanel&&(this.removePanel(this._placeholderPanel),this._placeholderPanel=null);var v=t._parent;return v&&v.instanceOf("wcFrame")&&1===v._panelList.length&&v.pos(o.left+h/2+20,o.top+l/2+20,!0),this.__update(!0),v&&v.instanceOf("wcFrame")&&_!==v._isFloating&&(v._isFloating?t.__trigger(e.EVENT.DETACHED):t.__trigger(e.EVENT.ATTACHED)),t.__trigger(e.EVENT.MOVED),t},findPanels:function(t){for(var e=[],i=0;i
        '),this.$outer.append(this.$loading);var n=$('
        ');"number"!=typeof e&&(e=.4),n.css("opacity",e),this.$loading.append(n);var r=$('
        ');if(this.$loading.append(r),t){var s=$(''+t+"");this.$loading.append(s)}"number"!=typeof i&&(i=1),r.css("opacity",i),s&&s.css("opacity",i)}},finishLoading:function(t){if(this.$loading)if(t>0){var e=this;this.$loading.fadeOut(t,function(){e.$loading.remove(),e.$loading=null})}else this.$loading.remove(),this.$loading=null},on:function(t,e){return t?(this._events[t]||(this._events[t]=[]),-1!==this._events[t].indexOf(e)?!1:(this._events[t].push(e),!0)):!1},off:function(t,e){if("undefined"==typeof t)this._events={};else if(this._events[t])if("undefined"==typeof e)this._events[t]=[];else for(var i=0;i0&&r.findPanels(u.name).length>=u.options.limit)continue;var f=null,p=null,d=u.name;u.options&&(u.options.faicon&&(p=u.options.faicon),u.options.icon&&(f=u.options.icon),u.options.title&&(d=u.options.title)),_[u.name]={name:d,icon:f,faicon:p,className:"wcMenuCreatePanel"}}}var g=0,v={},m=i;"function"==typeof i&&(m=i(t,s));for(var h=0;h');if(r.prepend(s),n.icon&&s.addClass(n.icon),n.faicon&&s.addClass("fa fa-menu fa-"+n.faicon+" fa-lg fa-fw"),r.hasClass("context-menu-submenu")){var a=$('
        ');r.append(a)}}n.items&&o(n.items)}}(e)}(E)},hide:function(t){r._ghost&&(r._ghost.destroy(),r._ghost=!1)}},animation:{duration:250,show:"fadeIn",hide:"fadeOut"},reposition:!1,autoHide:!0,zIndex:200,items:E}}})},bypassMenu:function(){this._menuTimer&&clearTimeout(this._menuTimer);for(var t in $.contextMenu.menus){var e=$.contextMenu.menus[t].selector;$(e).contextMenu(!1)}var i=this;this._menuTimer=setTimeout(function(){for(var t in $.contextMenu.menus){var e=$.contextMenu.menus[t].selector;$(e).contextMenu(!0)}i._menuTimer=null},0)},save:function(){var t={};t.floating=[];for(var i=0;i-1){if(1===w._draggingFrame._panelList.length)return;for(var n=0;n1||w._draggingFrame.panel()!==w._placeholderPanel)for(var n=0;c>n;++n)w.movePanel(w._draggingFrame.panel(),e.DOCK.STACKED,a,l)}var h=a._parent;h&&h.instanceOf("wcFrame")&&h.panel(s),w.__focus(h)}}else{w._draggingFrameTab||w._draggingFrame.panel(0);var a=w._draggingFrame.panel(parseInt($(w._draggingFrameTab).attr("id")));if(w.movePanel(a,e.DOCK.FLOAT,null,w._ghost.__rect()),!w._draggingFrameTab){var c=w._draggingFrame._panelList.length;if(c>1||w._draggingFrame.panel()!==w._placeholderPanel)for(var n=0;c>n;++n)w.movePanel(w._draggingFrame.panel(),e.DOCK.STACKED,a,{tabOrientation:w._draggingFrame._tabOrientation})}var h=a._parent;h&&h.instanceOf("wcFrame")&&(h.pos(i.x,i.y+w._ghost.__rect().h/2-10,!0),h._size.x=w._ghost.__rect().w,h._size.y=w._ghost.__rect().h),h.__update(),w.__focus(h)}else if(w._creatingPanel){var _=e.DOCK.FLOAT,u=null;r&&(_=r.loc,u=r.item?r.item._parent:r.panel),w.addPanel(w._creatingPanel,_,u,w._ghost.rect())}w._ghost.destroy(),w._ghost=null,w.trigger(e.EVENT.END_DOCK),w.__update()}return w._draggingSplitter&&(w._draggingSplitter.$pane[0].removeClass("wcResizing"),w._draggingSplitter.$pane[1].removeClass("wcResizing")),w._creatingPanel=!1,w._draggingSplitter=null,w._draggingFrame=null,w._draggingFrameSizer=null,w._draggingFrameTab=null,w._draggingFrameTopper=!1,w._draggingCustomTabFrame=null,w._removingPanel=null,!0}function n(t){T=t;var e=w.__mouse(t);if(!(3!==e.which&&(w._draggingSplitter||w._draggingFrameSizer||w._draggingCustomTabFrame||w._ghost||w._draggingFrame||w._draggingFrameTab)))return!0;var i=(new Date).getTime();if(i-y1&&w._draggingFrameTab,w._draggingFrameTopper,!w.__isLastFrame(w._draggingFrame))){w._draggingFrame.__shadow(!1);var o=$(document.elementFromPoint(e.x,e.y)),s=o.hasClass("wcPanelTab")?o:o.parents(".wcPanelTab");w._draggingFrameTab&&s.length&&w._draggingFrameTab!==s[0]&&(w._draggingFrameTab=w._draggingFrame.__tabMove(parseInt($(w._draggingFrameTab).attr("id")),parseInt(s.attr("id"))))}else{if((new Date).getTime()-C0;var o=w._draggingFrame.__rect();w._ghost=new(w.__getClass("wcGhost"))(o,i,w),w._draggingFrame.__checkAnchorDrop(i,!0,w._ghost,!0,w._draggingFrameTopper,!w.__isLastFrame(w._draggingFrame)),w.trigger(e.EVENT.BEGIN_DOCK)}break}for(var n=0;n .wcFrameButton",l),$("body").on("touchstart",".wcFrameButtonBar > .wcFrameButton",l),$("body").on("mousedown",".wcFrameTitleBar",p),$("body").on("touchstart",".wcFrameTitleBar",p),$("body").on("mousedown",".wcSplitterBar",f),$("body").on("touchstart",".wcSplitterBar",f),$("body").on("mousedown",".wcPanelTab",m),$("body").on("touchstart",".wcPanelTab",m),$("body").on("mouseup",".wcPanelTab",u),$("body").on("touchend",".wcPanelTab",u),$("body").on("mousedown",".wcLayout",d),$("body").on("touchstart",".wcLayout",d),$("body").on("mousedown",".wcFrameEdge",g),$("body").on("touchstart",".wcFrameEdge",g),$("body").on("mousedown",".wcCreatePanel",v),$("body").on("touchstart",".wcCreatePanel",v),$("body").on("mouseup",i),$("body").on("touchend",i),$("body").on("click",".wcCustomTab .wcFrameButton",c),$("body").on("click",".wcFrameButtonBar > .wcFrameButton",_),$("body").on("keyup",b);var y=(new Date).getTime(),T=null,E=0,C=0},__testLoadFinished:function(){for(var t=0;t>>0,i=Number(arguments[1])||0;for(i=0>i?Math.ceil(i):Math.floor(i),0>i&&(i+=e);e>i;i++)if(i in this&&this[i]===t)return i;return-1});var e=function(){for(var t=3,e=document.createElement("div"),i=e.getElementsByTagName("i");e.innerHTML="",i[0];);return t>4?t:void 0}();9>e?this._canOrientTabs=!1:this._canOrientTabs=t();var i=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);$("body").addClass(i?"wcMobile":"wcDesktop")},__findInner:function(){function t(t){return!!(t&&t.instanceOf("wcFrame")&&t.panel()&&!t.panel().moveable()||t.instanceOf("wcCollapser"))}for(var e=this._root;e&&e.instanceOf("wcSplitter");){var i=t(e._pane[0]),n=t(e._pane[1]);if(i&&!n)e=e._pane[1];else if(n&&!i)e=e._pane[0];else if(!i&&!n)break}return e},__initCollapsers:function(){function t(t){this._collapser[t]=this.__addCollapser(t,i),i=this._collapser[t]._parent,this._frameList.push(this._collapser[t]._drawer._frame)}if(this.isCollapseEnabled()&&$.isEmptyObject(this._collapser)){var i=this.__findInner();t.call(this,e.DOCK.LEFT),t.call(this,e.DOCK.RIGHT),t.call(this,e.DOCK.BOTTOM);var n=this;setTimeout(function(){n.__update()})}},__update:function(t){this._dirty=!0,this._dirtyDontMove=t},__forceUpdate:function(t){this._dirty=!1,this._root&&this._root.__update(t);for(var e=0;e
        '),l.$frame.prepend(l.$modalBlocker),t.moveable(!1),l.$frame.addClass("wcModal"),this._modalList.push(l)),r){var c=l.pos(void 0,void 0,!0);r.hasOwnProperty("x")&&(c.x=r.x+r.w/2),r.hasOwnProperty("y")&&(c.y=r.y+r.h/2),l.pos(c.x,c.y,!0),l._size={x:r.w,y:r.h}}return void this.__orderPanels()}if(n){for(var _=n._parent,u=n;_&&!_.instanceOf("wcSplitter")&&!_.instanceOf("wcDocker");)u=_,_=_._parent;if(_&&_.instanceOf("wcSplitter")){var f,p=_.pane(0),d=(_.pane(1),{x:-1,y:-1});if(p===u?(f=new(this.__getClass("wcSplitter"))(this.$transition,_,i!==e.DOCK.BOTTOM&&i!==e.DOCK.TOP),d.x=_.$pane[0].width(),d.y=_.$pane[0].height(),_.pane(0,f)):(f=new(this.__getClass("wcSplitter"))(this.$transition,_,i!==e.DOCK.BOTTOM&&i!==e.DOCK.TOP),d.x=_.$pane[1].width(),d.y=_.$pane[1].height(),_.pane(1,f)),f){if(f.scrollable(0,!1,!1),f.scrollable(1,!1,!1),r||(r={w:t._size.x,h:t._size.y}),r)switch(r.w<0&&(r.w=d.x/2),r.h<0&&(r.h=d.y/2),i){case e.DOCK.LEFT:f.pos(r.w/d.x);break;case e.DOCK.RIGHT:f.pos(1-r.w/d.x);break;case e.DOCK.TOP:f.pos(r.h/d.y);break;case e.DOCK.BOTTOM:f.pos(1-r.h/d.y)}else f.pos(.5);l=new(this.__getClass("wcFrame"))(this.$transition,f,!1),this._frameList.push(l),i===e.DOCK.LEFT||i===e.DOCK.TOP?(f.pane(0,l),f.pane(1,u)):(f.pane(0,u),f.pane(1,l)),l.addPanel(t)}return}}var g=this,v=this.$container,l=new(this.__getClass("wcFrame"))(this.$transition,g,!1);if(this._frameList.push(l),g._root){var f=new(this.__getClass("wcSplitter"))(v,g,i!==e.DOCK.BOTTOM&&i!==e.DOCK.TOP);if(f){l._parent=f,f.scrollable(0,!1,!1),f.scrollable(1,!1,!1);var d={x:v.width(),y:v.height()};if(r)switch(r.w<0&&(r.w=d.x/2),r.h<0&&(r.h=d.y/2),i){case e.DOCK.LEFT:f.pos(r.w/d.x);break;case e.DOCK.RIGHT:f.pos(1-r.w/d.x);break;case e.DOCK.TOP:f.pos(r.h/d.y);break;case e.DOCK.BOTTOM:f.pos(1-r.h/d.y)}else f.__findBestPos();i===e.DOCK.LEFT||i===e.DOCK.TOP?(f.pane(0,l),f.pane(1,g._root)):(f.pane(0,g._root),f.pane(1,l)),g._root=f}}else g._root=l,l.__container(v);l.addPanel(t)},__addCollapser:function(t,i){var n=null;if(i){for(var r=i._parent,s=i;r&&!r.instanceOf("wcSplitter")&&!r.instanceOf("wcDocker");)s=r,r=r._parent;var a=new(this.__getClass("wcSplitter"))(this.$transition,r,t!==e.DOCK.BOTTOM&&t!==e.DOCK.TOP);if(r&&r.instanceOf("wcDocker")&&(this._root=a,a.__container(this.$container)),r&&r.instanceOf("wcSplitter")){var o=r.left(),h=(r.right(),{x:-1,y:-1});o===s?(h.x=r.$pane[0].width(),h.y=r.$pane[0].height(),r.pane(0,a)):(a=new(this.__getClass("wcSplitter"))(this.$transition,r,t!==e.DOCK.BOTTOM&&t!==e.DOCK.TOP),h.x=r.$pane[1].width(),h.y=r.$pane[1].height(),r.pane(1,a))}if(a){switch(a.scrollable(0,!1,!1),a.scrollable(1,!1,!1),n=new(this.__getClass("wcCollapser"))(this.$transition,a,t),t){case e.DOCK.TOP:case e.DOCK.LEFT:a.pos(0);break;case e.DOCK.BOTTOM:case e.DOCK.RIGHT:a.pos(1)}t===e.DOCK.LEFT||t===e.DOCK.TOP?(a.pane(0,n),a.pane(1,s)):(a.pane(0,s),a.pane(1,n))}}return n},__addPlaceholder:function(t,i){this._placeholderPanel&&console.log("WARNING: wcDocker creating placeholder panel when one already exists"),this._placeholderPanel=new(this.__getClass("wcPanel"))(this,e.PANEL_PLACEHOLDER,{}),this._placeholderPanel._isPlaceholder=!0,this._placeholderPanel.__container(this.$transition),this._placeholderPanel._panelObject=new function(t){t.title(!1),t.closeable(!1),i&&t.layout().addItem($('
        '+i+"
        "))}(this._placeholderPanel),t?this.__addPanelGrouped(this._placeholderPanel,t):this.__addPanelAlone(this._placeholderPanel,e.DOCK.TOP),this.__update()},__closePanel:function(t){var e=!1,i=this.panelTypeInfo(t._type);i&&i.isPersistent&&(e=!0,this._persistentList.push(t)),this.removePanel(t,e),this.__update()},__stringToPercent:function(t,e){if("string"==typeof t){if(-1!==t.indexOf("%",t.length-1))return parseFloat(t)/100;if(-1!==t.indexOf("px",t.length-2))return parseFloat(t)/e}return parseFloat(t)},__stringToPixel:function(t,e){if("string"==typeof t){if(-1!==t.indexOf("%",t.length-1))return parseFloat(t)/100*e;if(-1!==t.indexOf("px",t.length-2))return parseFloat(t)}return parseFloat(t)}});for(var d in e)p[d]=e[d];return p.defaultClasses=f,p}),i("wcDocker/iframe",["dcl/dcl","./types","./base"],function(t,e,i){var n=t(i,{declaredClass:"wcIFrame",constructor:function(t,e){this._panel=e,this._layout=e.layout(),this.$container=$(t),this.$frame=null,this.$focus=null,this.$iFrame=null,this._window=null,this._isDocking=!1,this._isHovering=!1,this._boundEvents=[],this._onLoadFuncs=[],this._onClosedFuncs=[],this.__init()},openURL:function(t){this.__clearFrame(),this.$iFrame=$(""),this.$frame.prepend(this.$iFrame),this.__onMoved(),this._window=this.$iFrame[0].contentWindow||this.$iFrame[0],this.__updateFrame(),this._window.location.replace(t),this.$iFrame[0].focus(),this.$iFrame.hover(this.__onHoverEnter.bind(this),this.__onHoverExit.bind(this));var e=this;this.$iFrame.load(function(){for(var t=0;tiFrames not supported on your device!"),this.$frame.prepend(this.$iFrame),this.__onMoved(),this._window=this.$iFrame[0].contentWindow||this.$iFrame[0],this.__updateFrame(),this._window.document.open(),this._window.document.write(t),this._window.document.close(),this.$iFrame[0].focus(),this.$iFrame.hover(this.__onHoverEnter.bind(this),this.__onHoverExit.bind(this));var e=this;this.$iFrame.load(function(){for(var t=0;tiFrames not supported on your device!"),this.$frame.prepend(this.$iFrame),this.__onMoved(),this._window=this.$iFrame[0].contentWindow||this.$iFrame[0],this.__updateFrame(),this.$iFrame[0].srcdoc=t,this.$iFrame[0].focus(),this.$iFrame.hover(this.__onHoverEnter.bind(this),this.__onHoverExit.bind(this));var e=this;this.$iFrame.load(function(){for(var t=0;t'),this.$focus=$('
        '),this._panel.docker().$container.append(this.$frame),this.$frame.append(this.$focus),this._boundEvents.push({event:e.EVENT.VISIBILITY_CHANGED,handler:this.__onVisibilityChanged.bind(this)}),this._boundEvents.push({event:e.EVENT.BEGIN_DOCK,handler:this.__onBeginDock.bind(this)}),this._boundEvents.push({event:e.EVENT.END_DOCK,handler:this.__onEndDock.bind(this)}),this._boundEvents.push({event:e.EVENT.MOVE_STARTED,handler:this.__onMoveStarted.bind(this)}),this._boundEvents.push({event:e.EVENT.RESIZE_STARTED,handler:this.__onMoveStarted.bind(this)}),this._boundEvents.push({event:e.EVENT.MOVE_ENDED,handler:this.__onMoveFinished.bind(this)}),this._boundEvents.push({event:e.EVENT.RESIZE_ENDED,handler:this.__onMoveFinished.bind(this)}),this._boundEvents.push({event:e.EVENT.MOVED,handler:this.__onMoved.bind(this)}),this._boundEvents.push({event:e.EVENT.RESIZED,handler:this.__onMoved.bind(this)}),this._boundEvents.push({event:e.EVENT.ATTACHED,handler:this.__onAttached.bind(this)}),this._boundEvents.push({event:e.EVENT.DETACHED,handler:this.__updateFrame.bind(this)}),this._boundEvents.push({event:e.EVENT.GAIN_FOCUS,handler:this.__updateFrame.bind(this)}),this._boundEvents.push({event:e.EVENT.LOST_FOCUS,handler:this.__updateFrame.bind(this)}),this._boundEvents.push({event:e.EVENT.PERSISTENT_OPENED,handler:this.__updateFrame.bind(this)}),this._boundEvents.push({event:e.EVENT.PERSISTENT_CLOSED,handler:this.__updateFrame.bind(this)}),this._boundEvents.push({event:e.EVENT.CLOSED,handler:this.__onClosed.bind(this)}),this._boundEvents.push({event:e.EVENT.ORDER_CHANGED,handler:this.__onOrderChanged.bind(this)});for(var t=0;t'),this.$webView[0].src=t;var n=["partition","preload","webpreferences","allowpopups","blinkfeatures","disableblinkfeatures","guestinstance","disableguestresize"];n.forEach(function(t){e[t]&&(i.$webView[0][t]=e[t])});for(var r=0;r'),this.$focus=$('
        '),this._panel.docker().$container.append(this.$frame),this.$frame.append(this.$focus),this._boundEvents.push({event:e.EVENT.VISIBILITY_CHANGED,handler:this.__onVisibilityChanged.bind(this)}),this._boundEvents.push({event:e.EVENT.BEGIN_DOCK,handler:this.__onBeginDock.bind(this)}),this._boundEvents.push({event:e.EVENT.END_DOCK,handler:this.__onEndDock.bind(this)}),this._boundEvents.push({event:e.EVENT.MOVE_STARTED,handler:this.__onMoveStarted.bind(this)}),this._boundEvents.push({event:e.EVENT.RESIZE_STARTED,handler:this.__onMoveStarted.bind(this)}),this._boundEvents.push({event:e.EVENT.MOVE_ENDED,handler:this.__onMoveFinished.bind(this)}),this._boundEvents.push({event:e.EVENT.RESIZE_ENDED,handler:this.__onMoveFinished.bind(this)}),this._boundEvents.push({event:e.EVENT.MOVED,handler:this.__onMoved.bind(this)}),this._boundEvents.push({event:e.EVENT.RESIZED,handler:this.__onMoved.bind(this)}),this._boundEvents.push({event:e.EVENT.ATTACHED,handler:this.__onAttached.bind(this)}),this._boundEvents.push({event:e.EVENT.DETACHED,handler:this.__updateFrame.bind(this)}),this._boundEvents.push({event:e.EVENT.GAIN_FOCUS,handler:this.__updateFrame.bind(this)}),this._boundEvents.push({event:e.EVENT.LOST_FOCUS,handler:this.__updateFrame.bind(this)}),this._boundEvents.push({event:e.EVENT.PERSISTENT_OPENED,handler:this.__updateFrame.bind(this)}),this._boundEvents.push({event:e.EVENT.PERSISTENT_CLOSED,handler:this.__updateFrame.bind(this)}),this._boundEvents.push({event:e.EVENT.CLOSED,handler:this.__onClosed.bind(this)}),this._boundEvents.push({event:e.EVENT.ORDER_CHANGED,handler:this.__onOrderChanged.bind(this)});for(var t=0;t'),this.$focus=$('
        '),this._panel.docker().$container.append(this.$frame),this.$frame.append(this.$focus),this._boundEvents.push({event:e.EVENT.VISIBILITY_CHANGED,handler:this.__onVisibilityChanged.bind(this)}),this._boundEvents.push({event:e.EVENT.BEGIN_DOCK,handler:this.__onBeginDock.bind(this)}),this._boundEvents.push({event:e.EVENT.END_DOCK,handler:this.__onEndDock.bind(this)}),this._boundEvents.push({event:e.EVENT.MOVE_STARTED,handler:this.__onMoveStarted.bind(this)}),this._boundEvents.push({event:e.EVENT.RESIZE_STARTED,handler:this.__onMoveStarted.bind(this)}),this._boundEvents.push({event:e.EVENT.MOVE_ENDED,handler:this.__onMoveFinished.bind(this)}),this._boundEvents.push({event:e.EVENT.RESIZE_ENDED,handler:this.__onMoveFinished.bind(this)}),this._boundEvents.push({event:e.EVENT.MOVED,handler:this.__onMoved.bind(this)}),this._boundEvents.push({event:e.EVENT.RESIZED,handler:this.__onMoved.bind(this)}),this._boundEvents.push({event:e.EVENT.ATTACHED,handler:this.__onAttached.bind(this)}),this._boundEvents.push({event:e.EVENT.DETACHED,handler:this.__updateFrame.bind(this)}),this._boundEvents.push({event:e.EVENT.GAIN_FOCUS,handler:this.__updateFrame.bind(this)}),this._boundEvents.push({event:e.EVENT.LOST_FOCUS,handler:this.__updateFrame.bind(this)}),this._boundEvents.push({event:e.EVENT.PERSISTENT_OPENED,handler:this.__updateFrame.bind(this)}),this._boundEvents.push({event:e.EVENT.PERSISTENT_CLOSED,handler:this.__updateFrame.bind(this)}),this._boundEvents.push({event:e.EVENT.CLOSED,handler:this.__onClosed.bind(this)}),this._boundEvents.push({event:e.EVENT.ORDER_CHANGED,handler:this.__onOrderChanged.bind(this)});for(var t=0;t Date: Fri, 2 Feb 2018 18:35:10 +0100 Subject: [PATCH 2/2] Bug fix for https://github.com/WebCabin/wcDocker/issues/108. Compiled correctly. --- Build/Themes/bigRed.min.css | 2 +- Build/Themes/default.min.css | 2 +- Build/Themes/ideDark.min.css | 2 +- Build/Themes/shadow.min.css | 2 +- Build/wcDocker.js | 3 +-- Build/wcDocker.min.css | 2 +- Build/wcDocker.min.js | 15 +++++++++------ 7 files changed, 15 insertions(+), 13 deletions(-) diff --git a/Build/Themes/bigRed.min.css b/Build/Themes/bigRed.min.css index 8c59284b..824f91e4 100755 --- a/Build/Themes/bigRed.min.css +++ b/Build/Themes/bigRed.min.css @@ -1 +1 @@ -.wcDocker,.wcPanelBackground{background-color:#A55}.wcPanelBackground .wcCenter{background-color:#733}.wcFrameFlasher{background-color:rgba(255,0,0,.25)}.wcFrameShadower{background-color:rgba(0,0,0,.25)}.wcFrameTitleBar{height:20px;background-color:#822;text-align:left}.wcFrameTitle{font-size:15px;font-weight:700;text-align:center;padding-top:3px;background-color:#A55}.wcFrameCenter{top:20px}.wcFrameButton{width:16px;height:16px;border:2px outset #411;background-color:#522;font-size:15px}.wcFrameButton:hover,.wcFrameButtonHover{border:2px outset #633;background-color:#684040}.wcFrameButton:active,.wcFrameButtonActive{border:2px inset #A55;background-color:#822}.wcFrameButtonToggled,.wcFrameButtonToggled:hover{border-style:inset}.wcLayoutGrid,.wcLayoutGrid td,.wcLayoutGrid tr{border:1px solid #555}.wcLayoutGridAltColor,.wcLayoutGridAlternate tr:nth-child(even){background-color:rgba(200,150,150,.2)!important}.wcFrameEdge{position:absolute;z-index:2;border:2px outset #411;background-color:#200}.wcSplitterBar{border:1px solid #411;background-color:#411}.wcSplitterBarV{border-left-style:solid;border-left-color:#822}.wcSplitterBarH{border-top-style:solid;border-top-color:#822}.wcSplitterBarV.wcSplitterBarStatic{width:0}.wcSplitterBarH.wcSplitterBarStatic{height:0}.wcPanelTab{color:#42454a;background-color:#AA7070;border:1px solid #511;border-radius:5px 5px 0 0;border-bottom:0;margin-right:1px;margin-top:5px;font-size:15px;box-shadow:inset 0 2px 4px rgba(0,0,0,.5);padding-left:2px;padding-right:2px;padding-bottom:0}.wcPanelTab:hover,.wcPanelTabHover{background-color:#AA8080}.wcPanelTabActive{color:#000;background-color:#A55;font-weight:700;margin-top:1px;font-size:16px;line-height:18px}.wcPanelTabActive:hover,.wcPanelTabActiveHover{background-color:#C66}.wcGhost{background-color:#411;border-radius:6px}.wcScrollbar,::-webkit-scrollbar{width:12px;height:12px;background-color:#A55}.wcScrollbarCorner,::-webkit-scrollbar-corner{background-color:#A55}.wcScrollbarTrack,::-webkit-scrollbar-track{box-shadow:inset 0 0 6px rgba(0,0,0,.5);border-radius:10px}.wcScrollbarThumb,::-webkit-scrollbar-thumb{border-radius:10px;box-shadow:inset 0 0 6px rgba(0,0,0,.7)}.context-menu-list,.wcMenuList{border:1px solid #A44}.context-menu-item,.context-menu-list,.wcMenuItem{background-color:#622}.context-menu-item.hover,.wcMenuItem:hover,.wcMenuItemHover{background-color:#411}.context-menu-item.disabled,.wcMenuItem.disabled{color:#311;background-color:#622}.context-menu-separator,.wcMenuSeparator{border:2px solid #622;background-color:#733}.wcLoadingBackground{background-color:rgba(55,55,55,1);opacity:.4}.wcButton,.wcInput,.wcSelect,button,input,select{background-color:#A44}.wcLoadingIcon{color:#222}.wcLoadingLabel{color:#111}.wcButton,button{border:1px outset #A44}.wcButton:hover,.wcButtonHover,button:hover{border:1px outset #B66;background-color:#B66}.wcButton:active,.wcButtonActive,button:active{border:1px inset #B66;background-color:#B66}.wcButton:active.wcButtonHover,.wcButton:active:hover,.wcButton:hover.wcButtonActive,.wcButtonActive.wcButtonHover,button:active:hover{border:1px inset #C88;background-color:#C88}.wcButton.disabled,.wcButtonDisabled,button:disabled{border:1px outset #933!important;background-color:#933!important;color:#533!important}.wcMobile .wcFrameTitleBar{height:29px}.wcMobile .wcFrameTitle{font-size:20px}.wcMobile .wcFrameButton{width:25px;height:25px;font-size:22px}.wcMobile .wcFrameCenter{top:29px}.wcMobile .wcPanelTab{font-size:14px;height:29px}.wcMobile .wcPanelTab>div{margin-top:4px}.wcMobile .wcSplitterBarV.wcSplitterBar:not(.wcSplitterBarStatic){width:12px;border-width:3px}.wcMobile .wcSplitterBarH.wcSplitterBar:not(.wcSplitterBarStatic){height:12px;border-width:3px}.wcMobile .wcButton,.wcMobile .wcInput,.wcMobile .wcSelect,.wcMobile button,.wcMobile input,.wcMobile select{font-size:22px} \ No newline at end of file +.wcDocker{background-color:#a55}.wcPanelBackground{background-color:#a55}.wcPanelBackground .wcCenter{background-color:#733}.wcFrameFlasher{background-color:rgba(255,0,0,.25)}.wcFrameShadower{background-color:rgba(0,0,0,.25)}.wcFrameTitleBar{height:20px;background-color:#822;text-align:left}.wcFrameTitle{font-size:15px;font-weight:700;text-align:center;padding-top:3px;background-color:#a55}.wcFrameCenter{top:20px}.wcFrameButton{width:16px;height:16px;border:2px outset #411;background-color:#522;font-size:15px}.wcFrameButton:hover,.wcFrameButtonHover{border:2px outset #633;background-color:#684040}.wcFrameButton:active,.wcFrameButtonActive{border:2px inset #a55;background-color:#822}.wcFrameButtonToggled,.wcFrameButtonToggled:hover{border-style:inset}.wcLayoutGrid,.wcLayoutGrid td,.wcLayoutGrid tr{border:1px solid #555}.wcLayoutGridAltColor,.wcLayoutGridAlternate tr:nth-child(even){background-color:rgba(200,150,150,.2)!important}.wcFrameEdge{position:absolute;z-index:2;border:2px outset #411;background-color:#200}.wcSplitterBar{border:1px solid #411;background-color:#411}.wcSplitterBarV{border-left-style:solid;border-left-color:#822}.wcSplitterBarH{border-top-style:solid;border-top-color:#822}.wcSplitterBarV.wcSplitterBarStatic{width:0}.wcSplitterBarH.wcSplitterBarStatic{height:0}.wcPanelTab{color:#42454a;background-color:#aa7070;border:1px solid #511;border-radius:5px 5px 0 0;border-bottom:0;margin-right:1px;margin-top:5px;font-size:15px;box-shadow:inset 0 2px 4px rgba(0,0,0,.5);padding-left:2px;padding-right:2px;padding-bottom:0}.wcPanelTab:hover,.wcPanelTabHover{background-color:#aa8080}.wcPanelTabActive{color:#000;background-color:#a55;font-weight:700;margin-top:1px;font-size:16px;line-height:18px}.wcPanelTabActive:hover,.wcPanelTabActiveHover{background-color:#c66}.wcGhost{background-color:#411;border-radius:6px}.wcScrollbar,::-webkit-scrollbar{width:12px;height:12px;background-color:#a55}.wcScrollbarCorner,::-webkit-scrollbar-corner{background-color:#a55}.wcScrollbarTrack,::-webkit-scrollbar-track{box-shadow:inset 0 0 6px rgba(0,0,0,.5);border-radius:10px}.wcScrollbarThumb,::-webkit-scrollbar-thumb{border-radius:10px;box-shadow:inset 0 0 6px rgba(0,0,0,.7)}.context-menu-list,.wcMenuList{border:1px solid #a44}.context-menu-item,.context-menu-list,.wcMenuItem{background-color:#622}.context-menu-item.hover,.wcMenuItem:hover,.wcMenuItemHover{background-color:#411}.context-menu-item.disabled,.wcMenuItem.disabled{color:#311;background-color:#622}.context-menu-separator,.wcMenuSeparator{border:2px solid #622;background-color:#733}.wcLoadingBackground{background-color:rgba(55,55,55,1);opacity:.4}.wcLoadingIcon{color:#222}.wcLoadingLabel{color:#111}.wcInput,input{background-color:#a44}.wcSelect,select{background-color:#a44}.wcButton,button{border:1px outset #a44;background-color:#a44}.wcButton:hover,.wcButtonHover,button:hover{border:1px outset #b66;background-color:#b66}.wcButton:active,.wcButtonActive,button:active{border:1px inset #b66;background-color:#b66}.wcButton:active.wcButtonHover,.wcButton:active:hover,.wcButton:hover.wcButtonActive,.wcButtonActive.wcButtonHover,button:active:hover{border:1px inset #c88;background-color:#c88}.wcButton.disabled,.wcButtonDisabled,button:disabled{border:1px outset #933!important;background-color:#933!important;color:#533!important}.wcMobile .wcFrameTitleBar{height:29px}.wcMobile .wcFrameTitle{font-size:20px}.wcMobile .wcFrameButton{width:25px;height:25px;font-size:22px}.wcMobile .wcFrameCenter{top:29px}.wcMobile .wcPanelTab{font-size:14px;height:29px}.wcMobile .wcPanelTab>div{margin-top:4px}.wcMobile .wcSplitterBarV.wcSplitterBar:not(.wcSplitterBarStatic){width:12px;border-width:3px}.wcMobile .wcSplitterBarH.wcSplitterBar:not(.wcSplitterBarStatic){height:12px;border-width:3px}.wcMobile .wcButton,.wcMobile .wcInput,.wcMobile .wcSelect,.wcMobile button,.wcMobile input,.wcMobile select{font-size:22px} \ No newline at end of file diff --git a/Build/Themes/default.min.css b/Build/Themes/default.min.css index 5981e062..bde2053e 100755 --- a/Build/Themes/default.min.css +++ b/Build/Themes/default.min.css @@ -13,4 +13,4 @@ * MIT License http://www.opensource.org/licenses/mit-license * GPL v3 http://opensource.org/licenses/GPL-3.0 * - */.wcDocker{background-color:gray}.wcModalBlocker{background-color:rgba(0,0,0,.8)}.wcPanelBackground{background-color:gray}.wcPanelBackground .wcCenter{background-color:#a9a9a9}.wcFrameFlasher,.wcFrameShadower{background-color:rgba(255,255,255,.25)}.wcFrameTitleBar{height:17px;background-color:#555}.wcFrameTitle{font-size:12px;font-weight:700;text-align:center;padding-top:3px;background-color:gray}.wcFrameButton{width:13px;height:13px;border:2px outset #444;font-size:11px;background-color:#555}.wcFrameButton:hover,.wcFrameButtonHover{background-color:#666}.wcFrameButton:active,.wcFrameButtonActive{border:2px inset #444}.wcFrameCenter{top:17px}.wcLayoutGrid,.wcLayoutGrid td,.wcLayoutGrid tr{border:1px solid #555}.wcLayoutGridAltColor,.wcLayoutGridAlternate tr:nth-child(even){background-color:rgba(200,200,200,.2)}.wcPanelTab{color:#42454a;background-color:#777;border:1px solid #000;border-radius:2px 2px 0 0;border-bottom:0;margin-right:1px;margin-top:3px;font-size:12px;padding-left:2px;padding-right:2px;padding-bottom:0}.wcPanelTab:hover,.wcPanelTabHover{background-color:#AAA}.wcPanelTabActive{color:#000;background-color:gray;font-weight:700;margin-top:1px}.wcPanelTabActive:hover,.wcPanelTabActiveHover{background-color:#CCC}.wcFrameEdge{position:absolute;z-index:2;border:2px outset #444;background-color:#222}.wcSplitterBar{border:1px outset #a9a9a9;background-color:gray}.wcSplitterBarV.wcSplitterBarStatic{width:0}.wcSplitterBarH.wcSplitterBarStatic{height:0}.wcGhost{background-color:#444;border:0;border-radius:6px}.wcScrollbar,::-webkit-scrollbar{width:12px;height:12px;background-color:#888}.wcScrollbarCorner,::-webkit-scrollbar-corner{background-color:#888}.wcScrollbarTrack,::-webkit-scrollbar-track{box-shadow:inset 0 0 6px rgba(0,0,0,.5);border-radius:10px}.wcScrollbarThumb,::-webkit-scrollbar-thumb{border-radius:10px;box-shadow:inset -2px 0 6px rgba(0,0,0,.7)}.context-menu-list,.wcMenuList{border:1px solid #111}.context-menu-item,.context-menu-list,.wcMenuItem{background-color:#444}.context-menu-item.hover,.wcMenuItem:hover,.wcMenuItemHover{background-color:#666}.context-menu-item.disabled,.wcMenuItem.disabled{color:#333;background-color:#444}.context-menu-separator,.wcMenuSeparator{border:2px solid #444;background-color:#777}.wcInput,.wcSelect,input,select{border:1px solid #000}.wcLoadingBackground{background-color:rgba(55,55,55,1)}.wcLoadingIcon{color:#222}.wcLoadingLabel{color:#111}.wcInput,input{vertical-align:middle}.wcButton,button{border:1px outset #777;background-color:#777;line-height:1em}.wcButton:hover,.wcButtonHover,button:hover{border:1px outset #999;background-color:#999}.wcButton:active,.wcButtonActive,button:active{border:1px inset #666;background-color:#666}.wcButton:active.wcButtonHover,.wcButton:active:hover,.wcButton:hover.wcButtonActive,.wcButtonActive.wcButtonHover,button:active:hover{border:1px inset #999;background-color:#999}.wcButton.disabled,.wcButtonDisabled,button:disabled{border:1px outset #666!important;background-color:#666!important;color:#555!important}.wcButton:focus,.wcButtonFocus,button:focus{outline:0}.wcMobile .wcFrameTitleBar{height:29px}.wcMobile .wcFrameTitle{font-size:20px}.wcMobile .wcFrameButton{width:25px;height:25px;font-size:22px}.wcMobile .wcFrameCenter{top:29px}.wcMobile .wcPanelTab{font-size:14px;height:29px}.wcMobile .wcPanelTab>div{margin-top:4px}.wcMobile .wcSplitterBarV.wcSplitterBar:not(.wcSplitterBarStatic){width:12px;border-width:3px}.wcMobile .wcSplitterBarH.wcSplitterBar:not(.wcSplitterBarStatic){height:12px;border-width:3px}.wcMobile .wcButton,.wcMobile .wcInput,.wcMobile .wcSelect,.wcMobile button,.wcMobile input,.wcMobile select{font-size:22px} \ No newline at end of file + */.wcDocker{background-color:gray}.wcModalBlocker{background-color:rgba(0,0,0,.8)}.wcPanelBackground{background-color:gray}.wcPanelBackground .wcCenter{background-color:#a9a9a9}.wcFrameFlasher{background-color:rgba(255,255,255,.25)}.wcFrameShadower{background-color:rgba(255,255,255,.25)}.wcFrameTitleBar{height:17px;background-color:#555}.wcFrameTitle{font-size:12px;font-weight:700;text-align:center;padding-top:3px;background-color:gray}.wcFrameButton{width:13px;height:13px;border:2px outset #444;font-size:11px;background-color:#555}.wcFrameButton:hover,.wcFrameButtonHover{background-color:#666}.wcFrameButton:active,.wcFrameButtonActive{border:2px inset #444}.wcFrameCenter{top:17px}.wcLayoutGrid,.wcLayoutGrid td,.wcLayoutGrid tr{border:1px solid #555}.wcLayoutGridAltColor,.wcLayoutGridAlternate tr:nth-child(even){background-color:rgba(200,200,200,.2)}.wcPanelTab{color:#42454a;background-color:#777;border:1px solid #000;border-radius:2px 2px 0 0;border-bottom:0;margin-right:1px;margin-top:3px;font-size:12px;padding-left:2px;padding-right:2px;padding-bottom:0}.wcPanelTab:hover,.wcPanelTabHover{background-color:#aaa}.wcPanelTabActive{color:#000;background-color:gray;font-weight:700;margin-top:1px}.wcPanelTabActive:hover,.wcPanelTabActiveHover{background-color:#ccc}.wcFrameEdge{position:absolute;z-index:2;border:2px outset #444;background-color:#222}.wcSplitterBar{border:1px outset #a9a9a9;background-color:gray}.wcSplitterBarV.wcSplitterBarStatic{width:0}.wcSplitterBarH.wcSplitterBarStatic{height:0}.wcGhost{background-color:#444;border:0;border-radius:6px}.wcScrollbar,::-webkit-scrollbar{width:12px;height:12px;background-color:#888}.wcScrollbarCorner,::-webkit-scrollbar-corner{background-color:#888}.wcScrollbarTrack,::-webkit-scrollbar-track{box-shadow:inset 0 0 6px rgba(0,0,0,.5);border-radius:10px}.wcScrollbarThumb,::-webkit-scrollbar-thumb{border-radius:10px;box-shadow:inset -2px 0 6px rgba(0,0,0,.7)}.context-menu-list,.wcMenuList{border:1px solid #111}.context-menu-item,.context-menu-list,.wcMenuItem{background-color:#444}.context-menu-item.hover,.wcMenuItem:hover,.wcMenuItemHover{background-color:#666}.context-menu-item.disabled,.wcMenuItem.disabled{color:#333;background-color:#444}.context-menu-separator,.wcMenuSeparator{border:2px solid #444;background-color:#777}.wcLoadingBackground{background-color:rgba(55,55,55,1)}.wcLoadingIcon{color:#222}.wcLoadingLabel{color:#111}.wcInput,input{vertical-align:middle;border:1px solid #000}.wcSelect,select{border:1px solid #000}.wcButton,button{border:1px outset #777;background-color:#777;line-height:1em}.wcButton:hover,.wcButtonHover,button:hover{border:1px outset #999;background-color:#999}.wcButton:active,.wcButtonActive,button:active{border:1px inset #666;background-color:#666}.wcButton:active.wcButtonHover,.wcButton:active:hover,.wcButton:hover.wcButtonActive,.wcButtonActive.wcButtonHover,button:active:hover{border:1px inset #999;background-color:#999}.wcButton.disabled,.wcButtonDisabled,button:disabled{border:1px outset #666!important;background-color:#666!important;color:#555!important}.wcButton:focus,.wcButtonFocus,button:focus{outline:0}.wcMobile .wcFrameTitleBar{height:29px}.wcMobile .wcFrameTitle{font-size:20px}.wcMobile .wcFrameButton{width:25px;height:25px;font-size:22px}.wcMobile .wcFrameCenter{top:29px}.wcMobile .wcPanelTab{font-size:14px;height:29px}.wcMobile .wcPanelTab>div{margin-top:4px}.wcMobile .wcSplitterBarV.wcSplitterBar:not(.wcSplitterBarStatic){width:12px;border-width:3px}.wcMobile .wcSplitterBarH.wcSplitterBar:not(.wcSplitterBarStatic){height:12px;border-width:3px}.wcMobile .wcButton,.wcMobile .wcInput,.wcMobile .wcSelect,.wcMobile button,.wcMobile input,.wcMobile select{font-size:22px} \ No newline at end of file diff --git a/Build/Themes/ideDark.min.css b/Build/Themes/ideDark.min.css index a39eadc1..333b6450 100755 --- a/Build/Themes/ideDark.min.css +++ b/Build/Themes/ideDark.min.css @@ -13,4 +13,4 @@ * MIT License http://www.opensource.org/licenses/mit-license * GPL v3 http://opensource.org/licenses/GPL-3.0 * - */body,html{width:100%;height:100%;overflow:hidden;position:relative;margin:0}.wcDocker{background-color:#515151;color:#909090}.wcModalBlocker{background-color:#000;opacity:.8}.wcPanelBackground{background-color:#222}.wcPanelBackground .wcCenter{background-color:#a9a9a9}.wcFrameFlasher,.wcFrameShadower{background-color:#fff}.wcFrameTitleBar{height:30px;background-color:#333}.wcFrameTitle{background-color:#333;border-bottom:4px solid rgba(192,88,1,1);color:rgba(192,88,1,1);height:30px;font-size:17px;font-weight:700;margin-top:3px;text-align:center}.wcFrameButtonBar{height:30px}.wcFrameButton{background-color:#333;border:none;color:#aaa;font-size:20px;height:23px;width:23px}.wcFrameButton:hover,.wcFrameButtonHover{background-color:#333;border:none;color:#fff}.wcFrameCenter{top:30px}.wcLayoutGrid,.wcLayoutGrid td,.wcLayoutGrid tr{border:1px solid #555}.wcLayoutGridAltColor,.wcLayoutGridAlternate tr:nth-child(even){background-color:rgba(200,200,200,.2)!important}.wcPanelTab{color:rgba(182,182,182,1);background-color:rgba(89,89,89,1);border:1px solid rgba(165,75,0,1);border-radius:2px 2px 0 0;border-bottom:0;box-shadow:2px -2px 2px rgba(0,0,0,.3);margin-right:1px;margin-top:6px;font-size:14px;padding:2.5px 2px 0}.wcPanelTabActive,.wcPanelTabActive:hover,.wcPanelTabActiveHover{padding-top:2.5px}.wcPanelTabActive{color:#FFE4D0!important;background-color:rgba(192,88,1,1)!important;box-shadow:0 5px 20px #000;height:30px;margin-top:1px!important}.wcCollapserFrame .wcPanelTab{background-color:#333;color:rgba(107,107,107,1);border:1px solid #444;margin-left:5px;margin-right:10px;padding-left:5px;padding-right:5px}.wcCollapserFrame .wcPanelTab:hover{background-color:#555;color:#d2d2d2}.wcFrameEdge{position:absolute;z-index:2;border:2px outset #444;background-color:#222}.wcSplitterBar{background-color:#515151}.wcSplitterBarV{transition:opacity .2s ease;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAhCAQAAABOpSL+AAAAAmJLR0QA/4ePzL8AAAAJcEhZcwAACxMAAAsTAQCanBgAAAAoSURBVCjPY7jPYVpxnwFBMtwXMv1/H4lkYkADowIjSuAHQwcDA4IEAIImE2aDUcP1AAAAAElFTkSuQmCC) center center no-repeat #515151;border:1px solid #000;border-left:1px solid #8b8b8b;border-right:1px solid #515151;outline:#282828 outset 1px;width:10px}.wcSplitterBarH{transition:opacity .2s ease;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACEAAAAICAQAAADdTl4aAAAAIUlEQVR4AWMwrTD9TxFsZ7jPcV+IIsjFcJ9iSFWPjHoEAEtWCqrThG9qAAAAAElFTkSuQmCC) center center no-repeat #515151!important;border:1px solid #000;border-right:1px solid #515151;border-top:1px outset #8b8b8b;outline:#515151 inset 1px;height:10px}.wcSplitterBarStatic{width:0;height:0}.wcGhost{background-color:#666;border:2px dashed rgba(192,88,1,1)!important;border-radius:6px}.context-menu-list,.wcMenuList{border:1px solid #111}.context-menu-item,.context-menu-list,.wcMenuItem{color:rgba(192,88,1,1);background-color:#333}.context-menu-item.hover,.wcMenuItem:hover,.wcMenuItemHover{background-color:#444}.context-menu-item.disabled,.wcMenuItem.disabled{color:#333;background-color:#444}.context-menu-separator,.wcMenuSeparator{border:2px solid #444;background-color:#777}.wcInput,.wcSelect,input,select{border:1px solid #000}.wcLoadingBackground{background-color:rgba(55,55,55,1)}.wcLoadingIcon{color:#db6e12;font-size:150px;position:absolute;top:calc(50% - 100px);left:50%;height:150px}.wcLoadingLabel{color:#db6e12}.wcLoadingLabel:after{content:'. . .';-webkit-animation:color-change 1s infinite;-moz-animation:color-change 1s infinite;-o-animation:color-change 1s infinite;-ms-animation:color-change 1s infinite;animation:color-change 1s infinite}@-webkit-keyframes color-change{0%,100%{color:#db6e12}25%,75%{color:#ca6512}50%{color:#b05812}}@-moz-keyframes color-change{0%,100%{color:#db6e12}25%,75%{color:#ca6512}50%{color:#b05812}}@-ms-keyframes color-change{0%,100%{color:#db6e12}25%,75%{color:#ca6512}50%{color:#b05812}}@-o-keyframes color-change{0%,100%{color:#db6e12}25%,75%{color:#ca6512}50%{color:#b05812}}@keyframes color-change{0%,100%{color:#db6e12}25%,75%{color:#ca6512}50%{color:#b05812}}.wcInput,input{vertical-align:middle}.wcButton,button{border:1px outset #777;background-color:#777;line-height:1em}.wcButton:hover,.wcButtonHover,button:hover{border:1px outset #999;background-color:#999}.wcButton:active,.wcButtonActive,button:active{border:1px inset #666;background-color:#666}.wcButton:active.wcButtonHover,.wcButton:active:hover,.wcButton:hover.wcButtonActive,.wcButtonActive.wcButtonHover,button:active:hover{border:1px inset #999;background-color:#999}.wcButton.disabled,.wcButtonDisabled,button:disabled{border:1px outset #666!important;background-color:#666!important;color:#555!important}.wcButton:focus,.wcButtonFocus,button:focus{outline:0} \ No newline at end of file + */body,html{width:100%;height:100%;overflow:hidden;position:relative;margin:0}.wcDocker{background-color:#515151;color:#909090}.wcModalBlocker{background-color:#000;opacity:.8}.wcPanelBackground{background-color:#222}.wcPanelBackground .wcCenter{background-color:#a9a9a9}.wcFrameFlasher{background-color:#fff}.wcFrameShadower{background-color:#fff}.wcFrameTitleBar{height:30px;background-color:#333}.wcFrameTitle{background-color:#333;border-bottom:4px solid rgba(192,88,1,1);color:rgba(192,88,1,1);height:30px;font-size:17px;font-weight:700;margin-top:3px;text-align:center}.wcFrameButtonBar{height:30px}.wcFrameButton{background-color:#333;border:none;color:#aaa;font-size:20px;height:23px;width:23px}.wcFrameButton:hover,.wcFrameButtonHover{background-color:#333;border:none;color:#fff}.wcFrameCenter{top:30px}.wcLayoutGrid,.wcLayoutGrid td,.wcLayoutGrid tr{border:1px solid #555}.wcLayoutGridAltColor,.wcLayoutGridAlternate tr:nth-child(even){background-color:rgba(200,200,200,.2)!important}.wcPanelTab{color:rgba(182,182,182,1);background-color:rgba(89,89,89,1);border:1px solid rgba(165,75,0,1);border-radius:2px 2px 0 0;border-bottom:0;box-shadow:2px -2px 2px rgba(0,0,0,.3);margin-right:1px;margin-top:6px;font-size:14px;padding-left:2px;padding-right:2px;padding-top:2.5px;padding-bottom:0}.wcPanelTabActive{color:#ffe4d0!important;background-color:rgba(192,88,1,1)!important;box-shadow:0 5px 20px #000;height:30px;margin-top:1px!important;padding-top:2.5px}.wcPanelTabActive:hover,.wcPanelTabActiveHover{padding-top:2.5px}.wcCollapserFrame .wcPanelTab{background-color:#333;color:rgba(107,107,107,1);border:1px solid #444;margin-left:5px;margin-right:10px;padding-left:5px;padding-right:5px}.wcCollapserFrame .wcPanelTab:hover{background-color:#555;color:#d2d2d2}.wcFrameEdge{position:absolute;z-index:2;border:2px outset #444;background-color:#222}.wcSplitterBar{background-color:#515151}.wcSplitterBarV{transition:opacity .2s ease;background:-webkit-gradient(linear,left top,left bottom,from(#505050),to(#383838));background:-webkit-linear-gradient(left,#505050,#383838);background:linear-gradient(to right,#505050,#383838);background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAhCAQAAABOpSL+AAAAAmJLR0QA/4ePzL8AAAAJcEhZcwAACxMAAAsTAQCanBgAAAAoSURBVCjPY7jPYVpxnwFBMtwXMv1/H4lkYkADowIjSuAHQwcDA4IEAIImE2aDUcP1AAAAAElFTkSuQmCC) #515151 center center no-repeat;border:1px solid #000;border-left:1px solid #8b8b8b;border-right:1px solid #515151;outline:1px outset #282828;width:10px}.wcSplitterBarH{transition:opacity .2s ease;background:-webkit-gradient(linear,left top,left bottom,from(#505050),to(#383838));background:-webkit-linear-gradient(top,#505050,#383838);background:linear-gradient(to bottom,#505050,#383838);background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACEAAAAICAQAAADdTl4aAAAAIUlEQVR4AWMwrTD9TxFsZ7jPcV+IIsjFcJ9iSFWPjHoEAEtWCqrThG9qAAAAAElFTkSuQmCC) #515151 center center no-repeat!important;border:1px solid #000;border-right:1px solid #515151;border-top:1px outset #8b8b8b;outline:1px inset #515151;height:10px}.wcSplitterBarStatic{width:0;height:0}.wcGhost{background-color:#666;border:2px dashed rgba(192,88,1,1)!important;border-radius:6px}.context-menu-list,.wcMenuList{border:1px solid #111}.context-menu-item,.context-menu-list,.wcMenuItem{color:rgba(192,88,1,1);background-color:#333}.context-menu-item.hover,.wcMenuItem:hover,.wcMenuItemHover{background-color:#444}.context-menu-item.disabled,.wcMenuItem.disabled{color:#333;background-color:#444}.context-menu-separator,.wcMenuSeparator{border:2px solid #444;background-color:#777}.wcLoadingBackground{background-color:rgba(55,55,55,1)}.wcLoadingIcon{color:#db6e12;font-size:150px;position:absolute;top:calc(50% - 100px);left:50%;height:150px}.wcLoadingLabel{color:#db6e12}.wcLoadingLabel:after{content:'. . .';-webkit-animation:color-change 1s infinite;-moz-animation:color-change 1s infinite;-o-animation:color-change 1s infinite;-ms-animation:color-change 1s infinite;animation:color-change 1s infinite}@-webkit-keyframes color-change{0%{color:#db6e12}25%{color:#ca6512}50%{color:#b05812}75%{color:#ca6512}100%{color:#db6e12}}@-moz-keyframes color-change{0%{color:#db6e12}25%{color:#ca6512}50%{color:#b05812}75%{color:#ca6512}100%{color:#db6e12}}@-ms-keyframes color-change{0%{color:#db6e12}25%{color:#ca6512}50%{color:#b05812}75%{color:#ca6512}100%{color:#db6e12}}@-o-keyframes color-change{0%{color:#db6e12}25%{color:#ca6512}50%{color:#b05812}75%{color:#ca6512}100%{color:#db6e12}}@keyframes color-change{0%{color:#db6e12}25%{color:#ca6512}50%{color:#b05812}75%{color:#ca6512}100%{color:#db6e12}}.wcInput,input{vertical-align:middle;border:1px solid #000}.wcSelect,select{border:1px solid #000}.wcButton,button{border:1px outset #777;background-color:#777;line-height:1em}.wcButton:hover,.wcButtonHover,button:hover{border:1px outset #999;background-color:#999}.wcButton:active,.wcButtonActive,button:active{border:1px inset #666;background-color:#666}.wcButton:active.wcButtonHover,.wcButton:active:hover,.wcButton:hover.wcButtonActive,.wcButtonActive.wcButtonHover,button:active:hover{border:1px inset #999;background-color:#999}.wcButton.disabled,.wcButtonDisabled,button:disabled{border:1px outset #666!important;background-color:#666!important;color:#555!important}.wcButton:focus,.wcButtonFocus,button:focus{outline:0} \ No newline at end of file diff --git a/Build/Themes/shadow.min.css b/Build/Themes/shadow.min.css index 9bd5d907..68eb7aab 100755 --- a/Build/Themes/shadow.min.css +++ b/Build/Themes/shadow.min.css @@ -1 +1 @@ -.wcDocker{background-color:#000;color:#AAA}.wcPanelBackground{background-color:#444}.wcPanelBackground .wcCenter{background-color:#111}.wcFrameFlasher{background-color:#777}.wcFrameShadower{background-color:#555}.wcFrameTitleBar{height:20px;background-color:#222;text-align:left}.wcFrameTitle{font-size:12px;font-weight:700;text-align:center;padding-top:3px;background-color:#444}.wcFrameCenter{top:20px}.wcFrameButton{width:20px;height:20px;border:0 solid #111;background-color:transparent;color:#888;font-size:17px}.wcPanelTab,.wcPanelTabActive{font-family:sans-serif;margin-top:1px;font-size:12px}.wcFrameButton:hover,.wcFrameButtonHover{border:0 solid #000;background-color:#000;color:#CCC}.wcFrameButton:active,.wcFrameButtonActive{border:0 solid #000;background-color:#000;color:#FFF}.wcFrameButtonToggled,.wcFrameButtonToggled:hover{border-style:inset}.wcLayoutGrid,.wcLayoutGrid td,.wcLayoutGrid tr{border:1px solid #555}.wcLayoutGridAltColor,.wcLayoutGridAlternate tr:nth-child(even){background-color:rgba(100,100,100,.2)!important}.wcFrameEdge{position:absolute;z-index:2;border:2px solid #000;background-color:#000}.wcSplitterBar{border:1px solid #000;background-color:#000}.wcSplitterBarV.wcSplitterBarStatic{width:0}.wcSplitterBarH.wcSplitterBarStatic{height:0}.wcPanelTab{color:#999;border-radius:0;background-color:#111;margin-right:1px;line-height:16px;padding-left:5px;padding-right:5px}.wcPanelTab:hover,.wcPanelTabHover{background-color:#777}.wcPanelTabActive,.wcPanelTabActive:hover,.wcPanelTabActiveHover{color:#DDD;background-color:#444}.wcPanelTabActive{line-height:19px;font-weight:400}.wcGhost{background-color:#000;border-radius:0}.wcScrollbar,::-webkit-scrollbar{width:12px;height:12px;background-color:#000}.wcScrollbarCorner,::-webkit-scrollbar-corner{background-color:#111}.wcScrollbarTrack,::-webkit-scrollbar-track{border-radius:0;background-color:#111}.wcScrollbarThumb,::-webkit-scrollbar-thumb{border-radius:2px;background-color:#666}.context-menu-list,.wcMenuList{border:1px solid #111}.context-menu-item,.context-menu-list,.wcMenuItem{background-color:#444}.context-menu-item.hover,.wcMenuItem:hover,.wcMenuItemHover{background-color:#666}.context-menu-item.disabled,.wcMenuItem.disabled{color:#333;background-color:#444}.context-menu-separator,.wcMenuSeparator{border:2px solid #444;background-color:#777}.wcLoadingBackground{background-color:rgba(55,55,55,1);opacity:.4}.wcLoadingIcon{color:#222}.wcLoadingLabel{color:#111}.wcButton,.wcInput,.wcSelect,button,input,select{color:#CCC;background-color:#555}.wcInput,input{border:1px solid #000}.wcSelect,select{outline:0}.wcButton,button{border:1px outset #555}.wcButton:hover,.wcButtonHover,button:hover{border:1px outset #666;background-color:#666}.wcButton:active,.wcButtonActive,button:active{border:1px inset #777;background-color:#777}.wcButton:active.wcButtonHover,.wcButton:active:hover,.wcButton:hover.wcButtonActive,.wcButtonActive.wcButtonHover,button:active:hover{border:1px inset #888;background-color:#888}.wcButton.disabled,.wcButtonDisabled,button:disabled{border:1px outset #494949!important;background-color:#494949!important;color:#333!important}.wcMobile .wcFrameTitleBar{height:29px}.wcMobile .wcFrameTitle{font-size:20px}.wcMobile .wcFrameButton{width:25px;height:25px;font-size:22px;border:2px solid #111}.wcMobile .wcFrameCenter{top:29px}.wcMobile .wcPanelTab{font-size:14px;height:26px}.wcMobile .wcPanelTabActive{height:30px}.wcMobile .wcPanelTab>div{margin-top:4px}.wcMobile .wcSplitterBarV.wcSplitterBar:not(.wcSplitterBarStatic){width:12px;border-width:3px;border-color:#000;border-top:0;border-bottom:0;background-color:#111}.wcMobile .wcSplitterBarH.wcSplitterBar:not(.wcSplitterBarStatic){height:12px;border-width:3px;border-color:#000;border-left:0;border-right:0;background-color:#111}.wcMobile .wcButton,.wcMobile .wcInput,.wcMobile .wcSelect,.wcMobile button,.wcMobile input,.wcMobile select{font-size:22px} \ No newline at end of file +.wcDocker{background-color:#000;color:#aaa}.wcPanelBackground{background-color:#444}.wcPanelBackground .wcCenter{background-color:#111}.wcFrameFlasher{background-color:#777}.wcFrameShadower{background-color:#555}.wcFrameTitleBar{height:20px;background-color:#222;text-align:left}.wcFrameTitle{font-size:12px;font-weight:700;text-align:center;padding-top:3px;background-color:#444}.wcFrameCenter{top:20px}.wcFrameButton{width:20px;height:20px;border:0 solid #111;background-color:transparent;color:#888;font-size:17px}.wcFrameButton:hover,.wcFrameButtonHover{border:0 solid #000;background-color:#000;color:#ccc}.wcFrameButton:active,.wcFrameButtonActive{border:0 solid #000;background-color:#000;color:#fff}.wcFrameButtonToggled,.wcFrameButtonToggled:hover{border-style:inset}.wcLayoutGrid,.wcLayoutGrid td,.wcLayoutGrid tr{border:1px solid #555}.wcLayoutGridAltColor,.wcLayoutGridAlternate tr:nth-child(even){background-color:rgba(100,100,100,.2)!important}.wcFrameEdge{position:absolute;z-index:2;border:2px solid #000;background-color:#000}.wcSplitterBar{border:1px solid #000;background-color:#000}.wcSplitterBarV.wcSplitterBarStatic{width:0}.wcSplitterBarH.wcSplitterBarStatic{height:0}.wcPanelTab{font-family:sans-serif;color:#999;border-radius:0;background-color:#111;margin-right:1px;margin-top:1px;font-size:12px;line-height:16px;padding-left:5px;padding-right:5px}.wcPanelTab:hover,.wcPanelTabHover{background-color:#777}.wcPanelTabActive{font-family:sans-serif;color:#ddd;background-color:#444;margin-top:1px;font-size:12px;line-height:19px;font-weight:400}.wcPanelTabActive:hover,.wcPanelTabActiveHover{color:#ddd;background-color:#444}.wcGhost{background-color:#000;border-radius:0}.wcScrollbar,::-webkit-scrollbar{width:12px;height:12px;background-color:#000}.wcScrollbarCorner,::-webkit-scrollbar-corner{background-color:#111}.wcScrollbarTrack,::-webkit-scrollbar-track{border-radius:0;background-color:#111}.wcScrollbarThumb,::-webkit-scrollbar-thumb{border-radius:2px;background-color:#666}.context-menu-list,.wcMenuList{border:1px solid #111}.context-menu-item,.context-menu-list,.wcMenuItem{background-color:#444}.context-menu-item.hover,.wcMenuItem:hover,.wcMenuItemHover{background-color:#666}.context-menu-item.disabled,.wcMenuItem.disabled{color:#333;background-color:#444}.context-menu-separator,.wcMenuSeparator{border:2px solid #444;background-color:#777}.wcLoadingBackground{background-color:rgba(55,55,55,1);opacity:.4}.wcLoadingIcon{color:#222}.wcLoadingLabel{color:#111}.wcInput,input{color:#ccc;background-color:#555;border:1px solid #000}.wcSelect,select{color:#ccc;background-color:#555;outline:0}.wcButton,button{color:#ccc;border:1px outset #555;background-color:#555}.wcButton:hover,.wcButtonHover,button:hover{border:1px outset #666;background-color:#666}.wcButton:active,.wcButtonActive,button:active{border:1px inset #777;background-color:#777}.wcButton:active.wcButtonHover,.wcButton:active:hover,.wcButton:hover.wcButtonActive,.wcButtonActive.wcButtonHover,button:active:hover{border:1px inset #888;background-color:#888}.wcButton.disabled,.wcButtonDisabled,button:disabled{border:1px outset #494949!important;background-color:#494949!important;color:#333!important}.wcMobile .wcFrameTitleBar{height:29px}.wcMobile .wcFrameTitle{font-size:20px}.wcMobile .wcFrameButton{width:25px;height:25px;font-size:22px;border:2px solid #111}.wcMobile .wcFrameCenter{top:29px}.wcMobile .wcPanelTab{font-size:14px;height:26px}.wcMobile .wcPanelTabActive{height:30px}.wcMobile .wcPanelTab>div{margin-top:4px}.wcMobile .wcSplitterBarV.wcSplitterBar:not(.wcSplitterBarStatic){width:12px;border-width:3px;border-color:#000;border-top:0;border-bottom:0;background-color:#111}.wcMobile .wcSplitterBarH.wcSplitterBar:not(.wcSplitterBarStatic){height:12px;border-width:3px;border-color:#000;border-left:0;border-right:0;background-color:#111}.wcMobile .wcButton,.wcMobile .wcInput,.wcMobile .wcSelect,.wcMobile button,.wcMobile input,.wcMobile select{font-size:22px} \ No newline at end of file diff --git a/Build/wcDocker.js b/Build/wcDocker.js index 9ea956dc..e1b1695d 100644 --- a/Build/wcDocker.js +++ b/Build/wcDocker.js @@ -1,5 +1,4 @@ -(function () { -/** +(function () {/** * @license almond 0.3.1 Copyright (c) 2011-2014, The Dojo Foundation All Rights Reserved. * Available via the MIT or new BSD license. * see: http://github.com/jrburke/almond for details diff --git a/Build/wcDocker.min.css b/Build/wcDocker.min.css index 6ae80990..6e4991b6 100755 --- a/Build/wcDocker.min.css +++ b/Build/wcDocker.min.css @@ -13,4 +13,4 @@ * MIT License http://www.opensource.org/licenses/mit-license * GPL v3 http://opensource.org/licenses/GPL-3.0 * - */.wcDisableSelection,.wcFrameTitleBar{-webkit-touch-callout:none;-khtml-user-select:none}.wcButton,.wcFrameButton{box-sizing:content-box}.wcDockerTransition,.wcGhost{opacity:0}body,html{width:100%;height:100%;overflow:hidden;position:relative;margin:0}.wcDisableSelection{-webkit-user-select:none;-moz-user-select:-moz-none;-ms-user-select:none;user-select:none}.wcModalBlocker{position:fixed;top:0;bottom:0;left:0;right:0;z-index:-30}.wcWide{width:100%;left:0}.wcTall{height:100%;top:0}.wcDocker{position:absolute;width:100%;height:100%;overflow:hidden}.wcFrame{position:relative}.wcFrameFlasher,.wcFrameShadower{border:0;margin:0;padding:0;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0}.wcFrameTitleBar{width:100%;cursor:move;overflow:hidden;position:absolute;text-align:left;-webkit-user-select:none;-moz-user-select:-moz-none;-ms-user-select:none;user-select:none}.wcFrameTitle{position:absolute;top:0;left:0;right:0;bottom:0}.wcCustomTab,.wcTabScroller{position:relative}.wcFrameTitleBar.wcNotMoveable{cursor:default}.wcCustomTabTitle{cursor:default!important}.wcCustomTabMoveable{cursor:move!important}.wcTabScroller{height:100%;width:10000px}.wcFrameButtonBar{position:absolute;top:0;right:0;width:auto!important}.wcFrameButton{position:relative;float:right;cursor:pointer;text-align:center;overflow:hidden;z-index:1}.wcFrameButton>div{width:100%}.wcFrameCenter{overflow:hidden;position:absolute;top:15px;left:0;right:0;bottom:0}.wcFloating{position:fixed}.wcFrameEdge,.wcLayout,.wcLayoutPane,.wcSplitterBar{position:absolute}.wcLayout,.wcLayout td,.wcLayout tr{border:0;margin:0;padding:0;border-spacing:0}.wcLayout{top:0;left:0;right:0;bottom:0}.wcFrameEdge{z-index:2;border:2px outset #444;background-color:#222}.wcFrameEdgeV{width:2px;cursor:ew-resize;border-top:0;border-bottom:0}.wcFrameEdgeH{height:2px;cursor:ns-resize;border-left:0;border-right:0}.wcFrameCornerNW{height:2px;width:2px;cursor:nwse-resize}.wcFrameCornerNE{height:2px;width:2px;cursor:nesw-resize}.wcSplitterBar{z-index:2;border:1px outset #a9a9a9}.wcSplitterBarV{width:2px;height:100%;cursor:ew-resize}.wcSplitterBarH{height:2px;width:100%;cursor:ns-resize}.wcSplitterHidden{width:0!important;border:0!important;display:none!important}.wcSplitterBarH.wcSplitterBarStatic,.wcSplitterBarV.wcSplitterBarStatic{cursor:default!important}.wcLayoutPane{border:0;margin:0;padding:0;display:inline-block}.wcPanelTab{vertical-align:top;position:relative;display:inline-block;cursor:move;top:0}.wcPanelTab.wcNotMoveable{cursor:default}.wcCreatePanel,.wcGhost{cursor:move}.wcTabLeft{-webkit-transform:rotate(-90deg) scaleX(-1);-ms-transform:rotate(-90deg) scaleX(-1);-moz-transform:rotate(-90deg) scaleX(-1);-o-transform:rotate(-90deg) scaleX(-1);transform:rotate(-90deg) scaleX(-1);-webkit-transform-origin:left top;-ms-transform-origin:left top;-moz-transform-origin:left top;-o-transform-origin:left top;transform-origin:left top;top:0;left:0}.wcTabLeft .wcFrameButton{-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);-moz-transform:rotate(90deg);-o-transform:rotate(90deg);transform:rotate(90deg);-webkit-transform-origin:center center;-ms-transform-origin:center center;-moz-transform-origin:center center;-o-transform-origin:center center;transform-origin:center center}.wcTabLeft .wcFrameButton span{-webkit-transform:rotate(-90deg);-ms-transform:rotate(-90deg);-moz-transform:rotate(-90deg);-o-transform:rotate(-90deg);transform:rotate(-90deg);-webkit-transform-origin:center center;-ms-transform-origin:center center;-moz-transform-origin:center center;-o-transform-origin:center center;transform-origin:center center}.wcTabLeft .wcPanelTab>div{-webkit-transform:scaleX(-1);-ms-transform:scaleX(-1);-moz-transform:scaleX(-1);-o-transform:scaleX(-1);transform:scaleX(-1)}.wcTabRight{-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);-moz-transform:rotate(90deg);-o-transform:rotate(90deg);transform:rotate(90deg);-webkit-transform-origin:left top;-ms-transform-origin:left top;-moz-transform-origin:left top;-o-transform-origin:left top;transform-origin:left top;top:0;left:100%}.wcTabRight .wcFrameButton{-webkit-transform:rotate(-90deg);-ms-transform:rotate(-90deg);-moz-transform:rotate(-90deg);-o-transform:rotate(-90deg);transform:rotate(-90deg);-webkit-transform-origin:center center;-ms-transform-origin:center center;-moz-transform-origin:center center;-o-transform-origin:center center;transform-origin:center center}.wcTabRight .wcFrameButton span{-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);-moz-transform:rotate(90deg);-o-transform:rotate(90deg);transform:rotate(90deg);-webkit-transform-origin:center center;-ms-transform-origin:center center;-moz-transform-origin:center center;-o-transform-origin:center center;transform-origin:center center}.wcTabBottom{-webkit-transform:rotate(180deg) scaleX(-1);-ms-transform:rotate(180deg) scaleX(-1);-moz-transform:rotate(180deg) scaleX(-1);-o-transform:rotate(180deg) scaleX(-1);transform:rotate(180deg) scaleX(-1);-webkit-transform-origin:left top;-ms-transform-origin:left top;-moz-transform-origin:left top;-o-transform-origin:left top;transform-origin:left top;top:100%;left:0}.wcTabBottom .wcFrameButton{-webkit-transform:rotate(-90deg);-ms-transform:rotate(-90deg);-moz-transform:rotate(-90deg);-o-transform:rotate(-90deg);transform:rotate(-90deg);-webkit-transform-origin:center center;-ms-transform-origin:center center;-moz-transform-origin:center center;-o-transform-origin:center center;transform-origin:center center}.wcTabBottom .wcFrameButton span{-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);-moz-transform:rotate(90deg);-o-transform:rotate(90deg);transform:rotate(90deg);-webkit-transform-origin:center center;-ms-transform-origin:center center;-moz-transform-origin:center center;-o-transform-origin:center center;transform-origin:center center}.wcTabBottom .wcPanelTab>div{-webkit-transform:scaleY(-1);-ms-transform:scaleY(-1);-moz-transform:scaleY(-1);-o-transform:scaleY(-1);transform:scaleY(-1)}.wcCollapseLeft.wcCollapsible,.wcCollapseRight.wcCollapsed{-webkit-transform:scaleX(-1);-ms-transform:scaleX(-1);-moz-transform:scaleX(-1);-o-transform:scaleX(-1);transform:scaleX(-1);-webkit-transform-origin:center center;-ms-transform-origin:center center;-moz-transform-origin:center center;-o-transform-origin:center center;transform-origin:center center}.wcCollapseBottom.wcCollapsible{-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);-moz-transform:rotate(90deg);-o-transform:rotate(90deg);transform:rotate(90deg);-webkit-transform-origin:center center;-ms-transform-origin:center center;-moz-transform-origin:center center;-o-transform-origin:center center;transform-origin:center center}.wcCollapseBottom.wcCollapsed{-webkit-transform:rotate(-90deg);-ms-transform:rotate(-90deg);-moz-transform:rotate(-90deg);-o-transform:rotate(-90deg);transform:rotate(-90deg);-webkit-transform-origin:center center;-ms-transform-origin:center center;-moz-transform-origin:center center;-o-transform-origin:center center;transform-origin:center center}.wcPanelTabContent{width:100%;height:100%}.wcPanelTabContent.wcPanelTabContentHidden,.wcResizing .wcHideOnResize .wcPanelTabContent{display:none}.wcGhost{position:fixed;z-index:100}.wcScrollableX{overflow-x:auto}.wcScrollableY{overflow-y:auto}.wcOverflowVisible{overflow:visible}.wcMenuIcon,.wcTabIcon{display:inline-block;text-align:center}.fa-menu{margin-left:-24px;width:24px}.wcCollapserFrame,.wcIFrame,.wcIFrame iframe,.wcLoadingIconContainer,.wcLoadingLabel{position:absolute;width:100%}.context-menu-submenu:after{content:''!important}.wcMenuSubMenu{position:absolute;right:3px;top:3px}.wcIFrame,.wcIFrame iframe{overflow:auto;z-index:1;height:100%;border:0;margin:0;padding:0}.wcIFrameFocus{position:absolute;top:0;left:0;right:0;bottom:0;z-index:2;display:none}.wcDisableSelection .wcIFrameFocus{display:block}.wcIFrame.wcDrawer{z-index:6}.wcIFrameHidden,.wcIFramePanelHidden{display:none}.wcIFrameMoving{pointer-events:none}.wcCollapserFrame{top:0;left:0;height:100%;overflow:hidden}.wcDrawer{z-index:5}.wcLoadingBackground,.wcLoadingContainer{position:absolute;top:0;left:0;right:0;bottom:0}.wcLoadingContainer{z-index:10}.wcLoadingIconContainer{height:100%;text-align:center;vertical-align:middle}.wcLoadingIcon{position:absolute;font-size:200px;left:calc(50% - 100px);top:calc(50% - 100px);height:195px}.wcLoadingLabel{font-size:100px;top:calc(50% + 100px);text-align:center}.wcFullSized{width:100%!important;height:100%!important}.fa-pulse{-webkit-animation:fa-spin 1s infinite steps(8);animation:fa-spin 1s infinite steps(8)}.wcAttributeLabel{white-space:nowrap;padding-right:10px;text-align:right}.wcAttributeControl{width:100%}.wcAttributeSpacer,.wcAttributeSpacerSolid{width:100%;height:22px;text-align:center;margin-top:3px;margin-bottom:3px}.wcAttributeSpacerSolid{background-color:rgba(0,0,0,.25);border-radius:20px} \ No newline at end of file + */body,html{width:100%;height:100%;overflow:hidden;position:relative;margin:0}.wcDisableSelection{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:-moz-none;-ms-user-select:none;user-select:none}.wcModalBlocker{position:fixed;top:0;bottom:0;left:0;right:0;z-index:-30}.wcWide{width:100%;left:0}.wcTall{height:100%;top:0}.wcDocker{position:absolute;width:100%;height:100%;overflow:hidden}.wcDockerTransition{opacity:0}.wcFrame{position:relative}.wcFrameFlasher,.wcFrameShadower{border:0;margin:0;padding:0;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0}.wcFrameTitleBar{width:100%;cursor:move;overflow:hidden;position:absolute;text-align:left;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:-moz-none;-ms-user-select:none;user-select:none}.wcFrameTitle{position:absolute;top:0;left:0;right:0;bottom:0}.wcFrameTitleBar.wcNotMoveable{cursor:default}.wcCustomTabTitle{cursor:default!important}.wcCustomTabMoveable{cursor:move!important}.wcCustomTab{position:relative}.wcTabScroller{height:100%;width:10000px;position:relative}.wcFrameButtonBar{position:absolute;top:0;right:0;width:auto!important}.wcFrameButton{position:relative;float:right;cursor:pointer;text-align:center;overflow:hidden;z-index:1;box-sizing:content-box}.wcFrameButton>div{width:100%}.wcButton{box-sizing:content-box}.wcFrameCenter{overflow:hidden;position:absolute;top:15px;left:0;right:0;bottom:0}.wcFloating{position:fixed}.wcLayout,.wcLayout td,.wcLayout tr{border:0;margin:0;padding:0;border-spacing:0}.wcLayout{top:0;left:0;right:0;bottom:0;position:absolute}.wcFrameEdge{position:absolute;z-index:2;border:2px outset #444;background-color:#222}.wcFrameEdgeV{width:2px;cursor:ew-resize;border-top:0;border-bottom:0}.wcFrameEdgeH{height:2px;cursor:ns-resize;border-left:0;border-right:0}.wcFrameCornerNW{height:2px;width:2px;cursor:nwse-resize}.wcFrameCornerNE{height:2px;width:2px;cursor:nesw-resize}.wcSplitterBar{z-index:2;position:absolute;border:1px outset #a9a9a9}.wcSplitterBarV{width:2px;height:100%;cursor:ew-resize}.wcSplitterBarH{height:2px;width:100%;cursor:ns-resize}.wcSplitterHidden{width:0!important;border:0!important;display:none!important}.wcSplitterBarV.wcSplitterBarStatic{cursor:default!important}.wcSplitterBarH.wcSplitterBarStatic{cursor:default!important}.wcLayoutPane{border:0;margin:0;padding:0;display:inline-block;position:absolute}.wcPanelTab{vertical-align:top;position:relative;display:inline-block;cursor:move;top:0}.wcPanelTab.wcNotMoveable{cursor:default}.wcTabLeft{-webkit-transform:rotate(-90deg) scaleX(-1);-ms-transform:rotate(-90deg) scaleX(-1);-moz-transform:rotate(-90deg) scaleX(-1);-o-transform:rotate(-90deg) scaleX(-1);transform:rotate(-90deg) scaleX(-1);-webkit-transform-origin:left top;-ms-transform-origin:left top;-moz-transform-origin:left top;-o-transform-origin:left top;transform-origin:left top;top:0;left:0}.wcTabLeft .wcFrameButton{-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);-moz-transform:rotate(90deg);-o-transform:rotate(90deg);transform:rotate(90deg);-webkit-transform-origin:center center;-ms-transform-origin:center center;-moz-transform-origin:center center;-o-transform-origin:center center;transform-origin:center center}.wcTabLeft .wcFrameButton span{-webkit-transform:rotate(-90deg);-ms-transform:rotate(-90deg);-moz-transform:rotate(-90deg);-o-transform:rotate(-90deg);transform:rotate(-90deg);-webkit-transform-origin:center center;-ms-transform-origin:center center;-moz-transform-origin:center center;-o-transform-origin:center center;transform-origin:center center}.wcTabLeft .wcPanelTab>div{-webkit-transform:scaleX(-1);-ms-transform:scaleX(-1);-moz-transform:scaleX(-1);-o-transform:scaleX(-1);transform:scaleX(-1)}.wcTabRight{-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);-moz-transform:rotate(90deg);-o-transform:rotate(90deg);transform:rotate(90deg);-webkit-transform-origin:left top;-ms-transform-origin:left top;-moz-transform-origin:left top;-o-transform-origin:left top;transform-origin:left top;top:0;left:100%}.wcTabRight .wcFrameButton{-webkit-transform:rotate(-90deg);-ms-transform:rotate(-90deg);-moz-transform:rotate(-90deg);-o-transform:rotate(-90deg);transform:rotate(-90deg);-webkit-transform-origin:center center;-ms-transform-origin:center center;-moz-transform-origin:center center;-o-transform-origin:center center;transform-origin:center center}.wcTabRight .wcFrameButton span{-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);-moz-transform:rotate(90deg);-o-transform:rotate(90deg);transform:rotate(90deg);-webkit-transform-origin:center center;-ms-transform-origin:center center;-moz-transform-origin:center center;-o-transform-origin:center center;transform-origin:center center}.wcTabBottom{-webkit-transform:rotate(180deg) scaleX(-1);-ms-transform:rotate(180deg) scaleX(-1);-moz-transform:rotate(180deg) scaleX(-1);-o-transform:rotate(180deg) scaleX(-1);transform:rotate(180deg) scaleX(-1);-webkit-transform-origin:left top;-ms-transform-origin:left top;-moz-transform-origin:left top;-o-transform-origin:left top;transform-origin:left top;top:100%;left:0}.wcTabBottom .wcFrameButton{-webkit-transform:rotate(-90deg);-ms-transform:rotate(-90deg);-moz-transform:rotate(-90deg);-o-transform:rotate(-90deg);transform:rotate(-90deg);-webkit-transform-origin:center center;-ms-transform-origin:center center;-moz-transform-origin:center center;-o-transform-origin:center center;transform-origin:center center}.wcTabBottom .wcFrameButton span{-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);-moz-transform:rotate(90deg);-o-transform:rotate(90deg);transform:rotate(90deg);-webkit-transform-origin:center center;-ms-transform-origin:center center;-moz-transform-origin:center center;-o-transform-origin:center center;transform-origin:center center}.wcTabBottom .wcPanelTab>div{-webkit-transform:scaleY(-1);-ms-transform:scaleY(-1);-moz-transform:scaleY(-1);-o-transform:scaleY(-1);transform:scaleY(-1)}.wcCollapseLeft.wcCollapsible,.wcCollapseRight.wcCollapsed{-webkit-transform:scaleX(-1);-ms-transform:scaleX(-1);-moz-transform:scaleX(-1);-o-transform:scaleX(-1);transform:scaleX(-1);-webkit-transform-origin:center center;-ms-transform-origin:center center;-moz-transform-origin:center center;-o-transform-origin:center center;transform-origin:center center}.wcCollapseBottom.wcCollapsible{-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);-moz-transform:rotate(90deg);-o-transform:rotate(90deg);transform:rotate(90deg);-webkit-transform-origin:center center;-ms-transform-origin:center center;-moz-transform-origin:center center;-o-transform-origin:center center;transform-origin:center center}.wcCollapseBottom.wcCollapsed{-webkit-transform:rotate(-90deg);-ms-transform:rotate(-90deg);-moz-transform:rotate(-90deg);-o-transform:rotate(-90deg);transform:rotate(-90deg);-webkit-transform-origin:center center;-ms-transform-origin:center center;-moz-transform-origin:center center;-o-transform-origin:center center;transform-origin:center center}.wcPanelTabContent{width:100%;height:100%}.wcPanelTabContent.wcPanelTabContentHidden{display:none}.wcResizing .wcHideOnResize .wcPanelTabContent{display:none}.wcGhost{opacity:0;position:fixed;z-index:100;cursor:move}.wcScrollableX{overflow-x:auto}.wcScrollableY{overflow-y:auto}.wcOverflowVisible{overflow:visible}.wcTabIcon{display:inline-block;text-align:center}.wcMenuIcon{display:inline-block;text-align:center}.fa-menu{margin-left:-24px;width:24px}.context-menu-submenu:after{content:''!important}.wcMenuSubMenu{position:absolute;right:3px;top:3px}.wcIFrame,.wcIFrame iframe{position:absolute;overflow:auto;z-index:1;width:100%;height:100%;border:0;margin:0;padding:0}.wcIFrameFocus{position:absolute;top:0;left:0;right:0;bottom:0;z-index:2;display:none}.wcDisableSelection .wcIFrameFocus{display:block}.wcDisableSelection .wcIFrameFocus{display:block}.wcIFrame.wcDrawer{z-index:6}.wcIFrameHidden,.wcIFramePanelHidden{display:none}.wcIFrameMoving{pointer-events:none}.wcCollapserFrame{position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden}.wcDrawer{z-index:5}.wcCreatePanel{cursor:move}.wcLoadingBackground,.wcLoadingContainer{position:absolute;top:0;left:0;right:0;bottom:0}.wcLoadingContainer{z-index:10}.wcLoadingIconContainer{position:absolute;width:100%;height:100%;text-align:center;vertical-align:middle}.wcLoadingIcon{position:absolute;font-size:200px;left:calc(50% - 100px);top:calc(50% - 100px);height:195px}.wcLoadingLabel{position:absolute;width:100%;font-size:100px;top:calc(50% + 100px);text-align:center}.wcFullSized{width:100%!important;height:100%!important}.fa-pulse{-webkit-animation:fa-spin 1s infinite steps(8);animation:fa-spin 1s infinite steps(8)}.wcAttributeLabel{white-space:nowrap;padding-right:10px;text-align:right}.wcAttributeControl{width:100%}.wcAttributeSpacer,.wcAttributeSpacerSolid{width:100%;height:22px;text-align:center;margin-top:3px;margin-bottom:3px}.wcAttributeSpacerSolid{background-color:rgba(0,0,0,.25);border-radius:20px} \ No newline at end of file diff --git a/Build/wcDocker.min.js b/Build/wcDocker.min.js index 9bec607c..92a65ad5 100644 --- a/Build/wcDocker.min.js +++ b/Build/wcDocker.min.js @@ -31,9 +31,12 @@ * */ -!function(){var t,e,i;!function(n){function r(t,e){return $.call(t,e)}function s(t,e){var i,n,r,s,a,o,h,l,c,_,u,f=e&&e.split("/"),p=m.map,d=p&&p["*"]||{};if(t&&"."===t.charAt(0))if(e){for(t=t.split("/"),a=t.length-1,m.nodeIdCompat&&y.test(t[a])&&(t[a]=t[a].replace(y,"")),t=f.slice(0,f.length-1).concat(t),c=0;c0&&(t.splice(c-1,2),c-=2)}t=t.join("/")}else 0===t.indexOf("./")&&(t=t.substring(2));if((f||d)&&p){for(i=t.split("/"),c=i.length;c>0;c-=1){if(n=i.slice(0,c).join("/"),f)for(_=f.length;_>0;_-=1)if(r=p[f.slice(0,_).join("/")],r&&(r=r[n])){s=r,o=c;break}if(s)break;!h&&d&&d[n]&&(h=d[n],l=c)}!s&&h&&(s=h,o=l),s&&(i.splice(0,o,s),t=i.join("/"))}return t}function a(t,e){return function(){var i=w.call(arguments,0);return"string"!=typeof i[0]&&1===i.length&&i.push(null),f.apply(n,i.concat([t,e]))}}function o(t){return function(e){return s(e,t)}}function h(t){return function(e){g[t]=e}}function l(t){if(r(v,t)){var e=v[t];delete v[t],b[t]=!0,u.apply(n,e)}if(!r(g,t)&&!r(b,t))throw new Error("No "+t);return g[t]}function c(t){var e,i=t?t.indexOf("!"):-1;return i>-1&&(e=t.substring(0,i),t=t.substring(i+1,t.length)),[e,t]}function _(t){return function(){return m&&m.config&&m.config[t]||{}}}var u,f,p,d,g={},v={},m={},b={},$=Object.prototype.hasOwnProperty,w=[].slice,y=/\.js$/;p=function(t,e){var i,n=c(t),r=n[0];return t=n[1],r&&(r=s(r,e),i=l(r)),r?t=i&&i.normalize?i.normalize(t,o(e)):s(t,e):(t=s(t,e),n=c(t),r=n[0],t=n[1],r&&(i=l(r))),{f:r?r+"!"+t:t,n:t,pr:r,p:i}},d={require:function(t){return a(t)},exports:function(t){var e=g[t];return"undefined"!=typeof e?e:g[t]={}},module:function(t){return{id:t,uri:"",exports:g[t],config:_(t)}}},u=function(t,e,i,s){var o,c,_,u,f,m,$=[],w=typeof i;if(s=s||t,"undefined"===w||"function"===w){for(e=!e.length&&i.length?["require","exports","module"]:e,f=0;f=0;--g)if(l=d[g],l._uniqueId=l._uniqueId||a++,s=l._meta){for(p=s.bases,b=p.length-1;b>0;--b)v=p[b]._uniqueId,u[v]=(u[v]||0)+1;d[g]=p.slice(0)}else d[g]=[l];f={};t:for(;d.length;){for(g=0;g0;--b)if(l=m[b],_=l._meta,t.mix(s,_&&_.ownProps||l[h]),_)for(v in d=_.weaver)p[v]=(+p[v]||0)|d[v];for(v in n)i(_=n[v])?p[v]=+p[v]||0:s[v]=_;return _={bases:m,ownProps:n,weaver:p,chains:{}},m[0]={_meta:_,prototype:s},r(_,s),c=s[o],c._meta=_,c[h]=s,m[0]=c,t._postprocess(c)}function e(t){this.around=t}function i(t){return t&&t.spr instanceof e}function n(t){var e=[];for(var i in t)e.push(i);return e}function r(e,i){var n=e.weaver,r=e.bases,s=e.chains;for(var a in n)i[a]=t._stub(n[a],r,a,s)}var s,a=0,o="constructor",h="prototype",l={};return(s=function(t,e){for(var i in e)t[i]=e[i]})(t,{mix:s,delegate:function(t){return Object.create(t)},allKeys:n,Super:e,superCall:function(e){return t._makeSuper(e)},_makeSuper:function(t,i){var n=function(){};return n.spr=new(i||e)(t),n},_postprocess:function(t){return t},_error:function(t){throw Error("dcl: "+t)},_instantiate:function(t,e,i){var n=t.spr.around(e);return n.ctr=t.ctr,n},_extractChain:function(t,e,n){for(var r,s,a=t.length-1,c=[],_="around"==n;r=t[a];--a)((s=r._meta)?(s=s.ownProps).hasOwnProperty(e)&&(i(s=s[e])?_?s.spr.around:s=s.spr[n]:_):_&&(s=e==o?r:r[h][e])&&s!==l[e])&&(s.ctr=r,c.push(s));return c},_stubChain:function(t){var e,i=t.length;return i?1==i?(e=t[0],function(){e.apply(this,arguments)}):function(){for(var e=0;i>e;++e)t[e].apply(this,arguments)}:0},_stubSuper:function(e,n){for(var r,s=0,a=l[n];r=e[s];++s)a=i(r)?e[s]=t._instantiate(r,a,n):r;return n!=o?a:function(){a.apply(this,arguments)}},_stubChainSuper:function(e,n,r){for(var s,a,h=0,l=0;s=e[h];++h)i(s)&&(a=h-l,e[h]=t._instantiate(s,a?1==a?e[l]:n(e.slice(l,h)):0,r),l=h);return a=h-l,a?1==a&&r!=o?e[l]:n(l?e.slice(l):e):0},_stub:function(e,i,n,r){var s=r[n]=t._extractChain(i,n,"around");return(e?t._stubChainSuper(s,t._stubChain,n):t._stubSuper(s,n))||function(){}}}),t}),function(t){"undefined"!=typeof i?i("dcl/dcl",["./mini"],t):"undefined"!=typeof module?module.exports=t(e("./mini")):dcl=t(dcl)}(function(t){"use strict";function e(){}function i(e){return t._makeSuper(e,s)}function n(t,i,n){var r=t||e,s=i||e,a=n||e,o=function(){var t,e;r.apply(this,arguments);try{t=a.apply(this,arguments)}catch(i){t=i,e=!0}if(s.call(this,arguments,t),e)throw t;return t};return o.advices={before:t,after:i,around:n},o}function r(e){return function(i,n){var r,s=i._meta;s&&(r=+s.weaver[n]||0,r&&r!=e&&t._error("set chaining",n,i,e,r),s.weaver[n]=e)}}var s=t(t.Super,{constructor:function(){this.before=this.around.before,this.after=this.around.after,this.around=this.around.around}});return t.mix(t,{Advice:s,advise:i,before:function(e){return t.advise({before:e})},after:function(e){return t.advise({after:e})},around:t.superCall,chainBefore:r(1),chainAfter:r(2),isInstanceOf:function(t,e){if(t instanceof e)return!0;var i,n=t.constructor._meta;if(n)for(n=n.bases,i=n.length-1;i>=0;--i)if(n[i]===e)return!0;return!1},_stub:function(e,i,r,s){var a=s[r]=t._extractChain(i,r,"around"),o=t._extractChain(i,r,"before").reverse(),h=t._extractChain(i,r,"after");return a=e?t._stubChainSuper(a,1==e?function(e){return t._stubChain(e.reverse())}:t._stubChain,r):t._stubSuper(a,r),o.length||h.length?n(t._stubChain(o),t._stubChain(h),a):a||function(){}}}),t}),i("wcDocker/types",[],function(){var t={};return t.DOCK={MODAL:"modal",FLOAT:"float",TOP:"top",LEFT:"left",RIGHT:"right",BOTTOM:"bottom",STACKED:"stacked"},t.LAYOUT={SIMPLE:"wcLayoutSimple",TABLE:"wcLayoutTable"},t.EVENT={INIT:"panelInit",LOADED:"dockerLoaded",UPDATED:"panelUpdated",VISIBILITY_CHANGED:"panelVisibilityChanged",BEGIN_DOCK:"panelBeginDock",END_DOCK:"panelEndDock",GAIN_FOCUS:"panelGainFocus",LOST_FOCUS:"panelLostFocus",CLOSING:"panelClosing",CLOSED:"panelClosed",PERSISTENT_CLOSED:"panelPersistentClosed",PERSISTENT_OPENED:"panelPersistentOpened",BUTTON:"panelButton",ATTACHED:"panelAttached",DETACHED:"panelDetached",MOVE_STARTED:"panelMoveStarted",MOVE_ENDED:"panelMoveEnded",MOVED:"panelMoved",RESIZE_STARTED:"panelResizeStarted",RESIZE_ENDED:"panelResizeEnded",RESIZED:"panelResized",ORDER_CHANGED:"panelOrderChanged",SCROLLED:"panelScrolled",SAVE_LAYOUT:"layoutSave",RESTORE_LAYOUT:"layoutRestore",CUSTOM_TAB_CHANGED:"customTabChanged",CUSTOM_TAB_CLOSED:"customTabClosed"},t.PANEL_PLACEHOLDER="__wcDockerPlaceholderPanel",t.COLLAPSED="__wcDockerCollapsedPanel",t.ORIENTATION={VERTICAL:!1,HORIZONTAL:!0},t.TAB={TOP:"top",LEFT:"left",RIGHT:"right",BOTTOM:"bottom"},t}),i("wcDocker/base",["dcl/dcl"],function(t){return t(null,{getOptions:function(){return this._options||this.docker()._options||{}},option:function(t,e){return this.getOptions()[t]||e},instanceOf:function(t,e){return e=e||this,!(!e||-1==e.declaredClass.indexOf(t))},docker:function(t){for(var e=t||this._parent;e&&!e.instanceOf("wcDocker");)e=e._parent;return e},__getClass:function(t){return this.getOptions()[t+"Class"]}})}),i("wcDocker/panel",["dcl/dcl","./types","./base"],function(t,e,i){var n=t(i,{declaredClass:"wcPanel",constructor:function(t,e,i){this.$container=null,this._parent=t,this.$icon=null,this.$title=null,this.$titleText=null,this.$loading=null,this._panelObject=null,this._initialized=!1,this._collapseDirection=void 0,this._type=e,this._title=e,this._titleVisible=!0,this._options=i,this._layout=null,this._buttonList=[],this._actualPos={x:.5,y:.5},this._actualSize={x:0,y:0},this._resizeData={time:-1,timeout:!1,delta:150},this._pos={x:.5,y:.5},this._moveData={time:-1,timeout:!1,delta:150},this._size={x:-1,y:-1},this._minSize={x:100,y:100},this._maxSize={x:1/0,y:1/0},this._scroll={x:0,y:0},this._scrollable={x:!0,y:!0},this._collapsible=!0,this._overflowVisible=!1,this._moveable=!0,this._detachable=!0,this._closeable=!0,this._resizeVisible=!0,this._isVisible=!1,this._events={},this.__init()},title:function(t){return"undefined"!=typeof t&&(t===!1?(this._titleVisible=!1,this.$titleText.html(this._type)):(this._title=t,this.$titleText.html(t)),this.$icon&&this.$titleText.prepend(this.$icon),this._parent&&this._parent.instanceOf("wcFrame")&&this._parent.__updateTabs()),this._title},info:function(){return this.docker().panelTypeInfo(this._type)},layout:function(){return this._layout},focus:function(t){var e=this.docker();if(e){e.__focus(this._parent,t);for(var i=0;i"),this.$titleText.prepend(this.$icon)),this.$icon.removeClass(),this.$icon.addClass("wcTabIcon "+t),this._parent&&this._parent.instanceOf("wcFrame")&&this._parent.__updateTabs()},faicon:function(t){this.$icon||(this.$icon=$("
        "),this.$titleText.prepend(this.$icon)),this.$icon.removeClass(),this.$icon.addClass("wcTabIcon fa fa-fw fa-"+t),this._parent&&this._parent.instanceOf("wcFrame")&&this._parent.__updateTabs()},scrollable:function(t,e){return"undefined"!=typeof t&&(this._scrollable.x=t?!0:!1,this._scrollable.y=e?!0:!1),{x:this._scrollable.x,y:this._scrollable.y}},scroll:function(t,e,i){return this.$container?("undefined"!=typeof t&&(i?this.$container.parent().stop().animate({scrollLeft:t,scrollTop:e},i):(this.$container.parent().scrollLeft(t),this.$container.parent().scrollTop(e))),{x:this.$container.parent().scrollLeft(),y:this.$container.parent().scrollTop()}):{x:0,y:0}},collapsible:function(t){return"undefined"!=typeof t&&(this._collapsible=t?!0:!1),this._collapsible},overflowVisible:function(t){return"undefined"!=typeof t&&(this._overflowVisible=t?!0:!1),this._overflowVisible},resizeVisible:function(t){return"undefined"!=typeof t&&(this._resizeVisible=t?!0:!1),this._resizeVisible},moveable:function(t){return"undefined"!=typeof t&&(this._moveable=t?!0:!1,this.$title.toggleClass("wcNotMoveable",!this._moveable)),this._moveable},detachable:function(t){return"undefined"!=typeof t&&(this._detachable=t?!0:!1),this._detachable},closeable:function(t){return"undefined"!=typeof t&&(this._closeable=t?!0:!1,this._parent&&this._parent.__update()),this._closeable},close:function(){var t=this.docker();t&&t.__closePanel(this)},startLoading:function(t,e,i){if(!this.$loading){this.$loading=$('
        '),this.$container.append(this.$loading);var n=$('
        ');"number"!=typeof e&&(e=.4),this.$loading.append(n);var r=$('
        ');if(this.$loading.append(r),t){var s=$(''+t+"");this.$loading.append(s)}"number"!=typeof i&&(i=1),this.docker().$loading&&(e=0,i=0),n.css("opacity",e),r.css("opacity",i),s&&s.css("opacity",i)}},finishLoading:function(t){if(this.$loading)if(t>0){var e=this;this.$loading.fadeOut(t,function(){e.$loading.remove(),e.$loading=null,e.docker().__testLoadFinished()})}else this.$loading.remove(),this.$loading=null,this.docker().__testLoadFinished()},on:function(t,e){return t?(this._events[t]||(this._events[t]=[]),-1!==this._events[t].indexOf(e)?!1:(this._events[t].push(e),!0)):!1},off:function(t,e){if("undefined"==typeof t)return void(this._events={});if(this._events[t])if("undefined"==typeof e)this._events[t]=[];else for(var i=0;i'),this.$titleText=$("
        "+this._title+"
        "),this.$title.append(this.$titleText),this._options.hasOwnProperty("title")&&this.title(this._options.title),this._options.icon&&this.icon(this._options.icon),this._options.faicon&&this.faicon(this._options.faicon)},__update:function(){var t=this.docker();if(t&&(this._layout.__update(),this.$container)){if(this._resizeVisible?this._parent.$frame.removeClass("wcHideOnResize"):this._parent.$frame.addClass("wcHideOnResize"),this._initialized)this.__trigger(e.EVENT.UPDATED);else{this._initialized=!0;var i=this;setTimeout(function(){i.__trigger(e.EVENT.INIT),t.__testLoadFinished()},0)}var n=this.$container.width(),r=this.$container.height();(this._actualSize.x!==n||this._actualSize.y!==r)&&(this._resizeData.time=new Date,this._resizeData.timeout||(this._resizeData.timeout=!0,setTimeout(this.__resizeEnd.bind(this),this._resizeData.delta),this.__trigger(e.EVENT.RESIZE_STARTED,{width:this._actualSize.x,height:this._actualSize.y})),this._actualSize.x=n,this._actualSize.y=r,this.__trigger(e.EVENT.RESIZED,{width:this._actualSize.x,height:this._actualSize.y}));var s=this.$container.offset();(this._actualPos.x!==s.left||this._actualPos.y!==s.top)&&(this._moveData.time=new Date,this._moveData.timeout||(this._moveData.timeout=!0,setTimeout(this.__moveEnd.bind(this),this._moveData.delta),this.__trigger(e.EVENT.MOVE_STARTED,{x:this._actualPos.x,y:this._actualPos.y})),this._actualPos.x=s.left,this._actualPos.y=s.top,this.__trigger(e.EVENT.MOVED,{x:this._actualPos.x,y:this._actualPos.y}))}},__resizeEnd:function(){new Date-this._resizeData.timen.x&&t.y>n.y&&t.xn.x&&t.y>n.y&&t.x').css("opacity",0).css("top",t.y+"px").css("left",t.x+"px").css("width",t.w+"px").css("height",t.h+"px"),this._anchorMouse={x:t.x-e.x,y:t.y-e.y},this._rect={x:-this._anchorMouse.x,y:-this._anchorMouse.y,w:t.w,h:t.h},$("body").append(this.$ghost),this.anchor(e,t)},__move:function(t){if(!this._anchor){var e=parseInt(this.$ghost.css("left")),i=parseInt(this.$ghost.css("top"));e=t.x+this._anchorMouse.x,i=t.y+this._anchorMouse.y,this.$ghost.css("left",e+"px"),this.$ghost.css("top",i+"px")}},__rect:function(){return this._rect},__destroy:function(){this.$ghost.stop().animate({opacity:0},{duration:100,complete:function(){$(this).remove()}})}});return i}),i("wcDocker/splitter",["dcl/dcl","./types","./base"],function(t,e,i){var n=t(i,{declaredClass:"wcSplitter",constructor:function(t,e,i){this.$container=$(t),this._parent=e,this._orientation=i,this._pane=[!1,!1],this.$pane=[],this.$bar=null,this._pos=.5,this._posTarget=.5,this._pixelPos=-1,this._findBestPos=!1,this._anim=0,this._boundEvents=[],this.__init(),this.docker()._splitterList.push(this)},initLayouts:function(t,e){var i=t||"wcLayoutTable",n=new(this.docker().__getClass(i))(this.$pane[0],this);i=e||"wcLayoutTable";var r=new(this.docker().__getClass(i))(this.$pane[1],this);this.pane(0,n),this.pane(1,r)},orientation:function(t){return"undefined"==typeof t?this._orientation:void(this._orientation!=t&&(this._orientation=t,this._orientation?this.$bar.removeClass("wcWide").removeClass("wcSplitterBarH").addClass("wcTall").addClass("wcSplitterBarV"):this.$bar.removeClass("wcTall").removeClass("wcSplitterBarV").addClass("wcWide").addClass("wcSplitterBarH"),this.$pane[0].css("top","").css("left","").css("width","").css("height",""),this.$pane[1].css("top","").css("left","").css("width","").css("height",""),this.$bar.css("top","").css("left","").css("width","").css("height",""),this.__update(),this._parent&&this._parent.instanceOf("wcPanel")&&this._parent.__trigger(e.EVENT.UPDATED)))},minSize:function(){var t,e;return this._pane[0]&&"function"==typeof this._pane[0].minSize&&(t=this._pane[0].minSize()),this._pane[1]&&"function"==typeof this._pane[1].minSize&&(e=this._pane[1].minSize()),t&&e?(this._orientation?(t.x+=e.x,t.y=Math.max(t.y,e.y)):(t.y+=e.y,t.x=Math.max(t.x,e.x)),t):t?t:e?e:!1},maxSize:function(){var t,e;return this._pane[0]&&"function"==typeof this._pane[0].maxSize&&(t=this._pane[0].maxSize()),this._pane[1]&&"function"==typeof this._pane[1].maxSize&&(e=this._pane[1].maxSize()),t&&e?(this._orientation?(t.x+=e.x,t.y=Math.min(t.y,e.y)):(t.y+=e.y,t.x=Math.min(t.x,e.x)),t):t?t:e?e:!1},pos:function(t){return"undefined"!=typeof t&&(this._pos=this._posTarget=t,this.__update(),this._parent&&this._parent.instanceOf("wcPanel")&&this._parent.__trigger(e.EVENT.UPDATED)),this._posTarget},animPos:function(t,e){this._posTarget=t;var i=this;this.$bar.queue(function(t){i._anim&&clearInterval(i._anim),i._anim=setInterval(function(){i._pos>i._posTarget&&(i._pos-=(i._pos-i._posTarget)/5,i._pos<=i._posTarget+.01&&(i._pos=i._posTarget)),i._pos=i._posTarget-.01&&(i._pos=i._posTarget)),i.__update(),i._pos==i._posTarget&&(e&&e(),t(),clearInterval(i._anim),i._anim=0)},5)}),this.$bar.dequeue()},pane:function(t,e){if(t>=0&&2>t){if("undefined"==typeof e)return this._pane[t];if(e)return this._pane[t]=e,e._parent=this,e.__container(this.$pane[t]),this._pane[0]&&this._pane[1]&&this.__update(),e;this._pane[t]&&(this._pane[t].__container(null),this._pane[t]=!1)}return!1},left:function(t){return this.pane(0,t)},right:function(t){return this.pane(1,t)},top:function(t){return this.pane(0,t)},bottom:function(t){return this.pane(1,t)},scrollable:function(t,e,i){return"undefined"!=typeof e&&this.$pane[t].toggleClass("wcScrollableX",e),"undefined"!=typeof i&&this.$pane[t].toggleClass("wcScrollableY",i),{x:this.$pane[t].hasClass("wcScrollableX"),y:this.$pane[t].hasClass("wcScrollableY")}},destroy:function(t){var e=this.docker();if(e){var i=this.docker()._splitterList.indexOf(this);i>-1&&this.docker()._splitterList.splice(i,1)}void 0===t||t?this.__destroy():this.__container(null)},__init:function(){if(this.$pane.push($('
        ')),this.$pane.push($('
        ')),this.$bar=$('
        '),this._orientation?this.$bar.addClass("wcTall").addClass("wcSplitterBarV"):this.$bar.addClass("wcWide").addClass("wcSplitterBarH"),this.__container(this.$container),this._parent&&this._parent.instanceOf("wcPanel")){this._boundEvents.push({event:e.EVENT.UPDATED,handler:this.__update.bind(this)}),this._boundEvents.push({event:e.EVENT.CLOSED,handler:this.destroy.bind(this)});for(var t=0;ti;++i)if(this._pane[i]&&this._pane[i].minSize&&this._pane[i].maxSize&&this._pane[i].maxSize()[t]-this._pane[i].minSize()[t]===0)return!0;return!1},__container:function(t){return"undefined"==typeof t?this.$container:(this.$container=t, - this.$container?(this.$container.append(this.$pane[0]),this.$container.append(this.$pane[1]),this.$container.append(this.$bar)):(this.$pane[0].remove(),this.$pane[1].remove(),this.$bar.remove()),this.$container)},__removeChild:function(t){if(this._pane[0]===t)this._pane[0]=!1;else{if(this._pane[1]!==t)return;this._pane[1]=!1}t&&(t.__container(null),t._parent=null)},__destroy:function(){for(this._anim&&(clearInterval(this._anim),this._anim=0),this.$bar.clearQueue();this._boundEvents.length;)this._parent.off(this._boundEvents[0].event,this._boundEvents[0].handler),this._boundEvents.shift();this._pane[0]&&(this._pane[0].__destroy(),this._pane[0]=null),this._pane[1]&&(this._pane[1].__destroy(),this._pane[1]=null),this.__container(null),this._parent=!1}});return n}),i("wcDocker/frame",["dcl/dcl","./types","./base"],function(t,e,i){var n=t(i,{declaredClass:"wcFrame",LEFT_TAB_BUFFER:15,constructor:function(t,i,n){this.$container=$(t),this._parent=i,this._isFloating=n,this.$frame=null,this.$title=null,this.$titleBar=null,this.$tabBar=null,this.$tabScroll=null,this.$center=null,this.$tabLeft=null,this.$tabRight=null,this.$close=null,this.$collapse=null,this.$top=null,this.$bottom=null,this.$left=null,this.$right=null,this.$corner1=null,this.$corner2=null,this.$corner3=null,this.$corner4=null,this.$buttonBar=null,this.$shadower=null,this.$modalBlocker=null,this._titleVisible=!0,this._canScrollTabs=!1,this._tabOrientation=e.TAB.TOP,this._tabScrollPos=0,this._curTab=-1,this._panelList=[],this._buttonList=[],this._resizeData={time:-1,timeout:!1,delta:150},this._pos={x:.5,y:.5},this._size={x:400,y:400},this._lastSize={x:400,y:400},this._anchorMouse={x:0,y:0},this.__init()},pos:function(t,e,i){var n=this.$container.width(),r=this.$container.height();return"undefined"==typeof t?i?{x:this._pos.x*n,y:this._pos.y*r}:{x:this._pos.x,y:this._pos.y}:void(i?(this._pos.x=t/n,this._pos.y=e/r):(this._pos.x=t,this._pos.y=e))},initSize:function(){for(var t={x:-1,y:-1},e=0;e=e&&this._curTab--,this._panelList[e]._parent===this&&(this._panelList[e].__container(null),this._panelList[e]._parent=null),this._panelList.splice(e,1),t._isVisible=!1;break}return-1===this._curTab&&!this.collapse()&&this._panelList.length&&(this._curTab=0),this.__updateTabs(),this._panelList.length>0},panel:function(t,e){return"undefined"!=typeof t&&(this.isCollapser()&&t===this._curTab&&(this.collapse(),t=-1),t .wcTabScroller > .wcPanelTab[id="'+this._curTab+'"]').removeClass("wcPanelTabActive"),this.$center.children('.wcPanelTabContent[id="'+this._curTab+'"]').addClass("wcPanelTabContentHidden"),this._curTab!==t&&this.collapse(),this._curTab=t,t>-1&&(this.$tabBar.find('> .wcTabScroller > .wcPanelTab[id="'+t+'"]').addClass("wcPanelTabActive"),this.$center.children('.wcPanelTabContent[id="'+t+'"]').removeClass("wcPanelTabContentHidden"),this.expand()),this.__updateTabs(e))),this._curTab>-1&&this._curTab'),this.$title=$('
        '),this.$titleBar=$('
        '),this.$tabBar=$('
        '),this.$tabScroll=$('
        '),this.$center=$('
        '),this.$tabLeft=$('
        <
        '),this.$tabRight=$('
        >
        '),this.$close=$('
        X
        '),this.$collapse=$('
        C
        '),this.$buttonBar=$('
        '),this.$tabButtonBar=$('
        '),this.$tabBar.append(this.$tabScroll),this.$tabBar.append(this.$tabButtonBar),this.$frame.append(this.$buttonBar),this.$buttonBar.append(this.$close),this.$buttonBar.append(this.$collapse),this.$frame.append(this.$center),this._isFloating&&(this.$top=$('
        ').css("top","-6px").css("left","0px").css("right","0px"),this.$bottom=$('
        ').css("bottom","-6px").css("left","0px").css("right","0px"),this.$left=$('
        ').css("left","-6px").css("top","0px").css("bottom","0px"),this.$right=$('
        ').css("right","-6px").css("top","0px").css("bottom","0px"),this.$corner1=$('
        ').css("top","-6px").css("left","-6px"),this.$corner2=$('
        ').css("top","-6px").css("right","-6px"),this.$corner3=$('
        ').css("bottom","-6px").css("right","-6px"),this.$corner4=$('
        ').css("bottom","-6px").css("left","-6px"),this.$frame.append(this.$top),this.$frame.append(this.$bottom),this.$frame.append(this.$left),this.$frame.append(this.$right),this.$frame.append(this.$corner1),this.$frame.append(this.$corner2),this.$frame.append(this.$corner3),this.$frame.append(this.$corner4)),this.__container(this.$container),this._isFloating&&this.$frame.addClass("wcFloating"),this.$center.scroll(this.__scrolled.bind(this))},__update:function(){var t=this.$container.width(),e=this.$container.height();if(this._isFloating){var i=this._pos.x*t-this._size.x/2,n=this._pos.y*e-this._size.y/2;0>n&&(n=0),i+this._size.x/2<0&&(i=-this._size.x/2),i+this._size.x/2>t&&(i=t-this._size.x/2),n+parseInt(this.$center.css("top"))>e&&(n=e-parseInt(this.$center.css("top"))),this.$frame.css("left",i+"px"),this.$frame.css("top",n+"px"),this.$frame.css("width",this._size.x+"px"),this.$frame.css("height",this._size.y+"px")}(t!==this._lastSize.x||e!==this._lastSize.y)&&(this._lastSize.x=t,this._lastSize.y=e,this._resizeData.time=new Date,this._resizeData.timeout||(this._resizeData.timeout=!0,setTimeout(this.__resizeEnd.bind(this),this._resizeData.delta))),this.__onTabChange()},__resizeEnd:function(){this.__updateTabs(),new Date-this._resizeData.time1||this._isFloating||this.isCollapser();this.isCollapser()?this.$tabBar.addClass("wcNotMoveable"):(this.$titleBar.removeClass("wcNotMoveable"),this.$tabBar.removeClass("wcNotMoveable")),this.$center.children(".wcPanelTabContent").each(function(){$(this).addClass("wcPanelTabContentHidden wcPanelTabUnused")}),this._titleVisible=!0,this.$title.html("");for(var h=0;h'),this.$center.append(_)),l.__container(_),l._parent=this;var u=this._curTab===h;if(l.isVisible()!==u&&n.push({panel:l,isVisible:u}),_.removeClass("wcPanelTabUnused"),u&&(c&&c.addClass("wcPanelTabActive"),_.removeClass("wcPanelTabContentHidden"),this.$title.html(l.title()),l.$icon)){var f=l.$icon.clone();this.$title.prepend(f)}c&&(s=i(c)-a,r.push(s),s+=c.outerWidth())}var p=this.$titleBar,d=0;if(this._titleVisible){switch(this.$frame.parent()||this.$center.css("top",""),this._tabOrientation){case e.TAB.TOP:this.$frame.prepend(this.$tabBar),this.$titleBar.remove(),this.$tabBar.addClass("wcTabTop").removeClass("wcTabLeft wcTabRight wcTabBottom"),o?this.$title.remove():this.$tabBar.prepend(this.$title),p=this.$tabBar,this.$center.css("left",0).css("right",0).css("bottom",0),d=this.$center.width();break;case e.TAB.BOTTOM:if(this.$frame.prepend(this.$titleBar),this.$titleBar.append(this.$title),o){var g=this.$titleBar.height();this.$frame.append(this.$tabBar),this.$tabBar.addClass("wcTabBottom").removeClass("wcTabTop wcTabLeft wcTabRight"),this.$center.css("left",0).css("right",0).css("bottom",g)}else this.$tabBar.remove();d=this.$center.width();break;case e.TAB.LEFT:if(this.$frame.prepend(this.$titleBar),this.$titleBar.append(this.$title),o){var g=this.$titleBar.height();this.$frame.append(this.$tabBar),this.$tabBar.addClass("wcTabLeft").removeClass("wcTabTop wcTabRight wcTabBottom"),this.$center.css("left",g).css("right",0).css("bottom",0)}else this.$tabBar.remove();d=this.$center.height();break;case e.TAB.RIGHT:if(this.$frame.prepend(this.$titleBar),this.$titleBar.append(this.$title),o){var g=this.$titleBar.height();this.$frame.append(this.$tabBar),this.$tabBar.addClass("wcTabRight").removeClass("wcTabTop wcTabLeft wcTabBottom"),this.$center.css("left",0).css("right",g).css("bottom",0)}else this.$tabBar.remove();d=this.$center.height()}o||this.$center.css("left",0).css("right",0).css("bottom",0)}else this.$titleBar.remove(),this.$tabBar.remove(),this.$center.css("top",0).css("left",0).css("right",0).css("bottom",0);if(this.$center.children(".wcPanelTabUnused").each(function(){$(this).remove()}),this._titleVisible){var v=this.__onTabChange();if(t)for(var h=0;hm?(this._tabScrollPos=m-this.LEFT_TAB_BUFFER,this._tabScrollPos<0&&(this._tabScrollPos=0)):b-w>y&&(this._tabScrollPos=b-y+this.LEFT_TAB_BUFFER);break}if(this._canScrollTabs=!1,s>d-v){this._canScrollTabs=this._titleVisible,this._canScrollTabs&&(this.$tabButtonBar.append(this.$tabRight),this.$tabButtonBar.append(this.$tabLeft),v+=this.$tabRight.outerWidth(),v+=this.$tabLeft.outerWidth());var T=s-(d-v)/2;if(this._tabScrollPos>T)for(var E=this.$tabScroll.children(),h=0;hT){this._tabScrollPos=s-this.LEFT_TAB_BUFFER,this._tabScrollPos<0&&(this._tabScrollPos=0);break}}}else this._tabScrollPos=0,this.$tabLeft.remove(),this.$tabRight.remove();this.$tabScroll.stop().animate({left:-this._tabScrollPos+"px"},"fast");for(var h=0;h.5&&c.bottom>.95?o=e.DOCK.BOTTOM:c.left<=.05?o=e.DOCK.LEFT:c.right>=.95?o=e.DOCK.RIGHT:c.bottom>.95&&(o=e.DOCK.BOTTOM)}var _="",u="";switch(o){case e.DOCK.LEFT:_="left side.",u="wcCollapseLeft";break;case e.DOCK.RIGHT:_="right side.",u="wcCollapseRight";break;case e.DOCK.BOTTOM:_="bottom.",u="wcCollapseBottom"}if(_){var a=this.$collapse.children("div");a[0].className="fa fa-sign-in",a.addClass(u),a.addClass("wcCollapsible"),this.$collapse.show(),this.$collapse.attr("title","Collapse this panel into the "+_),t+=this.$collapse.outerWidth()}}for(var f=0;f');this.$frame.append(e),e.animate({opacity:1},100).animate({opacity:0},100).animate({opacity:.6},50).animate({opacity:0},50).queue(function(t){e.remove(),t()})}},__move:function(t){var e=this.$container.width(),i=this.$container.height();this._pos.x=(t.x+this._anchorMouse.x)/e,this._pos.y=(t.y+this._anchorMouse.y)/i},__anchorMove:function(t){var e=this.$container.width(),i=this.$container.height();this._anchorMouse.x=this._pos.x*e-t.x,this._anchorMouse.y=this._pos.y*i-t.y},__tabMove:function(t,e){if(t>=0&&t=0&&e .wcTabScroller > .wcPanelTab[id="'+e+'"]')[0]}return!1},__checkAnchorDrop:function(t,e,i,n,r,s){var a=this.panel();return a&&a.moveable()?a.layout().__checkAnchorDrop(t,e&&this._tabOrientation,i,!this._isFloating&&!this.isCollapser()&&n,this.$frame,a.moveable()&&a.title(),r,this.isCollapser()?this._tabOrientation:void 0,s):!1},__resize:function(t,e){var i=this.$container.width(),n=this.$container.height(),r=this.$container.offset();e.x-=r.left,e.y-=r.top;for(var s=this.minSize(),a=this.maxSize(),o={x:this._pos.x*i-this._size.x/2,y:this._pos.y*n-this._size.y/2},h=0;ha.y&&(o.y+=this._size.y-a.y,this._size.y=a.y);break;case"bottom":this._size.y=e.y-4-o.y,this._size.ya.y&&(this._size.y=a.y);break;case"left":this._size.x+=o.x-e.x-2,o.x=e.x+2,this._size.xa.x&&(o.x+=this._size.x-a.x,this._size.x=a.x);break;case"right":this._size.x=e.x-4-o.x,this._size.xa.x&&(this._size.x=a.x)}this._pos.x=(o.x+this._size.x/2)/i,this._pos.y=(o.y+this._size.y/2)/n}},__shadow:function(t){if(t)this.$shadower||(this.$shadower=$('
        '),this.$frame.append(this.$shadower),this.$shadower.animate({opacity:.5},300));else if(this.$shadower){var e=this;this.$shadower.animate({opacity:0},300).queue(function(t){e.$shadower.remove(),e.$shadower=null,t()})}},__rect:function(){if(this.isCollapser())return this._parent.__rect();var t=this.$frame.offset(),e=this.$frame.width(),i=this.$frame.height();return{x:t.left,y:t.top,w:e,h:i}},__container:function(t){return"undefined"==typeof t?this.$container:(this.$container=t,this.$container?this.$container.append(this.$frame):this.$frame.remove(),this.$container)},__destroy:function(){this._curTab=-1;for(var t=0;t'),this.__container(this.$container),this._frame=new(this.docker().__getClass("wcFrame"))(this.$frame,this,!1),this._frame.tabOrientation(this._position)},__update:function(t){this.__adjustCollapsedSize(),this._frame.__update()},__adjustCollapsedSize:function(){this._frame._panelList.length?(this._closeSize=this._frame.$tabBar.outerHeight(),this._parent.$bar.removeClass("wcSplitterHidden")):(this._closeSize=0,this._parent.$bar.addClass("wcSplitterHidden"))},__rect:function(){var t=this.$frame.offset(),i=this.$frame.width(),n=this.$frame.height(),r=this._frame.panel();return r&&(this._position===e.DOCK.BOTTOM?(n=r._size.y,i/=3):(i=r._size.x,n/=3)),{x:t.left,y:t.top,w:i,h:n}},__save:function(){var t={};return t.closeSize=this._closeSize,t.frame=this._frame.__save(),t},__restore:function(t,e){this._closeSize=t.closeSize,this._frame.__restore(t.frame,e),this.__adjustCollapsedSize()},__container:function(t){return"undefined"==typeof t?this.$container:(this.$container=t,this.$container?this.$container.append(this.$frame):this.$frame.remove(),this.$container)},__destroy:function(){this._frame&&(this._frame.__destroy(),this._frame=null),this.__container(null),this._parent=null}});return r}),i("wcDocker/collapser",["dcl/dcl","./types","./splitter","./drawer","./base"],function(t,e,i,n,r){var s=t(r,{declaredClass:"wcCollapser",constructor:function(t,i,n){this.$container=$(t),this.$frame=null,this._position=n,this._parent=i,this._splitter=null,this._drawer=null,this._size=0,this._orientation=this._position===e.DOCK.LEFT||this._position===e.DOCK.RIGHT?e.ORIENTATION.HORIZONTAL:e.ORIENTATION.VERTICAL,this.__init()},collapse:function(t){this._drawer.collapse()},expand:function(){this._drawer.expand()},isExpanded:function(){return this._drawer.isExpanded()},minSize:function(){return{x:this._size,y:this._size}},maxSize:function(){var t=this._orientation===e.ORIENTATION.HORIZONTAL?!0:!1;return{x:t?this._size:1/0,y:t?1/0:this._size}},__init:function(){this.$frame=$('
        '),this.__container(this.$container);var t=this.docker();switch(this._splitter=new(this.docker().__getClass("wcSplitter"))(t.$container,this,this._orientation),this._drawer=new(this.docker().__getClass("wcDrawer"))(t.$transition,this._splitter,this._position),this._position){case e.DOCK.LEFT:this._splitter.pane(0,this._drawer),this._splitter.$pane[1].remove(),this._splitter.$pane[0].addClass("wcDrawer"),this._splitter.pos(0);break;case e.DOCK.RIGHT:case e.DOCK.BOTTOM:this._splitter.pane(1,this._drawer),this._splitter.$pane[0].remove(),this._splitter.$pane[1].addClass("wcDrawer"),this._splitter.pos(1)}this._parent.$bar.addClass("wcSplitterHidden")},__update:function(t){this._splitter.__update(),this.__adjustSize()},__adjustSize:function(){this._drawer._frame._panelList.length?this._size=this._drawer._frame.$tabBar.outerHeight():this._size=0},__rect:function(){return this._drawer.__rect()},__save:function(){var t={};return t.size=this._size,t.drawer=this._drawer.__save(),t},__restore:function(t,e){this._size=t.size,this._drawer.__restore(t.drawer,e),this.__adjustSize()},__container:function(t){return"undefined"==typeof t?this.$container:(this.$container=t,this.$container?this.$container.append(this.$frame):this.$frame.remove(),this.$container)},__destroy:function(){this._splitter&&(this._splitter.__destroy(),this._splitter=null,this._frame=null),this.__container(null),this._parent=null}});return s}),i("wcDocker/layout",["dcl/dcl","./types"],function(t,e){var i=t(null,{declaredClass:"wcLayout",constructor:function(t,e){this.$container=$(t),this._parent=e,this.$elem=null,this.__init()},addItem:function(t){},clear:function(){},scene:function(){return this.$elem},__init:function(){},__update:function(){},__checkAnchorDrop:function(t,i,n,r,s,a,o,h,l){function c(t,e,i){return"number"==typeof t||"string"==typeof t&&-1!==t.indexOf("px",t.length-2)?(t=parseInt(t),{x:t,y:t}):"string"==typeof t&&-1!==t.indexOf("%",t.length-1)?(t=parseInt(t)/100,{x:e*t,y:i*t}):{x:0,y:0}}var _=this._parent.docker(),u=s.outerWidth(),f=s.outerHeight(),p=s.offset(),d=s.find(".wcFrameTitleBar").height();a||(d=0);var g=c(_._options.edgeAnchorSize,_.$container.outerWidth(),_.$container.outerHeight()),v=c(_._options.panelAnchorSize,u,f);if(a){if((!h||h===e.TAB.TOP)&&t.y>=p.top&&t.y<=p.top+d&&t.x>=p.left&&t.x<=p.left+u)return n.anchor(t,{x:p.left-2,y:p.top-2,w:u,h:d-2,loc:e.DOCK.STACKED,tab:e.TAB.TOP,item:this,self:i===e.TAB.TOP||o&&i}),!0;if(_._canOrientTabs){if((!h||h===e.TAB.BOTTOM)&&t.y>=p.top+f-d&&t.y<=p.top+f&&t.x>=p.left&&t.x<=p.left+u)return n.anchor(t,{x:p.left-2,y:p.top+f-d-2,w:u,h:d,loc:e.DOCK.STACKED,tab:e.TAB.BOTTOM,item:this,self:i===e.TAB.BOTTOM}),!0;if((!h||h===e.TAB.LEFT)&&t.y>=p.top&&t.y<=p.top+f&&t.x>=p.left&&t.x<=p.left+d)return n.anchor(t,{x:p.left-2,y:p.top-2,w:d-2,h:f,loc:e.DOCK.STACKED,tab:e.TAB.LEFT,item:this,self:i===e.TAB.LEFT}),!0;if((!h||h===e.TAB.RIGHT)&&t.y>=p.top&&t.y<=p.top+f&&t.x>=p.left+u-d&&t.x<=p.left+u)return n.anchor(t,{x:p.left+u-d-2,y:p.top-2,w:d,h:f,loc:e.DOCK.STACKED,tab:e.TAB.RIGHT,item:this,self:i===e.TAB.RIGHT}),!0}}if(l&&n._outer&&n._inner){var m=n._outer.$container.outerWidth(),b=n._outer.$container.outerHeight(),$=n._outer.$container.offset();if(t.y>=$.top&&t.y<=$.top+b&&t.x>=$.left+d&&t.x<=$.left+d+g.x)return n.anchor(t,{x:$.left-2,y:$.top-2,w:m/3,h:b,loc:e.DOCK.LEFT,item:n._inner,self:!1}),!0;if(t.y>=$.top&&t.y<=$.top+b&&t.x>=$.left+m-g.x-d&&t.x<=$.left+m-d)return n.anchor(t,{x:$.left+m-m/3-2,y:$.top-2,w:m/3,h:b,loc:e.DOCK.RIGHT,item:n._inner,self:!1}),!0;if(t.y>=$.top+d&&t.y<=$.top+d+g.y&&t.x>=$.left&&t.x<=$.left+m)return n.anchor(t,{x:$.left-2,y:$.top-2,w:m,h:b/3,loc:e.DOCK.TOP,item:n._inner,self:!1}),!0;if(t.y>=$.top+b-d-g.y&&t.y<=$.top+b-d&&t.x>=$.left&&t.x<=$.left+m)return n.anchor(t,{x:$.left-2,y:$.top+b-b/3-2,w:m,h:b/3,loc:e.DOCK.BOTTOM,item:n._inner,self:!1}),!0}if(!r)return!1;if(this._parent&&this._parent.instanceOf("wcPanel")&&this._parent._isPlaceholder)return n.anchor(t,{x:p.left-2,y:p.top-2,w:u,h:f,loc:e.DOCK.TOP,item:this,self:!1}),!0;if(f>u){if(t.y>=p.top&&t.y<=p.top+d+v.y&&t.x>=p.left&&t.x<=p.left+u)return n.anchor(t,{x:p.left-2,y:p.top-2,w:u,h:.5*f,loc:e.DOCK.TOP,item:this,self:!1}),!0;if(t.y>=p.top+f-v.y-d&&t.y<=p.top+f&&t.x>=p.left&&t.x<=p.left+u)return n.anchor(t,{x:p.left-2,y:p.top+(f-.5*f)-2,w:u,h:.5*f,loc:e.DOCK.BOTTOM,item:this,self:!1}),!0}if(t.y>=p.top&&t.y<=p.top+f){if(t.x>=p.left&&t.x<=p.left+v.x+d)return n.anchor(t,{x:p.left-2,y:p.top-2,w:.5*u,h:f,loc:e.DOCK.LEFT,item:this,self:!1}),!0;if(t.x>=p.left+u-v.x-d&&t.x<=p.left+u)return n.anchor(t,{x:p.left+.5*u-2,y:p.top-2,w:.5*u,h:f,loc:e.DOCK.RIGHT,item:this,self:!1}),!0}if(u>=f){if(t.y>=p.top&&t.y<=p.top+v.y+d&&t.x>=p.left&&t.x<=p.left+u)return n.anchor(t,{x:p.left-2,y:p.top-2,w:u,h:.5*f,loc:e.DOCK.TOP,item:this,self:!1}),!0;if(t.y>=p.top+f-v.y-d&&t.y<=p.top+f&&t.x>=p.left&&t.x<=p.left+u)return n.anchor(t,{x:p.left-2,y:p.top+(f-.5*f)-2,w:u,h:.5*f,loc:e.DOCK.BOTTOM,item:this,self:!1}),!0}return!1},__container:function(t){return"undefined"==typeof t?this.$container:(this.$container=t,this.$container?this.$container.append(this.$elem):this.$elem.remove(),this.$container)},__destroy:function(){this.__container(null),this._parent=null,this.clear(),this.$elem.remove(),this.$elem=null}});return i}),i("wcDocker/layoutsimple",["dcl/dcl","./types","./layout"],function(t,e,i){var n=t(i,{declaredClass:"wcLayoutSimple",addItem:function(t){this.$elem.append(t)},clear:function(){this.$elem.remove(),this.$elem=null,this.__init()},__init:function(){this.$elem=$('
        '),this.__container(this.$container)},__update:function(){}});return n}),i("wcDocker/layouttable",["dcl/dcl","./types","./layout"],function(t,e,i){var n=t(i,{declaredClass:"wcLayoutTable",addItem:function(t,e,i,n,r){return("undefined"==typeof e||0>e)&&(e=0),("undefined"==typeof i||0>i)&&(i=0),("undefined"==typeof n||0>=n)&&(n=1),("undefined"==typeof r||0>=r)&&(r=1),this.__resizeGrid(e+n-1,i+r-1),(n>1||r>1)&&!this.__mergeGrid(e,i,n,r)?!1:(this._grid[i][e].$el.append($(t)),this.item(e,i))},item:function(t,e){if(e>=this._grid.length)return!1;if(t>=this._grid[e].length)return!1;var i=this,n={$:i._grid[e][t].$el,css:function(r,s){if(i._grid[e][t].$el){if(void 0===s)return i._grid[e][t].$el.css(r);i._grid[e][t].$el.css(r,s)}return n},stretch:function(r,s){return i.itemStretch(t,e,r,s),n}};return n},itemStretch:function(t,e,i,n){var r=this._batchProcess;this._batchProcess=!0,this.__resizeGrid(t,e);var s=this._grid[e][t];return s.x<0||s.y<0?!1:(void 0!==i&&(s.sx=i),void 0!==n&&(s.sy=n),this._batchProcess=r,r||this.__resizeGrid(0,0),!0)},clear:function(){var t=this.showGrid(),e=this.gridSpacing(),i=this.gridAlternate();this.$elem.remove(),this.__init(),this.showGrid(t),this.gridSpacing(e),this.gridAlternate(i),this._grid=[]},startBatch:function(){this._batchProcess=!0},finishBatch:function(){this._batchProcess=!1,this.__resizeGrid(0,0)},showGrid:function(t){return"undefined"!=typeof t&&this.$elem.toggleClass("wcLayoutGrid",t),this.$elem.hasClass("wcLayoutGrid")},gridSpacing:function(t){return"undefined"!=typeof t&&this.$elem.css("border-spacing",t+"px"),parseInt(this.$elem.css("border-spacing"))},gridAlternate:function(t){return"undefined"!=typeof t&&this.$elem.toggleClass("wcLayoutGridAlternate",t),this.$elem.hasClass("wcLayoutGridAlternate")},__init:function(){this.$elem=$('
        '),this.$elem.append($("")),this._grid=[],this.__container(this.$container)},__update:function(){},__resizeGrid:function(t,e){for(var i=0;e>=i;++i){if(this._grid.length<=i){var n=[];n.$row=$(""),this._grid.push(n)}for(var r=0;t>=r;++r)this._grid[i].length<=r&&this._grid[i].push({$el:$(""),x:0,y:0,sx:"",sy:""})}if(!this._batchProcess){var s=this.$elem.find("tbody");$(".wcDockerTransition").append(s);for(var a=$(""),i=0;ir;++r)for(var s=0;i>s;++s){var a=this._grid[e+r][t+s];if(!a.$el||0!==a.x||0!==a.y)return!1}var a=this._grid[e][t];i>1&&(a.$el.attr("colspan",""+i),a.x=i-1),n>1&&(a.$el.attr("rowspan",""+n),a.y=n-1);for(var r=0;n>r;++r)for(var s=0;i>s;++s)if(0!==r||0!==s){var a=this._grid[e+r][t+s];a.$el.remove(),a.$el=null,a.x=-s,a.y=-r}return!0}});return n}),i("wcDocker/tabframe",["dcl/dcl","./types","./base"],function(t,e,i){var n=t(i,{declaredClass:"wcTabFrame",LEFT_TAB_BUFFER:15,constructor:function(t,i){this.$container=$(t),this._parent=i,this.$frame=null,this.$tabBar=null,this.$tabScroll=null,this.$center=null,this.$tabLeft=null,this.$tabRight=null,this.$close=null,this._tabOrientation=e.TAB.TOP,this._canScrollTabs=!1,this._tabScrollPos=0,this._curTab=-1,this._layoutList=[],this._moveable=!0,this._boundEvents=[],this.__init()},update:function(){var t=this.$center.scrollTop();this.__updateTabs(),this.$center.scrollTop(t)},destroy:function(){this.__destroy()},tabCount:function(){return this._layoutList.length},tabOrientation:function(t){return void 0!==t&&this._tabOrientation!==t&&this.docker()._canOrientTabs&&(this._tabOrientation=t,this.__updateTabs(),this.__updateTabs()),this._tabOrientation},addTab:function(t,e,i){var n=i||"wcLayoutTable",r=new(this.docker().__getClass(n))(".wcDockerTransition",this._parent);return r.name=t,r._scrollable={x:!0,y:!0},r._scroll={x:0,y:0},r._closeable=!1,r._overflowVisible=!1,"undefined"==typeof e||-1>=e?this._layoutList.push(r):this._layoutList.splice(e,0,r),-1===this._curTab&&this._layoutList.length&&(this._curTab=0),this.__updateTabs(),r},removeTab:function(t){if(t>-1&&t=t&&(this._curTab--,this._curTab<0&&(this._curTab=0)),this.__updateTabs(),this._parent.__trigger(e.EVENT.CUSTOM_TAB_CLOSED,{obj:this,name:i,index:t}),!0}return!1},tab:function(t,i){if("undefined"!=typeof t&&t>-1&&t .wcTabScroller > .wcPanelTab[id="'+this._curTab+'"]').removeClass("wcPanelTabActive"),this.$center.children('.wcPanelTabContent[id="'+this._curTab+'"]').addClass("wcPanelTabContentHidden"),this._curTab=t,this.$tabBar.find('> .wcTabScroller > .wcPanelTab[id="'+t+'"]').addClass("wcPanelTabActive"),this.$center.children('.wcPanelTabContent[id="'+t+'"]').removeClass("wcPanelTabContentHidden"),this.__updateTabs(i);var n=this._layoutList[this._curTab].name;this._parent.__trigger(e.EVENT.CUSTOM_TAB_CHANGED,{obj:this,name:n,index:t})}return this._curTab},layout:function(t){return t>-1&&t=0&&t=0&&e .wcTabScroller > .wcPanelTab[id="'+e+'"]')[0]}return!1},moveable:function(t){return"undefined"!=typeof t&&(this._moveable=t),this._moveable},closeable:function(t,e){if(t>-1&&t-1&&t-1&&t-1&&t-1&&t")),i.$icon.removeClass(),i.$icon.addClass("wcTabIcon "+e)}},faicon:function(t,e){if(t>-1&&t")),i.$icon.removeClass(),i.$icon.addClass("fa fa-fw fa-"+e)}},__init:function(){this.$frame=$('
        '),this.$tabBar=$('
        '),this.$tabScroll=$('
        '),this.$center=$('
        '),this.$tabLeft=$('
        <
        '),this.$tabRight=$('
        >
        '),this.$close=$('
        X
        '),this.$buttonBar=$('
        '),this.$tabBar.append(this.$tabScroll),this.$tabBar.append(this.$buttonBar),this.$buttonBar.append(this.$close),this.$frame.append(this.$center),this.$frame.append(this.$tabBar),this.__container(this.$container),this._boundEvents.push({event:e.EVENT.UPDATED,handler:this.update.bind(this)}),this._boundEvents.push({event:e.EVENT.CLOSED,handler:this.destroy.bind(this)});for(var t=0;t
        '+this._layoutList[a].name+"
        ");this._moveable&&o.addClass("wcCustomTabMoveable"),this.$tabScroll.append(o),this._layoutList[a].$icon&&o.find("div").prepend(this._layoutList[a].$icon);var h=this.$center.children('.wcPanelTabContent[id="'+a+'"]');h.length||(h=$('
        '),this.$center.append(h)),this._layoutList[a].__container(h),this._layoutList[a]._parent=this;var l=this._curTab===a;h.removeClass("wcPanelTabUnused"),l&&(o.addClass("wcPanelTabActive"),h.removeClass("wcPanelTabContentHidden")),r=i(o)-s,n.push(r),r+=o.outerWidth()}var c=0,_=this.$tabBar.height();switch(this._tabOrientation){case e.TAB.TOP:this.$tabBar.addClass("wcTabTop").removeClass("wcTabLeft wcTabRight wcTabBottom"),this.$center.css("top",_).css("left",0).css("right",0).css("bottom",0),c=this.$center.width();break;case e.TAB.BOTTOM:this.$tabBar.addClass("wcTabBottom").removeClass("wcTabTop wcTabLeft wcTabRight"),this.$center.css("top",0).css("left",0).css("right",0).css("bottom",_),c=this.$center.width();break;case e.TAB.LEFT:this.$tabBar.addClass("wcTabLeft").removeClass("wcTabTop wcTabRight wcTabBottom"),this.$center.css("top",0).css("left",_).css("right",0).css("bottom",0),c=this.$center.height();break;case e.TAB.RIGHT:this.$tabBar.addClass("wcTabRight").removeClass("wcTabTop wcTabLeft wcTabBottom"),this.$center.css("top",0).css("left",0).css("right",_).css("bottom",0),c=this.$center.height()}this.$center.children(".wcPanelTabUnused").each(function(){$(this).remove()});var u=this.__onTabChange();if(t)for(var a=0;af?(this._tabScrollPos=f-this.LEFT_TAB_BUFFER,this._tabScrollPos<0&&(this._tabScrollPos=0)):p-d>g&&(this._tabScrollPos=p-g+this.LEFT_TAB_BUFFER);break}if(this._canScrollTabs=!1,r>c-u){this._canScrollTabs=!0,this.$buttonBar.append(this.$tabRight),this.$buttonBar.append(this.$tabLeft),u+=this.$tabRight.outerWidth(),u+=this.$tabLeft.outerWidth();var v=r-(c-u)/2;if(this._tabScrollPos>v)for(var m=this.$tabScroll.children(),a=0;av){this._tabScrollPos=r-this.LEFT_TAB_BUFFER,this._tabScrollPos<0&&(this._tabScrollPos=0);break}}}else this._tabScrollPos=0,this.$tabLeft.remove(),this.$tabRight.remove();this.$tabScroll.stop().animate({left:-this._tabScrollPos+"px"},"fast")},__onTabChange:function(){var t=0,i=this.layout(this._curTab);if(i){this.$center.toggleClass("wcScrollableX",i._scrollable.x),this.$center.toggleClass("wcScrollableY",i._scrollable.y),this.$center.toggleClass("wcOverflowVisible",i._overflowVisible),this.$tabLeft.remove(),this.$tabRight.remove(),i._closeable?(this.$close.show(),t+=this.$close.outerWidth()):this.$close.hide(),this._canScrollTabs&&(this.$tabBar.append(this.$tabRight),this.$tabBar.append(this.$tabLeft),t+=this.$tabRight.outerWidth()+this.$tabLeft.outerWidth());var n=this.fitContents(this._curTab);if(n.x){var r=i.scene().outerWidth();(this._tabOrientation===e.TAB.LEFT||this._tabOrientation===e.TAB.RIGHT)&&(r+=this.$tabScroll.height()),this.$container.css("width",r)}else this.$container.css("width","");if(n.y){var s=i.scene().outerHeight();(this._tabOrientation===e.TAB.TOP||this._tabOrientation===e.TAB.BOTTOM)&&(s+=this.$tabScroll.height()),this.$container.css("height",s)}else this.$container.css("height","");switch(this._tabOrientation){case e.TAB.RIGHT:case e.TAB.LEFT:this.$tabBar.css("width",this.$center.height()||"100%");break;case e.TAB.TOP:case e.TAB.BOTTOM:this.$tabBar.css("width",this.$center.width()||"100%")}this.$center.scrollLeft(i._scroll.x),this.$center.scrollTop(i._scroll.y)}return this.$buttonBar.css("min-width",t).css("width",t),t},__scrolled:function(){var t=this.layout(this._curTab);t._scroll.x=this.$center.scrollLeft(),t._scroll.y=this.$center.scrollTop()},__container:function(t){return"undefined"==typeof t?this.$container:(this.$container=t,this.$container?this.$container.append(this.$frame):this.$frame.remove(),this.$container)},__destroy:function(){var t=this.docker();if(t){var e=t._tabList.indexOf(this);e>-1&&t._tabList.splice(e,1)}for(;this._boundEvents.length;)this._parent.off(this._boundEvents[0].event,this._boundEvents[0].handler),this._boundEvents.shift();this._curTab=-1;for(var i=0;ie&&!s||!r||i&&!a&&o||n&&o)return 1;if(e>t&&!i||!o||s&&!n&&r||a&&r)return-1}return 0}function e(t,e,i){for(var n=t.length,r=i?n:-1;i?r--:++r-1;);return i}function o(t,e){for(var i=t.length;i--&&e.indexOf(t.charAt(i))>-1;);return i}function h(e,i){return t(e.criteria,i.criteria)||e.index-i.index}function l(e,i,n){for(var r=-1,s=e.criteria,a=i.criteria,o=s.length,h=n.length;++r=h)return l;var c=n[r];return l*("asc"===c||c===!0?1:-1)}}return e.index-i.index}function c(t){return Kt[t]}function _(t){return Gt[t]}function u(t,e,i){return e?t=Ut[t]:i&&(t=Zt[t]),"\\"+t}function f(t){return"\\"+Zt[t]}function p(t,e,i){for(var n=t.length,r=e+(i?0:-1);i?r--:++r=t&&t>=9&&13>=t||32==t||160==t||5760==t||6158==t||t>=8192&&(8202>=t||8232==t||8233==t||8239==t||8287==t||12288==t||65279==t)}function v(t,e){for(var i=-1,n=t.length,r=-1,s=[];++ie,r=i?t.length:0,s=Ui(0,r,this.__views__),a=s.start,o=s.end,h=o-a,l=n?o:a-1,c=this.__iteratees__,_=c.length,u=0,f=Ca(h,this.__takeCount__);if(!i||N>r||r==h&&f==h)return ri(t,this.__actions__);var p=[];t:for(;h--&&f>u;){l+=e;for(var d=-1,g=t[l];++d<_;){var v=c[d],m=v.iteratee,b=v.type,$=m(g);if(b==M)g=$;else if(!$){if(b==R)continue t;break t}}p[u++]=g}return p}function Wt(){this.__data__={}}function Ut(t){return this.has(t)&&delete this.__data__[t]}function Zt(t){return"__proto__"==t?T:this.__data__[t]}function qt(t){return"__proto__"!=t&&na.call(this.__data__,t)}function Yt(t,e){return"__proto__"!=t&&(this.__data__[t]=e),this}function Xt(t){var e=t?t.length:0;for(this.data={hash:ba(null),set:new fa};e--;)this.push(t[e])}function Jt(t,e){var i=t.data,n="string"==typeof e||Ar(e)?i.set.has(e):i.hash[e];return n?0:-1}function Qt(t){var e=this.data;"string"==typeof t||Ar(t)?e.set.add(t):e.hash[t]=!0}function ne(t,e){for(var i=-1,n=t.length,r=-1,s=e.length,a=Hs(n+s);++i=N?gi(e):null,l=e.length;h&&(a=Jt,o=!1,e=h);t:for(;++si&&(i=-i>r?0:r+i),n=n===T||n>r?r:+n||0,0>n&&(n+=r),r=i>n?0:n>>>0,i>>>=0;r>i;)t[i++]=e;return t}function Le(t,e){var i=[];return Va(t,function(t,n,r){e(t,n,r)&&i.push(t)}),i}function De(t,e,i,n){var r;return i(t,function(t,i,s){return e(t,i,s)?(r=n?i:t,!1):void 0}),r}function Se(t,e,i,n){n||(n=[]);for(var r=-1,s=t.length;++rn;)t=fn(t)[e[n++]];return n&&n==r?t:T}}function ze(t,e,i,n,r,s){return t===e?!0:null==t||null==e||!Ar(t)&&!d(e)?t!==t&&e!==e:Ne(t,e,ze,i,n,r,s)}function Ne(t,e,i,n,r,s,a){var o=Io(t),h=Io(e),l=G,c=G;o||(l=sa.call(t),l==K?l=X:l!=X&&(o=jr(t))),h||(c=sa.call(e),c==K?c=X:c!=X&&(h=jr(e)));var _=l==X&&!ee(t),u=c==X&&!ee(e),f=l==c;if(f&&!o&&!_)return Mi(t,e,l);if(!r){var p=_&&na.call(t,"__wrapped__"),d=u&&na.call(e,"__wrapped__");if(p||d)return i(p?t.value():t,d?e.value():e,n,r,s,a)}if(!f)return!1;s||(s=[]),a||(a=[]);for(var g=s.length;g--;)if(s[g]==t)return a[g]==e;s.push(t),a.push(e);var v=(o?Ri:Vi)(t,e,i,n,r,s,a);return s.pop(),a.pop(),v}function Re(t,e,i){var n=e.length,r=n,s=!i;if(null==t)return!r;for(t=fn(t);n--;){var a=e[n];if(s&&a[2]?a[1]!==t[a[0]]:!(a[0]in t))return!1}for(;++ne&&(e=-e>r?0:r+e),i=i===T||i>r?r:+i||0,0>i&&(i+=r),r=e>i?0:i-e>>>0,e>>>=0;for(var s=Hs(r);++n=N,h=o?gi():null,l=[];h?(r=Jt,a=!1):(o=!1,h=e?[]:l);t:for(;++i=r){for(;r>n;){var s=n+r>>>1,a=t[s];(i?e>=a:e>a)&&null!==a?n=s+1:r=s}return r}return ai(t,e,Ls,i)}function ai(t,e,i,n){e=i(e);for(var r=0,s=t?t.length:0,a=e!==e,o=null===e,h=e===T;s>r;){var l=$a((r+s)/2),c=i(t[l]),_=c!==T,u=c===c;if(a)var f=u||n;else f=o?u&&_&&(n||null!=c):h?u&&(n||_):null==c?!1:n?e>=c:e>c;f?r=l+1:s=l}return Ca(s,Pa)}function oi(t,e,i){if("function"!=typeof t)return Ls;if(e===T)return t;switch(i){case 1:return function(i){return t.call(e,i)};case 3:return function(i,n,r){return t.call(e,i,n,r)};case 4:return function(i,n,r,s){return t.call(e,i,n,r,s)};case 5:return function(i,n,r,s,a){return t.call(e,i,n,r,s,a)}}return function(){return t.apply(e,arguments)}}function hi(t){var e=new ha(t.byteLength),i=new ga(e);return i.set(new ga(t)),e}function li(t,e,i){for(var n=i.length,r=-1,s=Ea(t.length-n,0),a=-1,o=e.length,h=Hs(o+s);++a2?i[r-2]:T,a=r>2?i[2]:T,o=r>1?i[r-1]:T;for("function"==typeof s?(s=oi(s,o,5),r-=2):(s="function"==typeof o?o:T,r-=s?1:0),a&&tn(i[0],i[1],a)&&(s=3>r?T:s,r=1);++n-1?n[a]:T}return De(n,r,t)}}function Ti(t){return function(i,n,r){return i&&i.length?(n=Hi(n,r,3),e(i,n,t)):-1}}function Ei(t){return function(e,i,n){return i=Hi(i,n,3),De(e,i,t,!0)}}function Ci(t){return function(){for(var e,i=arguments.length,n=t?i:-1,r=0,s=Hs(i);t?n--:++n=N)return e.plant(n).value();for(var r=0,a=i?s[r].apply(this,t):n;++rb){var O=o?re(o):T,F=Ea(l-b,0),L=p?E:T,P=p?T:E,B=p?w:T,k=p?T:w;e|=p?D:S,e&=~(p?S:D),d||(e&=~(C|x));var I=[t,e,i,B,L,k,P,O,h,F],A=Bi.apply(T,I);return nn(t)&&Za(A,I),A.placeholder=y,A}}var z=u?i:this,N=f?z[t]:t;return o&&(w=cn(w,o)),_&&h=e||!ya(e))return"";var r=e-n;return i=null==i?" ":i+"",ms(i,ma(r/i.length)).slice(0,r)}function Ii(t,e,i,n){function r(){for(var e=-1,o=arguments.length,h=-1,l=n.length,c=Hs(l+o);++hh))return!1;for(;++o-1&&t%1==0&&e>t}function tn(t,e,i){if(!Ar(i))return!1;var n=typeof e;if("number"==n?Ji(i)&&Qi(e,i.length):"string"==n&&e in i){var r=i[e];return t===t?t===r:r!==r}return!1}function en(t,e){var i=typeof t;if("string"==i&&Tt.test(t)||"number"==i)return!0;if(Io(t))return!1;var n=!yt.test(t);return n||null!=e&&t in fn(e)}function nn(t){var e=Ki(t),i=g[e];if("function"!=typeof i||!(e in et.prototype))return!1;if(t===i)return!0;var n=Wa(i);return!!n&&t===n[0]}function rn(t){return"number"==typeof t&&t>-1&&t%1==0&&ka>=t}function sn(t){return t===t&&!Ar(t)}function an(t,e){var i=t[1],n=e[1],r=i|n,s=P>r,a=n==P&&i==F||n==P&&i==B&&t[7].length<=e[8]||n==(P|B)&&i==F;if(!s&&!a)return t;n&C&&(t[2]=e[2],r|=i&C?0:O);var o=e[3];if(o){var h=t[3];t[3]=h?li(h,o,e[4]):re(o),t[4]=h?v(t[3],H):re(e[4])}return o=e[5],o&&(h=t[5],t[5]=h?ci(h,o,e[6]):re(o),t[6]=h?v(t[5],H):re(e[6])),o=e[7],o&&(t[7]=re(o)),n&P&&(t[8]=null==t[8]?e[8]:Ca(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=r,t}function on(t,e){return t===T?e:Ao(t,e,on)}function hn(t,e){t=fn(t);for(var i=-1,n=e.length,r={};++in;)a[++s]=Ye(t,n,n+=e);return a}function vn(t){for(var e=-1,i=t?t.length:0,n=-1,r=[];++ee?0:e)):[]}function bn(t,e,i){var n=t?t.length:0;return n?((i?tn(t,e,i):null==e)&&(e=1),e=n-(+e||0),Ye(t,0,0>e?0:e)):[]}function $n(t,e,i){return t&&t.length?ni(t,Hi(e,i,3),!0,!0):[]}function wn(t,e,i){return t&&t.length?ni(t,Hi(e,i,3),!0):[]}function yn(t,e,i,n){var r=t?t.length:0;return r?(i&&"number"!=typeof i&&tn(t,e,i)&&(i=0,n=r),Fe(t,e,i,n)):[]}function Tn(t){return t?t[0]:T}function En(t,e,i){var n=t?t.length:0;return i&&tn(t,e,i)&&(e=!1),n?Se(t,e):[]}function Cn(t){var e=t?t.length:0;return e?Se(t,!0):[]}function xn(t,e,i){var r=t?t.length:0;if(!r)return-1;if("number"==typeof i)i=0>i?Ea(r+i,0):i;else if(i){var s=si(t,e);return r>s&&(e===e?e===t[s]:t[s]!==t[s])?s:-1}return n(t,e,i||0)}function On(t){return bn(t,1)}function Fn(t){var e=t?t.length:0;return e?t[e-1]:T}function Ln(t,e,i){var n=t?t.length:0;if(!n)return-1;var r=n;if("number"==typeof i)r=(0>i?Ea(n+i,0):Ca(i||0,n-1))+1;else if(i){r=si(t,e,!0)-1;var s=t[r];return(e===e?e===s:s!==s)?r:-1}if(e!==e)return p(t,r,!0);for(;r--;)if(t[r]===e)return r;return-1}function Dn(){var t=arguments,e=t[0];if(!e||!e.length)return e;for(var i=0,n=Gi(),r=t.length;++i-1;)da.call(e,s,1);return e}function Sn(t,e,i){var n=[];if(!t||!t.length)return n;var r=-1,s=[],a=t.length;for(e=Hi(e,i,3);++re?0:e)):[]}function In(t,e,i){var n=t?t.length:0;return n?((i?tn(t,e,i):null==e)&&(e=1),e=n-(+e||0),Ye(t,0>e?0:e)):[]}function An(t,e,i){return t&&t.length?ni(t,Hi(e,i,3),!1,!0):[]}function zn(t,e,i){return t&&t.length?ni(t,Hi(e,i,3)):[]}function Nn(t,e,i,r){var s=t?t.length:0;if(!s)return[];null!=e&&"boolean"!=typeof e&&(r=i,i=tn(t,e,r)?T:e,e=!1);var a=Hi();return(null!=i||a!==ye)&&(i=a(i,r,3)),e&&Gi()===n?m(t,i):ei(t,i)}function Rn(t){if(!t||!t.length)return[];var e=-1,i=0;t=le(t,function(t){return Ji(t)?(i=Ea(t.length,i),!0):void 0});for(var n=Hs(i);++ei?Ea(r+i,0):i||0,"string"==typeof t||!Io(t)&&Gr(t)?r>=i&&t.indexOf(e,i)>-1:!!r&&Gi(t,e,i)>-1}function ir(t,e,i){var n=Io(t)?ce:Me;return e=Hi(e,i,3),n(t,e)}function nr(t,e){return ir(t,Is(e))}function rr(t,e,i){var n=Io(t)?le:Le;return e=Hi(e,i,3),n(t,function(t,i,n){return!e(t,i,n)})}function sr(t,e,i){if(i?tn(t,e,i):null==e){t=un(t);var n=t.length;return n>0?t[Ze(0,n-1)]:T}var r=-1,s=qr(t),n=s.length,a=n-1;for(e=Ca(0>e?0:+e||0,n);++r0&&(i=e.apply(this,arguments)),1>=t&&(e=T),i}}function dr(t,e,i){function n(){f&&la(f),l&&la(l),d=0,l=f=p=T}function r(e,i){i&&la(i),l=f=p=T,e&&(d=wo(),c=t.apply(u,h),f||l||(h=u=T))}function s(){var t=e-(wo()-_);0>=t||t>e?r(p,l):f=pa(s,t)}function a(){r(v,f)}function o(){if(h=arguments,_=wo(),u=this,p=v&&(f||!m),g===!1)var i=m&&!f;else{l||m||(d=_);var n=g-(_-d),r=0>=n||n>g;r?(l&&(l=la(l)),d=_,c=t.apply(u,h)):l||(l=pa(a,n))}return r&&f?f=la(f):f||e===g||(f=pa(s,e)),i&&(r=!0,c=t.apply(u,h)),!r||f||l||(h=u=T),c}var h,l,c,_,u,f,p,d=0,g=!1,v=!0;if("function"!=typeof t)throw new Xs(V);if(e=0>e?0:+e||0,i===!0){var m=!0;v=!1}else Ar(i)&&(m=!!i.leading,g="maxWait"in i&&Ea(+i.maxWait||0,e),v="trailing"in i?!!i.trailing:v);return o.cancel=n,o}function gr(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new Xs(V);var i=function(){var n=arguments,r=e?e.apply(this,n):n[0],s=i.cache;if(s.has(r))return s.get(r);var a=t.apply(this,n);return i.cache=s.set(r,a),a};return i.cache=new gr.Cache,i}function vr(t){if("function"!=typeof t)throw new Xs(V);return function(){return!t.apply(this,arguments)}}function mr(t){return pr(2,t)}function br(t,e){if("function"!=typeof t)throw new Xs(V);return e=Ea(e===T?t.length-1:+e||0,0),function(){for(var i=arguments,n=-1,r=Ea(i.length-e,0),s=Hs(r);++ne}function xr(t,e){return t>=e}function Or(t){return d(t)&&Ji(t)&&na.call(t,"callee")&&!ua.call(t,"callee")}function Fr(t){return t===!0||t===!1||d(t)&&sa.call(t)==j}function Lr(t){return d(t)&&sa.call(t)==W}function Dr(t){return!!t&&1===t.nodeType&&d(t)&&!Hr(t)}function Sr(t){return null==t?!0:Ji(t)&&(Io(t)||Gr(t)||Or(t)||d(t)&&Ir(t.splice))?!t.length:!Wo(t).length}function Pr(t,e,i,n){i="function"==typeof i?oi(i,n,3):T;var r=i?i(t,e):T;return r===T?ze(t,e,i):!!r}function Br(t){return d(t)&&"string"==typeof t.message&&sa.call(t)==U}function kr(t){return"number"==typeof t&&ya(t)}function Ir(t){return Ar(t)&&sa.call(t)==Z}function Ar(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function zr(t,e,i,n){return i="function"==typeof i?oi(i,n,3):T,Re(t,ji(e),i)}function Nr(t){return Vr(t)&&t!=+t}function Rr(t){return null==t?!1:Ir(t)?oa.test(ia.call(t)):d(t)&&(ee(t)?oa:Pt).test(t)}function Mr(t){return null===t}function Vr(t){return"number"==typeof t||d(t)&&sa.call(t)==Y}function Hr(t){var e;if(!d(t)||sa.call(t)!=X||ee(t)||Or(t)||!na.call(t,"constructor")&&(e=t.constructor,"function"==typeof e&&!(e instanceof e)))return!1;var i;return g.support.ownLast?(Pe(t,function(t,e,n){return i=na.call(n,e),!1}),i!==!1):(Pe(t,function(t,e){i=e}),i===T||na.call(t,i))}function Kr(t){return Ar(t)&&sa.call(t)==J}function Gr(t){return"string"==typeof t||d(t)&&sa.call(t)==tt}function jr(t){return d(t)&&rn(t.length)&&!!Vt[sa.call(t)]}function Wr(t){return t===T}function Ur(t,e){return e>t}function Zr(t,e){return e>=t}function qr(t){var e=t?Ua(t):0;return rn(e)?e?g.support.unindexedChars&&Gr(t)?t.split(""):re(t):[]:os(t)}function Yr(t){return we(t,is(t))}function Xr(t,e,i){var n=Ma(t);return i&&tn(t,e,i)&&(e=T),e?be(n,e):n}function Jr(t){return Ie(t,is(t))}function Qr(t,e,i){var n=null==t?T:Ae(t,pn(e),e+"");return n===T?i:n}function ts(t,e){if(null==t)return!1;var i=na.call(t,e);if(!i&&!en(e)){if(e=pn(e),t=1==e.length?t:Ae(t,Ye(e,0,-1)),null==t)return!1;e=Fn(e),i=na.call(t,e)}return i||rn(t.length)&&Qi(e,t.length)&&(Io(t)||Or(t)||Gr(t))}function es(t,e,i){i&&tn(t,e,i)&&(e=T);for(var n=-1,r=Wo(t),s=r.length,a={};++n0,l=i.enumErrorProps&&(t===Qs||t instanceof Gs),c=i.enumPrototypes&&Ir(t);++r=Ca(e,i)&&ti?0:+i||0,n),i-=e.length,i>=0&&t.indexOf(e,i)==i}function ps(t){return t=s(t),t&&mt.test(t)?t.replace(gt,_):t}function ds(t){return t=s(t),t&&xt.test(t)?t.replace(Ct,u):t||"(?:)"}function gs(t,e,i){t=s(t),e=+e;var n=t.length;if(n>=e||!ya(e))return t;var r=(e-n)/2,a=$a(r),o=ma(r);return i=ki("",o,i),i.slice(0,a)+t+i}function vs(t,e,i){return(i?tn(t,e,i):null==e)?e=0:e&&(e=+e),t=ws(t),Oa(t,e||(St.test(t)?16:10))}function ms(t,e){var i="";if(t=s(t),e=+e,1>e||!t||!ya(e))return i;do e%2&&(i+=t),e=$a(e/2),t+=t;while(e);return i}function bs(t,e,i){return t=s(t),i=null==i?0:Ca(0>i?0:+i||0,t.length),t.lastIndexOf(e,i)==i}function $s(t,e,i){var n=g.templateSettings;i&&tn(t,e,i)&&(e=i=T),t=s(t),e=me(be({},i||e),n,ve);var r,a,o=me(be({},e.imports),n.imports,ve),h=Wo(o),l=ii(o,h),c=0,_=e.interpolate||It,u="__p += '",p=qs((e.escape||It).source+"|"+_.source+"|"+(_===wt?Lt:It).source+"|"+(e.evaluate||It).source+"|$","g"),d="//# sourceURL="+("sourceURL"in e?e.sourceURL:"lodash.templateSources["+ ++Mt+"]")+"\n";t.replace(p,function(e,i,n,s,o,h){return n||(n=s),u+=t.slice(c,h).replace(At,f),i&&(r=!0,u+="' +\n__e("+i+") +\n'"),o&&(a=!0,u+="';\n"+o+";\n__p += '"),n&&(u+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),c=h+e.length,e}),u+="';\n";var v=e.variable;v||(u="with (obj) {\n"+u+"\n}\n"),u=(a?u.replace(ut,""):u).replace(ft,"$1").replace(pt,"$1;"),u="function("+(v||"obj")+") {\n"+(v?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(r?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+u+"return __p\n}";var m=nh(function(){return js(h,d+"return "+u).apply(T,l)});if(m.source=u,Br(m))throw m;return m}function ws(t,e,i){var n=t;return(t=s(t))?(i?tn(n,e,i):null==e)?t.slice(b(t),$(t)+1):(e+="",t.slice(a(t,e),o(t,e)+1)):t}function ys(t,e,i){var n=t;return t=s(t),t?(i?tn(n,e,i):null==e)?t.slice(b(t)):t.slice(a(t,e+"")):t}function Ts(t,e,i){var n=t;return t=s(t),t?(i?tn(n,e,i):null==e)?t.slice(0,$(t)+1):t.slice(0,o(t,e+"")+1):t}function Es(t,e,i){i&&tn(t,e,i)&&(e=T);var n=k,r=I;if(null!=e)if(Ar(e)){var a="separator"in e?e.separator:a;n="length"in e?+e.length||0:n,r="omission"in e?s(e.omission):r}else n=+e||0;if(t=s(t),n>=t.length)return t;var o=n-r.length;if(1>o)return r;var h=t.slice(0,o);if(null==a)return h+r;if(Kr(a)){if(t.slice(o).search(a)){var l,c,_=t.slice(0,o);for(a.global||(a=qs(a.source,(Dt.exec(a)||"")+"g")),a.lastIndex=0;l=a.exec(_);)c=l.index;h=h.slice(0,null==c?o:c)}}else if(t.indexOf(a,o)!=o){var u=h.lastIndexOf(a);u>-1&&(h=h.slice(0,u))}return h+r}function Cs(t){return t=s(t),t&&vt.test(t)?t.replace(dt,w):t}function xs(t,e,i){return i&&tn(t,e,i)&&(e=T),t=s(t),t.match(e||zt)||[]}function Os(t,e,i){return i&&tn(t,e,i)&&(e=T),d(t)?Ds(t):ye(t,e)}function Fs(t){return function(){return t}}function Ls(t){return t}function Ds(t){return Ve(Te(t,!0))}function Ss(t,e){return He(t,Te(e,!0))}function Ps(t,e,i){if(null==i){var n=Ar(e),r=n?Wo(e):T,s=r&&r.length?Ie(e,r):T;(s?s.length:n)||(s=!1,i=e,e=t,t=this)}s||(s=Ie(e,Wo(e)));var a=!0,o=-1,h=Ir(t),l=s.length;i===!1?a=!1:Ar(i)&&"chain"in i&&(a=i.chain);for(;++ot||!ya(t))return[];var n=-1,r=Hs(Ca(t,Sa));for(e=oi(e,i,1);++nn?r[n]=e(n):e(n);return r}function Rs(t){var e=++ra;return s(t)+e}function Ms(t,e){return(+t||0)+(+e||0)}function Vs(t,e,i){return i&&tn(t,e,i)&&(e=T),e=Hi(e,i,3),1==e.length?de(Io(t)?t:un(t),e):ti(t,e)}i=i?ie.defaults(te.Object(),i,ie.pick(te,Nt)):te;var Hs=i.Array,Ks=i.Date,Gs=i.Error,js=i.Function,Ws=i.Math,Us=i.Number,Zs=i.Object,qs=i.RegExp,Ys=i.String,Xs=i.TypeError,Js=Hs.prototype,Qs=Gs.prototype,ta=Zs.prototype,ea=Ys.prototype,ia=js.prototype.toString,na=ta.hasOwnProperty,ra=0,sa=ta.toString,aa=te._,oa=qs("^"+ia.call(na).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ha=i.ArrayBuffer,la=i.clearTimeout,ca=i.parseFloat,_a=Ws.pow,ua=ta.propertyIsEnumerable,fa=Wi(i,"Set"),pa=i.setTimeout,da=Js.splice,ga=i.Uint8Array,va=Wi(i,"WeakMap"),ma=Ws.ceil,ba=Wi(Zs,"create"),$a=Ws.floor,wa=Wi(Hs,"isArray"),ya=i.isFinite,Ta=Wi(Zs,"keys"),Ea=Ws.max,Ca=Ws.min,xa=Wi(Ks,"now"),Oa=i.parseInt,Fa=Ws.random,La=Us.NEGATIVE_INFINITY,Da=Us.POSITIVE_INFINITY,Sa=4294967295,Pa=Sa-1,Ba=Sa>>>1,ka=9007199254740991,Ia=va&&new va,Aa={},za={};za[nt]=i.Float32Array,za[rt]=i.Float64Array,za[st]=i.Int8Array,za[at]=i.Int16Array,za[ot]=i.Int32Array,za[ht]=ga,za[lt]=i.Uint8ClampedArray,za[ct]=i.Uint16Array,za[_t]=i.Uint32Array;var Na={};Na[G]=Na[W]=Na[Y]={constructor:!0,toLocaleString:!0,toString:!0,valueOf:!0},Na[j]=Na[tt]={constructor:!0,toString:!0,valueOf:!0},Na[U]=Na[Z]=Na[J]={constructor:!0,toString:!0},Na[X]={constructor:!0},se(Rt,function(t){for(var e in Na)if(na.call(Na,e)){var i=Na[e];i[t]=na.call(i,t)}});var Ra=g.support={};!function(t){var e=function(){this.x=t},i={0:t,length:t},n=[];e.prototype={valueOf:t,y:t};for(var r in new e)n.push(r);Ra.enumErrorProps=ua.call(Qs,"message")||ua.call(Qs,"name"),Ra.enumPrototypes=ua.call(e,"prototype"),Ra.nonEnumShadows=!/valueOf/.test(n),Ra.ownLast="x"!=n[0],Ra.spliceObjects=(da.call(i,0,1),!i[0]),Ra.unindexedChars="x"[0]+Zs("x")[0]!="xx"}(1,0),g.templateSettings={escape:bt,evaluate:$t,interpolate:wt,variable:"",imports:{_:g}};var Ma=function(){function t(){}return function(e){if(Ar(e)){t.prototype=e;var i=new t;t.prototype=T}return i||{}}}(),Va=fi(Be),Ha=fi(ke,!0),Ka=pi(),Ga=pi(!0),ja=Ia?function(t,e){return Ia.set(t,e),t}:Ls,Wa=Ia?function(t){return Ia.get(t)}:ks,Ua=je("length"),Za=function(){var t=0,e=0;return function(i,n){var r=wo(),s=z-(r-e);if(e=r,s>0){if(++t>=A)return i}else t=0;return ja(i,n)}}(),qa=br(function(t,e){return d(t)&&Ji(t)?Ce(t,Se(e,!1,!0)):[]}),Ya=Ti(),Xa=Ti(!0),Ja=br(function(t){for(var e=t.length,i=e,r=Hs(_),s=Gi(),a=s===n,o=[];i--;){var h=t[i]=Ji(h=t[i])?h:[];r[i]=a&&h.length>=120?gi(i&&h):null}var l=t[0],c=-1,_=l?l.length:0,u=r[0];t:for(;++c<_;)if(h=l[c],(u?Jt(u,h):s(o,h,0))<0){for(var i=e;--i;){var f=r[i];if((f?Jt(f,h):s(t[i],h,0))<0)continue t}u&&u.push(h),o.push(h)}return o}),Qa=br(function(e,i){i=Se(i);var n=$e(e,i);return Ue(e,i.sort(t)),n}),to=zi(),eo=zi(!0),io=br(function(t){return ei(Se(t,!1,!0))}),no=br(function(t,e){return Ji(t)?Ce(t,e):[]}),ro=br(Rn),so=br(function(t){var e=t.length,i=e>2?t[e-2]:T,n=e>1?t[e-1]:T;return e>2&&"function"==typeof i?e-=2:(i=e>1&&"function"==typeof n?(--e,n):T,n=T),t.length=e,Mn(t,i,n)}),ao=br(function(t){return t=Se(t),this.thru(function(e){return ne(Io(e)?e:[fn(e)],t)})}),oo=br(function(t,e){return Ji(t)&&(t=un(t)),$e(t,Se(e))}),ho=_i(function(t,e,i){na.call(t,i)?++t[i]:t[i]=1}),lo=yi(Va),co=yi(Ha,!0),_o=xi(se,Va),uo=xi(ae,Ha),fo=_i(function(t,e,i){na.call(t,i)?t[i].push(e):t[i]=[e]}),po=_i(function(t,e,i){t[i]=e}),go=br(function(t,e,i){var n=-1,r="function"==typeof e,s=en(e),a=Ji(t)?Hs(t.length):[];return Va(t,function(t){var o=r?e:s&&null!=t?t[e]:T;a[++n]=o?o.apply(t,i):Xi(t,e,i)}),a}),vo=_i(function(t,e,i){t[i?0:1].push(e)},function(){return[[],[]]}),mo=Pi(ue,Va),bo=Pi(fe,Ha),$o=br(function(t,e){if(null==t)return[];var i=e[2];return i&&tn(e[0],e[1],i)&&(e.length=1),Qe(t,Se(e),[])}),wo=xa||function(){return(new Ks).getTime()},yo=br(function(t,e,i){var n=C;if(i.length){var r=v(i,yo.placeholder);n|=D}return Ni(t,n,e,i,r)}),To=br(function(t,e){e=e.length?Se(e):Jr(t);for(var i=-1,n=e.length;++i0||0>e)?new et(i):(0>t?i=i.takeRight(-t):t&&(i=i.drop(t)),e!==T&&(e=+e||0,i=0>e?i.dropRight(-e):i.take(e-t)),i)},et.prototype.takeRightWhile=function(t,e){return this.reverse().takeWhile(t,e).reverse()},et.prototype.toArray=function(){return this.take(Da)},Be(et.prototype,function(t,e){var i=/^(?:filter|map|reject)|While$/.test(e),n=/^(?:first|last)$/.test(e),r=g[n?"take"+("last"==e?"Right":""):e];r&&(g.prototype[e]=function(){var e=n?[1]:arguments,s=this.__chain__,a=this.__wrapped__,o=!!this.__actions__.length,h=a instanceof et,l=e[0],c=h||Io(a);c&&i&&"function"==typeof l&&1!=l.length&&(h=c=!1);var _=function(t){return n&&s?r(t,1)[0]:r.apply(T,_e([t],e))},u={func:jn,args:[_],thisArg:T},f=h&&!o;if(n&&!s)return f?(a=a.clone(),a.__actions__.push(u),t.call(a)):r.call(T,this.value())[0];if(!n&&c){a=f?a:new et(this);var p=t.apply(a,e);return p.__actions__.push(u),new Q(p,s)}return this.thru(_)})}),se(["join","pop","push","replace","shift","sort","splice","split","unshift"],function(t){var e=(/^(?:replace|split)$/.test(t)?ea:Js)[t],i=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",n=!Ra.spliceObjects&&/^(?:pop|shift|splice)$/.test(t),r=/^(?:join|pop|replace|shift)$/.test(t),s=n?function(){var t=e.apply(this,arguments);return 0===this.length&&delete this[0],t}:e;g.prototype[t]=function(){var t=arguments;return r&&!this.__chain__?s.apply(this.value(),t):this[i](function(e){return s.apply(e,t)})}}),Be(et.prototype,function(t,e){var i=g[e];if(i){var n=i.name+"",r=Aa[n]||(Aa[n]=[]);r.push({name:e,func:i})}}),Aa[Bi(T,x).name]=[{name:"wrapper",func:T}],et.prototype.clone=Kt,et.prototype.reverse=Gt,et.prototype.value=jt,g.prototype.chain=Wn,g.prototype.commit=Un,g.prototype.concat=ao,g.prototype.plant=Zn,g.prototype.reverse=qn,g.prototype.toString=Yn,g.prototype.run=g.prototype.toJSON=g.prototype.valueOf=g.prototype.value=Xn,g.prototype.collect=g.prototype.map,g.prototype.head=g.prototype.first,g.prototype.select=g.prototype.filter,g.prototype.tail=g.prototype.rest,g}var T,E="3.10.1",C=1,x=2,O=4,F=8,L=16,D=32,S=64,P=128,B=256,k=30,I="...",A=150,z=16,N=200,R=1,M=2,V="Expected a function",H="__lodash_placeholder__",K="[object Arguments]",G="[object Array]",j="[object Boolean]",W="[object Date]",U="[object Error]",Z="[object Function]",q="[object Map]",Y="[object Number]",X="[object Object]",J="[object RegExp]",Q="[object Set]",tt="[object String]",et="[object WeakMap]",it="[object ArrayBuffer]",nt="[object Float32Array]",rt="[object Float64Array]",st="[object Int8Array]",at="[object Int16Array]",ot="[object Int32Array]",ht="[object Uint8Array]",lt="[object Uint8ClampedArray]",ct="[object Uint16Array]",_t="[object Uint32Array]",ut=/\b__p \+= '';/g,ft=/\b(__p \+=) '' \+/g,pt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,dt=/&(?:amp|lt|gt|quot|#39|#96);/g,gt=/[&<>"'`]/g,vt=RegExp(dt.source),mt=RegExp(gt.source),bt=/<%-([\s\S]+?)%>/g,$t=/<%([\s\S]+?)%>/g,wt=/<%=([\s\S]+?)%>/g,yt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\n\\]|\\.)*?\1)\]/,Tt=/^\w*$/,Et=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\n\\]|\\.)*?)\2)\]/g,Ct=/^[:!,]|[\\^$.*+?()[\]{}|\/]|(^[0-9a-fA-Fnrtuvx])|([\n\r\u2028\u2029])/g,xt=RegExp(Ct.source),Ot=/[\u0300-\u036f\ufe20-\ufe23]/g,Ft=/\\(\\)?/g,Lt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Dt=/\w*$/,St=/^0[xX]/,Pt=/^\[object .+?Constructor\]$/,Bt=/^\d+$/,kt=/[\xc0-\xd6\xd8-\xde\xdf-\xf6\xf8-\xff]/g,It=/($^)/,At=/['\n\r\u2028\u2029\\]/g,zt=function(){var t="[A-Z\\xc0-\\xd6\\xd8-\\xde]",e="[a-z\\xdf-\\xf6\\xf8-\\xff]+";return RegExp(t+"+(?="+t+e+")|"+t+"?"+e+"|"+t+"+|[0-9]+","g")}(),Nt=["Array","ArrayBuffer","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Math","Number","Object","RegExp","Set","String","_","clearTimeout","isFinite","parseFloat","parseInt","setTimeout","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap"],Rt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Mt=-1,Vt={};Vt[nt]=Vt[rt]=Vt[st]=Vt[at]=Vt[ot]=Vt[ht]=Vt[lt]=Vt[ct]=Vt[_t]=!0,Vt[K]=Vt[G]=Vt[it]=Vt[j]=Vt[W]=Vt[U]=Vt[Z]=Vt[q]=Vt[Y]=Vt[X]=Vt[J]=Vt[Q]=Vt[tt]=Vt[et]=!1;var Ht={};Ht[K]=Ht[G]=Ht[it]=Ht[j]=Ht[W]=Ht[nt]=Ht[rt]=Ht[st]=Ht[at]=Ht[ot]=Ht[Y]=Ht[X]=Ht[J]=Ht[tt]=Ht[ht]=Ht[lt]=Ht[ct]=Ht[_t]=!0,Ht[U]=Ht[Z]=Ht[q]=Ht[Q]=Ht[et]=!1;var Kt={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss"},Gt={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},jt={"&":"&","<":"<",">":">",""":'"',"'":"'","`":"`"},Wt={"function":!0,object:!0},Ut={0:"x30",1:"x31",2:"x32",3:"x33",4:"x34",5:"x35",6:"x36",7:"x37",8:"x38",9:"x39",A:"x41",B:"x42",C:"x43",D:"x44",E:"x45",F:"x46",a:"x61",b:"x62",c:"x63",d:"x64",e:"x65",f:"x66",n:"x6e",r:"x72",t:"x74",u:"x75",v:"x76",x:"x78"},Zt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},qt=Wt[typeof exports]&&exports&&!exports.nodeType&&exports,Yt=Wt[typeof module]&&module&&!module.nodeType&&module,Xt=qt&&Yt&&"object"==typeof global&&global&&global.Object&&global,Jt=Wt[typeof self]&&self&&self.Object&&self,Qt=Wt[typeof window]&&window&&window.Object&&window,te=Xt||Qt!==(this&&this.window)&&Qt||Jt||this,ee=function(){try{Object({toString:0}+"")}catch(t){return function(){return!1}}return function(t){return"function"!=typeof t.toString&&"string"==typeof(t+"")}}(),ie=y();"function"==typeof i&&"object"==typeof i.amd&&i.amd&&i("lodash/main",[],function(){return ie})}.call(this),i("lodash",["lodash/main"],function(t){return t}),i("wcDocker/docker",["dcl/dcl","./types","./panel","./ghost","./splitter","./frame","./collapser","./layoutsimple","./layouttable","./tabframe","./drawer","./base","lodash"],function(t,e,i,n,r,s,a,o,h,l,c,_,u){var f={wcPanel:i,wcGhost:n,wcSplitter:r,wcFrame:s,wcCollapser:a,wcLayoutSimple:o,wcLayoutTable:h,wcDrawer:c,wcTabFrame:l},p=t(_,{declaredClass:"wcDocker",constructor:function(t,e){ - this.$outer=$(t),this.$container=$('
        '),this.$transition=$('
        '),this.$loading=null,this.$outer.append(this.$container),this.$container.append(this.$transition),this._canOrientTabs=!0,this._events={},this._root=null,this._frameList=[],this._floatingList=[],this._modalList=[],this._persistentList=[],this._focusFrame=null,this._placeholderPanel=null,this._contextTimer=0,this._dirty=!1,this._dirtyDontMove=!1,this._splitterList=[],this._tabList=[],this._collapser={},this._dockPanelTypeList=[],this._creatingPanel=!1,this._draggingSplitter=null,this._draggingFrame=null,this._draggingFrameSizer=null,this._draggingFrameTab=null,this._draggingFrameTopper=!1,this._draggingCustomTabFrame=null,this._ghost=null,this._menuTimer=0,this._mouseOrigin={x:0,y:0},this._resizeData={time:-1,timeout:!1,delta:150};var i={themePath:"Themes",theme:"default",loadingClass:"fa fa-spinner fa-pulse",allowContextMenu:!0,hideOnResize:!1,allowCollapse:!0,responseRate:10,moveStartDelay:300,edgeAnchorSize:50,panelAnchorSize:"15%",detachToWidth:"50%",detachToHeight:"50%"};this._options={};for(var n in f)i[n+"Class"]=f[n];for(var n in i)this._options[n]=i[n];for(var n in e)this._options[n]=e[n];this.__init()},themePath:function(t){return void 0!==t&&(this._options.themePath=t),this._options.themePath},theme:function(t){if(void 0!==t){var e=$("#wcTheme"),i=(new Date).getTime(),n=t.indexOf(".css");n>-1&&(t=t.substring(0,n));var r=$('');this._options.theme=t;var s=this;r[0].onload=function(){e.remove(),s.__update()},$("head").append(r)}return this._options.theme},isCollapseEnabled:function(){return this._canOrientTabs&&this._options.allowCollapse},registerPanelType:function(t,e,i){var n=e;"function"==typeof n&&(n={onCreate:e},console.log("WARNING: Passing in the creation function directly to wcDocker.registerPanelType parameter 2 is now deprecated and will be removed in the next version! Please use the preferred options object instead.")),"undefined"!=typeof i&&(n.isPrivate=i,console.log("WARNING: Passing in the isPrivate flag to wcDocker.registerPanelType parameter 3 is now deprecated and will be removed in the next version! Please use the preferred options object instead.")),$.isEmptyObject(n)&&(n=null);for(var r=0;r')),!0},panelTypes:function(t){for(var e=[],i=0;i=u&&c._curTab--,t.__container(this.$transition),t._parent=null,c._panelList.splice(u,1);break}if(!c.isCollapser()&&-1===c._curTab&&c._panelList.length&&(c._curTab=0),c.__updateTabs(),c.collapse(),!c.isCollapser()&&0===c._panelList.length)if(s)this.__addPlaceholder(c,this._options.placeholderHtml);else{var f=this._floatingList.indexOf(c);-1!==f&&this._floatingList.splice(f,1),f=this._frameList.indexOf(c),-1!==f&&this._frameList.splice(f,1);var p=c._parent;if(p&&p.instanceOf("wcSplitter")){p.__removeChild(c);var d;p.pane(0)?(d=p.pane(0),p._pane[0]=null):(d=p.pane(1),p._pane[1]=null),n===p&&(n._shift=d),d.__container(this.$transition),d._parent=null,f=this._splitterList.indexOf(p),-1!==f&&this._splitterList.splice(f,1);var g=p._parent;parentContainer=p.__container(),p.__destroy(),g&&g.instanceOf("wcSplitter")?(g.__removeChild(p),g.pane(0)?g.pane(1,d):g.pane(0,d)):g===this&&(this._root=d,d._parent=this,d.__container(parentContainer)),this.__update()}this._focusFrame===c&&(this._focusFrame=null),c.__destroy()}}t.initSize(h,l),i===e.DOCK.STACKED?this.__addPanelGrouped(t,n,r):this.__addPanelAlone(t,i,n,r),n==this._placeholderPanel&&(this.removePanel(this._placeholderPanel),this._placeholderPanel=null);var v=t._parent;return v&&v.instanceOf("wcFrame")&&1===v._panelList.length&&v.pos(o.left+h/2+20,o.top+l/2+20,!0),this.__update(!0),v&&v.instanceOf("wcFrame")&&_!==v._isFloating&&(v._isFloating?t.__trigger(e.EVENT.DETACHED):t.__trigger(e.EVENT.ATTACHED)),t.__trigger(e.EVENT.MOVED),t},findPanels:function(t){for(var e=[],i=0;i
        '),this.$outer.append(this.$loading);var n=$('
        ');"number"!=typeof e&&(e=.4),n.css("opacity",e),this.$loading.append(n);var r=$('
        ');if(this.$loading.append(r),t){var s=$(''+t+"");this.$loading.append(s)}"number"!=typeof i&&(i=1),r.css("opacity",i),s&&s.css("opacity",i)}},finishLoading:function(t){if(this.$loading)if(t>0){var e=this;this.$loading.fadeOut(t,function(){e.$loading.remove(),e.$loading=null})}else this.$loading.remove(),this.$loading=null},on:function(t,e){return t?(this._events[t]||(this._events[t]=[]),-1!==this._events[t].indexOf(e)?!1:(this._events[t].push(e),!0)):!1},off:function(t,e){if("undefined"==typeof t)this._events={};else if(this._events[t])if("undefined"==typeof e)this._events[t]=[];else for(var i=0;i0&&r.findPanels(u.name).length>=u.options.limit)continue;var f=null,p=null,d=u.name;u.options&&(u.options.faicon&&(p=u.options.faicon),u.options.icon&&(f=u.options.icon),u.options.title&&(d=u.options.title)),_[u.name]={name:d,icon:f,faicon:p,className:"wcMenuCreatePanel"}}}var g=0,v={},m=i;"function"==typeof i&&(m=i(t,s));for(var h=0;h');if(r.prepend(s),n.icon&&s.addClass(n.icon),n.faicon&&s.addClass("fa fa-menu fa-"+n.faicon+" fa-lg fa-fw"),r.hasClass("context-menu-submenu")){var a=$('
        ');r.append(a)}}n.items&&o(n.items)}}(e)}(E)},hide:function(t){r._ghost&&(r._ghost.destroy(),r._ghost=!1)}},animation:{duration:250,show:"fadeIn",hide:"fadeOut"},reposition:!1,autoHide:!0,zIndex:200,items:E}}})},bypassMenu:function(){this._menuTimer&&clearTimeout(this._menuTimer);for(var t in $.contextMenu.menus){var e=$.contextMenu.menus[t].selector;$(e).contextMenu(!1)}var i=this;this._menuTimer=setTimeout(function(){for(var t in $.contextMenu.menus){var e=$.contextMenu.menus[t].selector;$(e).contextMenu(!0)}i._menuTimer=null},0)},save:function(){var t={};t.floating=[];for(var i=0;i-1){if(1===w._draggingFrame._panelList.length)return;for(var n=0;n1||w._draggingFrame.panel()!==w._placeholderPanel)for(var n=0;c>n;++n)w.movePanel(w._draggingFrame.panel(),e.DOCK.STACKED,a,l)}var h=a._parent;h&&h.instanceOf("wcFrame")&&h.panel(s),w.__focus(h)}}else{w._draggingFrameTab||w._draggingFrame.panel(0);var a=w._draggingFrame.panel(parseInt($(w._draggingFrameTab).attr("id")));if(w.movePanel(a,e.DOCK.FLOAT,null,w._ghost.__rect()),!w._draggingFrameTab){var c=w._draggingFrame._panelList.length;if(c>1||w._draggingFrame.panel()!==w._placeholderPanel)for(var n=0;c>n;++n)w.movePanel(w._draggingFrame.panel(),e.DOCK.STACKED,a,{tabOrientation:w._draggingFrame._tabOrientation})}var h=a._parent;h&&h.instanceOf("wcFrame")&&(h.pos(i.x,i.y+w._ghost.__rect().h/2-10,!0),h._size.x=w._ghost.__rect().w,h._size.y=w._ghost.__rect().h),h.__update(),w.__focus(h)}else if(w._creatingPanel){var _=e.DOCK.FLOAT,u=null;r&&(_=r.loc,u=r.item?r.item._parent:r.panel),w.addPanel(w._creatingPanel,_,u,w._ghost.rect())}w._ghost.destroy(),w._ghost=null,w.trigger(e.EVENT.END_DOCK),w.__update()}return w._draggingSplitter&&(w._draggingSplitter.$pane[0].removeClass("wcResizing"),w._draggingSplitter.$pane[1].removeClass("wcResizing")),w._creatingPanel=!1,w._draggingSplitter=null,w._draggingFrame=null,w._draggingFrameSizer=null,w._draggingFrameTab=null,w._draggingFrameTopper=!1,w._draggingCustomTabFrame=null,w._removingPanel=null,!0}function n(t){T=t;var e=w.__mouse(t);if(!(3!==e.which&&(w._draggingSplitter||w._draggingFrameSizer||w._draggingCustomTabFrame||w._ghost||w._draggingFrame||w._draggingFrameTab)))return!0;var i=(new Date).getTime();if(i-y1&&w._draggingFrameTab,w._draggingFrameTopper,!w.__isLastFrame(w._draggingFrame))){w._draggingFrame.__shadow(!1);var o=$(document.elementFromPoint(e.x,e.y)),s=o.hasClass("wcPanelTab")?o:o.parents(".wcPanelTab");w._draggingFrameTab&&s.length&&w._draggingFrameTab!==s[0]&&(w._draggingFrameTab=w._draggingFrame.__tabMove(parseInt($(w._draggingFrameTab).attr("id")),parseInt(s.attr("id"))))}else{if((new Date).getTime()-C0;var o=w._draggingFrame.__rect();w._ghost=new(w.__getClass("wcGhost"))(o,i,w),w._draggingFrame.__checkAnchorDrop(i,!0,w._ghost,!0,w._draggingFrameTopper,!w.__isLastFrame(w._draggingFrame)),w.trigger(e.EVENT.BEGIN_DOCK)}break}for(var n=0;n .wcFrameButton",l),$("body").on("touchstart",".wcFrameButtonBar > .wcFrameButton",l),$("body").on("mousedown",".wcFrameTitleBar",p),$("body").on("touchstart",".wcFrameTitleBar",p),$("body").on("mousedown",".wcSplitterBar",f),$("body").on("touchstart",".wcSplitterBar",f),$("body").on("mousedown",".wcPanelTab",m),$("body").on("touchstart",".wcPanelTab",m),$("body").on("mouseup",".wcPanelTab",u),$("body").on("touchend",".wcPanelTab",u),$("body").on("mousedown",".wcLayout",d),$("body").on("touchstart",".wcLayout",d),$("body").on("mousedown",".wcFrameEdge",g),$("body").on("touchstart",".wcFrameEdge",g),$("body").on("mousedown",".wcCreatePanel",v),$("body").on("touchstart",".wcCreatePanel",v),$("body").on("mouseup",i),$("body").on("touchend",i),$("body").on("click",".wcCustomTab .wcFrameButton",c),$("body").on("click",".wcFrameButtonBar > .wcFrameButton",_),$("body").on("keyup",b);var y=(new Date).getTime(),T=null,E=0,C=0},__testLoadFinished:function(){for(var t=0;t>>0,i=Number(arguments[1])||0;for(i=0>i?Math.ceil(i):Math.floor(i),0>i&&(i+=e);e>i;i++)if(i in this&&this[i]===t)return i;return-1});var e=function(){for(var t=3,e=document.createElement("div"),i=e.getElementsByTagName("i");e.innerHTML="",i[0];);return t>4?t:void 0}();9>e?this._canOrientTabs=!1:this._canOrientTabs=t();var i=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);$("body").addClass(i?"wcMobile":"wcDesktop")},__findInner:function(){function t(t){return!!(t&&t.instanceOf("wcFrame")&&t.panel()&&!t.panel().moveable()||t.instanceOf("wcCollapser"))}for(var e=this._root;e&&e.instanceOf("wcSplitter");){var i=t(e._pane[0]),n=t(e._pane[1]);if(i&&!n)e=e._pane[1];else if(n&&!i)e=e._pane[0];else if(!i&&!n)break}return e},__initCollapsers:function(){function t(t){this._collapser[t]=this.__addCollapser(t,i),i=this._collapser[t]._parent,this._frameList.push(this._collapser[t]._drawer._frame)}if(this.isCollapseEnabled()&&$.isEmptyObject(this._collapser)){var i=this.__findInner();t.call(this,e.DOCK.LEFT),t.call(this,e.DOCK.RIGHT),t.call(this,e.DOCK.BOTTOM);var n=this;setTimeout(function(){n.__update()})}},__update:function(t){this._dirty=!0,this._dirtyDontMove=t},__forceUpdate:function(t){this._dirty=!1,this._root&&this._root.__update(t);for(var e=0;e
        '),l.$frame.prepend(l.$modalBlocker),t.moveable(!1),l.$frame.addClass("wcModal"),this._modalList.push(l)),r){var c=l.pos(void 0,void 0,!0);r.hasOwnProperty("x")&&(c.x=r.x+r.w/2),r.hasOwnProperty("y")&&(c.y=r.y+r.h/2),l.pos(c.x,c.y,!0),l._size={x:r.w,y:r.h}}return void this.__orderPanels()}if(n){for(var _=n._parent,u=n;_&&!_.instanceOf("wcSplitter")&&!_.instanceOf("wcDocker");)u=_,_=_._parent;if(_&&_.instanceOf("wcSplitter")){var f,p=_.pane(0),d=(_.pane(1),{x:-1,y:-1});if(p===u?(f=new(this.__getClass("wcSplitter"))(this.$transition,_,i!==e.DOCK.BOTTOM&&i!==e.DOCK.TOP),d.x=_.$pane[0].width(),d.y=_.$pane[0].height(),_.pane(0,f)):(f=new(this.__getClass("wcSplitter"))(this.$transition,_,i!==e.DOCK.BOTTOM&&i!==e.DOCK.TOP),d.x=_.$pane[1].width(),d.y=_.$pane[1].height(),_.pane(1,f)),f){if(f.scrollable(0,!1,!1),f.scrollable(1,!1,!1),r||(r={w:t._size.x,h:t._size.y}),r)switch(r.w<0&&(r.w=d.x/2),r.h<0&&(r.h=d.y/2),i){case e.DOCK.LEFT:f.pos(r.w/d.x);break;case e.DOCK.RIGHT:f.pos(1-r.w/d.x);break;case e.DOCK.TOP:f.pos(r.h/d.y);break;case e.DOCK.BOTTOM:f.pos(1-r.h/d.y)}else f.pos(.5);l=new(this.__getClass("wcFrame"))(this.$transition,f,!1),this._frameList.push(l),i===e.DOCK.LEFT||i===e.DOCK.TOP?(f.pane(0,l),f.pane(1,u)):(f.pane(0,u),f.pane(1,l)),l.addPanel(t)}return}}var g=this,v=this.$container,l=new(this.__getClass("wcFrame"))(this.$transition,g,!1);if(this._frameList.push(l),g._root){var f=new(this.__getClass("wcSplitter"))(v,g,i!==e.DOCK.BOTTOM&&i!==e.DOCK.TOP);if(f){l._parent=f,f.scrollable(0,!1,!1),f.scrollable(1,!1,!1);var d={x:v.width(),y:v.height()};if(r)switch(r.w<0&&(r.w=d.x/2),r.h<0&&(r.h=d.y/2),i){case e.DOCK.LEFT:f.pos(r.w/d.x);break;case e.DOCK.RIGHT:f.pos(1-r.w/d.x);break;case e.DOCK.TOP:f.pos(r.h/d.y);break;case e.DOCK.BOTTOM:f.pos(1-r.h/d.y)}else f.__findBestPos();i===e.DOCK.LEFT||i===e.DOCK.TOP?(f.pane(0,l),f.pane(1,g._root)):(f.pane(0,g._root),f.pane(1,l)),g._root=f}}else g._root=l,l.__container(v);l.addPanel(t)},__addCollapser:function(t,i){var n=null;if(i){for(var r=i._parent,s=i;r&&!r.instanceOf("wcSplitter")&&!r.instanceOf("wcDocker");)s=r,r=r._parent;var a=new(this.__getClass("wcSplitter"))(this.$transition,r,t!==e.DOCK.BOTTOM&&t!==e.DOCK.TOP);if(r&&r.instanceOf("wcDocker")&&(this._root=a,a.__container(this.$container)),r&&r.instanceOf("wcSplitter")){var o=r.left(),h=(r.right(),{x:-1,y:-1});o===s?(h.x=r.$pane[0].width(),h.y=r.$pane[0].height(),r.pane(0,a)):(a=new(this.__getClass("wcSplitter"))(this.$transition,r,t!==e.DOCK.BOTTOM&&t!==e.DOCK.TOP),h.x=r.$pane[1].width(),h.y=r.$pane[1].height(),r.pane(1,a))}if(a){switch(a.scrollable(0,!1,!1),a.scrollable(1,!1,!1),n=new(this.__getClass("wcCollapser"))(this.$transition,a,t),t){case e.DOCK.TOP:case e.DOCK.LEFT:a.pos(0);break;case e.DOCK.BOTTOM:case e.DOCK.RIGHT:a.pos(1)}t===e.DOCK.LEFT||t===e.DOCK.TOP?(a.pane(0,n),a.pane(1,s)):(a.pane(0,s),a.pane(1,n))}}return n},__addPlaceholder:function(t,i){this._placeholderPanel&&console.log("WARNING: wcDocker creating placeholder panel when one already exists"),this._placeholderPanel=new(this.__getClass("wcPanel"))(this,e.PANEL_PLACEHOLDER,{}),this._placeholderPanel._isPlaceholder=!0,this._placeholderPanel.__container(this.$transition),this._placeholderPanel._panelObject=new function(t){t.title(!1),t.closeable(!1),i&&t.layout().addItem($('
        '+i+"
        "))}(this._placeholderPanel),t?this.__addPanelGrouped(this._placeholderPanel,t):this.__addPanelAlone(this._placeholderPanel,e.DOCK.TOP),this.__update()},__closePanel:function(t){var e=!1,i=this.panelTypeInfo(t._type);i&&i.isPersistent&&(e=!0,this._persistentList.push(t)),this.removePanel(t,e),this.__update()},__stringToPercent:function(t,e){if("string"==typeof t){if(-1!==t.indexOf("%",t.length-1))return parseFloat(t)/100;if(-1!==t.indexOf("px",t.length-2))return parseFloat(t)/e}return parseFloat(t)},__stringToPixel:function(t,e){if("string"==typeof t){if(-1!==t.indexOf("%",t.length-1))return parseFloat(t)/100*e;if(-1!==t.indexOf("px",t.length-2))return parseFloat(t)}return parseFloat(t)}});for(var d in e)p[d]=e[d];return p.defaultClasses=f,p}),i("wcDocker/iframe",["dcl/dcl","./types","./base"],function(t,e,i){var n=t(i,{declaredClass:"wcIFrame",constructor:function(t,e){this._panel=e,this._layout=e.layout(),this.$container=$(t),this.$frame=null,this.$focus=null,this.$iFrame=null,this._window=null,this._isDocking=!1,this._isHovering=!1,this._boundEvents=[],this._onLoadFuncs=[],this._onClosedFuncs=[],this.__init()},openURL:function(t){this.__clearFrame(),this.$iFrame=$(""),this.$frame.prepend(this.$iFrame),this.__onMoved(),this._window=this.$iFrame[0].contentWindow||this.$iFrame[0],this.__updateFrame(),this._window.location.replace(t),this.$iFrame[0].focus(),this.$iFrame.hover(this.__onHoverEnter.bind(this),this.__onHoverExit.bind(this));var e=this;this.$iFrame.load(function(){for(var t=0;tiFrames not supported on your device!"),this.$frame.prepend(this.$iFrame),this.__onMoved(),this._window=this.$iFrame[0].contentWindow||this.$iFrame[0],this.__updateFrame(),this._window.document.open(),this._window.document.write(t),this._window.document.close(),this.$iFrame[0].focus(),this.$iFrame.hover(this.__onHoverEnter.bind(this),this.__onHoverExit.bind(this));var e=this;this.$iFrame.load(function(){for(var t=0;tiFrames not supported on your device!"),this.$frame.prepend(this.$iFrame),this.__onMoved(),this._window=this.$iFrame[0].contentWindow||this.$iFrame[0],this.__updateFrame(),this.$iFrame[0].srcdoc=t,this.$iFrame[0].focus(),this.$iFrame.hover(this.__onHoverEnter.bind(this),this.__onHoverExit.bind(this));var e=this;this.$iFrame.load(function(){for(var t=0;t'),this.$focus=$('
        '),this._panel.docker().$container.append(this.$frame),this.$frame.append(this.$focus),this._boundEvents.push({event:e.EVENT.VISIBILITY_CHANGED,handler:this.__onVisibilityChanged.bind(this)}),this._boundEvents.push({event:e.EVENT.BEGIN_DOCK,handler:this.__onBeginDock.bind(this)}),this._boundEvents.push({event:e.EVENT.END_DOCK,handler:this.__onEndDock.bind(this)}),this._boundEvents.push({event:e.EVENT.MOVE_STARTED,handler:this.__onMoveStarted.bind(this)}),this._boundEvents.push({event:e.EVENT.RESIZE_STARTED,handler:this.__onMoveStarted.bind(this)}),this._boundEvents.push({event:e.EVENT.MOVE_ENDED,handler:this.__onMoveFinished.bind(this)}),this._boundEvents.push({event:e.EVENT.RESIZE_ENDED,handler:this.__onMoveFinished.bind(this)}),this._boundEvents.push({event:e.EVENT.MOVED,handler:this.__onMoved.bind(this)}),this._boundEvents.push({event:e.EVENT.RESIZED,handler:this.__onMoved.bind(this)}),this._boundEvents.push({event:e.EVENT.ATTACHED,handler:this.__onAttached.bind(this)}),this._boundEvents.push({event:e.EVENT.DETACHED,handler:this.__updateFrame.bind(this)}),this._boundEvents.push({event:e.EVENT.GAIN_FOCUS,handler:this.__updateFrame.bind(this)}),this._boundEvents.push({event:e.EVENT.LOST_FOCUS,handler:this.__updateFrame.bind(this)}),this._boundEvents.push({event:e.EVENT.PERSISTENT_OPENED,handler:this.__updateFrame.bind(this)}),this._boundEvents.push({event:e.EVENT.PERSISTENT_CLOSED,handler:this.__updateFrame.bind(this)}),this._boundEvents.push({event:e.EVENT.CLOSED,handler:this.__onClosed.bind(this)}),this._boundEvents.push({event:e.EVENT.ORDER_CHANGED,handler:this.__onOrderChanged.bind(this)});for(var t=0;t'),this.$webView[0].src=t;var n=["partition","preload","webpreferences","allowpopups","blinkfeatures","disableblinkfeatures","guestinstance","disableguestresize"];n.forEach(function(t){e[t]&&(i.$webView[0][t]=e[t])});for(var r=0;r'),this.$focus=$('
        '),this._panel.docker().$container.append(this.$frame),this.$frame.append(this.$focus),this._boundEvents.push({event:e.EVENT.VISIBILITY_CHANGED,handler:this.__onVisibilityChanged.bind(this)}),this._boundEvents.push({event:e.EVENT.BEGIN_DOCK,handler:this.__onBeginDock.bind(this)}),this._boundEvents.push({event:e.EVENT.END_DOCK,handler:this.__onEndDock.bind(this)}),this._boundEvents.push({event:e.EVENT.MOVE_STARTED,handler:this.__onMoveStarted.bind(this)}),this._boundEvents.push({event:e.EVENT.RESIZE_STARTED,handler:this.__onMoveStarted.bind(this)}),this._boundEvents.push({event:e.EVENT.MOVE_ENDED,handler:this.__onMoveFinished.bind(this)}),this._boundEvents.push({event:e.EVENT.RESIZE_ENDED,handler:this.__onMoveFinished.bind(this)}),this._boundEvents.push({event:e.EVENT.MOVED,handler:this.__onMoved.bind(this)}),this._boundEvents.push({event:e.EVENT.RESIZED,handler:this.__onMoved.bind(this)}),this._boundEvents.push({event:e.EVENT.ATTACHED,handler:this.__onAttached.bind(this)}),this._boundEvents.push({event:e.EVENT.DETACHED,handler:this.__updateFrame.bind(this)}),this._boundEvents.push({event:e.EVENT.GAIN_FOCUS,handler:this.__updateFrame.bind(this)}),this._boundEvents.push({event:e.EVENT.LOST_FOCUS,handler:this.__updateFrame.bind(this)}),this._boundEvents.push({event:e.EVENT.PERSISTENT_OPENED,handler:this.__updateFrame.bind(this)}),this._boundEvents.push({event:e.EVENT.PERSISTENT_CLOSED,handler:this.__updateFrame.bind(this)}),this._boundEvents.push({event:e.EVENT.CLOSED,handler:this.__onClosed.bind(this)}),this._boundEvents.push({event:e.EVENT.ORDER_CHANGED,handler:this.__onOrderChanged.bind(this)});for(var t=0;t'),this.$focus=$('
        '),this._panel.docker().$container.append(this.$frame),this.$frame.append(this.$focus),this._boundEvents.push({event:e.EVENT.VISIBILITY_CHANGED,handler:this.__onVisibilityChanged.bind(this)}),this._boundEvents.push({event:e.EVENT.BEGIN_DOCK,handler:this.__onBeginDock.bind(this)}),this._boundEvents.push({event:e.EVENT.END_DOCK,handler:this.__onEndDock.bind(this)}),this._boundEvents.push({event:e.EVENT.MOVE_STARTED,handler:this.__onMoveStarted.bind(this)}),this._boundEvents.push({event:e.EVENT.RESIZE_STARTED,handler:this.__onMoveStarted.bind(this)}),this._boundEvents.push({event:e.EVENT.MOVE_ENDED,handler:this.__onMoveFinished.bind(this)}),this._boundEvents.push({event:e.EVENT.RESIZE_ENDED,handler:this.__onMoveFinished.bind(this)}),this._boundEvents.push({event:e.EVENT.MOVED,handler:this.__onMoved.bind(this)}),this._boundEvents.push({event:e.EVENT.RESIZED,handler:this.__onMoved.bind(this)}),this._boundEvents.push({event:e.EVENT.ATTACHED,handler:this.__onAttached.bind(this)}),this._boundEvents.push({event:e.EVENT.DETACHED,handler:this.__updateFrame.bind(this)}),this._boundEvents.push({event:e.EVENT.GAIN_FOCUS,handler:this.__updateFrame.bind(this)}),this._boundEvents.push({event:e.EVENT.LOST_FOCUS,handler:this.__updateFrame.bind(this)}),this._boundEvents.push({event:e.EVENT.PERSISTENT_OPENED,handler:this.__updateFrame.bind(this)}),this._boundEvents.push({event:e.EVENT.PERSISTENT_CLOSED,handler:this.__updateFrame.bind(this)}),this._boundEvents.push({event:e.EVENT.CLOSED,handler:this.__onClosed.bind(this)}),this._boundEvents.push({event:e.EVENT.ORDER_CHANGED,handler:this.__onOrderChanged.bind(this)});for(var t=0;t0&&(t.splice(h-1,2),h-=2)}t=t.join("/")}else 0===t.indexOf("./")&&(t=t.substring(2));if((f||b)&&p){for(a=t.split("/"),h=a.length;h>0;h-=1){if(r=a.slice(0,h).join("/"),f)for(u=f.length;u>0;u-=1)if(o=p[f.slice(0,u).join("/")],o&&(o=o[r])){i=o,s=h;break}if(i)break;!l&&b&&b[r]&&(l=b[r],c=h)}!i&&l&&(i=l,s=c),i&&(a.splice(0,s,i),t=a.join("/"))}return t}function n(t,e){return function(){var a=T.call(arguments,0);return"string"!=typeof a[0]&&1===a.length&&a.push(null),f.apply(r,a.concat([t,e]))}}function s(t){return function(e){return i(e,t)}}function l(t){return function(e){_[t]=e}}function c(t){if(o(v,t)){var e=v[t];delete v[t],w[t]=!0,d.apply(r,e)}if(!o(_,t)&&!o(w,t))throw new Error("No "+t);return _[t]}function h(t){var e,a=t?t.indexOf("!"):-1;return a>-1&&(e=t.substring(0,a),t=t.substring(a+1,t.length)),[e,t]}function u(t){return function(){return m&&m.config&&m.config[t]||{}}}var d,f,p,b,_={},v={},m={},w={},g=Object.prototype.hasOwnProperty,T=[].slice,x=/\.js$/;p=function(t,e){var a,r=h(t),o=r[0];return t=r[1],o&&(o=i(o,e),a=c(o)),o?t=a&&a.normalize?a.normalize(t,s(e)):i(t,e):(t=i(t,e),r=h(t),o=r[0],t=r[1],o&&(a=c(o))),{f:o?o+"!"+t:t,n:t,pr:o,p:a}},b={require:function(t){return n(t)},exports:function(t){var e=_[t];return"undefined"!=typeof e?e:_[t]={}},module:function(t){return{id:t,uri:"",exports:_[t],config:u(t)}}},d=function(t,e,a,i){var s,h,u,d,f,m,g=[],T=typeof a;if(i=i||t,"undefined"===T||"function"===T){for(e=!e.length&&a.length?["require","exports","module"]:e,f=0;f=0;--_)if(c=b[_],c._uniqueId=c._uniqueId||n++,i=c._meta){for(p=i.bases,w=p.length-1;w>0;--w)v=p[w]._uniqueId,d[v]=(d[v]||0)+1;b[_]=p.slice(0)}else b[_]=[c];f={};t:for(;b.length;){for(_=0;_0;--w)if(c=m[w],u=c._meta,t.mix(i,u&&u.ownProps||c[l]),u)for(v in b=u.weaver)p[v]=(+p[v]||0)|b[v];for(v in r)a(u=r[v])?p[v]=+p[v]||0:i[v]=u;return u={bases:m,ownProps:r,weaver:p,chains:{}},m[0]={_meta:u,prototype:i},o(u,i),h=i[s],h._meta=u,h[l]=i,m[0]=h,t._postprocess(h)}function e(t){this.around=t}function a(t){return t&&t.spr instanceof e}function r(t){var e=[];for(var a in t)e.push(a);return e}function o(e,a){var r=e.weaver,o=e.bases,i=e.chains;for(var n in r)a[n]=t._stub(r[n],o,n,i)}var i,n=0,s="constructor",l="prototype",c={};return(i=function(t,e){for(var a in e)t[a]=e[a]})(t,{mix:i,delegate:function(t){return Object.create(t)},allKeys:r,Super:e,superCall:function(e){return t._makeSuper(e)},_makeSuper:function(t,a){var r=function(){};return r.spr=new(a||e)(t),r},_postprocess:function(t){return t},_error:function(t){throw Error("dcl: "+t)},_instantiate:function(t,e,a){var r=t.spr.around(e);return r.ctr=t.ctr,r},_extractChain:function(t,e,r){for(var o,i,n=t.length-1,h=[],u="around"==r;o=t[n];--n)((i=o._meta)?(i=i.ownProps).hasOwnProperty(e)&&(a(i=i[e])?u?i.spr.around:i=i.spr[r]:u):u&&(i=e==s?o:o[l][e])&&i!==c[e])&&(i.ctr=o,h.push(i));return h},_stubChain:function(t){var e,a=t.length;return a?1==a?(e=t[0],function(){e.apply(this,arguments)}):function(){for(var e=0;a>e;++e)t[e].apply(this,arguments)}:0},_stubSuper:function(e,r){for(var o,i=0,n=c[r];o=e[i];++i)n=a(o)?e[i]=t._instantiate(o,n,r):o;return r!=s?n:function(){n.apply(this,arguments)}},_stubChainSuper:function(e,r,o){for(var i,n,l=0,c=0;i=e[l];++l)a(i)&&(n=l-c,e[l]=t._instantiate(i,n?1==n?e[c]:r(e.slice(c,l)):0,o),c=l);return n=l-c,n?1==n&&o!=s?e[c]:r(c?e.slice(c):e):0},_stub:function(e,a,r,o){var i=o[r]=t._extractChain(a,r,"around");return(e?t._stubChainSuper(i,t._stubChain,r):t._stubSuper(i,r))||function(){}}}),t}),function(t){"undefined"!=typeof a?a("dcl/dcl",["./mini"],t):"undefined"!=typeof module?module.exports=t(e("./mini")):dcl=t(dcl)}(function(t){"use strict";function e(){}function a(e){return t._makeSuper(e,i)}function r(t,a,r){var o=t||e,i=a||e,n=r||e,s=function(){var t,e;o.apply(this,arguments);try{t=n.apply(this,arguments)}catch(a){t=a,e=!0}if(i.call(this,arguments,t),e)throw t;return t};return s.advices={before:t,after:a,around:r},s}function o(e){return function(a,r){var o,i=a._meta;i&&(o=+i.weaver[r]||0,o&&o!=e&&t._error("set chaining",r,a,e,o),i.weaver[r]=e)}}var i=t(t.Super,{constructor:function(){this.before=this.around.before,this.after=this.around.after,this.around=this.around.around}});return t.mix(t,{Advice:i,advise:a,before:function(e){return t.advise({before:e})},after:function(e){return t.advise({after:e})},around:t.superCall,chainBefore:o(1),chainAfter:o(2),isInstanceOf:function(t,e){if(t instanceof e)return!0;var a,r=t.constructor._meta;if(r)for(r=r.bases,a=r.length-1;a>=0;--a)if(r[a]===e)return!0;return!1},_stub:function(e,a,o,i){var n=i[o]=t._extractChain(a,o,"around"),s=t._extractChain(a,o,"before").reverse(),l=t._extractChain(a,o,"after");return n=e?t._stubChainSuper(n,1==e?function(e){return t._stubChain(e.reverse())}:t._stubChain,o):t._stubSuper(n,o),s.length||l.length?r(t._stubChain(s),t._stubChain(l),n):n||function(){}}}),t}),a("wcDocker/types",[],function(){var t={};return t.DOCK={MODAL:"modal",FLOAT:"float",TOP:"top",LEFT:"left",RIGHT:"right",BOTTOM:"bottom",STACKED:"stacked"},t.LAYOUT={SIMPLE:"wcLayoutSimple",TABLE:"wcLayoutTable"},t.EVENT={INIT:"panelInit",LOADED:"dockerLoaded",UPDATED:"panelUpdated",VISIBILITY_CHANGED:"panelVisibilityChanged",BEGIN_DOCK:"panelBeginDock",END_DOCK:"panelEndDock",GAIN_FOCUS:"panelGainFocus",LOST_FOCUS:"panelLostFocus",CLOSING:"panelClosing",CLOSED:"panelClosed",PERSISTENT_CLOSED:"panelPersistentClosed",PERSISTENT_OPENED:"panelPersistentOpened",BUTTON:"panelButton",ATTACHED:"panelAttached",DETACHED:"panelDetached",MOVE_STARTED:"panelMoveStarted",MOVE_ENDED:"panelMoveEnded",MOVED:"panelMoved",RESIZE_STARTED:"panelResizeStarted",RESIZE_ENDED:"panelResizeEnded",RESIZED:"panelResized",ORDER_CHANGED:"panelOrderChanged",SCROLLED:"panelScrolled",SAVE_LAYOUT:"layoutSave",RESTORE_LAYOUT:"layoutRestore",CUSTOM_TAB_CHANGED:"customTabChanged",CUSTOM_TAB_CLOSED:"customTabClosed"},t.PANEL_PLACEHOLDER="__wcDockerPlaceholderPanel",t.COLLAPSED="__wcDockerCollapsedPanel",t.ORIENTATION={VERTICAL:!1,HORIZONTAL:!0},t.TAB={TOP:"top",LEFT:"left",RIGHT:"right",BOTTOM:"bottom"},t}),a("wcDocker/base",["dcl/dcl"],function(t){return t(null,{getOptions:function(){return this._options||this.docker()._options||{}},option:function(t,e){return this.getOptions()[t]||e},instanceOf:function(t,e){return e=e||this,!(!e||-1==e.declaredClass.indexOf(t))},docker:function(t){for(var e=t||this._parent;e&&!e.instanceOf("wcDocker");)e=e._parent;return e},__getClass:function(t){return this.getOptions()[t+"Class"]}})}),a("wcDocker/panel",["dcl/dcl","./types","./base"],function(t,e,a){var r=t(a,{declaredClass:"wcPanel",constructor:function(t,e,a){this.$container=null,this._parent=t,this.$icon=null,this.$title=null,this.$titleText=null,this.$loading=null,this._panelObject=null,this._initialized=!1,this._collapseDirection=void 0,this._type=e,this._title=e,this._titleVisible=!0,this._options=a,this._layout=null,this._buttonList=[],this._actualPos={x:.5,y:.5},this._actualSize={x:0,y:0},this._resizeData={time:-1,timeout:!1,delta:150},this._pos={x:.5,y:.5},this._moveData={time:-1,timeout:!1,delta:150},this._size={x:-1,y:-1},this._minSize={x:100,y:100},this._maxSize={x:1/0,y:1/0},this._scroll={x:0,y:0},this._scrollable={x:!0,y:!0},this._collapsible=!0,this._overflowVisible=!1,this._moveable=!0,this._detachable=!0,this._closeable=!0,this._resizeVisible=!0,this._isVisible=!1,this._events={},this.__init()},title:function(t){return"undefined"!=typeof t&&(t===!1?(this._titleVisible=!1,this.$titleText.html(this._type)):(this._title=t,this.$titleText.html(t)),this.$icon&&this.$titleText.prepend(this.$icon),this._parent&&this._parent.instanceOf("wcFrame")&&this._parent.__updateTabs()),this._title},info:function(){return this.docker().panelTypeInfo(this._type)},layout:function(){return this._layout},focus:function(t){var e=this.docker();if(e){e.__focus(this._parent,t);for(var a=0;a"),this.$titleText.prepend(this.$icon)),this.$icon.removeClass(),this.$icon.addClass("wcTabIcon "+t),this._parent&&this._parent.instanceOf("wcFrame")&&this._parent.__updateTabs()},faicon:function(t){this.$icon||(this.$icon=$("
        "),this.$titleText.prepend(this.$icon)),this.$icon.removeClass(),this.$icon.addClass("wcTabIcon fa fa-fw fa-"+t),this._parent&&this._parent.instanceOf("wcFrame")&&this._parent.__updateTabs()},scrollable:function(t,e){return"undefined"!=typeof t&&(this._scrollable.x=t?!0:!1,this._scrollable.y=e?!0:!1),{x:this._scrollable.x,y:this._scrollable.y}},scroll:function(t,e,a){return this.$container?("undefined"!=typeof t&&(a?this.$container.parent().stop().animate({scrollLeft:t,scrollTop:e},a):(this.$container.parent().scrollLeft(t),this.$container.parent().scrollTop(e))),{x:this.$container.parent().scrollLeft(),y:this.$container.parent().scrollTop()}):{x:0,y:0}},collapsible:function(t){return"undefined"!=typeof t&&(this._collapsible=t?!0:!1),this._collapsible},overflowVisible:function(t){return"undefined"!=typeof t&&(this._overflowVisible=t?!0:!1),this._overflowVisible},resizeVisible:function(t){return"undefined"!=typeof t&&(this._resizeVisible=t?!0:!1),this._resizeVisible},moveable:function(t){return"undefined"!=typeof t&&(this._moveable=t?!0:!1,this.$title.toggleClass("wcNotMoveable",!this._moveable)),this._moveable},detachable:function(t){return"undefined"!=typeof t&&(this._detachable=t?!0:!1),this._detachable},closeable:function(t){return"undefined"!=typeof t&&(this._closeable=t?!0:!1,this._parent&&this._parent.__update()),this._closeable},close:function(){var t=this.docker();t&&t.__closePanel(this)},startLoading:function(t,e,a){if(!this.$loading){this.$loading=$('
        '),this.$container.append(this.$loading);var r=$('
        ');"number"!=typeof e&&(e=.4),this.$loading.append(r);var o=$('
        ');if(this.$loading.append(o),t){var i=$(''+t+"");this.$loading.append(i)}"number"!=typeof a&&(a=1),this.docker().$loading&&(e=0,a=0),r.css("opacity",e),o.css("opacity",a),i&&i.css("opacity",a)}},finishLoading:function(t){if(this.$loading)if(t>0){var e=this;this.$loading.fadeOut(t,function(){e.$loading.remove(),e.$loading=null,e.docker().__testLoadFinished()})}else this.$loading.remove(),this.$loading=null,this.docker().__testLoadFinished()},on:function(t,e){return t?(this._events[t]||(this._events[t]=[]),-1!==this._events[t].indexOf(e)?!1:(this._events[t].push(e),!0)):!1},off:function(t,e){if("undefined"==typeof t)return void(this._events={});if(this._events[t])if("undefined"==typeof e)this._events[t]=[];else for(var a=0;a'),this.$titleText=$("
        "+this._title+"
        "),this.$title.append(this.$titleText),this._options.hasOwnProperty("title")&&this.title(this._options.title),this._options.icon&&this.icon(this._options.icon),this._options.faicon&&this.faicon(this._options.faicon)},__update:function(){var t=this.docker();if(t&&(this._layout.__update(),this.$container)){if(this._resizeVisible?this._parent.$frame.removeClass("wcHideOnResize"):this._parent.$frame.addClass("wcHideOnResize"),this._initialized)this.__trigger(e.EVENT.UPDATED);else{this._initialized=!0;var a=this;setTimeout(function(){a.__trigger(e.EVENT.INIT),t.__testLoadFinished()},0)}var r=this.$container.width(),o=this.$container.height();(this._actualSize.x!==r||this._actualSize.y!==o)&&(this._resizeData.time=new Date,this._resizeData.timeout||(this._resizeData.timeout=!0,setTimeout(this.__resizeEnd.bind(this),this._resizeData.delta),this.__trigger(e.EVENT.RESIZE_STARTED,{width:this._actualSize.x,height:this._actualSize.y})),this._actualSize.x=r,this._actualSize.y=o,this.__trigger(e.EVENT.RESIZED,{width:this._actualSize.x,height:this._actualSize.y}));var i=this.$container.offset();(this._actualPos.x!==i.left||this._actualPos.y!==i.top)&&(this._moveData.time=new Date,this._moveData.timeout||(this._moveData.timeout=!0,setTimeout(this.__moveEnd.bind(this),this._moveData.delta),this.__trigger(e.EVENT.MOVE_STARTED,{x:this._actualPos.x,y:this._actualPos.y})),this._actualPos.x=i.left,this._actualPos.y=i.top,this.__trigger(e.EVENT.MOVED,{x:this._actualPos.x,y:this._actualPos.y}))}},__resizeEnd:function(){new Date-this._resizeData.timer.x&&t.y>r.y&&t.xr.x&&t.y>r.y&&t.x').css("opacity",0).css("top",t.y+"px").css("left",t.x+"px").css("width",t.w+"px").css("height",t.h+"px"),this._anchorMouse={x:t.x-e.x,y:t.y-e.y},this._rect={x:-this._anchorMouse.x,y:-this._anchorMouse.y,w:t.w,h:t.h},$("body").append(this.$ghost),this.anchor(e,t)},__move:function(t){if(!this._anchor){var e=parseInt(this.$ghost.css("left")),a=parseInt(this.$ghost.css("top"));e=t.x+this._anchorMouse.x,a=t.y+this._anchorMouse.y,this.$ghost.css("left",e+"px"),this.$ghost.css("top",a+"px")}},__rect:function(){return this._rect},__destroy:function(){this.$ghost.stop().animate({opacity:0},{duration:175,complete:function(){$(this).remove()}})}});return a}),a("wcDocker/splitter",["dcl/dcl","./types","./base"],function(t,e,a){var r=t(a,{declaredClass:"wcSplitter",constructor:function(t,e,a){this.$container=$(t),this._parent=e,this._orientation=a,this._pane=[!1,!1],this.$pane=[],this.$bar=null,this._pos=.5,this._posTarget=.5,this._pixelPos=-1,this._findBestPos=!1,this._anim=0,this._boundEvents=[],this.__init(),this.docker()._splitterList.push(this)},initLayouts:function(t,e){var a=t||"wcLayoutTable",r=new(this.docker().__getClass(a))(this.$pane[0],this);a=e||"wcLayoutTable";var o=new(this.docker().__getClass(a))(this.$pane[1],this);this.pane(0,r),this.pane(1,o)},orientation:function(t){return"undefined"==typeof t?this._orientation:void(this._orientation!=t&&(this._orientation=t,this._orientation?this.$bar.removeClass("wcWide").removeClass("wcSplitterBarH").addClass("wcTall").addClass("wcSplitterBarV"):this.$bar.removeClass("wcTall").removeClass("wcSplitterBarV").addClass("wcWide").addClass("wcSplitterBarH"),this.$pane[0].css("top","").css("left","").css("width","").css("height",""),this.$pane[1].css("top","").css("left","").css("width","").css("height",""),this.$bar.css("top","").css("left","").css("width","").css("height",""),this.__update(),this._parent&&this._parent.instanceOf("wcPanel")&&this._parent.__trigger(e.EVENT.UPDATED)))},minSize:function(){var t,e;return this._pane[0]&&"function"==typeof this._pane[0].minSize&&(t=this._pane[0].minSize()),this._pane[1]&&"function"==typeof this._pane[1].minSize&&(e=this._pane[1].minSize()),t&&e?(this._orientation?(t.x+=e.x,t.y=Math.max(t.y,e.y)):(t.y+=e.y,t.x=Math.max(t.x,e.x)),t):t?t:e?e:!1},maxSize:function(){var t,e;return this._pane[0]&&"function"==typeof this._pane[0].maxSize&&(t=this._pane[0].maxSize()),this._pane[1]&&"function"==typeof this._pane[1].maxSize&&(e=this._pane[1].maxSize()),t&&e?(this._orientation?(t.x+=e.x,t.y=Math.min(t.y,e.y)):(t.y+=e.y,t.x=Math.min(t.x,e.x)),t):t?t:e?e:!1},pos:function(t){return"undefined"!=typeof t&&(this._pos=this._posTarget=t,this.__update(),this._parent&&this._parent.instanceOf("wcPanel")&&this._parent.__trigger(e.EVENT.UPDATED)),this._posTarget},animPos:function(t,e){this._posTarget=t;var a=this;this.$bar.queue(function(t){a._anim&&clearInterval(a._anim),a._anim=setInterval(function(){a._pos>a._posTarget&&(a._pos-=(a._pos-a._posTarget)/5,a._pos<=a._posTarget+.01&&(a._pos=a._posTarget)),a._pos=a._posTarget-.01&&(a._pos=a._posTarget)),a.__update(),a._pos==a._posTarget&&(e&&e(),t(),clearInterval(a._anim),a._anim=0)},5)}),this.$bar.dequeue()},pane:function(t,e){if(t>=0&&2>t){if("undefined"==typeof e)return this._pane[t];if(e)return this._pane[t]=e,e._parent=this,e.__container(this.$pane[t]),this._pane[0]&&this._pane[1]&&this.__update(),e;this._pane[t]&&(this._pane[t].__container(null),this._pane[t]=!1)}return!1},left:function(t){return this.pane(0,t)},right:function(t){return this.pane(1,t)},top:function(t){return this.pane(0,t)},bottom:function(t){return this.pane(1,t)},scrollable:function(t,e,a){return"undefined"!=typeof e&&this.$pane[t].toggleClass("wcScrollableX",e),"undefined"!=typeof a&&this.$pane[t].toggleClass("wcScrollableY",a),{x:this.$pane[t].hasClass("wcScrollableX"),y:this.$pane[t].hasClass("wcScrollableY")}},destroy:function(t){var e=this.docker();if(e){var a=this.docker()._splitterList.indexOf(this);a>-1&&this.docker()._splitterList.splice(a,1)}void 0===t||t?this.__destroy():this.__container(null)},__init:function(){if(this.$pane.push($('
        ')),this.$pane.push($('
        ')),this.$bar=$('
        '),this._orientation?this.$bar.addClass("wcTall").addClass("wcSplitterBarV"):this.$bar.addClass("wcWide").addClass("wcSplitterBarH"),this.__container(this.$container),this._parent&&this._parent.instanceOf("wcPanel")){this._boundEvents.push({event:e.EVENT.UPDATED,handler:this.__update.bind(this)}),this._boundEvents.push({event:e.EVENT.CLOSED,handler:this.destroy.bind(this)});for(var t=0;ta;++a)if(this._pane[a]&&this._pane[a].minSize&&this._pane[a].maxSize&&this._pane[a].maxSize()[t]-this._pane[a].minSize()[t]===0)return!0;return!1},__container:function(t){return"undefined"==typeof t?this.$container:(this.$container=t, +this.$container?(this.$container.append(this.$pane[0]),this.$container.append(this.$pane[1]),this.$container.append(this.$bar)):(this.$pane[0].remove(),this.$pane[1].remove(),this.$bar.remove()),this.$container)},__removeChild:function(t){if(this._pane[0]===t)this._pane[0]=!1;else{if(this._pane[1]!==t)return;this._pane[1]=!1}t&&(t.__container(null),t._parent=null)},__destroy:function(){for(this._anim&&(clearInterval(this._anim),this._anim=0),this.$bar.clearQueue();this._boundEvents.length;)this._parent.off(this._boundEvents[0].event,this._boundEvents[0].handler),this._boundEvents.shift();this._pane[0]&&(this._pane[0].__destroy(),this._pane[0]=null),this._pane[1]&&(this._pane[1].__destroy(),this._pane[1]=null),this.__container(null),this._parent=!1}});return r}),a("wcDocker/frame",["dcl/dcl","./types","./base"],function(t,e,a){var r=t(a,{declaredClass:"wcFrame",LEFT_TAB_BUFFER:15,constructor:function(t,a,r){this.$container=$(t),this._parent=a,this._isFloating=r,this.$frame=null,this.$title=null,this.$titleBar=null,this.$tabBar=null,this.$tabScroll=null,this.$center=null,this.$tabLeft=null,this.$tabRight=null,this.$close=null,this.$collapse=null,this.$top=null,this.$bottom=null,this.$left=null,this.$right=null,this.$corner1=null,this.$corner2=null,this.$corner3=null,this.$corner4=null,this.$buttonBar=null,this.$shadower=null,this.$modalBlocker=null,this._titleVisible=!0,this._canScrollTabs=!1,this._tabOrientation=e.TAB.TOP,this._tabScrollPos=0,this._curTab=-1,this._panelList=[],this._buttonList=[],this._resizeData={time:-1,timeout:!1,delta:150},this._pos={x:.5,y:.5},this._size={x:400,y:400},this._lastSize={x:400,y:400},this._anchorMouse={x:0,y:0},this.__init()},pos:function(t,e,a){var r=this.$container.width(),o=this.$container.height();return"undefined"==typeof t?a?{x:this._pos.x*r,y:this._pos.y*o}:{x:this._pos.x,y:this._pos.y}:void(a?(this._pos.x=t/r,this._pos.y=e/o):(this._pos.x=t,this._pos.y=e))},initSize:function(){for(var t={x:-1,y:-1},e=0;e=e&&this._curTab--,this._panelList[e]._parent===this&&(this._panelList[e].__container(null),this._panelList[e]._parent=null),this._panelList.splice(e,1),t._isVisible=!1;break}return-1===this._curTab&&!this.collapse()&&this._panelList.length&&(this._curTab=0),this.__updateTabs(),this._panelList.length>0},panel:function(t,e){return"undefined"!=typeof t&&(this.isCollapser()&&t===this._curTab&&(this.collapse(),t=-1),t .wcTabScroller > .wcPanelTab[id="'+this._curTab+'"]').removeClass("wcPanelTabActive"),this.$center.children('.wcPanelTabContent[id="'+this._curTab+'"]').addClass("wcPanelTabContentHidden"),this._curTab!==t&&this.collapse(),this._curTab=t,t>-1&&(this.$tabBar.find('> .wcTabScroller > .wcPanelTab[id="'+t+'"]').addClass("wcPanelTabActive"),this.$center.children('.wcPanelTabContent[id="'+t+'"]').removeClass("wcPanelTabContentHidden"),this.expand()),this.__updateTabs(e))),this._curTab>-1&&this._curTab'),this.$title=$('
        '),this.$titleBar=$('
        '),this.$tabBar=$('
        '),this.$tabScroll=$('
        '),this.$center=$('
        '),this.$tabLeft=$('
        <
        '),this.$tabRight=$('
        >
        '),this.$close=$('
        X
        '),this.$collapse=$('
        C
        '),this.$buttonBar=$('
        '),this.$tabButtonBar=$('
        '),this.$tabBar.append(this.$tabScroll),this.$tabBar.append(this.$tabButtonBar),this.$frame.append(this.$buttonBar),this.$buttonBar.append(this.$close),this.$buttonBar.append(this.$collapse),this.$frame.append(this.$center),this._isFloating&&(this.$top=$('
        ').css("top","-6px").css("left","0px").css("right","0px"),this.$bottom=$('
        ').css("bottom","-6px").css("left","0px").css("right","0px"),this.$left=$('
        ').css("left","-6px").css("top","0px").css("bottom","0px"),this.$right=$('
        ').css("right","-6px").css("top","0px").css("bottom","0px"),this.$corner1=$('
        ').css("top","-6px").css("left","-6px"),this.$corner2=$('
        ').css("top","-6px").css("right","-6px"),this.$corner3=$('
        ').css("bottom","-6px").css("right","-6px"),this.$corner4=$('
        ').css("bottom","-6px").css("left","-6px"),this.$frame.append(this.$top),this.$frame.append(this.$bottom),this.$frame.append(this.$left),this.$frame.append(this.$right),this.$frame.append(this.$corner1),this.$frame.append(this.$corner2),this.$frame.append(this.$corner3),this.$frame.append(this.$corner4)),this.__container(this.$container),this._isFloating&&this.$frame.addClass("wcFloating"),this.$center.scroll(this.__scrolled.bind(this))},__update:function(){var t=this.$container.width(),e=this.$container.height();if(this._isFloating){var a=this._pos.x*t-this._size.x/2,r=this._pos.y*e-this._size.y/2;0>r&&(r=0),a+this._size.x/2<0&&(a=-this._size.x/2),a+this._size.x/2>t&&(a=t-this._size.x/2),r+parseInt(this.$center.css("top"))>e&&(r=e-parseInt(this.$center.css("top"))),this.$frame.css("left",a+"px"),this.$frame.css("top",r+"px"),this.$frame.css("width",this._size.x+"px"),this.$frame.css("height",this._size.y+"px")}(t!==this._lastSize.x||e!==this._lastSize.y)&&(this._lastSize.x=t,this._lastSize.y=e,this._resizeData.time=new Date,this._resizeData.timeout||(this._resizeData.timeout=!0,setTimeout(this.__resizeEnd.bind(this),this._resizeData.delta))),this.__onTabChange()},__resizeEnd:function(){this.__updateTabs(),new Date-this._resizeData.time1||this._isFloating||this.isCollapser();this.isCollapser()?this.$tabBar.addClass("wcNotMoveable"):(this.$titleBar.removeClass("wcNotMoveable"),this.$tabBar.removeClass("wcNotMoveable")),this.$center.children(".wcPanelTabContent").each(function(){$(this).addClass("wcPanelTabContentHidden wcPanelTabUnused")}),this._titleVisible=!0,this.$title.html("");for(var l=0;l'),this.$center.append(u)),c.__container(u),c._parent=this;var d=this._curTab===l;if(c.isVisible()!==d&&r.push({panel:c,isVisible:d}),u.removeClass("wcPanelTabUnused"),d&&(h&&h.addClass("wcPanelTabActive"),u.removeClass("wcPanelTabContentHidden"),this.$title.html(c.title()),c.$icon)){var f=c.$icon.clone();this.$title.prepend(f)}h&&(i=a(h)-n,o.push(i),i+=h.outerWidth())}var p=this.$titleBar,b=0;if(this._titleVisible){switch(this.$frame.parent()||this.$center.css("top",""),this._tabOrientation){case e.TAB.TOP:this.$frame.prepend(this.$tabBar),this.$titleBar.remove(),this.$tabBar.addClass("wcTabTop").removeClass("wcTabLeft wcTabRight wcTabBottom"),s?this.$title.remove():this.$tabBar.prepend(this.$title),p=this.$tabBar,this.$center.css("left",0).css("right",0).css("bottom",0),b=this.$center.width();break;case e.TAB.BOTTOM:if(this.$frame.prepend(this.$titleBar),this.$titleBar.append(this.$title),s){var _=this.$titleBar.height();this.$frame.append(this.$tabBar),this.$tabBar.addClass("wcTabBottom").removeClass("wcTabTop wcTabLeft wcTabRight"),this.$center.css("left",0).css("right",0).css("bottom",_)}else this.$tabBar.remove();b=this.$center.width();break;case e.TAB.LEFT:if(this.$frame.prepend(this.$titleBar),this.$titleBar.append(this.$title),s){var _=this.$titleBar.height();this.$frame.append(this.$tabBar),this.$tabBar.addClass("wcTabLeft").removeClass("wcTabTop wcTabRight wcTabBottom"),this.$center.css("left",_).css("right",0).css("bottom",0)}else this.$tabBar.remove();b=this.$center.height();break;case e.TAB.RIGHT:if(this.$frame.prepend(this.$titleBar),this.$titleBar.append(this.$title),s){var _=this.$titleBar.height();this.$frame.append(this.$tabBar),this.$tabBar.addClass("wcTabRight").removeClass("wcTabTop wcTabLeft wcTabBottom"),this.$center.css("left",0).css("right",_).css("bottom",0)}else this.$tabBar.remove();b=this.$center.height()}s||this.$center.css("left",0).css("right",0).css("bottom",0)}else this.$titleBar.remove(),this.$tabBar.remove(),this.$center.css("top",0).css("left",0).css("right",0).css("bottom",0);if(this.$center.children(".wcPanelTabUnused").each(function(){$(this).remove()}),this._titleVisible){var v=this.__onTabChange();if(t)for(var l=0;lm?(this._tabScrollPos=m-this.LEFT_TAB_BUFFER,this._tabScrollPos<0&&(this._tabScrollPos=0)):w-g>T&&(this._tabScrollPos=w-T+this.LEFT_TAB_BUFFER);break}if(this._canScrollTabs=!1,i>b-v){this._canScrollTabs=this._titleVisible,this._canScrollTabs&&(this.$tabButtonBar.append(this.$tabRight),this.$tabButtonBar.append(this.$tabLeft),v+=this.$tabRight.outerWidth(),v+=this.$tabLeft.outerWidth());var x=i-(b-v)/2;if(this._tabScrollPos>x)for(var y=this.$tabScroll.children(),l=0;lx){this._tabScrollPos=i-this.LEFT_TAB_BUFFER,this._tabScrollPos<0&&(this._tabScrollPos=0);break}}}else this._tabScrollPos=0,this.$tabLeft.remove(),this.$tabRight.remove();this.$tabScroll.stop().animate({left:-this._tabScrollPos+"px"},"fast");for(var l=0;l.5&&h.bottom>.95?s=e.DOCK.BOTTOM:h.left<=.05?s=e.DOCK.LEFT:h.right>=.95?s=e.DOCK.RIGHT:h.bottom>.95&&(s=e.DOCK.BOTTOM)}var u="",d="";switch(s){case e.DOCK.LEFT:u="left side.",d="wcCollapseLeft";break;case e.DOCK.RIGHT:u="right side.",d="wcCollapseRight";break;case e.DOCK.BOTTOM:u="bottom.",d="wcCollapseBottom"}if(u){var n=this.$collapse.children("div");n[0].className="fa fa-sign-in",n.addClass(d),n.addClass("wcCollapsible"),this.$collapse.show(),this.$collapse.attr("title","Collapse this panel into the "+u),t+=this.$collapse.outerWidth()}}for(var f=0;f"),_=p.className;b.addClass("wcFrameButton"),p.isTogglable&&(b.addClass("wcFrameButtonToggler"),p.isToggled&&(b.addClass("wcFrameButtonToggled"),_=p.toggleClassName||_)),b.attr("title",p.tip),b.data("name",p.name),b.text(p.text),_&&b.prepend($('
        ')),this._buttonList.push(b),this.$buttonBar.append(b),t+=b.outerWidth()}}if(this._canScrollTabs&&(this.$tabButtonBar.append(this.$tabRight),this.$tabButtonBar.append(this.$tabLeft),a+=this.$tabRight.outerWidth()+this.$tabLeft.outerWidth()),this._titleVisible)switch(this.$buttonBar.css("right",""),this._tabOrientation){case e.TAB.RIGHT:this.$buttonBar.css("right",this.$tabBar.height());case e.TAB.LEFT:this.$tabBar.css("width",this.$center.height()+this.$tabBar.height());break;case e.TAB.TOP:case e.TAB.BOTTOM:this.$tabBar.css("width",this.$center.width())}r.__update(),this.$center.scrollLeft(r._scroll.x),this.$center.scrollTop(r._scroll.y)}return this.$buttonBar.css("min-width",t).css("width",t),this.$tabButtonBar.css("min-width",a).css("width",a),this._tabOrientation===e.TAB.TOP?(this.$tabButtonBar.css("right",t),t+a):(this.$tabButtonBar.css("right",0),a)},__scrolled:function(){var t=this.panel();t._scroll.x=this.$center.scrollLeft(),t._scroll.y=this.$center.scrollTop(),t.__trigger(e.EVENT.SCROLLED)},__focus:function(t){if(t){var e=$('
        ');this.$frame.append(e),e.animate({opacity:1},100).animate({opacity:0},100).animate({opacity:.6},50).animate({opacity:0},50).queue(function(t){e.remove(),t()})}},__move:function(t){var e=this.$container.width(),a=this.$container.height();this._pos.x=(t.x+this._anchorMouse.x)/e,this._pos.y=(t.y+this._anchorMouse.y)/a},__anchorMove:function(t){var e=this.$container.width(),a=this.$container.height();this._anchorMouse.x=this._pos.x*e-t.x,this._anchorMouse.y=this._pos.y*a-t.y},__tabMove:function(t,e){if(t>=0&&t=0&&e .wcTabScroller > .wcPanelTab[id="'+e+'"]')[0]}return!1},__checkAnchorDrop:function(t,e,a,r,o,i){var n=this.panel();return n&&n.moveable()?n.layout().__checkAnchorDrop(t,e&&this._tabOrientation,a,!this._isFloating&&!this.isCollapser()&&r,this.$frame,n.moveable()&&n.title(),o,this.isCollapser()?this._tabOrientation:void 0,i):!1},__resize:function(t,e){var a=this.$container.width(),r=this.$container.height(),o=this.$container.offset();e.x-=o.left,e.y-=o.top;for(var i=this.minSize(),n=this.maxSize(),s={x:this._pos.x*a-this._size.x/2,y:this._pos.y*r-this._size.y/2},l=0;ln.y&&(s.y+=this._size.y-n.y,this._size.y=n.y);break;case"bottom":this._size.y=e.y-4-s.y,this._size.yn.y&&(this._size.y=n.y);break;case"left":this._size.x+=s.x-e.x-2,s.x=e.x+2,this._size.xn.x&&(s.x+=this._size.x-n.x,this._size.x=n.x);break;case"right":this._size.x=e.x-4-s.x,this._size.xn.x&&(this._size.x=n.x)}this._pos.x=(s.x+this._size.x/2)/a,this._pos.y=(s.y+this._size.y/2)/r}},__shadow:function(t){if(t)this.$shadower||(this.$shadower=$('
        '),this.$frame.append(this.$shadower),this.$shadower.animate({opacity:.5},300));else if(this.$shadower){var e=this;this.$shadower.animate({opacity:0},300).queue(function(t){e.$shadower.remove(),e.$shadower=null,t()})}},__rect:function(){if(this.isCollapser())return this._parent.__rect();var t=this.$frame.offset(),e=this.$frame.width(),a=this.$frame.height();return{x:t.left,y:t.top,w:e,h:a}},__container:function(t){return"undefined"==typeof t?this.$container:(this.$container=t,this.$container?this.$container.append(this.$frame):this.$frame.remove(),this.$container)},__destroy:function(){this._curTab=-1;for(var t=0;t'),this.__container(this.$container),this._frame=new(this.docker().__getClass("wcFrame"))(this.$frame,this,!1),this._frame.tabOrientation(this._position)},__update:function(t){this.__adjustCollapsedSize(),this._frame.__update()},__adjustCollapsedSize:function(){this._frame._panelList.length?(this._closeSize=this._frame.$tabBar.outerHeight(),this._parent.$bar.removeClass("wcSplitterHidden")):(this._closeSize=0,this._parent.$bar.addClass("wcSplitterHidden"))},__rect:function(){var t=this.$frame.offset(),a=this.$frame.width(),r=this.$frame.height(),o=this._frame.panel();return o&&(this._position===e.DOCK.BOTTOM?(r=o._size.y,a/=3):(a=o._size.x,r/=3)),{x:t.left,y:t.top,w:a,h:r}},__save:function(){var t={};return t.closeSize=this._closeSize,t.frame=this._frame.__save(),t},__restore:function(t,e){this._closeSize=t.closeSize,this._frame.__restore(t.frame,e),this.__adjustCollapsedSize()},__container:function(t){return"undefined"==typeof t?this.$container:(this.$container=t,this.$container?this.$container.append(this.$frame):this.$frame.remove(),this.$container)},__destroy:function(){this._frame&&(this._frame.__destroy(),this._frame=null),this.__container(null),this._parent=null}});return o}),a("wcDocker/collapser",["dcl/dcl","./types","./splitter","./drawer","./base"],function(t,e,a,r,o){var i=t(o,{declaredClass:"wcCollapser",constructor:function(t,a,r){this.$container=$(t),this.$frame=null,this._position=r,this._parent=a,this._splitter=null,this._drawer=null,this._size=0,this._orientation=this._position===e.DOCK.LEFT||this._position===e.DOCK.RIGHT?e.ORIENTATION.HORIZONTAL:e.ORIENTATION.VERTICAL,this.__init()},collapse:function(t){this._drawer.collapse()},expand:function(){this._drawer.expand()},isExpanded:function(){return this._drawer.isExpanded()},minSize:function(){return{x:this._size,y:this._size}},maxSize:function(){var t=this._orientation===e.ORIENTATION.HORIZONTAL?!0:!1;return{x:t?this._size:1/0,y:t?1/0:this._size}},__init:function(){this.$frame=$('
        '),this.__container(this.$container);var t=this.docker();switch(this._splitter=new(this.docker().__getClass("wcSplitter"))(t.$container,this,this._orientation),this._drawer=new(this.docker().__getClass("wcDrawer"))(t.$transition,this._splitter,this._position),this._position){case e.DOCK.LEFT:this._splitter.pane(0,this._drawer),this._splitter.$pane[1].remove(),this._splitter.$pane[0].addClass("wcDrawer"),this._splitter.pos(0);break;case e.DOCK.RIGHT:case e.DOCK.BOTTOM:this._splitter.pane(1,this._drawer),this._splitter.$pane[0].remove(),this._splitter.$pane[1].addClass("wcDrawer"),this._splitter.pos(1)}this._parent.$bar.addClass("wcSplitterHidden")},__update:function(t){this._splitter.__update(),this.__adjustSize()},__adjustSize:function(){this._drawer._frame._panelList.length?this._size=this._drawer._frame.$tabBar.outerHeight():this._size=0},__rect:function(){return this._drawer.__rect()},__save:function(){var t={};return t.size=this._size,t.drawer=this._drawer.__save(),t},__restore:function(t,e){this._size=t.size,this._drawer.__restore(t.drawer,e),this.__adjustSize()},__container:function(t){return"undefined"==typeof t?this.$container:(this.$container=t,this.$container?this.$container.append(this.$frame):this.$frame.remove(),this.$container)},__destroy:function(){this._splitter&&(this._splitter.__destroy(),this._splitter=null,this._frame=null),this.__container(null),this._parent=null}});return i}),a("wcDocker/layout",["dcl/dcl","./types"],function(t,e){var a=t(null,{declaredClass:"wcLayout",constructor:function(t,e){this.$container=$(t),this._parent=e,this.$elem=null,this.__init()},addItem:function(t){},clear:function(){},scene:function(){return this.$elem},__init:function(){},__update:function(){},__checkAnchorDrop:function(t,a,r,o,i,n,s,l,c){function h(t,e,a){return"number"==typeof t||"string"==typeof t&&-1!==t.indexOf("px",t.length-2)?(t=parseInt(t),{x:t,y:t}):"string"==typeof t&&-1!==t.indexOf("%",t.length-1)?(t=parseInt(t)/100,{x:e*t,y:a*t}):{x:0,y:0}}var u=this._parent.docker(),d=i.outerWidth(),f=i.outerHeight(),p=i.offset(),b=i.find(".wcFrameTitleBar").height();n||(b=0);var _=h(u._options.edgeAnchorSize,u.$container.outerWidth(),u.$container.outerHeight()),v=h(u._options.panelAnchorSize,d,f);if(n){if((!l||l===e.TAB.TOP)&&t.y>=p.top&&t.y<=p.top+b&&t.x>=p.left&&t.x<=p.left+d)return r.anchor(t,{x:p.left-2,y:p.top-2,w:d,h:b-2,loc:e.DOCK.STACKED,tab:e.TAB.TOP,item:this,self:a===e.TAB.TOP||s&&a}),!0;if(u._canOrientTabs){if((!l||l===e.TAB.BOTTOM)&&t.y>=p.top+f-b&&t.y<=p.top+f&&t.x>=p.left&&t.x<=p.left+d)return r.anchor(t,{x:p.left-2,y:p.top+f-b-2,w:d,h:b,loc:e.DOCK.STACKED,tab:e.TAB.BOTTOM,item:this,self:a===e.TAB.BOTTOM}),!0;if((!l||l===e.TAB.LEFT)&&t.y>=p.top&&t.y<=p.top+f&&t.x>=p.left&&t.x<=p.left+b)return r.anchor(t,{x:p.left-2,y:p.top-2,w:b-2,h:f,loc:e.DOCK.STACKED,tab:e.TAB.LEFT,item:this,self:a===e.TAB.LEFT}),!0;if((!l||l===e.TAB.RIGHT)&&t.y>=p.top&&t.y<=p.top+f&&t.x>=p.left+d-b&&t.x<=p.left+d)return r.anchor(t,{x:p.left+d-b-2,y:p.top-2,w:b,h:f,loc:e.DOCK.STACKED,tab:e.TAB.RIGHT,item:this,self:a===e.TAB.RIGHT}),!0}}if(c&&r._outer&&r._inner){var m=r._outer.$container.outerWidth(),w=r._outer.$container.outerHeight(),g=r._outer.$container.offset();if(t.y>=g.top&&t.y<=g.top+w&&t.x>=g.left+b&&t.x<=g.left+b+_.x)return r.anchor(t,{x:g.left-2,y:g.top-2,w:m/3,h:w,loc:e.DOCK.LEFT,item:r._inner,self:!1}),!0;if(t.y>=g.top&&t.y<=g.top+w&&t.x>=g.left+m-_.x-b&&t.x<=g.left+m-b)return r.anchor(t,{x:g.left+m-m/3-2,y:g.top-2,w:m/3,h:w,loc:e.DOCK.RIGHT,item:r._inner,self:!1}),!0;if(t.y>=g.top+b&&t.y<=g.top+b+_.y&&t.x>=g.left&&t.x<=g.left+m)return r.anchor(t,{x:g.left-2,y:g.top-2,w:m,h:w/3,loc:e.DOCK.TOP,item:r._inner,self:!1}),!0;if(t.y>=g.top+w-b-_.y&&t.y<=g.top+w-b&&t.x>=g.left&&t.x<=g.left+m)return r.anchor(t,{x:g.left-2,y:g.top+w-w/3-2,w:m,h:w/3,loc:e.DOCK.BOTTOM,item:r._inner,self:!1}),!0}if(!o)return!1;if(this._parent&&this._parent.instanceOf("wcPanel")&&this._parent._isPlaceholder)return r.anchor(t,{x:p.left-2,y:p.top-2,w:d,h:f,loc:e.DOCK.TOP,item:this,self:!1}),!0;if(f>d){if(t.y>=p.top&&t.y<=p.top+b+v.y&&t.x>=p.left&&t.x<=p.left+d)return r.anchor(t,{x:p.left-2,y:p.top-2,w:d,h:.5*f,loc:e.DOCK.TOP,item:this,self:!1}),!0;if(t.y>=p.top+f-v.y-b&&t.y<=p.top+f&&t.x>=p.left&&t.x<=p.left+d)return r.anchor(t,{x:p.left-2,y:p.top+(f-.5*f)-2,w:d,h:.5*f,loc:e.DOCK.BOTTOM,item:this,self:!1}),!0}if(t.y>=p.top&&t.y<=p.top+f){if(t.x>=p.left&&t.x<=p.left+v.x+b)return r.anchor(t,{x:p.left-2,y:p.top-2,w:.5*d,h:f,loc:e.DOCK.LEFT,item:this,self:!1}),!0;if(t.x>=p.left+d-v.x-b&&t.x<=p.left+d)return r.anchor(t,{x:p.left+.5*d-2,y:p.top-2,w:.5*d,h:f,loc:e.DOCK.RIGHT,item:this,self:!1}),!0}if(d>=f){if(t.y>=p.top&&t.y<=p.top+v.y+b&&t.x>=p.left&&t.x<=p.left+d)return r.anchor(t,{x:p.left-2,y:p.top-2,w:d,h:.5*f,loc:e.DOCK.TOP,item:this,self:!1}),!0;if(t.y>=p.top+f-v.y-b&&t.y<=p.top+f&&t.x>=p.left&&t.x<=p.left+d)return r.anchor(t,{x:p.left-2,y:p.top+(f-.5*f)-2,w:d,h:.5*f,loc:e.DOCK.BOTTOM,item:this,self:!1}),!0}return!1},__container:function(t){return"undefined"==typeof t?this.$container:(this.$container=t,this.$container?this.$container.append(this.$elem):this.$elem.remove(),this.$container)},__destroy:function(){this.__container(null),this._parent=null,this.clear(),this.$elem.remove(),this.$elem=null}});return a}),a("wcDocker/layoutsimple",["dcl/dcl","./types","./layout"],function(t,e,a){var r=t(a,{declaredClass:"wcLayoutSimple",addItem:function(t){this.$elem.append(t)},clear:function(){this.$elem.remove(),this.$elem=null,this.__init()},__init:function(){this.$elem=$('
        '),this.__container(this.$container)},__update:function(){}});return r}),a("wcDocker/layouttable",["dcl/dcl","./types","./layout"],function(t,e,a){var r=t(a,{declaredClass:"wcLayoutTable",addItem:function(t,e,a,r,o){return("undefined"==typeof e||0>e)&&(e=0),("undefined"==typeof a||0>a)&&(a=0),("undefined"==typeof r||0>=r)&&(r=1),("undefined"==typeof o||0>=o)&&(o=1),this.__resizeGrid(e+r-1,a+o-1),(r>1||o>1)&&!this.__mergeGrid(e,a,r,o)?!1:(this._grid[a][e].$el.append($(t)),this.item(e,a))},item:function(t,e){if(e>=this._grid.length)return!1;if(t>=this._grid[e].length)return!1;var a=this,r={$:a._grid[e][t].$el,css:function(o,i){if(a._grid[e][t].$el){if(void 0===i)return a._grid[e][t].$el.css(o);a._grid[e][t].$el.css(o,i)}return r},stretch:function(o,i){return a.itemStretch(t,e,o,i),r}};return r},itemStretch:function(t,e,a,r){var o=this._batchProcess;this._batchProcess=!0,this.__resizeGrid(t,e);var i=this._grid[e][t];return i.x<0||i.y<0?!1:(void 0!==a&&(i.sx=a),void 0!==r&&(i.sy=r),this._batchProcess=o,o||this.__resizeGrid(0,0),!0)},clear:function(){var t=this.showGrid(),e=this.gridSpacing(),a=this.gridAlternate();this.$elem.remove(),this.__init(),this.showGrid(t),this.gridSpacing(e),this.gridAlternate(a),this._grid=[]},startBatch:function(){this._batchProcess=!0},finishBatch:function(){this._batchProcess=!1,this.__resizeGrid(0,0)},showGrid:function(t){return"undefined"!=typeof t&&this.$elem.toggleClass("wcLayoutGrid",t),this.$elem.hasClass("wcLayoutGrid")},gridSpacing:function(t){return"undefined"!=typeof t&&this.$elem.css("border-spacing",t+"px"),parseInt(this.$elem.css("border-spacing"))},gridAlternate:function(t){return"undefined"!=typeof t&&this.$elem.toggleClass("wcLayoutGridAlternate",t),this.$elem.hasClass("wcLayoutGridAlternate")},__init:function(){this.$elem=$('
        '),this.$elem.append($("")),this._grid=[],this.__container(this.$container)},__update:function(){},__resizeGrid:function(t,e){for(var a=0;e>=a;++a){if(this._grid.length<=a){var r=[];r.$row=$(""),this._grid.push(r)}for(var o=0;t>=o;++o)this._grid[a].length<=o&&this._grid[a].push({$el:$(""),x:0,y:0,sx:"",sy:""})}if(!this._batchProcess){var i=this.$elem.find("tbody");$(".wcDockerTransition").append(i);for(var n=$(""),a=0;ao;++o)for(var i=0;a>i;++i){ +var n=this._grid[e+o][t+i];if(!n.$el||0!==n.x||0!==n.y)return!1}var n=this._grid[e][t];a>1&&(n.$el.attr("colspan",""+a),n.x=a-1),r>1&&(n.$el.attr("rowspan",""+r),n.y=r-1);for(var o=0;r>o;++o)for(var i=0;a>i;++i)if(0!==o||0!==i){var n=this._grid[e+o][t+i];n.$el.remove(),n.$el=null,n.x=-i,n.y=-o}return!0}});return r}),a("wcDocker/tabframe",["dcl/dcl","./types","./base"],function(t,e,a){var r=t(a,{declaredClass:"wcTabFrame",LEFT_TAB_BUFFER:15,constructor:function(t,a){this.$container=$(t),this._parent=a,this.$frame=null,this.$tabBar=null,this.$tabScroll=null,this.$center=null,this.$tabLeft=null,this.$tabRight=null,this.$close=null,this._tabOrientation=e.TAB.TOP,this._canScrollTabs=!1,this._tabScrollPos=0,this._curTab=-1,this._layoutList=[],this._moveable=!0,this._boundEvents=[],this.__init()},update:function(){var t=this.$center.scrollTop();this.__updateTabs(),this.$center.scrollTop(t)},destroy:function(){this.__destroy()},tabCount:function(){return this._layoutList.length},tabOrientation:function(t){return void 0!==t&&this._tabOrientation!==t&&this.docker()._canOrientTabs&&(this._tabOrientation=t,this.__updateTabs(),this.__updateTabs()),this._tabOrientation},addTab:function(t,e,a){var r=a||"wcLayoutTable",o=new(this.docker().__getClass(r))(".wcDockerTransition",this._parent);return o.name=t,o._scrollable={x:!0,y:!0},o._scroll={x:0,y:0},o._closeable=!1,o._overflowVisible=!1,"undefined"==typeof e||-1>=e?this._layoutList.push(o):this._layoutList.splice(e,0,o),-1===this._curTab&&this._layoutList.length&&(this._curTab=0),this.__updateTabs(),o},removeTab:function(t){if(t>-1&&t=t&&(this._curTab--,this._curTab<0&&(this._curTab=0)),this.__updateTabs(),this._parent.__trigger(e.EVENT.CUSTOM_TAB_CLOSED,{obj:this,name:a,index:t}),!0}return!1},tab:function(t,a){if("undefined"!=typeof t&&t>-1&&t .wcTabScroller > .wcPanelTab[id="'+this._curTab+'"]').removeClass("wcPanelTabActive"),this.$center.children('.wcPanelTabContent[id="'+this._curTab+'"]').addClass("wcPanelTabContentHidden"),this._curTab=t,this.$tabBar.find('> .wcTabScroller > .wcPanelTab[id="'+t+'"]').addClass("wcPanelTabActive"),this.$center.children('.wcPanelTabContent[id="'+t+'"]').removeClass("wcPanelTabContentHidden"),this.__updateTabs(a);var r=this._layoutList[this._curTab].name;this._parent.__trigger(e.EVENT.CUSTOM_TAB_CHANGED,{obj:this,name:r,index:t})}return this._curTab},layout:function(t){return t>-1&&t=0&&t=0&&e .wcTabScroller > .wcPanelTab[id="'+e+'"]')[0]}return!1},moveable:function(t){return"undefined"!=typeof t&&(this._moveable=t),this._moveable},closeable:function(t,e){if(t>-1&&t-1&&t-1&&t-1&&t-1&&t")),a.$icon.removeClass(),a.$icon.addClass("wcTabIcon "+e)}},faicon:function(t,e){if(t>-1&&t")),a.$icon.removeClass(),a.$icon.addClass("fa fa-fw fa-"+e)}},__init:function(){this.$frame=$('
        '),this.$tabBar=$('
        '),this.$tabScroll=$('
        '),this.$center=$('
        '),this.$tabLeft=$('
        <
        '),this.$tabRight=$('
        >
        '),this.$close=$('
        X
        '),this.$buttonBar=$('
        '),this.$tabBar.append(this.$tabScroll),this.$tabBar.append(this.$buttonBar),this.$buttonBar.append(this.$close),this.$frame.append(this.$center),this.$frame.append(this.$tabBar),this.__container(this.$container),this._boundEvents.push({event:e.EVENT.UPDATED,handler:this.update.bind(this)}),this._boundEvents.push({event:e.EVENT.CLOSED,handler:this.destroy.bind(this)});for(var t=0;t
        '+this._layoutList[n].name+"
        ");this._moveable&&s.addClass("wcCustomTabMoveable"),this.$tabScroll.append(s),this._layoutList[n].$icon&&s.find("div").prepend(this._layoutList[n].$icon);var l=this.$center.children('.wcPanelTabContent[id="'+n+'"]');l.length||(l=$('
        '),this.$center.append(l)),this._layoutList[n].__container(l),this._layoutList[n]._parent=this;var c=this._curTab===n;l.removeClass("wcPanelTabUnused"),c&&(s.addClass("wcPanelTabActive"),l.removeClass("wcPanelTabContentHidden")),o=a(s)-i,r.push(o),o+=s.outerWidth()}var h=0,u=this.$tabBar.height();switch(this._tabOrientation){case e.TAB.TOP:this.$tabBar.addClass("wcTabTop").removeClass("wcTabLeft wcTabRight wcTabBottom"),this.$center.css("top",u).css("left",0).css("right",0).css("bottom",0),h=this.$center.width();break;case e.TAB.BOTTOM:this.$tabBar.addClass("wcTabBottom").removeClass("wcTabTop wcTabLeft wcTabRight"),this.$center.css("top",0).css("left",0).css("right",0).css("bottom",u),h=this.$center.width();break;case e.TAB.LEFT:this.$tabBar.addClass("wcTabLeft").removeClass("wcTabTop wcTabRight wcTabBottom"),this.$center.css("top",0).css("left",u).css("right",0).css("bottom",0),h=this.$center.height();break;case e.TAB.RIGHT:this.$tabBar.addClass("wcTabRight").removeClass("wcTabTop wcTabLeft wcTabBottom"),this.$center.css("top",0).css("left",0).css("right",u).css("bottom",0),h=this.$center.height()}this.$center.children(".wcPanelTabUnused").each(function(){$(this).remove()});var d=this.__onTabChange();if(t)for(var n=0;nf?(this._tabScrollPos=f-this.LEFT_TAB_BUFFER,this._tabScrollPos<0&&(this._tabScrollPos=0)):p-b>_&&(this._tabScrollPos=p-_+this.LEFT_TAB_BUFFER);break}if(this._canScrollTabs=!1,o>h-d){this._canScrollTabs=!0,this.$buttonBar.append(this.$tabRight),this.$buttonBar.append(this.$tabLeft),d+=this.$tabRight.outerWidth(),d+=this.$tabLeft.outerWidth();var v=o-(h-d)/2;if(this._tabScrollPos>v)for(var m=this.$tabScroll.children(),n=0;nv){this._tabScrollPos=o-this.LEFT_TAB_BUFFER,this._tabScrollPos<0&&(this._tabScrollPos=0);break}}}else this._tabScrollPos=0,this.$tabLeft.remove(),this.$tabRight.remove();this.$tabScroll.stop().animate({left:-this._tabScrollPos+"px"},"fast")},__onTabChange:function(){var t=0,a=this.layout(this._curTab);if(a){this.$center.toggleClass("wcScrollableX",a._scrollable.x),this.$center.toggleClass("wcScrollableY",a._scrollable.y),this.$center.toggleClass("wcOverflowVisible",a._overflowVisible),this.$tabLeft.remove(),this.$tabRight.remove(),a._closeable?(this.$close.show(),t+=this.$close.outerWidth()):this.$close.hide(),this._canScrollTabs&&(this.$tabBar.append(this.$tabRight),this.$tabBar.append(this.$tabLeft),t+=this.$tabRight.outerWidth()+this.$tabLeft.outerWidth());var r=this.fitContents(this._curTab);if(r.x){var o=a.scene().outerWidth();(this._tabOrientation===e.TAB.LEFT||this._tabOrientation===e.TAB.RIGHT)&&(o+=this.$tabScroll.height()),this.$container.css("width",o)}else this.$container.css("width","");if(r.y){var i=a.scene().outerHeight();(this._tabOrientation===e.TAB.TOP||this._tabOrientation===e.TAB.BOTTOM)&&(i+=this.$tabScroll.height()),this.$container.css("height",i)}else this.$container.css("height","");switch(this._tabOrientation){case e.TAB.RIGHT:case e.TAB.LEFT:this.$tabBar.css("width",this.$center.height()||"100%");break;case e.TAB.TOP:case e.TAB.BOTTOM:this.$tabBar.css("width",this.$center.width()||"100%")}this.$center.scrollLeft(a._scroll.x),this.$center.scrollTop(a._scroll.y)}return this.$buttonBar.css("min-width",t).css("width",t),t},__scrolled:function(){var t=this.layout(this._curTab);t._scroll.x=this.$center.scrollLeft(),t._scroll.y=this.$center.scrollTop()},__container:function(t){return"undefined"==typeof t?this.$container:(this.$container=t,this.$container?this.$container.append(this.$frame):this.$frame.remove(),this.$container)},__destroy:function(){var t=this.docker();if(t){var e=t._tabList.indexOf(this);e>-1&&t._tabList.splice(e,1)}for(;this._boundEvents.length;)this._parent.off(this._boundEvents[0].event,this._boundEvents[0].handler),this._boundEvents.shift();this._curTab=-1;for(var a=0;ae&&!i||!o||a&&!n&&s||r&&s)return 1;if(e>t&&!a||!s||i&&!r&&o||n&&o)return-1}return 0}function e(t,e,a){for(var r=t.length,o=a?r:-1;a?o--:++o-1;);return a}function s(t,e){for(var a=t.length;a--&&e.indexOf(t.charAt(a))>-1;);return a}function l(e,a){return t(e.criteria,a.criteria)||e.index-a.index}function c(e,a,r){for(var o=-1,i=e.criteria,n=a.criteria,s=i.length,l=r.length;++o=l)return c;var h=r[o];return c*("asc"===h||h===!0?1:-1)}}return e.index-a.index}function h(t){return Kt[t]}function u(t){return Wt[t]}function d(t,e,a){return e?t=Ut[t]:a&&(t=qt[t]),"\\"+t}function f(t){return"\\"+qt[t]}function p(t,e,a){for(var r=t.length,o=e+(a?0:-1);a?o--:++o=t&&t>=9&&13>=t||32==t||160==t||5760==t||6158==t||t>=8192&&(8202>=t||8232==t||8233==t||8239==t||8287==t||12288==t||65279==t)}function v(t,e){for(var a=-1,r=t.length,o=-1,i=[];++ae,o=a?t.length:0,i=Ua(0,o,this.__views__),n=i.start,s=i.end,l=s-n,c=r?s:n-1,h=this.__iteratees__,u=h.length,d=0,f=Sn(l,this.__takeCount__);if(!a||I>o||o==l&&f==l)return oa(t,this.__actions__);var p=[];t:for(;l--&&f>d;){c+=e;for(var b=-1,_=t[c];++b=I?_a(e):null,c=e.length;l&&(n=Jt,s=!1,e=l);t:for(;++ia&&(a=-a>o?0:o+a),r=r===y||r>o?o:+r||0,0>r&&(r+=o),o=a>r?0:r>>>0,a>>>=0;o>a;)t[a++]=e;return t}function Fe(t,e){var a=[];return Nn(t,function(t,r,o){e(t,r,o)&&a.push(t)}),a}function Le(t,e,a,r){var o;return a(t,function(t,a,i){return e(t,a,i)?(o=r?a:t,!1):void 0}),o}function Oe(t,e,a,r){r||(r=[]);for(var o=-1,i=t.length;++or;)t=dr(t)[e[r++]];return r&&r==o?t:y}}function He(t,e,a,r,o,i){return t===e?!0:null==t||null==e||!zo(t)&&!b(e)?t!==t&&e!==e:Ie(t,e,He,a,r,o,i)}function Ie(t,e,a,r,o,i,n){var s=ks(t),l=ks(e),c=W,h=W;s||(c=nn.call(t),c==K?c=X:c!=X&&(s=Go(t))),l||(h=nn.call(e),h==K?h=X:h!=X&&(l=Go(e)));var u=c==X&&!ee(t),d=h==X&&!ee(e),f=c==h;if(f&&!s&&!u)return Ma(t,e,c);if(!o){var p=u&&rn.call(t,"__wrapped__"),b=d&&rn.call(e,"__wrapped__");if(p||b)return a(p?t.value():t,b?e.value():e,r,o,i,n)}if(!f)return!1;i||(i=[]),n||(n=[]);for(var _=i.length;_--;)if(i[_]==t)return n[_]==e;i.push(t),n.push(e);var v=(s?Va:Ra)(t,e,a,r,o,i,n);return i.pop(),n.pop(),v}function Ve(t,e,a){var r=e.length,o=r,i=!a;if(null==t)return!o;for(t=dr(t);r--;){var n=e[r];if(i&&n[2]?n[1]!==t[n[0]]:!(n[0]in t))return!1}for(;++re&&(e=-e>o?0:o+e),a=a===y||a>o?o:+a||0,0>a&&(a+=o),o=e>a?0:a-e>>>0,e>>>=0;for(var i=Ni(o);++r=I,l=s?_a():null,c=[];l?(o=Jt,n=!1):(s=!1,l=e?[]:c);t:for(;++a=o){for(;o>r;){var i=r+o>>>1,n=t[i];(a?e>=n:e>n)&&null!==n?r=i+1:o=i}return o}return na(t,e,Fi,a)}function na(t,e,a,r){e=a(e);for(var o=0,i=t?t.length:0,n=e!==e,s=null===e,l=e===y;i>o;){var c=Tn((o+i)/2),h=a(t[c]),u=h!==y,d=h===h;if(n)var f=d||r;else f=s?d&&u&&(r||null!=h):l?d&&(r||u):null==h?!1:r?e>=h:e>h;f?o=c+1:i=c}return Sn(i,En)}function sa(t,e,a){if("function"!=typeof t)return Fi;if(e===y)return t;switch(a){case 1:return function(a){return t.call(e,a)};case 3:return function(a,r,o){return t.call(e,a,r,o)};case 4:return function(a,r,o,i){return t.call(e,a,r,o,i)};case 5:return function(a,r,o,i,n){return t.call(e,a,r,o,i,n)}}return function(){return t.apply(e,arguments)}}function la(t){var e=new cn(t.byteLength),a=new vn(e);return a.set(new vn(t)),e}function ca(t,e,a){for(var r=a.length,o=-1,i=Cn(t.length-r,0),n=-1,s=e.length,l=Ni(s+i);++n2?a[o-2]:y,n=o>2?a[2]:y,s=o>1?a[o-1]:y;for("function"==typeof i?(i=sa(i,s,5),o-=2):(i="function"==typeof s?s:y,o-=i?1:0),n&&tr(a[0],a[1],n)&&(i=3>o?y:i,o=1);++r-1?r[n]:y}return Le(r,o,t)}}function ya(t){return function(a,r,o){return a&&a.length?(r=Na(r,o,3),e(a,r,t)):-1}}function Ba(t){return function(e,a,r){return a=Na(a,r,3),Le(e,a,t,!0)}}function Ca(t){return function(){for(var e,a=arguments.length,r=t?a:-1,o=0,i=Ni(a);t?r--:++r=I)return e.plant(r).value();for(var o=0,n=a?i[o].apply(this,t):r;++ow){var $=s?oe(s):y,P=Cn(c-w,0),F=p?B:y,A=p?y:B,E=p?T:y,D=p?y:T;e|=p?L:O,e&=~(p?O:L),b||(e&=~(C|S));var k=[t,e,a,E,F,D,A,$,l,P],z=Ea.apply(y,k);return ar(t)&&Zn(z,k),z.placeholder=x,z}}var H=d?a:this,I=f?H[t]:t;return s&&(T=cr(T,s)),u&&l=e||!yn(e))return"";var o=e-r;return a=null==a?" ":a+"",mi(a,wn(o/a.length)).slice(0,o)}function ka(t,e,a,r){function o(){for(var e=-1,s=arguments.length,l=-1,c=r.length,h=Ni(c+s);++ll))return!1;for(;++s-1&&t%1==0&&e>t}function tr(t,e,a){if(!zo(a))return!1;var r=typeof e;if("number"==r?Ja(a)&&Qa(e,a.length):"string"==r&&e in a){var o=a[e];return t===t?t===o:o!==o}return!1}function er(t,e){var a=typeof t;if("string"==a&&yt.test(t)||"number"==a)return!0;if(ks(t))return!1;var r=!xt.test(t);return r||null!=e&&t in dr(e)}function ar(t){var e=Ka(t),a=_[e];if("function"!=typeof a||!(e in et.prototype))return!1;if(t===a)return!0;var r=Un(a);return!!r&&t===r[0]}function rr(t){return"number"==typeof t&&t>-1&&t%1==0&&kn>=t}function or(t){return t===t&&!zo(t)}function ir(t,e){var a=t[1],r=e[1],o=a|r,i=A>o,n=r==A&&a==P||r==A&&a==E&&t[7].length<=e[8]||r==(A|E)&&a==P;if(!i&&!n)return t;r&C&&(t[2]=e[2],o|=a&C?0:$);var s=e[3];if(s){var l=t[3];t[3]=l?ca(l,s,e[4]):oe(s),t[4]=l?v(t[3],N):oe(e[4])}return s=e[5],s&&(l=t[5],t[5]=l?ha(l,s,e[6]):oe(s),t[6]=l?v(t[5],N):oe(e[6])),s=e[7],s&&(t[7]=oe(s)),r&A&&(t[8]=null==t[8]?e[8]:Sn(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=o,t}function nr(t,e){return t===y?e:zs(t,e,nr)}function sr(t,e){t=dr(t);for(var a=-1,r=e.length,o={};++ar;)n[++i]=Ye(t,r,r+=e);return n}function _r(t){for(var e=-1,a=t?t.length:0,r=-1,o=[];++ee?0:e)):[]}function mr(t,e,a){var r=t?t.length:0;return r?((a?tr(t,e,a):null==e)&&(e=1),e=r-(+e||0),Ye(t,0,0>e?0:e)):[]}function wr(t,e,a){return t&&t.length?ra(t,Na(e,a,3),!0,!0):[]}function gr(t,e,a){return t&&t.length?ra(t,Na(e,a,3),!0):[]}function Tr(t,e,a,r){var o=t?t.length:0;return o?(a&&"number"!=typeof a&&tr(t,e,a)&&(a=0,r=o),Pe(t,e,a,r)):[]}function xr(t){return t?t[0]:y}function yr(t,e,a){var r=t?t.length:0;return a&&tr(t,e,a)&&(e=!1),r?Oe(t,e):[]}function Br(t){var e=t?t.length:0;return e?Oe(t,!0):[]}function Cr(t,e,a){var o=t?t.length:0;if(!o)return-1;if("number"==typeof a)a=0>a?Cn(o+a,0):a;else if(a){var i=ia(t,e);return o>i&&(e===e?e===t[i]:t[i]!==t[i])?i:-1}return r(t,e,a||0)}function Sr(t){return mr(t,1)}function $r(t){var e=t?t.length:0;return e?t[e-1]:y}function Pr(t,e,a){var r=t?t.length:0;if(!r)return-1;var o=r;if("number"==typeof a)o=(0>a?Cn(r+a,0):Sn(a||0,r-1))+1;else if(a){o=ia(t,e,!0)-1;var i=t[o];return(e===e?e===i:i!==i)?o:-1}if(e!==e)return p(t,o,!0);for(;o--;)if(t[o]===e)return o;return-1}function Fr(){var t=arguments,e=t[0];if(!e||!e.length)return e;for(var a=0,r=Wa(),o=t.length;++a-1;)_n.call(e,i,1);return e}function Lr(t,e,a){var r=[];if(!t||!t.length)return r;var o=-1,i=[],n=t.length;for(e=Na(e,a,3);++oe?0:e)):[]}function Dr(t,e,a){var r=t?t.length:0;return r?((a?tr(t,e,a):null==e)&&(e=1),e=r-(+e||0),Ye(t,0>e?0:e)):[]}function kr(t,e,a){return t&&t.length?ra(t,Na(e,a,3),!1,!0):[]}function zr(t,e,a){return t&&t.length?ra(t,Na(e,a,3)):[]}function Hr(t,e,a,o){var i=t?t.length:0;if(!i)return[];null!=e&&"boolean"!=typeof e&&(o=a,a=tr(t,e,o)?y:e,e=!1);var n=Na();return(null!=a||n!==xe)&&(a=n(a,o,3)),e&&Wa()===r?m(t,a):ea(t,a)}function Ir(t){if(!t||!t.length)return[];var e=-1,a=0;t=ce(t,function(t){return Ja(t)?(a=Cn(t.length,a),!0):void 0});for(var r=Ni(a);++ea?Cn(o+a,0):a||0,"string"==typeof t||!ks(t)&&Wo(t)?o>=a&&t.indexOf(e,a)>-1:!!o&&Wa(t,e,a)>-1}function eo(t,e,a){var r=ks(t)?he:Me;return e=Na(e,a,3),r(t,e)}function ao(t,e){return eo(t,ki(e))}function ro(t,e,a){var r=ks(t)?ce:Fe;return e=Na(e,a,3),r(t,function(t,a,r){return!e(t,a,r)})}function oo(t,e,a){if(a?tr(t,e,a):null==e){t=ur(t);var r=t.length;return r>0?t[qe(0,r-1)]:y}var o=-1,i=Zo(t),r=i.length,n=r-1;for(e=Sn(0>e?0:+e||0,r);++o0&&(a=e.apply(this,arguments)),1>=t&&(e=y),a}}function bo(t,e,a){function r(){f&&hn(f),c&&hn(c),b=0,c=f=p=y}function o(e,a){a&&hn(a),c=f=p=y,e&&(b=Ts(),h=t.apply(d,l),f||c||(l=d=y))}function i(){var t=e-(Ts()-u);0>=t||t>e?o(p,c):f=bn(i,t)}function n(){o(v,f)}function s(){if(l=arguments,u=Ts(),d=this,p=v&&(f||!m),_===!1)var a=m&&!f;else{c||m||(b=u);var r=_-(u-b),o=0>=r||r>_;o?(c&&(c=hn(c)),b=u,h=t.apply(d,l)):c||(c=bn(n,r))}return o&&f?f=hn(f):f||e===_||(f=bn(i,e)),a&&(o=!0,h=t.apply(d,l)),!o||f||c||(l=d=y),h}var l,c,h,u,d,f,p,b=0,_=!1,v=!0;if("function"!=typeof t)throw new Xi(R);if(e=0>e?0:+e||0,a===!0){var m=!0;v=!1}else zo(a)&&(m=!!a.leading,_="maxWait"in a&&Cn(+a.maxWait||0,e),v="trailing"in a?!!a.trailing:v);return s.cancel=r,s}function _o(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new Xi(R);var a=function(){var r=arguments,o=e?e.apply(this,r):r[0],i=a.cache;if(i.has(o))return i.get(o);var n=t.apply(this,r);return a.cache=i.set(o,n),n};return a.cache=new _o.Cache,a}function vo(t){if("function"!=typeof t)throw new Xi(R);return function(){return!t.apply(this,arguments)}}function mo(t){return po(2,t)}function wo(t,e){if("function"!=typeof t)throw new Xi(R);return e=Cn(e===y?t.length-1:+e||0,0),function(){for(var a=arguments,r=-1,o=Cn(a.length-e,0),i=Ni(o);++re}function So(t,e){return t>=e}function $o(t){return b(t)&&Ja(t)&&rn.call(t,"callee")&&!fn.call(t,"callee")}function Po(t){return t===!0||t===!1||b(t)&&nn.call(t)==G}function Fo(t){return b(t)&&nn.call(t)==j}function Lo(t){return!!t&&1===t.nodeType&&b(t)&&!No(t)}function Oo(t){return null==t?!0:Ja(t)&&(ks(t)||Wo(t)||$o(t)||b(t)&&ko(t.splice))?!t.length:!js(t).length}function Ao(t,e,a,r){a="function"==typeof a?sa(a,r,3):y;var o=a?a(t,e):y;return o===y?He(t,e,a):!!o}function Eo(t){return b(t)&&"string"==typeof t.message&&nn.call(t)==U}function Do(t){return"number"==typeof t&&yn(t)}function ko(t){return zo(t)&&nn.call(t)==q}function zo(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function Ho(t,e,a,r){return a="function"==typeof a?sa(a,r,3):y,Ve(t,Ga(e),a)}function Io(t){return Ro(t)&&t!=+t}function Vo(t){return null==t?!1:ko(t)?ln.test(an.call(t)):b(t)&&(ee(t)?ln:At).test(t)}function Mo(t){return null===t}function Ro(t){return"number"==typeof t||b(t)&&nn.call(t)==Y}function No(t){var e;if(!b(t)||nn.call(t)!=X||ee(t)||$o(t)||!rn.call(t,"constructor")&&(e=t.constructor,"function"==typeof e&&!(e instanceof e)))return!1;var a;return _.support.ownLast?(Ae(t,function(t,e,r){return a=rn.call(r,e),!1}),a!==!1):(Ae(t,function(t,e){a=e}),a===y||rn.call(t,a))}function Ko(t){return zo(t)&&nn.call(t)==J}function Wo(t){return"string"==typeof t||b(t)&&nn.call(t)==tt}function Go(t){return b(t)&&rr(t.length)&&!!Rt[nn.call(t)]}function jo(t){return t===y}function Uo(t,e){return e>t}function qo(t,e){return e>=t}function Zo(t){var e=t?qn(t):0;return rr(e)?e?_.support.unindexedChars&&Wo(t)?t.split(""):oe(t):[]:si(t)}function Yo(t){return Te(t,ai(t))}function Xo(t,e,a){var r=Rn(t);return a&&tr(t,e,a)&&(e=y),e?we(r,e):r}function Jo(t){return ke(t,ai(t))}function Qo(t,e,a){var r=null==t?y:ze(t,fr(e),e+"");return r===y?a:r}function ti(t,e){if(null==t)return!1;var a=rn.call(t,e);if(!a&&!er(e)){if(e=fr(e),t=1==e.length?t:ze(t,Ye(e,0,-1)),null==t)return!1;e=$r(e),a=rn.call(t,e)}return a||rr(t.length)&&Qa(e,t.length)&&(ks(t)||$o(t)||Wo(t))}function ei(t,e,a){a&&tr(t,e,a)&&(e=y);for(var r=-1,o=js(t),i=o.length,n={};++r0,c=a.enumErrorProps&&(t===Qi||t instanceof Wi),h=a.enumPrototypes&&ko(t);++o=Sn(e,a)&&ta?0:+a||0,r),a-=e.length,a>=0&&t.indexOf(e,a)==a}function pi(t){return t=i(t),t&&mt.test(t)?t.replace(_t,u):t}function bi(t){return t=i(t),t&&St.test(t)?t.replace(Ct,d):t||"(?:)"}function _i(t,e,a){t=i(t),e=+e;var r=t.length;if(r>=e||!yn(e))return t;var o=(e-r)/2,n=Tn(o),s=wn(o);return a=Da("",s,a),a.slice(0,n)+t+a}function vi(t,e,a){return(a?tr(t,e,a):null==e)?e=0:e&&(e=+e),t=Ti(t),Pn(t,e||(Ot.test(t)?16:10))}function mi(t,e){var a="";if(t=i(t),e=+e,1>e||!t||!yn(e))return a;do e%2&&(a+=t),e=Tn(e/2),t+=t;while(e);return a}function wi(t,e,a){return t=i(t),a=null==a?0:Sn(0>a?0:+a||0,t.length),t.lastIndexOf(e,a)==a}function gi(t,e,a){var r=_.templateSettings;a&&tr(t,e,a)&&(e=a=y),t=i(t),e=me(we({},a||e),r,ve);var o,n,s=me(we({},e.imports),r.imports,ve),l=js(s),c=aa(s,l),h=0,u=e.interpolate||kt,d="__p += '",p=Zi((e.escape||kt).source+"|"+u.source+"|"+(u===Tt?Ft:kt).source+"|"+(e.evaluate||kt).source+"|$","g"),b="//# sourceURL="+("sourceURL"in e?e.sourceURL:"lodash.templateSources["+ ++Mt+"]")+"\n";t.replace(p,function(e,a,r,i,s,l){return r||(r=i),d+=t.slice(h,l).replace(zt,f),a&&(o=!0,d+="' +\n__e("+a+") +\n'"),s&&(n=!0,d+="';\n"+s+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),h=l+e.length,e}),d+="';\n";var v=e.variable;v||(d="with (obj) {\n"+d+"\n}\n"),d=(n?d.replace(dt,""):d).replace(ft,"$1").replace(pt,"$1;"),d="function("+(v||"obj")+") {\n"+(v?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(n?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var m=rl(function(){return Gi(l,b+"return "+d).apply(y,c)});if(m.source=d,Eo(m))throw m;return m}function Ti(t,e,a){var r=t;return(t=i(t))?(a?tr(r,e,a):null==e)?t.slice(w(t),g(t)+1):(e+="",t.slice(n(t,e),s(t,e)+1)):t}function xi(t,e,a){var r=t;return t=i(t),t?(a?tr(r,e,a):null==e)?t.slice(w(t)):t.slice(n(t,e+"")):t}function yi(t,e,a){var r=t;return t=i(t),t?(a?tr(r,e,a):null==e)?t.slice(0,g(t)+1):t.slice(0,s(t,e+"")+1):t}function Bi(t,e,a){a&&tr(t,e,a)&&(e=y);var r=D,o=k;if(null!=e)if(zo(e)){var n="separator"in e?e.separator:n;r="length"in e?+e.length||0:r,o="omission"in e?i(e.omission):o}else r=+e||0;if(t=i(t),r>=t.length)return t;var s=r-o.length;if(1>s)return o;var l=t.slice(0,s);if(null==n)return l+o;if(Ko(n)){if(t.slice(s).search(n)){var c,h,u=t.slice(0,s);for(n.global||(n=Zi(n.source,(Lt.exec(n)||"")+"g")),n.lastIndex=0;c=n.exec(u);)h=c.index;l=l.slice(0,null==h?s:h)}}else if(t.indexOf(n,s)!=s){var d=l.lastIndexOf(n);d>-1&&(l=l.slice(0,d))}return l+o}function Ci(t){return t=i(t),t&&vt.test(t)?t.replace(bt,T):t}function Si(t,e,a){return a&&tr(t,e,a)&&(e=y),t=i(t),t.match(e||Ht)||[]}function $i(t,e,a){return a&&tr(t,e,a)&&(e=y),b(t)?Li(t):xe(t,e)}function Pi(t){return function(){return t}}function Fi(t){return t}function Li(t){return Re(ye(t,!0))}function Oi(t,e){return Ne(t,ye(e,!0))}function Ai(t,e,a){if(null==a){var r=zo(e),o=r?js(e):y,i=o&&o.length?ke(e,o):y;(i?i.length:r)||(i=!1,a=e,e=t,t=this)}i||(i=ke(e,js(e)));var n=!0,s=-1,l=ko(t),c=i.length;a===!1?n=!1:zo(a)&&"chain"in a&&(n=a.chain);for(;++st||!yn(t))return[];var r=-1,o=Ni(Sn(t,An));for(e=sa(e,a,1);++rr?o[r]=e(r):e(r);return o}function Vi(t){var e=++on;return i(t)+e}function Mi(t,e){return(+t||0)+(+e||0)}function Ri(t,e,a){return a&&tr(t,e,a)&&(e=y),e=Na(e,a,3),1==e.length?be(ks(t)?t:ur(t),e):ta(t,e)}a=a?ae.defaults(te.Object(),a,ae.pick(te,It)):te;var Ni=a.Array,Ki=a.Date,Wi=a.Error,Gi=a.Function,ji=a.Math,Ui=a.Number,qi=a.Object,Zi=a.RegExp,Yi=a.String,Xi=a.TypeError,Ji=Ni.prototype,Qi=Wi.prototype,tn=qi.prototype,en=Yi.prototype,an=Gi.prototype.toString,rn=tn.hasOwnProperty,on=0,nn=tn.toString,sn=te._,ln=Zi("^"+an.call(rn).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),cn=a.ArrayBuffer,hn=a.clearTimeout,un=a.parseFloat,dn=ji.pow,fn=tn.propertyIsEnumerable,pn=ja(a,"Set"),bn=a.setTimeout,_n=Ji.splice,vn=a.Uint8Array,mn=ja(a,"WeakMap"),wn=ji.ceil,gn=ja(qi,"create"),Tn=ji.floor,xn=ja(Ni,"isArray"),yn=a.isFinite,Bn=ja(qi,"keys"),Cn=ji.max,Sn=ji.min,$n=ja(Ki,"now"),Pn=a.parseInt,Fn=ji.random,Ln=Ui.NEGATIVE_INFINITY,On=Ui.POSITIVE_INFINITY,An=4294967295,En=An-1,Dn=An>>>1,kn=9007199254740991,zn=mn&&new mn,Hn={},In={};In[rt]=a.Float32Array,In[ot]=a.Float64Array,In[it]=a.Int8Array,In[nt]=a.Int16Array,In[st]=a.Int32Array,In[lt]=vn,In[ct]=a.Uint8ClampedArray,In[ht]=a.Uint16Array,In[ut]=a.Uint32Array;var Vn={};Vn[W]=Vn[j]=Vn[Y]={constructor:!0,toLocaleString:!0,toString:!0,valueOf:!0},Vn[G]=Vn[tt]={constructor:!0,toString:!0,valueOf:!0},Vn[U]=Vn[q]=Vn[J]={constructor:!0,toString:!0},Vn[X]={constructor:!0},ie(Vt,function(t){for(var e in Vn)if(rn.call(Vn,e)){var a=Vn[e];a[t]=rn.call(a,t)}});var Mn=_.support={};!function(t){var e=function(){this.x=t},a={0:t,length:t},r=[];e.prototype={valueOf:t,y:t};for(var o in new e)r.push(o);Mn.enumErrorProps=fn.call(Qi,"message")||fn.call(Qi,"name"),Mn.enumPrototypes=fn.call(e,"prototype"),Mn.nonEnumShadows=!/valueOf/.test(r),Mn.ownLast="x"!=r[0],Mn.spliceObjects=(_n.call(a,0,1),!a[0]),Mn.unindexedChars="x"[0]+qi("x")[0]!="xx"}(1,0),_.templateSettings={escape:wt,evaluate:gt,interpolate:Tt,variable:"",imports:{_:_}};var Rn=function(){function t(){}return function(e){if(zo(e)){t.prototype=e;var a=new t;t.prototype=y}return a||{}}}(),Nn=fa(Ee),Kn=fa(De,!0),Wn=pa(),Gn=pa(!0),jn=zn?function(t,e){return zn.set(t,e),t}:Fi,Un=zn?function(t){return zn.get(t)}:Di,qn=Ge("length"),Zn=function(){var t=0,e=0;return function(a,r){var o=Ts(),i=H-(o-e);if(e=o,i>0){if(++t>=z)return a}else t=0;return jn(a,r)}}(),Yn=wo(function(t,e){return b(t)&&Ja(t)?Ce(t,Oe(e,!1,!0)):[]}),Xn=ya(),Jn=ya(!0),Qn=wo(function(t){for(var e=t.length,a=e,o=Ni(u),i=Wa(),n=i===r,s=[];a--;){var l=t[a]=Ja(l=t[a])?l:[];o[a]=n&&l.length>=120?_a(a&&l):null}var c=t[0],h=-1,u=c?c.length:0,d=o[0];t:for(;++h2?t[e-2]:y,r=e>1?t[e-1]:y;return e>2&&"function"==typeof a?e-=2:(a=e>1&&"function"==typeof r?(--e,r):y,r=y),t.length=e,Vr(t,a,r)}),ss=wo(function(t){return t=Oe(t),this.thru(function(e){return re(ks(e)?e:[dr(e)],t)})}),ls=wo(function(t,e){return Ja(t)&&(t=ur(t)),ge(t,Oe(e))}),cs=ua(function(t,e,a){rn.call(t,a)?++t[a]:t[a]=1}),hs=xa(Nn),us=xa(Kn,!0),ds=Sa(ie,Nn),fs=Sa(ne,Kn),ps=ua(function(t,e,a){rn.call(t,a)?t[a].push(e):t[a]=[e]}),bs=ua(function(t,e,a){t[a]=e}),_s=wo(function(t,e,a){var r=-1,o="function"==typeof e,i=er(e),n=Ja(t)?Ni(t.length):[];return Nn(t,function(t){var s=o?e:i&&null!=t?t[e]:y;n[++r]=s?s.apply(t,a):Xa(t,e,a)}),n}),vs=ua(function(t,e,a){t[a?0:1].push(e)},function(){return[[],[]]}),ms=Aa(de,Nn),ws=Aa(fe,Kn),gs=wo(function(t,e){if(null==t)return[];var a=e[2];return a&&tr(e[0],e[1],a)&&(e.length=1),Qe(t,Oe(e),[])}),Ts=$n||function(){return(new Ki).getTime()},xs=wo(function(t,e,a){var r=C;if(a.length){var o=v(a,xs.placeholder);r|=L}return Ia(t,r,e,a,o)}),ys=wo(function(t,e){e=e.length?Oe(e):Jo(t);for(var a=-1,r=e.length;++a0||0>e)?new et(a):(0>t?a=a.takeRight(-t):t&&(a=a.drop(t)),e!==y&&(e=+e||0,a=0>e?a.dropRight(-e):a.take(e-t)),a)},et.prototype.takeRightWhile=function(t,e){return this.reverse().takeWhile(t,e).reverse()},et.prototype.toArray=function(){return this.take(On)},Ee(et.prototype,function(t,e){var a=/^(?:filter|map|reject)|While$/.test(e),r=/^(?:first|last)$/.test(e),o=_[r?"take"+("last"==e?"Right":""):e];o&&(_.prototype[e]=function(){var e=r?[1]:arguments,i=this.__chain__,n=this.__wrapped__,s=!!this.__actions__.length,l=n instanceof et,c=e[0],h=l||ks(n);h&&a&&"function"==typeof c&&1!=c.length&&(l=h=!1);var u=function(t){return r&&i?o(t,1)[0]:o.apply(y,ue([t],e))},d={func:Wr,args:[u],thisArg:y},f=l&&!s;if(r&&!i)return f?(n=n.clone(),n.__actions__.push(d),t.call(n)):o.call(y,this.value())[0];if(!r&&h){n=f?n:new et(this);var p=t.apply(n,e);return p.__actions__.push(d),new Q(p,i)}return this.thru(u)})}),ie(["join","pop","push","replace","shift","sort","splice","split","unshift"],function(t){var e=(/^(?:replace|split)$/.test(t)?en:Ji)[t],a=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=!Mn.spliceObjects&&/^(?:pop|shift|splice)$/.test(t),o=/^(?:join|pop|replace|shift)$/.test(t),i=r?function(){var t=e.apply(this,arguments);return 0===this.length&&delete this[0],t}:e;_.prototype[t]=function(){var t=arguments;return o&&!this.__chain__?i.apply(this.value(),t):this[a](function(e){return i.apply(e,t)})}}),Ee(et.prototype,function(t,e){var a=_[e];if(a){var r=a.name+"",o=Hn[r]||(Hn[r]=[]);o.push({name:e,func:a})}}),Hn[Ea(y,S).name]=[{name:"wrapper",func:y}],et.prototype.clone=Kt,et.prototype.reverse=Wt,et.prototype.value=Gt,_.prototype.chain=Gr,_.prototype.commit=jr,_.prototype.concat=ss,_.prototype.plant=Ur,_.prototype.reverse=qr,_.prototype.toString=Zr,_.prototype.run=_.prototype.toJSON=_.prototype.valueOf=_.prototype.value=Yr,_.prototype.collect=_.prototype.map,_.prototype.head=_.prototype.first,_.prototype.select=_.prototype.filter,_.prototype.tail=_.prototype.rest,_}var y,B="3.10.1",C=1,S=2,$=4,P=8,F=16,L=32,O=64,A=128,E=256,D=30,k="...",z=150,H=16,I=200,V=1,M=2,R="Expected a function",N="__lodash_placeholder__",K="[object Arguments]",W="[object Array]",G="[object Boolean]",j="[object Date]",U="[object Error]",q="[object Function]",Z="[object Map]",Y="[object Number]",X="[object Object]",J="[object RegExp]",Q="[object Set]",tt="[object String]",et="[object WeakMap]",at="[object ArrayBuffer]",rt="[object Float32Array]",ot="[object Float64Array]",it="[object Int8Array]",nt="[object Int16Array]",st="[object Int32Array]",lt="[object Uint8Array]",ct="[object Uint8ClampedArray]",ht="[object Uint16Array]",ut="[object Uint32Array]",dt=/\b__p \+= '';/g,ft=/\b(__p \+=) '' \+/g,pt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,bt=/&(?:amp|lt|gt|quot|#39|#96);/g,_t=/[&<>"'`]/g,vt=RegExp(bt.source),mt=RegExp(_t.source),wt=/<%-([\s\S]+?)%>/g,gt=/<%([\s\S]+?)%>/g,Tt=/<%=([\s\S]+?)%>/g,xt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\n\\]|\\.)*?\1)\]/,yt=/^\w*$/,Bt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\n\\]|\\.)*?)\2)\]/g,Ct=/^[:!,]|[\\^$.*+?()[\]{}|\/]|(^[0-9a-fA-Fnrtuvx])|([\n\r\u2028\u2029])/g,St=RegExp(Ct.source),$t=/[\u0300-\u036f\ufe20-\ufe23]/g,Pt=/\\(\\)?/g,Ft=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Lt=/\w*$/,Ot=/^0[xX]/,At=/^\[object .+?Constructor\]$/,Et=/^\d+$/,Dt=/[\xc0-\xd6\xd8-\xde\xdf-\xf6\xf8-\xff]/g,kt=/($^)/,zt=/['\n\r\u2028\u2029\\]/g,Ht=function(){var t="[A-Z\\xc0-\\xd6\\xd8-\\xde]",e="[a-z\\xdf-\\xf6\\xf8-\\xff]+";return RegExp(t+"+(?="+t+e+")|"+t+"?"+e+"|"+t+"+|[0-9]+","g")}(),It=["Array","ArrayBuffer","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Math","Number","Object","RegExp","Set","String","_","clearTimeout","isFinite","parseFloat","parseInt","setTimeout","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap"],Vt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Mt=-1,Rt={};Rt[rt]=Rt[ot]=Rt[it]=Rt[nt]=Rt[st]=Rt[lt]=Rt[ct]=Rt[ht]=Rt[ut]=!0,Rt[K]=Rt[W]=Rt[at]=Rt[G]=Rt[j]=Rt[U]=Rt[q]=Rt[Z]=Rt[Y]=Rt[X]=Rt[J]=Rt[Q]=Rt[tt]=Rt[et]=!1;var Nt={};Nt[K]=Nt[W]=Nt[at]=Nt[G]=Nt[j]=Nt[rt]=Nt[ot]=Nt[it]=Nt[nt]=Nt[st]=Nt[Y]=Nt[X]=Nt[J]=Nt[tt]=Nt[lt]=Nt[ct]=Nt[ht]=Nt[ut]=!0,Nt[U]=Nt[q]=Nt[Z]=Nt[Q]=Nt[et]=!1;var Kt={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss"},Wt={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},Gt={"&":"&","<":"<",">":">",""":'"',"'":"'","`":"`"},jt={"function":!0,object:!0},Ut={0:"x30",1:"x31",2:"x32",3:"x33",4:"x34",5:"x35",6:"x36",7:"x37",8:"x38",9:"x39",A:"x41",B:"x42",C:"x43",D:"x44",E:"x45",F:"x46",a:"x61",b:"x62",c:"x63",d:"x64",e:"x65",f:"x66",n:"x6e",r:"x72",t:"x74",u:"x75",v:"x76",x:"x78"},qt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Zt=jt[typeof exports]&&exports&&!exports.nodeType&&exports,Yt=jt[typeof module]&&module&&!module.nodeType&&module,Xt=Zt&&Yt&&"object"==typeof global&&global&&global.Object&&global,Jt=jt[typeof self]&&self&&self.Object&&self,Qt=jt[typeof window]&&window&&window.Object&&window,te=Xt||Qt!==(this&&this.window)&&Qt||Jt||this,ee=function(){try{Object({toString:0}+"")}catch(t){return function(){return!1}}return function(t){return"function"!=typeof t.toString&&"string"==typeof(t+"")}}(),ae=x();"function"==typeof a&&"object"==typeof a.amd&&a.amd&&a("lodash/main",[],function(){return ae})}.call(this),a("lodash",["lodash/main"],function(t){return t}),a("wcDocker/docker",["dcl/dcl","./types","./panel","./ghost","./splitter","./frame","./collapser","./layoutsimple","./layouttable","./tabframe","./drawer","./base","lodash"],function(t,e,a,r,o,i,n,s,l,c,h,u,d){var f={wcPanel:a,wcGhost:r,wcSplitter:o,wcFrame:i,wcCollapser:n,wcLayoutSimple:s,wcLayoutTable:l,wcDrawer:h,wcTabFrame:c},p=t(u,{declaredClass:"wcDocker",constructor:function(t,e){this.$outer=$(t),this.$container=$('
        '), +this.$transition=$('
        '),this.$loading=null,this.$outer.append(this.$container),this.$container.append(this.$transition),this._canOrientTabs=!0,this._events={},this._root=null,this._frameList=[],this._floatingList=[],this._modalList=[],this._persistentList=[],this._focusFrame=null,this._placeholderPanel=null,this._contextTimer=0,this._dirty=!1,this._dirtyDontMove=!1,this._splitterList=[],this._tabList=[],this._collapser={},this._dockPanelTypeList=[],this._creatingPanel=!1,this._draggingSplitter=null,this._draggingFrame=null,this._draggingFrameSizer=null,this._draggingFrameTab=null,this._draggingFrameTopper=!1,this._draggingCustomTabFrame=null,this._ghost=null,this._menuTimer=0,this._mouseOrigin={x:0,y:0},this._resizeData={time:-1,timeout:!1,delta:150};var a={themePath:"Themes",theme:"default",loadingClass:"fa fa-spinner fa-pulse",allowContextMenu:!0,hideOnResize:!1,allowCollapse:!0,responseRate:10,moveStartDelay:300,edgeAnchorSize:50,panelAnchorSize:"15%",detachToWidth:"50%",detachToHeight:"50%"};this._options={};for(var r in f)a[r+"Class"]=f[r];for(var r in a)this._options[r]=a[r];for(var r in e)this._options[r]=e[r];this.__init()},themePath:function(t){return void 0!==t&&(this._options.themePath=t),this._options.themePath},theme:function(t){if(void 0!==t){var e=$("#wcTheme"),a=(new Date).getTime(),r=t.indexOf(".css");r>-1&&(t=t.substring(0,r));var o=$('');this._options.theme=t;var i=this;o[0].onload=function(){e.remove(),i.__update()},$("head").append(o)}return this._options.theme},isCollapseEnabled:function(){return this._canOrientTabs&&this._options.allowCollapse},registerPanelType:function(t,e,a){var r=e;"function"==typeof r&&(r={onCreate:e},console.log("WARNING: Passing in the creation function directly to wcDocker.registerPanelType parameter 2 is now deprecated and will be removed in the next version! Please use the preferred options object instead.")),"undefined"!=typeof a&&(r.isPrivate=a,console.log("WARNING: Passing in the isPrivate flag to wcDocker.registerPanelType parameter 3 is now deprecated and will be removed in the next version! Please use the preferred options object instead.")),$.isEmptyObject(r)&&(r=null);for(var o=0;o')),!0},panelTypes:function(t){for(var e=[],a=0;a=d&&h._curTab--,t.__container(this.$transition),t._parent=null,h._panelList.splice(d,1);break}if(!h.isCollapser()&&-1===h._curTab&&h._panelList.length&&(h._curTab=0),h.__updateTabs(),h.collapse(),!h.isCollapser()&&0===h._panelList.length)if(i)this.__addPlaceholder(h);else{var f=this._floatingList.indexOf(h);-1!==f&&this._floatingList.splice(f,1),f=this._frameList.indexOf(h),-1!==f&&this._frameList.splice(f,1);var p=h._parent;if(p&&p.instanceOf("wcSplitter")){p.__removeChild(h);var b;p.pane(0)?(b=p.pane(0),p._pane[0]=null):(b=p.pane(1),p._pane[1]=null),r===p&&(r._shift=b),b.__container(this.$transition),b._parent=null,f=this._splitterList.indexOf(p),-1!==f&&this._splitterList.splice(f,1);var _=p._parent;parentContainer=p.__container(),p.__destroy(),_&&_.instanceOf("wcSplitter")?(_.__removeChild(p),_.pane(0)?_.pane(1,b):_.pane(0,b)):_===this&&(this._root=b,b._parent=this,b.__container(parentContainer)),this.__update()}this._focusFrame===h&&(this._focusFrame=null),h.__destroy()}}t.initSize(l,c),a===e.DOCK.STACKED?this.__addPanelGrouped(t,r,o):this.__addPanelAlone(t,a,r,o),r==this._placeholderPanel&&(this.removePanel(this._placeholderPanel),this._placeholderPanel=null);var v=t._parent;return v&&v.instanceOf("wcFrame")&&1===v._panelList.length&&v.pos(s.left+l/2+20,s.top+c/2+20,!0),this.__update(!0),v&&v.instanceOf("wcFrame")&&u!==v._isFloating&&(v._isFloating?t.__trigger(e.EVENT.DETACHED):t.__trigger(e.EVENT.ATTACHED)),t.__trigger(e.EVENT.MOVED),t},findPanels:function(t){for(var e=[],a=0;a
        '),this.$outer.append(this.$loading);var r=$('
        ');"number"!=typeof e&&(e=.4),r.css("opacity",e),this.$loading.append(r);var o=$('
        ');if(this.$loading.append(o),t){var i=$(''+t+"");this.$loading.append(i)}"number"!=typeof a&&(a=1),o.css("opacity",a),i&&i.css("opacity",a)}},finishLoading:function(t){if(this.$loading)if(t>0){var e=this;this.$loading.fadeOut(t,function(){e.$loading.remove(),e.$loading=null})}else this.$loading.remove(),this.$loading=null},on:function(t,e){return t?(this._events[t]||(this._events[t]=[]),-1!==this._events[t].indexOf(e)?!1:(this._events[t].push(e),!0)):!1},off:function(t,e){if("undefined"==typeof t)this._events={};else if(this._events[t])if("undefined"==typeof e)this._events[t]=[];else for(var a=0;a0&&o.findPanels(d.name).length>=d.options.limit)continue;var f=null,p=null,b=d.name;d.options&&(d.options.faicon&&(p=d.options.faicon),d.options.icon&&(f=d.options.icon),d.options.title&&(b=d.options.title)),u[d.name]={name:b,icon:f,faicon:p,className:"wcMenuCreatePanel"}}}var _=0,v={},m=a;"function"==typeof a&&(m=a(t,i));for(var l=0;l');if(o.prepend(i),r.icon&&i.addClass(r.icon),r.faicon&&i.addClass("fa fa-menu fa-"+r.faicon+" fa-lg fa-fw"),o.hasClass("context-menu-submenu")){var n=$('
        ');o.append(n)}}r.items&&s(r.items)}}(e)}(y)},hide:function(t){o._ghost&&(o._ghost.destroy(),o._ghost=!1)}},animation:{duration:250,show:"fadeIn",hide:"fadeOut"},reposition:!1,autoHide:!0,zIndex:200,items:y}}})},bypassMenu:function(){this._menuTimer&&clearTimeout(this._menuTimer);for(var t in $.contextMenu.menus){var e=$.contextMenu.menus[t].selector;$(e).contextMenu(!1)}var a=this;this._menuTimer=setTimeout(function(){for(var t in $.contextMenu.menus){var e=$.contextMenu.menus[t].selector;$(e).contextMenu(!0)}a._menuTimer=null},0)},save:function(){var t={};t.floating=[];for(var a=0;a-1){if(1===g._draggingFrame._panelList.length)return;for(var r=0;r1||g._draggingFrame.panel()!==g._placeholderPanel)for(var r=0;h>r;++r)g.movePanel(g._draggingFrame.panel(),e.DOCK.STACKED,n,c)}var l=n._parent;l&&l.instanceOf("wcFrame")&&l.panel(i),g.__focus(l)}}else{g._draggingFrameTab||g._draggingFrame.panel(0);var n=g._draggingFrame.panel(parseInt($(g._draggingFrameTab).attr("id")));if(g.movePanel(n,e.DOCK.FLOAT,null,g._ghost.__rect()),!g._draggingFrameTab){var h=g._draggingFrame._panelList.length;if(h>1||g._draggingFrame.panel()!==g._placeholderPanel)for(var r=0;h>r;++r)g.movePanel(g._draggingFrame.panel(),e.DOCK.STACKED,n,{tabOrientation:g._draggingFrame._tabOrientation})}var l=n._parent;l&&l.instanceOf("wcFrame")&&(l.pos(a.x,a.y+g._ghost.__rect().h/2-10,!0),l._size.x=g._ghost.__rect().w,l._size.y=g._ghost.__rect().h),l.__update(),g.__focus(l)}else if(g._creatingPanel){var u=e.DOCK.FLOAT,d=null;o&&(u=o.loc,d=o.item?o.item._parent:o.panel),g.addPanel(g._creatingPanel,u,d,g._ghost.rect())}g._ghost.destroy(),g._ghost=null,g.trigger(e.EVENT.END_DOCK),g.__update()}return g._draggingSplitter&&(g._draggingSplitter.$pane[0].removeClass("wcResizing"),g._draggingSplitter.$pane[1].removeClass("wcResizing")),g._creatingPanel=!1,g._draggingSplitter=null,g._draggingFrame=null,g._draggingFrameSizer=null,g._draggingFrameTab=null,g._draggingFrameTopper=!1,g._draggingCustomTabFrame=null,g._removingPanel=null,!0}function r(t){x=t;var e=g.__mouse(t);if(!(3!==e.which&&(g._draggingSplitter||g._draggingFrameSizer||g._draggingCustomTabFrame||g._ghost||g._draggingFrame||g._draggingFrameTab)))return!0;var a=(new Date).getTime();if(a-T1&&g._draggingFrameTab,g._draggingFrameTopper,!g.__isLastFrame(g._draggingFrame))){g._draggingFrame.__shadow(!1);var s=$(document.elementFromPoint(e.x,e.y)),i=s.hasClass("wcPanelTab")?s:s.parents(".wcPanelTab");g._draggingFrameTab&&i.length&&g._draggingFrameTab!==i[0]&&(g._draggingFrameTab=g._draggingFrame.__tabMove(parseInt($(g._draggingFrameTab).attr("id")),parseInt(i.attr("id"))))}else{if((new Date).getTime()-B0;var s=g._draggingFrame.__rect();g._ghost=new(g.__getClass("wcGhost"))(s,a,g),g._draggingFrame.__checkAnchorDrop(a,!0,g._ghost,!0,g._draggingFrameTopper,!g.__isLastFrame(g._draggingFrame)),g.trigger(e.EVENT.BEGIN_DOCK)}break}for(var r=0;r .wcFrameButton",c),$("body").on("touchstart",".wcFrameButtonBar > .wcFrameButton",c),$("body").on("mousedown",".wcFrameTitleBar",p),$("body").on("touchstart",".wcFrameTitleBar",p),$("body").on("mousedown",".wcSplitterBar",f),$("body").on("touchstart",".wcSplitterBar",f),$("body").on("mousedown",".wcPanelTab",m),$("body").on("touchstart",".wcPanelTab",m),$("body").on("mouseup",".wcPanelTab",d),$("body").on("touchend",".wcPanelTab",d),$("body").on("mousedown",".wcLayout",b),$("body").on("touchstart",".wcLayout",b),$("body").on("mousedown",".wcFrameEdge",_),$("body").on("touchstart",".wcFrameEdge",_),$("body").on("mousedown",".wcCreatePanel",v),$("body").on("touchstart",".wcCreatePanel",v),$("body").on("mouseup",a),$("body").on("touchend",a),$("body").on("click",".wcCustomTab .wcFrameButton",h),$("body").on("click",".wcFrameButtonBar > .wcFrameButton",u),$("body").on("keyup",w);var T=(new Date).getTime(),x=null,y=0,B=0},__testLoadFinished:function(){for(var t=0;t>>0,a=Number(arguments[1])||0;for(a=0>a?Math.ceil(a):Math.floor(a),0>a&&(a+=e);e>a;a++)if(a in this&&this[a]===t)return a;return-1});var e=function(){for(var t=3,e=document.createElement("div"),a=e.getElementsByTagName("i");e.innerHTML="",a[0];);return t>4?t:void 0}();9>e?this._canOrientTabs=!1:this._canOrientTabs=t();var a=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);$("body").addClass(a?"wcMobile":"wcDesktop")},__findInner:function(){function t(t){return!!(t&&t.instanceOf("wcFrame")&&t.panel()&&!t.panel().moveable()||t.instanceOf("wcCollapser"))}for(var e=this._root;e&&e.instanceOf("wcSplitter");){var a=t(e._pane[0]),r=t(e._pane[1]);if(a&&!r)e=e._pane[1];else if(r&&!a)e=e._pane[0];else if(!a&&!r)break}return e},__initCollapsers:function(){function t(t){this._collapser[t]=this.__addCollapser(t,a),a=this._collapser[t]._parent,this._frameList.push(this._collapser[t]._drawer._frame)}if(this.isCollapseEnabled()&&$.isEmptyObject(this._collapser)){var a=this.__findInner();t.call(this,e.DOCK.LEFT),t.call(this,e.DOCK.RIGHT),t.call(this,e.DOCK.BOTTOM);var r=this;setTimeout(function(){r.__update()})}},__update:function(t){this._dirty=!0,this._dirtyDontMove=t},__forceUpdate:function(t){this._dirty=!1,this._root&&this._root.__update(t);for(var e=0;e
        '),c.$frame.prepend(c.$modalBlocker),t.moveable(!1),c.$frame.addClass("wcModal"),this._modalList.push(c)),o){var h=c.pos(void 0,void 0,!0);o.hasOwnProperty("x")&&(h.x=o.x+o.w/2),o.hasOwnProperty("y")&&(h.y=o.y+o.h/2),c.pos(h.x,h.y,!0),c._size={x:o.w,y:o.h}}return void this.__orderPanels()}if(r){for(var u=r._parent,d=r;u&&!u.instanceOf("wcSplitter")&&!u.instanceOf("wcDocker");)d=u,u=u._parent;if(u&&u.instanceOf("wcSplitter")){var f,p=u.pane(0),b=(u.pane(1),{x:-1,y:-1});if(p===d?(f=new(this.__getClass("wcSplitter"))(this.$transition,u,a!==e.DOCK.BOTTOM&&a!==e.DOCK.TOP),b.x=u.$pane[0].width(),b.y=u.$pane[0].height(),u.pane(0,f)):(f=new(this.__getClass("wcSplitter"))(this.$transition,u,a!==e.DOCK.BOTTOM&&a!==e.DOCK.TOP),b.x=u.$pane[1].width(),b.y=u.$pane[1].height(),u.pane(1,f)),f){if(f.scrollable(0,!1,!1),f.scrollable(1,!1,!1),o||(o={w:t._size.x,h:t._size.y}),o)switch(o.w<0&&(o.w=b.x/2),o.h<0&&(o.h=b.y/2),a){case e.DOCK.LEFT:f.pos(o.w/b.x);break;case e.DOCK.RIGHT:f.pos(1-o.w/b.x);break;case e.DOCK.TOP:f.pos(o.h/b.y);break;case e.DOCK.BOTTOM:f.pos(1-o.h/b.y)}else f.pos(.5);c=new(this.__getClass("wcFrame"))(this.$transition,f,!1),this._frameList.push(c),a===e.DOCK.LEFT||a===e.DOCK.TOP?(f.pane(0,c),f.pane(1,d)):(f.pane(0,d),f.pane(1,c)),c.addPanel(t)}return}}var _=this,v=this.$container,c=new(this.__getClass("wcFrame"))(this.$transition,_,!1);if(this._frameList.push(c),_._root){var f=new(this.__getClass("wcSplitter"))(v,_,a!==e.DOCK.BOTTOM&&a!==e.DOCK.TOP);if(f){c._parent=f,f.scrollable(0,!1,!1),f.scrollable(1,!1,!1);var b={x:v.width(),y:v.height()};if(o)switch(o.w<0&&(o.w=b.x/2),o.h<0&&(o.h=b.y/2),a){case e.DOCK.LEFT:f.pos(o.w/b.x);break;case e.DOCK.RIGHT:f.pos(1-o.w/b.x);break;case e.DOCK.TOP:f.pos(o.h/b.y);break;case e.DOCK.BOTTOM:f.pos(1-o.h/b.y)}else f.__findBestPos();a===e.DOCK.LEFT||a===e.DOCK.TOP?(f.pane(0,c),f.pane(1,_._root)):(f.pane(0,_._root),f.pane(1,c)),_._root=f}}else _._root=c,c.__container(v);c.addPanel(t)},__addCollapser:function(t,a){var r=null;if(a){for(var o=a._parent,i=a;o&&!o.instanceOf("wcSplitter")&&!o.instanceOf("wcDocker");)i=o,o=o._parent;var n=new(this.__getClass("wcSplitter"))(this.$transition,o,t!==e.DOCK.BOTTOM&&t!==e.DOCK.TOP);if(o&&o.instanceOf("wcDocker")&&(this._root=n,n.__container(this.$container)),o&&o.instanceOf("wcSplitter")){var s=o.left(),l=(o.right(),{x:-1,y:-1});s===i?(l.x=o.$pane[0].width(),l.y=o.$pane[0].height(),o.pane(0,n)):(n=new(this.__getClass("wcSplitter"))(this.$transition,o,t!==e.DOCK.BOTTOM&&t!==e.DOCK.TOP),l.x=o.$pane[1].width(),l.y=o.$pane[1].height(),o.pane(1,n))}if(n){switch(n.scrollable(0,!1,!1),n.scrollable(1,!1,!1),r=new(this.__getClass("wcCollapser"))(this.$transition,n,t),t){case e.DOCK.TOP:case e.DOCK.LEFT:n.pos(0);break;case e.DOCK.BOTTOM:case e.DOCK.RIGHT:n.pos(1)}t===e.DOCK.LEFT||t===e.DOCK.TOP?(n.pane(0,r),n.pane(1,i)):(n.pane(0,i),n.pane(1,r))}}return r},__addPlaceholder:function(t){this._placeholderPanel&&console.log("WARNING: wcDocker creating placeholder panel when one already exists"),this._placeholderPanel=new(this.__getClass("wcPanel"))(this,e.PANEL_PLACEHOLDER,{}),this._placeholderPanel._isPlaceholder=!0,this._placeholderPanel.__container(this.$transition),this._placeholderPanel._panelObject=new function(t){t.title(!1),t.closeable(!1)}(this._placeholderPanel),t?this.__addPanelGrouped(this._placeholderPanel,t):this.__addPanelAlone(this._placeholderPanel,e.DOCK.TOP),this.__update()},__closePanel:function(t){var e=!1,a=this.panelTypeInfo(t._type);a&&a.isPersistent&&(e=!0,this._persistentList.push(t)),this.removePanel(t,e),this.__update()},__stringToPercent:function(t,e){if("string"==typeof t){if(-1!==t.indexOf("%",t.length-1))return parseFloat(t)/100;if(-1!==t.indexOf("px",t.length-2))return parseFloat(t)/e}return parseFloat(t)},__stringToPixel:function(t,e){if("string"==typeof t){if(-1!==t.indexOf("%",t.length-1))return parseFloat(t)/100*e;if(-1!==t.indexOf("px",t.length-2))return parseFloat(t)}return parseFloat(t)}});for(var b in e)p[b]=e[b];return p.defaultClasses=f,p}),a("wcDocker/iframe",["dcl/dcl","./types","./base"],function(t,e,a){var r=t(a,{declaredClass:"wcIFrame",constructor:function(t,e){this._panel=e,this._layout=e.layout(),this.$container=$(t),this.$frame=null,this.$focus=null,this.$iFrame=null,this._window=null,this._isDocking=!1,this._isHovering=!1,this._boundEvents=[],this._onLoadFuncs=[],this._onClosedFuncs=[],this.__init()},openURL:function(t){this.__clearFrame(),this.$iFrame=$(""),this.$frame.prepend(this.$iFrame),this.__onMoved(),this._window=this.$iFrame[0].contentWindow||this.$iFrame[0],this.__updateFrame(),this._window.location.replace(t),this.$iFrame[0].focus(),this.$iFrame.hover(this.__onHoverEnter.bind(this),this.__onHoverExit.bind(this));var e=this;this.$iFrame.load(function(){for(var t=0;tiFrames not supported on your device!"),this.$frame.prepend(this.$iFrame),this.__onMoved(),this._window=this.$iFrame[0].contentWindow||this.$iFrame[0],this.__updateFrame(),this._window.document.open(),this._window.document.write(t),this._window.document.close(),this.$iFrame[0].focus(),this.$iFrame.hover(this.__onHoverEnter.bind(this),this.__onHoverExit.bind(this));var e=this;this.$iFrame.load(function(){for(var t=0;tiFrames not supported on your device!"),this.$frame.prepend(this.$iFrame),this.__onMoved(),this._window=this.$iFrame[0].contentWindow||this.$iFrame[0],this.__updateFrame(),this.$iFrame[0].srcdoc=t,this.$iFrame[0].focus(),this.$iFrame.hover(this.__onHoverEnter.bind(this),this.__onHoverExit.bind(this));var e=this;this.$iFrame.load(function(){for(var t=0;t'),this.$focus=$('
        '),this._panel.docker().$container.append(this.$frame),this.$frame.append(this.$focus),this._boundEvents.push({event:e.EVENT.VISIBILITY_CHANGED,handler:this.__onVisibilityChanged.bind(this)}),this._boundEvents.push({event:e.EVENT.BEGIN_DOCK,handler:this.__onBeginDock.bind(this)}),this._boundEvents.push({event:e.EVENT.END_DOCK,handler:this.__onEndDock.bind(this)}),this._boundEvents.push({event:e.EVENT.MOVE_STARTED,handler:this.__onMoveStarted.bind(this)}),this._boundEvents.push({event:e.EVENT.RESIZE_STARTED,handler:this.__onMoveStarted.bind(this)}),this._boundEvents.push({event:e.EVENT.MOVE_ENDED,handler:this.__onMoveFinished.bind(this)}),this._boundEvents.push({event:e.EVENT.RESIZE_ENDED,handler:this.__onMoveFinished.bind(this)}),this._boundEvents.push({event:e.EVENT.MOVED,handler:this.__onMoved.bind(this)}),this._boundEvents.push({event:e.EVENT.RESIZED,handler:this.__onMoved.bind(this)}),this._boundEvents.push({event:e.EVENT.ATTACHED,handler:this.__onAttached.bind(this)}),this._boundEvents.push({event:e.EVENT.DETACHED,handler:this.__updateFrame.bind(this)}),this._boundEvents.push({event:e.EVENT.GAIN_FOCUS,handler:this.__updateFrame.bind(this)}),this._boundEvents.push({event:e.EVENT.LOST_FOCUS,handler:this.__updateFrame.bind(this)}),this._boundEvents.push({event:e.EVENT.PERSISTENT_OPENED,handler:this.__updateFrame.bind(this)}),this._boundEvents.push({event:e.EVENT.PERSISTENT_CLOSED,handler:this.__updateFrame.bind(this)}),this._boundEvents.push({event:e.EVENT.CLOSED,handler:this.__onClosed.bind(this)}),this._boundEvents.push({event:e.EVENT.ORDER_CHANGED,handler:this.__onOrderChanged.bind(this)});for(var t=0;t'),this._fontWeights=["normal","bold","bolder","lighter","100","200","300","400","500","600","700","800","900","initial","inherit"],this._borderStyles=[{display:"none",value:""},"dotted","dashed","solid","double","groove","ridge","inset","outset","initial","inherit"],this._shadowStyle=[{display:"normal",value:""},"inset","initial","inherit"],this._parseBoxShadowStyle=function(t){return t=t.toLowerCase(),t.indexOf("inset")>-1?"inset":t.indexOf("initial")>-1?"initial":t.indexOf("inherit")>-1?"inherit":""},this._parseBoxShadowColor=function(t){t=t.toLowerCase();var e=t.indexOf("rgb");if(e>-1){var a=t.indexOf(")");return t.substring(e,a+1)}if(e=t.indexOf("#"),e>-1){var a=t.indexOf(" ");return-1===a&&(a=t.length),t.substring(e,a+1).replace(";","")}},this._parseBoxShadowAttribute=function(t){return function(e){var a=0;e=e.replace(/\s(?![^)]*(\(|$))/g,"");for(var r=e.split(" "),o=0;o=0;--t)this._frameIndex.unshift(this._frames[t].tab()),this._frames[t].destroy();this._frames=[]},buildControls:function(t){var e=this;this._panel.startLoading(),setTimeout(function(){e.clearControls(),$("body").toggleClass("wcMobile",t?!0:!1).toggleClass("wcDesktop",t?!1:!0),e._panel.layout().clear(),e._panel.layout().startBatch(),e._panel.layout().scene().css("padding","10px"),e._panel.layout()._childFrames=[];for(var a=0,r=0;r');e._panel.layout().addItem($(""),0,a,2),e._panel.layout().addItem(i,2,a,2).stretch("20%",""),i.on("change",function(t){if(this.files.length){var a=this.files[0];if("text/css"!==a.type)return void alert("Failed to upload file, must be a stylesheet!");var r=new FileReader;e._panel.startLoading(),setTimeout(function(){r.readAsText(a,"UTF-8"),r.onload=function(t){e.apply(t.target.result);var a=$("body").hasClass("wcMobile");e.pull(e._controls),e.buildControls(a),e._panel.finishLoading(400)},r.onerror=function(t){console.log("Error reading theme file."),e._panel.finishLoading(400)}},100)}}),a+=1;var n=$('');e._panel.layout().addItem(n,0,a).stretch("25%",""),n.click(function(){e._panel.startLoading(),setTimeout(function(){var t=$("body").hasClass("wcMobile");e.pull(e._controls),e.buildControls(t),e._panel.finishLoading(400)},100)});var s=$('');e._panel.layout().addItem(s,1,a).stretch("25%",""),s.click(function(){var t=e.build();e.apply(t),s.addClass("wcButtonActive")}),e.$activeTheme&&e.$activeTheme.parent().length&&s.addClass("wcButtonActive");var l=$('');e._panel.layout().addItem(l,2,a).stretch("25%",""),l.click(function(){e._panel.startLoading(),setTimeout(function(){e.buildControls(!t),e._panel.docker().__update(),e._panel.finishLoading(400)},100)}),t&&l.addClass("wcButtonActive");var c=$('');e._panel.layout().addItem(c,3,a).stretch("25%",""),c.click(function(){var t=e.build(),a=new Blob([t],{type:"text/plain;charset=utf-8"});saveAs(a,"myTheme.css")}),e._panel.layout().finishBatch();for(var r=0;r
        '),t.addItem(i,0,r,5).stretch("","100%").css("position","relative")):(i=$("
        "),t.addItem(i,0,r,5).css("height","auto"));var n=new a(i,this._panel);t._childFrames.push(n),n.moveable(!1),e.orientation&&n.tabOrientation(e.orientation);for(var s=0;s",0,a,5).stretch("","100%"),o.finishBatch()},addSpacer:function(t,e,a,r){e.name?t.addItem('
        '+e.name+"
        ",0,a,4).stretch("100%",""):t.addItem('
        ',0,a,4).stretch("100%","")},addColorControl:function(t,e,a,r){function o(t){t?e[c]=t.toRgbString():e[c]=null,!r&&e.isMobileDisabled&&(e.mobileValue=e.value),l.onChanged()}var i=null,n=null,s=null,l=this,c="value",h="isDisabled";r&&(c="mobileValue",h="isMobileDisabled"),n=$('"),t.addItem(n,1,a).stretch("1%","").css("text-align","right"),s=$(''),t.addItem(s,2,a,2).stretch("100%",""),s.spectrum({color:e[c],showAlpha:!0,showPalette:!0,showInput:!0,showInitial:!0,allowEmpty:!0,clickoutFiresChange:!0,palette:[["#000","#444","#666","#999","#ccc","#eee","#f3f3f3","#fff"],["#f00","#f90","#ff0","#0f0","#0ff","#00f","#90f","#f0f"],["#f4cccc","#fce5cd","#fff2cc","#d9ead3","#d0e0e3","#cfe2f3","#d9d2e9","#ead1dc"],["#ea9999","#f9cb9c","#ffe599","#b6d7a8","#a2c4c9","#9fc5e8","#b4a7d6","#d5a6bd"],["#e06666","#f6b26b","#ffd966","#93c47d","#76a5af","#6fa8dc","#8e7cc3","#c27ba0"],["#c00","#e69138","#f1c232","#6aa84f","#45818e","#3d85c6","#674ea7","#a64d79"],["#900","#b45f06","#bf9000","#38761d","#134f5c","#0b5394","#351c75","#741b47"],["#600","#783f04","#7f6000","#274e13","#0c343d","#073763","#20124d","#4c1130"]],selectionPalette:[],maxSelectionSize:8,localStorageKey:"theme.colors",preferredFormat:"hex3",change:o,move:o,hide:o}),e.grouped?i=this._lastCheckbox:(i=$(''),t.addItem(i,0,a).stretch("1%",""),i.attr("checked",!e[h]),this._lastCheckbox=i),i.change(function(){e[h]=!this.checked,s.spectrum(this.checked?"enable":"disable"),l.onChanged()}),e[h]&&s.spectrum("disable")},addTextControl:function(t,e,a,r){var o=null,i=null,n=null,s=this,l="value",c="isDisabled";r&&(l="mobileValue",c="isMobileDisabled"),i=$('"),t.addItem(i,1,a).stretch("1%","").css("text-align","right"),n=$(''),t.addItem(n,2,a,2).stretch("100%",""),n.val(e[l]),n.change(function(){e[l]=$(this).val(),!r&&e.isMobileDisabled&&(e.mobileValue=e.value),s.onChanged()}),e.grouped?o=this._lastCheckbox:(o=$(''),t.addItem(o,0,a).stretch("1%",""),o.attr("checked",!e[c]),this._lastCheckbox=o),o.change(function(){e[c]=!this.checked,n.attr("disabled",!this.checked),s.onChanged()}),e[c]&&n.attr("disabled",!0)},addPixelControl:function(t,e,a,r){var o=null,i=null,n=null,s=this,l="value",c="isDisabled";r&&(l="mobileValue",c="isMobileDisabled"),i=$('"),t.addItem(i,1,a).stretch("1%","").css("text-align","right"),n=$(''),t.addItem(n,2,a,2).stretch("100%",""),n.val(parseInt(e[l])),n.change(function(){e[l]=$(this).val()+"px",!r&&e.isMobileDisabled&&(e.mobileValue=e.value),s.onChanged()}),e.grouped?o=this._lastCheckbox:(o=$(''),t.addItem(o,0,a).stretch("1%",""),o.attr("checked",!e[c]),this._lastCheckbox=o),o.change(function(){e[c]=!this.checked,n.attr("disabled",!this.checked),s.onChanged()}),e[c]&&n.attr("disabled",!0)},addListControl:function(t){return function(e,a,r,o){var i=null,n=null,s=null,l=this,c="value",h="isDisabled";o&&(c="mobileValue",h="isMobileDisabled"),n=$('"),e.addItem(n,1,r).stretch("1%","").css("text-align","right"),s=$(''),e.addItem(s,2,r,2).stretch("100%","");for(var u=0;u"+d+""))}s.change(function(){a[c]=$(this).val(),!o&&a.isMobileDisabled&&(a.mobileValue=a.value),l.onChanged()}),a.grouped?i=this._lastCheckbox:(i=$(''),e.addItem(i,0,r).stretch("1%",""),i.attr("checked",!a[h]),this._lastCheckbox=i),i.change(function(){a[h]=!this.checked,s.attr("disabled",!this.checked),l.onChanged()}),a[h]&&s.attr("disabled",!0)}},build:function(t,e){var a=!1;t||(t={},e=this._controls,a=!0);for(var r=0;r'),$("head").append(this.$activeTheme),this.$activeTheme.text(t),this._panel.docker().__update()},pull:function(t,e){e||(this._objMapping={},this._tempItems=[]);var a=!1,r=$("body").hasClass("wcMobile");$("body").removeClass("wcMobile").addClass("wcDesktop");for(var o=0;o
        ',name:"Font Family",info:"The font family of standard text",create:this.addTextControl,attribute:"font-family",value:""},{selector:".wcDocker",elem:'
        ',name:"Font Weight",info:"The font weight of the standard text",create:this.addListControl(this._fontWeights),attribute:"font-weight",value:""},{selector:".wcDocker",elem:'
        ',name:"Font Size",info:"The font size of standard text",create:this.addPixelControl,attribute:"font-size",value:""},{selector:".wcDocker",elem:'
        ',name:"Font Color",info:"The font color of standard text",create:this.addColorControl,attribute:"color",value:""},{name:"",create:this.addSpacer},{name:"Background",create:this.addSpacer},{selector:".wcDocker, .wcPanelBackground",elem:'
        ',name:"Color",info:"The background color to use",create:this.addColorControl,attribute:"background-color",value:""},{selector:".wcDocker, .wcPanelBackground",elem:'
        ',name:"Box-Shadow Style",info:"The box shadow style",create:this.addListControl(this._shadowStyle),parser:this._parseBoxShadowStyle,attribute:"box-shadow",value:""},{selector:".wcDocker, .wcPanelBackground",elem:'
        ',name:"Box-Shadow Left Offset",info:"The box shadow horizontal offset from the left (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(1),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcDocker, .wcPanelBackground",elem:'
        ',name:"Box-Shadow Top Offset",info:"The box shadow vertical offset from the top (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(2),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcDocker, .wcPanelBackground",elem:'
        ',name:"Box-Shadow Blur",info:"The box shadow blur",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(3),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcDocker, .wcPanelBackground",elem:'
        ',name:"Box-Shadow Spread",info:"The box shadow spread",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(4),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcDocker, .wcPanelBackground",elem:'
        ',name:"Box-Shadow Color",info:"The box shadow color",create:this.addColorControl,parser:this._parseBoxShadowColor,attribute:"box-shadow",append:!0,grouped:!0,value:""},{name:"",create:this.addSpacer},{name:"Modal Blocker",create:this.addSpacer},{selector:".wcModalBlocker",elem:'
        ',name:"Modal Blocker Color",info:"The color of the fullscreen blocker element that appears when a modal panel is visible",create:this.addColorControl,attribute:"background-color",value:""},{name:"",create:this.addSpacer},{name:"Loading Screen",create:this.addSpacer},{selector:".wcLoadingIcon",elem:'
        ',name:"Loading Icon Color",info:"The icon color or the loading screen to use",create:this.addColorControl,attribute:"color",value:""},{selector:".wcLoadingLabel",elem:'
        ',name:"Loading Label Color",info:"The label color or the loading screen to use",create:this.addColorControl,attribute:"color",value:""},{selector:".wcLoadingBackground",elem:'
        ',name:"Loading Screen Color",info:"The background color or the loading screen to use",create:this.addColorControl,attribute:"background-color",value:""},{name:"",create:this.addSpacer +},{name:"Ghost",create:this.addSpacer},{selector:".wcGhost",elem:'
        ',name:"Ghost Color",info:"The ghost color, this is the overlay that shows where a moving panel is being moved",create:this.addColorControl,attribute:"background-color",value:""},{selector:".wcGhost",elem:'
        ',name:"Ghost Border Radius",info:"The ghost border radius",create:this.addPixelControl,attribute:"border-radius",value:"0px",mobileValue:"0px"}]},{name:"Frames",scrollable:!0,create:this.addTab,controls:[{name:"Floating Frames",create:this.addSpacer},{selector:".wcFrameEdge",elem:'
        ',name:"Edge Color",info:"The color of a floating frame",create:this.addColorControl,attribute:"background-color",value:""},{selector:".wcFrameEdge",elem:'
        ',name:"Edge Border Color",info:"The border color of a floating frame",create:this.addColorControl,attribute:"border-color",value:""},{selector:".wcFrameEdge",attribute:"border-width",value:"2"},{selector:".wcFrameEdge",attribute:"border-style",value:"solid"},{name:"",create:this.addSpacer},{name:"Splitter Frames",create:this.addSpacer},{create:this.addTabFrame,controls:[{name:"Moveable Splitter",create:this.addTab,controls:[{name:"Moveable Splitter",create:this.addSpacer},{selector:".wcSplitterBar.wcSplitterBarV:not(.wcSplitterBarStatic)",elem:'
        ',name:"Size",info:"The size of a splitter bar",create:this.addPixelControl,attribute:"width",value:"",also:[{selector:".wcSplitterBar.wcSplitterBarH:not(.wcSplitterBarStatic)",attribute:"height"}]},{selector:".wcSplitterBar.wcSplitterBarV:not(.wcSplitterBarStatic), .wcSplitterBar.wcSplitterBarH:not(.wcSplitterBarStatic)",elem:'
        ',name:"Color",info:"The color of a splitter bar",create:this.addColorControl,attribute:"background-color",value:""},{selector:".wcSplitterBar.wcSplitterBarV:not(.wcSplitterBarStatic), .wcSplitterBar.wcSplitterBarH:not(.wcSplitterBarStatic)",elem:'
        ',name:"Border Style",info:"The border style of a splitter bar",create:this.addListControl(this._borderStyles),attribute:"border-style",value:""},{selector:".wcSplitterBar.wcSplitterBarV:not(.wcSplitterBarStatic), .wcSplitterBar.wcSplitterBarH:not(.wcSplitterBarStatic)",elem:'
        ',name:"Border Size",info:"The border size of a splitter bar",create:this.addPixelControl,attribute:"border-width",value:"0px",mobileValue:"0px"},{selector:".wcSplitterBar.wcSplitterBarV:not(.wcSplitterBarStatic), .wcSplitterBar.wcSplitterBarH:not(.wcSplitterBarStatic)",elem:'
        ',name:"Border Color",info:"The border color of a splitter bar",create:this.addColorControl,attribute:"border-color",value:""}]},{name:"Static Splitter",create:this.addTab,controls:[{name:"Static Splitter",create:this.addSpacer},{selector:".wcSplitterBar.wcSplitterBarV.wcSplitterBarStatic",elem:'
        ',name:"Size",info:"The size of a static splitter bar",create:this.addPixelControl,attribute:"width",value:"",also:[{selector:".wcSplitterBar.wcSplitterBarH.wcSplitterBarStatic",attribute:"height"}]},{selector:".wcSplitterBar.wcSplitterBarV.wcSplitterBarStatic, .wcSplitterBar.wcSplitterBarH.wcSplitterBarStatic",elem:'
        ',name:"Color",info:"The color of a static splitter bar",create:this.addColorControl,attribute:"background-color",value:""},{selector:".wcSplitterBar.wcSplitterBarV.wcSplitterBarStatic, .wcSplitterBar.wcSplitterBarH.wcSplitterBarStatic",elem:'
        ',name:"Border Style",info:"The border style of a static splitter bar",create:this.addListControl(this._borderStyles),attribute:"border-style",value:""},{selector:".wcSplitterBar.wcSplitterBarV.wcSplitterBarStatic, .wcSplitterBar.wcSplitterBarH.wcSplitterBarStatic",elem:'
        ',name:"Border Size",info:"The border size of a static splitter bar",create:this.addPixelControl,attribute:"border-width",value:"0px",mobileValue:"0px"},{selector:".wcSplitterBar.wcSplitterBarV.wcSplitterBarStatic, .wcSplitterBar.wcSplitterBarH.wcSplitterBarStatic",elem:'
        ',name:"Border Color",info:"The border color of a static splitter bar",create:this.addColorControl,attribute:"border-color",value:""}]}]}]},{name:"Panels",scrollable:!0,create:this.addTab,controls:[{name:"Panels",create:this.addSpacer},{selector:".wcFrameFlasher",elem:'
        ',name:"Flash Color",info:"The color of the panel when it focus flashes.",create:this.addColorControl,attribute:"background-color",value:""},{selector:".wcFrameShadower",elem:'
        ',name:"Shadow Color",info:"The color of the panel when it is being moved by the user.",create:this.addColorControl,attribute:"background-color",value:""},{name:"",create:this.addSpacer},{name:"Panel Buttons",create:this.addSpacer},{create:this.addTabFrame,orientation:e.TAB.TOP,controls:[{name:"Button Normal State",create:this.addTab,controls:[{name:"Button Normal State",create:this.addSpacer},{selector:".wcFrameButton",elem:'
        ',name:"Size",info:"The size of a panel button",create:this.addPixelControl,attribute:"width,height",notValue:"0px",value:""},{selector:".wcFrameButton",elem:'
        ',name:"Font Size",info:"The font size of a panel button",create:this.addPixelControl,attribute:"font-size",value:""},{selector:".wcFrameButton",elem:'
        ',name:"Font Weight",info:"The font weight of a panel button",create:this.addListControl(this._fontWeights),attribute:"font-weight",value:""},{selector:".wcFrameButton",elem:'
        ',name:"Font Color",info:"The font color of a panel button",create:this.addColorControl,attribute:"color",value:""},{name:"",create:this.addSpacer},{selector:".wcFrameButton",elem:'
        ',name:"Color",info:"The color of a panel button",create:this.addColorControl,attribute:"background-color",value:""},{name:"",create:this.addSpacer},{selector:".wcFrameButton",elem:'
        ',name:"Border Style",info:"The border style of a panel button",create:this.addListControl(this._borderStyles),attribute:"border-style",value:""},{selector:".wcFrameButton",elem:'
        ',name:"Border Size",info:"The border size of a panel button",create:this.addPixelControl,attribute:"border-width",value:"0px",mobileValue:"0px"},{selector:".wcFrameButton",elem:'
        ',name:"Border Color",info:"The border color of a panel button",create:this.addColorControl,attribute:"border-color",value:""},{name:"",create:this.addSpacer},{selector:".wcFrameButton",elem:'
        ',name:"Box-Shadow Style",info:"The box shadow style",create:this.addListControl(this._shadowStyle),parser:this._parseBoxShadowStyle,attribute:"box-shadow",value:""},{selector:".wcFrameButton",elem:'
        ',name:"Box-Shadow Left Offset",info:"The box shadow horizontal offset from the left (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(1),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcFrameButton",elem:'
        ',name:"Box-Shadow Top Offset",info:"The box shadow vertical offset from the top (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(2),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcFrameButton",elem:'
        ',name:"Box-Shadow Blur",info:"The box shadow blur",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(3),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcFrameButton",elem:'
        ',name:"Box-Shadow Spread",info:"The box shadow spread",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(4),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcFrameButton",elem:'
        ',name:"Box-Shadow Color",info:"The box shadow color",create:this.addColorControl,parser:this._parseBoxShadowColor,attribute:"box-shadow",append:!0,grouped:!0,value:""}]},{name:"Button Hover State",create:this.addTab,controls:[{name:"Button Hover State",create:this.addSpacer},{selector:".wcFrameButton:hover, .wcFrameButtonHover",elem:'
        ',name:"Size",info:"The size of a panel button",create:this.addPixelControl,attribute:"width,height",notValue:"0px",value:""},{selector:".wcFrameButton:hover, .wcFrameButtonHover",elem:'
        ',name:"Font Size",info:"The font size of a panel button",create:this.addPixelControl,attribute:"font-size",value:""},{selector:".wcFrameButton:hover, .wcFrameButtonHover",elem:'
        ',name:"Font Weight",info:"The font weight of a panel button",create:this.addListControl(this._fontWeights),attribute:"font-weight",value:""},{selector:".wcFrameButton:hover, .wcFrameButtonHover",elem:'
        ',name:"Font Color",info:"The font color of a panel button",create:this.addColorControl,attribute:"color",value:""},{name:"",create:this.addSpacer},{selector:".wcFrameButton:hover, .wcFrameButtonHover",elem:'
        ',name:"Color",info:"The color of a panel button",create:this.addColorControl,attribute:"background-color",value:""},{name:"",create:this.addSpacer},{selector:".wcFrameButton:hover, .wcFrameButtonHover",elem:'
        ',name:"Border Style",info:"The border style of a panel button",create:this.addListControl(this._borderStyles),attribute:"border-style",value:""},{selector:".wcFrameButton:hover, .wcFrameButtonHover",elem:'
        ',name:"Border Size",info:"The border size of a panel button",create:this.addPixelControl,attribute:"border-width",value:"0px",mobileValue:"0px"},{selector:".wcFrameButton:hover, .wcFrameButtonHover",elem:'
        ',name:"Border Color",info:"The border color of a panel button",create:this.addColorControl,attribute:"border-color",value:""},{name:"",create:this.addSpacer},{selector:".wcFrameButton:hover, .wcFrameButtonHover",elem:'
        ',name:"Box-Shadow Style",info:"The box shadow style",create:this.addListControl(this._shadowStyle),parser:this._parseBoxShadowStyle,attribute:"box-shadow",value:""},{selector:".wcFrameButton:hover, .wcFrameButtonHover",elem:'
        ',name:"Box-Shadow Left Offset",info:"The box shadow horizontal offset from the left (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(1),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcFrameButton:hover, .wcFrameButtonHover",elem:'
        ',name:"Box-Shadow Top Offset",info:"The box shadow vertical offset from the top (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(2),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcFrameButton:hover, .wcFrameButtonHover",elem:'
        ',name:"Box-Shadow Blur",info:"The box shadow blur",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(3),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcFrameButton:hover, .wcFrameButtonHover",elem:'
        ',name:"Box-Shadow Spread",info:"The box shadow spread",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(4),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcFrameButton:hover, .wcFrameButtonHover",elem:'
        ',name:"Box-Shadow Color",info:"The box shadow color",create:this.addColorControl,parser:this._parseBoxShadowColor,attribute:"box-shadow",append:!0,grouped:!0,value:""}]},{name:"Button Active State",create:this.addTab,controls:[{name:"Button Active State",create:this.addSpacer},{selector:".wcFrameButton:active, .wcFrameButtonActive",elem:'
        ',name:"Size",info:"The size of a panel button",create:this.addPixelControl,attribute:"width,height",notValue:"0px",value:""},{selector:".wcFrameButton:active, .wcFrameButtonActive",elem:'
        ',name:"Font Size",info:"The font size of a panel button",create:this.addPixelControl,attribute:"font-size",value:""},{selector:".wcFrameButton:active, .wcFrameButtonActive",elem:'
        ',name:"Font Weight",info:"The font weight of a panel button",create:this.addListControl(this._fontWeights),attribute:"font-weight",value:""},{selector:".wcFrameButton:active, .wcFrameButtonActive",elem:'
        ',name:"Font Color",info:"The font color of a panel button",create:this.addColorControl,attribute:"color",value:""},{name:"",create:this.addSpacer},{selector:".wcFrameButton:active, .wcFrameButtonActive",elem:'
        ',name:"Color",info:"The color of a panel button",create:this.addColorControl,attribute:"background-color",value:""},{name:"",create:this.addSpacer},{selector:".wcFrameButton:active, .wcFrameButtonActive",elem:'
        ',name:"Border Style",info:"The border style of a panel button",create:this.addListControl(this._borderStyles),attribute:"border-style",value:""},{selector:".wcFrameButton:active, .wcFrameButtonActive",elem:'
        ',name:"Border Size",info:"The border size of a panel button",create:this.addPixelControl,attribute:"border-width",value:"0px",mobileValue:"0px"},{selector:".wcFrameButton:active, .wcFrameButtonActive",elem:'
        ',name:"Border Color",info:"The border color of a panel button",create:this.addColorControl,attribute:"border-color",value:""},{name:"",create:this.addSpacer},{selector:".wcFrameButton:active, .wcFrameButtonActive",elem:'
        ',name:"Box-Shadow Style",info:"The box shadow style",create:this.addListControl(this._shadowStyle),parser:this._parseBoxShadowStyle,attribute:"box-shadow",value:""},{selector:".wcFrameButton:active, .wcFrameButtonActive",elem:'
        ',name:"Box-Shadow Left Offset",info:"The box shadow horizontal offset from the left (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(1),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcFrameButton:active, .wcFrameButtonActive",elem:'
        ',name:"Box-Shadow Top Offset",info:"The box shadow vertical offset from the top (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(2),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcFrameButton:active, .wcFrameButtonActive",elem:'
        ',name:"Box-Shadow Blur",info:"The box shadow blur",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(3),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcFrameButton:active, .wcFrameButtonActive",elem:'
        ',name:"Box-Shadow Spread",info:"The box shadow spread",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(4),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcFrameButton:active, .wcFrameButtonActive",elem:'
        ',name:"Box-Shadow Color",info:"The box shadow color",create:this.addColorControl,parser:this._parseBoxShadowColor,attribute:"box-shadow",append:!0,grouped:!0,value:""}]}]}]},{name:"Layout",scrollable:!0,create:this.addTab,controls:[{name:"Layout Grid",create:this.addSpacer},{selector:".wcLayoutGridAlternate tr:nth-child(even), .wcLayoutGridAltColor",elem:'
        ',name:"Odd Row Color",info:"When a layout grid alternate mode is enabled, this is the color to use for each alternate row",create:this.addColorControl,attribute:"background-color",value:"",important:!0},{selector:".wcLayoutGrid, .wcLayoutGrid tr, .wcLayoutGrid td",elem:'
        ',name:"Border Style",info:"When a layout grid is visible, this is the style of the grid lines",create:this.addListControl(this._borderStyles),attribute:"border-style",value:""},{selector:".wcLayoutGrid, .wcLayoutGrid tr, .wcLayoutGrid td",elem:'
        ',name:"Border Size",info:"When a layout grid is visible, this is the size of the grid lines",create:this.addPixelControl,attribute:"border-width",value:"0px",mobileValue:"0px"},{selector:".wcLayoutGrid, .wcLayoutGrid tr, .wcLayoutGrid td",elem:'
        ',name:"Border Color",info:"When a layout grid is visible, this is the color of the grid lines",create:this.addColorControl,attribute:"border-color",value:""}]},{name:"Tabs",scrollable:!0,create:this.addTab,controls:[{name:"Tab Bar",create:this.addSpacer},{selector:".wcFrameTitleBar",elem:'
        ',name:"Size",info:"The size of the tab bar.",create:this.addPixelControl,attribute:"height",notValue:"0px",value:"",also:[{selector:".wcFrameCenter",attribute:"top"}]},{selector:".wcFrameTitle",elem:'
        ',name:"Top Offset",info:"The top offset of the tab bar",create:this.addPixelControl,attribute:"padding-top",value:""},{selector:".wcFrameTitleBar",elem:'
        ',name:"Color",info:"The color of the tab bar",create:this.addColorControl,attribute:"background-color",value:""},{name:"",create:this.addSpacer},{name:"Title Bar",create:this.addSpacer},{selector:".wcFrameTitle",elem:'
        ',name:"Font Size",info:"The font size of the title bar",create:this.addPixelControl,attribute:"font-size",value:""},{selector:".wcFrameTitle",elem:'
        ',name:"Font Weight",info:"The font weight of a title bar",create:this.addListControl(this._fontWeights),attribute:"font-weight",value:""},{selector:".wcFrameTitle",elem:'
        ',name:"Font Color",info:"The font color of the title bar",create:this.addColorControl,attribute:"color",value:""},{selector:".wcFrameTitle",elem:'
        ',name:"Color",info:"The background color of the title bar",create:this.addColorControl,attribute:"background-color",value:""},{selector:".wcFrameTitle",attribute:"font-weight",value:"bold"},{selector:".wcFrameTitle",attribute:"text-align",value:"center"},{name:"",create:this.addSpacer},{name:"Tab Items",create:this.addSpacer},{create:this.addTabFrame,controls:[{name:"Tab Normal State",create:this.addTab,controls:[{name:"Tab Normal State",create:this.addSpacer},{selector:".wcPanelTab > div",elem:'
        ',name:"Font Top Offset",info:"The font top offset of a tab item",create:this.addPixelControl,attribute:"margin-top",value:""},{selector:".wcPanelTab",elem:'
        ',name:"Font Size",info:"The font size of a tab item",create:this.addPixelControl,attribute:"font-size",value:""},{selector:".wcPanelTab",elem:'
        ',name:"Font Weight",info:"The font weight of a tab item",create:this.addListControl(this._fontWeights),attribute:"font-weight",value:""},{selector:".wcPanelTab",elem:'
        ',name:"Font Padding",info:"The padding between text and tab border",create:this.addPixelControl,attribute:"padding-left,padding-right",value:""},{selector:".wcPanelTab",elem:'
        ',name:"Font Color",info:"The font color of a tab item",create:this.addColorControl,attribute:"color",value:""},{name:"",create:this.addSpacer},{selector:".wcPanelTab",elem:'
        ',name:"Top Offset",info:"The top offset of a tab item",create:this.addPixelControl,attribute:"margin-top",value:""},{selector:".wcPanelTab",elem:'
        ',name:"Height",info:"The height of a tab item",create:this.addPixelControl,attribute:"height",notValue:"0px",value:""},{selector:".wcPanelTab",elem:'
        ',name:"Spacing",info:"The spacing between tab items",create:this.addPixelControl,attribute:"margin-right",value:""},{selector:".wcPanelTab",elem:'
        ',name:"Color",info:"The color of a tab item",create:this.addColorControl,attribute:"background-color",value:""},{name:"",create:this.addSpacer},{selector:".wcPanelTab",elem:'
        ',name:"Border Style",info:"The border style of a tab item",create:this.addListControl(this._borderStyles),attribute:"border-style",value:""},{selector:".wcPanelTab",elem:'
        ',name:"Border Size",info:"The border size of a tab item",create:this.addPixelControl,attribute:"border-width",value:"0px",mobileValue:"0px"},{selector:".wcPanelTab",elem:'
        ',name:"Border Radius",info:"The border radius of a tab item",create:this.addPixelControl,attribute:"border-top-left-radius,border-top-right-radius",value:"0px",mobileValue:"0px"},{selector:".wcPanelTab",elem:'
        ',name:"Border Color",info:"The border color of a tab item",create:this.addColorControl,attribute:"border-color",value:""},{name:"",create:this.addSpacer},{selector:".wcPanelTab",elem:'
        ',name:"Box-Shadow Style",info:"The box shadow style",create:this.addListControl(this._shadowStyle),parser:this._parseBoxShadowStyle,attribute:"box-shadow",value:""},{selector:".wcPanelTab",elem:'
        ',name:"Box-Shadow Left Offset",info:"The box shadow horizontal offset from the left (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(1),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcPanelTab",elem:'
        ',name:"Box-Shadow Top Offset",info:"The box shadow vertical offset from the top (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(2),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcPanelTab",elem:'
        ',name:"Box-Shadow Blur",info:"The box shadow blur",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(3),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcPanelTab",elem:'
        ',name:"Box-Shadow Spread",info:"The box shadow spread",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(4),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcPanelTab",elem:'
        ',name:"Box-Shadow Color",info:"The box shadow color",create:this.addColorControl,parser:this._parseBoxShadowColor,attribute:"box-shadow",append:!0,grouped:!0,value:""}]},{name:"Tab Hover State",create:this.addTab,controls:[{name:"Tab Hover State",create:this.addSpacer},{selector:".wcPanelTab:hover > div, .wcPanelTabHover > div",elem:'
        ',name:"Font Top Offset",info:"The font top offset of a tab item",create:this.addPixelControl,attribute:"margin-top",value:""},{selector:".wcPanelTab:hover, .wcPanelTabHover",elem:'
        ',name:"Font Size",info:"The font size of a tab item",create:this.addPixelControl,attribute:"font-size",value:""},{selector:".wcPanelTab:hover, .wcPanelTabHover",elem:'
        ',name:"Font Weight",info:"The font weight of a tab item",create:this.addListControl(this._fontWeights),attribute:"font-weight",value:""},{selector:".wcPanelTab:hover, .wcPanelTabHover",elem:'
        ',name:"Font Padding",info:"The padding between text and tab border",create:this.addPixelControl,attribute:"padding-left,padding-right",value:""},{selector:".wcPanelTab:hover, .wcPanelTabHover",elem:'
        ',name:"Font Color",info:"The font color of a tab item",create:this.addColorControl,attribute:"color",value:""},{name:"",create:this.addSpacer},{selector:".wcPanelTab:hover, .wcPanelTabHover",elem:'
        ',name:"Top Offset",info:"The top offset of a tab item",create:this.addPixelControl,attribute:"margin-top",value:""},{selector:".wcPanelTab:hover, .wcPanelTabHover",elem:'
        ',name:"Height",info:"The height of a tab item",create:this.addPixelControl,attribute:"height",notValue:"0px",value:""},{selector:".wcPanelTab:hover, .wcPanelTabHover",elem:'
        ',name:"Spacing",info:"The spacing between tab items",create:this.addPixelControl,attribute:"margin-right",value:""},{selector:".wcPanelTab:hover, .wcPanelTabHover",elem:'
        ',name:"Color",info:"The color of a tab item",create:this.addColorControl,attribute:"background-color",value:""},{name:"",create:this.addSpacer},{selector:".wcPanelTab:hover, .wcPanelTabHover",elem:'
        ',name:"Border Style",info:"The border style of a tab item",create:this.addListControl(this._borderStyles),attribute:"border-style",value:""},{selector:".wcPanelTab:hover, .wcPanelTabHover",elem:'
        ',name:"Border Size",info:"The border size of a tab item",create:this.addPixelControl,attribute:"border-width",value:"0px",mobileValue:"0px"},{selector:".wcPanelTab:hover, .wcPanelTabHover",elem:'
        ',name:"Border Radius",info:"The border radius of a tab item",create:this.addPixelControl,attribute:"border-top-left-radius,border-top-right-radius",value:"0px",mobileValue:"0px"},{selector:".wcPanelTab:hover, .wcPanelTabHover",elem:'
        ',name:"Border Color",info:"The border color of a tab item",create:this.addColorControl,attribute:"border-color",value:""},{name:"",create:this.addSpacer},{selector:".wcPanelTab:hover, .wcPanelTabHover",elem:'
        ',name:"Box-Shadow Style",info:"The box shadow style",create:this.addListControl(this._shadowStyle),parser:this._parseBoxShadowStyle,attribute:"box-shadow",value:""},{selector:".wcPanelTab:hover, .wcPanelTabHover",elem:'
        ',name:"Box-Shadow Left Offset",info:"The box shadow horizontal offset from the left (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(1),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcPanelTab:hover, .wcPanelTabHover",elem:'
        ',name:"Box-Shadow Top Offset",info:"The box shadow vertical offset from the top (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(2),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcPanelTab:hover, .wcPanelTabHover",elem:'
        ',name:"Box-Shadow Blur",info:"The box shadow blur",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(3),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcPanelTab:hover, .wcPanelTabHover",elem:'
        ',name:"Box-Shadow Spread",info:"The box shadow spread",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(4),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcPanelTab:hover, .wcPanelTabHover",elem:'
        ',name:"Box-Shadow Color",info:"The box shadow color",create:this.addColorControl,parser:this._parseBoxShadowColor,attribute:"box-shadow",append:!0,grouped:!0,value:""}]},{name:"Tab Active State",create:this.addTab,controls:[{name:"Tab Active State",create:this.addSpacer},{selector:".wcPanelTabActive > div",elem:'
        ',name:"Font Top Offset",info:"The font top offset of a tab item",create:this.addPixelControl,attribute:"margin-top",value:""},{selector:".wcPanelTabActive",elem:'
        ',name:"Font Size",info:"The font size of a tab item",create:this.addPixelControl,attribute:"font-size",value:""},{selector:".wcPanelTabActive",elem:'
        ',name:"Font Weight",info:"The font weight of a tab item",create:this.addListControl(this._fontWeights),attribute:"font-weight",value:""},{selector:".wcPanelTabActive",elem:'
        ',name:"Font Padding",info:"The padding between text and tab border",create:this.addPixelControl,attribute:"padding-left,padding-right",value:""},{selector:".wcPanelTabActive",elem:'
        ',name:"Font Color",info:"The font color of a tab item",create:this.addColorControl,attribute:"color",value:""},{name:"",create:this.addSpacer},{selector:".wcPanelTabActive",elem:'
        ',name:"Top Offset",info:"The top offset of a tab item",create:this.addPixelControl,attribute:"margin-top",value:""},{selector:".wcPanelTabActive",elem:'
        ',name:"Height",info:"The height of a tab item",create:this.addPixelControl,attribute:"height",notValue:"0px",value:""},{selector:".wcPanelTabActive",elem:'
        ',name:"Spacing",info:"The spacing between tab items",create:this.addPixelControl,attribute:"margin-right",value:""},{selector:".wcPanelTabActive",elem:'
        ',name:"Color",info:"The color of a tab item",create:this.addColorControl,attribute:"background-color",value:""},{name:"",create:this.addSpacer},{selector:".wcPanelTabActive",elem:'
        ',name:"Border Style",info:"The border style of a tab item",create:this.addListControl(this._borderStyles),attribute:"border-style",value:""},{selector:".wcPanelTabActive",elem:'
        ',name:"Border Size",info:"The border size of a tab item",create:this.addPixelControl,attribute:"border-width",value:"0px",mobileValue:"0px"},{selector:".wcPanelTabActive",elem:'
        ',name:"Border Radius",info:"The border radius of a tab item",create:this.addPixelControl,attribute:"border-top-left-radius,border-top-right-radius",value:"0px",mobileValue:"0px"},{selector:".wcPanelTabActive",elem:'
        ',name:"Border Color",info:"The border color of a tab item",create:this.addColorControl, +attribute:"border-color",value:""},{name:"",create:this.addSpacer},{selector:".wcPanelTabActive",elem:'
        ',name:"Box-Shadow Style",info:"The box shadow style",create:this.addListControl(this._shadowStyle),parser:this._parseBoxShadowStyle,attribute:"box-shadow",value:""},{selector:".wcPanelTabActive",elem:'
        ',name:"Box-Shadow Left Offset",info:"The box shadow horizontal offset from the left (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(1),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcPanelTabActive",elem:'
        ',name:"Box-Shadow Top Offset",info:"The box shadow vertical offset from the top (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(2),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcPanelTabActive",elem:'
        ',name:"Box-Shadow Blur",info:"The box shadow blur",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(3),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcPanelTabActive",elem:'
        ',name:"Box-Shadow Spread",info:"The box shadow spread",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(4),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcPanelTabActive",elem:'
        ',name:"Box-Shadow Color",info:"The box shadow color",create:this.addColorControl,parser:this._parseBoxShadowColor,attribute:"box-shadow",append:!0,grouped:!0,value:""}]},{name:"Tab Active Hover State",create:this.addTab,controls:[{name:"Tab Active Hover State",create:this.addSpacer},{selector:".wcPanelTabActive:hover > div, .wcPanelTabActiveHover > div",elem:'
        ',name:"Font Top Offset",info:"The font top offset of a tab item",create:this.addPixelControl,attribute:"margin-top",value:""},{selector:".wcPanelTabActive:hover, .wcPanelTabActiveHover",elem:'
        ',name:"Font Size",info:"The font size of a tab item",create:this.addPixelControl,attribute:"font-size",value:""},{selector:".wcPanelTabActive:hover, .wcPanelTabActiveHover",elem:'
        ',name:"Font Weight",info:"The font weight of a tab item",create:this.addListControl(this._fontWeights),attribute:"font-weight",value:""},{selector:".wcPanelTabActive:hover, .wcPanelTabActiveHover",elem:'
        ',name:"Font Padding",info:"The padding between text and tab border",create:this.addPixelControl,attribute:"padding-left,padding-right",value:""},{selector:".wcPanelTabActive:hover, .wcPanelTabActiveHover",elem:'
        ',name:"Font Color",info:"The font color of a tab item",create:this.addColorControl,attribute:"color",value:""},{name:"",create:this.addSpacer},{selector:".wcPanelTabActive:hover, .wcPanelTabActiveHover",elem:'
        ',name:"Top Offset",info:"The top offset of a tab item",create:this.addPixelControl,attribute:"margin-top",value:""},{selector:".wcPanelTabActive:hover, .wcPanelTabActiveHover",elem:'
        ',name:"Height",info:"The height of a tab item",create:this.addPixelControl,attribute:"height",notValue:"0px",value:""},{selector:".wcPanelTabActive:hover, .wcPanelTabActiveHover",elem:'
        ',name:"Spacing",info:"The spacing between tab items",create:this.addPixelControl,attribute:"margin-right",value:""},{selector:".wcPanelTabActive:hover, .wcPanelTabActiveHover",elem:'
        ',name:"Color",info:"The color of a tab item",create:this.addColorControl,attribute:"background-color",value:""},{name:"",create:this.addSpacer},{selector:".wcPanelTabActive:hover, .wcPanelTabActiveHover",elem:'
        ',name:"Border Style",info:"The border style of a tab item",create:this.addListControl(this._borderStyles),attribute:"border-style",value:""},{selector:".wcPanelTabActive:hover, .wcPanelTabActiveHover",elem:'
        ',name:"Border Size",info:"The border size of a tab item",create:this.addPixelControl,attribute:"border-width",value:"0px",mobileValue:"0px"},{selector:".wcPanelTabActive:hover, .wcPanelTabActiveHover",elem:'
        ',name:"Border Radius",info:"The border radius of a tab item",create:this.addPixelControl,attribute:"border-top-left-radius,border-top-right-radius",value:"0px",mobileValue:"0px"},{selector:".wcPanelTabActive:hover, .wcPanelTabActiveHover",elem:'
        ',name:"Border Color",info:"The border color of a tab item",create:this.addColorControl,attribute:"border-color",value:""},{name:"",create:this.addSpacer},{selector:".wcPanelTabActive:hover, .wcPanelTabActiveHover",elem:'
        ',name:"Box-Shadow Style",info:"The box shadow style",create:this.addListControl(this._shadowStyle),parser:this._parseBoxShadowStyle,attribute:"box-shadow",value:""},{selector:".wcPanelTabActive:hover, .wcPanelTabActiveHover",elem:'
        ',name:"Box-Shadow Left Offset",info:"The box shadow horizontal offset from the left (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(1),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcPanelTabActive:hover, .wcPanelTabActiveHover",elem:'
        ',name:"Box-Shadow Top Offset",info:"The box shadow vertical offset from the top (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(2),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcPanelTabActive:hover, .wcPanelTabActiveHover",elem:'
        ',name:"Box-Shadow Blur",info:"The box shadow blur",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(3),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcPanelTabActive:hover, .wcPanelTabActiveHover",elem:'
        ',name:"Box-Shadow Spread",info:"The box shadow spread",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(4),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcPanelTabActive:hover, .wcPanelTabActiveHover",elem:'
        ',name:"Box-Shadow Color",info:"The box shadow color",create:this.addColorControl,parser:this._parseBoxShadowColor,attribute:"box-shadow",append:!0,grouped:!0,value:""}]}]}]},{name:"Menus",scrollable:!0,create:this.addTab,controls:[{name:"Context Menu",create:this.addSpacer},{selector:".wcMenuList, .context-menu-list",elem:'
          ',name:"Border Style",info:"The border style of the context menu",create:this.addListControl(this._borderStyles),attribute:"border-style",value:""},{selector:".wcMenuList, .context-menu-list",elem:'
            ',name:"Border Size",info:"The border size of the context menu",create:this.addPixelControl,attribute:"border-width",value:"0px",mobileValue:"0px"},{selector:".wcMenuList, .context-menu-list",elem:'
              ',name:"Border Color",info:"The border color of the context menu",create:this.addColorControl,attribute:"border-color",value:""},{name:"",create:this.addSpacer},{name:"Menu Separator Bar",create:this.addSpacer},{selector:".wcMenuSeparator, .context-menu-separator",elem:'
            • ',name:"Color",info:"The background color of the context menu separator bar",create:this.addColorControl,attribute:"background-color",value:"",important:!0},{selector:".wcMenuSeparator, .context-menu-separator",elem:'
            • ',name:"Border Style",info:"The border style of the context menu separator bar",create:this.addListControl(this._borderStyles),attribute:"border-style",value:""},{selector:".wcMenuSeparator, .context-menu-separator",elem:'
            • ',name:"Border Size",info:"The border size of the context menu separator bar",create:this.addPixelControl,attribute:"border-width",value:"0px",mobileValue:"0px"},{selector:".wcMenuSeparator, .context-menu-separator",elem:'
            • ',name:"Border Color",info:"The border color of the context menu separator bar",create:this.addColorControl,attribute:"border-color",value:""},{name:"",create:this.addSpacer},{name:"Menu Items",create:this.addSpacer},{create:this.addTabFrame,controls:[{name:"Menu Normal State",create:this.addTab,controls:[{name:"Menu Normal State",create:this.addSpacer},{selector:".wcMenuList, .wcMenuItem, .context-menu-list, .context-menu-item",elem:'
            • ',name:"Font Family",info:"The font family of the context menu.",create:this.addTextControl,attribute:"font-family",value:""},{selector:".wcMenuList, .wcMenuItem, .context-menu-list, .context-menu-item",elem:'
            • ',name:"Font Weight",info:"The font weight of the context menu.",create:this.addListControl(this._fontWeights),attribute:"font-weight",value:""},{selector:".wcMenuList, .wcMenuItem, .context-menu-list, .context-menu-item",elem:'
            • ',name:"Font Size",info:"The font size of the context menu.",create:this.addPixelControl,attribute:"font-size",value:""},{selector:".wcMenuList, .wcMenuItem, .context-menu-list, .context-menu-item",elem:'
            • ',name:"Font Color",info:"The font color of the context menu.",create:this.addColorControl,attribute:"color",value:""},{name:"",create:this.addSpacer},{selector:".wcMenuList, .wcMenuItem, .context-menu-list, .context-menu-item",elem:'
            • ',name:"Color",info:"The background color of the context menu",create:this.addColorControl,attribute:"background-color",value:""}]},{name:"Menu Hover State",create:this.addTab,controls:[{name:"Menu Hover State",create:this.addSpacer},{selector:".wcMenuItemHover, .wcMenuItem:hover, .context-menu-item.hover",elem:'
            • ',name:"Font Family",info:"The font family of the context menu.",create:this.addTextControl,attribute:"font-family",value:""},{selector:".wcMenuItemHover, .wcMenuItem:hover, .context-menu-item.hover",elem:'
            • ',name:"Font Weight",info:"The font weight of the context menu.",create:this.addListControl(this._fontWeights),attribute:"font-weight",value:""},{selector:".wcMenuItemHover, .wcMenuItem:hover, .context-menu-item.hover",elem:'
            • ',name:"Font Size",info:"The font size of the context menu.",create:this.addPixelControl,attribute:"font-size",value:""},{selector:".wcMenuItemHover, .wcMenuItem:hover, .context-menu-item.hover",elem:'
            • ',name:"Font Color",info:"The font color of the context menu.",create:this.addColorControl,attribute:"color",value:""},{name:"",create:this.addSpacer},{selector:".wcMenuItemHover, .wcMenuItem:hover, .context-menu-item.hover",elem:'
            • ',name:"Color",info:"The background color of the context menu",create:this.addColorControl,attribute:"background-color",value:""}]},{name:"Menu Disabled State",create:this.addTab,controls:[{name:"Menu Disabled State",create:this.addSpacer},{selector:".wcMenuItem.disabled, .context-menu-item.disabled",elem:'
            • ',name:"Font Family",info:"The disabled font family of the context menu.",create:this.addTextControl,attribute:"font-family",value:""},{selector:".wcMenuItem.disabled, .context-menu-item.disabled",elem:'
            • ',name:"Font Weight",info:"The disabled font weight of the context menu.",create:this.addListControl(this._fontWeights),attribute:"font-weight",value:""},{selector:".wcMenuItem.disabled, .context-menu-item.disabled",elem:'
            • ',name:"Font Size",info:"The disabled font size of the context menu.",create:this.addPixelControl,attribute:"font-size",value:""},{selector:".wcMenuItem.disabled, .context-menu-item.disabled",elem:'
            • ',name:"Font Color",info:"The disabled font color of the context menu.",create:this.addColorControl,attribute:"color",value:""},{name:"",create:this.addSpacer},{selector:".wcMenuItem.disabled, .context-menu-item.disabled",elem:'
            • ',name:"Color",info:"The disabled background color of the context menu",create:this.addColorControl,attribute:"background-color",value:""}]}]}]},{name:"Scrollbar",scrollable:!0,create:this.addTab,controls:[{name:"Scrollbar (Chrome Only)",create:this.addSpacer},{selector:".wcScrollbar, ::-webkit-scrollbar",elem:'
              ',name:"Size",info:"The thickness of the scrollbar",create:this.addPixelControl,attribute:"width,height",notValue:"0px",value:""},{selector:".wcScrollbar, ::-webkit-scrollbar, .wcScrollbarCorner, ::-webkit-scrollbar-corner",elem:'
              ',name:"Color",info:"The color of the scrollbar",create:this.addColorControl,attribute:"background-color",value:""},{name:"",create:this.addSpacer},{selector:".wcScrollbarTrack, ::-webkit-scrollbar-track",elem:'
              ',name:"Border Style",info:"The border style of the scrollbar track",create:this.addListControl(this._borderStyles),attribute:"border-style",value:""},{selector:".wcScrollbarTrack, ::-webkit-scrollbar-track",elem:'
              ',name:"Border Size",info:"The border size of the scrollbar track",create:this.addPixelControl,attribute:"border-width",value:"0px",mobileValue:"0px"},{selector:".wcScrollbarTrack, ::-webkit-scrollbar-track",elem:'
              ',name:"Border Radius",info:"The border radius of the scrollbar track",create:this.addPixelControl,attribute:"border-radius",value:"0px",mobileValue:"0px"},{selector:".wcScrollbarTrack, ::-webkit-scrollbar-track",elem:'
              ',name:"Border Color",info:"The border color of the scrollbar track",create:this.addColorControl,attribute:"border-color",value:""},{name:"",create:this.addSpacer},{selector:".wcScrollbarTrack, ::-webkit-scrollbar-track",elem:'
              ',name:"Box-Shadow Style",info:"The box shadow style",create:this.addListControl(this._shadowStyle),parser:this._parseBoxShadowStyle,attribute:"box-shadow",value:""},{selector:".wcScrollbarTrack, ::-webkit-scrollbar-track",elem:'
              ',name:"Box-Shadow Left Offset",info:"The box shadow horizontal offset from the left (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(1),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcScrollbarTrack, ::-webkit-scrollbar-track",elem:'
              ',name:"Box-Shadow Top Offset",info:"The box shadow vertical offset from the top (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(2),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcScrollbarTrack, ::-webkit-scrollbar-track",elem:'
              ',name:"Box-Shadow Blur",info:"The box shadow blur",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(3),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcScrollbarTrack, ::-webkit-scrollbar-track",elem:'
              ',name:"Box-Shadow Spread",info:"The box shadow spread",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(4),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcScrollbarTrack, ::-webkit-scrollbar-track",elem:'
              ',name:"Box-Shadow Color",info:"The box shadow color",create:this.addColorControl,parser:this._parseBoxShadowColor,attribute:"box-shadow",append:!0,grouped:!0,value:""},{name:"",create:this.addSpacer},{name:"Scrollbar Thumb Control (Chrome Only)",create:this.addSpacer},{create:this.addTabFrame,controls:[{name:"Thumb Normal State",create:this.addTab,controls:[{name:"Thumb Normal State",create:this.addSpacer},{selector:".wcScrollbarThumb, ::-webkit-scrollbar-thumb",elem:'
              ',name:"Color",info:"The background color of the scrollbar thumb control",create:this.addColorControl,attribute:"background-color",value:""},{name:"",create:this.addSpacer},{selector:".wcScrollbarThumb, ::-webkit-scrollbar-thumb",elem:'
              ',name:"Border Style",info:"The border style of the scrollbar thumb control",create:this.addListControl(this._borderStyles),attribute:"border-style",value:""},{selector:".wcScrollbarThumb, ::-webkit-scrollbar-thumb",elem:'
              ',name:"Border Size",info:"The border size of the scrollbar thumb control",create:this.addPixelControl,attribute:"border-width",value:"0px",mobileValue:"0px"},{selector:".wcScrollbarThumb, ::-webkit-scrollbar-thumb",elem:'
              ',name:"Border Radius",info:"The border radius of the scrollbar thumb control",create:this.addPixelControl,attribute:"border-radius",value:"0px",mobileValue:"0px"},{selector:".wcScrollbarThumb, ::-webkit-scrollbar-thumb",elem:'
              ',name:"Border Color",info:"The border color of the scrollbar thumb control",create:this.addColorControl,attribute:"border-color",value:""},{name:"",create:this.addSpacer},{selector:".wcScrollbarThumb, ::-webkit-scrollbar-thumb",elem:'
              ',name:"Box-Shadow Style",info:"The box shadow style",create:this.addListControl(this._shadowStyle),parser:this._parseBoxShadowStyle,attribute:"box-shadow",value:""},{selector:".wcScrollbarThumb, ::-webkit-scrollbar-thumb",elem:'
              ',name:"Box-Shadow Left Offset",info:"The box shadow horizontal offset from the left (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(1),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcScrollbarThumb, ::-webkit-scrollbar-thumb",elem:'
              ',name:"Box-Shadow Top Offset",info:"The box shadow vertical offset from the top (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(2),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcScrollbarThumb, ::-webkit-scrollbar-thumb",elem:'
              ',name:"Box-Shadow Blur",info:"The box shadow blur",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(3),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcScrollbarThumb, ::-webkit-scrollbar-thumb",elem:'
              ',name:"Box-Shadow Spread",info:"The box shadow spread",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(4),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcScrollbarThumb, ::-webkit-scrollbar-thumb",elem:'
              ',name:"Box-Shadow Color",info:"The box shadow color",create:this.addColorControl,parser:this._parseBoxShadowColor,attribute:"box-shadow",append:!0,grouped:!0,value:""}]},{name:"Thumb Hover State",create:this.addTab,controls:[{name:"Thumb Hover State",create:this.addSpacer},{selector:".wcScrollbarThumb, ::-webkit-scrollbar-thumb",elem:'
              ',name:"Color",info:"The background color of the scrollbar thumb control",create:this.addColorControl,attribute:"background-color",value:""},{name:"",create:this.addSpacer},{selector:".wcScrollbarThumbHover, .wcScrollBarThumb:hover, ::-webkit-scrollbar-thumb:hover",elem:'
              ',name:"Border Style",info:"The border style of the scrollbar thumb control",create:this.addListControl(this._borderStyles),attribute:"border-style",value:""},{selector:".wcScrollbarThumbHover, .wcScrollBarThumb:hover, ::-webkit-scrollbar-thumb:hover",elem:'
              ',name:"Border Size",info:"The border size of the scrollbar thumb control",create:this.addPixelControl,attribute:"border-width",value:"0px",mobileValue:"0px"},{selector:".wcScrollbarThumbHover, .wcScrollBarThumb:hover, ::-webkit-scrollbar-thumb:hover",elem:'
              ',name:"Border Radius",info:"The border radius of the scrollbar thumb control",create:this.addPixelControl,attribute:"border-radius",value:"0px",mobileValue:"0px"},{selector:".wcScrollbarThumbHover, .wcScrollBarThumb:hover, ::-webkit-scrollbar-thumb:hover",elem:'
              ',name:"Border Color",info:"The border color of the scrollbar thumb control",create:this.addColorControl,attribute:"border-color",value:""},{name:"",create:this.addSpacer},{selector:".wcScrollbarThumbHover, .wcScrollBarThumb:hover, ::-webkit-scrollbar-thumb:hover",elem:'
              ',name:"Box-Shadow Style",info:"The box shadow style",create:this.addListControl(this._shadowStyle),parser:this._parseBoxShadowStyle,attribute:"box-shadow",value:""},{selector:".wcScrollbarThumbHover, .wcScrollBarThumb:hover, ::-webkit-scrollbar-thumb:hover",elem:'
              ',name:"Box-Shadow Left Offset",info:"The box shadow horizontal offset from the left (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(1),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcScrollbarThumbHover, .wcScrollBarThumb:hover, ::-webkit-scrollbar-thumb:hover",elem:'
              ',name:"Box-Shadow Top Offset",info:"The box shadow vertical offset from the top (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(2),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcScrollbarThumbHover, .wcScrollBarThumb:hover, ::-webkit-scrollbar-thumb:hover",elem:'
              ',name:"Box-Shadow Blur",info:"The box shadow blur",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(3),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcScrollbarThumbHover, .wcScrollBarThumb:hover, ::-webkit-scrollbar-thumb:hover",elem:'
              ',name:"Box-Shadow Spread",info:"The box shadow spread",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(4),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcScrollbarThumbHover, .wcScrollBarThumb:hover, ::-webkit-scrollbar-thumb:hover",elem:'
              ',name:"Box-Shadow Color",info:"The box shadow color",create:this.addColorControl,parser:this._parseBoxShadowColor,attribute:"box-shadow",append:!0,grouped:!0,value:""}]},{name:"Thumb Active State",create:this.addTab,controls:[{name:"Thumb Active State",create:this.addSpacer},{selector:".wcScrollbarThumb, ::-webkit-scrollbar-thumb",elem:'
              ',name:"Color",info:"The background color of the scrollbar thumb control",create:this.addColorControl,attribute:"background-color",value:""},{name:"",create:this.addSpacer},{selector:".wcScrollbarThumbActive, .wcScrollBarThumb:active, ::-webkit-scrollbar-thumb:active",elem:'
              ',name:"Border Style",info:"The border style of the scrollbar thumb control",create:this.addListControl(this._borderStyles),attribute:"border-style",value:""},{selector:".wcScrollbarThumbActive, .wcScrollBarThumb:active, ::-webkit-scrollbar-thumb:active",elem:'
              ',name:"Border Size",info:"The border size of the scrollbar thumb control",create:this.addPixelControl,attribute:"border-width",value:"0px",mobileValue:"0px"},{selector:".wcScrollbarThumbActive, .wcScrollBarThumb:active, ::-webkit-scrollbar-thumb:active",elem:'
              ',name:"Border Radius",info:"The border radius of the scrollbar thumb control",create:this.addPixelControl,attribute:"border-radius",value:"0px",mobileValue:"0px"},{selector:".wcScrollbarThumbActive, .wcScrollBarThumb:active, ::-webkit-scrollbar-thumb:active",elem:'
              ',name:"Border Color",info:"The border color of the scrollbar thumb control",create:this.addColorControl,attribute:"border-color",value:""},{name:"",create:this.addSpacer},{selector:".wcScrollbarThumbActive, .wcScrollBarThumb:active, ::-webkit-scrollbar-thumb:active",elem:'
              ',name:"Box-Shadow Style",info:"The box shadow style",create:this.addListControl(this._shadowStyle),parser:this._parseBoxShadowStyle,attribute:"box-shadow",value:""},{selector:".wcScrollbarThumbActive, .wcScrollBarThumb:active, ::-webkit-scrollbar-thumb:active",elem:'
              ',name:"Box-Shadow Left Offset",info:"The box shadow horizontal offset from the left (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(1),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcScrollbarThumbActive, .wcScrollBarThumb:active, ::-webkit-scrollbar-thumb:active",elem:'
              ',name:"Box-Shadow Top Offset",info:"The box shadow vertical offset from the top (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(2),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcScrollbarThumbActive, .wcScrollBarThumb:active, ::-webkit-scrollbar-thumb:active",elem:'
              ',name:"Box-Shadow Blur",info:"The box shadow blur",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(3),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcScrollbarThumbActive, .wcScrollBarThumb:active, ::-webkit-scrollbar-thumb:active",elem:'
              ',name:"Box-Shadow Spread",info:"The box shadow spread",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(4),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcScrollbarThumbActive, .wcScrollBarThumb:active, ::-webkit-scrollbar-thumb:active",elem:'
              ',name:"Box-Shadow Color",info:"The box shadow color",create:this.addColorControl,parser:this._parseBoxShadowColor,attribute:"box-shadow",append:!0,grouped:!0,value:""}]}]}]},{name:"Controls",scrollable:!0,create:this.addTab,controls:[{create:this.addTabFrame,controls:[{name:"Inputs",create:this.addTab,controls:[{name:"Input Controls",create:this.addSpacer},{selector:".wcInput, input",elem:'',name:"Font Family",info:"The font family of the control",create:this.addTextControl,attribute:"font-family",value:""},{selector:".wcInput, input",elem:'',name:"Font Weight",info:"The font weight of the control",create:this.addListControl(this._fontWeights),attribute:"font-weight",value:""},{selector:".wcInput, input",elem:'',name:"Font Size",info:"The font size of the control",create:this.addPixelControl,attribute:"font-size",value:""},{selector:".wcInput, input",elem:'',name:"Font Color",info:"The font color of the control",create:this.addColorControl,attribute:"color",value:""},{name:"",create:this.addSpacer},{selector:".wcInput, input",elem:'',name:"Color",info:"The color of the control",create:this.addColorControl,attribute:"background-color",value:""},{name:"",create:this.addSpacer},{selector:".wcInput, input",elem:'',name:"Border Style",info:"The border style of the control",create:this.addListControl(this._borderStyles),attribute:"border-style",value:""},{selector:".wcInput, input",elem:'',name:"Border Size",info:"The border size of the control",create:this.addPixelControl,attribute:"border-width",value:"0px",mobileValue:"0px"},{selector:".wcInput, input",elem:'',name:"Border Radius",info:"The border radius of the control",create:this.addPixelControl,attribute:"border-radius",value:"0px",mobileValue:"0px"},{selector:".wcInput, input",elem:'',name:"Border Color",info:"The border color of the control",create:this.addColorControl,attribute:"border-color",value:""},{name:"",create:this.addSpacer},{selector:".wcInput, input",elem:'',name:"Box-Shadow Style",info:"The box shadow style",create:this.addListControl(this._shadowStyle),parser:this._parseBoxShadowStyle,attribute:"box-shadow",value:""},{selector:".wcInput, input",elem:'',name:"Box-Shadow Left Offset",info:"The box shadow horizontal offset from the left (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(1),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcInput, input",elem:'',name:"Box-Shadow Top Offset",info:"The box shadow vertical offset from the top (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(2),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcInput, input",elem:'',name:"Box-Shadow Blur",info:"The box shadow blur",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(3),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcInput, input",elem:'',name:"Box-Shadow Spread",info:"The box shadow spread",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(4),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcInput, input",elem:'',name:"Box-Shadow Color",info:"The box shadow color",create:this.addColorControl,parser:this._parseBoxShadowColor,attribute:"box-shadow",append:!0,grouped:!0,value:""}]},{name:"Combo Boxes",create:this.addTab,controls:[{ +name:"Combo Box Controls",create:this.addSpacer},{selector:".wcSelect, select",elem:'',name:"Font Family",info:"The font family of the control",create:this.addTextControl,attribute:"font-family",value:""},{selector:".wcSelect, select",elem:'',name:"Font Weight",info:"The font weight of the control",create:this.addListControl(this._fontWeights),attribute:"font-weight",value:""},{selector:".wcSelect, select",elem:'',name:"Font Size",info:"The font size of the control",create:this.addPixelControl,attribute:"font-size",value:""},{selector:".wcSelect, select",elem:'',name:"Font Color",info:"The font color of the control",create:this.addColorControl,attribute:"color",value:""},{name:"",create:this.addSpacer},{selector:".wcSelect, select",elem:'',name:"Color",info:"The color of the control",create:this.addColorControl,attribute:"background-color",value:""},{name:"",create:this.addSpacer},{selector:".wcSelect, select",elem:'',name:"Border Style",info:"The border style of the control",create:this.addListControl(this._borderStyles),attribute:"border-style",value:""},{selector:".wcSelect, select",elem:'',name:"Border Size",info:"The border size of the control",create:this.addPixelControl,attribute:"border-width",value:"0px",mobileValue:"0px"},{selector:".wcSelect, select",elem:'',name:"Border Radius",info:"The border radius of the control",create:this.addPixelControl,attribute:"border-radius",value:"0px",mobileValue:"0px"},{selector:".wcSelect, select",elem:'',name:"Border Color",info:"The border color of the control",create:this.addColorControl,attribute:"border-color",value:""},{name:"",create:this.addSpacer},{selector:".wcSelect, select",elem:'',name:"Box-Shadow Style",info:"The box shadow style",create:this.addListControl(this._shadowStyle),parser:this._parseBoxShadowStyle,attribute:"box-shadow",value:""},{selector:".wcSelect, select",elem:'',name:"Box-Shadow Left Offset",info:"The box shadow horizontal offset from the left (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(1),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcSelect, select",elem:'',name:"Box-Shadow Top Offset",info:"The box shadow vertical offset from the top (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(2),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcSelect, select",elem:'',name:"Box-Shadow Blur",info:"The box shadow blur",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(3),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcSelect, select",elem:'',name:"Box-Shadow Spread",info:"The box shadow spread",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(4),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcSelect, select",elem:'',name:"Box-Shadow Color",info:"The box shadow color",create:this.addColorControl,parser:this._parseBoxShadowColor,attribute:"box-shadow",append:!0,grouped:!0,value:""}]},{name:"Buttons",create:this.addTab,controls:[{name:"Button Controls",create:this.addSpacer},{create:this.addTabFrame,controls:[{name:"Button Normal State",create:this.addTab,controls:[{name:"Button Normal State",create:this.addSpacer},{selector:".wcButton:focus, button:focus",attribute:"outline",value:"0"},{selector:".wcButton, button",elem:'',name:"Font Family",info:"The font family of the control",create:this.addTextControl,attribute:"font-family",value:""},{selector:".wcButton, button",elem:'',name:"Font Weight",info:"The font weight of the control",create:this.addListControl(this._fontWeights),attribute:"font-weight",value:""},{selector:".wcButton, button",elem:'',name:"Font Size",info:"The font size of the control",create:this.addPixelControl,attribute:"font-size",value:""},{selector:".wcButton, button",elem:'',name:"Font Color",info:"The font color of the control",create:this.addColorControl,attribute:"color",value:""},{name:"",create:this.addSpacer},{selector:".wcButton, button",elem:'',name:"Color",info:"The color of the control",create:this.addColorControl,attribute:"background-color",value:""},{name:"",create:this.addSpacer},{selector:".wcButton, button",elem:'',name:"Border Style",info:"The border style of the control",create:this.addListControl(this._borderStyles),attribute:"border-style",value:""},{selector:".wcButton, button",elem:'',name:"Border Size",info:"The border size of the control",create:this.addPixelControl,attribute:"border-width",value:"0px",mobileValue:"0px"},{selector:".wcButton, button",elem:'',name:"Border Radius",info:"The border radius of the control",create:this.addPixelControl,attribute:"border-radius",value:"0px",mobileValue:"0px"},{selector:".wcButton, button",elem:'',name:"Border Color",info:"The border color of the control",create:this.addColorControl,attribute:"border-color",value:""},{name:"",create:this.addSpacer},{selector:".wcButton, button",elem:'',name:"Box-Shadow Style",info:"The box shadow style",create:this.addListControl(this._shadowStyle),parser:this._parseBoxShadowStyle,attribute:"box-shadow",value:""},{selector:".wcButton, button",elem:'',name:"Box-Shadow Left Offset",info:"The box shadow horizontal offset from the left (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(1),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcButton, button",elem:'',name:"Box-Shadow Top Offset",info:"The box shadow vertical offset from the top (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(2),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcButton, button",elem:'',name:"Box-Shadow Blur",info:"The box shadow blur",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(3),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcButton, button",elem:'',name:"Box-Shadow Spread",info:"The box shadow spread",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(4),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcButton, button",elem:'',name:"Box-Shadow Color",info:"The box shadow color",create:this.addColorControl,parser:this._parseBoxShadowColor,attribute:"box-shadow",append:!0,grouped:!0,value:""}]},{name:"Button Hover State",create:this.addTab,controls:[{name:"Button Hover State",create:this.addSpacer},{selector:".wcButtonHover, .wcButton:hover, button:hover",elem:'',name:"Font Family",info:"The font family of the control",create:this.addTextControl,attribute:"font-family",value:""},{selector:".wcButtonHover, .wcButton:hover, button:hover",elem:'',name:"Font Weight",info:"The font weight of the control",create:this.addListControl(this._fontWeights),attribute:"font-weight",value:""},{selector:".wcButtonHover, .wcButton:hover, button:hover",elem:'',name:"Font Size",info:"The font size of the control",create:this.addPixelControl,attribute:"font-size",value:""},{selector:".wcButtonHover, .wcButton:hover, button:hover",elem:'',name:"Font Color",info:"The font color of the control",create:this.addColorControl,attribute:"color",value:""},{name:"",create:this.addSpacer},{selector:".wcButtonHover, .wcButton:hover, button:hover",elem:'',name:"Color",info:"The color of the control",create:this.addColorControl,attribute:"background-color",value:""},{name:"",create:this.addSpacer},{selector:".wcButtonHover, .wcButton:hover, button:hover",elem:'',name:"Border Style",info:"The border style of the control",create:this.addListControl(this._borderStyles),attribute:"border-style",value:""},{selector:".wcButtonHover, .wcButton:hover, button:hover",elem:'',name:"Border Size",info:"The border size of the control",create:this.addPixelControl,attribute:"border-width",value:"0px",mobileValue:"0px"},{selector:".wcButtonHover, .wcButton:hover, button:hover",elem:'',name:"Border Radius",info:"The border radius of the control",create:this.addPixelControl,attribute:"border-radius",value:"0px",mobileValue:"0px"},{selector:".wcButtonHover, .wcButton:hover, button:hover",elem:'',name:"Border Color",info:"The border color of the control",create:this.addColorControl,attribute:"border-color",value:""},{name:"",create:this.addSpacer},{selector:".wcButtonHover, .wcButton:hover, button:hover",elem:'',name:"Box-Shadow Style",info:"The box shadow style",create:this.addListControl(this._shadowStyle),parser:this._parseBoxShadowStyle,attribute:"box-shadow",value:""},{selector:".wcButtonHover, .wcButton:hover, button:hover",elem:'',name:"Box-Shadow Left Offset",info:"The box shadow horizontal offset from the left (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(1),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcButtonHover, .wcButton:hover, button:hover",elem:'',name:"Box-Shadow Top Offset",info:"The box shadow vertical offset from the top (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(2),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcButtonHover, .wcButton:hover, button:hover",elem:'',name:"Box-Shadow Blur",info:"The box shadow blur",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(3),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcButtonHover, .wcButton:hover, button:hover",elem:'',name:"Box-Shadow Spread",info:"The box shadow spread",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(4),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcButtonHover, .wcButton:hover, button:hover",elem:'',name:"Box-Shadow Color",info:"The box shadow color",create:this.addColorControl,parser:this._parseBoxShadowColor,attribute:"box-shadow",append:!0,grouped:!0,value:""}]},{name:"Button Active State",create:this.addTab,controls:[{name:"Button Active State",create:this.addSpacer},{selector:".wcButtonActive, .wcButton:active, button:active",elem:'',name:"Font Family",info:"The font family of the control",create:this.addTextControl,attribute:"font-family",value:""},{selector:".wcButtonActive, .wcButton:active, button:active",elem:'',name:"Font Weight",info:"The font weight of the control",create:this.addListControl(this._fontWeights),attribute:"font-weight",value:""},{selector:".wcButtonActive, .wcButton:active, button:active",elem:'',name:"Font Size",info:"The font size of the control",create:this.addPixelControl,attribute:"font-size",value:""},{selector:".wcButtonActive, .wcButton:active, button:active",elem:'',name:"Font Color",info:"The font color of the control",create:this.addColorControl,attribute:"color",value:""},{name:"",create:this.addSpacer},{selector:".wcButtonActive, .wcButton:active, button:active",elem:'',name:"Color",info:"The color of the control",create:this.addColorControl,attribute:"background-color",value:""},{name:"",create:this.addSpacer},{selector:".wcButtonActive, .wcButton:active, button:active",elem:'',name:"Border Style",info:"The border style of the control",create:this.addListControl(this._borderStyles),attribute:"border-style",value:""},{selector:".wcButtonActive, .wcButton:active, button:active",elem:'',name:"Border Size",info:"The border size of the control",create:this.addPixelControl,attribute:"border-width",value:"0px",mobileValue:"0px"},{selector:".wcButtonActive, .wcButton:active, button:active",elem:'',name:"Border Radius",info:"The border radius of the control",create:this.addPixelControl,attribute:"border-radius",value:"0px",mobileValue:"0px"},{selector:".wcButtonActive, .wcButton:active, button:active",elem:'',name:"Border Color",info:"The border color of the control",create:this.addColorControl,attribute:"border-color",value:""},{name:"",create:this.addSpacer},{selector:".wcButtonActive, .wcButton:active, button:active",elem:'',name:"Box-Shadow Style",info:"The box shadow style",create:this.addListControl(this._shadowStyle),parser:this._parseBoxShadowStyle,attribute:"box-shadow",value:""},{selector:".wcButtonActive, .wcButton:active, button:active",elem:'',name:"Box-Shadow Left Offset",info:"The box shadow horizontal offset from the left (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(1),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcButtonActive, .wcButton:active, button:active",elem:'',name:"Box-Shadow Top Offset",info:"The box shadow vertical offset from the top (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(2),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcButtonActive, .wcButton:active, button:active",elem:'',name:"Box-Shadow Blur",info:"The box shadow blur",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(3),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcButtonActive, .wcButton:active, button:active",elem:'',name:"Box-Shadow Spread",info:"The box shadow spread",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(4),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcButtonActive, .wcButton:active, button:active",elem:'',name:"Box-Shadow Color",info:"The box shadow color",create:this.addColorControl,parser:this._parseBoxShadowColor,attribute:"box-shadow",append:!0,grouped:!0,value:""}]},{name:"Button Active Hover State",create:this.addTab,controls:[{name:"Button Active Hover State",create:this.addSpacer},{selector:".wcButtonActive.wcButtonHover, .wcButton:hover.wcButtonActive, .wcButton:active.wcButtonHover, .wcButton:active:hover, button:active:hover",elem:'',name:"Font Family",info:"The font family of the control",create:this.addTextControl,attribute:"font-family",value:""},{selector:".wcButtonActive.wcButtonHover, .wcButton:hover.wcButtonActive, .wcButton:active.wcButtonHover, .wcButton:active:hover, button:active:hover",elem:'',name:"Font Weight",info:"The font weight of the control",create:this.addListControl(this._fontWeights),attribute:"font-weight",value:""},{selector:".wcButtonActive.wcButtonHover, .wcButton:hover.wcButtonActive, .wcButton:active.wcButtonHover, .wcButton:active:hover, button:active:hover",elem:'',name:"Font Size",info:"The font size of the control",create:this.addPixelControl,attribute:"font-size",value:""},{selector:".wcButtonActive.wcButtonHover, .wcButton:hover.wcButtonActive, .wcButton:active.wcButtonHover, .wcButton:active:hover, button:active:hover",elem:'',name:"Font Color",info:"The font color of the control",create:this.addColorControl,attribute:"color",value:""},{name:"",create:this.addSpacer},{selector:".wcButtonActive.wcButtonHover, .wcButton:hover.wcButtonActive, .wcButton:active.wcButtonHover, .wcButton:active:hover, button:active:hover",elem:'',name:"Color",info:"The color of the control",create:this.addColorControl,attribute:"background-color",value:""},{name:"",create:this.addSpacer},{selector:".wcButtonActive.wcButtonHover, .wcButton:hover.wcButtonActive, .wcButton:active.wcButtonHover, .wcButton:active:hover, button:active:hover",elem:'',name:"Border Style",info:"The border style of the control",create:this.addListControl(this._borderStyles),attribute:"border-style",value:""},{selector:".wcButtonActive.wcButtonHover, .wcButton:hover.wcButtonActive, .wcButton:active.wcButtonHover, .wcButton:active:hover, button:active:hover",elem:'',name:"Border Size",info:"The border size of the control",create:this.addPixelControl,attribute:"border-width",value:"0px",mobileValue:"0px"},{selector:".wcButtonActive.wcButtonHover, .wcButton:hover.wcButtonActive, .wcButton:active.wcButtonHover, .wcButton:active:hover, button:active:hover",elem:'',name:"Border Radius",info:"The border radius of the control",create:this.addPixelControl,attribute:"border-radius",value:"0px",mobileValue:"0px"},{selector:".wcButtonActive.wcButtonHover, .wcButton:hover.wcButtonActive, .wcButton:active.wcButtonHover, .wcButton:active:hover, button:active:hover",elem:'',name:"Border Color",info:"The border color of the control",create:this.addColorControl,attribute:"border-color",value:""},{name:"",create:this.addSpacer},{selector:".wcButtonActive.wcButtonHover, .wcButton:hover.wcButtonActive, .wcButton:active.wcButtonHover, .wcButton:active:hover, button:active:hover",elem:'',name:"Box-Shadow Style",info:"The box shadow style",create:this.addListControl(this._shadowStyle),parser:this._parseBoxShadowStyle,attribute:"box-shadow",value:""},{selector:".wcButtonActive.wcButtonHover, .wcButton:hover.wcButtonActive, .wcButton:active.wcButtonHover, .wcButton:active:hover, button:active:hover",elem:'',name:"Box-Shadow Left Offset",info:"The box shadow horizontal offset from the left (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(1),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcButtonActive.wcButtonHover, .wcButton:hover.wcButtonActive, .wcButton:active.wcButtonHover, .wcButton:active:hover, button:active:hover",elem:'',name:"Box-Shadow Top Offset",info:"The box shadow vertical offset from the top (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(2),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcButtonActive.wcButtonHover, .wcButton:hover.wcButtonActive, .wcButton:active.wcButtonHover, .wcButton:active:hover, button:active:hover",elem:'',name:"Box-Shadow Blur",info:"The box shadow blur",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(3),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcButtonActive.wcButtonHover, .wcButton:hover.wcButtonActive, .wcButton:active.wcButtonHover, .wcButton:active:hover, button:active:hover",elem:'',name:"Box-Shadow Spread",info:"The box shadow spread",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(4),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcButtonActive.wcButtonHover, .wcButton:hover.wcButtonActive, .wcButton:active.wcButtonHover, .wcButton:active:hover, button:active:hover",elem:'',name:"Box-Shadow Color",info:"The box shadow color",create:this.addColorControl,parser:this._parseBoxShadowColor,attribute:"box-shadow",append:!0,grouped:!0,value:""}]},{name:"Button Disabled State",create:this.addTab,controls:[{name:"Button Disabled State",create:this.addSpacer},{selector:".wcButtonDisabled, .wcButton.disabled, button.disabled, button:disabled",elem:'',name:"Font Family",info:"The font family of the control",create:this.addTextControl,attribute:"font-family",value:""},{selector:".wcButtonDisabled, .wcButton.disabled, button.disabled, button:disabled",elem:'',name:"Font Weight",info:"The font weight of the control",create:this.addListControl(this._fontWeights),attribute:"font-weight",value:""},{selector:".wcButtonDisabled, .wcButton.disabled, button.disabled, button:disabled",elem:'',name:"Font Size",info:"The font size of the control",create:this.addPixelControl,attribute:"font-size",value:""},{selector:".wcButtonDisabled, .wcButton.disabled, button.disabled, button:disabled",elem:'',name:"Font Color",info:"The font color of the control",create:this.addColorControl,attribute:"color",value:""},{name:"",create:this.addSpacer},{selector:".wcButtonDisabled, .wcButton.disabled, button.disabled, button:disabled",elem:'',name:"Color",info:"The color of the control",create:this.addColorControl,attribute:"background-color",value:""},{name:"",create:this.addSpacer},{selector:".wcButtonDisabled, .wcButton.disabled, button.disabled, button:disabled",elem:'',name:"Border Style",info:"The border style of the control",create:this.addListControl(this._borderStyles),attribute:"border-style",value:""},{selector:".wcButtonDisabled, .wcButton.disabled, button.disabled, button:disabled",elem:'',name:"Border Size",info:"The border size of the control",create:this.addPixelControl,attribute:"border-width",value:"0px",mobileValue:"0px"},{selector:".wcButtonDisabled, .wcButton.disabled, button.disabled, button:disabled",elem:'',name:"Border Radius",info:"The border radius of the control",create:this.addPixelControl,attribute:"border-radius",value:"0px",mobileValue:"0px"},{selector:".wcButtonDisabled, .wcButton.disabled, button.disabled, button:disabled",elem:'',name:"Border Color",info:"The border color of the control",create:this.addColorControl,attribute:"border-color",value:""},{name:"",create:this.addSpacer},{selector:".wcButtonDisabled, .wcButton.disabled, button.disabled, button:disabled",elem:'',name:"Box-Shadow Style",info:"The box shadow style",create:this.addListControl(this._shadowStyle),parser:this._parseBoxShadowStyle,attribute:"box-shadow",value:""},{selector:".wcButtonDisabled, .wcButton.disabled, button.disabled, button:disabled",elem:'',name:"Box-Shadow Left Offset",info:"The box shadow horizontal offset from the left (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(1),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcButtonDisabled, .wcButton.disabled, button.disabled, button:disabled",elem:'',name:"Box-Shadow Top Offset",info:"The box shadow vertical offset from the top (can be negative)",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(2),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcButtonDisabled, .wcButton.disabled, button.disabled, button:disabled",elem:'',name:"Box-Shadow Blur",info:"The box shadow blur",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(3),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcButtonDisabled, .wcButton.disabled, button.disabled, button:disabled",elem:'',name:"Box-Shadow Spread",info:"The box shadow spread",create:this.addPixelControl,parser:this._parseBoxShadowAttribute(4),attribute:"box-shadow",append:!0,grouped:!0,value:"0px",mobileValue:"0px"},{selector:".wcButtonDisabled, .wcButton.disabled, button.disabled, button:disabled",elem:'',name:"Box-Shadow Color",info:"The box shadow color",create:this.addColorControl,parser:this._parseBoxShadowColor,attribute:"box-shadow",append:!0,grouped:!0,value:""}]}]}]}]}]}]}]}});return o}),e.config({baseUrl:"./bower_components",shim:{lodash:{exports:"_"}},packages:[{name:"dcl",location:"./dcl"},{name:"wcDocker",location:"../Code"},{name:"lodash",location:"./lodash-compat"}]}),e.config({config:{}}),e(["wcDocker/docker","wcDocker/splitter","wcDocker/tabframe","wcDocker/iframe","wcDocker/ThemeBuilder"],function(t,e,a,r,o){window.wcDocker=t,window.wcSplitter=e,window.wcTabFrame=a,window.wcIFrame=r,window.wcThemeBuilder=o,console.log("exported wcDocker")},void 0,!0),a("wcDockerLibrary",function(){})}(); \ No newline at end of file