active_admin_prism 0.1.5 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d7692da28c74e2ba208c82c128fc0b8806b5731050c547064513ab8663d2d0ea
4
- data.tar.gz: 3a190afe06d75fb75dba6a58dc51147cc2363a566260958513e2f7f8c849f21a
3
+ metadata.gz: 2b68d329fe400c616b609a8c905284bf9c8230706d184f0bfc643153f049fe50
4
+ data.tar.gz: '01198469632e1abc32702ced859456406792d0c9e3e4c61a33a058ea5065802f'
5
5
  SHA512:
6
- metadata.gz: 19d1e7493871ab1546ac1b1a70d881a209f817bf9051f808d8ab9bdc0f3b9aa772add6b37c19d8aa516743849b7482b3f72cb0580963e42f373789035f4d4b89
7
- data.tar.gz: e4ca0255db93b9f899c8e5d6d8b92d92a922be951e90c1dfd5f0d7baf961307f9cdd1210987263f1c8b46f579fb932ec7dcc2c2c42dfb0c03aeecc4c3d45d21b
6
+ metadata.gz: 655ff8aef5e2e095d6bee8112274b5cd9b947ad4a78c82bdc8a49761b8270ea1722be9fe44dc81123e2f5dd5252cafdc9b5cee017ccb5ba0e4f071bc44e38962
7
+ data.tar.gz: 5ea931e91362d8e223f33189980a6f9fc653d21cf412eacaea33202b7c315ad5d184f47fd6739e5435450e553dcf1b2243679db0eac1bf3d1719e0e85f4fe4f7
data/CHANGELOG.md CHANGED
@@ -1,5 +1,63 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.6
4
+
5
+ Every item below was found in real production use (a real host app running
6
+ 0.1.5) and ported back into the gem so it's fixed for every user instead of
7
+ needing a per-app override.
8
+
9
+ - Fixed: the "Actions"/"Sidebar Actions" dropdowns built an option's label
10
+ from a link's `.value || .textContent` only — an icon-only action_item
11
+ (`link_to(path, title: "...") { ... }`, no visible text, just a tooltip)
12
+ rendered with a completely blank dropdown row. Now falls back to
13
+ `title`/`aria-label` when there's no text content at all.
14
+ - Fixed: once the "Sidebar Actions" dropdown discards every non-Filters
15
+ sidebar section (js-src/prism.js), a page with no Filters panel either
16
+ (any non-index page, or `collapsible_filters` off) could be left with a
17
+ completely empty `#sidebar` that still reserved its usual column width —
18
+ ActiveAdmin's own `.without_sidebar` class (which already reflows
19
+ `#main_content` to fill that space) is only ever added server-side,
20
+ before this discarding runs. Added client-side once `#sidebar` ends up
21
+ empty.
22
+ - The index table's scroll-shadow hints (`.index_content`'s "‹"/"›", see
23
+ 0.1.5) are now clickable — jump straight to that edge instead of having
24
+ to drag-scroll a wide table by hand.
25
+ - Fixed: resizing `.index_content` (e.g. opening/closing the Filters panel,
26
+ which changes `#main_content`'s width) recomputed the scroll-shadow hints
27
+ against whatever `scrollLeft` already was, without ever moving it — a
28
+ table already scrolled all the way to an edge could have the hint for
29
+ that edge reappear, purely because the same pixel `scrollLeft` now left
30
+ more of the table hidden than a moment earlier. Now re-pins to whichever
31
+ edge it was actually sitting at right before the resize.
32
+ - The Pages nav now scrolls the currently active item into view on load,
33
+ instead of leaving a long menu scrolled to the top with the active page
34
+ buried somewhere below the fold.
35
+ - Fixed: a Select2-enhanced filter/form field only got its label-alignment
36
+ CSS when its Formtastic wrapper `<li>` carried the literal class
37
+ `select`, i.e. only ever `as: :select` fields — any other select2-
38
+ rendering input type (`as: :select2`, `:select2_multiple`, a third-party
39
+ gem's own `:searchable_select`, or any other custom type a host
40
+ registers) got a different wrapper class and never matched, so its select2
41
+ control rendered unfloated, colliding with its still-floated label
42
+ instead of sitting beside it. Now matches any field wrapper containing a
43
+ Select2 control, not a specific `as:` type.
44
+ - Fixed: a filter form's multi-control fields (`select_and_search`'s
45
+ predicate + value, `filter_date_range`'s from/to pair) always laid out
46
+ side by side on one line with no minimum width — a narrower-than-default
47
+ `$sidebar-width`, or a Select2-enhanced control whose own open dropdown
48
+ sizes itself from its current trigger width, could clip the text inside.
49
+ Each control now has a real minimum width and the pair wraps onto its own
50
+ line below that, instead of being forced narrower indefinitely.
51
+ - Fixed: a `nested_fields_for`-style helper (cocoon, or a host's own
52
+ hand-rolled equivalent) wraps each repeated entry's own fields in an
53
+ intervening `<fieldset class="nested_fields">`, which ActiveAdmin core's
54
+ own label-floating rule (`ol > li label`) doesn't reach through — labels
55
+ inside such a fieldset rendered as bare inline text crammed against their
56
+ input instead of aligned like every other field in the form.
57
+ - A row with many actions (the default View/Edit/Delete icons plus several
58
+ custom `member_action`s) now wraps onto a second line instead of
59
+ overflowing its column on one cramped, uneven line.
60
+
3
61
  ## 0.1.5
4
62
 
5
63
  - Fixed: a page with several `action_item` buttons could briefly flash
@@ -1,3 +1,3 @@
1
1
  /*! Select2 4.1.0 | https://github.com/select2/select2/blob/master/LICENSE.md */
2
2
  (n=>{"function"==typeof define&&define.amd?define(["jquery"],n):"object"==typeof module&&module.exports?module.exports=function(e,t){return void 0===t&&(t="undefined"!=typeof window?require("jquery"):require("jquery")(e)),n(t),t}:n(jQuery)})(function(t){(u=t&&t.fn&&t.fn.select2&&t.fn.select2.amd?t.fn.select2.amd:u)&&u.requirejs||(u?e=u:u={},g={},m={},y={},v={},n=Object.prototype.hasOwnProperty,i=[].slice,b=/\.js$/,p=function(e,t){var n,i,s=c(e),o=s[0],t=t[1];return e=s[1],o&&(n=A(o=a(o,t))),o?e=n&&n.normalize?n.normalize(e,(i=t,function(e){return a(e,i)})):a(e,t):(o=(s=c(e=a(e,t)))[0],e=s[1],o&&(n=A(o))),{f:o?o+"!"+e:e,n:e,pr:o,p:n}},f={require:function(e){return w(e)},exports:function(e){var t=g[e];return void 0!==t?t:g[e]={}},module:function(e){return{id:e,uri:"",exports:g[e],config:(t=e,function(){return y&&y.config&&y.config[t]||{}})};var t}},o=function(e,t,n,i){var s,o,r,l,a,c=[],u=typeof n,d=x(i=i||e);if("undefined"==u||"function"==u){for(t=!t.length&&n.length?["require","exports","module"]:t,l=0;l<t.length;l+=1)if("require"===(o=(r=p(t[l],d)).f))c[l]=f.require(e);else if("exports"===o)c[l]=f.exports(e),a=!0;else if("module"===o)s=c[l]=f.module(e);else if(_(g,o)||_(m,o)||_(v,o))c[l]=A(o);else{if(!r.p)throw new Error(e+" missing "+o);r.p.load(r.n,w(i,!0),(t=>function(e){g[t]=e})(o),{}),c[l]=g[o]}u=n?n.apply(g[e],c):void 0,e&&(s&&s.exports!==h&&s.exports!==g[e]?g[e]=s.exports:u===h&&a||(g[e]=u))}else e&&(g[e]=n)},s=e=r=function(e,t,n,i,s){if("string"==typeof e)return f[e]?f[e](t):A(p(e,x(t)).f);if(!e.splice){if((y=e).deps&&r(y.deps,y.callback),!t)return;t.splice?(e=t,t=n,n=null):e=h}return t=t||function(){},"function"==typeof n&&(n=i,i=s),i?o(h,e,t,n):setTimeout(function(){o(h,e,t,n)},4),r},r.config=function(e){return r(e)},s._defined=g,(l=function(e,t,n){if("string"!=typeof e)throw new Error("See almond README: incorrect module build, no module name");t.splice||(n=t,t=[]),_(g,e)||_(m,e)||(m[e]=[e,t,n])}).amd={jQuery:!0},u.requirejs=s,u.require=e,u.define=l),u.define("almond",function(){}),u.define("jquery",[],function(){var e=t||$;return null==e&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),e}),u.define("select2/utils",[],function(){var s={};function c(e){var t,n=e.prototype,i=[];for(t in n)"function"==typeof n[t]&&"constructor"!==t&&i.push(t);return i}s.Extend=function(e,t){var n,i={}.hasOwnProperty;function s(){this.constructor=e}for(n in t)i.call(t,n)&&(e[n]=t[n]);return s.prototype=t.prototype,e.prototype=new s,e.__super__=t.prototype,e},s.Decorate=function(i,s){var e=c(s),t=c(i);function o(){var e=Array.prototype.unshift,t=s.prototype.constructor.length,n=i.prototype.constructor;0<t&&(e.call(arguments,i.prototype.constructor),n=s.prototype.constructor),n.apply(this,arguments)}s.displayName=i.displayName,o.prototype=new function(){this.constructor=o};for(var n=0;n<t.length;n++){var r=t[n];o.prototype[r]=i.prototype[r]}for(var l=0;l<e.length;l++){var a=e[l];o.prototype[a]=(e=>{var t=function(){},n=(e in o.prototype&&(t=o.prototype[e]),s.prototype[e]);return function(){return Array.prototype.unshift.call(arguments,t),n.apply(this,arguments)}})(a)}return o};function e(){this.listeners={}}e.prototype.on=function(e,t){this.listeners=this.listeners||{},e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t]},e.prototype.trigger=function(e){var t=Array.prototype.slice,n=t.call(arguments,1);this.listeners=this.listeners||{},0===(n=null==n?[]:n).length&&n.push({}),(n[0]._type=e)in this.listeners&&this.invoke(this.listeners[e],t.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},e.prototype.invoke=function(e,t){for(var n=0,i=e.length;n<i;n++)e[n].apply(this,t)},s.Observable=e,s.generateChars=function(e){for(var t="",n=0;n<e;n++)t+=Math.floor(36*Math.random()).toString(36);return t},s.bind=function(e,t){return function(){e.apply(t,arguments)}},s._convertData=function(e){for(var t in e){var n=t.split("-"),i=e;if(1!==n.length){for(var s=0;s<n.length;s++){var o=n[s];(o=o.substring(0,1).toLowerCase()+o.substring(1))in i||(i[o]={}),s==n.length-1&&(i[o]=e[t]),i=i[o]}delete e[t]}}return e},s.hasScroll=function(e,t){var n=t.style.overflowX,i=t.style.overflowY;return(n!==i||"hidden"!==i&&"visible"!==i)&&("scroll"===n||"scroll"===i||(n=window.getComputedStyle(t),parseFloat(n.height)<t.scrollHeight)||parseFloat(n.width)<t.scrollWidth)},s.escapeMarkup=function(e){var t={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return"string"!=typeof e?e:String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})},s.__cache={};var n=0;return s.GetUniqueElementId=function(e){var t=e.getAttribute("data-select2-id");return null==t&&(t=e.id?"select2-data-"+e.id:"select2-data-"+(++n).toString()+"-"+s.generateChars(4),e.setAttribute("data-select2-id",t)),t},s.StoreData=function(e,t,n){e=s.GetUniqueElementId(e);s.__cache[e]||(s.__cache[e]={}),s.__cache[e][t]=n},s.GetData=function(e,t){var n,i=s.GetUniqueElementId(e);return t?(n=t.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()}),s.__cache[i]&&null!=s.__cache[i][t]?s.__cache[i][t]:e.dataset[n]):s.__cache[i]},s.RemoveData=function(e){var t=s.GetUniqueElementId(e);null!=s.__cache[t]&&delete s.__cache[t],e.removeAttribute("data-select2-id")},s.copyNonInternalCssClasses=function(e,t){var n=(n=e.getAttribute("class").trim().split(/\s+/)).filter(function(e){return 0===e.indexOf("select2-")}),t=(t=t.getAttribute("class").trim().split(/\s+/)).filter(function(e){return 0!==e.indexOf("select2-")}),n=n.concat(t);e.setAttribute("class",n.join(" "))},s}),u.define("select2/results",["jquery","./utils"],function(u,d){function i(e,t,n){this.$element=e,this.data=n,this.options=t,i.__super__.constructor.call(this)}return d.Extend(i,d.Observable),i.prototype.render=function(){var e=u('<ul class="select2-results__options" role="listbox"></ul>');return this.options.get("multiple")&&e[0].setAttribute("aria-multiselectable","true"),this.$results=e},i.prototype.clear=function(){this.$results.empty()},i.prototype.displayMessage=function(e){var t=this.options.get("escapeMarkup"),n=(this.clear(),this.hideLoading(),u('<li role="alert" aria-live="assertive" class="select2-results__option"></li>')),i=this.options.get("translations").get(e.message);n.append(t(i(e.args))),n[0].className+=" select2-results__message",this.$results.append(n)},i.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},i.prototype.append=function(e){this.hideLoading();var t=[];if(null==e.results||0===e.results.length)0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"});else{e.results=this.sort(e.results);for(var n=0;n<e.results.length;n++){var i=e.results[n],i=this.option(i);t.push(i)}this.$results.append(t)}},i.prototype.position=function(e,t){t.find(".select2-results").append(e)},i.prototype.sort=function(e){return this.options.get("sorter")(e)},i.prototype.highlightFirstItem=function(){var e=this.$results.find(".select2-results__option--selectable"),t=e.filter(".select2-results__option--selected");(0<t.length?t:e).first().trigger("mouseenter"),this.ensureHighlightVisible()},i.prototype.setClasses=function(){var t=this;this.data.current(function(e){var i=e.map(function(e){return e.id.toString()});t.$results.find(".select2-results__option--selectable").each(function(){var e=u(this),t=d.GetData(this,"data"),n=""+t.id;null!=t.element&&t.element.selected||null==t.element&&-1<i.indexOf(n)?(this.classList.add("select2-results__option--selected"),e[0].setAttribute("aria-selected","true")):(this.classList.remove("select2-results__option--selected"),e[0].setAttribute("aria-selected","false"))})})},i.prototype.showLoading=function(e){this.hideLoading();e={disabled:!0,loading:!0,text:this.options.get("translations").get("searching")(e)},e=this.option(e);e.className+=" loading-results",this.$results.prepend(e)},i.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},i.prototype.option=function(e){var t,n=document.createElement("li"),i=(n.classList.add("select2-results__option"),n.classList.add("select2-results__option--selectable"),{role:"option"}),s=window.Element.prototype.matches||window.Element.prototype.msMatchesSelector||window.Element.prototype.webkitMatchesSelector;for(t in(null!=e.element&&s.call(e.element,":disabled")||null==e.element&&e.disabled)&&(i["aria-disabled"]="true",n.classList.remove("select2-results__option--selectable"),n.classList.add("select2-results__option--disabled")),null==e.id&&n.classList.remove("select2-results__option--selectable"),null!=e._resultId&&(n.id=e._resultId),e.title&&(n.title=e.title),e.children&&(i.role="group",i["aria-label"]=e.text,n.classList.remove("select2-results__option--selectable"),n.classList.add("select2-results__option--group")),i)n.setAttribute(t,i[t]);if(e.children){for(var s=u(n),o=document.createElement("strong"),r=(o.className="select2-results__group",this.template(e,o),[]),l=0;l<e.children.length;l++){var a=e.children[l],a=this.option(a);r.push(a)}var c=u("<ul></ul>",{class:"select2-results__options select2-results__options--nested",role:"none"});c.append(r),s.append(o),s.append(c)}else this.template(e,n);return d.StoreData(n,"data",e),n},i.prototype.bind=function(t,e){var s=this,n=t.id+"-results";this.$results[0].setAttribute("id",n),t.on("results:all",function(e){s.clear(),s.append(e.data),t.isOpen()&&(s.setClasses(),s.highlightFirstItem())}),t.on("results:append",function(e){s.append(e.data),t.isOpen()&&s.setClasses()}),t.on("query",function(e){s.hideMessages(),s.showLoading(e)}),t.on("select",function(){t.isOpen()&&(s.setClasses(),s.options.get("scrollAfterSelect"))&&s.highlightFirstItem()}),t.on("unselect",function(){t.isOpen()&&(s.setClasses(),s.options.get("scrollAfterSelect"))&&s.highlightFirstItem()}),t.on("open",function(){s.$results[0].setAttribute("aria-expanded","true"),s.$results[0].setAttribute("aria-hidden","false"),s.setClasses(),s.ensureHighlightVisible()}),t.on("close",function(){s.$results[0].setAttribute("aria-expanded","false"),s.$results[0].setAttribute("aria-hidden","true"),s.$results[0].removeAttribute("aria-activedescendant")}),t.on("results:toggle",function(){var e=s.getHighlightedResults();0!==e.length&&e.trigger("mouseup")}),t.on("results:select",function(){var e,t=s.getHighlightedResults();0!==t.length&&(e=d.GetData(t[0],"data"),t.hasClass("select2-results__option--selected")?s.trigger("close",{}):s.trigger("select",{data:e}))}),t.on("results:previous",function(){var e,t=s.getHighlightedResults(),n=s.$results.find(".select2-results__option--selectable"),i=n.index(t);i<=0||(i=i-1,0===t.length&&(i=0),(t=n.eq(i)).trigger("mouseenter"),n=s.$results.offset().top,t=t.offset().top,e=s.$results.scrollTop()+(t-n),0===i?s.$results.scrollTop(0):t-n<0&&s.$results.scrollTop(e))}),t.on("results:next",function(){var e,t,n=s.getHighlightedResults(),i=s.$results.find(".select2-results__option--selectable"),n=i.index(n)+1;n>=i.length||((i=i.eq(n)).trigger("mouseenter"),e=s.$results.offset().top+s.$results.outerHeight(!1),i=i.offset().top+i.outerHeight(!1),t=s.$results.scrollTop()+i-e,0===n?s.$results.scrollTop(0):e<i&&s.$results.scrollTop(t))}),t.on("results:focus",function(e){e.element[0].classList.add("select2-results__option--highlighted"),e.element[0].setAttribute("aria-selected","true")}),t.on("results:message",function(e){s.displayMessage(e)}),u.fn.mousewheel&&this.$results.on("mousewheel",function(e){var t=s.$results.scrollTop(),n=s.$results.get(0).scrollHeight-t+e.deltaY,t=0<e.deltaY&&t-e.deltaY<=0,n=e.deltaY<0&&n<=s.$results.height();t?(s.$results.scrollTop(0),e.preventDefault(),e.stopPropagation()):n&&(s.$results.scrollTop(s.$results.get(0).scrollHeight-s.$results.height()),e.preventDefault(),e.stopPropagation())}),this.$results.on("mouseup",".select2-results__option--selectable",function(e){var t=u(this),n=d.GetData(this,"data");t.hasClass("select2-results__option--selected")?s.options.get("multiple")?s.trigger("unselect",{originalEvent:e,data:n}):s.trigger("close",{originalEvent:e,data:n}):s.trigger("select",{originalEvent:e,data:n})}),this.$results.on("mouseenter",".select2-results__option--selectable",function(e){var t=d.GetData(this,"data"),n=s.getHighlightedResults();n.removeClass("select2-results__option--highlighted"),n.each(function(){this.setAttribute("aria-selected","false")}),s.trigger("results:focus",{data:t,element:u(this)})})},i.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},i.prototype.destroy=function(){this.$results.remove()},i.prototype.ensureHighlightVisible=function(){var e,t,n,i,s=this.getHighlightedResults();0!==s.length&&(e=this.$results.find(".select2-results__option--selectable").index(s),t=this.$results.offset().top,i=s.offset().top,n=this.$results.scrollTop()+(i-t),i=i-t,n-=2*s.outerHeight(!1),e<=2?this.$results.scrollTop(0):(i>this.$results.outerHeight()||i<0)&&this.$results.scrollTop(n))},i.prototype.template=function(e,t){var n=this.options.get("templateResult"),i=this.options.get("escapeMarkup"),n=n(e,t);null==n?t.style.display="none":"string"==typeof n?t.innerHTML=i(n):u(t).append(n)},i}),u.define("select2/keys",[],function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}}),u.define("select2/selection/base",["jquery","../utils","../keys"],function(n,i,s){function o(e,t){this.$element=e,this.options=t,o.__super__.constructor.call(this)}return i.Extend(o,i.Observable),o.prototype.render=function(){var e=n('<span class="select2-selection" role="combobox" aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=i.GetData(this.$element[0],"old-tabindex")?this._tabindex=i.GetData(this.$element[0],"old-tabindex"):null!=this.$element[0].getAttribute("tabindex")&&(this._tabindex=this.$element[0].getAttribute("tabindex")),this.$element[0].getAttribute("title")&&e[0].setAttribute("title",this.$element[0].getAttribute("title")),e[0].setAttribute("tabindex",this._tabindex),e[0].setAttribute("aria-disabled","false"),this.$selection=e},o.prototype.bind=function(e,t){var n=this,i=e.id+"-results";this.container=e,this.$selection.on("focus",function(e){n.trigger("focus",e)}),this.$selection.on("blur",function(e){n._handleBlur(e)}),this.$selection.on("keydown",function(e){n.trigger("keypress",e),e.which===s.SPACE&&e.preventDefault()}),e.on("results:focus",function(e){n.$selection[0].setAttribute("aria-activedescendant",e.data._resultId)}),e.on("selection:update",function(e){n.update(e.data)}),e.on("open",function(){n.$selection[0].setAttribute("aria-expanded","true"),n.$selection[0].setAttribute("aria-owns",i),n._attachCloseHandler(e)}),e.on("close",function(){n.$selection[0].setAttribute("aria-expanded","false"),n.$selection[0].removeAttribute("aria-activedescendant"),n.$selection[0].removeAttribute("aria-owns"),n.$selection.trigger("focus"),n._detachCloseHandler(e)}),e.on("enable",function(){n.$selection[0].setAttribute("tabindex",n._tabindex),n.$selection[0].setAttribute("aria-disabled","false")}),e.on("disable",function(){n.$selection[0].setAttribute("tabindex","-1"),n.$selection[0].setAttribute("aria-disabled","true")})},o.prototype._handleBlur=function(e){var t=this;window.setTimeout(function(){document.activeElement==t.$selection[0]||n.contains(t.$selection[0],document.activeElement)||t.trigger("blur",e)},1)},o.prototype._attachCloseHandler=function(e){n(document.body).on("mousedown.select2."+e.id,function(e){var t=n(e.target).closest(".select2");n(".select2.select2-container--open").each(function(){this!=t[0]&&i.GetData(this,"element").select2("close")})})},o.prototype._detachCloseHandler=function(e){n(document.body).off("mousedown.select2."+e.id)},o.prototype.position=function(e,t){t.find(".selection").append(e)},o.prototype.destroy=function(){this._detachCloseHandler(this.container)},o.prototype.update=function(e){throw new Error("The `update` method must be defined in child classes.")},o.prototype.isEnabled=function(){return!this.isDisabled()},o.prototype.isDisabled=function(){return this.options.get("disabled")},o}),u.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(e,t,n,i){function o(){o.__super__.constructor.apply(this,arguments)}return n.Extend(o,t),o.prototype.render=function(){var e=o.__super__.render.call(this);return e[0].classList.add("select2-selection--single"),e.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),e},o.prototype.bind=function(t,e){var n=this,i=(o.__super__.bind.apply(this,arguments),t.id+"-container"),s=this.$selection.find(".select2-selection__rendered")[0];null!=s&&(s.setAttribute("id",i),s.setAttribute("role","textbox"),s.setAttribute("aria-readonly","true")),this.$selection[0].setAttribute("aria-labelledby",i),this.$selection[0].setAttribute("aria-controls",i),this.$selection.on("mousedown",function(e){1===e.which&&n.trigger("toggle",{originalEvent:e})}),this.$selection.on("focus",function(e){}),this.$selection.on("blur",function(e){}),t.on("focus",function(e){t.isOpen()||n.$selection.trigger("focus")})},o.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e[0].removeAttribute("title")},o.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},o.prototype.selectionContainer=function(){return e("<span></span>")},o.prototype.update=function(e){var t,n;0===e.length?this.clear():(e=e[0],t=this.$selection.find(".select2-selection__rendered"),n=this.display(e,t),t.empty().append(n),(n=e.title||e.text)?t[0].setAttribute("title",n):t[0].removeAttribute("title"))},o}),u.define("select2/selection/multiple",["jquery","./base","../utils"],function(s,e,c){function o(e,t){o.__super__.constructor.apply(this,arguments)}return c.Extend(o,e),o.prototype.render=function(){var e=o.__super__.render.call(this);return e[0].classList.add("select2-selection--multiple"),e.html('<ul class="select2-selection__rendered"></ul>'),e},o.prototype.bind=function(e,t){var n=this,e=(o.__super__.bind.apply(this,arguments),e.id+"-container"),i=this.$selection.find(".select2-selection__rendered")[0];null!=i&&i.setAttribute("id",e),this.$selection.on("click",function(e){n.trigger("toggle",{originalEvent:e})}),this.$selection.on("click",".select2-selection__choice__remove",function(e){var t;n.isDisabled()||(t=s(this).parent(),t=c.GetData(t[0],"data"),n.trigger("unselect",{originalEvent:e,data:t}))}),this.$selection.on("keydown",".select2-selection__choice__remove",function(e){n.isDisabled()||e.stopPropagation()})},o.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e[0].removeAttribute("title")},o.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},o.prototype.selectionContainer=function(){return s('<li class="select2-selection__choice"><button type="button" class="select2-selection__choice__remove" tabindex="-1"><span aria-hidden="true">&times;</span></button><span class="select2-selection__choice__display"></span></li>')},o.prototype.update=function(e){if(this.clear(),0!==e.length){for(var t=[],n=this.$selection.find(".select2-selection__rendered")[0].getAttribute("id")+"-choice-",i=0;i<e.length;i++){var s=e[i],o=this.selectionContainer(),r=this.display(s,o),l=n+c.generateChars(4)+"-",r=(s.id?l+=s.id:l+=c.generateChars(4),o.find(".select2-selection__choice__display").append(r)[0].setAttribute("id",l),s.title||s.text),r=(r&&o[0].setAttribute("title",r),this.options.get("translations").get("removeItem")),a=o.find(".select2-selection__choice__remove")[0];a.setAttribute("title",r()),a.setAttribute("aria-label",r()),a.setAttribute("aria-describedby",l),c.StoreData(o[0],"data",s),t.push(o)}this.$selection.find(".select2-selection__rendered").append(t)}},o}),u.define("select2/selection/placeholder",[],function(){function e(e,t,n){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n)}return e.prototype.normalizePlaceholder=function(e,t){return t="object"!=typeof t?{id:"",text:t}:t},e.prototype.createPlaceholder=function(e,t){var n=this.selectionContainer(),t=(n.html(this.display(t)),n[0].classList.add("select2-selection__placeholder"),n[0].classList.remove("select2-selection__choice"),t.title||t.text||n.text());return this.$selection.find(".select2-selection__rendered")[0].setAttribute("title",t),n},e.prototype.update=function(e,t){var n=1==t.length&&t[0].id!=this.placeholder.id;if(1<t.length||n)return e.call(this,t);this.clear();n=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(n)},e}),u.define("select2/selection/allowClear",["jquery","../keys","../utils"],function(s,i,l){function e(){}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",function(e){i._handleClear(e)}),t.on("keypress",function(e){i._handleKeyboardClear(e,t)})},e.prototype._handleClear=function(e,t){if(!this.isDisabled()){var n=this.$selection.find(".select2-selection__clear");if(0!==n.length){t.stopPropagation();var i=l.GetData(n[0],"data"),s=this.$element.val(),o=(this.$element.val(this.placeholder.id),{data:i});if(this.trigger("clear",o),o.prevented)this.$element.val(s);else{for(var r=0;r<i.length;r++)if(o={data:i[r]},this.trigger("unselect",o),o.prevented)return void this.$element.val(s);this.$element.trigger("input").trigger("change"),this.trigger("toggle",{})}}}},e.prototype._handleKeyboardClear=function(e,t,n){n.isOpen()||t.which!=i.DELETE&&t.which!=i.BACKSPACE||this._handleClear(t)},e.prototype.update=function(e,t){var n,i;e.call(this,t),this.$selection.find(".select2-selection__clear").remove(),this.$selection[0].classList.remove("select2-selection--clearable"),0<this.$selection.find(".select2-selection__placeholder").length||0===t.length||((e=null)!=(n=this.$selection.find(".select2-selection__rendered")[0])&&(e=n.getAttribute("id")),n=this.options.get("translations").get("removeAllItems"),(i=s('<button type="button" class="select2-selection__clear" tabindex="-1"><span aria-hidden="true">&times;</span></button>'))[0].setAttribute("title",n()),i[0].setAttribute("aria-label",n()),i[0].setAttribute("aria-describedby",e),l.StoreData(i[0],"data",t),this.$selection.prepend(i),this.$selection[0].classList.add("select2-selection--clearable"))},e}),u.define("select2/selection/search",["jquery","../utils","../keys"],function(i,l,a){function e(e,t,n){e.call(this,t,n)}return e.prototype.render=function(e){var t=this.options.get("translations").get("search"),n=i('<span class="select2-search select2-search--inline"><textarea class="select2-search__field" type="search" tabindex="-1" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" ></textarea></span>'),n=(this.$searchContainer=n,this.$search=n.find("textarea"),this.$search[0].autocomplete=this.options.get("autocomplete"),this.$search[0].setAttribute("aria-label",t()),e.call(this));return this._transferTabIndex(),n.append(this.$searchContainer),n},e.prototype.bind=function(e,t,n){var i=this,s=t.id+"-results",o=t.id+"-container",e=(e.call(this,t,n),i.$search[0].setAttribute("aria-describedby",o),t.on("open",function(){i.$search[0].setAttribute("aria-controls",s),i.$search.trigger("focus")}),t.on("close",function(){i.$search.val(""),i.resizeSearch(),i.$search[0].removeAttribute("aria-controls"),i.$search[0].removeAttribute("aria-activedescendant"),i.$search.trigger("focus")}),t.on("enable",function(){i.$search[0].disabled=!1,i._transferTabIndex()}),t.on("disable",function(){i.$search[0].disabled=!0}),t.on("focus",function(e){i.$search.trigger("focus")}),t.on("results:focus",function(e){e.data._resultId?i.$search[0].setAttribute("aria-activedescendant",e.data._resultId):i.$search[0].removeAttribute("aria-activedescendant")}),this.$selection.on("focusin",".select2-search--inline",function(e){i.trigger("focus",e)}),this.$selection.on("focusout",".select2-search--inline",function(e){i._handleBlur(e)}),this.$selection.on("keydown",".select2-search--inline",function(e){var t;e.stopPropagation(),i.trigger("keypress",e),i._keyUpPrevented=e.isDefaultPrevented(),e.which===a.BACKSPACE&&""===i.$search.val()&&0<(t=i.$selection.find(".select2-selection__choice").last()).length&&(t=l.GetData(t[0],"data"),i.searchRemoveChoice(t),e.preventDefault())}),this.$selection.on("click",".select2-search--inline",function(e){i.$search.val()&&e.stopPropagation()}),document.documentMode),r=e&&e<=11;this.$selection.on("input.searchcheck",".select2-search--inline",function(e){r?i.$selection.off("input.search input.searchcheck"):i.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".select2-search--inline",function(e){var t;r&&"input"===e.type?i.$selection.off("input.search input.searchcheck"):(t=e.which)!=a.SHIFT&&t!=a.CTRL&&t!=a.ALT&&t!=a.TAB&&i.handleSearch(e)})},e.prototype._transferTabIndex=function(e){this.$search[0].setAttribute("tabindex",this.$selection[0].getAttribute("tabindex")),this.$selection[0].setAttribute("tabindex","-1")},e.prototype.createPlaceholder=function(e,t){this.$search[0].setAttribute("placeholder",t.text)},e.prototype.update=function(e,t){var n=this.$search[0]==document.activeElement;this.$search[0].setAttribute("placeholder",""),e.call(this,t),this.resizeSearch(),n&&this.$search.trigger("focus")},e.prototype.handleSearch=function(){var e;this.resizeSearch(),this._keyUpPrevented||(e=this.$search.val(),this.trigger("query",{term:e})),this._keyUpPrevented=!1},e.prototype.searchRemoveChoice=function(e,t){this.trigger("unselect",{data:t}),this.$search.val(t.text),this.handleSearch()},e.prototype.resizeSearch=function(){this.$search.css("width","25px");var e="100%";""===this.$search[0].getAttribute("placeholder")&&(e=.75*(this.$search.val().length+1)+"em"),this.$search.css("width",e)},e}),u.define("select2/selection/selectionCss",["../utils"],function(n){function e(){}return e.prototype.render=function(e){var t=e.call(this),e=this.options.get("selectionCssClass")||"";return-1!==e.indexOf(":all:")&&(e=e.replace(":all:",""),n.copyNonInternalCssClasses(t[0],this.$element[0])),e.trim().split(" ").forEach(function(e){0<e.length&&t[0].classList.add(e)}),t},e}),u.define("select2/selection/eventRelay",["jquery"],function(r){function e(){}return e.prototype.bind=function(e,t,n){var i=this,s=["open","opening","close","closing","select","selecting","unselect","unselecting","clear","clearing"],o=["opening","closing","selecting","unselecting","clearing"];e.call(this,t,n),t.on("*",function(e,t){var n;-1!==s.indexOf(e)&&(n=r.Event("select2:"+e,{params:t=t||{}}),i.$element.trigger(n),-1!==o.indexOf(e))&&(t.prevented=n.isDefaultPrevented())})},e}),u.define("select2/translation",["require"],function(n){function i(e){this.dict=e||{}}return i.prototype.all=function(){return this.dict},i.prototype.get=function(e){return this.dict[e]},i.prototype.extend=function(e){this.dict=Object.assign({},e.all(),this.dict)},i._cache={},i.loadPath=function(e){var t;return e in i._cache||(t=n(e),i._cache[e]=t),new i(i._cache[e])},i}),u.define("select2/diacritics",[],function(){return{"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Œ":"OE","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","œ":"oe","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ώ":"ω","ς":"σ","’":"'"}}),u.define("select2/data/base",["../utils"],function(n){function i(e,t){i.__super__.constructor.call(this)}return n.Extend(i,n.Observable),i.prototype.current=function(e){throw new Error("The `current` method must be defined in child classes.")},i.prototype.query=function(e,t){throw new Error("The `query` method must be defined in child classes.")},i.prototype.bind=function(e,t){},i.prototype.destroy=function(){},i.prototype.generateResultId=function(e,t){e=e.id+"-result-";return e+=n.generateChars(4),null!=t.id?e+="-"+t.id.toString():e+="-"+n.generateChars(4),e},i}),u.define("select2/data/select",["./base","../utils","jquery"],function(e,l,a){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return l.Extend(n,e),n.prototype.current=function(e){var t=this;e(Array.prototype.map.call(this.$element[0].querySelectorAll(":checked"),function(e){return t.item(a(e))}))},n.prototype.select=function(s){var e,o=this;s.selected=!0,null!=s.element&&"option"===s.element.tagName.toLowerCase()?(s.element.selected=!0,this.$element.trigger("input").trigger("change")):this.$element[0].multiple?this.current(function(e){var t=[];(s=[s]).push.apply(s,e);for(var n=0;n<s.length;n++){var i=s[n].id;-1===t.indexOf(i)&&t.push(i)}o.$element.val(t),o.$element.trigger("input").trigger("change")}):(e=s.id,this.$element.val(e),this.$element.trigger("input").trigger("change"))},n.prototype.unselect=function(s){var o=this;this.$element[0].multiple&&(s.selected=!1,null!=s.element&&"option"===s.element.tagName.toLowerCase()?(s.element.selected=!1,this.$element.trigger("input").trigger("change")):this.current(function(e){for(var t=[],n=0;n<e.length;n++){var i=e[n].id;i!==s.id&&-1===t.indexOf(i)&&t.push(i)}o.$element.val(t),o.$element.trigger("input").trigger("change")}))},n.prototype.bind=function(e,t){var n=this;(this.container=e).on("select",function(e){n.select(e.data)}),e.on("unselect",function(e){n.unselect(e.data)})},n.prototype.destroy=function(){this.$element.find("*").each(function(){l.RemoveData(this)})},n.prototype.query=function(t,e){var n=[],i=this;this.$element.children().each(function(){var e;"option"!==this.tagName.toLowerCase()&&"optgroup"!==this.tagName.toLowerCase()||(e=a(this),e=i.item(e),null!==(e=i.matches(t,e))&&n.push(e))}),e({results:n})},n.prototype.addOptions=function(e){this.$element.append(e)},n.prototype.option=function(e){e.children?(t=document.createElement("optgroup")).label=e.text:void 0!==(t=document.createElement("option")).textContent?t.textContent=e.text:t.innerText=e.text,void 0!==e.id&&(t.value=e.id),e.disabled&&(t.disabled=!0),e.selected&&(t.selected=!0),e.title&&(t.title=e.title);var t,e=this._normalizeItem(e);return e.element=t,l.StoreData(t,"data",e),a(t)},n.prototype.item=function(e){var t={};if(null==(t=l.GetData(e[0],"data"))){var n=e[0];if("option"===n.tagName.toLowerCase())t={id:e.val(),text:e.text(),disabled:e[0].disabled,selected:e[0].selected,title:e[0].title};else if("optgroup"===n.tagName.toLowerCase()){for(var t={text:e[0].label,children:[],title:e[0].title},i=e.children("option"),s=[],o=0;o<i.length;o++){var r=a(i[o]),r=this.item(r);s.push(r)}t.children=s}(t=this._normalizeItem(t)).element=e[0],l.StoreData(e[0],"data",t)}return t},n.prototype._normalizeItem=function(e){e!==Object(e)&&(e={id:e,text:e});return null!=(e=a.extend({},{text:""},e)).id&&(e.id=e.id.toString()),null!=e.text&&(e.text=e.text.toString()),null==e._resultId&&e.id&&null!=this.container&&(e._resultId=this.generateResultId(this.container,e)),e.children&&(e.children=e.children.map(n.prototype._normalizeItem)),a.extend({},{selected:!1,disabled:!1},e)},n.prototype.matches=function(e,t){return this.options.get("matcher")(e,t)},n}),u.define("select2/data/array",["./select","../utils","jquery"],function(e,t,c){function i(e,t){this._dataToConvert=t.get("data")||[],i.__super__.constructor.call(this,e,t)}return t.Extend(i,e),i.prototype.bind=function(e,t){i.__super__.bind.call(this,e,t),this.addOptions(this.convertToOptions(this._dataToConvert))},i.prototype.select=function(n){var e;0===this.$element.find("option").filter(function(e,t){return t.value==n.id.toString()}).length&&(e=this.option(n),this.addOptions(e)),i.__super__.select.call(this,n)},i.prototype.convertToOptions=function(e){var t=this,n=this.$element.find("option"),i=n.map(function(){return t.item(c(this)).id}).get(),s=[];for(var o=0;o<e.length;o++){var r,l,a=this._normalizeItem(e[o]);0<=i.indexOf(a.id)?(r=n.filter((e=>function(){return c(this).val()==e.id})(a)),l=this.item(r),l=c.extend(!0,{},a,l),l=this.option(l),r.replaceWith(l)):(r=this.option(a),a.children&&(l=this.convertToOptions(a.children),r.append(l)),s.push(r))}return s},i}),u.define("select2/data/ajax",["./array","../utils","jquery"],function(e,t,o){function r(e,t){this.ajaxOptions=this._applyDefaults(t.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),r.__super__.constructor.call(this,e,t)}return t.Extend(r,e),r.prototype._applyDefaults=function(e){return o.extend({},{data:function(e){return o.extend({},e,{q:e.term})},transport:function(e,t,n){e=o.ajax(e);return e.then(t),e.fail(n),e}},e,!0)},r.prototype.processResults=function(e){return e},r.prototype.query=function(t,n){var i=this,s=(null!=this._request&&("function"==typeof this._request.abort&&this._request.abort(),this._request=null),o.extend({type:"GET"},this.ajaxOptions));function e(){var e=s.transport(s,function(e){e=i.processResults(e,t);e&&e.results&&Array.isArray(e.results)?e.results=e.results.map(r.prototype._normalizeItem):i.options.get("debug")&&window.console&&console.error&&console.error("Select2: The AJAX results did not return an array in the `results` key of the response."),n(e)},function(){e&&"status"in e&&(0===e.status||"0"===e.status)||i.trigger("results:message",{message:"errorLoading"})});i._request=e}"function"==typeof s.url&&(s.url=s.url.call(this.$element,t)),"function"==typeof s.data&&(s.data=s.data.call(this.$element,t)),this.ajaxOptions.delay&&null!=t.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(e,this.ajaxOptions.delay)):e()},r}),u.define("select2/data/tags",["jquery"],function(t){function e(e,t,n){var i=n.get("tags"),s=n.get("createTag"),s=(void 0!==s&&(this.createTag=s),n.get("insertTag"));if(void 0!==s&&(this.insertTag=s),e.call(this,t,n),Array.isArray(i))for(var o=0;o<i.length;o++){var r=i[o],r=this._normalizeItem(r),r=this.option(r);this.$element.append(r)}}return e.prototype.query=function(e,c,u){var d=this;this._removeOldTags(),null==c.term||null!=c.page?e.call(this,c,u):e.call(this,c,function e(t,n){for(var i=t.results,s=0;s<i.length;s++){var o=i[s],r=null!=o.children&&!e({results:o.children},!0);if((o.text||"").toUpperCase()===(c.term||"").toUpperCase()||r)return!n&&(t.data=i,void u(t))}if(n)return!0;var l,a=d.createTag(c);null!=a&&((l=d.option(a))[0].setAttribute("data-select2-tag","true"),d.addOptions([l]),d.insertTag(i,a)),t.results=i,u(t)})},e.prototype.createTag=function(e,t){return null==t.term||""===(t=t.term.trim())?null:{id:t,text:t}},e.prototype.insertTag=function(e,t,n){t.unshift(n)},e.prototype._removeOldTags=function(e){this.$element.find("option[data-select2-tag]").each(function(){this.selected||t(this).remove()})},e}),u.define("select2/data/tokenizer",["jquery"],function(c){function e(e,t,n){var i=n.get("tokenizer");void 0!==i&&(this.tokenizer=i),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){e.call(this,t,n),this.$search=t.dropdown.$search||t.selection.$search||n.find(".select2-search__field")},e.prototype.query=function(e,t,n){var i=this;t.term=t.term||"";var s=this.tokenizer(t,this.options,function(e){var t=i._normalizeItem(e);i.$element.find("option").filter(function(){return c(this).val()===t.id}).length||((e=i.option(t))[0].setAttribute("data-select2-tag",!0),i._removeOldTags(),i.addOptions([e])),i.trigger("select",{data:t})});s.term!==t.term&&(this.$search.length&&(this.$search.val(s.term),this.$search.trigger("focus")),t.term=s.term),e.call(this,t,n)},e.prototype.tokenizer=function(e,t,n,i){for(var s=n.get("tokenSeparators")||[],o=t.term,r=0,l=this.createTag||function(e){return{id:e.term,text:e.term}};r<o.length;){var a=o[r];-1===s.indexOf(a)?r++:(a=o.substr(0,r),null==(a=l(c.extend({},t,{term:a})))?r++:(i(a),o=o.substr(r+1)||"",r=0))}return{term:o}},e}),u.define("select2/data/minimumInputLength",[],function(){function e(e,t,n){this.minimumInputLength=n.get("minimumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.term=t.term||"",t.term.length<this.minimumInputLength?this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e}),u.define("select2/data/maximumInputLength",[],function(){function e(e,t,n){this.maximumInputLength=n.get("maximumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.term=t.term||"",0<this.maximumInputLength&&t.term.length>this.maximumInputLength?this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e}),u.define("select2/data/maximumSelectionLength",[],function(){function e(e,t,n){this.maximumSelectionLength=n.get("maximumSelectionLength"),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("select",function(){i._checkIfMaximumSelected()})},e.prototype.query=function(e,t,n){var i=this;this._checkIfMaximumSelected(function(){e.call(i,t,n)})},e.prototype._checkIfMaximumSelected=function(e,t){var n=this;this.current(function(e){e=null!=e?e.length:0;0<n.maximumSelectionLength&&e>=n.maximumSelectionLength?n.trigger("results:message",{message:"maximumSelected",args:{maximum:n.maximumSelectionLength}}):t&&t()})},e}),u.define("select2/dropdown",["jquery","./utils"],function(t,e){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return e.Extend(n,e.Observable),n.prototype.render=function(){var e=t('<span class="select2-dropdown"><span class="select2-results"></span></span>');return e[0].setAttribute("dir",this.options.get("dir")),this.$dropdown=e},n.prototype.bind=function(){},n.prototype.position=function(e,t){},n.prototype.destroy=function(){this.$dropdown.remove()},n}),u.define("select2/dropdown/search",["jquery"],function(o){function e(){}return e.prototype.render=function(e){var e=e.call(this),t=this.options.get("translations").get("search"),n=o('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></span>');return this.$searchContainer=n,this.$search=n.find("input"),this.$search[0].autocomplete=this.options.get("autocomplete"),this.$search[0].setAttribute("aria-label",t()),e.prepend(n),e},e.prototype.bind=function(e,t,n){var i=this,s=t.id+"-results";e.call(this,t,n),this.$search.on("keydown",function(e){i.trigger("keypress",e),i._keyUpPrevented=e.isDefaultPrevented()}),this.$search.on("input",function(e){o(this).off("keyup")}),this.$search.on("keyup input",function(e){i.handleSearch(e)}),t.on("open",function(){i.$search[0].setAttribute("tabindex",0),i.$search[0].setAttribute("aria-controls",s),i.$search.trigger("focus"),window.setTimeout(function(){i.$search.trigger("focus")},0)}),t.on("close",function(){i.$search[0].setAttribute("tabindex",-1),i.$search[0].removeAttribute("aria-controls"),i.$search[0].removeAttribute("aria-activedescendant"),i.$search.val(""),i.$search.trigger("blur")}),t.on("focus",function(){t.isOpen()||i.$search.trigger("focus")}),t.on("results:all",function(e){null!=e.query.term&&""!==e.query.term||(i.showSearch(e)?i.$searchContainer[0].classList.remove("select2-search--hide"):i.$searchContainer[0].classList.add("select2-search--hide"))}),t.on("results:focus",function(e){e.data._resultId?i.$search[0].setAttribute("aria-activedescendant",e.data._resultId):i.$search[0].removeAttribute("aria-activedescendant")})},e.prototype.handleSearch=function(e){var t;this._keyUpPrevented||(t=this.$search.val(),this.trigger("query",{term:t})),this._keyUpPrevented=!1},e.prototype.showSearch=function(e,t){return!0},e}),u.define("select2/dropdown/hidePlaceholder",[],function(){function e(e,t,n,i){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n,i)}return e.prototype.append=function(e,t){t.results=this.removePlaceholder(t.results),e.call(this,t)},e.prototype.normalizePlaceholder=function(e,t){return t="object"!=typeof t?{id:"",text:t}:t},e.prototype.removePlaceholder=function(e,t){for(var n=t.slice(0),i=t.length-1;0<=i;i--){var s=t[i];this.placeholder.id===s.id&&n.splice(i,1)}return n},e}),u.define("select2/dropdown/infiniteScroll",["jquery"],function(n){function e(e,t,n,i){this.lastParams={},e.call(this,t,n,i),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return e.prototype.append=function(e,t){this.$loadingMore.remove(),this.loading=!1,e.call(this,t),this.showLoadingMore(t)&&(this.$results.append(this.$loadingMore),this.loadMoreIfNeeded())},e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("query",function(e){i.lastParams=e,i.loading=!0}),t.on("query:append",function(e){i.lastParams=e,i.loading=!0}),this.$results.on("scroll",this.loadMoreIfNeeded.bind(this))},e.prototype.loadMoreIfNeeded=function(){var e=n.contains(document.documentElement,this.$loadingMore[0]);!this.loading&&e&&(e=this.$results.offset().top+this.$results.outerHeight(!1),this.$loadingMore.offset().top+this.$loadingMore.outerHeight(!1)<=e+50)&&this.loadMore()},e.prototype.loadMore=function(){this.loading=!0;var e=n.extend({},{page:1},this.lastParams);e.page++,this.trigger("query:append",e)},e.prototype.showLoadingMore=function(e,t){return t.pagination&&t.pagination.more},e.prototype.createLoadingMore=function(){var e=n('<li class="select2-results__option select2-results__option--load-more"role="option" aria-disabled="true"></li>'),t=this.options.get("translations").get("loadingMore");return e.html(t(this.lastParams)),e},e}),u.define("select2/dropdown/attachBody",["jquery","../utils"],function(u,r){function e(e,t,n){this.$dropdownParent=u(n.get("dropdownParent")||document.body),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("open",function(){i._showDropdown(),i._attachPositioningHandler(t),i._bindContainerResultHandlers(t)}),t.on("close",function(){i._hideDropdown(),i._detachPositioningHandler(t)}),this.$dropdownContainer.on("mousedown",function(e){e.stopPropagation()})},e.prototype.destroy=function(e){e.call(this),this.$dropdownContainer.remove()},e.prototype.position=function(e,t,n){t[0].setAttribute("class",n[0].getAttribute("class")),t[0].classList.remove("select2"),t[0].classList.add("select2-container--open"),t.css({position:"absolute",top:-999999}),this.$container=n},e.prototype.render=function(e){var t=u("<span></span>"),e=e.call(this);return t.append(e),this.$dropdownContainer=t},e.prototype._hideDropdown=function(e){this.$dropdownContainer.detach()},e.prototype._bindContainerResultHandlers=function(e,t){var n;this._containerResultsHandlersBound||(n=this,t.on("results:all",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("results:append",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("results:message",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("select",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("unselect",function(){n._positionDropdown(),n._resizeDropdown()}),this._containerResultsHandlersBound=!0)},e.prototype._attachPositioningHandler=function(e,t){var n=this,i="scroll.select2."+t.id,s="resize.select2."+t.id,t="orientationchange.select2."+t.id,o=this.$container.parents().filter(r.hasScroll);o.each(function(){r.StoreData(this,"select2-scroll-position",{x:u(this).scrollLeft(),y:u(this).scrollTop()})}),o.on(i,function(e){var t=r.GetData(this,"select2-scroll-position");u(this).scrollTop(t.y)}),u(window).on(i+" "+s+" "+t,function(e){n._positionDropdown(),n._resizeDropdown()})},e.prototype._detachPositioningHandler=function(e,t){var n="scroll.select2."+t.id,i="resize.select2."+t.id,t="orientationchange.select2."+t.id;this.$container.parents().filter(r.hasScroll).off(n),u(window).off(n+" "+i+" "+t)},e.prototype._positionDropdown=function(){var e=u(window),t=this.$dropdown[0].classList.contains("select2-dropdown--above"),n=this.$dropdown[0].classList.contains("select2-dropdown--below"),i=null,s=this.$container.offset(),o=(s.bottom=s.top+this.$container.outerHeight(!1),{height:this.$container.outerHeight(!1)});o.top=s.top,o.bottom=s.top+o.height;var r=this.$dropdown.outerHeight(!1),l=e.scrollTop(),e=e.scrollTop()+e.height(),l=l<s.top-r,e=e>s.bottom+r,s={left:s.left,top:o.bottom},a=this.$dropdownParent,c=("static"===a.css("position")&&(a=a.offsetParent()),{top:0,left:0});(u.contains(document.body,a[0])||a[0].isConnected)&&(c=a.offset()),s.top-=c.top,s.left-=c.left,t||n||(i="below"),e||!l||t?!l&&e&&t&&(i="below"):i="above",("above"==i||t&&"below"!==i)&&(s.top=o.top-c.top-r),null!=i&&(this.$dropdown[0].classList.remove("select2-dropdown--below"),this.$dropdown[0].classList.remove("select2-dropdown--above"),this.$dropdown[0].classList.add("select2-dropdown--"+i),this.$container[0].classList.remove("select2-container--below"),this.$container[0].classList.remove("select2-container--above"),this.$container[0].classList.add("select2-container--"+i)),this.$dropdownContainer.css(s)},e.prototype._resizeDropdown=function(){var e={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(e.minWidth=e.width,e.position="relative",e.width="auto"),this.$dropdown.css(e)},e.prototype._showDropdown=function(e){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},e}),u.define("select2/dropdown/minimumResultsForSearch",[],function(){function e(e,t,n,i){this.minimumResultsForSearch=n.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),e.call(this,t,n,i)}return e.prototype.showSearch=function(e,t){return!(function e(t){for(var n=0,i=0;i<t.length;i++){var s=t[i];s.children?n+=e(s.children):n++}return n}(t.data.results)<this.minimumResultsForSearch)&&e.call(this,t)},e}),u.define("select2/dropdown/selectOnClose",["../utils"],function(n){function e(){}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("close",function(e){i._handleSelectOnClose(e)})},e.prototype._handleSelectOnClose=function(e,t){if(t&&null!=t.originalSelect2Event){t=t.originalSelect2Event;if("select"===t._type||"unselect"===t._type)return}var t=this.getHighlightedResults();t.length<1||null!=(t=n.GetData(t[0],"data")).element&&t.element.selected||null==t.element&&t.selected||this.trigger("select",{data:t})},e}),u.define("select2/dropdown/closeOnSelect",[],function(){function e(){}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("select",function(e){i._selectTriggered(e)}),t.on("unselect",function(e){i._selectTriggered(e)})},e.prototype._selectTriggered=function(e,t){var n=t.originalEvent;n&&(n.ctrlKey||n.metaKey)||this.trigger("close",{originalEvent:n,originalSelect2Event:t})},e}),u.define("select2/dropdown/dropdownCss",["../utils"],function(n){function e(){}return e.prototype.render=function(e){var t=e.call(this),e=this.options.get("dropdownCssClass")||"";return-1!==e.indexOf(":all:")&&(e=e.replace(":all:",""),n.copyNonInternalCssClasses(t[0],this.$element[0])),e.trim().split(" ").forEach(function(e){0<e.length&&t[0].classList.add(e)}),t},e}),u.define("select2/dropdown/tagsSearchHighlight",["../utils"],function(i){function e(){}return e.prototype.highlightFirstItem=function(e){var t=this.$results.find(".select2-results__option--selectable:not(.select2-results__option--selected)");if(0<t.length){var t=t.first(),n=i.GetData(t[0],"data").element;if(n&&n.getAttribute&&"true"===n.getAttribute("data-select2-tag"))return void t.trigger("mouseenter")}e.call(this)},e}),u.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(e){var e=e.input.length-e.maximum,t="Please delete "+e+" character";return 1!=e&&(t+="s"),t},inputTooShort:function(e){return"Please enter "+(e.minimum-e.input.length)+" or more characters"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(e){var t="You can only select "+e.maximum+" item";return 1!=e.maximum&&(t+="s"),t},noResults:function(){return"No results found"},searching:function(){return"Searching…"},removeAllItems:function(){return"Remove all items"},removeItem:function(){return"Remove item"},search:function(){return"Search"}}}),u.define("select2/defaults",["jquery","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/selectionCss","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./dropdown/dropdownCss","./dropdown/tagsSearchHighlight","./i18n/en"],function(a,o,r,l,c,u,d,h,p,f,g,t,m,y,v,b,_,w,$,A,x,D,S,L,O,E,C,T,I,q,e){function n(){this.reset()}return n.prototype.apply=function(e){null==(e=a.extend(!0,{},this.defaults,e)).dataAdapter&&(null!=e.ajax?e.dataAdapter=v:null!=e.data?e.dataAdapter=y:e.dataAdapter=m,0<e.minimumInputLength&&(e.dataAdapter=f.Decorate(e.dataAdapter,w)),0<e.maximumInputLength&&(e.dataAdapter=f.Decorate(e.dataAdapter,$)),0<e.maximumSelectionLength&&(e.dataAdapter=f.Decorate(e.dataAdapter,A)),e.tags&&(e.dataAdapter=f.Decorate(e.dataAdapter,b)),null==e.tokenSeparators&&null==e.tokenizer||(e.dataAdapter=f.Decorate(e.dataAdapter,_))),null==e.resultsAdapter&&(e.resultsAdapter=o,null!=e.ajax&&(e.resultsAdapter=f.Decorate(e.resultsAdapter,L)),null!=e.placeholder&&(e.resultsAdapter=f.Decorate(e.resultsAdapter,S)),e.selectOnClose&&(e.resultsAdapter=f.Decorate(e.resultsAdapter,C)),e.tags)&&(e.resultsAdapter=f.Decorate(e.resultsAdapter,q)),null==e.dropdownAdapter&&(e.multiple?e.dropdownAdapter=x:(t=f.Decorate(x,D),e.dropdownAdapter=t),0!==e.minimumResultsForSearch&&(e.dropdownAdapter=f.Decorate(e.dropdownAdapter,E)),e.closeOnSelect&&(e.dropdownAdapter=f.Decorate(e.dropdownAdapter,T)),null!=e.dropdownCssClass&&(e.dropdownAdapter=f.Decorate(e.dropdownAdapter,I)),e.dropdownAdapter=f.Decorate(e.dropdownAdapter,O)),null==e.selectionAdapter&&(e.multiple?e.selectionAdapter=l:e.selectionAdapter=r,null!=e.placeholder&&(e.selectionAdapter=f.Decorate(e.selectionAdapter,c)),e.allowClear&&(e.selectionAdapter=f.Decorate(e.selectionAdapter,u)),e.multiple&&(e.selectionAdapter=f.Decorate(e.selectionAdapter,d)),null!=e.selectionCssClass&&(e.selectionAdapter=f.Decorate(e.selectionAdapter,h)),e.selectionAdapter=f.Decorate(e.selectionAdapter,p)),e.language=this._resolveLanguage(e.language),e.language.push("en");for(var t,n=[],i=0;i<e.language.length;i++){var s=e.language[i];-1===n.indexOf(s)&&n.push(s)}return e.language=n,e.translations=this._processTranslations(e.language,e.debug),e},n.prototype.reset=function(){function l(e){return e.replace(/[^\u0000-\u007E]/g,function(e){return t[e]||e})}this.defaults={amdLanguageBase:"./i18n/",autocomplete:"off",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:f.escapeMarkup,language:{},matcher:function e(t,n){if(null==t.term||""===t.term.trim())return n;if(n.children&&0<n.children.length){for(var i=a.extend(!0,{},n),s=n.children.length-1;0<=s;s--)null==e(t,n.children[s])&&i.children.splice(s,1);return 0<i.children.length?i:e(t,i)}var o=l(n.text).toUpperCase(),r=l(t.term).toUpperCase();return-1<o.indexOf(r)?n:null},minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,scrollAfterSelect:!1,sorter:function(e){return e},templateResult:function(e){return e.text},templateSelection:function(e){return e.text},theme:"default",width:"resolve"}},n.prototype.applyFromElement=function(e,t){var n=e.language,i=this.defaults.language,s=t[0].lang,t=t.closest("[lang]"),t=t[0]?t[0].lang:null,s=Array.prototype.concat.call(this._resolveLanguage(s),this._resolveLanguage(n),this._resolveLanguage(i),this._resolveLanguage(t));return e.language=s,e},n.prototype._resolveLanguage=function(e){if(!e)return[];if(a.isEmptyObject(e))return[];if(a.isPlainObject(e))return[e];for(var t,n=Array.isArray(e)?e:[e],i=[],s=0;s<n.length;s++)i.push(n[s]),"string"==typeof n[s]&&0<n[s].indexOf("-")&&(t=n[s].split("-")[0],i.push(t));return i},n.prototype._processTranslations=function(e,t){for(var n=new g,i=0;i<e.length;i++){var s=new g,o=e[i];if("string"==typeof o)try{s=g.loadPath(o)}catch(e){try{o=this.defaults.amdLanguageBase+o,s=g.loadPath(o)}catch(e){t&&window.console&&console.warn&&console.warn('Select2: The language file for "'+o+'" could not be automatically loaded. A fallback will be used instead.')}}else s=a.isPlainObject(o)?new g(o):o;n.extend(s)}return n},n.prototype.set=function(e,t){var n={},e=(n[e.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()})]=t,f._convertData(n));a.extend(!0,this.defaults,e)},new n}),u.define("select2/options",["jquery","./defaults","./utils"],function(u,n,d){function e(e,t){this.options=e,null!=t&&this.fromElement(t),null!=t&&(this.options=n.applyFromElement(this.options,t)),this.options=n.apply(this.options)}return e.prototype.fromElement=function(e){var t,n=["select2"],i=(null==this.options.multiple&&(this.options.multiple=e[0].multiple),null==this.options.disabled&&(this.options.disabled=e[0].disabled),null==this.options.autocomplete&&e[0].autocomplete&&(this.options.autocomplete=e[0].autocomplete),null===this.options.dir&&((t=e[0].getAttribute("dir"))?this.options.dir=t:(t=e.closest("[dir]").getAttribute("dir"),this.options.dir=t||"ltr")),e[0].disabled=this.options.disabled,e[0].multiple=this.options.multiple,d.GetData(e[0],"select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),d.StoreData(e[0],"data",d.GetData(e[0],"select2Tags")),d.StoreData(e[0],"tags",!0)),d.GetData(e[0],"ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),e[0].setAttribute("ajax--url",d.GetData(e[0],"ajaxUrl")),d.StoreData(e[0],"ajax-Url",d.GetData(e[0],"ajaxUrl"))),{});function s(e,t){return t.toUpperCase()}for(var o=0;o<e[0].attributes.length;o++){var r=e[0].attributes[o].name,l="data-";r.substr(0,l.length)==l&&(r=r.substring(l.length),l=d.GetData(e[0],r),i[r.replace(/-([a-z])/g,s)]=l)}u.fn.jquery&&"1."==u.fn.jquery.substr(0,2)&&e[0].dataset&&(i=u.extend(!0,{},e[0].dataset,i));var a,c=u.extend(!0,{},d.GetData(e[0]),i);for(a in c=d._convertData(c))-1<n.indexOf(a)||(u.isPlainObject(this.options[a])?u.extend(this.options[a],c[a]):this.options[a]=c[a]);return this},e.prototype.get=function(e){return this.options[e]},e.prototype.set=function(e,t){this.options[e]=t},e}),u.define("select2/core",["jquery","./options","./utils","./keys"],function(t,s,o,i){function r(e,t){null!=o.GetData(e[0],"select2")&&o.GetData(e[0],"select2").destroy(),this.$element=e,this.id=this._generateId(e),this.options=new s(t=t||{},e),r.__super__.constructor.call(this);var t=e[0].getAttribute("tabindex")||0,t=(o.StoreData(e[0],"old-tabindex",t),e[0].setAttribute("tabindex","-1"),this.options.get("dataAdapter")),t=(this.dataAdapter=new t(e,this.options),this.render()),n=(this._placeContainer(t),this.options.get("selectionAdapter")),n=(this.selection=new n(e,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,t),this.options.get("dropdownAdapter")),n=(this.dropdown=new n(e,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,t),this.options.get("resultsAdapter")),i=(this.results=new n(e,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown),this);this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(e){i.trigger("selection:update",{data:e})}),e[0].classList.add("select2-hidden-accessible"),e[0].setAttribute("aria-hidden","true"),this._syncAttributes(),o.StoreData(e[0],"select2",this),e.data("select2",this)}return o.Extend(r,o.Observable),r.prototype._generateId=function(e){e=e[0];return"select2-"+(null!=e&&null!=e.getAttribute("id")?e.getAttribute("id"):null!=e&&null!=e.getAttribute("name")?e.getAttribute("name")+"-"+o.generateChars(2):o.generateChars(4)).replace(/(:|\.|\[|\]|,)/g,"")},r.prototype._placeContainer=function(e){e.insertAfter(this.$element);var t=this._resolveWidth(this.$element,this.options.get("width"));null!=t&&e.css("width",t)},r.prototype._resolveWidth=function(e,t){var n=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==t)return null!=(i=this._resolveWidth(e,"style"))?i:this._resolveWidth(e,"element");if("element"==t)return(i=e.outerWidth(!1))<=0?"auto":i+"px";if("style"!=t)return"computedstyle"==t?window.getComputedStyle(e[0]).width:t;var i=e[0].getAttribute("style");if("string"==typeof i)for(var s=i.split(";"),o=0,r=s.length;o<r;o+=1){var l=s[o].replace(/\s/g,"").match(n);if(null!==l&&1<=l.length)return l[1]}return null},r.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},r.prototype._registerDomEvents=function(){var t=this;this.$element.on("change.select2",function(){t.dataAdapter.current(function(e){t.trigger("selection:update",{data:e})})}),this.$element.on("focus.select2",function(e){t.trigger("focus",e)}),this._syncA=o.bind(this._syncAttributes,this),this._syncS=o.bind(this._syncSubtree,this),this._observer=new window.MutationObserver(function(e){t._syncA(),t._syncS(e)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})},r.prototype._registerDataEvents=function(){var n=this;this.dataAdapter.on("*",function(e,t){n.trigger(e,t)})},r.prototype._registerSelectionEvents=function(){var n=this,i=["toggle","focus"];this.selection.on("toggle",function(){n.toggleDropdown()}),this.selection.on("focus",function(e){n.focus(e)}),this.selection.on("*",function(e,t){-1===i.indexOf(e)&&n.trigger(e,t)})},r.prototype._registerDropdownEvents=function(){var n=this;this.dropdown.on("*",function(e,t){n.trigger(e,t)})},r.prototype._registerResultsEvents=function(){var n=this;this.results.on("*",function(e,t){n.trigger(e,t)})},r.prototype._registerEvents=function(){var n=this;this.on("open",function(){n.$container[0].classList.add("select2-container--open")}),this.on("close",function(){n.$container[0].classList.remove("select2-container--open")}),this.on("enable",function(){n.$container[0].classList.remove("select2-container--disabled")}),this.on("disable",function(){n.$container[0].classList.add("select2-container--disabled")}),this.on("blur",function(){n.$container[0].classList.remove("select2-container--focus")}),this.on("query",function(t){n.isOpen()||n.trigger("open",{}),this.dataAdapter.query(t,function(e){n.trigger("results:all",{data:e,query:t})})}),this.on("query:append",function(t){this.dataAdapter.query(t,function(e){n.trigger("results:append",{data:e,query:t})})}),this.on("keypress",function(e){var t=e.which;n.isOpen()?t===i.ESC||t===i.UP&&e.altKey?(n.close(e),e.preventDefault()):t===i.ENTER||t===i.TAB?(n.trigger("results:select",{}),e.preventDefault()):t===i.SPACE&&e.ctrlKey?(n.trigger("results:toggle",{}),e.preventDefault()):t===i.UP?(n.trigger("results:previous",{}),e.preventDefault()):t===i.DOWN&&(n.trigger("results:next",{}),e.preventDefault()):(t===i.ENTER||t===i.SPACE||t===i.DOWN&&e.altKey)&&(n.open(),e.preventDefault())})},r.prototype._syncAttributes=function(){this.options.set("disabled",this.$element[0].disabled),this.isDisabled()?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},r.prototype._isChangeMutation=function(e){var t=this;if(e.addedNodes&&0<e.addedNodes.length){for(var n=0;n<e.addedNodes.length;n++)if(e.addedNodes[n].selected)return!0}else{if(e.removedNodes&&0<e.removedNodes.length)return!0;if(Array.isArray(e))return e.some(function(e){return t._isChangeMutation(e)})}return!1},r.prototype._syncSubtree=function(e){var e=this._isChangeMutation(e),t=this;e&&this.dataAdapter.current(function(e){t.trigger("selection:update",{data:e})})},r.prototype.trigger=function(e,t){var n=r.__super__.trigger,i={open:"opening",close:"closing",select:"selecting",unselect:"unselecting",clear:"clearing"};if(void 0===t&&(t={}),e in i){var s={prevented:!1,name:e,args:t};if(n.call(this,i[e],s),s.prevented)return void(t.prevented=!0)}n.call(this,e,t)},r.prototype.toggleDropdown=function(){this.isDisabled()||(this.isOpen()?this.close():this.open())},r.prototype.open=function(){this.isOpen()||this.isDisabled()||this.trigger("query",{})},r.prototype.close=function(e){this.isOpen()&&this.trigger("close",{originalEvent:e})},r.prototype.isEnabled=function(){return!this.isDisabled()},r.prototype.isDisabled=function(){return this.options.get("disabled")},r.prototype.isOpen=function(){return this.$container[0].classList.contains("select2-container--open")},r.prototype.hasFocus=function(){return this.$container[0].classList.contains("select2-container--focus")},r.prototype.focus=function(e){this.hasFocus()||(this.$container[0].classList.add("select2-container--focus"),this.trigger("focus",{}))},r.prototype.enable=function(e){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element[0].disabled instead.');e=!(e=null!=e&&0!==e.length?e:[!0])[0];this.$element[0].disabled=e},r.prototype.data=function(){this.options.get("debug")&&0<arguments.length&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var t=[];return this.dataAdapter.current(function(e){t=e}),t},r.prototype.val=function(e){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==e||0===e.length)return this.$element.val();e=e[0];Array.isArray(e)&&(e=e.map(function(e){return e.toString()})),this.$element.val(e).trigger("input").trigger("change")},r.prototype.destroy=function(){o.RemoveData(this.$container[0]),this.$container.remove(),this._observer.disconnect(),this._observer=null,this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element[0].setAttribute("tabindex",o.GetData(this.$element[0],"old-tabindex")),this.$element[0].classList.remove("select2-hidden-accessible"),this.$element[0].setAttribute("aria-hidden","false"),o.RemoveData(this.$element[0]),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},r.prototype.render=function(){var e=t('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return e[0].setAttribute("dir",this.options.get("dir")),this.$container=e,this.$container[0].classList.add("select2-container--"+this.options.get("theme")),o.StoreData(e[0],"element",this.$element),e},r}),u.define("select2/dropdown/attachContainer",[],function(){function e(e,t,n){e.call(this,t,n)}return e.prototype.position=function(e,t,n){n.find(".dropdown-wrapper").append(t),t[0].classList.add("select2-dropdown--below"),n[0].classList.add("select2-container--below")},e}),u.define("select2/dropdown/stopPropagation",[],function(){function e(){}return e.prototype.bind=function(e,t,n){e.call(this,t,n);this.$dropdown.on(["blur","change","click","dblclick","focus","focusin","focusout","input","keydown","keyup","keypress","mousedown","mouseenter","mouseleave","mousemove","mouseover","mouseup","search","touchend","touchstart"].join(" "),function(e){e.stopPropagation()})},e}),u.define("select2/selection/stopPropagation",[],function(){function e(){}return e.prototype.bind=function(e,t,n){e.call(this,t,n);this.$selection.on(["blur","change","click","dblclick","focus","focusin","focusout","input","keydown","keyup","keypress","mousedown","mouseenter","mouseleave","mousemove","mouseover","mouseup","search","touchend","touchstart"].join(" "),function(e){e.stopPropagation()})},e}),s=function(l){var a,c,t=!!l.fn.on,e=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],n="onwheel"in window.document||9<=window.document.documentMode?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],u=Array.prototype.slice;if(l.event.fixHooks)for(var i=e.length;i;)l.event.fixHooks[e[--i]]=l.event.mouseHooks;var d=l.event.special.mousewheel={version:"3.2.2",setup:function(){if(this.addEventListener)for(var e=n.length;e;)this.addEventListener(n[--e],s,!1);else this.onmousewheel=s;l.data(this,"mousewheel-line-height",d.getLineHeight(this)),l.data(this,"mousewheel-page-height",d.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var e=n.length;e;)this.removeEventListener(n[--e],s,!1);else this.onmousewheel=null;l.removeData(this,"mousewheel-line-height"),l.removeData(this,"mousewheel-page-height")},getLineHeight:function(e){var e=l(e),t=e["offsetParent"in l.fn?"offsetParent":"parent"]();return t.length||(t=l("body")),parseInt(t.css("fontSize"),10)||parseInt(e.css("fontSize"),10)||16},getPageHeight:function(e){return l(e).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};function s(e){var t,n=e||window.event,i=u.call(arguments,1),s=0,o=0,r=0;if((e=l.event.fix(n)).type="mousewheel","detail"in n&&(r=-1*n.detail),"wheelDelta"in n&&(r=n.wheelDelta),"wheelDeltaY"in n&&(r=n.wheelDeltaY),"wheelDeltaX"in n&&(o=-1*n.wheelDeltaX),"axis"in n&&n.axis===n.HORIZONTAL_AXIS&&(o=-1*r,r=0),s=0===r?o:r,"deltaY"in n&&(s=r=-1*n.deltaY),"deltaX"in n&&(o=n.deltaX,0===r)&&(s=-1*o),0!==r||0!==o)return 1===n.deltaMode?(s*=t=l.data(this,"mousewheel-line-height"),r*=t,o*=t):2===n.deltaMode&&(s*=t=l.data(this,"mousewheel-page-height"),r*=t,o*=t),t=Math.max(Math.abs(r),Math.abs(o)),(!c||t<c)&&h(n,c=t)&&(c/=40),h(n,t)&&(s/=40,o/=40,r/=40),s=Math[1<=s?"floor":"ceil"](s/c),o=Math[1<=o?"floor":"ceil"](o/c),r=Math[1<=r?"floor":"ceil"](r/c),d.settings.normalizeOffset&&this.getBoundingClientRect&&(n=this.getBoundingClientRect(),e.offsetX=e.clientX-n.left,e.offsetY=e.clientY-n.top),e.deltaX=o,e.deltaY=r,e.deltaFactor=c,e.deltaMode=0,i.unshift(e,s,o,r),a&&window.clearTimeout(a),a=window.setTimeout(function(){c=null},200),(l.event.dispatch||l.event.handle).apply(this,i)}function h(e,t){return d.settings.adjustOldDeltas&&"mousewheel"===e.type&&t%120==0}l.fn.extend({mousewheel:function(e){return e?this[t?"on":"bind"]("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this[t?"off":"unbind"]("mousewheel",e)}})},"function"==typeof u.define&&u.define.amd?u.define("jquery-mousewheel",["jquery"],s):"object"==typeof exports?module.exports=s:s(t),u.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults","./select2/utils"],function(s,e,o,t,r){var l;return null==s.fn.select2&&(l=["open","close","destroy"],s.fn.select2=function(t){if("object"==typeof(t=t||{}))return this.each(function(){var e=s.extend(!0,{},t);new o(s(this),e)}),this;var n,i;if("string"==typeof t)return i=Array.prototype.slice.call(arguments,1),this.each(function(){var e=r.GetData(this,"select2");null==e&&window.console&&console.error&&console.error("The select2('"+t+"') method was called on an element that is not using Select2."),n=e[t].apply(e,i)}),-1<l.indexOf(t)?this:n;throw new Error("Invalid arguments for Select2: "+t)}),null==s.fn.select2.defaults&&(s.fn.select2.defaults=t),o});var e,h,o,r,p,f,g,m,y,v,n,i,b,s,l={define:u.define,require:u.require};function _(e,t){return n.call(e,t)}function a(e,t){var n,i,s,o,r,l,a,c,u,d,h=t&&t.split("/"),p=y.map,f=p&&p["*"]||{};if(e){for(t=(e=e.split("/")).length-1,y.nodeIdCompat&&b.test(e[t])&&(e[t]=e[t].replace(b,"")),"."===e[0].charAt(0)&&h&&(e=h.slice(0,h.length-1).concat(e)),c=0;c<e.length;c++)"."===(d=e[c])?(e.splice(c,1),--c):".."!==d||0===c||1===c&&".."===e[2]||".."===e[c-1]||0<c&&(e.splice(c-1,2),c-=2);e=e.join("/")}if((h||f)&&p){for(c=(n=e.split("/")).length;0<c;--c){if(i=n.slice(0,c).join("/"),h)for(u=h.length;0<u;--u)if(s=(s=p[h.slice(0,u).join("/")])&&s[i]){o=s,r=c;break}if(o)break;!l&&f&&f[i]&&(l=f[i],a=c)}!o&&l&&(o=l,r=a),o&&(n.splice(0,r,o),e=n.join("/"))}return e}function w(t,n){return function(){var e=i.call(arguments,0);return"string"!=typeof e[0]&&1===e.length&&e.push(null),r.apply(h,e.concat([t,n]))}}function A(e){var t;if(_(m,e)&&(t=m[e],delete m[e],v[e]=!0,o.apply(h,t)),_(g,e)||_(v,e))return g[e];throw new Error("No "+e)}function c(e){var t,n=e?e.indexOf("!"):-1;return-1<n&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e]}function x(e){return e?c(e):[]}var u=l.require("jquery.select2");return t.fn.select2.amd=l,u});
