!function(e,t){"object"==typeofexports&&"undefined"!=typeofmodule?module.exports=t():"function"==typeofdefine&&define.amd?define(t):(e="undefined"!=typeofglobalThis?globalThis:e||self).RevealHighlight=t()}(this,(function(){"use strict";functione(t){return(e="function"==typeofSymbol&&"symbol"==typeofSymbol.iterator?function(e){returntypeofe}:function(e){returne&&"function"==typeofSymbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeofe})(t)}functiont(e,t){if(!(einstanceoft))thrownewTypeError("Cannot call a class as a function")}functionn(e,t){for(varn=0;n<t.length;n++){vara=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"ina&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}functiona(e,t,a){returnt&&n(e.prototype,t),a&&n(e,a),e}functionr(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){returne.__proto__||Object.getPrototypeOf(e)})(e)}functioni(e,t){return(i=Object.setPrototypeOf||function(e,t){returne.__proto__=t,e})(e,t)}functiono(e,t){return!t||"object"!=typeoft&&"function"!=typeoft?function(e){if(void0===e)thrownewReferenceError("this hasn't been initialised - super() hasn't been called");returne}(e):t}functions(e){vart=function(){if("undefined"==typeofReflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeofProxy)return!0;try{returnBoolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();returnfunction(){varn,a=r(e);if(t){vari=r(this).constructor;n=Reflect.construct(a,arguments,i)}elsen=a.apply(this,arguments);returno(this,n)}}functionl(e,t){returnfunction(e){if(Array.isArray(e))returne}(e)||function(e,t){varn=e&&("undefined"!=typeofSymbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;vara,r,i=[],o=!0,s=!1;try{for(n=n.call(e);!(o=(a=n.next()).done)&&(i.push(a.value),!t||i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==n.return||n.return()}finally{if(s)throwr}}returni}(e,t)||_(e,t)||function(){thrownewTypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}functionc(e){returnfunction(e){if(Array.isArray(e))returnd(e)}(e)||function(e){if("undefined"!=typeofSymbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])returnArray.from(e)}(e)||_(e)||function(){thrownewTypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function_(e,t){if(e){if("string"==typeofe)returnd(e,t);varn=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void0}}functiond(e,t){(null==t||t>e.length)&&(t=e.length);for(varn=0,a=newArray(t);n<t;n++)a[n]=e[n];returna}varu="undefined"!=typeofglobalThis?globalThis:"undefined"!=typeofwindow?window:"undefined"!=typeofglobal?global:"undefined"!=typeofself?self:{},m=function(e){returne&&e.Math==Math&&e},p=m("object"==typeofglobalThis&&globalThis)||m("object"==typeofwindow&&window)||m("object"==typeofself&&self)||m("object"==typeofu&&u)||function(){returnthis}()||Function("return this")(),g={exports:{}},E=function(e){try{return!!e()}catch(e){return!0}},S=!E((function(){return7!=Object.defineProperty({},1,{get:function(){return7}})[1]})),b={},f=function(e){return"object"==typeofe?null!==e:"function"==typeofe},T=f,C=p.document,N=T(C)&&T(C.createElement),R=function(e){returnN?C.createElement(e):{}},v=R,O=!S&&!E((function(){return7!=Object.defineProperty(v("div"),"a",{get:function(){return7}}).a})),h=f,y=function(e){if(!h(e))throwTypeError(String(e)+" is not an object");returne},I=f,A=function(e,t){if(!I(e))returne;varn,a;if(t&&"function"==typeof(n=e.toString)&&!I(a=n.call(e)))returna;if("function"==typeof(n=e.valueOf)&&!I(a=n.call(e)))returna;if(!t&&"function"==typeof(n=e.toString)&&!I(a=n.call(e)))returna;throwTypeError("Can'tc