diff --git a/www/assets/vendor/brick/OpenSans-SemiBold.ttf b/www/assets/vendor/brick/OpenSans-SemiBold.ttf new file mode 100644 index 0000000..1a7679e Binary files /dev/null and b/www/assets/vendor/brick/OpenSans-SemiBold.ttf differ diff --git a/www/assets/vendor/brick/brick-1.0beta6.css b/www/assets/vendor/brick/brick-1.0beta6.css new file mode 100644 index 0000000..5184098 --- /dev/null +++ b/www/assets/vendor/brick/brick-1.0beta6.css @@ -0,0 +1 @@ +@font-face{font-family:_OpenSansBrick;font-weight:400;font-style:normal;font-variant:normal;src:local("Open Sans") local("OpenSans") url(OpenSans-SemiBold.ttf) format("truetype")}html,body{min-height:100%;margin:0;padding:0}x-appbar{background-color:#a0a0a0;background-repeat:no-repeat;background-position:0 0;background-image:-o-linear-gradient(-90deg,#a0a0a0 14%,#858585 100%);background-image:-moz-linear-gradient(-90deg,#a0a0a0 14%,#858585 100%);background-image:-webkit-linear-gradient(-90deg,#a0a0a0 14%,#858585 100%);background-image:-ms-linear-gradient(-90deg,#a0a0a0 14%,#858585 100%);background-image:linear-gradient(-180deg,#a0a0a0 14%,#858585 100%);font-family:_OpenSansBrick,"Segoe UI",Frutiger,"Frutiger Linotype","Dejavu Sans","Helvetica Neue",Arial,sans-serif;color:#d4d4d4;font-size:20px;padding:0;width:100%;display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-webkit-flex;display:flex;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-ms-box-sizing:border-box;-o-box-sizing:border-box;box-sizing:border-box}x-appbar>*{position:relative;display:inline-block;border:0;padding:2px 5px 0;vertical-align:middle;text-align:center;background:0}x-appbar>:first-child:before{display:none}x-appbar>header{min-width:auto;min-height:auto;-webkit-box-flex:1;-moz-box-flex:1;-webkit-flex:1;-ms-flex:1;box-flex:1;flex:1;overflow:hidden;text-overflow:ellipsis}x-appbar>header:after{padding-left:6px;font-size:60%;content:attr(subheading)}x-appbar>:before{background-color:rgba(255,255,255,.25);width:2px;top:0;bottom:0;content:" ";position:absolute;left:0}x-calendar{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;-moz-tap-highlight-color:transparent;tap-highlight-color:transparent;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-ms-box-sizing:border-box;-o-box-sizing:border-box;box-sizing:border-box;position:relative;display:inline-block;margin:0;padding:0;max-width:100%;border:2px solid #888;font-size:1em;font-family:_OpenSansBrick,"Segoe UI",Frutiger,"Frutiger Linotype","Dejavu Sans","Helvetica Neue",Arial,sans-serif;text-align:center;overflow:hidden;background-color:#fff;color:#444}x-calendar *{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-ms-box-sizing:border-box;-o-box-sizing:border-box;box-sizing:border-box}x-calendar .calendar{position:relative;display:inline-block;overflow:hidden;width:100%;height:100%}x-calendar .month{display:inline-block;margin:0;padding:0;vertical-align:top;white-space:nowrap;width:15.4em;max-width:100%}x-calendar .week,x-calendar .weekday-labels{margin:1px 0;overflow:visible;width:100%;white-space:nowrap}x-calendar .day,x-calendar .prev,x-calendar .next,x-calendar .weekday-label{display:inline-block;width:13.82189%}x-calendar .month-label,x-calendar .weekday-labels,x-calendar .week,x-calendar .prev,x-calendar .next{height:2em;line-height:2em}x-calendar .weekday-label{opacity:.8;font-size:.8em}x-calendar .weekday-label,x-calendar .day{height:100%;line-height:inherit;margin:0 .20292%}x-calendar .month-label{width:100%;border-bottom:1px dashed grey}x-calendar .day{border-radius:4px;position:relative;white-space:nowrap;border:1px solid transparent}x-calendar .day[active]{border-color:orange}x-calendar .day.chosen{background:#444;color:#fff}x-calendar .day.today{border-color:tomato;font-weight:700}x-calendar .badmonth{opacity:.5}x-calendar:not([controls]) .controls{display:none!important}x-calendar[controls] .controls{display:block}x-calendar .prev,x-calendar .next{position:absolute;top:0;max-width:3em}x-calendar .prev{left:0}x-calendar .next{right:0}x-calendar:not([active]) .day:hover,x-calendar:not([active]) .prev:hover,x-calendar:not([active]) .next:hover{cursor:pointer}x-calendar:not([active]) .prev:hover,x-calendar:not([active]) .next:hover{background-color:#f9f9f9;opacity:.7}x-calendar:not([active]) .day:not(.chosen):hover{background:#ccc}x-datepicker,x-foo{position:relative;display:inline-block;overflow:visible!important;border:1px solid grey;font-family:_OpenSansBrick,"Segoe UI",Frutiger,"Frutiger Linotype","Dejavu Sans","Helvetica Neue",Arial,sans-serif}x-datepicker>.x-datepicker-input,x-foo>.x-datepicker-input{width:100%;height:100%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-ms-box-sizing:border-box;-o-box-sizing:border-box;box-sizing:border-box;margin:0;border:0 solid transparent;vertical-align:top;font:inherit}x-datepicker>.x-datepicker-polyfill-input,x-foo>.x-datepicker-polyfill-input{width:100%;height:100%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-ms-box-sizing:border-box;-o-box-sizing:border-box;box-sizing:border-box;position:relative;margin:0;padding:.25em;border:0 solid transparent;vertical-align:top;font:inherit}x-datepicker>.x-datepicker-polyfill-ui,x-foo>.x-datepicker-polyfill-ui{position:absolute;left:0;top:100%;margin-top:-1px;box-shadow:1px 1px 4px grey;min-width:100%;max-width:none;z-index:2147483647}x-datepicker[polyfill]>.x-datepicker-input,x-foo[polyfill]>.x-datepicker-input{display:none!important}x-datepicker[polyfill]>.x-datepicker-polyfill-input,x-foo[polyfill]>.x-datepicker-polyfill-input{width:100%;height:100%}x-datepicker[polyfill]>.x-datepicker-polyfill-ui,x-foo[polyfill]>.x-datepicker-polyfill-ui{transition-property:opacity,visibility;-webkit-transition-property:opacity,visibility;-moz-transition-property:opacity,visibility;-ms-transition-property:opacity,visibility;-o-transition-property:opacity,visibility;transition-duration:.2s;-webkit-transition-duration:.2s;-moz-transition-duration:.2s;-ms-transition-duration:.2s;-o-transition-duration:.2s;-webkit-transition-timing-function:ease-in;-moz-transition-timing-function:ease-in;-ms-transition-timing-function:ease-in;-o-transition-timing-function:ease-in;transition-timing-function:ease-in;-webkit-transition-delay:0s;-moz-transition-delay:0s;-ms-transition-delay:0s;-o-transition-delay:0s;transition-delay:0s;opacity:0;visibility:hidden}x-datepicker[polyfill]:focus,x-datepicker[polyfill][focused],x-foo[polyfill]:focus,x-foo[polyfill][focused]{box-shadow:1px 1px 4px orange;z-index:2147483647}x-datepicker[polyfill]:focus>.x-datepicker-polyfill-ui,x-datepicker[polyfill][focused]>.x-datepicker-polyfill-ui,x-foo[polyfill]:focus>.x-datepicker-polyfill-ui,x-foo[polyfill][focused]>.x-datepicker-polyfill-ui{opacity:1;visibility:visible}x-datepicker[polyfill][invalid]>.x-datepicker-polyfill-input,x-foo[polyfill][invalid]>.x-datepicker-polyfill-input{background-color:tomato}x-datepicker:not([polyfill])>.x-datepicker-input,x-foo:not([polyfill])>.x-datepicker-input{width:100%;height:100%}x-datepicker:not([polyfill])>.x-datepicker-polyfill-input,x-foo:not([polyfill])>.x-datepicker-polyfill-input{display:none!important}x-datepicker:not([polyfill])>.x-datepicker-polyfill-ui,x-foo:not([polyfill])>.x-datepicker-polyfill-ui{display:none!important}x-deck,x-deck>x-card{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-ms-box-sizing:border-box;-o-box-sizing:border-box;box-sizing:border-box}x-deck>x-card[selected][_before-animation][card-anim-type=scrollLeft]:not([reverse]),x-deck>x-card[selected][_before-animation][card-anim-type=scrollRight][reverse],x-deck>x-card[leaving][card-anim-type=scrollLeft][reverse]:not([_before-animation]),x-deck>x-card[leaving][card-anim-type=scrollRight]:not([_before-animation]):not([reverse]),x-deck>x-card[selected][_before-animation][card-anim-type=coverLeft]:not([reverse]),x-deck>x-card[selected][_before-animation][card-anim-type=uncoverRight][reverse],x-deck>x-card[leaving][card-anim-type=coverLeft][reverse]:not([_before-animation]),x-deck>x-card[leaving][card-anim-type=uncoverRight]:not([_before-animation]):not([reverse]){transform:translateX(100%);-ms-transform:translateX(100%);-moz-transform:translateX(100%);-webkit-transform:translateX(100%);-o-transform:translateX(100%)}x-deck>x-card[leaving][card-anim-type=scrollLeft]:not([_before-animation]):not([reverse]),x-deck>x-card[leaving][card-anim-type=scrollRight][reverse]:not([_before-animation]),x-deck>x-card[selected][_before-animation][card-anim-type=scrollLeft][reverse],x-deck>x-card[selected][_before-animation][card-anim-type=scrollRight]:not([reverse]),x-deck>x-card[selected][_before-animation][card-anim-type=coverRight]:not([reverse]),x-deck>x-card[selected][_before-animation][card-anim-type=uncoverLeft][reverse],x-deck>x-card[leaving][card-anim-type=coverRight][reverse]:not([_before-animation]),x-deck>x-card[leaving][card-anim-type=uncoverLeft]:not([_before-animation]):not([reverse]){transform:translateX(-100%);-ms-transform:translateX(-100%);-moz-transform:translateX(-100%);-webkit-transform:translateX(-100%);-o-transform:translateX(-100%)}x-deck>x-card[leaving][card-anim-type=scrollUp]:not([_before-animation]):not([reverse]),x-deck>x-card[leaving][card-anim-type=scrollDown][reverse]:not([_before-animation]),x-deck>x-card[selected][_before-animation][card-anim-type=scrollUp][reverse],x-deck>x-card[selected][_before-animation][card-anim-type=scrollDown]:not([reverse]),x-deck>x-card[selected][_before-animation][card-anim-type=coverDown]:not([reverse]),x-deck>x-card[selected][_before-animation][card-anim-type=uncoverUp][reverse],x-deck>x-card[leaving][card-anim-type=coverDown][reverse]:not([_before-animation]),x-deck>x-card[leaving][card-anim-type=uncoverUp]:not([_before-animation]):not([reverse]){transform:translateY(-100%);-ms-transform:translateY(-100%);-moz-transform:translateY(-100%);-webkit-transform:translateY(-100%);-o-transform:translateY(-100%)}x-deck>x-card[selected][_before-animation][card-anim-type=scrollUp]:not([reverse]),x-deck>x-card[selected][_before-animation][card-anim-type=scrollDown][reverse],x-deck>x-card[leaving][card-anim-type=scrollUp][reverse]:not([_before-animation]),x-deck>x-card[leaving][card-anim-type=scrollDown]:not([_before-animation]):not([reverse]),x-deck>x-card[selected][_before-animation][card-anim-type=coverUp]:not([reverse]),x-deck>x-card[selected][_before-animation][card-anim-type=uncoverDown][reverse],x-deck>x-card[leaving][card-anim-type=coverUp][reverse]:not([_before-animation]),x-deck>x-card[leaving][card-anim-type=uncoverDown]:not([_before-animation]):not([reverse]){transform:translateY(100%);-ms-transform:translateY(100%);-moz-transform:translateY(100%);-webkit-transform:translateY(100%);-o-transform:translateY(100%)}x-deck>x-card[card-anim-type=flipX][selected][_before-animation]:not([reverse]),x-deck>x-card[card-anim-type=flipX][reverse][leaving]:not([_before-animation]){transform:perspective(800px) rotateX(180deg);-ms-transform:perspective(800px) rotateX(180deg);-moz-transform:perspective(800px) rotateX(180deg);-webkit-transform:perspective(800px) rotateX(180deg);-o-transform:perspective(800px) rotateX(180deg)}x-deck>x-card[card-anim-type=flipX][leaving]:not([reverse]):not([_before-animation]),x-deck>x-card[card-anim-type=flipX][reverse][selected][_before-animation]{transform:perspective(800px) rotateX(-180deg);-ms-transform:perspective(800px) rotateX(-180deg);-moz-transform:perspective(800px) rotateX(-180deg);-webkit-transform:perspective(800px) rotateX(-180deg);-o-transform:perspective(800px) rotateX(-180deg)}x-deck>x-card[card-anim-type=flipY][selected][_before-animation]:not([reverse]),x-deck>x-card[card-anim-type=flipY][reverse][leaving]:not([_before-animation]){transform:perspective(800px) rotateY(180deg);-ms-transform:perspective(800px) rotateY(180deg);-moz-transform:perspective(800px) rotateY(180deg);-webkit-transform:perspective(800px) rotateY(180deg);-o-transform:perspective(800px) rotateY(180deg)}x-deck>x-card[card-anim-type=flipY][leaving]:not([reverse]):not([_before-animation]),x-deck>x-card[card-anim-type=flipY][reverse][selected][_before-animation]{transform:perspective(800px) rotateY(-180deg);-ms-transform:perspective(800px) rotateY(-180deg);-moz-transform:perspective(800px) rotateY(-180deg);-webkit-transform:perspective(800px) rotateY(-180deg);-o-transform:perspective(800px) rotateY(-180deg)}x-deck>x-card[selected]{z-index:2}x-deck>x-card[leaving]{z-index:1}x-deck>x-card[selected][card-anim-type=coverRight][reverse],x-deck>x-card[selected][card-anim-type=uncoverLeft]:not([reverse]),x-deck>x-card[selected][card-anim-type=coverLeft][reverse],x-deck>x-card[selected][card-anim-type=uncoverRight]:not([reverse]),x-deck>x-card[selected][card-anim-type=coverDown][reverse],x-deck>x-card[selected][card-anim-type=uncoverUp]:not([reverse]),x-deck>x-card[selected][card-anim-type=coverUp][reverse],x-deck>x-card[selected][card-anim-type=uncoverDown]:not([reverse]){z-index:1}x-deck>x-card[leaving][card-anim-type=coverRight][reverse],x-deck>x-card[leaving][card-anim-type=uncoverLeft]:not([reverse]),x-deck>x-card[leaving][card-anim-type=coverLeft][reverse],x-deck>x-card[leaving][card-anim-type=uncoverRight]:not([reverse]),x-deck>x-card[leaving][card-anim-type=coverDown][reverse],x-deck>x-card[leaving][card-anim-type=uncoverUp]:not([reverse]),x-deck>x-card[leaving][card-anim-type=coverUp][reverse],x-deck>x-card[leaving][card-anim-type=uncoverDown]:not([reverse]){z-index:2}x-deck{display:block;position:relative;overflow:hidden;width:100%;height:100%}x-deck>x-card{-webkit-transform-style:preserve-3d;-moz-transform-style:preserve-3d;-ms-transform-style:preserve-3d;-o-transform-style:preserve-3d;transform-style:preserve-3d;display:block;overflow:hidden;position:absolute!important;transition-property:transform;-webkit-transition-property:-webkit-transform;-moz-transition-property:-moz-transform;-ms-transition-property:-ms-transform;-o-transition-property:-o-transform;transition-duration:.5s;-webkit-transition-duration:.5s;-moz-transition-duration:.5s;-ms-transition-duration:.5s;-o-transition-duration:.5s;-webkit-transition-timing-function:ease;-moz-transition-timing-function:ease;-ms-transition-timing-function:ease;-o-transition-timing-function:ease;transition-timing-function:ease;-webkit-transition-delay:0s;-moz-transition-delay:0s;-ms-transition-delay:0s;-o-transition-delay:0s;transition-delay:0s;-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;-ms-backface-visibility:hidden;-o-backface-visibility:hidden;backface-visibility:hidden;height:100%;width:100%;left:0;right:0;z-index:0}x-deck>x-card:not([selected]):not([leaving]){visibility:hidden;opacity:0}x-deck>x-card[card-anim-type=flipY]:not([reverse]){}x-flipbox{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-ms-box-sizing:border-box;-o-box-sizing:border-box;box-sizing:border-box;display:block;position:relative;height:100%;width:100%;-webkit-transform-style:preserve-3d;-moz-transform-style:preserve-3d;-ms-transform-style:preserve-3d;-o-transform-style:preserve-3d;transform-style:preserve-3d}x-flipbox>*{display:block;position:absolute;top:0;left:0;width:100%;height:100%;-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;-ms-backface-visibility:hidden;-o-backface-visibility:hidden;backface-visibility:hidden;transition-property:transform;-webkit-transition-property:-webkit-transform;-moz-transition-property:-moz-transform;-ms-transition-property:-ms-transform;-o-transition-property:-o-transform;transition-duration:.25s;-webkit-transition-duration:.25s;-moz-transition-duration:.25s;-ms-transition-duration:.25s;-o-transition-duration:.25s;-webkit-transition-timing-function:linear;-moz-transition-timing-function:linear;-ms-transition-timing-function:linear;-o-transition-timing-function:linear;transition-timing-function:linear;-webkit-transition-delay:0s;-moz-transition-delay:0s;-ms-transition-delay:0s;-o-transition-delay:0s;transition-delay:0s;-webkit-transform-style:preserve-3d;-moz-transform-style:preserve-3d;-ms-transform-style:preserve-3d;-o-transform-style:preserve-3d;transform-style:preserve-3d}x-flipbox>:first-child{transform:perspective(800px) rotateY(0deg) translate3d(0px,0,2px);-ms-transform:perspective(800px) rotateY(0deg) translate3d(0px,0,2px);-moz-transform:perspective(800px) rotateY(0deg) translate3d(0px,0,2px);-webkit-transform:perspective(800px) rotateY(0deg) translate3d(0px,0,2px);-o-transform:perspective(800px) rotateY(0deg) translate3d(0px,0,2px);z-index:2}x-flipbox>:last-child{transform:perspective(800px) rotateY(180deg) translate3d(0px,0,1px);-ms-transform:perspective(800px) rotateY(180deg) translate3d(0px,0,1px);-moz-transform:perspective(800px) rotateY(180deg) translate3d(0px,0,1px);-webkit-transform:perspective(800px) rotateY(180deg) translate3d(0px,0,1px);-o-transform:perspective(800px) rotateY(180deg) translate3d(0px,0,1px);z-index:1}x-flipbox[_anim-direction=up]>:first-child,x-flipbox[_anim-direction=down]>:first-child{transform:perspective(800px) rotateX(0deg) translate3d(0px,0,2px);-ms-transform:perspective(800px) rotateX(0deg) translate3d(0px,0,2px);-moz-transform:perspective(800px) rotateX(0deg) translate3d(0px,0,2px);-webkit-transform:perspective(800px) rotateX(0deg) translate3d(0px,0,2px);-o-transform:perspective(800px) rotateX(0deg) translate3d(0px,0,2px)}x-flipbox[_anim-direction=up]>:last-child{transform:perspective(800px) rotateX(-180deg) translate3d(0px,0,1px);-ms-transform:perspective(800px) rotateX(-180deg) translate3d(0px,0,1px);-moz-transform:perspective(800px) rotateX(-180deg) translate3d(0px,0,1px);-webkit-transform:perspective(800px) rotateX(-180deg) translate3d(0px,0,1px);-o-transform:perspective(800px) rotateX(-180deg) translate3d(0px,0,1px)}x-flipbox[_anim-direction=down]>:last-child{transform:perspective(800px) rotateX(180deg) translate3d(0px,0,1px);-ms-transform:perspective(800px) rotateX(180deg) translate3d(0px,0,1px);-moz-transform:perspective(800px) rotateX(180deg) translate3d(0px,0,1px);-webkit-transform:perspective(800px) rotateX(180deg) translate3d(0px,0,1px);-o-transform:perspective(800px) rotateX(180deg) translate3d(0px,0,1px)}x-flipbox[flipped]{}x-flipbox[flipped]:after{content:"";display:none}x-flipbox[flipped]>:first-child{transform:perspective(800px) rotateY(180deg) translate3d(0px,0,2px);-ms-transform:perspective(800px) rotateY(180deg) translate3d(0px,0,2px);-moz-transform:perspective(800px) rotateY(180deg) translate3d(0px,0,2px);-webkit-transform:perspective(800px) rotateY(180deg) translate3d(0px,0,2px);-o-transform:perspective(800px) rotateY(180deg) translate3d(0px,0,2px);z-index:1}x-flipbox[flipped]>:last-child{transform:perspective(800px) rotateY(360deg) translate3d(0px,0,1px);-ms-transform:perspective(800px) rotateY(360deg) translate3d(0px,0,1px);-moz-transform:perspective(800px) rotateY(360deg) translate3d(0px,0,1px);-webkit-transform:perspective(800px) rotateY(360deg) translate3d(0px,0,1px);-o-transform:perspective(800px) rotateY(360deg) translate3d(0px,0,1px);z-index:2}x-flipbox[_anim-direction=left][flipped]>:first-child{transform:perspective(800px) rotateY(-180deg) translate3d(0px,0,2px);-ms-transform:perspective(800px) rotateY(-180deg) translate3d(0px,0,2px);-moz-transform:perspective(800px) rotateY(-180deg) translate3d(0px,0,2px);-webkit-transform:perspective(800px) rotateY(-180deg) translate3d(0px,0,2px);-o-transform:perspective(800px) rotateY(-180deg) translate3d(0px,0,2px)}x-flipbox[_anim-direction=left][flipped]>:last-child{transform:perspective(800px) rotateY(0deg) translate3d(0px,0,1px);-ms-transform:perspective(800px) rotateY(0deg) translate3d(0px,0,1px);-moz-transform:perspective(800px) rotateY(0deg) translate3d(0px,0,1px);-webkit-transform:perspective(800px) rotateY(0deg) translate3d(0px,0,1px);-o-transform:perspective(800px) rotateY(0deg) translate3d(0px,0,1px)}x-flipbox[_anim-direction=up][flipped]>:first-child{transform:perspective(800px) rotateX(180deg) translate3d(0px,0,2px);-ms-transform:perspective(800px) rotateX(180deg) translate3d(0px,0,2px);-moz-transform:perspective(800px) rotateX(180deg) translate3d(0px,0,2px);-webkit-transform:perspective(800px) rotateX(180deg) translate3d(0px,0,2px);-o-transform:perspective(800px) rotateX(180deg) translate3d(0px,0,2px)}x-flipbox[_anim-direction=up][flipped]>:last-child{transform:perspective(800px) rotateX(0deg) translate3d(0px,0,1px);-ms-transform:perspective(800px) rotateX(0deg) translate3d(0px,0,1px);-moz-transform:perspective(800px) rotateX(0deg) translate3d(0px,0,1px);-webkit-transform:perspective(800px) rotateX(0deg) translate3d(0px,0,1px);-o-transform:perspective(800px) rotateX(0deg) translate3d(0px,0,1px)}x-flipbox[_anim-direction=down][flipped]>:first-child{transform:perspective(800px) rotateX(-180deg) translate3d(0px,0,2px);-ms-transform:perspective(800px) rotateX(-180deg) translate3d(0px,0,2px);-moz-transform:perspective(800px) rotateX(-180deg) translate3d(0px,0,2px);-webkit-transform:perspective(800px) rotateX(-180deg) translate3d(0px,0,2px);-o-transform:perspective(800px) rotateX(-180deg) translate3d(0px,0,2px)}x-flipbox[_anim-direction=down][flipped]>:last-child{transform:perspective(800px) rotateX(0deg) translate3d(0px,0,1px);-ms-transform:perspective(800px) rotateX(0deg) translate3d(0px,0,1px);-moz-transform:perspective(800px) rotateX(0deg) translate3d(0px,0,1px);-webkit-transform:perspective(800px) rotateX(0deg) translate3d(0px,0,1px);-o-transform:perspective(800px) rotateX(0deg) translate3d(0px,0,1px)}x-iconbutton{background-color:#a0a0a0;background-repeat:no-repeat;background-position:0 0;background-image:-o-linear-gradient(-90deg,#a0a0a0 14%,#858585 100%);background-image:-moz-linear-gradient(-90deg,#a0a0a0 14%,#858585 100%);background-image:-webkit-linear-gradient(-90deg,#a0a0a0 14%,#858585 100%);background-image:-ms-linear-gradient(-90deg,#a0a0a0 14%,#858585 100%);background-image:linear-gradient(-180deg,#a0a0a0 14%,#858585 100%);-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-ms-box-sizing:border-box;-o-box-sizing:border-box;box-sizing:border-box;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;-moz-tap-highlight-color:transparent;tap-highlight-color:transparent;line-height:normal;display:inline-block;margin:0;padding:.1em .175em;border:1px solid grey;font-family:_OpenSansBrick,"Segoe UI",Frutiger,"Frutiger Linotype","Dejavu Sans","Helvetica Neue",Arial,sans-serif;font-size:14px;text-align:center;color:#d4d4d4;cursor:pointer}x-iconbutton:hover{background-color:#a0a0a0;background-repeat:no-repeat;background-position:0 1em;background-image:-o-linear-gradient(-90deg,#a0a0a0 14%,#858585 100%);background-image:-moz-linear-gradient(-90deg,#a0a0a0 14%,#858585 100%);background-image:-webkit-linear-gradient(-90deg,#a0a0a0 14%,#858585 100%);background-image:-ms-linear-gradient(-90deg,#a0a0a0 14%,#858585 100%);background-image:linear-gradient(-180deg,#a0a0a0 14%,#858585 100%);color:#eaeaea}x-iconbutton:active,x-iconbutton[active]{background-color:#a0a0a0;background-repeat:no-repeat;background-position:0 0;background-position:0 1em;background-image:-o-linear-gradient(-90deg,#a0a0a0 14%,#e1e1e1 100%);background-image:-moz-linear-gradient(-90deg,#a0a0a0 14%,#e1e1e1 100%);background-image:-webkit-linear-gradient(-90deg,#a0a0a0 14%,#e1e1e1 100%);background-image:-ms-linear-gradient(-90deg,#a0a0a0 14%,#e1e1e1 100%);background-image:linear-gradient(-180deg,#a0a0a0 14%,#e1e1e1 100%);color:#f2f2f2}x-iconbutton>.x-iconbutton-content-wrap{display:inline-block!important;vertical-align:middle!important;max-width:100%;max-height:100%}x-iconbutton>.x-iconbutton-ghost{display:inline-block!important;vertical-align:middle!important;height:100%!important;width:0!important;padding:0!important;margin:0!important}x-iconbutton .x-iconbutton-icon,x-iconbutton .x-iconbutton-content{display:inline-block;vertical-align:middle;margin:0;padding:0;max-height:100%;max-width:100%}x-iconbutton[icon-anchor=top] .x-iconbutton-icon,x-iconbutton[icon-anchor=top] .x-iconbutton-content,x-iconbutton[icon-anchor=bottom] .x-iconbutton-icon,x-iconbutton[icon-anchor=bottom] .x-iconbutton-content{margin:0 auto;display:block}x-iconbutton[icon-anchor]{white-space:nowrap}x-iconbutton[icon-anchor=left] .x-iconbutton-icon,x-iconbutton:not([icon-anchor]) .x-iconbutton-icon{margin-right:.1em}x-iconbutton[icon-anchor=right] .x-iconbutton-icon{margin-left:.1em}x-layout{position:relative!important;display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-webkit-flex;display:flex;width:100%;height:100%;border:1px solid #999;overflow:hidden;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-ms-box-sizing:border-box;box-sizing:border-box;-webkit-box-orient:vertical;-moz-box-orient:vertical;-ms-box-orient:vertical;box-orient:vertical;-webkit-flex-direction:column;-moz-flex-direction:column;-ms-flex-direction:column;flex-direction:column}x-layout>header,x-layout>footer{margin:0!important;overflow:hidden;z-index:1;-webkit-transform:translateZ(0);-moz-transform:translateZ(0);-ms-transform:translateZ(0);transform:translateZ(0)}x-layout>header,x-layout>footer{-webkit-transition:-webkit-transform .2s ease-in-out;-moz-transition:-moz-transform .2s ease-in-out;-ms-transition:-ms-transform .2s ease-in-out;transition:transform .2s ease-in-out}x-layout>section{-webkit-box-flex:1;-moz-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;-webkit-transition:margin .2s ease-in-out -moz-transition:margin .2s ease-in-out;-ms-transition:margin .2s ease-in-out;transition:margin .2s ease-in-out;-webkit-transform:translateZ(0);-moz-transform:translateZ(0);-ms-transform:translateZ(0);transform:translateZ(0);overflow:auto;height:0;position:relative}x-layout:not([content-maximizing]):not([maxcontent])>section{margin:0!important}x-layout>section>:only-child{position:absolute}x-layout[content-maximizing]>header,x-layout[content-maximized]>header,x-layout[maxcontent]>header{-webkit-transform:translateY(-100%);-moz-transform:translateY(-100%);-ms-transform:translateY(-100%);transform:translateY(-100%)}x-layout[content-maximizing]>footer,x-layout[content-maximized]>footer,x-layout[maxcontent]>footer{-webkit-transform:translateY(100%);-moz-transform:translateY(100%);-ms-transform:translateY(100%);transform:translateY(100%)}x-slidebox{display:block;overflow:hidden;height:100%;width:100%}x-slides{display:block;position:relative;height:100%;width:100%;overflow:hidden;transition:transform .5s ease 0s;-o-transition:-o-transform .5s ease 0s;-ms-transition:-ms-transform .5s ease 0s;-moz-transition:-moz-transform .5s ease 0s;-webkit-transition:-webkit-transform .5s ease 0s}x-slides>x-slide{display:block;float:left;height:100%;width:100%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-ms-box-sizing:border-box;-o-box-sizing:border-box;vertical-align:top;overflow:hidden}x-slider{display:inline-block;position:relative;margin:0;padding:0}x-slider>.input{margin:0;padding:0;position:relative;overflow:hidden;vertical-align:middle;width:100%;min-height:100%;background:transparent}x-slider[polyfill]{cursor:default;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;-moz-tap-highlight-color:transparent;tap-highlight-color:transparent}x-slider[polyfill]>.input{cursor:default;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;-moz-tap-highlight-color:transparent;tap-highlight-color:transparent;-webkit-appearance:none;-moz-appearance:none;background:transparent;border:0 solid transparent;color:transparent;display:inline-block;background-color:transparent;background-size:100% 3px;background-repeat:no-repeat;background-image:-webkit-linear-gradient(top,#b0b0b0 1px,#fff 2px,#b0b0b0);background-image:-moz-linear-gradient(top,#b0b0b0 1px,#fff 2px,#b0b0b0);background-image:-ms-linear-gradient(top,#b0b0b0 1px,#fff 2px,#b0b0b0);background-image:-o-linear-gradient(top,#b0b0b0 1px,#fff 2px,#b0b0b0);background-image:linear-gradient(top,#b0b0b0 1px,#fff 2px,#b0b0b0);background-position:center}x-slider[polyfill]>.input::-webkit-slider-thumb{visibility:hidden}x-slider[polyfill]>.input::-moz-range-thumb{width:0;height:0}x-slider[polyfill]>.input::-moz-range-track{height:0;width:0}x-slider[polyfill]>.slider-thumb{cursor:default;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;-moz-tap-highlight-color:transparent;tap-highlight-color:transparent;vertical-align:middle;position:absolute!important;top:0;left:0;height:100%;width:.65em;margin:0;padding:0;transform:translate3d(0,0,1px);-ms-transform:translate3d(0,0,1px);-moz-transform:translate3d(0,0,1px);-webkit-transform:translate3d(0,0,1px);-o-transform:translate3d(0,0,1px);border-radius:4px;border:1px solid grey;box-shadow:0 1px 4px #ddd;background-color:#fff;background-repeat:no-repeat;background-image:-o-linear-gradient(top,#fff,#fff 25%,#d9d9d9);background-image:-ms-linear-gradient(top,#fff,#fff 25%,#d9d9d9);background-image:-moz-linear-gradient(top,#fff,#fff 25%,#d9d9d9);background-image:-webkit-linear-gradient(top,#fff,#fff 25%,#d9d9d9);background-image:linear-gradient(top,#fff,#fff 25%,#d9d9d9)}@media only screen and (max-device-width:1024px){x-slider[polyfill]>.slider-thumb{width:1.5em}}x-slider[polyfill]>.slider-thumb:hover{background-color:#e7f5fd;background-repeat:no-repeat;background-image:-o-linear-gradient(top,#e7f5fd,#e7f5fd 25%,#a0d8f7);background-image:-ms-linear-gradient(top,#e7f5fd,#e7f5fd 25%,#a0d8f7);background-image:-moz-linear-gradient(top,#e7f5fd,#e7f5fd 25%,#a0d8f7);background-image:-webkit-linear-gradient(top,#e7f5fd,#e7f5fd 25%,#a0d8f7);background-image:linear-gradient(top,#e7f5fd,#e7f5fd 25%,#a0d8f7)}x-slider[polyfill]>.slider-thumb[active]{background-color:#b8e1f9;background-repeat:no-repeat;background-image:-o-linear-gradient(top,#b8e1f9,#b8e1f9 25%,#71c4f3);background-image:-ms-linear-gradient(top,#b8e1f9,#b8e1f9 25%,#71c4f3);background-image:-moz-linear-gradient(top,#b8e1f9,#b8e1f9 25%,#71c4f3);background-image:-webkit-linear-gradient(top,#b8e1f9,#b8e1f9 25%,#71c4f3);background-image:linear-gradient(top,#b8e1f9,#b8e1f9 25%,#71c4f3)}x-slider:not([polyfill])>.slider-thumb{visibility:hidden!important}x-tabbar{background-color:#a0a0a0;background-repeat:no-repeat;background-position:0 0;background-image:-o-linear-gradient(-90deg,#a0a0a0 14%,#858585 100%);background-image:-moz-linear-gradient(-90deg,#a0a0a0 14%,#858585 100%);background-image:-webkit-linear-gradient(-90deg,#a0a0a0 14%,#858585 100%);background-image:-ms-linear-gradient(-90deg,#a0a0a0 14%,#858585 100%);background-image:linear-gradient(-180deg,#a0a0a0 14%,#858585 100%);display:block;display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-webkit-flex;display:flex;width:100%;font-family:_OpenSansBrick,"Segoe UI",Frutiger,"Frutiger Linotype","Dejavu Sans","Helvetica Neue",Arial,sans-serif;color:#d4d4d4;overflow:hidden;white-space:nowrap;text-align:center;letter-spacing:-.31em}x-tabbar>x-tabbar-tab{min-width:auto;min-height:auto;-webkit-box-flex:1;-moz-box-flex:1;-webkit-flex:1;-ms-flex:1;box-flex:1;flex:1;letter-spacing:normal;overflow:hidden;background-color:#a0a0a0;background-repeat:no-repeat;background-position:0 0;background-image:-o-linear-gradient(-90deg,#a0a0a0 14%,#858585 100%);background-image:-moz-linear-gradient(-90deg,#a0a0a0 14%,#858585 100%);background-image:-webkit-linear-gradient(-90deg,#a0a0a0 14%,#858585 100%);background-image:-ms-linear-gradient(-90deg,#a0a0a0 14%,#858585 100%);background-image:linear-gradient(-180deg,#a0a0a0 14%,#858585 100%);-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-ms-box-sizing:border-box;-o-box-sizing:border-box;box-sizing:border-box;display:inline-block;height:100%;vertical-align:middle;border-right:1px solid #aeaeae;border-left:1px solid #aeaeae}x-tabbar>x-tabbar-tab:hover{background-color:#a0a0a0;background-repeat:no-repeat;background-position:0 1em;background-image:-o-linear-gradient(-90deg,#a0a0a0 14%,#858585 100%);background-image:-moz-linear-gradient(-90deg,#a0a0a0 14%,#858585 100%);background-image:-webkit-linear-gradient(-90deg,#a0a0a0 14%,#858585 100%);background-image:-ms-linear-gradient(-90deg,#a0a0a0 14%,#858585 100%);background-image:linear-gradient(-180deg,#a0a0a0 14%,#858585 100%);color:#eaeaea}x-tabbar>x-tabbar-tab:active{background-color:#a0a0a0;background-repeat:no-repeat;background-position:0 0;background-position:0 1em;background-image:-o-linear-gradient(-90deg,#a0a0a0 14%,#e1e1e1 100%);background-image:-moz-linear-gradient(-90deg,#a0a0a0 14%,#e1e1e1 100%);background-image:-webkit-linear-gradient(-90deg,#a0a0a0 14%,#e1e1e1 100%);background-image:-ms-linear-gradient(-90deg,#a0a0a0 14%,#e1e1e1 100%);background-image:linear-gradient(-180deg,#a0a0a0 14%,#e1e1e1 100%);color:#f2f2f2}x-tabbar>x-tabbar-tab:first-child{border-left-width:2px}x-tabbar>x-tabbar-tab:last-child{border-right-width:2px}x-tabbar>x-tabbar-tab>:only-child{vertical-align:top;height:100%;width:100%;margin:0!important}x-tabbar>x-tabbar-tab>x-iconbutton:only-child{border:0}x-toggle{display:inline-block;position:relative}x-toggle>.x-toggle-input-wrap{cursor:pointer;position:absolute!important;margin:0!important;left:0!important;top:0!important;width:100%!important;height:100%!important;display:inline-block!important;-ms-filter:"alpha(Opacity=0.0001)"!important;opacity:.0001!important;z-index:9999!important}x-toggle>.x-toggle-input-wrap>input{cursor:pointer}x-toggle .x-toggle-content{display:inline-block;vertical-align:middle;margin:0}x-toggle .x-toggle-content:after{content:"";display:inline-block;width:0;height:100%;vertical-align:middle}x-toggle .x-toggle-check{display:inline-block;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;width:16px;height:16px;margin:0 3px 0 0;color:#000;vertical-align:middle;border:2px solid;-webkit-transition:border .15s 0s ease-in-out;-moz-transition:border .15s 0s ease-in-out;-ms-transition:border .15s 0s ease-in-out;transition:border .15s 0s ease-in-out}x-toggle[no-box] .x-toggle-check{display:none!important}x-toggle[type=radio] .x-toggle-check{border-radius:50%}x-toggle[checked] .x-toggle-check{border-width:8px}x-toggle[focus] .x-toggle-check{-webkit-box-shadow:0 0 2px 1px rgba(0,100,155,.8);-moz-box-shadow:0 0 2px 1px rgba(0,100,155,.8);-ms-box-shadow:0 0 2px 1px rgba(0,100,155,.8);box-shadow:0 0 2px 1px rgba(0,100,155,.8)}x-togglegroup{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-ms-box-sizing:border-box;-o-box-sizing:border-box;box-sizing:border-box;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;-moz-tap-highlight-color:transparent;tap-highlight-color:transparent;display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-webkit-flex;display:flex;-webkit-align-content:center;-moz-align-content:center;-ms-align-content:center;align-content:center;width:100%;min-height:0;font-family:_OpenSansBrick,"Segoe UI",Frutiger,"Frutiger Linotype","Dejavu Sans","Helvetica Neue",Arial,sans-serif;white-space:nowrap}x-togglegroup *{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-ms-box-sizing:border-box;-o-box-sizing:border-box;box-sizing:border-box}x-togglegroup>x-toggle{background-color:#fff;background-repeat:no-repeat;background-image:-o-linear-gradient(top,#fff,#fff 25%,#d9d9d9);background-image:-ms-linear-gradient(top,#fff,#fff 25%,#d9d9d9);background-image:-moz-linear-gradient(top,#fff,#fff 25%,#d9d9d9);background-image:-webkit-linear-gradient(top,#fff,#fff 25%,#d9d9d9);background-image:linear-gradient(top,#fff,#fff 25%,#d9d9d9);transition-property:background-position,background-color,box-shadow;-webkit-transition-property:background-position,background-color,box-shadow;-moz-transition-property:background-position,background-color,box-shadow;-ms-transition-property:background-position,background-color,box-shadow;-o-transition-property:background-position,background-color,box-shadow;transition-duration:.1s;-webkit-transition-duration:.1s;-moz-transition-duration:.1s;-ms-transition-duration:.1s;-o-transition-duration:.1s;-webkit-transition-timing-function:ease-in;-moz-transition-timing-function:ease-in;-ms-transition-timing-function:ease-in;-o-transition-timing-function:ease-in;transition-timing-function:ease-in;-webkit-transition-delay:0s;-moz-transition-delay:0s;-ms-transition-delay:0s;-o-transition-delay:0s;transition-delay:0s;display:block;min-width:auto;min-height:auto;-webkit-box-flex:1;-moz-box-flex:1;-webkit-flex:1;-ms-flex:1;box-flex:1;flex:1;padding:.25em 0;margin:0;border-width:1px;border-color:#aaa grey #777;border-style:solid;text-shadow:1px 1px #fff;vertical-align:middle;word-wrap:break-word;overflow:hidden;font:inherit;text-align:center}x-togglegroup>x-toggle:hover:not([checked]){background-position:0 1em}x-togglegroup>x-toggle[checked]{background-image:none;background-color:#eee;box-shadow:inset 1px 1px 2px #888}x-togglegroup>x-toggle[type=radio]:first-of-type{border-top-left-radius:4px;border-bottom-left-radius:4px}x-togglegroup>x-toggle[type=radio]:last-of-type{border-top-right-radius:4px;border-bottom-right-radius:4px}x-togglegroup>x-toggle[type=radio]:not(:first-of-type){margin-left:-1px}x-togglegroup>x-toggle:not([type=radio]){border-radius:4px;margin-left:.2em;margin-right:.2em}x-togglegroup>x-toggle:not([type=radio]):first-child{margin-left:0}x-togglegroup>x-toggle:not([type=radio]):last-child{margin-right:0}x-togglegroup>x-toggle[focus]{-webkit-box-shadow:0 0 2px 1px rgba(0,100,155,.8);-moz-box-shadow:0 0 2px 1px rgba(0,100,155,.8);-ms-box-shadow:0 0 2px 1px rgba(0,100,155,.8);box-shadow:0 0 2px 1px rgba(0,100,155,.8)}x-tooltip,x-tooltip>.tooltip-content,x-tooltip>.tooltip-arrow{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-ms-box-sizing:border-box;-o-box-sizing:border-box;box-sizing:border-box}x-tooltip[orientation=top],x-tooltip[_auto-orientation=top]:not([orientation=top]):not([orientation=bottom]):not([orientation=left]):not([orientation=right]){transform:translate3d(0,10px,1px);-ms-transform:translate3d(0,10px,1px);-moz-transform:translate3d(0,10px,1px);-webkit-transform:translate3d(0,10px,1px);-o-transform:translate3d(0,10px,1px)}x-tooltip[orientation=bottom],x-tooltip[_auto-orientation=bottom]:not([orientation=top]):not([orientation=bottom]):not([orientation=left]):not([orientation=right]){transform:translate3d(0,-10px,1px);-ms-transform:translate3d(0,-10px,1px);-moz-transform:translate3d(0,-10px,1px);-webkit-transform:translate3d(0,-10px,1px);-o-transform:translate3d(0,-10px,1px)}x-tooltip[orientation=left],x-tooltip[_auto-orientation=left]:not([orientation=top]):not([orientation=bottom]):not([orientation=left]):not([orientation=right]){transform:translate3d(10px,0,1px);-ms-transform:translate3d(10px,0,1px);-moz-transform:translate3d(10px,0,1px);-webkit-transform:translate3d(10px,0,1px);-o-transform:translate3d(10px,0,1px)}x-tooltip[orientation=right],x-tooltip[_auto-orientation=right]:not([orientation=top]):not([orientation=bottom]):not([orientation=left]):not([orientation=right]){transform:translate3d(-10px,0,1px);-ms-transform:translate3d(-10px,0,1px);-moz-transform:translate3d(-10px,0,1px);-webkit-transform:translate3d(-10px,0,1px);-o-transform:translate3d(-10px,0,1px)}x-tooltip{transition-property:visibility,transform,opacity;-webkit-transition-property:visibility,-webkit-transform,opacity;-moz-transition-property:visibility,-moz-transform,opacity;-ms-transition-property:visibility,-ms-transform,opacity;-o-transition-property:visibility,-o-transform,opacity;transition-duration:.2s;-webkit-transition-duration:.2s;-moz-transition-duration:.2s;-ms-transition-duration:.2s;-o-transition-duration:.2s;-webkit-transition-timing-function:ease-in;-moz-transition-timing-function:ease-in;-ms-transition-timing-function:ease-in;-o-transition-timing-function:ease-in;transition-timing-function:ease-in;-webkit-transition-delay:0s;-moz-transition-delay:0s;-ms-transition-delay:0s;-o-transition-delay:0s;transition-delay:0s;position:absolute;margin:0;padding:0;left:0;top:0;display:block;z-index:2147483647;overflow:visible;border:1px solid grey;background-color:#eee;border-radius:4px;box-shadow:1px 1px 4px grey}x-tooltip[_target-fixed]{position:fixed}x-tooltip[ignore-tooltip-pointer-events]{pointer-events:none}x-tooltip:not([allow-overflow]){max-width:100%;max-height:100%}x-tooltip:not([visible]){visibility:hidden!important;opacity:0!important}x-tooltip:not([visible]):not([_force-display]){width:1px!important;height:1px!important;left:0!important;top:0!important;margin:0!important;border-width:0!important}x-tooltip:not([visible]):not([_force-display])>*{display:none!important}x-tooltip[visible]{visibility:visible;opacity:1;transform:translate3d(0,0,1px);-ms-transform:translate3d(0,0,1px);-moz-transform:translate3d(0,0,1px);-webkit-transform:translate3d(0,0,1px);-o-transform:translate3d(0,0,1px)}x-tooltip:not([orientation=top]):not([orientation=bottom]):not([orientation=left]):not([orientation=right])[visible]{transform:translate3d(0,0,1px);-ms-transform:translate3d(0,0,1px);-moz-transform:translate3d(0,0,1px);-webkit-transform:translate3d(0,0,1px);-o-transform:translate3d(0,0,1px)}x-tooltip>.tooltip-content{position:relative;display:block;padding:.5em;overflow:auto;max-width:inherit;max-height:inherit;z-index:2}x-tooltip[allow-overflow]{white-space:nowrap}x-tooltip>.tooltip-arrow{position:absolute;display:block;margin:0;padding:0;vertical-align:top;width:1em;height:1em;border:inherit;background:inherit;z-index:1}x-tooltip>.tooltip-arrow:not([arrow-direction=up]):not([arrow-direction=left]):not([arrow-direction=right]){top:100%;left:50%;transform:translateY(-50%) rotate(45deg);-ms-transform:translateY(-50%) rotate(45deg);-moz-transform:translateY(-50%) rotate(45deg);-webkit-transform:translateY(-50%) rotate(45deg);-o-transform:translateY(-50%) rotate(45deg);border-top-color:transparent!important;border-left-color:transparent!important}x-tooltip>.tooltip-arrow[arrow-direction=up]{bottom:100%;left:50%;transform:translateY(50%) rotate(45deg);-ms-transform:translateY(50%) rotate(45deg);-moz-transform:translateY(50%) rotate(45deg);-webkit-transform:translateY(50%) rotate(45deg);-o-transform:translateY(50%) rotate(45deg);border-bottom-color:transparent!important;border-right-color:transparent!important}x-tooltip>.tooltip-arrow[arrow-direction=left]{right:100%;top:50%;transform:translateX(50%) rotate(45deg);-ms-transform:translateX(50%) rotate(45deg);-moz-transform:translateX(50%) rotate(45deg);-webkit-transform:translateX(50%) rotate(45deg);-o-transform:translateX(50%) rotate(45deg);border-top-color:transparent!important;border-right-color:transparent!important}x-tooltip>.tooltip-arrow[arrow-direction=right]{left:100%;top:50%;transform:translateX(-50%) rotate(45deg);-ms-transform:translateX(-50%) rotate(45deg);-moz-transform:translateX(-50%) rotate(45deg);-webkit-transform:translateX(-50%) rotate(45deg);-o-transform:translateX(-50%) rotate(45deg);border-bottom-color:transparent!important;border-left-color:transparent!important} \ No newline at end of file diff --git a/www/assets/vendor/brick/brick-1.0beta6.js b/www/assets/vendor/brick/brick-1.0beta6.js new file mode 100644 index 0000000..c942be6 --- /dev/null +++ b/www/assets/vendor/brick/brick-1.0beta6.js @@ -0,0 +1,2 @@ +window.Platform={};var logFlags={};!function(){function e(e){if(this._element=e,e.className!=this._classCache){if(this._classCache=e.className,!this._classCache)return;var t,n=this._classCache.replace(/^\s+|\s+$/g,"").split(/\s+/);for(t=0;t>>0)+(n++ +"__")},SideTable.prototype={set:function(t,n){e(t,this.name,{value:n,writable:!0})},get:function(e){return t.call(e,this.name)?e[this.name]:void 0},"delete":function(e){this.set(e,void 0)}}}(),function(e){function t(e){y.push(e),b||(b=!0,m(r))}function n(e){return window.ShadowDOMPolyfill&&window.ShadowDOMPolyfill.wrapIfNeeded(e)||e}function r(){b=!1;var e=y;y=[],e.sort(function(e,t){return e.uid_-t.uid_});var t=!1;e.forEach(function(e){var n=e.takeRecords();o(e),n.length&&(e.callback_(n,e),t=!0)}),t&&r()}function o(e){e.nodes_.forEach(function(t){var n=h.get(t);n&&n.forEach(function(t){t.observer===e&&t.removeTransientObservers()})})}function i(e,t){for(var n=e;n;n=n.parentNode){var r=h.get(n);if(r)for(var o=0;o0){var o=n[r-1],i=f(o,e);if(i)return n[r-1]=i,void 0}else t(this.observer);n[r]=e},addListeners:function(){this.addListeners_(this.target)},addListeners_:function(e){var t=this.options;t.attributes&&e.addEventListener("DOMAttrModified",this,!0),t.characterData&&e.addEventListener("DOMCharacterDataModified",this,!0),t.childList&&e.addEventListener("DOMNodeInserted",this,!0),(t.childList||t.subtree)&&e.addEventListener("DOMNodeRemoved",this,!0)},removeListeners:function(){this.removeListeners_(this.target)},removeListeners_:function(e){var t=this.options;t.attributes&&e.removeEventListener("DOMAttrModified",this,!0),t.characterData&&e.removeEventListener("DOMCharacterDataModified",this,!0),t.childList&&e.removeEventListener("DOMNodeInserted",this,!0),(t.childList||t.subtree)&&e.removeEventListener("DOMNodeRemoved",this,!0)},addTransientObserver:function(e){if(e!==this.target){this.addListeners_(e),this.transientObservedNodes.push(e);var t=h.get(e);t||h.set(e,t=[]),t.push(this)}},removeTransientObservers:function(){var e=this.transientObservedNodes;this.transientObservedNodes=[],e.forEach(function(e){this.removeListeners_(e);for(var t=h.get(e),n=0;n1?logFlags.dom&&console.warn("inserted:",e.localName,"insert/remove count:",e.__inserted):e.enteredDocumentCallback&&(logFlags.dom&&console.log("inserted:",e.localName),e.enteredDocumentCallback())),logFlags.dom&&console.groupEnd())}function l(e){d(e),r(e,function(e){d(e)})}function d(e){(e.leftDocumentCallback||e.__upgraded__&&logFlags.dom)&&(logFlags.dom&&console.log("removed:",e.localName),p(e)||(e.__inserted=(e.__inserted||0)-1,e.__inserted>0&&(e.__inserted=0),e.__inserted<0?logFlags.dom&&console.warn("removed:",e.localName,"insert/remove count:",e.__inserted):e.leftDocumentCallback&&e.leftDocumentCallback()))}function p(e){for(var t=e;t;){if(t==e.ownerDocument)return!0;t=t.parentNode||t.host}}function f(e){if(e.webkitShadowRoot&&!e.webkitShadowRoot.__watched){logFlags.dom&&console.log("watching shadow-root for: ",e.localName);for(var t=e.webkitShadowRoot;t;)v(t),t=t.olderShadowRoot}}function v(e){e.__watched||(b(e),e.__watched=!0)}function h(e){f(e),r(e,function(){f(e)})}function m(e){switch(e.localName){case"style":case"script":case"template":case void 0:return!0}}function g(e){if(logFlags.dom){var t=e[0];if(t&&"childList"===t.type&&t.addedNodes&&t.addedNodes){for(var n=t.addedNodes[0];n&&n!==document&&!n.host;)n=n.parentNode;var r=n&&(n.URL||n._URL||n.host&&n.host.localName)||"";r=r.split("/?").shift().split("/").pop()}console.group("mutations (%d) [%s]",e.length,r||"")}e.forEach(function(e){"childList"===e.type&&(L(e.addedNodes,function(e){m(e)||a(e)}),L(e.removedNodes,function(e){m(e)||l(e)}))}),logFlags.dom&&console.groupEnd()}function _(){g(E.takeRecords())}function b(e){E.observe(e,{childList:!0,subtree:!0})}function y(e){b(e)}function w(e){logFlags.dom&&console.group("upgradeDocument: ",(e.URL||e._URL||"").split("/").pop()),a(e),logFlags.dom&&console.groupEnd()}var E=new MutationObserver(g),L=Array.prototype.forEach.call.bind(Array.prototype.forEach);e.watchShadow=f,e.watchAllShadows=h,e.upgradeAll=a,e.upgradeSubtree=i,e.observeDocument=y,e.upgradeDocument=w,e.takeRecords=_}(window.CustomElements),function(e){function t(e){return r(e,c)}function n(e){return r(e,u)}function r(e,t){return"link"===e.localName&&e.getAttribute("rel")===t}function o(e){return"script"===e.localName}function i(e,t){var n=e;n instanceof Document||(n=document.implementation.createHTMLDocument(c),n.body.innerHTML=e),n._URL=t;var r=n.createElement("base");return r.setAttribute("href",document.baseURI),n.head.appendChild(r),window.HTMLTemplateElement&&HTMLTemplateElement.bootstrap&&HTMLTemplateElement.bootstrap(n),n}e||(e=window.HTMLImports={flags:{}});var a,s=e.xhr,c="import",u="stylesheet",l={documents:{},cache:{},preloadSelectors:["link[rel="+c+"]","element link[rel="+u+"]","template","script[src]:not([type])",'script[src][type="text/javascript"]'].join(","),loader:function(e){return a=new d(l.loaded,e),a.cache=l.cache,a},load:function(e,t){a=l.loader(t),l.preload(e)},preload:function(e){var t=e.querySelectorAll(l.preloadSelectors);t=this.filterMainDocumentNodes(e,t),t=this.extractTemplateNodes(t),a.addNodes(t)},filterMainDocumentNodes:function(e,t){return e===document&&(t=Array.prototype.filter.call(t,function(e){return!o(e)})),t},extractTemplateNodes:function(e){var t=[];return e=Array.prototype.filter.call(e,function(e){if("template"===e.localName){if(e.content){var n=e.content.querySelectorAll("link[rel="+u+"]");n.length&&(t=t.concat(Array.prototype.slice.call(n,0)))}return!1}return!0}),t.length&&(e=e.concat(t)),e},loaded:function(e,r,o){if(t(r)){var a=l.documents[e];a||(a=i(o,e),h.resolvePathsInHTML(a),l.documents[e]=a,l.preload(a)),r.import={href:e,ownerNode:r,content:a},r.content=o=a}r.__resource=o,n(r)&&h.resolvePathsInStylesheet(r)}},d=function(e,t){this.onload=e,this.oncomplete=t,this.inflight=0,this.pending={},this.cache={}};d.prototype={addNodes:function(e){this.inflight+=e.length,m(e,this.require,this),this.checkDone()},require:function(e){var t=h.nodeUrl(e);e.__nodeUrl=t,this.dedupe(t,e)||this.fetch(t,e)},dedupe:function(e,t){return this.pending[e]?(this.pending[e].push(t),!0):this.cache[e]?(this.onload(e,t,a.cache[e]),this.tail(),!0):(this.pending[e]=[t],!1)},fetch:function(e,t){var n=function(n,r){this.receive(e,t,n,r)}.bind(this);s.load(e,n)},receive:function(e,t,n,r){n||(a.cache[e]=r),a.pending[e].forEach(function(t){n||this.onload(e,t,r),this.tail()},this),a.pending[e]=null},tail:function(){--this.inflight,this.checkDone()},checkDone:function(){this.inflight||this.oncomplete()}};var p=["href","src","action"],f="["+p.join("],[")+"]",v="{{.*}}",h={nodeUrl:function(e){return h.resolveUrl(h.getDocumentUrl(document),h.hrefOrSrc(e))},hrefOrSrc:function(e){return e.getAttribute("href")||e.getAttribute("src")},documentUrlFromNode:function(e){return h.getDocumentUrl(e.ownerDocument||e)},getDocumentUrl:function(e){var t=e&&(e._URL||e.impl&&e.impl._URL||e.baseURI||e.URL)||"";return t.split("#")[0]},resolveUrl:function(e,t,n){if(this.isAbsUrl(t))return t;var r=this.compressUrl(this.urlToPath(e)+t);return n&&(r=h.makeRelPath(h.getDocumentUrl(document),r)),r},isAbsUrl:function(e){return/(^data:)|(^http[s]?:)|(^\/)/.test(e)},urlToPath:function(e){var t=e.split("/");return t.pop(),t.push(""),t.join("/")},compressUrl:function(e){for(var t,n=e.split("/"),r=0;ro;o++)r.unshift("..");var a=r.join("/");return a},resolvePathsInHTML:function(e,t){t=t||h.documentUrlFromNode(e),h.resolveAttributes(e,t),h.resolveStyleElts(e,t);var n=e.querySelectorAll("template");n&&m(n,function(e){e.content&&h.resolvePathsInHTML(e.content,t)})},resolvePathsInStylesheet:function(e){var t=h.nodeUrl(e);e.__resource=h.resolveCssText(e.__resource,t)},resolveStyleElts:function(e,t){var n=e.querySelectorAll("style");n&&m(n,function(e){e.textContent=h.resolveCssText(e.textContent,t)})},resolveCssText:function(e,t){return e.replace(/url\([^)]*\)/g,function(e){var n=e.replace(/["']/g,"").slice(4,-1);return n=h.resolveUrl(t,n,!0),"url("+n+")"})},resolveAttributes:function(e,t){var n=e&&e.querySelectorAll(f);n&&m(n,function(e){this.resolveNodeAttributes(e,t)},this)},resolveNodeAttributes:function(e,t){p.forEach(function(n){var r=e.attributes[n];if(r&&r.value&&r.value.search(v)<0){var o=h.resolveUrl(t,r.value,!0);r.value=o}})}};s=s||{async:!0,ok:function(e){return e.status>=200&&e.status<300||304===e.status||0===e.status},load:function(t,n,r){var o=new XMLHttpRequest;return(e.flags.debug||e.flags.bust)&&(t+="?"+Math.random()),o.open("GET",t,s.async),o.addEventListener("readystatechange",function(){4===o.readyState&&n.call(r,!s.ok(o)&&o,o.response,t)}),o.send(),o},loadDocument:function(e,t,n){this.load(e,t,n).responseType="document"}};var m=Array.prototype.forEach.call.bind(Array.prototype.forEach);e.path=h,e.xhr=s,e.importer=l,e.getDocumentUrl=h.getDocumentUrl,e.IMPORT_LINK_TYPE=c}(window.HTMLImports),function(e){function t(e){return"link"===e.localName&&e.getAttribute("rel")===i}function n(e){return e.parentNode&&!r(e)&&!o(e)}function r(e){return e.ownerDocument===document||e.ownerDocument.impl===document}function o(e){return e.parentNode&&"element"===e.parentNode.localName}var i="import",a={selectors:["link[rel="+i+"]","link[rel=stylesheet]","style","script:not([type])",'script[type="text/javascript"]'],map:{link:"parseLink",script:"parseScript",style:"parseGeneric"},parse:function(e){if(!e.__importParsed){e.__importParsed=!0;var t=e.querySelectorAll(a.selectors);s(t,function(e){a[a.map[e.localName]](e)})}},parseLink:function(e){t(e)?e.content&&a.parse(e.content):this.parseGeneric(e)},parseGeneric:function(e){n(e)&&document.head.appendChild(e)},parseScript:function(t){if(n(t)){var r=(t.__resource||t.textContent).trim();if(r){var o=t.__nodeUrl;if(!o){var o=e.path.documentUrlFromNode(t),i="["+Math.floor(1e3*(Math.random()+1))+"]",a=r.match(/Polymer\(['"]([^'"]*)/);i=a&&a[1]||i,o+="/"+i+".js"}r+="\n//# sourceURL="+o+"\n",eval.call(window,r)}}}},s=Array.prototype.forEach.call.bind(Array.prototype.forEach);e.parser=a}(HTMLImports),function(){function e(){HTMLImports.importer.load(document,function(){HTMLImports.parser.parse(document),HTMLImports.readyTime=(new Date).getTime(),document.dispatchEvent(new CustomEvent("HTMLImportsLoaded",{bubbles:!0}))})}"function"!=typeof window.CustomEvent&&(window.CustomEvent=function(e){var t=document.createEvent("HTMLEvents");return t.initEvent(e,!0,!0),t}),"complete"===document.readyState?e():window.addEventListener("DOMContentLoaded",e)}(),function(){function e(e){return"link"===e.localName&&e.getAttribute("rel")===t}var t=window.HTMLImports?HTMLImports.IMPORT_LINK_TYPE:"none",n={selectors:["link[rel="+t+"]"],map:{link:"parseLink"},parse:function(e){if(!e.__parsed){e.__parsed=!0;var t=e.querySelectorAll(n.selectors);r(t,function(e){n[n.map[e.localName]](e)}),CustomElements.upgradeDocument(e),CustomElements.observeDocument(e)}},parseLink:function(t){e(t)&&this.parseImport(t)},parseImport:function(e){e.content&&n.parse(e.content)}},r=Array.prototype.forEach.call.bind(Array.prototype.forEach);CustomElements.parser=n}(),function(){function e(){setTimeout(function(){CustomElements.parser.parse(document),CustomElements.upgradeDocument(document),CustomElements.ready=!0,CustomElements.readyTime=Date.now(),window.HTMLImports&&(CustomElements.elapsed=CustomElements.readyTime-HTMLImports.readyTime),document.body.dispatchEvent(new CustomEvent("WebComponentsReady",{bubbles:!0}))},0)}if("function"!=typeof window.CustomEvent&&(window.CustomEvent=function(e){var t=document.createEvent("HTMLEvents");return t.initEvent(e,!0,!0),t}),"complete"===document.readyState)e();else{var t=window.HTMLImports?"HTMLImportsLoaded":"DOMContentLoaded";window.addEventListener(t,e)}}(),function(){function e(e){return x.toString.call(e).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}function t(n,r){var o=t[r||e(n)];return o?o(n):n}function n(t){return-1==P.indexOf(e(t))?Array.prototype.slice.call(t,0):[t]}function r(e,t){return(t||R).length?n(e.querySelectorAll(t)):[]}function o(e,t){var n={added:[],removed:[]};t.forEach(function(t){t._mutation=!0;for(var r in n)for(var o=e._records["added"==r?"inserted":"removed"],i=t[r+"Nodes"],a=i.length,s=0;a>s&&-1==n[r].indexOf(i[s]);s++)n[r].push(i[s]),o.forEach(function(e){e(i[s],t)})})}function i(n,r,o){var i=e(o);return"object"==i&&"object"==e(n[r])?U.merge(n[r],o):n[r]=t(o,i),n}function a(e,t,n){var r={};for(var o in n)r[o.split(":")[0]]=!0;for(var i in t)r[i.split(":")[0]]||(n[i]=t[i])}function s(e){return e.mixins.forEach(function(t){var n=U.mixins[t];for(var r in n)switch(r){case"lifecycle":case"methods":a(r,n[r],e[r]);break;case"accessors":case"prototype":for(var o in n[r])a(o,n[r],e.accessors);break;case"events":}}),e}function c(e,t){var n=r(this,e.value).filter(function(e){return e==t.target||e.contains?e.contains(t.target):null})[0];return n?e.listener=e.listener.bind(n):null}function u(e){if(e.type.match("touch"))e.target.__touched__=!0;else if(e.target.__touched__&&e.type.match("mouse"))return delete e.target.__touched__,void 0;return!0}function l(e){var t="over"==e;return{attach:"OverflowEvent"in E?"overflowchanged":[],condition:function(n){return n.flow=e,n.type==e+"flow"||0===n.orient&&n.horizontalOverflow==t||1==n.orient&&n.verticalOverflow==t||2==n.orient&&n.horizontalOverflow==t&&n.verticalOverflow==t}}}function d(e,t,n,r){(null===t[e]||void 0===t[e])&&(r?t[e]=n[e]:Object.defineProperty(t,e,{writable:!0,enumerable:!0,value:n[e]}))}function p(e,t){var n=e.type,r=Object.getOwnPropertyDescriptor(e,"target");for(var o in t)j[o]||d(o,e,t,r);e.touches=t.touches?t.touches:[e],e.baseEvent=t,e.type=n}function f(e,t){return{value:e.boolean?"":t,method:e.boolean&&!t?"removeAttribute":"setAttribute"}}function v(e,t,n,r){var o=f(t,r);e[o.method](n,o.value)}function h(e,t,n,r,o){for(var i=t.property?[e.xtag[t.property]]:t.selector?U.query(e,t.selector):[],a=i.length;a--;)i[a][o](n,r)}function m(e,t,n){e.__view__&&e.__view__.updateBindingValue(e,t,n)}function g(e,t,n,r,o,i){var a=n.split(":"),s=a[0];if("get"==s)a[0]=t,e.prototype[t].get=U.applyPseudos(a.join(":"),r[n],e.pseudos);else if("set"==s){a[0]=t;var c=e.prototype[t].set=U.applyPseudos(a.join(":"),o?function(e){this.xtag._skipSet=!0,this.xtag._skipAttr||v(this,o,i,e),this.xtag._skipAttr&&o.skip&&delete this.xtag._skipAttr,r[n].call(this,o.boolean?!!e:e),m(this,i,e),delete this.xtag._skipSet}:r[n]?function(e){r[n].call(this,e),m(this,i,e)}:null,e.pseudos);o&&(o.setter=c)}else e.prototype[t][n]=r[n]}function _(e,t){e.prototype[t]={};var n=e.accessors[t],r=n.attribute,o=r&&r.name?r.name.toLowerCase():t;r&&(r.key=t,e.attributes[o]=r);for(var i in n)g(e,t,i,n,r,o);if(r){if(!e.prototype[t].get){var a=(r.boolean?"has":"get")+"Attribute";e.prototype[t].get=function(){return this[a](o)}}e.prototype[t].set||(e.prototype[t].set=function(e){v(this,r,o,e),m(this,o,e)})}}function b(e,t,n){e.__tap__||(e.__tap__={click:"mousedown"==n.type},e.__tap__.click?e.addEventListener("click",t.observer):(e.__tap__.scroll=t.observer.bind(e),window.addEventListener("scroll",e.__tap__.scroll,!0),e.addEventListener("touchmove",t.observer),e.addEventListener("touchcancel",t.observer),e.addEventListener("touchend",t.observer))),e.__tap__.click||(e.__tap__.x=n.touches[0].pageX,e.__tap__.y=n.touches[0].pageY)}function y(e,t){e.__tap__&&(e.__tap__.click?e.removeEventListener("click",t.observer):(window.removeEventListener("scroll",e.__tap__.scroll,!0),e.removeEventListener("touchmove",t.observer),e.removeEventListener("touchcancel",t.observer),e.removeEventListener("touchend",t.observer)),delete e.__tap__)}function w(e,t,n){var r=n.changedTouches[0];return r.pageXe.__tap__.x-t.gesture.tolerance&&r.pageYe.__tap__.y-t.gesture.tolerance?!0:void 0}var E=window,L=document,N=function(){},k=function(){return!0},O=/([\w-]+(?:\([^\)]+\))?)/g,A=/(\w*)(?:\(([^\)]*)\))?/,C=/(\d+)/g,M={action:function(e,t){return e.value.match(C).indexOf(String(t.keyCode))>-1==("keypass"==e.name)||null}},D=function(){var e=E.getComputedStyle(L.documentElement,""),t=(Array.prototype.slice.call(e).join("").match(/-(moz|webkit|ms)-/)||""===e.OLink&&["","o"])[1];return{dom:"ms"==t?t.toUpperCase():t,lowercase:t,css:"-"+t+"-",js:"ms"==t?t:t[0].toUpperCase()+t.substr(1)}}(),T=Element.prototype.matchesSelector||Element.prototype[D.lowercase+"MatchesSelector"],S=E.MutationObserver||E[D.js+"MutationObserver"],x={};t.object=function(e){var n={};for(var r in e)n[r]=t(e[r]);return n},t.array=function(e){for(var n=e.length,r=new Array(n);n--;)r[n]=t(e[n]);return r};var P=["undefined","null","number","boolean","string","function"],R="",j={target:1,currentTarget:1,originalTarget:1,bubbles:1,cancelable:1,defaultPrevented:1,detail:1,type:1},U={tags:{},defaultOptions:{pseudos:[],mixins:[],events:{},methods:{},accessors:{},lifecycle:{},attributes:{},prototype:{xtag:{get:function(){return this.__xtag__?this.__xtag__:this.__xtag__={data:{}}}}}},register:function(e,t){var r;if("string"==typeof e){r=e.toLowerCase();var o=t.prototype;delete t.prototype;var i=U.tags[r]=s(U.merge({},U.defaultOptions,t));for(var a in i.events)i.events[a]=U.parseEvent(a,i.events[a]);for(a in i.lifecycle)i.lifecycle[a.split(":")[0]]=U.applyPseudos(a,i.lifecycle[a],i.pseudos);for(a in i.methods)i.prototype[a.split(":")[0]]={value:U.applyPseudos(a,i.methods[a],i.pseudos),enumerable:!0};for(a in i.accessors)_(i,a);var c=i.lifecycle.created||i.lifecycle.ready;i.prototype.createdCallback={enumerable:!0,value:function(){var e=this;U.addEvents(this,i.events),i.mixins.forEach(function(t){U.mixins[t].events&&U.addEvents(e,U.mixins[t].events)});var t=c?c.apply(this,n(arguments)):null;for(var r in i.attributes){var o=i.attributes[r],a=this.hasAttribute(r);(a||o.boolean)&&(this[o.key]=o.boolean?a:this.getAttribute(r))}return i.pseudos.forEach(function(t){t.onAdd.call(e,t)}),t}},i.lifecycle.inserted&&(i.prototype.enteredDocumentCallback={value:i.lifecycle.inserted,enumerable:!0}),i.lifecycle.removed&&(i.prototype.leftDocumentCallback={value:i.lifecycle.removed,enumerable:!0}),i.lifecycle.attributeChanged&&(i.prototype.attributeChangedCallback={value:i.lifecycle.attributeChanged,enumerable:!0});var u=i.prototype.setAttribute||HTMLElement.prototype.setAttribute;i.prototype.setAttribute={writable:!0,enumberable:!0,value:function(e,t){var n=i.attributes[e.toLowerCase()];this.xtag._skipAttr||u.call(this,e,n&&n.boolean?"":t),n&&(n.setter&&!this.xtag._skipSet&&(this.xtag._skipAttr=!0,n.setter.call(this,n.boolean?!0:t)),t=n.skip?n.boolean?this.hasAttribute(e):this.getAttribute(e):t,h(this,n,e,n.boolean?"":t,"setAttribute")),delete this.xtag._skipAttr}};var l=i.prototype.removeAttribute||HTMLElement.prototype.removeAttribute;i.prototype.removeAttribute={writable:!0,enumberable:!0,value:function(e){var t=i.attributes[e.toLowerCase()];this.xtag._skipAttr||l.call(this,e),t&&(t.setter&&!this.xtag._skipSet&&(this.xtag._skipAttr=!0,t.setter.call(this,t.boolean?!1:void 0)),h(this,t,e,void 0,"removeAttribute")),delete this.xtag._skipAttr}};var d=o?o:t["extends"]?Object.create(document.createElement(t["extends"]).constructor).prototype:E.HTMLElement.prototype;return L.register(r,{"extends":t["extends"],prototype:Object.create(d,i.prototype)})}},mixins:{},prefix:D,templates:{},captureEvents:["focus","blur","scroll","underflow","overflow","overflowchanged"],customEvents:{overflow:l("over"),underflow:l("under"),animationstart:{attach:["oAnimationStart","MSAnimationStart","webkitAnimationStart"]},transitionend:{attach:["oTransitionEnd","MSTransitionEnd","webkitTransitionEnd"]},move:{attach:["mousemove","touchmove"],condition:u},enter:{attach:["mouseover","touchenter"],condition:u},leave:{attach:["mouseout","touchleave"],condition:u},tapstart:{observe:{mousedown:document,touchstart:document},condition:u},tapend:{observe:{mouseup:document,touchend:document},condition:u},tapmove:{attach:["tapstart","tapend","dragend"],condition:function(e,t){switch(e.type){case"move":return!0;case"dragover":var n=t.lastDrag||{};return t.lastDrag=e,n.pageX!=e.pageX&&n.pageY!=e.pageY||null;case"tapstart":return t.move=t.move||U.addEvents(this,{move:t.listener,dragover:t.listener}),!0;case"tapend":case"dragend":return U.removeEvents(this,t.move||{}),delete t.lastDrag,delete t.move,!0}}}},pseudos:{keypass:M,keyfail:M,delegate:{action:c},within:{action:c,onAdd:function(e){var t=e.source.condition;t&&(e.source.condition=function(n,r){return U.query(this,e.value).filter(function(e){return e==n.target||e.contains?e.contains(n.target):null})[0]?t.call(this,n,r):null})}},preventable:{action:function(e,t){return!t.defaultPrevented}}},clone:t,typeOf:e,toArray:n,wrap:function(e,t){return function(){var r=n(arguments),o=e.apply(this,r);return o===!1?!1:t.apply(this,"undefined"!=typeof o?n(o):r)}},merge:function(t,n,r){if("string"==e(n))return i(t,n,r);for(var o=1,a=arguments.length;a>o;o++){var s=arguments[o];for(var c in s)i(t,c,s[c])}return t},uid:function(){return Math.random().toString(36).substr(2,10)},query:r,skipTransition:function(e,t,n){var r=D.js+"TransitionProperty";e.style[r]=e.style.transitionProperty="none",U.requestFrame(function(){var o;t&&(o=t.call(n)),U.requestFrame(function(){e.style[r]=e.style.transitionProperty="",o&&U.requestFrame(o)})})},requestFrame:function(){var e=E.requestAnimationFrame||E[D.lowercase+"RequestAnimationFrame"]||function(e){return E.setTimeout(e,20)};return function(t){return e.call(E,t)}}(),matchSelector:function(e,t){return T.call(e,t)},set:function(e,t,n){e[t]=n,window.CustomElements&&CustomElements.upgradeAll(e)},innerHTML:function(e,t){U.set(e,"innerHTML",t)},hasClass:function(e,t){return e.className.split(" ").indexOf(t.trim())>-1},addClass:function(e,t){var n=e.className.trim().split(" ");return t.trim().split(" ").forEach(function(e){~n.indexOf(e)||n.push(e)}),e.className=n.join(" ").trim(),e},removeClass:function(e,t){var n=t.trim().split(" ");return e.className=e.className.trim().split(" ").filter(function(e){return e&&!~n.indexOf(e)}).join(" "),e},toggleClass:function(e,t){return U[U.hasClass(e,t)?"removeClass":"addClass"].call(null,e,t)},queryChildren:function(e,t){var r=e.id,o=e.id=r||"x_"+U.uid(),i="#"+o+" > ";t=i+(t+"").replace(",",","+i,"g");var a=e.parentNode.querySelectorAll(t);return r||e.removeAttribute("id"),n(a)},createFragment:function(e){var t=L.createDocumentFragment();if(e){for(var r=t.appendChild(L.createElement("div")),o=n(e.nodeName?arguments:!(r.innerHTML=e)||r.children),i=o.length,a=0;i>a;)t.insertBefore(o[a++],r);t.removeChild(r)}return t},manipulate:function(e,t){var n=e.nextSibling,r=e.parentNode,o=L.createDocumentFragment(),i=t.call(o.appendChild(e),o)||e;n?r.insertBefore(i,n):r.appendChild(i)},applyPseudos:function(e,t,r,o){var i=t,a={};if(e.match(":"))for(var s=e.match(O),c=s.length;--c;)s[c].replace(A,function(t,u,l){if(!U.pseudos[u])throw"pseudo not found: "+u+" "+s;var d=a[c]=Object.create(U.pseudos[u]);d.key=e,d.name=u,d.value=l,d.arguments=(l||"").split(","),d.action=d.action||k,d.source=o;var p=i;i=function(){var t=n(arguments),r={key:e,name:u,value:l,source:o,listener:p},i=d.action.apply(this,[r].concat(t));return i?r.listener.apply(this,t):i},r&&d.onAdd&&(r.getAttribute?d.onAdd.call(r,d):r.push(d))});for(var u in a)a[u].onCompiled&&(i=a[u].onCompiled(i,a[u])||i);return i},removePseudos:function(e,t){t._pseudos.forEach(function(t){t.onRemove&&t.onRemove.call(e,t)})},parseEvent:function(e,t){var r=e.split(":"),o=r.shift(),i=U.customEvents[o],a=U.merge({type:o,stack:N,condition:k,attach:[],_attach:[],pseudos:"",_pseudos:[],onAdd:N,onRemove:N},i||{});if(a.attach=n(a.base||a.attach),a.chain=o+(a.pseudos.length?":"+a.pseudos:"")+(r.length?":"+r.join(":"):""),t){var s=U.applyPseudos(a.chain,t,a._pseudos,a);a.stack=function(e){var t=e.detail||{};return t.__stack__?t.__stack__==s?(e.stopPropagation(),e.cancelBubble=!0,s.apply(this,n(arguments))):void 0:s.apply(this,n(arguments)) +},a.listener=function(e){var t=n(arguments),r=a.condition.apply(this,t.concat([a]));return r?e.type==o?a.stack.apply(this,t):(U.fireEvent(e.target,o,{baseEvent:e,detail:{__stack__:s}}),void 0):r},a.attach.forEach(function(e){a._attach.push(U.parseEvent(e,a.listener))})}if(i&&i.observe&&!i.__observing__){var c=i.condition||k;i.observer=function(e){var t=c.apply(this,n(arguments).concat([i]));return t?(U.fireEvent(e.target,o,{baseEvent:e}),void 0):t};for(var u in i.observe)U.addEvent(i.observe[u]||document,u,i.observer,!0);i.__observing__=!0}return a},addEvent:function(e,t,n,r){var o="function"==typeof n?U.parseEvent(t,n):n;return o._pseudos.forEach(function(t){t.onAdd.call(e,t)}),o._attach.forEach(function(t){U.addEvent(e,t.type,t)}),o.onAdd.call(e,o,o.listener),e.addEventListener(o.type,o.stack,r||U.captureEvents.indexOf(o.type)>-1),o},addEvents:function(e,t){var n={};for(var r in t)n[r]=U.addEvent(e,r,t[r]);return n},removeEvent:function(e,t,n){n=n||t,n.onRemove.call(e,n,n.listener),U.removePseudos(e,n),n._attach.forEach(function(t){U.removeEvent(e,t.type,t)}),e.removeEventListener(n.type,n.stack)},removeEvents:function(e,t){for(var n in t)U.removeEvent(e,t[n])},fireEvent:function(e,t,n,r){var o=L.createEvent("CustomEvent");n=n||{},r&&console.warn("fireEvent has been modified, more info here: "),o.initCustomEvent(t,n.bubbles!==!1,n.cancelable!==!1,n.detail),n.baseEvent&&p(o,n.baseEvent);try{e.dispatchEvent(o)}catch(i){console.warn("This error may have been caused by a change in the fireEvent method, more info here: ",i)}},addObserver:function(e,t,n){e._records||(e._records={inserted:[],removed:[]},S?(e._observer=new S(function(t){o(e,t)}),e._observer.observe(e,{subtree:!0,childList:!0,attributes:!1,characterData:!1})):["Inserted","Removed"].forEach(function(t){e.addEventListener("DOMNode"+t,function(n){n._mutation=!0,e._records[t.toLowerCase()].forEach(function(e){e(n.target,n)})},!1)})),-1==e._records[t].indexOf(n)&&e._records[t].push(n)},removeObserver:function(e,t,n){var r=e._records;r&&n?r[t].splice(r[t].indexOf(n),1):r[t]=[]}};U.customEvents.tap={observe:{mousedown:document,touchstart:document},gesture:{tolerance:8},condition:function(e,t){var n=e.target;switch(e.type){case"touchstart":return n.__tap__&&n.__tap__.click&&y(n,t),b(n,t,e),void 0;case"mousedown":return n.__tap__||b(n,t,e),void 0;case"scroll":case"touchcancel":return y(this,t),void 0;case"touchmove":case"touchend":return this.__tap__&&!w(this,t,e)?(y(this,t),void 0):"touchend"==e.type||null;case"click":return y(this,t),!0}}},"function"==typeof define&&define.amd?define(U):E.xtag=U,L.addEventListener("WebComponentsReady",function(){U.fireEvent(L.body,"DOMComponentsLoaded")})}();!function(){xtag.register("x-appbar",{lifecycle:{created:function(){var e=xtag.queryChildren(this,"header")[0];e||(e=document.createElement("header"),this.appendChild(e)),this.xtag.data.header=e,this.subheading=this.subheading}},accessors:{heading:{attribute:{},get:function(){return this.xtag.data.header.innerHTML},set:function(e){this.xtag.data.header.innerHTML=e}},subheading:{attribute:{},get:function(){return this.getAttribute("subheading")||""},set:function(e){this.xtag.data.header.setAttribute("subheading",e)}}}})}();!function(){function e(e){var t;return 0===e.getUTCHours()?t=new Date(e.valueOf()):(t=new Date,t.setUTCDate(e.getDate()),t.setUTCMonth(e.getMonth()),t.setUTCFullYear(e.getFullYear()),t.setUTCHours(0)),t.setUTCMinutes(0),t.setUTCSeconds(0),t.setUTCMilliseconds(0),t}function t(e,t){e.appendChild(t)}function n(e){return parseInt(e,10)}function r(e){var t=n(e);return t===e&&!isNaN(t)&&t>=0&&6>=t}function o(e){return e instanceof Date&&!!e.getTime&&!isNaN(e.getTime())}function i(e){return e&&e.isArray?e.isArray():"[object Array]"===Object.prototype.toString.call(e)}function a(e){var t=e.split("."),n=t.shift(),r=document.createElement(n);return r[z]=t.join(" "),r}function s(){var e=document.documentElement,t={left:e.scrollLeft||document.body.scrollLeft||0,top:e.scrollTop||document.body.scrollTop||0,width:e.clientWidth,height:e.clientHeight};return t.right=t.left+t.width,t.bottom=t.top+t.height,t}function u(e){var t=e.getBoundingClientRect(),n=s(),r=n.left,o=n.top;return{left:t.left+r,right:t.right+r,top:t.top+o,bottom:t.bottom+o,width:t.width,height:t.height}}function c(e,t){xtag.addClass(e,t)}function l(e,t){xtag.removeClass(e,t)}function d(e,t){return xtag.hasClass(e,t)}function f(e){return e.getUTCFullYear()}function h(e){return e.getUTCMonth()}function v(e){return e.getUTCDate()}function p(e){return e.getUTCDay()}function g(e,t){var n=e.toString(),r=new Array(t).join("0");return(r+n).substr(-t)}function m(e){return[g(f(e),4),g(h(e)+1,2),g(v(e),2)].join("-")}function b(t){if(o(t))return t;var n=J.exec(t);return n?e(new Date(n[1],n[2]-1,n[3])):null}function _(t){if(o(t))return t;var n=b(t);if(n)return n;var r=Date.parse(t);return isNaN(r)?null:e(new Date(r))}function y(e){var t;if(i(e))t=e.slice(0);else{if(o(e))return[e];if(!("string"==typeof e&&e.length>0))return null;try{if(t=JSON.parse(e),!i(t))return console.warn("invalid list of ranges",e),null}catch(n){var r=_(e);return r?[r]:(console.warn("unable to parse",e,"as JSON or single date"),null)}}for(var a=0;al.valueOf())return console.warn("invalid range",s,": start date is after end date"),null;t[a]=[c,l]}}return t}function w(t,n,r,o){return void 0===n&&(n=f(t)),void 0===r&&(r=h(t)),void 0===o&&(o=v(t)),e(new Date(n,r,o))}function E(e,t,n,r){return w(e,f(e)+t,h(e)+n,v(e)+r)}function x(e,t){t=n(t),r(t)||(t=0);for(var o=0;7>o;o++){if(p(e)===t)return e;e=D(e)}throw"unable to find week start"}function O(e,t){t=n(t),r(t)||(t=6);for(var o=0;7>o;o++){if(p(e)===t)return e;e=A(e)}throw"unable to find week end"}function N(t){return t=new Date(t.valueOf()),t.setUTCDate(1),e(t)}function k(e){return D(E(e,0,1,0))}function A(e){return E(e,0,0,1)}function D(e){return E(e,0,0,-1)}function T(e,t){if(t){t=void 0===t.length?[t]:t;var n=!1;return t.forEach(function(t){2===t.length?C(t[0],t[1],e)&&(n=!0):m(t)===m(e)&&(n=!0)}),n}}function C(e,t,n){return m(e)<=m(n)&&m(n)<=m(t)}function L(e){e.sort(function(e,t){var n=o(e)?e:e[0],r=o(t)?t:t[0];return n.valueOf()-r.valueOf()})}function M(e){var n=a("div.controls"),r=a("span.prev"),o=a("span.next");return r.innerHTML=e.prev,o.innerHTML=e.next,t(n,r),t(n,o),n}function S(e){var t=this;e=e||{},t._span=e.span||1,t._multiple=e.multiple||!1,t._viewDate=t._sanitizeViewDate(e.view,e.chosen),t._chosenRanges=t._sanitizeChosenRanges(e.chosen,e.view),t._firstWeekdayNum=e.firstWeekdayNum||0,t._el=a("div.calendar"),t._labels=I(),t._customRenderFn=null,t._renderRecursionFlag=!1,t.render(!0)}function j(e){e=e.slice(0),L(e);for(var t=[],n=0;n0?t[t.length-1]:null;if(o(u)?r=i=u:(r=u[0],i=u[1]),u=T(r,i)?r:[r,i],o(c))a=s=c;else{if(!c){t.push(u);continue}a=c[0],s=c[1]}if(T(r,[c])||T(D(r),[c])){var l=a.valueOf()i.valueOf()?s:i,f=T(l,d)?l:[l,d];t[t.length-1]=f}else t.push(u)}return t}function R(e,t){var n,r=t.getAttribute("data-date"),o=_(r);d(t,Y)?(e.xtag.dragType=W,n="datetoggleoff"):(e.xtag.dragType=q,n="datetoggleon"),e.xtag.dragStartEl=t,e.xtag.dragAllowTap=!0,e.noToggle||xtag.fireEvent(e,n,{detail:{date:o,iso:r}}),e.setAttribute("active",!0),t.setAttribute("active",!0)}function F(e,t){var n=t.getAttribute("data-date"),r=_(n);t!==e.xtag.dragStartEl&&(e.xtag.dragAllowTap=!1),e.noToggle||(e.xtag.dragType!==q||d(t,Y)?e.xtag.dragType===W&&d(t,Y)&&xtag.fireEvent(e,"datetoggleoff",{detail:{date:r,iso:n}}):xtag.fireEvent(e,"datetoggleon",{detail:{date:r,iso:n}})),e.xtag.dragType&&t.setAttribute("active",!0)}function U(){for(var e=xtag.query(document,"x-calendar"),t=0;t",months:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]}},V=e(new Date),q="add",W="remove",Y="chosen",z="className",J=/(\d{4})[^\d]?(\d{2})[^\d]?(\d{2})/,X=S.prototype;X.makeMonth=function(e){if(!o(e))throw"Invalid view date!";var n=this.firstWeekdayNum,r=this.chosen,i=this.labels,s=h(e),u=x(N(e),n),l=a("div.month"),d=a("div.month-label");d.textContent=i.months[s]+" "+f(e),t(l,d);for(var p=a("div.weekday-labels"),g=0;7>g;g++){var b=(n+g)%7,_=a("span.weekday-label");_.textContent=i.weekdays[b],t(p,_)}t(l,p);for(var y=a("div.week"),w=u,E=42,g=0;E>g;g++){var O=a("span.day");if(O.setAttribute("data-date",m(w)),O.textContent=v(w),h(w)!==s&&c(O,"badmonth"),T(w,r)&&c(O,Y),T(w,V)&&c(O,"today"),t(y,O),w=A(w),0===(g+1)%7){t(l,y),y=a("div.week");var k=h(w)>s||h(w)f(u);if(k)break}}return l},X._sanitizeViewDate=function(e,t){t=void 0===t?this.chosen:t;var n;if(o(e))n=e;else if(o(t))n=t;else if(i(t)&&t.length>0){var r=t[0];n=o(r)?r:r[0]}else n=V;return n},X._sanitizeChosenRanges=function(e,t){t=void 0===t?this.view:t;var n;n=o(e)?[e]:i(e)?e:null!==e&&void 0!==e&&t?[t]:[];var r=j(n);if(!this.multiple&&r.length>0){var a=r[0];return o(a)?[a]:[a[0]]}return r},X.addDate=function(e,t){o(e)&&(t?(this.chosen.push(e),this.chosen=this.chosen):this.chosen=[e])},X.removeDate=function(e){if(o(e))for(var t=this.chosen.slice(0),n=0;nn;n++)t(this.el,this.makeMonth(u)),u=E(u,0,1,0)}this._callCustomRenderer()},X._callCustomRenderer=function(){if(this._customRenderFn){if(this._renderRecursionFlag)throw"Error: customRenderFn causes recursive loop of rendering calendar; make sure your custom rendering function doesn't modify attributes of the x-calendar that would require a re-render!";for(var e=xtag.query(this.el,".day"),t=0;t=0?t:0,this.render(!1)}},view:{attribute:{},get:function(){return this._viewDate},set:function(e){var t=this._sanitizeViewDate(e),n=this._viewDate;this._viewDate=t,this.render(h(n)===h(t)&&f(n)===f(t))}},chosen:{get:function(){return this._chosenRanges},set:function(e){this._chosenRanges=this._sanitizeChosenRanges(e),this.render(!0)}},firstWeekdayNum:{get:function(){return this._firstWeekdayNum},set:function(e){e=n(e),r(e)||(e=0),this._firstWeekdayNum=e,this.render(!1)}},lastWeekdayNum:{get:function(){return(this._firstWeekdayNum+6)%7}},customRenderFn:{get:function(){return this._customRenderFn},set:function(e){this._customRenderFn=e,this.render(!0)}},chosenString:{get:function(){if(this.multiple){for(var e=this.chosen.slice(0),t=0;t0?m(this.chosen[0]):""}},firstVisibleMonth:{get:function(){return N(E(this.view,0,-Math.floor(this.span/2),0))}},lastVisibleMonth:{get:function(){return E(this.firstVisibleMonth,0,Math.max(0,this.span-1),0)}},firstVisibleDate:{get:function(){return x(this.firstVisibleMonth,this.firstWeekdayNum)}},lastVisibleDate:{get:function(){return O(k(this.lastVisibleMonth),this.lastWeekdayNum)}},labels:{get:function(){return this._labels},set:function(e){var t=this.labels;for(var n in t)if(n in e){var r=this._labels[n],o=e[n];if(i(r)){if(!i(o)||r.length!==o.length)throw"invalid label given for '"+n+"': expected array of "+r.length+" labels, got "+JSON.stringify(o);o=o.slice(0);for(var a=0;a0){var t=e.currentTarget;if(t.xtag.dragType)for(var n=e.touches[0],r=xtag.query(t,".day"),o=0;o0){var t=e[0];return o(t)?t:t[0]}return null},set:function(e){var t=this.multiple?y(e):_(e);this.xtag.calObj.chosen=t?t:null,this.xtag.calObj.chosenString?this.setAttribute("chosen",this.xtag.calObj.chosenString):this.removeAttribute("chosen")}},firstWeekdayNum:{attribute:{name:"first-weekday-num"},set:function(e){this.xtag.calObj.firstWeekdayNum=e}},noToggle:{attribute:{"boolean":!0,name:"notoggle"},set:function(e){e&&(this.chosen=null)}},firstVisibleMonth:{get:function(){return this.xtag.calObj.firstVisibleMonth}},lastVisibleMonth:{get:function(){return this.xtag.calObj.lastVisibleMonth}},firstVisibleDate:{get:function(){return this.xtag.calObj.firstVisibleDate}},lastVisibleDate:{get:function(){return this.xtag.calObj.lastVisibleDate}},customRenderFn:{get:function(){return this.xtag.calObj.customRenderFn},set:function(e){this.xtag.calObj.customRenderFn=e}},labels:{get:function(){return JSON.parse(JSON.stringify(this.xtag.calObj.labels))},set:function(e){this.xtag.calObj.labels=e;var t=this.xtag.calObj.labels,n=this.querySelector(".controls > .prev");n&&(n.textContent=t.prev);var r=this.querySelector(".controls > .next");r&&(r.textContent=t.next)}}},methods:{render:function(e){this.xtag.calObj.render(e)},prevMonth:function(){var e=this.xtag.calObj;e.view=E(e.view,0,-1,0)},nextMonth:function(){var e=this.xtag.calObj;e.view=E(e.view,0,1,0)},toggleDateOn:function(e,t){this.xtag.calObj.addDate(e,t),this.chosen=this.chosen},toggleDateOff:function(e){this.xtag.calObj.removeDate(e),this.chosen=this.chosen},toggleDate:function(e,t){this.xtag.calObj.hasChosenDate(e)?this.toggleDateOff(e):this.toggleDateOn(e,t)},hasVisibleDate:function(e,t){return this.xtag.calObj.hasVisibleDate(e,t)}}})}();!function(){function t(t){return JSON.parse(JSON.stringify(t))}function e(t){if(0===t.getUTCHours()&&0===t.getUTCMinutes()&&0===t.getUTCSeconds()&&0===t.getUTCMilliseconds())return new Date(t.valueOf());var e=new Date;return e.setUTCDate(t.getDate()),e.setUTCMonth(t.getMonth()),e.setUTCFullYear(t.getFullYear()),e.setUTCHours(0),e.setUTCMinutes(0),e.setUTCSeconds(0),e.setUTCMilliseconds(0),e}function n(t){return t instanceof Date&&!!t.getTime&&!isNaN(t.getTime())}function r(t){return t.getUTCFullYear()}function i(t){return t.getUTCMonth()}function a(t){return t.getUTCDate()}function o(t,e){var n=t.toString(),r=new Array(e).join("0");return(r+n).substr(-e)}function s(t){return[o(r(t),4),o(i(t)+1,2),o(a(t),2)].join("-")}function u(t){if(n(t))return t;var r=g.exec(t);return r?e(new Date(r[1],r[2]-1,r[3])):null}function l(t){if(n(t))return t;var r=u(t);if(r)return r;var i=Date.parse(t);return isNaN(i)?null:e(new Date(i))}function c(t){var e=t.polyfill?t.xtag.polyfillInput:t.xtag.dateInput,n=l(e.value);return n?t.removeAttribute("invalid"):t.setAttribute("invalid",!0),!!n}function d(t,e){var n=t.polyfill?t.xtag.polyfillInput:t.xtag.dateInput,r=n.value,i=l(r);t.value=e&&i?i:r}function f(t,e,n){var r=t.submitValue,i=t.value;e();var a=t.submitValue,o=t.value;(r!==a||n&&i!==o)&&xtag.fireEvent(t,"change")}function h(t){var e=t.xtag._labels;return new Array(5).join(e.yearAbbr)+"-"+new Array(3).join(e.monthAbbr)+"-"+new Array(3).join(e.dayAbbr)}var p=13,v=document.createElement("x-calendar").labels,g=/(\d{4})[^\d]?(\d{2})[^\d]?(\d{2})/;xtag.register("x-datepicker",{lifecycle:{created:function(){this.innerHTML="";var e=document.createElement("input");e.setAttribute("type","date"),xtag.addClass(e,"x-datepicker-input"),this.appendChild(e),this.xtag.dateInput=e,this.xtag._labels={yearAbbr:"Y",monthAbbr:"M",dayAbbr:"D"},this.xtag._polyfillCalLabels=t(v),this.xtag.polyfillInput=null,this.xtag.polyfillUI=null,this.polyfill=this.hasAttribute("polyfill")||"date"!==e.type.toLowerCase()}},events:{"datetoggleon:delegate(x-calendar)":function(t){var e=t.currentTarget;if(t.detail&&t.detail.date){var n=l(t.detail.date);f(e,function(){e.value=n?s(n):"",xtag.fireEvent(e,"input")})}},"datetoggleoff:delegate(x-calendar)":function(t){t.currentTarget.value=null},focus:function(t){t.currentTarget.setAttribute("focused",!0)},"blur:delegate(.x-datepicker-input)":function(t){t.currentTarget.removeAttribute("focused")},"blur:delegate(.x-datepicker-polyfill-input)":function(t){var e=t.currentTarget;e.removeAttribute("focused"),f(e,function(){d(e,!0)},!0)},"touchstart:delegate(.x-datepicker-polyfill-input)":function(){this.setAttribute("readonly",!0)},"tapstart:delegate(x-calendar)":function(t){t.preventDefault(),t.baseEvent&&t.baseEvent.preventDefault()},"keypress:delegate(.x-datepicker-polyfill-input)":function(t){var e=t.keyCode,n=t.currentTarget;e===p&&f(n,function(){d(n,!0)},!0)},"input:delegate(.x-datepicker-input)":function(t){var e=t.currentTarget;f(e,function(){d(e,!0),t.stopPropagation(),xtag.fireEvent(e,"input")})},"input:delegate(.x-datepicker-polyfill-input)":function(t){var e=t.currentTarget;f(e,function(){d(e,!1),t.stopPropagation(),xtag.fireEvent(e,"input")})},"change:delegate(.x-datepicker-input)":function(t){t.stopPropagation(),xtag.fireEvent(t.currentTarget,"change")},"change:delegate(.x-datepicker-polyfill-input)":function(t){t.stopPropagation();var e=t.currentTarget;f(e,function(){d(e,!1)})}},accessors:{name:{attribute:{selector:".x-datepicker-input"},set:function(t){var e=this.xtag.dateInput;null===t||void 0===t?e.removeAttribute("name"):e.setAttribute("name",t)}},submitValue:{get:function(){return this.xtag.dateInput.value}},value:{attribute:{skip:!0},get:function(){return this.polyfill?this.xtag.polyfillInput.value:this.xtag.dateInput.value},set:function(t){var e=l(t),n=e?s(e):null,r=this.xtag.dateInput,i=this.xtag.polyfillInput,a=this.xtag.polyfillUI;if(null===t||void 0===t)this.removeAttribute("value"),r.value="",i&&(i.value=""),a&&(a.chosen=null);else{var o,u=n?n:t;i?t!==i.value?(i.value=u,o=u):o=t:o=u,this.setAttribute("value",o),n?(r.value=n,a&&(a.chosen=e,a.view=e)):(r.value="",a&&(a.chosen=null))}c(this)}},polyfill:{attribute:{"boolean":!0},set:function(t){var e=this.xtag.dateInput;if(t){if(e.setAttribute("type","hidden"),e.setAttribute("readonly",!0),!this.xtag.polyfillInput){var n=document.createElement("input");xtag.addClass(n,"x-datepicker-polyfill-input"),n.setAttribute("type","text"),n.setAttribute("placeholder",h(this)),n.value=this.xtag.dateInput.value,this.xtag.polyfillInput=n,this.appendChild(n)}if(this.xtag.polyfillInput.removeAttribute("disabled"),!this.xtag.polyfillUI){var r=document.createElement("x-calendar");xtag.addClass(r,"x-datepicker-polyfill-ui"),r.chosen=this.value,r.view=this.xtag.dateInput.value,r.controls=!0,r.labels=this.xtag._polyfillCalLabels,this.xtag.polyfillUI=r,this.appendChild(r)}}else{"date"!==e.getAttribute("type")&&e.setAttribute("type","date"),e.removeAttribute("readonly");var i=this.xtag.polyfillInput;i&&i.setAttribute("disabled",!0)}}},labels:{get:function(){var e={},n=this.xtag._labels,r=this.xtag._polyfillCalLabels;for(var i in n)e[i]=n[i];for(var i in r)e[i]=r[i];return t(e)},set:function(t){var e=this.xtag.polyfillUI,n=this.xtag.polyfillInput;if(e)e.labels=t,this.xtag._polyfillCalLabels=e.labels;else{var r=this.xtag._polyfillCalLabels;for(var i in r)i in t&&(r[i]=t[i])}var a=this.xtag._labels;for(var i in a)i in t&&(a[i]=t[i]);n&&n.setAttribute("placeholder",h(this))}}}})}();!function(){function t(t,e){this._historyStack=[],this.currIndex=-1,this._itemCap=void 0,this.itemCap=e,this._validatorFn=t?t:function(){return!0}}function e(t){var e=window.getComputedStyle(t),n=xtag.prefix.js+"TransitionDuration";return e.transitionDuration?e.transitionDuration:e[n]}function n(t){if("string"!=typeof t)return 0;var e=/^(\d*\.?\d+)(m?s)$/,n=t.toLowerCase().match(e);if(n){var r=n[1],i=n[2],a=parseFloat(r);if(isNaN(a))throw"value error";if("s"===i)return 1e3*a;if("ms"===i)return a;throw"unit error"}return 0}function r(t,e){return(t%e+e)%e}function i(t){return xtag.queryChildren(t,"x-card")}function a(t,e){var n=i(t);return isNaN(parseInt(e))||0>e||e>=n.length?null:n[e]}function o(t,e){var n=i(t);return n.indexOf(e)}function s(t,r,a,s,u){t.xtag._selectedCard=a;var l=new Date;t.xtag._lastAnimTimestamp=l;var f=function(){l===t.xtag._lastAnimTimestamp&&(c(t),xtag.fireEvent(t,"shuffleend",{detail:{oldCard:r,newCard:a}}))};if(a===r)return f(),void 0;var h=!1,v=!1,p=!1,g=function(){h&&v&&(i(t).forEach(function(t){t.removeAttribute("selected"),t.removeAttribute("leaving")}),r.setAttribute("leaving",!0),a.setAttribute("selected",!0),t.xtag._selectedCard=a,t.selectedIndex=o(t,a),u&&(r.setAttribute("reverse",!0),a.setAttribute("reverse",!0)),xtag.fireEvent(t,"shufflestart",{detail:{oldCard:r,newCard:a}}))},m=function(){p||h&&v&&b()},b=function(){p=!0;var t=!1,i=!1,o=!1,u=function(e){o||(e.target===r?(t=!0,r.removeEventListener("transitionend",u)):e.target===a&&(i=!0,a.removeEventListener("transitionend",u)),t&&i&&(o=!0,f()))};r.addEventListener("transitionend",u),a.addEventListener("transitionend",u);var l=n(e(r)),c=n(e(a)),h=Math.max(l,c),v=1.15,g="none"===s.toLowerCase()?0:Math.ceil(h*v);0===g?(o=!0,r.removeEventListener("transitionend",u),a.removeEventListener("transitionend",u),r.removeAttribute(d),a.removeAttribute(d),f()):(r.removeAttribute(d),a.removeAttribute(d),window.setTimeout(function(){o||(o=!0,r.removeEventListener("transitionend",u),a.removeEventListener("transitionend",u),f())},g))};xtag.skipTransition(r,function(){return r.setAttribute("card-anim-type",s),r.setAttribute(d,!0),h=!0,g(),m},this),xtag.skipTransition(a,function(){return a.setAttribute("card-anim-type",s),a.setAttribute(d,!0),v=!0,g(),m},this)}function u(t,e,n,r,a){var o=t.xtag._selectedCard;if(o===e){var u={detail:{oldCard:o,newCard:e}};return xtag.fireEvent(t,"shufflestart",u),xtag.fireEvent(t,"shuffleend",u),void 0}c(t),void 0===n&&(console.log("defaulting to none transition"),n="none");var l;switch(r){case"forward":l=!1;break;case"reverse":l=!0;break;default:o||(l=!1);var d=i(t);l=d.indexOf(e)0?t.xtag.history&&t.xtag.history.numStates>0?t.xtag.history.currState:e[0]:null),e.forEach(function(t){t.removeAttribute("leaving"),t.removeAttribute(d),t.removeAttribute("card-anim-type"),t.removeAttribute("reverse"),t!==n?t.removeAttribute("selected"):t.setAttribute("selected",!0)}),t.xtag._selectedCard=n,t.selectedIndex=o(t,n)}}var d="_before-animation",f=t.prototype;f.pushState=function(t){if(this.canRedo&&this._historyStack.splice(this.currIndex+1,this._historyStack.length-(this.currIndex+1)),this._historyStack.push(t),this.currIndex=this._historyStack.length-1,this.sanitizeStack(),"none"!==this._itemCap&&this._historyStack.length>this._itemCap){var e=this._historyStack.length;this._historyStack.splice(0,e-this._itemCap),this.currIndex=this._historyStack.length-1}},f.sanitizeStack=function(){for(var t,e=this._validatorFn,n=0;n=t)throw"attempted to set invalid item cap: "+t;this._itemCap=e}}},canUndo:{get:function(){return this.currIndex>0}},canRedo:{get:function(){return this.currIndex=0&&t-1&&this.shuffleTo(r(a+1,e.length),t)},shufflePrev:function(t){t=t?t:"auto";var e=i(this),n=this.xtag._selectedCard,a=e.indexOf(n);a>-1&&this.shuffleTo(r(a-1,e.length),t)},getAllCards:function(){return i(this)},getSelectedCard:function(){return this.xtag._selectedCard},getCardIndex:function(t){return o(this,t)},getCardAt:function(t){return a(this,t)},historyBack:function(t){var e=this.xtag.history;if(e.canUndo){e.backwards();var n=e.currState;n&&u(this,n,this.transitionType,t,!0)}},historyForward:function(t){var e=this.xtag.history;if(e.canRedo){e.forwards();var n=e.currState;n&&u(this,n,this.transitionType,t,!0)}}}}),xtag.register("x-card",{lifecycle:{inserted:function(){var t=this,e=t.parentNode;e&&"x-deck"===e.tagName.toLowerCase()&&(c(e),t.xtag.parentDeck=e,xtag.fireEvent(e,"cardadd",{detail:{card:t}}))},created:function(){var t=this.parentNode;t&&"x-deck"===t.tagName.toLowerCase()&&(this.xtag.parentDeck=t)},removed:function(){var t=this;if(t.xtag.parentDeck){var e=t.xtag.parentDeck;e.xtag.history.sanitizeStack(),c(e),xtag.fireEvent(e,"cardremove",{detail:{card:t}})}}},accessors:{transitionOverride:{attribute:{name:"transition-override"}}},methods:{show:function(){var t=this.parentNode;t===this.xtag.parentDeck&&t.shuffleTo(t.getCardIndex(this))}}})}();!function(){xtag.register("x-flipbox",{lifecycle:{created:function(){this.firstElementChild&&xtag.skipTransition(this.firstElementChild,function(){}),this.lastElementChild&&xtag.skipTransition(this.lastElementChild,function(){}),this.hasAttribute("direction")||(this.xtag._direction="right")}},events:{"transitionend:delegate(*:first-child)":function(t){var e=t.target,n=e.parentNode;"x-flipbox"===n.nodeName.toLowerCase()&&xtag.fireEvent(n,"flipend")},"show:delegate(*:first-child)":function(t){var e=t.target,n=e.parentNode;"x-flipbox"===n.nodeName.toLowerCase()&&(n.flipped=!1)},"show:delegate(*:last-child)":function(t){var e=t.target,n=e.parentNode;"x-flipbox"===n.nodeName.toLowerCase()&&(n.flipped=!0)}},accessors:{direction:{attribute:{},get:function(){return this.xtag._direction},set:function(t){xtag.skipTransition(this.firstElementChild,function(){this.setAttribute("_anim-direction",t)},this),xtag.skipTransition(this.lastElementChild,function(){this.setAttribute("_anim-direction",t)},this),this.xtag._direction=t}},flipped:{attribute:{"boolean":!0}}},methods:{toggle:function(){this.flipped=!this.flipped},showFront:function(){this.flipped=!1},showBack:function(){this.flipped=!0}}})}();!function(){function t(t,e){t.xtag.iconEl.nodeName===o?(e=void 0!==e?e:t.xtag.iconEl.src,e||(t.xtag.iconEl.src=a),t.xtag.iconEl.style.display=e&&e!==a?"":"none"):t.xtag.iconEl.style.display=t.xtag.iconEl.innerHTML?"":"none",t.xtag.contentEl.style.display=t.xtag.contentEl.innerHTML?"":"none"}function e(t){var e=t.xtag.iconEl,n=t.xtag.contentEl;if(n&&e){var r=e.parentNode;if(!r||n.parentNode!==r)throw"invalid parent node of iconbutton's icon / label";switch(t.iconAnchor){case"right":case"bottom":r.insertBefore(n,e);break;default:r.insertBefore(e,n)}}}function n(){xtag.query(document,"x-iconbutton[active]").forEach(function(t){t.removeAttribute("active")})}function r(){xtag.query(document,"x-iconbutton:focus").forEach(function(t){t.blur()})}function i(t){n(t),r()}var a="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",o=document.createElement("img").nodeName,s=function(t){return t.xtag.contentEl.textContent},u=function(t,e){t.xtag.contentEl.textContent=e},c=32,l=13,d=null;xtag.register("x-iconbutton",{lifecycle:{created:function(){var n=this.innerHTML;this.innerHTML="
"+""+"
"+"
",this.xtag.iconEl=this.querySelector(".x-iconbutton-icon"),this.xtag.contentEl=this.querySelector(".x-iconbutton-content"),this.xtag.contentEl.innerHTML=n,this.textGetter||(this.textGetter=s),this.textSetter||(this.textSetter=u),e(this),t(this),this.hasAttribute("tabindex")||this.setAttribute("tabindex",0)},inserted:function(){d||(d={tapend:xtag.addEvent(document,"tapend",i),dragend:xtag.addEvent(document,"dragend",i),keyup:xtag.addEvent(document,"keyup",n)}),e(this),t(this)},removed:function(){if(d&&!document.query("x-calendar")){for(var t in d)xtag.removeEvent(document,t,d[t]);d=null}},attributeChanged:function(){var n=this.iconEl,r=this.contentEl;n.parentNode&&n.parentNode.parentNode===this&&r.parentNode&&r.parentNode.parentNode===this||console.warn("inner DOM of the iconbutton appears to be out of sync; make sure that editing innerHTML or textContent is done through .contentEl, not directly on the iconbutton itself"),e(this),t(this)}},events:{tapstart:function(t){t.currentTarget.setAttribute("active",!0)},keypress:function(t){var e=t.key||t.keyCode;(e===c||e===l)&&t.currentTarget.click()},keydown:function(t){var e=t.key||t.keyCode;(e===c||e===l)&&t.currentTarget.setAttribute("active",!0)}},accessors:{src:{attribute:{},get:function(){return this.xtag.iconEl.getAttribute("src")},set:function(e){this.xtag.iconEl.setAttribute("src",e),this.xtag.iconEl.src=e,t(this,e)}},active:{attribute:{}},iconAnchor:{attribute:{name:"icon-anchor"},set:function(){e(this)}},iconEl:{get:function(){return this.xtag.iconEl}},contentEl:{get:function(){return this.xtag.contentEl}}}})}();!function(){function t(t){var e=t.firstElementChild;if(!e)return{header:null,section:null,footer:null};var n=e.nextElementSibling;return{header:"HEADER"==e.nodeName?e:null,section:"SECTION"==e.nodeName?e:n&&"SECTION"==n.nodeName?n:null,footer:"FOOTER"==t.lastElementChild.nodeName?t.lastElementChild:null}}function e(t,e){var n=e.__layoutScroll__=e.__layoutScroll__||Object.defineProperty(e,"__layoutScroll__",{value:{last:e.scrollTop}}).__layoutScroll__,r=e.scrollTop,i=t.scrollBuffer;return n.max=n.max||Math.max(r+i,i),n.min=n.min||Math.max(r-i,i),n}function n(t,e){t.setAttribute("content-maximizing",null),e.section&&(e.header&&(e.section.style.marginTop="-"+e.header.getBoundingClientRect().height+"px"),e.footer&&(e.section.style.marginBottom="-"+e.footer.getBoundingClientRect().height+"px"))}function r(t,e){t.removeAttribute("content-maximized"),t.removeAttribute("content-maximizing"),e.section&&(e.section.style.marginTop="",e.section.style.marginBottom="")}function i(i){if(!i.currentTarget.hasAttribute("content-maximizing")){var a=i.target,o=i.currentTarget;if(this.scrollhide&&(a.parentNode==o||xtag.matchSelector(a,o.scrollTarget))){var s=a.scrollTop,u=o.scrollBuffer,c=t(o),l=e(o,a);s>l.last?l.min=Math.max(s-u,u):sl.max&&!o.hasAttribute("content-maximized")?n(o,c):s x-slide[selected]")[0]||0;return[e?xtag.query(t,"x-slides > x-slide").indexOf(e):e,t.firstElementChild.children.length-1]}function e(t,e){var n=xtag.toArray(t.firstElementChild.children);n.forEach(function(t){t.removeAttribute("selected")}),n[e||0].setAttribute("selected",!0),t.firstElementChild.style[r]="translate"+(t.getAttribute("orientation")||"x")+"("+(e||0)*(-100/n.length)+"%)"}function n(t){var n=this.firstElementChild;if(n&&n.children.length&&"x-slides"==n.tagName.toLowerCase()){var i=xtag.toArray(n.children),a=100/(i.length||1),o=this.getAttribute("orientation")||"x",s="x"==o?["width","height"]:["height","width"];if(n.style[s[1]]="100%",n.style[s[0]]=100*i.length+"%",n.style[r]="translate"+o+"(0%)",i.forEach(function(t){t.style[s[0]]=a+"%",t.style[s[1]]="100%"}),t){var u=n.querySelector("[selected]");u&&e(this,i.indexOf(u)||0)}}}var r=xtag.prefix.js+"Transform";xtag.register("x-slidebox",{lifecycle:{created:function(){n()}},events:{transitionend:function(t){t.target==this.firstElementChild&&xtag.fireEvent(this,"slideend")},"show:delegate(x-slide)":function(t){var e=t.target;if("x-slides"===e.parentNode.nodeName.toLowerCase()&&"x-slidebox"===e.parentNode.parentNode.nodeName.toLowerCase()){var n=e.parentNode,r=n.parentNode,i=xtag.query(n,"x-slide");r.slideTo(i.indexOf(e))}}},accessors:{orientation:{get:function(){return this.getAttribute("orientation")},set:function(t){var e=this;xtag.skipTransition(e.firstElementChild,function(){e.setAttribute("orientation",t.toLowerCase()),n.call(e,!0)})}}},methods:{slideTo:function(t){e(this,t)},slideNext:function(){var n=t(this);n[0]++,e(this,n[0]>n[1]?0:n[0])},slidePrevious:function(){var n=t(this);n[0]--,e(this,n[0]<0?n[1]:n[0])}}}),xtag.register("x-slide",{lifecycle:{inserted:function(){var t=this.parentNode.parentNode;"x-slidebox"==t.tagName.toLowerCase()&&n.call(t,!0)},created:function(){if(this.parentNode){var t=this.parentNode.parentNode;"x-slidebox"==t.tagName.toLowerCase()&&n.call(t,!0)}}}})}();!function(){function t(t){return!isNaN(parseFloat(t))}function e(e,n){return e.hasAttribute(n)&&t(e.getAttribute(n))}function n(e,n,r,i){if(i=i?i:Math.round,r=t(r)?r:0,!t(e))throw"invalid value "+e;if(!t(n)||0>=+n)throw"invalid step "+n;return i((e-r)/n)*n+r}function r(t,e,r,i){return e>t?e:t>r?Math.max(e,n(r,i,e,Math.floor)):t}function i(t,e,i){var a=n((e-t)/2+t,i,t);return r(a,t,e,i)}function a(t,e){var n=t.min,r=t.max;return(e-n)/(r-n)}function o(t,e){var n=t.min,r=t.max;return(r-n)*e+n}function s(t,e){e=Math.min(Math.max(0,e),1);var i=o(t,e),a=n(i,t.step,t.min);return r(a,t.min,t.max,t.step)}function u(t,e){var n=t.xtag.polyFillSliderThumb;if(n){var r=t.getBoundingClientRect(),i=n.getBoundingClientRect(),o=a(t,e),s=Math.max(r.width-i.width,0),u=s*o,l=u/r.width;n.style.left=100*l+"%"}}function l(t){u(t,t.value)}function c(t,e){var n=t.xtag.rangeInputEl,r=n.getBoundingClientRect(),i=e-r.left;t.value;var a=s(t,i/r.width);t.value=a,xtag.fireEvent(t,"input"),l(t)}function d(t,e,n){t.xtag.dragInitVal=t.value,c(t,e,n);var r=t.xtag.callbackFns,i=function(t,e){document.body.addEventListener(t,e)};i("mousemove",r.onMouseDragMove),i("touchmove",r.onTouchDragMove),i("mouseup",r.onDragEnd),i("touchend",r.onDragEnd);var a=t.xtag.polyFillSliderThumb;a&&a.setAttribute("active",!0)}function h(t,e,n){c(t,e,n)}function f(t){return{onMouseDragStart:function(e){e.button===v&&(d(t,e.pageX,e.pageY),e.preventDefault())},onTouchDragStart:function(e){var n=e.targetTouches;1===n.length&&(d(t,n[0].pageX,n[0].pageY),e.preventDefault())},onMouseDragMove:function(e){h(t,e.pageX,e.pageY),e.preventDefault()},onTouchDragMove:function(e){var n=e.targetTouches;1===n.length&&(h(t,n[0].pageX,n[0].pageY),e.preventDefault())},onDragEnd:function(e){var n=t.xtag.callbackFns,r=function(t,e){document.body.removeEventListener(t,e)};r("mousemove",n.onMouseDragMove),r("touchmove",n.onTouchDragMove),r("mouseup",n.onDragEnd),r("touchend",n.onDragEnd);var i=t.xtag.polyFillSliderThumb;i&&i.removeAttribute("active"),t.value!==t.xtag.dragInitVal&&xtag.fireEvent(t,"change"),t.xtag.dragInitVal=null,e.preventDefault()},onKeyDown:function(t){var e=t.keyCode;if(e in g){var n=this.value,r=this.min,i=this.max,a=this.step,o=Math.max(0,i-r),s=Math.max(o/10,a);switch(g[e]){case"LEFT_ARROW":case"DOWN_ARROW":this.value=Math.max(n-a,r);break;case"RIGHT_ARROW":case"UP_ARROW":this.value=Math.min(n+a,i);break;case"HOME":this.value=r;break;case"END":this.value=i;break;case"PAGE_DOWN":this.value=Math.max(n-s,r);break;case"PAGE_UP":this.value=Math.min(n+s,i)}this.value!==n&&xtag.fireEvent(this,"change"),t.preventDefault()}}}}var g={33:"PAGE_UP",34:"PAGE_DOWN",35:"END",36:"HOME",37:"LEFT_ARROW",38:"UP_ARROW",39:"RIGHT_ARROW",40:"DOWN_ARROW"},v=0;xtag.register("x-slider",{lifecycle:{created:function(){var t=this;t.xtag.callbackFns=f(t),t.xtag.dragInitVal=null;var n=document.createElement("input");xtag.addClass(n,"input"),n.setAttribute("type","range");var r=e(t,"max")?+t.getAttribute("max"):100,a=e(t,"min")?+t.getAttribute("min"):0,o=e(t,"step")?+t.getAttribute("step"):1;o=o>0?o:1;var s=e(t,"value")?+t.getAttribute("value"):i(a,r,o);n.setAttribute("max",r),n.setAttribute("min",a),n.setAttribute("step",o),n.setAttribute("value",s),t.xtag.rangeInputEl=n,t.appendChild(t.xtag.rangeInputEl),t.xtag.polyFillSliderThumb=null,"range"!==n.type||t.hasAttribute("polyfill")?t.setAttribute("polyfill",!0):t.removeAttribute("polyfill"),l(t)},attributeChanged:function(){l(this)}},events:{"change:delegate(input[type=range])":function(t){t.stopPropagation(),xtag.fireEvent(t.currentTarget,"change")},"input:delegate(input[type=range])":function(t){t.stopPropagation(),xtag.fireEvent(t.currentTarget,"input")},"focus:delegate(input[type=range])":function(t){var e=t.currentTarget;xtag.fireEvent(e,"focus",{},{bubbles:!1})},"blur:delegate(input[type=range])":function(t){var e=t.currentTarget;xtag.fireEvent(e,"blur",{},{bubbles:!1})}},accessors:{polyfill:{attribute:{"boolean":!0},set:function(t){var e=this.xtag.callbackFns;if(t){if(this.setAttribute("tabindex",0),this.xtag.rangeInputEl.setAttribute("tabindex",-1),this.xtag.rangeInputEl.setAttribute("readonly",!0),!this.xtag.polyFillSliderThumb){var n=document.createElement("span");xtag.addClass(n,"slider-thumb"),this.xtag.polyFillSliderThumb=n,this.appendChild(n)}l(this),this.addEventListener("mousedown",e.onMouseDragStart),this.addEventListener("touchstart",e.onTouchDragStart),this.addEventListener("keydown",e.onKeyDown)}else this.removeAttribute("tabindex"),this.xtag.rangeInputEl.removeAttribute("tabindex"),this.xtag.rangeInputEl.removeAttribute("readonly"),this.removeEventListener("mousedown",e.onMouseDragStart),this.removeEventListener("touchstart",e.onTouchDragStart),this.removeEventListener("keydown",e.onKeyDown)}},max:{attribute:{selector:"input[type=range]"},get:function(){return+this.xtag.rangeInputEl.getAttribute("max")}},min:{attribute:{selector:"input[type=range]"},get:function(){return+this.xtag.rangeInputEl.getAttribute("min")}},step:{attribute:{selector:"input[type=range]"},get:function(){return+this.xtag.rangeInputEl.getAttribute("step")}},name:{attribute:{selector:"input[type=range]"},set:function(t){var e=this.xtag.rangeInputEl;null===t||void 0===t?e.removeAttribute("name"):e.setAttribute("name",t)}},value:{attribute:{selector:"input[type=range]"},get:function(){return+this.xtag.rangeInputEl.value},set:function(e){t(e)||(e=i(this.min,this.max,this.step)),e=+e;var a=this.min,o=this.max,s=this.step,u=n(e,s,a),c=r(u,a,o,s);this.xtag.rangeInputEl.value=c,l(this)}},inputElem:{get:function(){return this.xtag.rangeInputEl}}},methods:{}})}();!function(){function t(){var t=document.documentElement,e={left:t.scrollLeft||document.body.scrollLeft||0,top:t.scrollTop||document.body.scrollTop||0,width:t.clientWidth,height:t.clientHeight};return e.right=e.left+e.width,e.bottom=e.top+e.height,e}function e(e){var n=e.getBoundingClientRect(),r=t(),i=r.left,a=r.top;return{left:n.left+i,right:n.right+i,top:n.top+a,bottom:n.bottom+a,width:n.width,height:n.height}}function n(t,e,n){return n.left<=t&&t<=n.right&&n.top<=e&&e<=n.bottom}function r(t){if("x-tabbar"===t.parentNode.nodeName.toLowerCase()){var e=t.targetEvent,n=t.targetSelector?xtag.query(document,t.targetSelector):t.targetElems;n.forEach(function(t){xtag.fireEvent(t,e)})}}xtag.register("x-tabbar",{lifecycle:{created:function(){this.xtag.overallEventToFire="show"}},events:{"tap:delegate(x-tabbar-tab)":function(){var t=xtag.query(this.parentNode,"x-tabbar-tab[selected]");t.length&&t.forEach(function(t){t.removeAttribute("selected")}),this.setAttribute("selected",!0)}},accessors:{tabs:{get:function(){return xtag.queryChildren(this,"x-tabbar-tab")}},targetEvent:{attribute:{name:"target-event"},get:function(){return this.xtag.overallEventToFire},set:function(t){this.xtag.overallEventToFire=t}}},methods:{}}),xtag.register("x-tabbar-tab",{lifecycle:{created:function(){this.xtag.targetSelector=null,this.xtag.overrideTargetElems=null,this.xtag.targetEvent=null}},events:{tap:function(t){var i=t.currentTarget;if(t.changedTouches){if(!t.changedTouches.length)return;var a=t.changedTouches[0],o=e(i);n(a.pageX,a.pageY,o)&&r(i)}else r(i)}},accessors:{targetSelector:{attribute:{name:"target-selector"},get:function(){return this.xtag.targetSelector},set:function(t){this.xtag.targetSelector=t,t&&(this.xtag.overrideTargetElems=null)}},targetElems:{get:function(){return this.targetSelector?xtag.query(document,this.targetSelector):null!==this.xtag.overrideTargetElems?this.xtag.overrideTargetElems:[]},set:function(t){this.removeAttribute("target-selector"),this.xtag.overrideTargetElems=t}},targetEvent:{attribute:{name:"target-event"},get:function(){if(this.xtag.targetEvent)return this.xtag.targetEvent;if("x-tabbar"===this.parentNode.nodeName.toLowerCase())return this.parentNode.targetEvent;throw"tabbar-tab is missing event to fire"},set:function(t){this.xtag.targetEvent=t}}},methods:{}})}();!function(){function t(t){var e=t.xtag.inputEl.form;e?t.removeAttribute("x-toggle-no-form"):t.setAttribute("x-toggle-no-form",""),t.xtag.scope=t.parentNode?e||document:null}function e(t){var e={},n=t==document?"[x-toggle-no-form]":"";xtag.query(t,"x-toggle[name]"+n).forEach(function(r){var i=r.name;if(i&&!e[i]){var a=xtag.query(t,'x-toggle[name="'+i+'"]'+n),o=a.length>1?"radio":"checkbox";a.forEach(function(t){t.xtag&&t.xtag.inputEl&&(t.type=o)}),e[i]=!0}})}var n=!1;xtag.addEvents(document,{DOMComponentsLoaded:function(){e(document),xtag.toArray(document.forms).forEach(e)},WebComponentsReady:function(){e(document),xtag.toArray(document.forms).forEach(e)},keydown:function(t){n=t.shiftKey},keyup:function(t){n=t.shiftKey},"focus:delegate(x-toggle)":function(){this.setAttribute("focus","")},"blur:delegate(x-toggle)":function(){this.removeAttribute("focus")},"tap:delegate(x-toggle)":function(){if(n&&this.group){var t=this.groupToggles,e=this.xtag.scope.querySelector('x-toggle[group="'+this.group+'"][active]');if(e&&this!=e){var r=this,i=e.checked,a=t.indexOf(this),o=t.indexOf(e),s=Math.min(a,o),u=Math.max(a,o);t.slice(s,u).forEach(function(t){t!=r&&(t.checked=i)})}}},"change:delegate(x-toggle)":function(){var t=this.xtag.scope.querySelector('x-toggle[group="'+this.group+'"][active]');this.checked=n&&t&&this!=t?t.checked:this.xtag.inputEl.checked,this.group&&(this.groupToggles.forEach(function(t){t.active=!1}),this.active=!0)}}),xtag.register("x-toggle",{lifecycle:{created:function(){this.innerHTML='
',this.xtag.inputWrapEl=this.querySelector(".x-toggle-input-wrap"),this.xtag.inputEl=this.xtag.inputWrapEl.querySelector("input"),this.xtag.contentWrapEl=this.querySelector(".x-toggle-content-wrap"),this.xtag.checkEl=this.querySelector(".x-toggle-check"),this.xtag.contentEl=this.querySelector(".x-toggle-content"),this.type="checkbox",t(this);var e=this.getAttribute("name");e&&(this.xtag.inputEl.name=this.getAttribute("name")),this.hasAttribute("checked")&&(this.checked=!0)},inserted:function(){t(this),this.parentNode&&"x-togglegroup"===this.parentNode.nodeName.toLowerCase()&&(this.parentNode.hasAttribute("name")&&(this.name=this.parentNode.getAttribute("name")),this.parentNode.hasAttribute("group")&&(this.group=this.parentNode.getAttribute("group")),this.setAttribute("no-box",!0)),this.name&&e(this.xtag.scope)},removed:function(){e(this.xtag.scope),t(this)}},accessors:{noBox:{attribute:{name:"no-box","boolean":!0},set:function(){}},type:{attribute:{},set:function(t){this.xtag.inputEl.type=t}},label:{attribute:{},get:function(){return this.xtag.contentEl.innerHTML},set:function(t){this.xtag.contentEl.innerHTML=t}},active:{attribute:{"boolean":!0}},group:{attribute:{}},groupToggles:{get:function(){return xtag.query(this.xtag.scope,'x-toggle[group="'+this.group+'"]')}},name:{attribute:{skip:!0},get:function(){return this.getAttribute("name")},set:function(t){null===t?(this.removeAttribute("name"),this.type="checkbox"):this.setAttribute("name",t),this.xtag.inputEl.name=t,e(this.xtag.scope)}},checked:{get:function(){return this.xtag.inputEl.checked},set:function(t){var e=this.name,n="true"===t||t===!0;if(e){var r=this.xtag.scope==document?"[x-toggle-no-form]":"",i='x-toggle[checked][name="'+e+'"]'+r,a=this.xtag.scope.querySelector(i);a&&a.removeAttribute("checked")}this.xtag.inputEl.checked=n,n?this.setAttribute("checked",""):this.removeAttribute("checked")}},value:{attribute:{},get:function(){return this.xtag.inputEl.value},set:function(t){this.xtag.inputEl.value=t}}}})}();!function(){xtag.register("x-togglegroup",{lifecycle:{created:function(){this.options.forEach(function(t){this.name&&(t.name=this.name),this.group&&(t.group=this.group),t.noBox=!0}.bind(this))}},events:{},accessors:{name:{attribute:{selector:"x-toggle"},set:function(t){this.options.forEach(function(e){e.name=t})}},group:{attribute:{selector:"x-toggle"},set:function(t){this.options.forEach(function(e){e.group=t})}},options:{get:function(){return xtag.queryChildren(this,"x-toggle")}}},methods:{}})}();!function(){function t(t){return t in D}function e(){var t=document.documentElement,e={left:t.scrollLeft||document.body.scrollLeft||0,top:t.scrollTop||document.body.scrollTop||0,width:t.clientWidth,height:t.clientHeight};return e.right=e.left+e.width,e.bottom=e.top+e.height,e}function n(t){var n=t.getBoundingClientRect(),r=e(),i=r.left,o=r.top;return{left:n.left+i,right:n.right+i,top:n.top+o,bottom:n.bottom+o,width:n.width,height:n.height}}function r(t,e){var e=void 0!==e?e:n(t);return{x:t.offsetWidth?e.width/t.offsetWidth:1,y:t.offsetHeight?e.height/t.offsetHeight:1}}function i(t,e){if(t.righto||d.bottom>a?u.push(c):s.push(c)}var h=s.length>0?s:u;return h[0].orient}function E(t){t.setAttribute("_force-display",!0)}function w(t){t.removeAttribute("_force-display")}function A(e,n){e.removeAttribute(F);var r=e.xtag.arrowEl,i=[];for(var o in D){r.setAttribute(R,D[o]);var a=T(e,n,o);a&&(E(e),v(e,n)||i.push({orient:o,rect:a}),w(e))}var s=_(e,i);return s||(s="top"),e.setAttribute(F,s),r.setAttribute(R,D[s]),t(s)&&s!==o?T(e,n,s):a}function T(i,o,a,s){if(!i.parentNode)return i.left="",i.top="",null;s=void 0===s?0:s;var u=i.xtag.arrowEl;if(!t(a))return A(i,o);var l=i.offsetParent?i.offsetParent:i.parentNode;s||(i.style.top="",i.style.left="",u.style.top="",u.style.left=""),E(i);var c=e(),d=n(l),g=r(l,d),p=l.clientWidth*g.x,v=l.clientHeight*g.y,_=n(o),C=_.width,k=_.height,N=n(i),S=r(i,N),O=N.width,L=N.height,D=N.width,M=N.height,I=(D-O)/2,R=(M-L)/2,F=u.offsetWidth*S.x,j=u.offsetHeight*S.y,U=45,P=m(F,j,U);F=P.width,j=P.height,"top"===a||"bottom"===a?j/=2:F/=2;var H=y(i,d),q=H.left,V=H.top,W=H.right-O,z=H.bottom-L,B={left:_.left+(C-O)/2,top:_.top+(k-L)/2},Y=B.left,G=B.top;if("top"===a)G=_.top-M-j,z-=j;else if("bottom"===a)G=_.top+k+j,z-=j;else if("left"===a)Y=_.left-D-F,W-=F;else{if("right"!==a)throw"invalid orientation "+a;Y=_.left+C+F,W-=F}var J=b(Y,q,W),X=b(G,V,z);J+=I,X+=R;var K,$,Z=function(t){if(!window.getComputedStyle||t===document||t===document.documentElement)return!1;var e;try{e=window.getComputedStyle(t)}catch(n){return!1}return e&&"fixed"===e.position},Q=h(o,Z);if(Q&&!f(i,Q))K=J-c.left,$=X-c.top,i.setAttribute("_target-fixed",!0);else{var te=x(J,X,window,l,g);K=te.left,$=te.top,i.removeAttribute("_target-fixed")}i.style.top=$+"px",i.style.left=K+"px";var ee,ne,re,ie,oe;"top"===a||"bottom"===a?(ie=(C-F)/2,oe=_.left-J,ee=O-F,ne=O,re="left"):(ie=(k-j)/2,oe=_.top-X,ee=L-j,ne=L,re="top");var ae=b(ie+oe,0,ee),se=ne?ae/ne:0;u.style[re]=100*se+"%";var ue=i.offsetWidth*S.x,le=i.offsetHeight*S.y,ce=l.clientWidth*g.x,de=l.clientHeight*g.y;w(i);var he=2;return he>s&&(O!==ue||L!==le||p!==ce||v!==de)?T(i,o,a,s+1):{left:J,top:X,width:ue,height:le,right:J+ue,bottom:X+le}}function C(t,e){e===t&&console.warn("The tooltip's target element is the tooltip itself! Is this intentional?");var n=t.xtag.arrowEl;n.parentNode||console.warn("The inner component DOM of the tooltip appears to be missing. Make sure to edit tooltip contents through the .contentEl property instead ofdirectly on the x-tooltip to avoid clobbering the component's internals.");var r=t.orientation,i=function(){w(t),t.setAttribute("visible",!0),xtag.fireEvent(t,"tooltipshown",{triggerElem:e})};e?(t.xtag.lastTargetElem=e,xtag.skipTransition(t,function(){return T(t,e,r),i})):(t.style.top="",t.style.left="",n.style.top="",n.style.left="",i())}function k(e){t(e.orientation)&&e.removeAttribute(F),e.hasAttribute("visible")&&(E(e),e.xtag._hideTransitionFlag=!0,e.removeAttribute("visible"))}function N(t){var e=t.xtag.cachedListeners;e.forEach(function(t){t.removeListener()}),t.xtag.cachedListeners=[],O.unregisterTooltip(t.triggerStyle,t)}function S(t,e,n){if(t.parentNode){(void 0===e||null===e)&&(e=t.targetSelector),(void 0===n||null===n)&&(n=t.triggerStyle);var r=p(t,e);-1===r.indexOf(t.xtag.lastTargetElem)&&(t.xtag.lastTargetElem=r.length>0?r[0]:null,T(t,t.xtag.lastTargetElem,t.orientation)),N(t);var i;if(n in L){var o=L[n];i=o(t,e)}else i=d(t,e,n),O.registerTooltip(n,t);i.forEach(function(t){t.attachListener()}),t.xtag.cachedListeners=i,k(t)}}var O,L,D={top:"down",bottom:"up",left:"right",right:"left"},M="_previousSibling",I="_nextSibling",R="arrow-direction",F="_auto-orientation";o.prototype.attachListener=function(){this._attachedFn||(this._attachedFn=xtag.addEvent(this.elem,this.eventType,this.listenerFn))},o.prototype.removeListener=function(){this._attachedFn&&(xtag.removeEvent(this.elem,this.eventType,this._attachedFn),this._attachedFn=null)},a.prototype.destroy=function(){this._cachedListener.removeListener(),this._cachedListener=null,this._tooltips=null},a.prototype.containsTooltip=function(t){return-1!==this._tooltips.indexOf(t)},a.prototype.addTooltip=function(t){this.containsTooltip(t)||this._tooltips.push(t)},a.prototype.removeTooltip=function(t){this.containsTooltip(t)&&this._tooltips.splice(this._tooltips.indexOf(t),1)},Object.defineProperties(a.prototype,{numTooltips:{get:function(){return this._tooltips.length}}}),s.prototype.registerTooltip=function(t,e){if(t in this.eventStructDict){var n=this.eventStructDict[t];n.containsTooltip(e)||n.addTooltip(e)}else this.eventStructDict[t]=new a(t),this.eventStructDict[t].addTooltip(e)},s.prototype.unregisterTooltip=function(t,e){if(t in this.eventStructDict&&this.eventStructDict[t].containsTooltip(e)){var n=this.eventStructDict[t];n.removeTooltip(e),0===n.numTooltips&&(n.destroy(),delete this.eventStructDict[t])}},O=new s,L={custom:function(){return[]},hover:function(t,e){var n=[],r=null,i=200,a=function(){r&&window.clearTimeout(r),r=null},s=g(function(e){a();var n=this,r=e.relatedTarget||e.toElement;f(r,t)||C(t,n)}),u=g(function(e){a();var n=e.relatedTarget||e.toElement;f(n,t)||(r=window.setTimeout(function(){"hover"===t.triggerStyle&&k(t)},i))}),l=c(t,e,"enter",s),d=c(t,e,"leave",u);n.push(l),n.push(d);var h=g(function(e){a();var n=e.relatedTarget||e.toElement,r=t.xtag.lastTargetElem;t.hasAttribute("visible")||!r||f(n,r)||C(t,r)}),p=g(function(e){a();var n=e.relatedTarget||e.toElement,o=t.xtag.lastTargetElem;o&&!f(n,o)&&(r=window.setTimeout(function(){"hover"===t.triggerStyle&&k(t)},i))});return n.push(new o(t,"enter",h)),n.push(new o(t,"leave",p)),n}},xtag.register("x-tooltip",{lifecycle:{created:function(){var t=this;t.xtag.contentEl=document.createElement("div"),t.xtag.arrowEl=document.createElement("span"),xtag.addClass(t.xtag.contentEl,"tooltip-content"),xtag.addClass(t.xtag.arrowEl,"tooltip-arrow"),t.xtag.contentEl.innerHTML=t.innerHTML,t.innerHTML="",t.appendChild(t.xtag.contentEl),t.appendChild(t.xtag.arrowEl),t.xtag._orientation="auto",t.xtag._targetSelector=M,t.xtag._triggerStyle="click";var e=p(t,t.xtag._targetSelector);t.xtag.lastTargetElem=e.length>0?e[0]:null,t.xtag.cachedListeners=[],t.xtag._hideTransitionFlag=!1,t.xtag._skipOuterClick=!1},inserted:function(){S(this,this.xtag._targetSelector,this.xtag._triggerStyle)},removed:function(){N(this)}},events:{transitionend:function(t){var e=t.currentTarget;e.xtag._hideTransitionFlag&&!e.hasAttribute("visible")&&(e.xtag._hideTransitionFlag=!1,xtag.fireEvent(e,"tooltiphidden")),w(e)}},accessors:{orientation:{attribute:{},get:function(){return this.xtag._orientation},set:function(e){e=e.toLowerCase();var n=this.querySelector(".tooltip-arrow"),r=null;t(e)?(r=D[e],n.setAttribute(R,r),this.removeAttribute(F)):n.removeAttribute(R),this.xtag._orientation=e,this.refreshPosition()}},triggerStyle:{attribute:{name:"trigger-style"},get:function(){return this.xtag._triggerStyle},set:function(t){S(this,this.targetSelector,t),this.xtag._triggerStyle=t}},targetSelector:{attribute:{name:"target-selector"},get:function(){return this.xtag._targetSelector},set:function(t){p(this,t),S(this,t,this.triggerStyle),this.xtag._targetSelector=t}},ignoreOuterTrigger:{attribute:{"boolean":!0,name:"ignore-outer-trigger"}},ignoreTooltipPointerEvents:{attribute:{"boolean":!0,name:"ignore-tooltip-pointer-events"}},allowOverflow:{attribute:{"boolean":!0,name:"allow-overflow"},set:function(){this.refreshPosition()}},contentEl:{get:function(){return this.xtag.contentEl},set:function(t){var e=this.xtag.contentEl;xtag.addClass(t,"tooltip-content"),this.replaceChild(t,e),this.xtag.contentEl=t,this.refreshPosition()}},presetTriggerStyles:{get:function(){var t=[];for(var e in L)t.push(e);return t}},targetElems:{get:function(){return p(this,this.targetSelector)}}},methods:{refreshPosition:function(){this.xtag.lastTargetElem&&T(this,this.xtag.lastTargetElem,this.orientation)},show:function(){C(this,this.xtag.lastTargetElem)},hide:function(){k(this)},toggle:function(){this.hasAttribute("visible")?this.hide():this.show()}}})}(); \ No newline at end of file diff --git a/www/assets/vendor/brick/readme-1.0beta6.txt b/www/assets/vendor/brick/readme-1.0beta6.txt new file mode 100644 index 0000000..2a2cfa7 --- /dev/null +++ b/www/assets/vendor/brick/readme-1.0beta6.txt @@ -0,0 +1,16 @@ +Mozilla Brick + +To include Brick in your project, include the bundled stylesheet and script +files in your project's page like any other CSS/JS file. + +To use the provided default font for your components, include the font file in +the same directory as your Brick stylesheet. +(If you move the font file elsewhere, look for the "OpenSans-SemiBold.ttf" in + the @font-face declaration at the start of the included stylesheet and + replace it with the correct path to the file). + +Further documentation can be found at http://mozilla.github.io/brick/ + +If you run into issues with this release of Brick, please file an issue +at https://github.com/mozilla/brick/. We're still in prerelease, so all feedback +is welcome! \ No newline at end of file diff --git a/www/brick.html b/www/brick.html new file mode 100644 index 0000000..81cbba2 --- /dev/null +++ b/www/brick.html @@ -0,0 +1,121 @@ + + + + + brick components in a hood.ie app + + + + + + +

brick x-components (link)

+

in a hood.ie application

+
+
+ + + x-appbar: + +
=
+
Title
+
+
+
?
+
+ +
+ + + x-calendar: + + +
+ + + x-datepicker: + + +
+ + + x-deck (& x-card): + + 1st card + 2nd card + + +
+ + + x-flipbox: + +
I'm the front
+
I'm the back
+
+ +
+ + + x-iconbutton: + + this is an icon button + + +
+ + + x-layout: + +
layout header
+
layout section

filler filler filler filler

+