card-mod-bootstrap 0.11.6 → 0.13.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/db/migrate_core_cards/20180423160231_migrate_customized_bootstrap_skin.rb +1 -1
- data/db/migrate_core_cards/20200809112346_add_mod_card.rb +7 -0
- data/db/migrate_core_cards/20201129140917_remove_script_cards.rb +9 -0
- data/file/mod_bootstrap_script_bootstrap_machine_output/file.js +25 -0
- data/file/mod_bootstrap_script_pointer_machine_output/file.js +223 -0
- data/lib/card/bootstrap.rb +17 -0
- data/lib/card/bootstrap/basic_tags.rb +26 -0
- data/lib/card/bootstrap/component.rb +110 -0
- data/lib/card/bootstrap/component/carousel.rb +78 -0
- data/lib/card/bootstrap/component/form.rb +67 -0
- data/lib/card/bootstrap/component/horizontal_form.rb +65 -0
- data/lib/card/bootstrap/component/layout.rb +107 -0
- data/lib/card/bootstrap/component/panel.rb +11 -0
- data/lib/{bootstrap/component/component_class.rb → card/bootstrap/component_klass.rb} +5 -4
- data/lib/card/bootstrap/component_loader.rb +30 -0
- data/lib/card/bootstrap/content.rb +42 -0
- data/lib/card/bootstrap/delegate.rb +18 -0
- data/lib/card/bootstrap/old_component.rb +108 -0
- data/lib/card/bootstrap/tag_method.rb +56 -0
- data/lib/card/bootstrapper.rb +17 -0
- data/lib/card/tab.rb +8 -1
- data/lib/stylesheets/font_awesome.css +6 -6
- data/lib/stylesheets/material_icons.css +4 -4
- data/public/{assets/fonts → fonts}/MaterialIcons-Regular.eot +0 -0
- data/public/{assets/fonts → fonts}/MaterialIcons-Regular.ijmap +0 -0
- data/public/{assets/fonts → fonts}/MaterialIcons-Regular.svg +0 -0
- data/public/{assets/fonts → fonts}/MaterialIcons-Regular.ttf +0 -0
- data/public/{assets/fonts → fonts}/MaterialIcons-Regular.woff +0 -0
- data/public/{assets/fonts → fonts}/MaterialIcons-Regular.woff2 +0 -0
- data/public/{assets/fonts → fonts}/fa-brands-400.eot +0 -0
- data/public/{assets/fonts → fonts}/fa-brands-400.svg +0 -0
- data/public/{assets/fonts → fonts}/fa-brands-400.ttf +0 -0
- data/public/{assets/fonts → fonts}/fa-brands-400.woff +0 -0
- data/public/{assets/fonts → fonts}/fa-brands-400.woff2 +0 -0
- data/public/{assets/fonts → fonts}/fa-regular-400.eot +0 -0
- data/public/{assets/fonts → fonts}/fa-regular-400.svg +0 -0
- data/public/{assets/fonts → fonts}/fa-regular-400.ttf +0 -0
- data/public/{assets/fonts → fonts}/fa-regular-400.woff +0 -0
- data/public/{assets/fonts → fonts}/fa-regular-400.woff2 +0 -0
- data/public/{assets/fonts → fonts}/fa-solid-900.eot +0 -0
- data/public/{assets/fonts → fonts}/fa-solid-900.svg +0 -0
- data/public/{assets/fonts → fonts}/fa-solid-900.ttf +0 -0
- data/public/{assets/fonts → fonts}/fa-solid-900.woff +0 -0
- data/public/{assets/fonts → fonts}/fa-solid-900.woff2 +0 -0
- data/public/{assets/fonts → fonts}/glyphicons-halflings-regular.eot +0 -0
- data/public/{assets/fonts → fonts}/glyphicons-halflings-regular.svg +0 -0
- data/public/{assets/fonts → fonts}/glyphicons-halflings-regular.ttf +0 -0
- data/public/{assets/fonts → fonts}/glyphicons-halflings-regular.woff +0 -0
- data/public/{assets/fonts → fonts}/glyphicons-halflings-regular.woff2 +0 -0
- data/set/abstract/bootswatch_theme.rb +2 -2
- data/set/all/bootstrap/icon.rb +3 -1
- metadata +72 -58
- data/lib/bootstrap.rb +0 -18
- data/lib/bootstrap/basic_tags.rb +0 -26
- data/lib/bootstrap/component.rb +0 -108
- data/lib/bootstrap/component/carousel.rb +0 -76
- data/lib/bootstrap/component/form.rb +0 -65
- data/lib/bootstrap/component/horizontal_form.rb +0 -63
- data/lib/bootstrap/component/layout.rb +0 -105
- data/lib/bootstrap/component/panel.rb +0 -9
- data/lib/bootstrap/component_loader.rb +0 -28
- data/lib/bootstrap/content.rb +0 -40
- data/lib/bootstrap/delegate.rb +0 -16
- data/lib/bootstrap/old_component.rb +0 -103
- data/lib/bootstrap/tag_method.rb +0 -54
- data/lib/bootstrapper.rb +0 -16
- data/lib/javascript/bootstrap_modal_decko.js +0 -27
- data/lib/javascript/script_load_select2.js.coffee +0 -55
- data/set/self/script_bootstrap.rb +0 -12
- data/set/self/script_select2.rb +0 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a5be936b33fec952d53bd02083a1aed7204752a67fb5dbeb8a7b2969148b255
|
4
|
+
data.tar.gz: b83639c48d7acfd49b569e65ddd25054c46270a77a62ccde85116eda18d676d2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 861b1ccf0545f53988c44858add9efd2620d29b05be4f800083701ba4a42fa0d013b89a28b0983c8f3ff30b298d5de31062c74d42014a2f4232852d4faba2050
|
7
|
+
data.tar.gz: eb8013594b8b4b4711207970bf04df99a105f99478f15634f2b8aabc07dc903010fa3cdf3a3a4c6fe363d20b9f3241c2bc0e3c14d942b0f7e0eb4aa8ced3bf09
|
@@ -0,0 +1,25 @@
|
|
1
|
+
// select2.full.min.js
|
2
|
+
/*! Select2 4.0.6-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */!function(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(n){var e=function(){if(n&&n.fn&&n.fn.select2&&n.fn.select2.amd)var e=n.fn.select2.amd;var t,r,u,d;return e&&e.requirejs||(e?u=e:e={},function(h){function f(e,t){return n.call(e,t)}function s(e,t){var n,i,r,o,s,a,l,c,u,d,p,h=t&&t.split("/"),f=x.map,g=f&&f["*"]||{};if(e){for(s=(e=e.split("/")).length-1,x.nodeIdCompat&&D.test(e[s])&&(e[s]=e[s].replace(D,"")),"."===e[0].charAt(0)&&h&&(e=h.slice(0,h.length-1).concat(e)),u=0;u<e.length;u++)if("."===(p=e[u]))e.splice(u,1),u-=1;else if(".."===p){if(0===u||1===u&&".."===e[2]||".."===e[u-1])continue;0<u&&(e.splice(u-1,2),u-=2)}e=e.join("/")}if((h||g)&&f){for(u=(n=e.split("/")).length;0<u;u-=1){if(i=n.slice(0,u).join("/"),h)for(d=h.length;0<d;d-=1)if((r=f[h.slice(0,d).join("/")])&&(r=r[i])){o=r,a=u;break}if(o)break;!l&&g&&g[i]&&(l=g[i],c=u)}!o&&l&&(o=l,a=c),o&&(n.splice(0,a,o),e=n.join("/"))}return e}function g(t,n){return function(){var e=i.call(arguments,0);return"string"!=typeof e[0]&&1===e.length&&e.push(null),c.apply(h,e.concat([t,n]))}}function a(t){return function(e){return s(e,t)}}function m(t){return function(e){$[t]=e}}function v(e){if(f(b,e)){var t=b[e];delete b[e],A[e]=!0,o.apply(h,t)}if(!f($,e)&&!f(A,e))throw new Error("No "+e);return $[e]}function l(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 y(e){return e?l(e):[]}function t(e){return function(){return x&&x.config&&x.config[e]||{}}}var o,c,_,w,$={},b={},x={},A={},n=Object.prototype.hasOwnProperty,i=[].slice,D=/\.js$/;_=function(e,t){var n,i=l(e),r=i[0],o=t[1];return e=i[1],r&&(n=v(r=s(r,o))),r?e=n&&n.normalize?n.normalize(e,a(o)):s(e,o):(r=(i=l(e=s(e,o)))[0],e=i[1],r&&(n=v(r))),{f:r?r+"!"+e:e,n:e,pr:r,p:n}},w={require:function(e){return g(e)},exports:function(e){var t=$[e];return void 0!==t?t:$[e]={}},module:function(e){return{id:e,uri:"",exports:$[e],config:t(e)}}},o=function(e,t,n,i){var r,o,s,a,l,c,u,d=[],p=typeof n;if(c=y(i=i||e),"undefined"===p||"function"===p){for(t=!t.length&&n.length?["require","exports","module"]:t,l=0;l<t.length;l+=1)if("require"===(o=(a=_(t[l],c)).f))d[l]=w.require(e);else if("exports"===o)d[l]=w.exports(e),u=!0;else if("module"===o)r=d[l]=w.module(e);else if(f($,o)||f(b,o)||f(A,o))d[l]=v(o);else{if(!a.p)throw new Error(e+" missing "+o);a.p.load(a.n,g(i,!0),m(o),{}),d[l]=$[o]}s=n?n.apply($[e],d):void 0,e&&(r&&r.exports!==h&&r.exports!==$[e]?$[e]=r.exports:s===h&&u||($[e]=s))}else e&&($[e]=n)},r=u=c=function(e,t,n,i,r){if("string"==typeof e)return w[e]?w[e](t):v(_(e,y(t)).f);if(!e.splice){if((x=e).deps&&c(x.deps,x.callback),!t)return;t.splice?(e=t,t=n,n=null):e=h}return t=t||function(){},"function"==typeof n&&(n=i,i=r),i?o(h,e,t,n):setTimeout(function(){o(h,e,t,n)},4),c},c.config=function(e){return c(e)},r._defined=$,(d=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=[]),f($,e)||f(b,e)||(b[e]=[e,t,n])}).amd={jQuery:!0}}(),e.requirejs=r,e.require=u,e.define=d),e.define("almond",function(){}),e.define("jquery",[],function(){var e=n||$;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}),e.define("select2/utils",["jquery"],function(o){function d(e){var t=e.prototype,n=[];for(var i in t)"function"==typeof t[i]&&"constructor"!==i&&n.push(i);return n}var r={Extend:function(e,t){function n(){this.constructor=e}var i={}.hasOwnProperty;for(var r in t)i.call(t,r)&&(e[r]=t[r]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},Decorate:function(i,r){function o(){var e=Array.prototype.unshift,t=r.prototype.constructor.length,n=i.prototype.constructor;0<t&&(e.call(arguments,i.prototype.constructor),n=r.prototype.constructor),n.apply(this,arguments)}function e(){this.constructor=o}var t=d(r),n=d(i);r.displayName=i.displayName,o.prototype=new e;for(var s=0;s<n.length;s++){var a=n[s];o.prototype[a]=i.prototype[a]}for(var l=function(e){var t=function(){};e in o.prototype&&(t=o.prototype[e]);var n=r.prototype[e];return function(){return Array.prototype.unshift.call(arguments,t),n.apply(this,arguments)}},c=0;c<t.length;c++){var u=t[c];o.prototype[u]=l(u)}return o}},e=function(){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||{},null==n&&(n=[]),0===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)},r.Observable=e,r.generateChars=function(e){for(var t="",n=0;n<e;n++)t+=Math.floor(36*Math.random()).toString(36);return t},r.bind=function(e,t){return function(){e.apply(t,arguments)}},r._convertData=function(e){for(var t in e){var n=t.split("-"),i=e;if(1!==n.length){for(var r=0;r<n.length;r++){var o=n[r];(o=o.substring(0,1).toLowerCase()+o.substring(1))in i||(i[o]={}),r==n.length-1&&(i[o]=e[t]),i=i[o]}delete e[t]}}return e},r.hasScroll=function(e,t){var n=o(t),i=t.style.overflowX,r=t.style.overflowY;return(i!==r||"hidden"!==r&&"visible"!==r)&&("scroll"===i||"scroll"===r||n.innerHeight()<t.scrollHeight||n.innerWidth()<t.scrollWidth)},r.escapeMarkup=function(e){var t={"\\":"\","&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return"string"!=typeof e?e:String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})},r.appendMany=function(e,t){if("1.7"===o.fn.jquery.substr(0,3)){var n=o();o.map(t,function(e){n=n.add(e)}),t=n}e.append(t)},r.__cache={};var n=0;return r.GetUniqueElementId=function(e){var t=e.getAttribute("data-select2-id");return null==t&&(e.id?(t=e.id,e.setAttribute("data-select2-id",t)):(e.setAttribute("data-select2-id",++n),t=n.toString())),t},r.StoreData=function(e,t,n){var i=r.GetUniqueElementId(e);r.__cache[i]||(r.__cache[i]={}),r.__cache[i][t]=n},r.GetData=function(e,t){var n=r.GetUniqueElementId(e);return t?r.__cache[n]&&null!=r.__cache[n][t]?r.__cache[n][t]:o(e).data(t):r.__cache[n]},r.RemoveData=function(e){var t=r.GetUniqueElementId(e);null!=r.__cache[t]&&delete r.__cache[t]},r}),e.define("select2/results",["jquery","./utils"],function(p,h){function i(e,t,n){this.$element=e,this.data=n,this.options=t,i.__super__.constructor.call(this)}return h.Extend(i,h.Observable),i.prototype.render=function(){var e=p('<ul class="select2-results__options" role="tree"></ul>');return this.options.get("multiple")&&e.attr("aria-multiselectable","true"),this.$results=e},i.prototype.clear=function(){this.$results.empty()},i.prototype.displayMessage=function(e){var t=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var n=p('<li role="treeitem" 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){e.results=this.sort(e.results);for(var n=0;n<e.results.length;n++){var i=e.results[n],r=this.option(i);t.push(r)}this.$results.append(t)}else 0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"})},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[aria-selected]"),t=e.filter("[aria-selected=true]");0<t.length?t.first().trigger("mouseenter"):e.first().trigger("mouseenter"),this.ensureHighlightVisible()},i.prototype.setClasses=function(){var t=this;this.data.current(function(e){var i=p.map(e,function(e){return e.id.toString()});t.$results.find(".select2-results__option[aria-selected]").each(function(){var e=p(this),t=h.GetData(this,"data"),n=""+t.id;null!=t.element&&t.element.selected||null==t.element&&-1<p.inArray(n,i)?e.attr("aria-selected","true"):e.attr("aria-selected","false")})})},i.prototype.showLoading=function(e){this.hideLoading();var t={disabled:!0,loading:!0,text:this.options.get("translations").get("searching")(e)},n=this.option(t);n.className+=" loading-results",this.$results.prepend(n)},i.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},i.prototype.option=function(e){var t=document.createElement("li");t.className="select2-results__option";var n={role:"treeitem","aria-selected":"false"};for(var i in e.disabled&&(delete n["aria-selected"],n["aria-disabled"]="true"),null==e.id&&delete n["aria-selected"],null!=e._resultId&&(t.id=e._resultId),e.title&&(t.title=e.title),e.children&&(n.role="group",n["aria-label"]=e.text,delete n["aria-selected"]),n){var r=n[i];t.setAttribute(i,r)}if(e.children){var o=p(t),s=document.createElement("strong");s.className="select2-results__group",p(s),this.template(e,s);for(var a=[],l=0;l<e.children.length;l++){var c=e.children[l],u=this.option(c);a.push(u)}var d=p("<ul></ul>",{"class":"select2-results__options select2-results__options--nested"});d.append(a),o.append(s),o.append(d)}else this.template(e,t);return h.StoreData(t,"data",e),t},i.prototype.bind=function(t){var l=this,e=t.id+"-results";this.$results.attr("id",e),t.on("results:all",function(e){l.clear(),l.append(e.data),t.isOpen()&&(l.setClasses(),l.highlightFirstItem())}),t.on("results:append",function(e){l.append(e.data),t.isOpen()&&l.setClasses()}),t.on("query",function(e){l.hideMessages(),l.showLoading(e)}),t.on("select",function(){t.isOpen()&&(l.setClasses(),l.highlightFirstItem())}),t.on("unselect",function(){t.isOpen()&&(l.setClasses(),l.highlightFirstItem())}),t.on("open",function(){l.$results.attr("aria-expanded","true"),l.$results.attr("aria-hidden","false"),l.setClasses(),l.ensureHighlightVisible()}),t.on("close",function(){l.$results.attr("aria-expanded","false"),l.$results.attr("aria-hidden","true"),l.$results.removeAttr("aria-activedescendant")}),t.on("results:toggle",function(){var e=l.getHighlightedResults();0!==e.length&&e.trigger("mouseup")}),t.on("results:select",function(){var e=l.getHighlightedResults();if(0!==e.length){var t=h.GetData(e[0],"data");"true"==e.attr("aria-selected")?l.trigger("close",{}):l.trigger("select",{data:t})}}),t.on("results:previous",function(){var e=l.getHighlightedResults(),t=l.$results.find("[aria-selected]"),n=t.index(e);if(!(n<=0)){var i=n-1;0===e.length&&(i=0);var r=t.eq(i);r.trigger("mouseenter");var o=l.$results.offset().top,s=r.offset().top,a=l.$results.scrollTop()+(s-o);0===i?l.$results.scrollTop(0):s-o<0&&l.$results.scrollTop(a)}}),t.on("results:next",function(){var e=l.getHighlightedResults(),t=l.$results.find("[aria-selected]"),n=t.index(e)+1;if(!(n>=t.length)){var i=t.eq(n);i.trigger("mouseenter");var r=l.$results.offset().top+l.$results.outerHeight(!1),o=i.offset().top+i.outerHeight(!1),s=l.$results.scrollTop()+o-r;0===n?l.$results.scrollTop(0):r<o&&l.$results.scrollTop(s)}}),t.on("results:focus",function(e){e.element.addClass("select2-results__option--highlighted")}),t.on("results:message",function(e){l.displayMessage(e)}),p.fn.mousewheel&&this.$results.on("mousewheel",function(e){var t=l.$results.scrollTop(),n=l.$results.get(0).scrollHeight-t+e.deltaY,i=0<e.deltaY&&t-e.deltaY<=0,r=e.deltaY<0&&n<=l.$results.height();i?(l.$results.scrollTop(0),e.preventDefault(),e.stopPropagation()):r&&(l.$results.scrollTop(l.$results.get(0).scrollHeight-l.$results.height()),e.preventDefault(),e.stopPropagation())}),this.$results.on("mouseup",".select2-results__option[aria-selected]",function(e){var t=p(this),n=h.GetData(this,"data");"true"!==t.attr("aria-selected")?l.trigger("select",{originalEvent:e,data:n}):l.options.get("multiple")?l.trigger("unselect",{originalEvent:e,data:n}):l.trigger("close",{})}),this.$results.on("mouseenter",".select2-results__option[aria-selected]",function(){var e=h.GetData(this,"data");l.getHighlightedResults().removeClass("select2-results__option--highlighted"),l.trigger("results:focus",{data:e,element:p(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=this.getHighlightedResults();if(0!==e.length){var t=this.$results.find("[aria-selected]").index(e),n=this.$results.offset().top,i=e.offset().top,r=this.$results.scrollTop()+(i-n),o=i-n;r-=2*e.outerHeight(!1),t<=2?this.$results.scrollTop(0):(o>this.$results.outerHeight()||o<0)&&this.$results.scrollTop(r)}},i.prototype.template=function(e,t){var n=this.options.get("templateResult"),i=this.options.get("escapeMarkup"),r=n(e,t);null==r?t.style.display="none":"string"==typeof r?t.innerHTML=i(r):p(t).append(r)},i}),e.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}}),e.define("select2/selection/base",["jquery","../utils","../keys"],function(n,i,r){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.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),e.attr("title",this.$element.attr("title")),e.attr("tabindex",this._tabindex),this.$selection=e},o.prototype.bind=function(e){var t=this,n=(e.id,e.id+"-results");this.container=e,this.$selection.on("focus",function(e){t.trigger("focus",e)}),this.$selection.on("blur",function(e){t._handleBlur(e)}),this.$selection.on("keydown",function(e){t.trigger("keypress",e),e.which===r.SPACE&&e.preventDefault()}),e.on("results:focus",function(e){t.$selection.attr("aria-activedescendant",e.data._resultId)}),e.on("selection:update",function(e){t.update(e.data)}),e.on("open",function(){t.$selection.attr("aria-expanded","true"),t.$selection.attr("aria-owns",n),t._attachCloseHandler(e)}),e.on("close",function(){t.$selection.attr("aria-expanded","false"),t.$selection.removeAttr("aria-activedescendant"),t.$selection.removeAttr("aria-owns"),t.$selection.focus(),window.setTimeout(function(){t.$selection.focus()},0),t._detachCloseHandler(e)}),e.on("enable",function(){t.$selection.attr("tabindex",t._tabindex)}),e.on("disable",function(){t.$selection.attr("tabindex","-1")})},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(){n(this),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(){throw new Error("The `update` method must be defined in child classes.")},o}),e.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(e,t,n){function r(){r.__super__.constructor.apply(this,arguments)}return n.Extend(r,t),r.prototype.render=function(){var e=r.__super__.render.call(this);return e.addClass("select2-selection--single"),e.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),e},r.prototype.bind=function(e,t){var n=this;r.__super__.bind.apply(this,arguments);var i=e.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",i).attr("role","textbox").attr("aria-readonly","true"),this.$selection.attr("aria-labelledby",i),this.$selection.on("mousedown",function(e){1===e.which&&n.trigger("toggle",{originalEvent:e})}),this.$selection.on("focus",function(){}),this.$selection.on("blur",function(){}),e.on("focus",function(){e.isOpen()||n.$selection.focus()})},r.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},r.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},r.prototype.selectionContainer=function(){return e("<span></span>")},r.prototype.update=function(e){if(0!==e.length){var t=e[0],n=this.$selection.find(".select2-selection__rendered"),i=this.display(t,n);n.empty().append(i),n.attr("title",t.title||t.text)}else this.clear()},r}),e.define("select2/selection/multiple",["jquery","./base","../utils"],function(r,e,a){function n(e,t){n.__super__.constructor.apply(this,arguments)}return a.Extend(n,e),n.prototype.render=function(){var e=n.__super__.render.call(this);return e.addClass("select2-selection--multiple"),e.html('<ul class="select2-selection__rendered"></ul>'),e},n.prototype.bind=function(e,t){var i=this;n.__super__.bind.apply(this,arguments),this.$selection.on("click",function(e){i.trigger("toggle",{originalEvent:e})}),this.$selection.on("click",".select2-selection__choice__remove",function(e){if(!i.options.get("disabled")){var t=r(this).parent(),n=a.GetData(t[0],"data");i.trigger("unselect",{originalEvent:e,data:n})}})},n.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},n.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},n.prototype.selectionContainer=function(){return r('<li class="select2-selection__choice"><span class="select2-selection__choice__remove" role="presentation">×</span></li>')},n.prototype.update=function(e){if(this.clear(),0!==e.length){for(var t=[],n=0;n<e.length;n++){var i=e[n],r=this.selectionContainer(),o=this.display(i,r);r.append(o),r.attr("title",i.title||i.text),a.StoreData(r[0],"data",i),t.push(r)}var s=this.$selection.find(".select2-selection__rendered");a.appendMany(s,t)}},n}),e.define("select2/selection/placeholder",["../utils"],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"string"==typeof t&&(t={id:"",text:t}),t},e.prototype.createPlaceholder=function(e,t){var n=this.selectionContainer();return n.html(this.display(t)),n.addClass("select2-selection__placeholder").removeClass("select2-selection__choice"),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();var i=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(i)},e}),e.define("select2/selection/allowClear",["jquery","../keys","../utils"],function(i,r,a){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.options.get("disabled")){var n=this.$selection.find(".select2-selection__clear");if(0!==n.length){t.stopPropagation();var i=a.GetData(n[0],"data"),r=this.$element.val();this.$element.val(this.placeholder.id);var o={data:i};if(this.trigger("clear",o),o.prevented)return void this.$element.val(r);for(var s=0;s<i.length;s++)if(o={data:i[s]},this.trigger("unselect",o),o.prevented)return void this.$element.val(r);this.$element.trigger("change"),this.trigger("toggle",{})}}},e.prototype._handleKeyboardClear=function(e,t,n){n.isOpen()||t.which!=r.DELETE&&t.which!=r.BACKSPACE||this._handleClear(t)},e.prototype.update=function(e,t){if(e.call(this,t),!(0<this.$selection.find(".select2-selection__placeholder").length||0===t.length)){var n=i('<span class="select2-selection__clear">×</span>');a.StoreData(n[0],"data",t),this.$selection.find(".select2-selection__rendered").prepend(n)}},e}),e.define("select2/selection/search",["jquery","../utils","../keys"],function(i,s,a){function e(e,t,n){e.call(this,t,n)}return e.prototype.render=function(e){var t=i('<li class="select2-search select2-search--inline"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="textbox" aria-autocomplete="list" /></li>');this.$searchContainer=t,this.$search=t.find("input");var n=e.call(this);return this._transferTabIndex(),n},e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("open",function(){i.$search.trigger("focus")}),t.on("close",function(){i.$search.val(""),i.$search.removeAttr("aria-activedescendant"),i.$search.trigger("focus")}),t.on("enable",function(){i.$search.prop("disabled",!1),i._transferTabIndex()}),t.on("disable",function(){i.$search.prop("disabled",!0)}),t.on("focus",function(){i.$search.trigger("focus")}),t.on("results:focus",function(e){i.$search.attr("aria-activedescendant",e.id)}),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){if(e.stopPropagation(),i.trigger("keypress",e),i._keyUpPrevented=e.isDefaultPrevented(),e.which===a.BACKSPACE&&""===i.$search.val()){var t=i.$searchContainer.prev(".select2-selection__choice");if(0<t.length){var n=s.GetData(t[0],"data");i.searchRemoveChoice(n),e.preventDefault()}}});var r=document.documentMode,o=r&&r<=11;this.$selection.on("input.searchcheck",".select2-search--inline",function(){o?i.$selection.off("input.search input.searchcheck"):i.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".select2-search--inline",function(e){if(o&&"input"===e.type)i.$selection.off("input.search input.searchcheck");else{var t=e.which;t!=a.SHIFT&&t!=a.CTRL&&t!=a.ALT&&t!=a.TAB&&i.handleSearch(e)}})},e.prototype._transferTabIndex=function(){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},e.prototype.createPlaceholder=function(e,t){this.$search.attr("placeholder",t.text)},e.prototype.update=function(e,t){var n=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),e.call(this,t),this.$selection.find(".select2-selection__rendered").append(this.$searchContainer),this.resizeSearch(),n&&(this.$element.find("[data-select2-tag]").length?this.$element.focus():this.$search.focus())},e.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var 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="";e=""!==this.$search.attr("placeholder")?this.$selection.find(".select2-selection__rendered").innerWidth():.75*(this.$search.val().length+1)+"em",this.$search.css("width",e)},e}),e.define("select2/selection/eventRelay",["jquery"],function(s){function e(){}return e.prototype.bind=function(e,t,n){var i=this,r=["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){if(-1!==s.inArray(e,r)){t=t||{};var n=s.Event("select2:"+e,{params:t});i.$element.trigger(n),-1!==s.inArray(e,o)&&(t.prevented=n.isDefaultPrevented())}})},e}),e.define("select2/translation",["jquery","require"],function(t,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=t.extend({},e.all(),this.dict)},i._cache={},i.loadPath=function(e){if(!(e in i._cache)){var t=n(e);i._cache[e]=t}return new i(i._cache[e])},i}),e.define("select2/diacritics",[],function(){return{"\u24b6":"A","\uff21":"A","\xc0":"A","\xc1":"A","\xc2":"A","\u1ea6":"A","\u1ea4":"A","\u1eaa":"A","\u1ea8":"A","\xc3":"A","\u0100":"A","\u0102":"A","\u1eb0":"A","\u1eae":"A","\u1eb4":"A","\u1eb2":"A","\u0226":"A","\u01e0":"A","\xc4":"A","\u01de":"A","\u1ea2":"A","\xc5":"A","\u01fa":"A","\u01cd":"A","\u0200":"A","\u0202":"A","\u1ea0":"A","\u1eac":"A","\u1eb6":"A","\u1e00":"A","\u0104":"A","\u023a":"A","\u2c6f":"A","\ua732":"AA","\xc6":"AE","\u01fc":"AE","\u01e2":"AE","\ua734":"AO","\ua736":"AU","\ua738":"AV","\ua73a":"AV","\ua73c":"AY","\u24b7":"B","\uff22":"B","\u1e02":"B","\u1e04":"B","\u1e06":"B","\u0243":"B","\u0182":"B","\u0181":"B","\u24b8":"C","\uff23":"C","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\xc7":"C","\u1e08":"C","\u0187":"C","\u023b":"C","\ua73e":"C","\u24b9":"D","\uff24":"D","\u1e0a":"D","\u010e":"D","\u1e0c":"D","\u1e10":"D","\u1e12":"D","\u1e0e":"D","\u0110":"D","\u018b":"D","\u018a":"D","\u0189":"D","\ua779":"D","\u01f1":"DZ","\u01c4":"DZ","\u01f2":"Dz","\u01c5":"Dz","\u24ba":"E","\uff25":"E","\xc8":"E","\xc9":"E","\xca":"E","\u1ec0":"E","\u1ebe":"E","\u1ec4":"E","\u1ec2":"E","\u1ebc":"E","\u0112":"E","\u1e14":"E","\u1e16":"E","\u0114":"E","\u0116":"E","\xcb":"E","\u1eba":"E","\u011a":"E","\u0204":"E","\u0206":"E","\u1eb8":"E","\u1ec6":"E","\u0228":"E","\u1e1c":"E","\u0118":"E","\u1e18":"E","\u1e1a":"E","\u0190":"E","\u018e":"E","\u24bb":"F","\uff26":"F","\u1e1e":"F","\u0191":"F","\ua77b":"F","\u24bc":"G","\uff27":"G","\u01f4":"G","\u011c":"G","\u1e20":"G","\u011e":"G","\u0120":"G","\u01e6":"G","\u0122":"G","\u01e4":"G","\u0193":"G","\ua7a0":"G","\ua77d":"G","\ua77e":"G","\u24bd":"H","\uff28":"H","\u0124":"H","\u1e22":"H","\u1e26":"H","\u021e":"H","\u1e24":"H","\u1e28":"H","\u1e2a":"H","\u0126":"H","\u2c67":"H","\u2c75":"H","\ua78d":"H","\u24be":"I","\uff29":"I","\xcc":"I","\xcd":"I","\xce":"I","\u0128":"I","\u012a":"I","\u012c":"I","\u0130":"I","\xcf":"I","\u1e2e":"I","\u1ec8":"I","\u01cf":"I","\u0208":"I","\u020a":"I","\u1eca":"I","\u012e":"I","\u1e2c":"I","\u0197":"I","\u24bf":"J","\uff2a":"J","\u0134":"J","\u0248":"J","\u24c0":"K","\uff2b":"K","\u1e30":"K","\u01e8":"K","\u1e32":"K","\u0136":"K","\u1e34":"K","\u0198":"K","\u2c69":"K","\ua740":"K","\ua742":"K","\ua744":"K","\ua7a2":"K","\u24c1":"L","\uff2c":"L","\u013f":"L","\u0139":"L","\u013d":"L","\u1e36":"L","\u1e38":"L","\u013b":"L","\u1e3c":"L","\u1e3a":"L","\u0141":"L","\u023d":"L","\u2c62":"L","\u2c60":"L","\ua748":"L","\ua746":"L","\ua780":"L","\u01c7":"LJ","\u01c8":"Lj","\u24c2":"M","\uff2d":"M","\u1e3e":"M","\u1e40":"M","\u1e42":"M","\u2c6e":"M","\u019c":"M","\u24c3":"N","\uff2e":"N","\u01f8":"N","\u0143":"N","\xd1":"N","\u1e44":"N","\u0147":"N","\u1e46":"N","\u0145":"N","\u1e4a":"N","\u1e48":"N","\u0220":"N","\u019d":"N","\ua790":"N","\ua7a4":"N","\u01ca":"NJ","\u01cb":"Nj","\u24c4":"O","\uff2f":"O","\xd2":"O","\xd3":"O","\xd4":"O","\u1ed2":"O","\u1ed0":"O","\u1ed6":"O","\u1ed4":"O","\xd5":"O","\u1e4c":"O","\u022c":"O","\u1e4e":"O","\u014c":"O","\u1e50":"O","\u1e52":"O","\u014e":"O","\u022e":"O","\u0230":"O","\xd6":"O","\u022a":"O","\u1ece":"O","\u0150":"O","\u01d1":"O","\u020c":"O","\u020e":"O","\u01a0":"O","\u1edc":"O","\u1eda":"O","\u1ee0":"O","\u1ede":"O","\u1ee2":"O","\u1ecc":"O","\u1ed8":"O","\u01ea":"O","\u01ec":"O","\xd8":"O","\u01fe":"O","\u0186":"O","\u019f":"O","\ua74a":"O","\ua74c":"O","\u01a2":"OI","\ua74e":"OO","\u0222":"OU","\u24c5":"P","\uff30":"P","\u1e54":"P","\u1e56":"P","\u01a4":"P","\u2c63":"P","\ua750":"P","\ua752":"P","\ua754":"P","\u24c6":"Q","\uff31":"Q","\ua756":"Q","\ua758":"Q","\u024a":"Q","\u24c7":"R","\uff32":"R","\u0154":"R","\u1e58":"R","\u0158":"R","\u0210":"R","\u0212":"R","\u1e5a":"R","\u1e5c":"R","\u0156":"R","\u1e5e":"R","\u024c":"R","\u2c64":"R","\ua75a":"R","\ua7a6":"R","\ua782":"R","\u24c8":"S","\uff33":"S","\u1e9e":"S","\u015a":"S","\u1e64":"S","\u015c":"S","\u1e60":"S","\u0160":"S","\u1e66":"S","\u1e62":"S","\u1e68":"S","\u0218":"S","\u015e":"S","\u2c7e":"S","\ua7a8":"S","\ua784":"S","\u24c9":"T","\uff34":"T","\u1e6a":"T","\u0164":"T","\u1e6c":"T","\u021a":"T","\u0162":"T","\u1e70":"T","\u1e6e":"T","\u0166":"T","\u01ac":"T","\u01ae":"T","\u023e":"T","\ua786":"T","\ua728":"TZ","\u24ca":"U","\uff35":"U","\xd9":"U","\xda":"U","\xdb":"U","\u0168":"U","\u1e78":"U","\u016a":"U","\u1e7a":"U","\u016c":"U","\xdc":"U","\u01db":"U","\u01d7":"U","\u01d5":"U","\u01d9":"U","\u1ee6":"U","\u016e":"U","\u0170":"U","\u01d3":"U","\u0214":"U","\u0216":"U","\u01af":"U","\u1eea":"U","\u1ee8":"U","\u1eee":"U","\u1eec":"U","\u1ef0":"U","\u1ee4":"U","\u1e72":"U","\u0172":"U","\u1e76":"U","\u1e74":"U","\u0244":"U","\u24cb":"V","\uff36":"V","\u1e7c":"V","\u1e7e":"V","\u01b2":"V","\ua75e":"V","\u0245":"V","\ua760":"VY","\u24cc":"W","\uff37":"W","\u1e80":"W","\u1e82":"W","\u0174":"W","\u1e86":"W","\u1e84":"W","\u1e88":"W","\u2c72":"W","\u24cd":"X","\uff38":"X","\u1e8a":"X","\u1e8c":"X","\u24ce":"Y","\uff39":"Y","\u1ef2":"Y","\xdd":"Y","\u0176":"Y","\u1ef8":"Y","\u0232":"Y","\u1e8e":"Y","\u0178":"Y","\u1ef6":"Y","\u1ef4":"Y","\u01b3":"Y","\u024e":"Y","\u1efe":"Y","\u24cf":"Z","\uff3a":"Z","\u0179":"Z","\u1e90":"Z","\u017b":"Z","\u017d":"Z","\u1e92":"Z","\u1e94":"Z","\u01b5":"Z","\u0224":"Z","\u2c7f":"Z","\u2c6b":"Z","\ua762":"Z","\u24d0":"a","\uff41":"a","\u1e9a":"a","\xe0":"a","\xe1":"a","\xe2":"a","\u1ea7":"a","\u1ea5":"a","\u1eab":"a","\u1ea9":"a","\xe3":"a","\u0101":"a","\u0103":"a","\u1eb1":"a","\u1eaf":"a","\u1eb5":"a","\u1eb3":"a","\u0227":"a","\u01e1":"a","\xe4":"a","\u01df":"a","\u1ea3":"a","\xe5":"a","\u01fb":"a","\u01ce":"a","\u0201":"a","\u0203":"a","\u1ea1":"a","\u1ead":"a","\u1eb7":"a","\u1e01":"a","\u0105":"a","\u2c65":"a","\u0250":"a","\ua733":"aa","\xe6":"ae","\u01fd":"ae","\u01e3":"ae","\ua735":"ao","\ua737":"au","\ua739":"av","\ua73b":"av","\ua73d":"ay","\u24d1":"b","\uff42":"b","\u1e03":"b","\u1e05":"b","\u1e07":"b","\u0180":"b","\u0183":"b","\u0253":"b","\u24d2":"c","\uff43":"c","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\xe7":"c","\u1e09":"c","\u0188":"c","\u023c":"c","\ua73f":"c","\u2184":"c","\u24d3":"d","\uff44":"d","\u1e0b":"d","\u010f":"d","\u1e0d":"d","\u1e11":"d","\u1e13":"d","\u1e0f":"d","\u0111":"d","\u018c":"d","\u0256":"d","\u0257":"d","\ua77a":"d","\u01f3":"dz","\u01c6":"dz","\u24d4":"e","\uff45":"e","\xe8":"e","\xe9":"e","\xea":"e","\u1ec1":"e","\u1ebf":"e","\u1ec5":"e","\u1ec3":"e","\u1ebd":"e","\u0113":"e","\u1e15":"e","\u1e17":"e","\u0115":"e","\u0117":"e","\xeb":"e","\u1ebb":"e","\u011b":"e","\u0205":"e","\u0207":"e","\u1eb9":"e","\u1ec7":"e","\u0229":"e","\u1e1d":"e","\u0119":"e","\u1e19":"e","\u1e1b":"e","\u0247":"e","\u025b":"e","\u01dd":"e","\u24d5":"f","\uff46":"f","\u1e1f":"f","\u0192":"f","\ua77c":"f","\u24d6":"g","\uff47":"g","\u01f5":"g","\u011d":"g","\u1e21":"g","\u011f":"g","\u0121":"g","\u01e7":"g","\u0123":"g","\u01e5":"g","\u0260":"g","\ua7a1":"g","\u1d79":"g","\ua77f":"g","\u24d7":"h","\uff48":"h","\u0125":"h","\u1e23":"h","\u1e27":"h","\u021f":"h","\u1e25":"h","\u1e29":"h","\u1e2b":"h","\u1e96":"h","\u0127":"h","\u2c68":"h","\u2c76":"h","\u0265":"h","\u0195":"hv","\u24d8":"i","\uff49":"i","\xec":"i","\xed":"i","\xee":"i","\u0129":"i","\u012b":"i","\u012d":"i","\xef":"i","\u1e2f":"i","\u1ec9":"i","\u01d0":"i","\u0209":"i","\u020b":"i","\u1ecb":"i","\u012f":"i","\u1e2d":"i","\u0268":"i","\u0131":"i","\u24d9":"j","\uff4a":"j","\u0135":"j","\u01f0":"j","\u0249":"j","\u24da":"k","\uff4b":"k","\u1e31":"k","\u01e9":"k","\u1e33":"k","\u0137":"k","\u1e35":"k","\u0199":"k","\u2c6a":"k","\ua741":"k","\ua743":"k","\ua745":"k","\ua7a3":"k","\u24db":"l","\uff4c":"l","\u0140":"l","\u013a":"l",
|
3
|
+
"\u013e":"l","\u1e37":"l","\u1e39":"l","\u013c":"l","\u1e3d":"l","\u1e3b":"l","\u017f":"l","\u0142":"l","\u019a":"l","\u026b":"l","\u2c61":"l","\ua749":"l","\ua781":"l","\ua747":"l","\u01c9":"lj","\u24dc":"m","\uff4d":"m","\u1e3f":"m","\u1e41":"m","\u1e43":"m","\u0271":"m","\u026f":"m","\u24dd":"n","\uff4e":"n","\u01f9":"n","\u0144":"n","\xf1":"n","\u1e45":"n","\u0148":"n","\u1e47":"n","\u0146":"n","\u1e4b":"n","\u1e49":"n","\u019e":"n","\u0272":"n","\u0149":"n","\ua791":"n","\ua7a5":"n","\u01cc":"nj","\u24de":"o","\uff4f":"o","\xf2":"o","\xf3":"o","\xf4":"o","\u1ed3":"o","\u1ed1":"o","\u1ed7":"o","\u1ed5":"o","\xf5":"o","\u1e4d":"o","\u022d":"o","\u1e4f":"o","\u014d":"o","\u1e51":"o","\u1e53":"o","\u014f":"o","\u022f":"o","\u0231":"o","\xf6":"o","\u022b":"o","\u1ecf":"o","\u0151":"o","\u01d2":"o","\u020d":"o","\u020f":"o","\u01a1":"o","\u1edd":"o","\u1edb":"o","\u1ee1":"o","\u1edf":"o","\u1ee3":"o","\u1ecd":"o","\u1ed9":"o","\u01eb":"o","\u01ed":"o","\xf8":"o","\u01ff":"o","\u0254":"o","\ua74b":"o","\ua74d":"o","\u0275":"o","\u01a3":"oi","\u0223":"ou","\ua74f":"oo","\u24df":"p","\uff50":"p","\u1e55":"p","\u1e57":"p","\u01a5":"p","\u1d7d":"p","\ua751":"p","\ua753":"p","\ua755":"p","\u24e0":"q","\uff51":"q","\u024b":"q","\ua757":"q","\ua759":"q","\u24e1":"r","\uff52":"r","\u0155":"r","\u1e59":"r","\u0159":"r","\u0211":"r","\u0213":"r","\u1e5b":"r","\u1e5d":"r","\u0157":"r","\u1e5f":"r","\u024d":"r","\u027d":"r","\ua75b":"r","\ua7a7":"r","\ua783":"r","\u24e2":"s","\uff53":"s","\xdf":"s","\u015b":"s","\u1e65":"s","\u015d":"s","\u1e61":"s","\u0161":"s","\u1e67":"s","\u1e63":"s","\u1e69":"s","\u0219":"s","\u015f":"s","\u023f":"s","\ua7a9":"s","\ua785":"s","\u1e9b":"s","\u24e3":"t","\uff54":"t","\u1e6b":"t","\u1e97":"t","\u0165":"t","\u1e6d":"t","\u021b":"t","\u0163":"t","\u1e71":"t","\u1e6f":"t","\u0167":"t","\u01ad":"t","\u0288":"t","\u2c66":"t","\ua787":"t","\ua729":"tz","\u24e4":"u","\uff55":"u","\xf9":"u","\xfa":"u","\xfb":"u","\u0169":"u","\u1e79":"u","\u016b":"u","\u1e7b":"u","\u016d":"u","\xfc":"u","\u01dc":"u","\u01d8":"u","\u01d6":"u","\u01da":"u","\u1ee7":"u","\u016f":"u","\u0171":"u","\u01d4":"u","\u0215":"u","\u0217":"u","\u01b0":"u","\u1eeb":"u","\u1ee9":"u","\u1eef":"u","\u1eed":"u","\u1ef1":"u","\u1ee5":"u","\u1e73":"u","\u0173":"u","\u1e77":"u","\u1e75":"u","\u0289":"u","\u24e5":"v","\uff56":"v","\u1e7d":"v","\u1e7f":"v","\u028b":"v","\ua75f":"v","\u028c":"v","\ua761":"vy","\u24e6":"w","\uff57":"w","\u1e81":"w","\u1e83":"w","\u0175":"w","\u1e87":"w","\u1e85":"w","\u1e98":"w","\u1e89":"w","\u2c73":"w","\u24e7":"x","\uff58":"x","\u1e8b":"x","\u1e8d":"x","\u24e8":"y","\uff59":"y","\u1ef3":"y","\xfd":"y","\u0177":"y","\u1ef9":"y","\u0233":"y","\u1e8f":"y","\xff":"y","\u1ef7":"y","\u1e99":"y","\u1ef5":"y","\u01b4":"y","\u024f":"y","\u1eff":"y","\u24e9":"z","\uff5a":"z","\u017a":"z","\u1e91":"z","\u017c":"z","\u017e":"z","\u1e93":"z","\u1e95":"z","\u01b6":"z","\u0225":"z","\u0240":"z","\u2c6c":"z","\ua763":"z","\u0386":"\u0391","\u0388":"\u0395","\u0389":"\u0397","\u038a":"\u0399","\u03aa":"\u0399","\u038c":"\u039f","\u038e":"\u03a5","\u03ab":"\u03a5","\u038f":"\u03a9","\u03ac":"\u03b1","\u03ad":"\u03b5","\u03ae":"\u03b7","\u03af":"\u03b9","\u03ca":"\u03b9","\u0390":"\u03b9","\u03cc":"\u03bf","\u03cd":"\u03c5","\u03cb":"\u03c5","\u03b0":"\u03c5","\u03c9":"\u03c9","\u03c2":"\u03c3"}}),e.define("select2/data/base",["../utils"],function(i){function e(){e.__super__.constructor.call(this)}return i.Extend(e,i.Observable),e.prototype.current=function(){throw new Error("The `current` method must be defined in child classes.")},e.prototype.query=function(){throw new Error("The `query` method must be defined in child classes.")},e.prototype.bind=function(){},e.prototype.destroy=function(){},e.prototype.generateResultId=function(e,t){var n=e.id+"-result-";return n+=i.generateChars(4),null!=t.id?n+="-"+t.id.toString():n+="-"+i.generateChars(4),n},e}),e.define("select2/data/select",["./base","../utils","jquery"],function(e,a,l){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return a.Extend(n,e),n.prototype.current=function(e){var n=[],i=this;this.$element.find(":selected").each(function(){var e=l(this),t=i.item(e);n.push(t)}),e(n)},n.prototype.select=function(r){var o=this;if(r.selected=!0,l(r.element).is("option"))return r.element.selected=!0,void this.$element.trigger("change");if(this.$element.prop("multiple"))this.current(function(e){var t=[];(r=[r]).push.apply(r,e);for(var n=0;n<r.length;n++){var i=r[n].id;-1===l.inArray(i,t)&&t.push(i)}o.$element.val(t),o.$element.trigger("change")});else{var e=r.id;this.$element.val(e),this.$element.trigger("change")}},n.prototype.unselect=function(r){var o=this;if(this.$element.prop("multiple")){if(r.selected=!1,l(r.element).is("option"))return r.element.selected=!1,void this.$element.trigger("change");this.current(function(e){for(var t=[],n=0;n<e.length;n++){var i=e[n].id;i!==r.id&&-1===l.inArray(i,t)&&t.push(i)}o.$element.val(t),o.$element.trigger("change")})}},n.prototype.bind=function(e){var t=this;(this.container=e).on("select",function(e){t.select(e.data)}),e.on("unselect",function(e){t.unselect(e.data)})},n.prototype.destroy=function(){this.$element.find("*").each(function(){a.RemoveData(this)})},n.prototype.query=function(i,e){var r=[],o=this;this.$element.children().each(function(){var e=l(this);if(e.is("option")||e.is("optgroup")){var t=o.item(e),n=o.matches(i,t);null!==n&&r.push(n)}}),e({results:r})},n.prototype.addOptions=function(e){a.appendMany(this.$element,e)},n.prototype.option=function(e){var t;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 n=l(t),i=this._normalizeItem(e);return i.element=t,a.StoreData(t,"data",i),n},n.prototype.item=function(e){var t={};if(null!=(t=a.GetData(e[0],"data")))return t;if(e.is("option"))t={id:e.val(),text:e.text(),disabled:e.prop("disabled"),selected:e.prop("selected"),title:e.prop("title")};else if(e.is("optgroup")){t={text:e.prop("label"),children:[],title:e.prop("title")};for(var n=e.children("option"),i=[],r=0;r<n.length;r++){var o=l(n[r]),s=this.item(o);i.push(s)}t.children=i}return(t=this._normalizeItem(t)).element=e[0],a.StoreData(e[0],"data",t),t},n.prototype._normalizeItem=function(e){e!==Object(e)&&(e={id:e,text:e});var t={selected:!1,disabled:!1};return null!=(e=l.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)),l.extend({},t,e)},n.prototype.matches=function(e,t){return this.options.get("matcher")(e,t)},n}),e.define("select2/data/array",["./select","../utils","jquery"],function(e,f,g){function i(e,t){var n=t.get("data")||[];i.__super__.constructor.call(this,e,t),this.addOptions(this.convertToOptions(n))}return f.Extend(i,e),i.prototype.select=function(n){var e=this.$element.find("option").filter(function(e,t){return t.value==n.id.toString()});0===e.length&&(e=this.option(n),this.addOptions(e)),i.__super__.select.call(this,n)},i.prototype.convertToOptions=function(e){function t(e){return function(){return g(this).val()==e.id}}for(var n=this,i=this.$element.find("option"),r=i.map(function(){return n.item(g(this)).id}).get(),o=[],s=0;s<e.length;s++){var a=this._normalizeItem(e[s]);if(0<=g.inArray(a.id,r)){var l=i.filter(t(a)),c=this.item(l),u=g.extend(!0,{},a,c),d=this.option(u);l.replaceWith(d)}else{var p=this.option(a);if(a.children){var h=this.convertToOptions(a.children);f.appendMany(p,h)}o.push(p)}}return o},i}),e.define("select2/data/ajax",["./array","../utils","jquery"],function(e,t,o){function n(e,t){this.ajaxOptions=this._applyDefaults(t.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),n.__super__.constructor.call(this,e,t)}return t.Extend(n,e),n.prototype._applyDefaults=function(e){var t={data:function(e){return o.extend({},e,{q:e.term})},transport:function(e,t,n){var i=o.ajax(e);return i.then(t),i.fail(n),i}};return o.extend({},t,e,!0)},n.prototype.processResults=function(e){return e},n.prototype.query=function(n,i){function e(){var e=t.transport(t,function(e){var t=r.processResults(e,n);r.options.get("debug")&&window.console&&console.error&&(t&&t.results&&o.isArray(t.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),i(t)},function(){"status"in e&&(0===e.status||"0"===e.status)||r.trigger("results:message",{message:"errorLoading"})});r._request=e}var r=this;null!=this._request&&(o.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var t=o.extend({type:"GET"},this.ajaxOptions);"function"==typeof t.url&&(t.url=t.url.call(this.$element,n)),"function"==typeof t.data&&(t.data=t.data.call(this.$element,n)),this.ajaxOptions.delay&&null!=n.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(e,this.ajaxOptions.delay)):e()},n}),e.define("select2/data/tags",["jquery"],function(u){function e(e,t,n){var i=n.get("tags"),r=n.get("createTag");void 0!==r&&(this.createTag=r);var o=n.get("insertTag");if(void 0!==o&&(this.insertTag=o),e.call(this,t,n),u.isArray(i))for(var s=0;s<i.length;s++){var a=i[s],l=this._normalizeItem(a),c=this.option(l);this.$element.append(c)}}return e.prototype.query=function(e,l,c){function u(e,t){for(var n=e.results,i=0;i<n.length;i++){var r=n[i],o=null!=r.children&&!u({results:r.children},!0);if((r.text||"").toUpperCase()===(l.term||"").toUpperCase()||o)return!t&&(e.data=n,void c(e))}if(t)return!0;var s=d.createTag(l);if(null!=s){var a=d.option(s);a.attr("data-select2-tag",!0),d.addOptions([a]),d.insertTag(n,s)}e.results=n,c(e)}var d=this;this._removeOldTags(),null!=l.term&&null==l.page?e.call(this,l,u):e.call(this,l,c)},e.prototype.createTag=function(e,t){var n=u.trim(t.term);return""===n?null:{id:n,text:n}},e.prototype.insertTag=function(e,t,n){t.unshift(n)},e.prototype._removeOldTags=function(){this._lastTag,this.$element.find("option[data-select2-tag]").each(function(){this.selected||u(this).remove()})},e}),e.define("select2/data/tokenizer",["jquery"],function(d){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){function i(e){var t=o._normalizeItem(e);if(!o.$element.find("option").filter(function(){return d(this).val()===t.id}).length){var n=o.option(t);n.attr("data-select2-tag",!0),o._removeOldTags(),o.addOptions([n])}r(t)}function r(e){o.trigger("select",{data:e})}var o=this;t.term=t.term||"";var s=this.tokenizer(t,this.options,i);s.term!==t.term&&(this.$search.length&&(this.$search.val(s.term),this.$search.focus()),t.term=s.term),e.call(this,t,n)},e.prototype.tokenizer=function(e,t,n,i){for(var r=n.get("tokenSeparators")||[],o=t.term,s=0,a=this.createTag||function(e){return{id:e.term,text:e.term}};s<o.length;){var l=o[s];if(-1!==d.inArray(l,r)){var c=o.substr(0,s),u=a(d.extend({},t,{term:c}));null!=u?(i(u),o=o.substr(s+1)||"",s=0):s++}else s++}return{term:o}},e}),e.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}),e.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}),e.define("select2/data/maximumSelectionLength",[],function(){function e(e,t,n){this.maximumSelectionLength=n.get("maximumSelectionLength"),e.call(this,t,n)}return e.prototype.query=function(n,i,r){var o=this;this.current(function(e){var t=null!=e?e.length:0;0<o.maximumSelectionLength&&t>=o.maximumSelectionLength?o.trigger("results:message",{message:"maximumSelected",args:{maximum:o.maximumSelectionLength}}):n.call(o,i,r)})},e}),e.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.attr("dir",this.options.get("dir")),this.$dropdown=e},n.prototype.bind=function(){},n.prototype.position=function(){},n.prototype.destroy=function(){this.$dropdown.remove()},n}),e.define("select2/dropdown/search",["jquery","../utils"],function(r){function e(){}return e.prototype.render=function(e){var t=e.call(this),n=r('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="textbox" /></span>');return this.$searchContainer=n,this.$search=n.find("input"),t.prepend(n),t},e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),this.$search.on("keydown",function(e){i.trigger("keypress",e),i._keyUpPrevented=e.isDefaultPrevented()}),this.$search.on("input",function(){r(this).off("keyup")}),this.$search.on("keyup input",function(e){i.handleSearch(e)}),t.on("open",function(){i.$search.attr("tabindex",0),i.$search.focus(),window.setTimeout(function(){i.$search.focus()},0)}),t.on("close",function(){i.$search.attr("tabindex",-1),i.$search.val(""),i.$search.blur()}),t.on("focus",function(){t.isOpen()||i.$search.focus()}),t.on("results:all",function(e){null!=e.query.term&&""!==e.query.term||(i.showSearch(e)?i.$searchContainer.removeClass("select2-search--hide"):i.$searchContainer.addClass("select2-search--hide"))})},e.prototype.handleSearch=function(){if(!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=!1},e.prototype.showSearch=function(){return!0},e}),e.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"string"==typeof t&&(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 r=t[i];this.placeholder.id===r.id&&n.splice(i,1)}return n},e}),e.define("select2/dropdown/infiniteScroll",["jquery"],function(r){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)},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",function(){var e=r.contains(document.documentElement,i.$loadingMore[0]);!i.loading&&e&&i.$results.offset().top+i.$results.outerHeight(!1)+50>=i.$loadingMore.offset().top+i.$loadingMore.outerHeight(!1)&&i.loadMore()})},e.prototype.loadMore=function(){this.loading=!0;var e=r.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=r('<li class="select2-results__option select2-results__option--load-more"role="treeitem" aria-disabled="true"></li>'),t=this.options.get("translations").get("loadingMore");return e.html(t(this.lastParams)),e},e}),e.define("select2/dropdown/attachBody",["jquery","../utils"],function(h,a){function e(e,t,n){this.$dropdownParent=n.get("dropdownParent")||h(document.body),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){var i=this,r=!1;e.call(this,t,n),t.on("open",function(){i._showDropdown(),i._attachPositioningHandler(t),r||(r=!0,t.on("results:all",function(){i._positionDropdown(),i._resizeDropdown()}),t.on("results:append",function(){i._positionDropdown(),i._resizeDropdown()}))}),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.attr("class",n.attr("class")),t.removeClass("select2"),t.addClass("select2-container--open"),t.css({position:"absolute",top:-999999}),this.$container=n},e.prototype.render=function(e){var t=h("<span></span>"),n=e.call(this);return t.append(n),this.$dropdownContainer=t},e.prototype._hideDropdown=function(){this.$dropdownContainer.detach()},e.prototype._attachPositioningHandler=function(e,t){var n=this,i="scroll.select2."+t.id,r="resize.select2."+t.id,o="orientationchange.select2."+t.id,s=this.$container.parents().filter(a.hasScroll);s.each(function(){a.StoreData(this,"select2-scroll-position",{x:h(this).scrollLeft(),y:h(this).scrollTop()})}),s.on(i,function(){var e=a.GetData(this,"select2-scroll-position");h(this).scrollTop(e.y)}),h(window).on(i+" "+r+" "+o,function(){n._positionDropdown(),n._resizeDropdown()})},e.prototype._detachPositioningHandler=function(e,t){var n="scroll.select2."+t.id,i="resize.select2."+t.id,r="orientationchange.select2."+t.id;this.$container.parents().filter(a.hasScroll).off(n),h(window).off(n+" "+i+" "+r)},e.prototype._positionDropdown=function(){var e=h(window),t=this.$dropdown.hasClass("select2-dropdown--above"),n=this.$dropdown.hasClass("select2-dropdown--below"),i=null,r=this.$container.offset();r.bottom=r.top+this.$container.outerHeight(!1);var o={height:this.$container.outerHeight(!1)};o.top=r.top,o.bottom=r.top+o.height;var s={height:this.$dropdown.outerHeight(!1)},a={top:e.scrollTop(),bottom:e.scrollTop()+e.height()},l=a.top<r.top-s.height,c=a.bottom>r.bottom+s.height,u={left:r.left,top:o.bottom},d=this.$dropdownParent;"static"===d.css("position")&&(d=d.offsetParent());var p=d.offset();u.top-=p.top,u.left-=p.left,t||n||(i="below"),c||!l||t?!l&&c&&t&&(i="below"):i="above",("above"==i||t&&"below"!==i)&&(u.top=o.top-p.top-s.height),null!=i&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+i),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+i)),this.$dropdownContainer.css(u)},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(){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},e}),e.define("select2/dropdown/minimumResultsForSearch",[],function(){function r(e){for(var t=0,n=0;n<e.length;n++){var i=e[n];i.children?t+=r(i.children):t++}return t}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!(r(t.data.results)<this.minimumResultsForSearch)&&e.call(this,t)},e}),e.define("select2/dropdown/selectOnClose",["../utils"],function(o){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){var n=t.originalSelect2Event;if("select"===n._type||"unselect"===n._type)return}var i=this.getHighlightedResults();if(!(i.length<1)){var r=o.GetData(i[0],"data");null!=r.element&&r.element.selected||null==r.element&&r.selected||this.trigger("select",{data:r})}},e}),e.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||this.trigger("close",{originalEvent:n,originalSelect2Event:t})},e}),e.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Please delete "+t+" character";return 1!=t&&(n+="s"),n},inputTooShort:function(e){return"Please enter "+(e.minimum-e.input.length)+" or more characters"},loadingMore:function(){return"Loading more results\u2026"},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\u2026"}}}),e.define("select2/defaults",["jquery","require","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./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","./i18n/en"],function(f,g,m,v,y,_,w,$,b,x,A,n,D,S,C,E,O,q,T,j,L,k,P,I,M,R,U,z,e){function t(){this.reset()}return t.prototype.apply=function(e){if(null==(e=f.extend(!0,{},this.defaults,e)).dataAdapter){if(null!=e.ajax?e.dataAdapter=C:null!=e.data?e.dataAdapter=S:e.dataAdapter=D,0<e.minimumInputLength&&(e.dataAdapter=x.Decorate(e.dataAdapter,q)),0<e.maximumInputLength&&(e.dataAdapter=x.Decorate(e.dataAdapter,T)),0<e.maximumSelectionLength&&(e.dataAdapter=x.Decorate(e.dataAdapter,j)),e.tags&&(e.dataAdapter=x.Decorate(e.dataAdapter,E)),null==e.tokenSeparators&&null==e.tokenizer||(e.dataAdapter=x.Decorate(e.dataAdapter,O)),null!=e.query){var t=g(e.amdBase+"compat/query");e.dataAdapter=x.Decorate(e.dataAdapter,t)}if(null!=e.initSelection){var n=g(e.amdBase+"compat/initSelection");e.dataAdapter=x.Decorate(e.dataAdapter,n)}}if(null==e.resultsAdapter&&(e.resultsAdapter=m,null!=e.ajax&&(e.resultsAdapter=x.Decorate(e.resultsAdapter,I)),null!=e.placeholder&&(e.resultsAdapter=x.Decorate(e.resultsAdapter,P)),e.selectOnClose&&(e.resultsAdapter=x.Decorate(e.resultsAdapter,U))),null==e.dropdownAdapter){if(e.multiple)e.dropdownAdapter=L;else{var i=x.Decorate(L,k);e.dropdownAdapter=i}if(0!==e.minimumResultsForSearch&&(e.dropdownAdapter=x.Decorate(e.dropdownAdapter,R)),e.closeOnSelect&&(e.dropdownAdapter=x.Decorate(e.dropdownAdapter,z)),null!=e.dropdownCssClass||null!=e.dropdownCss||null!=e.adaptDropdownCssClass){var r=g(e.amdBase+"compat/dropdownCss");e.dropdownAdapter=x.Decorate(e.dropdownAdapter,r)}e.dropdownAdapter=x.Decorate(e.dropdownAdapter,M)}if(null==e.selectionAdapter){if(e.multiple?e.selectionAdapter=y:e.selectionAdapter=v,null!=e.placeholder&&(e.selectionAdapter=x.Decorate(e.selectionAdapter,_)),e.allowClear&&(e.selectionAdapter=x.Decorate(e.selectionAdapter,w)),e.multiple&&(e.selectionAdapter=x.Decorate(e.selectionAdapter,$)),null!=e.containerCssClass||null!=e.containerCss||null!=e.adaptContainerCssClass){var o=g(e.amdBase+"compat/containerCss");e.selectionAdapter=x.Decorate(e.selectionAdapter,o)}e.selectionAdapter=x.Decorate(e.selectionAdapter,b)}if("string"==typeof e.language)if(0<e.language.indexOf("-")){var s=e.language.split("-")[0];e.language=[e.language,s]}else e.language=[e.language];if(f.isArray(e.language)){var a=new A;e.language.push("en");for(var l=e.language,c=0;c<l.length;c++){var u=l[c],d={};try{d=A.loadPath(u)}catch(f){try{u=this.defaults.amdLanguageBase+u,d=A.loadPath(u)}catch(f){e.debug&&window.console&&console.warn&&console.warn('Select2: The language file for "'+u+'" could not be automatically loaded. A fallback will be used instead.');continue}}a.extend(d)}e.translations=a}else{var p=A.loadPath(this.defaults.amdLanguageBase+"en"),h=new A(e.language);h.extend(p),e.translations=h}return e},t.prototype.reset=function(){function s(e){function t(e){return n[e]||e}return e.replace(/[^\u0000-\u007E]/g,t)}function a(e,t){if(""===f.trim(e.term))return t;if(t.children&&0<t.children.length){for(var n=f.extend(!0,{},t),i=t.children.length-1;0<=i;i--)null==a(e,t.children[i])&&n.children.splice(i,1);return 0<n.children.length?n:a(e,n)}var r=s(t.text).toUpperCase(),o=s(e.term).toUpperCase();return-1<r.indexOf(o)?t:null}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:x.escapeMarkup,language:e,matcher:a,minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,sorter:function(e){return e},templateResult:function(e){return e.text},templateSelection:function(e){return e.text},theme:"default",width:"resolve"}},t.prototype.set=function(e,t){var n={};n[f.camelCase(e)]=t;var i=x._convertData(n);f.extend(!0,this.defaults,i)},new t}),e.define("select2/options",["require","jquery","./defaults","./utils"],function(i,o,r,s){function e(e,t){if(this.options=e,null!=t&&this.fromElement(t),this.options=r.apply(this.options),t&&t.is("input")){var n=i(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=s.Decorate(this.options.dataAdapter,n)}}return e.prototype.fromElement=function(e){var t=["select2"];null==this.options.multiple&&(this.options.multiple=e.prop("multiple")),null==this.options.disabled&&(this.options.disabled=e.prop("disabled")),null==this.options.language&&(e.prop("lang")?this.options.language=e.prop("lang").toLowerCase():e.closest("[lang]").prop("lang")&&(this.options.language=e.closest("[lang]").prop("lang"))),null==this.options.dir&&(e.prop("dir")?this.options.dir=e.prop("dir"):e.closest("[dir]").prop("dir")?this.options.dir=e.closest("[dir]").prop("dir"):this.options.dir="ltr"),e.prop("disabled",this.options.disabled),e.prop("multiple",this.options.multiple),s.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.'),s.StoreData(e[0],"data",s.GetData(e[0],"select2Tags")),s.StoreData(e[0],"tags",!0)),s.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.attr("ajax--url",s.GetData(e[0],"ajaxUrl")),s.StoreData(e[0],"ajax-Url",s.GetData(e[0],"ajaxUrl")));var n={};n=o.fn.jquery&&"1."==o.fn.jquery.substr(0,2)&&e[0].dataset?o.extend(!0,{},e[0].dataset,s.GetData(e[0])):s.GetData(e[0]);var i=o.extend(!0,{},n);for(var r in i=s._convertData(i))-1<o.inArray(r,t)||(o.isPlainObject(this.options[r])?o.extend(this.options[r],i[r]):this.options[r]=i[r]);return this},e.prototype.get=function(e){return this.options[e]},e.prototype.set=function(e,t){this.options[e]=t},e}),e.define("select2/core",["jquery","./options","./utils","./keys"],function(r,c,u,i){var d=function(e,t){null!=u.GetData(e[0],"select2")&&u.GetData(e[0],"select2").destroy(),this.$element=e,this.id=this._generateId(e),t=t||{},this.options=new c(t,e),d.__super__.constructor.call(this);var n=e.attr("tabindex")||0;u.StoreData(e[0],"old-tabindex",n),e.attr("tabindex","-1");var i=this.options.get("dataAdapter");this.dataAdapter=new i(e,this.options);var r=this.render();this._placeContainer(r);var o=this.options.get("selectionAdapter");this.selection=new o(e,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,r);var s=this.options.get("dropdownAdapter");this.dropdown=new s(e,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,r);var a=this.options.get("resultsAdapter");this.results=new a(e,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var l=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(e){l.trigger("selection:update",{data:e})}),e.addClass("select2-hidden-accessible"),e.attr("aria-hidden","true"),this._syncAttributes(),u.StoreData(e[0],"select2",this),e.data("select2",this)};return u.Extend(d,u.Observable),d.prototype._generateId=function(e){return"select2-"+(null!=e.attr("id")?e.attr("id"):null!=e.attr("name")?e.attr("name")+"-"+u.generateChars(2):u.generateChars(4)).replace(/(:|\.|\[|\]|,)/g,"")},d.prototype._placeContainer=function(e){e.insertAfter(this.$element);var t=this._resolveWidth(this.$element,this.options.get("width"));null!=t&&e.css("width",t)},d.prototype._resolveWidth=function(e,t){var n=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==t){var i=this._resolveWidth(e,"style");return null!=i?i:this._resolveWidth(e,"element")}if("element"==t){var r=e.outerWidth(!1);return r<=0?"auto":r+"px"}if("style"!=t)return t;var o=e.attr("style");if("string"!=typeof o)return null;for(var s=o.split(";"),a=0,l=s.length;a<l;a+=1){var c=s[a].replace(/\s/g,"").match(n);if(null!==c&&1<=c.length)return c[1]}return null},d.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)},d.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=u.bind(this._syncAttributes,this),this._syncS=u.bind(this._syncSubtree,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._syncA);var e=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=e?(this._observer=new e(function(e){r.each(e,t._syncA),r.each(e,t._syncS)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})):this.$element[0].addEventListener&&(this.$element[0].addEventListener("DOMAttrModified",t._syncA,!1),this.$element[0].addEventListener("DOMNodeInserted",t._syncS,!1),this.$element[0].addEventListener("DOMNodeRemoved",t._syncS,!1))},d.prototype._registerDataEvents=function(){var n=this;this.dataAdapter.on("*",function(e,t){n.trigger(e,t)})},d.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===r.inArray(e,i)&&n.trigger(e,t)})},d.prototype._registerDropdownEvents=function(){var n=this;this.dropdown.on("*",function(e,t){n.trigger(e,t)})},d.prototype._registerResultsEvents=function(){var n=this;this.results.on("*",function(e,t){n.trigger(e,t)})},d.prototype._registerEvents=function(){var n=this;this.on("open",function(){n.$container.addClass("select2-container--open")}),this.on("close",function(){n.$container.removeClass("select2-container--open")}),this.on("enable",function(){n.$container.removeClass("select2-container--disabled")}),this.on("disable",function(){n.$container.addClass("select2-container--disabled")}),this.on("blur",function(){n.$container.removeClass("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.TAB||t===i.UP&&e.altKey?(n.close(),e.preventDefault()):t===i.ENTER?(n.trigger("results:select",{}),e.preventDefault()):t===i.SPACE&&e.ctrlKey?(n.trigger(
|
4
|
+
"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())})},d.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.options.get("disabled")?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},d.prototype._syncSubtree=function(e,t){var n=!1,i=this;if(!e||!e.target||"OPTION"===e.target.nodeName||"OPTGROUP"===e.target.nodeName){if(t)if(t.addedNodes&&0<t.addedNodes.length)for(var r=0;r<t.addedNodes.length;r++){t.addedNodes[r].selected&&(n=!0)}else t.removedNodes&&0<t.removedNodes.length&&(n=!0);else n=!0;n&&this.dataAdapter.current(function(e){i.trigger("selection:update",{data:e})})}},d.prototype.trigger=function(e,t){var n=d.__super__.trigger,i={open:"opening",close:"closing",select:"selecting",unselect:"unselecting",clear:"clearing"};if(void 0===t&&(t={}),e in i){var r=i[e],o={prevented:!1,name:e,args:t};if(n.call(this,r,o),o.prevented)return void(t.prevented=!0)}n.call(this,e,t)},d.prototype.toggleDropdown=function(){this.options.get("disabled")||(this.isOpen()?this.close():this.open())},d.prototype.open=function(){this.isOpen()||this.trigger("query",{})},d.prototype.close=function(){this.isOpen()&&this.trigger("close",{})},d.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},d.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")},d.prototype.focus=function(){this.hasFocus()||(this.$container.addClass("select2-container--focus"),this.trigger("focus",{}))},d.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.prop("disabled") instead.'),null!=e&&0!==e.length||(e=[!0]);var t=!e[0];this.$element.prop("disabled",t)},d.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},d.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();var t=e[0];r.isArray(t)&&(t=r.map(t,function(e){return e.toString()})),this.$element.val(t).trigger("change")},d.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._syncA),null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&(this.$element[0].removeEventListener("DOMAttrModified",this._syncA,!1),this.$element[0].removeEventListener("DOMNodeInserted",this._syncS,!1),this.$element[0].removeEventListener("DOMNodeRemoved",this._syncS,!1)),this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",u.GetData(this.$element[0],"old-tabindex")),this.$element.removeClass("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),u.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},d.prototype.render=function(){var e=r('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return e.attr("dir",this.options.get("dir")),this.$container=e,this.$container.addClass("select2-container--"+this.options.get("theme")),u.StoreData(e[0],"element",this.$element),e},d}),e.define("select2/compat/utils",["jquery"],function(s){function e(e,t,n){var i,r,o=[];(i=s.trim(e.attr("class")))&&s((i=""+i).split(/\s+/)).each(function(){0===this.indexOf("select2-")&&o.push(this)}),(i=s.trim(t.attr("class")))&&s((i=""+i).split(/\s+/)).each(function(){0!==this.indexOf("select2-")&&null!=(r=n(this))&&o.push(r)}),e.attr("class",o.join(" "))}return{syncCssClasses:e}}),e.define("select2/compat/containerCss",["jquery","./utils"],function(s,a){function l(){return null}function e(){}return e.prototype.render=function(e){var t=e.call(this),n=this.options.get("containerCssClass")||"";s.isFunction(n)&&(n=n(this.$element));var i=this.options.get("adaptContainerCssClass");if(i=i||l,-1!==n.indexOf(":all:")){n=n.replace(":all:","");var r=i;i=function(e){var t=r(e);return null!=t?t+" "+e:e}}var o=this.options.get("containerCss")||{};return s.isFunction(o)&&(o=o(this.$element)),a.syncCssClasses(t,this.$element,i),t.css(o),t.addClass(n),t},e}),e.define("select2/compat/dropdownCss",["jquery","./utils"],function(s,a){function l(){return null}function e(){}return e.prototype.render=function(e){var t=e.call(this),n=this.options.get("dropdownCssClass")||"";s.isFunction(n)&&(n=n(this.$element));var i=this.options.get("adaptDropdownCssClass");if(i=i||l,-1!==n.indexOf(":all:")){n=n.replace(":all:","");var r=i;i=function(e){var t=r(e);return null!=t?t+" "+e:e}}var o=this.options.get("dropdownCss")||{};return s.isFunction(o)&&(o=o(this.$element)),a.syncCssClasses(t,this.$element,i),t.css(o),t.addClass(n),t},e}),e.define("select2/compat/initSelection",["jquery"],function(i){function e(e,t,n){n.get("debug")&&window.console&&console.warn&&console.warn("Select2: The `initSelection` option has been deprecated in favor of a custom data adapter that overrides the `current` method. This method is now called multiple times instead of a single time when the instance is initialized. Support will be removed for the `initSelection` option in future versions of Select2"),this.initSelection=n.get("initSelection"),this._isInitialized=!1,e.call(this,t,n)}return e.prototype.current=function(e,t){var n=this;this._isInitialized?e.call(this,t):this.initSelection.call(null,this.$element,function(e){n._isInitialized=!0,i.isArray(e)||(e=[e]),t(e)})},e}),e.define("select2/compat/inputData",["jquery","../utils"],function(s,i){function e(e,t,n){this._currentData=[],this._valueSeparator=n.get("valueSeparator")||",","hidden"===t.prop("type")&&n.get("debug")&&console&&console.warn&&console.warn("Select2: Using a hidden input with Select2 is no longer supported and may stop working in the future. It is recommended to use a `<select>` element instead."),e.call(this,t,n)}return e.prototype.current=function(e,t){function i(e,t){var n=[];return e.selected||-1!==s.inArray(e.id,t)?(e.selected=!0,n.push(e)):e.selected=!1,e.children&&n.push.apply(n,i(e.children,t)),n}for(var n=[],r=0;r<this._currentData.length;r++){var o=this._currentData[r];n.push.apply(n,i(o,this.$element.val().split(this._valueSeparator)))}t(n)},e.prototype.select=function(e,t){if(this.options.get("multiple")){var n=this.$element.val();n+=this._valueSeparator+t.id,this.$element.val(n),this.$element.trigger("change")}else this.current(function(e){s.map(e,function(e){e.selected=!1})}),this.$element.val(t.id),this.$element.trigger("change")},e.prototype.unselect=function(e,r){var o=this;r.selected=!1,this.current(function(e){for(var t=[],n=0;n<e.length;n++){var i=e[n];r.id!=i.id&&t.push(i.id)}o.$element.val(t.join(o._valueSeparator)),o.$element.trigger("change")})},e.prototype.query=function(e,t,n){for(var i=[],r=0;r<this._currentData.length;r++){var o=this._currentData[r],s=this.matches(t,o);null!==s&&i.push(s)}n({results:i})},e.prototype.addOptions=function(e,t){var n=s.map(t,function(e){return i.GetData(e[0],"data")});this._currentData.push.apply(this._currentData,n)},e}),e.define("select2/compat/matcher",["jquery"],function(s){function e(o){function e(e,t){var n=s.extend(!0,{},t);if(null==e.term||""===s.trim(e.term))return n;if(t.children){for(var i=t.children.length-1;0<=i;i--){var r=t.children[i];o(e.term,r.text,r)||n.children.splice(i,1)}if(0<n.children.length)return n}return o(e.term,t.text,t)?n:null}return e}return e}),e.define("select2/compat/query",[],function(){function e(e,t,n){n.get("debug")&&window.console&&console.warn&&console.warn("Select2: The `query` option has been deprecated in favor of a custom data adapter that overrides the `query` method. Support will be removed for the `query` option in future versions of Select2."),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.callback=n,this.options.get("query").call(null,t)},e}),e.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.addClass("select2-dropdown--below"),n.addClass("select2-container--below")},e}),e.define("select2/dropdown/stopPropagation",[],function(){function e(){}return e.prototype.bind=function(e,t,n){e.call(this,t,n);var i=["blur","change","click","dblclick","focus","focusin","focusout","input","keydown","keyup","keypress","mousedown","mouseenter","mouseleave","mousemove","mouseover","mouseup","search","touchend","touchstart"];this.$dropdown.on(i.join(" "),function(e){e.stopPropagation()})},e}),e.define("select2/selection/stopPropagation",[],function(){function e(){}return e.prototype.bind=function(e,t,n){e.call(this,t,n);var i=["blur","change","click","dblclick","focus","focusin","focusout","input","keydown","keyup","keypress","mousedown","mouseenter","mouseleave","mousemove","mouseover","mouseup","search","touchend","touchstart"];this.$selection.on(i.join(" "),function(e){e.stopPropagation()})},e}),t=function(p){function t(e){var t=e||window.event,n=v.call(arguments,1),i=0,r=0,o=0,s=0,a=0,l=0;if((e=p.event.fix(t)).type="mousewheel","detail"in t&&(o=-1*t.detail),"wheelDelta"in t&&(o=t.wheelDelta),"wheelDeltaY"in t&&(o=t.wheelDeltaY),"wheelDeltaX"in t&&(r=-1*t.wheelDeltaX),"axis"in t&&t.axis===t.HORIZONTAL_AXIS&&(r=-1*o,o=0),i=0===o?r:o,"deltaY"in t&&(i=o=-1*t.deltaY),"deltaX"in t&&(r=t.deltaX,0===o&&(i=-1*r)),0!==o||0!==r){if(1===t.deltaMode){var c=p.data(this,"mousewheel-line-height");i*=c,o*=c,r*=c}else if(2===t.deltaMode){var u=p.data(this,"mousewheel-page-height");i*=u,o*=u,r*=u}if(s=Math.max(Math.abs(o),Math.abs(r)),(!m||s<m)&&(f(t,m=s)&&(m/=40)),f(t,s)&&(i/=40,r/=40,o/=40),i=Math[1<=i?"floor":"ceil"](i/m),r=Math[1<=r?"floor":"ceil"](r/m),o=Math[1<=o?"floor":"ceil"](o/m),y.settings.normalizeOffset&&this.getBoundingClientRect){var d=this.getBoundingClientRect();a=e.clientX-d.left,l=e.clientY-d.top}return e.deltaX=r,e.deltaY=o,e.deltaFactor=m,e.offsetX=a,e.offsetY=l,e.deltaMode=0,n.unshift(e,i,r,o),g&&clearTimeout(g),g=setTimeout(h,200),(p.event.dispatch||p.event.handle).apply(this,n)}}function h(){m=null}function f(e,t){return y.settings.adjustOldDeltas&&"mousewheel"===e.type&&t%120==0}var g,m,e=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],n="onwheel"in document||9<=document.documentMode?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],v=Array.prototype.slice;if(p.event.fixHooks)for(var i=e.length;i;)p.event.fixHooks[e[--i]]=p.event.mouseHooks;var y=p.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var e=n.length;e;)this.addEventListener(n[--e],t,!1);else this.onmousewheel=t;p.data(this,"mousewheel-line-height",y.getLineHeight(this)),p.data(this,"mousewheel-page-height",y.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var e=n.length;e;)this.removeEventListener(n[--e],t,!1);else this.onmousewheel=null;p.removeData(this,"mousewheel-line-height"),p.removeData(this,"mousewheel-page-height")},getLineHeight:function(e){var t=p(e),n=t["offsetParent"in p.fn?"offsetParent":"parent"]();return n.length||(n=p("body")),parseInt(n.css("fontSize"),10)||parseInt(t.css("fontSize"),10)||16},getPageHeight:function(e){return p(e).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};p.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}})},"function"==typeof e.define&&e.define.amd?e.define("jquery-mousewheel",["jquery"],t):"object"==typeof exports?module.exports=t:t(n),e.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults","./select2/utils"],function(r,e,o,t,s){if(null==r.fn.select2){var a=["open","close","destroy"];r.fn.select2=function(t){if("object"==typeof(t=t||{}))return this.each(function(){var e=r.extend(!0,{},t);new o(r(this),e)}),this;if("string"!=typeof t)throw new Error("Invalid arguments for Select2: "+t);var n,i=Array.prototype.slice.call(arguments,1);return this.each(function(){var e=s.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<r.inArray(t,a)?this:n}}return null==r.fn.select2.defaults&&(r.fn.select2.defaults=t),o}),{define:e.define,require:e.require}}(),t=e.require("jquery.select2");return n.fn.select2.amd=e,t});
|
5
|
+
// bootstrap.bundle.js
|
6
|
+
/*!
|
7
|
+
* Bootstrap v4.1.1 (https://getbootstrap.com/)
|
8
|
+
* Copyright 2011-2018 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
9
|
+
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
10
|
+
*/
|
11
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("jquery")):"function"==typeof define&&define.amd?define(["exports","jquery"],e):e(t.bootstrap={},t.jQuery)}(this,function(t,e){"use strict";function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function w(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t}function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function N(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),i.forEach(function(t){r(e,t,n[t])})}return e}function h(t,e){t.prototype=Object.create(e.prototype),(t.prototype.constructor=t).__proto__=e}function n(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then(function(){e=!1,t()}))}}function o(t){var e=!1;return function(){e||(e=!0,setTimeout(function(){e=!1,t()},Te))}}function a(t){return t&&"[object Function]"==={}.toString.call(t)}function T(t,e){if(1!==t.nodeType)return[];var n=getComputedStyle(t,null);return e?n[e]:n}function d(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function g(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=T(t),n=e.overflow,i=e.overflowX,r=e.overflowY;return/(auto|scroll|overlay)/.test(n+r+i)?t:g(d(t))}function m(t){return 11===t?Ae:10===t?Ie:Ae||Ie}function E(t){if(!t)return document.documentElement;for(var e=m(10)?document.body:null,n=t.offsetParent;n===e&&t.nextElementSibling;)n=(t=t.nextElementSibling).offsetParent;var i=n&&n.nodeName;return i&&"BODY"!==i&&"HTML"!==i?-1!==["TD","TABLE"].indexOf(n.nodeName)&&"static"===T(n,"position")?E(n):n:t?t.ownerDocument.documentElement:document.documentElement}function l(t){var e=t.nodeName;return"BODY"!==e&&("HTML"===e||E(t.firstElementChild)===t)}function c(t){return null!==t.parentNode?c(t.parentNode):t}function p(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return document.documentElement;var n=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,i=n?t:e,r=n?e:t,o=document.createRange();o.setStart(i,0),o.setEnd(r,0);var s=o.commonAncestorContainer;if(t!==s&&e!==s||i.contains(r))return l(s)?s:E(s);var a=c(t);return a.host?p(a.host,e):p(t,c(e).host)}function u(t,e){var n="top"===(1<arguments.length&&e!==undefined?arguments[1]:"top")?"scrollTop":"scrollLeft",i=t.nodeName;if("BODY"!==i&&"HTML"!==i)return t[n];var r=t.ownerDocument.documentElement;return(t.ownerDocument.scrollingElement||r)[n]}function _(t,e,n){var i=2<arguments.length&&n!==undefined&&arguments[2],r=u(e,"top"),o=u(e,"left"),s=i?-1:1;return t.top+=r*s,t.bottom+=r*s,t.left+=o*s,t.right+=o*s,t}function v(t,e){var n="x"===e?"Left":"Top",i="Left"===n?"Right":"Bottom";return parseFloat(t["border"+n+"Width"],10)+parseFloat(t["border"+i+"Width"],10)}function s(t,e,n,i){return Math.max(e["offset"+t],e["scroll"+t],n["client"+t],n["offset"+t],n["scroll"+t],m(10)?n["offset"+t]+i["margin"+("Height"===t?"Top":"Left")]+i["margin"+("Height"===t?"Bottom":"Right")]:0)}function y(){var t=document.body,e=document.documentElement,n=m(10)&&getComputedStyle(e);return{height:s("Height",t,e,n),width:s("Width",t,e,n)}}function C(t){return Se({},t,{right:t.left+t.width,bottom:t.top+t.height})}function A(t){var e={};try{if(m(10)){e=t.getBoundingClientRect();var n=u(t,"top"),i=u(t,"left");e.top+=n,e.left+=i,e.bottom+=n,e.right+=i}else e=t.getBoundingClientRect()}catch(h){}var r={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},o="HTML"===t.nodeName?y():{},s=o.width||t.clientWidth||r.right-r.left,a=o.height||t.clientHeight||r.bottom-r.top,l=t.offsetWidth-s,c=t.offsetHeight-a;if(l||c){var f=T(t);l-=v(f,"x"),c-=v(f,"y"),r.width-=l,r.height-=c}return C(r)}function I(t,e,n){var i=2<arguments.length&&n!==undefined&&arguments[2],r=m(10),o="HTML"===e.nodeName,s=A(t),a=A(e),l=g(t),c=T(e),f=parseFloat(c.borderTopWidth,10),h=parseFloat(c.borderLeftWidth,10);i&&"HTML"===e.nodeName&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var u=C({top:s.top-a.top-f,left:s.left-a.left-h,width:s.width,height:s.height});if(u.marginTop=0,u.marginLeft=0,!r&&o){var d=parseFloat(c.marginTop,10),p=parseFloat(c.marginLeft,10);u.top-=f-d,u.bottom-=f-d,u.left-=h-p,u.right-=h-p,u.marginTop=d,u.marginLeft=p}return(r&&!i?e.contains(l):e===l&&"BODY"!==l.nodeName)&&(u=_(u,e)),u}function O(t,e){var n=1<arguments.length&&e!==undefined&&arguments[1],i=t.ownerDocument.documentElement,r=I(t,i),o=Math.max(i.clientWidth,window.innerWidth||0),s=Math.max(i.clientHeight,window.innerHeight||0),a=n?0:u(i),l=n?0:u(i,"left");return C({top:a-r.top+r.marginTop,left:l-r.left+r.marginLeft,width:o,height:s})}function b(t){var e=t.nodeName;return"BODY"!==e&&"HTML"!==e&&("fixed"===T(t,"position")||b(d(t)))}function D(t){if(!t||!t.parentElement||m())return document.documentElement;for(var e=t.parentElement;e&&"none"===T(e,"transform");)e=e.parentElement;return e||document.documentElement}function S(t,e,n,i,r){var o=4<arguments.length&&r!==undefined&&arguments[4],s={top:0,left:0},a=o?D(t):p(t,e);if("viewport"===i)s=O(a,o);else{var l=void 0;"scrollParent"===i?"BODY"===(l=g(d(e))).nodeName&&(l=t.ownerDocument.documentElement):l="window"===i?t.ownerDocument.documentElement:i;var c=I(l,a,o);if("HTML"!==l.nodeName||b(a))s=c;else{var f=y(),h=f.height,u=f.width;s.top+=c.top-c.marginTop,s.bottom=h+c.top,s.left+=c.left-c.marginLeft,s.right=u+c.left}}return s.left+=n,s.top+=n,s.right-=n,s.bottom-=n,s}function L(t){return t.width*t.height}function f(t,e,i,n,r,o){var s=5<arguments.length&&o!==undefined?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var a=S(i,n,s,r),l={top:{width:a.width,height:e.top-a.top},right:{width:a.right-e.right,height:a.height},bottom:{width:a.width,height:a.bottom-e.bottom},left:{width:e.left-a.left,height:a.height}},c=Object.keys(l).map(function(t){return Se({key:t},l[t],{area:L(l[t])})}).sort(function(t,e){return e.area-t.area}),f=c.filter(function(t){var e=t.width,n=t.height;return e>=i.clientWidth&&n>=i.clientHeight}),h=0<f.length?f[0].key:c[0].key,u=t.split("-")[1];return h+(u?"-"+u:"")}function P(t,e,n,i){var r=3<arguments.length&&i!==undefined?arguments[3]:null;return I(n,r?D(e):p(e,n),r)}function R(t){var e=getComputedStyle(t),n=parseFloat(e.marginTop)+parseFloat(e.marginBottom),i=parseFloat(e.marginLeft)+parseFloat(e.marginRight);return{width:t.offsetWidth+i,height:t.offsetHeight+n}}function H(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,function(t){return e[t]})}function k(t,e,n){n=n.split("-")[0];var i=R(t),r={width:i.width,height:i.height},o=-1!==["right","left"].indexOf(n),s=o?"top":"left",a=o?"left":"top",l=o?"height":"width",c=o?"width":"height";return r[s]=e[s]+e[l]/2-i[l]/2,r[a]=n===a?e[a]-i[c]:e[H(a)],r}function W(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function F(t,e,n){if(Array.prototype.findIndex)return t.findIndex(function(t){return t[e]===n});var i=W(t,function(t){return t[e]===n});return t.indexOf(i)}function M(t,n,e){return(e===undefined?t:t.slice(0,F(t,"name",e))).forEach(function(t){t["function"]&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var e=t["function"]||t.fn;t.enabled&&a(e)&&(n.offsets.popper=C(n.offsets.popper),n.offsets.reference=C(n.offsets.reference),n=e(n,t))}),n}function x(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=P(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=f(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.positionFixed=this.options.positionFixed,t.offsets.popper=k(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",t=M(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}function U(t,n){return t.some(function(t){var e=t.name;return t.enabled&&e===n})}function V(t){for(var e=[!1,"ms","Webkit","Moz","O"],n=t.charAt(0).toUpperCase()+t.slice(1),i=0;i<e.length;i++){var r=e[i],o=r?""+r+n:t;if("undefined"!=typeof document.body.style[o])return o}return null}function j(){return this.state.isDestroyed=!0,U(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[V("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function B(t){var e=t.ownerDocument;return e?e.defaultView:window}function G(t,e,n,i){var r="BODY"===t.nodeName,o=r?t.ownerDocument.defaultView:t;o.addEventListener(e,n,{passive:!0}),r||G(g(o.parentNode),e,n,i),i.push(o)}function K(t,e,n,i){n.updateBound=i,B(t).addEventListener("resize",n.updateBound,{passive:!0});var r=g(t);return G(r,"scroll",n.updateBound,n.scrollParents),n.scrollElement=r,n.eventsEnabled=!0,n}function Q(){this.state.eventsEnabled||(this.state=K(this.reference,this.options,this.state,this.scheduleUpdate))}function Y(t,e){return B(t).removeEventListener("resize",e.updateBound),e.scrollParents.forEach(function(t){t.removeEventListener("scroll",e.updateBound)}),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e}function q(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=Y(this.reference,this.state))}function X(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function z(n,i){Object.keys(i).forEach(function(t){var e="";-1!==["width","height","top","right","bottom","left"].indexOf(t)&&X(i[t])&&(e="px"),n.style[t]=i[t]+e})}function J(e,n){Object.keys(n).forEach(function(t){!1!==n[t]?e.setAttribute(t,n[t]):e.removeAttribute(t)})}function Z(t){return z(t.instance.popper,t.styles),J(t.instance.popper,t.attributes),t.arrowElement&&Object.keys(t.arrowStyles).length&&z(t.arrowElement,t.arrowStyles),t}function $(t,e,n,i,r){var o=P(r,e,t,n.positionFixed),s=f(n.placement,o,e,t,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return e.setAttribute("x-placement",s),z(e,{position:n.positionFixed?"fixed":"absolute"}),n}function tt(t,e){var n=e.x,i=e.y,r=t.offsets.popper,o=W(t.instance.modifiers,function(t){return"applyStyle"===t.name}).gpuAcceleration;o!==undefined&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var s=o!==undefined?o:e.gpuAcceleration,a=A(E(t.instance.popper)),l={position:r.position},c={left:Math.floor(r.left),top:Math.round(r.top),bottom:Math.round(r.bottom),right:Math.floor(r.right)},f="bottom"===n?"top":"bottom",h="right"===i?"left":"right",u=V("transform"),d=void 0,p=void 0;if(p="bottom"===f?-a.height+c.bottom:c.top,d="right"===h?-a.width+c.right:c.left,s&&u)l[u]="translate3d("+d+"px, "+p+"px, 0)",l[f]=0,l[h]=0,l.willChange="transform";else{var g="bottom"===f?-1:1,m="right"===h?-1:1;l[f]=p*g,l[h]=d*m,l.willChange=f+", "+h}var _={"x-placement":t.placement};return t.attributes=Se({},_,t.attributes),t.styles=Se({},l,t.styles),t.arrowStyles=Se({},t.offsets.arrow,t.arrowStyles),t}function et(t,e,n){var i=W(t,function(t){return t.name===e}),r=!!i&&t.some(function(t){return t.name===n&&t.enabled&&t.order<i.order});if(!r){var o="`"+e+"`",s="`"+n+"`";console.warn(s+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return r}function nt(t,e){var n;if(!et(t.instance.modifiers,"arrow","keepTogether"))return t;var i=e.element;if("string"==typeof i){if(!(i=t.instance.popper.querySelector(i)))return t}else if(!t.instance.popper.contains(i))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),t;var r=t.placement.split("-")[0],o=t.offsets,s=o.popper,a=o.reference,l=-1!==["left","right"].indexOf(r),c=l?"height":"width",f=l?"Top":"Left",h=f.toLowerCase(),u=l?"left":"top",d=l?"bottom":"right",p=R(i)[c];a[d]-p<s[h]&&(t.offsets.popper[h]-=s[h]-(a[d]-p)),a[h]+p>s[d]&&(t.offsets.popper[h]+=a[h]+p-s[d]),t.offsets.popper=C(t.offsets.popper);var g=a[h]+a[c]/2-p/2,m=T(t.instance.popper),_=parseFloat(m["margin"+f],10),E=parseFloat(m["border"+f+"Width"],10),v=g-t.offsets.popper[h]-_-E;return v=Math.max(Math.min(s[c]-p,v),0),t.arrowElement=i,t.offsets.arrow=(De(n={},h,Math.round(v)),De(n,u,""),n),t}function it(t){return"end"===t?"start":"start"===t?"end":t}function rt(t,e){var n=1<arguments.length&&e!==undefined&&arguments[1],i=Ne.indexOf(t),r=Ne.slice(i+1).concat(Ne.slice(0,i));return n?r.reverse():r}function ot(d,p){if(U(d.instance.modifiers,"inner"))return d;if(d.flipped&&d.placement===d.originalPlacement)return d;var g=S(d.instance.popper,d.instance.reference,p.padding,p.boundariesElement,d.positionFixed),m=d.placement.split("-")[0],_=H(m),E=d.placement.split("-")[1]||"",v=[];switch(p.behavior){case Le.FLIP:v=[m,_];break;case Le.CLOCKWISE:v=rt(m);break;case Le.COUNTERCLOCKWISE:v=rt(m,!0);break;default:v=p.behavior}return v.forEach(function(t,e){if(m!==t||v.length===e+1)return d;m=d.placement.split("-")[0],_=H(m);var n=d.offsets.popper,i=d.offsets.reference,r=Math.floor,o="left"===m&&r(n.right)>r(i.left)||"right"===m&&r(n.left)<r(i.right)||"top"===m&&r(n.bottom)>r(i.top)||"bottom"===m&&r(n.top)<r(i.bottom),s=r(n.left)<r(g.left),a=r(n.right)>r(g.right),l=r(n.top)<r(g.top),c=r(n.bottom)>r(g.bottom),f="left"===m&&s||"right"===m&&a||"top"===m&&l||"bottom"===m&&c,h=-1!==["top","bottom"].indexOf(m),u=!!p.flipVariations&&(h&&"start"===E&&s||h&&"end"===E&&a||!h&&"start"===E&&l||!h&&"end"===E&&c);(o||f||u)&&(d.flipped=!0,(o||f)&&(m=v[e+1]),u&&(E=it(E)),d.placement=m+(E?"-"+E:""),d.offsets.popper=Se({},d.offsets.popper,k(d.instance.popper,d.offsets.reference,d.placement)),d=M(d.instance.modifiers,d,"flip"))}),d}function st(t){var e=t.offsets,n=e.popper,i=e.reference,r=t.placement.split("-")[0],o=Math.floor,s=-1!==["top","bottom"].indexOf(r),a=s?"right":"bottom",l=s?"left":"top",c=s?"width":"height";return n[a]<o(i[l])&&(t.offsets.popper[l]=o(i[l])-n[c]),n[l]>o(i[a])&&(t.offsets.popper[l]=o(i[a])),t}function at(t,e,n,i){var r=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+r[1],s=r[2];if(!o)return t;if(0===s.indexOf("%")){var a=void 0;switch(s){case"%p":a=n;break;case"%":case"%r":default:a=i}return C(a)[e]/100*o}if("vh"!==s&&"vw"!==s)return o;return("vh"===s?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o}function lt(t,r,o,e){var s=[0,0],a=-1!==["right","left"].indexOf(e),n=t.split(/(\+|\-)/).map(function(t){return t.trim()}),i=n.indexOf(W(n,function(t){return-1!==t.search(/,|\s/)}));n[i]&&-1===n[i].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1!==i?[n.slice(0,i).concat([n[i].split(l)[0]]),[n[i].split(l)[1]].concat(n.slice(i+1))]:[n];return(c=c.map(function(t,e){var n=(1===e?!a:a)?"height":"width",i=!1;return t.reduce(function(t,e){return""===t[t.length-1]&&-1!==["+","-"].indexOf(e)?(t[t.length-1]=e,i=!0,t):i?(t[t.length-1]+=e,i=!1,t):t.concat(e)},[]).map(function(t){return at(t,n,r,o)})})).forEach(function(n,i){n.forEach(function(t,e){X(t)&&(s[i]+=t*("-"===n[e-1]?-1:1))})}),s}function ct(t,e){var n=e.offset,i=t.placement,r=t.offsets,o=r.popper,s=r.reference,a=i.split("-")[0],l=void 0;return l=X(+n)?[+n,0]:lt(n,o,s,a),"left"===a?(o.top+=l[0],o.left-=l[1]):"right"===a?(o.top+=l[0],o.left+=l[1]):"top"===a?(o.left+=l[0],o.top-=l[1]):"bottom"===a&&(o.left+=l[0],o.top+=l[1]),t.popper=o,t}function ft(t,i){var e=i.boundariesElement||E(t.instance.popper);t.instance.reference===e&&(e=E(e));var n=V("transform"),r=t.instance.popper.style,o=r.top,s=r.left,a=r[n];r.top="",r.left="",r[n]="";var l=S(t.instance.popper,t.instance.reference,i.padding,e,t.positionFixed);r.top=o,r.left=s,r[n]=a,i.boundaries=l;var c=i.priority,f=t.offsets.popper,h={primary:function u(t){var e=f[t];return f[t]<l[t]&&!i.escapeWithReference&&(e=Math.max(f[t],l[t])),De({},t,e)},secondary:function d(t){var e="right"===t?"left":"top",n=f[e];return f[t]>l[t]&&!i.escapeWithReference&&(n=Math.min(f[e],l[t]-("right"===t?f.width:f.height))),De({},e,n)}};return c.forEach(function(t){var e=-1!==["left","top"].indexOf(t)?"primary":"secondary";f=Se({},f,h[e](t))}),t.offsets.popper=f,t}function ht(t){var e=t.placement,n=e.split("-")[0],i=e.split("-")[1];if(i){var r=t.offsets,o=r.reference,s=r.popper,a=-1!==["bottom","top"].indexOf(n),l=a?"left":"top",c=a?"width":"height",f={start:De({},l,o[l]),end:De({},l,o[l]+o[c]-s[c])};t.offsets.popper=Se({},s,f[i])}return t}function ut(t){if(!et(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,n=W(t.instance.modifiers,function(t){return"preventOverflow"===t.name}).boundaries;if(e.bottom<n.top||e.left>n.right||e.top>n.bottom||e.right<n.left){if(!0===t.hide)return t;t.hide=!0,t.attributes["x-out-of-boundaries"]=""}else{if(!1===t.hide)return t;t.hide=!1,t.attributes["x-out-of-boundaries"]=!1}return t}function dt(t){var e=t.placement,n=e.split("-")[0],i=t.offsets,r=i.popper,o=i.reference,s=-1!==["left","right"].indexOf(n),a=-1===["top","left"].indexOf(n);return r[s?"left":"top"]=o[n]-(a?r[s?"width":"height"]:0),t.placement=H(e),t.offsets.popper=C(r),t}for(var pt,gt,mt,_t,Et,vt,Tt,yt,Ct,At,It,Ot,bt,Dt,St,wt,Nt,Lt,Pt,Rt,Ht,kt,Wt,Ft,Mt,xt,Ut,Vt,jt,Bt,Gt,Kt,Qt,Yt,qt,Xt,zt,Jt,Zt,$t,te,ee,ne,ie,re,oe,se,ae,le,ce,fe,he,ue,de=function(i){function a(t){return{}.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase()}function t(){return{bindType:r,delegateType:r,handle:function e(t){return i(t.target).is(this)?t.handleObj.handler.apply(this,arguments):undefined}}}function e(t){var e=this,n=!1;return i(this).one(l.TRANSITION_END,function(){n=!0}),setTimeout(function(){n||l.triggerTransitionEnd(e)},t),this}function n(){i.fn.emulateTransitionEnd=e,i.event.special[l.TRANSITION_END]=t()}var r="transitionend",o=1e6,s=1e3,l={TRANSITION_END:"bsTransitionEnd",getUID:function c(t){for(;t+=~~(Math.random()*o),document.getElementById(t););return t},getSelectorFromElement:function f(t){var e=t.getAttribute("data-target");e&&"#"!==e||(e=t.getAttribute("href")||"");try{return 0<i(document).find(e).length?e:null}catch(n){return null}},getTransitionDurationFromElement:function h(t){if(!t)return 0;var e=i(t).css("transition-duration");return parseFloat(e)?(e=e.split(",")[0],parseFloat(e)*s):0},reflow:function u(t){return t.offsetHeight},triggerTransitionEnd:function d(t){i(t).trigger(r)},supportsTransitionEnd:function p(){return Boolean(r)},isElement:function g(t){return(t[0]||t).nodeType},typeCheckConfig:function m(t,e,n){for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)){var r=n[i],o=e[i],s=o&&l.isElement(o)?"element":a(o);if(!new RegExp(r).test(s))throw new Error(t.toUpperCase()+': Option "'+i+'" provided type "'+s+'" but expected type "'+r+'".')}}};return n(),l}(e=e&&e.hasOwnProperty("default")?e["default"]:e),pe=(gt="alert",mt="4.1.1",Et="."+(_t="bs.alert"),vt=".data-api",Tt=(pt=e).fn[gt],yt={DISMISS:'[data-dismiss="alert"]'},Ct={CLOSE:"close"+Et,CLOSED:"closed"+Et,CLICK_DATA_API:"click"+Et+vt},At={ALERT:"alert",FADE:"fade",SHOW:"show"},It=function(){function i(t){this._element=t}var t=i.prototype;return t.close=function n(t){var e=this._element;t&&(e=this._getRootElement(t)),this._triggerCloseEvent(e).isDefaultPrevented()||this._removeElement(e)},t.dispose=function e(){pt.removeData(this._element,_t),this._element=null},t._getRootElement=function r(t){var e=de.getSelectorFromElement(t),n=!1;return e&&(n=pt(e)[0]),n||(n=pt(t).closest("."+At.ALERT)[0]),n},t._triggerCloseEvent=function o(t){var e=pt.Event(Ct.CLOSE);return pt(t).trigger(e),e},t._removeElement=function s(e){var n=this;if(pt(e).removeClass(At.SHOW),pt(e).hasClass(At.FADE)){var t=de.getTransitionDurationFromElement(e);pt(e).one(de.TRANSITION_END,function(t){return n._destroyElement(e,t)}).emulateTransitionEnd(t)}else this._destroyElement(e)},t._destroyElement=function a(t){pt(t).detach().trigger(Ct.CLOSED).remove()},i._jQueryInterface=function l(n){return this.each(function(){var t=pt(this),e=t.data(_t);e||(e=new i(this),t.data(_t,e)),"close"===n&&e[n](this)})},i._handleDismiss=function c(e){return function(t){t&&t.preventDefault(),e.close(this)}},w(i,null,[{key:"VERSION",get:function f(){return mt}}]),i}(),pt(document).on(Ct.CLICK_DATA_API,yt.DISMISS,It._handleDismiss(new It)),pt.fn[gt]=It._jQueryInterface,pt.fn[gt].Constructor=It,pt.fn[gt].noConflict=function(){return pt.fn[gt]=Tt,It._jQueryInterface},It),ge=(bt="button",Dt="4.1.1",wt="."+(St="bs.button"),Nt=".data-api",Lt=(Ot=e).fn[bt],Pt={ACTIVE:"active",BUTTON:"btn",FOCUS:"focus"},Rt={DATA_TOGGLE_CARROT:'[data-toggle^="button"]',DATA_TOGGLE:'[data-toggle="buttons"]',INPUT:"input",ACTIVE:".active",BUTTON:".btn"},Ht={CLICK_DATA_API:"click"+wt+Nt,FOCUS_BLUR_DATA_API:"focus"+wt+Nt+" blur"+wt+Nt},kt=function(){function n(t){this._element=t}var t=n.prototype;return t.toggle=function o(){var t=!0,e=!0,n=Ot(this._element).closest(Rt.DATA_TOGGLE)[0];if(n){var i=Ot(this._element).find(Rt.INPUT)[0];if(i){if("radio"===i.type)if(i.checked&&Ot(this._element).hasClass(Pt.ACTIVE))t=!1;else{var r=Ot(n).find(Rt.ACTIVE)[0];r&&Ot(r).removeClass(Pt.ACTIVE)}if(t){if(i.hasAttribute("disabled")||n.hasAttribute("disabled")||i.classList.contains("disabled")||n.classList.contains("disabled"))return;i.checked=!Ot(this._element).hasClass(Pt.ACTIVE),Ot(i).trigger("change")}i.focus(),e=!1}}e&&this._element.setAttribute("aria-pressed",!Ot(this._element).hasClass(Pt.ACTIVE)),t&&Ot(this._element).toggleClass(Pt.ACTIVE)},t.dispose=function e(){Ot.removeData(this._element,St),this._element=null},n._jQueryInterface=function i(e){return this.each(function(){var t=Ot(this).data(St);t||(t=new n(this),Ot(this).data(St,t)),"toggle"===e&&t[e]()})},w(n,null,[{key:"VERSION",get:function r(){return Dt}}]),n}(),Ot(document).on(Ht.CLICK_DATA_API,Rt.DATA_TOGGLE_CARROT,function(t){t.preventDefault();var e=t.target;Ot(e).hasClass(Pt.BUTTON)||(e=Ot(e).closest(Rt.BUTTON)),kt._jQueryInterface.call(Ot(e),"toggle")}).on(Ht.FOCUS_BLUR_DATA_API,Rt.DATA_TOGGLE_CARROT,function(t){var e=Ot(t.target).closest(Rt.BUTTON)[0];Ot(e).toggleClass(Pt.FOCUS,/^focus(in)?$/.test(t.type))}),Ot.fn[bt]=kt._jQueryInterface,Ot.fn[bt].Constructor=kt,Ot.fn[bt].noConflict=function(){return Ot.fn[bt]=Lt,kt._jQueryInterface},kt),me=(Ft="carousel",Mt="4.1.1",Ut="."+(xt="bs.carousel"),Vt=".data-api",jt=(Wt=e).fn[Ft],Bt=37,Gt=39,Qt={interval:5e3,keyboard:!0,slide:!(Kt=500),pause:"hover",wrap:!0},Yt={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean"},qt={NEXT:"next",PREV:"prev",LEFT:"left",RIGHT:"right"},Xt={SLIDE:"slide"+Ut,SLID:"slid"+Ut,KEYDOWN:"keydown"+Ut,MOUSEENTER:"mouseenter"+Ut,MOUSELEAVE:"mouseleave"+Ut,TOUCHEND:"touchend"+Ut,LOAD_DATA_API:"load"+Ut+Vt,CLICK_DATA_API:"click"+Ut+Vt},zt={CAROUSEL:"carousel",ACTIVE:"active",SLIDE:"slide",RIGHT:"carousel-item-right",LEFT:"carousel-item-left",NEXT:"carousel-item-next",PREV:"carousel-item-prev",ITEM:"carousel-item"},Jt={ACTIVE:".active",ACTIVE_ITEM:".active.carousel-item",ITEM:".carousel-item",NEXT_PREV:".carousel-item-next, .carousel-item-prev",INDICATORS:".carousel-indicators",DATA_SLIDE:"[data-slide], [data-slide-to]",DATA_RIDE:'[data-ride="carousel"]'},Zt=function(){function o(t,e){this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this._config=this._getConfig(e),this._element=Wt(t)[0],this._indicatorsElement=Wt(this._element).find(Jt.INDICATORS)[0],this._addEventListeners()}var t=o.prototype;return t.next=function e(){this._isSliding||this._slide(qt.NEXT)},t.nextWhenVisible=function n(){!document.hidden&&Wt(this._element).is(":visible")&&"hidden"!==Wt(this._element).css("visibility")&&this.next()},t.prev=function i(){this._isSliding||this._slide(qt.PREV)},t.pause=function r(t){t||(this._isPaused=!0),Wt(this._element).find(Jt.NEXT_PREV)[0]&&(de.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},t.cycle=function s(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},t.to=function a(t){var e=this;this._activeElement=Wt(this._element).find(Jt.ACTIVE_ITEM)[0];var n=this._getItemIndex(this._activeElement);if(!(t>this._items.length-1||t<0))if(this._isSliding)Wt(this._element).one(Xt.SLID,function(){return e.to(t)});else{if(n===t)return this.pause(),void this.cycle();var i=n<t?qt.NEXT:qt.PREV;this._slide(i,this._items[t])}},t.dispose=function l(){Wt(this._element).off(Ut),Wt.removeData(this._element,xt),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},t._getConfig=function c(t){return t=N({},Qt,t),de.typeCheckConfig(Ft,t,Yt),t},t._addEventListeners=function f(){var e=this;this._config.keyboard&&Wt(this._element).on(Xt.KEYDOWN,function(t){return e._keydown(t)}),"hover"===this._config.pause&&(Wt(this._element).on(Xt.MOUSEENTER,function(t){return e.pause(t)}).on(Xt.MOUSELEAVE,function(t){return e.cycle(t)}),"ontouchstart"in document.documentElement&&Wt(this._element).on(Xt.TOUCHEND,function(){e.pause(),e.touchTimeout&&clearTimeout(e.touchTimeout),e.touchTimeout=setTimeout(function(t){return e.cycle(t)},Kt+e._config.interval)}))},t._keydown=function h(t){if(!/input|textarea/i.test(t.target.tagName))switch(t.which){case Bt:t.preventDefault(),this.prev();break;case Gt:t.preventDefault(),this.next()}},t._getItemIndex=function u(t){return this._items=Wt.makeArray(Wt(t).parent().find(Jt.ITEM)),this._items.indexOf(t)},t._getItemByDirection=function d(t,e){var n=t===qt.NEXT,i=t===qt.PREV,r=this._getItemIndex(e),o=this._items.length-1;if((i&&0===r||n&&r===o)&&!this._config.wrap)return e;var s=(r+(t===qt.PREV?-1:1))%this._items.length;return-1===s?this._items[this._items.length-1]:this._items[s]},t._triggerSlideEvent=function p(t,e){var n=this._getItemIndex(t),i=this._getItemIndex(Wt(this._element).find(Jt.ACTIVE_ITEM)[0]),r=Wt.Event(Xt.SLIDE,{relatedTarget:t,direction:e,from:i,to:n});return Wt(this._element).trigger(r),r},t._setActiveIndicatorElement=function g(t){if(this._indicatorsElement){Wt(this._indicatorsElement).find(Jt.ACTIVE).removeClass(zt.ACTIVE);var e=this._indicatorsElement.children[this._getItemIndex(t)];e&&Wt(e).addClass(zt.ACTIVE)}},t._slide=function m(t,e){var n,i,r,o=this,s=Wt(this._element).find(Jt.ACTIVE_ITEM)[0],a=this._getItemIndex(s),l=e||s&&this._getItemByDirection(t,s),c=this._getItemIndex(l),f=Boolean(this._interval);if(t===qt.NEXT?(n=zt.LEFT,i=zt.NEXT,r=qt.LEFT):(n=zt.RIGHT,i=zt.PREV,r=qt.RIGHT),l&&Wt(l).hasClass(zt.ACTIVE))this._isSliding=!1;else if(!this._triggerSlideEvent(l,r).isDefaultPrevented()&&s&&l){this._isSliding=!0,f&&this.pause(),this._setActiveIndicatorElement(l);var h=Wt.Event(Xt.SLID,{relatedTarget:l,direction:r,from:a,to:c});if(Wt(this._element).hasClass(zt.SLIDE)){Wt(l).addClass(i),de.reflow(l),Wt(s).addClass(n),Wt(l).addClass(n);var u=de.getTransitionDurationFromElement(s);Wt(s).one(de.TRANSITION_END,function(){Wt(l).removeClass(n+" "+i).addClass(zt.ACTIVE),Wt(s).removeClass(zt.ACTIVE+" "+i+" "+n),o._isSliding=!1,setTimeout(function(){return Wt(o._element).trigger(h)},0)}).emulateTransitionEnd(u)}else Wt(s).removeClass(zt.ACTIVE),Wt(l).addClass(zt.ACTIVE),this._isSliding=!1,Wt(this._element).trigger(h);f&&this.cycle()}},o._jQueryInterface=function _(i){return this.each(function(){var t=Wt(this).data(xt),e=N({},Qt,Wt(this).data());"object"==typeof i&&(e=N({},e,i));var n="string"==typeof i?i:e.slide;if(t||(t=new o(this,e),Wt(this).data(xt,t)),"number"==typeof i)t.to(i);else if("string"==typeof n){if("undefined"==typeof t[n])throw new TypeError('No method named "'+n+'"');t[n]()}else e.interval&&(t.pause(),t.cycle())})},o._dataApiClickHandler=function E(t){var e=de.getSelectorFromElement(this);if(e){var n=Wt(e)[0];if(n&&Wt(n).hasClass(zt.CAROUSEL)){var i=N({},Wt(n).data(),Wt(this).data()),r=this.getAttribute("data-slide-to");r&&(i.interval=!1),o._jQueryInterface.call(Wt(n),i),r&&Wt(n).data(xt).to(r),t.preventDefault()}}},w(o,null,[{key:"VERSION",get:function v(){return Mt}},{key:"Default",get:function v(){return Qt}}]),o}(),Wt(document).on(Xt.CLICK_DATA_API,Jt.DATA_SLIDE,Zt._dataApiClickHandler),Wt(window).on(Xt.LOAD_DATA_API,function(){Wt(Jt.DATA_RIDE).each(function(){var t=Wt(this);Zt._jQueryInterface.call(t,t.data())})}),Wt.fn[Ft]=Zt._jQueryInterface,Wt.fn[Ft].Constructor=Zt,Wt.fn[Ft].noConflict=function(){return Wt.fn[Ft]=jt,Zt._jQueryInterface},Zt),_e=(te="collapse",ee="4.1.1",ie="."+(ne="bs.collapse"),re=".data-api",oe=($t=e).fn[te],se={toggle:!0,parent:""},ae={toggle:"boolean",parent:"(string|element)"},le={SHOW:"show"+ie,SHOWN:"shown"+ie,HIDE:"hide"+ie,HIDDEN:"hidden"+ie,CLICK_DATA_API:"click"+ie+re},ce={SHOW:"show",COLLAPSE:"collapse",COLLAPSING:"collapsing",COLLAPSED:"collapsed"},fe={WIDTH:"width",HEIGHT:"height"},he={ACTIVES:".show, .collapsing",DATA_TOGGLE:'[data-toggle="collapse"]'},ue=function(){function l(t,e){this._isTransitioning=!1,this._element=t,this._config=this._getConfig(e),this._triggerArray=$t.makeArray($t('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]'));for(var n=$t(he.DATA_TOGGLE),i=0;i<n.length;i++){var r=n[i],o=de.getSelectorFromElement(r);null!==o&&0<$t(o).filter(t).length&&(this._selector=o,this._triggerArray.push(r))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var t=l.prototype;return t.toggle=function e(){$t(this._element).hasClass(ce.SHOW)?this.hide():this.show()},t.show=function c(){var t,e,n=this;if(!this._isTransitioning&&!$t(this._element).hasClass(ce.SHOW)&&(this._parent&&0===(t=$t.makeArray($t(this._parent).find(he.ACTIVES).filter('[data-parent="'+this._config.parent+'"]'))).length&&(t=null),!(t&&(e=$t(t).not(this._selector).data(ne))&&e._isTransitioning))){var i=$t.Event(le.SHOW);if($t(this._element).trigger(i),!i.isDefaultPrevented()){t&&(l._jQueryInterface.call($t(t).not(this._selector),"hide"),e||$t(t).data(ne,null));var r=this._getDimension();$t(this._element).removeClass(ce.COLLAPSE).addClass(ce.COLLAPSING),(this._element.style[r]=0)<this._triggerArray.length&&$t(this._triggerArray).removeClass(ce.COLLAPSED).attr("aria-expanded",!0),this.setTransitioning(!0);var o=function o(){$t(n._element).removeClass(ce.COLLAPSING).addClass(ce.COLLAPSE).addClass(ce.SHOW),n._element.style[r]="",n.setTransitioning(!1),$t(n._element).trigger(le.SHOWN)},s="scroll"+(r[0].toUpperCase()+r.slice(1)),a=de.getTransitionDurationFromElement(this._element);$t(this._element).one(de.TRANSITION_END,o).emulateTransitionEnd(a),this._element.style[r]=this._element[s]+"px"}}},t.hide=function f(){var t=this;if(!this._isTransitioning&&$t(this._element).hasClass(ce.SHOW)){var e=$t.Event(le.HIDE);if($t(this._element).trigger(e),!e.isDefaultPrevented()){var n=this._getDimension();if(this._element.style[n]=this._element.getBoundingClientRect()[n]+"px",de.reflow(this._element),$t(this._element).addClass(ce.COLLAPSING).removeClass(ce.COLLAPSE).removeClass(ce.SHOW),0<this._triggerArray.length)for(var i=0;i<this._triggerArray.length;i++){var r=this._triggerArray[i],o=de.getSelectorFromElement(r);if(null!==o)$t(o).hasClass(ce.SHOW)||$t(r).addClass(ce.COLLAPSED).attr("aria-expanded",!1)}this.setTransitioning(!0);var s=function s(){t.setTransitioning(!1),$t(t._element).removeClass(ce.COLLAPSING).addClass(ce.COLLAPSE).trigger(le.HIDDEN)};this._element.style[n]="";var a=de.getTransitionDurationFromElement(this._element);$t(this._element).one(de.TRANSITION_END,s).emulateTransitionEnd(a)}}},t.setTransitioning=function n(t){this._isTransitioning=t},t.dispose=function i(){$t.removeData(this._element,ne),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},t._getConfig=function r(t){return(t=N({},se,t)).toggle=Boolean(
|
12
|
+
t.toggle),de.typeCheckConfig(te,t,ae),t},t._getDimension=function o(){return $t(this._element).hasClass(fe.WIDTH)?fe.WIDTH:fe.HEIGHT},t._getParent=function s(){var n=this,t=null;de.isElement(this._config.parent)?(t=this._config.parent,"undefined"!=typeof this._config.parent.jquery&&(t=this._config.parent[0])):t=$t(this._config.parent)[0];var e='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]';return $t(t).find(e).each(function(t,e){n._addAriaAndCollapsedClass(l._getTargetFromElement(e),[e])}),t},t._addAriaAndCollapsedClass=function a(t,e){if(t){var n=$t(t).hasClass(ce.SHOW);0<e.length&&$t(e).toggleClass(ce.COLLAPSED,!n).attr("aria-expanded",n)}},l._getTargetFromElement=function h(t){var e=de.getSelectorFromElement(t);return e?$t(e)[0]:null},l._jQueryInterface=function u(i){return this.each(function(){var t=$t(this),e=t.data(ne),n=N({},se,t.data(),"object"==typeof i&&i?i:{});if(!e&&n.toggle&&/show|hide/.test(i)&&(n.toggle=!1),e||(e=new l(this,n),t.data(ne,e)),"string"==typeof i){if("undefined"==typeof e[i])throw new TypeError('No method named "'+i+'"');e[i]()}})},w(l,null,[{key:"VERSION",get:function d(){return ee}},{key:"Default",get:function d(){return se}}]),l}(),$t(document).on(le.CLICK_DATA_API,he.DATA_TOGGLE,function(t){"A"===t.currentTarget.tagName&&t.preventDefault();var n=$t(this),e=de.getSelectorFromElement(this);$t(e).each(function(){var t=$t(this),e=t.data(ne)?"toggle":n.data();ue._jQueryInterface.call(t,e)})}),$t.fn[te]=ue._jQueryInterface,$t.fn[te].Constructor=ue,$t.fn[te].noConflict=function(){return $t.fn[te]=oe,ue._jQueryInterface},ue),Ee="undefined"!=typeof window&&"undefined"!=typeof document,ve=["Edge","Trident","Firefox"],Te=0,ye=0;ye<ve.length;ye+=1)if(Ee&&0<=navigator.userAgent.indexOf(ve[ye])){Te=1;break}var Ce=Ee&&window.Promise?n:o,Ae=Ee&&!(!window.MSInputMethodContext||!document.documentMode),Ie=Ee&&/MSIE 10/.test(navigator.userAgent),Oe=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},be=function(){function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t}}(),De=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},Se=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},we=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Ne=we.slice(3),Le={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"},Pe={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function Ii(){},onUpdate:function Oi(){},modifiers:{shift:{order:100,enabled:!0,fn:ht},offset:{order:200,enabled:!0,fn:ct,offset:0},preventOverflow:{order:300,enabled:!0,fn:ft,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:st},arrow:{order:500,enabled:!0,fn:nt,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:ot,behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:dt},hide:{order:800,enabled:!0,fn:ut},computeStyle:{order:850,enabled:!0,fn:tt,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:Z,onLoad:$,gpuAcceleration:undefined}}},Re=function(){function s(t,e,n){var i=this,r=2<arguments.length&&n!==undefined?arguments[2]:{};Oe(this,s),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=Ce(this.update.bind(this)),this.options=Se({},s.Defaults,r),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=e&&e.jquery?e[0]:e,this.options.modifiers={},Object.keys(Se({},s.Defaults.modifiers,r.modifiers)).forEach(function(t){i.options.modifiers[t]=Se({},s.Defaults.modifiers[t]||{},r.modifiers?r.modifiers[t]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(t){return Se({name:t},i.options.modifiers[t])}).sort(function(t,e){return t.order-e.order}),this.modifiers.forEach(function(t){t.enabled&&a(t.onLoad)&&t.onLoad(i.reference,i.popper,i.options,t,i.state)}),this.update();var o=this.options.eventsEnabled;o&&this.enableEventListeners(),this.state.eventsEnabled=o}return be(s,[{key:"update",value:function t(){return x.call(this)}},{key:"destroy",value:function e(){return j.call(this)}},{key:"enableEventListeners",value:function n(){return Q.call(this)}},{key:"disableEventListeners",value:function i(){return q.call(this)}}]),s}();Re.Utils=("undefined"!=typeof window?window:global).PopperUtils,Re.placements=we,Re.Defaults=Pe;var He,ke,We,Fe,Me,xe,Ue,Ve,je,Be,Ge,Ke,Qe,Ye,qe,Xe,ze,Je,Ze,$e,tn,en,nn,rn,on,sn,an,ln,cn,fn,hn,un,dn,pn,gn,mn,_n,En,vn,Tn,yn,Cn,An,In,On,bn,Dn,Sn,wn,Nn,Ln,Pn,Rn,Hn,kn,Wn,Fn,Mn,xn,Un,Vn,jn,Bn,Gn,Kn,Qn,Yn,qn,Xn,zn,Jn,Zn,$n,ti,ei,ni,ii,ri,oi,si,ai,li,ci,fi,hi,ui,di,pi,gi,mi,_i,Ei=(ke="dropdown",We="4.1.1",Me="."+(Fe="bs.dropdown"),xe=".data-api",Ue=(He=e).fn[ke],Ve=27,je=32,Be=9,Ge=38,Ke=40,Qe=3,Ye=new RegExp(Ge+"|"+Ke+"|"+Ve),qe={HIDE:"hide"+Me,HIDDEN:"hidden"+Me,SHOW:"show"+Me,SHOWN:"shown"+Me,CLICK:"click"+Me,CLICK_DATA_API:"click"+Me+xe,KEYDOWN_DATA_API:"keydown"+Me+xe,KEYUP_DATA_API:"keyup"+Me+xe},Xe={DISABLED:"disabled",SHOW:"show",DROPUP:"dropup",DROPRIGHT:"dropright",DROPLEFT:"dropleft",MENURIGHT:"dropdown-menu-right",MENULEFT:"dropdown-menu-left",POSITION_STATIC:"position-static"},ze={DATA_TOGGLE:'[data-toggle="dropdown"]',FORM_CHILD:".dropdown form",MENU:".dropdown-menu",NAVBAR_NAV:".navbar-nav",VISIBLE_ITEMS:".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)"},Je={TOP:"top-start",TOPEND:"top-end",BOTTOM:"bottom-start",BOTTOMEND:"bottom-end",RIGHT:"right-start",RIGHTEND:"right-end",LEFT:"left-start",LEFTEND:"left-end"},Ze={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic"},$e={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string"},tn=function(){function l(t,e){this._element=t,this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var t=l.prototype;return t.toggle=function o(){if(!this._element.disabled&&!He(this._element).hasClass(Xe.DISABLED)){var t=l._getParentFromElement(this._element),e=He(this._menu).hasClass(Xe.SHOW);if(l._clearMenus(),!e){var n={relatedTarget:this._element},i=He.Event(qe.SHOW,n);if(He(t).trigger(i),!i.isDefaultPrevented()){if(!this._inNavbar){if(void 0===Re)throw new TypeError("Bootstrap dropdown require Popper.js (https://popper.js.org)");var r=this._element;"parent"===this._config.reference?r=t:de.isElement(this._config.reference)&&(r=this._config.reference,"undefined"!=typeof this._config.reference.jquery&&(r=this._config.reference[0])),"scrollParent"!==this._config.boundary&&He(t).addClass(Xe.POSITION_STATIC),this._popper=new Re(r,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===He(t).closest(ze.NAVBAR_NAV).length&&He(document.body).children().on("mouseover",null,He.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),He(this._menu).toggleClass(Xe.SHOW),He(t).toggleClass(Xe.SHOW).trigger(He.Event(qe.SHOWN,n))}}}},t.dispose=function e(){He.removeData(this._element,Fe),He(this._element).off(Me),this._element=null,(this._menu=null)!==this._popper&&(this._popper.destroy(),this._popper=null)},t.update=function n(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},t._addEventListeners=function i(){var e=this;He(this._element).on(qe.CLICK,function(t){t.preventDefault(),t.stopPropagation(),e.toggle()})},t._getConfig=function r(t){return t=N({},this.constructor.Default,He(this._element).data(),t),de.typeCheckConfig(ke,t,this.constructor.DefaultType),t},t._getMenuElement=function s(){if(!this._menu){var t=l._getParentFromElement(this._element);this._menu=He(t).find(ze.MENU)[0]}return this._menu},t._getPlacement=function a(){var t=He(this._element).parent(),e=Je.BOTTOM;return t.hasClass(Xe.DROPUP)?(e=Je.TOP,He(this._menu).hasClass(Xe.MENURIGHT)&&(e=Je.TOPEND)):t.hasClass(Xe.DROPRIGHT)?e=Je.RIGHT:t.hasClass(Xe.DROPLEFT)?e=Je.LEFT:He(this._menu).hasClass(Xe.MENURIGHT)&&(e=Je.BOTTOMEND),e},t._detectNavbar=function c(){return 0<He(this._element).closest(".navbar").length},t._getPopperConfig=function f(){var e=this,t={};"function"==typeof this._config.offset?t.fn=function(t){return t.offsets=N({},t.offsets,e._config.offset(t.offsets)||{}),t}:t.offset=this._config.offset;var n={placement:this._getPlacement(),modifiers:{offset:t,flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(n.modifiers.applyStyle={enabled:!1}),n},l._jQueryInterface=function h(e){return this.each(function(){var t=He(this).data(Fe);if(t||(t=new l(this,"object"==typeof e?e:null),He(this).data(Fe,t)),"string"==typeof e){if("undefined"==typeof t[e])throw new TypeError('No method named "'+e+'"');t[e]()}})},l._clearMenus=function u(t){if(!t||t.which!==Qe&&("keyup"!==t.type||t.which===Be))for(var e=He.makeArray(He(ze.DATA_TOGGLE)),n=0;n<e.length;n++){var i=l._getParentFromElement(e[n]),r=He(e[n]).data(Fe),o={relatedTarget:e[n]};if(r){var s=r._menu;if(He(i).hasClass(Xe.SHOW)&&!(t&&("click"===t.type&&/input|textarea/i.test(t.target.tagName)||"keyup"===t.type&&t.which===Be)&&He.contains(i,t.target))){var a=He.Event(qe.HIDE,o);He(i).trigger(a),a.isDefaultPrevented()||("ontouchstart"in document.documentElement&&He(document.body).children().off("mouseover",null,He.noop),e[n].setAttribute("aria-expanded","false"),He(s).removeClass(Xe.SHOW),He(i).removeClass(Xe.SHOW).trigger(He.Event(qe.HIDDEN,o)))}}}},l._getParentFromElement=function d(t){var e,n=de.getSelectorFromElement(t);return n&&(e=He(n)[0]),e||t.parentNode},l._dataApiKeydownHandler=function p(t){if((/input|textarea/i.test(t.target.tagName)?!(t.which===je||t.which!==Ve&&(t.which!==Ke&&t.which!==Ge||He(t.target).closest(ze.MENU).length)):Ye.test(t.which))&&(t.preventDefault(),t.stopPropagation(),!this.disabled&&!He(this).hasClass(Xe.DISABLED))){var e=l._getParentFromElement(this),n=He(e).hasClass(Xe.SHOW);if((n||t.which===Ve&&t.which===je)&&(!n||t.which!==Ve&&t.which!==je)){var i=He(e).find(ze.VISIBLE_ITEMS).get();if(0!==i.length){var r=i.indexOf(t.target);t.which===Ge&&0<r&&r--,t.which===Ke&&r<i.length-1&&r++,r<0&&(r=0),i[r].focus()}}else{if(t.which===Ve){var o=He(e).find(ze.DATA_TOGGLE)[0];He(o).trigger("focus")}He(this).trigger("click")}}},w(l,null,[{key:"VERSION",get:function g(){return We}},{key:"Default",get:function g(){return Ze}},{key:"DefaultType",get:function g(){return $e}}]),l}(),He(document).on(qe.KEYDOWN_DATA_API,ze.DATA_TOGGLE,tn._dataApiKeydownHandler).on(qe.KEYDOWN_DATA_API,ze.MENU,tn._dataApiKeydownHandler).on(qe.CLICK_DATA_API+" "+qe.KEYUP_DATA_API,tn._clearMenus).on(qe.CLICK_DATA_API,ze.DATA_TOGGLE,function(t){t.preventDefault(),t.stopPropagation(),tn._jQueryInterface.call(He(this),"toggle")}).on(qe.CLICK_DATA_API,ze.FORM_CHILD,function(t){t.stopPropagation()}),He.fn[ke]=tn._jQueryInterface,He.fn[ke].Constructor=tn,He.fn[ke].noConflict=function(){return He.fn[ke]=Ue,tn._jQueryInterface},tn),vi=(nn="modal",rn="4.1.1",sn="."+(on="bs.modal"),an=".data-api",ln=(en=e).fn[nn],cn=27,fn={backdrop:!0,keyboard:!0,focus:!0,show:!0},hn={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},un={HIDE:"hide"+sn,HIDDEN:"hidden"+sn,SHOW:"show"+sn,SHOWN:"shown"+sn,FOCUSIN:"focusin"+sn,RESIZE:"resize"+sn,CLICK_DISMISS:"click.dismiss"+sn,KEYDOWN_DISMISS:"keydown.dismiss"+sn,MOUSEUP_DISMISS:"mouseup.dismiss"+sn,MOUSEDOWN_DISMISS:"mousedown.dismiss"+sn,CLICK_DATA_API:"click"+sn+an},dn={SCROLLBAR_MEASURER:"modal-scrollbar-measure",BACKDROP:"modal-backdrop",OPEN:"modal-open",FADE:"fade",SHOW:"show"},pn={DIALOG:".modal-dialog",DATA_TOGGLE:'[data-toggle="modal"]',DATA_DISMISS:'[data-dismiss="modal"]',FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"},gn=function(){function r(t,e){this._config=this._getConfig(e),this._element=t,this._dialog=en(t).find(pn.DIALOG)[0],this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._scrollbarWidth=0}var t=r.prototype;return t.toggle=function e(t){return this._isShown?this.hide():this.show(t)},t.show=function i(t){var e=this;if(!this._isTransitioning&&!this._isShown){en(this._element).hasClass(dn.FADE)&&(this._isTransitioning=!0);var n=en.Event(un.SHOW,{relatedTarget:t});en(this._element).trigger(n),this._isShown||n.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),en(document.body).addClass(dn.OPEN),this._setEscapeEvent(),this._setResizeEvent(),en(this._element).on(un.CLICK_DISMISS,pn.DATA_DISMISS,function(t){return e.hide(t)}),en(this._dialog).on(un.MOUSEDOWN_DISMISS,function(){en(e._element).one(un.MOUSEUP_DISMISS,function(t){en(t.target).is(e._element)&&(e._ignoreBackdropClick=!0)})}),this._showBackdrop(function(){return e._showElement(t)}))}},t.hide=function o(t){var e=this;if(t&&t.preventDefault(),!this._isTransitioning&&this._isShown){var n=en.Event(un.HIDE);if(en(this._element).trigger(n),this._isShown&&!n.isDefaultPrevented()){this._isShown=!1;var i=en(this._element).hasClass(dn.FADE);if(i&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),en(document).off(un.FOCUSIN),en(this._element).removeClass(dn.SHOW),en(this._element).off(un.CLICK_DISMISS),en(this._dialog).off(un.MOUSEDOWN_DISMISS),i){var r=de.getTransitionDurationFromElement(this._element);en(this._element).one(de.TRANSITION_END,function(t){return e._hideModal(t)}).emulateTransitionEnd(r)}else this._hideModal()}}},t.dispose=function n(){en.removeData(this._element,on),en(window,document,this._element,this._backdrop).off(sn),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._scrollbarWidth=null},t.handleUpdate=function s(){this._adjustDialog()},t._getConfig=function a(t){return t=N({},fn,t),de.typeCheckConfig(nn,t,hn),t},t._showElement=function l(t){var e=this,n=en(this._element).hasClass(dn.FADE);this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.scrollTop=0,n&&de.reflow(this._element),en(this._element).addClass(dn.SHOW),this._config.focus&&this._enforceFocus();var i=en.Event(un.SHOWN,{relatedTarget:t}),r=function r(){e._config.focus&&e._element.focus(),e._isTransitioning=!1,en(e._element).trigger(i)};if(n){var o=de.getTransitionDurationFromElement(this._element);en(this._dialog).one(de.TRANSITION_END,r).emulateTransitionEnd(o)}else r()},t._enforceFocus=function c(){var e=this;en(document).off(un.FOCUSIN).on(un.FOCUSIN,function(t){document!==t.target&&e._element!==t.target&&0===en(e._element).has(t.target).length&&e._element.focus()})},t._setEscapeEvent=function f(){var e=this;this._isShown&&this._config.keyboard?en(this._element).on(un.KEYDOWN_DISMISS,function(t){t.which===cn&&(t.preventDefault(),e.hide())}):this._isShown||en(this._element).off(un.KEYDOWN_DISMISS)},t._setResizeEvent=function h(){var e=this;this._isShown?en(window).on(un.RESIZE,function(t){return e.handleUpdate(t)}):en(window).off(un.RESIZE)},t._hideModal=function u(){var t=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._isTransitioning=!1,this._showBackdrop(function(){en(document.body).removeClass(dn.OPEN),t._resetAdjustments(),t._resetScrollbar(),en(t._element).trigger(un.HIDDEN)})},t._removeBackdrop=function d(){this._backdrop&&(en(this._backdrop).remove(),this._backdrop=null)},t._showBackdrop=function p(t){var e=this,n=en(this._element).hasClass(dn.FADE)?dn.FADE:"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className=dn.BACKDROP,n&&en(this._backdrop).addClass(n),en(this._backdrop).appendTo(document.body),en(this._element).on(un.CLICK_DISMISS,function(t){e._ignoreBackdropClick?e._ignoreBackdropClick=!1:t.target===t.currentTarget&&("static"===e._config.backdrop?e._element.focus():e.hide())}),n&&de.reflow(this._backdrop),en(this._backdrop).addClass(dn.SHOW),!t)return;if(!n)return void t();var i=de.getTransitionDurationFromElement(this._backdrop);en(this._backdrop).one(de.TRANSITION_END,t).emulateTransitionEnd(i)}else if(!this._isShown&&this._backdrop){en(this._backdrop).removeClass(dn.SHOW);var r=function r(){e._removeBackdrop(),t&&t()};if(en(this._element).hasClass(dn.FADE)){var o=de.getTransitionDurationFromElement(this._backdrop);en(this._backdrop).one(de.TRANSITION_END,r).emulateTransitionEnd(o)}else r()}else t&&t()},t._adjustDialog=function g(){var t=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&t&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!t&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},t._resetAdjustments=function m(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},t._checkScrollbar=function _(){var t=document.body.getBoundingClientRect();this._isBodyOverflowing=t.left+t.right<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},t._setScrollbar=function E(){var r=this;if(this._isBodyOverflowing){en(pn.FIXED_CONTENT).each(function(t,e){var n=en(e)[0].style.paddingRight,i=en(e).css("padding-right");en(e).data("padding-right",n).css("padding-right",parseFloat(i)+r._scrollbarWidth+"px")}),en(pn.STICKY_CONTENT).each(function(t,e){var n=en(e)[0].style.marginRight,i=en(e).css("margin-right");en(e).data("margin-right",n).css("margin-right",parseFloat(i)-r._scrollbarWidth+"px")}),en(pn.NAVBAR_TOGGLER).each(function(t,e){var n=en(e)[0].style.marginRight,i=en(e).css("margin-right");en(e).data("margin-right",n).css("margin-right",parseFloat(i)+r._scrollbarWidth+"px")});var t=document.body.style.paddingRight,e=en(document.body).css("padding-right");en(document.body).data("padding-right",t).css("padding-right",parseFloat(e)+this._scrollbarWidth+"px")}},t._resetScrollbar=function v(){en(pn.FIXED_CONTENT).each(function(t,e){var n=en(e).data("padding-right");void 0!==n&&en(e).css("padding-right",n).removeData("padding-right")}),en(pn.STICKY_CONTENT+", "+pn.NAVBAR_TOGGLER).each(function(t,e){var n=en(e).data("margin-right");void 0!==n&&en(e).css("margin-right",n).removeData("margin-right")});var t=en(document.body).data("padding-right");void 0!==t&&en(document.body).css("padding-right",t).removeData("padding-right")},t._getScrollbarWidth=function T(){var t=document.createElement("div");t.className=dn.SCROLLBAR_MEASURER,document.body.appendChild(t);var e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e},r._jQueryInterface=function y(n,i){return this.each(function(){var t=en(this).data(on),e=N({},fn,en(this).data(),"object"==typeof n&&n?n:{});if(t||(t=new r(this,e),en(this).data(on,t)),"string"==typeof n){if("undefined"==typeof t[n])throw new TypeError('No method named "'+n+'"');t[n](i)}else e.show&&t.show(i)})},w(r,null,[{key:"VERSION",get:function C(){return rn}},{key:"Default",get:function C(){return fn}}]),r}(),en(document).on(un.CLICK_DATA_API,pn.DATA_TOGGLE,function(t){var e,n=this,i=de.getSelectorFromElement(this);i&&(e=en(i)[0]);var r=en(e).data(on)?"toggle":N({},en(e).data(),en(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||t.preventDefault();var o=en(e).one(un.SHOW,function(t){t.isDefaultPrevented()||o.one(un.HIDDEN,function(){en(n).is(":visible")&&n.focus()})});gn._jQueryInterface.call(en(e),r,this)}),en.fn[nn]=gn._jQueryInterface,en.fn[nn].Constructor=gn,en.fn[nn].noConflict=function(){return en.fn[nn]=ln,gn._jQueryInterface},gn),Ti=(_n="tooltip",En="4.1.1",Tn="."+(vn="bs.tooltip"),yn=(mn=e).fn[_n],Cn="bs-tooltip",An=new RegExp("(^|\\s)"+Cn+"\\S+","g"),bn={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!(On={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"}),selector:!(In={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)"}),placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent"},Dn={SHOW:"show",OUT:"out"},Sn={HIDE:"hide"+Tn,HIDDEN:"hidden"+Tn,SHOW:"show"+Tn,SHOWN:"shown"+Tn,INSERTED:"inserted"+Tn,CLICK:"click"+Tn,FOCUSIN:"focusin"+Tn,FOCUSOUT:"focusout"+Tn,MOUSEENTER:"mouseenter"+Tn,MOUSELEAVE:"mouseleave"+Tn},wn={FADE:"fade",SHOW:"show"},Nn={TOOLTIP:".tooltip",TOOLTIP_INNER:".tooltip-inner",ARROW:".arrow"},Ln={HOVER:"hover",FOCUS:"focus",CLICK:"click",MANUAL:"manual"},Pn=function(){function i(t,e){if(void 0===Re)throw new TypeError("Bootstrap tooltips require Popper.js (https://popper.js.org)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=t,this.config=this._getConfig(e),this.tip=null,this._setListeners()}var t=i.prototype;return t.enable=function e(){this._isEnabled=!0},t.disable=function n(){this._isEnabled=!1},t.toggleEnabled=function r(){this._isEnabled=!this._isEnabled},t.toggle=function o(t){if(this._isEnabled)if(t){var e=this.constructor.DATA_KEY,n=mn(t.currentTarget).data(e);n||(n=new this.constructor(t.currentTarget,this._getDelegateConfig()),mn(t.currentTarget).data(e,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)}else{if(mn(this.getTipElement()).hasClass(wn.SHOW))return void this._leave(null,this);this._enter(null,this)}},t.dispose=function s(){clearTimeout(this._timeout),mn.removeData(this.element,this.constructor.DATA_KEY),mn(this.element).off(this.constructor.EVENT_KEY),mn(this.element).closest(".modal").off("hide.bs.modal"),this.tip&&mn(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,(this._activeTrigger=null)!==this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},t.show=function u(){var e=this;if("none"===mn(this.element).css("display"))throw new Error("Please use show on visible elements");var t=mn.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){mn(this.element).trigger(t);var n=mn.contains(this.element.ownerDocument.documentElement,this.element);if(t.isDefaultPrevented()||!n)return;var i=this.getTipElement(),r=de.getUID(this.constructor.NAME);i.setAttribute("id",r),this.element.setAttribute("aria-describedby",r),this.setContent(),this.config.animation&&mn(i).addClass(wn.FADE);var o="function"==typeof this.config.placement?this.config.placement.call(this,i,this.element):this.config.placement,s=this._getAttachment(o);this.addAttachmentClass(s);var a=!1===this.config.container?document.body:mn(this.config.container);mn(i).data(this.constructor.DATA_KEY,this),mn.contains(this.element.ownerDocument.documentElement,this.tip)||mn(i).appendTo(a),mn(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new Re(this.element,i,{placement:s,modifiers:{offset:{offset:this.config.offset},flip:{behavior:this.config.fallbackPlacement},arrow:{element:Nn.ARROW},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function f(t){t.originalPlacement!==t.placement&&e._handlePopperPlacementChange(t)},onUpdate:function h(t){e._handlePopperPlacementChange(t)}}),mn(i).addClass(wn.SHOW),"ontouchstart"in document.documentElement&&mn(document.body).children().on("mouseover",null,mn.noop);var l=function l(){e.config.animation&&e._fixTransition();var t=e._hoverState;e._hoverState=null,mn(e.element).trigger(e.constructor.Event.SHOWN),t===Dn.OUT&&e._leave(null,e)};if(mn(this.tip).hasClass(wn.FADE)){var c=de.getTransitionDurationFromElement(this.tip);mn(this.tip).one(de.TRANSITION_END,l).emulateTransitionEnd(c)}else l()}},t.hide=function a(t){var e=this,n=this.getTipElement(),i=mn.Event(this.constructor.Event.HIDE),r=function r(){e._hoverState!==Dn.SHOW&&n.parentNode&&n.parentNode.removeChild(n),e._cleanTipClass(),e.element.removeAttribute("aria-describedby"),mn(e.element).trigger(e.constructor.Event.HIDDEN),null!==e._popper&&e._popper.destroy(),t&&t()};if(mn(this.element).trigger(i),!i.isDefaultPrevented()){if(mn(n).removeClass(wn.SHOW),"ontouchstart"in document.documentElement&&mn(document.body).children().off("mouseover",null,mn.noop),this._activeTrigger[Ln.CLICK]=!1,this._activeTrigger[Ln.FOCUS]=!1,this._activeTrigger[Ln.HOVER]=!1,mn(this.tip).hasClass(wn.FADE)){var o=de.getTransitionDurationFromElement(n);mn(n).one(de.TRANSITION_END,r).emulateTransitionEnd(o)}else r();this._hoverState=""}},t.update=function l(){null!==this._popper&&this._popper.scheduleUpdate()},t.isWithContent=function c(){return Boolean(this.getTitle())},t.addAttachmentClass=function f(t){mn(this.getTipElement()).addClass(Cn+"-"+t)},t.getTipElement=function h(){return this.tip=this.tip||mn(this.config.template)[0],this.tip},t.setContent=function d(){var t=mn(this.getTipElement());this.setElementContent(t.find(Nn.TOOLTIP_INNER),this.getTitle()),t.removeClass(wn.FADE+" "+wn.SHOW)},t.setElementContent=function p(t,e){var n=this.config.html;"object"==typeof e&&(e.nodeType||e.jquery)?n?mn(e).parent().is(t)||t.empty().append(e):t.text(mn(e).text()):t[n?"html":"text"](e)},t.getTitle=function g(){var t=this.element.getAttribute("data-original-title");return t||(t="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),t},t._getAttachment=function m(t){return On[t.toUpperCase()]},t._setListeners=function _(){var i=this;this.config.trigger.split(" ").forEach(function(t){if("click"===t)mn(i.element).on(i.constructor.Event.CLICK,i.config.selector,function(t){return i.toggle(t)});else if(t!==Ln.MANUAL){var e=t===Ln.HOVER?i.constructor.Event.MOUSEENTER:i.constructor.Event.FOCUSIN,n=t===Ln.HOVER?i.constructor.Event.MOUSELEAVE:i.constructor.Event.FOCUSOUT;mn(i.element).on(e,i.config.selector,function(t){return i._enter(t)}).on(n,i.config.selector,function(t){return i._leave(t)})}mn(i.element).closest(".modal").on("hide.bs.modal",function(){return i.hide()})}),this.config.selector?this.config=N({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},t._fixTitle=function E(){var t=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==t)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},t._enter=function v(t,e){var n=this.constructor.DATA_KEY;(e=e||mn(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),mn(t.currentTarget).data(n,e)),t&&(e._activeTrigger["focusin"===t.type?Ln.FOCUS:Ln.HOVER]=!0),mn(e.getTipElement()).hasClass(wn.SHOW)||e._hoverState===Dn.SHOW?e._hoverState=Dn.SHOW:(clearTimeout(e._timeout),e._hoverState=Dn.SHOW,e.config.delay&&e.config.delay.show?e._timeout=setTimeout(function(){e._hoverState===Dn.SHOW&&e.show()},e.config.delay.show):e.show())},t._leave=function T(t,e){var n=this.constructor.DATA_KEY;(e=e||mn(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),mn(t.currentTarget).data(n,e)),t&&(e._activeTrigger["focusout"===t.type?Ln.FOCUS:Ln.HOVER]=!1),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState=Dn.OUT,e.config.delay&&e.config.delay.hide?e._timeout=setTimeout(function(){e._hoverState===Dn.OUT&&e.hide()},e.config.delay.hide):e.hide())},t._isWithActiveTrigger=function y(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1},t._getConfig=function C(t){return"number"==typeof(t=N({},this.constructor.Default,mn(this.element).data(),"object"==typeof t&&t?t:{})).delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),de.typeCheckConfig(_n,t,this.constructor.DefaultType),t},t._getDelegateConfig=function A(){var t={};if(this.config)for(var e in this.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);return t},t._cleanTipClass=function I(){var t=mn(this.getTipElement()),e=t.attr("class").match(An);null!==e&&0<e.length&&t.removeClass(e.join(""))},t._handlePopperPlacementChange=function O(t){this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(t.placement))},t._fixTransition=function b(){var t=this.getTipElement(),e=this.config.animation;null===t.getAttribute("x-placement")&&(mn(t).removeClass(wn.FADE),this.config.animation=!1,this.hide(),this.show(),this.config.animation=e)},i._jQueryInterface=function D(n){return this.each(function(){var t=mn(this).data(vn),e="object"==typeof n&&n;if((t||!/dispose|hide/.test(n))&&(t||(t=new i(this,e),mn(this).data(vn,t)),"string"==typeof n)){if("undefined"==typeof t[n])throw new TypeError('No method named "'+n+'"');t[n]()}})},w(i,null,[{key:"VERSION",get:function S(){return En}},{key:"Default",get:function S(){return bn}},{key:"NAME",get:function S(){return _n}},{key:"DATA_KEY",get:function S(){return vn}},{key:"Event",get:function S(){return Sn}},{key:"EVENT_KEY",get:function S(){return Tn}},{key:"DefaultType",get:function S(){return In}}]),i}(),mn.fn[_n]=Pn._jQueryInterface,mn.fn[_n].Constructor=Pn,mn.fn[_n].noConflict=function(){return mn.fn[_n]=yn,Pn._jQueryInterface},Pn),yi=(Hn="popover",kn="4.1.1",Fn="."+(Wn="bs.popover"),Mn=(Rn=e).fn[Hn],xn="bs-popover",Un=new RegExp("(^|\\s)"+xn+"\\S+","g"),Vn=N({},Ti.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),jn=N({},Ti.DefaultType,{content:"(string|element|function)"}),Bn={FADE:"fade",SHOW:"show"},Gn={TITLE:".popover-header",CONTENT:".popover-body"},Kn={HIDE:"hide"+Fn,HIDDEN:"hidden"+Fn,SHOW:"show"+Fn,SHOWN:"shown"+Fn,INSERTED:"inserted"+Fn,CLICK:"click"+Fn,FOCUSIN:"focusin"+Fn,FOCUSOUT:"focusout"+Fn,MOUSEENTER:"mouseenter"+Fn,MOUSELEAVE:"mouseleave"+Fn},Qn=function(t){function i(){return t.apply(this,arguments)||this}h(i,t);var e=i.prototype;return e.isWithContent=function n(){return this.getTitle()||this._getContent()},e.addAttachmentClass=function r(t){Rn(this.getTipElement()).addClass(xn+"-"+t)},e.getTipElement=function o(){return this.tip=this.tip||Rn(this.config.template)[0],this.tip},e.setContent=function s(){var t=Rn(this.getTipElement());this.setElementContent(t.find(Gn.TITLE),this.getTitle());var e=this._getContent();"function"==typeof e&&(e=e.call(this.element)),this.setElementContent(t.find(Gn.CONTENT),e),t.removeClass(Bn.FADE+" "+Bn.SHOW)},e._getContent=function a(){return this.element.getAttribute("data-content")||this.config.content},e._cleanTipClass=function l(){var t=Rn(this.getTipElement()),e=t.attr("class").match(Un);null!==e&&0<e.length&&t.removeClass(e.join(""))},i._jQueryInterface=function c(n){return this.each(function(){var t=Rn(this).data(Wn),e="object"==typeof n?n:null;if((t||!/destroy|hide/.test(n))&&(t||(t=new i(this,e),Rn(this).data(Wn,t)),"string"==typeof n)){if("undefined"==typeof t[n])throw new TypeError('No method named "'+n+'"');t[n]()}})},w(i,null,[{key:"VERSION",get:function f(){return kn}},{key:"Default",get:function f(){return Vn}},{key:"NAME",get:function f(){return Hn}},{key:"DATA_KEY",get:function f(){return Wn}},{key:"Event",get:function f(){return Kn}},{key:"EVENT_KEY",get:function f(){return Fn}},{key:"DefaultType",get:function f(){return jn}}]),i}(Ti),Rn.fn[Hn]=Qn._jQueryInterface,Rn.fn[Hn].Constructor=Qn,Rn.fn[Hn].noConflict=function(){return Rn.fn[Hn]=Mn,Qn._jQueryInterface},Qn),Ci=(qn="scrollspy",Xn="4.1.1",Jn="."+(zn="bs.scrollspy"),Zn=".data-api",$n=(Yn=e).fn[qn],ti={offset:10,method:"auto",target:""},ei={offset:"number",method:"string",target:"(string|element)"},ni={ACTIVATE:"activate"+Jn,SCROLL:"scroll"+Jn,LOAD_DATA_API:"load"+Jn+Zn},ii={DROPDOWN_ITEM:"dropdown-item",DROPDOWN_MENU:"dropdown-menu",ACTIVE:"active"},ri={DATA_SPY:'[data-spy="scroll"]',ACTIVE:".active",
|
13
|
+
NAV_LIST_GROUP:".nav, .list-group",NAV_LINKS:".nav-link",NAV_ITEMS:".nav-item",LIST_ITEMS:".list-group-item",DROPDOWN:".dropdown",DROPDOWN_ITEMS:".dropdown-item",DROPDOWN_TOGGLE:".dropdown-toggle"},oi={OFFSET:"offset",POSITION:"position"},si=function(){function n(t,e){var n=this;this._element=t,this._scrollElement="BODY"===t.tagName?window:t,this._config=this._getConfig(e),this._selector=this._config.target+" "+ri.NAV_LINKS+","+this._config.target+" "+ri.LIST_ITEMS+","+this._config.target+" "+ri.DROPDOWN_ITEMS,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,Yn(this._scrollElement).on(ni.SCROLL,function(t){return n._process(t)}),this.refresh(),this._process()}var t=n.prototype;return t.refresh=function i(){var e=this,t=this._scrollElement===this._scrollElement.window?oi.OFFSET:oi.POSITION,r="auto"===this._config.method?t:this._config.method,o=r===oi.POSITION?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),Yn.makeArray(Yn(this._selector)).map(function(t){var e,n=de.getSelectorFromElement(t);if(n&&(e=Yn(n)[0]),e){var i=e.getBoundingClientRect();if(i.width||i.height)return[Yn(e)[r]().top+o,n]}return null}).filter(function(t){return t}).sort(function(t,e){return t[0]-e[0]}).forEach(function(t){e._offsets.push(t[0]),e._targets.push(t[1])})},t.dispose=function e(){Yn.removeData(this._element,zn),Yn(this._scrollElement).off(Jn),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},t._getConfig=function r(t){if("string"!=typeof(t=N({},ti,"object"==typeof t&&t?t:{})).target){var e=Yn(t.target).attr("id");e||(e=de.getUID(qn),Yn(t.target).attr("id",e)),t.target="#"+e}return de.typeCheckConfig(qn,t,ei),t},t._getScrollTop=function o(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},t._getScrollHeight=function s(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},t._getOffsetHeight=function a(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},t._process=function l(){var t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),n=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),n<=t){var i=this._targets[this._targets.length-1];this._activeTarget!==i&&this._activate(i)}else{if(this._activeTarget&&t<this._offsets[0]&&0<this._offsets[0])return this._activeTarget=null,void this._clear();for(var r=this._offsets.length;r--;){this._activeTarget!==this._targets[r]&&t>=this._offsets[r]&&("undefined"==typeof this._offsets[r+1]||t<this._offsets[r+1])&&this._activate(this._targets[r])}}},t._activate=function c(e){this._activeTarget=e,this._clear();var t=this._selector.split(",");t=t.map(function(t){return t+'[data-target="'+e+'"],'+t+'[href="'+e+'"]'});var n=Yn(t.join(","));n.hasClass(ii.DROPDOWN_ITEM)?(n.closest(ri.DROPDOWN).find(ri.DROPDOWN_TOGGLE).addClass(ii.ACTIVE),n.addClass(ii.ACTIVE)):(n.addClass(ii.ACTIVE),n.parents(ri.NAV_LIST_GROUP).prev(ri.NAV_LINKS+", "+ri.LIST_ITEMS).addClass(ii.ACTIVE),n.parents(ri.NAV_LIST_GROUP).prev(ri.NAV_ITEMS).children(ri.NAV_LINKS).addClass(ii.ACTIVE)),Yn(this._scrollElement).trigger(ni.ACTIVATE,{relatedTarget:e})},t._clear=function f(){Yn(this._selector).filter(ri.ACTIVE).removeClass(ii.ACTIVE)},n._jQueryInterface=function h(e){return this.each(function(){var t=Yn(this).data(zn);if(t||(t=new n(this,"object"==typeof e&&e),Yn(this).data(zn,t)),"string"==typeof e){if("undefined"==typeof t[e])throw new TypeError('No method named "'+e+'"');t[e]()}})},w(n,null,[{key:"VERSION",get:function u(){return Xn}},{key:"Default",get:function u(){return ti}}]),n}(),Yn(window).on(ni.LOAD_DATA_API,function(){for(var t=Yn.makeArray(Yn(ri.DATA_SPY)),e=t.length;e--;){var n=Yn(t[e]);si._jQueryInterface.call(n,n.data())}}),Yn.fn[qn]=si._jQueryInterface,Yn.fn[qn].Constructor=si,Yn.fn[qn].noConflict=function(){return Yn.fn[qn]=$n,si._jQueryInterface},si),Ai=(li="tab",ci="4.1.1",hi="."+(fi="bs.tab"),ui=".data-api",di=(ai=e).fn[li],pi={HIDE:"hide"+hi,HIDDEN:"hidden"+hi,SHOW:"show"+hi,SHOWN:"shown"+hi,CLICK_DATA_API:"click"+hi+ui},gi={DROPDOWN_MENU:"dropdown-menu",ACTIVE:"active",DISABLED:"disabled",FADE:"fade",SHOW:"show"},mi={DROPDOWN:".dropdown",NAV_LIST_GROUP:".nav, .list-group",ACTIVE:".active",ACTIVE_UL:"> li > .active",DATA_TOGGLE:'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',DROPDOWN_TOGGLE:".dropdown-toggle",DROPDOWN_ACTIVE_CHILD:"> .dropdown-menu .active"},_i=function(){function i(t){this._element=t}var t=i.prototype;return t.show=function c(){var n=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&ai(this._element).hasClass(gi.ACTIVE)||ai(this._element).hasClass(gi.DISABLED))){var t,i,e=ai(this._element).closest(mi.NAV_LIST_GROUP)[0],r=de.getSelectorFromElement(this._element);if(e){var o="UL"===e.nodeName?mi.ACTIVE_UL:mi.ACTIVE;i=(i=ai.makeArray(ai(e).find(o)))[i.length-1]}var s=ai.Event(pi.HIDE,{relatedTarget:this._element}),a=ai.Event(pi.SHOW,{relatedTarget:i});if(i&&ai(i).trigger(s),ai(this._element).trigger(a),!a.isDefaultPrevented()&&!s.isDefaultPrevented()){r&&(t=ai(r)[0]),this._activate(this._element,e);var l=function l(){var t=ai.Event(pi.HIDDEN,{relatedTarget:n._element}),e=ai.Event(pi.SHOWN,{relatedTarget:i});ai(i).trigger(t),ai(n._element).trigger(e)};t?this._activate(t,t.parentNode,l):l()}}},t.dispose=function e(){ai.removeData(this._element,fi),this._element=null},t._activate=function l(t,e,n){var i=this,r=("UL"===e.nodeName?ai(e).find(mi.ACTIVE_UL):ai(e).children(mi.ACTIVE))[0],o=n&&r&&ai(r).hasClass(gi.FADE),s=function s(){return i._transitionComplete(t,r,n)};if(r&&o){var a=de.getTransitionDurationFromElement(r);ai(r).one(de.TRANSITION_END,s).emulateTransitionEnd(a)}else s()},t._transitionComplete=function o(t,e,n){if(e){ai(e).removeClass(gi.SHOW+" "+gi.ACTIVE);var i=ai(e.parentNode).find(mi.DROPDOWN_ACTIVE_CHILD)[0];i&&ai(i).removeClass(gi.ACTIVE),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!1)}if(ai(t).addClass(gi.ACTIVE),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),de.reflow(t),ai(t).addClass(gi.SHOW),t.parentNode&&ai(t.parentNode).hasClass(gi.DROPDOWN_MENU)){var r=ai(t).closest(mi.DROPDOWN)[0];r&&ai(r).find(mi.DROPDOWN_TOGGLE).addClass(gi.ACTIVE),t.setAttribute("aria-expanded",!0)}n&&n()},i._jQueryInterface=function r(n){return this.each(function(){var t=ai(this),e=t.data(fi);if(e||(e=new i(this),t.data(fi,e)),"string"==typeof n){if("undefined"==typeof e[n])throw new TypeError('No method named "'+n+'"');e[n]()}})},w(i,null,[{key:"VERSION",get:function n(){return ci}}]),i}(),ai(document).on(pi.CLICK_DATA_API,mi.DATA_TOGGLE,function(t){t.preventDefault(),_i._jQueryInterface.call(ai(this),"show")}),ai.fn[li]=_i._jQueryInterface,ai.fn[li].Constructor=_i,ai.fn[li].noConflict=function(){return ai.fn[li]=di,_i._jQueryInterface},_i);!function(t){if(void 0===t)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var e=t.fn.jquery.split(" ")[0].split("."),n=1,i=2,r=9,o=1,s=4;if(e[0]<i&&e[1]<r||e[0]===n&&e[1]===r&&e[2]<o||e[0]>=s)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}(e),t.Util=de,t.Alert=pe,t.Button=ge,t.Carousel=me,t.Collapse=_e,t.Dropdown=Ei,t.Modal=vi,t.Popover=yi,t.Scrollspy=Ci,t.Tab=Ai,t.Tooltip=Ti,Object.defineProperty(t,"__esModule",{value:!0})});
|
14
|
+
// bootstrap_modal_decko.js
|
15
|
+
decko.slotReady(function(t){t.find(".modal.fade").on("loaded.bs.modal",function(){$(this).trigger("slotReady")}),t.find("[data-toggle='modal']").off("click").on("click",function(t){var o,e,a;return t.preventDefault(),t.stopPropagation(),e=(o=$(this)).attr("href"),a=o.data("target"),$(a).modal("show"),$.ajax({url:e,type:"GET",success:function(t){return $(a+" .modal-content").html(t),$(a).trigger("loaded.bs.modal")},error:function(t){return $(a+" .modal-content").html(t.responseText),$(a).trigger("loaded.bs.modal")}}),!1})});
|
16
|
+
// script_load_select2.js.coffee
|
17
|
+
(function(){$.fn.select2.defaults.set("theme","bootstrap"),decko.slotReady(function(t){return t.find("select:not(._no-select2)").each(function(){return decko.initSelect2($(this))})}),decko.slotDestroy(function(t){return t.find("select:not(._no-select2)").each(function(){return $(this).deInitSelect2()})}),$.extend(decko,{initSelect2:function(t){var e,n,i,c,s;if(1<t.length){for(c=[],e=0,n=t.length;e<n;e++)s=t[e],c.push(decko.initSelect2($(s)));return c}return i={dropdownAutoWidth:"true",containerCssClass:":all:",width:"auto"},t.attr("id",decko.uniqSelect2Id(t.attr("id"))),t.hasClass("tags")&&(i.tags="true"),null!=t.data("minimum-results-for-search")&&(i.minimumResultsForSearch=t.data("minimum-results-for-search")),t.select2(i)},uniqSelect2Id:function(t){return 0<$("[data-select2-id="+t+"]").length?decko.uniqSelect2Id(t+"1"):t}}),$(window).ready(function(){return $("body").on("select2:select","._go-to-selected",function(){var t;if(""!==(t=$(this).val()))return window.location=decko.path(escape(t))}),$("body").on("select2:select","._submit-on-select",function(t){return $(t.target).closest("form").submit()})}),$.fn.extend({cloneSelect2:function(t,e){var n,i;return(i=this.is("select")?this:this.find("select")).deInitSelect2(),n=this.clone(t,e),decko.initSelect2(i),n.is("select")?decko.initSelect2(n):decko.initSelect2(n.find("select")),n},deInitSelect2:function(){if(this.attr("data-select2-id"))return this.select2("destroy"),this.removeAttr("data-select2-id"),this.find("option").removeAttr("data-select2-id")}})}).call(this);
|
18
|
+
// bootstrap-colorpicker.min.js
|
19
|
+
/*!
|
20
|
+
* Bootstrap Colorpicker v2.5.2
|
21
|
+
* https://itsjavi.com/bootstrap-colorpicker/
|
22
|
+
*/
|
23
|
+
!function(t,e){"function"==typeof define&&define.amd?define(["jquery"],function(t){return e(t)}):"object"==typeof exports?module.exports=e(require("jquery")):jQuery&&!jQuery.fn.colorpicker&&e(jQuery)}(0,function(h){"use strict";var s=function(t,e,o,i,r){this.fallbackValue=o?"string"==typeof o?this.parse(o):o:null,this.fallbackFormat=i||"rgba",this.hexNumberSignPrefix=!0===r,this.value=this.fallbackValue,this.origFormat=null,this.predefinedColors=e||{},this.colors=h.extend({},s.webColors,this.predefinedColors),t&&("undefined"!=typeof t.h?this.value=t:this.setColor(String(t))),this.value||(this.value={h:0,s:0,b:0,a:1})};s.webColors={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32",transparent:"transparent"};var a={horizontal:!(s.prototype={constructor:s,colors:{},predefinedColors:{},getValue:function(){return this.value},setValue:function(t){this.value=t},_sanitizeNumber:function(t){return"number"==typeof t?t:isNaN(t)||null===t||""===t||void 0===t?1:""===t?0:"undefined"!=typeof t.toLowerCase?(t.match(/^\./)&&(t="0"+t),Math.ceil(100*parseFloat(t))/100):1},isTransparent:function(t){return!(!t||!("string"==typeof t||t instanceof String))&&("transparent"===(t=t.toLowerCase().trim())||t.match(/#?00000000/)||t.match(/(rgba|hsla)\(0,0,0,0?\.?0\)/))},rgbaIsTransparent:function(t){return 0===t.r&&0===t.g&&0===t.b&&0===t.a},setColor:function(t){if(t=t.toLowerCase().trim()){if(this.isTransparent(t))return this.value={h:0,s:0,b:0,a:0},!0;var e=this.parse(t);e?(this.value=this.value={h:e.h,s:e.s,b:e.b,a:e.a},this.origFormat||(this.origFormat=e.format)):this.fallbackValue&&(this.value=this.fallbackValue)}return!1},setHue:function(t){this.value.h=1-t},setSaturation:function(t){this.value.s=t},setBrightness:function(t){this.value.b=1-t},setAlpha:function(t){this.value.a=Math.round(parseInt(100*(1-t),10)/100*100)/100},toRGB:function(t,e,o,i){var r,s,a,n,l;return 0===arguments.length&&(t=this.value.h,e=this.value.s,o=this.value.b,i=this.value.a),t=(t*=360)%360/60,r=s=a=o-(l=o*e),r+=[l,n=l*(1-Math.abs(t%2-1)),0,0,n,l][t=~~t],s+=[n,l,l,n,0,0][t],a+=[0,0,n,l,l,n][t],{r:Math.round(255*r),g:Math.round(255*s),b:Math.round(255*a),a:i}},toHex:function(t,e,o,i,r){arguments.length<=1&&(e=this.value.h,o=this.value.s,i=this.value.b,r=this.value.a);var s="#",a=this.toRGB(e,o,i,r);return this.rgbaIsTransparent(a)?"transparent":(t||(s=this.hexNumberSignPrefix?"#":""),s+((1<<24)+(parseInt(a.r)<<16)+(parseInt(a.g)<<8)+parseInt(a.b)).toString(16).slice(1))},toHSL:function(t,e,o,i){0===arguments.length&&(t=this.value.h,e=this.value.s,o=this.value.b,i=this.value.a);var r=t,s=(2-e)*o,a=e*o;return a/=0<s&&s<=1?s:2-s,s/=2,1<a&&(a=1),{h:isNaN(r)?0:r,s:isNaN(a)?0:a,l:isNaN(s)?0:s,a:isNaN(i)?0:i}},toAlias:function(t,e,o,i){var r,s=0===arguments.length?this.toHex(!0):this.toHex(!0,t,e,o,i),a="alias"===this.origFormat?s:this.toString(!1,this.origFormat);for(var n in this.colors)if((r=this.colors[n].toLowerCase().trim())===s||r===a)return n;return!1},RGBtoHSB:function(t,e,o,i){var r,s,a,n;return t/=255,e/=255,o/=255,r=((r=0===(n=(a=Math.max(t,e,o))-Math.min(t,e,o))?null:a===t?(e-o)/n:a===e?(o-t)/n+2:(t-e)/n+4)+360)%6*60/360,s=0===n?0:n/a,{h:this._sanitizeNumber(r),s:s,b:a,a:this._sanitizeNumber(i)}},HueToRGB:function(t,e,o){return o<0?o+=1:1<o&&(o-=1),6*o<1?t+(e-t)*o*6:2*o<1?e:3*o<2?t+(e-t)*(2/3-o)*6:t},HSLtoRGB:function(t,e,o,i){var r;e<0&&(e=0);var s=2*o-(r=o<=.5?o*(1+e):o+e-o*e),a=t+1/3,n=t,l=t-1/3;return[Math.round(255*this.HueToRGB(s,r,a)),Math.round(255*this.HueToRGB(s,r,n)),Math.round(255*this.HueToRGB(s,r,l)),this._sanitizeNumber(i)]},parse:function(i){if("string"!=typeof i)return this.fallbackValue;if(0===arguments.length)return!1;var r,s,a=this,n=!1,l="undefined"!=typeof this.colors[i];return l&&(i=this.colors[i].toLowerCase().trim()),h.each(this.stringParsers,function(t,e){var o=e.re.exec(i);return!(r=o&&e.parse.apply(a,[o]))||(n={},s=l?"alias":e.format?e.format:a.getValidFallbackFormat(),(n=s.match(/hsla?/)?a.RGBtoHSB.apply(a,a.HSLtoRGB.apply(a,r)):a.RGBtoHSB.apply(a,r))instanceof Object&&(n.format=s),!1)}),n},getValidFallbackFormat:function(){var t=["rgba","rgb","hex","hsla","hsl"];return this.origFormat&&-1!==t.indexOf(this.origFormat)?this.origFormat:this.fallbackFormat&&-1!==t.indexOf(this.fallbackFormat)?this.fallbackFormat:"rgba"},toString:function(t,e,o){o=o||!1;var i=!1;switch(e=e||this.origFormat||this.fallbackFormat){case"rgb":return i=this.toRGB(),this.rgbaIsTransparent(i)?"transparent":"rgb("+i.r+","+i.g+","+i.b+")";case"rgba":return"rgba("+(i=this.toRGB()).r+","+i.g+","+i.b+","+i.a+")";case"hsl":return i=this.toHSL(),"hsl("+Math.round(360*i.h)+","+Math.round(100*i.s)+"%,"+Math.round(100*i.l)+"%)";case"hsla":return i=this.toHSL(),"hsla("+Math.round(360*i.h)+","+Math.round(100*i.s)+"%,"+Math.round(100*i.l)+"%,"+i.a+")";case"hex":return this.toHex(t);case"alias":return!1===(i=this.toAlias())?this.toString(t,this.getValidFallbackFormat()):o&&!(i in s.webColors)&&i in this.predefinedColors?this.predefinedColors[i]:i;default:return i}},stringParsers:[{re:/rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*?\)/,format:"rgb",parse:function(t){return[t[1],t[2],t[3],1]}},{re:/rgb\(\s*(\d*(?:\.\d+)?)\%\s*,\s*(\d*(?:\.\d+)?)\%\s*,\s*(\d*(?:\.\d+)?)\%\s*?\)/,format:"rgb",parse:function(t){return[2.55*t[1],2.55*t[2],2.55*t[3],1]}},{re:/rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d*(?:\.\d+)?)\s*)?\)/,format:"rgba",parse:function(t){return[t[1],t[2],t[3],t[4]]}},{re:/rgba\(\s*(\d*(?:\.\d+)?)\%\s*,\s*(\d*(?:\.\d+)?)\%\s*,\s*(\d*(?:\.\d+)?)\%\s*(?:,\s*(\d*(?:\.\d+)?)\s*)?\)/,format:"rgba",parse:function(t){return[2.55*t[1],2.55*t[2],2.55*t[3],t[4]]}},{re:/hsl\(\s*(\d*(?:\.\d+)?)\s*,\s*(\d*(?:\.\d+)?)\%\s*,\s*(\d*(?:\.\d+)?)\%\s*?\)/,format:"hsl",parse:function(t){return[t[1]/360,t[2]/100,t[3]/100,t[4]]}},{re:/hsla\(\s*(\d*(?:\.\d+)?)\s*,\s*(\d*(?:\.\d+)?)\%\s*,\s*(\d*(?:\.\d+)?)\%\s*(?:,\s*(\d*(?:\.\d+)?)\s*)?\)/,format:"hsla",parse:function(t){return[t[1]/360,t[2]/100,t[3]/100,t[4]]}},{re:/#?([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/,format:"hex",parse:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16),1]}},{re:/#?([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/,format:"hex",parse:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16),1]}}],colorNameToHex:function(t){return"undefined"!=typeof this.colors[t.toLowerCase()]&&this.colors[t.toLowerCase()]}}),inline:!1,color:!1,format:!1,input:"input",container:!1,component:".add-on, .input-group-addon",fallbackColor:!1,fallbackFormat:"hex",hexNumberSignPrefix:!0,sliders:{saturation:{maxLeft:100,maxTop:100,callLeft:"setSaturation",callTop:"setBrightness"},hue:{maxLeft:0,maxTop:100,callLeft:!1,callTop:"setHue"},alpha:{maxLeft:0,maxTop:100,callLeft:!1,callTop:"setAlpha"}},slidersHorz:{saturation:{maxLeft:100,maxTop:100,callLeft:"setSaturation",callTop:"setBrightness"},hue:{maxLeft:100,maxTop:0,callLeft:"setHue",callTop:!1},alpha:{maxLeft:100,maxTop:0,callLeft:"setAlpha",callTop:!1}},template:'<div class="colorpicker dropdown-menu"><div class="colorpicker-saturation"><i><b></b></i></div><div class="colorpicker-hue"><i></i></div><div class="colorpicker-alpha"><i></i></div><div class="colorpicker-color"><div /></div><div class="colorpicker-selectors"></div></div>',align:"right",customClass:null,colorSelectors:null},n=function(t,e){this.element=h(t).addClass("colorpicker-element"),this.options=h.extend(!0,{},a,this.element.data(),e),this.component=this.options.component,this.component=!1!==this.component&&this.element.find(this.component),this.component&&0===this.component.length&&(this.component=!1),this.container=!0===this.options.container?this.element:this.options.container,this.container=!1!==this.container&&h(this.container),this.input=this.element.is("input")?this.element:!!this.options.input&&this.element.find(this.options.input),this.input&&0===this.input.length&&(this.input=!1),this.color=this.createColor(!1!==this.options.color?this.options.color:this.getValue()),this.format=!1!==this.options.format?this.options.format:this.color.origFormat,!1!==this.options.color&&(this.updateInput(this.color),this.updateData(this.color)),this.disabled=!1;var o=this.picker=h(this.options.template);if(this.options.customClass&&o.addClass(this.options.customClass),this.options.inline?o.addClass("colorpicker-inline colorpicker-visible"):o.addClass("colorpicker-hidden"),this.options.horizontal&&o.addClass("colorpicker-horizontal"),-1===["rgba","hsla","alias"].indexOf(this.format)&&!1!==this.options.format&&"transparent"!==this.getValue()||o.addClass("colorpicker-with-alpha"),"right"===this.options.align&&o.addClass("colorpicker-right"),!0===this.options.inline&&o.addClass("colorpicker-no-arrow"),this.options.colorSelectors){var i=this,r=i.picker.find(".colorpicker-selectors");0<r.length&&(h.each(this.options.colorSelectors,function(t,e){var o=h("<i />").addClass("colorpicker-selectors-color").css("background-color",e).data("class",t).data("alias",t);o.on("mousedown.colorpicker touchstart.colorpicker",function(t){t.preventDefault(),i.setValue("alias"===i.format?h(this).data("alias"):h(this).css("background-color"))}),r.append(o)}),r.show().addClass("colorpicker-visible"))}o.on("mousedown.colorpicker touchstart.colorpicker",h.proxy(function(t){t.target===t.currentTarget&&t.preventDefault()},this)),o.find(".colorpicker-saturation, .colorpicker-hue, .colorpicker-alpha").on("mousedown.colorpicker touchstart.colorpicker",h.proxy(this.mousedown,this)),o.appendTo(this.container?this.container:h("body")),!1!==this.input&&(this.input.on({"keyup.colorpicker":h.proxy(this.keyup,this)}),this.input.on({"change.colorpicker":h.proxy(this.change,this)}),!1===this.component&&this.element.on({"focus.colorpicker":h.proxy(this.show,this)}),!1===this.options.inline&&this.element.on({"focusout.colorpicker":h.proxy(this.hide,this)})),!1!==this.component&&this.component.on({"click.colorpicker":h.proxy(this.show,this)}),!1===this.input&&!1===this.component&&this.element.on({"click.colorpicker":h.proxy(this.show,this)}),!1!==this.input&&!1!==this.component&&"color"===this.input.attr("type")&&this.input.on({"click.colorpicker":h.proxy(this.show,this),"focus.colorpicker":h.proxy(this.show,this)}),this.update(),h(h.proxy(function(){this.element.trigger("create")},this))};n.Color=s,n.prototype={constructor:n,destroy:function(){this.picker.remove(),this.element.removeData("colorpicker","color").off(".colorpicker"),!1!==this.input&&this.input.off(".colorpicker"),!1!==this.component&&this.component.off(".colorpicker"),this.element.removeClass("colorpicker-element"),this.element.trigger({type:"destroy"})},reposition:function(){if(!1!==this.options.inline||this.options.container)return!1;var t=this.container&&this.container[0]!==window.document.body?"position":"offset",e=this.component||this.element,o=e[t]();"right"===this.options.align&&(o.left-=this.picker.outerWidth()-e.outerWidth()),this.picker.css({top:o.top+e.outerHeight(),left:o.left})},show:function(t){this.isDisabled()||(this.picker.addClass("colorpicker-visible").removeClass("colorpicker-hidden"),this.reposition(),h(window).on("resize.colorpicker",h.proxy(this.reposition,this)),!t||this.hasInput()&&"color"!==this.input.attr("type")||t.stopPropagation&&t.preventDefault&&(t.stopPropagation(),t.preventDefault()),!this.component&&this.input||!1!==this.options.inline||h(window.document).on({"mousedown.colorpicker":h.proxy(this.hide,this)}),this.element.trigger({type:"showPicker",color:this.color}))},hide:function(t){return(void 0===t||!t.target||!(0<h(t.currentTarget).parents(".colorpicker").length||0<h(t.target).parents(".colorpicker").length))&&(this.picker.addClass("colorpicker-hidden").removeClass("colorpicker-visible"),h(window).off("resize.colorpicker",this.reposition),h(window.document).off({"mousedown.colorpicker":this.hide}),this.update(),void this.element.trigger({type:"hidePicker",color:this.color}))},updateData:function(t){return t=t||this.color.toString(!1,this.format),this.element.data("color",t),t},updateInput:function(t){return t=t||this.color.toString(!1,this.format),!1!==this.input&&(this.input.prop("value",t),this.input.trigger("change")),t},updatePicker:function(t){void 0!==t&&(this.color=this.createColor(t));var e=!1===this.options.horizontal?this.options.sliders:this.options.slidersHorz,o=this.picker.find("i");if(0!==o.length)return!1===this.options.horizontal?(e=this.options.sliders,o.eq(1).css("top",e.hue.maxTop*(1-this.color.value.h)).end().eq(2).css("top",e.alpha.maxTop*(1-this.color.value.a))):(e=this.options.slidersHorz,o.eq(1).css("left",e.hue.maxLeft*(1-this.color.value.h)).end().eq(2).css("left",e.alpha.maxLeft*(1-this.color.value.a))),o.eq(0).css({top:e.saturation.maxTop-this.color.value.b*e.saturation.maxTop,left:this.color.value.s*e.saturation.maxLeft}),this.picker.find(".colorpicker-saturation").css("backgroundColor",this.color.toHex(!0,this.color.value.h,1,1,1)),this.picker.find(".colorpicker-alpha").css("backgroundColor",this.color.toHex(!0)),this.picker.find(".colorpicker-color, .colorpicker-color div").css("backgroundColor",this.color.toString(!0,this.format)),t},updateComponent:function(t){var e;if(e=void 0!==t?this.createColor(t):this.color,!1!==this.component){var o=this.component.find("i").eq(0);0<o.length?o.css({backgroundColor:e.toString(!0,this.format)}):this.component.css({backgroundColor:e.toString(!0,this.format)})}return e.toString(!1,this.format)},update:function(t){var e;return!1===this.getValue(!1)&&!0!==t||(e=this.updateComponent(),this.updateInput(e),this.updateData(e),this.updatePicker()),e},setValue:function(t){this.color=this.createColor(t),this.update(!0),this.element.trigger({type:"changeColor",color:this.color,value:t})},createColor:function(t){return new s(t||null,this.options.colorSelectors,this.options.fallbackColor?this.options.fallbackColor:this.color,this.options.fallbackFormat,this.options.hexNumberSignPrefix)},getValue:function(t){var e;return t=void 0===t?this.options.fallbackColor:t,void 0!==(e=this.hasInput()?this.input.val():this.element.data("color"))&&""!==e&&null!==e||(e=t),e},hasInput:function(){return!1!==this.input},isDisabled:function(){return this.disabled},disable:function(){return this.hasInput()&&this.input.prop("disabled",!0),this.disabled=!0,this.element.trigger({type:"disable",color:this.color,value:this.getValue()}),!0},enable:function(){return this.hasInput()&&this.input.prop("disabled",!1),this.disabled=!1,this.element.trigger({type:"enable",color:this.color,value:this.getValue()}),!0},currentSlider:null,mousePointer:{left:0,top:0},mousedown:function(t){!t.pageX&&!t.pageY&&t.originalEvent&&t.originalEvent.touches&&(t.pageX=t.originalEvent.touches[0].pageX,t.pageY=t.originalEvent.touches[0].pageY),t.stopPropagation(),t.preventDefault();var e=h(t.target).closest("div"),o=this.options.horizontal?this.options.slidersHorz:this.options.sliders;if(!e.is(".colorpicker")){if(e.is(".colorpicker-saturation"))this.currentSlider=h.extend({},o.saturation);else if(e.is(".colorpicker-hue"))this.currentSlider=h.extend({},o.hue);else{if(!e.is(".colorpicker-alpha"))return!1;this.currentSlider=h.extend({},o.alpha)}var i=e.offset();this.currentSlider.guide=e.find("i")[0].style,this.currentSlider.left=t.pageX-i.left,this.currentSlider.top=t.pageY-i.top,this.mousePointer={left:t.pageX,top:t.pageY},h(window.document).on({"mousemove.colorpicker":h.proxy(this.mousemove,this),"touchmove.colorpicker":h.proxy(this.mousemove,this),"mouseup.colorpicker":h.proxy(this.mouseup,this),"touchend.colorpicker":h.proxy(this.mouseup,this)}).trigger("mousemove")}return!1},mousemove:function(t){!t.pageX&&!t.pageY&&t.originalEvent&&t.originalEvent.touches&&(t.pageX=t.originalEvent.touches[0].pageX,t.pageY=t.originalEvent.touches[0].pageY),t.stopPropagation(),t.preventDefault();var e=Math.max(0,Math.min(this.currentSlider.maxLeft,this.currentSlider.left+((t.pageX||this.mousePointer.left)-this.mousePointer.left))),o=Math.max(0,Math.min(this.currentSlider.maxTop,this.currentSlider.top+((t.pageY||this.mousePointer.top)-this.mousePointer.top)));return this.currentSlider.guide.left=e+"px",this.currentSlider.guide.top=o+"px",this.currentSlider.callLeft&&this.color[this.currentSlider.callLeft].call(this.color,e/this.currentSlider.maxLeft),this.currentSlider.callTop&&this.color[this.currentSlider.callTop].call(this.color,o/this.currentSlider.maxTop),!1!==this.options.format||"setAlpha"!==this.currentSlider.callTop&&"setAlpha"!==this.currentSlider.callLeft||(1!==this.color.value.a?(this.format="rgba",this.color.origFormat="rgba"):(this.format="hex",this.color.origFormat="hex")),this.update(!0),this.element.trigger({type:"changeColor",color:this.color}),!1},mouseup:function(t){return t.stopPropagation(),t.preventDefault(),h(window.document).off({"mousemove.colorpicker":this.mousemove,"touchmove.colorpicker":this.mousemove,"mouseup.colorpicker":this.mouseup,"touchend.colorpicker":this.mouseup}),!1},change:function(t){this.keyup(t)},keyup:function(t){38===t.keyCode?(this.color.value.a<1&&(this.color.value.a=Math.round(100*(this.color.value.a+.01))/100),this.update(!0)):40===t.keyCode?(0<this.color.value.a&&(this.color.value.a=Math.round(100*(this.color.value.a-.01))/100),this.update(!0)):(this.color=this.createColor(this.input.val()),this.color.origFormat&&!1===this.options.format&&(this.format=this.color.origFormat),!1!==this.getValue(!1)&&(this.updateData(),this.updateComponent(),this.updatePicker())),this.element.trigger({type:"changeColor",color:this.color,value:this.input.val()})}},h.colorpicker=n,h.fn.colorpicker=function(o){var i=Array.prototype.slice.call(arguments,1),t=1===this.length,r=null,e=this.each(function(){var t=h(this),e=t.data("colorpicker");e||(e=new n(this,"object"==typeof o?o:{}),t.data("colorpicker",e)),"string"==typeof o?h.isFunction(e[o])?r=e[o].apply(e,i):(i.length&&(e[o]=i[0]),r=e[o]):r=t});return t?r:e},h.fn.colorpicker.constructor=n});
|
24
|
+
// script_colorpicker.js.coffee
|
25
|
+
(function(){decko.slotReady(function(){return $('[data-toggle="popover"]').popover({html:!0}),$(".colorpicker-component").colorpicker()})}).call(this);
|
@@ -0,0 +1,223 @@
|
|
1
|
+
// script_pointer_config.js.coffee
|
2
|
+
(function() {
|
3
|
+
var permissionsContent, pointerContent;
|
4
|
+
|
5
|
+
$.extend(decko.editorContentFunctionMap, {
|
6
|
+
'select.pointer-select': function() {
|
7
|
+
return pointerContent(this.val());
|
8
|
+
},
|
9
|
+
'select.pointer-multiselect': function() {
|
10
|
+
return pointerContent(this.val());
|
11
|
+
},
|
12
|
+
'.pointer-radio-list': function() {
|
13
|
+
return pointerContent(this.find('input:checked').val());
|
14
|
+
},
|
15
|
+
'.pointer-list-ul': function() {
|
16
|
+
return pointerContent(this.find('input').map(function() {
|
17
|
+
return $(this).val();
|
18
|
+
}));
|
19
|
+
},
|
20
|
+
'.pointer-link-list-ul': function() {
|
21
|
+
return decko.linkListContent(this.find('.input-group'));
|
22
|
+
},
|
23
|
+
'._nest-list-ul': function() {
|
24
|
+
return decko.nestListContent(this.find('.input-group'));
|
25
|
+
},
|
26
|
+
'.pointer-checkbox-list': function() {
|
27
|
+
return pointerContent(this.find('input:checked').map(function() {
|
28
|
+
return $(this).val();
|
29
|
+
}));
|
30
|
+
},
|
31
|
+
'.pointer-select-list': function() {
|
32
|
+
return pointerContent(this.find('.pointer-select select').map(function() {
|
33
|
+
return $(this).val();
|
34
|
+
}));
|
35
|
+
},
|
36
|
+
'._pointer-filtered-list': function() {
|
37
|
+
return pointerContent(this.find('._filtered-list-item').map(function() {
|
38
|
+
return $(this).data('cardName');
|
39
|
+
}));
|
40
|
+
},
|
41
|
+
'._pointer-list': function() {
|
42
|
+
return pointerContent(this.find('._pointer-item').map(function() {
|
43
|
+
return $(this).val();
|
44
|
+
}));
|
45
|
+
},
|
46
|
+
'.perm-editor': function() {
|
47
|
+
return permissionsContent(this);
|
48
|
+
}
|
49
|
+
});
|
50
|
+
|
51
|
+
decko.editorInitFunctionMap['.pointer-list-editor'] = function() {
|
52
|
+
this.sortable({
|
53
|
+
handle: '.handle',
|
54
|
+
cancel: ''
|
55
|
+
});
|
56
|
+
return decko.initPointerList(this.find('input'));
|
57
|
+
};
|
58
|
+
|
59
|
+
decko.editorInitFunctionMap['._pointer-filtered-list'] = function() {
|
60
|
+
return this.sortable({
|
61
|
+
handle: '._handle',
|
62
|
+
cancel: ''
|
63
|
+
});
|
64
|
+
};
|
65
|
+
|
66
|
+
$.extend(decko, {
|
67
|
+
initPointerList: function(input) {
|
68
|
+
return decko.initAutoCardPlete(input);
|
69
|
+
},
|
70
|
+
initAutoCardPlete: function(input) {
|
71
|
+
var optionsCard, path;
|
72
|
+
optionsCard = input.data('options-card');
|
73
|
+
if (!optionsCard) {
|
74
|
+
return;
|
75
|
+
}
|
76
|
+
path = optionsCard + '.json?view=name_match';
|
77
|
+
return input.autocomplete({
|
78
|
+
source: decko.slotPath(path)
|
79
|
+
});
|
80
|
+
},
|
81
|
+
pointerContent: function(vals) {
|
82
|
+
var list;
|
83
|
+
list = $.map($.makeArray(vals), function(v) {
|
84
|
+
if (v) {
|
85
|
+
return '[[' + v + ']]';
|
86
|
+
}
|
87
|
+
});
|
88
|
+
return $.makeArray(list).join("\n");
|
89
|
+
},
|
90
|
+
linkListContent: function(input_groups) {
|
91
|
+
var list, vals;
|
92
|
+
vals = input_groups.map(function() {
|
93
|
+
var title, v;
|
94
|
+
v = $(this).find('input._reference').val();
|
95
|
+
title = $(this).find('input._title').val();
|
96
|
+
if (title.length > 0) {
|
97
|
+
v += "|" + title;
|
98
|
+
}
|
99
|
+
return v;
|
100
|
+
});
|
101
|
+
list = $.map($.makeArray(vals), function(v) {
|
102
|
+
if (v) {
|
103
|
+
return '[[' + v + ']]';
|
104
|
+
}
|
105
|
+
});
|
106
|
+
return $.makeArray(list).join("\n");
|
107
|
+
},
|
108
|
+
nestListContent: function(input_groups) {
|
109
|
+
var list, vals;
|
110
|
+
vals = input_groups.map(function() {
|
111
|
+
var options, v;
|
112
|
+
v = $(this).find('input._reference').val();
|
113
|
+
options = $(this).find('input._nest-options').val();
|
114
|
+
if (options.length > 0) {
|
115
|
+
v += "|" + options;
|
116
|
+
}
|
117
|
+
return v;
|
118
|
+
});
|
119
|
+
list = $.map($.makeArray(vals), function(v) {
|
120
|
+
if (v) {
|
121
|
+
return '{{' + v + '}}';
|
122
|
+
}
|
123
|
+
});
|
124
|
+
return $.makeArray(list).join("\n");
|
125
|
+
}
|
126
|
+
});
|
127
|
+
|
128
|
+
pointerContent = function(vals) {
|
129
|
+
return decko.pointerContent(vals);
|
130
|
+
};
|
131
|
+
|
132
|
+
permissionsContent = function(ed) {
|
133
|
+
var groups, indivs;
|
134
|
+
if (ed.find('#inherit').is(':checked')) {
|
135
|
+
return '_left';
|
136
|
+
}
|
137
|
+
groups = ed.find('.perm-group input:checked').map(function() {
|
138
|
+
return $(this).val();
|
139
|
+
});
|
140
|
+
indivs = ed.find('.perm-indiv input').map(function() {
|
141
|
+
return $(this).val();
|
142
|
+
});
|
143
|
+
return pointerContent($.makeArray(groups).concat($.makeArray(indivs)));
|
144
|
+
};
|
145
|
+
|
146
|
+
}).call(this);
|
147
|
+
|
148
|
+
// script_pointer_list_editor.js.coffee
|
149
|
+
(function() {
|
150
|
+
$(window).ready(function() {
|
151
|
+
$('body').on('click', '._pointer-item-add', function(event) {
|
152
|
+
decko.addPointerItem(this);
|
153
|
+
return event.preventDefault();
|
154
|
+
});
|
155
|
+
$('body').on('keydown', '.pointer-item-text', function(event) {
|
156
|
+
if (event.key === 'Enter') {
|
157
|
+
decko.addPointerItem(this);
|
158
|
+
return event.preventDefault();
|
159
|
+
}
|
160
|
+
});
|
161
|
+
$('body').on('keyup', '.pointer-item-text', function(_event) {
|
162
|
+
return decko.updateAddItemButton(this);
|
163
|
+
});
|
164
|
+
return $('body').on('click', '.pointer-item-delete', function() {
|
165
|
+
var item, list;
|
166
|
+
item = $(this).closest('li');
|
167
|
+
list = item.closest('ul');
|
168
|
+
if (list.find('.pointer-li').length > 1) {
|
169
|
+
item.remove();
|
170
|
+
} else {
|
171
|
+
item.find('input').val('');
|
172
|
+
}
|
173
|
+
return decko.updateAddItemButton(list);
|
174
|
+
});
|
175
|
+
});
|
176
|
+
|
177
|
+
decko.slotReady(function(slot) {
|
178
|
+
return slot.find('.pointer-list-editor').each(function() {
|
179
|
+
return decko.updateAddItemButton(this);
|
180
|
+
});
|
181
|
+
});
|
182
|
+
|
183
|
+
$.extend(decko, {
|
184
|
+
addPointerItem: function(el) {
|
185
|
+
var newInput, slot;
|
186
|
+
slot = $(el).slot();
|
187
|
+
slot.trigger("slotDestroy");
|
188
|
+
newInput = decko.nextPointerInput(decko.lastPointerItem(el));
|
189
|
+
newInput.val('');
|
190
|
+
slot.trigger("slotReady");
|
191
|
+
decko.initializeEditors(slot);
|
192
|
+
newInput.first().focus();
|
193
|
+
decko.updateAddItemButton(el);
|
194
|
+
return decko.initPointerList(newInput);
|
195
|
+
},
|
196
|
+
nextPointerInput: function(lastItem) {
|
197
|
+
var all_empty, i, input, lastInputs, len, newItem;
|
198
|
+
lastInputs = lastItem.find('input');
|
199
|
+
all_empty = true;
|
200
|
+
for (i = 0, len = lastInputs.length; i < len; i++) {
|
201
|
+
input = lastInputs[i];
|
202
|
+
all_empty = all_empty && $(input).val() === '';
|
203
|
+
}
|
204
|
+
if (all_empty) {
|
205
|
+
return lastInputs;
|
206
|
+
}
|
207
|
+
newItem = lastItem.clone();
|
208
|
+
lastItem.after(newItem);
|
209
|
+
newItem.attr("data-index", parseInt(lastItem.attr("data-index") + 1));
|
210
|
+
return newItem.find('input');
|
211
|
+
},
|
212
|
+
lastPointerItem: function(el) {
|
213
|
+
return $(el).closest('.content-editor').find('.pointer-li:last');
|
214
|
+
},
|
215
|
+
updateAddItemButton: function(el) {
|
216
|
+
var button, disabled;
|
217
|
+
button = $(el).closest('.content-editor').find('._pointer-item-add');
|
218
|
+
disabled = decko.lastPointerItem(el).find('input').val() === '';
|
219
|
+
return button.prop('disabled', disabled);
|
220
|
+
}
|
221
|
+
});
|
222
|
+
|
223
|
+
}).call(this);
|
@@ -0,0 +1,17 @@
|
|
1
|
+
class Card
|
2
|
+
class Bootstrap
|
3
|
+
include Delegate
|
4
|
+
extend ComponentLoader
|
5
|
+
load_components
|
6
|
+
|
7
|
+
attr_reader :context
|
8
|
+
|
9
|
+
def initialize context=nil
|
10
|
+
@context = context
|
11
|
+
end
|
12
|
+
|
13
|
+
def render *args, &block
|
14
|
+
instance_exec(*args, &block)
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
class Card
|
2
|
+
class Bootstrap
|
3
|
+
module BasicTags
|
4
|
+
def html content
|
5
|
+
add_content String(content).html_safe
|
6
|
+
""
|
7
|
+
end
|
8
|
+
|
9
|
+
Component.def_div_method :div, nil do |opts, extra_args|
|
10
|
+
prepend_class opts, extra_args.first if extra_args.present?
|
11
|
+
opts
|
12
|
+
end
|
13
|
+
|
14
|
+
Component.def_div_method :span, nil do |opts, extra_args|
|
15
|
+
prepend_class opts, extra_args.first if extra_args.present?
|
16
|
+
opts
|
17
|
+
end
|
18
|
+
|
19
|
+
Component.def_tag_method :tag, nil, tag: :yield do |opts, extra_args|
|
20
|
+
prepend_class opts, extra_args[1] if extra_args[1].present?
|
21
|
+
opts[:tag] = extra_args[0]
|
22
|
+
opts
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,110 @@
|
|
1
|
+
class Card
|
2
|
+
class Bootstrap
|
3
|
+
# render components of bootstrap library
|
4
|
+
class Component
|
5
|
+
extend ComponentKlass
|
6
|
+
|
7
|
+
def initialize context, *args, &block
|
8
|
+
@context = context
|
9
|
+
@content = ["".html_safe]
|
10
|
+
@args = args
|
11
|
+
@child_args = []
|
12
|
+
@append = []
|
13
|
+
@wrap = []
|
14
|
+
@build_block = block
|
15
|
+
@html = Builder::XmlMarkup.new
|
16
|
+
end
|
17
|
+
|
18
|
+
def render
|
19
|
+
@rendered = render_content
|
20
|
+
end
|
21
|
+
|
22
|
+
def prepend &block
|
23
|
+
tmp = @content.pop
|
24
|
+
instance_exec(&block)
|
25
|
+
@content << tmp
|
26
|
+
end
|
27
|
+
|
28
|
+
def insert &block
|
29
|
+
instance_exec(&block)
|
30
|
+
end
|
31
|
+
|
32
|
+
def append &block
|
33
|
+
@append[-1] << block
|
34
|
+
end
|
35
|
+
|
36
|
+
def wrap tag=nil, &block
|
37
|
+
@wrap[-1] << (block_given? ? block : tag)
|
38
|
+
end
|
39
|
+
|
40
|
+
def card
|
41
|
+
@context.context.card
|
42
|
+
end
|
43
|
+
|
44
|
+
private
|
45
|
+
|
46
|
+
def tag_method_opts args, html_class, tag_opts, &tag_opts_block
|
47
|
+
opts = {}
|
48
|
+
_blah, opts, _blah = standardize_args args, &tag_opts_block if block_given?
|
49
|
+
add_classes opts, html_class, tag_opts.delete(:optional_classes)
|
50
|
+
opts
|
51
|
+
end
|
52
|
+
|
53
|
+
def render_content
|
54
|
+
# if @build_block.arity > 0
|
55
|
+
instance_exec(*@args, &@build_block)
|
56
|
+
end
|
57
|
+
|
58
|
+
def generate_content content, processor, &block
|
59
|
+
content = instance_exec(&block) if block.present?
|
60
|
+
return content if !processor || !content.is_a?(Array)
|
61
|
+
|
62
|
+
content.each { |item| send processor, item }
|
63
|
+
""
|
64
|
+
end
|
65
|
+
|
66
|
+
def with_child_args args
|
67
|
+
@child_args << args if args.present?
|
68
|
+
yield.tap { @child_args.pop if args.present? }
|
69
|
+
end
|
70
|
+
|
71
|
+
def add_content content
|
72
|
+
@content[-1] << "\n#{content}".html_safe if content.present?
|
73
|
+
end
|
74
|
+
|
75
|
+
def standardize_args args, &block
|
76
|
+
opts = standardize_opts args
|
77
|
+
items = items_from_args args
|
78
|
+
opts, args = standardize_block_args opts, args, &block if block.present?
|
79
|
+
|
80
|
+
[items, opts, args]
|
81
|
+
end
|
82
|
+
|
83
|
+
def standardize_opts args
|
84
|
+
args.last.is_a?(Hash) ? args.pop : {}
|
85
|
+
end
|
86
|
+
|
87
|
+
def items_from_args args
|
88
|
+
((args.one? && args.last.is_a?(String)) || args.last.is_a?(Array)) && args.pop
|
89
|
+
end
|
90
|
+
|
91
|
+
def standardize_block_args opts, args, &block
|
92
|
+
instance_exec(opts, args, &block).tap do |s_opts, _s_args|
|
93
|
+
unless s_opts.is_a? Hash
|
94
|
+
raise Card::Error, "first return value of a tag block has to be a hash"
|
95
|
+
end
|
96
|
+
end
|
97
|
+
end
|
98
|
+
|
99
|
+
def add_classes opts, html_class, optional_classes
|
100
|
+
prepend_class opts, html_class if html_class
|
101
|
+
Array.wrap(optional_classes).each do |k, v|
|
102
|
+
prepend_class opts, v if opts.delete k
|
103
|
+
end
|
104
|
+
end
|
105
|
+
|
106
|
+
include BasicTags
|
107
|
+
include Delegate
|
108
|
+
end
|
109
|
+
end
|
110
|
+
end
|