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window.Element === \"undefined\" ||\n \"classList\" in document.documentElement) {\n return;\n }\n\n var prototype = Array.prototype,\n push = prototype.push,\n splice = prototype.splice,\n join = prototype.join;\n\n function DOMTokenList(el) {\n this.el = el;\n // The className needs to be trimmed and split on whitespace\n // to retrieve a list of classes.\n var classes = el.className.replace(/^\\s+|\\s+$/g, '').split(/\\s+/);\n for (var i = 0; i < classes.length; i++) {\n push.call(this, classes[i]);\n }\n }\n\n DOMTokenList.prototype = {\n add: function (token) {\n if (this.contains(token)) return;\n push.call(this, token);\n this.el.className = this.toString();\n },\n contains: function (token) {\n return this.el.className.indexOf(token) != -1;\n },\n item: function (index) {\n return this[index] || null;\n },\n remove: function (token) {\n if (!this.contains(token)) return;\n for (var i = 0; i < this.length; i++) {\n if (this[i] == token) break;\n }\n splice.call(this, i, 1);\n this.el.className = this.toString();\n },\n toString: function () {\n return join.call(this, ' ');\n },\n toggle: function (token) {\n if (!this.contains(token)) {\n this.add(token);\n } else {\n this.remove(token);\n }\n\n return this.contains(token);\n }\n };\n\n window.DOMTokenList = DOMTokenList;\n\n function defineElementGetter(obj, prop, getter) {\n if (Object.defineProperty) {\n Object.defineProperty(obj, prop, {\n get: getter\n });\n } else {\n obj.__defineGetter__(prop, getter);\n }\n }\n\n defineElementGetter(HTMLElement.prototype, 'classList', function () {\n return new DOMTokenList(this);\n });\n})();\n"],"names":["window","Element","document","documentElement","obj","prop","getter","prototype","Array","push","splice","join","DOMTokenList","add","token","this","contains","call","el","className","toString","indexOf","item","index","remove","i","length","toggle","HTMLElement","Object","defineProperty","get","__defineGetter__","classes","replace","split"],"version":3,"file":"index.c0ef040a.js.map"}