lunr.th-RUK2AEUT.min.js 1.6 KB

12345678910111213141516171819202122
  1. import{b as h}from"./chunk-XUHMPXWX.min.js";var p=h((r,o)=>{(function(e,t){typeof define=="function"&&define.amd?define(t):typeof r=="object"?o.exports=t():t()(e.lunr)})(r,function(){return function(e){if(typeof e>"u")throw new Error("Lunr is not present. Please include / require Lunr before this script.");if(typeof e.stemmerSupport>"u")throw new Error("Lunr stemmer support is not present. Please include / require Lunr stemmer support before this script.");var t=e.version[0]=="2";e.th=function(){this.pipeline.reset(),this.pipeline.add(e.th.trimmer),t?this.tokenizer=e.th.tokenizer:(e.tokenizer&&(e.tokenizer=e.th.tokenizer),this.tokenizerFn&&(this.tokenizerFn=e.th.tokenizer))},e.th.wordCharacters="[\u0E00-\u0E7F]",e.th.trimmer=e.trimmerSupport.generateTrimmer(e.th.wordCharacters),e.Pipeline.registerFunction(e.th.trimmer,"trimmer-th");var n=e.wordcut;n.init(),e.th.tokenizer=function(i){if(!arguments.length||i==null||i==null)return[];if(Array.isArray(i))return i.map(function(s){return t?new e.Token(s):s});var f=i.toString().replace(/^\s+/,"");return n.cut(f).split("|")}}})});export default p();
  2. /*! Bundled license information:
  3. lunr-languages/lunr.th.js:
  4. (*!
  5. * Lunr languages, `Thai` language
  6. * https://github.com/MihaiValentin/lunr-languages
  7. *
  8. * Copyright 2017, Keerati Thiwanruk
  9. * http://www.mozilla.org/MPL/
  10. *)
  11. (*!
  12. * based on
  13. * Snowball JavaScript Library v0.3
  14. * http://code.google.com/p/urim/
  15. * http://snowball.tartarus.org/
  16. *
  17. * Copyright 2010, Oleg Mazko
  18. * http://www.mozilla.org/MPL/
  19. *)
  20. */
  21. //# sourceMappingURL=lunr.th-RUK2AEUT.min.js.map