From 06b0cca1deff4fbcb33c65c22e55a5e81d499552 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 13 Nov 2023 16:23:46 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.1.4 → v0.1.5](https://github.com/astral-sh/ruff-pre-commit/compare/v0.1.4...v0.1.5) - [github.com/psf/black: 23.10.1 → 23.11.0](https://github.com/psf/black/compare/23.10.1...23.11.0) - [github.com/pre-commit/mirrors-mypy: v1.6.1 → v1.7.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.6.1...v1.7.0) - [github.com/pre-commit/mirrors-prettier: v3.0.3 → v3.1.0](https://github.com/pre-commit/mirrors-prettier/compare/v3.0.3...v3.1.0) --- .pre-commit-config.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1c9ccff4..8b91c7c7 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -8,7 +8,7 @@ repos: hooks: - id: check-pre-commit-ci-config - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.1.4 + rev: v0.1.5 hooks: - id: ruff args: ['--fix', '--exit-non-zero-on-fix'] @@ -58,11 +58,11 @@ repos: additional_dependencies: - toml - repo: https://github.com/psf/black - rev: 23.10.1 + rev: 23.11.0 hooks: - id: black - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.6.1 + rev: v1.7.0 hooks: - id: mypy # warn-unused-ignores is unsafe with pre-commit, see @@ -102,7 +102,7 @@ repos: additional_dependencies: - 'bandit[toml]' - repo: https://github.com/pre-commit/mirrors-prettier - rev: v3.0.3 + rev: v3.1.0 hooks: - id: prettier args: ['--single-quote', '--trailing-comma', 'es5'] From 96354eac327df35fd2447f2f7baaa5af21072c2f Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 13 Nov 2023 16:26:38 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- .../js/bootstrap-editable.js | 12 +- src/baseframe/static/js/bootstrap3/tooltip.js | 41 +- src/baseframe/static/js/emojionearea.js | 8 +- src/baseframe/static/js/footable-sort.js | 4 +- src/baseframe/static/js/footable.js | 28 +- src/baseframe/static/js/garlic.js | 4 +- src/baseframe/static/js/jQRangeSlider-min.js | 12 +- src/baseframe/static/js/jquery-ui-1.12.1.js | 212 ++++----- .../static/js/jquery-ui-sortable-1.12.1.js | 24 +- src/baseframe/static/js/jquery-ui.js | 218 ++++----- src/baseframe/static/js/jquery.form.js | 4 +- src/baseframe/static/js/jquery.truncate8.js | 4 +- src/baseframe/static/js/jquery_jeditable.js | 28 +- src/baseframe/static/js/leaflet-search.js | 44 +- src/baseframe/static/js/leaflet.js | 198 ++++---- src/baseframe/static/js/moment.js | 74 +-- src/baseframe/static/js/mui.js | 8 +- src/baseframe/static/js/nprogress.js | 12 +- src/baseframe/static/js/pace.js | 50 +- src/baseframe/static/js/parsley.js | 16 +- src/baseframe/static/js/parsley.remote.js | 16 +- .../static/js/ractive-transitions-fly.js | 4 +- src/baseframe/static/js/ractive.js | 445 +++++++++--------- src/baseframe/static/js/rrssb.js | 8 +- src/baseframe/static/js/validate.js | 10 +- 25 files changed, 745 insertions(+), 739 deletions(-) diff --git a/src/baseframe/static/js/bootstrap3-editable/js/bootstrap-editable.js b/src/baseframe/static/js/bootstrap3-editable/js/bootstrap-editable.js index adf7c254..dea2343c 100644 --- a/src/baseframe/static/js/bootstrap3-editable/js/bootstrap-editable.js +++ b/src/baseframe/static/js/bootstrap3-editable/js/bootstrap-editable.js @@ -5183,12 +5183,12 @@ Editableform based on Twitter Bootstrap 3 pos.top + pos.height + actualHeight - docScroll > parentHeight ? 'top' : placement == 'top' && pos.top - docScroll - actualHeight < 0 - ? 'bottom' - : placement == 'right' && pos.right + actualWidth > parentWidth - ? 'left' - : placement == 'left' && pos.left - actualWidth < parentLeft - ? 'right' - : placement; + ? 'bottom' + : placement == 'right' && pos.right + actualWidth > parentWidth + ? 'left' + : placement == 'left' && pos.left - actualWidth < parentLeft + ? 'right' + : placement; $tip.removeClass(orgPlacement).addClass(placement); } diff --git a/src/baseframe/static/js/bootstrap3/tooltip.js b/src/baseframe/static/js/bootstrap3/tooltip.js index 8320a0ff..1ce105b6 100644 --- a/src/baseframe/static/js/bootstrap3/tooltip.js +++ b/src/baseframe/static/js/bootstrap3/tooltip.js @@ -227,13 +227,14 @@ pos.bottom + actualHeight > containerDim.bottom ? 'top' : placement == 'top' && pos.top - actualHeight < containerDim.top - ? 'bottom' - : placement == 'right' && - pos.right + actualWidth > containerDim.width - ? 'left' - : placement == 'left' && pos.left - actualWidth < containerDim.left - ? 'right' - : placement; + ? 'bottom' + : placement == 'right' && + pos.right + actualWidth > containerDim.width + ? 'left' + : placement == 'left' && + pos.left - actualWidth < containerDim.left + ? 'right' + : placement; $tip.removeClass(orgPlacement).addClass(placement); } @@ -421,19 +422,19 @@ left: pos.left + pos.width / 2 - actualWidth / 2, } : placement == 'top' - ? { - top: pos.top - actualHeight, - left: pos.left + pos.width / 2 - actualWidth / 2, - } - : placement == 'left' - ? { - top: pos.top + pos.height / 2 - actualHeight / 2, - left: pos.left - actualWidth, - } - : /* placement == 'right' */ { - top: pos.top + pos.height / 2 - actualHeight / 2, - left: pos.left + pos.width, - }; + ? { + top: pos.top - actualHeight, + left: pos.left + pos.width / 2 - actualWidth / 2, + } + : placement == 'left' + ? { + top: pos.top + pos.height / 2 - actualHeight / 2, + left: pos.left - actualWidth, + } + : /* placement == 'right' */ { + top: pos.top + pos.height / 2 - actualHeight / 2, + left: pos.left + pos.width, + }; }; Tooltip.prototype.getViewportAdjustedDelta = function ( diff --git a/src/baseframe/static/js/emojionearea.js b/src/baseframe/static/js/emojionearea.js index dee69aa9..e507c2e7 100644 --- a/src/baseframe/static/js/emojionearea.js +++ b/src/baseframe/static/js/emojionearea.js @@ -9,10 +9,10 @@ window = typeof global !== 'undefined' ? global : typeof self !== 'undefined' - ? self - : typeof window !== 'undefined' - ? window - : {}; + ? self + : typeof window !== 'undefined' + ? window + : {}; document = window.document || {}; (function (factory, global) { diff --git a/src/baseframe/static/js/footable-sort.js b/src/baseframe/static/js/footable-sort.js index 83ac643a..84dbf883 100644 --- a/src/baseframe/static/js/footable-sort.js +++ b/src/baseframe/static/js/footable-sort.js @@ -102,8 +102,8 @@ e === a ? d.hasClass(c.sorted) : 'toggle' === e - ? !d.hasClass(c.sorted) - : e), + ? !d.hasClass(c.sorted) + : e), l.sort.ignore === !0) ) return !0; diff --git a/src/baseframe/static/js/footable.js b/src/baseframe/static/js/footable.js index 4f2a0cad..9f945bde 100644 --- a/src/baseframe/static/js/footable.js +++ b/src/baseframe/static/js/footable.js @@ -708,20 +708,20 @@ ), !1) : e.isFunction(i.init) - ? (t.footable.options.debug === !0 && - console.log( - 'Validation succeeded for plugin "' + i.name + '".', - i - ), - !0) - : (t.footable.options.debug === !0 && - console.error( - 'Validation failed, plugin "' + - i.name + - '" does not implement a function called "init".', - i - ), - !1); + ? (t.footable.options.debug === !0 && + console.log( + 'Validation succeeded for plugin "' + i.name + '".', + i + ), + !0) + : (t.footable.options.debug === !0 && + console.error( + 'Validation failed, plugin "' + + i.name + + '" does not implement a function called "init".', + i + ), + !1); }, registered: [], register: function (a, i) { diff --git a/src/baseframe/static/js/garlic.js b/src/baseframe/static/js/garlic.js index 8d319dd8..335f4aa9 100644 --- a/src/baseframe/static/js/garlic.js +++ b/src/baseframe/static/js/garlic.js @@ -24,8 +24,8 @@ return localStorage.getItem(key) ? localStorage.getItem(key) : 'undefined' !== typeof placeholder - ? placeholder - : null; + ? placeholder + : null; }, has: function (key) { diff --git a/src/baseframe/static/js/jQRangeSlider-min.js b/src/baseframe/static/js/jQRangeSlider-min.js index c23cd22f..a74012aa 100644 --- a/src/baseframe/static/js/jQRangeSlider-min.js +++ b/src/baseframe/static/js/jQRangeSlider-min.js @@ -792,10 +792,10 @@ ? 'step' === b && this._checkStep(c) ? ((this.options.step = c), this.update()) : 'bounds' === b - ? ((this.options.bounds = c), this.update()) - : 'range' === b && - this._checkRange(c) && - ((this.options.range = c), this.update()) + ? ((this.options.bounds = c), this.update()) + : 'range' === b && + this._checkRange(c) && + ((this.options.range = c), this.update()) : ((this.options.isLeft = c), this.element .toggleClass('ui-rangeSlider-leftHandle', this.options.isLeft) @@ -1020,8 +1020,8 @@ 'range' === a ? this._setRangeOption(b) : 'wheelSpeed' === a - ? this._setWheelSpeedOption(b) - : 'wheelMode' === a && this._setWheelModeOption(b); + ? this._setWheelSpeedOption(b) + : 'wheelMode' === a && this._setWheelModeOption(b); }, _setRangeOption: function (a) { if ( diff --git a/src/baseframe/static/js/jquery-ui-1.12.1.js b/src/baseframe/static/js/jquery-ui-1.12.1.js index bf6785ed..42f73b7e 100644 --- a/src/baseframe/static/js/jquery-ui-1.12.1.js +++ b/src/baseframe/static/js/jquery-ui-1.12.1.js @@ -733,8 +733,8 @@ var effectName = !options ? method : options === true || typeof options === 'number' - ? defaultEffect - : options.effect || defaultEffect; + ? defaultEffect + : options.effect || defaultEffect; options = options || {}; if (typeof options === 'number') { @@ -946,8 +946,8 @@ pos = rhorizontal.test(pos[0]) ? pos.concat(['center']) : rvertical.test(pos[0]) - ? ['center'].concat(pos) - : ['center', 'center']; + ? ['center'].concat(pos) + : ['center', 'center']; } pos[0] = rhorizontal.test(pos[0]) ? pos[0] : 'center'; pos[1] = rvertical.test(pos[1]) ? pos[1] : 'center'; @@ -1224,14 +1224,14 @@ data.my[0] === 'left' ? -data.elemWidth : data.my[0] === 'right' - ? data.elemWidth - : 0, + ? data.elemWidth + : 0, atOffset = data.at[0] === 'left' ? data.targetWidth : data.at[0] === 'right' - ? -data.targetWidth - : 0, + ? -data.targetWidth + : 0, offset = -2 * data.offset[0], newOverRight, newOverLeft; @@ -1274,14 +1274,14 @@ myOffset = top ? -data.elemHeight : data.my[1] === 'bottom' - ? data.elemHeight - : 0, + ? data.elemHeight + : 0, atOffset = data.at[1] === 'top' ? data.targetHeight : data.at[1] === 'bottom' - ? -data.targetHeight - : 0, + ? -data.targetHeight + : 0, offset = -2 * data.offset[1], newOverTop, newOverBottom; @@ -2721,10 +2721,10 @@ effect.duration = $.fx.off ? 0 : typeof speed === 'number' - ? speed - : speed in $.fx.speeds - ? $.fx.speeds[speed] - : $.fx.speeds._default; + ? speed + : speed in $.fx.speeds + ? $.fx.speeds[speed] + : $.fx.speeds._default; effect.complete = callback || options.complete; @@ -8117,10 +8117,10 @@ return name === 'defaults' ? $.extend({}, $.datepicker._defaults) : inst - ? name === 'all' - ? $.extend({}, inst.settings) - : this._get(inst, name) - : null; + ? name === 'all' + ? $.extend({}, inst.settings) + : this._get(inst, name) + : null; } settings = name || {}; @@ -8493,8 +8493,8 @@ $.datepicker._inDialog && $.blockUI ? 'static' : isFixed - ? 'fixed' - : 'absolute', + ? 'fixed' + : 'absolute', display: 'none', left: offset.left + 'px', top: offset.top + 'px', @@ -8686,8 +8686,8 @@ showAnim === 'slideDown' ? 'slideUp' : showAnim === 'fadeIn' - ? 'fadeOut' - : 'hide' + ? 'fadeOut' + : 'hide' ](showAnim ? duration : null, postProcess); } @@ -8971,12 +8971,12 @@ match === '@' ? 14 : match === '!' - ? 20 - : match === 'y' && isDoubled - ? 4 - : match === 'o' - ? 3 - : 2, + ? 20 + : match === 'y' && isDoubled + ? 4 + : match === 'o' + ? 3 + : 2, minSize = match === 'y' ? size : 1, digits = new RegExp('^\\d{' + minSize + ',' + size + '}'), num = value.substring(iValue).match(digits); @@ -9430,12 +9430,12 @@ date == null || date === '' ? defaultDate : typeof date === 'string' - ? offsetString(date) - : typeof date === 'number' - ? isNaN(date) - ? defaultDate - : offsetNumeric(date) - : new Date(date.getTime()); + ? offsetString(date) + : typeof date === 'number' + ? isNaN(date) + ? defaultDate + : offsetNumeric(date) + : new Date(date.getTime()); newDate = newDate && newDate.toString() === 'Invalid Date' @@ -9666,14 +9666,14 @@ prevText + '' : hideIfNoPrevNext - ? '' - : "" + - prevText + - ''; + ? '' + : "" + + prevText + + ''; nextText = this._get(inst, 'nextText'); nextText = !navigationAsDateFormat @@ -9696,14 +9696,14 @@ nextText + '' : hideIfNoPrevNext - ? '' - : "" + - nextText + - ''; + ? '' + : "" + + nextText + + ''; currentText = this._get(inst, 'currentText'); gotoDate = @@ -9903,20 +9903,20 @@ (otherMonth && !showOtherMonths ? ' ' // display for other months : unselectable - ? "" + - printDate.getDate() + - '' - : "" + - printDate.getDate() + - '') + + ? "" + + printDate.getDate() + + '' + : "" + + printDate.getDate() + + '') + ''; // display selectable date printDate.setDate(printDate.getDate() + 1); printDate = this._daylightSavingAdjust(printDate); @@ -10018,8 +10018,8 @@ var year = value.match(/c[+\-].*/) ? drawYear + parseInt(value.substring(1), 10) : value.match(/[+\-].*/) - ? thisYear + parseInt(value, 10) - : parseInt(value, 10); + ? thisYear + parseInt(value, 10) + : parseInt(value, 10); return isNaN(year) ? thisYear : year; }; year = determineYear(years[0]); @@ -10103,8 +10103,8 @@ return numMonths == null ? [1, 1] : typeof numMonths === 'number' - ? [1, numMonths] - : numMonths; + ? [1, numMonths] + : numMonths; }, /* Determine the current maximum date - ensure no time components are set. */ @@ -10942,8 +10942,8 @@ helper = helperIsFunction ? $(o.helper.apply(this.element[0], [event])) : o.helper === 'clone' - ? this.element.clone().removeAttr('id') - : this.element; + ? this.element.clone().removeAttr('id') + : this.element; if (!helper.parents('body').length) { helper.appendTo( @@ -11183,8 +11183,8 @@ (this.cssPosition === 'fixed' ? -this.offset.scroll.top : scrollIsRootNode - ? 0 - : this.offset.scroll.top) * + ? 0 + : this.offset.scroll.top) * mod, left: // The absolute mouse position @@ -11196,8 +11196,8 @@ (this.cssPosition === 'fixed' ? -this.offset.scroll.left : scrollIsRootNode - ? 0 - : this.offset.scroll.left) * + ? 0 + : this.offset.scroll.left) * mod, }; }, @@ -11266,8 +11266,8 @@ top - this.offset.click.top > containment[3] ? top : top - this.offset.click.top >= containment[1] - ? top - o.grid[1] - : top + o.grid[1] + ? top - o.grid[1] + : top + o.grid[1] : top; left = o.grid[0] @@ -11279,8 +11279,8 @@ left - this.offset.click.left > containment[2] ? left : left - this.offset.click.left >= containment[0] - ? left - o.grid[0] - : left + o.grid[0] + ? left - o.grid[0] + : left + o.grid[0] : left; } @@ -11306,8 +11306,8 @@ (this.cssPosition === 'fixed' ? -this.offset.scroll.top : scrollIsRootNode - ? 0 - : this.offset.scroll.top), + ? 0 + : this.offset.scroll.top), left: // The absolute mouse position pageX - @@ -11320,8 +11320,8 @@ (this.cssPosition === 'fixed' ? -this.offset.scroll.left : scrollIsRootNode - ? 0 - : this.offset.scroll.left), + ? 0 + : this.offset.scroll.left), }; }, @@ -12178,10 +12178,10 @@ /ne|nw|n/.test(i) ? 'Top' : /se|sw|s/.test(i) - ? 'Bottom' - : /^e$/.test(i) - ? 'Right' - : 'Left', + ? 'Bottom' + : /^e$/.test(i) + ? 'Right' + : 'Left', ].join(''); target.css(padPos, padWrapper); @@ -12768,8 +12768,8 @@ oc instanceof $ ? oc.get(0) : /parent/.test(oc) - ? el.parent().get(0) - : oc; + ? el.parent().get(0) + : oc; if (!ce) { return; @@ -14485,8 +14485,8 @@ !intersects && this.isover ? 'isout' : intersects && !this.isover - ? 'isover' - : null; + ? 'isover' + : null; if (!c) { return; } @@ -17712,8 +17712,8 @@ helper = $.isFunction(o.helper) ? $(o.helper.apply(this.element[0], [event, this.currentItem])) : o.helper === 'clone' - ? this.currentItem.clone() - : this.currentItem; + ? this.currentItem.clone() + : this.currentItem; //Add the helper to the DOM if that didn't happen already if (!helper.parents('body').length) { @@ -17922,8 +17922,8 @@ (this.cssPosition === 'fixed' ? -this.scrollParent.scrollTop() : scrollIsRootNode - ? 0 - : scroll.scrollTop()) * + ? 0 + : scroll.scrollTop()) * mod, left: // The absolute mouse position @@ -17935,8 +17935,8 @@ (this.cssPosition === 'fixed' ? -this.scrollParent.scrollLeft() : scrollIsRootNode - ? 0 - : scroll.scrollLeft()) * + ? 0 + : scroll.scrollLeft()) * mod, }; }, @@ -18003,8 +18003,8 @@ top - this.offset.click.top <= this.containment[3] ? top : top - this.offset.click.top >= this.containment[1] - ? top - o.grid[1] - : top + o.grid[1] + ? top - o.grid[1] + : top + o.grid[1] : top; left = @@ -18015,8 +18015,8 @@ left - this.offset.click.left <= this.containment[2] ? left : left - this.offset.click.left >= this.containment[0] - ? left - o.grid[0] - : left + o.grid[0] + ? left - o.grid[0] + : left + o.grid[0] : left; } } @@ -18034,8 +18034,8 @@ (this.cssPosition === 'fixed' ? -this.scrollParent.scrollTop() : scrollIsRootNode - ? 0 - : scroll.scrollTop()), + ? 0 + : scroll.scrollTop()), left: // The absolute mouse position pageX - @@ -18048,8 +18048,8 @@ (this.cssPosition === 'fixed' ? -this.scrollParent.scrollLeft() : scrollIsRootNode - ? 0 - : scroll.scrollLeft()), + ? 0 + : scroll.scrollLeft()), }; }, diff --git a/src/baseframe/static/js/jquery-ui-sortable-1.12.1.js b/src/baseframe/static/js/jquery-ui-sortable-1.12.1.js index c0be7c72..d55722c9 100644 --- a/src/baseframe/static/js/jquery-ui-sortable-1.12.1.js +++ b/src/baseframe/static/js/jquery-ui-sortable-1.12.1.js @@ -733,8 +733,8 @@ var effectName = !options ? method : options === true || typeof options === 'number' - ? defaultEffect - : options.effect || defaultEffect; + ? defaultEffect + : options.effect || defaultEffect; options = options || {}; if (typeof options === 'number') { @@ -946,8 +946,8 @@ pos = rhorizontal.test(pos[0]) ? pos.concat(['center']) : rvertical.test(pos[0]) - ? ['center'].concat(pos) - : ['center', 'center']; + ? ['center'].concat(pos) + : ['center', 'center']; } pos[0] = rhorizontal.test(pos[0]) ? pos[0] : 'center'; pos[1] = rvertical.test(pos[1]) ? pos[1] : 'center'; @@ -1224,14 +1224,14 @@ data.my[0] === 'left' ? -data.elemWidth : data.my[0] === 'right' - ? data.elemWidth - : 0, + ? data.elemWidth + : 0, atOffset = data.at[0] === 'left' ? data.targetWidth : data.at[0] === 'right' - ? -data.targetWidth - : 0, + ? -data.targetWidth + : 0, offset = -2 * data.offset[0], newOverRight, newOverLeft; @@ -1274,14 +1274,14 @@ myOffset = top ? -data.elemHeight : data.my[1] === 'bottom' - ? data.elemHeight - : 0, + ? data.elemHeight + : 0, atOffset = data.at[1] === 'top' ? data.targetHeight : data.at[1] === 'bottom' - ? -data.targetHeight - : 0, + ? -data.targetHeight + : 0, offset = -2 * data.offset[1], newOverTop, newOverBottom; diff --git a/src/baseframe/static/js/jquery-ui.js b/src/baseframe/static/js/jquery-ui.js index 3eaf61e1..d4ef2efc 100644 --- a/src/baseframe/static/js/jquery-ui.js +++ b/src/baseframe/static/js/jquery-ui.js @@ -162,8 +162,8 @@ (/input|select|textarea|button|object/.test(nodeName) ? !element.disabled : 'a' === nodeName - ? element.href || isTabIndexNotNaN - : isTabIndexNotNaN) && + ? element.href || isTabIndexNotNaN + : isTabIndexNotNaN) && // the element and all of its ancestors must be visible visible(element) ); @@ -876,8 +876,8 @@ effectName = !options ? method : options === true || typeof options === 'number' - ? defaultEffect - : options.effect || defaultEffect; + ? defaultEffect + : options.effect || defaultEffect; options = options || {}; if (typeof options === 'number') { options = { duration: options }; @@ -1372,8 +1372,8 @@ helper = $.isFunction(o.helper) ? $(o.helper.apply(this.element[0], [event])) : o.helper === 'clone' - ? this.element.clone().removeAttr('id') - : this.element; + ? this.element.clone().removeAttr('id') + : this.element; if (!helper.parents('body').length) { helper.appendTo( @@ -1682,8 +1682,8 @@ top - this.offset.click.top > containment[3] ? top : top - this.offset.click.top >= containment[1] - ? top - o.grid[1] - : top + o.grid[1] + ? top - o.grid[1] + : top + o.grid[1] : top; left = o.grid[0] @@ -1695,8 +1695,8 @@ left - this.offset.click.left > containment[2] ? left : left - this.offset.click.left >= containment[0] - ? left - o.grid[0] - : left + o.grid[0] + ? left - o.grid[0] + : left + o.grid[0] : left; } } @@ -2606,8 +2606,8 @@ !intersects && this.isover ? 'isout' : intersects && !this.isover - ? 'isover' - : null; + ? 'isover' + : null; if (!c) { return; } @@ -2845,10 +2845,10 @@ /ne|nw|n/.test(i) ? 'Top' : /se|sw|s/.test(i) - ? 'Bottom' - : /^e$/.test(i) - ? 'Right' - : 'Left', + ? 'Bottom' + : /^e$/.test(i) + ? 'Right' + : 'Left', ].join(''); target.css(padPos, padWrapper); @@ -3470,8 +3470,8 @@ oc instanceof $ ? oc.get(0) : /parent/.test(oc) - ? el.parent().get(0) - : oc; + ? el.parent().get(0) + : oc; if (!ce) { return; @@ -3678,8 +3678,8 @@ c && c.length ? c : el.parents(ui.originalElement[0]).length - ? ['width', 'height'] - : ['width', 'height', 'top', 'left']; + ? ['width', 'height'] + : ['width', 'height', 'top', 'left']; $.each(css, function (i, prop) { var sum = (start[prop] || 0) + (delta[prop] || 0); @@ -5197,8 +5197,8 @@ helper = $.isFunction(o.helper) ? $(o.helper.apply(this.element[0], [event, this.currentItem])) : o.helper === 'clone' - ? this.currentItem.clone() - : this.currentItem; + ? this.currentItem.clone() + : this.currentItem; //Add the helper to the DOM if that didn't happen already if (!helper.parents('body').length) { @@ -5397,8 +5397,8 @@ (this.cssPosition === 'fixed' ? -this.scrollParent.scrollTop() : scrollIsRootNode - ? 0 - : scroll.scrollTop()) * + ? 0 + : scroll.scrollTop()) * mod, left: pos.left + // The absolute mouse position @@ -5407,8 +5407,8 @@ (this.cssPosition === 'fixed' ? -this.scrollParent.scrollLeft() : scrollIsRootNode - ? 0 - : scroll.scrollLeft()) * + ? 0 + : scroll.scrollLeft()) * mod, }; }, @@ -5475,8 +5475,8 @@ top - this.offset.click.top <= this.containment[3] ? top : top - this.offset.click.top >= this.containment[1] - ? top - o.grid[1] - : top + o.grid[1] + ? top - o.grid[1] + : top + o.grid[1] : top; left = @@ -5487,8 +5487,8 @@ left - this.offset.click.left <= this.containment[2] ? left : left - this.offset.click.left >= this.containment[0] - ? left - o.grid[0] - : left + o.grid[0] + ? left - o.grid[0] + : left + o.grid[0] : left; } } @@ -5502,8 +5502,8 @@ (this.cssPosition === 'fixed' ? -this.scrollParent.scrollTop() : scrollIsRootNode - ? 0 - : scroll.scrollTop()), + ? 0 + : scroll.scrollTop()), left: pageX - // The absolute mouse position this.offset.click.left - // Click offset (relative to the element) @@ -5512,8 +5512,8 @@ (this.cssPosition === 'fixed' ? -this.scrollParent.scrollLeft() : scrollIsRootNode - ? 0 - : scroll.scrollLeft()), + ? 0 + : scroll.scrollLeft()), }; }, @@ -6852,10 +6852,10 @@ effect.duration = $.fx.off ? 0 : typeof speed === 'number' - ? speed - : speed in $.fx.speeds - ? $.fx.speeds[speed] - : $.fx.speeds._default; + ? speed + : speed in $.fx.speeds + ? $.fx.speeds[speed] + : $.fx.speeds._default; effect.complete = callback || options.complete; @@ -7687,11 +7687,11 @@ isTextarea ? true : // Inputs are always single-line, even if inside a contentEditable element - // IE also treats inputs as contentEditable - isInput - ? false - : // All other element types are determined by whether or not they're contentEditable - this.element.prop('isContentEditable'); + // IE also treats inputs as contentEditable + isInput + ? false + : // All other element types are determined by whether or not they're contentEditable + this.element.prop('isContentEditable'); this.valueMethod = this.element[isTextarea || isInput ? 'val' : 'text']; this.isNewMenu = true; @@ -9274,10 +9274,10 @@ return name === 'defaults' ? $.extend({}, $.datepicker._defaults) : inst - ? name === 'all' - ? $.extend({}, inst.settings) - : this._get(inst, name) - : null; + ? name === 'all' + ? $.extend({}, inst.settings) + : this._get(inst, name) + : null; } settings = name || {}; @@ -9642,8 +9642,8 @@ $.datepicker._inDialog && $.blockUI ? 'static' : isFixed - ? 'fixed' - : 'absolute', + ? 'fixed' + : 'absolute', display: 'none', left: offset.left + 'px', top: offset.top + 'px', @@ -9831,8 +9831,8 @@ showAnim === 'slideDown' ? 'slideUp' : showAnim === 'fadeIn' - ? 'fadeOut' - : 'hide' + ? 'fadeOut' + : 'hide' ](showAnim ? duration : null, postProcess); } @@ -10120,12 +10120,12 @@ match === '@' ? 14 : match === '!' - ? 20 - : match === 'y' && isDoubled - ? 4 - : match === 'o' - ? 3 - : 2, + ? 20 + : match === 'y' && isDoubled + ? 4 + : match === 'o' + ? 3 + : 2, digits = new RegExp('^\\d{1,' + size + '}'), num = value.substring(iValue).match(digits); if (!num) { @@ -10578,12 +10578,12 @@ date == null || date === '' ? defaultDate : typeof date === 'string' - ? offsetString(date) - : typeof date === 'number' - ? isNaN(date) - ? defaultDate - : offsetNumeric(date) - : new Date(date.getTime()); + ? offsetString(date) + : typeof date === 'number' + ? isNaN(date) + ? defaultDate + : offsetNumeric(date) + : new Date(date.getTime()); newDate = newDate && newDate.toString() === 'Invalid Date' @@ -10814,14 +10814,14 @@ prevText + '' : hideIfNoPrevNext - ? '' - : "" + - prevText + - ''; + ? '' + : "" + + prevText + + ''; nextText = this._get(inst, 'nextText'); nextText = !navigationAsDateFormat @@ -10844,14 +10844,14 @@ nextText + '' : hideIfNoPrevNext - ? '' - : "" + - nextText + - ''; + ? '' + : "" + + nextText + + ''; currentText = this._get(inst, 'currentText'); gotoDate = @@ -11051,20 +11051,20 @@ (otherMonth && !showOtherMonths ? ' ' // display for other months : unselectable - ? "" + - printDate.getDate() + - '' - : "" + - printDate.getDate() + - '') + + ? "" + + printDate.getDate() + + '' + : "" + + printDate.getDate() + + '') + ''; // display selectable date printDate.setDate(printDate.getDate() + 1); printDate = this._daylightSavingAdjust(printDate); @@ -11166,8 +11166,8 @@ var year = value.match(/c[+\-].*/) ? drawYear + parseInt(value.substring(1), 10) : value.match(/[+\-].*/) - ? thisYear + parseInt(value, 10) - : parseInt(value, 10); + ? thisYear + parseInt(value, 10) + : parseInt(value, 10); return isNaN(year) ? thisYear : year; }; year = determineYear(years[0]); @@ -11251,8 +11251,8 @@ return numMonths == null ? [1, 1] : typeof numMonths === 'number' - ? [1, numMonths] - : numMonths; + ? [1, numMonths] + : numMonths; }, /* Determine the current maximum date - ensure no time components are set. */ @@ -12546,8 +12546,8 @@ ? '+=' : '-=' : motion === 'pos' - ? '-=' - : '+=') + distance; + ? '-=' + : '+=') + distance; // Animate el.animate(animation, { @@ -14132,8 +14132,8 @@ pos = rhorizontal.test(pos[0]) ? pos.concat(['center']) : rvertical.test(pos[0]) - ? ['center'].concat(pos) - : ['center', 'center']; + ? ['center'].concat(pos) + : ['center', 'center']; } pos[0] = rhorizontal.test(pos[0]) ? pos[0] : 'center'; pos[1] = rvertical.test(pos[1]) ? pos[1] : 'center'; @@ -14390,14 +14390,14 @@ data.my[0] === 'left' ? -data.elemWidth : data.my[0] === 'right' - ? data.elemWidth - : 0, + ? data.elemWidth + : 0, atOffset = data.at[0] === 'left' ? data.targetWidth : data.at[0] === 'right' - ? -data.targetWidth - : 0, + ? -data.targetWidth + : 0, offset = -2 * data.offset[0], newOverRight, newOverLeft; @@ -14440,14 +14440,14 @@ myOffset = top ? -data.elemHeight : data.my[1] === 'bottom' - ? data.elemHeight - : 0, + ? data.elemHeight + : 0, atOffset = data.at[1] === 'top' ? data.targetHeight : data.at[1] === 'bottom' - ? -data.targetHeight - : 0, + ? -data.targetHeight + : 0, offset = -2 * data.offset[1], newOverTop, newOverBottom; diff --git a/src/baseframe/static/js/jquery.form.js b/src/baseframe/static/js/jquery.form.js index 4ffaafa5..a2d995f7 100644 --- a/src/baseframe/static/js/jquery.form.js +++ b/src/baseframe/static/js/jquery.form.js @@ -379,8 +379,8 @@ var doc = frame.contentWindow ? frame.contentWindow.document : frame.contentDocument - ? frame.contentDocument - : frame.document; + ? frame.contentDocument + : frame.document; return doc; } diff --git a/src/baseframe/static/js/jquery.truncate8.js b/src/baseframe/static/js/jquery.truncate8.js index c1712258..1c507421 100644 --- a/src/baseframe/static/js/jquery.truncate8.js +++ b/src/baseframe/static/js/jquery.truncate8.js @@ -220,8 +220,8 @@ return s[e] ? s[e].apply(this, Array.prototype.slice.call(arguments, 1)) : 'object' != typeof e && e - ? void t.error('Method ' + e + ' does not exist on jQuery.trunk8') - : s.init.apply(this, arguments); + ? void t.error('Method ' + e + ' does not exist on jQuery.trunk8') + : s.init.apply(this, arguments); }), (t.fn.trunk8.defaults = { fill: '…', diff --git a/src/baseframe/static/js/jquery_jeditable.js b/src/baseframe/static/js/jquery_jeditable.js index 5062b337..fd07e0ee 100644 --- a/src/baseframe/static/js/jquery_jeditable.js +++ b/src/baseframe/static/js/jquery_jeditable.js @@ -180,20 +180,20 @@ }, 500); }) : 'submit' === settings.onblur - ? input.blur(function (e) { - t = self.setTimeout(function () { - form.trigger('submit'); - }, 200); - }) - : $.isFunction(settings.onblur) && - input.blur(function (e) { - !1 === - settings.onblur.apply(self, [ - input.val(), - settings, - form, - ]) && reset.apply(form, [settings, self]); - }), + ? input.blur(function (e) { + t = self.setTimeout(function () { + form.trigger('submit'); + }, 200); + }) + : $.isFunction(settings.onblur) && + input.blur(function (e) { + !1 === + settings.onblur.apply(self, [ + input.val(), + settings, + form, + ]) && reset.apply(form, [settings, self]); + }), form.on('submit', function (e) { if ( (e.preventDefault(), diff --git a/src/baseframe/static/js/leaflet-search.js b/src/baseframe/static/js/leaflet-search.js index 672dfc0b..d67eeb83 100644 --- a/src/baseframe/static/js/leaflet-search.js +++ b/src/baseframe/static/js/leaflet-search.js @@ -479,31 +479,31 @@ (e.layer = b), (c[f._getPath(b.feature.properties, d)] = e)) : b instanceof a.Path || - b instanceof a.Polyline || - b instanceof a.Polygon - ? f._getPath(b.options, d) - ? ((e = b.getBounds().getCenter()), - (e.layer = b), - (c[f._getPath(b.options, d)] = e)) - : f._getPath(b.feature.properties, d) && - ((e = b.getBounds().getCenter()), - (e.layer = b), - (c[f._getPath(b.feature.properties, d)] = e)) - : b.hasOwnProperty('feature') - ? b.feature.properties.hasOwnProperty(d) && - (b.getLatLng && 'function' == typeof b.getLatLng - ? ((e = b.getLatLng()), + b instanceof a.Polyline || + b instanceof a.Polygon + ? f._getPath(b.options, d) + ? ((e = b.getBounds().getCenter()), (e.layer = b), - (c[b.feature.properties[d]] = e)) - : b.getBounds && - 'function' == typeof b.getBounds && + (c[f._getPath(b.options, d)] = e)) + : f._getPath(b.feature.properties, d) && ((e = b.getBounds().getCenter()), (e.layer = b), - (c[b.feature.properties[d]] = e))) - : b instanceof a.LayerGroup && - b.eachLayer(function (a) { - f._searchInLayer(a, c, d); - })); + (c[f._getPath(b.feature.properties, d)] = e)) + : b.hasOwnProperty('feature') + ? b.feature.properties.hasOwnProperty(d) && + (b.getLatLng && 'function' == typeof b.getLatLng + ? ((e = b.getLatLng()), + (e.layer = b), + (c[b.feature.properties[d]] = e)) + : b.getBounds && + 'function' == typeof b.getBounds && + ((e = b.getBounds().getCenter()), + (e.layer = b), + (c[b.feature.properties[d]] = e))) + : b instanceof a.LayerGroup && + b.eachLayer(function (a) { + f._searchInLayer(a, c, d); + })); }, _recordsFromLayer: function () { var a = this, diff --git a/src/baseframe/static/js/leaflet.js b/src/baseframe/static/js/leaflet.js index fb71afe4..e759f4f6 100644 --- a/src/baseframe/static/js/leaflet.js +++ b/src/baseframe/static/js/leaflet.js @@ -6,8 +6,8 @@ 'object' == typeof exports && 'undefined' != typeof module ? i(exports) : 'function' == typeof define && define.amd - ? define(['exports'], i) - : i((t.L = {})); + ? define(['exports'], i) + : i((t.L = {})); })(this, function (t) { 'use strict'; function i(t) { @@ -121,12 +121,12 @@ return t instanceof x ? t : oi(t) - ? new x(t[0], t[1]) - : void 0 === t || null === t - ? t - : 'object' == typeof t && 'x' in t && 'y' in t - ? new x(t.x, t.y) - : new x(t, i, e); + ? new x(t[0], t[1]) + : void 0 === t || null === t + ? t + : 'object' == typeof t && 'x' in t && 'y' in t + ? new x(t.x, t.y) + : new x(t, i, e); } function P(t, i) { if (t) @@ -153,18 +153,18 @@ return t instanceof M ? t : oi(t) && 'object' != typeof t[0] - ? 3 === t.length - ? new M(t[0], t[1], t[2]) - : 2 === t.length - ? new M(t[0], t[1]) - : null - : void 0 === t || null === t - ? t - : 'object' == typeof t && 'lat' in t - ? new M(t.lat, 'lng' in t ? t.lng : t.lon, t.alt) - : void 0 === i - ? null - : new M(t, i, e); + ? 3 === t.length + ? new M(t[0], t[1], t[2]) + : 2 === t.length + ? new M(t[0], t[1]) + : null + : void 0 === t || null === t + ? t + : 'object' == typeof t && 'lat' in t + ? new M(t.lat, 'lng' in t ? t.lng : t.lon, t.alt) + : void 0 === i + ? null + : new M(t, i, e); } function S(t, i, e, n) { if (oi(t)) @@ -205,8 +205,8 @@ 'touchstart' === i ? O(t, e, n) : 'touchmove' === i - ? W(t, e, n) - : 'touchend' === i && H(t, e, n), + ? W(t, e, n) + : 'touchend' === i && H(t, e, n), this ); } @@ -216,9 +216,10 @@ 'touchstart' === i ? t.removeEventListener(te, n, !1) : 'touchmove' === i - ? t.removeEventListener(ie, n, !1) - : 'touchend' === i && - (t.removeEventListener(ee, n, !1), t.removeEventListener(ne, n, !1)), + ? t.removeEventListener(ie, n, !1) + : 'touchend' === i && + (t.removeEventListener(ee, n, !1), + t.removeEventListener(ne, n, !1)), this ); } @@ -480,26 +481,26 @@ Vi && 0 === i.indexOf('touch') ? B(t, i, r, s) : !qi || 'dblclick' !== i || !F || (Vi && Ei) - ? 'addEventListener' in t - ? 'mousewheel' === i - ? t.addEventListener('onwheel' in t ? 'wheel' : 'mousewheel', r, !1) - : 'mouseenter' === i || 'mouseleave' === i - ? ((r = function (i) { - (i = i || window.event), Ct(t, i) && a(i); - }), - t.addEventListener( - 'mouseenter' === i ? 'mouseover' : 'mouseout', - r, - !1 - )) - : ('click' === i && - zi && - (r = function (t) { - St(t, a); - }), - t.addEventListener(i, r, !1)) - : 'attachEvent' in t && t.attachEvent('on' + i, r) - : F(t, r, s), + ? 'addEventListener' in t + ? 'mousewheel' === i + ? t.addEventListener('onwheel' in t ? 'wheel' : 'mousewheel', r, !1) + : 'mouseenter' === i || 'mouseleave' === i + ? ((r = function (i) { + (i = i || window.event), Ct(t, i) && a(i); + }), + t.addEventListener( + 'mouseenter' === i ? 'mouseover' : 'mouseout', + r, + !1 + )) + : ('click' === i && + zi && + (r = function (t) { + St(t, a); + }), + t.addEventListener(i, r, !1)) + : 'attachEvent' in t && t.attachEvent('on' + i, r) + : F(t, r, s), (t[ye] = t[ye] || {}), (t[ye][s] = r); } @@ -510,24 +511,24 @@ Vi && 0 === i.indexOf('touch') ? I(t, i, s) : !qi || 'dblclick' !== i || !U || (Vi && Ei) - ? 'removeEventListener' in t - ? 'mousewheel' === i - ? t.removeEventListener( - 'onwheel' in t ? 'wheel' : 'mousewheel', - r, - !1 - ) - : t.removeEventListener( - 'mouseenter' === i - ? 'mouseover' - : 'mouseleave' === i - ? 'mouseout' - : i, - r, - !1 - ) - : 'detachEvent' in t && t.detachEvent('on' + i, r) - : U(t, s), + ? 'removeEventListener' in t + ? 'mousewheel' === i + ? t.removeEventListener( + 'onwheel' in t ? 'wheel' : 'mousewheel', + r, + !1 + ) + : t.removeEventListener( + 'mouseenter' === i + ? 'mouseover' + : 'mouseleave' === i + ? 'mouseout' + : i, + r, + !1 + ) + : 'detachEvent' in t && t.detachEvent('on' + i, r) + : U(t, s), (t[ye][s] = null); } function yt(t) { @@ -535,8 +536,8 @@ t.stopPropagation ? t.stopPropagation() : t.originalEvent - ? (t.originalEvent._stopped = !0) - : (t.cancelBubble = !0), + ? (t.originalEvent._stopped = !0) + : (t.cancelBubble = !0), Mt(t), this ); @@ -566,20 +567,20 @@ return bi ? t.wheelDeltaY / 2 : t.deltaY && 0 === t.deltaMode - ? -t.deltaY / xe - : t.deltaY && 1 === t.deltaMode - ? 20 * -t.deltaY - : t.deltaY && 2 === t.deltaMode - ? 60 * -t.deltaY - : t.deltaX || t.deltaZ - ? 0 - : t.wheelDelta - ? (t.wheelDeltaY || t.wheelDelta) / 2 - : t.detail && Math.abs(t.detail) < 32765 - ? 20 * -t.detail - : t.detail - ? (t.detail / -32765) * 60 - : 0; + ? -t.deltaY / xe + : t.deltaY && 1 === t.deltaMode + ? 20 * -t.deltaY + : t.deltaY && 2 === t.deltaMode + ? 60 * -t.deltaY + : t.deltaX || t.deltaZ + ? 0 + : t.wheelDelta + ? (t.wheelDeltaY || t.wheelDelta) / 2 + : t.detail && Math.abs(t.detail) < 32765 + ? 20 * -t.detail + : t.detail + ? (t.detail / -32765) * 60 + : 0; } function zt(t) { we[t.type] = !0; @@ -660,10 +661,10 @@ 8 & e ? ((s = t.x + (a * (l.y - t.y)) / h), (r = l.y)) : 4 & e - ? ((s = t.x + (a * (u.y - t.y)) / h), (r = u.y)) - : 2 & e - ? ((s = l.x), (r = t.y + (h * (l.x - t.x)) / a)) - : 1 & e && ((s = u.x), (r = t.y + (h * (u.x - t.x)) / a)), + ? ((s = t.x + (a * (u.y - t.y)) / h), (r = u.y)) + : 2 & e + ? ((s = l.x), (r = t.y + (h * (l.x - t.x)) / a)) + : 1 & e && ((s = u.x), (r = t.y + (h * (u.x - t.x)) / a)), new x(s, r, o) ); } @@ -2003,8 +2004,8 @@ (1 === i ? 'permission denied' : 2 === i - ? 'position unavailable' - : 'timeout'); + ? 'position unavailable' + : 'timeout'); this._locateOptions.setView && !this._loaded && this.fitWorld(), this.fire('locationerror', { code: i, @@ -2824,8 +2825,8 @@ ? 'overlayadd' : 'overlayremove' : 'add' === t.type - ? 'baselayerchange' - : null; + ? 'baselayerchange' + : null; e && this._map.fire(e, i); }, _createRadioElement: function (t, i) { @@ -4894,8 +4895,8 @@ i instanceof Qe ? this.openPopup(t.layer || t.target, t.latlng) : this._map.hasLayer(this._popup) && this._popup._source === i - ? this.closePopup() - : this.openPopup(i, t.latlng)); + ? this.closePopup() + : this.openPopup(i, t.latlng)); }, _movePopup: function (t) { this._popup.setLatLng(t.latlng); @@ -4956,13 +4957,14 @@ 'top' === s ? (t = t.add(w(-r / 2 + h.x, -a + h.y + u.y, !0))) : 'bottom' === s - ? (t = t.subtract(w(r / 2 - h.x, -h.y, !0))) - : 'center' === s - ? (t = t.subtract(w(r / 2 + h.x, a / 2 - u.y + h.y, !0))) - : 'right' === s || ('auto' === s && o.x < n.x) - ? ((s = 'right'), (t = t.add(w(h.x + u.x, u.y - a / 2 + h.y, !0)))) - : ((s = 'left'), - (t = t.subtract(w(r + u.x - h.x, a / 2 - u.y - h.y, !0)))), + ? (t = t.subtract(w(r / 2 - h.x, -h.y, !0))) + : 'center' === s + ? (t = t.subtract(w(r / 2 + h.x, a / 2 - u.y + h.y, !0))) + : 'right' === s || ('auto' === s && o.x < n.x) + ? ((s = 'right'), + (t = t.add(w(h.x + u.x, u.y - a / 2 + h.y, !0)))) + : ((s = 'left'), + (t = t.subtract(w(r + u.x - h.x, a / 2 - u.y - h.y, !0)))), tt(e, 'leaflet-tooltip-right'), tt(e, 'leaflet-tooltip-left'), tt(e, 'leaflet-tooltip-top'), @@ -5376,8 +5378,8 @@ return void 0 !== i.minNativeZoom && t < i.minNativeZoom ? i.minNativeZoom : void 0 !== i.maxNativeZoom && i.maxNativeZoom < t - ? i.maxNativeZoom - : t; + ? i.maxNativeZoom + : t; }, _setView: function (t, i, e, n) { var o = this._clampZoom(Math.round(i)); diff --git a/src/baseframe/static/js/moment.js b/src/baseframe/static/js/moment.js index 6dd71aa4..39a07b97 100644 --- a/src/baseframe/static/js/moment.js +++ b/src/baseframe/static/js/moment.js @@ -5,8 +5,8 @@ typeof exports === 'object' && typeof module !== 'undefined' ? (module.exports = factory()) : typeof define === 'function' && define.amd - ? define(factory) - : (global.moment = factory()); + ? define(factory) + : (global.moment = factory()); })(this, function () { 'use strict'; @@ -1529,8 +1529,8 @@ return m === true ? shiftWeekdays(weekdays, this._week.dow) : m - ? weekdays[m.day()] - : weekdays; + ? weekdays[m.day()] + : weekdays; } var defaultLocaleWeekdaysShort = 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'); @@ -1538,8 +1538,8 @@ return m === true ? shiftWeekdays(this._weekdaysShort, this._week.dow) : m - ? this._weekdaysShort[m.day()] - : this._weekdaysShort; + ? this._weekdaysShort[m.day()] + : this._weekdaysShort; } var defaultLocaleWeekdaysMin = 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'); @@ -1547,8 +1547,8 @@ return m === true ? shiftWeekdays(this._weekdaysMin, this._week.dow) : m - ? this._weekdaysMin[m.day()] - : this._weekdaysMin; + ? this._weekdaysMin[m.day()] + : this._weekdaysMin; } function handleStrictParse$1(weekdayName, format, strict) { @@ -2228,19 +2228,19 @@ a[MONTH] < 0 || a[MONTH] > 11 ? MONTH : a[DATE] < 1 || a[DATE] > daysInMonth(a[YEAR], a[MONTH]) - ? DATE - : a[HOUR] < 0 || - a[HOUR] > 24 || - (a[HOUR] === 24 && - (a[MINUTE] !== 0 || a[SECOND] !== 0 || a[MILLISECOND] !== 0)) - ? HOUR - : a[MINUTE] < 0 || a[MINUTE] > 59 - ? MINUTE - : a[SECOND] < 0 || a[SECOND] > 59 - ? SECOND - : a[MILLISECOND] < 0 || a[MILLISECOND] > 999 - ? MILLISECOND - : -1; + ? DATE + : a[HOUR] < 0 || + a[HOUR] > 24 || + (a[HOUR] === 24 && + (a[MINUTE] !== 0 || a[SECOND] !== 0 || a[MILLISECOND] !== 0)) + ? HOUR + : a[MINUTE] < 0 || a[MINUTE] > 59 + ? MINUTE + : a[SECOND] < 0 || a[SECOND] > 59 + ? SECOND + : a[MILLISECOND] < 0 || a[MILLISECOND] > 999 + ? MILLISECOND + : -1; if ( getParsingFlags(m)._overflowDayOfYear && @@ -3530,16 +3530,16 @@ return diff < -6 ? 'sameElse' : diff < -1 - ? 'lastWeek' - : diff < 0 - ? 'lastDay' - : diff < 1 - ? 'sameDay' - : diff < 2 - ? 'nextDay' - : diff < 7 - ? 'nextWeek' - : 'sameElse'; + ? 'lastWeek' + : diff < 0 + ? 'lastDay' + : diff < 1 + ? 'sameDay' + : diff < 2 + ? 'nextDay' + : diff < 7 + ? 'nextWeek' + : 'sameElse'; } function calendar$1(time, formats) { @@ -4608,12 +4608,12 @@ toInt((number % 100) / 10) === 1 ? 'th' : b === 1 - ? 'st' - : b === 2 - ? 'nd' - : b === 3 - ? 'rd' - : 'th'; + ? 'st' + : b === 2 + ? 'nd' + : b === 3 + ? 'rd' + : 'th'; return number + output; }, }); diff --git a/src/baseframe/static/js/mui.js b/src/baseframe/static/js/mui.js index 2f3f0593..e223ee64 100644 --- a/src/baseframe/static/js/mui.js +++ b/src/baseframe/static/js/mui.js @@ -744,10 +744,10 @@ 27 === e ? i.destroy() : 40 === e - ? i.increment() - : 38 === e - ? i.decrement() - : 13 === e && (i.selectCurrent(), i.destroy()); + ? i.increment() + : 38 === e + ? i.decrement() + : 13 === e && (i.selectCurrent(), i.destroy()); } else (32 !== e && 38 !== e && 40 !== e) || (t.preventDefault(), u(this)); diff --git a/src/baseframe/static/js/nprogress.js b/src/baseframe/static/js/nprogress.js index 2f1d1e78..28a76546 100644 --- a/src/baseframe/static/js/nprogress.js +++ b/src/baseframe/static/js/nprogress.js @@ -284,12 +284,12 @@ 'WebkitTransform' in bodyStyle ? 'Webkit' : 'MozTransform' in bodyStyle - ? 'Moz' - : 'msTransform' in bodyStyle - ? 'ms' - : 'OTransform' in bodyStyle - ? 'O' - : ''; + ? 'Moz' + : 'msTransform' in bodyStyle + ? 'ms' + : 'OTransform' in bodyStyle + ? 'O' + : ''; if (vendorPrefix + 'Perspective' in bodyStyle) { // Modern browsers with 3D support, e.g. Webkit, IE10 diff --git a/src/baseframe/static/js/pace.js b/src/baseframe/static/js/pace.js index 16f95a2e..5bc25257 100644 --- a/src/baseframe/static/js/pace.js +++ b/src/baseframe/static/js/pace.js @@ -482,32 +482,32 @@ I(g) ? void 0 : j.running || (D.restartOnRequestAfter === !1 && 'force' !== J(f)) - ? void 0 - : ((d = arguments), - (c = D.restartOnRequestAfter || 0), - 'boolean' == typeof c && (c = 0), - setTimeout(function () { - var b, c, g, h, i, k; - if ( - (b = - 'socket' === f - ? e.readyState < 2 - : 0 < (h = e.readyState) && 4 > h) - ) { - for ( - j.restart(), i = j.sources, k = [], c = 0, g = i.length; - g > c; - c++ + ? void 0 + : ((d = arguments), + (c = D.restartOnRequestAfter || 0), + 'boolean' == typeof c && (c = 0), + setTimeout(function () { + var b, c, g, h, i, k; + if ( + (b = + 'socket' === f + ? e.readyState < 2 + : 0 < (h = e.readyState) && 4 > h) ) { - if (((K = i[c]), K instanceof a)) { - K.watch.apply(K, d); - break; + for ( + j.restart(), i = j.sources, k = [], c = 0, g = i.length; + g > c; + c++ + ) { + if (((K = i[c]), K instanceof a)) { + K.watch.apply(K, d); + break; + } + k.push(void 0); } - k.push(void 0); + return k; } - return k; - } - }, c)) + }, c)) ); }), (a = (function () { @@ -842,6 +842,6 @@ return j; }) : 'object' == typeof exports - ? (module.exports = j) - : D.startOnPageLoad && j.start(); + ? (module.exports = j) + : D.startOnPageLoad && j.start(); }).call(this); diff --git a/src/baseframe/static/js/parsley.js b/src/baseframe/static/js/parsley.js index bd9b787d..4e0ad8c6 100644 --- a/src/baseframe/static/js/parsley.js +++ b/src/baseframe/static/js/parsley.js @@ -82,12 +82,12 @@ (value == 'false' ? false : value == 'null' - ? null - : !isNaN((num = Number(value))) - ? num - : /^[\[\{]/.test(value) - ? $.parseJSON(value) - : value) + ? null + : !isNaN((num = Number(value))) + ? num + : /^[\[\{]/.test(value) + ? $.parseJSON(value) + : value) : value; } catch (e) { return value; @@ -965,8 +965,8 @@ 'undefined' !== typeof Validator ? Validator : 'undefined' !== typeof module - ? module.exports - : null; + ? module.exports + : null; var ParsleyValidator = function (validators, catalog) { this.__class__ = 'ParsleyValidator'; this.Validator = Validator; diff --git a/src/baseframe/static/js/parsley.remote.js b/src/baseframe/static/js/parsley.remote.js index 94d21e86..09d3dd11 100644 --- a/src/baseframe/static/js/parsley.remote.js +++ b/src/baseframe/static/js/parsley.remote.js @@ -354,12 +354,12 @@ window.ParsleyConfig.validators.remote = { (value == 'false' ? false : value == 'null' - ? null - : !isNaN((num = Number(value))) - ? num - : /^[\[\{]/.test(value) - ? $.parseJSON(value) - : value) + ? null + : !isNaN((num = Number(value))) + ? num + : /^[\[\{]/.test(value) + ? $.parseJSON(value) + : value) : value; } catch (e) { return value; @@ -1237,8 +1237,8 @@ window.ParsleyConfig.validators.remote = { 'undefined' !== typeof Validator ? Validator : 'undefined' !== typeof module - ? module.exports - : null; + ? module.exports + : null; var ParsleyValidator = function (validators, catalog) { this.__class__ = 'ParsleyValidator'; this.Validator = Validator; diff --git a/src/baseframe/static/js/ractive-transitions-fly.js b/src/baseframe/static/js/ractive-transitions-fly.js index 8914c8bc..b1364191 100644 --- a/src/baseframe/static/js/ractive-transitions-fly.js +++ b/src/baseframe/static/js/ractive-transitions-fly.js @@ -2,8 +2,8 @@ 'object' == typeof exports && 'undefined' != typeof module ? (module.exports = e()) : 'function' == typeof define && define.amd - ? define(e) - : (t.Ractive.transitions.fly = e()); + ? define(e) + : (t.Ractive.transitions.fly = e()); })(this, function () { 'use strict'; function t(t) { diff --git a/src/baseframe/static/js/ractive.js b/src/baseframe/static/js/ractive.js index b03bde93..a4805bb3 100644 --- a/src/baseframe/static/js/ractive.js +++ b/src/baseframe/static/js/ractive.js @@ -11,8 +11,8 @@ 'object' == typeof exports && 'undefined' != typeof module ? (module.exports = e()) : 'function' == typeof define && define.amd - ? define(e) - : (t.Ractive = e()); + ? define(e) + : (t.Ractive = e()); })(this, function () { 'use strict'; function t(t) { @@ -22,13 +22,13 @@ ? t.nodeType ? t : 'string' == typeof t && - ((e = document.getElementById(t)), - !e && document.querySelector && (e = document.querySelector(t)), - e && e.nodeType) - ? e - : t[0] && t[0].nodeType - ? t[0] - : null + ((e = document.getElementById(t)), + !e && document.querySelector && (e = document.querySelector(t)), + e && e.nodeType) + ? e + : t[0] && t[0].nodeType + ? t[0] + : null : null; } function e(t) { @@ -78,8 +78,8 @@ return null === t && null === e ? !0 : 'object' == typeof t || 'object' == typeof e - ? !1 - : t === e; + ? !1 + : t === e; } function u(t) { return !isNaN(parseFloat(t)) && isFinite(t); @@ -227,8 +227,8 @@ '*' === r ? (o = o.reduce(n, [])) : o[0] === Za - ? (o[0] = _(r)) - : (o = o.map(S(r))); + ? (o[0] = _(r)) + : (o = o.map(S(r))); return o; } function S(t) { @@ -336,8 +336,8 @@ '~/' === e.substr(0, 2) ? ((i = _(e.substring(2))), q(t, i.firstKey, n)) : '.' === e[0] - ? ((i = z(au(n), e)), i && q(t, i.firstKey, n)) - : (i = B(t, _(e), n)), + ? ((i = z(au(n), e)), i && q(t, i.firstKey, n)) + : (i = B(t, _(e), n)), i ); } @@ -373,15 +373,15 @@ return $(t.viewmodel, s) ? e : t.parent && - !t.isolated && - ((a = !0), - (n = t.component.parentFragment), - (s = _(s)), - (u = B(t.parent, s, n, !0))) - ? (t.viewmodel.map(s, { origin: t.parent.viewmodel, keypath: u }), e) - : i || a - ? void 0 - : (t.viewmodel.set(e, void 0), e); + !t.isolated && + ((a = !0), + (n = t.component.parentFragment), + (s = _(s)), + (u = B(t.parent, s, n, !0))) + ? (t.viewmodel.map(s, { origin: t.parent.viewmodel, keypath: u }), e) + : i || a + ? void 0 + : (t.viewmodel.set(e, void 0), e); } function q(t, e) { var n; @@ -553,8 +553,8 @@ (n = this._isComponentQuery ? !this.selector || t.name === this.selector : t.node - ? fa(t.node, this.selector) - : null), + ? fa(t.node, this.selector) + : null), n ? (this.push(t.node || t.instance), e || this._makeDirty(), !0) : void 0 ); } @@ -563,8 +563,8 @@ return (e = t.parentFragment) ? e.owner : t.component && (e = t.component.parentFragment) - ? e.owner - : void 0; + ? e.owner + : void 0; } function ut(t) { var e, n; @@ -1093,8 +1093,8 @@ return 'true' === e.substr(0, 4) ? ((t.pos += 4), { t: dc, v: 'true' }) : 'false' === e.substr(0, 5) - ? ((t.pos += 5), { t: dc, v: 'false' }) - : null; + ? ((t.pos += 5), { t: dc, v: 'false' }) + : null; } function Ht(t) { var e; @@ -1103,10 +1103,10 @@ ? e.v : '"' + e.v.replace(/"/g, '\\"') + '"' : (e = Wc(t)) - ? e.v - : (e = t.matchPattern(Gc)) - ? e - : void 0; + ? e.v + : (e = t.matchPattern(Gc)) + ? e + : void 0; } function Kt(t) { var e, n, i; @@ -1294,10 +1294,10 @@ t.t === gc ? (e.r = t.n) : t.t === hc && Fl.test(t.v) - ? (e.r = t.v) - : (n = ae(t)) - ? (e.rx = n) - : (e.x = Pl(t)), + ? (e.r = t.v) + : (n = ae(t)) + ? (e.rx = n) + : (e.x = Pl(t)), e ); } @@ -1555,8 +1555,8 @@ '#' !== e[0] ? wl[e] : 'x' === e[1] - ? parseInt(e.substring(2), 16) - : parseInt(e.substring(1), 10)), + ? parseInt(e.substring(2), 16) + : parseInt(e.substring(1), 10)), n ? String.fromCharCode(Ae(n)) : t ); }); @@ -1566,16 +1566,16 @@ ? 10 === t ? 32 : 128 > t - ? t - : 159 >= t - ? xl[t - 128] - : 55296 > t - ? t - : 57343 >= t - ? 65533 - : 65535 >= t - ? t - : 65533 + ? t + : 159 >= t + ? xl[t - 128] + : 55296 > t + ? t + : 57343 >= t + ? 65533 + : 65535 >= t + ? t + : 65533 : 65533; } function Se(t) { @@ -1814,10 +1814,10 @@ ? (i = Df[o.name]) ? (n[i] = Sf(o.value, t)) : (r = jf.exec(o.name)) - ? (n.v || (n.v = {}), (a = Sf(o.value, t)), s(r[1], a)) - : (t.sanitizeEventAttributes && Rf.test(o.name)) || - (n.a || (n.a = {}), - (n.a[o.name] = o.value || ('' === o.value ? '' : 0))) + ? (n.v || (n.v = {}), (a = Sf(o.value, t)), s(r[1], a)) + : (t.sanitizeEventAttributes && Rf.test(o.name)) || + (n.a || (n.a = {}), + (n.a[o.name] = o.value || ('' === o.value ? '' : 0))) : (n.m || (n.m = []), n.m.push(o)), t.allowWhitespace(); if ( @@ -1852,14 +1852,14 @@ })) ? ((d = !0), (t.pos = p)) : (f = t.read(ed)) - ? (c[f.n] && - ((t.pos = p), t.error('Duplicate partial definition')), - lf(f.f, t.stripComments, y, !y, !y), - (c[f.n] = f.f), - (l = !0)) - : (f = t.read(td)) - ? h.push(f) - : (d = !0); + ? (c[f.n] && + ((t.pos = p), t.error('Duplicate partial definition')), + lf(f.f, t.stripComments, y, !y, !y), + (c[f.n] = f.f), + (l = !0)) + : (f = t.read(td)) + ? h.push(f) + : (d = !0); else d = !0; while (!d); h.length && (n.f = h), l && (n.p = c), t.elementStack.pop(); @@ -1983,8 +1983,8 @@ (n[a.n] = a.f), (i = !0)) : (o = t.read(td)) - ? e.push(o) - : t.error('Unexpected template content'); + ? e.push(o) + : t.error('Unexpected template content'); } var u = { v: oa, t: e }; return i && (u.p = n), u; @@ -2237,10 +2237,10 @@ return (e = this.items[n + 1] ? this.items[n + 1].firstNode() : this.owner === this.root - ? this.owner.component - ? this.owner.component.findNextNode() - : null - : this.owner.findNextNode(this)); + ? this.owner.component + ? this.owner.component.findNextNode() + : null + : this.owner.findNextNode(this)); } function xn() { return this.items && this.items[0] ? this.items[0].firstNode() : null; @@ -2254,18 +2254,18 @@ return t.text ? t.text : t.fragments - ? t.fragments - .map(function (t) { - return kn(t.items, e, n, i); - }) - .join('') - : ((r = n + '-' + i++), - (o = - t.keypath && (s = t.root.viewmodel.wrapped[t.keypath.str]) - ? s.value - : t.getValue()), - (e[r] = o), - '${' + r + '}'); + ? t.fragments + .map(function (t) { + return kn(t.items, e, n, i); + }) + .join('') + : ((r = n + '-' + i++), + (o = + t.keypath && (s = t.root.viewmodel.wrapped[t.keypath.str]) + ? s.value + : t.getValue()), + (e[r] = o), + '${' + r + '}'); }) .join('') ); @@ -2343,8 +2343,8 @@ return '@' === e.charAt(0) ? new Wd(t, e, n) : (i = qd(t.parentFragment, e)) - ? new Bd(t, i, n) - : new Vd(t, e, n); + ? new Bd(t, i, n) + : new Vd(t, e, n); } function Fn(t, e) { var n, i; @@ -2364,8 +2364,8 @@ void 0 === i ? 'undefined' : i.isSpecial - ? ((r = i.value), 'number' == typeof r ? r : '"' + r + '"') - : i.str); + ? ((r = i.value), 'number' == typeof r ? r : '"' + r + '"') + : i.str); }); } function Nn(t) { @@ -2629,10 +2629,10 @@ t.ordered ? (ei(t, Cc, !1), ii(t, e, n)) : h(e) || 'function' == typeof e - ? t.template.i - ? (ei(t, Cc, !0), ri(t, e, n)) - : (ei(t, Oc, !1), oi(t, n)) - : (ei(t, Ac, !1), (t.hasContext = !1), ai(t, e, !1, n)) + ? t.template.i + ? (ei(t, Cc, !0), ri(t, e, n)) + : (ei(t, Oc, !1), oi(t, n)) + : (ei(t, Ac, !1), (t.hasContext = !1), ai(t, e, !1, n)) ); } function ii(t, e, n) { @@ -3091,12 +3091,12 @@ n ? e.setAttributeNS(n, i, (s || r).toString()) : this.isBoolean - ? r - ? e.setAttribute(i, '') - : e.removeAttribute(i) - : null == r - ? e.removeAttribute(i) - : e.setAttribute(i, (s || r).toString()); + ? r + ? e.setAttribute(i, '') + : e.removeAttribute(i) + : null == r + ? e.removeAttribute(i) + : e.setAttribute(i, (s || r).toString()); } function Xi() { var t, @@ -3108,29 +3108,29 @@ 'id' === i ? (e = bm) : 'value' === i - ? 'select' === r.name && 'value' === i - ? (e = r.getAttribute('multiple') ? pm : dm) - : 'textarea' === r.name - ? (e = km) - : null != r.getAttribute('contenteditable') - ? (e = xm) - : 'input' === r.name && - ((t = r.getAttribute('type')), - (e = - 'file' === t - ? Fa - : 'radio' === t && r.binding && 'name' === r.binding.name - ? vm - : km)) - : this.isTwoway && 'name' === i - ? 'radio' === s.type - ? (e = mm) - : 'checkbox' === s.type && (e = gm) - : 'style' === i && s.style.setAttribute - ? (e = wm) - : 'class' !== i || (s.namespaceURI && s.namespaceURI !== ia.html) - ? this.useProperty && (e = Em) - : (e = ym), + ? 'select' === r.name && 'value' === i + ? (e = r.getAttribute('multiple') ? pm : dm) + : 'textarea' === r.name + ? (e = km) + : null != r.getAttribute('contenteditable') + ? (e = xm) + : 'input' === r.name && + ((t = r.getAttribute('type')), + (e = + 'file' === t + ? Fa + : 'radio' === t && r.binding && 'name' === r.binding.name + ? vm + : km)) + : this.isTwoway && 'name' === i + ? 'radio' === s.type + ? (e = mm) + : 'checkbox' === s.type && (e = gm) + : 'style' === i && s.style.setAttribute + ? (e = wm) + : 'class' !== i || (s.namespaceURI && s.namespaceURI !== ia.html) + ? this.useProperty && (e = Em) + : (e = ym), e || (e = _m), (this.update = e), this.update(); @@ -3190,25 +3190,26 @@ cr(o.value) ? (n = Mm) : 'input' === t.name - ? ((e = t.getAttribute('type')), - 'radio' === e || 'checkbox' === e - ? ((i = cr(o.name)), - (r = cr(o.checked)), - i && - r && - m( - 'A radio input can have two-way binding on its name attribute, or its checked attribute - not both', - { ractive: t.root } - ), - i - ? (n = 'radio' === e ? $m : Zm) - : r && (n = 'radio' === e ? Bm : Km)) - : 'file' === e && cr(o.value) - ? (n = ev) - : cr(o.value) && (n = 'number' === e || 'range' === e ? nv : Lm)) - : 'select' === t.name && cr(o.value) - ? (n = t.getAttribute('multiple') ? Xm : Ym) - : 'textarea' === t.name && cr(o.value) && (n = Lm), + ? ((e = t.getAttribute('type')), + 'radio' === e || 'checkbox' === e + ? ((i = cr(o.name)), + (r = cr(o.checked)), + i && + r && + m( + 'A radio input can have two-way binding on its name attribute, or its checked attribute - not both', + { ractive: t.root } + ), + i + ? (n = 'radio' === e ? $m : Zm) + : r && (n = 'radio' === e ? Bm : Km)) + : 'file' === e && cr(o.value) + ? (n = ev) + : cr(o.value) && + (n = 'number' === e || 'range' === e ? nv : Lm)) + : 'select' === t.name && cr(o.value) + ? (n = t.getAttribute('multiple') ? Xm : Ym) + : 'textarea' === t.name && cr(o.value) && (n = Lm), n && (s = new n(t)) && s.keypath ? s : void 0 ); } @@ -3610,10 +3611,10 @@ (this.node.text = this.fragment.toString(!1)), (this.fragment.unrender = Fa)) : 'style' === this.name - ? ((this.bubble = lg), this.bubble(), (this.fragment.unrender = Fa)) - : this.binding && this.getAttribute('contenteditable') - ? (this.fragment.unrender = Fa) - : this.node.appendChild(this.fragment.render())), + ? ((this.bubble = lg), this.bubble(), (this.fragment.unrender = Fa)) + : this.binding && this.getAttribute('contenteditable') + ? (this.fragment.unrender = Fa) + : this.node.appendChild(this.fragment.render())), this.binding && (this.binding.render(), (this.node._ractive.binding = this.binding)), this.eventHandlers && @@ -3624,11 +3625,11 @@ 'img' === this.name ? Nr(this) : 'form' === this.name - ? Dr(this) - : 'input' === this.name || 'textarea' === this.name - ? (this.node.defaultValue = this.node.value) - : 'option' === this.name && - (this.node.defaultSelected = this.node.selected), + ? Dr(this) + : 'input' === this.name || 'textarea' === this.name + ? (this.node.defaultValue = this.node.value) + : 'option' === this.name && + (this.node.defaultSelected = this.node.selected), this.decorator && this.decorator.fn && mu.scheduleTask(function () { @@ -3655,12 +3656,12 @@ return (e = (n = t.getAttribute('xmlns')) ? n : 'svg' === t.name - ? ia.svg - : (i = t.parent) - ? 'foreignObject' === i.name - ? ia.html - : i.node.namespaceURI - : t.root.el.namespaceURI); + ? ia.svg + : (i = t.parent) + ? 'foreignObject' === i.name + ? ia.html + : i.node.namespaceURI + : t.root.el.namespaceURI); } function Hr(t) { var e, n, i; @@ -3905,10 +3906,10 @@ return 'string' == typeof n ? ((r = {}), (r[e + n] = i), r) : 'object' == typeof n - ? e - ? ys(n, t) - : n - : void 0; + ? e + ? ys(n, t) + : n + : void 0; })), iy[t] ); @@ -4092,10 +4093,10 @@ ? ((i = this.computations[u]) && !i.bypass ? ((n = i.get()), this.adapt(u, n)) : (r = this.wrapped[u]) - ? (n = r.value) - : t.isRoot - ? (this.adapt('', this.data), (n = this.data)) - : (n = Ns(this, t)), + ? (n = r.value) + : t.isRoot + ? (this.adapt('', this.data), (n = this.data)) + : (n = Ns(this, t)), (a[u] = n)) : (n = a[u]), !e.noUnwrap && (r = this.wrapped[u]) && (n = r.get()), @@ -4325,8 +4326,8 @@ ('string' == typeof n.get ? (i = io(t, n.get)) : 'function' == typeof n.get - ? (i = ro(n.get, t)) - : l('`%s` computation must have a `get()` method', e), + ? (i = ro(n.get, t)) + : l('`%s` computation must have a `get()` method', e), 'function' == typeof n.set && (r = ro(n.set, t))), { getter: i, setter: r } ); @@ -4470,8 +4471,8 @@ e.r ? (i = Qd(t, e.r, n)) : e.x - ? (i = new Gd(t, t.parentFragment, e.x, n)) - : e.rx && (i = new tp(t, e.rx, n)), + ? (i = new Gd(t, t.parentFragment, e.x, n)) + : e.rx && (i = new tp(t, e.rx, n)), i ); } @@ -5244,10 +5245,10 @@ return this === t ? e : this.startsWith(t) - ? null === e - ? e - : _(this.str.replace(t.str + '.', e.str + '.')) - : void 0; + ? null === e + ? e + : _(this.str.replace(t.str + '.', e.str + '.')) + : void 0; }, startsWith: function (t) { return t ? t && this.str.substr(0, t.str.length + 1) === t.str + '.' : !1; @@ -6131,9 +6132,9 @@ ? ((n = Hc(t)), t.matchString('"') ? { t: cc, v: n } : ((t.pos = e), null)) : t.matchString("'") - ? ((n = Zc(t)), - t.matchString("'") ? { t: cc, v: n } : ((t.pos = e), null)) - : null + ? ((n = Zc(t)), + t.matchString("'") ? { t: cc, v: n } : ((t.pos = e), null)) + : null ); }, Gc = /^[a-zA-Z_$][a-zA-Z_$0-9]*/, @@ -6203,11 +6204,11 @@ return (i = e(n)) ? i : n.matchString(t) - ? (n.allowWhitespace(), - (i = Ol(n)), - i || n.error(Mc), - { s: t, o: i, t: wc }) - : null; + ? (n.allowWhitespace(), + (i = Ol(n)), + i || n.error(Mc), + { s: t, o: i, t: wc }) + : null; }; }), (function () { @@ -7167,17 +7168,17 @@ return void 0; } : t.isSpecial - ? ((e = t.value), - function () { - return e; - }) - : function () { - var e = s.root.viewmodel.get(t, { - noUnwrap: !0, - fullRootGet: !0, - }); - return 'function' == typeof e && (e = In(e, s.root)), e; - }; + ? ((e = t.value), + function () { + return e; + }) + : function () { + var e = s.root.viewmodel.get(t, { + noUnwrap: !0, + fullRootGet: !0, + }); + return 'function' == typeof e && (e = In(e, s.root)), e; + }; })), (n = { deps: this.keypaths.filter(Dn), @@ -7204,12 +7205,12 @@ 'string' == typeof t ? (this.value = t) : t.t === gc - ? (this.refResolver = Qd(this, t.n, function (t) { - i.resolve(t); - })) - : new Gd(e, n, t, function (t) { - i.resolve(t); - }); + ? (this.refResolver = Qd(this, t.n, function (t) { + i.resolve(t); + })) + : new Gd(e, n, t, function (t) { + i.resolve(t); + }); }; Yd.prototype = { resolve: function (t) { @@ -7435,12 +7436,12 @@ (i = i.querySelector('.x')), 'SELECT' === i.tagName && (s = i.options[i.selectedIndex])) : e.namespaceURI === ia.svg - ? ((i = xi('DIV')), - (i.innerHTML = '' + t + ''), - (i = i.querySelector('.x'))) - : ((i = xi(e.tagName)), - (i.innerHTML = t), - 'SELECT' === i.tagName && (s = i.options[i.selectedIndex])); + ? ((i = xi('DIV')), + (i.innerHTML = '' + t + ''), + (i = i.querySelector('.x'))) + : ((i = xi(e.tagName)), + (i.innerHTML = t), + 'SELECT' === i.tagName && (s = i.options[i.selectedIndex])); (o = i.firstChild); ) @@ -7488,8 +7489,8 @@ ? fa(this.node, t) ? this.node : this.fragment && this.fragment.find - ? this.fragment.find(t) - : void 0 + ? this.fragment.find(t) + : void 0 : null; }, Hp = function (t, e) { @@ -7780,10 +7781,10 @@ this.element.lazy === !0 ? (t = !0) : this.element.lazy === !1 - ? (t = !1) - : u(this.element.lazy) - ? ((t = !1), (n = +this.element.lazy)) - : u(t || '') && ((n = +t), (t = !1), (this.element.lazy = n)), + ? (t = !1) + : u(this.element.lazy) + ? ((t = !1), (n = +this.element.lazy)) + : u(t || '') && ((n = +t), (t = !1), (this.element.lazy = n)), (this.handler = n ? sr : Im), e.addEventListener('change', Im, !1), t || @@ -8315,8 +8316,10 @@ void 0 !== Lv.transition ? ((Vv = 'transition'), (Mv = 'transitionend'), (Uv = !0)) : void 0 !== Lv.webkitTransition - ? ((Vv = 'webkitTransition'), (Mv = 'webkitTransitionEnd'), (Uv = !0)) - : (Uv = !1); + ? ((Vv = 'webkitTransition'), + (Mv = 'webkitTransitionEnd'), + (Uv = !0)) + : (Uv = !1); })(), Vv && ((Wv = Vv + 'Duration'), @@ -8455,13 +8458,13 @@ 'number' == typeof t ? (t = { duration: t }) : 'string' == typeof t - ? (t = - 'slow' === t - ? { duration: 600 } - : 'fast' === t - ? { duration: 200 } - : { duration: 400 }) - : t || (t = {}), + ? (t = + 'slow' === t + ? { duration: 600 } + : 'fast' === t + ? { duration: 200 } + : { duration: 400 }) + : t || (t = {}), r({}, t, e) ); }, @@ -8626,8 +8629,8 @@ return this.isNamed && this.name ? this.name : void 0 === this.value - ? this.name - : this.value; + ? this.name + : this.value; }, getValue: function () { return this.fragment.getValue(); @@ -9340,8 +9343,8 @@ ? a.set(e, t.value) : ((p[e] = t.value), delete v[e]) : f - ? a.viewmodel.mappings[e].resolve(t) - : (v[e].keypath = t); + ? a.viewmodel.mappings[e].resolve(t) + : (v[e].keypath = t); }))) : (r = new qy(t, o, function (t) { f ? a.set(e, t) : (p[e] = t); @@ -9566,10 +9569,10 @@ s(e.fragments) ? n(e.fragments, i, r) : s(e.items) - ? n(e.items, i, r) - : e.type === sc && - e.instance && - n(e.instance.fragment.items, i, e.instance), + ? n(e.items, i, r) + : e.type === sc && + e.instance && + n(e.instance.fragment.items, i, e.instance), e.type === Xh && (s(e.attributes) && n(e.attributes, i, r), s(e.conditionalAttributes) && n(e.conditionalAttributes, i, r)); diff --git a/src/baseframe/static/js/rrssb.js b/src/baseframe/static/js/rrssb.js index b749022a..09e06cf6 100644 --- a/src/baseframe/static/js/rrssb.js +++ b/src/baseframe/static/js/rrssb.js @@ -387,13 +387,13 @@ var width = window.innerWidth ? window.innerWidth : document.documentElement.clientWidth - ? document.documentElement.clientWidth - : screen.width; + ? document.documentElement.clientWidth + : screen.width; var height = window.innerHeight ? window.innerHeight : document.documentElement.clientHeight - ? document.documentElement.clientHeight - : screen.height; + ? document.documentElement.clientHeight + : screen.height; var left = width / 2 - w / 2 + dualScreenLeft; var top = height / 3 - h / 3 + dualScreenTop; diff --git a/src/baseframe/static/js/validate.js b/src/baseframe/static/js/validate.js index da0eebff..f995a520 100644 --- a/src/baseframe/static/js/validate.js +++ b/src/baseframe/static/js/validate.js @@ -154,11 +154,11 @@ b.depends && 'function' === typeof b.depends ? b.depends.call(this, b) && this._validateField(b) : b.depends && - 'string' === typeof b.depends && - this.conditionals[b.depends] - ? this.conditionals[b.depends].call(this, b) && - this._validateField(b) - : this._validateField(b)); + 'string' === typeof b.depends && + this.conditionals[b.depends] + ? this.conditionals[b.depends].call(this, b) && + this._validateField(b) + : this._validateField(b)); } 'function' === typeof this.callback && this.callback(this.errors, a); 0 < this.errors.length &&