Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@evs-chris/raui

Package Overview
Dependencies
Maintainers
1
Versions
173
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@evs-chris/raui - npm Package Compare versions

Comparing version 0.4.2 to 0.4.3

15

es/Shell.js

@@ -38,7 +38,7 @@ import Ractive from 'ractive';

Ractive.extendWith(Shell, {
template: {v:4,t:[{t:7,e:"div",m:[{t:13,n:"class",f:"rshell",g:1},{t:16,r:"extra-attributes"},{n:"tracked",t:71,f:{r:[],s:"[\"outer\"]"}},{n:"class-rshell-left-popped",t:13,f:[{t:2,r:".leftPop"}]},{n:"class-rshell-right-popped",t:13,f:[{t:2,r:".rightPop"}]}],f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rshell-sizer",g:1},{n:"tracked",t:71,f:{r:[],s:"[\"sizer\"]"}}]}," ",{t:7,e:"div",m:[{t:13,n:"class",f:"rshell-main",g:1}],f:[{t:4,f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rshell-top",g:1},{n:"class-rshell-overflow",t:13,f:[{t:2,r:"~/topOverflow"}]},{t:4,f:[{t:16,r:"._topA"}],n:50,r:"._topA"}],f:[{t:16,r:"._top"}]}],n:50,r:"._top"}," ",{t:7,e:"div",m:[{t:13,n:"class",f:"rshell-middle",g:1},{n:"class-rshell-has-left",t:13,f:[{t:2,x:{r:["._left","._leftOver",".leftOver"],s:"_0&&!_1&&!_2"}}]},{n:"class-rshell-has-right",t:13,f:[{t:2,x:{r:["._right","._rightOver",".rightOver"],s:"_0&&!_1&&!_2"}}]},{n:"class-rshell-left-hidden",t:13,f:[{t:2,r:".leftHidden"}]},{n:"class-rshell-right-hidden",t:13,f:[{t:2,r:".rightHidden"}]}],f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rshell-modal",g:1},{n:"class-rshell-blocked",t:13,f:[{t:2,x:{r:[".blocked",".blockableLeft",".leftPull",".blockableRight",".rightPull"],s:"_0||(_1&&_2)||(_3&&_4)"}}]},{n:["click"],t:70,f:{r:["@this",".leftOver","._leftOver",".leftHidden",".rightOver","._rightOver",".rightHidden"],s:"[_0.set({leftHidden:_1||_2?true:_3,rightHidden:_4||_5?true:_6})]"}},{n:["swipeleft"],t:70,a:{r:[],s:"[{bind:\".leftPush\"}]"},f:{r:["@this"],s:"[_0.set(\"leftHidden\",true)]"}},{n:["swiperight"],t:70,a:{r:[],s:"[{bind:\".rightPush\"}]"},f:{r:["@this"],s:"[_0.set(\"rightHidden\",true)]"}},{t:4,f:[{n:"style-transition",f:"none",t:13},{n:"style-opacity",f:[{t:2,x:{r:[".leftPull",".rightPull"],s:"Math.min(_0||_1,100)/200"}}],t:13}],n:50,x:{r:[".leftPull",".rightPull"],s:"_0||_1"}}]}," ",{t:4,f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rshell-left",g:1},{n:"tracked",t:71,f:{r:[],s:"[\"left\"]"}},{t:4,f:[{t:16,r:"._leftA"}],n:50,r:"._leftA"},{n:["swipeleft"],t:70,a:{r:[],s:"[{bind:\".leftPush\"}]"},f:{r:["@this"],s:"[_0.set(\"leftHidden\",true)]"}},{t:4,f:[{n:"style-transition",f:"none",t:13},{n:"style-transform",f:["translate(-",{t:2,x:{r:[".leftPull"],s:"100-(_0>100?100:_0)"}},"%)"],t:13}],n:50,r:".leftPull"},{t:4,f:[{n:"style-transition",f:"none",t:13},{n:"style-transform",f:["translate(-",{t:2,x:{r:[".leftPush"],s:"_0>100?100:_0"}},"%)"],t:13}],n:50,r:".leftPush"},{n:"class-rshell-overflow",t:13,f:[{t:2,r:"~/leftOverflow"}]}],f:[{t:16,r:"._left"}]}],n:50,r:"._left"}," ",{t:4,f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rshell-center",g:1},{n:"tracked",t:71,f:{r:[],s:"[\"center\"]"}},{t:4,f:[{t:16,r:"._centerA"}],n:50,r:"._centerA"},{t:4,f:[{n:["swiperight"],t:70,a:{r:[],s:"[{maxX:80,bind:\".leftPull\"}]"},f:{r:["@this"],s:"[_0.set(\"leftHidden\",false)]"}}],n:50,x:{r:["._left",".leftHidden"],s:"_0&&_1"}},{t:4,f:[{n:["swipeleft"],t:70,a:{r:[],s:"[{minX:-80,bind:\".rightPull\"}]"},f:{r:["@this"],s:"[_0.set(\"rightHidden\",false)]"}}],n:50,x:{r:["._right",".rightHidden"],s:"_0&&_1"}},{n:"class-rshell-overflow",t:13,f:[{t:2,r:"~/centerOverflow"}]}],f:[{t:16,r:"._center"}]}],n:50,r:"._center"}," ",{t:4,f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rshell-right",g:1},{n:"tracked",t:71,f:{r:[],s:"[\"right\"]"}},{t:4,f:[{t:16,r:"._rightA"}],n:50,r:"._rightA"},{n:["swiperight"],t:70,a:{r:[],s:"[{bind:\".rightPush\"}]"},f:{r:["@this"],s:"[_0.set(\"rightHidden\",true)]"}},{t:4,f:[{n:"style-transition",f:"none",t:13},{n:"style-transform",f:["translate(",{t:2,x:{r:[".rightPull"],s:"100-(_0>100?100:_0)"}},"%)"],t:13}],n:50,r:".rightPull"},{t:4,f:[{n:"style-transition",f:"none",t:13},{n:"style-transform",f:["translate(",{t:2,x:{r:[".rightPush"],s:"_0>100?100:_0"}},"%)"],t:13}],n:50,r:".rightPush"},{n:"class-rshell-overflow",t:13,f:[{t:2,r:"~/rightOverflow"}]}],f:[{t:16,r:"._right"}]}],n:50,r:"._right"}]}," ",{t:4,f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rshell-bottom",g:1},{t:4,f:[{t:16,r:"._bottomA"}],n:50,r:"._bottomA"},{n:"class-rshell-overflow",t:13,f:[{t:2,r:"~/bottomOverflow"}]}],f:[{t:16,r:"._bottom"}]}],n:50,r:"._bottom"}]}," ",{t:4,f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rshell-left-pop",g:1},{t:4,f:[{t:16,r:"._leftPopA"}],n:50,r:"._leftPopA"}],f:[{t:16,r:"._leftPop"}]}],n:50,r:"._leftPop"}," ",{t:4,f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rshell-right-pop",g:1},{t:4,f:[{t:16,r:"._rightPopA"}],n:50,r:"._rightPopA"}],f:[{t:16,r:"._rightPop"}]}],n:50,r:"._rightPop"}]}],e:{"[\"outer\"]":function (){return(["outer"]);},"[\"sizer\"]":function (){return(["sizer"]);},"_0&&!_1&&!_2":function (_0,_1,_2){return(_0&&!_1&&!_2);},"_0||(_1&&_2)||(_3&&_4)":function (_0,_1,_2,_3,_4){return(_0||(_1&&_2)||(_3&&_4));},"[_0.set({leftHidden:_1||_2?true:_3,rightHidden:_4||_5?true:_6})]":function (_0,_1,_2,_3,_4,_5,_6){return([_0.set({leftHidden:_1||_2?true:_3,rightHidden:_4||_5?true:_6})]);},"[{bind:\".leftPush\"}]":function (){return([{bind:".leftPush"}]);},"[_0.set(\"leftHidden\",true)]":function (_0){return([_0.set("leftHidden",true)]);},"[{bind:\".rightPush\"}]":function (){return([{bind:".rightPush"}]);},"[_0.set(\"rightHidden\",true)]":function (_0){return([_0.set("rightHidden",true)]);},"Math.min(_0||_1,100)/200":function (_0,_1){return(Math.min(_0||_1,100)/200);},"_0||_1":function (_0,_1){return(_0||_1);},"[\"left\"]":function (){return(["left"]);},"100-(_0>100?100:_0)":function (_0){return(100-(_0>100?100:_0));},"_0>100?100:_0":function (_0){return(_0>100?100:_0);},"[\"center\"]":function (){return(["center"]);},"[{maxX:80,bind:\".leftPull\"}]":function (){return([{maxX:80,bind:".leftPull"}]);},"[_0.set(\"leftHidden\",false)]":function (_0){return([_0.set("leftHidden",false)]);},"_0&&_1":function (_0,_1){return(_0&&_1);},"[{minX:-80,bind:\".rightPull\"}]":function (){return([{minX:-80,bind:".rightPull"}]);},"[_0.set(\"rightHidden\",false)]":function (_0){return([_0.set("rightHidden",false)]);},"[\"right\"]":function (){return(["right"]);}}}, css: function(data) { return [(function(data) {
template: {v:4,t:[{t:7,e:"div",m:[{t:13,n:"class",f:"rshell",g:1},{t:16,r:"extra-attributes"},{n:"tracked",t:71,f:{r:[],s:"[\"outer\"]"}},{n:"class-rshell-left-popped",t:13,f:[{t:2,r:".leftPop"}]},{n:"class-rshell-right-popped",t:13,f:[{t:2,r:".rightPop"}]},{n:"class-rshell-top-popped",t:13,f:[{t:2,r:".topPop"}]},{n:"class-rshell-bottom-popped",t:13,f:[{t:2,r:".bottomPop"}]}],f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rshell-sizer",g:1},{n:"tracked",t:71,f:{r:[],s:"[\"sizer\"]"}}]}," ",{t:7,e:"div",m:[{t:13,n:"class",f:"rshell-main",g:1}],f:[{t:4,f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rshell-top",g:1},{n:"class-rshell-overflow",t:13,f:[{t:2,r:"~/topOverflow"}]},{t:4,f:[{t:16,r:"._topA"}],n:50,r:"._topA"}],f:[{t:16,r:"._top"}]}],n:50,r:"._top"}," ",{t:7,e:"div",m:[{t:13,n:"class",f:"rshell-middle",g:1},{n:"class-rshell-has-left",t:13,f:[{t:2,x:{r:["._left","._leftOver",".leftOver"],s:"_0&&!_1&&!_2"}}]},{n:"class-rshell-has-right",t:13,f:[{t:2,x:{r:["._right","._rightOver",".rightOver"],s:"_0&&!_1&&!_2"}}]},{n:"class-rshell-left-hidden",t:13,f:[{t:2,r:".leftHidden"}]},{n:"class-rshell-right-hidden",t:13,f:[{t:2,r:".rightHidden"}]}],f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rshell-modal",g:1},{n:"class-rshell-blocked",t:13,f:[{t:2,x:{r:[".blocked",".blockableLeft",".leftPull",".blockableRight",".rightPull"],s:"_0||(_1&&_2)||(_3&&_4)"}}]},{n:["click"],t:70,f:{r:["@this",".leftOver","._leftOver",".leftHidden",".rightOver","._rightOver",".rightHidden"],s:"[_0.set({leftHidden:_1||_2?true:_3,rightHidden:_4||_5?true:_6})]"}},{n:["swipeleft"],t:70,a:{r:[],s:"[{bind:\".leftPush\"}]"},f:{r:["@this"],s:"[_0.set(\"leftHidden\",true)]"}},{n:["swiperight"],t:70,a:{r:[],s:"[{bind:\".rightPush\"}]"},f:{r:["@this"],s:"[_0.set(\"rightHidden\",true)]"}},{t:4,f:[{n:"style-transition",f:"none",t:13},{n:"style-opacity",f:[{t:2,x:{r:[".leftPull",".rightPull"],s:"Math.min(_0||_1,100)/200"}}],t:13}],n:50,x:{r:[".leftPull",".rightPull"],s:"_0||_1"}}]}," ",{t:4,f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rshell-left",g:1},{n:"tracked",t:71,f:{r:[],s:"[\"left\"]"}},{t:4,f:[{t:16,r:"._leftA"}],n:50,r:"._leftA"},{n:["swipeleft"],t:70,a:{r:[],s:"[{bind:\".leftPush\"}]"},f:{r:["@this"],s:"[_0.set(\"leftHidden\",true)]"}},{t:4,f:[{n:"style-transition",f:"none",t:13},{n:"style-transform",f:["translate(-",{t:2,x:{r:[".leftPull"],s:"100-(_0>100?100:_0)"}},"%)"],t:13}],n:50,r:".leftPull"},{t:4,f:[{n:"style-transition",f:"none",t:13},{n:"style-transform",f:["translate(-",{t:2,x:{r:[".leftPush"],s:"_0>100?100:_0"}},"%)"],t:13}],n:50,r:".leftPush"},{n:"class-rshell-overflow",t:13,f:[{t:2,r:"~/leftOverflow"}]}],f:[{t:16,r:"._left"}]}],n:50,r:"._left"}," ",{t:4,f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rshell-center",g:1},{n:"tracked",t:71,f:{r:[],s:"[\"center\"]"}},{t:4,f:[{t:16,r:"._centerA"}],n:50,r:"._centerA"},{t:4,f:[{n:["swiperight"],t:70,a:{r:[],s:"[{maxX:80,bind:\".leftPull\"}]"},f:{r:["@this"],s:"[_0.set(\"leftHidden\",false)]"}}],n:50,x:{r:["._left",".leftHidden"],s:"_0&&_1"}},{t:4,f:[{n:["swipeleft"],t:70,a:{r:[],s:"[{minX:-80,bind:\".rightPull\"}]"},f:{r:["@this"],s:"[_0.set(\"rightHidden\",false)]"}}],n:50,x:{r:["._right",".rightHidden"],s:"_0&&_1"}},{n:"class-rshell-overflow",t:13,f:[{t:2,r:"~/centerOverflow"}]}],f:[{t:16,r:"._center"}]}],n:50,r:"._center"}," ",{t:4,f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rshell-right",g:1},{n:"tracked",t:71,f:{r:[],s:"[\"right\"]"}},{t:4,f:[{t:16,r:"._rightA"}],n:50,r:"._rightA"},{n:["swiperight"],t:70,a:{r:[],s:"[{bind:\".rightPush\"}]"},f:{r:["@this"],s:"[_0.set(\"rightHidden\",true)]"}},{t:4,f:[{n:"style-transition",f:"none",t:13},{n:"style-transform",f:["translate(",{t:2,x:{r:[".rightPull"],s:"100-(_0>100?100:_0)"}},"%)"],t:13}],n:50,r:".rightPull"},{t:4,f:[{n:"style-transition",f:"none",t:13},{n:"style-transform",f:["translate(",{t:2,x:{r:[".rightPush"],s:"_0>100?100:_0"}},"%)"],t:13}],n:50,r:".rightPush"},{n:"class-rshell-overflow",t:13,f:[{t:2,r:"~/rightOverflow"}]}],f:[{t:16,r:"._right"}]}],n:50,r:"._right"}]}," ",{t:4,f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rshell-bottom",g:1},{t:4,f:[{t:16,r:"._bottomA"}],n:50,r:"._bottomA"},{n:"class-rshell-overflow",t:13,f:[{t:2,r:"~/bottomOverflow"}]}],f:[{t:16,r:"._bottom"}]}],n:50,r:"._bottom"}]}," ",{t:4,f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rshell-left-pop",g:1},{t:4,f:[{t:16,r:"._leftPopA"}],n:50,r:"._leftPopA"}],f:[{t:16,r:"._leftPop"}]}],n:50,r:"._leftPop"}," ",{t:4,f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rshell-right-pop",g:1},{t:4,f:[{t:16,r:"._rightPopA"}],n:50,r:"._rightPopA"}],f:[{t:16,r:"._rightPop"}]}],n:50,r:"._rightPop"}," ",{t:4,f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rshell-bottom-pop",g:1},{t:4,f:[{t:16,r:"._bottomPopA"}],n:50,r:"._bottomPopA"}],f:[{t:16,r:"._bottomPop"}]}],n:50,r:"._bottomPop"}," ",{t:4,f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rshell-top-pop",g:1},{t:4,f:[{t:16,r:"._topPopA"}],n:50,r:"._topPopA"}],f:[{t:16,r:"._topPop"}]}],n:50,r:"._topPop"}]}],e:{"[\"outer\"]":function (){return(["outer"]);},"[\"sizer\"]":function (){return(["sizer"]);},"_0&&!_1&&!_2":function (_0,_1,_2){return(_0&&!_1&&!_2);},"_0||(_1&&_2)||(_3&&_4)":function (_0,_1,_2,_3,_4){return(_0||(_1&&_2)||(_3&&_4));},"[_0.set({leftHidden:_1||_2?true:_3,rightHidden:_4||_5?true:_6})]":function (_0,_1,_2,_3,_4,_5,_6){return([_0.set({leftHidden:_1||_2?true:_3,rightHidden:_4||_5?true:_6})]);},"[{bind:\".leftPush\"}]":function (){return([{bind:".leftPush"}]);},"[_0.set(\"leftHidden\",true)]":function (_0){return([_0.set("leftHidden",true)]);},"[{bind:\".rightPush\"}]":function (){return([{bind:".rightPush"}]);},"[_0.set(\"rightHidden\",true)]":function (_0){return([_0.set("rightHidden",true)]);},"Math.min(_0||_1,100)/200":function (_0,_1){return(Math.min(_0||_1,100)/200);},"_0||_1":function (_0,_1){return(_0||_1);},"[\"left\"]":function (){return(["left"]);},"100-(_0>100?100:_0)":function (_0){return(100-(_0>100?100:_0));},"_0>100?100:_0":function (_0){return(_0>100?100:_0);},"[\"center\"]":function (){return(["center"]);},"[{maxX:80,bind:\".leftPull\"}]":function (){return([{maxX:80,bind:".leftPull"}]);},"[_0.set(\"leftHidden\",false)]":function (_0){return([_0.set("leftHidden",false)]);},"_0&&_1":function (_0,_1){return(_0&&_1);},"[{minX:-80,bind:\".rightPull\"}]":function (){return([{minX:-80,bind:".rightPull"}]);},"[_0.set(\"rightHidden\",false)]":function (_0){return([_0.set("rightHidden",false)]);},"[\"right\"]":function (){return(["right"]);}}}, css: function(data) { return [(function(data) {
var left = data('raui.shell.left.width') || data('raui.menu.width') || '18em';
var right = data('raui.shell.right.width') || data('raui.menu.width') || '18em';
var primary = Object.assign({}, data('raui.primary'), data('raui.shell.primary'));
return ("\n .rshell {\n width: 100%;\n height: 100%;\n position: absolute;\n overflow: hidden;\n }\n .rshell-sizer {\n position: absolute;\n }\n .rshell-modal {\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n opacity: 0;\n background-color: #000;\n z-index: -1;\n transition: opacity " + (data('raui.shell.slide.ms') || 400) + "ms ease-in-out, z-index 0s linear " + (data('raui.shell.slide.ms') || 400) + "ms;\n }\n .rshell-modal.rshell-blocked {\n opacity: 0.5;\n z-index: 3;\n transition: opacity " + (data('raui.shell.slide.ms') || 400) + "ms ease-in-out, z-index 0s linear;\n }\n .rshell-main {\n width: 100%;\n height: 100%;\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n overflow: hidden;\n z-index: 1;\n }\n \n .rshell-middle {\n flex-grow: 1;\n position: relative;\n }\n \n .rshell-left, .rshell-right {\n position: absolute;\n top: 0;\n box-sizing: border-box;\n height: 100%;\n overflow: auto;\n z-index: 4;\n background-color: " + (primary.bg || 'inherit') + ";\n transition: transform " + (data('raui.shell.slide.ms') || 400) + "ms ease-in-out;\n }\n .rshell-left {\n left: 0;\n width: " + left + ";\n }\n .rshell-right {\n right: 0;\n width: " + right + ";\n }\n .rshell-left-hidden > .rshell-left {\n transform: translateX(-100%);\n }\n .rshell-right-hidden > .rshell-right {\n transform: translateX(100%);\n }\n .rshell-has-right > .rshell-right,\n .rshell-has-left > .rshell-left {\n z-index: 2;\n }\n .rshell-left-popped > .rshell-main > .rshell-middle > .rshell-left,\n .rshell-left-popped > .rshell-main > .rshell-middle > .rshell-right,\n .rshell-right-popped > .rshell-main > .rshell-middle > .rshell-left,\n .rshell-right-popped > .rshell-main > .rshell-middle > .rshell-right {\n z-index: 2;\n }\n \n .rshell-left-pop, .rshell-right-pop {\n z-index: 5;\n transition: transform " + (data('raui.shell.slide.ms') || 400) + "ms ease-in-out;\n position: absolute;\n top: 0;\n bottom: 0;\n }\n .rshell-left-pop {\n transform: translateX(-100%);\n }\n .rshell-left-popped > .rshell-left-pop {\n transform: none;\n }\n \n .rshell-right-pop {\n transform: translateX(100%);\n right: 0;\n }\n .rshell-right-popped > .rshell-right-pop {\n transform: none;\n }\n \n .rshell-center {\n position: absolute;\n top: 0;\n left: 0;\n z-index: 1;\n box-sizing: border-box;\n transition: left " + (data('raui.shell.slide.ms') || 400) + "ms ease-in-out, width " + (data('raui.shell.slide.ms') || 400) + "ms ease-in-out;\n height: 100%;\n width: 100%;\n flex-grow: 1;\n overflow: auto;\n }\n .rshell-has-left > .rshell-center {\n width: calc(100% - " + left + ");\n left: " + left + ";\n }\n .rshell-has-right > .rshell-center {\n width: calc(100% - " + right + ");\n left: 0;\n }\n .rshell-has-left.rshell-has-right > .rshell-center {\n width: calc(100% - " + left + " - " + right + ");\n left: " + left + ";\n }\n .rshell-has-left.rshell-left-hidden > .rshell-center {\n width: 100%;\n left: 0;\n }\n .rshell-has-right.rshell-right-hidden > .rshell-center {\n width: 100%;\n }\n .rshell-has-left.rshell-has-right.rshell-left-hidden > .rshell-center {\n width: calc(100% - " + right + ");\n left: 0;\n }\n .rshell-has-left.rshell-has-right.rshell-right-hidden > .rshell-center {\n width: calc(100% - " + left + ");\n left: " + left + ";\n }\n .rshell-has-left.rshell-has-right.rshell-left-hidden.rshell-right-hidden > .rshell-center {\n width: 100%;\n left: 0;\n }\n \n .rshell-overflow {\n overflow: visible;\n }\n ");
return ("\n .rshell {\n width: 100%;\n height: 100%;\n position: absolute;\n overflow: hidden;\n }\n .rshell-sizer {\n position: absolute;\n }\n .rshell-modal {\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n opacity: 0;\n background-color: #000;\n z-index: -1;\n transition: opacity " + (data('raui.shell.slide.ms') || 400) + "ms ease-in-out, z-index 0s linear " + (data('raui.shell.slide.ms') || 400) + "ms;\n }\n .rshell-modal.rshell-blocked {\n opacity: 0.5;\n z-index: 3;\n transition: opacity " + (data('raui.shell.slide.ms') || 400) + "ms ease-in-out, z-index 0s linear;\n }\n .rshell-main {\n width: 100%;\n height: 100%;\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n overflow: hidden;\n z-index: 1;\n }\n \n .rshell-middle {\n flex-grow: 1;\n position: relative;\n }\n \n .rshell-left, .rshell-right {\n position: absolute;\n top: 0;\n box-sizing: border-box;\n height: 100%;\n overflow: auto;\n z-index: 4;\n background-color: " + (primary.bg || 'inherit') + ";\n transition: transform " + (data('raui.shell.slide.ms') || 400) + "ms ease-in-out;\n }\n .rshell-left {\n left: 0;\n width: " + left + ";\n }\n .rshell-right {\n right: 0;\n width: " + right + ";\n }\n .rshell-left-hidden > .rshell-left {\n transform: translateX(-100%);\n }\n .rshell-right-hidden > .rshell-right {\n transform: translateX(100%);\n }\n .rshell-has-right > .rshell-right,\n .rshell-has-left > .rshell-left {\n z-index: 2;\n }\n .rshell-left-popped > .rshell-main > .rshell-middle > .rshell-left,\n .rshell-left-popped > .rshell-main > .rshell-middle > .rshell-right,\n .rshell-top-popped > .rshell-main > .rshell-middle > .rshell-left,\n .rshell-top-popped > .rshell-main > .rshell-middle > .rshell-right,\n .rshell-bottom-popped > .rshell-main > .rshell-middle > .rshell-left,\n .rshell-bottom-popped > .rshell-main > .rshell-middle > .rshell-right,\n .rshell-right-popped > .rshell-main > .rshell-middle > .rshell-left,\n .rshell-right-popped > .rshell-main > .rshell-middle > .rshell-right {\n z-index: 2;\n }\n \n .rshell-left-pop, .rshell-right-pop, .rshell-top-pop, .rshell-bottom-pop {\n z-index: 5;\n transition: transform " + (data('raui.shell.slide.ms') || 400) + "ms ease-in-out;\n position: absolute;\n }\n .rshell-left-pop, .rshell-right-pop {\n top: 0;\n bottom: 0;\n max-width: 100%;\n overflow: auto;\n }\n .rshell-top-pop, .rshell-bottom-pop {\n left: 0;\n right: 0;\n max-height: 100%;\n overflow: auto;\n }\n \n .rshell-left-pop {\n transform: translateX(-100%);\n }\n .rshell-right-pop {\n transform: translateX(100%);\n right: 0;\n }\n .rshell-top-pop {\n top: 0;\n transform: translateY(-100%);\n }\n .rshell-bottom-pop {\n bottom: 0;\n transform: translateY(100%);\n }\n \n .rshell-left-popped > .rshell-left-pop,\n .rshell-right-popped > .rshell-right-pop,\n .rshell-top-popped > .rshell-top-pop,\n .rshell-bottom-popped > .rshell-bottom-pop {\n transform: none;\n }\n \n .rshell-center {\n position: absolute;\n top: 0;\n left: 0;\n z-index: 1;\n box-sizing: border-box;\n transition: left " + (data('raui.shell.slide.ms') || 400) + "ms ease-in-out, width " + (data('raui.shell.slide.ms') || 400) + "ms ease-in-out;\n height: 100%;\n width: 100%;\n flex-grow: 1;\n overflow: auto;\n }\n .rshell-has-left > .rshell-center {\n width: calc(100% - " + left + ");\n left: " + left + ";\n }\n .rshell-has-right > .rshell-center {\n width: calc(100% - " + right + ");\n left: 0;\n }\n .rshell-has-left.rshell-has-right > .rshell-center {\n width: calc(100% - " + left + " - " + right + ");\n left: " + left + ";\n }\n .rshell-has-left.rshell-left-hidden > .rshell-center {\n width: 100%;\n left: 0;\n }\n .rshell-has-right.rshell-right-hidden > .rshell-center {\n width: 100%;\n }\n .rshell-has-left.rshell-has-right.rshell-left-hidden > .rshell-center {\n width: calc(100% - " + right + ");\n left: 0;\n }\n .rshell-has-left.rshell-has-right.rshell-right-hidden > .rshell-center {\n width: calc(100% - " + left + ");\n left: " + left + ";\n }\n .rshell-has-left.rshell-has-right.rshell-left-hidden.rshell-right-hidden > .rshell-center {\n width: 100%;\n left: 0;\n }\n \n .rshell-overflow {\n overflow: visible;\n }\n ");
// TODO: other themes

@@ -64,3 +64,3 @@ }).call(this, data)].join(' '); },

blocked: function blocked() {
return (this.get('blockableLeft') && !(this.get('leftHidden')) || (this.get('blockableRight') && !this.get('rightHidden'))) || this.get('leftPop') || this.get('rightPop');
return (this.get('blockableLeft') && !(this.get('leftHidden')) || (this.get('blockableRight') && !this.get('rightHidden'))) || this.get('leftPop') || this.get('rightPop') || this.get('topPop') || this.get('bottomPop');
}

@@ -114,3 +114,3 @@ },

var parts = ['top', 'bottom', 'center', 'left', 'right', 'left-pop', 'right-pop'];
var parts = ['top', 'bottom', 'center', 'left', 'right', 'left-pop', 'right-pop', 'top-pop', 'bottom-pop'];
var skipAttrs = ['hidden', 'primary', 'over', 'popped', 'overflow', 'forced'];

@@ -130,3 +130,3 @@ function construct() {

if (~parts.indexOf(e.e)) {
var name = e.e === 'left-pop' ? 'leftPop' : e.e === 'right-pop' ? 'rightPop' : e.e;
var name = e.e === 'left-pop' ? 'leftPop' : e.e === 'right-pop' ? 'rightPop' : e.e === 'top-pop' ? 'topPop' : e.e === 'bottom-pop' ? 'bottomPop' : e.e;
items[("_" + name)] = { t: e.f };

@@ -172,2 +172,6 @@ if (e.m) {

fn: function fn() {
var outer = r.relativeSize('100%');
if (media.last === outer) { return; }
else { media.last = outer; }
var sizes = {

@@ -180,3 +184,2 @@ left: !r.get('leftOver') && r.left && r.left.clientWidth || 0,

var outer = r.relativeSize('100%');
var primary = r.get('_rightPrimary') ? 'right' : 'left';

@@ -183,0 +186,0 @@ var secondary = primary === 'right' ? 'left' : 'right';

347

es/Table.js

@@ -9,4 +9,5 @@ import Ractive from 'ractive';

// TODO: filters and sorts bound in and with type-specific ops
// TODO: working virtual table
function isString(v) { return typeof v === 'string'; }
function isNumber(v) { return typeof v === 'number'; }
function isObject(v) { return typeof v === 'object'; }

@@ -22,3 +23,3 @@ export var Table = (function (Ractive) {

var sel = this.get('selections');
var visible = this.get('visibleRows');
var visible = this.get('paginate') === 'virtual' ? this.get('rows') : this.get('visibleRows');

@@ -44,3 +45,3 @@ for (var i = 0; i < visible.length; i++) {

var sort = col.sort || col.filter;
if (typeof sort === 'string' && sort[0] === '~') { sort = this.get(sort); }
if (isString(sort) && sort[0] === '~') { sort = this.get(sort); }

@@ -191,4 +192,40 @@ var multi = ev.ctrlKey;

function columnGetter(table, col) {
if (!table || !col) { return; }
var getters = table._getters || (table._getters = {});
var v = col.filter;
if (isString(v) && v.indexOf('~/') === 0) { v = table.get(v); }
var k = Array.isArray(v) ? v.join('.') : isString(v) ? v : false;
if (!k) { return; }
if (!getters[k]) {
if (isString(v)) { v = Ractive.splitKeypath(v); }
getters[k] = function (obj) { return applyPath(obj, v); };
}
return getters[k];
}
function fieldGetter(table, field) {
if (!table || !field) { return; }
var getters = table._getters || (table._getters = {});
var v = field.path;
if (isString(v) && v.indexOf('~/') === 0) { v = table.get(v); }
var k = Array.isArray(v) ? v.join('.') : isString(v) ? v : false;
if (k) {
if (!getters[k]) {
if (isString(v)) { v = Ractive.splitKeypath(v); }
getters[k] = function (obj) { return applyPath(obj, v); };
}
return getters[k];
} else {
v = field.value;
if (isString(v) && v.indexOf('~/') === 0) { v = table.get(v); }
if (typeof v === 'function') { return v; }
}
}
Ractive.extendWith(Table, {
template: {v:4,t:[{t:7,e:"div",m:[{t:13,n:"class",f:"rtable",g:1},{n:"class-rtable-virtual",t:13,f:[{t:2,x:{r:["~/paginate"],s:"_0===\"virtual\""}}]},{n:"class-rtable-auto",t:13,f:[{t:2,x:{r:["~/paginate"],s:"_0===\"auto\""}}]},{n:"class-rtable-fixed",t:13,f:[{t:2,r:"~/fixed"}]},{n:"class-rtable-border",t:13,f:[{t:2,r:"~/border"}]}],f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rtable-top",g:1}],f:[{t:4,f:[{t:8,r:"grid"}],n:50,x:{r:["~/display"],s:"_0===\"grid\""}},{t:4,f:[{t:8,r:"table"}],n:51,l:1}]}," ",{t:8,r:"pagination"}]}],e:{"_0===\"virtual\"":function (_0){return(_0==="virtual");},"_0===\"auto\"":function (_0){return(_0==="auto");},"_0===\"grid\"":function (_0){return(_0==="grid");},"[_0._setSort(_1,_2)]":function (_0,_1,_2){return([_0._setSort(_1,_2)]);},"[_0._select(_1,_2),false]":function (_0,_1,_2){return([_0._select(_1,_2),false]);},"[[\"select\",_2,_0.indexOf(_2),_1.indexOf(_2)]]":function (_0,_1,_2){return([["select",_2,_0.indexOf(_2),_1.indexOf(_2)]]);},"[_0._expand(_1)]":function (_0,_1){return([_0._expand(_1)]);},"_0.indexOf(_1)":function (_0,_1){return(_0.indexOf(_1));},"_0===_1":function (_0,_1){return(_0===_1);},"_0*_1+1":function (_0,_1){return(_0*_1+1);},"_2+1===_0?_1:(_2+1)*_3":function (_0,_1,_2,_3){return(_2+1===_0?_1:(_2+1)*_3);},"_0&&_1":function (_0,_1){return(_0&&_1);},"_0===1":function (_0){return(_0===1);},"_0.allSelected()&&_1<_2":function (_0,_1,_2){return(_0.allSelected()&&_1<_2);},"_0>0":function (_0){return(_0>0);},"[_0.set(\"page\",_1-1)]":function (_0,_1){return([_0.set("page",_1-1)]);},"[(/^\\d+$/.test(_1)&&+_1>0&&+_1<=_0&&_2.set(\"page\",+_1-1))||_2.nodeSet(_3,\"value\",_4+1)]":function (_0,_1,_2,_3,_4){return([(/^\d+$/.test(_1)&&+_1>0&&+_1<=_0&&_2.set("page",+_1-1))||_2.nodeSet(_3,"value",_4+1)]);},"_0==_1+1":function (_0,_1){return(_0==_1+1);},"[_0.set(\"page\",_2[_1-1])]":function (_0,_1,_2){return([_0.set("page",_2[_1-1])]);},"_0===\"...\"":function (_0){return(_0==="...");},"[_0.set(\"page\",_1+1)]":function (_0,_1){return([_0.set("page",_1+1)]);},"_0<_1-1":function (_0,_1){return(_0<_1-1);},"!_0":function (_0){return(!_0);},"_0+(_1?1:0)":function (_0,_1){return(_0+(_1?1:0));}},p:{"csp-dummy":[{t:7,e:"div",m:[{n:["click"],t:70,f:{r:["@this",".index","@event"],s:"[_0._setSort(_1,_2)]"}},{n:["click"],t:70,f:{r:["@this",".","@event"],s:"[_0._select(_1,_2),false]"}},{n:["click"],t:70,f:{r:["~/rows","~/visibleRows","."],s:"[[\"select\",_2,_0.indexOf(_2),_1.indexOf(_2)]]"}},{n:["click"],t:70,f:{r:["@this","@index"],s:"[_0._expand(_1)]"}}]}," ",{t:4,f:["..."],n:50,x:{r:["~/selections","."],s:"_0.indexOf(_1)"}}," ",{t:4,f:["..."],n:50,x:{r:[".","~/expanded"],s:"_0===_1"}}],empty:[{t:7,e:"div",f:[{t:7,e:"div",f:["No data."]}]}],pagination:[{t:7,e:"div",m:[{t:13,n:"class",f:"rtable-bottom",g:1}],f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rtable-info",g:1}],f:[{t:4,f:[{t:2,x:{r:["~/page","~/pagination.per"],s:"_0*_1+1"}}," - ",{t:2,x:{r:["~/pagination.total","~/rows.length","~/page","~/pagination.per"],s:"_2+1===_0?_1:(_2+1)*_3"}}," of ",{t:2,r:"~/rows.length"},{t:4,f:[" (",{t:2,r:"~/items.length"}," total)"],n:50,r:"~/isFiltered"}],n:50,x:{r:["pagination","rows.length"],s:"_0&&_1"}}," ",{t:4,f:["​"],n:50,x:{r:["_paginate"],s:"_0===1"}}]}," ",{t:7,e:"div",m:[{t:13,n:"class",f:"rtable-select-all-all",g:1}],f:[{t:4,f:[{t:2,r:"selections.length"}," of ",{t:2,r:"rows.length"}," selected",{t:4,f:[" - ",{t:7,e:"a",m:[{n:"href",f:"#",t:13,g:1},{n:["click"],t:70,f:"selectAllAll"}],f:["Select All"]}],n:50,x:{r:["@this","selections.length","rows.length"],s:"_0.allSelected()&&_1<_2"}}],n:50,x:{r:["selections.length"],s:"_0>0"}}]}," ",{t:7,e:"div",m:[{t:13,n:"class",f:"rtable-pages",g:1}],f:[{t:4,f:[{t:7,e:"span",m:[{n:["click"],t:70,f:{r:["@this","~/page"],s:"[_0.set(\"page\",_1-1)]"}}],f:["Previous"]}],n:50,x:{r:["~/page"],s:"_0>0"}}," ",{t:4,f:[{t:4,f:[{t:7,e:"input",m:[{n:["change"],t:70,f:{r:["~/pagination.total","@node.value","@this","@node","~/page"],s:"[(/^\\d+$/.test(_1)&&+_1>0&&+_1<=_0&&_2.set(\"page\",+_1-1))||_2.nodeSet(_3,\"value\",_4+1)]"}},{n:"value",f:[{t:2,r:"."}],t:13},{t:73,v:"t",f:"false"}]}],n:50,x:{r:[".","~/page"],s:"_0==_1+1"}},{t:4,f:[{t:7,e:"span",m:[{n:["click"],t:70,f:{r:["@this","@index","../"],s:"[_0.set(\"page\",_2[_1-1])]"}}],f:["..."]}],n:50,x:{r:["."],s:"_0===\"...\""},l:1},{t:4,f:[" ",{t:7,e:"span",m:[{n:["click"],t:70,f:{r:["@this","."],s:"[_0.set(\"page\",_1-1)]"}}],f:[{t:2,r:"."}]}],n:51,l:1}],n:52,r:"~/pagination.array"}," ",{t:4,f:[{t:7,e:"span",m:[{n:["click"],t:70,f:{r:["@this","~/page"],s:"[_0.set(\"page\",_1+1)]"}}],f:["Next"]}],n:50,x:{r:["~/page","~/pagination.total"],s:"_0<_1-1"}}]}]}],grid:[{t:7,e:"div",m:[{t:16,r:"extra-attributes"},{n:"grid",t:71}],f:[{t:8,r:"grid-head"}," ",{t:4,f:[{t:8,r:"grid-row"}],n:52,r:"~/visibleRows"}," ",{t:4,f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rtable-row row t1",g:1}],f:[{t:16,r:"empty"}]}],n:50,x:{r:["~/rows.length"],s:"!_0"}}]}],table:[{t:7,e:"table",m:[{t:16,r:"extra-attributes"}],f:[{t:8,r:"table-head"}," ",{t:4,f:[{t:8,r:"table-row"}],n:52,r:"~/visibleRows"}," ",{t:4,f:[{t:7,e:"tr",m:[{t:13,n:"class",f:"rtable-row",g:1}],f:[{t:7,e:"td",m:[{n:"colspan",f:[{t:2,x:{r:["~/columns.length","~/allowSelect"],s:"_0+(_1?1:0)"}}],t:13}],f:[{t:16,r:"empty"}]}]}],n:50,x:{r:["~/rows.length"],s:"!_0"}}]}]}},
template: {v:4,t:[{t:7,e:"div",m:[{t:13,n:"class",f:"rtable",g:1},{n:"class-rtable-virtual",t:13,f:[{t:2,x:{r:["~/paginate"],s:"_0===\"virtual\""}}]},{n:"class-rtable-auto",t:13,f:[{t:2,x:{r:["~/paginate"],s:"_0===\"auto\""}}]},{n:"class-rtable-fixed",t:13,f:[{t:2,r:"~/fixed"}]},{n:"class-rtable-border",t:13,f:[{t:2,r:"~/border"}]}],f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rtable-top",g:1},{t:4,f:[{n:["scroll"],t:70,f:"scroll"}],n:50,x:{r:["~/paginate"],s:"_0===\"virtual\""}}],f:[{t:4,f:[{t:8,r:"grid"}],n:50,x:{r:["~/display"],s:"_0===\"grid\""}},{t:4,f:[{t:8,r:"table"}],n:51,l:1}]}," ",{t:4,f:[{t:8,r:"pagination"}],n:50,x:{r:["~/paginate"],s:"_0!==\"virtual\""}}]}],e:{"_0===\"virtual\"":function (_0){return(_0==="virtual");},"_0===\"auto\"":function (_0){return(_0==="auto");},"_0===\"grid\"":function (_0){return(_0==="grid");},"_0!==\"virtual\"":function (_0){return(_0!=="virtual");},"[_0._setSort(_1,_2)]":function (_0,_1,_2){return([_0._setSort(_1,_2)]);},"[_0._select(_1,_2),false]":function (_0,_1,_2){return([_0._select(_1,_2),false]);},"[[\"select\",_2,_0.indexOf(_2),_1.indexOf(_2)]]":function (_0,_1,_2){return([["select",_2,_0.indexOf(_2),_1.indexOf(_2)]]);},"[_0._expand(_1)]":function (_0,_1){return([_0._expand(_1)]);},"_0.indexOf(_1)":function (_0,_1){return(_0.indexOf(_1));},"_0===_1":function (_0,_1){return(_0===_1);},"_0>0":function (_0){return(_0>0);},"_0*_1+1":function (_0,_1){return(_0*_1+1);},"_2+1===_0?_1:(_2+1)*_3":function (_0,_1,_2,_3){return(_2+1===_0?_1:(_2+1)*_3);},"_0&&_1":function (_0,_1){return(_0&&_1);},"_0===1":function (_0){return(_0===1);},"_0.allSelected()&&_1<_2":function (_0,_1,_2){return(_0.allSelected()&&_1<_2);},"[_0.set(\"page\",_1-1)]":function (_0,_1){return([_0.set("page",_1-1)]);},"[(/^\\d+$/.test(_1)&&+_1>0&&+_1<=_0&&_2.set(\"page\",+_1-1))||_2.nodeSet(_3,\"value\",_4+1)]":function (_0,_1,_2,_3,_4){return([(/^\d+$/.test(_1)&&+_1>0&&+_1<=_0&&_2.set("page",+_1-1))||_2.nodeSet(_3,"value",_4+1)]);},"_0==_1+1":function (_0,_1){return(_0==_1+1);},"[_0.set(\"page\",_2[_1-1])]":function (_0,_1,_2){return([_0.set("page",_2[_1-1])]);},"_0===\"...\"":function (_0){return(_0==="...");},"[_0.set(\"page\",_1+1)]":function (_0,_1){return([_0.set("page",_1+1)]);},"_0<_1-1":function (_0,_1){return(_0<_1-1);},"_0%2===1":function (_0){return(_0%2===1);},"true":function (){return(true);},"!_0":function (_0){return(!_0);},"_0+(_1?1:0)":function (_0,_1){return(_0+(_1?1:0));}},p:{"csp-dummy":[{t:7,e:"div",m:[{n:["click"],t:70,f:{r:["@this",".index","@event"],s:"[_0._setSort(_1,_2)]"}},{n:["click"],t:70,f:{r:["@this",".","@event"],s:"[_0._select(_1,_2),false]"}},{n:["click"],t:70,f:{r:["~/rows","~/visibleRows","."],s:"[[\"select\",_2,_0.indexOf(_2),_1.indexOf(_2)]]"}},{n:["click"],t:70,f:{r:["@this","@index"],s:"[_0._expand(_1)]"}}]}," ",{t:4,f:["..."],n:50,x:{r:["~/selections","."],s:"_0.indexOf(_1)"}}," ",{t:4,f:["..."],n:50,x:{r:[".","~/expanded"],s:"_0===_1"}}," ",{t:4,f:["..."],n:50,x:{r:["~/virtual.offset"],s:"_0>0"}}],empty:[{t:7,e:"div",f:[{t:7,e:"div",f:["No data."]}]}],pagination:[{t:7,e:"div",m:[{t:13,n:"class",f:"rtable-bottom",g:1}],f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rtable-info",g:1}],f:[{t:4,f:[{t:2,x:{r:["~/page","~/pagination.per"],s:"_0*_1+1"}}," - ",{t:2,x:{r:["~/pagination.total","~/rows.length","~/page","~/pagination.per"],s:"_2+1===_0?_1:(_2+1)*_3"}}," of ",{t:2,r:"~/rows.length"},{t:4,f:[" (",{t:2,r:"~/items.length"}," total)"],n:50,r:"~/isFiltered"}],n:50,x:{r:["pagination","rows.length"],s:"_0&&_1"}}," ",{t:4,f:["​"],n:50,x:{r:["_paginate"],s:"_0===1"}}]}," ",{t:7,e:"div",m:[{t:13,n:"class",f:"rtable-select-all-all",g:1}],f:[{t:4,f:[{t:2,r:"selections.length"}," of ",{t:2,r:"rows.length"}," selected",{t:4,f:[" - ",{t:7,e:"a",m:[{n:"href",f:"#",t:13,g:1},{n:["click"],t:70,f:"selectAllAll"}],f:["Select All"]}],n:50,x:{r:["@this","selections.length","rows.length"],s:"_0.allSelected()&&_1<_2"}}],n:50,x:{r:["selections.length"],s:"_0>0"}}]}," ",{t:7,e:"div",m:[{t:13,n:"class",f:"rtable-pages",g:1}],f:[{t:4,f:[{t:7,e:"span",m:[{n:["click"],t:70,f:{r:["@this","~/page"],s:"[_0.set(\"page\",_1-1)]"}}],f:["Previous"]}],n:50,x:{r:["~/page"],s:"_0>0"}}," ",{t:4,f:[{t:4,f:[{t:7,e:"input",m:[{n:["change"],t:70,f:{r:["~/pagination.total","@node.value","@this","@node","~/page"],s:"[(/^\\d+$/.test(_1)&&+_1>0&&+_1<=_0&&_2.set(\"page\",+_1-1))||_2.nodeSet(_3,\"value\",_4+1)]"}},{n:"value",f:[{t:2,r:"."}],t:13},{t:73,v:"t",f:"false"}]}],n:50,x:{r:[".","~/page"],s:"_0==_1+1"}},{t:4,f:[{t:7,e:"span",m:[{n:["click"],t:70,f:{r:["@this","@index","../"],s:"[_0.set(\"page\",_2[_1-1])]"}}],f:["..."]}],n:50,x:{r:["."],s:"_0===\"...\""},l:1},{t:4,f:[" ",{t:7,e:"span",m:[{n:["click"],t:70,f:{r:["@this","."],s:"[_0.set(\"page\",_1-1)]"}}],f:[{t:2,r:"."}]}],n:51,l:1}],n:52,r:"~/pagination.array"}," ",{t:4,f:[{t:7,e:"span",m:[{n:["click"],t:70,f:{r:["@this","~/page"],s:"[_0.set(\"page\",_1+1)]"}}],f:["Next"]}],n:50,x:{r:["~/page","~/pagination.total"],s:"_0<_1-1"}}]}]}],grid:[{t:7,e:"div",m:[{t:16,r:"extra-attributes"},{n:"grid",t:71},{t:4,f:[{n:"style-margin-top",f:[{t:2,r:"~/virtual.above"},"px"],t:13},{n:"style-margin-bottom",f:[{t:2,r:"~/virtual.below"},"px"],t:13}],n:50,x:{r:["~/paginate"],s:"_0===\"virtual\""}}],f:[{t:8,r:"grid-head"}," ",{t:4,f:[{t:7,e:"div",m:[{t:13,n:"style",f:"display: none;",g:1},{t:13,n:"class",f:"row",g:1}]}],n:50,x:{r:["~/virtual.offset"],s:"_0%2===1"}}," ",{t:4,f:[{t:8,r:"grid-row"}],n:52,z:[{n:"source",x:{r:"~/items"}},{n:"shuffle",x:{x:{r:[],s:"true"}}}],r:"~/visibleRows"}," ",{t:4,f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rtable-row row t1",g:1}],f:[{t:16,r:"empty"}]}],n:50,x:{r:["~/rows.length"],s:"!_0"}}]}],table:[{t:7,e:"table",m:[{t:16,r:"extra-attributes"},{t:4,f:[{n:"style-margin-top",f:[{t:2,r:"~/virtual.above"},"px"],t:13},{n:"style-margin-bottom",f:[{t:2,r:"~/virtual.below"},"px"],t:13}],n:50,x:{r:["~/paginate"],s:"_0===\"virtual\""}}],f:[{t:8,r:"table-head"}," ",{t:4,f:[{t:8,r:"table-row"}],n:52,z:[{n:"source",x:{r:"~/items"}},{n:"shuffle",x:{x:{r:[],s:"true"}}}],r:"~/visibleRows"}," ",{t:4,f:[{t:7,e:"tr",m:[{t:13,n:"class",f:"rtable-row",g:1}],f:[{t:7,e:"td",m:[{n:"colspan",f:[{t:2,x:{r:["~/columns.length","~/allowSelect"],s:"_0+(_1?1:0)"}}],t:13}],f:[{t:16,r:"empty"}]}]}],n:50,x:{r:["~/rows.length"],s:"!_0"}}]}]}},
css: function(data) { return [(function(data) {

@@ -214,7 +251,4 @@ var primary = Object.assign({}, data("raui.primary"), data("raui.table.primary"));

config: function config() {
if (this._items) { this.set(this._items); }
if (this._table_row) { this.partials['table-row'] = this._table_row; }
if (this._table_head) { this.partials['table-head'] = this._table_head; }
if (this._grid_row) { this.partials['grid-row'] = this._grid_row; }
if (this._grid_head) { this.partials['grid-head'] = this._grid_head; }
this.set(this._init.sets);
Object.assign(this.partials, this._init.partials);
},

@@ -234,3 +268,3 @@ render: function render() {

} else {
sel = this.get('visibleRows').slice();
sel = (this.get('paginate') === 'virtual' ? this.get('rows') : this.get('visibleRows')).slice();
item = sel[0];

@@ -261,9 +295,10 @@ this.set({

if (v === 'auto' || v instanceof Ractive) {
if (v === 'auto' || v === 'virtual' || v instanceof Ractive) {
if (this._autoObserver) { this._autoObserver.cancel(); } // may be changing instances
if (this._scrollListener) { this._scrollListener.cancel(); }
var root = v === 'auto' ? this.root : v;
var root = v === 'auto' || v === 'virtual' ? this.root : v;
var fn = function () {
if (!this$1.fragment.rendered) { return; }
if (!this$1.rendered) { return; }
var top = this$1.find('.rtable-top');

@@ -293,4 +328,6 @@ if (!top) { return; }

var avg = Math.ceil(rows.reduce(function (a, c) { return a + c; }, 0) / rows.length);
this$1._avgSize = avg;
this$1.set('_paginate', Math.floor((top.clientHeight - header.offsetHeight) / avg));
var fit = Math.floor((top.clientHeight - header.offsetHeight) / avg);
this$1.set('_paginate', v === 'virtual' ? fit * 3 : fit);

@@ -306,2 +343,3 @@ fn.last = size;

tm = null;
if (this$1._scrollListener) { this$1._scrollListener.fn(); }
}, 300);

@@ -312,7 +350,80 @@ }

this._autoObserver.fire = fnd;
} else if (this._autoObserver) {
this._autoObserver.cancel();
if (v === 'virtual') {
var ready = true;
var lock = false;
var delay = 0;
var fn$1 = function () {
if (!this$1.rendered) { return; }
var node = this$1.find('.rtable-top');
if (!ready) {
if (delay < 3) {
delay++;
ready = true;
return setTimeout(fn$1, 20);
}
}
ready = false;
delay = 0;
var top = node.scrollTop;
var offset = this$1.get('virtual.offset');
var visible = this$1.get('_paginate');
var page = visible / 3;
var count = this$1.get('rows.length');
if (visible > count) { visible = count; }
var avg = this$1._avgSize;
var first = Math.floor(top / avg);
var hardFirst = first;
if (first + visible > count) { first = count - visible; }
// check to see if the rendered area is approaching an edge
if (!isNumber(offset) || (first < offset && offset < page) || (offset + visible >= count && hardFirst >= offset) || first < offset - page || hardFirst > offset + page) {
var amtAbove = first - page;
if (amtAbove < 0) { amtAbove = first === 0 ? 0 : first - 1; }
var above = amtAbove * avg;
if (above < avg) { above = 0; }
var below = (count - (hardFirst + visible)) * avg;
if (below < avg) { below = 0; }
this$1.set({
'virtual.above': above,
'virtual.below': below,
'virtual.offset': first
});
}
lock = false;
};
var scroll = this._scrollListener = this.on('scroll', function (ref) {
var node = ref.node;
if (ready) { ready = false; }
else if (!lock) {
ready = true;
lock = true;
setTimeout(fn$1, 40);
}
});
this._scrollListener.fn = fn$1;
scroll.observer = this.observe('rows.length', function () {
fn$1();
}, { init: false, strict: true });
var cancel = scroll.cancel;
scroll.cancel = function () {
cancel();
scroll.observer.cancel();
}
}
fnd();
} else {
if (this._autoObserver) { this._autoObserver.cancel(); }
if (this._scrollListener) { this._scrollListener.cancel(); }
}
if (typeof v === 'number') {
if (isNumber(v)) {
this.set('_paginate', v);

@@ -342,43 +453,98 @@ }

var cols = this.viewmodel.value.columns.filter(function (c) { return c.filter; }).map(function (c) {
var v = c.filter;
if (v.indexOf('~/') === 0) { v = this$1.get(v); }
if (typeof v === 'string') { v = Ractive.splitKeypath(v); }
if (!Array.isArray(v)) { return; }
return v;
}).filter(function (c) { return c; });
var columns = this.viewmodel.value.columns;
var fields = this.viewmodel.value.fields;
var cols = columns.filter(function (c) { return c.filter; }).map(function (c) { return columnGetter(this$1, c); }).filter(function (c) { return c; });
var list = this.get('items') || [];
var src = list;
var filter = this.get('filter');
var sort = this.get('sort');
// TODO: object filter with operators targeting specific cols e.g. age > 20
if (typeof filter === 'string') {
var nocase = filter === filter.toLowerCase() || filter === filter.toUpperCase();
var re = new RegExp(filter, nocase ? 'i' : '');
if (isObject(filter) && !Array.isArray(filter)) { filter = [filter]; }
if (filter instanceof RegExp || isString(filter)) {
var nocase = filter === '' + filter.toLowerCase() || filter === '' + filter.toUpperCase();
var re = isString(filter) ? new RegExp(filter, nocase ? 'i' : '') : filter;
list = list.filter(function (l) {
var i = cols.length;
while (i--) {
var v = applyPath(l, cols[i]);
if (re.test(v)) { return true; }
var v = l && cols[i](l);
if (v && isString(v) && re.test(v)) { return true; }
}
return false;
});
} else if (filter instanceof RegExp) {
list = list.filter(function (l) {
var i = cols.length;
while (i--) {
var v = applyPath(l, cols[i]);
if (l && typeof v === 'string' && filter.test(v)) { return true; }
} else if (Array.isArray(filter)) {
var flts = filter.map(function (f) {
var flt = { op: f.op || '=', value: f.value || '' };
if (f.id) {
var field = columns.find(function (c) { return c.id === f.id; });
if (field) {
flt.get = columnGetter(this$1, field);
if (flt.get) {
flt.type = field.type || 'string';
} else { field = 0; }
}
if (!field) {
field = fields.find(function (c) { return c.id === f.id; });
if (field) {
flt.get = fieldGetter(this$1, field);
flt.type = field.type || 'string';
}
}
}
return flt;
});
var recache = {};
list = list.filter(function (l) {
return flts.reduce(function (ok, flt) {
if (!ok || !flt.get || !l) { return false; }
var v = flt.get(l);
if (flt.op === '=' || flt.op === '==') {
if (flt.type === 'number' || flt.type === 'date') { return +v == +flt.value; }
return v == flt.value;
} else if (flt.op === '>') {
return v > flt.value;
} else if (flt.op === '>=') {
return v >= flt.value;
} else if (flt.op === '<') {
return v < flt.value;
} else if (flt.op === '<=') {
return v <= flt.value;
} else if (flt.op === 'like' || flt.op === 'notlike') {
var res = flt.op === 'like' ? true : false;
if (isString(flt.value)) {
var re = recache[flt.value] || (recache[flt.value] = new RegExp((".*" + (flt.value.replace(/\s+/g, '.*')) + ".*"), 'gi'));
res = re.test(v);
} else if (isRegex(flt.value)) {
res = flt.value.test(v);
}
return flt.op === 'like' ? res : !res;
} else if (flt.op === 'contains') {
if (Array.isArray(v)) { return !!~v.indexOf(flt.value); }
}
return ok;
}, true);
});
}
if (typeof sort === 'string') { sort = [sort]; }
if (isString(sort) || (isObject(sort) && !Array.isArray(sort))) { sort = [sort]; }
if (Array.isArray(sort)) {
sort = sort.map(function (f) { return ({
dir: f[0] === '-' ? -1 : 1,
path: Ractive.splitKeypath(f[0] === '-' || f[0] === '+' ? f.substr(1) : f)
}); });
sort = sort.map(function (f) {
if (isString(f)) {
return {
dir: f[0] === '-' ? -1 : 1,
get: fieldGetter(this$1, { path: f[0] === '-' || f[0] === '+' ? f.substr(1) : f })
};
} else if (f) {
return {
dir: isNumber(f.dir) ? f.dir : f.dir === 'desc' ? -1 : 1,
get: (f.id && (columnGetter(this$1, columns.find(function (c) { return c.id === f.id; })) || fieldGetter(this$1, fields.find(function (c) { return c.id === f.id; })))) ||
(f.path && (fieldGetter(this$1, { path: f.path, value: f.value })))
};
}
}).filter(function (s) { return s && s.get; });

@@ -388,4 +554,4 @@ list.sort(function (a, b) {

for (var i = 0; i < sort.length; i++) {
aa = applyPath(a, sort[i].path);
bb = applyPath(b, sort[i].path);
aa = sort[i].get(a);
bb = sort[i].get(b);
p = sort[i].dir * compare(aa, bb);

@@ -410,5 +576,7 @@

var rows = this.get('rows');
var per = this.get('paginate');
var paginate = this.get('paginate');
var per = paginate;
var intPer = this.get('_paginate');
var offset = this.get('page') || 0;
var virtual = this.get('virtual');

@@ -418,3 +586,3 @@ if (!per) { return rows; }

if (typeof per !== 'number' && isNaN(+per)) {
if (per === 'auto' || per instanceof Ractive) { per = intPer || 1; }
if (per === 'auto' || per === 'virtual' || per instanceof Ractive) { per = intPer || 1; }
else { per = 30; } // TODO: virtual table/auto size

@@ -425,5 +593,9 @@ }

if (offset * per > rows.length) { setTimeout(function () { return this$1.set('page', 0); }, 0); }
return rows.slice(per * offset, per * offset + per);
if (paginate === 'virtual') {
offset = (virtual && virtual.offset) || 0;
return rows.slice(offset, offset + per);
} else {
if (offset * per > rows.length) { setTimeout(function () { return this$1.set('page', 0); }, 0); }
return rows.slice(per * offset, per * offset + per);
}
}

@@ -435,3 +607,4 @@ },

var rows = this.get('rows');
var per = this.get('paginate');
var paginate = this.get('paginate');
var per = paginate;
var offset = this.get('page') || 0;

@@ -453,2 +626,6 @@

if (paginate === 'virtual') {
info.height = this._avg * rows.length;
}
if (info.total > 14) {

@@ -478,3 +655,3 @@ var arr = info.array = [];

for (var i = 0; i < rows.length; i++) {
cur = rows[i][this$1._by];
cur = rows[i][this$1._init.by];
if (cur != last) { res[i] = 1; }

@@ -508,3 +685,3 @@ last = cur;

var colAttrs = ['label', 'type', 'filter', 'hidden', 'sort', 'no-pad'];
var colAttrs = ['label', 'type', 'filter', 'hidden', 'sort', 'no-pad', 'id'];
var cell = /^[a-z]{1,3}[0-9]+(?:-[0-9]+)?$/;

@@ -536,7 +713,9 @@ var empty = [];

var columns = [];
var fields = [];
tpl.forEach(function (e) {
if (e.e === 'column') {
if (e.e === 'column' || e.e === 'col') {
var col = {};
var attrs = e.m || empty;
var attr;
col.index = columns.length;

@@ -547,5 +726,9 @@ columns.push(col);

attr = attrs.find(function (a) { return a.n === 'id'; });
if (attr && isString(attr.f)) { col.id = attr.f; }
col.label = attrs.find(function (a) { return a.n === 'label'; });
if (col.label && col.label.f) { col.label = map(col.label); }
if (!col.label) { col.label = ''; }
if (!col.id) { col.id = col.label; }
if (!Array.isArray(col.label)) { col.label = [col.label]; }

@@ -571,9 +754,9 @@

if (col.hidden && col.hidden.f === 0) { col.hidden = true; }
else if (col.hidden && typeof col.hidden.f === 'object') { col.hidden = map(col.hidden); }
else if (col.hidden && isObject(col.hidden.f)) { col.hidden = map(col.hidden); }
else { col.hidden = false; }
if (typeof col.hidden === 'string') { col.hidden = false; }
if (isString(col.hidden)) { col.hidden = false; }
col.noPad = attrs.find(function (a) { return a.n === 'no-pad'; });
if (col.noPad && col.noPad.f === 0) { col.noPad = 0; }
else if (col.noPad && typeof col.noPad.f === 'object') { col.noPad = map(col.noPad); }
else if (col.noPad && isObject(col.noPad.f)) { col.noPad = map(col.noPad); }
else { delete col.noPad; }

@@ -589,6 +772,31 @@

});
} else if (e.e === 'field') {
var field = {};
var attrs$1 = e.m || empty;
var a;
a = attrs$1.find(function (a) { return a.n === 'path'; });
if (isString(a)) { field.path = a; }
else if (a && a.f) { field.path = map(a); }
a = attrs$1.find(function (a) { return a.n === 'value'; });
if (a && a.f) { field.value = map(a); }
a = attrs$1.find(function (a) { return a.n === 'type'; });
if (isString(a)) { field.type = a; }
else if (a && a.f) { field.type = map(a); }
a = attrs$1.find(function (a) { return a.n === 'id'; });
if (isString(a.f)) { field.id = a.f; }
a = attrs$1.find(function (a) { return a.n === 'label'; });
if (isString(a)) { field.label = a; }
else if (a && a.f) { field.label = map(a); }
if (!field.id) { field.id = field.label; }
fields.push(field);
}
});
return columns;
return { fields: fields, columns: columns };
}

@@ -598,6 +806,5 @@

groupEl = tpl.find(function (e) { return e.e === 'group'; });
var columns = grabColumns(tpl);
this._items = { columns: columns };
this._init = { sets: grabColumns(tpl), partials: {} };
var columns = this._init.sets.columns;

@@ -608,3 +815,3 @@ var sortKey = '[_0._setSort(_1,_2)]';

{
var header = [{ t: 7, e: 'tr', m: [{ t: 13, n: 'class-rtable-header' }], f: columns.filter(function (c) { return c.hidden !== true; }).map(function (c) {
var header = [{ t: 7, e: 'tr', m: [{ t: 13, n: 'class-rtable-header' }, { t: 4, f: [{ n: 'style-opacity', f: '0', t: 13 }], n: 50, x: { r: ['~/virtual.offset'] , s: '_0>0' } }], f: columns.filter(function (c) { return c.hidden !== true; }).map(function (c) {
var th = { t: 7, e: 'th', f: c.label, m: [{ t: 13, n: 'class-rtable-header' }, { t: 4, n: 53, r: ("~/columns." + (c.index)), f: [{ t: 70, n: ['click'], f: { r: ['@this', '.index', '@event'], s: sortKey } }] }].concat(c.attrs) };

@@ -651,4 +858,4 @@ if (c.type) { th.m.push({ t: 13, n: ("class-rtable-" + (c.type) + "-column") }); }

this._table_row = row;
this._table_head = header;
this._init.partials['table-row'] = row;
this._init.partials['table-head'] = header;
}

@@ -672,3 +879,3 @@

m: [
{ t: 13, n: 'class-row' }, { t: 13, n: 'class-rtable-header' }
{ t: 13, n: 'class-row' }, { t: 13, n: 'class-rtable-header' }, { t: 4, f: [{ n: 'style-opacity', f: '0', t: 13 }], n: 50, x: { r: ['~/virtual.offset'] , s: '_0>0' } }
] }];

@@ -716,3 +923,3 @@

var by;
if (groupEl && groupEl.m && (by = groupEl.m.find(function (a) { return a.n === 'by'; })) && (typeof by.f === 'string' || (by.length === 1 && by[0].t === 2))) {
if (groupEl && groupEl.m && (by = groupEl.m.find(function (a) { return a.n === 'by'; })) && (isString(by.f) || (by.length === 1 && by[0].t === 2))) {
var group = {

@@ -729,5 +936,5 @@ t: 4, n: 50, f: [{

row$1.unshift(group);
this._by = by.f;
this._init.by = by.f;
var parts = grabColumns(groupEl.f).filter(function (c) { return c.hidden !== true; }).map(function (c) {
var parts = grabColumns(groupEl.f).columns.filter(function (c) { return c.hidden !== true; }).map(function (c) {
var div = { t: 7, e: 'div', f: [{ t: 7, e: 'div', f: c.content }], m: c.attrs };

@@ -764,4 +971,4 @@ if (c.type) { div.m.unshift({ t: 13, n: ("class-rtable-" + (c.type) + "-column") }); }

this._grid_row = row$1;
this._grid_head = header$1;
this._init.partials['grid-row'] = row$1;
this._init.partials['grid-head'] = header$1;

@@ -768,0 +975,0 @@ if (mappings && this.component) { this.component.mappings = mappings; }

@@ -47,3 +47,2 @@ import Ractive from 'ractive';

if (parent.style) { parent.style.overflow = 'hidden'; }
if (t.isIntro || p.intro) {

@@ -54,9 +53,12 @@ t.setStyle({

});
t.animateStyle({
transform: 'none',
opacity: 1
}, p).then(function () {
windowTrans = false;
t.complete();
if (parent.style) { parent.style.overflow = overflow; }
setTimeout(function () {
t.animateStyle({
transform: 'none',
opacity: 1
}, p).then(function () {
t.setStyle('opacity', 1);
windowTrans = false;
t.complete();
if (parent.style) { parent.style.overflow = overflow; }
});
});

@@ -63,0 +65,0 @@ } else {

{
"name": "@evs-chris/raui",
"version": "0.4.2",
"version": "0.4.3",
"description": "Components, decorators, and helpers for Ractive apps that are generally Material-ish",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/evs-chris/raui",

@@ -386,7 +386,7 @@ (function (global, factory) {

Ractive$1.extendWith(Shell, {
template: {v:4,t:[{t:7,e:"div",m:[{t:13,n:"class",f:"rshell",g:1},{t:16,r:"extra-attributes"},{n:"tracked",t:71,f:{r:[],s:"[\"outer\"]"}},{n:"class-rshell-left-popped",t:13,f:[{t:2,r:".leftPop"}]},{n:"class-rshell-right-popped",t:13,f:[{t:2,r:".rightPop"}]}],f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rshell-sizer",g:1},{n:"tracked",t:71,f:{r:[],s:"[\"sizer\"]"}}]}," ",{t:7,e:"div",m:[{t:13,n:"class",f:"rshell-main",g:1}],f:[{t:4,f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rshell-top",g:1},{n:"class-rshell-overflow",t:13,f:[{t:2,r:"~/topOverflow"}]},{t:4,f:[{t:16,r:"._topA"}],n:50,r:"._topA"}],f:[{t:16,r:"._top"}]}],n:50,r:"._top"}," ",{t:7,e:"div",m:[{t:13,n:"class",f:"rshell-middle",g:1},{n:"class-rshell-has-left",t:13,f:[{t:2,x:{r:["._left","._leftOver",".leftOver"],s:"_0&&!_1&&!_2"}}]},{n:"class-rshell-has-right",t:13,f:[{t:2,x:{r:["._right","._rightOver",".rightOver"],s:"_0&&!_1&&!_2"}}]},{n:"class-rshell-left-hidden",t:13,f:[{t:2,r:".leftHidden"}]},{n:"class-rshell-right-hidden",t:13,f:[{t:2,r:".rightHidden"}]}],f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rshell-modal",g:1},{n:"class-rshell-blocked",t:13,f:[{t:2,x:{r:[".blocked",".blockableLeft",".leftPull",".blockableRight",".rightPull"],s:"_0||(_1&&_2)||(_3&&_4)"}}]},{n:["click"],t:70,f:{r:["@this",".leftOver","._leftOver",".leftHidden",".rightOver","._rightOver",".rightHidden"],s:"[_0.set({leftHidden:_1||_2?true:_3,rightHidden:_4||_5?true:_6})]"}},{n:["swipeleft"],t:70,a:{r:[],s:"[{bind:\".leftPush\"}]"},f:{r:["@this"],s:"[_0.set(\"leftHidden\",true)]"}},{n:["swiperight"],t:70,a:{r:[],s:"[{bind:\".rightPush\"}]"},f:{r:["@this"],s:"[_0.set(\"rightHidden\",true)]"}},{t:4,f:[{n:"style-transition",f:"none",t:13},{n:"style-opacity",f:[{t:2,x:{r:[".leftPull",".rightPull"],s:"Math.min(_0||_1,100)/200"}}],t:13}],n:50,x:{r:[".leftPull",".rightPull"],s:"_0||_1"}}]}," ",{t:4,f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rshell-left",g:1},{n:"tracked",t:71,f:{r:[],s:"[\"left\"]"}},{t:4,f:[{t:16,r:"._leftA"}],n:50,r:"._leftA"},{n:["swipeleft"],t:70,a:{r:[],s:"[{bind:\".leftPush\"}]"},f:{r:["@this"],s:"[_0.set(\"leftHidden\",true)]"}},{t:4,f:[{n:"style-transition",f:"none",t:13},{n:"style-transform",f:["translate(-",{t:2,x:{r:[".leftPull"],s:"100-(_0>100?100:_0)"}},"%)"],t:13}],n:50,r:".leftPull"},{t:4,f:[{n:"style-transition",f:"none",t:13},{n:"style-transform",f:["translate(-",{t:2,x:{r:[".leftPush"],s:"_0>100?100:_0"}},"%)"],t:13}],n:50,r:".leftPush"},{n:"class-rshell-overflow",t:13,f:[{t:2,r:"~/leftOverflow"}]}],f:[{t:16,r:"._left"}]}],n:50,r:"._left"}," ",{t:4,f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rshell-center",g:1},{n:"tracked",t:71,f:{r:[],s:"[\"center\"]"}},{t:4,f:[{t:16,r:"._centerA"}],n:50,r:"._centerA"},{t:4,f:[{n:["swiperight"],t:70,a:{r:[],s:"[{maxX:80,bind:\".leftPull\"}]"},f:{r:["@this"],s:"[_0.set(\"leftHidden\",false)]"}}],n:50,x:{r:["._left",".leftHidden"],s:"_0&&_1"}},{t:4,f:[{n:["swipeleft"],t:70,a:{r:[],s:"[{minX:-80,bind:\".rightPull\"}]"},f:{r:["@this"],s:"[_0.set(\"rightHidden\",false)]"}}],n:50,x:{r:["._right",".rightHidden"],s:"_0&&_1"}},{n:"class-rshell-overflow",t:13,f:[{t:2,r:"~/centerOverflow"}]}],f:[{t:16,r:"._center"}]}],n:50,r:"._center"}," ",{t:4,f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rshell-right",g:1},{n:"tracked",t:71,f:{r:[],s:"[\"right\"]"}},{t:4,f:[{t:16,r:"._rightA"}],n:50,r:"._rightA"},{n:["swiperight"],t:70,a:{r:[],s:"[{bind:\".rightPush\"}]"},f:{r:["@this"],s:"[_0.set(\"rightHidden\",true)]"}},{t:4,f:[{n:"style-transition",f:"none",t:13},{n:"style-transform",f:["translate(",{t:2,x:{r:[".rightPull"],s:"100-(_0>100?100:_0)"}},"%)"],t:13}],n:50,r:".rightPull"},{t:4,f:[{n:"style-transition",f:"none",t:13},{n:"style-transform",f:["translate(",{t:2,x:{r:[".rightPush"],s:"_0>100?100:_0"}},"%)"],t:13}],n:50,r:".rightPush"},{n:"class-rshell-overflow",t:13,f:[{t:2,r:"~/rightOverflow"}]}],f:[{t:16,r:"._right"}]}],n:50,r:"._right"}]}," ",{t:4,f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rshell-bottom",g:1},{t:4,f:[{t:16,r:"._bottomA"}],n:50,r:"._bottomA"},{n:"class-rshell-overflow",t:13,f:[{t:2,r:"~/bottomOverflow"}]}],f:[{t:16,r:"._bottom"}]}],n:50,r:"._bottom"}]}," ",{t:4,f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rshell-left-pop",g:1},{t:4,f:[{t:16,r:"._leftPopA"}],n:50,r:"._leftPopA"}],f:[{t:16,r:"._leftPop"}]}],n:50,r:"._leftPop"}," ",{t:4,f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rshell-right-pop",g:1},{t:4,f:[{t:16,r:"._rightPopA"}],n:50,r:"._rightPopA"}],f:[{t:16,r:"._rightPop"}]}],n:50,r:"._rightPop"}]}],e:{"[\"outer\"]":function (){return(["outer"]);},"[\"sizer\"]":function (){return(["sizer"]);},"_0&&!_1&&!_2":function (_0,_1,_2){return(_0&&!_1&&!_2);},"_0||(_1&&_2)||(_3&&_4)":function (_0,_1,_2,_3,_4){return(_0||(_1&&_2)||(_3&&_4));},"[_0.set({leftHidden:_1||_2?true:_3,rightHidden:_4||_5?true:_6})]":function (_0,_1,_2,_3,_4,_5,_6){return([_0.set({leftHidden:_1||_2?true:_3,rightHidden:_4||_5?true:_6})]);},"[{bind:\".leftPush\"}]":function (){return([{bind:".leftPush"}]);},"[_0.set(\"leftHidden\",true)]":function (_0){return([_0.set("leftHidden",true)]);},"[{bind:\".rightPush\"}]":function (){return([{bind:".rightPush"}]);},"[_0.set(\"rightHidden\",true)]":function (_0){return([_0.set("rightHidden",true)]);},"Math.min(_0||_1,100)/200":function (_0,_1){return(Math.min(_0||_1,100)/200);},"_0||_1":function (_0,_1){return(_0||_1);},"[\"left\"]":function (){return(["left"]);},"100-(_0>100?100:_0)":function (_0){return(100-(_0>100?100:_0));},"_0>100?100:_0":function (_0){return(_0>100?100:_0);},"[\"center\"]":function (){return(["center"]);},"[{maxX:80,bind:\".leftPull\"}]":function (){return([{maxX:80,bind:".leftPull"}]);},"[_0.set(\"leftHidden\",false)]":function (_0){return([_0.set("leftHidden",false)]);},"_0&&_1":function (_0,_1){return(_0&&_1);},"[{minX:-80,bind:\".rightPull\"}]":function (){return([{minX:-80,bind:".rightPull"}]);},"[_0.set(\"rightHidden\",false)]":function (_0){return([_0.set("rightHidden",false)]);},"[\"right\"]":function (){return(["right"]);}}}, css: function(data) { return [(function(data) {
template: {v:4,t:[{t:7,e:"div",m:[{t:13,n:"class",f:"rshell",g:1},{t:16,r:"extra-attributes"},{n:"tracked",t:71,f:{r:[],s:"[\"outer\"]"}},{n:"class-rshell-left-popped",t:13,f:[{t:2,r:".leftPop"}]},{n:"class-rshell-right-popped",t:13,f:[{t:2,r:".rightPop"}]},{n:"class-rshell-top-popped",t:13,f:[{t:2,r:".topPop"}]},{n:"class-rshell-bottom-popped",t:13,f:[{t:2,r:".bottomPop"}]}],f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rshell-sizer",g:1},{n:"tracked",t:71,f:{r:[],s:"[\"sizer\"]"}}]}," ",{t:7,e:"div",m:[{t:13,n:"class",f:"rshell-main",g:1}],f:[{t:4,f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rshell-top",g:1},{n:"class-rshell-overflow",t:13,f:[{t:2,r:"~/topOverflow"}]},{t:4,f:[{t:16,r:"._topA"}],n:50,r:"._topA"}],f:[{t:16,r:"._top"}]}],n:50,r:"._top"}," ",{t:7,e:"div",m:[{t:13,n:"class",f:"rshell-middle",g:1},{n:"class-rshell-has-left",t:13,f:[{t:2,x:{r:["._left","._leftOver",".leftOver"],s:"_0&&!_1&&!_2"}}]},{n:"class-rshell-has-right",t:13,f:[{t:2,x:{r:["._right","._rightOver",".rightOver"],s:"_0&&!_1&&!_2"}}]},{n:"class-rshell-left-hidden",t:13,f:[{t:2,r:".leftHidden"}]},{n:"class-rshell-right-hidden",t:13,f:[{t:2,r:".rightHidden"}]}],f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rshell-modal",g:1},{n:"class-rshell-blocked",t:13,f:[{t:2,x:{r:[".blocked",".blockableLeft",".leftPull",".blockableRight",".rightPull"],s:"_0||(_1&&_2)||(_3&&_4)"}}]},{n:["click"],t:70,f:{r:["@this",".leftOver","._leftOver",".leftHidden",".rightOver","._rightOver",".rightHidden"],s:"[_0.set({leftHidden:_1||_2?true:_3,rightHidden:_4||_5?true:_6})]"}},{n:["swipeleft"],t:70,a:{r:[],s:"[{bind:\".leftPush\"}]"},f:{r:["@this"],s:"[_0.set(\"leftHidden\",true)]"}},{n:["swiperight"],t:70,a:{r:[],s:"[{bind:\".rightPush\"}]"},f:{r:["@this"],s:"[_0.set(\"rightHidden\",true)]"}},{t:4,f:[{n:"style-transition",f:"none",t:13},{n:"style-opacity",f:[{t:2,x:{r:[".leftPull",".rightPull"],s:"Math.min(_0||_1,100)/200"}}],t:13}],n:50,x:{r:[".leftPull",".rightPull"],s:"_0||_1"}}]}," ",{t:4,f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rshell-left",g:1},{n:"tracked",t:71,f:{r:[],s:"[\"left\"]"}},{t:4,f:[{t:16,r:"._leftA"}],n:50,r:"._leftA"},{n:["swipeleft"],t:70,a:{r:[],s:"[{bind:\".leftPush\"}]"},f:{r:["@this"],s:"[_0.set(\"leftHidden\",true)]"}},{t:4,f:[{n:"style-transition",f:"none",t:13},{n:"style-transform",f:["translate(-",{t:2,x:{r:[".leftPull"],s:"100-(_0>100?100:_0)"}},"%)"],t:13}],n:50,r:".leftPull"},{t:4,f:[{n:"style-transition",f:"none",t:13},{n:"style-transform",f:["translate(-",{t:2,x:{r:[".leftPush"],s:"_0>100?100:_0"}},"%)"],t:13}],n:50,r:".leftPush"},{n:"class-rshell-overflow",t:13,f:[{t:2,r:"~/leftOverflow"}]}],f:[{t:16,r:"._left"}]}],n:50,r:"._left"}," ",{t:4,f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rshell-center",g:1},{n:"tracked",t:71,f:{r:[],s:"[\"center\"]"}},{t:4,f:[{t:16,r:"._centerA"}],n:50,r:"._centerA"},{t:4,f:[{n:["swiperight"],t:70,a:{r:[],s:"[{maxX:80,bind:\".leftPull\"}]"},f:{r:["@this"],s:"[_0.set(\"leftHidden\",false)]"}}],n:50,x:{r:["._left",".leftHidden"],s:"_0&&_1"}},{t:4,f:[{n:["swipeleft"],t:70,a:{r:[],s:"[{minX:-80,bind:\".rightPull\"}]"},f:{r:["@this"],s:"[_0.set(\"rightHidden\",false)]"}}],n:50,x:{r:["._right",".rightHidden"],s:"_0&&_1"}},{n:"class-rshell-overflow",t:13,f:[{t:2,r:"~/centerOverflow"}]}],f:[{t:16,r:"._center"}]}],n:50,r:"._center"}," ",{t:4,f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rshell-right",g:1},{n:"tracked",t:71,f:{r:[],s:"[\"right\"]"}},{t:4,f:[{t:16,r:"._rightA"}],n:50,r:"._rightA"},{n:["swiperight"],t:70,a:{r:[],s:"[{bind:\".rightPush\"}]"},f:{r:["@this"],s:"[_0.set(\"rightHidden\",true)]"}},{t:4,f:[{n:"style-transition",f:"none",t:13},{n:"style-transform",f:["translate(",{t:2,x:{r:[".rightPull"],s:"100-(_0>100?100:_0)"}},"%)"],t:13}],n:50,r:".rightPull"},{t:4,f:[{n:"style-transition",f:"none",t:13},{n:"style-transform",f:["translate(",{t:2,x:{r:[".rightPush"],s:"_0>100?100:_0"}},"%)"],t:13}],n:50,r:".rightPush"},{n:"class-rshell-overflow",t:13,f:[{t:2,r:"~/rightOverflow"}]}],f:[{t:16,r:"._right"}]}],n:50,r:"._right"}]}," ",{t:4,f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rshell-bottom",g:1},{t:4,f:[{t:16,r:"._bottomA"}],n:50,r:"._bottomA"},{n:"class-rshell-overflow",t:13,f:[{t:2,r:"~/bottomOverflow"}]}],f:[{t:16,r:"._bottom"}]}],n:50,r:"._bottom"}]}," ",{t:4,f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rshell-left-pop",g:1},{t:4,f:[{t:16,r:"._leftPopA"}],n:50,r:"._leftPopA"}],f:[{t:16,r:"._leftPop"}]}],n:50,r:"._leftPop"}," ",{t:4,f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rshell-right-pop",g:1},{t:4,f:[{t:16,r:"._rightPopA"}],n:50,r:"._rightPopA"}],f:[{t:16,r:"._rightPop"}]}],n:50,r:"._rightPop"}," ",{t:4,f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rshell-bottom-pop",g:1},{t:4,f:[{t:16,r:"._bottomPopA"}],n:50,r:"._bottomPopA"}],f:[{t:16,r:"._bottomPop"}]}],n:50,r:"._bottomPop"}," ",{t:4,f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rshell-top-pop",g:1},{t:4,f:[{t:16,r:"._topPopA"}],n:50,r:"._topPopA"}],f:[{t:16,r:"._topPop"}]}],n:50,r:"._topPop"}]}],e:{"[\"outer\"]":function (){return(["outer"]);},"[\"sizer\"]":function (){return(["sizer"]);},"_0&&!_1&&!_2":function (_0,_1,_2){return(_0&&!_1&&!_2);},"_0||(_1&&_2)||(_3&&_4)":function (_0,_1,_2,_3,_4){return(_0||(_1&&_2)||(_3&&_4));},"[_0.set({leftHidden:_1||_2?true:_3,rightHidden:_4||_5?true:_6})]":function (_0,_1,_2,_3,_4,_5,_6){return([_0.set({leftHidden:_1||_2?true:_3,rightHidden:_4||_5?true:_6})]);},"[{bind:\".leftPush\"}]":function (){return([{bind:".leftPush"}]);},"[_0.set(\"leftHidden\",true)]":function (_0){return([_0.set("leftHidden",true)]);},"[{bind:\".rightPush\"}]":function (){return([{bind:".rightPush"}]);},"[_0.set(\"rightHidden\",true)]":function (_0){return([_0.set("rightHidden",true)]);},"Math.min(_0||_1,100)/200":function (_0,_1){return(Math.min(_0||_1,100)/200);},"_0||_1":function (_0,_1){return(_0||_1);},"[\"left\"]":function (){return(["left"]);},"100-(_0>100?100:_0)":function (_0){return(100-(_0>100?100:_0));},"_0>100?100:_0":function (_0){return(_0>100?100:_0);},"[\"center\"]":function (){return(["center"]);},"[{maxX:80,bind:\".leftPull\"}]":function (){return([{maxX:80,bind:".leftPull"}]);},"[_0.set(\"leftHidden\",false)]":function (_0){return([_0.set("leftHidden",false)]);},"_0&&_1":function (_0,_1){return(_0&&_1);},"[{minX:-80,bind:\".rightPull\"}]":function (){return([{minX:-80,bind:".rightPull"}]);},"[_0.set(\"rightHidden\",false)]":function (_0){return([_0.set("rightHidden",false)]);},"[\"right\"]":function (){return(["right"]);}}}, css: function(data) { return [(function(data) {
var left$$1 = data('raui.shell.left.width') || data('raui.menu.width') || '18em';
var right$$1 = data('raui.shell.right.width') || data('raui.menu.width') || '18em';
var primary = Object.assign({}, data('raui.primary'), data('raui.shell.primary'));
return ("\n .rshell {\n width: 100%;\n height: 100%;\n position: absolute;\n overflow: hidden;\n }\n .rshell-sizer {\n position: absolute;\n }\n .rshell-modal {\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n opacity: 0;\n background-color: #000;\n z-index: -1;\n transition: opacity " + (data('raui.shell.slide.ms') || 400) + "ms ease-in-out, z-index 0s linear " + (data('raui.shell.slide.ms') || 400) + "ms;\n }\n .rshell-modal.rshell-blocked {\n opacity: 0.5;\n z-index: 3;\n transition: opacity " + (data('raui.shell.slide.ms') || 400) + "ms ease-in-out, z-index 0s linear;\n }\n .rshell-main {\n width: 100%;\n height: 100%;\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n overflow: hidden;\n z-index: 1;\n }\n \n .rshell-middle {\n flex-grow: 1;\n position: relative;\n }\n \n .rshell-left, .rshell-right {\n position: absolute;\n top: 0;\n box-sizing: border-box;\n height: 100%;\n overflow: auto;\n z-index: 4;\n background-color: " + (primary.bg || 'inherit') + ";\n transition: transform " + (data('raui.shell.slide.ms') || 400) + "ms ease-in-out;\n }\n .rshell-left {\n left: 0;\n width: " + left$$1 + ";\n }\n .rshell-right {\n right: 0;\n width: " + right$$1 + ";\n }\n .rshell-left-hidden > .rshell-left {\n transform: translateX(-100%);\n }\n .rshell-right-hidden > .rshell-right {\n transform: translateX(100%);\n }\n .rshell-has-right > .rshell-right,\n .rshell-has-left > .rshell-left {\n z-index: 2;\n }\n .rshell-left-popped > .rshell-main > .rshell-middle > .rshell-left,\n .rshell-left-popped > .rshell-main > .rshell-middle > .rshell-right,\n .rshell-right-popped > .rshell-main > .rshell-middle > .rshell-left,\n .rshell-right-popped > .rshell-main > .rshell-middle > .rshell-right {\n z-index: 2;\n }\n \n .rshell-left-pop, .rshell-right-pop {\n z-index: 5;\n transition: transform " + (data('raui.shell.slide.ms') || 400) + "ms ease-in-out;\n position: absolute;\n top: 0;\n bottom: 0;\n }\n .rshell-left-pop {\n transform: translateX(-100%);\n }\n .rshell-left-popped > .rshell-left-pop {\n transform: none;\n }\n \n .rshell-right-pop {\n transform: translateX(100%);\n right: 0;\n }\n .rshell-right-popped > .rshell-right-pop {\n transform: none;\n }\n \n .rshell-center {\n position: absolute;\n top: 0;\n left: 0;\n z-index: 1;\n box-sizing: border-box;\n transition: left " + (data('raui.shell.slide.ms') || 400) + "ms ease-in-out, width " + (data('raui.shell.slide.ms') || 400) + "ms ease-in-out;\n height: 100%;\n width: 100%;\n flex-grow: 1;\n overflow: auto;\n }\n .rshell-has-left > .rshell-center {\n width: calc(100% - " + left$$1 + ");\n left: " + left$$1 + ";\n }\n .rshell-has-right > .rshell-center {\n width: calc(100% - " + right$$1 + ");\n left: 0;\n }\n .rshell-has-left.rshell-has-right > .rshell-center {\n width: calc(100% - " + left$$1 + " - " + right$$1 + ");\n left: " + left$$1 + ";\n }\n .rshell-has-left.rshell-left-hidden > .rshell-center {\n width: 100%;\n left: 0;\n }\n .rshell-has-right.rshell-right-hidden > .rshell-center {\n width: 100%;\n }\n .rshell-has-left.rshell-has-right.rshell-left-hidden > .rshell-center {\n width: calc(100% - " + right$$1 + ");\n left: 0;\n }\n .rshell-has-left.rshell-has-right.rshell-right-hidden > .rshell-center {\n width: calc(100% - " + left$$1 + ");\n left: " + left$$1 + ";\n }\n .rshell-has-left.rshell-has-right.rshell-left-hidden.rshell-right-hidden > .rshell-center {\n width: 100%;\n left: 0;\n }\n \n .rshell-overflow {\n overflow: visible;\n }\n ");
return ("\n .rshell {\n width: 100%;\n height: 100%;\n position: absolute;\n overflow: hidden;\n }\n .rshell-sizer {\n position: absolute;\n }\n .rshell-modal {\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n opacity: 0;\n background-color: #000;\n z-index: -1;\n transition: opacity " + (data('raui.shell.slide.ms') || 400) + "ms ease-in-out, z-index 0s linear " + (data('raui.shell.slide.ms') || 400) + "ms;\n }\n .rshell-modal.rshell-blocked {\n opacity: 0.5;\n z-index: 3;\n transition: opacity " + (data('raui.shell.slide.ms') || 400) + "ms ease-in-out, z-index 0s linear;\n }\n .rshell-main {\n width: 100%;\n height: 100%;\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n overflow: hidden;\n z-index: 1;\n }\n \n .rshell-middle {\n flex-grow: 1;\n position: relative;\n }\n \n .rshell-left, .rshell-right {\n position: absolute;\n top: 0;\n box-sizing: border-box;\n height: 100%;\n overflow: auto;\n z-index: 4;\n background-color: " + (primary.bg || 'inherit') + ";\n transition: transform " + (data('raui.shell.slide.ms') || 400) + "ms ease-in-out;\n }\n .rshell-left {\n left: 0;\n width: " + left$$1 + ";\n }\n .rshell-right {\n right: 0;\n width: " + right$$1 + ";\n }\n .rshell-left-hidden > .rshell-left {\n transform: translateX(-100%);\n }\n .rshell-right-hidden > .rshell-right {\n transform: translateX(100%);\n }\n .rshell-has-right > .rshell-right,\n .rshell-has-left > .rshell-left {\n z-index: 2;\n }\n .rshell-left-popped > .rshell-main > .rshell-middle > .rshell-left,\n .rshell-left-popped > .rshell-main > .rshell-middle > .rshell-right,\n .rshell-top-popped > .rshell-main > .rshell-middle > .rshell-left,\n .rshell-top-popped > .rshell-main > .rshell-middle > .rshell-right,\n .rshell-bottom-popped > .rshell-main > .rshell-middle > .rshell-left,\n .rshell-bottom-popped > .rshell-main > .rshell-middle > .rshell-right,\n .rshell-right-popped > .rshell-main > .rshell-middle > .rshell-left,\n .rshell-right-popped > .rshell-main > .rshell-middle > .rshell-right {\n z-index: 2;\n }\n \n .rshell-left-pop, .rshell-right-pop, .rshell-top-pop, .rshell-bottom-pop {\n z-index: 5;\n transition: transform " + (data('raui.shell.slide.ms') || 400) + "ms ease-in-out;\n position: absolute;\n }\n .rshell-left-pop, .rshell-right-pop {\n top: 0;\n bottom: 0;\n max-width: 100%;\n overflow: auto;\n }\n .rshell-top-pop, .rshell-bottom-pop {\n left: 0;\n right: 0;\n max-height: 100%;\n overflow: auto;\n }\n \n .rshell-left-pop {\n transform: translateX(-100%);\n }\n .rshell-right-pop {\n transform: translateX(100%);\n right: 0;\n }\n .rshell-top-pop {\n top: 0;\n transform: translateY(-100%);\n }\n .rshell-bottom-pop {\n bottom: 0;\n transform: translateY(100%);\n }\n \n .rshell-left-popped > .rshell-left-pop,\n .rshell-right-popped > .rshell-right-pop,\n .rshell-top-popped > .rshell-top-pop,\n .rshell-bottom-popped > .rshell-bottom-pop {\n transform: none;\n }\n \n .rshell-center {\n position: absolute;\n top: 0;\n left: 0;\n z-index: 1;\n box-sizing: border-box;\n transition: left " + (data('raui.shell.slide.ms') || 400) + "ms ease-in-out, width " + (data('raui.shell.slide.ms') || 400) + "ms ease-in-out;\n height: 100%;\n width: 100%;\n flex-grow: 1;\n overflow: auto;\n }\n .rshell-has-left > .rshell-center {\n width: calc(100% - " + left$$1 + ");\n left: " + left$$1 + ";\n }\n .rshell-has-right > .rshell-center {\n width: calc(100% - " + right$$1 + ");\n left: 0;\n }\n .rshell-has-left.rshell-has-right > .rshell-center {\n width: calc(100% - " + left$$1 + " - " + right$$1 + ");\n left: " + left$$1 + ";\n }\n .rshell-has-left.rshell-left-hidden > .rshell-center {\n width: 100%;\n left: 0;\n }\n .rshell-has-right.rshell-right-hidden > .rshell-center {\n width: 100%;\n }\n .rshell-has-left.rshell-has-right.rshell-left-hidden > .rshell-center {\n width: calc(100% - " + right$$1 + ");\n left: 0;\n }\n .rshell-has-left.rshell-has-right.rshell-right-hidden > .rshell-center {\n width: calc(100% - " + left$$1 + ");\n left: " + left$$1 + ";\n }\n .rshell-has-left.rshell-has-right.rshell-left-hidden.rshell-right-hidden > .rshell-center {\n width: 100%;\n left: 0;\n }\n \n .rshell-overflow {\n overflow: visible;\n }\n ");
// TODO: other themes

@@ -412,3 +412,3 @@ }).call(this, data)].join(' '); },

blocked: function blocked() {
return (this.get('blockableLeft') && !(this.get('leftHidden')) || (this.get('blockableRight') && !this.get('rightHidden'))) || this.get('leftPop') || this.get('rightPop');
return (this.get('blockableLeft') && !(this.get('leftHidden')) || (this.get('blockableRight') && !this.get('rightHidden'))) || this.get('leftPop') || this.get('rightPop') || this.get('topPop') || this.get('bottomPop');
}

@@ -462,3 +462,3 @@ },

var parts = ['top', 'bottom', 'center', 'left', 'right', 'left-pop', 'right-pop'];
var parts = ['top', 'bottom', 'center', 'left', 'right', 'left-pop', 'right-pop', 'top-pop', 'bottom-pop'];
var skipAttrs = ['hidden', 'primary', 'over', 'popped', 'overflow', 'forced'];

@@ -478,3 +478,3 @@ function construct() {

if (~parts.indexOf(e.e)) {
var name = e.e === 'left-pop' ? 'leftPop' : e.e === 'right-pop' ? 'rightPop' : e.e;
var name = e.e === 'left-pop' ? 'leftPop' : e.e === 'right-pop' ? 'rightPop' : e.e === 'top-pop' ? 'topPop' : e.e === 'bottom-pop' ? 'bottomPop' : e.e;
items[("_" + name)] = { t: e.f };

@@ -520,2 +520,6 @@ if (e.m) {

fn: function fn() {
var outer = r.relativeSize('100%');
if (media.last === outer) { return; }
else { media.last = outer; }
var sizes = {

@@ -528,3 +532,2 @@ left: !r.get('leftOver') && r.left && r.left.clientWidth || 0,

var outer = r.relativeSize('100%');
var primary = r.get('_rightPrimary') ? 'right' : 'left';

@@ -531,0 +534,0 @@ var secondary = primary === 'right' ? 'left' : 'right';

@@ -1,1 +0,1 @@

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("ractive")):"function"==typeof define&&define.amd?define(["exports","ractive"],t):t(e.RMShell={},e.Ractive)}(this,function(e,t){"use strict";t=t&&t.hasOwnProperty("default")?t.default:t;var n=Math.abs;function i(e){var t=Object.assign({},{distance:150,flick:200,threshold:.2},e);return function(n){var i=n.Ractive;n.instance.events[e.name||"swipe"+(e.direction||"")]=function(e,n,r){var s;void 0===r&&(r={});var o=Object.assign({},{direction:"right"},t,r);return o.fire=n,(s=e.__r_swipes__)?s.subscribe(o):(s=new l(i.getContext(e)),e.__r_swipes__=s,s.subscribe(o)),{teardown:function(){s.unsubscribe(n)}}}}}var r=i({direction:"left"}),s=i({direction:"right"}),l=(i({direction:"up"}),i({direction:"down"}),function(e){this.context=e,this.node=e.node,this.fires=[],this.bind()});function o(e){return this.__r_swipes__.mousedown(e)}function h(e){return this.__r_swipes__.touchdown(e)}function d(e){e.preventDefault()}l.prototype.subscribe=function(e){this.fires.push(e),this.hasBinding=!!this.fires.find(function(e){return e.bindPx||e.bind}),this.hasBounds=!!this.fires.find(function(e){return null!=e.maxX||null!=e.maxY||null!=e.minX||null!=e.minY})},l.prototype.unsubscribe=function(e){this.fires=this.fires.filter(function(t){return t.fire!==e}),this.fires.length||this.teardown(),this.hasBinding=!!this.fires.find(function(e){return e.bindPx||e.bind}),this.hasBounds=!!this.fires.find(function(e){return null!=e.maxX||null!=e.maxY||null!=e.minX||null!=e.minY})},l.prototype.bind=function(){"ontouchstart"in window?(this.context.listen("mousedown",o),this.context.listen("dragstart",d),this.context.listen("touchstart",h,{passive:!1})):window.PointerEvent||window.navigator.pointerEnabled?this.context.listen("pointerdown",o,{passive:!1}):window.navigator.msPointerEnabled?this.context.listen("MSPointerDown",o):(this.context.listen("mousedown",o),this.context.listen("dragstart",d),this.context.listen("touchstart",h,{passive:!1}))},l.prototype.fire=function(e,t,i,r,s,l){var o,h=this,d=this.node;return this.fires.forEach(function(f){if(f.active){var a=l<f.flick?r-t+f.flick/l*(r-t):r-t,c=l<f.flick?s-i+f.flick/l*(s-i):s-i,u=n(f.threshold<=0?Math.max(a,c):f.threshold<1?"right"===f.direction||"left"===f.direction?f.threshold*a:f.threshold*c:f.threshold),v=f.bindPx,m=f.bind;a>0&&"right"===f.direction&&a>=f.distance&&n(c)<=u?(f.fire({node:d,event:e}),o=!0):a<0&&"left"===f.direction&&-a>=f.distance&&n(c)<=u&&(f.fire({node:d,event:e}),o=!0),c>0&&"down"===f.direction&&c>=f.distance&&n(a)<=u?(f.fire({node:d,event:e}),o=!0):c<0&&"up"===f.direction&&-c>=f.distance&&n(a)<=u&&(f.fire({node:d,event:e}),o=!0),v&&h.context.set(v,0),m&&h.context.set(m,0)}else f.active=!0}),o},l.prototype.checkBounds=function(e,t){var n=this.node.getBoundingClientRect(),i=e-n.x,r=t-n.y;return this.fires.forEach(function(e){var t=e.maxX,s=e.maxY,l=e.minX,o=e.minY;t>0&&i>t?e.active=!1:t<0&&i>n.width+t?e.active=!1:s>0&&r>s?e.active=!1:s<0&&r>n.height+s?e.active=!1:l>0&&i<l?e.active=!1:l<0&&i<n.width+l?e.active=!1:o>0&&r<o?e.active=!1:o<0&&r<n.width+o?e.active=!1:e.active=!0}),!!this.fires.find(function(e){return e.active})},l.prototype.updateBindings=function(e,t,i,r){var s=this;this.fires.forEach(function(l){if(l.active&&(l.bindPx||l.bind)){var o=l.bindPx,h=l.bind,d=i-e,f=r-t,a=n(l.threshold<=0?Math.max(d,f):l.threshold<1?"right"===l.direction||"left"===l.direction?l.threshold*d:l.threshold*f:l.threshold);o&&("left"===l.direction?s.context.set(o,d<0&&n(f)<=a?-d:0):"right"===l.direction?s.context.set(o,d>0&&n(f)<=a?d:0):"up"===l.direction?s.context.set(o,f<0&&n(d)<=a?-f:0):"down"===l.direction&&s.context.set(o,f>0&&n(d)<=a?f:0)),h&&("left"===l.direction?s.context.set(h,d<0&&n(f)<=a?-d/l.distance*100:0):"right"===l.direction?s.context.set(h,d>0&&n(f)<=a?d/l.distance*100:0):"up"===l.direction?s.context.set(h,f<0&&n(d)<=a?-f/l.distance*100:0):"down"===l.direction&&s.context.set(h,f>0&&n(d)<=a?f/l.distance*100:0))}})},l.prototype.mousedown=function(e){var t=this;if(!this.preventMousedownEvents&&(void 0===e.which||1===e.which)){var n=new Date,i=e.clientX,r=e.clientY;if(!this.hasBounds||this.checkBounds(i,r)){var s=e.pointerId,l=function(e){t.fire(e,i,r,e.clientX,e.clientY,new Date-n)&&!1!==e.cancelable&&e.preventDefault(),h()},o=function(e){e.pointerId==s&&t.hasBinding&&t.updateBindings(i,r,e.clientX,e.clientY)},h=function(){t.node.removeEventListener("MSPointerUp",l,!1),document.removeEventListener("MSPointerMove",o,!1),document.removeEventListener("MSPointerCancel",h,!1),document.removeEventListener("pointerup",l,!1),document.removeEventListener("pointermove",o,!1),document.removeEventListener("pointercancel",h,!1),document.removeEventListener("mouseup",l,!1),document.removeEventListener("click",l,!1),document.removeEventListener("mousemove",o,!1)};window.PointerEvent||window.navigator.pointerEnabled?(document.addEventListener("pointerup",l,!1),document.addEventListener("pointermove",o,!1),document.addEventListener("pointercancel",h,!1)):window.navigator.msPointerEnabled?(document.addEventListener("MSPointerUp",l,!1),document.addEventListener("MSPointerMove",o,!1),document.addEventListener("MSPointerCancel",h,!1)):(document.addEventListener("mouseup",l,!1),document.addEventListener("click",l,!1),document.addEventListener("mousemove",o,!1))}}},l.prototype.touchdown=function(e){var t=this,i=e.touches[0],r=new Date,s=i.clientX,l=i.clientY;if(!this.hasBounds||this.checkBounds(s,l)){var o=i.identifier,h=function(e){var n=e.changedTouches[0];n.identifier===o?(t.preventMousedownEvents=!0,clearTimeout(t.preventMousedownTimeout),t.preventMousedownTimeout=setTimeout(function(){t.preventMousedownEvents=!1},400),t.fire(e,s,l,n.clientX,n.clientY,new Date-r)&&!1!==e.cancelable&&e.preventDefault(),f()):f()},d=function(e){1===e.touches.length&&e.touches[0].identifier===o||f();var i=e.touches[0];if(e.cancelable){var r=i.clientX-s,h=i.clientY-l;n(r)>n(h)&&(r>0&&t.fires.find(function(e){return"right"===e.direction})&&e.preventDefault(),r<0&&t.fires.find(function(e){return"left"===e.direction})&&e.preventDefault())}t.hasBinding&&t.updateBindings(s,l,i.clientX,i.clientY)},f=function(){t.node.removeEventListener("touchend",h,!1),window.removeEventListener("touchmove",d,{passive:!1,capture:!1}),window.removeEventListener("touchcancel",f,!1)};this.node.addEventListener("touchend",h,!1),window.addEventListener("touchmove",d,{passive:!1,capture:!1}),window.addEventListener("touchcancel",f,!1)}},l.prototype.teardown=function(){var e=this.context;e.unlisten("pointerdown",o),e.unlisten("MSPointerDown",o),e.unlisten("mousedown",o),e.unlisten("touchstart",h),e.unlisten("dragstart",d),delete this.node.__r_swipes__};var f="undefined"!=typeof window?window:null;var a=function(e){function t(t){e.call(this,t)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.adaptSize=function(e){e?(this._media&&this._media.cancel(),v(this)):this._media&&this._media.fn()},t.prototype.sizeInPx=function(e){return this.sizer?(this.sizer.style.width="number"==typeof e?e+"px":e,this.sizer.clientWidth):160},t.prototype.relativeSize=function(e,t){return void 0===t&&(t="1em"),this.sizer?this.sizeInPx(e)/this.sizeInPx(t):10},t}(t);t.extendWith(a,{template:{v:4,t:[{t:7,e:"div",m:[{t:13,n:"class",f:"rshell",g:1},{t:16,r:"extra-attributes"},{n:"tracked",t:71,f:{r:[],s:'["outer"]'}},{n:"class-rshell-left-popped",t:13,f:[{t:2,r:".leftPop"}]},{n:"class-rshell-right-popped",t:13,f:[{t:2,r:".rightPop"}]}],f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rshell-sizer",g:1},{n:"tracked",t:71,f:{r:[],s:'["sizer"]'}}]}," ",{t:7,e:"div",m:[{t:13,n:"class",f:"rshell-main",g:1}],f:[{t:4,f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rshell-top",g:1},{n:"class-rshell-overflow",t:13,f:[{t:2,r:"~/topOverflow"}]},{t:4,f:[{t:16,r:"._topA"}],n:50,r:"._topA"}],f:[{t:16,r:"._top"}]}],n:50,r:"._top"}," ",{t:7,e:"div",m:[{t:13,n:"class",f:"rshell-middle",g:1},{n:"class-rshell-has-left",t:13,f:[{t:2,x:{r:["._left","._leftOver",".leftOver"],s:"_0&&!_1&&!_2"}}]},{n:"class-rshell-has-right",t:13,f:[{t:2,x:{r:["._right","._rightOver",".rightOver"],s:"_0&&!_1&&!_2"}}]},{n:"class-rshell-left-hidden",t:13,f:[{t:2,r:".leftHidden"}]},{n:"class-rshell-right-hidden",t:13,f:[{t:2,r:".rightHidden"}]}],f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rshell-modal",g:1},{n:"class-rshell-blocked",t:13,f:[{t:2,x:{r:[".blocked",".blockableLeft",".leftPull",".blockableRight",".rightPull"],s:"_0||(_1&&_2)||(_3&&_4)"}}]},{n:["click"],t:70,f:{r:["@this",".leftOver","._leftOver",".leftHidden",".rightOver","._rightOver",".rightHidden"],s:"[_0.set({leftHidden:_1||_2?true:_3,rightHidden:_4||_5?true:_6})]"}},{n:["swipeleft"],t:70,a:{r:[],s:'[{bind:".leftPush"}]'},f:{r:["@this"],s:'[_0.set("leftHidden",true)]'}},{n:["swiperight"],t:70,a:{r:[],s:'[{bind:".rightPush"}]'},f:{r:["@this"],s:'[_0.set("rightHidden",true)]'}},{t:4,f:[{n:"style-transition",f:"none",t:13},{n:"style-opacity",f:[{t:2,x:{r:[".leftPull",".rightPull"],s:"Math.min(_0||_1,100)/200"}}],t:13}],n:50,x:{r:[".leftPull",".rightPull"],s:"_0||_1"}}]}," ",{t:4,f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rshell-left",g:1},{n:"tracked",t:71,f:{r:[],s:'["left"]'}},{t:4,f:[{t:16,r:"._leftA"}],n:50,r:"._leftA"},{n:["swipeleft"],t:70,a:{r:[],s:'[{bind:".leftPush"}]'},f:{r:["@this"],s:'[_0.set("leftHidden",true)]'}},{t:4,f:[{n:"style-transition",f:"none",t:13},{n:"style-transform",f:["translate(-",{t:2,x:{r:[".leftPull"],s:"100-(_0>100?100:_0)"}},"%)"],t:13}],n:50,r:".leftPull"},{t:4,f:[{n:"style-transition",f:"none",t:13},{n:"style-transform",f:["translate(-",{t:2,x:{r:[".leftPush"],s:"_0>100?100:_0"}},"%)"],t:13}],n:50,r:".leftPush"},{n:"class-rshell-overflow",t:13,f:[{t:2,r:"~/leftOverflow"}]}],f:[{t:16,r:"._left"}]}],n:50,r:"._left"}," ",{t:4,f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rshell-center",g:1},{n:"tracked",t:71,f:{r:[],s:'["center"]'}},{t:4,f:[{t:16,r:"._centerA"}],n:50,r:"._centerA"},{t:4,f:[{n:["swiperight"],t:70,a:{r:[],s:'[{maxX:80,bind:".leftPull"}]'},f:{r:["@this"],s:'[_0.set("leftHidden",false)]'}}],n:50,x:{r:["._left",".leftHidden"],s:"_0&&_1"}},{t:4,f:[{n:["swipeleft"],t:70,a:{r:[],s:'[{minX:-80,bind:".rightPull"}]'},f:{r:["@this"],s:'[_0.set("rightHidden",false)]'}}],n:50,x:{r:["._right",".rightHidden"],s:"_0&&_1"}},{n:"class-rshell-overflow",t:13,f:[{t:2,r:"~/centerOverflow"}]}],f:[{t:16,r:"._center"}]}],n:50,r:"._center"}," ",{t:4,f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rshell-right",g:1},{n:"tracked",t:71,f:{r:[],s:'["right"]'}},{t:4,f:[{t:16,r:"._rightA"}],n:50,r:"._rightA"},{n:["swiperight"],t:70,a:{r:[],s:'[{bind:".rightPush"}]'},f:{r:["@this"],s:'[_0.set("rightHidden",true)]'}},{t:4,f:[{n:"style-transition",f:"none",t:13},{n:"style-transform",f:["translate(",{t:2,x:{r:[".rightPull"],s:"100-(_0>100?100:_0)"}},"%)"],t:13}],n:50,r:".rightPull"},{t:4,f:[{n:"style-transition",f:"none",t:13},{n:"style-transform",f:["translate(",{t:2,x:{r:[".rightPush"],s:"_0>100?100:_0"}},"%)"],t:13}],n:50,r:".rightPush"},{n:"class-rshell-overflow",t:13,f:[{t:2,r:"~/rightOverflow"}]}],f:[{t:16,r:"._right"}]}],n:50,r:"._right"}]}," ",{t:4,f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rshell-bottom",g:1},{t:4,f:[{t:16,r:"._bottomA"}],n:50,r:"._bottomA"},{n:"class-rshell-overflow",t:13,f:[{t:2,r:"~/bottomOverflow"}]}],f:[{t:16,r:"._bottom"}]}],n:50,r:"._bottom"}]}," ",{t:4,f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rshell-left-pop",g:1},{t:4,f:[{t:16,r:"._leftPopA"}],n:50,r:"._leftPopA"}],f:[{t:16,r:"._leftPop"}]}],n:50,r:"._leftPop"}," ",{t:4,f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rshell-right-pop",g:1},{t:4,f:[{t:16,r:"._rightPopA"}],n:50,r:"._rightPopA"}],f:[{t:16,r:"._rightPop"}]}],n:50,r:"._rightPop"}]}],e:{'["outer"]':function(){return["outer"]},'["sizer"]':function(){return["sizer"]},"_0&&!_1&&!_2":function(e,t,n){return e&&!t&&!n},"_0||(_1&&_2)||(_3&&_4)":function(e,t,n,i,r){return e||t&&n||i&&r},"[_0.set({leftHidden:_1||_2?true:_3,rightHidden:_4||_5?true:_6})]":function(e,t,n,i,r,s,l){return[e.set({leftHidden:!(!t&&!n)||i,rightHidden:!(!r&&!s)||l})]},'[{bind:".leftPush"}]':function(){return[{bind:".leftPush"}]},'[_0.set("leftHidden",true)]':function(e){return[e.set("leftHidden",!0)]},'[{bind:".rightPush"}]':function(){return[{bind:".rightPush"}]},'[_0.set("rightHidden",true)]':function(e){return[e.set("rightHidden",!0)]},"Math.min(_0||_1,100)/200":function(e,t){return Math.min(e||t,100)/200},"_0||_1":function(e,t){return e||t},'["left"]':function(){return["left"]},"100-(_0>100?100:_0)":function(e){return 100-(e>100?100:e)},"_0>100?100:_0":function(e){return e>100?100:e},'["center"]':function(){return["center"]},'[{maxX:80,bind:".leftPull"}]':function(){return[{maxX:80,bind:".leftPull"}]},'[_0.set("leftHidden",false)]':function(e){return[e.set("leftHidden",!1)]},"_0&&_1":function(e,t){return e&&t},'[{minX:-80,bind:".rightPull"}]':function(){return[{minX:-80,bind:".rightPull"}]},'[_0.set("rightHidden",false)]':function(e){return[e.set("rightHidden",!1)]},'["right"]':function(){return["right"]}}},css:function(e){return[function(e){var t=e("raui.shell.left.width")||e("raui.menu.width")||"18em",n=e("raui.shell.right.width")||e("raui.menu.width")||"18em",i=Object.assign({},e("raui.primary"),e("raui.shell.primary"));return"\n .rshell {\n width: 100%;\n height: 100%;\n position: absolute;\n overflow: hidden;\n }\n .rshell-sizer {\n position: absolute;\n }\n .rshell-modal {\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n opacity: 0;\n background-color: #000;\n z-index: -1;\n transition: opacity "+(e("raui.shell.slide.ms")||400)+"ms ease-in-out, z-index 0s linear "+(e("raui.shell.slide.ms")||400)+"ms;\n }\n .rshell-modal.rshell-blocked {\n opacity: 0.5;\n z-index: 3;\n transition: opacity "+(e("raui.shell.slide.ms")||400)+"ms ease-in-out, z-index 0s linear;\n }\n .rshell-main {\n width: 100%;\n height: 100%;\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n overflow: hidden;\n z-index: 1;\n }\n \n .rshell-middle {\n flex-grow: 1;\n position: relative;\n }\n \n .rshell-left, .rshell-right {\n position: absolute;\n top: 0;\n box-sizing: border-box;\n height: 100%;\n overflow: auto;\n z-index: 4;\n background-color: "+(i.bg||"inherit")+";\n transition: transform "+(e("raui.shell.slide.ms")||400)+"ms ease-in-out;\n }\n .rshell-left {\n left: 0;\n width: "+t+";\n }\n .rshell-right {\n right: 0;\n width: "+n+";\n }\n .rshell-left-hidden > .rshell-left {\n transform: translateX(-100%);\n }\n .rshell-right-hidden > .rshell-right {\n transform: translateX(100%);\n }\n .rshell-has-right > .rshell-right,\n .rshell-has-left > .rshell-left {\n z-index: 2;\n }\n .rshell-left-popped > .rshell-main > .rshell-middle > .rshell-left,\n .rshell-left-popped > .rshell-main > .rshell-middle > .rshell-right,\n .rshell-right-popped > .rshell-main > .rshell-middle > .rshell-left,\n .rshell-right-popped > .rshell-main > .rshell-middle > .rshell-right {\n z-index: 2;\n }\n \n .rshell-left-pop, .rshell-right-pop {\n z-index: 5;\n transition: transform "+(e("raui.shell.slide.ms")||400)+"ms ease-in-out;\n position: absolute;\n top: 0;\n bottom: 0;\n }\n .rshell-left-pop {\n transform: translateX(-100%);\n }\n .rshell-left-popped > .rshell-left-pop {\n transform: none;\n }\n \n .rshell-right-pop {\n transform: translateX(100%);\n right: 0;\n }\n .rshell-right-popped > .rshell-right-pop {\n transform: none;\n }\n \n .rshell-center {\n position: absolute;\n top: 0;\n left: 0;\n z-index: 1;\n box-sizing: border-box;\n transition: left "+(e("raui.shell.slide.ms")||400)+"ms ease-in-out, width "+(e("raui.shell.slide.ms")||400)+"ms ease-in-out;\n height: 100%;\n width: 100%;\n flex-grow: 1;\n overflow: auto;\n }\n .rshell-has-left > .rshell-center {\n width: calc(100% - "+t+");\n left: "+t+";\n }\n .rshell-has-right > .rshell-center {\n width: calc(100% - "+n+");\n left: 0;\n }\n .rshell-has-left.rshell-has-right > .rshell-center {\n width: calc(100% - "+t+" - "+n+");\n left: "+t+";\n }\n .rshell-has-left.rshell-left-hidden > .rshell-center {\n width: 100%;\n left: 0;\n }\n .rshell-has-right.rshell-right-hidden > .rshell-center {\n width: 100%;\n }\n .rshell-has-left.rshell-has-right.rshell-left-hidden > .rshell-center {\n width: calc(100% - "+n+");\n left: 0;\n }\n .rshell-has-left.rshell-has-right.rshell-right-hidden > .rshell-center {\n width: calc(100% - "+t+");\n left: "+t+";\n }\n .rshell-has-left.rshell-has-right.rshell-left-hidden.rshell-right-hidden > .rshell-center {\n width: 100%;\n left: 0;\n }\n \n .rshell-overflow {\n overflow: visible;\n }\n "}.call(this,e)].join(" ")},attributes:["adaptive"],use:[r,s],decorators:{tracked:function(e,t){return this[t]=e,{teardown:function(){this[t]=void 0}}}},cssId:"rshell",noCssTransform:!0,computed:{blockableLeft:function(){return this.get("_left")&&(this.get("leftOver")||this.get("_leftOver"))},blockableRight:function(){return this.get("_right")&&(this.get("rightOver")||this.get("_rightOver"))},blocked:function(){return this.get("blockableLeft")&&!this.get("leftHidden")||this.get("blockableRight")&&!this.get("rightHidden")||this.get("leftPop")||this.get("rightPop")}},on:{construct:function(){var e=this.component;if(!e)return;var t=e.template.f||[],n=e.template.m?e.template.m.slice():[],i=e.template;e.template={e:i.e,f:i.f,t:i.t,m:n};var r={};t.forEach(function(e){if(~c.indexOf(e.e)){var t="left-pop"===e.e?"leftPop":"right-pop"===e.e?"rightPop":e.e;if(r["_"+t]={t:e.f},e.m){var i=e.m.filter(function(e){return!~u.indexOf(e.n)});if(i.length&&(r["_"+t+"A"]={t:i}),i.length!==e.m.length){var s=e.m.find(function(e){return"hidden"===e.n});s&&n.push({t:13,n:t+"Hidden",f:s.f}),(s=e.m.find(function(e){return"over"===e.n}))&&n.push({t:13,n:t+"Over",f:s.f}),(s=e.m.find(function(e){return"primary"===e.n}))&&n.push({t:13,n:"_"+t+"Primary",f:s.f}),~e.e.indexOf("-pop")&&(s=e.m.find(function(e){return"popped"===e.n}))&&n.push({t:13,n:t,f:s.f}),(s=e.m.find(function(e){return"overflow"===e.n}))&&n.push({t:13,n:t+"Overflow",f:s.f}),(s=("left"===e.e||"right"===e.e)&&e.m.find(function(e){return"forced"===e.n}))&&n.push({t:13,n:"_"+t+"Over",f:s.f})}}}}),this._items=r},config:function(){this._items&&this.set(this._items)},init:function(){var e=this;this.get("@style.shell.sides.initialTimeout")&&(this.get("rightOver")||this.get("leftOver"))?setTimeout(function(){e.get("rightOver")&&e.set("rightHidden",!0),e.get("leftOver")&&e.set("leftHidden",!0)},this.get("@style.shell.sides.initialTimeout")||1500):(this.get("rightOver")&&this.set("rightHidden",!0),this.get("leftOver")&&this.set("leftHidden",!0))},complete:function(){v(this)},unrender:function(){this._media&&this._media.cancel()}},observe:{"leftHidden rightHidden":{handler:function(e,t,n){var i=this;(~n.indexOf("left")&&!this.get("leftOver")&&!this.get("_leftOver")||~n.indexOf("right")&&!this.get("rightOver")&&!this.get("_rightOver"))&&setTimeout(function(){i._media&&i._media.listener&&i._media.listener.silence(),i._media&&i._media.observer&&i._media.observer.silence(),i.fire("resize"),i._media&&i._media.listener&&i._media.listener.resume(),i._media&&i._media.observer&&i._media.observer.resume()},(this.get("shell.slide.ms")||400)+10)},defer:!0,init:!1}}});var c=["top","bottom","center","left","right","left-pop","right-pop"],u=["hidden","primary","over","popped","overflow","forced"];function v(e){if("undefined"!=typeof window&&(e.left||e.right)){if(e._media)return e._media.fn;var t,n=0,i={fn:function(){var r={left:!e.get("leftOver")&&e.left&&e.left.clientWidth||0,right:!e.get("rightOver")&&e.right&&e.right.clientWidth||0};r.left&&(r.left=e.relativeSize(r.left)),r.right&&(r.right=e.relativeSize(r.right));var s=e.relativeSize("100%"),l=e.get("_rightPrimary")?"right":"left",o="right"===l?"left":"right",h=e.relativeSize(e.get("@style.break.medium")||"60rem","1rem"),d={_leftOver:!1,_rightOver:!1},f={leftHidden:e.get("leftOver"),rightHidden:e.get("rightOver")};n||(d.leftHidden=!1,d.rightHidden=!1);var a=s-r.left-r.right;a<=h&&(a+=r[o],f[o+"Hidden"]=!0,d["_"+o+"Over"]=!0,a<=h&&(f[l+"Hidden"]=!0,d["_"+l+"Over"]=!0)),e.set(d),n?2===n&&e.set(f):(n=1,setTimeout(function(){n=2,e.set(f)},e.get("@style.shell.sides.initialTimeout")||1500)),t&&clearTimeout(t),t=setTimeout(function(){i.listener&&i.listener.silence(),e.fire("resize"),i.listener&&i.listener.resume(),t=0},(e.get("shell.slide.ms")||400)+100)},cancel:function(){e._media=null,window.removeEventListener("resize",i.fn),i.observer&&i.observer.cancel(),i.listener&&i.listener.cancel()}};window.addEventListener("resize",i.fn),i.observer=e.observe("@style leftOver rightOver _leftPrimary _rightPrimary",i.fn,{init:!1}),e.get("adaptive")&&(i.listener=e.root.on("*.resize",i.fn)),e._media=i,e._media.fn()}}function m(e){return void 0===e&&(e={}),function(t){t.instance.components[e.name||"shell"]=a}}!function(e,t,n){if(f&&f.Ractive&&"object"==typeof f.Ractive[t]){var i=document.currentScript;if(i||(i=(i=document.querySelectorAll("script"))[i.length-1]),i){var r=i.getAttribute("data-alias");r&&(r=(r=r.split("&")).reduce(function(e,t){var n=t.split("="),i=n[0],r=n[1];return e[i]=r,e},{})),Ractive[t][r&&r[e]||e]=n}}}("RMShell","components",a),e.Shell=a,e.plugin=m,e.default=m,Object.defineProperty(e,"__esModule",{value:!0})});
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("ractive")):"function"==typeof define&&define.amd?define(["exports","ractive"],e):e(t.RMShell={},t.Ractive)}(this,function(t,e){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e;var n=Math.abs;function i(t){var e=Object.assign({},{distance:150,flick:200,threshold:.2},t);return function(n){var i=n.Ractive;n.instance.events[t.name||"swipe"+(t.direction||"")]=function(t,n,r){var s;void 0===r&&(r={});var o=Object.assign({},{direction:"right"},e,r);return o.fire=n,(s=t.__r_swipes__)?s.subscribe(o):(s=new l(i.getContext(t)),t.__r_swipes__=s,s.subscribe(o)),{teardown:function(){s.unsubscribe(n)}}}}}var r=i({direction:"left"}),s=i({direction:"right"}),l=(i({direction:"up"}),i({direction:"down"}),function(t){this.context=t,this.node=t.node,this.fires=[],this.bind()});function o(t){return this.__r_swipes__.mousedown(t)}function h(t){return this.__r_swipes__.touchdown(t)}function d(t){t.preventDefault()}l.prototype.subscribe=function(t){this.fires.push(t),this.hasBinding=!!this.fires.find(function(t){return t.bindPx||t.bind}),this.hasBounds=!!this.fires.find(function(t){return null!=t.maxX||null!=t.maxY||null!=t.minX||null!=t.minY})},l.prototype.unsubscribe=function(t){this.fires=this.fires.filter(function(e){return e.fire!==t}),this.fires.length||this.teardown(),this.hasBinding=!!this.fires.find(function(t){return t.bindPx||t.bind}),this.hasBounds=!!this.fires.find(function(t){return null!=t.maxX||null!=t.maxY||null!=t.minX||null!=t.minY})},l.prototype.bind=function(){"ontouchstart"in window?(this.context.listen("mousedown",o),this.context.listen("dragstart",d),this.context.listen("touchstart",h,{passive:!1})):window.PointerEvent||window.navigator.pointerEnabled?this.context.listen("pointerdown",o,{passive:!1}):window.navigator.msPointerEnabled?this.context.listen("MSPointerDown",o):(this.context.listen("mousedown",o),this.context.listen("dragstart",d),this.context.listen("touchstart",h,{passive:!1}))},l.prototype.fire=function(t,e,i,r,s,l){var o,h=this,d=this.node;return this.fires.forEach(function(f){if(f.active){var a=l<f.flick?r-e+f.flick/l*(r-e):r-e,c=l<f.flick?s-i+f.flick/l*(s-i):s-i,u=n(f.threshold<=0?Math.max(a,c):f.threshold<1?"right"===f.direction||"left"===f.direction?f.threshold*a:f.threshold*c:f.threshold),p=f.bindPx,m=f.bind;a>0&&"right"===f.direction&&a>=f.distance&&n(c)<=u?(f.fire({node:d,event:t}),o=!0):a<0&&"left"===f.direction&&-a>=f.distance&&n(c)<=u&&(f.fire({node:d,event:t}),o=!0),c>0&&"down"===f.direction&&c>=f.distance&&n(a)<=u?(f.fire({node:d,event:t}),o=!0):c<0&&"up"===f.direction&&-c>=f.distance&&n(a)<=u&&(f.fire({node:d,event:t}),o=!0),p&&h.context.set(p,0),m&&h.context.set(m,0)}else f.active=!0}),o},l.prototype.checkBounds=function(t,e){var n=this.node.getBoundingClientRect(),i=t-n.x,r=e-n.y;return this.fires.forEach(function(t){var e=t.maxX,s=t.maxY,l=t.minX,o=t.minY;e>0&&i>e?t.active=!1:e<0&&i>n.width+e?t.active=!1:s>0&&r>s?t.active=!1:s<0&&r>n.height+s?t.active=!1:l>0&&i<l?t.active=!1:l<0&&i<n.width+l?t.active=!1:o>0&&r<o?t.active=!1:o<0&&r<n.width+o?t.active=!1:t.active=!0}),!!this.fires.find(function(t){return t.active})},l.prototype.updateBindings=function(t,e,i,r){var s=this;this.fires.forEach(function(l){if(l.active&&(l.bindPx||l.bind)){var o=l.bindPx,h=l.bind,d=i-t,f=r-e,a=n(l.threshold<=0?Math.max(d,f):l.threshold<1?"right"===l.direction||"left"===l.direction?l.threshold*d:l.threshold*f:l.threshold);o&&("left"===l.direction?s.context.set(o,d<0&&n(f)<=a?-d:0):"right"===l.direction?s.context.set(o,d>0&&n(f)<=a?d:0):"up"===l.direction?s.context.set(o,f<0&&n(d)<=a?-f:0):"down"===l.direction&&s.context.set(o,f>0&&n(d)<=a?f:0)),h&&("left"===l.direction?s.context.set(h,d<0&&n(f)<=a?-d/l.distance*100:0):"right"===l.direction?s.context.set(h,d>0&&n(f)<=a?d/l.distance*100:0):"up"===l.direction?s.context.set(h,f<0&&n(d)<=a?-f/l.distance*100:0):"down"===l.direction&&s.context.set(h,f>0&&n(d)<=a?f/l.distance*100:0))}})},l.prototype.mousedown=function(t){var e=this;if(!this.preventMousedownEvents&&(void 0===t.which||1===t.which)){var n=new Date,i=t.clientX,r=t.clientY;if(!this.hasBounds||this.checkBounds(i,r)){var s=t.pointerId,l=function(t){e.fire(t,i,r,t.clientX,t.clientY,new Date-n)&&!1!==t.cancelable&&t.preventDefault(),h()},o=function(t){t.pointerId==s&&e.hasBinding&&e.updateBindings(i,r,t.clientX,t.clientY)},h=function(){e.node.removeEventListener("MSPointerUp",l,!1),document.removeEventListener("MSPointerMove",o,!1),document.removeEventListener("MSPointerCancel",h,!1),document.removeEventListener("pointerup",l,!1),document.removeEventListener("pointermove",o,!1),document.removeEventListener("pointercancel",h,!1),document.removeEventListener("mouseup",l,!1),document.removeEventListener("click",l,!1),document.removeEventListener("mousemove",o,!1)};window.PointerEvent||window.navigator.pointerEnabled?(document.addEventListener("pointerup",l,!1),document.addEventListener("pointermove",o,!1),document.addEventListener("pointercancel",h,!1)):window.navigator.msPointerEnabled?(document.addEventListener("MSPointerUp",l,!1),document.addEventListener("MSPointerMove",o,!1),document.addEventListener("MSPointerCancel",h,!1)):(document.addEventListener("mouseup",l,!1),document.addEventListener("click",l,!1),document.addEventListener("mousemove",o,!1))}}},l.prototype.touchdown=function(t){var e=this,i=t.touches[0],r=new Date,s=i.clientX,l=i.clientY;if(!this.hasBounds||this.checkBounds(s,l)){var o=i.identifier,h=function(t){var n=t.changedTouches[0];n.identifier===o?(e.preventMousedownEvents=!0,clearTimeout(e.preventMousedownTimeout),e.preventMousedownTimeout=setTimeout(function(){e.preventMousedownEvents=!1},400),e.fire(t,s,l,n.clientX,n.clientY,new Date-r)&&!1!==t.cancelable&&t.preventDefault(),f()):f()},d=function(t){1===t.touches.length&&t.touches[0].identifier===o||f();var i=t.touches[0];if(t.cancelable){var r=i.clientX-s,h=i.clientY-l;n(r)>n(h)&&(r>0&&e.fires.find(function(t){return"right"===t.direction})&&t.preventDefault(),r<0&&e.fires.find(function(t){return"left"===t.direction})&&t.preventDefault())}e.hasBinding&&e.updateBindings(s,l,i.clientX,i.clientY)},f=function(){e.node.removeEventListener("touchend",h,!1),window.removeEventListener("touchmove",d,{passive:!1,capture:!1}),window.removeEventListener("touchcancel",f,!1)};this.node.addEventListener("touchend",h,!1),window.addEventListener("touchmove",d,{passive:!1,capture:!1}),window.addEventListener("touchcancel",f,!1)}},l.prototype.teardown=function(){var t=this.context;t.unlisten("pointerdown",o),t.unlisten("MSPointerDown",o),t.unlisten("mousedown",o),t.unlisten("touchstart",h),t.unlisten("dragstart",d),delete this.node.__r_swipes__};var f="undefined"!=typeof window?window:null;var a=function(t){function e(e){t.call(this,e)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.adaptSize=function(t){t?(this._media&&this._media.cancel(),p(this)):this._media&&this._media.fn()},e.prototype.sizeInPx=function(t){return this.sizer?(this.sizer.style.width="number"==typeof t?t+"px":t,this.sizer.clientWidth):160},e.prototype.relativeSize=function(t,e){return void 0===e&&(e="1em"),this.sizer?this.sizeInPx(t)/this.sizeInPx(e):10},e}(e);e.extendWith(a,{template:{v:4,t:[{t:7,e:"div",m:[{t:13,n:"class",f:"rshell",g:1},{t:16,r:"extra-attributes"},{n:"tracked",t:71,f:{r:[],s:'["outer"]'}},{n:"class-rshell-left-popped",t:13,f:[{t:2,r:".leftPop"}]},{n:"class-rshell-right-popped",t:13,f:[{t:2,r:".rightPop"}]},{n:"class-rshell-top-popped",t:13,f:[{t:2,r:".topPop"}]},{n:"class-rshell-bottom-popped",t:13,f:[{t:2,r:".bottomPop"}]}],f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rshell-sizer",g:1},{n:"tracked",t:71,f:{r:[],s:'["sizer"]'}}]}," ",{t:7,e:"div",m:[{t:13,n:"class",f:"rshell-main",g:1}],f:[{t:4,f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rshell-top",g:1},{n:"class-rshell-overflow",t:13,f:[{t:2,r:"~/topOverflow"}]},{t:4,f:[{t:16,r:"._topA"}],n:50,r:"._topA"}],f:[{t:16,r:"._top"}]}],n:50,r:"._top"}," ",{t:7,e:"div",m:[{t:13,n:"class",f:"rshell-middle",g:1},{n:"class-rshell-has-left",t:13,f:[{t:2,x:{r:["._left","._leftOver",".leftOver"],s:"_0&&!_1&&!_2"}}]},{n:"class-rshell-has-right",t:13,f:[{t:2,x:{r:["._right","._rightOver",".rightOver"],s:"_0&&!_1&&!_2"}}]},{n:"class-rshell-left-hidden",t:13,f:[{t:2,r:".leftHidden"}]},{n:"class-rshell-right-hidden",t:13,f:[{t:2,r:".rightHidden"}]}],f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rshell-modal",g:1},{n:"class-rshell-blocked",t:13,f:[{t:2,x:{r:[".blocked",".blockableLeft",".leftPull",".blockableRight",".rightPull"],s:"_0||(_1&&_2)||(_3&&_4)"}}]},{n:["click"],t:70,f:{r:["@this",".leftOver","._leftOver",".leftHidden",".rightOver","._rightOver",".rightHidden"],s:"[_0.set({leftHidden:_1||_2?true:_3,rightHidden:_4||_5?true:_6})]"}},{n:["swipeleft"],t:70,a:{r:[],s:'[{bind:".leftPush"}]'},f:{r:["@this"],s:'[_0.set("leftHidden",true)]'}},{n:["swiperight"],t:70,a:{r:[],s:'[{bind:".rightPush"}]'},f:{r:["@this"],s:'[_0.set("rightHidden",true)]'}},{t:4,f:[{n:"style-transition",f:"none",t:13},{n:"style-opacity",f:[{t:2,x:{r:[".leftPull",".rightPull"],s:"Math.min(_0||_1,100)/200"}}],t:13}],n:50,x:{r:[".leftPull",".rightPull"],s:"_0||_1"}}]}," ",{t:4,f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rshell-left",g:1},{n:"tracked",t:71,f:{r:[],s:'["left"]'}},{t:4,f:[{t:16,r:"._leftA"}],n:50,r:"._leftA"},{n:["swipeleft"],t:70,a:{r:[],s:'[{bind:".leftPush"}]'},f:{r:["@this"],s:'[_0.set("leftHidden",true)]'}},{t:4,f:[{n:"style-transition",f:"none",t:13},{n:"style-transform",f:["translate(-",{t:2,x:{r:[".leftPull"],s:"100-(_0>100?100:_0)"}},"%)"],t:13}],n:50,r:".leftPull"},{t:4,f:[{n:"style-transition",f:"none",t:13},{n:"style-transform",f:["translate(-",{t:2,x:{r:[".leftPush"],s:"_0>100?100:_0"}},"%)"],t:13}],n:50,r:".leftPush"},{n:"class-rshell-overflow",t:13,f:[{t:2,r:"~/leftOverflow"}]}],f:[{t:16,r:"._left"}]}],n:50,r:"._left"}," ",{t:4,f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rshell-center",g:1},{n:"tracked",t:71,f:{r:[],s:'["center"]'}},{t:4,f:[{t:16,r:"._centerA"}],n:50,r:"._centerA"},{t:4,f:[{n:["swiperight"],t:70,a:{r:[],s:'[{maxX:80,bind:".leftPull"}]'},f:{r:["@this"],s:'[_0.set("leftHidden",false)]'}}],n:50,x:{r:["._left",".leftHidden"],s:"_0&&_1"}},{t:4,f:[{n:["swipeleft"],t:70,a:{r:[],s:'[{minX:-80,bind:".rightPull"}]'},f:{r:["@this"],s:'[_0.set("rightHidden",false)]'}}],n:50,x:{r:["._right",".rightHidden"],s:"_0&&_1"}},{n:"class-rshell-overflow",t:13,f:[{t:2,r:"~/centerOverflow"}]}],f:[{t:16,r:"._center"}]}],n:50,r:"._center"}," ",{t:4,f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rshell-right",g:1},{n:"tracked",t:71,f:{r:[],s:'["right"]'}},{t:4,f:[{t:16,r:"._rightA"}],n:50,r:"._rightA"},{n:["swiperight"],t:70,a:{r:[],s:'[{bind:".rightPush"}]'},f:{r:["@this"],s:'[_0.set("rightHidden",true)]'}},{t:4,f:[{n:"style-transition",f:"none",t:13},{n:"style-transform",f:["translate(",{t:2,x:{r:[".rightPull"],s:"100-(_0>100?100:_0)"}},"%)"],t:13}],n:50,r:".rightPull"},{t:4,f:[{n:"style-transition",f:"none",t:13},{n:"style-transform",f:["translate(",{t:2,x:{r:[".rightPush"],s:"_0>100?100:_0"}},"%)"],t:13}],n:50,r:".rightPush"},{n:"class-rshell-overflow",t:13,f:[{t:2,r:"~/rightOverflow"}]}],f:[{t:16,r:"._right"}]}],n:50,r:"._right"}]}," ",{t:4,f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rshell-bottom",g:1},{t:4,f:[{t:16,r:"._bottomA"}],n:50,r:"._bottomA"},{n:"class-rshell-overflow",t:13,f:[{t:2,r:"~/bottomOverflow"}]}],f:[{t:16,r:"._bottom"}]}],n:50,r:"._bottom"}]}," ",{t:4,f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rshell-left-pop",g:1},{t:4,f:[{t:16,r:"._leftPopA"}],n:50,r:"._leftPopA"}],f:[{t:16,r:"._leftPop"}]}],n:50,r:"._leftPop"}," ",{t:4,f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rshell-right-pop",g:1},{t:4,f:[{t:16,r:"._rightPopA"}],n:50,r:"._rightPopA"}],f:[{t:16,r:"._rightPop"}]}],n:50,r:"._rightPop"}," ",{t:4,f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rshell-bottom-pop",g:1},{t:4,f:[{t:16,r:"._bottomPopA"}],n:50,r:"._bottomPopA"}],f:[{t:16,r:"._bottomPop"}]}],n:50,r:"._bottomPop"}," ",{t:4,f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rshell-top-pop",g:1},{t:4,f:[{t:16,r:"._topPopA"}],n:50,r:"._topPopA"}],f:[{t:16,r:"._topPop"}]}],n:50,r:"._topPop"}]}],e:{'["outer"]':function(){return["outer"]},'["sizer"]':function(){return["sizer"]},"_0&&!_1&&!_2":function(t,e,n){return t&&!e&&!n},"_0||(_1&&_2)||(_3&&_4)":function(t,e,n,i,r){return t||e&&n||i&&r},"[_0.set({leftHidden:_1||_2?true:_3,rightHidden:_4||_5?true:_6})]":function(t,e,n,i,r,s,l){return[t.set({leftHidden:!(!e&&!n)||i,rightHidden:!(!r&&!s)||l})]},'[{bind:".leftPush"}]':function(){return[{bind:".leftPush"}]},'[_0.set("leftHidden",true)]':function(t){return[t.set("leftHidden",!0)]},'[{bind:".rightPush"}]':function(){return[{bind:".rightPush"}]},'[_0.set("rightHidden",true)]':function(t){return[t.set("rightHidden",!0)]},"Math.min(_0||_1,100)/200":function(t,e){return Math.min(t||e,100)/200},"_0||_1":function(t,e){return t||e},'["left"]':function(){return["left"]},"100-(_0>100?100:_0)":function(t){return 100-(t>100?100:t)},"_0>100?100:_0":function(t){return t>100?100:t},'["center"]':function(){return["center"]},'[{maxX:80,bind:".leftPull"}]':function(){return[{maxX:80,bind:".leftPull"}]},'[_0.set("leftHidden",false)]':function(t){return[t.set("leftHidden",!1)]},"_0&&_1":function(t,e){return t&&e},'[{minX:-80,bind:".rightPull"}]':function(){return[{minX:-80,bind:".rightPull"}]},'[_0.set("rightHidden",false)]':function(t){return[t.set("rightHidden",!1)]},'["right"]':function(){return["right"]}}},css:function(t){return[function(t){var e=t("raui.shell.left.width")||t("raui.menu.width")||"18em",n=t("raui.shell.right.width")||t("raui.menu.width")||"18em",i=Object.assign({},t("raui.primary"),t("raui.shell.primary"));return"\n .rshell {\n width: 100%;\n height: 100%;\n position: absolute;\n overflow: hidden;\n }\n .rshell-sizer {\n position: absolute;\n }\n .rshell-modal {\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n opacity: 0;\n background-color: #000;\n z-index: -1;\n transition: opacity "+(t("raui.shell.slide.ms")||400)+"ms ease-in-out, z-index 0s linear "+(t("raui.shell.slide.ms")||400)+"ms;\n }\n .rshell-modal.rshell-blocked {\n opacity: 0.5;\n z-index: 3;\n transition: opacity "+(t("raui.shell.slide.ms")||400)+"ms ease-in-out, z-index 0s linear;\n }\n .rshell-main {\n width: 100%;\n height: 100%;\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n overflow: hidden;\n z-index: 1;\n }\n \n .rshell-middle {\n flex-grow: 1;\n position: relative;\n }\n \n .rshell-left, .rshell-right {\n position: absolute;\n top: 0;\n box-sizing: border-box;\n height: 100%;\n overflow: auto;\n z-index: 4;\n background-color: "+(i.bg||"inherit")+";\n transition: transform "+(t("raui.shell.slide.ms")||400)+"ms ease-in-out;\n }\n .rshell-left {\n left: 0;\n width: "+e+";\n }\n .rshell-right {\n right: 0;\n width: "+n+";\n }\n .rshell-left-hidden > .rshell-left {\n transform: translateX(-100%);\n }\n .rshell-right-hidden > .rshell-right {\n transform: translateX(100%);\n }\n .rshell-has-right > .rshell-right,\n .rshell-has-left > .rshell-left {\n z-index: 2;\n }\n .rshell-left-popped > .rshell-main > .rshell-middle > .rshell-left,\n .rshell-left-popped > .rshell-main > .rshell-middle > .rshell-right,\n .rshell-top-popped > .rshell-main > .rshell-middle > .rshell-left,\n .rshell-top-popped > .rshell-main > .rshell-middle > .rshell-right,\n .rshell-bottom-popped > .rshell-main > .rshell-middle > .rshell-left,\n .rshell-bottom-popped > .rshell-main > .rshell-middle > .rshell-right,\n .rshell-right-popped > .rshell-main > .rshell-middle > .rshell-left,\n .rshell-right-popped > .rshell-main > .rshell-middle > .rshell-right {\n z-index: 2;\n }\n \n .rshell-left-pop, .rshell-right-pop, .rshell-top-pop, .rshell-bottom-pop {\n z-index: 5;\n transition: transform "+(t("raui.shell.slide.ms")||400)+"ms ease-in-out;\n position: absolute;\n }\n .rshell-left-pop, .rshell-right-pop {\n top: 0;\n bottom: 0;\n max-width: 100%;\n overflow: auto;\n }\n .rshell-top-pop, .rshell-bottom-pop {\n left: 0;\n right: 0;\n max-height: 100%;\n overflow: auto;\n }\n \n .rshell-left-pop {\n transform: translateX(-100%);\n }\n .rshell-right-pop {\n transform: translateX(100%);\n right: 0;\n }\n .rshell-top-pop {\n top: 0;\n transform: translateY(-100%);\n }\n .rshell-bottom-pop {\n bottom: 0;\n transform: translateY(100%);\n }\n \n .rshell-left-popped > .rshell-left-pop,\n .rshell-right-popped > .rshell-right-pop,\n .rshell-top-popped > .rshell-top-pop,\n .rshell-bottom-popped > .rshell-bottom-pop {\n transform: none;\n }\n \n .rshell-center {\n position: absolute;\n top: 0;\n left: 0;\n z-index: 1;\n box-sizing: border-box;\n transition: left "+(t("raui.shell.slide.ms")||400)+"ms ease-in-out, width "+(t("raui.shell.slide.ms")||400)+"ms ease-in-out;\n height: 100%;\n width: 100%;\n flex-grow: 1;\n overflow: auto;\n }\n .rshell-has-left > .rshell-center {\n width: calc(100% - "+e+");\n left: "+e+";\n }\n .rshell-has-right > .rshell-center {\n width: calc(100% - "+n+");\n left: 0;\n }\n .rshell-has-left.rshell-has-right > .rshell-center {\n width: calc(100% - "+e+" - "+n+");\n left: "+e+";\n }\n .rshell-has-left.rshell-left-hidden > .rshell-center {\n width: 100%;\n left: 0;\n }\n .rshell-has-right.rshell-right-hidden > .rshell-center {\n width: 100%;\n }\n .rshell-has-left.rshell-has-right.rshell-left-hidden > .rshell-center {\n width: calc(100% - "+n+");\n left: 0;\n }\n .rshell-has-left.rshell-has-right.rshell-right-hidden > .rshell-center {\n width: calc(100% - "+e+");\n left: "+e+";\n }\n .rshell-has-left.rshell-has-right.rshell-left-hidden.rshell-right-hidden > .rshell-center {\n width: 100%;\n left: 0;\n }\n \n .rshell-overflow {\n overflow: visible;\n }\n "}.call(this,t)].join(" ")},attributes:["adaptive"],use:[r,s],decorators:{tracked:function(t,e){return this[e]=t,{teardown:function(){this[e]=void 0}}}},cssId:"rshell",noCssTransform:!0,computed:{blockableLeft:function(){return this.get("_left")&&(this.get("leftOver")||this.get("_leftOver"))},blockableRight:function(){return this.get("_right")&&(this.get("rightOver")||this.get("_rightOver"))},blocked:function(){return this.get("blockableLeft")&&!this.get("leftHidden")||this.get("blockableRight")&&!this.get("rightHidden")||this.get("leftPop")||this.get("rightPop")||this.get("topPop")||this.get("bottomPop")}},on:{construct:function(){var t=this.component;if(!t)return;var e=t.template.f||[],n=t.template.m?t.template.m.slice():[],i=t.template;t.template={e:i.e,f:i.f,t:i.t,m:n};var r={};e.forEach(function(t){if(~c.indexOf(t.e)){var e="left-pop"===t.e?"leftPop":"right-pop"===t.e?"rightPop":"top-pop"===t.e?"topPop":"bottom-pop"===t.e?"bottomPop":t.e;if(r["_"+e]={t:t.f},t.m){var i=t.m.filter(function(t){return!~u.indexOf(t.n)});if(i.length&&(r["_"+e+"A"]={t:i}),i.length!==t.m.length){var s=t.m.find(function(t){return"hidden"===t.n});s&&n.push({t:13,n:e+"Hidden",f:s.f}),(s=t.m.find(function(t){return"over"===t.n}))&&n.push({t:13,n:e+"Over",f:s.f}),(s=t.m.find(function(t){return"primary"===t.n}))&&n.push({t:13,n:"_"+e+"Primary",f:s.f}),~t.e.indexOf("-pop")&&(s=t.m.find(function(t){return"popped"===t.n}))&&n.push({t:13,n:e,f:s.f}),(s=t.m.find(function(t){return"overflow"===t.n}))&&n.push({t:13,n:e+"Overflow",f:s.f}),(s=("left"===t.e||"right"===t.e)&&t.m.find(function(t){return"forced"===t.n}))&&n.push({t:13,n:"_"+e+"Over",f:s.f})}}}}),this._items=r},config:function(){this._items&&this.set(this._items)},init:function(){var t=this;this.get("@style.shell.sides.initialTimeout")&&(this.get("rightOver")||this.get("leftOver"))?setTimeout(function(){t.get("rightOver")&&t.set("rightHidden",!0),t.get("leftOver")&&t.set("leftHidden",!0)},this.get("@style.shell.sides.initialTimeout")||1500):(this.get("rightOver")&&this.set("rightHidden",!0),this.get("leftOver")&&this.set("leftHidden",!0))},complete:function(){p(this)},unrender:function(){this._media&&this._media.cancel()}},observe:{"leftHidden rightHidden":{handler:function(t,e,n){var i=this;(~n.indexOf("left")&&!this.get("leftOver")&&!this.get("_leftOver")||~n.indexOf("right")&&!this.get("rightOver")&&!this.get("_rightOver"))&&setTimeout(function(){i._media&&i._media.listener&&i._media.listener.silence(),i._media&&i._media.observer&&i._media.observer.silence(),i.fire("resize"),i._media&&i._media.listener&&i._media.listener.resume(),i._media&&i._media.observer&&i._media.observer.resume()},(this.get("shell.slide.ms")||400)+10)},defer:!0,init:!1}}});var c=["top","bottom","center","left","right","left-pop","right-pop","top-pop","bottom-pop"],u=["hidden","primary","over","popped","overflow","forced"];function p(t){if("undefined"!=typeof window&&(t.left||t.right)){if(t._media)return t._media.fn;var e,n=0,i={fn:function(){var r=t.relativeSize("100%");if(i.last!==r){i.last=r;var s={left:!t.get("leftOver")&&t.left&&t.left.clientWidth||0,right:!t.get("rightOver")&&t.right&&t.right.clientWidth||0};s.left&&(s.left=t.relativeSize(s.left)),s.right&&(s.right=t.relativeSize(s.right));var l=t.get("_rightPrimary")?"right":"left",o="right"===l?"left":"right",h=t.relativeSize(t.get("@style.break.medium")||"60rem","1rem"),d={_leftOver:!1,_rightOver:!1},f={leftHidden:t.get("leftOver"),rightHidden:t.get("rightOver")};n||(d.leftHidden=!1,d.rightHidden=!1);var a=r-s.left-s.right;a<=h&&(a+=s[o],f[o+"Hidden"]=!0,d["_"+o+"Over"]=!0,a<=h&&(f[l+"Hidden"]=!0,d["_"+l+"Over"]=!0)),t.set(d),n?2===n&&t.set(f):(n=1,setTimeout(function(){n=2,t.set(f)},t.get("@style.shell.sides.initialTimeout")||1500)),e&&clearTimeout(e),e=setTimeout(function(){i.listener&&i.listener.silence(),t.fire("resize"),i.listener&&i.listener.resume(),e=0},(t.get("shell.slide.ms")||400)+100)}},cancel:function(){t._media=null,window.removeEventListener("resize",i.fn),i.observer&&i.observer.cancel(),i.listener&&i.listener.cancel()}};window.addEventListener("resize",i.fn),i.observer=t.observe("@style leftOver rightOver _leftPrimary _rightPrimary",i.fn,{init:!1}),t.get("adaptive")&&(i.listener=t.root.on("*.resize",i.fn)),t._media=i,t._media.fn()}}function m(t){return void 0===t&&(t={}),function(e){e.instance.components[t.name||"shell"]=a}}!function(t,e,n){if(f&&f.Ractive&&"object"==typeof f.Ractive[e]){var i=document.currentScript;if(i||(i=(i=document.querySelectorAll("script"))[i.length-1]),i){var r=i.getAttribute("data-alias");r&&(r=(r=r.split("&")).reduce(function(t,e){var n=e.split("="),i=n[0],r=n[1];return t[i]=r,t},{})),Ractive[e][r&&r[t]||t]=n}}}("RMShell","components",a),t.Shell=a,t.plugin=m,t.default=m,Object.defineProperty(t,"__esModule",{value:!0})});

@@ -1,1 +0,1 @@

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("ractive")):"function"==typeof define&&define.amd?define(["exports","ractive"],e):e(t.RMTable={},t.Ractive)}(this,function(t,e){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e;var n,r="undefined"!=typeof window?window:null;function i(t,e,n){if(r&&r.Ractive&&"object"==typeof r.Ractive[e]){var i=document.currentScript;if(i||(i=(i=document.querySelectorAll("script"))[i.length-1]),i){var s=i.getAttribute("data-alias");s&&(s=(s=s.split("&")).reduce(function(t,e){var n=e.split("="),r=n[0],i=n[1];return t[r]=i,t},{})),Ractive[e][s&&s[t]||t]=n}}}var s={tiny:{units:[2,3,4,5,6,8],max:"0",value:0},xsmall:{units:[2,3,4,5,6,8,10,12],max:"20em",prefix:"xs",value:10},small:{units:[2,3,4,5,6,8,10,12],max:"36em",value:20},medium:{units:[2,3,4,5,6,8,10,12],max:"48em",value:30},large:{units:[2,3,4,5,6,8,10,12,20,24],max:"64em",value:40},xlarge:{units:[2,3,4,5,6,8,10,12,20,24,32],max:"100em",value:50},ginormous:{units:[2,3,4,5,6,8,10,12,20,24,32,64],max:"150em",value:60}},o={"grid grid-root":/\bgrid grid-root\b/g},a=/\s+/g;function l(t,e){var r,i,l=this.getContext(t),c=this,d=e||{};function f(){var e=t.clientWidth;if(!d.type||"class"===d.type){var n,s=-1;for(var c in r)r[c]<=e&&(o[c].lastIndex=-1,r[c]>s&&(n=c,s=r[c])),t.className=t.className.replace(o[c],"").trim();o[n].test(t.className)||(t.className+=" "+n),d.value&&l.set(d.value,i[n].value),d.name&&l.set(d.name,n),t.className=t.className.replace(a," ")}}function u(){var t=(n||(n=document.createElement("div"),document.body.appendChild(n)),n);for(var e in i=c.get("@style.break")||s,r={},i)t.style.width=i[e].max,r[e]=t.clientWidth,o[e]||(o[e]=new RegExp("\\b"+e+"\\b","g"));t.style.width=0,f()}var h=this.root.on("*.resize",f),p=this.observe("@style.break",u);return t.className+=" grid grid-root",u(),{update:function(t){d=t||{},f()},teardown:function(){t.className=t.className.replace(o["grid grid-root"],"").trim(),h.cancel(),p.cancel()}}}function c(t,e){var n,r=t("raui.grid.break")||e||s,i=".row > * { position: relative; width: 100%; transition-duration: 0.2s; transition-timing-function: ease-in-out; transition-property: width, padding, margin; box-sizing: border-box; }\n.grid { display: block; }\n.grid .row { display: flex; flex-wrap: wrap; min-height: fit-content; width: 100%; }\n.grid .row.row-pad > * { padding: "+(t("raui.grid.padding")||"0.5em")+"; }\n.grid .row > .pad { display: flex; flex-direction: column; padding: "+(t("raui.grid.padding")||"0.5em")+"; box-sizing: border-box; }",o=Object.keys(r).map(function(t){return(r[t].key=t)&&r[t]});o.sort(function(t,e){return t.value>e.value?1:t.value<e.value?-1:0});var a={};o.reverse().reduce(function(t,e){return t.push(e.key),a[e.key]=t.slice(),t},[]);var l="",c="";return o.reverse().forEach(function(t){var e=t.prefix||t.key[0];i+="\n"+a[t.key].map(function(t){return"."+t+" > ."+e+"0, ."+t+" > .row > ."+e+"0, ."+t+" ."+e+"-n0"}).join(", ")+" { width: 0; overflow: hidden; }",t.units.forEach(function(r){c+="\n"+a[t.key].map(function(t){return"."+t+" > "+e+"1, ."+t+" > .row > ."+e+"1, ."+t+" "+e+"-n1"}).join(", ")+" { width: 100%; }";for(var i=function(i){n=(n=""+i/r*100).substr(0,n.indexOf(".")+3),l+="\n"+a[t.key].map(function(t){return"."+t+" > .row-"+e+i+"-"+r+" > *, ."+t+" .row-"+e+"-n"+i+"-"+r+" > *, ."+t+" .row-"+e+"-n"+i+"-"+r+" > *"}).join(", ")+" { width: "+n+"%; }",c+="\n"+a[t.key].map(function(t){return"."+t+" > ."+e+i+"-"+r+", ."+t+" > .row > ."+e+i+"-"+r+", ."+t+" ."+e+"-n"+i+"-"+r+", ."+t+" .row > ."+e+"-n"+i+"-"+r}).join(", ")+" { width: "+n+"%; }"},s=1;s<r;s++)i(s)})}),i+=l+c}l.style=c,i("grid","decorators",l);var d=250;function f(t){return void 0===t&&(t={}),function(e){var n=e.Ractive;e.instance.events[t.name||(t.count||"")+"clicks"]=function(e,r,i){var s,o=Object.assign({},t,i);return(s=e.__r_clicks__)?s.subscribe(o.count||1,!!o.hold,r):(s=new u(n.getContext(e),o.delay||d,o.bubble||!1),e.__r_clicks__=s,s.subscribe(o.count||1,!!o.hold,r)),{teardown:function(){s.unsubscribe(o.count||1,!!o.hold,r)}}}}}f({name:"click",count:1}),f({name:"dblclick",count:2}),f({name:"trpclick",count:3});var u=function(t,e,n){this.context=t,this.node=t.node,this.delay=e,this.fires={},this.refs=0,this.bubble=n,this.bind()};function h(t){return this.__r_clicks__.mousedown(t)}function p(t){return this.__r_clicks__.touchdown(t)}function m(){this.addEventListener("keydown",b,!1),this.addEventListener("blur",g,!1)}function g(){this.removeEventListener("keydown",b,!1),this.removeEventListener("blur",g,!1)}function b(t){if(32===t.which||10===t.which||13===t.which)return this.__r_clicks__.fire()}function v(t,e){var n=t.processParams(e,{duration:200,easing:"easeInOut"});t.setStyle("overflow","hidden");var r="x"===n.axis?"width":"height";if(t.isIntro){var i=t.getStyle(r);return t.setStyle(r,0),t.setStyle("opacity",0),t.animateStyle(r,i,n).then(function(){return t.animateStyle("opacity",1,n)})}return t.setStyle(r,t.getStyle(r)),t.setStyle("opacity",1),t.animateStyle("opacity",0,n).then(function(){return t.animateStyle(r,0,n)})}u.prototype.subscribe=function(t,e,n){(this.fires[t+","+e]||(this.fires[t+","+e]=[])).push(n),this.refs++},u.prototype.unsubscribe=function(t,e,n){var r=this.fires[t+","+e]||[];r.splice(r.indexOf(n),1),this.refs--,this.refs||this.teardown()},u.prototype.bind=function(){window.PointerEvent||window.navigator.pointerEnabled?this.context.listen("pointerdown",h):window.navigator.msPointerEnabled?this.context.listen("MSPointerDown",h):(this.context.listen("mousedown",h),this.context.listen("touchstart",p)),"A"!==this.node.tagName&&"BUTTON"!==this.node.tagName&&"button"!==this.node.type&&"submit"!==this.node.type||this.context.listen("focus",m)},u.prototype.fire=function(t,e,n,r){var i=this;this.tm?(this.tmCount++,clearTimeout(this.tm)):this.tmCount=1;var s=function(){i.tm=null,(i.fires[i.tmCount+","+!!r]||[]).forEach(function(s){s({node:i.node,original:t,x:e,y:n,hold:!!r})})};return r?s():this.tm=setTimeout(s,this.delay),this.bubble},u.prototype.mousedown=function(t){var e=this;if(!this.preventMousedownEvents&&(void 0===t.which||1===t.which)){var n,r=t.clientX,i=t.clientY,s=t.pointerId,o=function(t){t.pointerId==s&&(e.fire(t,r,i),l())},a=function(t){t.pointerId==s&&(Math.abs(t.clientX-r)>=5||Math.abs(t.clientY-i)>=5)&&l()},l=function(){n&&clearTimeout(n),e.node.removeEventListener("MSPointerUp",o,!1),document.removeEventListener("MSPointerMove",a,!1),document.removeEventListener("MSPointerCancel",l,!1),e.node.removeEventListener("pointerup",o,!1),document.removeEventListener("pointermove",a,!1),document.removeEventListener("pointercancel",l,!1),e.node.removeEventListener("click",o,!1),document.removeEventListener("mousemove",a,!1)};return window.PointerEvent||window.navigator.pointerEnabled?(this.node.addEventListener("pointerup",o,!1),document.addEventListener("pointermove",a,!1),document.addEventListener("pointercancel",l,!1)):window.navigator.msPointerEnabled?(this.node.addEventListener("MSPointerUp",o,!1),document.addEventListener("MSPointerMove",a,!1),document.addEventListener("MSPointerCancel",l,!1)):(this.node.addEventListener("click",o,!1),document.addEventListener("mousemove",a,!1)),n=setTimeout(function(){l(),e.fire(t,r,i,!0)},400),this.bubble||t.stopPropagation(),this.bubble}},u.prototype.touchdown=function(t){var e,n=this,r=t.touches[0],i=r.clientX,s=r.clientY,o=r.identifier,a=function(t){t.changedTouches[0].identifier===o?(t.preventDefault(),n.preventMousedownEvents=!0,clearTimeout(n.preventMousedownTimeout),n.preventMousedownTimeout=setTimeout(function(){n.preventMousedownEvents=!1},400),n.fire(t,i,s),c()):c()},l=function(t){1===t.touches.length&&t.touches[0].identifier===o||c();var e=t.touches[0];(Math.abs(e.clientX-i)>=5||Math.abs(e.clientY-s)>=5)&&c()},c=function(){e&&clearTimeout(e),n.node.removeEventListener("touchend",a,!1),window.removeEventListener("touchmove",l,!1),window.removeEventListener("touchcancel",c,!1)};return this.node.addEventListener("touchend",a,!1),window.addEventListener("touchmove",l,!1),window.addEventListener("touchcancel",c,!1),e=setTimeout(function(){c(),n.fire(t,i,s,!0)},400),this.bubble||t.stopPropagation(),this.bubble},u.prototype.teardown=function(){var t=this.context;t.unlisten("pointerdown",h),t.unlisten("MSPointerDown",h),t.unlisten("mousedown",h),t.unlisten("touchstart",p),t.unlisten("focus",m),delete this.node.__r_clicks__},i("expand","transitions",v);var _,w=/^([-+])?([^\s]+)$/,x=function(t){function e(e){t.call(this,e)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.allSelected=function(){for(var t=this.get("selections"),e=this.get("visibleRows"),n=0;n<e.length;n++)if(!~t.indexOf(e[n]))return!1;return e.length&&!0},e.prototype.nodeSet=function(t,e,n){t[e]=n},e.prototype._expand=function(t){var e=this.get("visibleRows")[t];this.get("expanded")===e?this.set("expanded",null):this.set("expanded",e)},e.prototype._setSort=function(t,e){var n=this.get("columns."+t);if(n&&(n.sort||n.filter)){var r=n.sort||n.filter;"string"==typeof r&&"~"===r[0]&&(r=this.get(r));var i=e.ctrlKey,s=this.get("sort");if(Array.isArray(r)||(r=[r]),s?Array.isArray(s)||(s=[s]):s=[],s.length){var o=s.map(function(t){return w.exec(t).slice(1)}),a=r.reduce(function(t,e){return t&&!!o.find(function(t){return t[1]===e})},!0);a&&s.length!==r.length&&!i?this.set("sort",r.map(function(t){return"+"+r})):i?a?this.set("sort",o.map(function(t){return~r.indexOf(t[1])?("+"===t[0]?"-":"+")+t[1]:t[0]+t[1]})):this.set("sort",s.concat(r.map(function(t){return"+"+t}))):a?this.set("sort",o.map(function(t){return("+"===t[0]?"-":"+")+t[1]})):this.set("sort",r.map(function(t){return"+"+t}))}else this.set("sort",r.map(function(t){return"+"+t}))}},e.prototype._select=function(t,e){var n=this.get("selections");n||(n=[],this.set("selections",n));var r=n.indexOf(t);~r?this.splice("selections",r,1):this.push("selections",t),(r>=n.length||1===n.length)&&this.set("selected",n[n.length-1]),this.fire("selection",{},{item:n[n.length-1],items:n}),setTimeout(function(){return e.target.checked=!~r})},e.prototype.select=function(){var t=this.get("selected");t&&this.fire("selected",{},t,this.get("rows").indexOf(t),this.get("visibleRows").indexOf(t))},e.prototype.selectionOffset=function(t){var e=this.get("selected"),n=this.get("visibleRows");if(e&&~n.indexOf(e)){var r=n.indexOf(e);if(t>0?r+t>=n.length:r+t<0){var i=t<1?-1:1;(i<0&&this.get("page")+i>=0||i>0&&this.get("page")+i<this.get("pagination.total"))&&this.add("page",i),n=this.get("visibleRows");var s=t>0?n[0]:n[n.length-1];this.set({selected:s,selections:[s]})}else this.set({selected:n[r+t],selections:[n[r+t]]})}else{var o=t>0?n[0]:n[n.length-1];this.set({selected:o,selections:[o]})}this.fire("selection",{},{item:this.get("selected"),items:this.get("selections")})},e.prototype.selectionDown=function(){this.selectionOffset(1)},e.prototype.selectionUp=function(){this.selectionOffset(-1)},e.prototype._selectGroup=function(t){var e=t;this.get("page")&&(e+=this.get("page")*this.get("pagination.per"));var n,r=this.get("rows"),i=this.get("groups"),s=this.get("selections"),o=r[e++],a=["selections"],l=[];for(~(n=s.indexOf(o))?l.push(n):a.push(o);e<r.length&&!(e in i);)o=r[e++],~(n=s.indexOf(o))?l.push(n):a.push(o);if(1===a.length)for(n=l.length;n--;)this.splice("selections",l[n],1);else this.push.apply(this,a)},e.prototype._groupSelected=function(t){var e=t;this.get("page")&&(e+=this.get("page")*this.get("pagination.per"));var n=this.get("rows"),r=this.get("groups"),i=this.get("selections");if(!~i.indexOf(n[e++]))return!1;for(;e<n.length&&!(e in r);)if(!~i.indexOf(n[e++]))return!1;return!0},e}(e);function y(t,e){if(!e.length||"object"==typeof t){for(var n=t,r=0;r<e.length;r++)if("object"!=typeof(n=n[e[r]]))return r+1<e.length?void 0:n;return n}}function k(t,e){return t<e?-1:t>e?1:t==e?0:!t&&e?-1:t&&!e?1:0}e.extendWith(x,{template:{v:4,t:[{t:7,e:"div",m:[{t:13,n:"class",f:"rtable",g:1},{n:"class-rtable-virtual",t:13,f:[{t:2,x:{r:["~/paginate"],s:'_0==="virtual"'}}]},{n:"class-rtable-auto",t:13,f:[{t:2,x:{r:["~/paginate"],s:'_0==="auto"'}}]},{n:"class-rtable-fixed",t:13,f:[{t:2,r:"~/fixed"}]},{n:"class-rtable-border",t:13,f:[{t:2,r:"~/border"}]}],f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rtable-top",g:1}],f:[{t:4,f:[{t:8,r:"grid"}],n:50,x:{r:["~/display"],s:'_0==="grid"'}},{t:4,f:[{t:8,r:"table"}],n:51,l:1}]}," ",{t:8,r:"pagination"}]}],e:{'_0==="virtual"':function(t){return"virtual"===t},'_0==="auto"':function(t){return"auto"===t},'_0==="grid"':function(t){return"grid"===t},"[_0._setSort(_1,_2)]":function(t,e,n){return[t._setSort(e,n)]},"[_0._select(_1,_2),false]":function(t,e,n){return[t._select(e,n),!1]},'[["select",_2,_0.indexOf(_2),_1.indexOf(_2)]]':function(t,e,n){return[["select",n,t.indexOf(n),e.indexOf(n)]]},"[_0._expand(_1)]":function(t,e){return[t._expand(e)]},"_0.indexOf(_1)":function(t,e){return t.indexOf(e)},"_0===_1":function(t,e){return t===e},"_0*_1+1":function(t,e){return t*e+1},"_2+1===_0?_1:(_2+1)*_3":function(t,e,n,r){return n+1===t?e:(n+1)*r},"_0&&_1":function(t,e){return t&&e},"_0===1":function(t){return 1===t},"_0.allSelected()&&_1<_2":function(t,e,n){return t.allSelected()&&e<n},"_0>0":function(t){return t>0},'[_0.set("page",_1-1)]':function(t,e){return[t.set("page",e-1)]},'[(/^\\d+$/.test(_1)&&+_1>0&&+_1<=_0&&_2.set("page",+_1-1))||_2.nodeSet(_3,"value",_4+1)]':function(t,e,n,r,i){return[/^\d+$/.test(e)&&+e>0&&+e<=t&&n.set("page",+e-1)||n.nodeSet(r,"value",i+1)]},"_0==_1+1":function(t,e){return t==e+1},'[_0.set("page",_2[_1-1])]':function(t,e,n){return[t.set("page",n[e-1])]},'_0==="..."':function(t){return"..."===t},'[_0.set("page",_1+1)]':function(t,e){return[t.set("page",e+1)]},"_0<_1-1":function(t,e){return t<e-1},"!_0":function(t){return!t},"_0+(_1?1:0)":function(t,e){return t+(e?1:0)}},p:{"csp-dummy":[{t:7,e:"div",m:[{n:["click"],t:70,f:{r:["@this",".index","@event"],s:"[_0._setSort(_1,_2)]"}},{n:["click"],t:70,f:{r:["@this",".","@event"],s:"[_0._select(_1,_2),false]"}},{n:["click"],t:70,f:{r:["~/rows","~/visibleRows","."],s:'[["select",_2,_0.indexOf(_2),_1.indexOf(_2)]]'}},{n:["click"],t:70,f:{r:["@this","@index"],s:"[_0._expand(_1)]"}}]}," ",{t:4,f:["..."],n:50,x:{r:["~/selections","."],s:"_0.indexOf(_1)"}}," ",{t:4,f:["..."],n:50,x:{r:[".","~/expanded"],s:"_0===_1"}}],empty:[{t:7,e:"div",f:[{t:7,e:"div",f:["No data."]}]}],pagination:[{t:7,e:"div",m:[{t:13,n:"class",f:"rtable-bottom",g:1}],f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rtable-info",g:1}],f:[{t:4,f:[{t:2,x:{r:["~/page","~/pagination.per"],s:"_0*_1+1"}}," - ",{t:2,x:{r:["~/pagination.total","~/rows.length","~/page","~/pagination.per"],s:"_2+1===_0?_1:(_2+1)*_3"}}," of ",{t:2,r:"~/rows.length"},{t:4,f:[" (",{t:2,r:"~/items.length"}," total)"],n:50,r:"~/isFiltered"}],n:50,x:{r:["pagination","rows.length"],s:"_0&&_1"}}," ",{t:4,f:["​"],n:50,x:{r:["_paginate"],s:"_0===1"}}]}," ",{t:7,e:"div",m:[{t:13,n:"class",f:"rtable-select-all-all",g:1}],f:[{t:4,f:[{t:2,r:"selections.length"}," of ",{t:2,r:"rows.length"}," selected",{t:4,f:[" - ",{t:7,e:"a",m:[{n:"href",f:"#",t:13,g:1},{n:["click"],t:70,f:"selectAllAll"}],f:["Select All"]}],n:50,x:{r:["@this","selections.length","rows.length"],s:"_0.allSelected()&&_1<_2"}}],n:50,x:{r:["selections.length"],s:"_0>0"}}]}," ",{t:7,e:"div",m:[{t:13,n:"class",f:"rtable-pages",g:1}],f:[{t:4,f:[{t:7,e:"span",m:[{n:["click"],t:70,f:{r:["@this","~/page"],s:'[_0.set("page",_1-1)]'}}],f:["Previous"]}],n:50,x:{r:["~/page"],s:"_0>0"}}," ",{t:4,f:[{t:4,f:[{t:7,e:"input",m:[{n:["change"],t:70,f:{r:["~/pagination.total","@node.value","@this","@node","~/page"],s:'[(/^\\d+$/.test(_1)&&+_1>0&&+_1<=_0&&_2.set("page",+_1-1))||_2.nodeSet(_3,"value",_4+1)]'}},{n:"value",f:[{t:2,r:"."}],t:13},{t:73,v:"t",f:"false"}]}],n:50,x:{r:[".","~/page"],s:"_0==_1+1"}},{t:4,f:[{t:7,e:"span",m:[{n:["click"],t:70,f:{r:["@this","@index","../"],s:'[_0.set("page",_2[_1-1])]'}}],f:["..."]}],n:50,x:{r:["."],s:'_0==="..."'},l:1},{t:4,f:[" ",{t:7,e:"span",m:[{n:["click"],t:70,f:{r:["@this","."],s:'[_0.set("page",_1-1)]'}}],f:[{t:2,r:"."}]}],n:51,l:1}],n:52,r:"~/pagination.array"}," ",{t:4,f:[{t:7,e:"span",m:[{n:["click"],t:70,f:{r:["@this","~/page"],s:'[_0.set("page",_1+1)]'}}],f:["Next"]}],n:50,x:{r:["~/page","~/pagination.total"],s:"_0<_1-1"}}]}]}],grid:[{t:7,e:"div",m:[{t:16,r:"extra-attributes"},{n:"grid",t:71}],f:[{t:8,r:"grid-head"}," ",{t:4,f:[{t:8,r:"grid-row"}],n:52,r:"~/visibleRows"}," ",{t:4,f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rtable-row row t1",g:1}],f:[{t:16,r:"empty"}]}],n:50,x:{r:["~/rows.length"],s:"!_0"}}]}],table:[{t:7,e:"table",m:[{t:16,r:"extra-attributes"}],f:[{t:8,r:"table-head"}," ",{t:4,f:[{t:8,r:"table-row"}],n:52,r:"~/visibleRows"}," ",{t:4,f:[{t:7,e:"tr",m:[{t:13,n:"class",f:"rtable-row",g:1}],f:[{t:7,e:"td",m:[{n:"colspan",f:[{t:2,x:{r:["~/columns.length","~/allowSelect"],s:"_0+(_1?1:0)"}}],t:13}],f:[{t:16,r:"empty"}]}]}],n:50,x:{r:["~/rows.length"],s:"!_0"}}]}]}},css:function(t){return[function(t){var e=Object.assign({},t("raui.primary"),t("raui.table.primary")),n=Object.assign({},e,t("raui.primary.active"),t("raui.table.primary.active")),r=Object.assign({selected:{}},t("raui.table"));return"\n .rtable {\n display: flex;\n flex-direction: column;\n overflow: auto;\n max-width: 100%;\n max-height: 100%;\n box-sizing: border-box;\n flex-grow: 2;\n }\n \n .rtable > div > table {\n width: 100%;\n border-collapse: collapse;\n display: table;\n }\n \n .rtable-auto > div > table,\n .rtable-fixed > div > table {\n table-layout: fixed;\n }\n \n .rtable td {\n padding: 0.5em;\n }\n .rtable-group > div > div,\n .rtable-header > div > div,\n .rtable-row > div > div {\n padding: 0.4em 0.3em 0.2em 0.3em;\n overflow: inherit;\n text-overflow: inherit;\n line-height: 1em;\n }\n .rtable-row > .rtable-no-pad > div {\n padding: 0;\n }\n \n .rtable-auto td,\n .rtable-auto .row > *,\n .rtable-fixed td,\n .rtable-fixed .row > *\n {\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n }\n \n .rtable-header > div {\n font-weight: bold;\n }\n \n .rtable-number-column {\n text-align: right;\n }\n .rtable-date-column {\n text-align: right;\n }\n \n .rtable-header {\n border-bottom: 1px solid "+(r.divider||e.bc||"#ccc")+";\n text-align: left;\n }\n \n .rtable-header > th {\n padding: 0.3em 0.5em 1em 0.5em;\n }\n \n .rtable-sortable {\n cursor: pointer;\n user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n -webkit-user-select: none;\n }\n \n .rtable-row {\n color: "+(e.fg||"#222")+";\n border-bottom: 1px solid "+(r.divider||e.bc||"#ccc")+";\n background-color: "+(r.even||e.bga||"#f4f4f4")+";\n transition: 0.2s ease-in-out;\n transition-property: background-color, color;\n }\n .rtable-row:nth-child(odd) {\n background-color: "+(r.odd||e.bg||"#fff")+";\n }\n .rtable-row:last-of-type {\n border-bottom: none;\n }\n .rtable-row:hover {\n background-color: "+(r.over||n.bg||"#eee")+";\n }\n \n .rtable-row.rtable-selected {\n background-color: "+(r.selected.bg||"rgba(0, 119, 238, 0.12)")+";\n color: "+(r.selected.fg||e.fg||"#222")+";\n }\n .rtable-row.rtable-selected:nth-child(odd) {\n background-color: "+(r.selected.odd||"rgba(0, 119, 238, 0.1)")+";\n }\n \n .rtable-border .rtable-row .rtable-column:nth-child(n+2),\n .rtable-border .rtable-group .rtable-column:nth-child(n+2) {\n border-left: 1px solid "+(r.divider||e.bc||"#ccc")+";\n }\n \n .rtable-border .rtable-row-expand {\n border-top: 1px solid "+(r.divider||e.bc||"#ccc")+";\n }\n \n .rtable-group {\n border-bottom: 2px solid "+(r.divider||e.bc||"#ccc")+";\n }\n \n .rtable-top {\n flex-grow: 5;\n flex-shrink: 1;\n overflow-y: auto;\n margin: 0.5em 0;\n }\n \n .rtable-bottom {\n display: flex;\n flex-wrap: wrap;\n flex-shrink: 0;\n padding: 0 0.5em 0.5em 0.5em;\n justify-content: space-between;\n user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n -webkit-user-select: none;\n }\n \n .rtable-bottom > * {\n padding: 0.5em;\n }\n \n .rtable-pages span {\n margin: 0.3em;\n cursor: pointer;\n }\n .rtable-pages span:first-of-type {\n margin-left: 0;\n }\n .rtable-pages input {\n text-align: center;\n width: 2.5em;\n font-size: 1em;\n background-color: transparent;\n border: none;\n padding: 0;\n font-weight: bold;\n text-decoration: underline;\n }\n \n .rtable-select {\n width: 0;\n height: 0;\n outline: none;\n margin-left: -1em;\n }\n .rtable-select:before {\n content: '';\n display: block;\n border: 2px solid "+(e.fg||"#222")+";\n width: 1em;\n height: 1em;\n margin-left: 0.1em;\n margin-top: -0.9em;\n box-sizing: border-box;\n transition: 0.2s ease-in-out;\n transition-property: transform, border-color, height, width;\n }\n .rtable-select:checked:before {\n height: 0.7em;\n width: 1.3em;\n border-color: "+(e.fga||"#07e")+";\n border-top-color: transparent;\n border-right-color: transparent;\n transform: rotate(-50deg);\n }\n .row > .rtable-select-header,\n .row > .rtable-select-row {\n text-align: center;\n width: 1.5em;\n }\n .rtable-select-header .rtable-select:before {\n margin-top: -1em;\n }\n .rtable-select-header .rtable-select:checked:before {\n border-color: "+(e.fg||"#222")+";\n border-top-color: transparent;\n border-right-color: transparent;\n }\n \n .rtable-column button, .rtable-column .btn {\n font-size: 0.75em;\n padding: 0 0.5em;\n margin: 0.2em 0.5em;\n min-height: 0;\n }\n "+(!1!==t("table.includeGrid")?c(t):"")}.call(this,t)].join(" ")},cssId:"rtable",noCssTransform:!0,attributes:["paginate","items","filter","sort","helpers","fixed","display","allowSelect","allowSelectAll","border"],components:{table:!1,Table:!1},syncComputedChildren:!0,decorators:{grid:l},events:{},use:[f({name:"clickd",count:1}),f({name:"dblclickd",count:2}),(void 0===_&&(_={}),function(t){t.instance.transitions[_.name||"expand"]=v})],on:{construct:function(){var t,e,n,r=this.component;if(!r)return;var i=r.template.f||[],s=r.template.m?r.template.m.slice():[],o=r.template;r.template={e:o.e,f:o.f,t:o.t,m:s};var a=0;function l(t,e){if(t&&t.f&&1===t.f.length&&2===t.f[0].t){var n="_a"+a++;return s.push({t:13,n:n,f:t.f}),e?{t:[{t:2,r:"~/"+n}]}:{t:2,r:"~/"+n}}return t&&t.f}function c(t){var e=[];return t.forEach(function(t){if("column"===t.e){var n={},r=t.m||E;n.index=e.length,e.push(n),n.content=(t.f||[]).filter(function(t){return"edit"!==t.e}),n.label=r.find(function(t){return"label"===t.n}),n.label&&n.label.f&&(n.label=l(n.label)),n.label||(n.label=""),Array.isArray(n.label)||(n.label=[n.label]),n.type=r.find(function(t){return"type"===t.n}),n.type&&n.type.f&&(n.type=n.type.f),n.type||(n.type="string"),n.filter=r.find(function(t){return"filter"===t.n}),n.filter&&n.filter.f&&(n.filter=l(n.filter),n.filter.r&&(n.filter=n.filter.r)),n.sort=r.find(function(t){return"sort"===t.n}),n.sort&&n.sort.f&&(n.sort=l(n.sort),n.sort.r&&(n.sort=n.sort.r)),n.hidden=r.find(function(t){return"hidden"===t.n}),n.hidden&&0===n.hidden.f?n.hidden=!0:n.hidden&&"object"==typeof n.hidden.f?n.hidden=l(n.hidden):n.hidden=!1,"string"==typeof n.hidden&&(n.hidden=!1),n.noPad=r.find(function(t){return"no-pad"===t.n}),n.noPad&&0===n.noPad.f?n.noPad=0:n.noPad&&"object"==typeof n.noPad.f?n.noPad=l(n.noPad):delete n.noPad,n.attrs=r.filter(function(t){return!~O.indexOf(t.n)}),n.attrs.forEach(function(t,e){S.test(t.n)&&(n.attrs[e]={t:13,n:"class-"+t.n})})}}),e}t=i.find(function(t){return"row"===t.e}),e=i.find(function(t){return"group"===t.e});var d=c(i);this._items={columns:d};var f="[_0._setSort(_1,_2)]",u=[{t:7,e:"tr",m:[{t:13,n:"class-rtable-header"}],f:d.filter(function(t){return!0!==t.hidden}).map(function(t){var e={t:7,e:"th",f:t.label,m:[{t:13,n:"class-rtable-header"},{t:4,n:53,r:"~/columns."+t.index,f:[{t:70,n:["click"],f:{r:["@this",".index","@event"],s:f}}]}].concat(t.attrs)};t.type&&e.m.push({t:13,n:"class-rtable-"+t.type+"-column"}),(t.filter||t.sort)&&e.m.push({t:13,n:"class-rtable-sortable"});var n=e;return t.hidden&&t.hidden.r&&(n={t:4,n:51,r:t.hidden.r,f:[e]}),n})}];u[0].f.unshift({t:4,n:50,r:"~/allowSelect",f:[{t:7,e:"th",m:[{t:13,n:"class-rtable-select-header"},{t:13,n:"title",f:[{t:2,r:"selections.length"}," items selected"]}],f:[{t:4,n:50,r:"~/allowSelectAll",f:[{t:7,e:"input",m:[{t:73,v:"t",f:"false"},{t:13,n:"type",f:"checkbox"},{t:13,n:"checked",f:[{t:2,x:{r:["@this"],s:"_0.allSelected()"}}]},{t:70,n:["click"],f:"selectAll"},{t:13,n:"class-rtable-select"}]}]}]}]});var h=[{t:7,e:"tr",f:d.filter(function(t){return!0!==t.hidden}).map(function(t){var e={t:7,e:"td",f:[{t:16,r:"~/columns."+d.indexOf(t)+".content",c:{r:"."}}],m:t.attrs.slice()};t.type&&e.m.unshift({t:13,n:"class-rtable-"+t.type+"-column"},{t:13,n:"class-rtable-column"}),e.m.find(function(t){return"title"===t.n})||e.m.unshift({t:13,n:"title",f:t.content.find(function(t){return t.e})?t.label:t.content}),0===t.noPad?e.m.push({t:13,n:"class-rtable-no-pad"}):t.noPad&&e.m.push({t:13,n:"class-rtable-no-pad",f:t.noPad});var n=e;return t.hidden&&t.hidden.r&&(n={t:4,n:51,r:t.hidden.r,f:[e]}),n}),m:[{t:13,n:"class-rtable-row"},{t:13,n:"class-rtable-selected",f:[{t:2,x:{r:["~/selections","."],s:"~_0.indexOf(_1)"}}]},{t:70,n:["click"],f:{r:["~/rows","~/visibleRows","."],s:"[['selected',_2,_0.indexOf(_2),_1.indexOf(_2)]]"}}].concat(t&&t.m||E)}];h[0].f.unshift({t:4,n:50,r:"~/allowSelect",f:[{t:7,e:"th",m:[{t:13,n:"class-rtable-select-row"},{t:70,n:["click"],f:{r:["@this",".","@event"],s:"[_0._select(_1,_2),false]"}}],f:[{t:7,e:"input",m:[{t:73,v:"t",f:"false"},{t:13,n:"type",f:"checkbox"},{t:13,n:"checked",f:[{t:2,x:{r:["~/selections","."],s:"~_0.indexOf(_1)"}}]},{t:13,n:"class-rtable-select"}]}]}]}),this._table_row=h,this._table_head=u;var p=[{t:7,e:"div",f:d.filter(function(t){return!0!==t.hidden}).map(function(t){var e={t:7,e:"div",f:[{t:7,e:"div",f:t.label}],m:[{t:4,n:53,r:"~/columns."+t.index,f:[{t:70,n:["click"],f:{r:["@this",".index","@event"],s:f}}]},{t:13,n:"title",f:t.label}].concat(t.attrs.filter(function(t){return"title"!==t.n}))};t.type&&e.m.push({t:13,n:"class-rtable-"+t.type+"-column"}),(t.filter||t.sort)&&e.m.push({t:13,n:"class-rtable-sortable"}),e.m.push({t:13,n:"class-rtable-column"});var n=e;return t.hidden&&t.hidden.r&&(n={t:4,n:51,r:t.hidden.r,f:[e]}),n}),m:[{t:13,n:"class-row"},{t:13,n:"class-rtable-header"}]}];p[0].f.unshift({t:4,n:50,r:"~/allowSelect",f:[{t:7,e:"div",m:[{t:13,n:"class-rtable-select-header"},{t:13,n:"class-rtable-column"},{t:13,n:"title",f:[{t:2,r:"selections.length"}," items selected"]}],f:[{t:7,e:"div",f:[{t:4,n:50,r:"~/allowSelectAll",f:[{t:7,e:"input",m:[{t:73,v:"t",f:"false"},{t:13,n:"type",f:"checkbox"},{t:13,n:"checked",f:[{t:2,x:{r:["@this"],s:"_0.allSelected()"}}]},{t:70,n:["click"],f:"selectAll"},{t:13,n:"class-rtable-select"}]}]}]}]}]});var m,g=[{t:7,e:"div",f:d.filter(function(t){return!0!==t.hidden}).map(function(t){var e={t:7,e:"div",f:[{t:7,e:"div",f:[{t:16,r:"~/columns."+d.indexOf(t)+".content",c:{r:"."}}]}],m:t.attrs.slice()};t.type&&e.m.unshift({t:13,n:"class-rtable-"+t.type+"-column"}),e.m.push({t:13,n:"class-rtable-column"}),e.m.find(function(t){return"title"===t.n})||e.m.unshift({t:13,n:"title",f:t.content.find(function(t){return t.e})?t.label:t.content}),0===t.noPad?e.m.push({t:13,n:"class-rtable-no-pad"}):t.noPad&&e.m.push({t:13,n:"class-rtable-no-pad",f:t.noPad});var n=e;return t.hidden&&t.hidden.r&&(n={t:4,n:51,r:t.hidden.r,f:[e]}),n}),m:[{t:13,n:"class-row"},{t:13,n:"class-rtable-row"},{t:13,n:"class-rtable-selected",f:[{t:2,x:{r:["~/selections","."],s:"~_0.indexOf(_1)"}}]},{t:70,n:t&&t.f?["dblclickd"]:["click","dblclick"],f:{r:["~/rows","~/visibleRows","."],s:"[['selected',_2,_0.indexOf(_2),_1.indexOf(_2)]]"}}].concat(t&&t.m||E)}];g[0].f.unshift({t:4,n:50,r:"~/allowSelect",f:[{t:7,e:"div",m:[{t:13,n:"class-rtable-select-row"},{t:13,n:"class-rtable-column"},{t:70,n:["clickd"],f:{r:["@this",".","@event"],s:"[_0._select(_1,_2),false]"}}],f:[{t:7,e:"div",f:[{t:7,e:"input",m:[{t:73,v:"t",f:"false"},{t:13,n:"type",f:"checkbox"},{t:13,n:"checked",f:[{t:2,x:{r:["~/selections","."],s:"~_0.indexOf(_1)"}}]},{t:13,n:"class-rtable-select"},{t:70,n:["click"],f:{r:[],s:"[false]"}}]}]}]}]}),t&&t.f&&(g[0].f.push({t:4,n:50,x:{r:[".","~/expanded"],s:"_0===_1"},f:[{t:7,e:"div",f:[{t:7,e:"div",f:t.f}],m:[{t:13,n:"class-t1"},{t:13,n:"class-rtable-row-expand"},{t:72,n:"expand",v:"t0"}]}]}),g[0].m.push({t:70,n:["clickd"],f:{r:["@this","@index"],s:"[_0._expand(_1)]"}}));if(e&&e.m&&(m=e.m.find(function(t){return"by"===t.n}))&&("string"==typeof m.f||1===m.length&&2===m[0].t)){var b={t:4,n:50,f:[{t:7,e:"div",m:[{t:13,n:"class-row"},{t:13,n:"class-rtable-group"},{t:13,n:"class-rtable-selected",f:[{t:2,x:{r:["~/selections","."],s:"~_0.indexOf(_1)"}}]},{t:70,n:t&&t.f?["dblclickd"]:["click","dblclick"],f:{r:["~/rows","~/visibleRows","."],s:"[['selected',_2,_0.indexOf(_2),_1.indexOf(_2)]]"}}].concat(e.m.filter(function(t){return"by"!==t.n&&"select"!==t.n}))}],x:{s:"_0&&_1[(_1&&(_2*_3+_4))||_4]",r:["~/showGroups","~/groups","~/page","~/pagination.per","@index"]}};g.unshift(b),this._by=m.f;var v,_=c(e.f).filter(function(t){return!0!==t.hidden}).map(function(t){var e={t:7,e:"div",f:[{t:7,e:"div",f:t.content}],m:t.attrs};t.type&&e.m.unshift({t:13,n:"class-rtable-"+t.type+"-column"}),e.m.push({t:13,n:"class-rtable-column"}),e.m.find(function(t){return"title"===t.n})||e.m.unshift({t:13,n:"title",f:t.content});var n=e;return t.hidden&&t.hidden.r&&(n={t:4,n:51,r:t.hidden.r,f:[e]}),n});_.unshift({t:4,n:50,r:"~/allowGroupSelect",f:[{t:7,e:"div",m:[{t:13,n:"class-rtable-select-row"},{t:13,n:"class-rtable-column"},{t:70,n:["clickd"],f:{r:["@this","@index"],s:"[_0._selectGroup(_1),false]"}}],f:[{t:7,e:"div",f:[{t:7,e:"input",m:[{t:73,v:"t",f:"false"},{t:13,n:"type",f:"checkbox"},{t:13,n:"checked",f:[{t:2,x:{r:["@this","@index"],s:"_0._groupSelected(_1)"}}]},{t:13,n:"class-rtable-select"},{t:70,n:["click"],f:{r:[],s:"[false]"}}]}]}]}]}),(v=e.m.find(function(t){return"select"===t.n}))&&(n||(n=[])).push(Object.assign({},v,{n:"allowGroupSelect"})),(v=e.m.find(function(t){return"show"===t.n}))&&(n||(n=[])).push(Object.assign({},v,{n:"showGroups"})),b.f[0].f=_}this._grid_row=g,this._grid_head=p,n&&this.component&&(this.component.mappings=n)},config:function(){this._items&&this.set(this._items),this._table_row&&(this.partials["table-row"]=this._table_row),this._table_head&&(this.partials["table-head"]=this._table_head),this._grid_row&&(this.partials["grid-row"]=this._grid_row),this._grid_head&&(this.partials["grid-head"]=this._grid_head)},render:function(){this._autoObserver&&this._autoObserver.fire()},selectAll:function(){var t,e;this.allSelected()?(e=null,t=[],this.set({selections:t,selected:e})):(e=(t=this.get("visibleRows").slice())[0],this.set({selections:t,selected:e})),this.fire("selection",{},{item:e,items:t})},selectAllAll:function(){var t=this.get("rows").slice();return this.set({selections:t,selected:null}),this.fire("selection",{},{item:null,items:t}),!1}},observe:{paginate:{handler:function(t){var n=this;if("auto"===t||t instanceof e){this._autoObserver&&this._autoObserver.cancel();var r,i="auto"===t?this.root:t,s=function(){if(n.fragment.rendered){var t=n.find(".rtable-top");if(t)if(n.get("items.length")){var e=t.clientHeight+","+t.clientWidth;if(s.last!==e){var r=n.find(".rtable-header");if(r){var i=Array.apply(null,n.findAll(".rtable-row")).map(function(t){return t.offsetHeight});i.length<2&&(n.set("_paginate",Math.floor(t.clientHeight/r.offsetHeight)),i=Array.apply(null,n.findAll(".rtable-row")).map(function(t){return t.offsetHeight}));var o=Math.ceil(i.reduce(function(t,e){return t+e},0)/i.length);n.set("_paginate",Math.floor((t.clientHeight-r.offsetHeight)/o)),s.last=e}}}else n._autoLenObserver||(n._autoLenObserver=n.observeOnce("items",function(){n._autoLenObserver=0,setTimeout(s)}))}},o=function(){r&&clearTimeout(r),r=setTimeout(function(){s(),r=null},300)};this._autoObserver=i.on("*.resize",o),this._autoObserver.fire=o}else this._autoObserver&&this._autoObserver.cancel();"number"==typeof t&&this.set("_paginate",t)},defer:!0}},data:function(){return{display:"grid",page:0,selections:[],allowSelect:!0,allowSelectAll:!0,showGroups:!0,allowGroupSelect:!0,expanded:null,minPerPage:10}},computed:{rows:{get:function(){var t=this,n=this.viewmodel.value.columns.filter(function(t){return t.filter}).map(function(n){var r=n.filter;if(0===r.indexOf("~/")&&(r=t.get(r)),"string"==typeof r&&(r=e.splitKeypath(r)),Array.isArray(r))return r}).filter(function(t){return t}),r=this.get("items")||[],i=r,s=this.get("filter"),o=this.get("sort");if("string"==typeof s){var a=s===s.toLowerCase()||s===s.toUpperCase(),l=new RegExp(s,a?"i":"");r=r.filter(function(t){for(var e=n.length;e--;){var r=y(t,n[e]);if(l.test(r))return!0}return!1})}else s instanceof RegExp&&(r=r.filter(function(t){for(var e=n.length;e--;){var r=y(t,n[e]);if(t&&"string"==typeof r&&s.test(r))return!0}}));return"string"==typeof o&&(o=[o]),Array.isArray(o)&&(o=o.map(function(t){return{dir:"-"===t[0]?-1:1,path:e.splitKeypath("-"===t[0]||"+"===t[0]?t.substr(1):t)}}),r.sort(function(t,e){for(var n,r,i,s=0;s<o.length;s++)if(n=y(t,o[s].path),r=y(e,o[s].path),0!==(i=o[s].dir*k(n,r)))return i;return i})),this.set("isFiltered",i.length!==r.length),r}},visibleRows:{get:function(){var t=this,n=this.get("rows"),r=this.get("paginate"),i=this.get("_paginate"),s=this.get("page")||0;return r?("number"!=typeof r&&isNaN(+r)&&(r="auto"===r||r instanceof e?i||1:30),r<this.get("minPerPage")&&(r=this.get("minPerPage")),s*r>n.length&&setTimeout(function(){return t.set("page",0)},0),n.slice(r*s,r*s+r)):n}},pagination:{get:function(){var t=this.get("items")||E,e=this.get("rows"),n=this.get("paginate"),r=this.get("page")||0;if("number"!=typeof n&&isNaN(n)&&(n=this.get("_paginate")),n<this.get("minPerPage")&&(n=this.get("minPerPage")),n){var i=Math.ceil(e.length/n),s={max:Math.ceil(t.length/n),total:i,per:n};if(s.total>14){var o=s.array=[];r>5?o.push(1,2,3,"..."):o.push(1,2,3,4,5,6,7,8),r>5&&r+6<i?o.push(r-1,r,r+1,r+2,r+3,"...",i-2,i-1,i):r+6<i?o.push("...",i-2,i-1,i):o.push(i-7,i-6,i-5,i-4,i-3,i-2,i-1,i)}else s.array=Array.apply(null,{length:s.total}).map(function(t,e){return e+1});return s}}},groups:{get:function(){for(var t,e,n=this.get("rows"),r={},i=0;i<n.length;i++)(e=n[i][this._by])!=t&&(r[i]=1),t=e;return r}}}});var O=["label","type","filter","hidden","sort","no-pad"],S=/^[a-z]{1,3}[0-9]+(?:-[0-9]+)?$/,E=[];function P(t){return void 0===t&&(t={}),function(e){var n=e.Ractive,r=e.instance;"includeGrid"in t&&n.styleSet("table.inclideGrid",t.includeGrid),r.components[t.name||"data-table"]=x}}i("RMTable","components",x),t.Table=x,t.plugin=P,t.default=P,Object.defineProperty(t,"__esModule",{value:!0})});
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("ractive")):"function"==typeof define&&define.amd?define(["exports","ractive"],e):e(t.RMTable={},t.Ractive)}(this,function(t,e){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e;var n,r="undefined"!=typeof window?window:null;function i(t,e,n){if(r&&r.Ractive&&"object"==typeof r.Ractive[e]){var i=document.currentScript;if(i||(i=(i=document.querySelectorAll("script"))[i.length-1]),i){var s=i.getAttribute("data-alias");s&&(s=(s=s.split("&")).reduce(function(t,e){var n=e.split("="),r=n[0],i=n[1];return t[r]=i,t},{})),Ractive[e][s&&s[t]||t]=n}}}var s={tiny:{units:[2,3,4,5,6,8],max:"0",value:0},xsmall:{units:[2,3,4,5,6,8,10,12],max:"20em",prefix:"xs",value:10},small:{units:[2,3,4,5,6,8,10,12],max:"36em",value:20},medium:{units:[2,3,4,5,6,8,10,12],max:"48em",value:30},large:{units:[2,3,4,5,6,8,10,12,20,24],max:"64em",value:40},xlarge:{units:[2,3,4,5,6,8,10,12,20,24,32],max:"100em",value:50},ginormous:{units:[2,3,4,5,6,8,10,12,20,24,32,64],max:"150em",value:60}},o={"grid grid-root":/\bgrid grid-root\b/g},a=/\s+/g;function l(t,e){var r,i,l=this.getContext(t),c=this,f=e||{};function u(){var e=t.clientWidth;if(!f.type||"class"===f.type){var n,s=-1;for(var c in r)r[c]<=e&&(o[c].lastIndex=-1,r[c]>s&&(n=c,s=r[c])),t.className=t.className.replace(o[c],"").trim();o[n].test(t.className)||(t.className+=" "+n),f.value&&l.set(f.value,i[n].value),f.name&&l.set(f.name,n),t.className=t.className.replace(a," ")}}function d(){var t=(n||(n=document.createElement("div"),document.body.appendChild(n)),n);for(var e in i=c.get("@style.break")||s,r={},i)t.style.width=i[e].max,r[e]=t.clientWidth,o[e]||(o[e]=new RegExp("\\b"+e+"\\b","g"));t.style.width=0,u()}var h=this.root.on("*.resize",u),p=this.observe("@style.break",d);return t.className+=" grid grid-root",d(),{update:function(t){f=t||{},u()},teardown:function(){t.className=t.className.replace(o["grid grid-root"],"").trim(),h.cancel(),p.cancel()}}}function c(t,e){var n,r=t("raui.grid.break")||e||s,i=".row > * { position: relative; width: 100%; transition-duration: 0.2s; transition-timing-function: ease-in-out; transition-property: width, padding, margin; box-sizing: border-box; }\n.grid { display: block; }\n.grid .row { display: flex; flex-wrap: wrap; min-height: fit-content; width: 100%; }\n.grid .row.row-pad > * { padding: "+(t("raui.grid.padding")||"0.5em")+"; }\n.grid .row > .pad { display: flex; flex-direction: column; padding: "+(t("raui.grid.padding")||"0.5em")+"; box-sizing: border-box; }",o=Object.keys(r).map(function(t){return(r[t].key=t)&&r[t]});o.sort(function(t,e){return t.value>e.value?1:t.value<e.value?-1:0});var a={};o.reverse().reduce(function(t,e){return t.push(e.key),a[e.key]=t.slice(),t},[]);var l="",c="";return o.reverse().forEach(function(t){var e=t.prefix||t.key[0];i+="\n"+a[t.key].map(function(t){return"."+t+" > ."+e+"0, ."+t+" > .row > ."+e+"0, ."+t+" ."+e+"-n0"}).join(", ")+" { width: 0; overflow: hidden; }",t.units.forEach(function(r){c+="\n"+a[t.key].map(function(t){return"."+t+" > "+e+"1, ."+t+" > .row > ."+e+"1, ."+t+" "+e+"-n1"}).join(", ")+" { width: 100%; }";for(var i=function(i){n=(n=""+i/r*100).substr(0,n.indexOf(".")+3),l+="\n"+a[t.key].map(function(t){return"."+t+" > .row-"+e+i+"-"+r+" > *, ."+t+" .row-"+e+"-n"+i+"-"+r+" > *, ."+t+" .row-"+e+"-n"+i+"-"+r+" > *"}).join(", ")+" { width: "+n+"%; }",c+="\n"+a[t.key].map(function(t){return"."+t+" > ."+e+i+"-"+r+", ."+t+" > .row > ."+e+i+"-"+r+", ."+t+" ."+e+"-n"+i+"-"+r+", ."+t+" .row > ."+e+"-n"+i+"-"+r}).join(", ")+" { width: "+n+"%; }"},s=1;s<r;s++)i(s)})}),i+=l+c}l.style=c,i("grid","decorators",l);var f=250;function u(t){return void 0===t&&(t={}),function(e){var n=e.Ractive;e.instance.events[t.name||(t.count||"")+"clicks"]=function(e,r,i){var s,o=Object.assign({},t,i);return(s=e.__r_clicks__)?s.subscribe(o.count||1,!!o.hold,r):(s=new d(n.getContext(e),o.delay||f,o.bubble||!1),e.__r_clicks__=s,s.subscribe(o.count||1,!!o.hold,r)),{teardown:function(){s.unsubscribe(o.count||1,!!o.hold,r)}}}}}u({name:"click",count:1}),u({name:"dblclick",count:2}),u({name:"trpclick",count:3});var d=function(t,e,n){this.context=t,this.node=t.node,this.delay=e,this.fires={},this.refs=0,this.bubble=n,this.bind()};function h(t){return this.__r_clicks__.mousedown(t)}function p(t){return this.__r_clicks__.touchdown(t)}function g(){this.addEventListener("keydown",m,!1),this.addEventListener("blur",v,!1)}function v(){this.removeEventListener("keydown",m,!1),this.removeEventListener("blur",v,!1)}function m(t){if(32===t.which||10===t.which||13===t.which)return this.__r_clicks__.fire()}function b(t,e){var n=t.processParams(e,{duration:200,easing:"easeInOut"});t.setStyle("overflow","hidden");var r="x"===n.axis?"width":"height";if(t.isIntro){var i=t.getStyle(r);return t.setStyle(r,0),t.setStyle("opacity",0),t.animateStyle(r,i,n).then(function(){return t.animateStyle("opacity",1,n)})}return t.setStyle(r,t.getStyle(r)),t.setStyle("opacity",1),t.animateStyle("opacity",0,n).then(function(){return t.animateStyle(r,0,n)})}d.prototype.subscribe=function(t,e,n){(this.fires[t+","+e]||(this.fires[t+","+e]=[])).push(n),this.refs++},d.prototype.unsubscribe=function(t,e,n){var r=this.fires[t+","+e]||[];r.splice(r.indexOf(n),1),this.refs--,this.refs||this.teardown()},d.prototype.bind=function(){window.PointerEvent||window.navigator.pointerEnabled?this.context.listen("pointerdown",h):window.navigator.msPointerEnabled?this.context.listen("MSPointerDown",h):(this.context.listen("mousedown",h),this.context.listen("touchstart",p)),"A"!==this.node.tagName&&"BUTTON"!==this.node.tagName&&"button"!==this.node.type&&"submit"!==this.node.type||this.context.listen("focus",g)},d.prototype.fire=function(t,e,n,r){var i=this;this.tm?(this.tmCount++,clearTimeout(this.tm)):this.tmCount=1;var s=function(){i.tm=null,(i.fires[i.tmCount+","+!!r]||[]).forEach(function(s){s({node:i.node,original:t,x:e,y:n,hold:!!r})})};return r?s():this.tm=setTimeout(s,this.delay),this.bubble},d.prototype.mousedown=function(t){var e=this;if(!this.preventMousedownEvents&&(void 0===t.which||1===t.which)){var n,r=t.clientX,i=t.clientY,s=t.pointerId,o=function(t){t.pointerId==s&&(e.fire(t,r,i),l())},a=function(t){t.pointerId==s&&(Math.abs(t.clientX-r)>=5||Math.abs(t.clientY-i)>=5)&&l()},l=function(){n&&clearTimeout(n),e.node.removeEventListener("MSPointerUp",o,!1),document.removeEventListener("MSPointerMove",a,!1),document.removeEventListener("MSPointerCancel",l,!1),e.node.removeEventListener("pointerup",o,!1),document.removeEventListener("pointermove",a,!1),document.removeEventListener("pointercancel",l,!1),e.node.removeEventListener("click",o,!1),document.removeEventListener("mousemove",a,!1)};return window.PointerEvent||window.navigator.pointerEnabled?(this.node.addEventListener("pointerup",o,!1),document.addEventListener("pointermove",a,!1),document.addEventListener("pointercancel",l,!1)):window.navigator.msPointerEnabled?(this.node.addEventListener("MSPointerUp",o,!1),document.addEventListener("MSPointerMove",a,!1),document.addEventListener("MSPointerCancel",l,!1)):(this.node.addEventListener("click",o,!1),document.addEventListener("mousemove",a,!1)),n=setTimeout(function(){l(),e.fire(t,r,i,!0)},400),this.bubble||t.stopPropagation(),this.bubble}},d.prototype.touchdown=function(t){var e,n=this,r=t.touches[0],i=r.clientX,s=r.clientY,o=r.identifier,a=function(t){t.changedTouches[0].identifier===o?(t.preventDefault(),n.preventMousedownEvents=!0,clearTimeout(n.preventMousedownTimeout),n.preventMousedownTimeout=setTimeout(function(){n.preventMousedownEvents=!1},400),n.fire(t,i,s),c()):c()},l=function(t){1===t.touches.length&&t.touches[0].identifier===o||c();var e=t.touches[0];(Math.abs(e.clientX-i)>=5||Math.abs(e.clientY-s)>=5)&&c()},c=function(){e&&clearTimeout(e),n.node.removeEventListener("touchend",a,!1),window.removeEventListener("touchmove",l,!1),window.removeEventListener("touchcancel",c,!1)};return this.node.addEventListener("touchend",a,!1),window.addEventListener("touchmove",l,!1),window.addEventListener("touchcancel",c,!1),e=setTimeout(function(){c(),n.fire(t,i,s,!0)},400),this.bubble||t.stopPropagation(),this.bubble},d.prototype.teardown=function(){var t=this.context;t.unlisten("pointerdown",h),t.unlisten("MSPointerDown",h),t.unlisten("mousedown",h),t.unlisten("touchstart",p),t.unlisten("focus",g),delete this.node.__r_clicks__},i("expand","transitions",b);var _=/^([-+])?([^\s]+)$/;function w(t){return"string"==typeof t}function x(t){return"number"==typeof t}function y(t){return"object"==typeof t}var k,O=function(t){function e(e){t.call(this,e)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.allSelected=function(){for(var t=this.get("selections"),e="virtual"===this.get("paginate")?this.get("rows"):this.get("visibleRows"),n=0;n<e.length;n++)if(!~t.indexOf(e[n]))return!1;return e.length&&!0},e.prototype.nodeSet=function(t,e,n){t[e]=n},e.prototype._expand=function(t){var e=this.get("visibleRows")[t];this.get("expanded")===e?this.set("expanded",null):this.set("expanded",e)},e.prototype._setSort=function(t,e){var n=this.get("columns."+t);if(n&&(n.sort||n.filter)){var r=n.sort||n.filter;w(r)&&"~"===r[0]&&(r=this.get(r));var i=e.ctrlKey,s=this.get("sort");if(Array.isArray(r)||(r=[r]),s?Array.isArray(s)||(s=[s]):s=[],s.length){var o=s.map(function(t){return _.exec(t).slice(1)}),a=r.reduce(function(t,e){return t&&!!o.find(function(t){return t[1]===e})},!0);a&&s.length!==r.length&&!i?this.set("sort",r.map(function(t){return"+"+r})):i?a?this.set("sort",o.map(function(t){return~r.indexOf(t[1])?("+"===t[0]?"-":"+")+t[1]:t[0]+t[1]})):this.set("sort",s.concat(r.map(function(t){return"+"+t}))):a?this.set("sort",o.map(function(t){return("+"===t[0]?"-":"+")+t[1]})):this.set("sort",r.map(function(t){return"+"+t}))}else this.set("sort",r.map(function(t){return"+"+t}))}},e.prototype._select=function(t,e){var n=this.get("selections");n||(n=[],this.set("selections",n));var r=n.indexOf(t);~r?this.splice("selections",r,1):this.push("selections",t),(r>=n.length||1===n.length)&&this.set("selected",n[n.length-1]),this.fire("selection",{},{item:n[n.length-1],items:n}),setTimeout(function(){return e.target.checked=!~r})},e.prototype.select=function(){var t=this.get("selected");t&&this.fire("selected",{},t,this.get("rows").indexOf(t),this.get("visibleRows").indexOf(t))},e.prototype.selectionOffset=function(t){var e=this.get("selected"),n=this.get("visibleRows");if(e&&~n.indexOf(e)){var r=n.indexOf(e);if(t>0?r+t>=n.length:r+t<0){var i=t<1?-1:1;(i<0&&this.get("page")+i>=0||i>0&&this.get("page")+i<this.get("pagination.total"))&&this.add("page",i),n=this.get("visibleRows");var s=t>0?n[0]:n[n.length-1];this.set({selected:s,selections:[s]})}else this.set({selected:n[r+t],selections:[n[r+t]]})}else{var o=t>0?n[0]:n[n.length-1];this.set({selected:o,selections:[o]})}this.fire("selection",{},{item:this.get("selected"),items:this.get("selections")})},e.prototype.selectionDown=function(){this.selectionOffset(1)},e.prototype.selectionUp=function(){this.selectionOffset(-1)},e.prototype._selectGroup=function(t){var e=t;this.get("page")&&(e+=this.get("page")*this.get("pagination.per"));var n,r=this.get("rows"),i=this.get("groups"),s=this.get("selections"),o=r[e++],a=["selections"],l=[];for(~(n=s.indexOf(o))?l.push(n):a.push(o);e<r.length&&!(e in i);)o=r[e++],~(n=s.indexOf(o))?l.push(n):a.push(o);if(1===a.length)for(n=l.length;n--;)this.splice("selections",l[n],1);else this.push.apply(this,a)},e.prototype._groupSelected=function(t){var e=t;this.get("page")&&(e+=this.get("page")*this.get("pagination.per"));var n=this.get("rows"),r=this.get("groups"),i=this.get("selections");if(!~i.indexOf(n[e++]))return!1;for(;e<n.length&&!(e in r);)if(!~i.indexOf(n[e++]))return!1;return!0},e}(e);function S(t,n){if(t&&n){var r=t._getters||(t._getters={}),i=n.filter;w(i)&&0===i.indexOf("~/")&&(i=t.get(i));var s=Array.isArray(i)?i.join("."):!!w(i)&&i;if(s)return r[s]||(w(i)&&(i=e.splitKeypath(i)),r[s]=function(t){return P(t,i)}),r[s]}}function E(t,n){if(t&&n){var r=t._getters||(t._getters={}),i=n.path;w(i)&&0===i.indexOf("~/")&&(i=t.get(i));var s=Array.isArray(i)?i.join("."):!!w(i)&&i;return s?(r[s]||(w(i)&&(i=e.splitKeypath(i)),r[s]=function(t){return P(t,i)}),r[s]):(w(i=n.value)&&0===i.indexOf("~/")&&(i=t.get(i)),"function"==typeof i?i:void 0)}}function P(t,e){if(!e.length||"object"==typeof t){for(var n=t,r=0;r<e.length;r++)if("object"!=typeof(n=n[e[r]]))return r+1<e.length?void 0:n;return n}}function A(t,e){return t<e?-1:t>e?1:t==e?0:!t&&e?-1:t&&!e?1:0}e.extendWith(O,{template:{v:4,t:[{t:7,e:"div",m:[{t:13,n:"class",f:"rtable",g:1},{n:"class-rtable-virtual",t:13,f:[{t:2,x:{r:["~/paginate"],s:'_0==="virtual"'}}]},{n:"class-rtable-auto",t:13,f:[{t:2,x:{r:["~/paginate"],s:'_0==="auto"'}}]},{n:"class-rtable-fixed",t:13,f:[{t:2,r:"~/fixed"}]},{n:"class-rtable-border",t:13,f:[{t:2,r:"~/border"}]}],f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rtable-top",g:1},{t:4,f:[{n:["scroll"],t:70,f:"scroll"}],n:50,x:{r:["~/paginate"],s:'_0==="virtual"'}}],f:[{t:4,f:[{t:8,r:"grid"}],n:50,x:{r:["~/display"],s:'_0==="grid"'}},{t:4,f:[{t:8,r:"table"}],n:51,l:1}]}," ",{t:4,f:[{t:8,r:"pagination"}],n:50,x:{r:["~/paginate"],s:'_0!=="virtual"'}}]}],e:{'_0==="virtual"':function(t){return"virtual"===t},'_0==="auto"':function(t){return"auto"===t},'_0==="grid"':function(t){return"grid"===t},'_0!=="virtual"':function(t){return"virtual"!==t},"[_0._setSort(_1,_2)]":function(t,e,n){return[t._setSort(e,n)]},"[_0._select(_1,_2),false]":function(t,e,n){return[t._select(e,n),!1]},'[["select",_2,_0.indexOf(_2),_1.indexOf(_2)]]':function(t,e,n){return[["select",n,t.indexOf(n),e.indexOf(n)]]},"[_0._expand(_1)]":function(t,e){return[t._expand(e)]},"_0.indexOf(_1)":function(t,e){return t.indexOf(e)},"_0===_1":function(t,e){return t===e},"_0>0":function(t){return t>0},"_0*_1+1":function(t,e){return t*e+1},"_2+1===_0?_1:(_2+1)*_3":function(t,e,n,r){return n+1===t?e:(n+1)*r},"_0&&_1":function(t,e){return t&&e},"_0===1":function(t){return 1===t},"_0.allSelected()&&_1<_2":function(t,e,n){return t.allSelected()&&e<n},'[_0.set("page",_1-1)]':function(t,e){return[t.set("page",e-1)]},'[(/^\\d+$/.test(_1)&&+_1>0&&+_1<=_0&&_2.set("page",+_1-1))||_2.nodeSet(_3,"value",_4+1)]':function(t,e,n,r,i){return[/^\d+$/.test(e)&&+e>0&&+e<=t&&n.set("page",+e-1)||n.nodeSet(r,"value",i+1)]},"_0==_1+1":function(t,e){return t==e+1},'[_0.set("page",_2[_1-1])]':function(t,e,n){return[t.set("page",n[e-1])]},'_0==="..."':function(t){return"..."===t},'[_0.set("page",_1+1)]':function(t,e){return[t.set("page",e+1)]},"_0<_1-1":function(t,e){return t<e-1},"_0%2===1":function(t){return t%2==1},true:function(){return!0},"!_0":function(t){return!t},"_0+(_1?1:0)":function(t,e){return t+(e?1:0)}},p:{"csp-dummy":[{t:7,e:"div",m:[{n:["click"],t:70,f:{r:["@this",".index","@event"],s:"[_0._setSort(_1,_2)]"}},{n:["click"],t:70,f:{r:["@this",".","@event"],s:"[_0._select(_1,_2),false]"}},{n:["click"],t:70,f:{r:["~/rows","~/visibleRows","."],s:'[["select",_2,_0.indexOf(_2),_1.indexOf(_2)]]'}},{n:["click"],t:70,f:{r:["@this","@index"],s:"[_0._expand(_1)]"}}]}," ",{t:4,f:["..."],n:50,x:{r:["~/selections","."],s:"_0.indexOf(_1)"}}," ",{t:4,f:["..."],n:50,x:{r:[".","~/expanded"],s:"_0===_1"}}," ",{t:4,f:["..."],n:50,x:{r:["~/virtual.offset"],s:"_0>0"}}],empty:[{t:7,e:"div",f:[{t:7,e:"div",f:["No data."]}]}],pagination:[{t:7,e:"div",m:[{t:13,n:"class",f:"rtable-bottom",g:1}],f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rtable-info",g:1}],f:[{t:4,f:[{t:2,x:{r:["~/page","~/pagination.per"],s:"_0*_1+1"}}," - ",{t:2,x:{r:["~/pagination.total","~/rows.length","~/page","~/pagination.per"],s:"_2+1===_0?_1:(_2+1)*_3"}}," of ",{t:2,r:"~/rows.length"},{t:4,f:[" (",{t:2,r:"~/items.length"}," total)"],n:50,r:"~/isFiltered"}],n:50,x:{r:["pagination","rows.length"],s:"_0&&_1"}}," ",{t:4,f:["​"],n:50,x:{r:["_paginate"],s:"_0===1"}}]}," ",{t:7,e:"div",m:[{t:13,n:"class",f:"rtable-select-all-all",g:1}],f:[{t:4,f:[{t:2,r:"selections.length"}," of ",{t:2,r:"rows.length"}," selected",{t:4,f:[" - ",{t:7,e:"a",m:[{n:"href",f:"#",t:13,g:1},{n:["click"],t:70,f:"selectAllAll"}],f:["Select All"]}],n:50,x:{r:["@this","selections.length","rows.length"],s:"_0.allSelected()&&_1<_2"}}],n:50,x:{r:["selections.length"],s:"_0>0"}}]}," ",{t:7,e:"div",m:[{t:13,n:"class",f:"rtable-pages",g:1}],f:[{t:4,f:[{t:7,e:"span",m:[{n:["click"],t:70,f:{r:["@this","~/page"],s:'[_0.set("page",_1-1)]'}}],f:["Previous"]}],n:50,x:{r:["~/page"],s:"_0>0"}}," ",{t:4,f:[{t:4,f:[{t:7,e:"input",m:[{n:["change"],t:70,f:{r:["~/pagination.total","@node.value","@this","@node","~/page"],s:'[(/^\\d+$/.test(_1)&&+_1>0&&+_1<=_0&&_2.set("page",+_1-1))||_2.nodeSet(_3,"value",_4+1)]'}},{n:"value",f:[{t:2,r:"."}],t:13},{t:73,v:"t",f:"false"}]}],n:50,x:{r:[".","~/page"],s:"_0==_1+1"}},{t:4,f:[{t:7,e:"span",m:[{n:["click"],t:70,f:{r:["@this","@index","../"],s:'[_0.set("page",_2[_1-1])]'}}],f:["..."]}],n:50,x:{r:["."],s:'_0==="..."'},l:1},{t:4,f:[" ",{t:7,e:"span",m:[{n:["click"],t:70,f:{r:["@this","."],s:'[_0.set("page",_1-1)]'}}],f:[{t:2,r:"."}]}],n:51,l:1}],n:52,r:"~/pagination.array"}," ",{t:4,f:[{t:7,e:"span",m:[{n:["click"],t:70,f:{r:["@this","~/page"],s:'[_0.set("page",_1+1)]'}}],f:["Next"]}],n:50,x:{r:["~/page","~/pagination.total"],s:"_0<_1-1"}}]}]}],grid:[{t:7,e:"div",m:[{t:16,r:"extra-attributes"},{n:"grid",t:71},{t:4,f:[{n:"style-margin-top",f:[{t:2,r:"~/virtual.above"},"px"],t:13},{n:"style-margin-bottom",f:[{t:2,r:"~/virtual.below"},"px"],t:13}],n:50,x:{r:["~/paginate"],s:'_0==="virtual"'}}],f:[{t:8,r:"grid-head"}," ",{t:4,f:[{t:7,e:"div",m:[{t:13,n:"style",f:"display: none;",g:1},{t:13,n:"class",f:"row",g:1}]}],n:50,x:{r:["~/virtual.offset"],s:"_0%2===1"}}," ",{t:4,f:[{t:8,r:"grid-row"}],n:52,z:[{n:"source",x:{r:"~/items"}},{n:"shuffle",x:{x:{r:[],s:"true"}}}],r:"~/visibleRows"}," ",{t:4,f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rtable-row row t1",g:1}],f:[{t:16,r:"empty"}]}],n:50,x:{r:["~/rows.length"],s:"!_0"}}]}],table:[{t:7,e:"table",m:[{t:16,r:"extra-attributes"},{t:4,f:[{n:"style-margin-top",f:[{t:2,r:"~/virtual.above"},"px"],t:13},{n:"style-margin-bottom",f:[{t:2,r:"~/virtual.below"},"px"],t:13}],n:50,x:{r:["~/paginate"],s:'_0==="virtual"'}}],f:[{t:8,r:"table-head"}," ",{t:4,f:[{t:8,r:"table-row"}],n:52,z:[{n:"source",x:{r:"~/items"}},{n:"shuffle",x:{x:{r:[],s:"true"}}}],r:"~/visibleRows"}," ",{t:4,f:[{t:7,e:"tr",m:[{t:13,n:"class",f:"rtable-row",g:1}],f:[{t:7,e:"td",m:[{n:"colspan",f:[{t:2,x:{r:["~/columns.length","~/allowSelect"],s:"_0+(_1?1:0)"}}],t:13}],f:[{t:16,r:"empty"}]}]}],n:50,x:{r:["~/rows.length"],s:"!_0"}}]}]}},css:function(t){return[function(t){var e=Object.assign({},t("raui.primary"),t("raui.table.primary")),n=Object.assign({},e,t("raui.primary.active"),t("raui.table.primary.active")),r=Object.assign({selected:{}},t("raui.table"));return"\n .rtable {\n display: flex;\n flex-direction: column;\n overflow: auto;\n max-width: 100%;\n max-height: 100%;\n box-sizing: border-box;\n flex-grow: 2;\n }\n \n .rtable > div > table {\n width: 100%;\n border-collapse: collapse;\n display: table;\n }\n \n .rtable-auto > div > table,\n .rtable-fixed > div > table {\n table-layout: fixed;\n }\n \n .rtable td {\n padding: 0.5em;\n }\n .rtable-group > div > div,\n .rtable-header > div > div,\n .rtable-row > div > div {\n padding: 0.4em 0.3em 0.2em 0.3em;\n overflow: inherit;\n text-overflow: inherit;\n line-height: 1em;\n }\n .rtable-row > .rtable-no-pad > div {\n padding: 0;\n }\n \n .rtable-auto td,\n .rtable-auto .row > *,\n .rtable-fixed td,\n .rtable-fixed .row > *\n {\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n }\n \n .rtable-header > div {\n font-weight: bold;\n }\n \n .rtable-number-column {\n text-align: right;\n }\n .rtable-date-column {\n text-align: right;\n }\n \n .rtable-header {\n border-bottom: 1px solid "+(r.divider||e.bc||"#ccc")+";\n text-align: left;\n }\n \n .rtable-header > th {\n padding: 0.3em 0.5em 1em 0.5em;\n }\n \n .rtable-sortable {\n cursor: pointer;\n user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n -webkit-user-select: none;\n }\n \n .rtable-row {\n color: "+(e.fg||"#222")+";\n border-bottom: 1px solid "+(r.divider||e.bc||"#ccc")+";\n background-color: "+(r.even||e.bga||"#f4f4f4")+";\n transition: 0.2s ease-in-out;\n transition-property: background-color, color;\n }\n .rtable-row:nth-child(odd) {\n background-color: "+(r.odd||e.bg||"#fff")+";\n }\n .rtable-row:last-of-type {\n border-bottom: none;\n }\n .rtable-row:hover {\n background-color: "+(r.over||n.bg||"#eee")+";\n }\n \n .rtable-row.rtable-selected {\n background-color: "+(r.selected.bg||"rgba(0, 119, 238, 0.12)")+";\n color: "+(r.selected.fg||e.fg||"#222")+";\n }\n .rtable-row.rtable-selected:nth-child(odd) {\n background-color: "+(r.selected.odd||"rgba(0, 119, 238, 0.1)")+";\n }\n \n .rtable-border .rtable-row .rtable-column:nth-child(n+2),\n .rtable-border .rtable-group .rtable-column:nth-child(n+2) {\n border-left: 1px solid "+(r.divider||e.bc||"#ccc")+";\n }\n \n .rtable-border .rtable-row-expand {\n border-top: 1px solid "+(r.divider||e.bc||"#ccc")+";\n }\n \n .rtable-group {\n border-bottom: 2px solid "+(r.divider||e.bc||"#ccc")+";\n }\n \n .rtable-top {\n flex-grow: 5;\n flex-shrink: 1;\n overflow-y: auto;\n margin: 0.5em 0;\n }\n \n .rtable-bottom {\n display: flex;\n flex-wrap: wrap;\n flex-shrink: 0;\n padding: 0 0.5em 0.5em 0.5em;\n justify-content: space-between;\n user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n -webkit-user-select: none;\n }\n \n .rtable-bottom > * {\n padding: 0.5em;\n }\n \n .rtable-pages span {\n margin: 0.3em;\n cursor: pointer;\n }\n .rtable-pages span:first-of-type {\n margin-left: 0;\n }\n .rtable-pages input {\n text-align: center;\n width: 2.5em;\n font-size: 1em;\n background-color: transparent;\n border: none;\n padding: 0;\n font-weight: bold;\n text-decoration: underline;\n }\n \n .rtable-select {\n width: 0;\n height: 0;\n outline: none;\n margin-left: -1em;\n }\n .rtable-select:before {\n content: '';\n display: block;\n border: 2px solid "+(e.fg||"#222")+";\n width: 1em;\n height: 1em;\n margin-left: 0.1em;\n margin-top: -0.9em;\n box-sizing: border-box;\n transition: 0.2s ease-in-out;\n transition-property: transform, border-color, height, width;\n }\n .rtable-select:checked:before {\n height: 0.7em;\n width: 1.3em;\n border-color: "+(e.fga||"#07e")+";\n border-top-color: transparent;\n border-right-color: transparent;\n transform: rotate(-50deg);\n }\n .row > .rtable-select-header,\n .row > .rtable-select-row {\n text-align: center;\n width: 1.5em;\n }\n .rtable-select-header .rtable-select:before {\n margin-top: -1em;\n }\n .rtable-select-header .rtable-select:checked:before {\n border-color: "+(e.fg||"#222")+";\n border-top-color: transparent;\n border-right-color: transparent;\n }\n \n .rtable-column button, .rtable-column .btn {\n font-size: 0.75em;\n padding: 0 0.5em;\n margin: 0.2em 0.5em;\n min-height: 0;\n }\n "+(!1!==t("table.includeGrid")?c(t):"")}.call(this,t)].join(" ")},cssId:"rtable",noCssTransform:!0,attributes:["paginate","items","filter","sort","helpers","fixed","display","allowSelect","allowSelectAll","border"],components:{table:!1,Table:!1},syncComputedChildren:!0,decorators:{grid:l},events:{},use:[u({name:"clickd",count:1}),u({name:"dblclickd",count:2}),(void 0===k&&(k={}),function(t){t.instance.transitions[k.name||"expand"]=b})],on:{construct:function(){var t,e,n,r=this.component;if(!r)return;var i=r.template.f||[],s=r.template.m?r.template.m.slice():[],o=r.template;r.template={e:o.e,f:o.f,t:o.t,m:s};var a=0;function l(t,e){if(t&&t.f&&1===t.f.length&&2===t.f[0].t){var n="_a"+a++;return s.push({t:13,n:n,f:t.f}),e?{t:[{t:2,r:"~/"+n}]}:{t:2,r:"~/"+n}}return t&&t.f}function c(t){var e=[],n=[];return t.forEach(function(t){if("column"===t.e||"col"===t.e){var r,i={},s=t.m||R;i.index=e.length,e.push(i),i.content=(t.f||[]).filter(function(t){return"edit"!==t.e}),(r=s.find(function(t){return"id"===t.n}))&&w(r.f)&&(i.id=r.f),i.label=s.find(function(t){return"label"===t.n}),i.label&&i.label.f&&(i.label=l(i.label)),i.label||(i.label=""),i.id||(i.id=i.label),Array.isArray(i.label)||(i.label=[i.label]),i.type=s.find(function(t){return"type"===t.n}),i.type&&i.type.f&&(i.type=i.type.f),i.type||(i.type="string"),i.filter=s.find(function(t){return"filter"===t.n}),i.filter&&i.filter.f&&(i.filter=l(i.filter),i.filter.r&&(i.filter=i.filter.r)),i.sort=s.find(function(t){return"sort"===t.n}),i.sort&&i.sort.f&&(i.sort=l(i.sort),i.sort.r&&(i.sort=i.sort.r)),i.hidden=s.find(function(t){return"hidden"===t.n}),i.hidden&&0===i.hidden.f?i.hidden=!0:i.hidden&&y(i.hidden.f)?i.hidden=l(i.hidden):i.hidden=!1,w(i.hidden)&&(i.hidden=!1),i.noPad=s.find(function(t){return"no-pad"===t.n}),i.noPad&&0===i.noPad.f?i.noPad=0:i.noPad&&y(i.noPad.f)?i.noPad=l(i.noPad):delete i.noPad,i.attrs=s.filter(function(t){return!~L.indexOf(t.n)}),i.attrs.forEach(function(t,e){M.test(t.n)&&(i.attrs[e]={t:13,n:"class-"+t.n})})}else if("field"===t.e){var o,a={},c=t.m||R;w(o=c.find(function(t){return"path"===t.n}))?a.path=o:o&&o.f&&(a.path=l(o)),(o=c.find(function(t){return"value"===t.n}))&&o.f&&(a.value=l(o)),w(o=c.find(function(t){return"type"===t.n}))?a.type=o:o&&o.f&&(a.type=l(o)),w((o=c.find(function(t){return"id"===t.n})).f)&&(a.id=o.f),w(o=c.find(function(t){return"label"===t.n}))?a.label=o:o&&o.f&&(a.label=l(o)),a.id||(a.id=a.label),n.push(a)}}),{fields:n,columns:e}}t=i.find(function(t){return"row"===t.e}),e=i.find(function(t){return"group"===t.e}),this._init={sets:c(i),partials:{}};var f=this._init.sets.columns,u="[_0._setSort(_1,_2)]",d=[{t:7,e:"tr",m:[{t:13,n:"class-rtable-header"},{t:4,f:[{n:"style-opacity",f:"0",t:13}],n:50,x:{r:["~/virtual.offset"],s:"_0>0"}}],f:f.filter(function(t){return!0!==t.hidden}).map(function(t){var e={t:7,e:"th",f:t.label,m:[{t:13,n:"class-rtable-header"},{t:4,n:53,r:"~/columns."+t.index,f:[{t:70,n:["click"],f:{r:["@this",".index","@event"],s:u}}]}].concat(t.attrs)};t.type&&e.m.push({t:13,n:"class-rtable-"+t.type+"-column"}),(t.filter||t.sort)&&e.m.push({t:13,n:"class-rtable-sortable"});var n=e;return t.hidden&&t.hidden.r&&(n={t:4,n:51,r:t.hidden.r,f:[e]}),n})}];d[0].f.unshift({t:4,n:50,r:"~/allowSelect",f:[{t:7,e:"th",m:[{t:13,n:"class-rtable-select-header"},{t:13,n:"title",f:[{t:2,r:"selections.length"}," items selected"]}],f:[{t:4,n:50,r:"~/allowSelectAll",f:[{t:7,e:"input",m:[{t:73,v:"t",f:"false"},{t:13,n:"type",f:"checkbox"},{t:13,n:"checked",f:[{t:2,x:{r:["@this"],s:"_0.allSelected()"}}]},{t:70,n:["click"],f:"selectAll"},{t:13,n:"class-rtable-select"}]}]}]}]});var h=[{t:7,e:"tr",f:f.filter(function(t){return!0!==t.hidden}).map(function(t){var e={t:7,e:"td",f:[{t:16,r:"~/columns."+f.indexOf(t)+".content",c:{r:"."}}],m:t.attrs.slice()};t.type&&e.m.unshift({t:13,n:"class-rtable-"+t.type+"-column"},{t:13,n:"class-rtable-column"}),e.m.find(function(t){return"title"===t.n})||e.m.unshift({t:13,n:"title",f:t.content.find(function(t){return t.e})?t.label:t.content}),0===t.noPad?e.m.push({t:13,n:"class-rtable-no-pad"}):t.noPad&&e.m.push({t:13,n:"class-rtable-no-pad",f:t.noPad});var n=e;return t.hidden&&t.hidden.r&&(n={t:4,n:51,r:t.hidden.r,f:[e]}),n}),m:[{t:13,n:"class-rtable-row"},{t:13,n:"class-rtable-selected",f:[{t:2,x:{r:["~/selections","."],s:"~_0.indexOf(_1)"}}]},{t:70,n:["click"],f:{r:["~/rows","~/visibleRows","."],s:"[['selected',_2,_0.indexOf(_2),_1.indexOf(_2)]]"}}].concat(t&&t.m||R)}];h[0].f.unshift({t:4,n:50,r:"~/allowSelect",f:[{t:7,e:"th",m:[{t:13,n:"class-rtable-select-row"},{t:70,n:["click"],f:{r:["@this",".","@event"],s:"[_0._select(_1,_2),false]"}}],f:[{t:7,e:"input",m:[{t:73,v:"t",f:"false"},{t:13,n:"type",f:"checkbox"},{t:13,n:"checked",f:[{t:2,x:{r:["~/selections","."],s:"~_0.indexOf(_1)"}}]},{t:13,n:"class-rtable-select"}]}]}]}),this._init.partials["table-row"]=h,this._init.partials["table-head"]=d;var p=[{t:7,e:"div",f:f.filter(function(t){return!0!==t.hidden}).map(function(t){var e={t:7,e:"div",f:[{t:7,e:"div",f:t.label}],m:[{t:4,n:53,r:"~/columns."+t.index,f:[{t:70,n:["click"],f:{r:["@this",".index","@event"],s:u}}]},{t:13,n:"title",f:t.label}].concat(t.attrs.filter(function(t){return"title"!==t.n}))};t.type&&e.m.push({t:13,n:"class-rtable-"+t.type+"-column"}),(t.filter||t.sort)&&e.m.push({t:13,n:"class-rtable-sortable"}),e.m.push({t:13,n:"class-rtable-column"});var n=e;return t.hidden&&t.hidden.r&&(n={t:4,n:51,r:t.hidden.r,f:[e]}),n}),m:[{t:13,n:"class-row"},{t:13,n:"class-rtable-header"},{t:4,f:[{n:"style-opacity",f:"0",t:13}],n:50,x:{r:["~/virtual.offset"],s:"_0>0"}}]}];p[0].f.unshift({t:4,n:50,r:"~/allowSelect",f:[{t:7,e:"div",m:[{t:13,n:"class-rtable-select-header"},{t:13,n:"class-rtable-column"},{t:13,n:"title",f:[{t:2,r:"selections.length"}," items selected"]}],f:[{t:7,e:"div",f:[{t:4,n:50,r:"~/allowSelectAll",f:[{t:7,e:"input",m:[{t:73,v:"t",f:"false"},{t:13,n:"type",f:"checkbox"},{t:13,n:"checked",f:[{t:2,x:{r:["@this"],s:"_0.allSelected()"}}]},{t:70,n:["click"],f:"selectAll"},{t:13,n:"class-rtable-select"}]}]}]}]}]});var g,v=[{t:7,e:"div",f:f.filter(function(t){return!0!==t.hidden}).map(function(t){var e={t:7,e:"div",f:[{t:7,e:"div",f:[{t:16,r:"~/columns."+f.indexOf(t)+".content",c:{r:"."}}]}],m:t.attrs.slice()};t.type&&e.m.unshift({t:13,n:"class-rtable-"+t.type+"-column"}),e.m.push({t:13,n:"class-rtable-column"}),e.m.find(function(t){return"title"===t.n})||e.m.unshift({t:13,n:"title",f:t.content.find(function(t){return t.e})?t.label:t.content}),0===t.noPad?e.m.push({t:13,n:"class-rtable-no-pad"}):t.noPad&&e.m.push({t:13,n:"class-rtable-no-pad",f:t.noPad});var n=e;return t.hidden&&t.hidden.r&&(n={t:4,n:51,r:t.hidden.r,f:[e]}),n}),m:[{t:13,n:"class-row"},{t:13,n:"class-rtable-row"},{t:13,n:"class-rtable-selected",f:[{t:2,x:{r:["~/selections","."],s:"~_0.indexOf(_1)"}}]},{t:70,n:t&&t.f?["dblclickd"]:["click","dblclick"],f:{r:["~/rows","~/visibleRows","."],s:"[['selected',_2,_0.indexOf(_2),_1.indexOf(_2)]]"}}].concat(t&&t.m||R)}];v[0].f.unshift({t:4,n:50,r:"~/allowSelect",f:[{t:7,e:"div",m:[{t:13,n:"class-rtable-select-row"},{t:13,n:"class-rtable-column"},{t:70,n:["clickd"],f:{r:["@this",".","@event"],s:"[_0._select(_1,_2),false]"}}],f:[{t:7,e:"div",f:[{t:7,e:"input",m:[{t:73,v:"t",f:"false"},{t:13,n:"type",f:"checkbox"},{t:13,n:"checked",f:[{t:2,x:{r:["~/selections","."],s:"~_0.indexOf(_1)"}}]},{t:13,n:"class-rtable-select"},{t:70,n:["click"],f:{r:[],s:"[false]"}}]}]}]}]}),t&&t.f&&(v[0].f.push({t:4,n:50,x:{r:[".","~/expanded"],s:"_0===_1"},f:[{t:7,e:"div",f:[{t:7,e:"div",f:t.f}],m:[{t:13,n:"class-t1"},{t:13,n:"class-rtable-row-expand"},{t:72,n:"expand",v:"t0"}]}]}),v[0].m.push({t:70,n:["clickd"],f:{r:["@this","@index"],s:"[_0._expand(_1)]"}}));if(e&&e.m&&(g=e.m.find(function(t){return"by"===t.n}))&&(w(g.f)||1===g.length&&2===g[0].t)){var m={t:4,n:50,f:[{t:7,e:"div",m:[{t:13,n:"class-row"},{t:13,n:"class-rtable-group"},{t:13,n:"class-rtable-selected",f:[{t:2,x:{r:["~/selections","."],s:"~_0.indexOf(_1)"}}]},{t:70,n:t&&t.f?["dblclickd"]:["click","dblclick"],f:{r:["~/rows","~/visibleRows","."],s:"[['selected',_2,_0.indexOf(_2),_1.indexOf(_2)]]"}}].concat(e.m.filter(function(t){return"by"!==t.n&&"select"!==t.n}))}],x:{s:"_0&&_1[(_1&&(_2*_3+_4))||_4]",r:["~/showGroups","~/groups","~/page","~/pagination.per","@index"]}};v.unshift(m),this._init.by=g.f;var b,_=c(e.f).columns.filter(function(t){return!0!==t.hidden}).map(function(t){var e={t:7,e:"div",f:[{t:7,e:"div",f:t.content}],m:t.attrs};t.type&&e.m.unshift({t:13,n:"class-rtable-"+t.type+"-column"}),e.m.push({t:13,n:"class-rtable-column"}),e.m.find(function(t){return"title"===t.n})||e.m.unshift({t:13,n:"title",f:t.content});var n=e;return t.hidden&&t.hidden.r&&(n={t:4,n:51,r:t.hidden.r,f:[e]}),n});_.unshift({t:4,n:50,r:"~/allowGroupSelect",f:[{t:7,e:"div",m:[{t:13,n:"class-rtable-select-row"},{t:13,n:"class-rtable-column"},{t:70,n:["clickd"],f:{r:["@this","@index"],s:"[_0._selectGroup(_1),false]"}}],f:[{t:7,e:"div",f:[{t:7,e:"input",m:[{t:73,v:"t",f:"false"},{t:13,n:"type",f:"checkbox"},{t:13,n:"checked",f:[{t:2,x:{r:["@this","@index"],s:"_0._groupSelected(_1)"}}]},{t:13,n:"class-rtable-select"},{t:70,n:["click"],f:{r:[],s:"[false]"}}]}]}]}]}),(b=e.m.find(function(t){return"select"===t.n}))&&(n||(n=[])).push(Object.assign({},b,{n:"allowGroupSelect"})),(b=e.m.find(function(t){return"show"===t.n}))&&(n||(n=[])).push(Object.assign({},b,{n:"showGroups"})),m.f[0].f=_}this._init.partials["grid-row"]=v,this._init.partials["grid-head"]=p,n&&this.component&&(this.component.mappings=n)},config:function(){this.set(this._init.sets),Object.assign(this.partials,this._init.partials)},render:function(){this._autoObserver&&this._autoObserver.fire()},selectAll:function(){var t,e;this.allSelected()?(e=null,t=[],this.set({selections:t,selected:e})):(e=(t=("virtual"===this.get("paginate")?this.get("rows"):this.get("visibleRows")).slice())[0],this.set({selections:t,selected:e})),this.fire("selection",{},{item:e,items:t})},selectAllAll:function(){var t=this.get("rows").slice();return this.set({selections:t,selected:null}),this.fire("selection",{},{item:null,items:t}),!1}},observe:{paginate:{handler:function(t){var n=this;if("auto"===t||"virtual"===t||t instanceof e){this._autoObserver&&this._autoObserver.cancel(),this._scrollListener&&this._scrollListener.cancel();var r,i="auto"===t||"virtual"===t?this.root:t,s=function(){if(n.rendered){var e=n.find(".rtable-top");if(e)if(n.get("items.length")){var r=e.clientHeight+","+e.clientWidth;if(s.last!==r){var i=n.find(".rtable-header");if(i){var o=Array.apply(null,n.findAll(".rtable-row")).map(function(t){return t.offsetHeight});o.length<2&&(n.set("_paginate",Math.floor(e.clientHeight/i.offsetHeight)),o=Array.apply(null,n.findAll(".rtable-row")).map(function(t){return t.offsetHeight}));var a=Math.ceil(o.reduce(function(t,e){return t+e},0)/o.length);n._avgSize=a;var l=Math.floor((e.clientHeight-i.offsetHeight)/a);n.set("_paginate","virtual"===t?3*l:l),s.last=r}}}else n._autoLenObserver||(n._autoLenObserver=n.observeOnce("items",function(){n._autoLenObserver=0,setTimeout(s)}))}},o=function(){r&&clearTimeout(r),r=setTimeout(function(){s(),r=null,n._scrollListener&&n._scrollListener.fn()},300)};if(this._autoObserver=i.on("*.resize",o),this._autoObserver.fire=o,"virtual"===t){var a=!0,l=!1,c=0,f=function(){if(n.rendered){var t=n.find(".rtable-top");if(!a&&c<3)return c++,a=!0,setTimeout(f,20);a=!1,c=0;var e=t.scrollTop,r=n.get("virtual.offset"),i=n.get("_paginate"),s=i/3,o=n.get("rows.length");i>o&&(i=o);var u=n._avgSize,d=Math.floor(e/u),h=d;if(d+i>o&&(d=o-i),!x(r)||d<r&&r<s||r+i>=o&&h>=r||d<r-s||h>r+s){var p=d-s;p<0&&(p=0===d?0:d-1);var g=p*u;g<u&&(g=0);var v=(o-(h+i))*u;v<u&&(v=0),n.set({"virtual.above":g,"virtual.below":v,"virtual.offset":d})}l=!1}},u=this._scrollListener=this.on("scroll",function(t){t.node;a?a=!1:l||(a=!0,l=!0,setTimeout(f,40))});this._scrollListener.fn=f,u.observer=this.observe("rows.length",function(){f()},{init:!1,strict:!0});var d=u.cancel;u.cancel=function(){d(),u.observer.cancel()}}o()}else this._autoObserver&&this._autoObserver.cancel(),this._scrollListener&&this._scrollListener.cancel();x(t)&&this.set("_paginate",t)},defer:!0}},data:function(){return{display:"grid",page:0,selections:[],allowSelect:!0,allowSelectAll:!0,showGroups:!0,allowGroupSelect:!0,expanded:null,minPerPage:10}},computed:{rows:{get:function(){var t=this,e=this.viewmodel.value.columns,n=this.viewmodel.value.fields,r=e.filter(function(t){return t.filter}).map(function(e){return S(t,e)}).filter(function(t){return t}),i=this.get("items")||[],s=i,o=this.get("filter"),a=this.get("sort");if(y(o)&&!Array.isArray(o)&&(o=[o]),o instanceof RegExp||w(o)){var l=o===""+o.toLowerCase()||o===""+o.toUpperCase(),c=w(o)?new RegExp(o,l?"i":""):o;i=i.filter(function(t){for(var e=r.length;e--;){var n=t&&r[e](t);if(n&&w(n)&&c.test(n))return!0}})}else if(Array.isArray(o)){var f=o.map(function(r){var i={op:r.op||"=",value:r.value||""};if(r.id){var s=e.find(function(t){return t.id===r.id});s&&(i.get=S(t,s),i.get?i.type=s.type||"string":s=0),s||(s=n.find(function(t){return t.id===r.id}))&&(i.get=E(t,s),i.type=s.type||"string")}return i}),u={};i=i.filter(function(t){return f.reduce(function(e,n){if(!e||!n.get||!t)return!1;var r=n.get(t);if("="===n.op||"=="===n.op)return"number"===n.type||"date"===n.type?+r==+n.value:r==n.value;if(">"===n.op)return r>n.value;if(">="===n.op)return r>=n.value;if("<"===n.op)return r<n.value;if("<="===n.op)return r<=n.value;if("like"===n.op||"notlike"===n.op){var i="like"===n.op;if(w(n.value))i=(u[n.value]||(u[n.value]=new RegExp(".*"+n.value.replace(/\s+/g,".*")+".*","gi"))).test(r);else isRegex(n.value)&&(i=n.value.test(r));return"like"===n.op?i:!i}return"contains"===n.op&&Array.isArray(r)?!!~r.indexOf(n.value):e},!0)})}return(w(a)||y(a)&&!Array.isArray(a))&&(a=[a]),Array.isArray(a)&&(a=a.map(function(r){return w(r)?{dir:"-"===r[0]?-1:1,get:E(t,{path:"-"===r[0]||"+"===r[0]?r.substr(1):r})}:r?{dir:x(r.dir)?r.dir:"desc"===r.dir?-1:1,get:r.id&&(S(t,e.find(function(t){return t.id===r.id}))||E(t,n.find(function(t){return t.id===r.id})))||r.path&&E(t,{path:r.path,value:r.value})}:void 0}).filter(function(t){return t&&t.get}),i.sort(function(t,e){for(var n,r,i,s=0;s<a.length;s++)if(n=a[s].get(t),r=a[s].get(e),0!==(i=a[s].dir*A(n,r)))return i;return i})),this.set("isFiltered",s.length!==i.length),i}},visibleRows:{get:function(){var t=this,n=this.get("rows"),r=this.get("paginate"),i=r,s=this.get("_paginate"),o=this.get("page")||0,a=this.get("virtual");return i?("number"!=typeof i&&isNaN(+i)&&(i="auto"===i||"virtual"===i||i instanceof e?s||1:30),i<this.get("minPerPage")&&(i=this.get("minPerPage")),"virtual"===r?(o=a&&a.offset||0,n.slice(o,o+i)):(o*i>n.length&&setTimeout(function(){return t.set("page",0)},0),n.slice(i*o,i*o+i))):n}},pagination:{get:function(){var t=this.get("items")||R,e=this.get("rows"),n=this.get("paginate"),r=n,i=this.get("page")||0;if("number"!=typeof r&&isNaN(r)&&(r=this.get("_paginate")),r<this.get("minPerPage")&&(r=this.get("minPerPage")),r){var s=Math.ceil(e.length/r),o={max:Math.ceil(t.length/r),total:s,per:r};if("virtual"===n&&(o.height=this._avg*e.length),o.total>14){var a=o.array=[];i>5?a.push(1,2,3,"..."):a.push(1,2,3,4,5,6,7,8),i>5&&i+6<s?a.push(i-1,i,i+1,i+2,i+3,"...",s-2,s-1,s):i+6<s?a.push("...",s-2,s-1,s):a.push(s-7,s-6,s-5,s-4,s-3,s-2,s-1,s)}else o.array=Array.apply(null,{length:o.total}).map(function(t,e){return e+1});return o}}},groups:{get:function(){for(var t,e,n=this.get("rows"),r={},i=0;i<n.length;i++)(e=n[i][this._init.by])!=t&&(r[i]=1),t=e;return r}}}});var L=["label","type","filter","hidden","sort","no-pad","id"],M=/^[a-z]{1,3}[0-9]+(?:-[0-9]+)?$/,R=[];function T(t){return void 0===t&&(t={}),function(e){var n=e.Ractive,r=e.instance;"includeGrid"in t&&n.styleSet("table.inclideGrid",t.includeGrid),r.components[t.name||"data-table"]=O}}i("RMTable","components",O),t.Table=O,t.plugin=T,t.default=T,Object.defineProperty(t,"__esModule",{value:!0})});

@@ -207,3 +207,2 @@ (function (global, factory) {

if (parent.style) { parent.style.overflow = 'hidden'; }
if (t.isIntro || p.intro) {

@@ -214,9 +213,12 @@ t.setStyle({

});
t.animateStyle({
transform: 'none',
opacity: 1
}, p).then(function () {
windowTrans = false;
t.complete();
if (parent.style) { parent.style.overflow = overflow; }
setTimeout(function () {
t.animateStyle({
transform: 'none',
opacity: 1
}, p).then(function () {
t.setStyle('opacity', 1);
windowTrans = false;
t.complete();
if (parent.style) { parent.style.overflow = overflow; }
});
});

@@ -223,0 +225,0 @@ } else {

@@ -1,1 +0,1 @@

!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("ractive")):"function"==typeof define&&define.amd?define(["exports","ractive"],n):n(t.RMWindow={},t.Ractive)}(this,function(t,n){"use strict";n=n&&n.hasOwnProperty("default")?n.default:n;var e="undefined"!=typeof window?window:null;function o(t,n,o){if(e&&e.Ractive&&"object"==typeof e.Ractive[n]){var i=document.currentScript;if(i||(i=(i=document.querySelectorAll("script"))[i.length-1]),i){var r=i.getAttribute("data-alias");r&&(r=(r=r.split("&")).reduce(function(t,n){var e=n.split("="),o=e[0],i=e[1];return t[o]=i,t},{})),Ractive[n][r&&r[t]||t]=o}}}function i(t,n){var e=t.processParams(n,{duration:200,easing:"easeInOut"});t.setStyle("overflow","hidden");var o="x"===e.axis?"width":"height";if(t.isIntro){var i=t.getStyle(o);return t.setStyle(o,0),t.setStyle("opacity",0),t.animateStyle(o,i,e).then(function(){return t.animateStyle("opacity",1,e)})}return t.setStyle(o,t.getStyle(o)),t.setStyle("opacity",1),t.animateStyle("opacity",0,e).then(function(){return t.animateStyle(o,0,e)})}o("expand","transitions",i);var r={timeout:6e3,top:!0};var s,a=n.escapeKey,l=function(t){function n(n){t.call(this,n)}return t&&(n.__proto__=t),n.prototype=Object.create(t&&t.prototype),n.prototype.constructor=n,n}(n);n.extendWith(l,{css:function(t){return[function(t){var n=Object.assign({},t("raui.primary"),t("raui.window.primary")),e=Object.assign({host:{},title:{}},t("raui.window"));return"\n .rwhost {\n position: relative;\n display: flex;\n flex-direction: column;\n box-sizing: border-box;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n }\n \n .rwhost-sizer {\n position: absolute;\n }\n \n .rwhost-pane {\n display: flex;\n position: relative;\n width: 100%;\n box-sizing: border-box;\n flex-grow: 2;\n overflow: auto;\n background-color: "+(e.host.bg||n.bg||"#fff")+";\n z-index: 1;\n }\n \n .rwhost-pane-content {\n flex-grow: 1;\n }\n \n .rwhost-modal {\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n z-index: -1;\n opacity: 0;\n transition: opacity 0.2s ease-in-out, z-index 0s linear 0.2s;\n background-color: #000;\n }\n .rwhost-modal-active {\n opacity: 0.5;\n z-index: 1;\n transition: opacity 0.2s ease-in-out, z-index 0s linear;\n }\n \n .rwindow-wrapper {\n display: inline-block;\n box-sizing: border-box;\n position: absolute;\n }\n .rwindow-wrapper.rwindow-resizing {\n transition: none;\n }\n \n .rwindow-wrapper.rwindow-resizable {\n padding: "+(e.handleSize||7)+"px;\n }\n \n .rwindow-topmost > .rwindow {\n box-shadow: 0 6px 10px 0 rgba(0, 0, 0, 0.14), 0 1px 18px 0 rgba(0, 0, 0, 0.12), 0 3px 5px -1px rgba(0, 0, 0, 0.3);\n opacity: 1;\n }\n \n .rwindow-modal {\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n background-color: rgba(0, 0, 0, 0.5);\n opacity: 0;\n z-index: -1;\n transition: opacity 0.4s ease-in-out, z-index 0s linear 0.4s;\n }\n .rwindow-modal.rwindow-blocked {\n opacity: 1;\n z-index: 10;\n transition: opacity 0.4s ease-in-out, z-index 0s linear;\n }\n \n .rwindow {\n position: relative;\n box-sizing: border-box;\n background-color: "+(e.bg||n.bg||"#fff")+";\n color: "+(e.fg||n.fg||"#222")+";\n box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);\n border-radius: 2px;\n overflow: hidden;\n width: 100%;\n height: 100%;\n min-width: "+(e.minWidth||"6em")+";\n min-height: "+(e.minHeight||"6em")+";\n transition: box-shadow 0.4s ease-in-out, opacity 0.4s ease-in-out;\n }\n .rwindow-max > .rwindow {\n border-radius: 0;\n box-shadow: none;\n }\n \n .rwindow-pane-top,\n .rwindow-max-top {\n background-color: "+(e.title.bg||n.fga||"#07e")+";\n color: "+(e.title.fg||n.bg||"#fff")+";\n flex-shrink: 0;\n }\n \n .rwindow-max-top {\n flex-shrink: 2;\n }\n \n .rwindow-pane-top {\n display: flex;\n align-items: center;\n }\n \n .rwindow-pane {\n display: flex;\n flex-direction: column;\n table-layout: fixed;\n width: 100%;\n height: 100%;\n }\n .rwindow-autosizing {\n display: block;\n box-sizing: border-box;\n }\n .rwindow-content {\n overflow: auto;\n flex-grow: 2;\n position: relative;\n box-sizing: border-box;\n }\n .rwindow-content.rwindow-pad {\n padding: 1em;\n }\n .rwindow-content.rwindow-flex {\n display: flex;\n flex-direction: column;\n }\n \n .rwindow-buttons {\n display: flex;\n flex-shrink: 0;\n padding: 0.5em;\n border-top: 1px solid "+(e.title.bg||n.fga||"#07e")+";\n }\n .rwindow-buttons.no-buttons {\n display: none;\n }\n .rwindow-left-buttons {\n text-align: left;\n flex-grow: 2;\n }\n .rwindow-left-buttons button {\n margin-right: 0.5em;\n }\n .rwindow-center-buttons {\n text-align: center;\n flex-shrink: 2;\n }\n .rwindow-center-buttons button {\n margin: 0 0.25em;\n }\n .rwindow-right-buttons {\n text-align: right;\n flex-grow: 2;\n }\n .rwindow-right-buttons button {\n margin-left: 0.5em;\n }\n \n .rwindow-title {\n overflow: hidden;\n text-overflow: ellipsis;\n padding: 0.5em;\n white-space: nowrap;\n box-sizing: border-box;\n flex-grow: 1;\n }\n \n .rwindow-controls {\n display: flex;\n justify-content: flex-end;\n align-items: center;\n flex-grow: 1;\n }\n .rwindow-controls > div {\n margin: 0 1em 0 0;\n width: 0.7em;\n height: 0.7em;\n cursor: pointer;\n }\n .rwindow-minimize {\n border-bottom: 2px solid;\n }\n .rwindow-maximize {\n border: 2px solid;\n }\n .rwindow-controls > .rwindow-close {\n width: 0.5em;\n height: 1em;\n border-right: 2px solid;\n transform: rotate(45deg);\n transform-origin: center right;\n position: relative;\n margin-right: 1.5em;\n }\n .rwindow-close:before {\n cursor: pointer;\n height: 1.2em;\n width: 1.2em;\n top: 0.3em;\n left: 0.1em;\n content: ' ';\n transform: rotate(-45deg);\n transform-origin: center left;\n position: absolute;\n }\n .rwindow-close:after {\n cursor: pointer;\n height: 100%;\n width: 100%;\n top: 1px;\n left: calc(100% + 1px);\n content: ' ';\n border-left: 2px solid;\n transform: rotate(-90deg);\n transform-origin: center left;\n position: absolute;\n }\n "+("function"==typeof t("raui.window.extra")?t("raui.window.extra").call(this,t):"")+"\n "}.call(this,t)].join(" ")},cssId:"rwindow",noCssTransform:!0,delegate:!1,decorators:{tracked:function(t,n){return this[n]=t,{teardown:function(){this[n]===t&&(this[n]=null)}}}},transitions:{window:function(t,n){if(s)return t.complete();s=t;var e=t.processParams(n,{duration:400,easing:"easeInOut"}),o=t.node.parentNode,i=o.style?o.style.overflow:"";o.style&&(o.style.overflow="hidden"),t.isIntro||e.intro?(t.setStyle({transform:"translate(30%, 0px) scale(1.1, 1.1)",opacity:0}),t.animateStyle({transform:"none",opacity:1},e).then(function(){s=!1,t.complete(),o.style&&(o.style.overflow=i)})):(t.setStyle({transform:"none",opacity:1}),t.animateStyle({transform:"translate(30%, 0px) scale(1.1, 1.1)",opacity:0},e).then(function(){s=!1,t.complete(),o.style&&(o.style.overflow=i)}))}}});var c,f=0,d=function(t){function n(n){t.call(this,n),this.defaults={}}t&&(n.__proto__=t),n.prototype=Object.create(t&&t.prototype),n.prototype.constructor=n;var e={current:{configurable:!0},currentId:{configurable:!0},placement:{configurable:!0},windows:{configurable:!0}};return e.current.get=function(){var t=this.get("topLevel");return this.getWindow(this.get("windows")[t].id)},e.currentId.get=function(){var t=this.get("topLevel");return this.get("windows."+a(t)+".id")},e.placement.get=function(){return this.get("placement")},e.placement.set=function(t){return this.set("placement",t)},e.windows.get=function(){return Object.keys(this.get("windows"))},n.prototype.addWindow=function(t,n){var e=this,o=Object.assign({},this.defaults,t.options,t.get("options"),n);if(!(t instanceof w))throw new Error("Windows must be instances of Window");t.id||t.set("@.id",o.id||"window"+f++),this.get("windows."+a(t.id))||this.set("windows."+a(t.id),Object.assign({show:!1!==o.show,autosize:!0,id:t.id,blockers:[],close:!0,minimize:!0,maximize:!0},o,{id:t.id})),t.host=this;var i,r,s=this.attachChild(t,{target:"window"});(o.block&&("string"==typeof(i=o.block.id||o.block)&&i in this.get("windows")?(this.push("windows."+a(i)+".blockers",t.id),t.set("control.blocking",i)):i=!1),"fill"===o.size&&(i||o.block))?(!0===o.block?r=this.find(".rwhost-pane"):(r=this.getWindow(i))&&(r=r.find(".rwindow")),r&&(t.size(r.clientWidth-(o.fillPad||20),r.clientHeight-(o.fillPad||20)),!0!==o.block||o.top||o.left||(o.top=o.left=Math.floor((o.fillPad||20)/2)))):o.width&&o.height?t.size(o.width,o.height):t.size("auto");return o.top&&o.left?t.move(o.top,o.left):this.place(t),this.raise(t,!1!==o.show),t.on("close",function(){var n=t.get("control.blocking");if(n){var o=e.windowGet(n,"blockers");e.splice("windows."+a(n)+".blockers",o.indexOf(t.id),1)}e.detachChild(t).then(function(){return t.teardown()}),e.set("windows."+a(t.id)+".index",-1),e.raise(),e.set("windows."+a(t.id),void 0),delete e.get("windows")[t.id]}),this.update("windows."+a(t.id)+".id",{force:!0}),s.then(function(){return t})},n.prototype.getWindow=function(t){return this.children.byName.window&&this.children.byName.window.filter(function(n){return n.instance.id===t}).map(function(t){return t.instance})[0]},n.prototype.windowGet=function(t,n){return this.get("windows."+a(t)+"."+n)},n.prototype.windowSet=function(t,n,e){return this.set("windows."+a(t)+"."+n,e)},n.prototype.raise=function(t,n){var e=this,o=t instanceof w?t:this.children.byName.window.filter(function(n){return n.instance.id===t}).map(function(t){return t.instance})[0],i=this.get("windows"),r=this,s=Object.keys(i).map(function(t){return i[t]}),l=s.length+1,c=this.get("topLevel");this.get("blocked");function f(t){var n=r.get("windows."+a(t)+".blockers");n&&(n.forEach(function(t){return r.add("windows."+a(t)+".index",l++)}),n.forEach(function(t){return f(t)}))}o&&(o.set("control.index",!1===n?-1:l++),!1===n||o.visible||o.show(),f(o.id)),s.filter(function(t){return!1!==t.show&&!0===t.block}).forEach(function(t){e.set("windows."+a(t.id)+".index",(t.index||0)+l),f(t.id)});var d=s.sort(function(t,n){return t.show?n.show&&t.index<n.index?-1:1:-1}),u=d.filter(function(t){return t.show});l=d.indexOf(u[u.length-1]);var h={},p=null;if(d.forEach(function(t,n){var e=a(t.id);!0===t.block&&null===p&&(p=n),h["windows."+e+".index"]=null!==p?n+2:n,h["windows."+e+".topmost"]=n===l,h["windows."+e+".stack"]=d.length-n}),h.blocked=null!==p?p+1:0,~l&&d.length?h.topLevel=d[l].id:h.topLevel=null,this.set(h),(l=h.topLevel)&&l!==c&&this.get("currentMax")&&this.rendered){var g=this.get("windows."+a(c));o=this.getWindow(l),(!g||!g.dialog||g.blocking&&g.blocking!==l)&&o.transition("window",o.find("div"),{intro:!0})}},n.prototype.place=function(t){if(t.get("control.show")){var n=t.get("control");void 0===n.width&&t.size("auto");var e=0,o=0;if(this.fragment&&this.fragment.rendered){var i=this.find(".rwhost"),r=i.clientWidth,s=i.clientHeight,l=t.get("control.blocking");if(l){var c="windows."+a(l),f=this.get(c),d=n.max||!n.dialog&&(this.get("max")||this.get("userMax")),h=f.max||this.get("userMax")||this.get("max"),w=h?this.host.clientWidth:this.sizeInPx(f.width+"em"),p=h?this.host.clientHeight:this.sizeInPax(f.height+"em"),g=h?0:f.left,m=h?0:f.top;e=(d?r:w/2)+(d?0:g)-this.sizeInPx(n.width+"em")/2,o=(d?s:p/2)+(d?0:m)-this.sizeInPx(n.height+"em")/2}else{var b,x=this.get("placement");if("function"==typeof x)try{b=x(this,i,n)}catch(t){b=u(this,i,n)}else if("string"==typeof x)switch(x){case"smart":b=function(t,n,e){var o,i,r=n.clientWidth-10,s=n.clientHeight-10,a=Math.floor(s/16),l=Math.floor(r/16),c=new Array(a*l),f=new Array(a*l);for(o=0;o<c.length;o++)c[o]=0;var d,u,h,w,p,g,m,b,x=0,y=t.get("windows");for(var v in y)for(x++,d=y[v],u=Math.floor(d.top/16),h=Math.floor(d.left/16),p=Math.ceil(t.sizeInPx(d.height+"em")/16),w=Math.ceil(t.sizeInPx(d.width+"em")/16),o=u;o<u+p&&o<a;o++)for(i=h;i<h+w&&i<l;i++)c[o*l+i]++;for(w=Math.ceil(t.sizeInPx(e.width+"em")/16),p=Math.ceil(t.sizeInPx(e.height+"em")/16),o=0;o<a;o++)for(i=0;i<l;i++){if(o+p>a||i+w>l)g=x*w*p;else for(g=0,m=0;m<p;m++)for(b=0;b<w;b++)g+=c[(o+m)*l+i+b];if(0===g)return{top:16*o+5,left:16*i+5};f[o*l+i]=g}for(g=x*w*p,m=0,o=0;o<f.length;o++)f[o]<g&&(g=f[o],m=o);return{top:16*Math.floor(m/l)+5,left:m%l*16+5}}(this,i,n);break;default:b=u(this,i,n)}else b=u(this,i,n);o=b.top,e=b.left}(isNaN(e)||e<0)&&(e=10),(isNaN(o)||o<0)&&(o=10),t.set({"control.top":o,"control.left":e})}}},n.prototype.sizeInPx=function(t){return this.sizer.style.width="number"==typeof t?t+"px":t,this.sizer.clientWidth},n.prototype.sizeInEm=function(t){return this.sizeInPx(t)/this.sizeInPx("1em")},Object.defineProperties(n.prototype,e),n}(l);function u(t,n,e){var o=n.clientWidth,i=n.clientHeight,r=0,s=0,a=void 0===t._grid1?t._grid1=0:t._grid1>7?t._grid1=0:++t._grid1,l=Math.floor(o/3),c=Math.floor(i/3),f=t.sizeInPx(e.width+"em"),d=t.sizeInPx(e.height+"em");switch(a){case 5:case 7:case 8:r=i-d-10;break;case 2:case 4:case 6:r=c+Math.floor((c-d)/2);break;case 0:case 1:case 3:r=10}switch(a){case 3:case 6:case 8:s=o-f-10;break;case 1:case 4:case 7:s=l+Math.floor((l-f)/2);break;case 0:case 2:case 5:s=10}return s+f>o&&(s=o-f-10),r+d>i&&(r=i-d-10),{top:r,left:s}}l.extendWith(d,{template:{v:4,t:[{t:7,e:"div",m:[{t:13,n:"class",f:"rwhost",g:1},{n:"tracked",t:71,f:{r:[],s:'["host"]'}}],f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rwhost-sizer",g:1},{n:"tracked",t:71,f:{r:[],s:'["sizer"]'}}]}," ",{t:4,f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rwindow-max-top",g:1},{t:4,f:[{t:16,r:"~/_maxAttrsP"}],n:50,r:"~/_maxAttrsP"}],f:[{t:16,r:"~/_maxP",z:[{n:"window",x:{r:"~/current"}},{n:"windowControls",x:{x:{r:["@this.partials.windowControls"],s:"{t:_0}"}}},{n:"host",x:{r:"@this"}}]}]}],n:50,x:{r:["~/currentMax","~/_maxP"],s:"_0&&_1"}}," ",{t:7,e:"div",m:[{t:13,n:"class",f:"rwhost-pane",g:1}],f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rwhost-pane-content",g:1}],f:[{t:16}]}," ",{t:4,f:[{t:11,n:"window",m:[{n:"control",f:[{t:2,rx:{r:"~/windows",m:[{t:30,n:".instance.id"}]}}],t:13},{n:"root",t:13,f:[{t:2,r:"~/"}]}]}],n:52,r:"@this.children.byName.window"}," ",{t:7,e:"div",m:[{t:13,n:"class",f:"rwhost-modal",g:1},{t:4,f:[{n:"class-rwhost-modal-active",t:13},{n:"style-z-index",f:[{t:2,r:"~/blocked"}],t:13}],n:50,r:"~/blocked"}]}]}," ",{t:8,r:"toast"}]}],e:{'["host"]':function(){return["host"]},'["sizer"]':function(){return["sizer"]},"{t:_0}":function(t){return{t:t}},"_0&&_1":function(t,n){return t&&n},"[_0.getWindow(_1).hide()]":function(t,n){return[t.getWindow(n).hide()]},"[_0.getWindow(_1).maximize()]":function(t,n){return[t.getWindow(n).maximize()]},"!_0&&_1&&_2":function(t,n,e){return!t&&n&&e},"[_0.getWindow(_1).close()]":function(t,n){return[t.getWindow(n).close()]},'["top"]':function(){return["top"]},"[_0.hide()]":function(t){return[t.hide()]},"!_0&&_1":function(t,n){return!t&&n},"[_0.maximize()]":function(t){return[t.maximize()]},"[_0.close()]":function(t){return[t.close()]},"(_0||_1||_2)&&_3&&!_4":function(t,n,e,o,i){return(t||n||e)&&o&&!i},'["content"]':function(){return["content"]},"!_0":function(t){return!t},"[_0.call(_1)]":function(t,n){return[t.call(n)]},'["wrapper"]':function(){return["wrapper"]},"_0||_1":function(t,n){return t||n},"(_0||_1||_2)&&!_3":function(t,n,e,o){return(t||n||e)&&!o},"[_0._startResize(_1)]":function(t,n){return[t._startResize(n)]},"[_0._sizeHandle(_1)]":function(t,n){return[t._sizeHandle(n)]},"[_0._startMove(_1)]":function(t,n){return[t._startMove(n)]},"!(_0===false||_1||_2||_3)&&!_4":function(t,n,e,o,i){return!(!1===t||n||e||o||i)},"[_0.raise()]":function(t){return[t.raise()]},'["pane"]':function(){return["pane"]}},p:{title:[{t:4,f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rwindow-title",g:1}],f:[{t:3,r:"~/control.title"}]}],n:50,r:"~/control.title"}],windowControls:[{t:7,e:"div",m:[{t:13,n:"class",f:"rwindow-controls",g:1}],f:[{t:4,f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rwindow-minimize",g:1},{n:["click"],t:70,f:{r:["host","window.id"],s:"[_0.getWindow(_1).hide()]"}}]}],n:50,r:"window.minimize"}," ",{t:4,f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rwindow-maximize",g:1},{n:["click"],t:70,f:{r:["host","window.id"],s:"[_0.getWindow(_1).maximize()]"}}]}],n:50,x:{r:["~/window.dialog","window.maximize","host.data.userMax"],s:"!_0&&_1&&_2"}}," ",{t:4,f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rwindow-close",g:1},{n:["click"],t:70,f:{r:["host","window.id"],s:"[_0.getWindow(_1).close()]"}}]}],n:50,r:"window.close"}]}],pane:[{t:4,f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rwindow-pane-top",g:1},{n:"tracked",t:71,f:{r:[],s:'["top"]'}}],f:[{t:8,r:"title"}," ",{t:7,e:"div",m:[{t:13,n:"class",f:"rwindow-controls",g:1}],f:[{t:4,f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rwindow-minimize",g:1},{n:["click"],t:70,f:{r:["@this"],s:"[_0.hide()]"}}]}],n:50,x:{r:["~/control.dialog","~/control.minimize"],s:"!_0&&_1"}}," ",{t:4,f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rwindow-maximize",g:1},{n:["click"],t:70,f:{r:["@this"],s:"[_0.maximize()]"}}]}],n:50,x:{r:["~/control.dialog","~/control.maximize"],s:"!_0&&_1"}}," ",{t:4,f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rwindow-close",g:1},{n:["click"],t:70,f:{r:["@this"],s:"[_0.close()]"}}]}],n:50,r:"~/control.close"}]}]}],n:51,x:{r:["~/control.max","~/root.userMax","~/root.max","~/root.hideTitleMax","~/control.dialog"],s:"(_0||_1||_2)&&_3&&!_4"}}," ",{t:7,e:"div",m:[{t:13,n:"class",f:"rwindow-content",g:1},{n:"tracked",t:71,f:{r:[],s:'["content"]'}},{n:"class-rwindow-pad",t:13,f:[{t:2,r:"~/control.pad"}]},{n:"class-rwindow-flex",t:13,f:[{t:2,r:"~/control.flex"}]},{t:4,f:[{n:"style-overflow",f:"visible",t:13}],n:50,r:"~/control.autosize"}],f:[{t:8,r:"contents"}]}," ",{t:4,f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rwindow-buttons",g:1},{n:"class-no-buttons",t:13,f:[{t:2,x:{r:["~/visibleButtons"],s:"!_0"}}]}],f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rwindow-left-buttons",g:1}],f:[{t:4,f:[{t:4,f:[{t:8,r:".partial"}],n:50,r:".partial"},{t:4,f:[{t:7,e:"button",m:[{n:"button",t:71},{n:["click"],t:70,f:{r:[".action","@"],s:"[_0.call(_1)]"}},{t:4,f:[{n:"class",f:[{t:2,r:".class"}],t:13}],n:50,r:".class"}],f:[{t:2,r:".label"}]}],n:51,l:1}],n:52,r:"~/leftButtons"}]}," ",{t:7,e:"div",m:[{t:13,n:"class",f:"rwindow-center-buttons",g:1}],f:[{t:4,f:[{t:4,f:[{t:8,r:".partial"}],n:50,r:".partial"},{t:4,f:[{t:7,e:"button",m:[{n:"button",t:71},{n:["click"],t:70,f:{r:[".action","@"],s:"[_0.call(_1)]"}},{t:4,f:[{n:"class",f:[{t:2,r:".class"}],t:13}],n:50,r:".class"}],f:[{t:2,r:".label"}]}],n:51,l:1}],n:52,r:"~/centerButtons"}]}," ",{t:7,e:"div",m:[{t:13,n:"class",f:"rwindow-right-buttons",g:1}],f:[{t:4,f:[{t:4,f:[{t:8,r:".partial"}],n:50,r:".partial"},{t:4,f:[{t:7,e:"button",m:[{n:"button",t:71},{n:["click"],t:70,f:{r:[".action","@"],s:"[_0.call(_1)]"}},{t:4,f:[{n:"class",f:[{t:2,r:".class"}],t:13}],n:50,r:".class"}],f:[{t:2,r:".label"}]}],n:51,l:1}],n:52,r:"~/rightButtons"}]}]}],n:50,r:"~/buttons"}," ",{t:7,e:"div",m:[{t:13,n:"class",f:"rwindow-pane-bottom",g:1}],f:[{t:8,r:"status"}]}],window:[{t:4,f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rwindow-wrapper",g:1},{n:"tracked",t:71,f:{r:[],s:'["wrapper"]'}},{t:4,f:[" ",{t:4,f:[{n:"style-top",f:"0",t:13},{n:"style-left",f:"0",t:13},{n:"style-width",f:"100%",t:13},{n:"style-height",f:"100%",t:13}],n:51,x:{r:["~/control.autosize","~/control.dialog"],s:"_0||_1"}},{n:"class-rwindow-max",t:13},{n:"window",t:72,v:"t2"}],n:50,x:{r:["~/root.max","~/root.userMax","~/control.max","~/control.dialog"],s:"(_0||_1||_2)&&!_3"}},{t:4,f:[{t:4,f:[{n:"class-rwindow-resizable",t:13},{n:["mousedown","touchstart"],t:70,f:{r:["@this","@event"],s:"[_0._startResize(_1)]"}},{n:["mousemove","mouseout"],t:70,f:{r:["@this","@event"],s:"[_0._sizeHandle(_1)]"}}],n:50,r:"~/control.resizable"}," ",{t:4,f:[{n:"class-rwindow-resizing",t:13}],n:50,r:"~/control.resizing"},{n:"modal",t:72,v:"t0"},{n:"style-top",f:[{t:2,r:"~/control.top"},"px"],t:13},{n:"style-left",f:[{t:2,r:"~/control.left"},"px"],t:13},{t:4,f:[{n:"style-width",f:[{t:2,r:"~/control.width"},"em"],t:13},{n:"style-height",f:[{t:2,r:"~/control.height"},"em"],t:13}],n:51,r:"~/control.autosize"}],n:51,l:1},{n:"style-z-index",f:[{t:2,r:"~/control.index"}],t:13},{n:"class-rwindow-topmost",t:13,f:[{t:2,r:"~/control.topmost"}]}],f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rwindow",g:1},{t:4,f:[{n:["mousedown","touchstart"],t:70,f:{r:["@this","@event"],s:"[_0._startMove(_1)]"}}],n:50,x:{r:["~/control.movable","~/root.max","~/root.userMax","~/control.max","~/control.dialog"],s:"!(_0===false||_1||_2||_3)&&!_4"}},{t:4,f:[{n:["mousedown","touchstart"],t:70,f:{r:["@this"],s:"[_0.raise()]"}}],n:50,x:{r:["~/control.topmost"],s:"!_0"},l:1}],f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rwindow-modal",g:1},{n:"class-rwindow-blocked",t:13,f:[{t:2,r:"~/control.blockers.length"}]}]}," ",{t:7,e:"div",m:[{t:13,n:"class",f:"rwindow-pane",g:1},{n:"tracked",t:71,f:{r:[],s:'["pane"]'}},{t:4,f:[{n:"class-rwindow-autosizing",t:13}],n:50,r:"~/control.autosize"}],f:[{t:8,r:"pane"}]}]}]}],n:50,r:"~/control.show"}]}},use:[function(t){void 0===t&&(t={});var n=function(t){return[function(t){var n=Object.assign({},t("raui.primary"),t("raui.toast.primary"));return"\n .rtoast {\n position: absolute;\n display: flex;\n justify-content: center;\n left: 1em;\n right: 1em;\n top: 1em;\n bottom: auto;\n z-index: 5;\n }\n .rtoast-message {\n padding: 0.5em 0.5em 0.5em 1em;\n flex-grow: 2;\n }\n .rtoast-buttons {\n display: inline-block;\n padding: 0.5em 1em 0.5em 0.5em;\n flex-shrink: 1;\n }\n .rtoast-button {\n background-color: transparent;\n border: none;\n color: inherit;\n padding: 0.5em 1em;\n margin: 0 0 0 1em;\n line-height: 1em;\n box-shadow: none;\n }\n .rtoast-bottom {\n bottom: 1em;\n top: auto;\n }\n .rtoast-left {\n justify-content: flex-start;\n }\n .rtoast-right {\n justify-content: flex-end;\n }\n .rtoast-body {\n display: flex;\n flex-shrink: 2;\n align-items: center;\n border-radius: 2px;\n color: "+(n.bg||"#fff")+";\n background-color: "+(n.fg||"#222")+";\n box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);\n opacity: 0.95;\n }\n \n .rtoast-success {\n color: "+(t("raui.toast.success.fg")||"#f9f9f9")+";\n background-color: "+(t("raui.toast.success.bg")||"#4caf50")+";\n }\n .rtoast-info {\n color: "+(t("raui.toast.info.fg")||"#f9f9f9")+";\n background-color: "+(t("raui.toast.info.bg")||"#07e")+";\n }\n .rtoast-warn {\n color: "+(t("raui.toast.warn.fg")||"#222")+";\n background-color: "+(t("raui.warn.success.bg")||"#ffc107")+";\n }\n .rtoast-error {\n color: "+(t("raui.toast.error.fg")||"#f9f9f9")+";\n background-color: "+(t("raui.toast.error.bg")||"#ff5252")+";\n }\n "}.call(this,t)].join(" ")},e={v:4,t:[{t:4,f:[{t:4,f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rtoast",g:1},{n:"class-rtoast-bottom",t:13,f:[{t:2,r:".bottom"}]},{n:"class-rtoast-left",t:13,f:[{t:2,r:".left"}]},{n:"class-rtoast-right",t:13,f:[{t:2,r:".right"}]}],f:[{t:7,e:"div",m:[{n:"toast",t:72,v:"t0"},{n:"class",f:["rtoast-body",{t:4,f:[" rtoast-",{t:2,r:".type"}],n:50,r:".type"},{t:4,f:[{t:2,r:".class"}],n:50,r:".class"}],t:13},{t:4,f:[{n:["click"],t:70,f:{r:["@this"],s:"[_0._closeToast()]"}}],n:50,x:{r:[".dismissable"],s:"_0!==false"}}],f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rtoast-message",g:1}],f:[{t:2,r:".message"}]}," ",{t:4,f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rtoast-buttons",g:1}],f:[{t:4,f:[{t:7,e:"button",m:[{n:"class",f:["rtoast-button",{t:4,f:[" ",{t:2,r:".class"}],n:50,r:".class"}],t:13},{t:4,f:[{n:["click"],t:70,f:{r:["."],s:"[_0.action()]"}}],n:50,x:{r:[".action"],s:'typeof _0==="function"'}}],f:[{t:2,r:".label"}]}],n:52,r:".buttons"},{t:4,f:[{t:7,e:"button",m:[{t:13,n:"class",f:"rtoast-button",g:1}],f:["Close"]}],n:50,x:{r:[".dismissable"],s:"_0!==false"},l:1}]}],n:50,x:{r:[".dismissable",".buttons.length"],s:"_0!==false||_1"}}]}]}],n:54,r:"~/_toast"}],n:50,r:"~/_toast"}],e:{"[_0._closeToast()]":function(t){return[t._closeToast()]},"_0!==false":function(t){return!1!==t},"[_0.action()]":function(t){return[t.action()]},'typeof _0==="function"':function(t){return"function"==typeof t},"_0!==false||_1":function(t,n){return!1!==t||n}}};return function(o){var i=o.Ractive,s=o.instance,a=o.proto;s.partials[t.name||"toast"]=e;var l,c,f=Object.assign({},r,t),d=[];function u(){(c=d.shift()).instance.set("_toast",c).then(function(){c.timeout&&(l=setTimeout(function(){c.instance._closeToast()},c.timeout))})}if(a.toast=function(t,n){var e=Object.assign({message:t,instance:this},f,this.toastDefaults,n);d.push(e),c||u()},a._closeToast=function(){l&&(clearTimeout(l),l=null),c.instance.set("_toast",null).then(function(){c=null,d.length&&u()})},a.on=a.on||{},s.transitions.toast=function(t,n){var e=t.processParams({duration:200},n),o=t.getStyle("opacity");return t.isIntro?(t.setStyle({opacity:0,transform:"translateY("+(c.bottom?"":"-")+"1em)"}),t.animateStyle({opacity:o,transform:"none"},e)):(t.setStyle({opacity:o,transform:"none"}),t.animateStyle({opacity:0,transform:"translateY("+(c.bottom?"":"-")+"1em)"},e))},a.on["close-toast"]=function(){this._closeToast()},s===i||i.isInstance(s))i.hasCSS("toast-css")||i.addCSS("toast",n);else{var h=s.css;s.css=function(t){var e="";return"string"==typeof h?e+=h:"function"==typeof h&&(e+=h(t)),n(t)+e}}return a}}(),(void 0===c&&(c={}),function(t){t.instance.transitions[c.name||"expand"]=i})],cssId:"window-host",noIntro:!0,observe:{"@style":function(){var t;(t=this)._media?t._media.fn():t.get("@style.window.maxFrom")&&(t._media={},t._media.fn=function(){var n=t.sizeInPx(t.get("@style.window.maxFrom")),e=t.transitionsEnabled;t.transitionsEnabled=!1,t.set("max",t.host.clientWidth<=n),t.transitionsEnabled=e},t._media.handle=t.root.on("*.resize",t._media.fn),setTimeout(t._media.fn,0))},topLevel:function(t){t?this.link("windows."+a(t),"current"):this.unlink("current")},currentMax:{handler:function(t){(this.children.byName.window||[]).forEach(function(t){return t.instance.fire("resize")})},defer:!0}},computed:{currentMax:function(){var t=this.get("topLevel"),n=this.get("windows."+a(t)+".max");return this.get("userMax")||this.get("max")||n}},on:{config:function(){var t,n=this,e=this.partials.content;if(e&&Array.isArray(e))for(var o=(e=this.partials.content=e.slice()).length;o--;){var i=e[o];"max-top"===i.e&&(e.splice(o,1),n.set({_maxP:{t:i.f},hideTitleMax:!0}),i.m&&n.set({_maxAttrsP:{t:i.m}}))}"undefined"!=typeof window&&(this._resizeListener=function(){t||(t=setTimeout(function(){t=null,n.fire("resize")},300))},window.addEventListener("resize",this._resizeListener))},teardown:function(){this._resizeListener&&window.removeEventListener("resize",this._resizeListener)}}}),n.transitions.modal=function(t,n){var e,o=t.processParams(n,{duration:400,easing:"easeOut",x:0,y:-50,event:!0}),i=t.node.offsetLeft,r=t.node.offsetTop,s=t.node.parentNode.style?t.node.parentNode.style.overflow:"hidden";if(t.node._modalSrc){var a=t.node._modalSrc||{x:i+o.x,y:r+o.y},l={x:a.x-Math.round(t.node.clientWidth/2)-i,y:a.y-Math.round(t.node.clientHeight/2)-r};t.node.parentNode.style&&(t.node.parentNode.style.overflow="hidden"),t.isIntro?(t.node._modalSrc=a,e={transform:"translate(0, 0) scale(1, 1)",opacity:1},t.setStyle({transform:"translate("+l.x+"px, "+l.y+"px) scale(0.5, 0.5)",opacity:0})):e={transform:"translate("+l.x+"px, "+l.y+"px) scale(0.5, 0.5)",opacity:0}}else t.isIntro?(e={transform:"translate(0, 0) scale(1, 1)",opacity:1},t.setStyle({transform:"translate("+o.x+"px, "+o.y+"px) scale(0.5, 0.5)",opacity:0})):e={transform:"translate("+o.x+"px, "+o.y+"px) scale(0.5, 0.5)",opacity:0};t.animateStyle(e,o).then(function(){t.node.parentNode.style&&(t.node.parentNode.style.overflow=s),t.complete()})};var h=["mousemove","mouseup","touchmove","touchend"],w=function(t){function n(n){t.call(this,n)}t&&(n.__proto__=t),n.prototype=Object.create(t&&t.prototype),n.prototype.constructor=n;var e={resizable:{configurable:!0},title:{configurable:!0},visible:{configurable:!0},pad:{configurable:!0},buttons:{configurable:!0}};return e.resizable.get=function(){return this.get("control.resizable")},e.resizable.set=function(t){return this.set("control.resizable",t)},e.title.get=function(){return this.get("control.title")},e.title.set=function(t){return this.set("control.title",t)},e.visible.get=function(){return this.get("control.show")},e.visible.set=function(t){t?this.show():this.set("control.show",t,{keep:!0}),this.host.raise(this,t)},e.pad.get=function(){return this.get("pad")},e.pad.set=function(t){this.set("pad",t)},e.buttons.get=function(){return this.get("buttons")},e.buttons.set=function(t){return this.set("buttons",t)},n.prototype.close=function(t){if(!0!==t){if(!this.parent)return!1;if(this.get("control.blockers.length"))return!1;if("function"==typeof this.beforeClose&&!1===this.beforeClose())return!1;if(!1===this.fire("beforeClose"))return!1}return this.fire("close"),!0},n.prototype.maximize=function(){this.toggle("root.userMax")},n.prototype.hide=function(){this.visible=!1},n.prototype.raise=function(t){this.host.raise(this,t)},n.prototype.show=function(){this.set("control.show",!0),void 0===this.get("control.top")&&this.host.place(this)},n.prototype.size=function(t,n){if(this.visible){var e=this.wrapper;if(e){if("auto"===t){this.set("control.autosize",!0);var o=this.host.sizeInEm(e.clientWidth+16),i=this.host.sizeInEm(e.clientHeight);this.set({"control.width":o,"control.height":i,"control.naturalWidth":o,"control.naturalHeight":i,"control.autosize":!1})}else if("number"==typeof t&&"number"==typeof n)this.set({"control.width":this.host.sizeInEm(t),"control.height":this.host.sizeInEm(n),"control.naturalWidth":this.host.sizeInEm(t),"control.naturalHeight":this.host.sizeInEm(n),"control.autosize":!1});else if("string"==typeof t&&"string"==typeof n){var r=e.style.width,s=e.style.height;e.style.width=t,e.style.height=n;var a=e.clientWidth,l=e.clientHeight;e.style.width=r,e.style.height=s,this.set({"control.width":this.host.sizeInEm(a),"control.height":this.host.sizeInEm(l),"control.naturalWidth":this.host.sizeInEm(a),"control.naturalHeight":this.host.sizeInEm(l),"control.autosize":!1})}this.fire("resize")}}else"number"==typeof t&&"number"==typeof n&&this.set({"control.width":this.host.sizeInEm(t),"control.height":this.host.sizeInEm(n),"control.naturalWidth":this.host.sizeInEm(t),"control.naturalHeight":this.host.sizeInEm(n),"control.autosize":!1})},n.prototype.move=function(t,n){"string"==typeof t&&(t=this.host.sizeInEm(t)),"string"==typeof n&&(t=this.host.sizeInEm(n));var e={};"number"==typeof t&&(e["control.top"]=t),"number"==typeof n&&(e["control.left"]=n),this.set(e)},n.prototype._startMove=function(t){var n=this;if("mousedown"!==t.type||0===t.button){if(this.get("control.topmost")||this.raise(),~t.type.indexOf("mouse")){if(!t.ctrlKey&&t.target!==this.content&&t.target!==this.top&&!this.top.contains(t.target))return}else if(t.targetTouches&&1===t.targetTouches.length&&t.target!==this.content&&t.target!==this.top&&!this.top.contains(t.target))return;var e=this.pane,o=e.style.cursor;e.style.cursor="move",e.style.userSelect="none";var i=t.x||t.clientX||t.targetTouches&&t.targetTouches[0].clientX||0,r=t.y||t.clientY||t.targetTouches&&t.targetTouches[0].clientY||0,s=this.get("control.left")||0,a=this.get("control.top")||0,l=e.clientWidth,c=e.clientHeight,f=function(t){var d=t.x||t.clientX||t.targetTouches&&t.targetTouches[0]&&t.targetTouches[0].clientX||t.changedTouches&&t.changedTouches[0].clientX||0,u=t.y||t.clientY||t.targetTouches&&t.targetTouches[0]&&t.targetTouches[0].clientY||t.changedTouches&&t.changedTouches[0].clientY||0,w=s+(d-i),p=a+(u-r);w<(l<30?0:30-l)&&(w=l<30?0:30-l),p<(c<30?0:30-c)&&(p=c<30?0:30-c),w<0&&(w=0),p<0&&(p=0),n.set({"control.top":p,"control.left":w}),"touchend"===t.type||"mouseup"===t.type?(h.forEach(function(t){return document.removeEventListener(t,f,{passive:!1})}),e.style.cursor=o,e.style.userSelect=""):t.preventDefault()};return h.forEach(function(t){return document.addEventListener(t,f,{passive:!1})}),0!==t.type.indexOf("mouse")&&void 0}},n.prototype._startResize=function(t){var n=this;if(t.target===this.wrapper&&("mousedown"!==t.type||0===t.button)){this.get("control.autosize")&&this.size("auto"),this.get("control.topmost")||this.raise(),this.set("control.resizing",!0);var e,o=this.wrapper,i=t.offsetX||t.targetTouches&&t.targetTouches[0].pageX-o.getBoundingClientRect().left,r=t.offsetY||t.targetTouches&&t.targetTouches[0].pageY-o.getBoundingClientRect().top,s=this.get("@style.window.handleSize")||7,a=o.clientWidth-2*s,l=o.clientHeight-2*s,c=2*s,f=i<=c||i>=a,d=r<=c||r>=l,u=t.x||t.clientX||t.targetTouches&&t.targetTouches[0].clientX||0,w=t.y||t.clientY||t.targetTouches&&t.targetTouches[0].clientY||0,p=this.get("control.left")||0,g=this.get("control.top")||0,m=this.host.sizeInPx(this.get("control.width")+"em"),b=this.host.sizeInPx(this.get("control.height")+"em"),x=this.host.sizeInPx(this.get("control.naturalHeight")+"em"),y=this.host.sizeInPx(this.get("control.naturalWidth")+"em"),v=function(t){t.preventDefault();var o=t.x||t.clientX||t.targetTouches&&t.targetTouches[0]&&t.targetTouches[0].clientX||t.changedTouches&&t.changedTouches[0].clientX||0,a=t.y||t.clientY||t.targetTouches&&t.targetTouches[0]&&t.targetTouches[0].clientY||t.changedTouches&&t.changedTouches[0].clientY||0,l=f?o-u:0,c=d?a-w:0,_={};r<=s?(_["control.top"]=g+c,_["control.height"]=b-c):_["control.height"]=b+c,i<=s?(_["control.left"]=p+l,_["control.width"]=m-l):_["control.width"]=m+l,_["control.width"]<y&&(delete _["control.width"],delete _["control.left"]),_["control.height"]<x&&(delete _["control.height"],delete _["control.top"]),_["control.left"]<0&&(_["control.left"]=0),_["control.top"]<0&&(_["control.top"]=0),_["control.width"]&&(_["control.width"]=n.host.sizeInEm(_["control.width"])),_["control.height"]&&(_["control.height"]=n.host.sizeInEm(_["control.height"])),n.set(_),"touchend"===t.type||"mouseup"===t.type?(h.forEach(function(t){return document.removeEventListener(t,v,{passive:!1})}),n.set("control.resizing",!1),m===n.get("control.width")&&b===n.get("control.height")||(e&&clearTimeout(e),e=null,n.fire("resize"))):e||(e=setTimeout(function(){n.fire("resize"),e=null},200))};return h.forEach(function(t){return document.addEventListener(t,v,{passive:!1})}),!1}},n.prototype._sizeHandle=function(t){if(t.target===this.wrapper){var n=this.wrapper;if("mouseout"===t.type)return n.style.cursor="auto";var e=t.offsetX,o=t.offsetY,i=this.get("@style.window.handleSize")||7,r=n.clientWidth-i,s=n.clientHeight-i,a=n.style;a.cursor=e<=i+i&&o<=i+i||e>=r-i&&o>=s-i?"nwse-resize":e>=r-i&&o<=i+i||e<=i+i&&o>=s-i?"nesw-resize":(e<=i||e>=r)&&(o<s||o>i)?"ew-resize":(o<=i||o>=s)&&(e<r||e>i)?"ns-resize":"auto"}},Object.defineProperties(n.prototype,e),n}(l),p=["left","right","center","condition"];function g(t){return void 0===t&&(t={}),function(n){n.instance.components[t.name||"host"]=d}}l.extendWith(w,{template:{v:4,t:[{t:4,f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rwindow-wrapper",g:1},{n:"tracked",t:71,f:{r:[],s:'["wrapper"]'}},{t:4,f:[" ",{t:4,f:[{n:"style-top",f:"0",t:13},{n:"style-left",f:"0",t:13},{n:"style-width",f:"100%",t:13},{n:"style-height",f:"100%",t:13}],n:51,x:{r:["~/control.autosize","~/control.dialog"],s:"_0||_1"}},{n:"class-rwindow-max",t:13},{n:"window",t:72,v:"t2"}],n:50,x:{r:["~/root.max","~/root.userMax","~/control.max","~/control.dialog"],s:"(_0||_1||_2)&&!_3"}},{t:4,f:[{t:4,f:[{n:"class-rwindow-resizable",t:13},{n:["mousedown","touchstart"],t:70,f:{r:["@this","@event"],s:"[_0._startResize(_1)]"}},{n:["mousemove","mouseout"],t:70,f:{r:["@this","@event"],s:"[_0._sizeHandle(_1)]"}}],n:50,r:"~/control.resizable"}," ",{t:4,f:[{n:"class-rwindow-resizing",t:13}],n:50,r:"~/control.resizing"},{n:"modal",t:72,v:"t0"},{n:"style-top",f:[{t:2,r:"~/control.top"},"px"],t:13},{n:"style-left",f:[{t:2,r:"~/control.left"},"px"],t:13},{t:4,f:[{n:"style-width",f:[{t:2,r:"~/control.width"},"em"],t:13},{n:"style-height",f:[{t:2,r:"~/control.height"},"em"],t:13}],n:51,r:"~/control.autosize"}],n:51,l:1},{n:"style-z-index",f:[{t:2,r:"~/control.index"}],t:13},{n:"class-rwindow-topmost",t:13,f:[{t:2,r:"~/control.topmost"}]}],f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rwindow",g:1},{t:4,f:[{n:["mousedown","touchstart"],t:70,f:{r:["@this","@event"],s:"[_0._startMove(_1)]"}}],n:50,x:{r:["~/control.movable","~/root.max","~/root.userMax","~/control.max","~/control.dialog"],s:"!(_0===false||_1||_2||_3)&&!_4"}},{t:4,f:[{n:["mousedown","touchstart"],t:70,f:{r:["@this"],s:"[_0.raise()]"}}],n:50,x:{r:["~/control.topmost"],s:"!_0"},l:1}],f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rwindow-modal",g:1},{n:"class-rwindow-blocked",t:13,f:[{t:2,r:"~/control.blockers.length"}]}]}," ",{t:7,e:"div",m:[{t:13,n:"class",f:"rwindow-pane",g:1},{n:"tracked",t:71,f:{r:[],s:'["pane"]'}},{t:4,f:[{n:"class-rwindow-autosizing",t:13}],n:50,r:"~/control.autosize"}],f:[{t:8,r:"pane"}]}]}]}],n:50,r:"~/control.show"}]},cssId:"window",partials:{pane:[{t:4,f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rwindow-pane-top",g:1},{n:"tracked",t:71,f:{r:[],s:'["top"]'}}],f:[{t:8,r:"title"}," ",{t:7,e:"div",m:[{t:13,n:"class",f:"rwindow-controls",g:1}],f:[{t:4,f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rwindow-minimize",g:1},{n:["click"],t:70,f:{r:["@this"],s:"[_0.hide()]"}}]}],n:50,x:{r:["~/control.dialog","~/control.minimize"],s:"!_0&&_1"}}," ",{t:4,f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rwindow-maximize",g:1},{n:["click"],t:70,f:{r:["@this"],s:"[_0.maximize()]"}}]}],n:50,x:{r:["~/control.dialog","~/control.maximize"],s:"!_0&&_1"}}," ",{t:4,f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rwindow-close",g:1},{n:["click"],t:70,f:{r:["@this"],s:"[_0.close()]"}}]}],n:50,r:"~/control.close"}]}]}],n:51,x:{r:["~/control.max","~/root.userMax","~/root.max","~/root.hideTitleMax","~/control.dialog"],s:"(_0||_1||_2)&&_3&&!_4"}}," ",{t:7,e:"div",m:[{t:13,n:"class",f:"rwindow-content",g:1},{n:"tracked",t:71,f:{r:[],s:'["content"]'}},{n:"class-rwindow-pad",t:13,f:[{t:2,r:"~/control.pad"}]},{n:"class-rwindow-flex",t:13,f:[{t:2,r:"~/control.flex"}]},{t:4,f:[{n:"style-overflow",f:"visible",t:13}],n:50,r:"~/control.autosize"}],f:[{t:8,r:"contents"}]}," ",{t:4,f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rwindow-buttons",g:1},{n:"class-no-buttons",t:13,f:[{t:2,x:{r:["~/visibleButtons"],s:"!_0"}}]}],f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rwindow-left-buttons",g:1}],f:[{t:4,f:[{t:4,f:[{t:8,r:".partial"}],n:50,r:".partial"},{t:4,f:[{t:7,e:"button",m:[{n:"button",t:71},{n:["click"],t:70,f:{r:[".action","@"],s:"[_0.call(_1)]"}},{t:4,f:[{n:"class",f:[{t:2,r:".class"}],t:13}],n:50,r:".class"}],f:[{t:2,r:".label"}]}],n:51,l:1}],n:52,r:"~/leftButtons"}]}," ",{t:7,e:"div",m:[{t:13,n:"class",f:"rwindow-center-buttons",g:1}],f:[{t:4,f:[{t:4,f:[{t:8,r:".partial"}],n:50,r:".partial"},{t:4,f:[{t:7,e:"button",m:[{n:"button",t:71},{n:["click"],t:70,f:{r:[".action","@"],s:"[_0.call(_1)]"}},{t:4,f:[{n:"class",f:[{t:2,r:".class"}],t:13}],n:50,r:".class"}],f:[{t:2,r:".label"}]}],n:51,l:1}],n:52,r:"~/centerButtons"}]}," ",{t:7,e:"div",m:[{t:13,n:"class",f:"rwindow-right-buttons",g:1}],f:[{t:4,f:[{t:4,f:[{t:8,r:".partial"}],n:50,r:".partial"},{t:4,f:[{t:7,e:"button",m:[{n:"button",t:71},{n:["click"],t:70,f:{r:[".action","@"],s:"[_0.call(_1)]"}},{t:4,f:[{n:"class",f:[{t:2,r:".class"}],t:13}],n:50,r:".class"}],f:[{t:2,r:".label"}]}],n:51,l:1}],n:52,r:"~/rightButtons"}]}]}],n:50,r:"~/buttons"}," ",{t:7,e:"div",m:[{t:13,n:"class",f:"rwindow-pane-bottom",g:1}],f:[{t:8,r:"status"}]}],title:[{t:4,f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rwindow-title",g:1}],f:[{t:3,r:"~/control.title"}]}],n:50,r:"~/control.title"}],contents:"",status:""},data:function(){return{buttons:[],visibleButtons:0}},computed:{leftButtons:function(){return(this.get("buttons")||[]).filter(function(t){return"left"===t.where})},centerButtons:function(){return(this.get("buttons")||[]).filter(function(t){return"center"===t.where})},rightButtons:function(){return(this.get("buttons")||[]).filter(function(t){return!t.where||"right"===t.where})}},decorators:{button:function(t){var n=this.getContext(t);return n.add("visibleButtons"),{update:function(){},teardown:function(){n.subtract("visibleButtons")}}}},on:{config:function(){var t=w.prototype.template,n=this.template;"string"!=typeof t&&!Array.isArray(t)&&t.t&&(t=t.t),"string"!=typeof n&&!Array.isArray(n)&&n.t&&(n=n.t),t!==n&&(this.partials.hasOwnProperty("contents")||(this.partials.contents=n),this.template=t)},construct:function(){var t=this.constructor;if(!t._constructed){t._constructed=1;var n=t.prototype.template.t.slice(),e=n.find(function(t){return"buttons"===t.e});function o(t){var n=t.m||[],e={partial:{t:[{t:t.t,e:t.e,f:t.f,m:n.filter(function(t){return!~p.indexOf(t.n)})}]},where:n.find(function(t){return"left"===t.n})?"left":n.find(function(t){return"center"===t.n})?"center":"right"};return e.partial.t[0].m.push({t:71,n:"button"}),e}t.prototype.template.t=n.filter(function(t){return"buttons"!==t.e}),e&&(t._btns=e.f.filter(function(t){return"button"===t.e||4===t.t&&(50===t.n||51===t.n)&&t.f.find(function(t){return"button"===t.e})}).map(function(t){if(4===t.t){var n=o(t.f.find(function(t){return"button"===t.e})),e={t:t.t,n:t.n,f:[n.partial.t[0]]};return t.r&&(e.r=t.r),t.rx&&(e.rx=t.rx),t.x&&(e.x=t.x),n.partial={t:[e]},n}return o(t)}))}},init:function(){var t=this.constructor;t._btns&&!this.get("buttons.length")&&this.set("buttons",t._btns)}}}),o("RMWindowHost","components",d),o("RMWindow","components",w),d.prototype.Window=w,t.Base=l,t.Host=d,t.Window=w,t.plugin=g,t.default=g,Object.defineProperty(t,"__esModule",{value:!0})});
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("ractive")):"function"==typeof define&&define.amd?define(["exports","ractive"],n):n(t.RMWindow={},t.Ractive)}(this,function(t,n){"use strict";n=n&&n.hasOwnProperty("default")?n.default:n;var e="undefined"!=typeof window?window:null;function o(t,n,o){if(e&&e.Ractive&&"object"==typeof e.Ractive[n]){var i=document.currentScript;if(i||(i=(i=document.querySelectorAll("script"))[i.length-1]),i){var r=i.getAttribute("data-alias");r&&(r=(r=r.split("&")).reduce(function(t,n){var e=n.split("="),o=e[0],i=e[1];return t[o]=i,t},{})),Ractive[n][r&&r[t]||t]=o}}}function i(t,n){var e=t.processParams(n,{duration:200,easing:"easeInOut"});t.setStyle("overflow","hidden");var o="x"===e.axis?"width":"height";if(t.isIntro){var i=t.getStyle(o);return t.setStyle(o,0),t.setStyle("opacity",0),t.animateStyle(o,i,e).then(function(){return t.animateStyle("opacity",1,e)})}return t.setStyle(o,t.getStyle(o)),t.setStyle("opacity",1),t.animateStyle("opacity",0,e).then(function(){return t.animateStyle(o,0,e)})}o("expand","transitions",i);var r={timeout:6e3,top:!0};var s,a=n.escapeKey,l=function(t){function n(n){t.call(this,n)}return t&&(n.__proto__=t),n.prototype=Object.create(t&&t.prototype),n.prototype.constructor=n,n}(n);n.extendWith(l,{css:function(t){return[function(t){var n=Object.assign({},t("raui.primary"),t("raui.window.primary")),e=Object.assign({host:{},title:{}},t("raui.window"));return"\n .rwhost {\n position: relative;\n display: flex;\n flex-direction: column;\n box-sizing: border-box;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n }\n \n .rwhost-sizer {\n position: absolute;\n }\n \n .rwhost-pane {\n display: flex;\n position: relative;\n width: 100%;\n box-sizing: border-box;\n flex-grow: 2;\n overflow: auto;\n background-color: "+(e.host.bg||n.bg||"#fff")+";\n z-index: 1;\n }\n \n .rwhost-pane-content {\n flex-grow: 1;\n }\n \n .rwhost-modal {\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n z-index: -1;\n opacity: 0;\n transition: opacity 0.2s ease-in-out, z-index 0s linear 0.2s;\n background-color: #000;\n }\n .rwhost-modal-active {\n opacity: 0.5;\n z-index: 1;\n transition: opacity 0.2s ease-in-out, z-index 0s linear;\n }\n \n .rwindow-wrapper {\n display: inline-block;\n box-sizing: border-box;\n position: absolute;\n }\n .rwindow-wrapper.rwindow-resizing {\n transition: none;\n }\n \n .rwindow-wrapper.rwindow-resizable {\n padding: "+(e.handleSize||7)+"px;\n }\n \n .rwindow-topmost > .rwindow {\n box-shadow: 0 6px 10px 0 rgba(0, 0, 0, 0.14), 0 1px 18px 0 rgba(0, 0, 0, 0.12), 0 3px 5px -1px rgba(0, 0, 0, 0.3);\n opacity: 1;\n }\n \n .rwindow-modal {\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n background-color: rgba(0, 0, 0, 0.5);\n opacity: 0;\n z-index: -1;\n transition: opacity 0.4s ease-in-out, z-index 0s linear 0.4s;\n }\n .rwindow-modal.rwindow-blocked {\n opacity: 1;\n z-index: 10;\n transition: opacity 0.4s ease-in-out, z-index 0s linear;\n }\n \n .rwindow {\n position: relative;\n box-sizing: border-box;\n background-color: "+(e.bg||n.bg||"#fff")+";\n color: "+(e.fg||n.fg||"#222")+";\n box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);\n border-radius: 2px;\n overflow: hidden;\n width: 100%;\n height: 100%;\n min-width: "+(e.minWidth||"6em")+";\n min-height: "+(e.minHeight||"6em")+";\n transition: box-shadow 0.4s ease-in-out, opacity 0.4s ease-in-out;\n }\n .rwindow-max > .rwindow {\n border-radius: 0;\n box-shadow: none;\n }\n \n .rwindow-pane-top,\n .rwindow-max-top {\n background-color: "+(e.title.bg||n.fga||"#07e")+";\n color: "+(e.title.fg||n.bg||"#fff")+";\n flex-shrink: 0;\n }\n \n .rwindow-max-top {\n flex-shrink: 2;\n }\n \n .rwindow-pane-top {\n display: flex;\n align-items: center;\n }\n \n .rwindow-pane {\n display: flex;\n flex-direction: column;\n table-layout: fixed;\n width: 100%;\n height: 100%;\n }\n .rwindow-autosizing {\n display: block;\n box-sizing: border-box;\n }\n .rwindow-content {\n overflow: auto;\n flex-grow: 2;\n position: relative;\n box-sizing: border-box;\n }\n .rwindow-content.rwindow-pad {\n padding: 1em;\n }\n .rwindow-content.rwindow-flex {\n display: flex;\n flex-direction: column;\n }\n \n .rwindow-buttons {\n display: flex;\n flex-shrink: 0;\n padding: 0.5em;\n border-top: 1px solid "+(e.title.bg||n.fga||"#07e")+";\n }\n .rwindow-buttons.no-buttons {\n display: none;\n }\n .rwindow-left-buttons {\n text-align: left;\n flex-grow: 2;\n }\n .rwindow-left-buttons button {\n margin-right: 0.5em;\n }\n .rwindow-center-buttons {\n text-align: center;\n flex-shrink: 2;\n }\n .rwindow-center-buttons button {\n margin: 0 0.25em;\n }\n .rwindow-right-buttons {\n text-align: right;\n flex-grow: 2;\n }\n .rwindow-right-buttons button {\n margin-left: 0.5em;\n }\n \n .rwindow-title {\n overflow: hidden;\n text-overflow: ellipsis;\n padding: 0.5em;\n white-space: nowrap;\n box-sizing: border-box;\n flex-grow: 1;\n }\n \n .rwindow-controls {\n display: flex;\n justify-content: flex-end;\n align-items: center;\n flex-grow: 1;\n }\n .rwindow-controls > div {\n margin: 0 1em 0 0;\n width: 0.7em;\n height: 0.7em;\n cursor: pointer;\n }\n .rwindow-minimize {\n border-bottom: 2px solid;\n }\n .rwindow-maximize {\n border: 2px solid;\n }\n .rwindow-controls > .rwindow-close {\n width: 0.5em;\n height: 1em;\n border-right: 2px solid;\n transform: rotate(45deg);\n transform-origin: center right;\n position: relative;\n margin-right: 1.5em;\n }\n .rwindow-close:before {\n cursor: pointer;\n height: 1.2em;\n width: 1.2em;\n top: 0.3em;\n left: 0.1em;\n content: ' ';\n transform: rotate(-45deg);\n transform-origin: center left;\n position: absolute;\n }\n .rwindow-close:after {\n cursor: pointer;\n height: 100%;\n width: 100%;\n top: 1px;\n left: calc(100% + 1px);\n content: ' ';\n border-left: 2px solid;\n transform: rotate(-90deg);\n transform-origin: center left;\n position: absolute;\n }\n "+("function"==typeof t("raui.window.extra")?t("raui.window.extra").call(this,t):"")+"\n "}.call(this,t)].join(" ")},cssId:"rwindow",noCssTransform:!0,delegate:!1,decorators:{tracked:function(t,n){return this[n]=t,{teardown:function(){this[n]===t&&(this[n]=null)}}}},transitions:{window:function(t,n){if(s)return t.complete();s=t;var e=t.processParams(n,{duration:400,easing:"easeInOut"}),o=t.node.parentNode,i=o.style?o.style.overflow:"";o.style&&(o.style.overflow="hidden"),t.isIntro||e.intro?(t.setStyle({transform:"translate(30%, 0px) scale(1.1, 1.1)",opacity:0}),setTimeout(function(){t.animateStyle({transform:"none",opacity:1},e).then(function(){t.setStyle("opacity",1),s=!1,t.complete(),o.style&&(o.style.overflow=i)})})):(t.setStyle({transform:"none",opacity:1}),t.animateStyle({transform:"translate(30%, 0px) scale(1.1, 1.1)",opacity:0},e).then(function(){s=!1,t.complete(),o.style&&(o.style.overflow=i)}))}}});var c,f=0,d=function(t){function n(n){t.call(this,n),this.defaults={}}t&&(n.__proto__=t),n.prototype=Object.create(t&&t.prototype),n.prototype.constructor=n;var e={current:{configurable:!0},currentId:{configurable:!0},placement:{configurable:!0},windows:{configurable:!0}};return e.current.get=function(){var t=this.get("topLevel");return this.getWindow(this.get("windows")[t].id)},e.currentId.get=function(){var t=this.get("topLevel");return this.get("windows."+a(t)+".id")},e.placement.get=function(){return this.get("placement")},e.placement.set=function(t){return this.set("placement",t)},e.windows.get=function(){return Object.keys(this.get("windows"))},n.prototype.addWindow=function(t,n){var e=this,o=Object.assign({},this.defaults,t.options,t.get("options"),n);if(!(t instanceof w))throw new Error("Windows must be instances of Window");t.id||t.set("@.id",o.id||"window"+f++),this.get("windows."+a(t.id))||this.set("windows."+a(t.id),Object.assign({show:!1!==o.show,autosize:!0,id:t.id,blockers:[],close:!0,minimize:!0,maximize:!0},o,{id:t.id})),t.host=this;var i,r,s=this.attachChild(t,{target:"window"});(o.block&&("string"==typeof(i=o.block.id||o.block)&&i in this.get("windows")?(this.push("windows."+a(i)+".blockers",t.id),t.set("control.blocking",i)):i=!1),"fill"===o.size&&(i||o.block))?(!0===o.block?r=this.find(".rwhost-pane"):(r=this.getWindow(i))&&(r=r.find(".rwindow")),r&&(t.size(r.clientWidth-(o.fillPad||20),r.clientHeight-(o.fillPad||20)),!0!==o.block||o.top||o.left||(o.top=o.left=Math.floor((o.fillPad||20)/2)))):o.width&&o.height?t.size(o.width,o.height):t.size("auto");return o.top&&o.left?t.move(o.top,o.left):this.place(t),this.raise(t,!1!==o.show),t.on("close",function(){var n=t.get("control.blocking");if(n){var o=e.windowGet(n,"blockers");e.splice("windows."+a(n)+".blockers",o.indexOf(t.id),1)}e.detachChild(t).then(function(){return t.teardown()}),e.set("windows."+a(t.id)+".index",-1),e.raise(),e.set("windows."+a(t.id),void 0),delete e.get("windows")[t.id]}),this.update("windows."+a(t.id)+".id",{force:!0}),s.then(function(){return t})},n.prototype.getWindow=function(t){return this.children.byName.window&&this.children.byName.window.filter(function(n){return n.instance.id===t}).map(function(t){return t.instance})[0]},n.prototype.windowGet=function(t,n){return this.get("windows."+a(t)+"."+n)},n.prototype.windowSet=function(t,n,e){return this.set("windows."+a(t)+"."+n,e)},n.prototype.raise=function(t,n){var e=this,o=t instanceof w?t:this.children.byName.window.filter(function(n){return n.instance.id===t}).map(function(t){return t.instance})[0],i=this.get("windows"),r=this,s=Object.keys(i).map(function(t){return i[t]}),l=s.length+1,c=this.get("topLevel");this.get("blocked");function f(t){var n=r.get("windows."+a(t)+".blockers");n&&(n.forEach(function(t){return r.add("windows."+a(t)+".index",l++)}),n.forEach(function(t){return f(t)}))}o&&(o.set("control.index",!1===n?-1:l++),!1===n||o.visible||o.show(),f(o.id)),s.filter(function(t){return!1!==t.show&&!0===t.block}).forEach(function(t){e.set("windows."+a(t.id)+".index",(t.index||0)+l),f(t.id)});var d=s.sort(function(t,n){return t.show?n.show&&t.index<n.index?-1:1:-1}),u=d.filter(function(t){return t.show});l=d.indexOf(u[u.length-1]);var h={},p=null;if(d.forEach(function(t,n){var e=a(t.id);!0===t.block&&null===p&&(p=n),h["windows."+e+".index"]=null!==p?n+2:n,h["windows."+e+".topmost"]=n===l,h["windows."+e+".stack"]=d.length-n}),h.blocked=null!==p?p+1:0,~l&&d.length?h.topLevel=d[l].id:h.topLevel=null,this.set(h),(l=h.topLevel)&&l!==c&&this.get("currentMax")&&this.rendered){var g=this.get("windows."+a(c));o=this.getWindow(l),(!g||!g.dialog||g.blocking&&g.blocking!==l)&&o.transition("window",o.find("div"),{intro:!0})}},n.prototype.place=function(t){if(t.get("control.show")){var n=t.get("control");void 0===n.width&&t.size("auto");var e=0,o=0;if(this.fragment&&this.fragment.rendered){var i=this.find(".rwhost"),r=i.clientWidth,s=i.clientHeight,l=t.get("control.blocking");if(l){var c="windows."+a(l),f=this.get(c),d=n.max||!n.dialog&&(this.get("max")||this.get("userMax")),h=f.max||this.get("userMax")||this.get("max"),w=h?this.host.clientWidth:this.sizeInPx(f.width+"em"),p=h?this.host.clientHeight:this.sizeInPax(f.height+"em"),g=h?0:f.left,m=h?0:f.top;e=(d?r:w/2)+(d?0:g)-this.sizeInPx(n.width+"em")/2,o=(d?s:p/2)+(d?0:m)-this.sizeInPx(n.height+"em")/2}else{var b,x=this.get("placement");if("function"==typeof x)try{b=x(this,i,n)}catch(t){b=u(this,i,n)}else if("string"==typeof x)switch(x){case"smart":b=function(t,n,e){var o,i,r=n.clientWidth-10,s=n.clientHeight-10,a=Math.floor(s/16),l=Math.floor(r/16),c=new Array(a*l),f=new Array(a*l);for(o=0;o<c.length;o++)c[o]=0;var d,u,h,w,p,g,m,b,x=0,y=t.get("windows");for(var v in y)for(x++,d=y[v],u=Math.floor(d.top/16),h=Math.floor(d.left/16),p=Math.ceil(t.sizeInPx(d.height+"em")/16),w=Math.ceil(t.sizeInPx(d.width+"em")/16),o=u;o<u+p&&o<a;o++)for(i=h;i<h+w&&i<l;i++)c[o*l+i]++;for(w=Math.ceil(t.sizeInPx(e.width+"em")/16),p=Math.ceil(t.sizeInPx(e.height+"em")/16),o=0;o<a;o++)for(i=0;i<l;i++){if(o+p>a||i+w>l)g=x*w*p;else for(g=0,m=0;m<p;m++)for(b=0;b<w;b++)g+=c[(o+m)*l+i+b];if(0===g)return{top:16*o+5,left:16*i+5};f[o*l+i]=g}for(g=x*w*p,m=0,o=0;o<f.length;o++)f[o]<g&&(g=f[o],m=o);return{top:16*Math.floor(m/l)+5,left:m%l*16+5}}(this,i,n);break;default:b=u(this,i,n)}else b=u(this,i,n);o=b.top,e=b.left}(isNaN(e)||e<0)&&(e=10),(isNaN(o)||o<0)&&(o=10),t.set({"control.top":o,"control.left":e})}}},n.prototype.sizeInPx=function(t){return this.sizer.style.width="number"==typeof t?t+"px":t,this.sizer.clientWidth},n.prototype.sizeInEm=function(t){return this.sizeInPx(t)/this.sizeInPx("1em")},Object.defineProperties(n.prototype,e),n}(l);function u(t,n,e){var o=n.clientWidth,i=n.clientHeight,r=0,s=0,a=void 0===t._grid1?t._grid1=0:t._grid1>7?t._grid1=0:++t._grid1,l=Math.floor(o/3),c=Math.floor(i/3),f=t.sizeInPx(e.width+"em"),d=t.sizeInPx(e.height+"em");switch(a){case 5:case 7:case 8:r=i-d-10;break;case 2:case 4:case 6:r=c+Math.floor((c-d)/2);break;case 0:case 1:case 3:r=10}switch(a){case 3:case 6:case 8:s=o-f-10;break;case 1:case 4:case 7:s=l+Math.floor((l-f)/2);break;case 0:case 2:case 5:s=10}return s+f>o&&(s=o-f-10),r+d>i&&(r=i-d-10),{top:r,left:s}}l.extendWith(d,{template:{v:4,t:[{t:7,e:"div",m:[{t:13,n:"class",f:"rwhost",g:1},{n:"tracked",t:71,f:{r:[],s:'["host"]'}}],f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rwhost-sizer",g:1},{n:"tracked",t:71,f:{r:[],s:'["sizer"]'}}]}," ",{t:4,f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rwindow-max-top",g:1},{t:4,f:[{t:16,r:"~/_maxAttrsP"}],n:50,r:"~/_maxAttrsP"}],f:[{t:16,r:"~/_maxP",z:[{n:"window",x:{r:"~/current"}},{n:"windowControls",x:{x:{r:["@this.partials.windowControls"],s:"{t:_0}"}}},{n:"host",x:{r:"@this"}}]}]}],n:50,x:{r:["~/currentMax","~/_maxP"],s:"_0&&_1"}}," ",{t:7,e:"div",m:[{t:13,n:"class",f:"rwhost-pane",g:1}],f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rwhost-pane-content",g:1}],f:[{t:16}]}," ",{t:4,f:[{t:11,n:"window",m:[{n:"control",f:[{t:2,rx:{r:"~/windows",m:[{t:30,n:".instance.id"}]}}],t:13},{n:"root",t:13,f:[{t:2,r:"~/"}]}]}],n:52,r:"@this.children.byName.window"}," ",{t:7,e:"div",m:[{t:13,n:"class",f:"rwhost-modal",g:1},{t:4,f:[{n:"class-rwhost-modal-active",t:13},{n:"style-z-index",f:[{t:2,r:"~/blocked"}],t:13}],n:50,r:"~/blocked"}]}]}," ",{t:8,r:"toast"}]}],e:{'["host"]':function(){return["host"]},'["sizer"]':function(){return["sizer"]},"{t:_0}":function(t){return{t:t}},"_0&&_1":function(t,n){return t&&n},"[_0.getWindow(_1).hide()]":function(t,n){return[t.getWindow(n).hide()]},"[_0.getWindow(_1).maximize()]":function(t,n){return[t.getWindow(n).maximize()]},"!_0&&_1&&_2":function(t,n,e){return!t&&n&&e},"[_0.getWindow(_1).close()]":function(t,n){return[t.getWindow(n).close()]},'["top"]':function(){return["top"]},"[_0.hide()]":function(t){return[t.hide()]},"!_0&&_1":function(t,n){return!t&&n},"[_0.maximize()]":function(t){return[t.maximize()]},"[_0.close()]":function(t){return[t.close()]},"(_0||_1||_2)&&_3&&!_4":function(t,n,e,o,i){return(t||n||e)&&o&&!i},'["content"]':function(){return["content"]},"!_0":function(t){return!t},"[_0.call(_1)]":function(t,n){return[t.call(n)]},'["wrapper"]':function(){return["wrapper"]},"_0||_1":function(t,n){return t||n},"(_0||_1||_2)&&!_3":function(t,n,e,o){return(t||n||e)&&!o},"[_0._startResize(_1)]":function(t,n){return[t._startResize(n)]},"[_0._sizeHandle(_1)]":function(t,n){return[t._sizeHandle(n)]},"[_0._startMove(_1)]":function(t,n){return[t._startMove(n)]},"!(_0===false||_1||_2||_3)&&!_4":function(t,n,e,o,i){return!(!1===t||n||e||o||i)},"[_0.raise()]":function(t){return[t.raise()]},'["pane"]':function(){return["pane"]}},p:{title:[{t:4,f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rwindow-title",g:1}],f:[{t:3,r:"~/control.title"}]}],n:50,r:"~/control.title"}],windowControls:[{t:7,e:"div",m:[{t:13,n:"class",f:"rwindow-controls",g:1}],f:[{t:4,f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rwindow-minimize",g:1},{n:["click"],t:70,f:{r:["host","window.id"],s:"[_0.getWindow(_1).hide()]"}}]}],n:50,r:"window.minimize"}," ",{t:4,f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rwindow-maximize",g:1},{n:["click"],t:70,f:{r:["host","window.id"],s:"[_0.getWindow(_1).maximize()]"}}]}],n:50,x:{r:["~/window.dialog","window.maximize","host.data.userMax"],s:"!_0&&_1&&_2"}}," ",{t:4,f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rwindow-close",g:1},{n:["click"],t:70,f:{r:["host","window.id"],s:"[_0.getWindow(_1).close()]"}}]}],n:50,r:"window.close"}]}],pane:[{t:4,f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rwindow-pane-top",g:1},{n:"tracked",t:71,f:{r:[],s:'["top"]'}}],f:[{t:8,r:"title"}," ",{t:7,e:"div",m:[{t:13,n:"class",f:"rwindow-controls",g:1}],f:[{t:4,f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rwindow-minimize",g:1},{n:["click"],t:70,f:{r:["@this"],s:"[_0.hide()]"}}]}],n:50,x:{r:["~/control.dialog","~/control.minimize"],s:"!_0&&_1"}}," ",{t:4,f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rwindow-maximize",g:1},{n:["click"],t:70,f:{r:["@this"],s:"[_0.maximize()]"}}]}],n:50,x:{r:["~/control.dialog","~/control.maximize"],s:"!_0&&_1"}}," ",{t:4,f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rwindow-close",g:1},{n:["click"],t:70,f:{r:["@this"],s:"[_0.close()]"}}]}],n:50,r:"~/control.close"}]}]}],n:51,x:{r:["~/control.max","~/root.userMax","~/root.max","~/root.hideTitleMax","~/control.dialog"],s:"(_0||_1||_2)&&_3&&!_4"}}," ",{t:7,e:"div",m:[{t:13,n:"class",f:"rwindow-content",g:1},{n:"tracked",t:71,f:{r:[],s:'["content"]'}},{n:"class-rwindow-pad",t:13,f:[{t:2,r:"~/control.pad"}]},{n:"class-rwindow-flex",t:13,f:[{t:2,r:"~/control.flex"}]},{t:4,f:[{n:"style-overflow",f:"visible",t:13}],n:50,r:"~/control.autosize"}],f:[{t:8,r:"contents"}]}," ",{t:4,f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rwindow-buttons",g:1},{n:"class-no-buttons",t:13,f:[{t:2,x:{r:["~/visibleButtons"],s:"!_0"}}]}],f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rwindow-left-buttons",g:1}],f:[{t:4,f:[{t:4,f:[{t:8,r:".partial"}],n:50,r:".partial"},{t:4,f:[{t:7,e:"button",m:[{n:"button",t:71},{n:["click"],t:70,f:{r:[".action","@"],s:"[_0.call(_1)]"}},{t:4,f:[{n:"class",f:[{t:2,r:".class"}],t:13}],n:50,r:".class"}],f:[{t:2,r:".label"}]}],n:51,l:1}],n:52,r:"~/leftButtons"}]}," ",{t:7,e:"div",m:[{t:13,n:"class",f:"rwindow-center-buttons",g:1}],f:[{t:4,f:[{t:4,f:[{t:8,r:".partial"}],n:50,r:".partial"},{t:4,f:[{t:7,e:"button",m:[{n:"button",t:71},{n:["click"],t:70,f:{r:[".action","@"],s:"[_0.call(_1)]"}},{t:4,f:[{n:"class",f:[{t:2,r:".class"}],t:13}],n:50,r:".class"}],f:[{t:2,r:".label"}]}],n:51,l:1}],n:52,r:"~/centerButtons"}]}," ",{t:7,e:"div",m:[{t:13,n:"class",f:"rwindow-right-buttons",g:1}],f:[{t:4,f:[{t:4,f:[{t:8,r:".partial"}],n:50,r:".partial"},{t:4,f:[{t:7,e:"button",m:[{n:"button",t:71},{n:["click"],t:70,f:{r:[".action","@"],s:"[_0.call(_1)]"}},{t:4,f:[{n:"class",f:[{t:2,r:".class"}],t:13}],n:50,r:".class"}],f:[{t:2,r:".label"}]}],n:51,l:1}],n:52,r:"~/rightButtons"}]}]}],n:50,r:"~/buttons"}," ",{t:7,e:"div",m:[{t:13,n:"class",f:"rwindow-pane-bottom",g:1}],f:[{t:8,r:"status"}]}],window:[{t:4,f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rwindow-wrapper",g:1},{n:"tracked",t:71,f:{r:[],s:'["wrapper"]'}},{t:4,f:[" ",{t:4,f:[{n:"style-top",f:"0",t:13},{n:"style-left",f:"0",t:13},{n:"style-width",f:"100%",t:13},{n:"style-height",f:"100%",t:13}],n:51,x:{r:["~/control.autosize","~/control.dialog"],s:"_0||_1"}},{n:"class-rwindow-max",t:13},{n:"window",t:72,v:"t2"}],n:50,x:{r:["~/root.max","~/root.userMax","~/control.max","~/control.dialog"],s:"(_0||_1||_2)&&!_3"}},{t:4,f:[{t:4,f:[{n:"class-rwindow-resizable",t:13},{n:["mousedown","touchstart"],t:70,f:{r:["@this","@event"],s:"[_0._startResize(_1)]"}},{n:["mousemove","mouseout"],t:70,f:{r:["@this","@event"],s:"[_0._sizeHandle(_1)]"}}],n:50,r:"~/control.resizable"}," ",{t:4,f:[{n:"class-rwindow-resizing",t:13}],n:50,r:"~/control.resizing"},{n:"modal",t:72,v:"t0"},{n:"style-top",f:[{t:2,r:"~/control.top"},"px"],t:13},{n:"style-left",f:[{t:2,r:"~/control.left"},"px"],t:13},{t:4,f:[{n:"style-width",f:[{t:2,r:"~/control.width"},"em"],t:13},{n:"style-height",f:[{t:2,r:"~/control.height"},"em"],t:13}],n:51,r:"~/control.autosize"}],n:51,l:1},{n:"style-z-index",f:[{t:2,r:"~/control.index"}],t:13},{n:"class-rwindow-topmost",t:13,f:[{t:2,r:"~/control.topmost"}]}],f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rwindow",g:1},{t:4,f:[{n:["mousedown","touchstart"],t:70,f:{r:["@this","@event"],s:"[_0._startMove(_1)]"}}],n:50,x:{r:["~/control.movable","~/root.max","~/root.userMax","~/control.max","~/control.dialog"],s:"!(_0===false||_1||_2||_3)&&!_4"}},{t:4,f:[{n:["mousedown","touchstart"],t:70,f:{r:["@this"],s:"[_0.raise()]"}}],n:50,x:{r:["~/control.topmost"],s:"!_0"},l:1}],f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rwindow-modal",g:1},{n:"class-rwindow-blocked",t:13,f:[{t:2,r:"~/control.blockers.length"}]}]}," ",{t:7,e:"div",m:[{t:13,n:"class",f:"rwindow-pane",g:1},{n:"tracked",t:71,f:{r:[],s:'["pane"]'}},{t:4,f:[{n:"class-rwindow-autosizing",t:13}],n:50,r:"~/control.autosize"}],f:[{t:8,r:"pane"}]}]}]}],n:50,r:"~/control.show"}]}},use:[function(t){void 0===t&&(t={});var n=function(t){return[function(t){var n=Object.assign({},t("raui.primary"),t("raui.toast.primary"));return"\n .rtoast {\n position: absolute;\n display: flex;\n justify-content: center;\n left: 1em;\n right: 1em;\n top: 1em;\n bottom: auto;\n z-index: 5;\n }\n .rtoast-message {\n padding: 0.5em 0.5em 0.5em 1em;\n flex-grow: 2;\n }\n .rtoast-buttons {\n display: inline-block;\n padding: 0.5em 1em 0.5em 0.5em;\n flex-shrink: 1;\n }\n .rtoast-button {\n background-color: transparent;\n border: none;\n color: inherit;\n padding: 0.5em 1em;\n margin: 0 0 0 1em;\n line-height: 1em;\n box-shadow: none;\n }\n .rtoast-bottom {\n bottom: 1em;\n top: auto;\n }\n .rtoast-left {\n justify-content: flex-start;\n }\n .rtoast-right {\n justify-content: flex-end;\n }\n .rtoast-body {\n display: flex;\n flex-shrink: 2;\n align-items: center;\n border-radius: 2px;\n color: "+(n.bg||"#fff")+";\n background-color: "+(n.fg||"#222")+";\n box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);\n opacity: 0.95;\n }\n \n .rtoast-success {\n color: "+(t("raui.toast.success.fg")||"#f9f9f9")+";\n background-color: "+(t("raui.toast.success.bg")||"#4caf50")+";\n }\n .rtoast-info {\n color: "+(t("raui.toast.info.fg")||"#f9f9f9")+";\n background-color: "+(t("raui.toast.info.bg")||"#07e")+";\n }\n .rtoast-warn {\n color: "+(t("raui.toast.warn.fg")||"#222")+";\n background-color: "+(t("raui.warn.success.bg")||"#ffc107")+";\n }\n .rtoast-error {\n color: "+(t("raui.toast.error.fg")||"#f9f9f9")+";\n background-color: "+(t("raui.toast.error.bg")||"#ff5252")+";\n }\n "}.call(this,t)].join(" ")},e={v:4,t:[{t:4,f:[{t:4,f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rtoast",g:1},{n:"class-rtoast-bottom",t:13,f:[{t:2,r:".bottom"}]},{n:"class-rtoast-left",t:13,f:[{t:2,r:".left"}]},{n:"class-rtoast-right",t:13,f:[{t:2,r:".right"}]}],f:[{t:7,e:"div",m:[{n:"toast",t:72,v:"t0"},{n:"class",f:["rtoast-body",{t:4,f:[" rtoast-",{t:2,r:".type"}],n:50,r:".type"},{t:4,f:[{t:2,r:".class"}],n:50,r:".class"}],t:13},{t:4,f:[{n:["click"],t:70,f:{r:["@this"],s:"[_0._closeToast()]"}}],n:50,x:{r:[".dismissable"],s:"_0!==false"}}],f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rtoast-message",g:1}],f:[{t:2,r:".message"}]}," ",{t:4,f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rtoast-buttons",g:1}],f:[{t:4,f:[{t:7,e:"button",m:[{n:"class",f:["rtoast-button",{t:4,f:[" ",{t:2,r:".class"}],n:50,r:".class"}],t:13},{t:4,f:[{n:["click"],t:70,f:{r:["."],s:"[_0.action()]"}}],n:50,x:{r:[".action"],s:'typeof _0==="function"'}}],f:[{t:2,r:".label"}]}],n:52,r:".buttons"},{t:4,f:[{t:7,e:"button",m:[{t:13,n:"class",f:"rtoast-button",g:1}],f:["Close"]}],n:50,x:{r:[".dismissable"],s:"_0!==false"},l:1}]}],n:50,x:{r:[".dismissable",".buttons.length"],s:"_0!==false||_1"}}]}]}],n:54,r:"~/_toast"}],n:50,r:"~/_toast"}],e:{"[_0._closeToast()]":function(t){return[t._closeToast()]},"_0!==false":function(t){return!1!==t},"[_0.action()]":function(t){return[t.action()]},'typeof _0==="function"':function(t){return"function"==typeof t},"_0!==false||_1":function(t,n){return!1!==t||n}}};return function(o){var i=o.Ractive,s=o.instance,a=o.proto;s.partials[t.name||"toast"]=e;var l,c,f=Object.assign({},r,t),d=[];function u(){(c=d.shift()).instance.set("_toast",c).then(function(){c.timeout&&(l=setTimeout(function(){c.instance._closeToast()},c.timeout))})}if(a.toast=function(t,n){var e=Object.assign({message:t,instance:this},f,this.toastDefaults,n);d.push(e),c||u()},a._closeToast=function(){l&&(clearTimeout(l),l=null),c.instance.set("_toast",null).then(function(){c=null,d.length&&u()})},a.on=a.on||{},s.transitions.toast=function(t,n){var e=t.processParams({duration:200},n),o=t.getStyle("opacity");return t.isIntro?(t.setStyle({opacity:0,transform:"translateY("+(c.bottom?"":"-")+"1em)"}),t.animateStyle({opacity:o,transform:"none"},e)):(t.setStyle({opacity:o,transform:"none"}),t.animateStyle({opacity:0,transform:"translateY("+(c.bottom?"":"-")+"1em)"},e))},a.on["close-toast"]=function(){this._closeToast()},s===i||i.isInstance(s))i.hasCSS("toast-css")||i.addCSS("toast",n);else{var h=s.css;s.css=function(t){var e="";return"string"==typeof h?e+=h:"function"==typeof h&&(e+=h(t)),n(t)+e}}return a}}(),(void 0===c&&(c={}),function(t){t.instance.transitions[c.name||"expand"]=i})],cssId:"window-host",noIntro:!0,observe:{"@style":function(){var t;(t=this)._media?t._media.fn():t.get("@style.window.maxFrom")&&(t._media={},t._media.fn=function(){var n=t.sizeInPx(t.get("@style.window.maxFrom")),e=t.transitionsEnabled;t.transitionsEnabled=!1,t.set("max",t.host.clientWidth<=n),t.transitionsEnabled=e},t._media.handle=t.root.on("*.resize",t._media.fn),setTimeout(t._media.fn,0))},topLevel:function(t){t?this.link("windows."+a(t),"current"):this.unlink("current")},currentMax:{handler:function(t){(this.children.byName.window||[]).forEach(function(t){return t.instance.fire("resize")})},defer:!0}},computed:{currentMax:function(){var t=this.get("topLevel"),n=this.get("windows."+a(t)+".max");return this.get("userMax")||this.get("max")||n}},on:{config:function(){var t,n=this,e=this.partials.content;if(e&&Array.isArray(e))for(var o=(e=this.partials.content=e.slice()).length;o--;){var i=e[o];"max-top"===i.e&&(e.splice(o,1),n.set({_maxP:{t:i.f},hideTitleMax:!0}),i.m&&n.set({_maxAttrsP:{t:i.m}}))}"undefined"!=typeof window&&(this._resizeListener=function(){t||(t=setTimeout(function(){t=null,n.fire("resize")},300))},window.addEventListener("resize",this._resizeListener))},teardown:function(){this._resizeListener&&window.removeEventListener("resize",this._resizeListener)}}}),n.transitions.modal=function(t,n){var e,o=t.processParams(n,{duration:400,easing:"easeOut",x:0,y:-50,event:!0}),i=t.node.offsetLeft,r=t.node.offsetTop,s=t.node.parentNode.style?t.node.parentNode.style.overflow:"hidden";if(t.node._modalSrc){var a=t.node._modalSrc||{x:i+o.x,y:r+o.y},l={x:a.x-Math.round(t.node.clientWidth/2)-i,y:a.y-Math.round(t.node.clientHeight/2)-r};t.node.parentNode.style&&(t.node.parentNode.style.overflow="hidden"),t.isIntro?(t.node._modalSrc=a,e={transform:"translate(0, 0) scale(1, 1)",opacity:1},t.setStyle({transform:"translate("+l.x+"px, "+l.y+"px) scale(0.5, 0.5)",opacity:0})):e={transform:"translate("+l.x+"px, "+l.y+"px) scale(0.5, 0.5)",opacity:0}}else t.isIntro?(e={transform:"translate(0, 0) scale(1, 1)",opacity:1},t.setStyle({transform:"translate("+o.x+"px, "+o.y+"px) scale(0.5, 0.5)",opacity:0})):e={transform:"translate("+o.x+"px, "+o.y+"px) scale(0.5, 0.5)",opacity:0};t.animateStyle(e,o).then(function(){t.node.parentNode.style&&(t.node.parentNode.style.overflow=s),t.complete()})};var h=["mousemove","mouseup","touchmove","touchend"],w=function(t){function n(n){t.call(this,n)}t&&(n.__proto__=t),n.prototype=Object.create(t&&t.prototype),n.prototype.constructor=n;var e={resizable:{configurable:!0},title:{configurable:!0},visible:{configurable:!0},pad:{configurable:!0},buttons:{configurable:!0}};return e.resizable.get=function(){return this.get("control.resizable")},e.resizable.set=function(t){return this.set("control.resizable",t)},e.title.get=function(){return this.get("control.title")},e.title.set=function(t){return this.set("control.title",t)},e.visible.get=function(){return this.get("control.show")},e.visible.set=function(t){t?this.show():this.set("control.show",t,{keep:!0}),this.host.raise(this,t)},e.pad.get=function(){return this.get("pad")},e.pad.set=function(t){this.set("pad",t)},e.buttons.get=function(){return this.get("buttons")},e.buttons.set=function(t){return this.set("buttons",t)},n.prototype.close=function(t){if(!0!==t){if(!this.parent)return!1;if(this.get("control.blockers.length"))return!1;if("function"==typeof this.beforeClose&&!1===this.beforeClose())return!1;if(!1===this.fire("beforeClose"))return!1}return this.fire("close"),!0},n.prototype.maximize=function(){this.toggle("root.userMax")},n.prototype.hide=function(){this.visible=!1},n.prototype.raise=function(t){this.host.raise(this,t)},n.prototype.show=function(){this.set("control.show",!0),void 0===this.get("control.top")&&this.host.place(this)},n.prototype.size=function(t,n){if(this.visible){var e=this.wrapper;if(e){if("auto"===t){this.set("control.autosize",!0);var o=this.host.sizeInEm(e.clientWidth+16),i=this.host.sizeInEm(e.clientHeight);this.set({"control.width":o,"control.height":i,"control.naturalWidth":o,"control.naturalHeight":i,"control.autosize":!1})}else if("number"==typeof t&&"number"==typeof n)this.set({"control.width":this.host.sizeInEm(t),"control.height":this.host.sizeInEm(n),"control.naturalWidth":this.host.sizeInEm(t),"control.naturalHeight":this.host.sizeInEm(n),"control.autosize":!1});else if("string"==typeof t&&"string"==typeof n){var r=e.style.width,s=e.style.height;e.style.width=t,e.style.height=n;var a=e.clientWidth,l=e.clientHeight;e.style.width=r,e.style.height=s,this.set({"control.width":this.host.sizeInEm(a),"control.height":this.host.sizeInEm(l),"control.naturalWidth":this.host.sizeInEm(a),"control.naturalHeight":this.host.sizeInEm(l),"control.autosize":!1})}this.fire("resize")}}else"number"==typeof t&&"number"==typeof n&&this.set({"control.width":this.host.sizeInEm(t),"control.height":this.host.sizeInEm(n),"control.naturalWidth":this.host.sizeInEm(t),"control.naturalHeight":this.host.sizeInEm(n),"control.autosize":!1})},n.prototype.move=function(t,n){"string"==typeof t&&(t=this.host.sizeInEm(t)),"string"==typeof n&&(t=this.host.sizeInEm(n));var e={};"number"==typeof t&&(e["control.top"]=t),"number"==typeof n&&(e["control.left"]=n),this.set(e)},n.prototype._startMove=function(t){var n=this;if("mousedown"!==t.type||0===t.button){if(this.get("control.topmost")||this.raise(),~t.type.indexOf("mouse")){if(!t.ctrlKey&&t.target!==this.content&&t.target!==this.top&&!this.top.contains(t.target))return}else if(t.targetTouches&&1===t.targetTouches.length&&t.target!==this.content&&t.target!==this.top&&!this.top.contains(t.target))return;var e=this.pane,o=e.style.cursor;e.style.cursor="move",e.style.userSelect="none";var i=t.x||t.clientX||t.targetTouches&&t.targetTouches[0].clientX||0,r=t.y||t.clientY||t.targetTouches&&t.targetTouches[0].clientY||0,s=this.get("control.left")||0,a=this.get("control.top")||0,l=e.clientWidth,c=e.clientHeight,f=function(t){var d=t.x||t.clientX||t.targetTouches&&t.targetTouches[0]&&t.targetTouches[0].clientX||t.changedTouches&&t.changedTouches[0].clientX||0,u=t.y||t.clientY||t.targetTouches&&t.targetTouches[0]&&t.targetTouches[0].clientY||t.changedTouches&&t.changedTouches[0].clientY||0,w=s+(d-i),p=a+(u-r);w<(l<30?0:30-l)&&(w=l<30?0:30-l),p<(c<30?0:30-c)&&(p=c<30?0:30-c),w<0&&(w=0),p<0&&(p=0),n.set({"control.top":p,"control.left":w}),"touchend"===t.type||"mouseup"===t.type?(h.forEach(function(t){return document.removeEventListener(t,f,{passive:!1})}),e.style.cursor=o,e.style.userSelect=""):t.preventDefault()};return h.forEach(function(t){return document.addEventListener(t,f,{passive:!1})}),0!==t.type.indexOf("mouse")&&void 0}},n.prototype._startResize=function(t){var n=this;if(t.target===this.wrapper&&("mousedown"!==t.type||0===t.button)){this.get("control.autosize")&&this.size("auto"),this.get("control.topmost")||this.raise(),this.set("control.resizing",!0);var e,o=this.wrapper,i=t.offsetX||t.targetTouches&&t.targetTouches[0].pageX-o.getBoundingClientRect().left,r=t.offsetY||t.targetTouches&&t.targetTouches[0].pageY-o.getBoundingClientRect().top,s=this.get("@style.window.handleSize")||7,a=o.clientWidth-2*s,l=o.clientHeight-2*s,c=2*s,f=i<=c||i>=a,d=r<=c||r>=l,u=t.x||t.clientX||t.targetTouches&&t.targetTouches[0].clientX||0,w=t.y||t.clientY||t.targetTouches&&t.targetTouches[0].clientY||0,p=this.get("control.left")||0,g=this.get("control.top")||0,m=this.host.sizeInPx(this.get("control.width")+"em"),b=this.host.sizeInPx(this.get("control.height")+"em"),x=this.host.sizeInPx(this.get("control.naturalHeight")+"em"),y=this.host.sizeInPx(this.get("control.naturalWidth")+"em"),v=function(t){t.preventDefault();var o=t.x||t.clientX||t.targetTouches&&t.targetTouches[0]&&t.targetTouches[0].clientX||t.changedTouches&&t.changedTouches[0].clientX||0,a=t.y||t.clientY||t.targetTouches&&t.targetTouches[0]&&t.targetTouches[0].clientY||t.changedTouches&&t.changedTouches[0].clientY||0,l=f?o-u:0,c=d?a-w:0,_={};r<=s?(_["control.top"]=g+c,_["control.height"]=b-c):_["control.height"]=b+c,i<=s?(_["control.left"]=p+l,_["control.width"]=m-l):_["control.width"]=m+l,_["control.width"]<y&&(delete _["control.width"],delete _["control.left"]),_["control.height"]<x&&(delete _["control.height"],delete _["control.top"]),_["control.left"]<0&&(_["control.left"]=0),_["control.top"]<0&&(_["control.top"]=0),_["control.width"]&&(_["control.width"]=n.host.sizeInEm(_["control.width"])),_["control.height"]&&(_["control.height"]=n.host.sizeInEm(_["control.height"])),n.set(_),"touchend"===t.type||"mouseup"===t.type?(h.forEach(function(t){return document.removeEventListener(t,v,{passive:!1})}),n.set("control.resizing",!1),m===n.get("control.width")&&b===n.get("control.height")||(e&&clearTimeout(e),e=null,n.fire("resize"))):e||(e=setTimeout(function(){n.fire("resize"),e=null},200))};return h.forEach(function(t){return document.addEventListener(t,v,{passive:!1})}),!1}},n.prototype._sizeHandle=function(t){if(t.target===this.wrapper){var n=this.wrapper;if("mouseout"===t.type)return n.style.cursor="auto";var e=t.offsetX,o=t.offsetY,i=this.get("@style.window.handleSize")||7,r=n.clientWidth-i,s=n.clientHeight-i,a=n.style;a.cursor=e<=i+i&&o<=i+i||e>=r-i&&o>=s-i?"nwse-resize":e>=r-i&&o<=i+i||e<=i+i&&o>=s-i?"nesw-resize":(e<=i||e>=r)&&(o<s||o>i)?"ew-resize":(o<=i||o>=s)&&(e<r||e>i)?"ns-resize":"auto"}},Object.defineProperties(n.prototype,e),n}(l),p=["left","right","center","condition"];function g(t){return void 0===t&&(t={}),function(n){n.instance.components[t.name||"host"]=d}}l.extendWith(w,{template:{v:4,t:[{t:4,f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rwindow-wrapper",g:1},{n:"tracked",t:71,f:{r:[],s:'["wrapper"]'}},{t:4,f:[" ",{t:4,f:[{n:"style-top",f:"0",t:13},{n:"style-left",f:"0",t:13},{n:"style-width",f:"100%",t:13},{n:"style-height",f:"100%",t:13}],n:51,x:{r:["~/control.autosize","~/control.dialog"],s:"_0||_1"}},{n:"class-rwindow-max",t:13},{n:"window",t:72,v:"t2"}],n:50,x:{r:["~/root.max","~/root.userMax","~/control.max","~/control.dialog"],s:"(_0||_1||_2)&&!_3"}},{t:4,f:[{t:4,f:[{n:"class-rwindow-resizable",t:13},{n:["mousedown","touchstart"],t:70,f:{r:["@this","@event"],s:"[_0._startResize(_1)]"}},{n:["mousemove","mouseout"],t:70,f:{r:["@this","@event"],s:"[_0._sizeHandle(_1)]"}}],n:50,r:"~/control.resizable"}," ",{t:4,f:[{n:"class-rwindow-resizing",t:13}],n:50,r:"~/control.resizing"},{n:"modal",t:72,v:"t0"},{n:"style-top",f:[{t:2,r:"~/control.top"},"px"],t:13},{n:"style-left",f:[{t:2,r:"~/control.left"},"px"],t:13},{t:4,f:[{n:"style-width",f:[{t:2,r:"~/control.width"},"em"],t:13},{n:"style-height",f:[{t:2,r:"~/control.height"},"em"],t:13}],n:51,r:"~/control.autosize"}],n:51,l:1},{n:"style-z-index",f:[{t:2,r:"~/control.index"}],t:13},{n:"class-rwindow-topmost",t:13,f:[{t:2,r:"~/control.topmost"}]}],f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rwindow",g:1},{t:4,f:[{n:["mousedown","touchstart"],t:70,f:{r:["@this","@event"],s:"[_0._startMove(_1)]"}}],n:50,x:{r:["~/control.movable","~/root.max","~/root.userMax","~/control.max","~/control.dialog"],s:"!(_0===false||_1||_2||_3)&&!_4"}},{t:4,f:[{n:["mousedown","touchstart"],t:70,f:{r:["@this"],s:"[_0.raise()]"}}],n:50,x:{r:["~/control.topmost"],s:"!_0"},l:1}],f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rwindow-modal",g:1},{n:"class-rwindow-blocked",t:13,f:[{t:2,r:"~/control.blockers.length"}]}]}," ",{t:7,e:"div",m:[{t:13,n:"class",f:"rwindow-pane",g:1},{n:"tracked",t:71,f:{r:[],s:'["pane"]'}},{t:4,f:[{n:"class-rwindow-autosizing",t:13}],n:50,r:"~/control.autosize"}],f:[{t:8,r:"pane"}]}]}]}],n:50,r:"~/control.show"}]},cssId:"window",partials:{pane:[{t:4,f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rwindow-pane-top",g:1},{n:"tracked",t:71,f:{r:[],s:'["top"]'}}],f:[{t:8,r:"title"}," ",{t:7,e:"div",m:[{t:13,n:"class",f:"rwindow-controls",g:1}],f:[{t:4,f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rwindow-minimize",g:1},{n:["click"],t:70,f:{r:["@this"],s:"[_0.hide()]"}}]}],n:50,x:{r:["~/control.dialog","~/control.minimize"],s:"!_0&&_1"}}," ",{t:4,f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rwindow-maximize",g:1},{n:["click"],t:70,f:{r:["@this"],s:"[_0.maximize()]"}}]}],n:50,x:{r:["~/control.dialog","~/control.maximize"],s:"!_0&&_1"}}," ",{t:4,f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rwindow-close",g:1},{n:["click"],t:70,f:{r:["@this"],s:"[_0.close()]"}}]}],n:50,r:"~/control.close"}]}]}],n:51,x:{r:["~/control.max","~/root.userMax","~/root.max","~/root.hideTitleMax","~/control.dialog"],s:"(_0||_1||_2)&&_3&&!_4"}}," ",{t:7,e:"div",m:[{t:13,n:"class",f:"rwindow-content",g:1},{n:"tracked",t:71,f:{r:[],s:'["content"]'}},{n:"class-rwindow-pad",t:13,f:[{t:2,r:"~/control.pad"}]},{n:"class-rwindow-flex",t:13,f:[{t:2,r:"~/control.flex"}]},{t:4,f:[{n:"style-overflow",f:"visible",t:13}],n:50,r:"~/control.autosize"}],f:[{t:8,r:"contents"}]}," ",{t:4,f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rwindow-buttons",g:1},{n:"class-no-buttons",t:13,f:[{t:2,x:{r:["~/visibleButtons"],s:"!_0"}}]}],f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rwindow-left-buttons",g:1}],f:[{t:4,f:[{t:4,f:[{t:8,r:".partial"}],n:50,r:".partial"},{t:4,f:[{t:7,e:"button",m:[{n:"button",t:71},{n:["click"],t:70,f:{r:[".action","@"],s:"[_0.call(_1)]"}},{t:4,f:[{n:"class",f:[{t:2,r:".class"}],t:13}],n:50,r:".class"}],f:[{t:2,r:".label"}]}],n:51,l:1}],n:52,r:"~/leftButtons"}]}," ",{t:7,e:"div",m:[{t:13,n:"class",f:"rwindow-center-buttons",g:1}],f:[{t:4,f:[{t:4,f:[{t:8,r:".partial"}],n:50,r:".partial"},{t:4,f:[{t:7,e:"button",m:[{n:"button",t:71},{n:["click"],t:70,f:{r:[".action","@"],s:"[_0.call(_1)]"}},{t:4,f:[{n:"class",f:[{t:2,r:".class"}],t:13}],n:50,r:".class"}],f:[{t:2,r:".label"}]}],n:51,l:1}],n:52,r:"~/centerButtons"}]}," ",{t:7,e:"div",m:[{t:13,n:"class",f:"rwindow-right-buttons",g:1}],f:[{t:4,f:[{t:4,f:[{t:8,r:".partial"}],n:50,r:".partial"},{t:4,f:[{t:7,e:"button",m:[{n:"button",t:71},{n:["click"],t:70,f:{r:[".action","@"],s:"[_0.call(_1)]"}},{t:4,f:[{n:"class",f:[{t:2,r:".class"}],t:13}],n:50,r:".class"}],f:[{t:2,r:".label"}]}],n:51,l:1}],n:52,r:"~/rightButtons"}]}]}],n:50,r:"~/buttons"}," ",{t:7,e:"div",m:[{t:13,n:"class",f:"rwindow-pane-bottom",g:1}],f:[{t:8,r:"status"}]}],title:[{t:4,f:[{t:7,e:"div",m:[{t:13,n:"class",f:"rwindow-title",g:1}],f:[{t:3,r:"~/control.title"}]}],n:50,r:"~/control.title"}],contents:"",status:""},data:function(){return{buttons:[],visibleButtons:0}},computed:{leftButtons:function(){return(this.get("buttons")||[]).filter(function(t){return"left"===t.where})},centerButtons:function(){return(this.get("buttons")||[]).filter(function(t){return"center"===t.where})},rightButtons:function(){return(this.get("buttons")||[]).filter(function(t){return!t.where||"right"===t.where})}},decorators:{button:function(t){var n=this.getContext(t);return n.add("visibleButtons"),{update:function(){},teardown:function(){n.subtract("visibleButtons")}}}},on:{config:function(){var t=w.prototype.template,n=this.template;"string"!=typeof t&&!Array.isArray(t)&&t.t&&(t=t.t),"string"!=typeof n&&!Array.isArray(n)&&n.t&&(n=n.t),t!==n&&(this.partials.hasOwnProperty("contents")||(this.partials.contents=n),this.template=t)},construct:function(){var t=this.constructor;if(!t._constructed){t._constructed=1;var n=t.prototype.template.t.slice(),e=n.find(function(t){return"buttons"===t.e});function o(t){var n=t.m||[],e={partial:{t:[{t:t.t,e:t.e,f:t.f,m:n.filter(function(t){return!~p.indexOf(t.n)})}]},where:n.find(function(t){return"left"===t.n})?"left":n.find(function(t){return"center"===t.n})?"center":"right"};return e.partial.t[0].m.push({t:71,n:"button"}),e}t.prototype.template.t=n.filter(function(t){return"buttons"!==t.e}),e&&(t._btns=e.f.filter(function(t){return"button"===t.e||4===t.t&&(50===t.n||51===t.n)&&t.f.find(function(t){return"button"===t.e})}).map(function(t){if(4===t.t){var n=o(t.f.find(function(t){return"button"===t.e})),e={t:t.t,n:t.n,f:[n.partial.t[0]]};return t.r&&(e.r=t.r),t.rx&&(e.rx=t.rx),t.x&&(e.x=t.x),n.partial={t:[e]},n}return o(t)}))}},init:function(){var t=this.constructor;t._btns&&!this.get("buttons.length")&&this.set("buttons",t._btns)}}}),o("RMWindowHost","components",d),o("RMWindow","components",w),d.prototype.Window=w,t.Base=l,t.Host=d,t.Window=w,t.plugin=g,t.default=g,Object.defineProperty(t,"__esModule",{value:!0})});

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc