1/*! Select2 4.0.2 | https://github.com/select2/select2/blob/master/LICENSE.md */ !(function (a) { 2 "function" == typeof define && define.amd ? define(["jquery"], a) : a("object" == typeof exports ? require("jquery") : jQuery); 3})(function (a) { 4 var b = (function () { 5 if (a && a.fn && a.fn.select2 && a.fn.select2.amd) var b = a.fn.select2.amd; 6 var b; 7 return ( 8 (function () { 9 if (!b || !b.requirejs) { 10 b ? (c = b) : (b = {}); 11 var a, c, d; 12 !(function (b) { 13 function e(a, b) { 14 return u.call(a, b); 15 } 16 function f(a, b) { 17 var c, 18 d, 19 e, 20 f, 21 g, 22 h, 23 i, 24 j, 25 k, 26 l, 27 m, 28 n = b && b.split("/"), 29 o = s.map, 30 p = (o && o["*"]) || {}; 31 if (a && "." === a.charAt(0)) 32 if (b) { 33 for (a = a.split("/"), g = a.length - 1, s.nodeIdCompat && w.test(a[g]) && (a[g] = a[g].replace(w, "")), a = n.slice(0, n.length - 1).concat(a), k = 0; k < a.length; k += 1) 34 if (((m = a[k]), "." === m)) a.splice(k, 1), (k -= 1); 35 else if (".." === m) { 36 if (1 === k && (".." === a[2] || ".." === a[0])) break; 37 k > 0 && (a.splice(k - 1, 2), (k -= 2)); 38 } 39 a = a.join("/"); 40 } else 0 === a.indexOf("./") && (a = a.substring(2)); 41 if ((n || p) && o) { 42 for (c = a.split("/"), k = c.length; k > 0; k -= 1) { 43 if (((d = c.slice(0, k).join("/")), n)) 44 for (l = n.length; l > 0; l -= 1) 45 if (((e = o[n.slice(0, l).join("/")]), e && (e = e[d]))) { 46 (f = e), (h = k); 47 break; 48 } 49 if (f) break; 50 !i && p && p[d] && ((i = p[d]), (j = k)); 51 } 52 !f && i && ((f = i), (h = j)), f && (c.splice(0, h, f), (a = c.join("/"))); 53 } 54 return a; 55 } 56 function g(a, c) { 57 return function () { 58 var d = v.call(arguments, 0); 59 return "string" != typeof d[0] && 1 === d.length && d.push(null), n.apply(b, d.concat([a, c])); 60 }; 61 } 62 function h(a) { 63 return function (b) { 64 return f(b, a); 65 }; 66 } 67 function i(a) { 68 return function (b) { 69 q[a] = b; 70 }; 71 } 72 function j(a) { 73 if (e(r, a)) { 74 var c = r[a]; 75 delete r[a], (t[a] = !0), m.apply(b, c); 76 } 77 if (!e(q, a) && !e(t, a)) throw new Error("No " + a); 78 return q[a]; 79 } 80 function k(a) { 81 var b, 82 c = a ? a.indexOf("!") : -1; 83 return c > -1 && ((b = a.substring(0, c)), (a = a.substring(c + 1, a.length))), [b, a]; 84 } 85 function l(a) { 86 return function () { 87 return (s && s.config && s.config[a]) || {}; 88 }; 89 } 90 var m, 91 n, 92 o, 93 p, 94 q = {}, 95 r = {}, 96 s = {}, 97 t = {}, 98 u = Object.prototype.hasOwnProperty, 99 v = [].slice, 100 w = /\.js$/; 101 (o = function (a, b) { 102 var c, 103 d = k(a), 104 e = d[0]; 105 return ( 106 (a = d[1]), 107 e && ((e = f(e, b)), (c = j(e))), 108 e ? (a = c && c.normalize ? c.normalize(a, h(b)) : f(a, b)) : ((a = f(a, b)), (d = k(a)
108), (e = d[0]), (a = d[1]), e && (c = j(e))), 109 { f: e ? e + "!" + a : a, n: a, pr: e, p: c } 110 ); 111 }), 112 (p = { 113 require: function (a) { 114 return g(a); 115 }, 116 exports: function (a) { 117 var b = q[a]; 118 return "undefined" != typeof b ? b : (q[a] = {}); 119 }, 120 module: function (a) { 121 return { id: a, uri: "", exports: q[a], config: l(a) }; 122 }, 123 }), 124 (m = function (a, c, d, f) { 125 var h, 126 k, 127 l, 128 m, 129 n, 130 s, 131 u = [], 132 v = typeof d; 133 if (((f = f || a), "undefined" === v || "function" === v)) { 134 for (c = !c.length && d.length ? ["require", "exports", "module"] : c, n = 0; n < c.length; n += 1) 135 if (((m = o(c[n], f)), (k = m.f), "require" === k)) u[n] = p.require(a); 136 else if ("exports" === k) (u[n] = p.exports(a)), (s = !0); 137 else if ("module" === k) h = u[n] = p.module(a); 138 else if (e(q, k) || e(r, k) || e(t, k)) u[n] = j(k); 139 else { 140 if (!m.p) throw new Error(a + " missing " + k); 141 m.p.load(m.n, g(f, !0), i(k), {}), (u[n] = q[k]); 142 } 143 (l = d ? d.apply(q[a], u) : void 0), a && (h && h.exports !== b && h.exports !== q[a] ? (q[a] = h.exports
143) : (l === b && s) || (q[a] = l)); 144 } else a && (q[a] = d); 145 }), 146 (a = c = n = function (a, c, d, e, f) { 147 if ("string" == typeof a) return p[a] ? p[a](c) : j(o(a, c).f); 148 if (!a.splice) { 149 if (((s = a), s.deps && n(s.deps, s.callback), !c)) return; 150 c.splice ? ((a = c), (c = d), (d = null)) : (a = b); 151 } 152 return ( 153 (c = c || function () {}), 154 "function" == typeof d && ((d = e), (e = f)), 155 e 156 ? m(b, a, c, d) 157 : setTimeout(function () { 158 m(b, a, c, d); 159 }, 4), 160 n 161 ); 162 }), 163 (n.config = function (a) { 164 return n(a); 165 }), 166 (a._defined = q), 167 (d = function (a, b, c) { 168 if ("string" != typeof a) throw new Error("See almond README: incorrect module build, no module name"); 169 b.splice || ((c = b), (b = [])), e(q, a) || e(r, a) || (r[a] = [a, b, c]); 170 }), 171 (d.amd = { jQuery: !0 }); 172 })(), 173 (b.requirejs = a), 174 (b.require = c), 175 (b.define = d); 176 } 177 })(), 178 b.define("almond", function () {}), 179 b.define("jquery", [], function () { 180 var b = a || $; 181 return null == b && 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."), b; 182 }), 183 b.define("select2/utils", ["jquery"], function (a) { 184 function b(a) { 185 var b = a.prototype, 186 c = []; 187 for (var d in b) { 188 var e = b[d]; 189 "function" == typeof e && "constructor" !== d && c.push(d); 190 } 191 return c; 192 } 193 var c = {}; 194 (c.Extend = function (a, b) { 195 function c() { 196 this.constructor = a; 197 } 198 var d = {}.hasOwnProperty; 199 for (var e in b) d.call(b, e) && (a[e] = b[e]); 200 return (c.prototype = b.prototype), (a.prototype = new c()), (a.__super__ = b.prototype), a; 201 }), 202 (c.Decorate = function (a, c) { 203 function d() { 204 var b = Array.prototype.unshift, 205 d = c.prototype.constructor.length, 206 e = a.prototype.constructor; 207 d > 0 && (b.call(arguments, a.prototype.constructor), (e = c.prototype.constructor)), e.apply(this, arguments); 208 } 209 function e() { 210 this.constructor = d; 211 } 212 var f = b(c), 213 g = b(a); 214 (c.displayName = a.displayName), (d.prototype = new e()); 215 for (var h = 0; h < g.length; h++) { 216 var i = g[h]; 217 d.prototype[i] = a.prototype[i]; 218 } 219 for ( 220 var j = function (a) { 221 var b = function () {}; 222 (a in d.prototype) && (b = d.prototype[a]); 223 var e = c.prototype[a]; 224 return function () { 225 var a = Array.prototype.unshift; 226 return a.call(arguments, b), e.apply(this, arguments); 227 }; 228 }, 229 k = 0; 230 k < f.length; 231 k++ 232 ) { 233 var l = f[k]; 234 d.prototype[l] = j(l); 235 } 236 return d; 237 }); 238 var d = function () { 239 this.listeners = {}; 240 }; 241 return ( 242 (d.prototype.on = function (a, b) { 243 (this.listeners = this.listeners || {}), a in this.listeners ? this.listeners[a].push(b) : (this.listeners[a] = [b]); 244 }), 245 (d.prototype.trigger = function (a) { 246 var b = Array.prototype.slice; 247 (this.listeners = this.listeners || {}), a in this.listeners && this.invoke(this.listeners[a], b.call(arguments, 1)), "*" in this.listeners && this.invoke(this.listeners["*"], arguments); 248 }), 249 (d.prototype.invoke = function (a, b) { 250 for (var c = 0, d = a.length; d > c; c++) a[c].apply(this, b); 251 }), 252 (c.Observable = d), 253 (c.generateChars = function (a) { 254 for (var b = "", c = 0; a > c; c++) { 255 var d = Math.floor(36 * Math.random()); 256 b += d.toString(36); 257 } 258 return b; 259 }), 260 (c.bind = function (a, b) { 261 return function () { 262 a.apply(b, arguments); 263 }; 264 }), 265 (c._convertData = function (a) { 266 for (var b in a) { 267 var c = b.split("-"), 268 d = a; 269 if (1 !== c.length) { 270 for (var e = 0; e < c.length; e++) { 271 var f = c[e]; 272 (f = f.substring(0, 1).toLowerCase() + f.substring(1)), f in d || (d[f] = {}), e == c.length - 1 && (d[f] = a[b]), (d = d[f]); 273 } 274 delete a[b]; 275 } 276 } 277 return a; 278 }), 279 (c.hasScroll = function (b, c) { 280 var d = a(c), 281 e = c.style.overflowX, 282 f = c.style.overflowY; 283 return e !== f || ("hidden" !== f && "visible" !== f) ? ("scroll" === e || "scroll" === f ? !0 : d.innerHeight() < c.scrollHeight || d.innerWidth() < c.scrollWidth) : !1; 284 }), 285 (c.escapeMarkup = function (a) { 286 var b = { "\\": "\", "&": "&", "<": "<", ">": ">", '"': """, "'": "'", "/": "/" }; 287 return "string" != typeof a 288 ? a 289 : String(a).replace(/[&<>"'\/\\]/g, function (a) { 290 return b[a]; 291 }); 292 }), 293 (c.appendMany = function (b, c) { 294 if ("1.7" === a.fn.jquery.substr(0, 3)) { 295 var d = a(); 296 a.map(c, function (a) { 297 d = d.add(a); 298 }), 299 (c = d); 300 } 301 b.append(c); 302 }), 303 c 304 ); 305 }), 306 b.define("select2/results", ["jquery", "./utils"], function (a, b) { 307 function c(a, b, d) { 308 (this.$element = a), (this.data = d), (this.options = b), c.__super__.constructor.call(this); 309 } 310 return ( 311 b.Extend(c, b.Observable), 312 (c.prototype.render = function () { 313 var b = a('<ul class="select2-results__options" role="tree"></ul>'); 314 return this.options.get("multiple") && b.attr("aria-multiselectable", "true"), (this.$results = b), b; 315 }), 316 (c.prototype.clear = function () { 317 this.$results.empty(); 318 }), 319 (c.prototype.displayMessage = function (b) { 320 var c = this.options.get("escapeMarkup"); 321 this.clear(), this.hideLoading(); 322 var d = a('<li role="treeitem" aria-live="assertive" class="select2-results__option"></li>'), 323 e = this.options.get("translations").get(b.message);
324 d.append(c(e(b.args))), (d[0].className += " select2-results__message"), this.$results.append(d); 325 }), 326 (c.prototype.hideMessages = function () { 327 this.$results.find(".select2-results__message").remove(); 328 }), 329 (c.prototype.append = function (a) { 330 this.hideLoading(); 331 var b = []; 332 if (null == a.results || 0 === a.results.length) return void (0 === this.$results.children().length && this.trigger("results:message", { message: "noResults" })); 333 a.results = this.sort(a.results); 334 for (var c = 0; c < a.results.length; c++) { 335 var d = a.results[c], 336 e = this.option(d); 337 b.push(e); 338 } 339 this.$results.append(b); 340 }), 341 (c.prototype.position = function (a, b) { 342 var c = b.find(".select2-results"); 343 c.append(a); 344 }), 345 (c.prototype.sort = function (a) { 346 var b = this.options.get("sorter"); 347 return b(a); 348 }), 349 (c.prototype.setClasses = function () { 350 var b = this; 351 this.data.current(function (c) { 352 var d = a.map(c, function (a) { 353 return a.id.toString(); 354 }), 355 e = b.$results.find(".select2-results__option[aria-selected]"); 356 e.each(function () { 357 var b = a(this), 358 c = a.data(this, "data"), 359 e = "" + c.id; 360 (null != c.element && c.element.selected) || (null == c.element && a.inArray(e, d) > -1) ? b.attr("aria-selected", "true") : b.attr("aria-selected", "false"); 361 }); 362 var f = e.filter("[aria-selected=true]"); 363 f.length > 0 ? f.first().trigger("mouseenter") : e.first().trigger("mouseenter"); 364 }); 365 }), 366 (c.prototype.showLoading = function (a) { 367 this.hideLoading(); 368 var b = this.options.get("translations").get("searching"), 369 c = { disabled: !0, loading: !0, text: b(a) }, 370 d = this.option(c); 371 (d.className += " loading-results"), this.$results.prepend(d); 372 }), 373 (c.prototype.hideLoading = function () { 374 this.$results.find(".loading-results").remove(); 375 }), 376 (c.prototype.option = function (b) { 377 var c = document.createElement("li"); 378 c.className = "select2-results__option"; 379 var d = { role: "treeitem", "aria-selected": "false" }; 380 b.disabled && (delete d["aria-selected"], (d["aria-disabled"] = "true")), 381 null == b.id && delete d["aria-selected"], 382 null != b._resultId && (c.id = b._resultId), 383 b.title && (c.title = b.title), 384 b.children && ((d.role = "group"), (d["aria-label"] = b.text), delete d["aria-selected"]); 385 for (var e in d) { 386 var f = d[e]; 387 c.setAttribute(e, f); 388 } 389 if (b.children) { 390 var g = a(c), 391 h = document.createElement("strong"); 392 h.className = "select2-results__group"; 393 a(h); 394 this.template(b, h); 395 for (var i = [], j = 0; j < b.children.length; j++) { 396 var k = b.children[j], 397 l = this.option(k); 398 i.push(l); 399 } 400 var m = a("<ul></ul>", { class: "select2-results__options select2-results__options--nested" }); 401 m.append(i), g.append(h), g.append(m); 402 } else this.template(b, c); 403 return a.data(c, "data", b), c; 404 }), 405 (c.prototype.bind = function (b, c) { 406 var d = this, 407 e = b.id + "-results"; 408 this.$results.attr("id", e), 409 b.on("results:all", function (a) { 410 d.clear(), d.append(a.data), b.isOpen() && d.setClasses(); 411 }), 412 b.on("results:append", function (a) { 413 d.append(a.data), b.isOpen() && d.setClasses(); 414 }), 415 b.on("query", function (a) { 416 d.hideMessages(), d.showLoading(a); 417 }), 418 b.on("select", function () { 419 b.isOpen() && d.setClasses(); 420 }), 421 b.on("unselect", function () { 422 b.isOpen() && d.setClasses(); 423 }), 424 b.on("open", function () { 425 d.$results.attr("aria-expanded", "true"), d.$results.attr("aria-hidden", "false"), d.setClasses(), d.ensureHighlightVisible(); 426 }), 427 b.on("close", function () { 428 d.$results.attr("aria-expanded", "false"), d.$results.attr("aria-hidden", "true"), d.$results.removeAttr("aria-activedescendant"); 429 }), 430 b.on("results:toggle", function () { 431 var a = d.getHighlightedResults(); 432 0 !== a.length && a.trigger("mouseup"); 433 }), 434 b.on("results:select", function () { 435 var a = d.getHighlightedResults(); 436 if (0 !== a.length) { 437 var b = a.data("data"); 438 "true" == a.attr("aria-selected") ? d.trigger("close", {}) : d.trigger("select", { data: b }); 439 } 440 }), 441 b.on("results:previous", function () { 442 var a = d.getHighlightedResults(), 443 b = d.$results.find("[aria-selected]"), 444 c = b.index(a); 445 if (0 !== c) { 446 var e = c - 1; 447 0 === a.length && (e = 0); 448 var f = b.eq(e); 449 f.trigger("mouseenter"); 450 var g = d.$results.offset().top, 451 h = f.offset().top, 452 i = d.$results.scrollTop() + (h - g); 453 0 === e ? d.$results.scrollTop(0) : 0 > h - g && d.$results.scrollTop(i); 454 } 455 }), 456 b.on("results:next", function () { 457 var a = d.getHighlightedResults(), 458 b = d.$results.find("[aria-selected]"), 459 c = b.index(a), 460 e = c + 1; 461 if (!(e >= b.length)) { 462 var f = b.eq(e); 463 f.trigger("mouseenter"); 464 var g = d.$results.offset().top + d.$results.outerHeight(!1), 465 h = f.offset().top + f.outerHeight(!1), 466 i = d.$results.scrollTop() + h - g; 467 0 === e ? d.$results.scrollTop(0) : h > g && d.$results.scrollTop(i); 468 } 469 }), 470 b.on("results:focus", function (a) { 471 a.element.addClass("select2-results__option--highlighted"); 472 }), 473 b.on("results:message", function (a) { 474 d.displayMessage(a); 475 }), 476 a.fn.mousewheel && 477 this.$results.on("mousewheel", function (a) { 478 var b = d.$results.scrollTop(), 479 c = d.$results.get(0).scrollHeight - b + a.deltaY, 480 e = a.deltaY > 0 && b - a.deltaY <= 0, 481 f = a.deltaY < 0 && c <= d.$results.height(); 482 e ? (d.$results.scrollTop(0), a.preventDefault(), a.stopPropagation()) : f && (d.$results.scrollTop(d.$results.get(0).scrollHeight - d.$results.height()), a.preventDefault(), a.stopPropagation()); 483 }), 484 this.$results.on("mouseup", ".select2-results__option[aria-selected]", function (b) { 485 var c = a(this), 486 e = c.data("data"); 487 return "true" === c.attr("aria-selected") 488 ? void (d.options.get("multiple") ? d.trigger("unselect", { originalEvent: b, data: e }) : d.trigger("close", {})) 489 : void d.trigger("select", { originalEvent: b, data: e }); 490 }), 491 this.$results.on("mouseenter", ".select2-results__option[aria-selected]", function (b) { 492 var c = a(this).data("data"); 493 d.getHighlightedResults().removeClass("select2-results__option--highlighted"), d.trigger("results:focus", { data: c, element: a(this) }); 494 }); 495 }), 496 (c.prototype.getHighlightedResults = function () { 497 var a = this.$results.find(".select2-results__option--highlighted"); 498 return a; 499 }), 500 (c.prototype.destroy = function () { 501 this.$results.remove(); 502 }), 503 (c.prototype.ensureHighlightVisible = function () { 504 var a = this.getHighlightedResults(); 505 if (0 !== a.length) { 506 var b = this.$results.find("[aria-selected]"), 507 c = b.index(a), 508 d = this.$results.offset().top, 509 e = a.offset().top, 510 f = this.$results.scrollTop() + (e - d), 511 g = e - d; 512 (f -= 2 * a.outerHeight(!1)), 2 >= c ? this.$results.scrollTop(0) : (g > this.$results.outerHeight() || 0 > g) && this.$results.scrollTop(f); 513 } 514 }), 515 (c.prototype.template = function (b, c) { 516 var d = this.options.get("templateResult"), 517 e = this.options.get("escapeMarkup"), 518 f = d(b, c); 519 null == f ? (c.style.display = "none") : "string" == typeof f ? (c.innerHTML = e(f)) : a(c).append(f); 520 }), 521 c 522 ); 523 }), 524 b.define("select2/keys", [], function () { 525 var a = { 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 }; 526 return a; 527 }), 528 b.define("select2/selection/base", ["jquery", "../utils", "../keys"], function (a, b, c) { 529 function d(a, b) { 530 (this.$element = a), (this.options = b), d.__super__.constructor.call(this); 531 } 532 return ( 533 b.Extend(d, b.Observable), 534 (d.prototype.render = function () { 535 var b = a('<span class="select2-selection" role="combobox" aria-haspopup="true" aria-expanded="false"></span>'); 536 return ( 537 (this._tabindex = 0), 538 null != this.$element.data("old-tabindex") ? (this._tabindex = this.$element.data("old-tabindex")) : null != this.$element.attr("tabindex") && (this._tabindex = this.$element.attr("tabindex")), 539 b.attr("title", this.$element.attr("title")), 540 b.attr("tabindex", this._tabindex), 541 (this.$selection = b), 542 b 543 ); 544 }), 545 (d.prototype.bind = function (a, b) {
546 var d = this, 547 e = (a.id + "-container", a.id + "-results"); 548 (this.container = a), 549 this.$selection.on("focus", function (a) { 550 d.trigger("focus", a); 551 }), 552 this.$selection.on("blur", function (a) { 553 d._handleBlur(a); 554 }), 555 this.$selection.on("keydown", function (a) { 556 d.trigger("keypress", a), a.which === c.SPACE && a.preventDefault(); 557 }), 558 a.on("results:focus", function (a) { 559 d.$selection.attr("aria-activedescendant", a.data._resultId); 560 }), 561 a.on("selection:update", function (a) { 562 d.update(a.data); 563 }), 564 a.on("open", function () { 565 d.$selection.attr("aria-expanded", "true"), d.$selection.attr("aria-owns", e), d._attachCloseHandler(a); 566 }), 567 a.on("close", function () { 568 d.$selection.attr("aria-expanded", "false"), d.$selection.removeAttr("aria-activedescendant"), d.$selection.removeAttr("aria-owns"), d.$selection.focus(), d._detachCloseHandler(a); 569 }), 570 a.on("enable", function () { 571 d.$selection.attr("tabindex", d._tabindex); 572 }), 573 a.on("disable", function () { 574 d.$selection.attr("tabindex", "-1"); 575 }); 576 }), 577 (d.prototype._handleBlur = function (b) { 578 var c = this; 579 window.setTimeout(function () { 580 document.activeElement == c.$selection[0] || a.contains(c.$selection[0], document.activeElement) || c.trigger("blur", b); 581 }, 1); 582 }), 583 (d.prototype._attachCloseHandler = function (b) { 584 a(document.body).on("mousedown.select2." + b.id, function (b) { 585 var c = a(b.target), 586 d = c.closest(".select2"), 587 e = a(".select2.select2-container--open"); 588 e.each(function () { 589 var b = a(this); 590 if (this != d[0]) { 591 var c = b.data("element"); 592 c.select2("close"); 593 } 594 }); 595 }); 596 }), 597 (d.prototype._detachCloseHandler = function (b) { 598 a(document.body).off("mousedown.select2." + b.id); 599 }), 600 (d.prototype.position = function (a, b) { 601 var c = b.find(".selection"); 602 c.append(a); 603 }), 604 (d.prototype.destroy = function () { 605 this._detachCloseHandler(this.container); 606 }), 607 (d.prototype.update = function (a) { 608 throw new Error("The `update` method must be defined in child classes."); 609 }), 610 d 611 ); 612 }), 613 b.define("select2/selection/single", ["jquery", "./base", "../utils", "../keys"], function (a, b, c, d) { 614 function e() { 615 e.__super__.constructor.apply(this, arguments); 616 } 617 return ( 618 c.Extend(e, b), 619 (e.prototype.render = function () { 620 var a = e.__super__.render.call(this); 621 return a.addClass("select2-selection--single"), a.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'), a; 622 }), 623 (e.prototype.bind = function (a, b) { 624 var c = this; 625 e.__super__.bind.apply(this, arguments); 626 var d = a.id + "-container"; 627 this.$selection.find(".select2-selection__rendered").attr("id", d), 628 this.$selection.attr("aria-labelledby", d), 629 this.$selection.on("mousedown", function (a) { 630 1 === a.which && c.trigger("toggle", { originalEvent: a }); 631 }), 632 this.$selection.on("focus", function (a) {}), 633 this.$selection.on("blur", function (a) {}), 634 a.on("selection:update", function (a) { 635 c.update(a.data); 636 }); 637 }), 638 (e.prototype.clear = function () { 639 this.$selection.find(".select2-selection__rendered").empty(); 640 }), 641 (e.prototype.display = function (a, b) { 642 var c = this.options.get("templateSelection"), 643 d = this.options.get("escapeMarkup"); 644 return d(c(a, b)); 645 }), 646 (e.prototype.selectionContainer = function () { 647 return a("<span></span>"); 648 }), 649 (e.prototype.update = function (a) { 650 if (0 === a.length) return void this.clear(); 651 var b = a[0], 652 c = this.$selection.find(".select2-selection__rendered"), 653 d = this.display(b, c); 654 c.empty().append(d), c.prop("title", b.title || b.text); 655 }), 656 e 657 ); 658 }), 659 b.define("select2/selection/multiple", ["jquery", "./base", "../utils"], function (a, b, c) { 660 function d(a, b) { 661 d.__super__.constructor.apply(this, arguments); 662 } 663 return ( 664 c.Extend(d, b), 665 (d.prototype.render = function () { 666 var a = d.__super__.render.call(this); 667 return a.addClass("select2-selection--multiple"), a.html('<ul class="select2-selection__rendered"></ul>'), a; 668 }), 669 (d.prototype.bind = function (b, c) { 670 var e = this; 671 d.__super__.bind.apply(this, arguments), 672 this.$selection.on("click", function (a) { 673 e.trigger("toggle", { originalEvent: a }); 674 }), 675 this.$selection.on("click", ".select2-selection__choice__remove", function (b) { 676 if (!e.options.get("disabled")) { 677 var c = a(this), 678 d = c.parent(), 679 f = d.data("data"); 680 e.trigger("unselect", { originalEvent: b, data: f }); 681 } 682 }); 683 }), 684 (d.prototype.clear = function () { 685 this.$selection.find(".select2-selection__rendered").empty(); 686 }), 687 (d.prototype.display = function (a, b) { 688 var c = this.options.get("templateSelection"), 689 d = this.options.get("escapeMarkup"); 690 return d(c(a, b)); 691 }), 692 (d.prototype.selectionContainer = function () { 693 var b = a('<li class="select2-selection__choice"><span class="select2-selection__choice__remove" role="presentation">×</span></li>'); 694 return b; 695 }), 696 (d.prototype.update = function (a) { 697 if ((this.clear(), 0 !== a.length)) { 698 for (var b = [], d = 0; d < a.length; d++) { 699 var e = a[d], 700 f = this.selectionContainer(), 701 g = this.display(e, f); 702 f.append(g), f.prop("title", e.title || e.text), f.data("data", e), b.pu
702sh(f); 703 } 704 var h = this.$selection.find(".select2-selection__rendered"); 705 c.appendMany(h, b); 706 } 707 }), 708 d 709 ); 710 }), 711 b.define("select2/selection/placeholder", ["../utils"], function (a) { 712 function b(a, b, c) { 713 (this.placeholder = this.normalizePlaceholder(c.get("placeholder"))), a.call(this, b, c); 714 } 715 return ( 716 (b.prototype.normalizePlaceholder = function (a, b) { 717 return "string" == typeof b && (b = { id: "", text: b }), b; 718 }), 719 (b.prototype.createPlaceholder = function (a, b) { 720 var c = this.selectionContainer(); 721 return c.html(this.display(b)), c.addClass("select2-selection__placeholder").removeClass("select2-selection__choice"), c; 722 }), 723 (b.prototype.update = function (a, b) { 724 var c = 1 == b.length && b[0].id != this.placeholder.id, 725 d = b.length > 1; 726 if (d || c) return a.call(this, b); 727 this.clear(); 728 var e = this.createPlaceholder(this.placeholder); 729 this.$selection.find(".select2-selection__rendered").append(e); 730 }), 731 b 732 ); 733 }), 734 b.define("select2/selection/allowClear", ["jquery", "../keys"], function (a, b) { 735 function c() {} 736 return ( 737 (c.prototype.bind = function (a, b, c) { 738 var d = this; 739 a.call(this, b, c), 740 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."), 741 this.$selection.on("mousedown", ".select2-selection__clear", function (a) { 742 d._handleClear(a); 743 }), 744 b.on("keypress", function (a) { 745 d._handleKeyboardClear(a, b); 746 }); 747 }), 748 (c.prototype._handleClear = function (a, b) { 749 if (!this.options.get("disabled")) { 750 var c = this.$selection.find(".select2-selection__clear"); 751 if (0 !== c.length) { 752 b.stopPropagation(); 753 for (var d = c.data("data"), e = 0; e < d.length; e++) { 754 var f = { data: d[e] }; 755 if ((this.trigger("unselect", f), f.prevented)) return; 756 } 757 this.$element.val(this.placeholder.id).trigger("change"), this.trigger("toggle", {}); 758 } 759 } 760 }), 761 (c.prototype._handleKeyboardClear = function (a, c, d) { 762 d.isOpen() || ((c.which == b.DELETE || c.which == b.BACKSPACE) && this._handleClear(c)); 763 }), 764 (c.prototype.update = function (b, c) { 765 if ((b.call(this, c), !(this.$selection.find(".select2-selection__placeholder").length > 0 || 0 === c.length))) { 766 var d = a('<span class="select2-selection__clear">×</span>'); 767 d.data("data", c), this.$selection.find(".select2-selection__rendered").prepend(d); 768 } 769 }), 770 c 771 ); 772 }), 773 b.define("select2/selection/search", ["jquery", "../utils", "../keys"], function (a, b, c) { 774 function d(a, b, c) { 775 a.call(this, b, c); 776 } 777 return ( 778 (d.prototype.render = function (b) { 779 var c = a( 780 '<li class="select2-search select2-search--inline"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="textbox" aria-autocomplete="list" /></li>' 781 ); 782 (this.$searchContainer = c), (this.$search = c.find("input")); 783 var d = b.call(this); 784 return this._transferTabIndex(), d; 785 }), 786 (d.prototype.bind = function (a, b, d) { 787 var e = this; 788 a.call(this, b, d), 789 b.on("open", function () { 790 e.$search.trigger("focus"); 791 }), 792 b.on("close", function () { 793 e.$search.val(""), e.$search.removeAttr("aria-activedescendant"), e.$search.trigger("focus"); 794 }), 795 b.on("enable", function () { 796 e.$search.prop("disabled", !1), e._transferTabIndex(); 797 }), 798 b.on("disable", function () { 799 e.$search.prop("disabled", !0); 800 }), 801 b.on("focus", function (a) { 802 e.$search.trigger("focus"); 803 }), 804 b.on("results:focus", function (a) { 805 e.$search.attr("aria-activedescendant", a.id); 806 }), 807 this.$selection.on("focusin", ".select2-search--inline", function (a) { 808 e.trigger("focus", a); 809 }), 810 this.$selection.on("focusout", ".select2-search--inline", function (a) { 811 e._handleBlur(a); 812 }), 813 this.$selection.on("keydown", ".select2-search--inline", function (a) { 814 a.stopPropagation(), e.trigger("keypress", a), (e._keyUpPrevented = a.isDefaultPrevented()); 815 var b = a.which; 816 if (b === c.BACKSPACE && "" === e.$search.val()) { 817 var d = e.$searchContainer.prev(".select2-selection__choice"); 818 if (d.length > 0) { 819 var f = d.data("data"); 820 e.searchRemoveChoice(f), a.preventDefault(); 821 } 822 } 823 }); 824 var f = document.documentMode, 825 g = f && 11 >= f; 826 this.$selection.on("input.searchcheck", ".select2-search--inline", function (a) { 827 return g ? void e.$selection.off("input.search input.searchcheck") : void e.$selection.off("keyup.search"); 828 }), 829 this.$selection.on("keyup.search input.search", ".select2-search--inline", function (a) { 830 if (g && "input" === a.type) return void e.$selection.off("input.search input.searchcheck"); 831 var b = a.which; 832 b != c.SHIFT && b != c.
832CTRL && b != c.ALT && b != c.TAB && e.handleSearch(a); 833 }); 834 }), 835 (d.prototype._transferTabIndex = function (a) { 836 this.$search.attr("tabindex", this.$selection.attr("tabindex")), this.$selection.attr("tabindex", "-1"); 837 }), 838 (d.prototype.createPlaceholder = function (a, b) { 839 this.$search.attr("placeholder", b.text); 840 }), 841 (d.prototype.update = function (a, b) { 842 var c = this.$search[0] == document.activeElement; 843 this.$search.attr("placeholder", ""), a.call(this, b), this.$selection.find(".select2-selection__rendered").append(this.$searchContainer), this.resizeSearch(), c && this.$search.focus(); 844 }), 845 (d.prototype.handleSearch = function () { 846 if ((this.resizeSearch(), !this._keyUpPrevented)) { 847 var a = this.$search.val(); 848 this.trigger("query", { term: a }); 849 } 850 this._keyUpPrevented = !1; 851 }), 852 (d.prototype.searchRemoveChoice = function (a, b) { 853 this.trigger("unselect", { data: b }), this.$search.val(b.text), this.handleSearch(); 854 }), 855 (d.prototype.resizeSearch = function () { 856 this.$search.css("width", "25px"); 857 var a = ""; 858 if ("" !== this.$search.attr("placeholder")) a = this.$selection.find(".select2-selection__rendered").innerWidth(); 859 else { 860 var b = this.$search.val().length + 1; 861 a = 0.75 * b + "em"; 862 } 863 this.$search.css("width", a); 864 }), 865 d 866 ); 867 }), 868 b.define("select2/selection/eventRelay", ["jquery"], function (a) { 869 function b() {} 870 return ( 871 (b.prototype.bind = function (b, c, d) { 872 var e = this, 873 f = ["open", "opening", "close", "closing", "select", "selecting", "unselect", "unselecting"], 874 g = ["opening", "closing", "selecting", "unselecting"]; 875 b.call(this, c, d), 876 c.on("*", function (b, c) { 877 if (-1 !== a.inArray(b, f)) { 878 c = c || {}; 879 var d = a.Event("select2:" + b, { params: c }); 880 e.$element.trigger(d), -1 !== a.inArray(b, g) && (c.prevented = d.isDefaultPrevented()); 881 } 882 }); 883 }), 884 b 885 ); 886 }), 887 b.define("select2/translation", ["jquery", "require"], function (a, b) { 888 function c(a) { 889 this.dict = a || {}; 890 } 891 return ( 892 (c.prototype.all = function () { 893 return this.dict; 894 }), 895 (c.prototype.get = function (a) { 896 return this.dict[a]; 897 }), 898 (c.prototype.extend = function (b) { 899 this.dict = a.extend({}, b.all(), this.dict); 900 }), 901 (c._cache = {}), 902 (c.loadPath = function (a) { 903 if (!(a in c._cache)) { 904 var d = b(a); 905 c._cache[a] = d; 906 } 907 return new c(c._cache[a]); 908 }), 909 c 910 ); 911 }), 912 b.define("select2/diacritics", [], function () { 913 var a = { 914 "â¶": "A", 915 A: "A", 916 Ã: "A", 917 Ã: "A", 918 Ã: "A", 919 Ầ: "A", 920 Ấ: "A", 921 Ẫ: "A", 922 Ẩ: "A", 923 Ã: "A", 924 Ä: "A", 925 Ä: "A", 926 Ằ: "A", 927 Ắ: "A", 928 Ẵ: "A", 929 Ẳ: "A", 930 Ȧ: "A", 931 Ç : "A", 932 Ã: "A", 933 Ç: "A", 934 Ả: "A", 935 à : "A", 936 Ǻ: "A", 937 Ç: "A", 938 È: "A", 939 È: "A", 940 Ạ: "A", 941 Ậ: "A", 942 Ặ: "A", 943 á¸: "A", 944 Ä: "A", 945 Ⱥ: "A", 946 Ɐ: "A", 947 ê²: "AA", 948 Ã: "AE", 949 Ǽ: "AE", 950 Ç¢: "AE", 951 ê´: "AO", 952 ê¶: "AU", 953 ê¸: "AV", 954 êº: "AV", 955 ê¼: "AY", 956 "â·": "B", 957 ï¼¢: "B", 958 á¸: "B", 959 á¸: "B", 960 á¸: "B", 961 É: "B", 962 Æ: "B", 963 Æ: "B", 964 "â¸": "C", 965 ï¼£: "C", 966 Ä: "C", 967 Ä: "C", 968 Ä: "C", 969 Ä: "C", 970 Ã: "C", 971 á¸: "C", 972 Æ: "C", 973 È»: "C", 974 ê¾: "C", 975 "â¹": "D", 976 D: "D", 977 á¸: "D", 978 Ä: "D", 979 á¸: "D", 980 á¸: "D", 981 á¸: "D", 982 á¸: "D", 983 Ä: "D", 984 Æ: "D", 985 Æ: "D", 986 Æ: "D", 987 ê¹: "D", 988 DZ: "DZ", 989 Ç: "DZ", 990 Dz: "Dz", 991 Ç : "Dz", 992 "âº": "E", 993 ï¼¥: "E", 994 Ã: "E", 995 Ã: "E", 996 Ã: "E", 997 á»: "E", 998 Ế: "E", 999 á»: "E", 1000 á»: "E", 1001 Ẽ: "E", 1002 Ä: "E", 1003 á¸: "E", 1004 á¸: "E", 1005 Ä: "E", 1006 Ä: "E", 1007 Ã: "E", 1008 Ẻ: "E", 1009 Ä: "E", 1010 È: "E", 1011 È: "E", 1012 Ẹ: "E", 1013 á»: "E", 1014 Ȩ: "E", 1015 á¸: "E", 1016 Ä: "E", 1017 á¸: "E", 1018 á¸: "E", 1019 Æ: "E", 1020 Æ: "E", 1021 "â»": "F", 1022 F: "F", 1023 á¸: "F", 1024 Æ: "F", 1025 ê»: "F", 1026 "â¼": "G", 1027 ï¼§: "G", 1028 Ç´: "G", 1029 Ä: "G", 1030 Ḡ: "G", 1031 Ä: "G", 1032 Ä : "G", 1033 Ǧ: "G", 1034 Ä¢: "G", 1035 Ǥ: "G", 1036 Æ: "G", 1037 ê : "G", 1038 ê½: "G", 1039 ê¾: "G", 1040 "â½": "H", 1041 H: "H", 1042 Ĥ: "H", 1043 Ḣ: "H", 1044 Ḧ: "H", 1045 È: "H", 1046 Ḥ: "H", 1047 Ḩ: "H", 1048 Ḫ: "H", 1049 Ħ: "H", 1050 â±§: "H", 1051 â±µ: "H", 1052 ê: "H", 1053 "â¾": "I", 1054 I: "I", 1055 Ã: "I", 1056 Ã: "I", 1057 Ã: "I", 1058 Ĩ: "I", 1059 Ī: "I", 1060 Ĭ: "I", 1061 İ: "I", 1062 Ã: "I", 1063 Ḯ: "I", 1064 á»: "I", 1065 Ç: "I", 1066 È: "I", 1067 È: "I", 1068 á»: "I", 1069 Ä®: "I", 1070 Ḭ: "I", 1071 Æ: "I", 1072 "â¿": "J", 1073 J: "J", 1074 Ä´: "J", 1075 É: "J", 1076 "â": "K", 1077 K: "K", 1078 Ḱ: "K", 1079 Ǩ: "K",
1080 Ḳ: "K", 1081 Ķ: "K", 1082 Ḵ: "K", 1083 Æ: "K", 1084 Ⱪ: "K", 1085 ê: "K", 1086 ê: "K", 1087 ê: "K", 1088 ê¢: "K", 1089 "â": "L", 1090 L: "L", 1091 Ä¿: "L", 1092 Ĺ: "L", 1093 Ľ: "L", 1094 Ḷ: "L", 1095 Ḹ: "L", 1096 Ä»: "L", 1097 Ḽ: "L", 1098 Ḻ: "L", 1099 Å: "L", 1100 Ƚ: "L", 1101 â±¢: "L", 1102 â± : "L", 1103 ê: "L", 1104 ê: "L", 1105 ê: "L", 1106 Ç: "LJ", 1107 Ç: "Lj", 1108 "â": "M", 1109 ï¼: "M", 1110 Ḿ: "M", 1111 á¹: "M", 1112 á¹: "M", 1113 â±®: "M", 1114 Æ: "M", 1115 "â": "N", 1116 ï¼®: "N", 1117 Ǹ: "N", 1118 Å: "N", 1119 Ã: "N", 1120 á¹: "N", 1121 Å: "N", 1122 á¹: "N", 1123 Å : "N", 1124 á¹: "N", 1125 á¹: "N", 1126 È : "N", 1127 Æ: "N", 1128 ê: "N", 1129 ê¤: "N", 1130 Ç: "NJ", 1131 Ç: "Nj", 1132 "â": "O", 1133 O: "O", 1134 Ã: "O", 1135 Ã: "O", 1136 Ã: "O", 1137 á»: "O", 1138 á»: "O", 1139 á»: "O", 1140 á»: "O", 1141 Ã: "O", 1142 á¹: "O", 1143 Ȭ: "O", 1144 á¹: "O", 1145 Å: "O", 1146 á¹: "O", 1147 á¹: "O", 1148 Å: "O", 1149 È®: "O", 1150 Ȱ: "O", 1151 Ã: "O", 1152 Ȫ: "O", 1153 á»: "O", 1154 Å: "O", 1155 Ç: "O", 1156 È: "O", 1157 È: "O", 1158 Æ : "O", 1159 á»: "O", 1160 á»: "O", 1161 á» : "O", 1162 á»: "O", 1163 Ợ: "O", 1164 á»: "O", 1165 á»: "O", 1166 Ǫ: "O", 1167 Ǭ: "O", 1168 Ã: "O", 1169 Ǿ: "O", 1170 Æ: "O", 1171 Æ: "O", 1172 ê: "O", 1173 ê: "O", 1174 Æ¢: "OI", 1175 ê: "OO", 1176 È¢: "OU", 1177 "â ": "P", 1178 ï¼°: "P", 1179 á¹: "P", 1180 á¹: "P", 1181 Ƥ: "P", 1182 â±£: "P", 1183 ê: "P", 1184 ê: "P", 1185 ê: "P", 1186 "â": "Q", 1187 ï¼±: "Q", 1188 ê: "Q", 1189 ê: "Q", 1190 É: "Q", 1191 "â": "R", 1192 ï¼²: "R", 1193 Å: "R", 1194 á¹: "R", 1195 Å: "R", 1196 È: "R", 1197 È: "R", 1198 á¹: "R", 1199 á¹: "R", 1200 Å: "R", 1201 á¹: "R", 1202 É: "R", 1203 Ɽ: "R", 1204 ê: "R", 1205 ê¦: "R", 1206 ê: "R", 1207 "â": "S", 1208 ï¼³: "S", 1209 áº: "S", 1210 Å: "S", 1211 Ṥ: "S", 1212 Å: "S", 1213 á¹ : "S", 1214 Å : "S", 1215 Ṧ: "S", 1216 á¹¢: "S", 1217 Ṩ: "S", 1218 È: "S", 1219 Å: "S", 1220 â±¾: "S", 1221 ê¨: "S", 1222 ê: "S", 1223 "â": "T", 1224 ï¼´: "T", 1225 Ṫ: "T", 1226 Ť: "T", 1227 Ṭ: "T", 1228 È: "T", 1229 Å¢: "T", 1230 á¹°: "T", 1231 á¹®: "T", 1232 Ŧ: "T", 1233 Ƭ: "T", 1234 Æ®: "T", 1235 Ⱦ: "T", 1236 ê: "T", 1237 ê¨: "TZ", 1238 "â": "U", 1239 ï¼µ: "U", 1240 Ã: "U", 1241 Ã: "U", 1242 Ã: "U", 1243 Ũ: "U", 1244 Ṹ: "U", 1245 Ū: "U", 1246 Ṻ: "U", 1247 Ŭ: "U", 1248 Ã: "U", 1249 Ç: "U", 1250 Ç: "U", 1251 Ç: "U", 1252 Ç: "U", 1253 Ủ: "U", 1254 Å®: "U", 1255 Ű: "U", 1256 Ç: "U", 1257 È: "U", 1258 È: "U", 1259 Ư: "U", 1260 Ừ: "U", 1261 Ứ: "U", 1262 á»®: "U", 1263 Ử: "U", 1264 á»°: "U", 1265 Ụ: "U", 1266 á¹²: "U", 1267 Ų: "U", 1268 á¹¶: "U", 1269 á¹´: "U", 1270 É: "U", 1271 "â": "V", 1272 ï¼¶: "V", 1273 á¹¼: "V", 1274 á¹¾: "V", 1275 Ʋ: "V", 1276 ê: "V", 1277 É : "V", 1278 ê : "VY", 1279 "â": "W", 1280 ï¼·: "W", 1281 áº: "W", 1282 áº: "W", 1283 Å´: "W", 1284 áº: "W", 1285 áº: "W", 1286 áº: "W", 1287 â±²: "W", 1288 "â": "X", 1289 X: "X", 1290 áº: "X", 1291 áº: "X", 1292 "â": "Y", 1293 ï¼¹: "Y", 1294 Ỳ: "Y", 1295 Ã: "Y", 1296 Ŷ: "Y", 1297 Ỹ: "Y", 1298 Ȳ: "Y", 1299 áº: "Y", 1300 Ÿ: "Y", 1301 á»¶: "Y", 1302 á»´: "Y", 1303 Ƴ: "Y", 1304 É: "Y", 1305 Ỿ: "Y", 1306 "â": "Z", 1307 Z: "Z", 1308 Ź: "Z", 1309 áº: "Z", 1310 Å»: "Z", 1311 Ž: "Z", 1312 áº: "Z", 1313 áº: "Z", 1314 Ƶ: "Z", 1315 Ȥ: "Z", 1316 Ɀ: "Z", 1317 Ⱬ: "Z", 1318 ê¢: "Z", 1319 "â": "a", 1320 ï½: "a", 1321 áº: "a", 1322 à : "a", 1323 á: "a", 1324 â: "a", 1325 ầ: "a", 1326 ấ: "a", 1327 ẫ: "a", 1328 ẩ: "a", 1329 ã: "a", 1330 Ä: "a", 1331 Ä: "a", 1332 ằ: "a", 1333 ắ: "a", 1334 ẵ: "a", 1335 ẳ: "a", 1336 ȧ: "a", 1337 Ç¡: "a", 1338 ä: "a", 1339 Ç: "a", 1340 ả: "a", 1341 Ã¥: "a", 1342 Ç»: "a", 1343 Ç: "a", 1344 È: "a", 1345 È: "a", 1346 ạ: "a", 1347 áº: "a", 1348 ặ: "a", 1349 á¸: "a", 1350 Ä : "a", 1351 â±¥: "a", 1352 É: "a", 1353 ê³: "aa", 1354 æ: "ae", 1355 ǽ: "ae", 1356 Ç£: "ae", 1357 êµ: "ao", 1358 ê·: "au", 1359 ê¹: "av", 1360 ê»: "av", 1361 ê½: "ay", 1362 "â": "b", 1363 ï½: "b", 1364 á¸: "b", 1365 Ḡ: "b", 1366 á¸: "b", 1367 Æ: "b", 1368 Æ: "b", 1369 É: "b", 1370 "â": "c", 1371 ï½: "c", 1372 Ä: "c", 1373 Ä: "c", 1374 Ä: "c", 1375 Ä: "c", 1376 ç: "c", 1377 á¸: "c", 1378 Æ: "c", 1379 ȼ: "c", 1380 ê¿: "c", 1381 â: "c", 1382 "â": "d", 1383 ï½: "d", 1384 á¸: "d", 1385 Ä: "d", 1386 á¸: "d", 1387 á¸: "d", 1388 á¸: "d", 1389 á¸: "d", 1390 Ä: "d", 1391 Æ: "d", 1392 É: "d", 1393 É: "d", 1394 êº: "d", 1395 dz: "dz", 1396 Ç: "dz", 1397 "â": "e", 1398 ï½ : "e", 1399 è: "e", 1400 é: "e", 1401 ê: "e", 1402 á»: "e", 1403 ế: "e", 1404 á» : "e", 1405 á»: "e", 1406 ẽ: "e", 1407 Ä: "e", 1408 á¸: "e", 1409 á¸: "e", 1410 Ä: "e", 1411 Ä: "e", 1412 ë: "e", 1413 ẻ: "e", 1414 Ä: "e", 1415 È : "e", 1416 È: "e", 1417 ẹ: "e", 1418 á»: "e", 1419 È©: "e", 1420 á¸: "e", 1421 Ä: "e", 1422 á¸: "e", 1423 á¸: "e", 1424 É: "e", 1425 É: "e", 1426 Ç: "e", 1427 "â": "f", 1428 ï½: "f", 1429 á¸: "f", 1430 Æ: "f", 1431 ê¼: "f", 1432 "â": "g", 1433 ï½: "g", 1434 ǵ: "g", 1435 Ä: "g", 1436 ḡ: "g", 1437 Ä: "g", 1438 Ä¡: "g", 1439 ǧ: "g", 1440 Ä£: "g", 1441 Ç¥: "g", 1442 É : "g", 1443 ê¡: "g", 1444 áµ¹: "g", 1445 ê¿: "g", 1446 "â": "h", 1447 ï½: "h", 1448 Ä¥: "h", 1449 ḣ: "h", 1450 ḧ: "h", 1451 È: "h", 1452 ḥ: "h", 1453 ḩ: "h", 1454 ḫ: "h", 1455 áº: "h", 1456 ħ: "h", 1457 ⱨ: "h", 1458 â±¶: "h", 1459 É¥: "h", 1460 Æ: "hv", 1461 "â": "i", 1462 ï½: "i", 1463 ì: "i", 1464 Ã: "i", 1465 î: "i", 1466 Ä©: "i", 1467 Ä«: "i", 1468 Ä: "i", 1469 ï: "i", 1470 ḯ: "i", 1471 á»: "i", 1472 Ç: "i", 1473 È: "i", 1474 È: "i", 1475 á»: "i", 1476 į: "i", 1477 á¸: "i", 1478 ɨ: "i", 1479 ı: "i", 1480 "â": "j", 1481 ï½: "j", 1482 ĵ: "j", 1483 ǰ: "j", 1484 É: "j", 1485 "â": "k", 1486 ï½: "k", 1487 ḱ: "k", 1488 Ç©: "k", 1489 ḳ: "k", 1490 Ä·: "k", 1491 ḵ: "k", 1492 Æ: "k", 1493 ⱪ: "k", 1494 ê: "k", 1495 ê: "k", 1496 ê : "k", 1497 ê£: "k", 1498 "â": "l", 1499 ï½: "l", 1500 Å: "l", 1501 ĺ: "l", 1502 ľ: "l", 1503 ḷ: "l", 1504 ḹ: "l", 1505 ļ: "l", 1506 ḽ: "l", 1507 ḻ: "l", 1508 Å¿: "l", 1509 Å: "l", 1510 Æ: "l", 1511 É«: "l", 1512 ⱡ: "l", 1513 ê: "l", 1514
1514 ê: "l", 1515 ê: "l", 1516 Ç: "lj", 1517 "â": "m", 1518 ï½: "m", 1519 ḿ: "m", 1520 á¹: "m", 1521 á¹: "m", 1522 ɱ: "m", 1523 ɯ: "m", 1524 "â": "n", 1525 ï½: "n", 1526 ǹ: "n", 1527 Å: "n", 1528 ñ: "n", 1529 á¹ : "n", 1530 Å: "n", 1531 á¹: "n", 1532 Å: "n", 1533 á¹: "n", 1534 á¹: "n", 1535 Æ: "n", 1536 ɲ: "n", 1537 Å: "n", 1538 ê: "n", 1539 ê¥: "n", 1540 Ç: "nj", 1541 "â": "o", 1542 ï½: "o", 1543 ò: "o", 1544 ó: "o", 1545 ô: "o", 1546 á»: "o", 1547 á»: "o", 1548 á»: "o", 1549 á»: "o", 1550 õ: "o", 1551 á¹: "o", 1552 È: "o", 1553 á¹: "o", 1554 Å: "o", 1555 á¹: "o", 1556 á¹: "o", 1557 Å: "o", 1558 ȯ: "o", 1559 ȱ: "o", 1560 ö: "o", 1561 È«: "o", 1562 á»: "o", 1563 Å: "o", 1564 Ç: "o", 1565 È: "o", 1566 È: "o", 1567 Æ¡: "o", 1568 á»: "o", 1569 á»: "o", 1570 ỡ: "o", 1571 á»: "o", 1572 ợ: "o", 1573 á»: "o", 1574 á»: "o", 1575 Ç«: "o", 1576 Ç: "o", 1577 ø: "o", 1578 Ç¿: "o", 1579 É: "o", 1580 ê: "o", 1581 ê: "o", 1582 ɵ: "o", 1583 Æ£: "oi", 1584 È£: "ou", 1585 ê: "oo", 1586 "â": "p", 1587 ï½: "p", 1588 á¹: "p", 1589 á¹: "p", 1590 Æ¥: "p", 1591 áµ½: "p", 1592 ê: "p", 1593 ê: "p", 1594 ê: "p", 1595 "â ": "q", 1596 ï½: "q", 1597 É: "q", 1598 ê: "q", 1599 ê: "q", 1600 "â¡": "r", 1601 ï½: "r", 1602 Å: "r", 1603 á¹: "r", 1604 Å: "r", 1605 È: "r", 1606 È: "r", 1607 á¹: "r", 1608 á¹: "r", 1609 Å: "r", 1610 á¹: "r", 1611 É: "r", 1612 ɽ: "r", 1613 ê: "r", 1614 ê§: "r", 1615 ê: "r", 1616 "â¢": "s", 1617 ï½: "s", 1618 Ã: "s", 1619 Å: "s", 1620 á¹¥: "s", 1621 Å: "s", 1622 ṡ: "s", 1623 Å¡: "s", 1624 á¹§: "s", 1625 á¹£: "s", 1626 ṩ: "s", 1627 È: "s",
1628 Å: "s", 1629 È¿: "s", 1630 ê©: "s", 1631 ê : "s", 1632 áº: "s", 1633 "â£": "t", 1634 ï½: "t", 1635 ṫ: "t", 1636 áº: "t", 1637 Å¥: "t", 1638 á¹: "t", 1639 È: "t", 1640 Å£: "t", 1641 á¹±: "t", 1642 ṯ: "t", 1643 ŧ: "t", 1644 Æ: "t", 1645 Ê: "t", 1646 ⱦ: "t", 1647 ê: "t", 1648 ê©: "tz", 1649 "â¤": "u", 1650 ï½: "u", 1651 ù: "u", 1652 ú: "u", 1653 û: "u", 1654 Å©: "u", 1655 á¹¹: "u", 1656 Å«: "u", 1657 á¹»: "u", 1658 Å: "u", 1659 ü: "u", 1660 Ç: "u", 1661 Ç: "u", 1662 Ç: "u", 1663 Ç: "u", 1664 á»§: "u", 1665 ů: "u", 1666 ű: "u", 1667 Ç: "u", 1668 È: "u", 1669 È: "u", 1670 ư: "u", 1671 ừ: "u", 1672 ứ: "u", 1673 ữ: "u", 1674 á»: "u", 1675 á»±: "u", 1676 ụ: "u", 1677 á¹³: "u", 1678 ų: "u", 1679 á¹·: "u", 1680 á¹µ: "u", 1681 Ê: "u", 1682 "â¥": "v", 1683 ï½: "v", 1684 á¹½: "v", 1685 ṿ: "v", 1686 Ê: "v", 1687 ê: "v", 1688 Ê: "v", 1689 ê¡: "vy", 1690 "â¦": "w", 1691 ï½: "w", 1692 áº: "w", 1693 áº: "w", 1694 ŵ: "w", 1695 áº: "w", 1696 Ạ: "w", 1697 áº: "w",
1698 áº: "w", 1699 â±³: "w", 1700 "â§": "x", 1701 ï½: "x", 1702 áº: "x", 1703 áº: "x", 1704 "â¨": "y", 1705 ï½: "y", 1706 ỳ: "y", 1707 ý: "y", 1708 Å·: "y", 1709 ỹ: "y", 1710 ȳ: "y", 1711 áº: "y", 1712 ÿ: "y", 1713 á»·: "y", 1714 áº: "y", 1715 ỵ: "y", 1716 Æ´: "y", 1717 É: "y", 1718 ỿ: "y", 1719 "â©": "z", 1720 ï½: "z", 1721 ź: "z", 1722 áº: "z", 1723 ż: "z", 1724 ž: "z", 1725 áº: "z", 1726 áº: "z", 1727 ƶ: "z", 1728 È¥: "z", 1729 É: "z", 1730 ⱬ: "z", 1731 ê£: "z", 1732 Î: "Î", 1733 Î: "Î", 1734 Î: "Î", 1735 Î: "Î", 1736 Ϊ: "Î", 1737 Î: "Î", 1738 Î: "Î¥", 1739 Ϋ: "Î¥", 1740 Î: "Ω", 1741 ά: "α", 1742 Î: "ε", 1743 ή: "η", 1744 ί: "ι", 1745 Ï: "ι", 1746 Î: "ι", 1747 Ï: "ο", 1748 Ï: "Ï ", 1749 Ï: "Ï ", 1750 ΰ: "Ï ", 1751 Ï: "Ï", 1752 Ï: "Ï", 1753 }; 1754 return a; 1755 }), 1756 b.define("select2/data/base", ["../utils"], function (a) { 1757 function b(a, c) { 1758 b.__super__.constructor.call(this); 1759 } 1760 return ( 1761 a.Extend(b, a.Observable), 1762 (b.prototype.current = function (a) { 1763 throw new Error("The `current` method must be defined in child classes."); 1764 }), 1765 (b.prototype.query = function (a, b) { 1766 throw new Error("The `query` method must be defined in child classes."); 1767 }), 1768 (b.prototype.bind = function (a, b) {}), 1769 (b.prototype.destroy = function () {}), 1770 (b.prototype.generateResultId = function (b, c) { 1771 var d = b.id + "-result-"; 1772 return (d += a.generateChars(4)), (d += null != c.id ? "-" + c.id.toString() : "-" + a.generateChars(4)); 1773 }), 1774 b 1775 ); 1776 }), 1777 b.define("select2/data/select", ["./base", "../utils", "jquery"], function (a, b, c) { 1778 function d(a, b) { 1779 (this.$element = a), (this.options = b), d.__super__.constructor.call(this); 1780 } 1781 return ( 1782 b.Extend(d, a), 1783 (d.prototype.current = function (a) { 1784 var b = [], 1785 d = this; 1786 this.$element.find(":selected").each(function () { 1787 var a = c(this), 1788 e = d.item(a); 1789 b.push(e); 1790 }), 1791 a(b); 1792 }), 1793 (d.prototype.select = function (a) { 1794 var b = this; 1795 if (((a.selected = !0), c(a.element).is("option"))) return (a.element.selected = !0), void this.$element.trigger("change"); 1796 if (this.$element.prop("multiple")) 1797 this.current(function (d) { 1798 var e = []; 1799 (a = [a]), a.push.apply(a, d); 1800 for (var f = 0; f < a.length; f++) { 1801 var g = a[f].id; 1802 -1 === c.inArray(g, e) && e.push(g); 1803 } 1804 b.$element.val(e), b.$element.trigger("change"); 1805 }); 1806 else { 1807 var d = a.id; 1808 this.$element.val(d), this.$element.trigger("change"); 1809 } 1810 }), 1811 (d.prototype.unselect = function (a) { 1812 var b = this; 1813 if (this.$element.prop("multiple")) 1814 return ( 1815 (a.selected = !1), 1816 c(a.element).is("option") 1817 ? ((a.element.selected = !1), void this.$element.trigger("change")) 1818 : void this.current(function (d) { 1819 for (var e = [], f = 0; f < d.length; f++) { 1820 var g = d[f].id; 1821 g !== a.id && -1 === c.inArray(g, e) && e.push(g); 1822 } 1823 b.$element.val(e), b.$element.trigger("change"); 1824 }) 1825 ); 1826 }), 1827 (d.prototype.bind = function (a, b) { 1828 var c = this; 1829 (this.container = a), 1830 a.on("select", function (a) { 1831 c.select(a.data); 1832 }), 1833 a.on("unselect", function (a) { 1834 c.unselect(a.data); 1835 }); 1836 }), 1837 (d.prototype.destroy = function () { 1838 this.$element.find("*").each(function () { 1839 c.removeData(this, "data"); 1840 }); 1841 }), 1842 (d.prototype.query = function (a, b) { 1843 var d = [], 1844 e = this, 1845 f = this.$element.children(); 1846 f.each(function () { 1847 var b = c(this); 1848 if (b.is("option") || b.is("optgroup")) { 1849 var f = e.item(b), 1850 g = e.matches(a, f); 1851 null !== g && d.push(g); 1852 } 1853 }), 1854 b({ results: d }); 1855 }), 1856 (d.prototype.addOptions = function (a) { 1857 b.appendMany(this.$element, a); 1858 }), 1859 (d.prototype.option = function (a) { 1860 var b; 1861 a.children ? ((b = document.createElement("optgroup")), (b.label = a.text)) : ((b = document.createElement("option")), void 0 !== b.textContent ? (b.textContent = a.text) : (b.innerText = a.text)), 1862 a.id && (b.value = a.id), 1863 a.disabled && (b.disabled = !0), 1864 a.selected && (b.selected = !0), 1865 a.title && (b.title = a.title); 1866 var d = c(b), 1867 e = this._normalizeItem(
1867a); 1868 return (e.element = b), c.data(b, "data", e), d; 1869 }), 1870 (d.prototype.item = function (a) { 1871 var b = {}; 1872 if (((b = c.data(a[0], "data")), null != b)) return b; 1873 if (a.is("option")) b = { id: a.val(), text: a.text(), disabled: a.prop("disabled"), selected: a.prop("selected"), title: a.prop("title") }; 1874 else if (a.is("optgroup")) { 1875 b = { text: a.prop("label"), children: [], title: a.prop("title") }; 1876 for (var d = a.children("option"), e = [], f = 0; f < d.length; f++) { 1877 var g = c(d[f]), 1878 h = this.item(g); 1879 e.push(h); 1880 } 1881 b.children = e; 1882 } 1883 return (b = this._normalizeItem(b)), (b.element = a[0]), c.data(a[0], "data", b), b; 1884 }), 1885 (d.prototype._normalizeItem = function (a) { 1886 c.isPlainObject(a) || (a = { id: a, text: a }), (a = c.extend({}, { text: "" }, a)); 1887 var b = { selected: !1, disabled: !1 }; 1888 return ( 1889 null != a.id && (a.id = a.id.toString()), 1890 null != a.text && (a.text = a.text.toString()), 1891 null == a._resultId && a.id && null != this.container && (a._resultId = this.generateResultId(this.container, a)), 1892 c.extend({}, b, a) 1893 ); 1894 }), 1895 (d.prototype.matches = function (a, b) { 1896 var c = this.options.get("matcher"); 1897 return c(a, b); 1898 }), 1899 d 1900 ); 1901 }), 1902 b.define("select2/data/array", ["./select", "../utils", "jquery"], function (a, b, c) { 1903 function d(a, b) { 1904 var c = b.get("data") || []; 1905 d.__super__.constructor.call(this, a, b), this.addOptions(this.convertToOptions(c)); 1906 } 1907 return ( 1908 b.Extend(d, a), 1909 (d.prototype.select = function (a) { 1910 var b = this.$element.find("option").filter(function (b, c) { 1911 return c.value == a.id.toString(); 1912 }); 1913 0 === b.length && ((b = this.option(a)), this.addOptions(b)), d.__super__.select.call(this, a); 1914 }), 1915 (d.prototype.convertToOptions = function (a) { 1916 function d(a) { 1917 return function () { 1918 return c(this).val() == a.id; 1919 }; 1920 } 1921 for ( 1922 var e = this, 1923 f = this.$element.find("option"), 1924 g = f 1925 .map(function () { 1926 return e.item(c(this)).id; 1927 }) 1928 .get(), 1929 h = [], 1930 i = 0; 1931 i < a.length; 1932 i++ 1933 ) { 1934 var j = this._normalizeItem(
1934a[i]); 1935 if (c.inArray(j.id, g) >= 0) { 1936 var k = f.filter(d(j)), 1937 l = this.item(k), 1938 m = c.extend(!0, {}, j, l), 1939 n = this.option(m); 1940 k.replaceWith(n); 1941 } else { 1942 var o = this.option(j); 1943 if (j.children) { 1944 var p = this.convertToOptions(j.children); 1945 b.appendMany(o, p); 1946 } 1947 h.push(o); 1948 } 1949 } 1950 return h; 1951 }), 1952 d 1953 ); 1954 }), 1955 b.define("select2/data/ajax", ["./array", "../utils", "jquery"], function (a, b, c) { 1956 function d(a, b) { 1957 (this.ajaxOptions = this._applyDefaults(b.get("ajax"))), null != this.ajaxOptions.processResults && (this.processResults = this.ajaxOptions.processResults), d.__super__.constructor.call(this, a, b); 1958 } 1959 return ( 1960 b.Extend(d, a), 1961 (d.prototype._applyDefaults = function (a) { 1962 var b = { 1963 data: function (a) { 1964 return c.extend({}, a, { q: a.term }); 1965 }, 1966 transport: function (a, b, d) { 1967 var e = c.ajax(a); 1968 return e.then(b), e.fail(d), e; 1969 }, 1970 }; 1971 return c.extend({}, b, a, !0); 1972 }), 1973 (d.prototype.processResults = function (a) { 1974 return a; 1975 }), 1976 (d.prototype.query = function (a, b) { 1977 function d() { 1978 var d = f.transport( 1979 f, 1980 function (d) { 1981 var f = e.processResults(d, a); 1982 e.options.get("debug") && 1983 window.console && 1984 console.error && 1985 ((f && f.results && c.Array.isArray(f.results)) || console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")), 1986 b(f); 1987 }, 1988 function () { 1989 e.trigger("results:message", { message: "errorLoading" }); 1990 } 1991 ); 1992 e._request = d; 1993 } 1994 var e = this; 1995 null != this._request && (c.isFunction(this._request.abort) && this._request.abort(), (this._request = null)); 1996 var f = c.extend({ type: "GET" }, this.ajaxOptions); 1997 "function" == typeof f.url && (f.url = f.url.call(this.$element, a)), 1998 "function" == typeof f.data && (f.data = f.data.call(this.$element, a)), 1999 this.ajaxOptions.delay && "" !== a.term ? (this._queryTimeout && window.clearTimeout(this._queryTimeout), (this._queryTimeout = window.setTimeout(d, this.ajaxOptions.delay))) : d(); 2000 }), 2001 d 2002 ); 2003 }), 2004 b.define("select2/data/tags", ["jquery"], function (a) { 2005 function b(b, c, d) { 2006 var e = d.get("tags"), 2007 f = d.get("createTag"); 2008 void 0 !== f && (this.createTag = f); 2009 var g = d.get("insertTag"); 2010 if ((void 0 !== g && (this.insertTag = g), b.call(this, c, d), a.Array.isArray(e))) 2011 for (var h = 0; h < e.length; h++) { 2012 var i = e[h], 2013 j = this._normalizeItem(i), 2014 k = this.option(j); 2015 this.$element.append(k); 2016 } 2017 } 2018 return ( 2019 (b.prototype.query = function (a, b, c) { 2020 function d(a, f) { 2021 for (var g = a.results, h = 0; h < g.length; h++) { 2022 var i = g[h], 2023 j = null != i.children && !d({ results: i.children }, !0), 2024 k = i.text === b.term; 2025 if (k || j) return f ? !1 : ((a.data = g), void c(a)); 2026 } 2027 if (f) return !0; 2028 var l = e.createTag(b); 2029 if (null != l) { 2030 var m = e.option(l); 2031 m.attr("data-select2-tag", !0), e.addOptions([m]), e.insertTag(g, l); 2032 } 2033 (a.results = g), c(a); 2034 } 2035 var e = this; 2036 return this._removeOldTags(), null == b.term || null != b.page ? void a.call(this, b, c) : void a.call(this, b, d); 2037 }), 2038 (b.prototype.createTag = function (b, c) { 2039 var d = a.trim(c.term); 2040 return "" === d ? null : { id: d, text: d }; 2041 }), 2042 (b.prototype.insertTag = function (a, b, c) { 2043 b.unshift(c); 2044 }), 2045 (b.prototype._removeOldTags = function (b) { 2046 var c = (this._lastTag, this.$element.find("option[data-select2-tag]")); 2047 c.each(function () { 2048 this.selected || a(this).remove(); 2049 }); 2050 }), 2051 b 2052 ); 2053 }), 2054 b.define("select2/data/tokenizer", ["jquery"], function (a) { 2055 function b(a, b, c) { 2056 var d = c.get("tokenizer"); 2057 void 0 !== d && (this.tokenizer = d), a.call(this, b, c); 2058 } 2059 return ( 2060 (b.prototype.bind = function (a, b, c) { 2061 a.call(this, b, c), (this.$search = b.dropdown.$search || b.selection.$search || c.find(".select2-search__field")); 2062 }), 2063 (b.prototype.query = function (a, b, c) { 2064 function d(a) { 2065 e.trigger("select", { data: a }); 2066 } 2067 var e = this; 2068 b.term = b.term || ""; 2069 var f = this.tokenizer(b, this.options, d); 2070 f.term !== b.term && (this.$search.length && (this.$search.val(f.term), this.$search.focus()), (b.term = f.term)), a.call(this, b, c); 2071 }), 2072 (b.prototype.tokenizer = function (b, c, d, e) { 2073 for ( 2074 var f = d.get("tokenSeparators") || [], 2075 g = c.term, 2076 h = 0, 2077 i = 2078 this.createTag || 2079 function (a) { 2080 return { id: a.term, text: a.term }; 2081 }; 2082 h < g.length; 2083 2084 ) { 2085 var j = g[h]; 2086 if (-1 !== a.inArray(j, f)) { 2087 var k = g.substr(0, h), 2088 l = a.extend({}, c, { term: k }), 2089 m = i(l); 2090 null != m ? (e(m), (g = g.substr(h + 1) || ""), (h = 0)) : h++; 2091 } else h++; 2092 } 2093 return { term: g }; 2094 }), 2095 b 2096 ); 2097 }), 2098 b.define("select2/data/minimumInputLength", [], function () { 2099 function a(a, b, c) { 2100 (this.minimumInputLength = c.get("minimumInputLength")), a.call(this, b, c); 2101 } 2102 return ( 2103 (a.prototype.query = function (a, b, c) { 2104 return ( 2105 (b.term = b.term || ""), 2106 b.term.length < this.minimumInputLength ? void this.trigger("results:message", { message: "inputTooShort", args: { minimum: this.minimumInputLength, input
2106: b.term, params: b } }) : void a.call(this, b, c) 2107 ); 2108 }), 2109 a 2110 ); 2111 }), 2112 b.define("select2/data/maximumInputLength", [], function () { 2113 function a(a, b, c) { 2114 (this.maximumInputLength = c.get("maximumInputLength")), a.call(this, b, c); 2115 } 2116 return ( 2117 (a.prototype.query = function (a, b, c) { 2118 return ( 2119 (b.term = b.term || ""), 2120 this.maximumInputLength > 0 && b.term.length > this.maximumInputLength 2121 ? void this.trigger("results:message", { message: "inputTooLong", args: { maximum: this.maximumInputLength, input: b.term, params: b } }) 2122 : void a.call(this, b, c) 2123 ); 2124 }), 2125 a 2126 ); 2127 }), 2128 b.define("select2/data/maximumSelectionLength", [], function () { 2129 function a(a, b, c) { 2130 (this.maximumSelectionLength = c.get("maximumSelectionLength")), a.call(this, b, c); 2131 } 2132 return ( 2133 (a.prototype.query = function (a, b, c) { 2134 var d = this; 2135 this.current(function (e) { 2136 var f = null != e ? e.length : 0; 2137 return d.maximumSelectionLength > 0 && f >= d.maximumSelectionLength ? void d.trigger("results:message", { message: "maximumSelected", args: { maximum: d.maximumSelectionLength } }) : void a.call(d, b, c); 2138 }); 2139 }), 2140 a 2141 ); 2142 }), 2143 b.define("select2/dropdown", ["jquery", "./utils"], function (a, b) { 2144 function c(a, b) { 2145 (this.$element = a), (this.options = b), c.__super__.constructor.call(this); 2146 } 2147 return ( 2148 b.Extend(c, b.Observable), 2149 (c.prototype.render = function () { 2150 var b = a('<span class="select2-dropdown"><span class="select2-results"></span></span>'); 2151 return b.attr("dir", this.options.get("dir")), (this.$dropdown = b), b; 2152 }), 2153 (c.prototype.bind = function () {}), 2154 (c.prototype.position = function (a, b) {}), 2155 (c.prototype.destroy = function () { 2156 this.$dropdown.remove(); 2157 }), 2158 c 2159 ); 2160 }), 2161 b.define("select2/dropdown/search", ["jquery", "../utils"], function (a, b) { 2162 function c() {} 2163 return ( 2164 (c.prototype.render = function (b) { 2165 var c = b.call(this), 2166 d = a( 2167 '<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="textbox" /></span>' 2168 ); 2169 return (this.$searchContainer = d), (this.$search = d.find("input")), c.prepend(d), c; 2170 }), 2171 (c.prototype.bind = function (b, c, d) { 2172 var e = this; 2173 b.call(this, c, d), 2174 this.$search.on("keydown", function (a) { 2175 e.trigger("keypress", a), (e._keyUpPrevented = a.isDefaultPrevented()); 2176 }), 2177 this.$search.on("input", function (b) { 2178 a(this).off("keyup"); 2179 }), 2180 this.$search.on("keyup input", function (a) { 2181 e.handleSearch(a); 2182 }), 2183 c.on("open", function () { 2184 e.$search.attr("tabindex", 0), 2185 e.$search.focus(), 2186 window.setTimeout(function () { 2187 e.$search.focus(); 2188 }, 0); 2189 }), 2190 c.on("close", function () { 2191 e.$search.attr("tabindex", -1), e.$search.val(""); 2192 }), 2193 c.on("results:all", function (a) { 2194 if (null == a.query.term || "" === a.query.term) { 2195 var b = e.showSearch(a); 2196 b ? e.$searchContainer.removeClass("select2-search--hide") : e.$searchContainer.addClass("select2-search--hide"); 2197 } 2198 }); 2199 }), 2200 (c.prototype.handleSearch = function (a) { 2201 if (!this._keyUpPrevented) { 2202 var b = this.$search.val(); 2203 this.trigger("query", { term: b }); 2204 } 2205 this._keyUpPrevented = !1; 2206 }), 2207 (c.prototype.showSearch = function (a, b) { 2208 return !0; 2209 }), 2210 c 2211 ); 2212 }), 2213 b.define("select2/dropdown/hidePlaceholder", [], function () { 2214 function a(a, b, c, d) { 2215 (this.placeholder = this.normalizePlaceholder(c.get("placeholder"))), a.call(this, b, c, d); 2216 } 2217 return ( 2218 (a.prototype.append = function (a, b) { 2219 (b.results = this.removePlaceholder(b.results)), a.call(this, b); 2220 }), 2221 (a.prototype.normalizePlaceholder = function (a, b) { 2222 return "string" == typeof b && (b = { id: "", text: b }), b; 2223 }), 2224 (a.prototype.removePlaceholder = function (a, b) { 2225 for (var c = b.slice(0), d = b.length - 1; d >= 0; d--) { 2226 var e = b[d]; 2227 this.placeholder.id === e.id && c.splice(d, 1); 2228 } 2229 return c; 2230 }), 2231 a 2232 ); 2233 }), 2234 b.define("select2/dropdown/infiniteScroll", ["jquery"], function (a) { 2235 function b(a, b, c, d) { 2236 (this.lastParams = {}), a.call(this, b, c, d), (this.$loadingMore = this.createLoadingMore()), (this.loading = !1); 2237 } 2238 return ( 2239 (b.prototype.append = function (a, b) { 2240 this.$loadingMore.remove(), (this.loading = !1), a.call(this, b), this.showLoadingMore(b) && this.$results.append(this.$loadingMore); 2241 }), 2242 (b.prototype.bind = function (b, c, d) { 2243 var e = this; 2244 b.call(this, c, d), 2245 c.on("query", function (a) { 2246 (e.lastParams = a), (e.loading = !0); 2247 }), 2248 c.on("query:append", function (a) { 2249 (e.lastParams = a), (e.loading = !0); 2250 }), 2251 this.$results.on("scroll", function () { 2252 var b = a.contains(document.documentElement, e.$loadingMore[0]); 2253 if (!e.loading && b) { 2254 var c = e.$results.offset().top + e.$results.outerHeight(!1), 2255 d = e.$loadingMore.offset().top + e.$loadingMore.outerHeight(!1); 2256 c + 50 >= d && e.loadMore(); 2257 } 2258 }); 2259 }), 2260 (b.prototype.loadMore = function () { 2261 this.loading = !0; 2262 var b = a.extend({}, { page: 1 }, this.lastParams); 2263 b.page++, this.trigger("query:append", b); 2264 }), 2265 (b.prototype.showLoadingMore = function (a, b) { 2266 return b.pagination && b.pagination.more; 2267 }), 2268 (b.prototype.createLoadingMore = function () { 2269 var b = a('<li class="select2-results__option select2-results__option--load-more"role="treeitem" aria-disabled="true"></li>'), 2270 c = this.options.get("translations").get("loadingMore"); 2271 return b.html(c(this.lastParams)), b; 2272 }), 2273 b 2274 ); 2275 }), 2276 b.define("select2/dropdown/attachBody", ["jquery", "../utils"], function (a, b) { 2277 function c(b, c, d) { 2278 (this.$dropdownParent = d.get("dropdownParent") || a(document.body)), b.call(this, c, d); 2279 } 2280 return ( 2281 (c.prototype.bind = function (a, b, c) { 2282 var d = this, 2283 e = !1; 2284 a.call(this, b, c), 2285 b.on("open", function () { 2286 d._showDropdown(), 2287 d._attachPositioningHandler(b), 2288 e || 2289 ((e = !0), 2290 b.on("results:all", function () { 2291 d._positionDropdown(), d._resizeDropdown(); 2292 }), 2293 b.on("results:append", function () { 2294 d._positionDropdown(), d._resizeDropdown(); 2295 })); 2296 }), 2297 b.on("close", function () { 2298 d._hideDropdown(), d._detachPositioningHandler(b); 2299 }), 2300 this.$dropdownContainer.on("mousedown", function (a) { 2301 a.stopPropagation(); 2302 }); 2303 }), 2304 (c.prototype.destroy = function (a) { 2305 a.call(this), this.$dropdownContainer.remove(); 2306 }), 2307 (c.prototype.position = function (a, b, c) { 2308 b.attr("class", c.attr("class")), b.removeClass("select2"), b.addClass("select2-container--open"), b.css({ position: "absolute", top: -999999 }), (this.$container = c); 2309 }), 2310 (c.prototype.render = function (b) { 2311 var c = a("<span></span>"), 2312 d = b.call(this); 2313 return c.append(d), (this.$dropdownContainer = c), c; 2314 }), 2315 (c.prototype._hideDropdown = function (a) { 2316 this.$dropdownContainer.detach(); 2317 }), 2318 (c.prototype._attachPositioningHandler = function (c, d) { 2319 var e = this, 2320 f = "scroll.select2." + d.id, 2321 g = "resize.select2." + d.id, 2322 h = "orientationchange.select2." + d.id, 2323 i = this.$container.parents().filter(b.hasScroll); 2324 i.each(function () { 2325 a(this).data("select2-scroll-position", { x: a(this).scrollLeft(), y: a(this).scrollTop() }); 2326 }), 2327 i.on(f, function (b) { 2328 var c = a(this).data("select2-scroll-position"); 2329 a(this).scrollTop(c.y); 2330 }), 2331 a(window).on(f + " " + g + " " + h, function (a) { 2332 e._positionDropdown(), e._resizeDropdown(); 2333 }); 2334 }), 2335 (c.prototype._detachPositioningHandler = function (c, d) { 2336 var e = "scroll.select2." + d.id, 2337 f = "resize.select2." + d.id, 2338 g = "orientationchange.select2." + d.id, 2339 h = this.$container.parents().filter(b.hasScroll); 2340 h.off(e), a(window).off(e + " " + f + " " + g); 2341 }), 2342 (c.prototype._positionDropdown = function () { 2343 var b = a(window), 2344 c = this.$dropdown.hasClass("select2-dropdown--above"), 2345 d = this.$dropdown.hasClass("select2-dropdown--below"), 2346 e = null, 2347 f = this.$container.offset(); 2348 f.bottom = f.top + this.$container.outerHeight(!1); 2349 var g = { height: this.$container.outerHeight(!1) }; 2350 (g.top = f.top), (g.bottom = f.top + g.height); 2351 var h = { height: this.$dropdown.outerHeight(!1) }, 2352 i = { top: b.scrollTop(), bottom: b.scrollTop() + b.he
2352ight() }, 2353 j = i.top < f.top - h.height, 2354 k = i.bottom > f.bottom + h.height, 2355 l = { left: f.left, top: g.bottom }, 2356 m = this.$dropdownParent; 2357 "static" === m.css("position") && (m = m.offsetParent()); 2358 var n = m.offset(); 2359 (l.top -= n.top), 2360 (l.left -= n.left), 2361 c || d || (e = "below"), 2362 k || !j || c ? !j && k && c && (e = "below") : (e = "above"), 2363 ("above" == e || (c && "below" !== e)) && (l.top = g.top - h.height), 2364 null != e && 2365 (this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--" + e), 2366 this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--" + e)), 2367 this.$dropdownContainer.css(l); 2368 }), 2369 (c.prototype._resizeDropdown = function () { 2370 var a = { width: this.$container.outerWidth(!1) + "px" }; 2371 this.options.get("dropdownAutoWidth") && ((a.minWidth = a.width), (a.width = "auto")), this.$dropdown.css(a); 2372 }), 2373 (c.prototype._showDropdown = function (a) { 2374 this.$dropdownContainer.appendTo(this.$dropdownParent), this._positionDropdown(), this._resizeDropdown(); 2375 }), 2376 c 2377 ); 2378 }), 2379 b.define("select2/dropdown/minimumResultsForSearch", [], function () { 2380 function a(b) { 2381 for (var c = 0, d = 0; d < b.length; d++) { 2382 var e = b[d]; 2383 e.children ? (c += a(e.children)) : c++; 2384 } 2385 return c; 2386 } 2387 function b(a, b, c, d) { 2388 (this.minimumResultsForSearch = c.get("minimumResultsForSearch")), this.minimumResultsForSearch < 0 && (this.minimumResultsForSearch = 1 / 0), a.call(this, b, c, d); 2389 } 2390 return ( 2391 (b.prototype.showSearch = function (b, c) { 2392 return a(c.data.results) < this.minimumResultsForSearch ? !1 : b.call(this, c); 2393 }), 2394 b 2395 ); 2396 }), 2397 b.define("select2/dropdown/selectOnClose", [], function () { 2398 function a() {} 2399 return ( 2400 (a.prototype.bind = function (a, b, c) { 2401 var d = this; 2402 a.call(this, b, c), 2403 b.on("close", function () { 2404 d._handleSelectOnClose(); 2405 }); 2406 }), 2407 (a.prototype._handleSelectOnClose = function () { 2408 var a = this.getHighlightedResults(); 2409 if (!(a.length < 1)) { 2410 var b = a.data("data"); 2411 (null != b.element && b.element.selected) || (null == b.element && b.selected) || this.trigger("select", { data: b }); 2412 } 2413 }), 2414 a 2415 ); 2416 }), 2417 b.define("select2/dropdown/closeOnSelect", [], function () { 2418 function a() {} 2419 return ( 2420 (a.prototype.bind = function (a, b, c) { 2421 var d = this; 2422 a.call(this, b, c), 2423 b.on("select", function (a) { 2424 d._selectTriggered(a); 2425 }), 2426 b.on("unselect", function (a) { 2427 d._selectTriggered(a); 2428 }); 2429 }), 2430 (a.prototype._selectTriggered = function (a, b) { 2431 var c = b.originalEvent; 2432 (c && c.ctrlKey) || this.trigger("close", {}); 2433 }), 2434 a 2435 ); 2436 }), 2437 b.define("select2/i18n/en", [], function () { 2438 return { 2439 errorLoading: function () { 2440 return "The results could not be loaded."; 2441 }, 2442 inputTooLong: function (a) { 2443 var b = a.input.length - a.maximum, 2444 c = "Please delete " + b + " character"; 2445 return 1 != b && (c += "s"), c; 2446 }, 2447 inputTooShort: function (a) { 2448 var b = a.minimum - a.input.length, 2449 c = "Please enter " + b + " or more characters"; 2450 return c; 2451 }, 2452 loadingMore: function () { 2453 return "Loading more resultsâ¦"; 2454 }, 2455 maximumSelected: function (a) { 2456 var b = "You can only select " + a.maximum + " item"; 2457 return 1 != a.maximum && (b += "s"), b; 2458 }, 2459 noResults: function () { 2460 return "No results found"; 2461 }, 2462 searching: function () { 2463 return "Searchingâ¦"; 2464 }, 2465 }; 2466 }), 2467 b.define( 2468 "select2/defaults", 2469 [ 2470 "jquery", 2471 "require", 2472 "./results", 2473 "./selection/single", 2474 "./selection/multiple", 2475 "./selection/placeholder", 2476 "./selection/allowClear", 2477 "./selection/search", 2478 "./selection/eventRelay", 2479 "./utils", 2480 "./translation", 2481 "./diacritics", 2482 "./data/select", 2483 "./data/array", 2484 "./data/ajax", 2485 "./data/tags", 2486 "./data/tokenizer", 2487 "./data/minimumInputLength", 2488 "./data/maximumInputLength", 2489 "./data/maximumSelectionLength", 2490 "./dropdown", 2491 "./dropdown/search", 2492 "./dropdown/hidePlaceholder", 2493 "./dropdown/infiniteScroll", 2494 "./dropdown/attachBody", 2495 "./dropdown/minimumResultsForSearch", 2496 "./dropdown/selectOnClose", 2497 "./dropdown/closeOnSelect", 2498 "./i18n/en", 2499 ], 2500 function (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z, A, B, C) { 2501 function D() { 2502 this.reset(); 2503 } 2504 (D.prototype.apply = function (l) { 2505 if (((l = a.extend(!0, {}, this.defaults, l)), null == l.dataAdapter)) { 2506 if ( 2507 (null != l.ajax ? (l.dataAdapter = o) : null != l.data ? (l.dataAdapter = n) : (l.dataAdapter = m), 2508 l.minimumInputLength > 0 && (l.dataAdapter = j.Decorate(l.dataAdapter, r)), 2509 l.maximumInputLength > 0 && (l.dataAdapter = j.Decorate(l.dataAdapter, s)), 2510 l.maximumSelectionLength > 0 && (l.dataAdapter = j.Decorate(l.dataAdapter, t)), 2511 l.tags && (l.dataAdapter = j.Decorate(l.dataAdapter, p)), 2512 (null != l.tokenSeparators || null != l.tokenizer) && (l.dataAdapter = j.Decorate(l.dataAdapter, q)), 2513 null != l.query) 2514 ) { 2515 var C = b(l.amdBase + "compat/query"); 2516 l.dataAdapter = j.Decorate(l.dataAdapter, C
2516); 2517 } 2518 if (null != l.initSelection) { 2519 var D = b(l.amdBase + "compat/initSelection"); 2520 l.dataAdapter = j.Decorate(l.dataAdapter, D); 2521 } 2522 } 2523 if ( 2524 (null == l.resultsAdapter && 2525 ((l.resultsAdapter = c), 2526 null != l.ajax && (l.resultsAdapter = j.Decorate(l.resultsAdapter, x)), 2527 null != l.placeholder && (l.resultsAdapter = j.Decorate(l.resultsAdapter, w)), 2528 l.selectOnClose && (l.resultsAdapter = j.Decorate(l.resultsAdapter, A))), 2529 null == l.dropdownAdapter) 2530 ) { 2531 if (l.multiple) l.dropdownAdapter = u; 2532 else { 2533 var E = j.Decorate(u, v); 2534 l.dropdownAdapter = E; 2535 } 2536 if ( 2537 (0 !== l.minimumResultsForSearch && (l.dropdownAdapter = j.Decorate(l.dropdownAdapter, z)), 2538 l.closeOnSelect && (l.dropdownAdapter = j.Decorate(l.dropdownAdapter, B)), 2539 null != l.dropdownCssClass || null != l.dropdownCss || null != l.adaptDropdownCssClass) 2540 ) { 2541 var F = b(l.amdBase + "compat/dropdownCss"); 2542 l.dropdownAdapter = j.Decorate(l.dropdownAdapter, F); 2543 } 2544 l.dropdownAdapter = j.Decorate(l.dropdownAdapter, y); 2545 } 2546 if (null == l.selectionAdapter) { 2547 if ( 2548 (l.multiple ? (l.selectionAdapter = e) : (l.selectionAdapter = d), 2549 null != l.placeholder && (l.selectionAdapter = j.Decorate(l.selectionAdapter, f)), 2550 l.allowClear && (l.selectionAdapter = j.Decorate(l.selectionAdapter, g)), 2551 l.multiple && (l.selectionAdapter = j.Decorate(l.selectionAdapter, h)), 2552 null != l.containerCssClass || null != l.containerCss || null != l.adaptContainerCssClass) 2553 ) { 2554 var G = b(l.amdBase + "compat/containerCss"); 2555 l.selectionAdapter = j.Decorate(l.selectionAdapter, G); 2556 } 2557 l.selectionAdapter = j.Decorate(l.selectionAdapter, i); 2558 } 2559 if ("string" == typeof l.language) 2560 if (l.language.indexOf("-") > 0) { 2561 var H = l.language.split("-"), 2562 I = H[0]; 2563 l.language = [l.language, I]; 2564 } else l.language = [l.language]; 2565 if (a.Array.isArray(l.language)) { 2566 var J = new k(); 2567 l.language.push("en"); 2568 for (var K = l.language, L = 0; L < K.length; L++) { 2569 var M = K[L], 2570 N = {}; 2571 try { 2572 N = k.loadPath(M); 2573 } catch (O) { 2574 try { 2575 (M = this.defaults.amdLanguageBase + M), (N = k.loadPath(M)
2575); 2576 } catch (P) { 2577 l.debug && window.console && console.warn && console.warn('Select2: The language file for "' + M + '" could not be automatically loaded. A fallback will be used instead.'); 2578 continue; 2579 } 2580 } 2581 J.extend(N); 2582 } 2583 l.translations = J; 2584 } else { 2585 var Q = k.loadPath(this.defaults.amdLanguageBase + "en"), 2586 R = new k(l.language); 2587 R.extend(Q), (l.translations = R); 2588 } 2589 return l; 2590 }), 2591 (D.prototype.reset = function () { 2592 function b(a) { 2593 function b(a) { 2594 return l[a] || a; 2595 }
2596 return a.replace(/[^\u0000-\u007E]/g, b); 2597 } 2598 function c(d, e) { 2599 if ("" === a.trim(d.term)) return e; 2600 if (e.children && e.children.length > 0) { 2601 for (var f = a.extend(!0, {}, e), g = e.children.length - 1; g >= 0; g--) { 2602 var h = e.children[g], 2603 i = c(d, h); 2604 null == i && f.children.splice(g, 1); 2605 } 2606 return f.children.length > 0 ? f : c(d, f); 2607 } 2608 var j = b(e.text).toUpperCase(), 2609 k = b(d.term).toUpperCase(); 2610 return j.indexOf(k) > -1 ? e : null; 2611 } 2612 this.defaults = { 2613 amdBase: "./", 2614 amdLanguageBase: "./i18n/", 2615 closeOnSelect: !0, 2616 debug: !1, 2617 dropdownAutoWidth: !1, 2618 escapeMarkup: j.escapeMarkup, 2619 language: C, 2620 matcher: c, 2621 minimumInputLength: 0, 2622 maximumInputLength: 0, 2623 maximumSelectionLength: 0, 2624 minimumResultsForSearch: 0, 2625 selectOnClose: !1, 2626 sorter: function (a) { 2627 return a; 2628 }, 2629 templateResult: function (a) { 2630 return a.text; 2631 }, 2632 templateSelection: function (a) { 2633 return a.text; 2634 }, 2635 theme: "default", 2636 width: "resolve", 2637 }; 2638 }), 2639 (D.prototype.set = function (b, c) { 2640 var d = a.camelCase(b), 2641 e = {}; 2642 e[d] = c; 2643 var f = j._convertData(e); 2644 a.extend(this.defaults, f); 2645 }); 2646 var E = new D(); 2647 return E; 2648 } 2649 ), 2650 b.define("select2/options", ["require", "jquery", "./defaults", "./utils"], function (a, b, c, d) { 2651 function e(b, e) { 2652 if (((this.options = b), null != e && this.fromElement(e), (this.options = c.apply(this.options)), e && e.is("input"))) { 2653 var f = a(this.get("amdBase") + "compat/inputData"); 2654 this.options.dataAdapter = d.Decorate(this.options.dataAdapter, f); 2655 } 2656 } 2657 return ( 2658 (e.prototype.fromElement = function (a) { 2659 var c = ["select2"]; 2660 null == this.options.multiple && (this.options.multiple = a.prop("multiple")), 2661 null == this.options.disabled && (this.options.disabled = a.prop("disabled")), 2662 null == this.options.language && (a.prop("lang") ? (this.options.language = a.prop("lang").toLowerCase()) : a.closest("[lang]").prop("lang") && (this.options.language = a.closest("[lang]").prop("lang"))), 2663 null == this.options.dir && (a.prop("dir") ? (this.options.dir = a.prop("dir")) : a.closest("[dir]").prop("dir") ? (this.options.dir = a.closest("[dir]").prop("dir")) : (this.options.dir = "ltr")), 2664 a.prop("disabled", this.options.disabled), 2665 a.prop("multiple", this.options.multiple), 2666 a.data("select2Tags") && 2667 (this.options.debug && 2668 window.console && 2669 console.warn && 2670 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.'), 2671 a.data("data", a.data("select2Tags")), 2672 a.data("tags", !0)), 2673 a.data("ajaxUrl") && 2674 (this.options.debug && 2675 window.console && 2676 console.warn && 2677 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."), 2678 a.attr("ajax--url", a.data("ajaxUrl")), 2679 a.data("ajax--url", a.data("ajaxUrl"))); 2680 var e = {}; 2681 e = b.fn.jquery && "1." == b.fn.jquery.substr(0, 2) && a[0].dataset ? b.extend(!0, {}, a[0].dataset, a.data()) : a.data(); 2682 var f = b.extend(!0, {}, e); 2683 f = d._convertData(f); 2684 for (var g in f) b.inArray(g, c) > -1 || (b.isPlainObject(this.options[g]) ? b.extend(this.options[g], f[g]) : (this.options[g] = f[g])); 2685 return this; 2686 }), 2687 (e.prototype.get = function (a) { 2688 return this.options[a]; 2689 }), 2690 (e.prototype.set = function (a, b) { 2691 this.options[a] = b; 2692 }), 2693 e 2694 ); 2695 }), 2696 b.define("select2/core", ["jquery", "./options", "./utils", "./keys"], function (a, b, c, d) { 2697 var e = function (a, c) { 2698 null != a.data("select2") && a.data("select2").destroy(), (this.$element = a), (this.id = this._generateId(a)), (c = c || {}), (this.options = new b(c, a)), e.__super__.constructor.call(this); 2699 var d = a.attr("tabindex") || 0; 2700 a.data("old-tabindex", d), a.attr("tabindex", "-1"); 2701 var f = this.options.get("dataAdapter"); 2702 this.dataAdapter = new f(a, this.options); 2703 var g = this.render(); 2704 this._placeContainer(g); 2705 var h = this.options.get("selectionAdapter"); 2706 (this.selection = new h(a, this.options)), (this.$selection = this.selection.render()), this.selection.position(this.$selection, g); 2707 var i = this.options.get("dropdownAdapter"); 2708 (this.dropdown = new i(a, this.options)), (this.$dropdown = this.dropdown.render()), this.dropdown.position(this.$dropdown, g); 2709 var j = this.options.get("resultsAdapter"); 2710 (this.results = new j(a, this.options, this.dataAdapter)), (this.$results = this.results.render()), this.results.position(this.$results, this.$dropdown); 2711 var k = this; 2712 this._bindAdapters(), 2713 this._registerDomEvents(), 2714 this._registerDataEvents(), 2715 this._registerSelectionEvents(), 2716 this._registerDropdownEvents(), 2717 this._registerResultsEvents(), 2718 this._registerEvents(), 2719 this.dataAdapter.current(function (a) { 2720 k.trigger("selection:update", { data: a }); 2721 }), 2722 a.addClass("select2-hidden-accessible"), 2723 a.attr("aria-hidden", "true"), 2724 this._syncAttributes(), 2725 a.data("select2", this); 2726 }; 2727 return ( 2728 c.Extend(e, c.Observable), 2729 (e.prototype._generateId = function (a) { 2730 var b = ""; 2731 return (b = null != a.attr("id") ? a.attr("id") : null != a.attr("name") ? a.attr("name") + "-" + c.generateChars(2) : c.generateChars(4)), (b = b.replace(/(:|\.|\[|\]|,)/g, "")), (b = "select2-" + b); 2732 }), 2733 (e.prototype._placeContainer = function (a) { 2734 a.insertAfter(this.$element); 2735 var b = this._resolveWidth(this.$element, this.options.get("width")); 2736 null != b && a.css("width", b); 2737 }), 2738 (e.prototype._resolveWidth = function (a, b) { 2739 var c = /^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i; 2740 if ("resolve" == b) { 2741 var d = this._resolveWidth(a, "style"); 2742 return null != d ? d : this._resolveWidth(a, "element"); 2743 } 2744 if ("element" == b) { 2745 var e = a.outerWidth(!1); 2746 return 0 >= e ? "auto" : e + "px"; 2747 } 2748 if ("style" == b) { 2749 var f = a.attr("style"); 2750 if ("string" != typeof f) return null; 2751 for (var g = f.split(";"), h = 0, i = g.length; i > h; h += 1) { 2752 var j = g[h].replace(/\s/g, ""), 2753 k = j.match(c); 2754 if (null !== k && k.length >= 1) return k[1]; 2755 } 2756 return null; 2757 } 2758 return b; 2759 }), 2760 (e.prototype._bindAdapters = function () { 2761 this.dataAdapter.bind(this, this.$container), this.selection.bind(this, this.$container), this.dropdown.bind(this, this.$container), this.results.bind(this, this.$container); 2762 }), 2763 (e.prototype._registerDomEvents = function () { 2764 var b = this; 2765 this.$element.on("change.select2", function () { 2766 b.dataAdapter.current(function (a) { 2767 b.trigger("selection:update", { data: a }); 2768 }); 2769 }), 2770 (this._sync = c.bind(this._syncAttributes, this)), 2771 this.$element[0].attachEvent && this.$element[0].attachEvent("onpropertychange", this._sync); 2772 var d = window.MutationObserver || window.WebKitMutationObserver || window.MozMutationObserver; 2773 null != d 2774 ? ((this._observer = new d(function (c) { 2775 a.each(c, b._sync); 2776 })), 2777 this._observer.observe(this.$element[0], { attributes: !0, subtree: !1 })) 2778 : this.$element[0].addEventListener && this.$element[0].addEventListener("DOMAttrModified", b._sync, !1); 2779 }), 2780 (e.prototype._registerDataEvents = function () { 2781 var a = this; 2782 this.dataAdapter.on("*", function (b, c) { 2783 a.trigger(b, c); 2784 }); 2785 }), 2786 (e.prototype._registerSelectionEvents = function () { 2787 var b = this,
2788 c = ["toggle", "focus"]; 2789 this.selection.on("toggle", function () { 2790 b.toggleDropdown(); 2791 }), 2792 this.selection.on("focus", function (a) { 2793 b.focus(a); 2794 }), 2795 this.selection.on("*", function (d, e) { 2796 -1 === a.inArray(d, c) && b.trigger(d, e); 2797 }); 2798 }), 2799 (e.prototype._registerDropdownEvents = function () { 2800 var a = this; 2801 this.dropdown.on("*", function (b, c) { 2802 a.trigger(b, c); 2803 }); 2804 }), 2805 (e.prototype._registerResultsEvents = function () { 2806 var a = this; 2807 this.results.on("*", function (b, c) { 2808 a.trigger(b, c); 2809 }); 2810 }), 2811 (e.prototype._registerEvents = function () { 2812 var a = this; 2813 this.on("open", function () { 2814 a.$container.addClass("select2-container--open"); 2815 }), 2816 this.on("close", function () { 2817 a.$container.removeClass("select2-container--open"); 2818 }), 2819 this.on("enable", function () { 2820 a.$container.removeClass("select2-container--disabled"); 2821 }), 2822 this.on("disable", function () { 2823 a.$container.addClass("select2-container--disabled"); 2824 }), 2825 this.on("blur", function () { 2826 a.$container.removeClass("select2-container--focus"); 2827 }), 2828 this.on("query", function (b) { 2829 a.isOpen() || a.trigger("open", {}), 2830 this.dataAdapter.query(b, function (c) { 2831 a.trigger("results:all", { data: c, query: b }); 2832 }); 2833 }), 2834 this.on("query:append", function (b) { 2835 this.dataAdapter.query(b, function (c) { 2836 a.trigger("results:append", { data: c, query: b }); 2837 }); 2838 }), 2839 this.on("keypress", function (b) { 2840 var c = b.which; 2841 a.isOpen() 2842 ? c === d.ESC || c === d.TAB || (c === d.UP && b.altKey) 2843 ? (a.close(), b.preventDefault()) 2844 : c === d.ENTER 2845 ? (a.trigger("results:select", {}), b.preventDefault()) 2846 : c === d.SPACE && b.ctrlKey 2847 ? (a.trigger("results:toggle", {}), b.preventDefault()) 2848 : c === d.UP 2849 ? (a.trigger("results:previous", {}), b.preventDefault()) 2850 : c === d.DOWN && (a.trigger("results:next", {}), b.preventDefault()) 2851 : (c === d.ENTER || c === d.SPACE || (c === d.DOWN && b.altKey)) && (a.open(), b.preventDefault()); 2852 }); 2853 }), 2854 (e.prototype._syncAttributes = function () { 2855 this.options.set("disabled", this.$element.prop("disabled")), this.options.get("disabled") ? (this.isOpen() && this.close(), this.trigger("disable", {})) : this.trigger("enable", {}); 2856 }), 2857 (e.prototype.trigger = function (a, b) { 2858 var c = e.__super__.trigger, 2859 d = { open: "opening", close: "closing", select: "selecting", unselect: "unselecting" }; 2860 if ((void 0 === b && (b = {}), a in d)) { 2861 var f = d[a], 2862 g = { prevented: !1, name: a, args: b }; 2863 if ((c.call(this, f, g), g.prevented)) return void (b.prevented = !0); 2864 } 2865 c.call(this, a, b); 2866 }), 2867 (e.prototype.toggleDropdown = function () { 2868 this.options.get("disabled") || (this.isOpen() ? this.close() : this.open()); 2869 }), 2870 (e.prototype.open = function () { 2871 this.isOpen() || this.trigger("query", {}); 2872 }), 2873 (e.prototype.close = function () { 2874 this.isOpen() && this.trigger("close", {}); 2875 }), 2876 (e.prototype.isOpen = function () { 2877 return this.$container.hasClass("select2-container--open"); 2878 }), 2879 (e.prototype.hasFocus = function () { 2880 return this.$container.hasClass("select2-container--focus"); 2881 }),
2882 (e.prototype.focus = function (a) { 2883 this.hasFocus() || (this.$container.addClass("select2-container--focus"), this.trigger("focus", {})); 2884 }), 2885 (e.prototype.enable = function (a) { 2886 this.options.get("debug") && 2887 window.console && 2888 console.warn && 2889 console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'), 2890 (null == a || 0 === a.length) && (a = [!0]); 2891 var b = !a[0]; 2892 this.$element.prop("disabled", b); 2893 }), 2894 (e.prototype.data = function () { 2895 this.options.get("debug") && 2896 arguments.length > 0 && 2897 window.console && 2898 console.warn && 2899 console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.'); 2900 var a = []; 2901 return ( 2902 this.dataAdapter.current(function (b) { 2903 a = b; 2904 }), 2905 a 2906 ); 2907 }), 2908 (e.prototype.val = function (b) { 2909 if ( 2910 (this.options.get("debug") && 2911 window.console && 2912 console.warn && 2913 console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'), 2914 null == b || 0 === b.length) 2915 ) 2916 return this.$element.val(); 2917 var c = b[0]; 2918 a.Array.isArray(c) && 2919 (c = a.map(c, function (a) { 2920 return a.toString(); 2921 })), 2922 this.$element.val(c).trigger("change"); 2923 }), 2924 (e.prototype.destroy = function () { 2925 this.$container.remove(), 2926 this.$element[0].detachEvent && this.$element[0].detachEvent("onpropertychange", this._sync), 2927 null != this._observer ? (this._observer.disconnect(), (this._observer = null)) : this.$element[0].removeEventListener && this.$element[0].removeEventListener("DOMAttrModified", this._sync, !1), 2928 (this._sync = null), 2929 this.$element.off(".select2"), 2930 this.$element.attr("tabindex", this.$element.data("old-tabindex")), 2931 this.$element.removeClass("select2-hidden-accessible"), 2932 this.$element.attr("aria-hidden", "false"), 2933 this.$element.removeData("select2"), 2934 this.dataAdapter.destroy(), 2935 this.selection.destroy(), 2936 this.dropdown.destroy(), 2937 this.results.destroy(), 2938 (this.dataAdapter = null),
2939 (this.selection = null), 2940 (this.dropdown = null), 2941 (this.results = null); 2942 }), 2943 (e.prototype.render = function () { 2944 var b = a('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>'); 2945 return b.attr("dir", this.options.get("dir")), (this.$container = b), this.$container.addClass("select2-container--" + this.options.get("theme")), b.data("element", this.$element), b; 2946 }), 2947 e 2948 ); 2949 }), 2950 b.define("select2/compat/utils", ["jquery"], function (a) { 2951 function b(b, c, d) { 2952 var e, 2953 f, 2954 g = []; 2955 (e = a.trim(b.attr("class"))), 2956 e && 2957 ((e = "" + e), 2958 a(e.split(/\s+/)).each(function () { 2959 0 === this.indexOf("select2-") && g.push(this); 2960 })), 2961 (e = a.trim(c.attr("class"))), 2962 e && 2963 ((e = "" + e), 2964 a(e.split(/\s+/)).each(function () { 2965 0 !== this.indexOf("select2-") && ((f = d(this)), null != f && g.push(f)); 2966 })), 2967 b.attr("class", g.join(" ")); 2968 } 2969 return { syncCssClasses: b }; 2970 }), 2971 b.define("select2/compat/containerCss", ["jquery", "./utils"], function (a, b) { 2972 function c(a) { 2973 return null; 2974 } 2975 function d() {} 2976 return ( 2977 (d.prototype.render = function (d) { 2978 var e = d.call(this), 2979 f = this.options.get("containerCssClass") || ""; 2980 a.isFunction(f) && (f = f(this.$element)); 2981 var g = this.options.get("adaptContainerCssClass"); 2982 if (((g = g || c), -1 !== f.indexOf(":all:"))) { 2983 f = f.replace(":all:", ""); 2984 var h = g; 2985 g = function (a) { 2986 var b = h(a); 2987 return null != b ? b + " " + a : a; 2988 }; 2989 } 2990 var i = this.options.get("containerCss") || {}; 2991 return a.isFunction(i) && (i = i(this.$element)), b.syncCssClasses(e, this.$element, g), e.css(i), e.addClass(f), e; 2992 }), 2993 d 2994 ); 2995 }), 2996 b.define("select2/compat/dropdownCss", ["jquery", "./utils"], function (a, b) { 2997 function c(a) { 2998 return null; 2999 } 3000 function d() {} 3001 return ( 3002 (d.prototype.render = function (d) { 3003 var e = d.call(this), 3004 f = this.options.get("dropdownCssClass") || ""; 3005 a.isFunction(f) && (f = f(this.$element)); 3006 var g = this.options.get("adaptDropdownCssClass"); 3007 if (((g = g || c), -1 !== f.indexOf(":all:"))) { 3008 f = f.replace(":all:", ""); 3009 var h = g; 3010 g = function (a) { 3011 var b = h(a); 3012 return null != b ? b + " " + a : a; 3013 }; 3014 } 3015 var i = this.options.get("dropdownCss") || {}; 3016 return a.isFunction(i) && (i = i(this.$element)), b.syncCssClasse
3016s(e, this.$element, g), e.css(i), e.addClass(f), e; 3017 }), 3018 d 3019 ); 3020 }), 3021 b.define("select2/compat/initSelection", ["jquery"], function (a) { 3022 function b(a, b, c) { 3023 c.get("debug") && 3024 window.console && 3025 console.warn && 3026 console.warn( 3027 "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" 3028 ), 3029 (this.initSelection = c.get("initSelection")), 3030 (this._isInitialized = !1), 3031 a.call(this, b, c); 3032 } 3033 return ( 3034 (b.prototype.current = function (b, c) { 3035 var d = this; 3036 return this._isInitialized 3037 ? void b.call(this, c) 3038 : void this.initSelection.call(null, this.$element, function (b) { 3039 (d._isInitialized = !0), a.Array.isArray(b) || (b = [b]), c(b); 3040 }); 3041 }), 3042 b 3043 ); 3044 }), 3045 b.define("select2/compat/inputData", ["jquery"], function (a) { 3046 function b(a, b, c) { 3047 (this._currentData = []), 3048 (this._valueSeparator = c.get("valueSeparator") || ","), 3049 "hidden" === b.prop("type") && 3050 c.get("debug") && 3051 console && 3052 console.warn && 3053 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."), 3054 a.call(this, b, c); 3055 } 3056 return ( 3057 (b.prototype.current = function (b, c) { 3058 function d(b, c) { 3059 var e = []; 3060 return b.selected || -1 !== a.inArray(b.id, c) ? ((b.selected = !0), e.push(b)) : (b.selected = !1), b.children && e.push.apply(e, d(b.children, c)), e; 3061 } 3062 for (var e = [], f = 0; f < this._currentData.length; f++) { 3063 var g = this._currentData[f]; 3064 e.push.apply(e, d(g, this.$element.val().split(this._valueSeparator))); 3065 } 3066 c(e); 3067 }), 3068 (b.prototype.select = function (b, c) { 3069 if (this.options.get("multiple")) { 3070 var d = this.$element.val(); 3071 (d += this._valueSeparator + c.id), this.$element.val(d), this.$element.trigger("change"); 3072 } else 3073 this.current(function (b) { 3074 a.map(b, function (a) { 3075 a.selected = !1; 3076 }); 3077 }), 3078 this.$element.val(c.id), 3079 this.$element.trigger("change"); 3080 }), 3081 (b.prototype.unselect = function (a, b) { 3082 var c = this; 3083 (b.selected = !1), 3084 this.current(function (a) { 3085 for (var d = [], e = 0; e < a.length; e++) { 3086 var f = a[e]; 3087 b.id != f.id && d.push(f.id); 3088 } 3089 c.$element.val(d.join(c._valueSeparator)), c.$element.trigger("change"); 3090 }); 3091 }), 3092 (b.prototype.query = function (a, b, c) { 3093 for (var d = [], e = 0; e < this._currentData.length; e++) { 3094 var f = this._currentData[e], 3095 g = this.matches(b, f); 3096 null !== g && d.push(g); 3097 } 3098 c({ results: d }); 3099 }), 3100 (b.prototype.addOptions = function (b, c) { 3101 var d = a.map(c, function (b) { 3102 return a.data(b[0], "data"); 3103 }); 3104 this._currentData.push.apply(this._currentData, d); 3105 }), 3106 b 3107 ); 3108 }), 3109 b.define("select2/compat/matcher", ["jquery"], function (a) { 3110 function b(b) { 3111 function c(c, d) { 3112 var e = a.extend(!0, {}, d); 3113 if (null == c.term || "" === a.trim(c.term)) return e; 3114 if (d.children) { 3115 for (var f = d.children.length - 1; f >= 0;
3115 f--) { 3116 var g = d.children[f], 3117 h = b(c.term, g.text, g); 3118 h || e.children.splice(f, 1); 3119 } 3120 if (e.children.length > 0) return e; 3121 } 3122 return b(c.term, d.text, d) ? e : null; 3123 } 3124 return c; 3125 } 3126 return b; 3127 }), 3128 b.define("select2/compat/query", [], function () { 3129 function a(a, b, c) { 3130 c.get("debug") && 3131 window.console && 3132 console.warn && 3133 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."), 3134 a.call(this, b, c); 3135 } 3136 return ( 3137 (a.prototype.query = function (a, b, c) { 3138 b.callback = c; 3139 var d = this.options.get("query"); 3140 d.call(null, b); 3141 }), 3142 a 3143 ); 3144 }), 3145 b.define("select2/dropdown/attachContainer", [], function () { 3146 function a(a, b, c) { 3147 a.call(this, b, c); 3148 } 3149 return ( 3150 (a.prototype.position = function (a, b, c) { 3151 var d = c.find(".dropdown-wrapper"); 3152 d.append(b), b.addClass("select2-dropdown--below"), c.addClass("select2-container--below"); 3153 }), 3154 a 3155 ); 3156 }), 3157 b.define("select2/dropdown/stopPropagation", [], function () { 3158 function a() {} 3159 return ( 3160 (a.prototype.bind = function (a, b, c) { 3161 a.call(this, b, c); 3162 var d = [ 3163 "blur", 3164 "change", 3165 "click", 3166 "dblclick", 3167 "focus", 3168 "focusin", 3169 "focusout", 3170 "input", 3171 "keydown", 3172 "keyup", 3173 "keypress", 3174 "mousedown", 3175 "mouseenter", 3176 "mouseleave", 3177 "mousemove", 3178 "mouseover", 3179 "mouseup", 3180 "search", 3181 "touchend", 3182 "touchstart", 3183 ]; 3184 this.$dropdown.on(d.join(" "), function (a) { 3185 a.stopPropagation(); 3186 }); 3187 }), 3188 a 3189 ); 3190 }), 3191 b.define("select2/selection/stopPropagation", [], function () { 3192 function a() {} 3193 return ( 3194 (a.prototype.bind = function (a, b, c) { 3195 a.call(this, b, c); 3196 var d = [ 3197 "blur", 3198 "change", 3199 "click", 3200 "dblclick", 3201 "focus", 3202 "focusin", 3203 "focusout", 3204 "input", 3205 "keydown", 3206 "keyup", 3207 "keypress", 3208 "mousedown", 3209 "mouseenter", 3210 "mouseleave", 3211 "mousemove", 3212 "mouseover", 3213 "mouseup", 3214 "search", 3215 "touchend", 3216 "touchstart", 3217 ]; 3218 this.$selection.on(d.join(" "), function (a) { 3219 a.stopPropagation(); 3220 }); 3221 }), 3222 a 3223 ); 3224 }), 3225 (function (c) { 3226 "function" == typeof b.define && b.define.amd ? b.define("jquery-mousewheel", ["jquery"], c) : "object" == typeof exports ? (module.exports = c) : c(a); 3227 })(function (a) { 3228 function b(b) { 3229 var g = b || window.event, 3230 h = i.call(arguments, 1), 3231 j = 0, 3232 l = 0, 3233 m = 0, 3234 n = 0, 3235 o = 0, 3236 p = 0; 3237 if ( 3238 ((b = a.event.fix(g)), 3239 (b.type = "mousewheel"), 3240 "detail" in g && (m = -1 * g.detail), 3241 "wheelDelta" in g && (m = g.wheelDelta), 3242 "wheelDeltaY" in g && (m = g.wheelDeltaY), 3243 "wheelDeltaX" in g && (l = -1 * g.wheelDeltaX), 3244 "axis" in g && g.axis === g.HORIZONTAL_AXIS && ((l = -1 * m), (m = 0)), 3245 (j = 0 === m ? l : m), 3246 "deltaY" in g && ((m = -1 * g.deltaY), (j = m)), 3247 "deltaX" in g && ((l = g.deltaX), 0 === m && (j = -1 * l)), 3248 0 !== m || 0 !== l) 3249 ) { 3250 if (1 === g.deltaMode) { 3251 var q = a.data(this, "mousewheel-line-height"); 3252 (j *= q), (m *= q), (l *= q); 3253 } else if (2 === g.deltaMode) { 3254 var r = a.data(this, "mousewheel-page-height"); 3255 (j *= r), (m *= r), (l *= r); 3256 } 3257 if ( 3258 ((n = Math.max(Math.abs(m), Math.abs(l))), 3259 (!f || f > n) && ((f = n), d(g, n) && (f /= 40)), 3260 d(g, n) && ((j /= 40), (l /= 40), (m /= 40)), 3261 (j = Math[j >= 1 ? "floor" : "ceil"](j / f)), 3262 (l = Math[l >= 1 ? "floor" : "ceil"](l / f)), 3263 (m = Math[m >= 1 ? "floor" : "ceil"](m / f)), 3264 k.settings.normalizeOffset && this.getBoundingClientRect) 3265 ) { 3266 var s = this.getBoundingClientRect(); 3267 (o = b.clientX - s.left), (p = b.clientY - s.top); 3268 } 3269 return ( 3270 (b.deltaX = l), 3271 (b.deltaY = m), 3272 (b.deltaFactor = f), 3273 (b.offsetX = o), 3274 (b.offsetY = p), 3275 (b.deltaMode = 0), 3276 h.unshift(b, j, l, m), 3277 e && clearTimeout(e), 3278 (e = setTimeout(c, 200)), 3279 (a.event.dispatch || a.event.handle).apply(this, h) 3280 ); 3281 } 3282 } 3283 function c() { 3284 f = null; 3285 } 3286 function d(a, b) { 3287 return k.settings.adjustOldDeltas && "mousewheel" === a.type && b % 120 === 0; 3288 } 3289 var e, 3290 f, 3291 g = ["wheel", "mousewheel", "DOMMouseScroll", "MozMousePixelScroll"], 3292 h = "onwheel" in document || document.documentMode >= 9 ? ["wheel"] : ["mousewheel", "DomMouseScroll", "MozMousePixelScroll"], 3293 i = Array.prototype.slice; 3294 if (a.event.fixHooks) for (var j = g.length; j; ) a.event.fixHooks[g[--j]] = a.event.mouseHooks; 3295 var k = (a.event.special.mousewheel = { 3296 version: "3.1.12", 3297 setup: function () { 3298 if (this.addEventListener) for (var c = h.length; c; ) this.addEventListener(h[--c], b, !1); 3299 else this.onmousewheel = b; 3300 a.data(this, "mousewheel-line-height", k.getLineHeight(this)), a.data(this, "mousewheel-page-height", k.getPageHeight(this)); 3301 }, 3302 teardown: function () { 3303 if (this.removeEventListener) for (var c = h.length; c; ) this.removeEventListener(h[--c], b, !1); 3304 else this.onmousewheel = null; 3305 a.removeData(this, "mousewheel-line-height"), a.removeData(this, "mousewheel-page-height"); 3306 }, 3307 getLineHeight: function (b) { 3308 var c = a(b), 3309 d = c["offsetParent" in a.fn ? "offsetParent" : "parent"](); 3310 return d.length || (d = a("body")), parseInt(d.css("fontSize"), 10) || parseInt(c.css("fontSize"), 10) || 16; 3311 }, 3312 getPageHeight: function (b) { 3313 return a(b).height(); 3314 }, 3315 settings: { adjustOldDeltas: !0, normalizeOffset: !0 }, 3316 }); 3317 a.fn.extend({ 3318 mousewheel: function (a) { 3319 return a ? this.bind("mousewheel", a) : this.trigger("mousewheel"); 3320 }, 3321 unmousewheel: function (a) { 3322 return this.unbind("mousewheel", a); 3323 }, 3324 }); 3325 }), 3326 b.define("jquery.select2", ["jquery", "jquery-mousewheel", "./select2/core", "./select2/defaults"], function (a, b, c, d) { 3327 if (null == a.fn.select2) { 3328 var e = ["open", "close", "destroy"]; 3329 a.fn.select2 = function (b) { 3330 if (((b = b || {}), "object" == typeof b)) 3331 return ( 3332 this.each(function () { 3333 var d = a.extend(!0, {}, b); 3334 new c(a(this), d); 3335 }), 3336 this 3337 ); 3338 if ("string" == typeof b) { 3339 var d; 3340 return ( 3341 this.each(function () { 3342 var c = a(this).data("select2"); 3343 null == c && window.console && console.error && console.error("The select2('" + b + "') method was called on an element that is not using Select2."); 3344 var e = Array.prototype.slice.call(arguments, 1); 3345 d = c[b].apply(c, e); 3346 }), 3347 a.inArray(b, e) >
3347 -1 ? this : d 3348 ); 3349 } 3350 throw new Error("Invalid arguments for Select2: " + b); 3351 }; 3352 } 3353 return null == a.fn.select2.defaults && (a.fn.select2.defaults = d), c; 3354 }), 3355 { define: b.define, require: b.require } 3356 ); 3357 })(), 3358 c = b.require("jquery.select2"); 3359 return (a.fn.select2.amd = b), c; 3360});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.