mkdocs-material/material/assets/javascripts/lunr/lunr.fi.js

1 line
8.7 KiB
JavaScript
Raw Normal View History

!function(i,e){"function"==typeof define&&define.amd?define(e):"object"==typeof exports?module.exports=e():e()(i.lunr)}(this,function(){return function(i){if(void 0===i)throw new Error("Lunr is not present. Please include / require Lunr before this script.");if(void 0===i.stemmerSupport)throw new Error("Lunr stemmer support is not present. Please include / require Lunr stemmer support before this script.");i.fi=function(){this.pipeline.reset(),this.pipeline.add(i.fi.trimmer,i.fi.stopWordFilter,i.fi.stemmer),this.searchPipeline&&(this.searchPipeline.reset(),this.searchPipeline.add(i.fi.stemmer))},i.fi.wordCharacters="A-Za-zªºÀ-ÖØ-öø-ʸˠ-ˤᴀ-ᴥᴬ-ᵜᵢ-ᵥᵫ-ᵷᵹ-ᶾḀ-ỿⁱⁿₐ-ₜKÅℲⅎⅠ-ↈⱠ-ⱿꜢ-ꞇꞋ-ꞭꞰ-ꞷꟷ-ꟿꬰ-ꭚꭜ-ꭤff-stA--",i.fi.trimmer=i.trimmerSupport.generateTrimmer(i.fi.wordCharacters),i.Pipeline.registerFunction(i.fi.trimmer,"trimmer-fi"),i.fi.stemmer=function(){var e=i.stemmerSupport.Among,r=i.stemmerSupport.SnowballProgram,n=new function(){function i(){for(var i;;){if(i=q.cursor,q.in_grouping(g,97,246))break;if(q.cursor=i,i>=q.limit)return!0;q.cursor++}for(q.cursor=i;!q.out_grouping(g,97,246);){if(q.cursor>=q.limit)return!0;q.cursor++}return!1}function n(){return q.find_among_b(k,7)}function t(){return q.eq_s_b(1,"i")&&q.in_grouping_b(j,97,246)}var s,o,l,a,u=[new e("pa",-1,1),new e("sti",-1,2),new e("kaan",-1,1),new e("han",-1,1),new e("kin",-1,1),new e("hän",-1,1),new e("kään",-1,1),new e("ko",-1,1),new e("pä",-1,1),new e("kö",-1,1)],c=[new e("lla",-1,-1),new e("na",-1,-1),new e("ssa",-1,-1),new e("ta",-1,-1),new e("lta",3,-1),new e("sta",3,-1)],m=[new e("llä",-1,-1),new e("nä",-1,-1),new e("ssä",-1,-1),new e("tä",-1,-1),new e("ltä",3,-1),new e("stä",3,-1)],w=[new e("lle",-1,-1),new e("ine",-1,-1)],_=[new e("nsa",-1,3),new e("mme",-1,3),new e("nne",-1,3),new e("ni",-1,2),new e("si",-1,1),new e("an",-1,4),new e("en",-1,6),new e("än",-1,5),new e("nsä",-1,3)],k=[new e("aa",-1,-1),new e("ee",-1,-1),new e("ii",-1,-1),new e("oo",-1,-1),new e("uu",-1,-1),new e("ää",-1,-1),new e("öö",-1,-1)],b=[new e("a",-1,8),new e("lla",0,-1),new e("na",0,-1),new e("ssa",0,-1),new e("ta",0,-1),new e("lta",4,-1),new e("sta",4,-1),new e("tta",4,9),new e("lle",-1,-1),new e("ine",-1,-1),new e("ksi",-1,-1),new e("n",-1,7),new e("han",11,1),new e("den",11,-1,t),new e("seen",11,-1,n),new e("hen",11,2),new e("tten",11,-1,t),new e("hin",11,3),new e("siin",11,-1,t),new e("hon",11,4),new e("hän",11,5),new e("hön",11,6),new e("ä",-1,8),new e("llä",22,-1),new e("nä",22,-1),new e("ssä",22,-1),new e("tä",22,-1),new e("ltä",26,-1),new e("stä",26,-1),new e("ttä",26,9)],d=[new e("eja",-1,-1),new e("mma",-1,1),new e("imma",1,-1),new e("mpa",-1,1),new e("impa",3,-1),new e("mmi",-1,1),new e("immi",5,-1),new e("mpi",-1,1),new e("impi",7,-1),new e("ejä",-1,-1),new e("mmä",-1,1),new e("immä",10,-1),new e("mpä",-1,1),new e("impä",12,-1)],f=[new e("i",-1,-1),new e("j",-1,-1)],h=[new e("mma",-1,1),new e("imma",0,-1)],p=[17,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8],g=[17,65,16,1,0,0,0,0,0,0,0,0,0,0,0,0,8,0,32],j=[17,65,16,0,0,0,0,0,0,0,0,0,0,0,0,0,8,0,32],v=[17,97,24,1,0,0,0,0,0,0,0,0,0,0,0,0,8,0,32],q=new r;this.setCurrent=function(i){q.setCurrent(i)},this.getCurrent=function(){return q.getCurrent()},this.stem=function(){var e=q.cursor;return a=q.limit,l=a,i()||(a=q.cursor,i()||(l=q.cursor)),s=!1,q.limit_backward=e,q.cursor=q.limit,function(){var i,e;if(q.cursor>=a)if(e=q.limit_backward,q.limit_backward=a,q.ket=q.cursor,i=q.find_among_b(u,10)){switch(q.bra=q.cursor,q.limit_backward=e,i){case 1:if(!q.in_grouping_b(v,97,246))return;break;case 2:if(!(l<=q.cursor))return}q.slice_del()}else q.limit_backward=e}(),q.cursor=q.limit,function(){var i,e,r;if(q.cursor>=a)if(e=q.limit_backward,q.limit_backward=a,q.ket=q.cursor,i=q.find_among_b(_,9))switch(q.bra=q.cursor,q.limit_backward=e,i){case 1:r=q.limit-q.cursor,q.eq_s_b(1,"k")||(q.cursor=q.limit-r,q.slice_del());break;case 2:q.slice_del(),q.ket=q.cursor,q.eq_s_b(3,"kse")&&(q.bra=q.cursor,q.slice_from("ksi"));break;case 3:q.slice_d