3
- function prismTitlebarActionsRow(){var e=document.getElementById("titlebar_right");if(!e)return null;var t=document.getElementById("prism-titlebar-actions-row");if(t)return t;var n=e.querySelector(":scope > .action_items")||e;(t=document.createElement("span")).id="prism-titlebar-actions-row",t.className="prism-titlebar-actions-row",n.appendChild(t);var i=n.querySelector(":scope > .action_item.prism-action-item-new");return i&&n.appendChild(i),t}!function(){"use strict";function e(e){return s+e.id}function t(t,n){t.classList.toggle("open",n);try{window.localStorage.setItem(e(t),n?"1":"0")}catch(e){}}function n(t){t.querySelectorAll(".prism-nav-item.has-children").forEach(function(t){var n;try{n=window.localStorage.getItem(e(t))}catch(e){n=null}"1"===n?t.classList.add("open"):"0"===n&&t.classList.remove("open")})}function i(e){var n=e.target.closest("[data-prism-toggle]");if(n){var i=n.closest(".prism-nav-item");i&&t(i,!i.classList.contains("open"))}}function r(e){e.target.closest("[data-prism-toggle-sidebar]")&&document.body.classList.toggle("prism-sidebar-open")}var s="prism_sidebar_";document.addEventListener("DOMContentLoaded",function(){var e=document.getElementById("header");e&&e.classList.contains("prism-sidebar")&&(n(e),e.addEventListener("click",i),e.addEventListener("click",r))})}(),function(){"use strict";function e(e,n){document.body.classList.toggle("prism-sidebar-collapsed",n),e.setAttribute("aria-expanded",n?"false":"true"),e.setAttribute("aria-label",n?"Expand sidebar":"Collapse sidebar");try{window.localStorage.setItem(t,n?"1":"0")}catch(e){}}var t="prism_sidebar_collapsed";document.addEventListener("DOMContentLoaded",function(){var n=document.querySelector("[data-prism-toggle-sidebar-collapse]");if(n){var i;try{i=window.localStorage.getItem(t)}catch(e){i=null}"1"===i&&e(n,!0),n.addEventListener("click",function(){e(n,!document.body.classList.contains("prism-sidebar-collapsed"))}),n.addEventListener("keydown",function(t){"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),e(n,!document.body.classList.contains("prism-sidebar-collapsed")))}),document.addEventListener("click",function(t){document.body.classList.contains("prism-sidebar-collapsed")&&t.target.closest("a.prism-nav-link, .prism-nav-group-toggle")&&e(n,!1)})}})}(),function(){"use strict";function e(e){return(e||"").trim().toLowerCase()}function t(t){var n=t.querySelector(":scope > .prism-nav-link .prism-nav-label, :scope > .prism-nav-group-toggle .prism-nav-label");return n?e(n.textContent):""}function n(e){var t=e.querySelector(":scope > .prism-nav-submenu");return t?Array.prototype.filter.call(t.children,function(e){return e.classList.contains("prism-nav-item")}):[]}function i(e,r,s){var a=!!r&&-1!==t(e).indexOf(r),o=!1;n(e).forEach(function(e){i(e,r,s||a)&&(o=!0)});var c=!r||s||a||o;return e.classList.toggle("prism-nav-hidden",!c),e.classList.toggle("prism-search-open",!!r&&(a||o||s)),a||o}function r(e,t){var n=e.querySelector(".prism-sidebar-scroll > .prism-nav");if(n){var r=!1;Array.prototype.forEach.call(n.children,function(e){e.classList.contains("prism-nav-item")&&i(e,t,!1)&&(r=!0)});var s=e.querySelector(".prism-nav-empty");s&&s.classList.toggle("prism-nav-empty-visible",!!t&&!r);var a=e.querySelector("[data-prism-nav-search-clear]");a&&a.classList.toggle("prism-nav-search-clear-visible",!!t)}}document.addEventListener("DOMContentLoaded",function(){var t=document.getElementById("header");if(t&&t.classList.contains("prism-sidebar")){var n=t.querySelector("[data-prism-nav-search]");if(n){n.addEventListener("input",function(){r(t,e(n.value))}),n.addEventListener("keydown",function(e){"Escape"===e.key&&n.value&&(n.value="",r(t,""))});var i=t.querySelector("[data-prism-nav-search-clear]");i&&i.addEventListener("click",function(){n.value="",r(t,""),n.focus()})}}})}(),function(){"use strict";document.addEventListener("DOMContentLoaded",function(){if(!document.body.classList.contains("prism-styled-confirms-disabled")&&"undefined"!=typeof jQuery&&jQuery.rails&&window.ActiveAdmin&&window.ActiveAdmin.ModalDialog){var e=jQuery,t=e.rails.allowAction;e.rails.allowAction=function(n){var i=n.data("confirm");return i?n.closest(".batch_actions_selector").length?t.call(e.rails,n):n.data("prismConfirmed")?(n.removeData("prismConfirmed"),!0):(new window.ActiveAdmin.ModalDialog(i,{},function(){n.data("prismConfirmed",!0),n[0].click()}),!1):t.call(e.rails,n)}}})}(),function(){"use strict";function e(e,t){e.dataset.prismDismissed||(e.dataset.prismDismissed="true",e.style.transitionDuration=t+"ms",e.classList.add("prism-flash-hide"),setTimeout(function(){e.remove()},t))}function t(t,n,i){function r(){c=Date.now(),o=setTimeout(function(){e(t,i)},a)}function s(){o&&(clearTimeout(o),o=null,a-=Date.now()-c)}var a=n,o=null,c=null;t.addEventListener("mouseenter",s),t.addEventListener("mouseleave",r),r()}var n=320;document.addEventListener("DOMContentLoaded",function(){var i=document.querySelector(".flashes"),r=document.querySelectorAll(".flashes .flash");if(r.length){var s=i&&parseInt(i.dataset.prismTransitionMs,10)||n,a=i&&parseInt(i.dataset.prismAutoDismissMs,10);a&&r.forEach(function(e){t(e,a,s)}),document.addEventListener("click",function(t){var n=t.target.closest("[data-prism-flash-dismiss]");n&&e(n.closest(".flash"),s)})}})}(),function(){"use strict";function e(e,t,n){e.classList.toggle("open",n),t.setAttribute("aria-expanded",n?"true":"false"),"filters_sidebar_section"===e.id&&document.body.classList.toggle("prism-filters-open",n)}function t(t){var n=t.querySelector(":scope > h3");return n?(n.setAttribute("role","button"),n.setAttribute("tabindex","0"),n.setAttribute("aria-expanded",t.classList.contains("open")?"true":"false"),n.addEventListener("click",function(){e(t,n,!t.classList.contains("open"))}),n.addEventListener("keydown",function(i){"Enter"!==i.key&&" "!==i.key||(i.preventDefault(),e(t,n,!t.classList.contains("open")))}),n):null}function n(e){if("undefined"!=typeof jQuery&&jQuery.fn.select2){var t=prismTitlebarActionsRow();if(t){var n=document.createElement("div");n.className="prism-sidebar-panel-holding",n.hidden=!0;var i=[];if(e.forEach(function(e){var t=e.section.querySelector(":scope > .panel_contents");t&&(Array.prototype.forEach.call(t.querySelectorAll("a, button, input[type=submit]"),function(e){e.dataset.prismSidebarActionsIndex=String(i.length),i.push((e.value||e.textContent||"").trim())}),n.appendChild(t)),e.section.remove()}),i.length){var r=document.createElement("span");r.className="prism-sidebar-panel-select-wrapper";var s=document.createElement("select");s.className="prism-sidebar-panel-select",s.appendChild(document.createElement("option")),i.forEach(function(e,t){var n=document.createElement("option");n.value=String(t),n.textContent=e,s.appendChild(n)}),r.appendChild(s),r.appendChild(n),t.appendChild(r);var a=jQuery(s).select2({width:"220px",placeholder:"Sidebar Actions ("+i.length+")",minimumResultsForSearch:0});a.on("select2:select",function(e){var t=e.params.data.id,i=n.querySelector('[data-prism-sidebar-actions-index="'+t+'"]');i&&i.click(),a.val("").trigger("change")})}}}}document.addEventListener("DOMContentLoaded",function(){if(!document.body.classList.contains("prism-filters-collapsible-disabled")){var i=document.getElementById("filters_sidebar_section"),r=null,s=[];document.querySelectorAll(".prism-collapsible-panel").forEach(function(e){var n=t(e);n&&(e!==i?s.push({section:e,toggle:n}):r=n)}),i&&document.body.classList.toggle("prism-filters-open",i.classList.contains("open")),s.length>0&&n(s);var a=document.getElementById("prism_active_filters_bar");if(a&&i&&r){a.setAttribute("role","button"),a.setAttribute("tabindex","0"),a.setAttribute("aria-label","Toggle filters");var o=function(t){if("keydown"!==t.type||"Enter"===t.key||" "===t.key){"keydown"===t.type&&t.preventDefault();var n=!i.classList.contains("open");e(i,r,n),n&&i.scrollIntoView({behavior:"smooth",block:"nearest"})}};a.addEventListener("click",o),a.addEventListener("keydown",o)}}})}(),function(){"use strict";function e(e){document.querySelectorAll(".prism-sidebar-lang.open").forEach(function(t){if(t!==e){t.classList.remove("open");var n=t.querySelector(".prism-lang-toggle");n&&n.setAttribute("aria-expanded","false")}})}document.addEventListener("DOMContentLoaded",function(){function t(){var t=i.classList.toggle("open");n.setAttribute("aria-expanded",t?"true":"false"),t&&e(i)}var n=document.querySelector(".prism-lang-toggle");if(n){var i=n.closest(".prism-sidebar-lang");n.setAttribute("role","button"),n.setAttribute("tabindex","0"),n.addEventListener("click",function(e){e.stopPropagation(),t()}),n.addEventListener("keydown",function(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),t())}),document.addEventListener("click",function(){e()})}})}(),function(){"use strict";document.addEventListener("DOMContentLoaded",function(){if(document.body.classList.contains("prism-select2-enabled")&&"undefined"!=typeof jQuery&&jQuery.fn.select2){var e=jQuery;e("select").each(function(){var t=e(this);t.data("select2")||t.select2({width:"100%"})})}})}(),function(){"use strict";document.addEventListener("DOMContentLoaded",function(){var e=document.getElementById("titlebar_right");if(e&&e.dataset.prismActionItemsThreshold&&(e.classList.remove("prism-action-items-pending"),"undefined"!=typeof jQuery&&jQuery.fn.select2)){var t=parseInt(e.dataset.prismActionItemsThreshold,10),n=e.querySelector(":scope > .action_items");if(!isNaN(t)&&n){var i=Array.prototype.slice.call(n.querySelectorAll(":scope > .action_item:not(.prism-action-item-new)"));if(!(i.length<=t)){var r=prismTitlebarActionsRow();if(r){var s=document.createElement("span");s.className="prism-action-items-dropdown";var a=document.createElement("div");a.className="prism-action-items-holding",a.hidden=!0;var o=document.createElement("select");o.className="prism-action-items-select",o.appendChild(document.createElement("option")),i.forEach(function(e,t){var n=e.querySelector("a, button, input[type=submit]"),i=n?n.value||n.textContent:e.textContent,r=document.createElement("option");r.value=String(t),r.textContent=(i||"").trim(),o.appendChild(r),e.dataset.prismActionItemsIndex=String(t),a.appendChild(e)}),s.appendChild(o),s.appendChild(a),r.appendChild(s);var c=jQuery(o).select2({width:"220px",placeholder:"Actions ("+i.length+")",minimumResultsForSearch:0});c.on("select2:select",function(e){var t=e.params.data.id,n=a.querySelector('[data-prism-action-items-index="'+t+'"]'),i=n&&n.querySelector("a, button, input[type=submit]");i&&i.click(),c.val("").trigger("change")})}}}}})}(),function(){"use strict";document.addEventListener("DOMContentLoaded",function(){function e(){t.style.transform="none";var e=t.getBoundingClientRect(),i=n.getBoundingClientRect();if(i.width&&e.width){var r=e.right-i.right;t.style.transform=r>0?"translateX(-"+r+"px)":"none"}}var t=document.getElementById("prism-titlebar-actions-row"),n=document.querySelector("#main_content table");if(t&&n)if(e(),"undefined"!=typeof ResizeObserver)new ResizeObserver(e).observe(n);else{window.addEventListener("load",e);var i=null;window.addEventListener("resize",function(){clearTimeout(i),i=setTimeout(e,150)})}})}(),function(){"use strict";function e(e){var t=e.scrollWidth-e.clientWidth;e.classList.toggle("prism-scroll-left",e.scrollLeft>1),e.classList.toggle("prism-scroll-right",e.scrollLeft<t-1)}function t(t){if(e(t),t.addEventListener("scroll",function(){e(t)}),"undefined"!=typeof ResizeObserver){var n=new ResizeObserver(function(){e(t)});n.observe(t),Array.prototype.forEach.call(t.children,function(e){n.observe(e)})}else window.addEventListener("load",function(){e(t)}),window.addEventListener("resize",function(){e(t)})}document.addEventListener("DOMContentLoaded",function(){document.querySelectorAll(".paginated_collection_contents > .index_content").forEach(t)})}();
3
+ function prismTriggerLabel(e){if(!e)return"";var t=e.value||e.textContent;return(t=(t||"").trim())||(e.getAttribute("title")||e.getAttribute("aria-label")||"").trim()}function prismTitlebarActionsRow(){var e=document.getElementById("titlebar_right");if(!e)return null;var t=document.getElementById("prism-titlebar-actions-row");if(t)return t;var n=e.querySelector(":scope > .action_items")||e;(t=document.createElement("span")).id="prism-titlebar-actions-row",t.className="prism-titlebar-actions-row",n.appendChild(t);var i=n.querySelector(":scope > .action_item.prism-action-item-new");return i&&n.appendChild(i),t}!function(){"use strict";function e(e){return s+e.id}function t(t,n){t.classList.toggle("open",n);try{window.localStorage.setItem(e(t),n?"1":"0")}catch(e){}}function n(t){t.querySelectorAll(".prism-nav-item.has-children").forEach(function(t){var n;try{n=window.localStorage.getItem(e(t))}catch(e){n=null}"1"===n?t.classList.add("open"):"0"===n&&t.classList.remove("open")})}function i(e){var n=e.target.closest("[data-prism-toggle]");if(n){var i=n.closest(".prism-nav-item");i&&t(i,!i.classList.contains("open"))}}function r(e){e.target.closest("[data-prism-toggle-sidebar]")&&document.body.classList.toggle("prism-sidebar-open")}var s="prism_sidebar_";document.addEventListener("DOMContentLoaded",function(){var e=document.getElementById("header");if(e&&e.classList.contains("prism-sidebar")){n(e),e.addEventListener("click",i),e.addEventListener("click",r);var t=e.querySelector(".prism-sidebar-scroll");if(t){var s=t.querySelectorAll(".prism-nav-item.active"),a=s[s.length-1];a&&a.offsetParent&&a.scrollIntoView({block:"center",behavior:"auto"})}}})}(),function(){"use strict";function e(e,n){document.body.classList.toggle("prism-sidebar-collapsed",n),e.setAttribute("aria-expanded",n?"false":"true"),e.setAttribute("aria-label",n?"Expand sidebar":"Collapse sidebar");try{window.localStorage.setItem(t,n?"1":"0")}catch(e){}}var t="prism_sidebar_collapsed";document.addEventListener("DOMContentLoaded",function(){var n=document.querySelector("[data-prism-toggle-sidebar-collapse]");if(n){var i;try{i=window.localStorage.getItem(t)}catch(e){i=null}"1"===i&&e(n,!0),n.addEventListener("click",function(){e(n,!document.body.classList.contains("prism-sidebar-collapsed"))}),n.addEventListener("keydown",function(t){"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),e(n,!document.body.classList.contains("prism-sidebar-collapsed")))}),document.addEventListener("click",function(t){document.body.classList.contains("prism-sidebar-collapsed")&&t.target.closest("a.prism-nav-link, .prism-nav-group-toggle")&&e(n,!1)})}})}(),function(){"use strict";function e(e){return(e||"").trim().toLowerCase()}function t(t){var n=t.querySelector(":scope > .prism-nav-link .prism-nav-label, :scope > .prism-nav-group-toggle .prism-nav-label");return n?e(n.textContent):""}function n(e){var t=e.querySelector(":scope > .prism-nav-submenu");return t?Array.prototype.filter.call(t.children,function(e){return e.classList.contains("prism-nav-item")}):[]}function i(e,r,s){var a=!!r&&-1!==t(e).indexOf(r),o=!1;n(e).forEach(function(e){i(e,r,s||a)&&(o=!0)});var c=!r||s||a||o;return e.classList.toggle("prism-nav-hidden",!c),e.classList.toggle("prism-search-open",!!r&&(a||o||s)),a||o}function r(e,t){var n=e.querySelector(".prism-sidebar-scroll > .prism-nav");if(n){var r=!1;Array.prototype.forEach.call(n.children,function(e){e.classList.contains("prism-nav-item")&&i(e,t,!1)&&(r=!0)});var s=e.querySelector(".prism-nav-empty");s&&s.classList.toggle("prism-nav-empty-visible",!!t&&!r);var a=e.querySelector("[data-prism-nav-search-clear]");a&&a.classList.toggle("prism-nav-search-clear-visible",!!t)}}document.addEventListener("DOMContentLoaded",function(){var t=document.getElementById("header");if(t&&t.classList.contains("prism-sidebar")){var n=t.querySelector("[data-prism-nav-search]");if(n){n.addEventListener("input",function(){r(t,e(n.value))}),n.addEventListener("keydown",function(e){"Escape"===e.key&&n.value&&(n.value="",r(t,""))});var i=t.querySelector("[data-prism-nav-search-clear]");i&&i.addEventListener("click",function(){n.value="",r(t,""),n.focus()})}}})}(),function(){"use strict";document.addEventListener("DOMContentLoaded",function(){if(!document.body.classList.contains("prism-styled-confirms-disabled")&&"undefined"!=typeof jQuery&&jQuery.rails&&window.ActiveAdmin&&window.ActiveAdmin.ModalDialog){var e=jQuery,t=e.rails.allowAction;e.rails.allowAction=function(n){var i=n.data("confirm");return i?n.closest(".batch_actions_selector").length?t.call(e.rails,n):n.data("prismConfirmed")?(n.removeData("prismConfirmed"),!0):(new window.ActiveAdmin.ModalDialog(i,{},function(){n.data("prismConfirmed",!0),n[0].click()}),!1):t.call(e.rails,n)}}})}(),function(){"use strict";function e(e,t){e.dataset.prismDismissed||(e.dataset.prismDismissed="true",e.style.transitionDuration=t+"ms",e.classList.add("prism-flash-hide"),setTimeout(function(){e.remove()},t))}function t(t,n,i){function r(){c=Date.now(),o=setTimeout(function(){e(t,i)},a)}function s(){o&&(clearTimeout(o),o=null,a-=Date.now()-c)}var a=n,o=null,c=null;t.addEventListener("mouseenter",s),t.addEventListener("mouseleave",r),r()}var n=320;document.addEventListener("DOMContentLoaded",function(){var i=document.querySelector(".flashes"),r=document.querySelectorAll(".flashes .flash");if(r.length){var s=i&&parseInt(i.dataset.prismTransitionMs,10)||n,a=i&&parseInt(i.dataset.prismAutoDismissMs,10);a&&r.forEach(function(e){t(e,a,s)}),document.addEventListener("click",function(t){var n=t.target.closest("[data-prism-flash-dismiss]");n&&e(n.closest(".flash"),s)})}})}(),function(){"use strict";function e(e,t,n){e.classList.toggle("open",n),t.setAttribute("aria-expanded",n?"true":"false"),"filters_sidebar_section"===e.id&&document.body.classList.toggle("prism-filters-open",n)}function t(t){var n=t.querySelector(":scope > h3");return n?(n.setAttribute("role","button"),n.setAttribute("tabindex","0"),n.setAttribute("aria-expanded",t.classList.contains("open")?"true":"false"),n.addEventListener("click",function(){e(t,n,!t.classList.contains("open"))}),n.addEventListener("keydown",function(i){"Enter"!==i.key&&" "!==i.key||(i.preventDefault(),e(t,n,!t.classList.contains("open")))}),n):null}function n(e){if("undefined"!=typeof jQuery&&jQuery.fn.select2){var t=prismTitlebarActionsRow();if(t){var n=document.createElement("div");n.className="prism-sidebar-panel-holding",n.hidden=!0;var i=[];if(e.forEach(function(e){var t=e.section.querySelector(":scope > .panel_contents");t&&(Array.prototype.forEach.call(t.querySelectorAll("a, button, input[type=submit]"),function(e){e.dataset.prismSidebarActionsIndex=String(i.length),i.push(prismTriggerLabel(e))}),n.appendChild(t)),e.section.remove()}),i.length){var r=document.createElement("span");r.className="prism-sidebar-panel-select-wrapper";var s=document.createElement("select");s.className="prism-sidebar-panel-select",s.appendChild(document.createElement("option")),i.forEach(function(e,t){var n=document.createElement("option");n.value=String(t),n.textContent=e,s.appendChild(n)}),r.appendChild(s),r.appendChild(n),t.appendChild(r);var a=jQuery(s).select2({width:"220px",placeholder:"Sidebar Actions ("+i.length+")",minimumResultsForSearch:0});a.on("select2:select",function(e){var t=e.params.data.id,i=n.querySelector('[data-prism-sidebar-actions-index="'+t+'"]');i&&i.click(),a.val("").trigger("change")})}}}}document.addEventListener("DOMContentLoaded",function(){if(!document.body.classList.contains("prism-filters-collapsible-disabled")){var i=document.getElementById("filters_sidebar_section"),r=null,s=[];document.querySelectorAll(".prism-collapsible-panel").forEach(function(e){var n=t(e);n&&(e!==i?s.push({section:e,toggle:n}):r=n)}),i&&document.body.classList.toggle("prism-filters-open",i.classList.contains("open")),s.length>0&&n(s);var a=document.getElementById("sidebar"),o=document.getElementById("active_admin_content");a&&o&&0===a.children.length&&o.classList.add("without_sidebar");var c=document.getElementById("prism_active_filters_bar");if(c&&i&&r){c.setAttribute("role","button"),c.setAttribute("tabindex","0"),c.setAttribute("aria-label","Toggle filters");var l=function(t){if("keydown"!==t.type||"Enter"===t.key||" "===t.key){"keydown"===t.type&&t.preventDefault();var n=!i.classList.contains("open");e(i,r,n),n&&i.scrollIntoView({behavior:"smooth",block:"nearest"})}};c.addEventListener("click",l),c.addEventListener("keydown",l)}}})}(),function(){"use strict";function e(e){document.querySelectorAll(".prism-sidebar-lang.open").forEach(function(t){if(t!==e){t.classList.remove("open");var n=t.querySelector(".prism-lang-toggle");n&&n.setAttribute("aria-expanded","false")}})}document.addEventListener("DOMContentLoaded",function(){function t(){var t=i.classList.toggle("open");n.setAttribute("aria-expanded",t?"true":"false"),t&&e(i)}var n=document.querySelector(".prism-lang-toggle");if(n){var i=n.closest(".prism-sidebar-lang");n.setAttribute("role","button"),n.setAttribute("tabindex","0"),n.addEventListener("click",function(e){e.stopPropagation(),t()}),n.addEventListener("keydown",function(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),t())}),document.addEventListener("click",function(){e()})}})}(),function(){"use strict";document.addEventListener("DOMContentLoaded",function(){if(document.body.classList.contains("prism-select2-enabled")&&"undefined"!=typeof jQuery&&jQuery.fn.select2){var e=jQuery;e("select").each(function(){var t=e(this);t.data("select2")||t.select2({width:"100%"})})}})}(),function(){"use strict";document.addEventListener("DOMContentLoaded",function(){var e=document.getElementById("titlebar_right");if(e&&e.dataset.prismActionItemsThreshold&&(e.classList.remove("prism-action-items-pending"),"undefined"!=typeof jQuery&&jQuery.fn.select2)){var t=parseInt(e.dataset.prismActionItemsThreshold,10),n=e.querySelector(":scope > .action_items");if(!isNaN(t)&&n){var i=Array.prototype.slice.call(n.querySelectorAll(":scope > .action_item:not(.prism-action-item-new)"));if(!(i.length<=t)){var r=prismTitlebarActionsRow();if(r){var s=document.createElement("span");s.className="prism-action-items-dropdown";var a=document.createElement("div");a.className="prism-action-items-holding",a.hidden=!0;var o=document.createElement("select");o.className="prism-action-items-select",o.appendChild(document.createElement("option")),i.forEach(function(e,t){var n=e.querySelector("a, button, input[type=submit]"),i=n?prismTriggerLabel(n):(e.textContent||"").trim(),r=document.createElement("option");r.value=String(t),r.textContent=i,o.appendChild(r),e.dataset.prismActionItemsIndex=String(t),a.appendChild(e)}),s.appendChild(o),s.appendChild(a),r.appendChild(s);var c=jQuery(o).select2({width:"220px",placeholder:"Actions ("+i.length+")",minimumResultsForSearch:0});c.on("select2:select",function(e){var t=e.params.data.id,n=a.querySelector('[data-prism-action-items-index="'+t+'"]'),i=n&&n.querySelector("a, button, input[type=submit]");i&&i.click(),c.val("").trigger("change")})}}}}})}(),function(){"use strict";document.addEventListener("DOMContentLoaded",function(){function e(){t.style.transform="none";var e=t.getBoundingClientRect(),i=n.getBoundingClientRect();if(i.width&&e.width){var r=e.right-i.right;t.style.transform=r>0?"translateX(-"+r+"px)":"none"}}var t=document.getElementById("prism-titlebar-actions-row"),n=document.querySelector("#main_content table");if(t&&n)if(e(),"undefined"!=typeof ResizeObserver)new ResizeObserver(e).observe(n);else{window.addEventListener("load",e);var i=null;window.addEventListener("resize",function(){clearTimeout(i),i=setTimeout(e,150)})}})}(),function(){"use strict";function e(e){var t=e.scrollWidth-e.clientWidth;e.classList.toggle("prism-scroll-left",e.scrollLeft>1),e.classList.toggle("prism-scroll-right",e.scrollLeft<t-1)}function t(t){function n(){"right"===i?t.scrollLeft=t.scrollWidth-t.clientWidth:"left"===i&&(t.scrollLeft=0),e(t)}e(t);var i=null;if(t.addEventListener("scroll",function(){var n=t.scrollWidth-t.clientWidth;i=t.scrollLeft<=1?"left":t.scrollLeft>=n-1?"right":null,e(t)}),"undefined"!=typeof ResizeObserver){var r=new ResizeObserver(n);r.observe(t),Array.prototype.forEach.call(t.children,function(e){r.observe(e)})}else window.addEventListener("load",n),window.addEventListener("resize",n)}document.addEventListener("DOMContentLoaded",function(){document.querySelectorAll(".paginated_collection_contents > .index_content").forEach(t)}),document.addEventListener("click",function(e){var t=e.target;t.classList&&t.classList.contains("index_content")&&(t.classList.contains("prism-scroll-right")?t.scrollTo({left:t.scrollWidth,behavior:"smooth"}):t.classList.contains("prism-scroll-left")&&t.scrollTo({left:0,behavior:"smooth"}))})}();
@@ -1 +1 @@
1
- body{background:#f4f5f7;color:#384250;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif}#active_admin_content h2,#active_admin_content h3{color:#1a1f36;font-weight:600}a{color:#6d5bd0}a:hover{color:#5949b8}#title_bar{background:transparent;border:none;box-shadow:none;text-shadow:none;padding:10px 10px 8px}#title_bar h2#page_title{color:#1a1f36;font-weight:700;font-size:1.6em;letter-spacing:-0.01em}#footer{color:#6b7280;font-size:0.85em;padding:10px;border-top:1px solid #e6e8ec}#footer a{color:#6b7280;text-decoration:underline}#footer a:hover{color:#6d5bd0}.flashes{position:fixed;top:20px;right:20px;z-index:1000;display:flex;flex-direction:column;gap:12px;width:340px;max-width:calc(100vw - 24px);padding:0;pointer-events:none}.flashes>*{pointer-events:auto}@media (max-width: 480px){.flashes{top:12px;right:12px;left:12px;width:auto;max-width:none}}body.active_admin .flash{position:relative;display:flex;align-items:flex-start;gap:10px;background:#fff;border:1px solid #e6e8ec;border-radius:10px;overflow:hidden;box-shadow:0 4px 6px rgba(16,24,40,0.05),0 10px 24px rgba(16,24,40,0.08);text-shadow:none;color:#1a1f36;font-size:0.88em;font-weight:600;line-height:1.4;padding:14px 34px 16px 14px;margin-bottom:0;opacity:1;transform:translateX(0) scale(1);transition:opacity 320ms cubic-bezier(0.4, 0, 0.2, 1),transform 320ms cubic-bezier(0.4, 0, 0.2, 1)}body.active_admin .flash.prism-flash-hide{opacity:0;transform:translateX(24px) scale(0.98)}body.active_admin .flash.flash_notice,body.active_admin .flash.flash_success{background:#fff;border-bottom-color:#e6e8ec;color:#1a1f36}body.active_admin .flash.flash_notice .prism-flash-icon,body.active_admin .flash.flash_success .prism-flash-icon{color:#22c55e}body.active_admin .flash.flash_notice .prism-flash-progress,body.active_admin .flash.flash_success .prism-flash-progress{background:#22c55e}body.active_admin .flash.flash_error,body.active_admin .flash.flash_alert{background:#fff;border-bottom-color:#e6e8ec;color:#1a1f36}body.active_admin .flash.flash_error .prism-flash-icon,body.active_admin .flash.flash_alert .prism-flash-icon{color:#ef4444}body.active_admin .flash.flash_error .prism-flash-progress,body.active_admin .flash.flash_alert .prism-flash-progress{background:#ef4444}body.active_admin .flash.flash_warning .prism-flash-icon{color:#f59e0b}body.active_admin .flash.flash_warning .prism-flash-progress{background:#f59e0b}body.active_admin .flash.flash_info .prism-flash-icon,body.active_admin .flash:not(.flash_notice):not(.flash_success):not(.flash_error):not(.flash_alert):not(.flash_warning) .prism-flash-icon{color:#3b82f6}body.active_admin .flash.flash_info .prism-flash-progress,body.active_admin .flash:not(.flash_notice):not(.flash_success):not(.flash_error):not(.flash_alert):not(.flash_warning) .prism-flash-progress{background:#3b82f6}.prism-flash-icon{flex:0 0 auto;margin-top:1px}.prism-flash-message{flex:1 1 auto;padding-top:1px}.prism-flash-dismiss{position:absolute;top:10px;right:10px;flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;padding:0;border:none;border-radius:6px;background:transparent !important;color:#6b7280 !important;opacity:0.8;cursor:pointer;transition:opacity 120ms ease,background 120ms ease}.prism-flash-dismiss:hover{opacity:1;background:#f4f5f7 !important}.prism-flash-progress{position:absolute;left:0;right:0;bottom:0;height:3px;transform-origin:left center;animation:prism-flash-countdown var(--prism-flash-duration, 5000ms) linear forwards}body.active_admin .flash:hover .prism-flash-progress{animation-play-state:paused}@keyframes prism-flash-countdown{from{transform:scaleX(1)}to{transform:scaleX(0)}}.prism-flash-dismiss-icon{display:block;margin:0}.ui-widget-overlay{background:rgba(15,18,26,0.45)}.ui-dialog{background:#fff;border:1px solid #e6e8ec;border-radius:10px;box-shadow:0 4px 6px rgba(16,24,40,0.05),0 10px 24px rgba(16,24,40,0.08);padding:0;overflow:hidden;outline:none}.ui-dialog:focus{outline:none}.ui-dialog .ui-dialog-titlebar{background:#fff;border:none;border-bottom:1px solid #e6e8ec;box-shadow:none;text-shadow:none;color:#1a1f36;font-weight:700;padding:16px 20px}.ui-dialog .ui-dialog-titlebar span{color:inherit}.ui-dialog form{padding:0}.ui-dialog ul{margin:0;padding:0}.ui-dialog ul li{padding:10px 20px;margin:0}.ui-dialog label{color:#384250;font-weight:600}.ui-dialog .ui-dialog-buttonpane{background:#f4f5f7;padding:12px 20px;display:flex;justify-content:flex-end;gap:8px}.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset{display:flex;gap:8px}.ui-dialog .ui-dialog-buttonpane button,.ui-dialog .ui-dialog-buttonset button{margin:0}.ui-dialog .ui-dialog-buttonpane button:first-child,.ui-dialog .ui-dialog-buttonset button:first-child{background:#6d5bd0 !important;background-image:none !important;border:1px solid #6d5bd0;border-radius:6px;color:#fff !important;text-shadow:none;box-shadow:none;font-weight:600;padding:9px 16px;transition:background 120ms ease,border-color 120ms ease}.ui-dialog .ui-dialog-buttonpane button:first-child:hover,.ui-dialog .ui-dialog-buttonset button:first-child:hover{background:#5949b8 !important;border-color:#5949b8;color:#fff !important}.ui-dialog .ui-dialog-buttonpane button:first-child:active,.ui-dialog .ui-dialog-buttonset button:first-child:active{background:#5949b8 !important;box-shadow:none}.ui-dialog .ui-dialog-buttonpane button:last-child,.ui-dialog .ui-dialog-buttonset button:last-child{background:#fff !important;background-image:none !important;border:1px solid #d6d9e0;border-radius:6px;color:#384250 !important;text-shadow:none;box-shadow:none;font-weight:600;padding:8px 15px;transition:background 120ms ease,border-color 120ms ease}.ui-dialog .ui-dialog-buttonpane button:last-child:hover,.ui-dialog .ui-dialog-buttonset button:last-child:hover{background:#f4f5f7 !important;border-color:#6b7280;color:#1a1f36 !important}.ui-dialog .ui-dialog-buttonpane button:last-child:active,.ui-dialog .ui-dialog-buttonset button:last-child:active{background:#f4f5f7 !important;box-shadow:none}.breadcrumb{font-size:0.85em;font-weight:600;letter-spacing:0.02em;text-transform:uppercase;color:#6b7280;margin-bottom:6px}.breadcrumb a,.breadcrumb a:link,.breadcrumb a:visited,.breadcrumb a:active{color:#6b7280;text-decoration:none}.breadcrumb a:hover,.breadcrumb a:link:hover,.breadcrumb a:visited:hover,.breadcrumb a:active:hover{color:#6d5bd0;text-decoration:none}.breadcrumb .breadcrumb_sep{color:#d6d9e0}body:not(.logged_out) #wrapper,body.index:not(.logged_out) #wrapper{display:grid;grid-template-columns:264px 1fr;grid-template-rows:auto auto auto 1fr auto;min-height:100vh;width:100%;transition:grid-template-columns 280ms cubic-bezier(0.4, 0, 0.2, 1)}@media (min-width: 901px){body.prism-sidebar-collapsed:not(.logged_out) #wrapper,body.prism-sidebar-collapsed.index:not(.logged_out) #wrapper{grid-template-columns:76px 1fr}}#header.prism-sidebar{grid-column:1;grid-row:1 / -1;display:flex;background:#fff !important;background-image:none !important;border-right:1px solid #e6e8ec;padding:0;height:auto;width:264px;position:sticky;top:0;align-self:stretch;max-height:100vh;overflow:hidden;z-index:100;transition:width 280ms cubic-bezier(0.4, 0, 0.2, 1);text-shadow:none !important;box-shadow:none !important;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility}#title_bar{grid-column:2;grid-row:2}.flashes{grid-column:2;grid-row:3;align-self:start}#active_admin_content{grid-column:2;grid-row:4;min-width:0;padding:10px}body:not(.prism-sidebar-footer-disabled) #footer{display:none}#header.prism-sidebar .prism-sidebar-inner{display:flex;flex-direction:column;width:100%;height:100%;max-height:100vh}#header.prism-sidebar .prism-sidebar-brand{flex:0 0 auto;display:flex;align-items:center;gap:12px;padding:20px 24px;border-bottom:1px solid #e6e8ec}#header.prism-sidebar .prism-sidebar-brand #site_title{margin:0;padding:0;font-size:1.15em;font-weight:700;color:#1a1f36;overflow:hidden;white-space:nowrap}#header.prism-sidebar .prism-sidebar-brand #site_title a{color:inherit;text-decoration:none}#header.prism-sidebar .prism-sidebar-collapse-toggle{flex:0 0 auto;display:flex;align-items:center;justify-content:center;width:32px;height:32px;margin:-6px 0;border-radius:6px;color:#6b7280;cursor:pointer;user-select:none;transition:background 120ms ease,color 120ms ease}#header.prism-sidebar .prism-sidebar-collapse-toggle:hover{background:#f4f5f7;color:#1a1f36}#header.prism-sidebar .prism-sidebar-collapse-icon{flex:0 0 auto}#header.prism-sidebar .prism-sidebar-lang{position:relative;flex:0 0 auto;padding:10px 12px;border-bottom:1px solid #e6e8ec}#header.prism-sidebar .prism-sidebar-lang.open .prism-chevron{transform:rotate(180deg)}#header.prism-sidebar .prism-sidebar-lang.open .prism-lang-menu{display:block}#header.prism-sidebar .prism-lang-toggle{display:flex;align-items:center;gap:8px;width:100%;padding:8px 10px;border-radius:6px;color:#384250;font-size:0.85em;font-weight:600;cursor:pointer;user-select:none;transition:background 120ms ease}#header.prism-sidebar .prism-lang-toggle:hover{background:#f4f5f7}#header.prism-sidebar .prism-lang-toggle .prism-nav-icon{flex:0 0 auto;color:#6b7280}#header.prism-sidebar .prism-lang-toggle .prism-chevron{flex:0 0 auto;margin-left:auto;transition:transform 120ms ease}#header.prism-sidebar .prism-lang-current{flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#header.prism-sidebar .prism-lang-menu{display:none;list-style:none;margin:4px 0 0;padding:4px;position:absolute;left:12px;right:12px;z-index:50;background:#fff;border:1px solid #e6e8ec;border-radius:6px;box-shadow:0 4px 6px rgba(16,24,40,0.05),0 10px 24px rgba(16,24,40,0.08)}#header.prism-sidebar .prism-lang-menu li{margin:0}#header.prism-sidebar .prism-lang-option{display:block;padding:8px 10px;border-radius:6px;color:#384250;font-size:0.85em;font-weight:600;text-decoration:none}#header.prism-sidebar .prism-lang-option:hover{background:#f4f5f7}#header.prism-sidebar .prism-lang-option.active{background:#f2ecfd;color:#5949b8}#header.prism-sidebar .prism-sidebar-search{position:relative;flex:0 0 auto;display:flex;align-items:center;gap:8px;margin:12px 12px 4px;padding:8px 10px;border:1px solid #e6e8ec;border-radius:6px;background:#f4f5f7}#header.prism-sidebar .prism-sidebar-search:focus-within{border-color:#6d5bd0}#header.prism-sidebar .prism-sidebar-search .prism-search-icon{flex:0 0 auto;color:#6b7280}#header.prism-sidebar .prism-nav-search-input{flex:1 1 auto;min-width:0;border:0;background:transparent;color:#384250;font-size:0.85em}#header.prism-sidebar .prism-nav-search-input:focus{outline:none}#header.prism-sidebar .prism-nav-search-input::placeholder{color:#6b7280}#header.prism-sidebar .prism-nav-search-input::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none}#header.prism-sidebar .prism-nav-search-clear{display:none;flex:0 0 auto;align-items:center;justify-content:center;color:#6b7280;cursor:pointer}#header.prism-sidebar .prism-nav-search-clear.prism-nav-search-clear-visible{display:flex}#header.prism-sidebar .prism-nav-search-clear:hover{color:#1a1f36}#header.prism-sidebar .prism-nav-search-clear .prism-nav-icon{width:14px;height:14px}#header.prism-sidebar .prism-sidebar-scroll{flex:1 1 auto;overflow-y:auto;padding:20px 12px}#header.prism-sidebar .prism-nav-empty{display:none;padding:8px 12px;color:#6b7280;font-size:0.85em}#header.prism-sidebar .prism-nav-empty.prism-nav-empty-visible{display:block}#header.prism-sidebar .prism-sidebar-utility{flex:0 0 auto;padding:12px;border-top:1px solid #e6e8ec}#header.prism-sidebar .prism-sidebar-utility ul.prism-nav-utility{background:#f4f5f7;border-radius:10px;padding:4px}#header.prism-sidebar .prism-sidebar-utility .prism-nav-item{margin:0}#header.prism-sidebar .prism-sidebar-utility #prism_nav_current_user>.prism-nav-link{padding:10px 10px 6px;font-weight:600;color:#1a1f36;font-size:0.88em}#header.prism-sidebar .prism-sidebar-utility #prism_nav_current_user>.prism-nav-link:hover{background:transparent}#header.prism-sidebar .prism-sidebar-utility #prism_nav_current_user>.prism-nav-link .prism-nav-label{white-space:normal;word-break:break-word}#header.prism-sidebar .prism-sidebar-utility #prism_nav_logout>.prism-nav-link{padding:6px 10px 8px;font-size:0.85em;color:#6b7280}#header.prism-sidebar .prism-sidebar-utility #prism_nav_logout>.prism-nav-link:hover{color:#ef4444;background:transparent}#header.prism-sidebar .prism-sidebar-footer{flex:0 0 auto;padding:10px 16px;border-top:1px solid #e6e8ec;color:#6b7280;font-size:0.72em;line-height:1.4;text-align:center}#header.prism-sidebar .prism-sidebar-footer a{color:#6b7280;text-decoration:underline}#header.prism-sidebar .prism-sidebar-footer a:hover{color:#6d5bd0}#header.prism-sidebar .prism-nav-section-label{padding:0 12px 8px;font-size:0.72em;font-weight:700;letter-spacing:0.08em;text-transform:uppercase;color:#6b7280}#header.prism-sidebar ul.prism-nav{list-style:none;margin:0;padding:0}#header.prism-sidebar .prism-nav-item{margin:2px 0}#header.prism-sidebar .prism-nav-item>.prism-nav-link,#header.prism-sidebar .prism-nav-item>.prism-nav-group-toggle{display:flex;align-items:center;gap:10px;padding:9px 12px;border-radius:6px;color:#1a1f36;font-size:0.92em;font-weight:600;text-decoration:none;cursor:pointer;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;transition:background 120ms ease,color 120ms ease}#header.prism-sidebar .prism-nav-item>.prism-nav-link:hover,#header.prism-sidebar .prism-nav-item>.prism-nav-group-toggle:hover{background:#f4f5f7;color:#1a1f36}#header.prism-sidebar .prism-nav-item.active>.prism-nav-link,#header.prism-sidebar .prism-nav-item.active>.prism-nav-group-toggle{background:#f2ecfd;color:#5949b8;font-weight:700}#header.prism-sidebar .prism-nav-item .prism-nav-icon{flex:0 0 auto;color:inherit}#header.prism-sidebar .prism-nav-item .prism-nav-label{flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#header.prism-sidebar .prism-nav-item .prism-chevron{flex:0 0 auto;transition:transform 120ms ease}#header.prism-sidebar .prism-nav-item.open>.prism-nav-group-toggle .prism-chevron,#header.prism-sidebar .prism-nav-item.prism-search-open>.prism-nav-group-toggle .prism-chevron{transform:rotate(180deg)}#header.prism-sidebar .prism-nav-item .prism-nav-submenu{list-style:none;margin:2px 0 2px 30px;padding:0;display:none}#header.prism-sidebar .prism-nav-item.open>.prism-nav-submenu,#header.prism-sidebar .prism-nav-item.prism-search-open>.prism-nav-submenu{display:block}#header.prism-sidebar .prism-nav-item.has-children>.prism-nav-submenu .prism-nav-item>.prism-nav-link{font-size:0.88em}#header.prism-sidebar .prism-nav-item.prism-nav-hidden{display:none}#header.prism-sidebar .prism-nav-utility .prism-nav-item>.prism-nav-link,#header.prism-sidebar .prism-nav-utility .prism-nav-item>.prism-nav-group-toggle{color:#6b7280}#header.prism-sidebar .nav-badge{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;margin-left:auto;border-radius:999px;background:#6d5bd0;color:#fff;font-size:0.72em;font-weight:700;line-height:20px}@media (min-width: 901px){body.prism-sidebar-collapsed #header.prism-sidebar{width:76px}body.prism-sidebar-collapsed #header.prism-sidebar .prism-sidebar-brand{padding:20px 0;justify-content:center}body.prism-sidebar-collapsed #header.prism-sidebar .prism-sidebar-brand #site_title,body.prism-sidebar-collapsed #header.prism-sidebar .prism-sidebar-lang,body.prism-sidebar-collapsed #header.prism-sidebar .prism-sidebar-search,body.prism-sidebar-collapsed #header.prism-sidebar .prism-nav-section-label,body.prism-sidebar-collapsed #header.prism-sidebar .prism-nav-label,body.prism-sidebar-collapsed #header.prism-sidebar .prism-lang-current,body.prism-sidebar-collapsed #header.prism-sidebar .prism-sidebar-lang .prism-chevron,body.prism-sidebar-collapsed #header.prism-sidebar .prism-nav-item .prism-chevron,body.prism-sidebar-collapsed #header.prism-sidebar .prism-sidebar-footer{display:none}body.prism-sidebar-collapsed #header.prism-sidebar .prism-nav-submenu{display:none !important}body.prism-sidebar-collapsed #header.prism-sidebar .prism-sidebar-scroll{padding:20px 8px}body.prism-sidebar-collapsed #header.prism-sidebar .prism-nav-item>.prism-nav-link,body.prism-sidebar-collapsed #header.prism-sidebar .prism-nav-item>.prism-nav-group-toggle{justify-content:center;padding:9px}body.prism-sidebar-collapsed #header.prism-sidebar .prism-nav-item>.prism-nav-link:not(:has(.prism-nav-icon))::after,body.prism-sidebar-collapsed #header.prism-sidebar .prism-nav-item>.prism-nav-group-toggle:not(:has(.prism-nav-icon))::after{content:"";width:6px;height:6px;border-radius:50%;background:currentColor;opacity:0.6}body.prism-sidebar-collapsed #header.prism-sidebar .prism-sidebar-utility{padding-left:8px;padding-right:8px}}.prism-sidebar-mobile-toggle{display:none}@media (max-width: 900px){.prism-sidebar-mobile-toggle{display:flex;align-items:center;justify-content:center;position:fixed;top:14px;left:14px;width:38px;height:38px;border-radius:6px;background:#fff;color:#384250;box-shadow:0 1px 2px rgba(16,24,40,0.04), 0 1px 6px rgba(16,24,40,0.04);cursor:pointer;z-index:200}#wrapper,.index #wrapper{grid-template-columns:1fr}#header.prism-sidebar{position:fixed;left:-264px;top:0;bottom:0;transition:left 120ms ease;box-shadow:0 4px 6px rgba(16,24,40,0.05), 0 10px 24px rgba(16,24,40,0.08)}#title_bar,.flashes,#active_admin_content,#footer{grid-column:1}body.prism-sidebar-open #header.prism-sidebar{left:0}}.panel{background:#fff;border:1px solid #e6e8ec;border-radius:10px;box-shadow:0 1px 2px rgba(16,24,40,0.04),0 1px 6px rgba(16,24,40,0.04);margin-bottom:20px;overflow:hidden}.panel>h3{margin:0;padding:16px 20px;background:transparent;border-bottom:1px solid #e6e8ec;color:#1a1f36;font-size:1em;font-weight:600}.panel .panel_contents{padding:20px}.panel .header_action{float:right}.columns{display:flex;flex-wrap:wrap;gap:20px;margin:0}.columns .column{flex:1 1 260px;min-width:0}#sidebar{box-sizing:border-box;overflow-x:hidden}#sidebar .panel{box-sizing:border-box}#active_admin_content #main_content_wrapper #main_content,#active_admin_content #sidebar{transition:margin-right 280ms cubic-bezier(0.4, 0, 0.2, 1),width 280ms cubic-bezier(0.4, 0, 0.2, 1),margin-left 280ms cubic-bezier(0.4, 0, 0.2, 1)}body:has(.prism-collapsible-panel):not(:has(.prism-collapsible-panel.open)) #active_admin_content:not(.without_sidebar) #main_content_wrapper #main_content{margin-right:72px}body:has(.prism-collapsible-panel):not(:has(.prism-collapsible-panel.open)) #active_admin_content #sidebar{width:72px;margin-left:-72px}.prism-collapsible-panel{background:transparent;border-color:transparent;box-shadow:none;margin-bottom:10px;transition:background 120ms ease,border-color 120ms ease,box-shadow 120ms ease,margin 120ms ease}.prism-collapsible-panel>h3{display:flex;align-items:center;gap:8px;width:40px;height:40px;margin:0 0 0 auto;padding:0;justify-content:center;border:1px solid #e6e8ec;border-radius:6px;background:#fff;box-shadow:0 1px 2px rgba(16,24,40,0.04),0 1px 6px rgba(16,24,40,0.04);color:#1a1f36;cursor:pointer;user-select:none;overflow:hidden;transition:width 120ms ease,padding 120ms ease,justify-content 120ms ease,background 120ms ease,border-color 120ms ease}.prism-collapsible-panel>h3:hover{background:#f2ecfd;color:#5949b8}.prism-collapsible-panel .prism-filter-icon{flex:0 0 auto;order:-1}.prism-collapsible-panel .prism-filter-label{max-width:0;overflow:hidden;opacity:0;white-space:nowrap;transition:max-width 200ms ease, opacity 150ms ease}.prism-collapsible-panel .panel_contents{overflow:hidden;max-height:0;opacity:0;padding-top:0;padding-bottom:0;transition:max-height 280ms cubic-bezier(0.4, 0, 0.2, 1),opacity 200ms ease,padding 200ms ease}.prism-collapsible-panel.open{overflow:visible;background:#fff;border-color:#e6e8ec;box-shadow:0 1px 2px rgba(16,24,40,0.04),0 1px 6px rgba(16,24,40,0.04);margin-bottom:20px}.prism-collapsible-panel.open>h3{width:100%;height:auto;margin:0;justify-content:flex-start;padding:16px 20px;border:none;border-bottom:1px solid #e6e8ec;background:transparent;box-shadow:none;color:#1a1f36;border-radius:0}.prism-collapsible-panel.open>h3:hover{background:transparent;color:#1a1f36}.prism-collapsible-panel.open .prism-filter-label{max-width:200px;opacity:1}.prism-collapsible-panel.open .panel_contents{overflow:visible;max-height:1200px;opacity:1;padding-top:20px;padding-bottom:20px}body.prism-filters-collapsible-disabled .prism-collapsible-panel{overflow:visible;background:#fff;border-color:#e6e8ec;box-shadow:0 1px 2px rgba(16,24,40,0.04),0 1px 6px rgba(16,24,40,0.04);margin-bottom:20px}body.prism-filters-collapsible-disabled .prism-collapsible-panel>h3{width:100%;height:auto;margin:0;justify-content:flex-start;padding:16px 20px;border:none;border-bottom:1px solid #e6e8ec;box-shadow:none;cursor:default}body.prism-filters-collapsible-disabled .prism-collapsible-panel .panel_contents{max-height:none;opacity:1;overflow:visible;padding:20px}.table_tools{display:flex;flex-wrap:wrap;align-items:center;row-gap:12px}.table_tools_actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.prism-active-filters-bar{display:inline-flex;max-width:100%;margin-left:auto;padding:8px 14px;background:#f2ecfd;border:1px solid rgba(109,91,208,0.3);border-left:3px solid #6d5bd0;border-radius:10px;font-size:0.85em;cursor:pointer;transition:box-shadow 120ms ease}.prism-active-filters-bar:hover,.prism-active-filters-bar:focus-visible{box-shadow:0 0 0 3px rgba(109,91,208,0.15)}.prism-active-filters-bar:focus-visible{outline:none}.prism-active-filters-bar .active_filters_sidebar_content{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px}.prism-active-filters-bar>.active_filters_sidebar_content>h4{margin:0;font-size:1em;font-weight:700;text-transform:uppercase;letter-spacing:0.04em;color:#5949b8}.prism-active-filters-bar .current_scope_name{color:#5949b8;font-weight:700}.prism-active-filters-bar>.active_filters_sidebar_content>div{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;margin-top:0 !important}.prism-active-filters-bar>.active_filters_sidebar_content>div>h4{margin:0 !important;font-size:1em;font-weight:700;text-transform:uppercase;letter-spacing:0.04em;color:#5949b8}.prism-active-filters-bar>.active_filters_sidebar_content>div>ul{display:flex;flex-wrap:wrap;gap:6px;margin:0;padding:0;list-style:none}.prism-active-filters-bar>.active_filters_sidebar_content>div>ul li{display:inline-flex;align-items:center;gap:4px;padding:4px 10px;border-radius:999px;background:#fff;box-shadow:0 1px 2px rgba(16,24,40,0.06);line-height:1.4}.prism-active-filters-bar>.active_filters_sidebar_content>div>ul li span{color:#6b7280}.prism-active-filters-bar>.active_filters_sidebar_content>div>ul li b{font-weight:700;color:#5949b8}.blank_slate_container .blank_slate{background:#fff;border:1px dashed #d6d9e0;border-radius:10px;color:#6b7280;font-weight:600;box-shadow:none}.comments .active_admin_comment_meta{color:#6b7280}.comments .active_admin_comment_meta .active_admin_comment_author{color:#1a1f36}.index_content{position:relative;overflow-x:auto;scrollbar-width:auto;scrollbar-color:#6d5bd0 rgba(109,91,208,0.12)}.index_content::-webkit-scrollbar{height:12px}.index_content::-webkit-scrollbar-track{background:rgba(109,91,208,0.12);border-radius:999px}.index_content::-webkit-scrollbar-thumb{background:#6d5bd0;border-radius:999px;border:2px solid #fff}.index_content::-webkit-scrollbar-thumb:hover{background:#5949b8}.index_content::before,.index_content::after{position:absolute;top:0;bottom:0;width:56px;line-height:44px;pointer-events:none;opacity:0;transition:opacity 120ms ease;z-index:2;font-size:26px;font-weight:700;color:#5949b8;filter:drop-shadow(0 1px 1px rgba(255,255,255,0.9))}.index_content::before{content:"‹";left:0;text-align:left;padding-left:4px;background:linear-gradient(to right, rgba(109,91,208,0.22), transparent);animation:prism-scroll-hint-left 1.4s ease-in-out infinite}.index_content::after{content:"›";right:0;text-align:right;padding-right:4px;background:linear-gradient(to left, rgba(109,91,208,0.22), transparent);animation:prism-scroll-hint-right 1.4s ease-in-out infinite}.index_content.prism-scroll-left::before,.index_content.prism-scroll-right::after{opacity:1}@keyframes prism-scroll-hint-left{0%,100%{transform:translateX(0)}50%{transform:translateX(-6px)}}@keyframes prism-scroll-hint-right{0%,100%{transform:translateX(0)}50%{transform:translateX(6px)}}table.index_table{background:#fff;border:1px solid #e6e8ec;border-radius:10px;border-spacing:0;border-collapse:separate;overflow:hidden}table.index_table th,table.index_table td{padding:12px 16px}table.index_table th{background:#f4f5f7;color:#6b7280;font-size:0.78em;font-weight:700;letter-spacing:0.04em;text-transform:uppercase;border:none;border-bottom:1px solid #e6e8ec;white-space:nowrap}table.index_table th a{white-space:nowrap}table.index_table th:last-child{border-right:none}table.index_table th.sorted-asc,table.index_table th.sorted-desc{background:#f4f5f7}table.index_table td{border-bottom:1px solid #e6e8ec;color:#384250}table.index_table tr:last-child td{border-bottom:none}table.index_table tr.even td{background:transparent}table.index_table tr.selected td{background:#f2ecfd}table.index_table tbody tr:hover td{background:#f4f5f7}table.index_table td.col-actions{white-space:nowrap}.table_actions{display:flex;align-items:center;gap:4px}.table_actions a{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:6px;transition:background 120ms ease,color 120ms ease}.table_actions a.view_link{color:#3b82f6}.table_actions a.view_link:hover{background:rgba(59,130,246,0.12);color:#0b63f3}.table_actions a.edit_link{color:#6d5bd0}.table_actions a.edit_link:hover{background:#f2ecfd;color:#5949b8}.table_actions a.delete_link{color:#ef4444}.table_actions a.delete_link:hover{background:#fdecec;color:#eb1515}.table_actions .prism-action-icon{margin:0}.status_tag{border-radius:999px;background:#d6d9e0;color:#1a1f36;text-transform:none;letter-spacing:0;font-weight:600;padding:3px 10px}.status_tag.yes{background:#e8f9ee;color:#17843f}.status_tag.no{background:#fdecec;color:#ed2d2d}form fieldset.inputs{background:#fff;border:1px solid #e6e8ec;border-radius:10px;padding:20px}form fieldset legend span{color:#1a1f36;font-weight:700;font-size:1.05em;text-transform:none;letter-spacing:normal}form fieldset ol>li label{color:#384250;font-weight:600;font-size:0.9em}form fieldset>ol>li{overflow:hidden}form input[type="text"],form input[type="password"],form input[type="email"],form input[type="number"],form input[type="url"],form input[type="tel"],form input[type="date"],form input[type="time"],form input[type="search"],form select,form textarea{border:1px solid #d6d9e0;border-radius:6px;color:#1a1f36;padding:9px 12px;box-shadow:none;transition:border-color 120ms ease,box-shadow 120ms ease}form input[type="text"]:focus,form input[type="password"]:focus,form input[type="email"]:focus,form input[type="number"]:focus,form input[type="url"]:focus,form input[type="tel"]:focus,form input[type="date"]:focus,form input[type="time"]:focus,form input[type="search"]:focus,form select:focus,form textarea:focus{border-color:#6d5bd0;box-shadow:0 0 0 3px rgba(109,91,208,0.15)}form fieldset>ol>li.error input[type="text"],form fieldset>ol>li.error input[type="password"],form fieldset>ol>li.error input[type="email"],form fieldset>ol>li.error input[type="number"],form fieldset>ol>li.error input[type="url"],form fieldset>ol>li.error input[type="tel"],form fieldset>ol>li.error textarea,form fieldset>ol>li.error select{border-color:#ef4444}form fieldset>ol>li.error input[type="text"]:focus,form fieldset>ol>li.error input[type="password"]:focus,form fieldset>ol>li.error input[type="email"]:focus,form fieldset>ol>li.error input[type="number"]:focus,form fieldset>ol>li.error input[type="url"]:focus,form fieldset>ol>li.error input[type="tel"]:focus,form fieldset>ol>li.error textarea:focus,form fieldset>ol>li.error select:focus{box-shadow:0 0 0 3px rgba(239,68,68,0.15)}form fieldset>ol>li p.inline-errors{color:#ef4444;font-weight:600}form ul.errors{background:#fdecec;color:#ef4444;border-radius:6px}form input[type="checkbox"],form input[type="radio"]{appearance:none;position:relative;width:18px;height:18px;margin:0 8px 0 0;border:1px solid #d6d9e0;background:#fff;vertical-align:middle;cursor:pointer;flex:0 0 auto}form input[type="checkbox"]:checked,form input[type="radio"]:checked{background:#6d5bd0;border-color:#6d5bd0}form input[type="checkbox"]:checked::after,form input[type="radio"]:checked::after{content:"";position:absolute;left:5px;top:1px;width:5px;height:10px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}form input[type="checkbox"]:focus-visible,form input[type="radio"]:focus-visible{box-shadow:0 0 0 3px rgba(109,91,208,0.2)}form input[type="checkbox"]{border-radius:5px}form input[type="radio"]{border-radius:50%}form input[type="radio"]:checked::after{left:5px;top:5px;width:6px;height:6px;border:none;border-radius:50%;background:#fff;transform:none}form fieldset>ol>li.boolean label{display:flex;align-items:center}form label.prism-toggle{display:flex;align-items:center;gap:10px}form label.prism-toggle input.prism-toggle-input{appearance:none;position:relative;width:0;height:0;margin:0;border:none}form label.prism-toggle input.prism-toggle-input:checked~.prism-toggle-track{background:#6d5bd0}form label.prism-toggle input.prism-toggle-input:checked~.prism-toggle-track::after{transform:translateX(16px)}form .buttons>ol,form .actions>ol{display:flex;flex-wrap:wrap;align-items:center;gap:10px}form .buttons li,form .actions li{padding:0}.prism-toggle-track{position:relative;display:inline-block;width:38px;height:22px;border-radius:999px;background:#d6d9e0;transition:background 120ms ease;flex:0 0 auto}.prism-toggle-track::after{content:"";position:absolute;top:2px;left:2px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,0.25);transition:transform 120ms ease}.prism-toggle-tag{display:inline-flex;align-items:center;vertical-align:middle}.prism-toggle-tag.on .prism-toggle-track{background:#6d5bd0}.prism-toggle-tag.on .prism-toggle-track::after{transform:translateX(16px)}.sidebar_section label{color:#6b7280;font-size:0.72em;font-weight:700;letter-spacing:0.06em}.sidebar_section select,.sidebar_section input[type="text"],.sidebar_section input[type="number"]{box-sizing:border-box;width:100%;max-width:100%}form.filter_form .filter_form_field{margin-bottom:14px}form.filter_form .filter_form_field.select_and_search{display:flex;gap:8px}form.filter_form .filter_form_field.select_and_search select,form.filter_form .filter_form_field.select_and_search input[type="text"]{width:auto;min-width:0;flex:1 1 0;margin-left:0}form.filter_form .filter_form_field.filter_date_range{display:flex;gap:8px}form.filter_form .filter_form_field.filter_date_range input[type="text"]{width:auto;min-width:0;flex:1 1 0}form.filter_form .filter_form_field.filter_date_range input[type="text"]+input{margin-left:0}.select2-container{box-sizing:border-box;display:inline-block;margin:0;position:relative;vertical-align:middle}.select2-container .select2-selection--single{box-sizing:border-box;cursor:pointer;display:block;height:28px;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--single .select2-selection__rendered{display:block;padding-left:8px;padding-right:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-selection--single .select2-selection__clear{background-color:transparent;border:none;font-size:1em}.select2-container[dir=rtl] .select2-selection--single .select2-selection__rendered{padding-right:8px;padding-left:20px}.select2-container .select2-selection--multiple{box-sizing:border-box;cursor:pointer;display:block;min-height:32px;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--multiple .select2-selection__rendered{display:inline;list-style:none;padding:0}.select2-container .select2-selection--multiple .select2-selection__clear{background-color:transparent;border:none;font-size:1em}.select2-container .select2-search--inline .select2-search__field{box-sizing:border-box;border:none;font-size:100%;margin-top:5px;margin-left:5px;padding:0;max-width:100%;resize:none;height:20px;vertical-align:bottom;font-family:sans-serif;overflow:hidden;word-break:keep-all}.select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-container .select2-search--inline .select2-search__field::placeholder{line-height:normal}.select2-dropdown{background-color:white;border:1px solid #aaa;border-radius:4px;box-sizing:border-box;display:block;position:absolute;left:-100000px;width:100%;z-index:1051}.select2-results{display:block}.select2-results__options{list-style:none;margin:0;padding:0}.select2-results__option{padding:6px;user-select:none;-webkit-user-select:none}.select2-results__option--selectable{cursor:pointer}.select2-container--open .select2-dropdown{left:0}.select2-container--open .select2-dropdown--above{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--open .select2-dropdown--below{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-search--dropdown{display:block;padding:4px}.select2-search--dropdown .select2-search__field{padding:4px;width:100%;box-sizing:border-box}.select2-search--dropdown .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-search--dropdown.select2-search--hide{display:none}.select2-close-mask{border:0;margin:0;padding:0;display:block;position:fixed;left:0;top:0;min-height:100%;min-width:100%;height:auto;width:auto;opacity:0;z-index:99;background-color:#fff;filter:alpha(opacity=0)}.select2-hidden-accessible{border:0 !important;clip:rect(0 0 0 0) !important;-webkit-clip-path:inset(50%) !important;clip-path:inset(50%) !important;height:1px !important;overflow:hidden !important;padding:0 !important;position:absolute !important;width:1px !important;white-space:nowrap !important}.select2-container--default .select2-selection--single{background-color:#fff;border:1px solid #aaa;border-radius:4px}.select2-container--default .select2-selection--single .select2-selection__rendered{color:#444;line-height:28px}.select2-container--default .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:bold;height:26px;margin-right:20px;padding-right:0px}.select2-container--default .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--default .select2-selection--single .select2-selection__arrow{height:26px;position:absolute;top:1px;right:1px;width:20px}.select2-container--default .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--default[dir=rtl] .select2-selection--single .select2-selection__clear{float:left}.select2-container--default[dir=rtl] .select2-selection--single .select2-selection__arrow{left:1px;right:auto}.select2-container--default.select2-container--disabled .select2-selection--single{background-color:#eee;cursor:default}.select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__clear{display:none}.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.select2-container--default .select2-selection--multiple{background-color:white;border:1px solid #aaa;border-radius:4px;cursor:text;padding-bottom:5px;padding-right:5px;position:relative}.select2-container--default .select2-selection--multiple.select2-selection--clearable{padding-right:25px}.select2-container--default .select2-selection--multiple .select2-selection__clear{cursor:pointer;font-weight:bold;height:20px;margin-right:10px;margin-top:5px;position:absolute;right:0;padding:1px}.select2-container--default .select2-selection--multiple .select2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;box-sizing:border-box;display:inline-block;margin-left:5px;margin-top:5px;padding:0;padding-left:20px;position:relative;max-width:100%;overflow:hidden;text-overflow:ellipsis;vertical-align:bottom;white-space:nowrap}.select2-container--default .select2-selection--multiple .select2-selection__choice__display{cursor:default;padding-left:2px;padding-right:5px}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove{background-color:transparent;border:none;border-right:1px solid #aaa;border-top-left-radius:4px;border-bottom-left-radius:4px;color:#999;cursor:pointer;font-size:1em;font-weight:bold;padding:0 4px;position:absolute;left:0;top:0}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover,.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:focus{background-color:#f1f1f1;color:#333;outline:none}.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__choice{padding:0 20px 0 0;margin-left:5px;margin-right:auto}.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__choice__display{padding-left:5px;padding-right:2px}.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__choice__remove{left:auto;right:0;border-left:1px solid #aaa;border-right:none;border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:4px;border-bottom-right-radius:4px}.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__clear{float:left;margin-left:10px;margin-right:auto}.select2-container--default.select2-container--focus .select2-selection--multiple{border:solid black 1px;outline:0}.select2-container--default.select2-container--disabled .select2-selection--multiple{background-color:#eee;cursor:default}.select2-container--default.select2-container--disabled .select2-selection__choice__remove{display:none}.select2-container--default.select2-container--open.select2-container--above .select2-selection--single,.select2-container--default.select2-container--open.select2-container--above .select2-selection--multiple{border-top-left-radius:0;border-top-right-radius:0}.select2-container--default.select2-container--open.select2-container--below .select2-selection--single,.select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple{border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--default .select2-search--dropdown .select2-search__field{border:1px solid #aaa}.select2-container--default .select2-search--inline .select2-search__field{background:transparent;border:none;outline:0;box-shadow:none;-webkit-appearance:textfield}.select2-container--default .select2-results>.select2-results__options{max-height:200px;overflow-y:auto}.select2-container--default .select2-results__option .select2-results__option{padding-left:1em}.select2-container--default .select2-results__option .select2-results__option .select2-results__group{padding-left:0}.select2-container--default .select2-results__option .select2-results__option .select2-results__option{margin-left:-1em;padding-left:2em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-2em;padding-left:3em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-3em;padding-left:4em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-4em;padding-left:5em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-5em;padding-left:6em}.select2-container--default .select2-results__option--group{padding:0}.select2-container--default .select2-results__option--disabled{color:#999}.select2-container--default .select2-results__option--selected{background-color:#ddd}.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable{background-color:#5897fb;color:white}.select2-container--default .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic .select2-selection--single{background-color:#f7f7f7;border:1px solid #aaa;border-radius:4px;outline:0;background-image:-webkit-linear-gradient(top, white 50%, #eee 100%);background-image:-o-linear-gradient(top, white 50%, #eee 100%);background-image:linear-gradient(to bottom, white 50%, #eee 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0)}.select2-container--classic .select2-selection--single:focus{border:1px solid #5897fb}.select2-container--classic .select2-selection--single .select2-selection__rendered{color:#444;line-height:28px}.select2-container--classic .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:bold;height:26px;margin-right:20px}.select2-container--classic .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--classic .select2-selection--single .select2-selection__arrow{background-color:#ddd;border:none;border-left:1px solid #aaa;border-top-right-radius:4px;border-bottom-right-radius:4px;height:26px;position:absolute;top:1px;right:1px;width:20px;background-image:-webkit-linear-gradient(top, #eee 50%, #ccc 100%);background-image:-o-linear-gradient(top, #eee 50%, #ccc 100%);background-image:linear-gradient(to bottom, #eee 50%, #ccc 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFCCCCCC', GradientType=0)}.select2-container--classic .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--classic[dir=rtl] .select2-selection--single .select2-selection__clear{float:left}.select2-container--classic[dir=rtl] .select2-selection--single .select2-selection__arrow{border:none;border-right:1px solid #aaa;border-radius:0;border-top-left-radius:4px;border-bottom-left-radius:4px;left:1px;right:auto}.select2-container--classic.select2-container--open .select2-selection--single{border:1px solid #5897fb}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow{background:transparent;border:none}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--single{border-top:none;border-top-left-radius:0;border-top-right-radius:0;background-image:-webkit-linear-gradient(top, white 0%, #eee 50%);background-image:-o-linear-gradient(top, white 0%, #eee 50%);background-image:linear-gradient(to bottom, white 0%, #eee 50%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0)}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--single{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0;background-image:-webkit-linear-gradient(top, #eee 50%, white 100%);background-image:-o-linear-gradient(top, #eee 50%, white 100%);background-image:linear-gradient(to bottom, #eee 50%, white 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFFFFFFF', GradientType=0)}.select2-container--classic .select2-selection--multiple{background-color:white;border:1px solid #aaa;border-radius:4px;cursor:text;outline:0;padding-bottom:5px;padding-right:5px}.select2-container--classic .select2-selection--multiple:focus{border:1px solid #5897fb}.select2-container--classic .select2-selection--multiple .select2-selection__clear{display:none}.select2-container--classic .select2-selection--multiple .select2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;display:inline-block;margin-left:5px;margin-top:5px;padding:0}.select2-container--classic .select2-selection--multiple .select2-selection__choice__display{cursor:default;padding-left:2px;padding-right:5px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove{background-color:transparent;border:none;border-top-left-radius:4px;border-bottom-left-radius:4px;color:#888;cursor:pointer;font-size:1em;font-weight:bold;padding:0 4px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove:hover{color:#555;outline:none}.select2-container--classic[dir=rtl] .select2-selection--multiple .select2-selection__choice{margin-left:5px;margin-right:auto}.select2-container--classic[dir=rtl] .select2-selection--multiple .select2-selection__choice__display{padding-left:5px;padding-right:2px}.select2-container--classic[dir=rtl] .select2-selection--multiple .select2-selection__choice__remove{border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:4px;border-bottom-right-radius:4px}.select2-container--classic.select2-container--open .select2-selection--multiple{border:1px solid #5897fb}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--multiple{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--multiple{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--classic .select2-search--dropdown .select2-search__field{border:1px solid #aaa;outline:0}.select2-container--classic .select2-search--inline .select2-search__field{outline:0;box-shadow:none}.select2-container--classic .select2-dropdown{background-color:white;border:1px solid transparent}.select2-container--classic .select2-dropdown--above{border-bottom:none}.select2-container--classic .select2-dropdown--below{border-top:none}.select2-container--classic .select2-results>.select2-results__options{max-height:200px;overflow-y:auto}.select2-container--classic .select2-results__option--group{padding:0}.select2-container--classic .select2-results__option--disabled{color:grey}.select2-container--classic .select2-results__option--highlighted.select2-results__option--selectable{background-color:#3875d7;color:white}.select2-container--classic .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic.select2-container--open .select2-dropdown{border-color:#5897fb}.select2-container{display:block;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif}.select2-container .select2-selection--single{height:auto;border:1px solid #d6d9e0;border-radius:6px;background:#fff;padding:9px 32px 9px 12px;transition:border-color 120ms ease,box-shadow 120ms ease}.select2-container .select2-selection--single .select2-selection__rendered{padding:0;color:#1a1f36;line-height:1.4}.select2-container .select2-selection--single .select2-selection__placeholder{color:#6b7280}.select2-container .select2-selection--single .select2-selection__arrow{height:100%;top:0;right:8px}.select2-container .select2-selection--single .select2-selection__arrow b{border-color:#6b7280 transparent transparent transparent}.select2-container--open .select2-selection--single{border-color:#6d5bd0;box-shadow:0 0 0 3px rgba(109,91,208,0.15)}.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #6b7280 transparent}.select2-container--disabled .select2-selection--single{background:#f4f5f7;color:#6b7280;cursor:not-allowed}.select2-container .select2-selection__clear{position:static;margin:0 4px 0 0;height:auto;color:#6b7280;font-weight:700}.select2-container .select2-selection__clear:hover{color:#ef4444}.select2-container .select2-selection--multiple{min-height:auto;border:1px solid #d6d9e0;border-radius:6px;background:#fff;padding:6px 8px;cursor:text;transition:border-color 120ms ease,box-shadow 120ms ease}.select2-container .select2-selection--multiple .select2-selection__rendered{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:0}.select2-container .select2-selection--multiple .select2-selection__placeholder{color:#6b7280}.select2-container .select2-selection--multiple .select2-selection__choice{display:flex;align-items:center;gap:4px;position:static;max-width:100%;margin:0;padding:3px 6px 3px 10px;border:none;border-radius:999px;background:#f2ecfd;overflow:hidden}.select2-container .select2-selection--multiple .select2-selection__choice__display{padding:0;color:#5949b8;font-weight:600;font-size:0.85em;overflow:hidden;text-overflow:ellipsis}.select2-container .select2-selection--multiple .select2-selection__choice__remove{position:static;border:none;border-radius:50%;background:transparent;color:#5949b8;font-weight:700;line-height:1;padding:2px}.select2-container .select2-selection--multiple .select2-selection__choice__remove:hover,.select2-container .select2-selection--multiple .select2-selection__choice__remove:focus{background:rgba(89,73,184,0.15);color:#5949b8;outline:none}.select2-container .select2-selection--multiple .select2-selection__clear{position:static;margin:0 0 0 auto;height:auto;color:#6b7280;font-weight:700}.select2-container .select2-selection--multiple .select2-selection__clear:hover{color:#ef4444}.select2-container .select2-selection--multiple .select2-search--inline .select2-search__field{margin:0;padding:3px 2px;min-height:0;height:auto;color:#1a1f36;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif}.select2-container--focus .select2-selection--multiple,.select2-container--open .select2-selection--multiple{border-color:#6d5bd0;box-shadow:0 0 0 3px rgba(109,91,208,0.15)}.select2-container--disabled .select2-selection--multiple{background:#f4f5f7}.select2-container--disabled .select2-selection--multiple .select2-selection__choice{opacity:0.75}.select2-container--disabled .select2-selection--multiple .select2-selection__choice__remove{display:none}.sidebar_section .select2-container,form.filter_form .select2-container{width:100% !important;box-sizing:border-box;max-width:100%}form.filter_form .filter_form_field.select_and_search .select2-container{width:auto !important;min-width:0;flex:1 1 0}form fieldset.inputs li.select>.select2-container{display:inline-block;width:calc(80% - 22px) !important;vertical-align:middle}form fieldset.inputs li.select>select:not(.select2-hidden-accessible){display:inline-block;width:calc(80% - 22px);vertical-align:middle}.select2-dropdown{border:1px solid #e6e8ec;border-radius:6px;box-shadow:0 4px 6px rgba(16,24,40,0.05),0 10px 24px rgba(16,24,40,0.08);overflow:hidden}.select2-search--dropdown{padding:8px}.select2-search--dropdown .select2-search__field{border:1px solid #d6d9e0;border-radius:6px;padding:7px 10px;color:#1a1f36}.select2-search--dropdown .select2-search__field:focus{border-color:#6d5bd0;box-shadow:0 0 0 3px rgba(109,91,208,0.15)}.select2-results__options{padding:4px}.select2-results__option{padding:8px 12px;border-radius:6px;color:#384250}.select2-results__option--highlighted{background:#f2ecfd !important;color:#5949b8 !important}.select2-results__option[aria-selected="true"]{background:#f4f5f7;color:#1a1f36;font-weight:600}.prism-action-items-dropdown .select2-selection--single,.prism-sidebar-panel-select-wrapper .select2-selection--single{border-color:rgba(109,91,208,0.4);background:#f2ecfd}.prism-action-items-dropdown .select2-container--open .select2-selection--single,.prism-action-items-dropdown .select2-container--focus .select2-selection--single,.prism-sidebar-panel-select-wrapper .select2-container--open .select2-selection--single,.prism-sidebar-panel-select-wrapper .select2-container--focus .select2-selection--single{border-color:#6d5bd0}.prism-action-items-dropdown .select2-selection__rendered,.prism-sidebar-panel-select-wrapper .select2-selection__rendered{text-align:center;color:#5949b8 !important;font-weight:700 !important}.prism-action-items-dropdown .select2-selection__placeholder,.prism-sidebar-panel-select-wrapper .select2-selection__placeholder{color:#5949b8 !important}.prism-action-items-dropdown .select2-selection__arrow b,.prism-sidebar-panel-select-wrapper .select2-selection__arrow b{border-top-color:#5949b8 !important}.select2-results__message{color:#6b7280;padding:8px 12px}a.button,a.button:link,a.button:visited,input[type="submit"],input[type="button"],button,form input[type="submit"],form input[type="button"],form button{background:#6d5bd0 !important;background-image:none !important;border:1px solid #6d5bd0;border-radius:6px;color:#fff !important;text-shadow:none;box-shadow:none;font-weight:600;padding:9px 16px;transition:background 120ms ease,border-color 120ms ease}a.button:hover,a.button:link:hover,a.button:visited:hover,input[type="submit"]:hover,input[type="button"]:hover,button:hover,form input[type="submit"]:hover,form input[type="button"]:hover,form button:hover{background:#5949b8 !important;border-color:#5949b8;color:#fff !important}a.button:active,a.button:link:active,a.button:visited:active,input[type="submit"]:active,input[type="button"]:active,button:active,form input[type="submit"]:active,form input[type="button"]:active,form button:active{background:#5949b8 !important;box-shadow:none}a.button.danger,input.danger[type="submit"],form input.danger[type="submit"]{background:#ef4444;border-color:#ef4444}a.button.danger:hover,input.danger[type="submit"]:hover,form input.danger[type="submit"]:hover{background:#ec1e1e;border-color:#ec1e1e}#title_bar .action_items span.action_item>a,#title_bar .action_items span.action_item>.dropdown_menu>a{background:#6d5bd0 !important;background-image:none !important;border:1px solid #6d5bd0;border-radius:6px;color:#fff !important;text-shadow:none;box-shadow:none;font-weight:600;padding:9px 16px;transition:background 120ms ease,border-color 120ms ease;padding:9px 16px;margin:0;display:inline-flex;align-items:center;min-height:36px;box-sizing:border-box}#title_bar .action_items span.action_item>a:hover,#title_bar .action_items span.action_item>.dropdown_menu>a:hover{background:#5949b8 !important;border-color:#5949b8;color:#fff !important}#title_bar .action_items span.action_item>a:active,#title_bar .action_items span.action_item>.dropdown_menu>a:active{background:#5949b8 !important;box-shadow:none}#title_bar .action_items span.action_item.prism-action-item-new{margin-left:10px}.prism-titlebar-actions-row{display:inline-flex;align-items:center;gap:10px}.prism-action-items-dropdown{display:inline-block}.prism-action-items-dropdown .select2-container{min-width:220px}.prism-action-items-holding{display:none}#titlebar_right.prism-action-items-pending .action_items .action_item:not(.prism-action-item-new){visibility:hidden}.prism-sidebar-panel-select-wrapper{display:inline-block}.prism-sidebar-panel-select-wrapper .select2-container{min-width:220px}.prism-sidebar-panel-holding{display:none}.dropdown_menu .dropdown_menu_button,form.filter_form a.clear_filters_btn,fieldset.buttons li.cancel a,fieldset.actions li.cancel a,.pagination a,.pagination span.page.current,.pagination_per_page select{background:#fff !important;background-image:none !important;border:1px solid #d6d9e0;border-radius:6px;color:#384250 !important;text-shadow:none;box-shadow:none;font-weight:600;padding:8px 15px;transition:background 120ms ease,border-color 120ms ease}.dropdown_menu .dropdown_menu_button:hover,form.filter_form a.clear_filters_btn:hover,fieldset.buttons li.cancel a:hover,fieldset.actions li.cancel a:hover,.pagination a:hover,.pagination span.page.current:hover,.pagination_per_page select:hover{background:#f4f5f7 !important;border-color:#6b7280;color:#1a1f36 !important}.dropdown_menu .dropdown_menu_button:active,form.filter_form a.clear_filters_btn:active,fieldset.buttons li.cancel a:active,fieldset.actions li.cancel a:active,.pagination a:active,.pagination span.page.current:active,.pagination_per_page select:active{background:#f4f5f7 !important;box-shadow:none}.dropdown_menu .dropdown_menu_button{padding-right:26px !important}.dropdown_menu .dropdown_menu_button::before,.dropdown_menu .dropdown_menu_button::after{border-color:#6b7280 transparent}.dropdown_menu_list_wrapper{border-radius:6px;box-shadow:0 4px 6px rgba(16,24,40,0.05),0 10px 24px rgba(16,24,40,0.08);border:1px solid #e6e8ec;background:#fff;padding:4px}.dropdown_menu_list_wrapper .dropdown_menu_list{background:transparent;border:none;box-shadow:none;border-radius:0}.dropdown_menu_list_wrapper .dropdown_menu_list li{border-bottom:none}.dropdown_menu_list_wrapper .dropdown_menu_list li a{border-radius:6px;color:#384250;font-weight:600;text-align:left;text-shadow:none;padding:8px 12px}.dropdown_menu_list_wrapper .dropdown_menu_list li a:hover,.dropdown_menu_list_wrapper .dropdown_menu_list li a:active{background:#f2ecfd;color:#5949b8;text-shadow:none}.dropdown_menu_list_wrapper .dropdown_menu_list li:first-child a,.dropdown_menu_list_wrapper .dropdown_menu_list li:last-child a{border-radius:6px}.pagination a,.pagination span.page.current{border-radius:6px;margin-right:4px;padding:5px 11px}.pagination span.page.current{background:#f2ecfd;border-color:#f2ecfd;color:#5949b8}.pagination_information{color:#6b7280}.pagination_information b{color:#1a1f36}.prism-icon,.prism-nav-icon,.prism-chevron,.prism-action-icon{display:inline-block;vertical-align:middle;flex-shrink:0}.prism-icon{margin-right:6px}.prism-visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border:0}body.logged_out:has(.prism-login-brand){min-height:100vh;display:flex;align-items:center;justify-content:center;background:#f4f5f7;overflow:hidden;position:relative}body.logged_out:has(.prism-login-brand)::before,body.logged_out:has(.prism-login-brand)::after{content:"";position:fixed;z-index:0;border-radius:50%;filter:blur(70px);opacity:0.35;pointer-events:none}body.logged_out:has(.prism-login-brand)::before{width:420px;height:420px;top:-140px;left:-120px;background:radial-gradient(circle at 30% 30%, #6d5bd0, transparent 70%);animation:prism-login-blob-a 16s ease-in-out infinite}body.logged_out:has(.prism-login-brand)::after{width:360px;height:360px;bottom:-120px;right:-100px;background:radial-gradient(circle at 70% 70%, #f2ecfd, transparent 70%);animation:prism-login-blob-b 18s ease-in-out infinite}body.logged_out:has(.prism-login-brand) #wrapper{position:relative;z-index:1;display:block;min-height:0;width:auto}body.logged_out:has(.prism-login-brand) #content_wrapper{display:flex;flex-direction:column;align-items:center;width:400px;max-width:90vw;margin:0 auto}body.logged_out:has(.prism-login-brand) #active_admin_content{width:100%;box-sizing:border-box;background:#fff;border:1px solid #e6e8ec;border-radius:10px;box-shadow:0 4px 6px rgba(16,24,40,0.05),0 10px 24px rgba(16,24,40,0.08);padding:40px 36px 32px}body.logged_out:has(.prism-login-brand) #footer{position:relative;z-index:1;border-top:none;text-align:center}body.logged_out:has(.prism-login-brand) #login fieldset.inputs{border:none;border-radius:0}body.logged_out:has(.prism-login-brand) #login fieldset.actions{margin-top:4px;text-align:center}body.logged_out:has(.prism-login-brand) #login fieldset.actions li{float:none}body.logged_out:has(.prism-login-brand) #login fieldset.actions li.input_action{padding:20px 0;margin-left:30px;margin-bottom:15px}body.logged_out:has(.prism-login-brand) #login fieldset.actions input[type="submit"]{display:inline-block;width:auto;min-width:200px;padding:12px 28px;font-size:0.95em}body.logged_out:has(.prism-login-brand) #error_explanation{background:#fdecec;border:1px solid rgba(239,68,68,0.3);border-radius:6px;padding:12px 16px;margin-bottom:20px;color:#eb1515}body.logged_out:has(.prism-login-brand) #error_explanation h2{background:none !important;box-shadow:none !important;text-shadow:none !important;border:none !important;margin:0 0 6px !important;padding:0 !important;color:inherit;font-size:0.95em;font-weight:700}body.logged_out:has(.prism-login-brand) #error_explanation ul{margin:0;padding-left:18px;font-size:0.88em;font-weight:600}@keyframes prism-login-blob-a{0%,100%{transform:translate(0, 0) scale(1)}50%{transform:translate(60px, 40px) scale(1.1)}}@keyframes prism-login-blob-b{0%,100%{transform:translate(0, 0) scale(1)}50%{transform:translate(-50px, -30px) scale(1.08)}}.prism-login-brand{text-align:center;margin-bottom:28px}.prism-login-logo{width:64px;height:64px;margin:0 auto 14px;color:#6d5bd0}.prism-login-mark{display:block;width:100%;height:100%}.prism-login-beam{stroke-dasharray:40;animation:prism-login-beam-flow 2.4s linear infinite}@keyframes prism-login-beam-flow{to{stroke-dashoffset:-80}}.prism-login-tri{transform-origin:center;animation:prism-login-tri-glow 3.2s ease-in-out infinite}@keyframes prism-login-tri-glow{0%,100%{filter:drop-shadow(0 0 0 rgba(0,0,0,0))}50%{filter:drop-shadow(0 0 6px rgba(109,91,208,0.45))}}body.logged_out #login .prism-login-brand h2{background:none !important;box-shadow:none !important;text-shadow:none !important;border:none !important;margin:0 !important;padding:0 !important;color:#1a1f36}.prism-login-title{font-size:1.6em;font-weight:800;letter-spacing:-0.01em}.prism-login-tagline{margin:4px 0 0;color:#6b7280;font-size:0.9em}.prism-login-links{margin-top:24px;display:flex;flex-wrap:wrap;justify-content:center;gap:10px;text-align:center}.prism-login-links a{display:inline-flex;align-items:center;padding:7px 14px;border:1px solid #e6e8ec;border-radius:999px;background:#f4f5f7;color:#384250;font-size:0.82em;font-weight:600;text-decoration:none;transition:background 120ms ease,border-color 120ms ease,color 120ms ease}.prism-login-links a:hover{background:#f2ecfd;border-color:#6d5bd0;color:#5949b8}.prism-login-links br{display:none}
1
+ body{background:#f4f5f7;color:#384250;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif}#active_admin_content h2,#active_admin_content h3{color:#1a1f36;font-weight:600}a{color:#6d5bd0}a:hover{color:#5949b8}#title_bar{background:transparent;border:none;box-shadow:none;text-shadow:none;padding:10px 10px 8px}#title_bar h2#page_title{color:#1a1f36;font-weight:700;font-size:1.6em;letter-spacing:-0.01em}#footer{color:#6b7280;font-size:0.85em;padding:10px;border-top:1px solid #e6e8ec}#footer a{color:#6b7280;text-decoration:underline}#footer a:hover{color:#6d5bd0}.flashes{position:fixed;top:20px;right:20px;z-index:1000;display:flex;flex-direction:column;gap:12px;width:340px;max-width:calc(100vw - 24px);padding:0;pointer-events:none}.flashes>*{pointer-events:auto}@media (max-width: 480px){.flashes{top:12px;right:12px;left:12px;width:auto;max-width:none}}body.active_admin .flash{position:relative;display:flex;align-items:flex-start;gap:10px;background:#fff;border:1px solid #e6e8ec;border-radius:10px;overflow:hidden;box-shadow:0 4px 6px rgba(16,24,40,0.05),0 10px 24px rgba(16,24,40,0.08);text-shadow:none;color:#1a1f36;font-size:0.88em;font-weight:600;line-height:1.4;padding:14px 34px 16px 14px;margin-bottom:0;opacity:1;transform:translateX(0) scale(1);transition:opacity 320ms cubic-bezier(0.4, 0, 0.2, 1),transform 320ms cubic-bezier(0.4, 0, 0.2, 1)}body.active_admin .flash.prism-flash-hide{opacity:0;transform:translateX(24px) scale(0.98)}body.active_admin .flash.flash_notice,body.active_admin .flash.flash_success{background:#fff;border-bottom-color:#e6e8ec;color:#1a1f36}body.active_admin .flash.flash_notice .prism-flash-icon,body.active_admin .flash.flash_success .prism-flash-icon{color:#22c55e}body.active_admin .flash.flash_notice .prism-flash-progress,body.active_admin .flash.flash_success .prism-flash-progress{background:#22c55e}body.active_admin .flash.flash_error,body.active_admin .flash.flash_alert{background:#fff;border-bottom-color:#e6e8ec;color:#1a1f36}body.active_admin .flash.flash_error .prism-flash-icon,body.active_admin .flash.flash_alert .prism-flash-icon{color:#ef4444}body.active_admin .flash.flash_error .prism-flash-progress,body.active_admin .flash.flash_alert .prism-flash-progress{background:#ef4444}body.active_admin .flash.flash_warning .prism-flash-icon{color:#f59e0b}body.active_admin .flash.flash_warning .prism-flash-progress{background:#f59e0b}body.active_admin .flash.flash_info .prism-flash-icon,body.active_admin .flash:not(.flash_notice):not(.flash_success):not(.flash_error):not(.flash_alert):not(.flash_warning) .prism-flash-icon{color:#3b82f6}body.active_admin .flash.flash_info .prism-flash-progress,body.active_admin .flash:not(.flash_notice):not(.flash_success):not(.flash_error):not(.flash_alert):not(.flash_warning) .prism-flash-progress{background:#3b82f6}.prism-flash-icon{flex:0 0 auto;margin-top:1px}.prism-flash-message{flex:1 1 auto;padding-top:1px}.prism-flash-dismiss{position:absolute;top:10px;right:10px;flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;padding:0;border:none;border-radius:6px;background:transparent !important;color:#6b7280 !important;opacity:0.8;cursor:pointer;transition:opacity 120ms ease,background 120ms ease}.prism-flash-dismiss:hover{opacity:1;background:#f4f5f7 !important}.prism-flash-progress{position:absolute;left:0;right:0;bottom:0;height:3px;transform-origin:left center;animation:prism-flash-countdown var(--prism-flash-duration, 5000ms) linear forwards}body.active_admin .flash:hover .prism-flash-progress{animation-play-state:paused}@keyframes prism-flash-countdown{from{transform:scaleX(1)}to{transform:scaleX(0)}}.prism-flash-dismiss-icon{display:block;margin:0}.ui-widget-overlay{background:rgba(15,18,26,0.45)}.ui-dialog{background:#fff;border:1px solid #e6e8ec;border-radius:10px;box-shadow:0 4px 6px rgba(16,24,40,0.05),0 10px 24px rgba(16,24,40,0.08);padding:0;overflow:hidden;outline:none}.ui-dialog:focus{outline:none}.ui-dialog .ui-dialog-titlebar{background:#fff;border:none;border-bottom:1px solid #e6e8ec;box-shadow:none;text-shadow:none;color:#1a1f36;font-weight:700;padding:16px 20px}.ui-dialog .ui-dialog-titlebar span{color:inherit}.ui-dialog form{padding:0}.ui-dialog ul{margin:0;padding:0}.ui-dialog ul li{padding:10px 20px;margin:0}.ui-dialog label{color:#384250;font-weight:600}.ui-dialog .ui-dialog-buttonpane{background:#f4f5f7;padding:12px 20px;display:flex;justify-content:flex-end;gap:8px}.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset{display:flex;gap:8px}.ui-dialog .ui-dialog-buttonpane button,.ui-dialog .ui-dialog-buttonset button{margin:0}.ui-dialog .ui-dialog-buttonpane button:first-child,.ui-dialog .ui-dialog-buttonset button:first-child{background:#6d5bd0 !important;background-image:none !important;border:1px solid #6d5bd0;border-radius:6px;color:#fff !important;text-shadow:none;box-shadow:none;font-weight:600;padding:9px 16px;transition:background 120ms ease,border-color 120ms ease}.ui-dialog .ui-dialog-buttonpane button:first-child:hover,.ui-dialog .ui-dialog-buttonset button:first-child:hover{background:#5949b8 !important;border-color:#5949b8;color:#fff !important}.ui-dialog .ui-dialog-buttonpane button:first-child:active,.ui-dialog .ui-dialog-buttonset button:first-child:active{background:#5949b8 !important;box-shadow:none}.ui-dialog .ui-dialog-buttonpane button:last-child,.ui-dialog .ui-dialog-buttonset button:last-child{background:#fff !important;background-image:none !important;border:1px solid #d6d9e0;border-radius:6px;color:#384250 !important;text-shadow:none;box-shadow:none;font-weight:600;padding:8px 15px;transition:background 120ms ease,border-color 120ms ease}.ui-dialog .ui-dialog-buttonpane button:last-child:hover,.ui-dialog .ui-dialog-buttonset button:last-child:hover{background:#f4f5f7 !important;border-color:#6b7280;color:#1a1f36 !important}.ui-dialog .ui-dialog-buttonpane button:last-child:active,.ui-dialog .ui-dialog-buttonset button:last-child:active{background:#f4f5f7 !important;box-shadow:none}.breadcrumb{font-size:0.85em;font-weight:600;letter-spacing:0.02em;text-transform:uppercase;color:#6b7280;margin-bottom:6px}.breadcrumb a,.breadcrumb a:link,.breadcrumb a:visited,.breadcrumb a:active{color:#6b7280;text-decoration:none}.breadcrumb a:hover,.breadcrumb a:link:hover,.breadcrumb a:visited:hover,.breadcrumb a:active:hover{color:#6d5bd0;text-decoration:none}.breadcrumb .breadcrumb_sep{color:#d6d9e0}body:not(.logged_out) #wrapper,body.index:not(.logged_out) #wrapper{display:grid;grid-template-columns:264px 1fr;grid-template-rows:auto auto auto 1fr auto;min-height:100vh;width:100%;transition:grid-template-columns 280ms cubic-bezier(0.4, 0, 0.2, 1)}@media (min-width: 901px){body.prism-sidebar-collapsed:not(.logged_out) #wrapper,body.prism-sidebar-collapsed.index:not(.logged_out) #wrapper{grid-template-columns:76px 1fr}}#header.prism-sidebar{grid-column:1;grid-row:1 / -1;display:flex;background:#fff !important;background-image:none !important;border-right:1px solid #e6e8ec;padding:0;height:auto;width:264px;position:sticky;top:0;align-self:stretch;max-height:100vh;overflow:hidden;z-index:100;transition:width 280ms cubic-bezier(0.4, 0, 0.2, 1);text-shadow:none !important;box-shadow:none !important;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility}#title_bar{grid-column:2;grid-row:2}.flashes{grid-column:2;grid-row:3;align-self:start}#active_admin_content{grid-column:2;grid-row:4;min-width:0;padding:10px}body:not(.prism-sidebar-footer-disabled) #footer{display:none}#header.prism-sidebar .prism-sidebar-inner{display:flex;flex-direction:column;width:100%;height:100%;max-height:100vh}#header.prism-sidebar .prism-sidebar-brand{flex:0 0 auto;display:flex;align-items:center;gap:12px;padding:20px 24px;border-bottom:1px solid #e6e8ec}#header.prism-sidebar .prism-sidebar-brand #site_title{margin:0;padding:0;font-size:1.15em;font-weight:700;color:#1a1f36;overflow:hidden;white-space:nowrap}#header.prism-sidebar .prism-sidebar-brand #site_title a{color:inherit;text-decoration:none}#header.prism-sidebar .prism-sidebar-collapse-toggle{flex:0 0 auto;display:flex;align-items:center;justify-content:center;width:32px;height:32px;margin:-6px 0;border-radius:6px;color:#6b7280;cursor:pointer;user-select:none;transition:background 120ms ease,color 120ms ease}#header.prism-sidebar .prism-sidebar-collapse-toggle:hover{background:#f4f5f7;color:#1a1f36}#header.prism-sidebar .prism-sidebar-collapse-icon{flex:0 0 auto}#header.prism-sidebar .prism-sidebar-lang{position:relative;flex:0 0 auto;padding:10px 12px;border-bottom:1px solid #e6e8ec}#header.prism-sidebar .prism-sidebar-lang.open .prism-chevron{transform:rotate(180deg)}#header.prism-sidebar .prism-sidebar-lang.open .prism-lang-menu{display:block}#header.prism-sidebar .prism-lang-toggle{display:flex;align-items:center;gap:8px;width:100%;padding:8px 10px;border-radius:6px;color:#384250;font-size:0.85em;font-weight:600;cursor:pointer;user-select:none;transition:background 120ms ease}#header.prism-sidebar .prism-lang-toggle:hover{background:#f4f5f7}#header.prism-sidebar .prism-lang-toggle .prism-nav-icon{flex:0 0 auto;color:#6b7280}#header.prism-sidebar .prism-lang-toggle .prism-chevron{flex:0 0 auto;margin-left:auto;transition:transform 120ms ease}#header.prism-sidebar .prism-lang-current{flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#header.prism-sidebar .prism-lang-menu{display:none;list-style:none;margin:4px 0 0;padding:4px;position:absolute;left:12px;right:12px;z-index:50;background:#fff;border:1px solid #e6e8ec;border-radius:6px;box-shadow:0 4px 6px rgba(16,24,40,0.05),0 10px 24px rgba(16,24,40,0.08)}#header.prism-sidebar .prism-lang-menu li{margin:0}#header.prism-sidebar .prism-lang-option{display:block;padding:8px 10px;border-radius:6px;color:#384250;font-size:0.85em;font-weight:600;text-decoration:none}#header.prism-sidebar .prism-lang-option:hover{background:#f4f5f7}#header.prism-sidebar .prism-lang-option.active{background:#f2ecfd;color:#5949b8}#header.prism-sidebar .prism-sidebar-search{position:relative;flex:0 0 auto;display:flex;align-items:center;gap:8px;margin:12px 12px 4px;padding:8px 10px;border:1px solid #e6e8ec;border-radius:6px;background:#f4f5f7}#header.prism-sidebar .prism-sidebar-search:focus-within{border-color:#6d5bd0}#header.prism-sidebar .prism-sidebar-search .prism-search-icon{flex:0 0 auto;color:#6b7280}#header.prism-sidebar .prism-nav-search-input{flex:1 1 auto;min-width:0;border:0;background:transparent;color:#384250;font-size:0.85em}#header.prism-sidebar .prism-nav-search-input:focus{outline:none}#header.prism-sidebar .prism-nav-search-input::placeholder{color:#6b7280}#header.prism-sidebar .prism-nav-search-input::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none}#header.prism-sidebar .prism-nav-search-clear{display:none;flex:0 0 auto;align-items:center;justify-content:center;color:#6b7280;cursor:pointer}#header.prism-sidebar .prism-nav-search-clear.prism-nav-search-clear-visible{display:flex}#header.prism-sidebar .prism-nav-search-clear:hover{color:#1a1f36}#header.prism-sidebar .prism-nav-search-clear .prism-nav-icon{width:14px;height:14px}#header.prism-sidebar .prism-sidebar-scroll{flex:1 1 auto;overflow-y:auto;padding:20px 12px}#header.prism-sidebar .prism-nav-empty{display:none;padding:8px 12px;color:#6b7280;font-size:0.85em}#header.prism-sidebar .prism-nav-empty.prism-nav-empty-visible{display:block}#header.prism-sidebar .prism-sidebar-utility{flex:0 0 auto;padding:12px;border-top:1px solid #e6e8ec}#header.prism-sidebar .prism-sidebar-utility ul.prism-nav-utility{background:#f4f5f7;border-radius:10px;padding:4px}#header.prism-sidebar .prism-sidebar-utility .prism-nav-item{margin:0}#header.prism-sidebar .prism-sidebar-utility #prism_nav_current_user>.prism-nav-link{padding:10px 10px 6px;font-weight:600;color:#1a1f36;font-size:0.88em}#header.prism-sidebar .prism-sidebar-utility #prism_nav_current_user>.prism-nav-link:hover{background:transparent}#header.prism-sidebar .prism-sidebar-utility #prism_nav_current_user>.prism-nav-link .prism-nav-label{white-space:normal;word-break:break-word}#header.prism-sidebar .prism-sidebar-utility #prism_nav_logout>.prism-nav-link{padding:6px 10px 8px;font-size:0.85em;color:#6b7280}#header.prism-sidebar .prism-sidebar-utility #prism_nav_logout>.prism-nav-link:hover{color:#ef4444;background:transparent}#header.prism-sidebar .prism-sidebar-footer{flex:0 0 auto;padding:10px 16px;border-top:1px solid #e6e8ec;color:#6b7280;font-size:0.72em;line-height:1.4;text-align:center}#header.prism-sidebar .prism-sidebar-footer a{color:#6b7280;text-decoration:underline}#header.prism-sidebar .prism-sidebar-footer a:hover{color:#6d5bd0}#header.prism-sidebar .prism-nav-section-label{padding:0 12px 8px;font-size:0.72em;font-weight:700;letter-spacing:0.08em;text-transform:uppercase;color:#6b7280}#header.prism-sidebar ul.prism-nav{list-style:none;margin:0;padding:0}#header.prism-sidebar .prism-nav-item{margin:2px 0}#header.prism-sidebar .prism-nav-item>.prism-nav-link,#header.prism-sidebar .prism-nav-item>.prism-nav-group-toggle{display:flex;align-items:center;gap:10px;padding:9px 12px;border-radius:6px;color:#1a1f36;font-size:0.92em;font-weight:600;text-decoration:none;cursor:pointer;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;transition:background 120ms ease,color 120ms ease}#header.prism-sidebar .prism-nav-item>.prism-nav-link:hover,#header.prism-sidebar .prism-nav-item>.prism-nav-group-toggle:hover{background:#f4f5f7;color:#1a1f36}#header.prism-sidebar .prism-nav-item.active>.prism-nav-link,#header.prism-sidebar .prism-nav-item.active>.prism-nav-group-toggle{background:#f2ecfd;color:#5949b8;font-weight:700}#header.prism-sidebar .prism-nav-item .prism-nav-icon{flex:0 0 auto;color:inherit}#header.prism-sidebar .prism-nav-item .prism-nav-label{flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#header.prism-sidebar .prism-nav-item .prism-chevron{flex:0 0 auto;transition:transform 120ms ease}#header.prism-sidebar .prism-nav-item.open>.prism-nav-group-toggle .prism-chevron,#header.prism-sidebar .prism-nav-item.prism-search-open>.prism-nav-group-toggle .prism-chevron{transform:rotate(180deg)}#header.prism-sidebar .prism-nav-item .prism-nav-submenu{list-style:none;margin:2px 0 2px 30px;padding:0;display:none}#header.prism-sidebar .prism-nav-item.open>.prism-nav-submenu,#header.prism-sidebar .prism-nav-item.prism-search-open>.prism-nav-submenu{display:block}#header.prism-sidebar .prism-nav-item.has-children>.prism-nav-submenu .prism-nav-item>.prism-nav-link{font-size:0.88em}#header.prism-sidebar .prism-nav-item.prism-nav-hidden{display:none}#header.prism-sidebar .prism-nav-utility .prism-nav-item>.prism-nav-link,#header.prism-sidebar .prism-nav-utility .prism-nav-item>.prism-nav-group-toggle{color:#6b7280}#header.prism-sidebar .nav-badge{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;margin-left:auto;border-radius:999px;background:#6d5bd0;color:#fff;font-size:0.72em;font-weight:700;line-height:20px}@media (min-width: 901px){body.prism-sidebar-collapsed #header.prism-sidebar{width:76px}body.prism-sidebar-collapsed #header.prism-sidebar .prism-sidebar-brand{padding:20px 0;justify-content:center}body.prism-sidebar-collapsed #header.prism-sidebar .prism-sidebar-brand #site_title,body.prism-sidebar-collapsed #header.prism-sidebar .prism-sidebar-lang,body.prism-sidebar-collapsed #header.prism-sidebar .prism-sidebar-search,body.prism-sidebar-collapsed #header.prism-sidebar .prism-nav-section-label,body.prism-sidebar-collapsed #header.prism-sidebar .prism-nav-label,body.prism-sidebar-collapsed #header.prism-sidebar .prism-lang-current,body.prism-sidebar-collapsed #header.prism-sidebar .prism-sidebar-lang .prism-chevron,body.prism-sidebar-collapsed #header.prism-sidebar .prism-nav-item .prism-chevron,body.prism-sidebar-collapsed #header.prism-sidebar .prism-sidebar-footer{display:none}body.prism-sidebar-collapsed #header.prism-sidebar .prism-nav-submenu{display:none !important}body.prism-sidebar-collapsed #header.prism-sidebar .prism-sidebar-scroll{padding:20px 8px}body.prism-sidebar-collapsed #header.prism-sidebar .prism-nav-item>.prism-nav-link,body.prism-sidebar-collapsed #header.prism-sidebar .prism-nav-item>.prism-nav-group-toggle{justify-content:center;padding:9px}body.prism-sidebar-collapsed #header.prism-sidebar .prism-nav-item>.prism-nav-link:not(:has(.prism-nav-icon))::after,body.prism-sidebar-collapsed #header.prism-sidebar .prism-nav-item>.prism-nav-group-toggle:not(:has(.prism-nav-icon))::after{content:"";width:6px;height:6px;border-radius:50%;background:currentColor;opacity:0.6}body.prism-sidebar-collapsed #header.prism-sidebar .prism-sidebar-utility{padding-left:8px;padding-right:8px}}.prism-sidebar-mobile-toggle{display:none}@media (max-width: 900px){.prism-sidebar-mobile-toggle{display:flex;align-items:center;justify-content:center;position:fixed;top:14px;left:14px;width:38px;height:38px;border-radius:6px;background:#fff;color:#384250;box-shadow:0 1px 2px rgba(16,24,40,0.04), 0 1px 6px rgba(16,24,40,0.04);cursor:pointer;z-index:200}#wrapper,.index #wrapper{grid-template-columns:1fr}#header.prism-sidebar{position:fixed;left:-264px;top:0;bottom:0;transition:left 120ms ease;box-shadow:0 4px 6px rgba(16,24,40,0.05), 0 10px 24px rgba(16,24,40,0.08)}#title_bar,.flashes,#active_admin_content,#footer{grid-column:1}body.prism-sidebar-open #header.prism-sidebar{left:0}}.panel{background:#fff;border:1px solid #e6e8ec;border-radius:10px;box-shadow:0 1px 2px rgba(16,24,40,0.04),0 1px 6px rgba(16,24,40,0.04);margin-bottom:20px;overflow:hidden}.panel>h3{margin:0;padding:16px 20px;background:transparent;border-bottom:1px solid #e6e8ec;color:#1a1f36;font-size:1em;font-weight:600}.panel .panel_contents{padding:20px}.panel .header_action{float:right}.columns{display:flex;flex-wrap:wrap;gap:20px;margin:0}.columns .column{flex:1 1 260px;min-width:0}#sidebar{box-sizing:border-box;overflow-x:hidden}#sidebar .panel{box-sizing:border-box}#active_admin_content #main_content_wrapper #main_content,#active_admin_content #sidebar{transition:margin-right 280ms cubic-bezier(0.4, 0, 0.2, 1),width 280ms cubic-bezier(0.4, 0, 0.2, 1),margin-left 280ms cubic-bezier(0.4, 0, 0.2, 1)}body:has(.prism-collapsible-panel):not(:has(.prism-collapsible-panel.open)) #active_admin_content:not(.without_sidebar) #main_content_wrapper #main_content{margin-right:72px}body:has(.prism-collapsible-panel):not(:has(.prism-collapsible-panel.open)) #active_admin_content #sidebar{width:72px;margin-left:-72px}.prism-collapsible-panel{background:transparent;border-color:transparent;box-shadow:none;margin-bottom:10px;transition:background 120ms ease,border-color 120ms ease,box-shadow 120ms ease,margin 120ms ease}.prism-collapsible-panel>h3{display:flex;align-items:center;gap:8px;width:40px;height:40px;margin:0 0 0 auto;padding:0;justify-content:center;border:1px solid #e6e8ec;border-radius:6px;background:#fff;box-shadow:0 1px 2px rgba(16,24,40,0.04),0 1px 6px rgba(16,24,40,0.04);color:#1a1f36;cursor:pointer;user-select:none;overflow:hidden;transition:width 120ms ease,padding 120ms ease,justify-content 120ms ease,background 120ms ease,border-color 120ms ease}.prism-collapsible-panel>h3:hover{background:#f2ecfd;color:#5949b8}.prism-collapsible-panel .prism-filter-icon{flex:0 0 auto;order:-1}.prism-collapsible-panel .prism-filter-label{max-width:0;overflow:hidden;opacity:0;white-space:nowrap;transition:max-width 200ms ease, opacity 150ms ease}.prism-collapsible-panel .panel_contents{overflow:hidden;max-height:0;opacity:0;padding-top:0;padding-bottom:0;transition:max-height 280ms cubic-bezier(0.4, 0, 0.2, 1),opacity 200ms ease,padding 200ms ease}.prism-collapsible-panel.open{overflow:visible;background:#fff;border-color:#e6e8ec;box-shadow:0 1px 2px rgba(16,24,40,0.04),0 1px 6px rgba(16,24,40,0.04);margin-bottom:20px}.prism-collapsible-panel.open>h3{width:100%;height:auto;margin:0;justify-content:flex-start;padding:16px 20px;border:none;border-bottom:1px solid #e6e8ec;background:transparent;box-shadow:none;color:#1a1f36;border-radius:0}.prism-collapsible-panel.open>h3:hover{background:transparent;color:#1a1f36}.prism-collapsible-panel.open .prism-filter-label{max-width:200px;opacity:1}.prism-collapsible-panel.open .panel_contents{overflow:visible;max-height:1200px;opacity:1;padding-top:20px;padding-bottom:20px}body.prism-filters-collapsible-disabled .prism-collapsible-panel{overflow:visible;background:#fff;border-color:#e6e8ec;box-shadow:0 1px 2px rgba(16,24,40,0.04),0 1px 6px rgba(16,24,40,0.04);margin-bottom:20px}body.prism-filters-collapsible-disabled .prism-collapsible-panel>h3{width:100%;height:auto;margin:0;justify-content:flex-start;padding:16px 20px;border:none;border-bottom:1px solid #e6e8ec;box-shadow:none;cursor:default}body.prism-filters-collapsible-disabled .prism-collapsible-panel .panel_contents{max-height:none;opacity:1;overflow:visible;padding:20px}.table_tools{display:flex;flex-wrap:wrap;align-items:center;row-gap:12px}.table_tools_actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.prism-active-filters-bar{display:inline-flex;max-width:100%;margin-left:auto;padding:8px 14px;background:#f2ecfd;border:1px solid rgba(109,91,208,0.3);border-left:3px solid #6d5bd0;border-radius:10px;font-size:0.85em;cursor:pointer;transition:box-shadow 120ms ease}.prism-active-filters-bar:hover,.prism-active-filters-bar:focus-visible{box-shadow:0 0 0 3px rgba(109,91,208,0.15)}.prism-active-filters-bar:focus-visible{outline:none}.prism-active-filters-bar .active_filters_sidebar_content{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px}.prism-active-filters-bar>.active_filters_sidebar_content>h4{margin:0;font-size:1em;font-weight:700;text-transform:uppercase;letter-spacing:0.04em;color:#5949b8}.prism-active-filters-bar .current_scope_name{color:#5949b8;font-weight:700}.prism-active-filters-bar>.active_filters_sidebar_content>div{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;margin-top:0 !important}.prism-active-filters-bar>.active_filters_sidebar_content>div>h4{margin:0 !important;font-size:1em;font-weight:700;text-transform:uppercase;letter-spacing:0.04em;color:#5949b8}.prism-active-filters-bar>.active_filters_sidebar_content>div>ul{display:flex;flex-wrap:wrap;gap:6px;margin:0;padding:0;list-style:none}.prism-active-filters-bar>.active_filters_sidebar_content>div>ul li{display:inline-flex;align-items:center;gap:4px;padding:4px 10px;border-radius:999px;background:#fff;box-shadow:0 1px 2px rgba(16,24,40,0.06);line-height:1.4}.prism-active-filters-bar>.active_filters_sidebar_content>div>ul li span{color:#6b7280}.prism-active-filters-bar>.active_filters_sidebar_content>div>ul li b{font-weight:700;color:#5949b8}.blank_slate_container .blank_slate{background:#fff;border:1px dashed #d6d9e0;border-radius:10px;color:#6b7280;font-weight:600;box-shadow:none}.comments .active_admin_comment_meta{color:#6b7280}.comments .active_admin_comment_meta .active_admin_comment_author{color:#1a1f36}.index_content{position:relative;overflow-x:auto;scrollbar-width:auto;scrollbar-color:#6d5bd0 rgba(109,91,208,0.12)}.index_content::-webkit-scrollbar{height:12px}.index_content::-webkit-scrollbar-track{background:rgba(109,91,208,0.12);border-radius:999px}.index_content::-webkit-scrollbar-thumb{background:#6d5bd0;border-radius:999px;border:2px solid #fff}.index_content::-webkit-scrollbar-thumb:hover{background:#5949b8}.index_content::before,.index_content::after{position:absolute;top:0;bottom:0;width:56px;line-height:44px;pointer-events:none;opacity:0;transition:opacity 120ms ease;z-index:2;font-size:26px;font-weight:700;color:#5949b8;filter:drop-shadow(0 1px 1px rgba(255,255,255,0.9))}.index_content::before{content:"‹";left:0;text-align:left;padding-left:4px;background:linear-gradient(to right, rgba(109,91,208,0.22), transparent);animation:prism-scroll-hint-left 1.4s ease-in-out infinite}.index_content::after{content:"›";right:0;text-align:right;padding-right:4px;background:linear-gradient(to left, rgba(109,91,208,0.22), transparent);animation:prism-scroll-hint-right 1.4s ease-in-out infinite}.index_content.prism-scroll-left::before,.index_content.prism-scroll-right::after{opacity:1;pointer-events:auto;cursor:pointer}@keyframes prism-scroll-hint-left{0%,100%{transform:translateX(0)}50%{transform:translateX(-6px)}}@keyframes prism-scroll-hint-right{0%,100%{transform:translateX(0)}50%{transform:translateX(6px)}}table.index_table{background:#fff;border:1px solid #e6e8ec;border-radius:10px;border-spacing:0;border-collapse:separate;overflow:hidden}table.index_table th,table.index_table td{padding:12px 16px}table.index_table th{background:#f4f5f7;color:#6b7280;font-size:0.78em;font-weight:700;letter-spacing:0.04em;text-transform:uppercase;border:none;border-bottom:1px solid #e6e8ec;white-space:nowrap}table.index_table th a{white-space:nowrap}table.index_table th:last-child{border-right:none}table.index_table th.sorted-asc,table.index_table th.sorted-desc{background:#f4f5f7}table.index_table td{border-bottom:1px solid #e6e8ec;color:#384250}table.index_table tr:last-child td{border-bottom:none}table.index_table tr.even td{background:transparent}table.index_table tr.selected td{background:#f2ecfd}table.index_table tbody tr:hover td{background:#f4f5f7}table.index_table td.col-actions{white-space:nowrap}.table_actions{display:flex;align-items:center;flex-wrap:wrap;gap:4px;row-gap:6px}.table_actions a{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:6px;transition:background 120ms ease,color 120ms ease}.table_actions a.view_link{color:#3b82f6}.table_actions a.view_link:hover{background:rgba(59,130,246,0.12);color:#0b63f3}.table_actions a.edit_link{color:#6d5bd0}.table_actions a.edit_link:hover{background:#f2ecfd;color:#5949b8}.table_actions a.delete_link{color:#ef4444}.table_actions a.delete_link:hover{background:#fdecec;color:#eb1515}.table_actions .prism-action-icon{margin:0}.status_tag{border-radius:999px;background:#d6d9e0;color:#1a1f36;text-transform:none;letter-spacing:0;font-weight:600;padding:3px 10px}.status_tag.yes{background:#e8f9ee;color:#17843f}.status_tag.no{background:#fdecec;color:#ed2d2d}form fieldset.inputs{background:#fff;border:1px solid #e6e8ec;border-radius:10px;padding:20px}form fieldset legend span{color:#1a1f36;font-weight:700;font-size:1.05em;text-transform:none;letter-spacing:normal}form fieldset ol>li label{color:#384250;font-weight:600;font-size:0.9em}form fieldset>ol>li{overflow:hidden}form fieldset.nested_fields>li label{display:block;float:left;width:20%}form input[type="text"],form input[type="password"],form input[type="email"],form input[type="number"],form input[type="url"],form input[type="tel"],form input[type="date"],form input[type="time"],form input[type="search"],form select,form textarea{border:1px solid #d6d9e0;border-radius:6px;color:#1a1f36;padding:9px 12px;box-shadow:none;transition:border-color 120ms ease,box-shadow 120ms ease}form input[type="text"]:focus,form input[type="password"]:focus,form input[type="email"]:focus,form input[type="number"]:focus,form input[type="url"]:focus,form input[type="tel"]:focus,form input[type="date"]:focus,form input[type="time"]:focus,form input[type="search"]:focus,form select:focus,form textarea:focus{border-color:#6d5bd0;box-shadow:0 0 0 3px rgba(109,91,208,0.15)}form fieldset>ol>li.error input[type="text"],form fieldset>ol>li.error input[type="password"],form fieldset>ol>li.error input[type="email"],form fieldset>ol>li.error input[type="number"],form fieldset>ol>li.error input[type="url"],form fieldset>ol>li.error input[type="tel"],form fieldset>ol>li.error textarea,form fieldset>ol>li.error select{border-color:#ef4444}form fieldset>ol>li.error input[type="text"]:focus,form fieldset>ol>li.error input[type="password"]:focus,form fieldset>ol>li.error input[type="email"]:focus,form fieldset>ol>li.error input[type="number"]:focus,form fieldset>ol>li.error input[type="url"]:focus,form fieldset>ol>li.error input[type="tel"]:focus,form fieldset>ol>li.error textarea:focus,form fieldset>ol>li.error select:focus{box-shadow:0 0 0 3px rgba(239,68,68,0.15)}form fieldset>ol>li p.inline-errors{color:#ef4444;font-weight:600}form ul.errors{background:#fdecec;color:#ef4444;border-radius:6px}form input[type="checkbox"],form input[type="radio"]{appearance:none;position:relative;width:18px;height:18px;margin:0 8px 0 0;border:1px solid #d6d9e0;background:#fff;vertical-align:middle;cursor:pointer;flex:0 0 auto}form input[type="checkbox"]:checked,form input[type="radio"]:checked{background:#6d5bd0;border-color:#6d5bd0}form input[type="checkbox"]:checked::after,form input[type="radio"]:checked::after{content:"";position:absolute;left:5px;top:1px;width:5px;height:10px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}form input[type="checkbox"]:focus-visible,form input[type="radio"]:focus-visible{box-shadow:0 0 0 3px rgba(109,91,208,0.2)}form input[type="checkbox"]{border-radius:5px}form input[type="radio"]{border-radius:50%}form input[type="radio"]:checked::after{left:5px;top:5px;width:6px;height:6px;border:none;border-radius:50%;background:#fff;transform:none}form fieldset>ol>li.boolean label{display:flex;align-items:center}form label.prism-toggle{display:flex;align-items:center;gap:10px}form label.prism-toggle input.prism-toggle-input{appearance:none;position:relative;width:0;height:0;margin:0;border:none}form label.prism-toggle input.prism-toggle-input:checked~.prism-toggle-track{background:#6d5bd0}form label.prism-toggle input.prism-toggle-input:checked~.prism-toggle-track::after{transform:translateX(16px)}form .buttons>ol,form .actions>ol{display:flex;flex-wrap:wrap;align-items:center;gap:10px}form .buttons li,form .actions li{padding:0}.prism-toggle-track{position:relative;display:inline-block;width:38px;height:22px;border-radius:999px;background:#d6d9e0;transition:background 120ms ease;flex:0 0 auto}.prism-toggle-track::after{content:"";position:absolute;top:2px;left:2px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,0.25);transition:transform 120ms ease}.prism-toggle-tag{display:inline-flex;align-items:center;vertical-align:middle}.prism-toggle-tag.on .prism-toggle-track{background:#6d5bd0}.prism-toggle-tag.on .prism-toggle-track::after{transform:translateX(16px)}.sidebar_section label{color:#6b7280;font-size:0.72em;font-weight:700;letter-spacing:0.06em}.sidebar_section select,.sidebar_section input[type="text"],.sidebar_section input[type="number"]{box-sizing:border-box;width:100%;max-width:100%}form.filter_form .filter_form_field{margin-bottom:14px}form.filter_form .filter_form_field.select_and_search{display:flex;flex-wrap:wrap;gap:8px}form.filter_form .filter_form_field.select_and_search select,form.filter_form .filter_form_field.select_and_search input[type="text"]{width:auto;min-width:110px;flex:1 1 0;margin-left:0}form.filter_form .filter_form_field.filter_date_range{display:flex;flex-wrap:wrap;gap:8px}form.filter_form .filter_form_field.filter_date_range input[type="text"]{width:auto;min-width:110px;flex:1 1 0}form.filter_form .filter_form_field.filter_date_range input[type="text"]+input{margin-left:0}.select2-container{box-sizing:border-box;display:inline-block;margin:0;position:relative;vertical-align:middle}.select2-container .select2-selection--single{box-sizing:border-box;cursor:pointer;display:block;height:28px;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--single .select2-selection__rendered{display:block;padding-left:8px;padding-right:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-selection--single .select2-selection__clear{background-color:transparent;border:none;font-size:1em}.select2-container[dir=rtl] .select2-selection--single .select2-selection__rendered{padding-right:8px;padding-left:20px}.select2-container .select2-selection--multiple{box-sizing:border-box;cursor:pointer;display:block;min-height:32px;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--multiple .select2-selection__rendered{display:inline;list-style:none;padding:0}.select2-container .select2-selection--multiple .select2-selection__clear{background-color:transparent;border:none;font-size:1em}.select2-container .select2-search--inline .select2-search__field{box-sizing:border-box;border:none;font-size:100%;margin-top:5px;margin-left:5px;padding:0;max-width:100%;resize:none;height:20px;vertical-align:bottom;font-family:sans-serif;overflow:hidden;word-break:keep-all}.select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-container .select2-search--inline .select2-search__field::placeholder{line-height:normal}.select2-dropdown{background-color:white;border:1px solid #aaa;border-radius:4px;box-sizing:border-box;display:block;position:absolute;left:-100000px;width:100%;z-index:1051}.select2-results{display:block}.select2-results__options{list-style:none;margin:0;padding:0}.select2-results__option{padding:6px;user-select:none;-webkit-user-select:none}.select2-results__option--selectable{cursor:pointer}.select2-container--open .select2-dropdown{left:0}.select2-container--open .select2-dropdown--above{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--open .select2-dropdown--below{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-search--dropdown{display:block;padding:4px}.select2-search--dropdown .select2-search__field{padding:4px;width:100%;box-sizing:border-box}.select2-search--dropdown .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-search--dropdown.select2-search--hide{display:none}.select2-close-mask{border:0;margin:0;padding:0;display:block;position:fixed;left:0;top:0;min-height:100%;min-width:100%;height:auto;width:auto;opacity:0;z-index:99;background-color:#fff;filter:alpha(opacity=0)}.select2-hidden-accessible{border:0 !important;clip:rect(0 0 0 0) !important;-webkit-clip-path:inset(50%) !important;clip-path:inset(50%) !important;height:1px !important;overflow:hidden !important;padding:0 !important;position:absolute !important;width:1px !important;white-space:nowrap !important}.select2-container--default .select2-selection--single{background-color:#fff;border:1px solid #aaa;border-radius:4px}.select2-container--default .select2-selection--single .select2-selection__rendered{color:#444;line-height:28px}.select2-container--default .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:bold;height:26px;margin-right:20px;padding-right:0px}.select2-container--default .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--default .select2-selection--single .select2-selection__arrow{height:26px;position:absolute;top:1px;right:1px;width:20px}.select2-container--default .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--default[dir=rtl] .select2-selection--single .select2-selection__clear{float:left}.select2-container--default[dir=rtl] .select2-selection--single .select2-selection__arrow{left:1px;right:auto}.select2-container--default.select2-container--disabled .select2-selection--single{background-color:#eee;cursor:default}.select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__clear{display:none}.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.select2-container--default .select2-selection--multiple{background-color:white;border:1px solid #aaa;border-radius:4px;cursor:text;padding-bottom:5px;padding-right:5px;position:relative}.select2-container--default .select2-selection--multiple.select2-selection--clearable{padding-right:25px}.select2-container--default .select2-selection--multiple .select2-selection__clear{cursor:pointer;font-weight:bold;height:20px;margin-right:10px;margin-top:5px;position:absolute;right:0;padding:1px}.select2-container--default .select2-selection--multiple .select2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;box-sizing:border-box;display:inline-block;margin-left:5px;margin-top:5px;padding:0;padding-left:20px;position:relative;max-width:100%;overflow:hidden;text-overflow:ellipsis;vertical-align:bottom;white-space:nowrap}.select2-container--default .select2-selection--multiple .select2-selection__choice__display{cursor:default;padding-left:2px;padding-right:5px}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove{background-color:transparent;border:none;border-right:1px solid #aaa;border-top-left-radius:4px;border-bottom-left-radius:4px;color:#999;cursor:pointer;font-size:1em;font-weight:bold;padding:0 4px;position:absolute;left:0;top:0}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover,.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:focus{background-color:#f1f1f1;color:#333;outline:none}.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__choice{padding:0 20px 0 0;margin-left:5px;margin-right:auto}.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__choice__display{padding-left:5px;padding-right:2px}.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__choice__remove{left:auto;right:0;border-left:1px solid #aaa;border-right:none;border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:4px;border-bottom-right-radius:4px}.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__clear{float:left;margin-left:10px;margin-right:auto}.select2-container--default.select2-container--focus .select2-selection--multiple{border:solid black 1px;outline:0}.select2-container--default.select2-container--disabled .select2-selection--multiple{background-color:#eee;cursor:default}.select2-container--default.select2-container--disabled .select2-selection__choice__remove{display:none}.select2-container--default.select2-container--open.select2-container--above .select2-selection--single,.select2-container--default.select2-container--open.select2-container--above .select2-selection--multiple{border-top-left-radius:0;border-top-right-radius:0}.select2-container--default.select2-container--open.select2-container--below .select2-selection--single,.select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple{border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--default .select2-search--dropdown .select2-search__field{border:1px solid #aaa}.select2-container--default .select2-search--inline .select2-search__field{background:transparent;border:none;outline:0;box-shadow:none;-webkit-appearance:textfield}.select2-container--default .select2-results>.select2-results__options{max-height:200px;overflow-y:auto}.select2-container--default .select2-results__option .select2-results__option{padding-left:1em}.select2-container--default .select2-results__option .select2-results__option .select2-results__group{padding-left:0}.select2-container--default .select2-results__option .select2-results__option .select2-results__option{margin-left:-1em;padding-left:2em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-2em;padding-left:3em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-3em;padding-left:4em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-4em;padding-left:5em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-5em;padding-left:6em}.select2-container--default .select2-results__option--group{padding:0}.select2-container--default .select2-results__option--disabled{color:#999}.select2-container--default .select2-results__option--selected{background-color:#ddd}.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable{background-color:#5897fb;color:white}.select2-container--default .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic .select2-selection--single{background-color:#f7f7f7;border:1px solid #aaa;border-radius:4px;outline:0;background-image:-webkit-linear-gradient(top, white 50%, #eee 100%);background-image:-o-linear-gradient(top, white 50%, #eee 100%);background-image:linear-gradient(to bottom, white 50%, #eee 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0)}.select2-container--classic .select2-selection--single:focus{border:1px solid #5897fb}.select2-container--classic .select2-selection--single .select2-selection__rendered{color:#444;line-height:28px}.select2-container--classic .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:bold;height:26px;margin-right:20px}.select2-container--classic .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--classic .select2-selection--single .select2-selection__arrow{background-color:#ddd;border:none;border-left:1px solid #aaa;border-top-right-radius:4px;border-bottom-right-radius:4px;height:26px;position:absolute;top:1px;right:1px;width:20px;background-image:-webkit-linear-gradient(top, #eee 50%, #ccc 100%);background-image:-o-linear-gradient(top, #eee 50%, #ccc 100%);background-image:linear-gradient(to bottom, #eee 50%, #ccc 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFCCCCCC', GradientType=0)}.select2-container--classic .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--classic[dir=rtl] .select2-selection--single .select2-selection__clear{float:left}.select2-container--classic[dir=rtl] .select2-selection--single .select2-selection__arrow{border:none;border-right:1px solid #aaa;border-radius:0;border-top-left-radius:4px;border-bottom-left-radius:4px;left:1px;right:auto}.select2-container--classic.select2-container--open .select2-selection--single{border:1px solid #5897fb}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow{background:transparent;border:none}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--single{border-top:none;border-top-left-radius:0;border-top-right-radius:0;background-image:-webkit-linear-gradient(top, white 0%, #eee 50%);background-image:-o-linear-gradient(top, white 0%, #eee 50%);background-image:linear-gradient(to bottom, white 0%, #eee 50%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0)}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--single{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0;background-image:-webkit-linear-gradient(top, #eee 50%, white 100%);background-image:-o-linear-gradient(top, #eee 50%, white 100%);background-image:linear-gradient(to bottom, #eee 50%, white 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFFFFFFF', GradientType=0)}.select2-container--classic .select2-selection--multiple{background-color:white;border:1px solid #aaa;border-radius:4px;cursor:text;outline:0;padding-bottom:5px;padding-right:5px}.select2-container--classic .select2-selection--multiple:focus{border:1px solid #5897fb}.select2-container--classic .select2-selection--multiple .select2-selection__clear{display:none}.select2-container--classic .select2-selection--multiple .select2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;display:inline-block;margin-left:5px;margin-top:5px;padding:0}.select2-container--classic .select2-selection--multiple .select2-selection__choice__display{cursor:default;padding-left:2px;padding-right:5px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove{background-color:transparent;border:none;border-top-left-radius:4px;border-bottom-left-radius:4px;color:#888;cursor:pointer;font-size:1em;font-weight:bold;padding:0 4px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove:hover{color:#555;outline:none}.select2-container--classic[dir=rtl] .select2-selection--multiple .select2-selection__choice{margin-left:5px;margin-right:auto}.select2-container--classic[dir=rtl] .select2-selection--multiple .select2-selection__choice__display{padding-left:5px;padding-right:2px}.select2-container--classic[dir=rtl] .select2-selection--multiple .select2-selection__choice__remove{border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:4px;border-bottom-right-radius:4px}.select2-container--classic.select2-container--open .select2-selection--multiple{border:1px solid #5897fb}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--multiple{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--multiple{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--classic .select2-search--dropdown .select2-search__field{border:1px solid #aaa;outline:0}.select2-container--classic .select2-search--inline .select2-search__field{outline:0;box-shadow:none}.select2-container--classic .select2-dropdown{background-color:white;border:1px solid transparent}.select2-container--classic .select2-dropdown--above{border-bottom:none}.select2-container--classic .select2-dropdown--below{border-top:none}.select2-container--classic .select2-results>.select2-results__options{max-height:200px;overflow-y:auto}.select2-container--classic .select2-results__option--group{padding:0}.select2-container--classic .select2-results__option--disabled{color:grey}.select2-container--classic .select2-results__option--highlighted.select2-results__option--selectable{background-color:#3875d7;color:white}.select2-container--classic .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic.select2-container--open .select2-dropdown{border-color:#5897fb}.select2-container{display:block;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif}.select2-container .select2-selection--single{height:auto;border:1px solid #d6d9e0;border-radius:6px;background:#fff;padding:9px 32px 9px 12px;transition:border-color 120ms ease,box-shadow 120ms ease}.select2-container .select2-selection--single .select2-selection__rendered{padding:0;color:#1a1f36;line-height:1.4}.select2-container .select2-selection--single .select2-selection__placeholder{color:#6b7280}.select2-container .select2-selection--single .select2-selection__arrow{height:100%;top:0;right:8px}.select2-container .select2-selection--single .select2-selection__arrow b{border-color:#6b7280 transparent transparent transparent}.select2-container--open .select2-selection--single{border-color:#6d5bd0;box-shadow:0 0 0 3px rgba(109,91,208,0.15)}.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #6b7280 transparent}.select2-container--disabled .select2-selection--single{background:#f4f5f7;color:#6b7280;cursor:not-allowed}.select2-container .select2-selection__clear{position:static;margin:0 4px 0 0;height:auto;color:#6b7280;font-weight:700}.select2-container .select2-selection__clear:hover{color:#ef4444}.select2-container .select2-selection--multiple{min-height:auto;border:1px solid #d6d9e0;border-radius:6px;background:#fff;padding:6px 8px;cursor:text;transition:border-color 120ms ease,box-shadow 120ms ease}.select2-container .select2-selection--multiple .select2-selection__rendered{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:0}.select2-container .select2-selection--multiple .select2-selection__placeholder{color:#6b7280}.select2-container .select2-selection--multiple .select2-selection__choice{display:flex;align-items:center;gap:4px;position:static;max-width:100%;margin:0;padding:3px 6px 3px 10px;border:none;border-radius:999px;background:#f2ecfd;overflow:hidden}.select2-container .select2-selection--multiple .select2-selection__choice__display{padding:0;color:#5949b8;font-weight:600;font-size:0.85em;overflow:hidden;text-overflow:ellipsis}.select2-container .select2-selection--multiple .select2-selection__choice__remove{position:static;border:none;border-radius:50%;background:transparent;color:#5949b8;font-weight:700;line-height:1;padding:2px}.select2-container .select2-selection--multiple .select2-selection__choice__remove:hover,.select2-container .select2-selection--multiple .select2-selection__choice__remove:focus{background:rgba(89,73,184,0.15);color:#5949b8;outline:none}.select2-container .select2-selection--multiple .select2-selection__clear{position:static;margin:0 0 0 auto;height:auto;color:#6b7280;font-weight:700}.select2-container .select2-selection--multiple .select2-selection__clear:hover{color:#ef4444}.select2-container .select2-selection--multiple .select2-search--inline .select2-search__field{margin:0;padding:3px 2px;min-height:0;height:auto;color:#1a1f36;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif}.select2-container--focus .select2-selection--multiple,.select2-container--open .select2-selection--multiple{border-color:#6d5bd0;box-shadow:0 0 0 3px rgba(109,91,208,0.15)}.select2-container--disabled .select2-selection--multiple{background:#f4f5f7}.select2-container--disabled .select2-selection--multiple .select2-selection__choice{opacity:0.75}.select2-container--disabled .select2-selection--multiple .select2-selection__choice__remove{display:none}.sidebar_section .select2-container,form.filter_form .select2-container{width:100% !important;box-sizing:border-box;max-width:100%}form.filter_form .filter_form_field.select_and_search .select2-container{width:auto !important;min-width:0;flex:1 1 0}form fieldset.inputs li>.select2-container{display:inline-block;width:calc(80% - 22px) !important;vertical-align:middle}form fieldset.inputs li>select:not(.select2-hidden-accessible){display:inline-block;width:calc(80% - 22px);vertical-align:middle}.select2-dropdown{border:1px solid #e6e8ec;border-radius:6px;box-shadow:0 4px 6px rgba(16,24,40,0.05),0 10px 24px rgba(16,24,40,0.08);overflow:hidden}.select2-search--dropdown{padding:8px}.select2-search--dropdown .select2-search__field{border:1px solid #d6d9e0;border-radius:6px;padding:7px 10px;color:#1a1f36}.select2-search--dropdown .select2-search__field:focus{border-color:#6d5bd0;box-shadow:0 0 0 3px rgba(109,91,208,0.15)}.select2-results__options{padding:4px}.select2-results__option{padding:8px 12px;border-radius:6px;color:#384250}.select2-results__option--highlighted{background:#f2ecfd !important;color:#5949b8 !important}.select2-results__option[aria-selected="true"]{background:#f4f5f7;color:#1a1f36;font-weight:600}.prism-action-items-dropdown .select2-selection--single,.prism-sidebar-panel-select-wrapper .select2-selection--single{border-color:rgba(109,91,208,0.4);background:#f2ecfd}.prism-action-items-dropdown .select2-container--open .select2-selection--single,.prism-action-items-dropdown .select2-container--focus .select2-selection--single,.prism-sidebar-panel-select-wrapper .select2-container--open .select2-selection--single,.prism-sidebar-panel-select-wrapper .select2-container--focus .select2-selection--single{border-color:#6d5bd0}.prism-action-items-dropdown .select2-selection__rendered,.prism-sidebar-panel-select-wrapper .select2-selection__rendered{text-align:center;color:#5949b8 !important;font-weight:700 !important}.prism-action-items-dropdown .select2-selection__placeholder,.prism-sidebar-panel-select-wrapper .select2-selection__placeholder{color:#5949b8 !important}.prism-action-items-dropdown .select2-selection__arrow b,.prism-sidebar-panel-select-wrapper .select2-selection__arrow b{border-top-color:#5949b8 !important}.select2-results__message{color:#6b7280;padding:8px 12px}a.button,a.button:link,a.button:visited,input[type="submit"],input[type="button"],button,form input[type="submit"],form input[type="button"],form button{background:#6d5bd0 !important;background-image:none !important;border:1px solid #6d5bd0;border-radius:6px;color:#fff !important;text-shadow:none;box-shadow:none;font-weight:600;padding:9px 16px;transition:background 120ms ease,border-color 120ms ease}a.button:hover,a.button:link:hover,a.button:visited:hover,input[type="submit"]:hover,input[type="button"]:hover,button:hover,form input[type="submit"]:hover,form input[type="button"]:hover,form button:hover{background:#5949b8 !important;border-color:#5949b8;color:#fff !important}a.button:active,a.button:link:active,a.button:visited:active,input[type="submit"]:active,input[type="button"]:active,button:active,form input[type="submit"]:active,form input[type="button"]:active,form button:active{background:#5949b8 !important;box-shadow:none}a.button.danger,input.danger[type="submit"],form input.danger[type="submit"]{background:#ef4444;border-color:#ef4444}a.button.danger:hover,input.danger[type="submit"]:hover,form input.danger[type="submit"]:hover{background:#ec1e1e;border-color:#ec1e1e}#title_bar .action_items span.action_item>a,#title_bar .action_items span.action_item>.dropdown_menu>a{background:#6d5bd0 !important;background-image:none !important;border:1px solid #6d5bd0;border-radius:6px;color:#fff !important;text-shadow:none;box-shadow:none;font-weight:600;padding:9px 16px;transition:background 120ms ease,border-color 120ms ease;padding:9px 16px;margin:0;display:inline-flex;align-items:center;min-height:36px;box-sizing:border-box}#title_bar .action_items span.action_item>a:hover,#title_bar .action_items span.action_item>.dropdown_menu>a:hover{background:#5949b8 !important;border-color:#5949b8;color:#fff !important}#title_bar .action_items span.action_item>a:active,#title_bar .action_items span.action_item>.dropdown_menu>a:active{background:#5949b8 !important;box-shadow:none}#title_bar .action_items span.action_item.prism-action-item-new{margin-left:10px}.prism-titlebar-actions-row{display:inline-flex;align-items:center;gap:10px}.prism-action-items-dropdown{display:inline-block}.prism-action-items-dropdown .select2-container{min-width:220px}.prism-action-items-holding{display:none}#titlebar_right.prism-action-items-pending .action_items .action_item:not(.prism-action-item-new){visibility:hidden}.prism-sidebar-panel-select-wrapper{display:inline-block}.prism-sidebar-panel-select-wrapper .select2-container{min-width:220px}.prism-sidebar-panel-holding{display:none}.dropdown_menu .dropdown_menu_button,form.filter_form a.clear_filters_btn,fieldset.buttons li.cancel a,fieldset.actions li.cancel a,.pagination a,.pagination span.page.current,.pagination_per_page select{background:#fff !important;background-image:none !important;border:1px solid #d6d9e0;border-radius:6px;color:#384250 !important;text-shadow:none;box-shadow:none;font-weight:600;padding:8px 15px;transition:background 120ms ease,border-color 120ms ease}.dropdown_menu .dropdown_menu_button:hover,form.filter_form a.clear_filters_btn:hover,fieldset.buttons li.cancel a:hover,fieldset.actions li.cancel a:hover,.pagination a:hover,.pagination span.page.current:hover,.pagination_per_page select:hover{background:#f4f5f7 !important;border-color:#6b7280;color:#1a1f36 !important}.dropdown_menu .dropdown_menu_button:active,form.filter_form a.clear_filters_btn:active,fieldset.buttons li.cancel a:active,fieldset.actions li.cancel a:active,.pagination a:active,.pagination span.page.current:active,.pagination_per_page select:active{background:#f4f5f7 !important;box-shadow:none}.dropdown_menu .dropdown_menu_button{padding-right:26px !important}.dropdown_menu .dropdown_menu_button::before,.dropdown_menu .dropdown_menu_button::after{border-color:#6b7280 transparent}.dropdown_menu_list_wrapper{border-radius:6px;box-shadow:0 4px 6px rgba(16,24,40,0.05),0 10px 24px rgba(16,24,40,0.08);border:1px solid #e6e8ec;background:#fff;padding:4px}.dropdown_menu_list_wrapper .dropdown_menu_list{background:transparent;border:none;box-shadow:none;border-radius:0}.dropdown_menu_list_wrapper .dropdown_menu_list li{border-bottom:none}.dropdown_menu_list_wrapper .dropdown_menu_list li a{border-radius:6px;color:#384250;font-weight:600;text-align:left;text-shadow:none;padding:8px 12px}.dropdown_menu_list_wrapper .dropdown_menu_list li a:hover,.dropdown_menu_list_wrapper .dropdown_menu_list li a:active{background:#f2ecfd;color:#5949b8;text-shadow:none}.dropdown_menu_list_wrapper .dropdown_menu_list li:first-child a,.dropdown_menu_list_wrapper .dropdown_menu_list li:last-child a{border-radius:6px}.pagination a,.pagination span.page.current{border-radius:6px;margin-right:4px;padding:5px 11px}.pagination span.page.current{background:#f2ecfd;border-color:#f2ecfd;color:#5949b8}.pagination_information{color:#6b7280}.pagination_information b{color:#1a1f36}.prism-icon,.prism-nav-icon,.prism-chevron,.prism-action-icon{display:inline-block;vertical-align:middle;flex-shrink:0}.prism-icon{margin-right:6px}.prism-visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border:0}body.logged_out:has(.prism-login-brand){min-height:100vh;display:flex;align-items:center;justify-content:center;background:#f4f5f7;overflow:hidden;position:relative}body.logged_out:has(.prism-login-brand)::before,body.logged_out:has(.prism-login-brand)::after{content:"";position:fixed;z-index:0;border-radius:50%;filter:blur(70px);opacity:0.35;pointer-events:none}body.logged_out:has(.prism-login-brand)::before{width:420px;height:420px;top:-140px;left:-120px;background:radial-gradient(circle at 30% 30%, #6d5bd0, transparent 70%);animation:prism-login-blob-a 16s ease-in-out infinite}body.logged_out:has(.prism-login-brand)::after{width:360px;height:360px;bottom:-120px;right:-100px;background:radial-gradient(circle at 70% 70%, #f2ecfd, transparent 70%);animation:prism-login-blob-b 18s ease-in-out infinite}body.logged_out:has(.prism-login-brand) #wrapper{position:relative;z-index:1;display:block;min-height:0;width:auto}body.logged_out:has(.prism-login-brand) #content_wrapper{display:flex;flex-direction:column;align-items:center;width:400px;max-width:90vw;margin:0 auto}body.logged_out:has(.prism-login-brand) #active_admin_content{width:100%;box-sizing:border-box;background:#fff;border:1px solid #e6e8ec;border-radius:10px;box-shadow:0 4px 6px rgba(16,24,40,0.05),0 10px 24px rgba(16,24,40,0.08);padding:40px 36px 32px}body.logged_out:has(.prism-login-brand) #footer{position:relative;z-index:1;border-top:none;text-align:center}body.logged_out:has(.prism-login-brand) #login fieldset.inputs{border:none;border-radius:0}body.logged_out:has(.prism-login-brand) #login fieldset.actions{margin-top:4px;text-align:center}body.logged_out:has(.prism-login-brand) #login fieldset.actions li{float:none}body.logged_out:has(.prism-login-brand) #login fieldset.actions li.input_action{padding:20px 0;margin-left:30px;margin-bottom:15px}body.logged_out:has(.prism-login-brand) #login fieldset.actions input[type="submit"]{display:inline-block;width:auto;min-width:200px;padding:12px 28px;font-size:0.95em}body.logged_out:has(.prism-login-brand) #error_explanation{background:#fdecec;border:1px solid rgba(239,68,68,0.3);border-radius:6px;padding:12px 16px;margin-bottom:20px;color:#eb1515}body.logged_out:has(.prism-login-brand) #error_explanation h2{background:none !important;box-shadow:none !important;text-shadow:none !important;border:none !important;margin:0 0 6px !important;padding:0 !important;color:inherit;font-size:0.95em;font-weight:700}body.logged_out:has(.prism-login-brand) #error_explanation ul{margin:0;padding-left:18px;font-size:0.88em;font-weight:600}@keyframes prism-login-blob-a{0%,100%{transform:translate(0, 0) scale(1)}50%{transform:translate(60px, 40px) scale(1.1)}}@keyframes prism-login-blob-b{0%,100%{transform:translate(0, 0) scale(1)}50%{transform:translate(-50px, -30px) scale(1.08)}}.prism-login-brand{text-align:center;margin-bottom:28px}.prism-login-logo{width:64px;height:64px;margin:0 auto 14px;color:#6d5bd0}.prism-login-mark{display:block;width:100%;height:100%}.prism-login-beam{stroke-dasharray:40;animation:prism-login-beam-flow 2.4s linear infinite}@keyframes prism-login-beam-flow{to{stroke-dashoffset:-80}}.prism-login-tri{transform-origin:center;animation:prism-login-tri-glow 3.2s ease-in-out infinite}@keyframes prism-login-tri-glow{0%,100%{filter:drop-shadow(0 0 0 rgba(0,0,0,0))}50%{filter:drop-shadow(0 0 6px rgba(109,91,208,0.45))}}body.logged_out #login .prism-login-brand h2{background:none !important;box-shadow:none !important;text-shadow:none !important;border:none !important;margin:0 !important;padding:0 !important;color:#1a1f36}.prism-login-title{font-size:1.6em;font-weight:800;letter-spacing:-0.01em}.prism-login-tagline{margin:4px 0 0;color:#6b7280;font-size:0.9em}.prism-login-links{margin-top:24px;display:flex;flex-wrap:wrap;justify-content:center;gap:10px;text-align:center}.prism-login-links a{display:inline-flex;align-items:center;padding:7px 14px;border:1px solid #e6e8ec;border-radius:999px;background:#f4f5f7;color:#384250;font-size:0.82em;font-weight:600;text-decoration:none;transition:background 120ms ease,border-color 120ms ease,color 120ms ease}.prism-login-links a:hover{background:#f2ecfd;border-color:#6d5bd0;color:#5949b8}.prism-login-links br{display:none}
data/js-src/prism.js CHANGED
@@ -72,6 +72,28 @@
72
72
  restoreGroupState(sidebar);
73
73
  sidebar.addEventListener("click", onToggleClick);
74
74
  sidebar.addEventListener("click", onSidebarButtonClick);
75
+
76
+ // Scrolls the currently active nav item into view instead of leaving
77
+ // a long "Pages" list scrolled to the top, however far down the
78
+ // active page happens to be. Runs after restoreGroupState just above,
79
+ // so a group whose stored state is "open" has already had that class
80
+ // applied — scrolling first would target the item's position from
81
+ // before that, which collapsed-by-default groups can move.
82
+ var scroll = sidebar.querySelector(".prism-sidebar-scroll");
83
+ if (scroll) {
84
+ // A group containing the active leaf is marked ".active" too (see
85
+ // lib/active_admin/views/prism_sidebar.rb#render_item), so this can
86
+ // match more than one element — the leaf itself, being the most
87
+ // deeply nested, is always the last one in document order.
88
+ var activeItems = scroll.querySelectorAll(".prism-nav-item.active");
89
+ var activeItem = activeItems[activeItems.length - 1];
90
+ // No offsetParent means it's inside a still-collapsed group (open
91
+ // only persists via localStorage — a first-time visitor or one who
92
+ // last left it closed has nothing here to scroll to).
93
+ if (activeItem && activeItem.offsetParent) {
94
+ activeItem.scrollIntoView({ block: "center", behavior: "auto" });
95
+ }
96
+ }
75
97
  });
76
98
  })();
77
99
 
@@ -370,6 +392,24 @@
370
392
  });
371
393
  })();
372
394
 
395
+ // Also shared by both "consolidated ... dropdown" features below — the
396
+ // label for a moved link/button's own <option> in the jump menu. A plain
397
+ // link has no `.value`, so this is almost always `.textContent`, except
398
+ // for one real pattern seen in production: an icon-only action
399
+ // (`link_to(path, title: "...") { raw("<i class=...>") }`, no visible
400
+ // text at all, just a tooltip) renders `.textContent` as "" — without
401
+ // falling back to `title`/`aria-label` there, its dropdown row would show
402
+ // no label at all instead of silently failing some other way.
403
+ function prismTriggerLabel(trigger) {
404
+ if (!trigger) return "";
405
+
406
+ var label = trigger.value || trigger.textContent;
407
+ label = (label || "").trim();
408
+ if (label) return label;
409
+
410
+ return (trigger.getAttribute("title") || trigger.getAttribute("aria-label") || "").trim();
411
+ }
412
+
373
413
  // Shared by the "consolidated sidebar panels" (below) and "consolidated
374
414
  // action items" (further down) features — both are independent top-level
375
415
  // IIFEs, so this is their one shared meeting point rather than a closure:
@@ -510,7 +550,7 @@ function prismTitlebarActionsRow() {
510
550
  if (contents) {
511
551
  Array.prototype.forEach.call(contents.querySelectorAll("a, button, input[type=submit]"), function (trigger) {
512
552
  trigger.dataset.prismSidebarActionsIndex = String(labels.length);
513
- labels.push((trigger.value || trigger.textContent || "").trim());
553
+ labels.push(prismTriggerLabel(trigger));
514
554
  });
515
555
  holding.appendChild(contents);
516
556
  }
@@ -590,6 +630,21 @@ function prismTitlebarActionsRow() {
590
630
 
591
631
  if (otherEntries.length > 0) buildOtherSectionsDropdown(otherEntries);
592
632
 
633
+ // Every section found above besides Filters gets discarded outright
634
+ // (buildOtherSectionsDropdown does the actual removing) — on a page
635
+ // with no Filters panel at all (any non-index page, or
636
+ // #collapsible_filters off) and at least one other section, #sidebar
637
+ // can end up completely empty. ActiveAdmin's own ".without_sidebar"
638
+ // class (which its own CSS already reflows #main_content to fill) is
639
+ // only ever added server-side, before any of this runs, so an empty
640
+ // #sidebar here would otherwise still reserve its usual column width
641
+ // with nothing left inside it.
642
+ var sidebar = document.getElementById("sidebar");
643
+ var mainContent = document.getElementById("active_admin_content");
644
+ if (sidebar && mainContent && sidebar.children.length === 0) {
645
+ mainContent.classList.add("without_sidebar");
646
+ }
647
+
593
648
  // The active-filters bar (see lib/active_admin/views/active_filters_bar.rb,
594
649
  // ActiveAdminPrism::Configuration#active_filters_bar) is a shortcut
595
650
  // straight to the Filters form itself — clicking anywhere on it toggles
@@ -770,11 +825,11 @@ function prismTitlebarActionsRow() {
770
825
 
771
826
  items.forEach(function (item, index) {
772
827
  var trigger = item.querySelector("a, button, input[type=submit]");
773
- var label = trigger ? (trigger.value || trigger.textContent) : item.textContent;
828
+ var label = trigger ? prismTriggerLabel(trigger) : (item.textContent || "").trim();
774
829
 
775
830
  var option = document.createElement("option");
776
831
  option.value = String(index);
777
- option.textContent = (label || "").trim();
832
+ option.textContent = label;
778
833
  select.appendChild(option);
779
834
 
780
835
  item.dataset.prismActionItemsIndex = String(index);
@@ -907,10 +962,43 @@ function prismTitlebarActionsRow() {
907
962
 
908
963
  function wire(el) {
909
964
  updateShadows(el);
965
+
966
+ // Tracks whether this table was sitting flush against an edge right
967
+ // before anything (a scroll, then later a resize) last touched it —
968
+ // see handleResize below for why a resize specifically needs this
969
+ // remembered rather than just re-measured on the spot.
970
+ var pinnedEdge = null; // "left" | "right" | null
971
+
910
972
  el.addEventListener("scroll", function () {
973
+ var maxScroll = el.scrollWidth - el.clientWidth;
974
+ if (el.scrollLeft <= 1) {
975
+ pinnedEdge = "left";
976
+ } else if (el.scrollLeft >= maxScroll - 1) {
977
+ pinnedEdge = "right";
978
+ } else {
979
+ pinnedEdge = null;
980
+ }
911
981
  updateShadows(el);
912
982
  });
913
983
 
984
+ function handleResize() {
985
+ // Opening/closing the Filters sidebar (or anything else resizing
986
+ // #main_content) changes el.clientWidth without the visitor having
987
+ // touched the table at all — the same scrollLeft that left it
988
+ // fully scrolled a moment ago can leave more hidden on whichever
989
+ // edge just grew, bringing back a shadow for content they'd
990
+ // already scrolled past. Re-pinning to whichever edge it was
991
+ // actually sitting at right before the resize (tracked by the
992
+ // scroll listener above) is what keeps the shadow matching what a
993
+ // visitor has actually seen, not just the raw pixel position.
994
+ if (pinnedEdge === "right") {
995
+ el.scrollLeft = el.scrollWidth - el.clientWidth;
996
+ } else if (pinnedEdge === "left") {
997
+ el.scrollLeft = 0;
998
+ }
999
+ updateShadows(el);
1000
+ }
1001
+
914
1002
  // Same reasoning as alignToTable's own ResizeObserver above: the
915
1003
  // table's width can settle after DOMContentLoaded (a scrollbar
916
1004
  // appearing, webfonts, a column's content changing after a filter)
@@ -919,24 +1007,37 @@ function prismTitlebarActionsRow() {
919
1007
  // container (whose own box size is unaffected by its scrollable
920
1008
  // content growing), is what actually catches that.
921
1009
  if (typeof ResizeObserver !== "undefined") {
922
- var observer = new ResizeObserver(function () {
923
- updateShadows(el);
924
- });
1010
+ var observer = new ResizeObserver(handleResize);
925
1011
  observer.observe(el);
926
1012
  Array.prototype.forEach.call(el.children, function (child) {
927
1013
  observer.observe(child);
928
1014
  });
929
1015
  } else {
930
- window.addEventListener("load", function () {
931
- updateShadows(el);
932
- });
933
- window.addEventListener("resize", function () {
934
- updateShadows(el);
935
- });
1016
+ window.addEventListener("load", handleResize);
1017
+ window.addEventListener("resize", handleResize);
936
1018
  }
937
1019
  }
938
1020
 
939
1021
  document.addEventListener("DOMContentLoaded", function () {
940
1022
  document.querySelectorAll(".paginated_collection_contents > .index_content").forEach(wire);
941
1023
  });
1024
+
1025
+ // The "‹"/"›" hints themselves are pseudo-elements (scss-src/_tables.scss)
1026
+ // with no DOM node of their own to attach a listener to — but a browser
1027
+ // still reports a click landing on one with its *host* element as
1028
+ // event.target (there's no other way to target a ::before/::after).
1029
+ // event.target being ".index_content" itself, rather than some real
1030
+ // cell/link inside it, can only mean a visible hint was clicked (its
1031
+ // CSS restores pointer-events only while shown) — jump straight to that
1032
+ // edge instead of leaving a visitor to drag-scroll a wide table by hand.
1033
+ document.addEventListener("click", function (event) {
1034
+ var content = event.target;
1035
+ if (!content.classList || !content.classList.contains("index_content")) return;
1036
+
1037
+ if (content.classList.contains("prism-scroll-right")) {
1038
+ content.scrollTo({ left: content.scrollWidth, behavior: "smooth" });
1039
+ } else if (content.classList.contains("prism-scroll-left")) {
1040
+ content.scrollTo({ left: 0, behavior: "smooth" });
1041
+ }
1042
+ });
942
1043
  })();
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActiveAdminPrism
4
- VERSION = "0.1.5"
4
+ VERSION = "0.1.6"
5
5
  end
data/scss-src/_forms.scss CHANGED
@@ -37,6 +37,22 @@ form {
37
37
  }
38
38
  }
39
39
 
40
+ // `nested_fields_for`-style helpers (cocoon, or a host's own hand-rolled
41
+ // equivalent) wrap each repeated entry's own fields in an intervening
42
+ // `<fieldset class="nested_fields">`, sitting between the outer `<ol>`
43
+ // and that entry's `<li>`s. ActiveAdmin core's own label-floating rule
44
+ // just above (`ol > li label { float: left; width: 20% }`) requires the
45
+ // `<li>`'s direct parent to be an `<ol>`, so it never reaches labels in
46
+ // here — they fall back to a bare inline label, cramped right up
47
+ // against its input instead of aligned like every other field in the
48
+ // form. Mirrors AA core's own float/width values (not available as a
49
+ // shared variable/mixin at this gem's compile time — see bin/build-css).
50
+ fieldset.nested_fields > li label {
51
+ display: block;
52
+ float: left;
53
+ width: 20%;
54
+ }
55
+
40
56
  input[type="text"],
41
57
  input[type="password"],
42
58
  input[type="email"],
@@ -273,14 +289,24 @@ form.filter_form {
273
289
  margin-bottom: 14px;
274
290
  }
275
291
 
292
+ // `flex-wrap: wrap` plus a real `min-width` (not 0) on each control,
293
+ // not just side-by-side on one line unconditionally — a predicate
294
+ // select/date input squeezed below a sensible floor (a host narrowing
295
+ // $sidebar-width below its 320px default, or a Select2-enhanced
296
+ // control here whose own open dropdown sizes itself from its trigger's
297
+ // current width — see scss-src/_select2.scss) clips its own text
298
+ // instead of just being allowed to drop to its own line. Reasonably
299
+ // comfortable at the default sidebar width either way: two
300
+ // 110px-floor controls plus the 8px gap fit in well under 320px.
276
301
  .filter_form_field.select_and_search {
277
302
  display: flex;
303
+ flex-wrap: wrap;
278
304
  gap: 8px;
279
305
 
280
306
  select,
281
307
  input[type="text"] {
282
308
  width: auto;
283
- min-width: 0;
309
+ min-width: 110px;
284
310
  flex: 1 1 0;
285
311
  margin-left: 0;
286
312
  }
@@ -288,11 +314,12 @@ form.filter_form {
288
314
 
289
315
  .filter_form_field.filter_date_range {
290
316
  display: flex;
317
+ flex-wrap: wrap;
291
318
  gap: 8px;
292
319
 
293
320
  input[type="text"] {
294
321
  width: auto;
295
- min-width: 0;
322
+ min-width: 110px;
296
323
  flex: 1 1 0;
297
324
 
298
325
  + input {
@@ -217,7 +217,21 @@ form.filter_form .filter_form_field.select_and_search .select2-container {
217
217
  // so that inline 100% is never auto and the BFC sizing never kicks in —
218
218
  // the container renders full-width *underneath* the floated label instead
219
219
  // of beside it. `!important` is required here to beat that inline style.
220
- form fieldset.inputs li.select > .select2-container {
220
+ //
221
+ // Matches ANY field wrapper containing a Select2-enhanced select, not
222
+ // specifically `as: :select` — Formtastic's own wrapper_classes derives
223
+ // the <li>'s class from the literal `as:` symbol used
224
+ // (Inputs::Base::Wrapping#wrapper_classes: `classes << as`), so
225
+ // `as: :select2`/`:select2_multiple`, a third-party gem's own
226
+ // `:searchable_select`, or any other custom select2-rendering input type
227
+ // a host registers each get their own distinct <li> class — an
228
+ // open-ended, ever-growing list no selector enumerating specific `as:`
229
+ // names ahead of time could ever fully keep up with. Every one of them
230
+ // is itself a Formtastic::Inputs::SelectInput subclass rendering the
231
+ // exact same underlying <select>/.select2-container Select2 replaces, so
232
+ // matching on *that* structure instead of the wrapper's own class name is
233
+ // what actually generalizes here.
234
+ form fieldset.inputs li > .select2-container {
221
235
  display: inline-block;
222
236
  width: calc(80% - 22px) !important;
223
237
  vertical-align: middle;
@@ -227,7 +241,7 @@ form fieldset.inputs li.select > .select2-container {
227
241
  // 1px offscreen technique once active, so this only matches before that,
228
242
  // or if it's disabled/skipped entirely — needs the same geometry so the
229
243
  // row doesn't jump once Select2 does attach.
230
- form fieldset.inputs li.select > select:not(.select2-hidden-accessible) {
244
+ form fieldset.inputs li > select:not(.select2-hidden-accessible) {
231
245
  display: inline-block;
232
246
  width: calc(80% - 22px);
233
247
  vertical-align: middle;
@@ -104,6 +104,14 @@
104
104
  &.prism-scroll-left::before,
105
105
  &.prism-scroll-right::after {
106
106
  opacity: 1;
107
+ // `pointer-events: none` above is the right default for an invisible
108
+ // hint (never swallow a click meant for the real cell/link under it),
109
+ // but once actually shown it doubles as a "jump to that edge" button
110
+ // (js-src/prism.js's own click handler) — restoring it only here,
111
+ // scoped to the exact state that already makes it visible, keeps that
112
+ // click target from ever silently intercepting anything while hidden.
113
+ pointer-events: auto;
114
+ cursor: pointer;
107
115
  }
108
116
  }
109
117
 
@@ -187,7 +195,13 @@ table.index_table {
187
195
  .table_actions {
188
196
  display: flex;
189
197
  align-items: center;
198
+ flex-wrap: wrap;
190
199
  gap: 4px;
200
+ // Only takes effect once wrapping actually happens (flex-wrap above) —
201
+ // a row with a dozen+ icon buttons (custom `member_action`s stack with
202
+ // the default View/Edit/Delete) would otherwise overflow its column on
203
+ // one cramped, uneven line instead of flowing onto a second.
204
+ row-gap: 6px;
191
205
 
192
206
  a {
193
207
  display: inline-flex;
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_admin_prism
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ram Laxman Yadav