1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-12-15 09:01:17 +01:00
mkdocs-material/material/assets/javascripts/lunr/lunr.tr.js

1 line
14 KiB
JavaScript
Raw Normal View History

2017-06-01 00:40:10 +02:00
!function(r,i){"function"==typeof define&&define.amd?define(i):"object"==typeof exports?module.exports=i():i()(r.lunr)}(this,function(){return function(r){if(void 0===r)throw new Error("Lunr is not present. Please include / require Lunr before this script.");if(void 0===r.stemmerSupport)throw new Error("Lunr stemmer support is not present. Please include / require Lunr stemmer support before this script.");r.tr=function(){this.pipeline.reset(),this.pipeline.add(r.tr.trimmer,r.tr.stopWordFilter,r.tr.stemmer),this.searchPipeline&&(this.searchPipeline.reset(),this.searchPipeline.add(r.tr.stemmer))},r.tr.wordCharacters="A-Za-zªºÀ-ÖØ-öø-ʸˠ-ˤᴀ-ᴥᴬ-ᵜᵢ-ᵥᵫ-ᵷᵹ-ᶾḀ-ỿⁱⁿₐ-ₜKÅℲⅎⅠ-ↈⱠ-ⱿꜢ-ꞇꞋ-ꞭꞰ-ꞷꟷ-ꟿꬰ-ꭚꭜ-ꭤff-stA--",r.tr.trimmer=r.trimmerSupport.generateTrimmer(r.tr.wordCharacters),r.Pipeline.registerFunction(r.tr.trimmer,"trimmer-tr"),r.tr.stemmer=function(){var i=r.stemmerSupport.Among,e=r.stemmerSupport.SnowballProgram,n=new function(){function r(r,i,e){for(;;){var n=jr.limit-jr.cursor;if(jr.in_grouping_b(r,i,e)){jr.cursor=jr.limit-n;break}if(jr.cursor=jr.limit-n,jr.cursor<=jr.limit_backward)return!1;jr.cursor--}return!0}function n(){var i,e;i=jr.limit-jr.cursor,r(Wr,97,305);for(var n=0;n<Er.length;n++){e=jr.limit-jr.cursor;var t=Er[n];if(jr.eq_s_b(1,t[0])&&r(t[1],t[2],t[3]))return jr.cursor=jr.limit-i,!0;jr.cursor=jr.limit-e}return jr.cursor=jr.limit-e,!(!jr.eq_s_b(1,"ü")||!r(Ar,246,252))&&(jr.cursor=jr.limit-i,!0)}function t(r,i){var e,n=jr.limit-jr.cursor;return r()&&(jr.cursor=jr.limit-n,jr.cursor>jr.limit_backward&&(jr.cursor--,e=jr.limit-jr.cursor,i()))?(jr.cursor=jr.limit-e,!0):(jr.cursor=jr.limit-n,r()?(jr.cursor=jr.limit-n,!1):(jr.cursor=jr.limit-n,!(jr.cursor<=jr.limit_backward)&&(jr.cursor--,!!i()&&(jr.cursor=jr.limit-n,!0))))}function u(r){return t(r,function(){return jr.in_grouping_b(Wr,97,305)})}function o(){return u(function(){return jr.eq_s_b(1,"n")})}function s(){return u(function(){return jr.eq_s_b(1,"s")})}function c(){return u(function(){return jr.eq_s_b(1,"y")})}function l(){return t(function(){return jr.in_grouping_b(Lr,105,305)},function(){return jr.out_grouping_b(Wr,97,305)})}function a(){return jr.find_among_b(ur,10)&&l()}function m(){return n()&&jr.in_grouping_b(Lr,105,305)&&s()}function d(){return jr.find_among_b(or,2)}function f(){return n()&&jr.in_grouping_b(Lr,105,305)&&c()}function b(){return n()&&jr.find_among_b(sr,4)}function w(){return n()&&jr.find_among_b(cr,4)&&o()}function _(){return n()&&jr.find_among_b(lr,2)&&c()}function k(){return n()&&jr.find_among_b(ar,2)}function p(){return n()&&jr.find_among_b(mr,4)}function g(){return n()&&jr.find_among_b(dr,2)}function y(){return n()&&jr.find_among_b(fr,4)}function z(){return n()&&jr.find_among_b(br,2)}function v(){return n()&&jr.find_among_b(wr,2)&&c()}function h(){return jr.eq_s_b(2,"ki")}function q(){return n()&&jr.find_among_b(_r,2)&&o()}function C(){return n()&&jr.find_among_b(kr,4)&&c()}function P(){return n()&&jr.find_among_b(pr,4)}function F(){return n()&&jr.find_among_b(gr,4)&&c()}function S(){return jr.find_among_b(yr,4)}function W(){return n()&&jr.find_among_b(zr,2)}function L(){return n()&&jr.find_among_b(vr,4)}function x(){return n()&&jr.find_among_b(hr,8)}function A(){return jr.find_among_b(qr,2)}function E(){return n()&&jr.find_among_b(Cr,32)&&c()}function j(){return jr.find_among_b(Pr,8)&&c()}function T(){return n()&&jr.find_among_b(Fr,4)&&c()}function Z(){return jr.eq_s_b(3,"ken")&&c()}function B(){var r=jr.limit-jr.cursor;return!(T()||(jr.cursor=jr.limit-r,E()||(jr.cursor=jr.limit-r,j()||(jr.cursor=jr.limit-r,Z()))))}function D(){if(A()){var r=jr.limit-jr.cursor;if(S()||(jr.cursor=jr.limit-r,W()||(jr.cursor=jr.limit-r,C()||(jr.cursor=jr.limit-r,P()||(jr.cursor=jr.limit-r,F()||(jr.cursor=jr.limit-r))))),T())return!1}return!0}function G(){if(W()){jr.bra=jr.cursor,jr.slice_del();var r=jr.limit-jr.cursor;return jr.ket=jr.cursor,x()||(jr.cursor=jr.limit-r,E()||(jr.cursor=jr.limit-r,j()||(jr.cursor=jr.limit-r,T()||(jr.cursor=jr.limit-r)))),nr=!1,!1}ret