@valbuild/ui 0.91.3 → 0.92.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,4 @@
1
+ (function(){"use strict";function It(t,e){(e==null||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i<e;i++)n[i]=t[i];return n}function Pt(t,e){if(t){if(typeof t=="string")return It(t,e);var i={}.toString.call(t).slice(8,-1);return i==="Object"&&t.constructor&&(i=t.constructor.name),i==="Map"||i==="Set"?Array.from(t):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?It(t,e):void 0}}function te(t,e){var i=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=Pt(t))||e){i&&(t=i);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(a){throw a},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var r,s=!0,l=!1;return{s:function(){i=i.call(t)},n:function(){var a=i.next();return s=a.done,a},e:function(a){l=!0,r=a},f:function(){try{s||i.return==null||i.return()}finally{if(l)throw r}}}}function Be(t){if(Array.isArray(t))return t}function Ve(t,e){var i=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(i!=null){var n,o,r,s,l=[],a=!0,p=!1;try{if(r=(i=i.call(t)).next,e!==0)for(;!(a=(n=r.call(i)).done)&&(l.push(n.value),l.length!==e);a=!0);}catch(c){p=!0,o=c}finally{try{if(!a&&i.return!=null&&(s=i.return(),Object(s)!==s))return}finally{if(p)throw o}}return l}}function Fe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
3
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ct(t,e){return Be(t)||Ve(t,e)||Pt(t,e)||Fe()}function Re(t){if(Array.isArray(t))return It(t)}function Te(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Le(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
4
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $e(t){return Re(t)||Te(t)||Pt(t)||Le()}function K(t){"@babel/helpers - typeof";return K=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},K(t)}function We(t,e){if(typeof t!="object"||!t)return t;var i=t[Symbol.toPrimitive];if(i!==void 0){var n=i.call(t,e);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}function ee(t){var e=We(t,"string");return typeof e=="symbol"?e:e+""}function F(t,e,i){return(e=ee(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function ie(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),i.push.apply(i,n)}return i}function D(t){for(var e=1;e<arguments.length;e++){var i=arguments[e]!=null?arguments[e]:{};e%2?ie(Object(i),!0).forEach(function(n){F(t,n,i[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):ie(Object(i)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(i,n))})}return t}function Et(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Je(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,ee(n.key),n)}}function Bt(t,e,i){return e&&Je(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function mt(t){return mt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},mt(t)}function ne(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ne=function(){return!!t})()}function Ke(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function He(t,e){if(e&&(typeof e=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ke(t)}function oe(t,e,i){return e=mt(e),He(t,ne()?Reflect.construct(e,[],mt(t).constructor):e.apply(t,i))}function Vt(t,e){return Vt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,n){return i.__proto__=n,i},Vt(t,e)}function re(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Vt(t,e)}var se=(function(){function t(){Et(this,t)}return Bt(t,[{key:"executeCustomValidateFunctions",value:function(i,n,o){var r=[],s=te(n),l;try{for(s.s();!(l=s.n()).done;){var a=l.value;try{var p=a(i,o);p&&r.push({message:p,value:i})}catch(c){r.push({message:"Error in custom validate function: ".concat(c instanceof Error?c.message:String(c)),value:i,schemaError:!0})}}}catch(c){s.e(c)}finally{s.f()}return r}},{key:"appendValidationError",value:function(i,n,o,r,s){return i?(i[n]?i[n].push({message:o,value:r,schemaError:s}):i[n]=[{message:o,value:r,schemaError:s}],i):F({},n,[{message:o,value:r,schemaError:s}])}}])})(),at="_ref";function ae(t,e){if(K(e)==="symbol")throw Error("Cannot create val path of array item with symbol prop: ".concat(e.toString()));if(t)return t.includes(gt.ModuleFilePathSep)?"".concat(t,".").concat(JSON.stringify(e)):"".concat(t).concat(gt.ModuleFilePathSep).concat(JSON.stringify(e))}function Ne(t,e){if(K(e)==="symbol")throw Error("Cannot create val path of array item with symbol prop: ".concat(e.toString()));if(!t)throw Error("Cannot create val path of array item of empty or missing path: ".concat(t,". Item: ").concat(e));return t.includes(gt.ModuleFilePathSep)?"".concat(t,".").concat(JSON.stringify(e)):"".concat(t).concat(gt.ModuleFilePathSep).concat(JSON.stringify(e))}var De=(function(t){function e(i){var n,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[],l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:null;return Et(this,e),n=oe(this,e),n.options=i,n.opt=o,n.isRaw=r,n.customValidateFunctions=s,n.renderInput=l,n}return re(e,t),Bt(e,[{key:"min",value:function(n){return this.minLength(n)}},{key:"minLength",value:function(n){return new e(D(D({},this.options),{},{minLength:n}),this.opt,this.isRaw,this.customValidateFunctions,this.renderInput)}},{key:"max",value:function(n){return this.maxLength(n)}},{key:"maxLength",value:function(n){return new e(D(D({},this.options),{},{maxLength:n}),this.opt,this.isRaw,this.customValidateFunctions,this.renderInput)}},{key:"regexp",value:function(n,o){return new e(D(D({},this.options),{},{regexp:n,regExpMessage:o}),this.opt,this.isRaw,this.customValidateFunctions,this.renderInput)}},{key:"validate",value:function(n){return new e(this.options,this.opt,this.isRaw,this.customValidateFunctions.concat(n),this.renderInput)}},{key:"executeValidate",value:function(n,o){var r,s,l,a=this.executeCustomValidateFunctions(o,this.customValidateFunctions,{path:n});return this.opt&&o==null?a.length>0?F({},n,a):!1:typeof o!="string"?F({},n,[{message:"Expected 'string', got '".concat(K(o),"'"),value:o}]):((r=this.options)!==null&&r!==void 0&&r.maxLength&&o.length>this.options.maxLength&&a.push({message:"Expected string to be at most ".concat(this.options.maxLength," characters long, got ").concat(o.length),value:o}),(s=this.options)!==null&&s!==void 0&&s.minLength&&o.length<this.options.minLength&&a.push({message:"Expected string to be at least ".concat(this.options.minLength," characters long, got ").concat(o.length),value:o}),(l=this.options)!==null&&l!==void 0&&l.regexp&&!this.options.regexp.test(o)&&a.push({message:this.options.regExpMessage||"Expected string to match reg exp: ".concat(this.options.regexp.toString(),", got '").concat(o,"'"),value:o}),a.length>0?F({},n,a):!1)}},{key:"executeAssert",value:function(n,o){return this.opt&&o===null?{success:!0,data:o}:typeof o=="string"?{success:!0,data:o}:{success:!1,errors:F({},n,[{message:"Expected 'string', got '".concat(K(o),"'"),typeError:!0}])}}},{key:"nullable",value:function(){return new e(this.options,!0,this.isRaw,this.customValidateFunctions,this.renderInput)}},{key:"raw",value:function(){return new e(this.options,this.opt,!0,this.customValidateFunctions,this.renderInput)}},{key:"executeSerialize",value:function(){var n,o,r,s,l;return{type:"string",options:{maxLength:(n=this.options)===null||n===void 0?void 0:n.maxLength,minLength:(o=this.options)===null||o===void 0?void 0:o.minLength,regexp:((r=this.options)===null||r===void 0?void 0:r.regexp)&&{message:this.options.regExpMessage,source:this.options.regexp.source,flags:this.options.regexp.flags},customValidate:this.customValidateFunctions&&((s=this.customValidateFunctions)===null||s===void 0?void 0:s.length)>0},opt:this.opt,raw:this.isRaw,customValidate:this.customValidateFunctions&&((l=this.customValidateFunctions)===null||l===void 0?void 0:l.length)>0}}},{key:"render",value:function(n){return new e(this.options,this.opt,this.isRaw,this.customValidateFunctions,n)}},{key:"executeRender",value:function(n,o){return this.renderInput?this.renderInput.as==="code"?F({},n,{status:"success",data:{layout:this.renderInput.as,language:this.renderInput.language}}):F({},n,{status:"success",data:{layout:this.renderInput.as}}):{}}}])})(se),Xe=function(e){return new De(e)},Ye=(function(t){function e(i){var n,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return Et(this,e),n=oe(this,e),n.items=i,n.opt=o,n.customValidateFunctions=r,n}return re(e,t),Bt(e,[{key:"validate",value:function(n){return new e(this.items,this.opt,[].concat($e(this.customValidateFunctions),[n]))}},{key:"executeValidate",value:function(n,o){var r=!1,s=this.executeCustomValidateFunctions(o,this.customValidateFunctions,{path:n});if(this.opt&&o==null)return s.length>0?F({},n,s):!1;if(o===null)return F({},n,[{message:"Expected 'object', got 'null'"}]);if(K(o)!=="object")return F({},n,[{message:"Expected 'object', got '".concat(K(o),"'")}]);if(Array.isArray(o))return F({},n,[{message:"Expected 'object', got 'array'"}]);var l=te(s),a;try{for(l.s();!(a=l.n()).done;){var p=a.value;r=this.appendValidationError(r,n,p.message,o,p.schemaError)}}catch(y){l.e(y)}finally{l.f()}for(var c=0,h=Object.entries(this.items);c<h.length;c++){var m=Ct(h[c],2),d=m[0],g=m[1],u=ae(n,d);if(!u)r=this.appendValidationError(r,n,"Internal error: could not create path at ".concat(!n&&typeof n=="string"?"<empty string>":n," at key ").concat(d),o);else{var f=g.executeValidate(u,o[d]);f&&r?r=D(D({},f),r):f&&(r=f)}}return r}},{key:"executeAssert",value:function(n,o){if(this.opt&&o===null)return{success:!0,data:o};if(o===null)return{success:!1,errors:F({},n,[{message:"Expected 'object', got 'null'",typeError:!0}])};if(K(o)!=="object")return{success:!1,errors:F({},n,[{message:"Expected 'object', got '".concat(K(o),"'"),typeError:!0}])};if(Array.isArray(o))return{success:!1,errors:F({},n,[{message:"Expected 'object', got 'array'",typeError:!0}])};for(var r=[],s=0,l=Object.keys(this.items);s<l.length;s++){var a=l[s],p=ae(n,a);p?a in o||r.push({message:"Expected key '".concat(a,"' not found in object"),typeError:!0}):r.push({message:"Internal error: could not create path at ".concat(!n&&typeof n=="string"?"<empty string>":n," at key ").concat(a),internalError:!0})}return r.length>0?{success:!1,errors:F({},n,r)}:{success:!0,data:o}}},{key:"nullable",value:function(){return new e(this.items,!0)}},{key:"executeSerialize",value:function(){var n;return{type:"object",items:Object.fromEntries(Object.entries(this.items).map(function(o){var r=Ct(o,2),s=r[0],l=r[1];return[s,l.executeSerialize()]})),opt:this.opt,customValidate:this.customValidateFunctions&&((n=this.customValidateFunctions)===null||n===void 0?void 0:n.length)>0}}},{key:"executeRender",value:function(n,o){var r={};if(o===null)return r;for(var s in this.items){var l=o[s];if(l!=null){var a=Ne(n,s),p=this.items[s].executeRender(a,l);for(var c in p){var h=c;r[h]=p[h]}}}return r}}])})(se),Ze=function(e){return new Ye(e)};Ze({get test(){return Xe()}});var le=(function(t){return t[t.inputBytes=64]="inputBytes",t[t.inputWords=16]="inputWords",t[t.highIndex=14]="highIndex",t[t.lowIndex=15]="lowIndex",t[t.workWords=64]="workWords",t[t.allocBytes=80]="allocBytes",t[t.allocWords=20]="allocWords",t[t.allocTotal=8e3]="allocTotal",t})(le||{});new Int32Array(le.workWords);var Qe=function(e){return e<<24&4278190080|e<<8&16711680|e>>8&65280|e>>24&255},Ue=function(e){return e};Ge();function Ge(){var t=new Uint8Array(new Uint16Array([65279]).buffer);return t[0]===254}var qe={x3d:"application/vnd.hzn-3d-crossword","3gp":"video/3gpp","3g2":"video/3gpp2",mseq:"application/vnd.mseq",pwn:"application/vnd.3m.post-it-notes",plb:"application/vnd.3gpp.pic-bw-large",psb:"application/vnd.3gpp.pic-bw-small",pvb:"application/vnd.3gpp.pic-bw-var",tcap:"application/vnd.3gpp2.tcap","7z":"application/x-7z-compressed",abw:"application/x-abiword",ace:"application/x-ace-compressed",acc:"application/vnd.americandynamics.acc",acu:"application/vnd.acucobol",atc:"application/vnd.acucorp",adp:"audio/adpcm",aab:"application/x-authorware-bin",aam:"application/x-authorware-map",aas:"application/x-authorware-seg",air:"application/vnd.adobe.air-application-installer-package+zip",avif:"image/avif",swf:"application/x-shockwave-flash",fxp:"application/vnd.adobe.fxp",pdf:"application/pdf",ppd:"application/vnd.cups-ppd",dir:"application/x-director",xdp:"application/vnd.adobe.xdp+xml",xfdf:"application/vnd.adobe.xfdf",aac:"audio/x-aac",ahead:"application/vnd.ahead.space",azf:"application/vnd.airzip.filesecure.azf",azs:"application/vnd.airzip.filesecure.azs",azw:"application/vnd.amazon.ebook",ami:"application/vnd.amiga.ami","N/A":"application/andrew-inset",apk:"application/vnd.android.package-archive",cii:"application/vnd.anser-web-certificate-issue-initiation",fti:"application/vnd.anser-web-funds-transfer-initiation",atx:"application/vnd.antix.game-component",dmg:"application/x-apple-diskimage",mpkg:"application/vnd.apple.installer+xml",aw:"application/applixware",mp3:"audio/mpeg",les:"application/vnd.hhe.lesson-player",swi:"application/vnd.aristanetworks.swi",s:"text/x-asm",atomcat:"application/atomcat+xml",atomsvc:"application/atomsvc+xml",atom:"application/atom+xml",ac:"application/pkix-attr-cert",aif:"audio/x-aiff",avi:"video/x-msvideo",aep:"application/vnd.audiograph",dxf:"image/vnd.dxf",dwf:"model/vnd.dwf",par:"text/plain-bas",bcpio:"application/x-bcpio",bin:"application/octet-stream",bmp:"image/bmp",torrent:"application/x-bittorrent",cod:"application/vnd.rim.cod",mpm:"application/vnd.blueice.multipass",bmi:"application/vnd.bmi",sh:"application/x-sh",btif:"image/prs.btif",rep:"application/vnd.businessobjects",bz:"application/x-bzip",bz2:"application/x-bzip2",csh:"application/x-csh",c:"text/x-c",cdxml:"application/vnd.chemdraw+xml",css:"text/css",cdx:"chemical/x-cdx",cml:"chemical/x-cml",csml:"chemical/x-csml",cdbcmsg:"application/vnd.contact.cmsg",cla:"application/vnd.claymore",c4g:"application/vnd.clonk.c4group",sub:"image/vnd.dvb.subtitle",cdmia:"application/cdmi-capability",cdmic:"application/cdmi-container",cdmid:"application/cdmi-domain",cdmio:"application/cdmi-object",cdmiq:"application/cdmi-queue",c11amc:"application/vnd.cluetrust.cartomobile-config",c11amz:"application/vnd.cluetrust.cartomobile-config-pkg",ras:"image/x-cmu-raster",dae:"model/vnd.collada+xml",csv:"text/csv",cpt:"application/mac-compactpro",wmlc:"application/vnd.wap.wmlc",cgm:"image/cgm",ice:"x-conference/x-cooltalk",cmx:"image/x-cmx",xar:"application/vnd.xara",cmc:"application/vnd.cosmocaller",cpio:"application/x-cpio",clkx:"application/vnd.crick.clicker",clkk:"application/vnd.crick.clicker.keyboard",clkp:"application/vnd.crick.clicker.palette",clkt:"application/vnd.crick.clicker.template",clkw:"application/vnd.crick.clicker.wordbank",wbs:"application/vnd.criticaltools.wbs+xml",cryptonote:"application/vnd.rig.cryptonote",cif:"chemical/x-cif",cmdf:"chemical/x-cmdf",cu:"application/cu-seeme",cww:"application/prs.cww",curl:"text/vnd.curl",dcurl:"text/vnd.curl.dcurl",mcurl:"text/vnd.curl.mcurl",scurl:"text/vnd.curl.scurl",car:"application/vnd.curl.car",pcurl:"application/vnd.curl.pcurl",cmp:"application/vnd.yellowriver-custom-menu",dssc:"application/dssc+der",xdssc:"application/dssc+xml",deb:"application/x-debian-package",uva:"audio/vnd.dece.audio",uvi:"image/vnd.dece.graphic",uvh:"video/vnd.dece.hd",uvm:"video/vnd.dece.mobile",uvu:"video/vnd.uvvu.mp4",uvp:"video/vnd.dece.pd",uvs:"video/vnd.dece.sd",uvv:"video/vnd.dece.video",dvi:"application/x-dvi",seed:"application/vnd.fdsn.seed",dtb:"application/x-dtbook+xml",res:"application/x-dtbresource+xml",ait:"application/vnd.dvb.ait",svc:"application/vnd.dvb.service",eol:"audio/vnd.digital-winds",djvu:"image/vnd.djvu",dtd:"application/xml-dtd",mlp:"application/vnd.dolby.mlp",wad:"application/x-doom",dpg:"application/vnd.dpgraph",dra:"audio/vnd.dra",dfac:"application/vnd.dreamfactory",dts:"audio/vnd.dts",dtshd:"audio/vnd.dts.hd",dwg:"image/vnd.dwg",geo:"application/vnd.dynageo",es:"application/ecmascript",mag:"application/vnd.ecowin.chart",mmr:"image/vnd.fujixerox.edmics-mmr",rlc:"image/vnd.fujixerox.edmics-rlc",exi:"application/exi",mgz:"application/vnd.proteus.magazine",epub:"application/epub+zip",eml:"message/rfc822",nml:"application/vnd.enliven",xpr:"application/vnd.is-xpr",xif:"image/vnd.xiff",xfdl:"application/vnd.xfdl",emma:"application/emma+xml",ez2:"application/vnd.ezpix-album",ez3:"application/vnd.ezpix-package",fst:"image/vnd.fst",fvt:"video/vnd.fvt",fbs:"image/vnd.fastbidsheet",fe_launch:"application/vnd.denovo.fcselayout-link",f4v:"video/x-f4v",flv:"video/x-flv",fpx:"image/vnd.fpx",npx:"image/vnd.net-fpx",flx:"text/vnd.fmi.flexstor",fli:"video/x-fli",ftc:"application/vnd.fluxtime.clip",fdf:"application/vnd.fdf",f:"text/x-fortran",mif:"application/vnd.mif",fm:"application/vnd.framemaker",fh:"image/x-freehand",fsc:"application/vnd.fsc.weblaunch",fnc:"application/vnd.frogans.fnc",ltf:"application/vnd.frogans.ltf",ddd:"application/vnd.fujixerox.ddd",xdw:"application/vnd.fujixerox.docuworks",xbd:"application/vnd.fujixerox.docuworks.binder",oas:"application/vnd.fujitsu.oasys",oa2:"application/vnd.fujitsu.oasys2",oa3:"application/vnd.fujitsu.oasys3",fg5:"application/vnd.fujitsu.oasysgp",bh2:"application/vnd.fujitsu.oasysprs",spl:"application/x-futuresplash",fzs:"application/vnd.fuzzysheet",g3:"image/g3fax",gmx:"application/vnd.gmx",gtw:"model/vnd.gtw",txd:"application/vnd.genomatix.tuxedo",ggb:"application/vnd.geogebra.file",ggt:"application/vnd.geogebra.tool",gdl:"model/vnd.gdl",gex:"application/vnd.geometry-explorer",gxt:"application/vnd.geonext",g2w:"application/vnd.geoplan",g3w:"application/vnd.geospace",gsf:"application/x-font-ghostscript",bdf:"application/x-font-bdf",gtar:"application/x-gtar",texinfo:"application/x-texinfo",gnumeric:"application/x-gnumeric",kml:"application/vnd.google-earth.kml+xml",kmz:"application/vnd.google-earth.kmz",gqf:"application/vnd.grafeq",gif:"image/gif",gv:"text/vnd.graphviz",gac:"application/vnd.groove-account",ghf:"application/vnd.groove-help",gim:"application/vnd.groove-identity-message",grv:"application/vnd.groove-injector",gtm:"application/vnd.groove-tool-message",tpl:"application/vnd.groove-tool-template",vcg:"application/vnd.groove-vcard",h261:"video/h261",h263:"video/h263",h264:"video/h264",hpid:"application/vnd.hp-hpid",hps:"application/vnd.hp-hps",hdf:"application/x-hdf",rip:"audio/vnd.rip",hbci:"application/vnd.hbci",jlt:"application/vnd.hp-jlyt",pcl:"application/vnd.hp-pcl",hpgl:"application/vnd.hp-hpgl",hvs:"application/vnd.yamaha.hv-script",hvd:"application/vnd.yamaha.hv-dic",hvp:"application/vnd.yamaha.hv-voice","sfd-hdstx":"application/vnd.hydrostatix.sof-data",stk:"application/hyperstudio",hal:"application/vnd.hal+xml",html:"text/html",irm:"application/vnd.ibm.rights-management",sc:"application/vnd.ibm.secure-container",ics:"text/calendar",icc:"application/vnd.iccprofile",ico:"image/x-icon",igl:"application/vnd.igloader",ief:"image/ief",ivp:"application/vnd.immervision-ivp",ivu:"application/vnd.immervision-ivu",rif:"application/reginfo+xml","3dml":"text/vnd.in3d.3dml",spot:"text/vnd.in3d.spot",igs:"model/iges",i2g:"application/vnd.intergeo",cdy:"application/vnd.cinderella",xpw:"application/vnd.intercon.formnet",fcs:"application/vnd.isac.fcs",ipfix:"application/ipfix",cer:"application/pkix-cert",pki:"application/pkixcmp",crl:"application/pkix-crl",pkipath:"application/pkix-pkipath",igm:"application/vnd.insors.igm",rcprofile:"application/vnd.ipunplugged.rcprofile",irp:"application/vnd.irepository.package+xml",jad:"text/vnd.sun.j2me.app-descriptor",jar:"application/java-archive",class:"application/java-vm",jnlp:"application/x-java-jnlp-file",ser:"application/java-serialized-object",java:"text/x-java-source,java",js:"application/javascript",json:"application/json",joda:"application/vnd.joost.joda-archive",jpm:"video/jpm",jpeg:"image/jpeg",jpg:"image/jpeg",pjpeg:"image/pjpeg",jpgv:"video/jpeg",ktz:"application/vnd.kahootz",mmd:"application/vnd.chipnuts.karaoke-mmd",karbon:"application/vnd.kde.karbon",chrt:"application/vnd.kde.kchart",kfo:"application/vnd.kde.kformula",flw:"application/vnd.kde.kivio",kon:"application/vnd.kde.kontour",kpr:"application/vnd.kde.kpresenter",ksp:"application/vnd.kde.kspread",kwd:"application/vnd.kde.kword",htke:"application/vnd.kenameaapp",kia:"application/vnd.kidspiration",kne:"application/vnd.kinar",sse:"application/vnd.kodak-descriptor",lasxml:"application/vnd.las.las+xml",latex:"application/x-latex",lbd:"application/vnd.llamagraphics.life-balance.desktop",lbe:"application/vnd.llamagraphics.life-balance.exchange+xml",jam:"application/vnd.jam",123:"application/vnd.lotus-1-2-3",apr:"application/vnd.lotus-approach",pre:"application/vnd.lotus-freelance",nsf:"application/vnd.lotus-notes",org:"application/vnd.lotus-organizer",scm:"application/vnd.lotus-screencam",lwp:"application/vnd.lotus-wordpro",lvp:"audio/vnd.lucent.voice",m3u:"audio/x-mpegurl",m4v:"video/x-m4v",hqx:"application/mac-binhex40",portpkg:"application/vnd.macports.portpkg",mgp:"application/vnd.osgeo.mapguide.package",mrc:"application/marc",mrcx:"application/marcxml+xml",mxf:"application/mxf",nbp:"application/vnd.wolfram.player",ma:"application/mathematica",mathml:"application/mathml+xml",mbox:"application/mbox",mc1:"application/vnd.medcalcdata",mscml:"application/mediaservercontrol+xml",cdkey:"application/vnd.mediastation.cdkey",mwf:"application/vnd.mfer",mfm:"application/vnd.mfmp",msh:"model/mesh",mads:"application/mads+xml",mets:"application/mets+xml",mods:"application/mods+xml",meta4:"application/metalink4+xml",mcd:"application/vnd.mcd",flo:"application/vnd.micrografx.flo",igx:"application/vnd.micrografx.igx",es3:"application/vnd.eszigno3+xml",mdb:"application/x-msaccess",asf:"video/x-ms-asf",exe:"application/x-msdownload",cil:"application/vnd.ms-artgalry",cab:"application/vnd.ms-cab-compressed",ims:"application/vnd.ms-ims",application:"application/x-ms-application",clp:"application/x-msclip",mdi:"image/vnd.ms-modi",eot:"application/vnd.ms-fontobject",xls:"application/vnd.ms-excel",xlam:"application/vnd.ms-excel.addin.macroenabled.12",xlsb:"application/vnd.ms-excel.sheet.binary.macroenabled.12",xltm:"application/vnd.ms-excel.template.macroenabled.12",xlsm:"application/vnd.ms-excel.sheet.macroenabled.12",chm:"application/vnd.ms-htmlhelp",crd:"application/x-mscardfile",lrm:"application/vnd.ms-lrm",mvb:"application/x-msmediaview",mny:"application/x-msmoney",pptx:"application/vnd.openxmlformats-officedocument.presentationml.presentation",sldx:"application/vnd.openxmlformats-officedocument.presentationml.slide",ppsx:"application/vnd.openxmlformats-officedocument.presentationml.slideshow",potx:"application/vnd.openxmlformats-officedocument.presentationml.template",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",dotx:"application/vnd.openxmlformats-officedocument.wordprocessingml.template",obd:"application/x-msbinder",thmx:"application/vnd.ms-officetheme",onetoc:"application/onenote",pya:"audio/vnd.ms-playready.media.pya",pyv:"video/vnd.ms-playready.media.pyv",ppt:"application/vnd.ms-powerpoint",ppam:"application/vnd.ms-powerpoint.addin.macroenabled.12",sldm:"application/vnd.ms-powerpoint.slide.macroenabled.12",pptm:"application/vnd.ms-powerpoint.presentation.macroenabled.12",ppsm:"application/vnd.ms-powerpoint.slideshow.macroenabled.12",potm:"application/vnd.ms-powerpoint.template.macroenabled.12",mpp:"application/vnd.ms-project",pub:"application/x-mspublisher",scd:"application/x-msschedule",xap:"application/x-silverlight-app",stl:"application/vnd.ms-pki.stl",cat:"application/vnd.ms-pki.seccat",vsd:"application/vnd.visio",vsdx:"application/vnd.visio2013",wm:"video/x-ms-wm",wma:"audio/x-ms-wma",wax:"audio/x-ms-wax",wmx:"video/x-ms-wmx",wmd:"application/x-ms-wmd",wpl:"application/vnd.ms-wpl",wmz:"application/x-ms-wmz",wmv:"video/x-ms-wmv",wvx:"video/x-ms-wvx",wmf:"application/x-msmetafile",trm:"application/x-msterminal",doc:"application/msword",docm:"application/vnd.ms-word.document.macroenabled.12",dotm:"application/vnd.ms-word.template.macroenabled.12",wri:"application/x-mswrite",wps:"application/vnd.ms-works",xbap:"application/x-ms-xbap",xps:"application/vnd.ms-xpsdocument",mid:"audio/midi",mpy:"application/vnd.ibm.minipay",afp:"application/vnd.ibm.modcap",rms:"application/vnd.jcp.javame.midlet-rms",tmo:"application/vnd.tmobile-livetv",prc:"application/x-mobipocket-ebook",mbk:"application/vnd.mobius.mbk",dis:"application/vnd.mobius.dis",plc:"application/vnd.mobius.plc",mqy:"application/vnd.mobius.mqy",msl:"application/vnd.mobius.msl",txf:"application/vnd.mobius.txf",daf:"application/vnd.mobius.daf",fly:"text/vnd.fly",mpc:"application/vnd.mophun.certificate",mpn:"application/vnd.mophun.application",mj2:"video/mj2",mpga:"audio/mpeg",mxu:"video/vnd.mpegurl",mpeg:"video/mpeg",m21:"application/mp21",mp4a:"audio/mp4",mp4:"video/mp4",m3u8:"application/vnd.apple.mpegurl",mus:"application/vnd.musician",msty:"application/vnd.muvee.style",mxml:"application/xv+xml",ngdat:"application/vnd.nokia.n-gage.data","n-gage":"application/vnd.nokia.n-gage.symbian.install",ncx:"application/x-dtbncx+xml",nc:"application/x-netcdf",nlu:"application/vnd.neurolanguage.nlu",dna:"application/vnd.dna",nnd:"application/vnd.noblenet-directory",nns:"application/vnd.noblenet-sealer",nnw:"application/vnd.noblenet-web",rpst:"application/vnd.nokia.radio-preset",rpss:"application/vnd.nokia.radio-presets",n3:"text/n3",edm:"application/vnd.novadigm.edm",edx:"application/vnd.novadigm.edx",ext:"application/vnd.novadigm.ext",gph:"application/vnd.flographit",ecelp4800:"audio/vnd.nuera.ecelp4800",ecelp7470:"audio/vnd.nuera.ecelp7470",ecelp9600:"audio/vnd.nuera.ecelp9600",oda:"application/oda",ogx:"application/ogg",oga:"audio/ogg",ogv:"video/ogg",dd2:"application/vnd.oma.dd2+xml",oth:"application/vnd.oasis.opendocument.text-web",opf:"application/oebps-package+xml",qbo:"application/vnd.intu.qbo",oxt:"application/vnd.openofficeorg.extension",osf:"application/vnd.yamaha.openscoreformat",weba:"audio/webm",webm:"video/webm",odc:"application/vnd.oasis.opendocument.chart",otc:"application/vnd.oasis.opendocument.chart-template",odb:"application/vnd.oasis.opendocument.database",odf:"application/vnd.oasis.opendocument.formula",odft:"application/vnd.oasis.opendocument.formula-template",odg:"application/vnd.oasis.opendocument.graphics",otg:"application/vnd.oasis.opendocument.graphics-template",odi:"application/vnd.oasis.opendocument.image",oti:"application/vnd.oasis.opendocument.image-template",odp:"application/vnd.oasis.opendocument.presentation",otp:"application/vnd.oasis.opendocument.presentation-template",ods:"application/vnd.oasis.opendocument.spreadsheet",ots:"application/vnd.oasis.opendocument.spreadsheet-template",odt:"application/vnd.oasis.opendocument.text",odm:"application/vnd.oasis.opendocument.text-master",ott:"application/vnd.oasis.opendocument.text-template",ktx:"image/ktx",sxc:"application/vnd.sun.xml.calc",stc:"application/vnd.sun.xml.calc.template",sxd:"application/vnd.sun.xml.draw",std:"application/vnd.sun.xml.draw.template",sxi:"application/vnd.sun.xml.impress",sti:"application/vnd.sun.xml.impress.template",sxm:"application/vnd.sun.xml.math",sxw:"application/vnd.sun.xml.writer",sxg:"application/vnd.sun.xml.writer.global",stw:"application/vnd.sun.xml.writer.template",otf:"application/x-font-otf",osfpvg:"application/vnd.yamaha.openscoreformat.osfpvg+xml",dp:"application/vnd.osgi.dp",pdb:"application/vnd.palm",p:"text/x-pascal",paw:"application/vnd.pawaafile",pclxl:"application/vnd.hp-pclxl",efif:"application/vnd.picsel",pcx:"image/x-pcx",psd:"image/vnd.adobe.photoshop",prf:"application/pics-rules",pic:"image/x-pict",chat:"application/x-chat",p10:"application/pkcs10",p12:"application/x-pkcs12",p7m:"application/pkcs7-mime",p7s:"application/pkcs7-signature",p7r:"application/x-pkcs7-certreqresp",p7b:"application/x-pkcs7-certificates",p8:"application/pkcs8",plf:"application/vnd.pocketlearn",pnm:"image/x-portable-anymap",pbm:"image/x-portable-bitmap",pcf:"application/x-font-pcf",pfr:"application/font-tdpfr",pgn:"application/x-chess-pgn",pgm:"image/x-portable-graymap",png:"image/png",ppm:"image/x-portable-pixmap",pskcxml:"application/pskc+xml",pml:"application/vnd.ctc-posml",ai:"application/postscript",pfa:"application/x-font-type1",pbd:"application/vnd.powerbuilder6",pgp:"application/pgp-signature",box:"application/vnd.previewsystems.box",ptid:"application/vnd.pvi.ptid1",pls:"application/pls+xml",str:"application/vnd.pg.format",ei6:"application/vnd.pg.osasli",dsc:"text/prs.lines.tag",psf:"application/x-font-linux-psf",qps:"application/vnd.publishare-delta-tree",wg:"application/vnd.pmi.widget",qxd:"application/vnd.quark.quarkxpress",esf:"application/vnd.epson.esf",msf:"application/vnd.epson.msf",ssf:"application/vnd.epson.ssf",qam:"application/vnd.epson.quickanime",qfx:"application/vnd.intu.qfx",mov:"video/quicktime",rar:"application/x-rar-compressed",ram:"audio/x-pn-realaudio",rmp:"audio/x-pn-realaudio-plugin",rsd:"application/rsd+xml",rm:"application/vnd.rn-realmedia",bed:"application/vnd.realvnc.bed",mxl:"application/vnd.recordare.musicxml",musicxml:"application/vnd.recordare.musicxml+xml",rnc:"application/relax-ng-compact-syntax",rdz:"application/vnd.data-vision.rdz",rdf:"application/rdf+xml",rp9:"application/vnd.cloanto.rp9",jisp:"application/vnd.jisp",rtf:"application/rtf",rtx:"text/richtext",link66:"application/vnd.route66.link66+xml",rss:"application/rss+xml",shf:"application/shf+xml",st:"application/vnd.sailingtracker.track",svg:"image/svg+xml",sus:"application/vnd.sus-calendar",sru:"application/sru+xml",setpay:"application/set-payment-initiation",setreg:"application/set-registration-initiation",sema:"application/vnd.sema",semd:"application/vnd.semd",semf:"application/vnd.semf",see:"application/vnd.seemail",snf:"application/x-font-snf",spq:"application/scvp-vp-request",spp:"application/scvp-vp-response",scq:"application/scvp-cv-request",scs:"application/scvp-cv-response",sdp:"application/sdp",etx:"text/x-setext",movie:"video/x-sgi-movie",ifm:"application/vnd.shana.informed.formdata",itp:"application/vnd.shana.informed.formtemplate",iif:"application/vnd.shana.informed.interchange",ipk:"application/vnd.shana.informed.package",tfi:"application/thraud+xml",shar:"application/x-shar",rgb:"image/x-rgb",slt:"application/vnd.epson.salt",aso:"application/vnd.accpac.simply.aso",imp:"application/vnd.accpac.simply.imp",twd:"application/vnd.simtech-mindmapper",csp:"application/vnd.commonspace",saf:"application/vnd.yamaha.smaf-audio",mmf:"application/vnd.smaf",spf:"application/vnd.yamaha.smaf-phrase",teacher:"application/vnd.smart.teacher",svd:"application/vnd.svd",rq:"application/sparql-query",srx:"application/sparql-results+xml",gram:"application/srgs",grxml:"application/srgs+xml",ssml:"application/ssml+xml",skp:"application/vnd.koan",sgml:"text/sgml",sdc:"application/vnd.stardivision.calc",sda:"application/vnd.stardivision.draw",sdd:"application/vnd.stardivision.impress",smf:"application/vnd.stardivision.math",sdw:"application/vnd.stardivision.writer",sgl:"application/vnd.stardivision.writer-global",sm:"application/vnd.stepmania.stepchart",sit:"application/x-stuffit",sitx:"application/x-stuffitx",sdkm:"application/vnd.solent.sdkm+xml",xo:"application/vnd.olpc-sugar",au:"audio/basic",wqd:"application/vnd.wqd",sis:"application/vnd.symbian.install",smi:"application/smil+xml",xsm:"application/vnd.syncml+xml",bdm:"application/vnd.syncml.dm+wbxml",xdm:"application/vnd.syncml.dm+xml",sv4cpio:"application/x-sv4cpio",sv4crc:"application/x-sv4crc",sbml:"application/sbml+xml",tsv:"text/tab-separated-values",tiff:"image/tiff",tao:"application/vnd.tao.intent-module-archive",tar:"application/x-tar",tcl:"application/x-tcl",tex:"application/x-tex",tfm:"application/x-tex-tfm",tei:"application/tei+xml",txt:"text/plain",dxp:"application/vnd.spotfire.dxp",sfs:"application/vnd.spotfire.sfs",tsd:"application/timestamped-data",tpt:"application/vnd.trid.tpt",mxs:"application/vnd.triscape.mxs",t:"text/troff",tra:"application/vnd.trueapp",ttf:"application/x-font-ttf",ttl:"text/turtle",umj:"application/vnd.umajin",uoml:"application/vnd.uoml+xml",unityweb:"application/vnd.unity",ufd:"application/vnd.ufdl",uri:"text/uri-list",utz:"application/vnd.uiq.theme",ustar:"application/x-ustar",uu:"text/x-uuencode",vcs:"text/x-vcalendar",vcf:"text/x-vcard",vcd:"application/x-cdlink",vsf:"application/vnd.vsf",wrl:"model/vrml",vcx:"application/vnd.vcx",mts:"model/vnd.mts",vtu:"model/vnd.vtu",vis:"application/vnd.visionary",viv:"video/vnd.vivo",ccxml:"application/ccxml+xml,",vxml:"application/voicexml+xml",src:"application/x-wais-source",wbxml:"application/vnd.wap.wbxml",wbmp:"image/vnd.wap.wbmp",wav:"audio/x-wav",davmount:"application/davmount+xml",woff:"application/x-font-woff",wspolicy:"application/wspolicy+xml",webp:"image/webp",wtb:"application/vnd.webturbo",wgt:"application/widget",hlp:"application/winhlp",wml:"text/vnd.wap.wml",wmls:"text/vnd.wap.wmlscript",wmlsc:"application/vnd.wap.wmlscriptc",wpd:"application/vnd.wordperfect",stf:"application/vnd.wt.stf",wsdl:"application/wsdl+xml",xbm:"image/x-xbitmap",xpm:"image/x-xpixmap",xwd:"image/x-xwindowdump",der:"application/x-x509-ca-cert",fig:"application/x-xfig",xhtml:"application/xhtml+xml",xml:"application/xml",xdf:"application/xcap-diff+xml",xenc:"application/xenc+xml",xer:"application/patch-ops-error+xml",rl:"application/resource-lists+xml",rs:"application/rls-services+xml",rld:"application/resource-lists-diff+xml",xslt:"application/xslt+xml",xop:"application/xop+xml",xpi:"application/x-xpinstall",xspf:"application/xspf+xml",xul:"application/vnd.mozilla.xul+xml",xyz:"chemical/x-xyz",yaml:"text/yaml",yang:"application/yang",yin:"application/yin+xml",zir:"application/vnd.zul",zip:"application/zip",zmm:"application/vnd.handheld-entertainment+xml",zaz:"application/vnd.zzazz.deck+xml"};Object.fromEntries(Object.entries(qe).map(function(t){var e=Ct(t,2),i=e[0],n=e[1];return[n,i]}));var Ft="?p=",gt={VERSION:{core:(function(){try{return require("../package.json").version}catch{return null}})()},ModuleFilePathSep:Ft},x;function B(t,e,i){const n=typeof i,o=typeof t;if(n!=="undefined"){if(o!=="undefined"){if(i){if(o==="function"&&n===o)return function(l){return t(i(l))};if(e=t.constructor,e===i.constructor){if(e===Array)return i.concat(t);if(e===Map){var r=new Map(i);for(var s of t)r.set(s[0],s[1]);return r}if(e===Set){s=new Set(i);for(r of t.values())s.add(r);return s}}}return t}return i}return o==="undefined"?e:t}function tt(t,e){return typeof t>"u"?e:t}function I(){return Object.create(null)}function L(t){return typeof t=="string"}function lt(t){return typeof t=="object"}function pt(t,e){if(L(e))t=t[e];else for(let i=0;t&&i<e.length;i++)t=t[e[i]];return t}const ti=/[^\p{L}\p{N}]+/u,ei=/(\d{3})/g,ii=/(\D)(\d{3})/g,ni=/(\d{3})(\D)/g,pe=/[\u0300-\u036f]/g;function ct(t={}){if(!this||this.constructor!==ct)return new ct(...arguments);if(arguments.length)for(t=0;t<arguments.length;t++)this.assign(arguments[t]);else this.assign(t)}x=ct.prototype,x.assign=function(t){this.normalize=B(t.normalize,!0,this.normalize);let e=t.include,i=e||t.exclude||t.split,n;if(i||i===""){if(typeof i=="object"&&i.constructor!==RegExp){let o="";n=!e,e||(o+="\\p{Z}"),i.letter&&(o+="\\p{L}"),i.number&&(o+="\\p{N}",n=!!e),i.symbol&&(o+="\\p{S}"),i.punctuation&&(o+="\\p{P}"),i.control&&(o+="\\p{C}"),(i=i.char)&&(o+=typeof i=="object"?i.join(""):i);try{this.split=new RegExp("["+(e?"^":"")+o+"]+","u")}catch{this.split=/\s+/}}else this.split=i,n=i===!1||"a1a".split(i).length<2;this.numeric=B(t.numeric,n)}else{try{this.split=B(this.split,ti)}catch{this.split=/\s+/}this.numeric=B(t.numeric,B(this.numeric,!0))}if(this.prepare=B(t.prepare,null,this.prepare),this.finalize=B(t.finalize,null,this.finalize),i=t.filter,this.filter=typeof i=="function"?i:B(i&&new Set(i),null,this.filter),this.dedupe=B(t.dedupe,!0,this.dedupe),this.matcher=B((i=t.matcher)&&new Map(i),null,this.matcher),this.mapper=B((i=t.mapper)&&new Map(i),null,this.mapper),this.stemmer=B((i=t.stemmer)&&new Map(i),null,this.stemmer),this.replacer=B(t.replacer,null,this.replacer),this.minlength=B(t.minlength,1,this.minlength),this.maxlength=B(t.maxlength,1024,this.maxlength),this.rtl=B(t.rtl,!1,this.rtl),(this.cache=i=B(t.cache,!0,this.cache))&&(this.F=null,this.L=typeof i=="number"?i:2e5,this.B=new Map,this.D=new Map,this.I=this.H=128),this.h="",this.J=null,this.A="",this.K=null,this.matcher)for(const o of this.matcher.keys())this.h+=(this.h?"|":"")+o;if(this.stemmer)for(const o of this.stemmer.keys())this.A+=(this.A?"|":"")+o;return this},x.addStemmer=function(t,e){return this.stemmer||(this.stemmer=new Map),this.stemmer.set(t,e),this.A+=(this.A?"|":"")+t,this.K=null,this.cache&&Q(this),this},x.addFilter=function(t){return typeof t=="function"?this.filter=t:(this.filter||(this.filter=new Set),this.filter.add(t)),this.cache&&Q(this),this},x.addMapper=function(t,e){return typeof t=="object"?this.addReplacer(t,e):t.length>1?this.addMatcher(t,e):(this.mapper||(this.mapper=new Map),this.mapper.set(t,e),this.cache&&Q(this),this)},x.addMatcher=function(t,e){return typeof t=="object"?this.addReplacer(t,e):t.length<2&&(this.dedupe||this.mapper)?this.addMapper(t,e):(this.matcher||(this.matcher=new Map),this.matcher.set(t,e),this.h+=(this.h?"|":"")+t,this.J=null,this.cache&&Q(this),this)},x.addReplacer=function(t,e){return typeof t=="string"?this.addMatcher(t,e):(this.replacer||(this.replacer=[]),this.replacer.push(t,e),this.cache&&Q(this),this)},x.encode=function(t,e){if(this.cache&&t.length<=this.H)if(this.F){if(this.B.has(t))return this.B.get(t)}else this.F=setTimeout(Q,50,this);this.normalize&&(typeof this.normalize=="function"?t=this.normalize(t):t=pe?t.normalize("NFKD").replace(pe,"").toLowerCase():t.toLowerCase()),this.prepare&&(t=this.prepare(t)),this.numeric&&t.length>3&&(t=t.replace(ii,"$1 $2").replace(ni,"$1 $2").replace(ei,"$1 "));const i=!(this.dedupe||this.mapper||this.filter||this.matcher||this.stemmer||this.replacer);let n=[],o=I(),r,s,l=this.split||this.split===""?t.split(this.split):[t];for(let p=0,c,h;p<l.length;p++)if((c=h=l[p])&&!(c.length<this.minlength||c.length>this.maxlength)){if(e){if(o[c])continue;o[c]=1}else{if(r===c)continue;r=c}if(i)n.push(c);else if(!this.filter||(typeof this.filter=="function"?this.filter(c):!this.filter.has(c))){if(this.cache&&c.length<=this.I)if(this.F){var a=this.D.get(c);if(a||a===""){a&&n.push(a);continue}}else this.F=setTimeout(Q,50,this);if(this.stemmer){this.K||(this.K=new RegExp("(?!^)("+this.A+")$"));let m;for(;m!==c&&c.length>2;)m=c,c=c.replace(this.K,d=>this.stemmer.get(d))}if(c&&(this.mapper||this.dedupe&&c.length>1)){a="";for(let m=0,d="",g,u;m<c.length;m++)g=c.charAt(m),g===d&&this.dedupe||((u=this.mapper&&this.mapper.get(g))||u===""?u===d&&this.dedupe||!(d=u)||(a+=u):a+=d=g);c=a}if(this.matcher&&c.length>1&&(this.J||(this.J=new RegExp("("+this.h+")","g")),c=c.replace(this.J,m=>this.matcher.get(m))),c&&this.replacer)for(a=0;c&&a<this.replacer.length;a+=2)c=c.replace(this.replacer[a],this.replacer[a+1]);if(this.cache&&h.length<=this.I&&(this.D.set(h,c),this.D.size>this.L&&(this.D.clear(),this.I=this.I/1.1|0)),c){if(c!==h)if(e){if(o[c])continue;o[c]=1}else{if(s===c)continue;s=c}n.push(c)}}}return this.finalize&&(n=this.finalize(n)||n),this.cache&&t.length<=this.H&&(this.B.set(t,n),this.B.size>this.L&&(this.B.clear(),this.H=this.H/1.1|0)),n};function Q(t){t.F=null,t.B.clear(),t.D.clear()}function Rt(t,e,i){i||(e||typeof t!="object"?typeof e=="object"&&(i=e,e=0):i=t),i&&(t=i.query||t,e=i.limit||e);let n=""+(e||0);i&&(n+=(i.offset||0)+!!i.context+!!i.suggest+(i.resolve!==!1)+(i.resolution||this.resolution)+(i.boost||0)),t=(""+t).toLowerCase(),this.cache||(this.cache=new U);let o=this.cache.get(t+n);if(!o){const r=i&&i.cache;r&&(i.cache=!1),o=this.search(t,e,i),r&&(i.cache=r),this.cache.set(t+n,o)}return o}function U(t){this.limit=t&&t!==!0?t:1e3,this.cache=new Map,this.h=""}U.prototype.set=function(t,e){this.cache.set(this.h=t,e),this.cache.size>this.limit&&this.cache.delete(this.cache.keys().next().value)},U.prototype.get=function(t){const e=this.cache.get(t);return e&&this.h!==t&&(this.cache.delete(t),this.cache.set(this.h=t,e)),e},U.prototype.remove=function(t){for(const e of this.cache){const i=e[0];e[1].includes(t)&&this.cache.delete(i)}},U.prototype.clear=function(){this.cache.clear(),this.h=""};const ce={normalize:!1,numeric:!1,dedupe:!1},vt={},Tt=new Map([["b","p"],["v","f"],["w","f"],["z","s"],["x","s"],["d","t"],["n","m"],["c","k"],["g","k"],["j","k"],["q","k"],["i","e"],["y","e"],["u","o"]]),he=new Map([["ae","a"],["oe","o"],["sh","s"],["kh","k"],["th","t"],["ph","f"],["pf","f"]]),ue=[/([^aeo])h(.)/g,"$1$2",/([aeo])h([^aeo]|$)/g,"$1$2",/(.)\1+/g,"$1"],fe={a:"",e:"",i:"",o:"",u:"",y:"",b:1,f:1,p:1,v:1,c:2,g:2,j:2,k:2,q:2,s:2,x:2,z:2,ß:2,d:3,t:3,l:4,m:5,n:5,r:6};var de={Exact:ce,Default:vt,Normalize:vt,LatinBalance:{mapper:Tt},LatinAdvanced:{mapper:Tt,matcher:he,replacer:ue},LatinExtra:{mapper:Tt,replacer:ue.concat([/(?!^)[aeo]/g,""]),matcher:he},LatinSoundex:{dedupe:!1,include:{letter:!0},finalize:function(t){for(let i=0;i<t.length;i++){var e=t[i];let n=e.charAt(0),o=fe[n];for(let r=1,s;r<e.length&&(s=e.charAt(r),s==="h"||s==="w"||!(s=fe[s])||s===o||(n+=s,o=s,n.length!==4));r++);t[i]=n}}},CJK:{split:""},LatinExact:ce,LatinDefault:vt,LatinSimple:vt};function me(t,e,i,n){let o=[];for(let r=0,s;r<t.index.length;r++)if(s=t.index[r],e>=s.length)e-=s.length;else{e=s[n?"splice":"slice"](e,i);const l=e.length;if(l&&(o=o.length?o.concat(e):e,i-=l,n&&(t.length-=l),!i))break;e=0}return o}function et(t){if(!this||this.constructor!==et)return new et(t);this.index=t?[t]:[],this.length=t?t.length:0;const e=this;return new Proxy([],{get(i,n){if(n==="length")return e.length;if(n==="push")return function(o){e.index[e.index.length-1].push(o),e.length++};if(n==="pop")return function(){if(e.length)return e.length--,e.index[e.index.length-1].pop()};if(n==="indexOf")return function(o){let r=0;for(let s=0,l,a;s<e.index.length;s++){if(l=e.index[s],a=l.indexOf(o),a>=0)return r+a;r+=l.length}return-1};if(n==="includes")return function(o){for(let r=0;r<e.index.length;r++)if(e.index[r].includes(o))return!0;return!1};if(n==="slice")return function(o,r){return me(e,o||0,r||e.length,!1)};if(n==="splice")return function(o,r){return me(e,o||0,r||e.length,!0)};if(n==="constructor")return Array;if(typeof n!="symbol")return(i=e.index[n/2**31|0])&&i[n]},set(i,n,o){return i=n/2**31|0,(e.index[i]||(e.index[i]=[]))[n]=o,e.length++,!0}})}et.prototype.clear=function(){this.index.length=0},et.prototype.push=function(){};function $(t=8){if(!this||this.constructor!==$)return new $(t);this.index=I(),this.h=[],this.size=0,t>32?(this.B=ve,this.A=BigInt(t)):(this.B=ge,this.A=t)}$.prototype.get=function(t){const e=this.index[this.B(t)];return e&&e.get(t)},$.prototype.set=function(t,e){var i=this.B(t);let n=this.index[i];n?(i=n.size,n.set(t,e),(i-=n.size)&&this.size++):(this.index[i]=n=new Map([[t,e]]),this.h.push(n),this.size++)};function W(t=8){if(!this||this.constructor!==W)return new W(t);this.index=I(),this.h=[],this.size=0,t>32?(this.B=ve,this.A=BigInt(t)):(this.B=ge,this.A=t)}W.prototype.add=function(t){var e=this.B(t);let i=this.index[e];i?(e=i.size,i.add(t),(e-=i.size)&&this.size++):(this.index[e]=i=new Set([t]),this.h.push(i),this.size++)},x=$.prototype,x.has=W.prototype.has=function(t){const e=this.index[this.B(t)];return e&&e.has(t)},x.delete=W.prototype.delete=function(t){const e=this.index[this.B(t)];e&&e.delete(t)&&this.size--},x.clear=W.prototype.clear=function(){this.index=I(),this.h=[],this.size=0},x.values=W.prototype.values=function*(){for(let t=0;t<this.h.length;t++)for(let e of this.h[t].values())yield e},x.keys=W.prototype.keys=function*(){for(let t=0;t<this.h.length;t++)for(let e of this.h[t].keys())yield e},x.entries=W.prototype.entries=function*(){for(let t=0;t<this.h.length;t++)for(let e of this.h[t].entries())yield e};function ge(t){let e=2**this.A-1;if(typeof t=="number")return t&e;let i=0,n=this.A+1;for(let o=0;o<t.length;o++)i=(i*n^t.charCodeAt(o))&e;return this.A===32?i+2**31:i}function ve(t){let e=BigInt(2)**this.A-BigInt(1);var i=typeof t;if(i==="bigint")return t&e;if(i==="number")return BigInt(t)&e;i=BigInt(0);let n=this.A+BigInt(1);for(let o=0;o<t.length;o++)i=(i*n^BigInt(t.charCodeAt(o)))&e;return i}let it,ht;async function oi(t){t=t.data;var e=t.task;const i=t.id;let n=t.args;if(e==="init")ht=t.options||{},(e=t.factory)?(Function("return "+e)()(self),it=new self.FlexSearch.Index(ht),delete self.FlexSearch):it=new J(ht),postMessage({id:i});else{let o;e==="export"&&(n[1]?(n[0]=ht.export,n[2]=0,n[3]=1):n=null),e==="import"?n[0]&&(t=await ht.import.call(it,n[0]),it.import(n[0],t)):((o=n&&it[e].apply(it,n))&&o.then&&(o=await o),o&&o.await&&(o=await o.await),e==="search"&&o.result&&(o=o.result)),postMessage(e==="search"?{id:i,msg:o}:{id:i})}}function Lt(t){nt.call(t,"add"),nt.call(t,"append"),nt.call(t,"search"),nt.call(t,"update"),nt.call(t,"remove"),nt.call(t,"searchCache")}let $t,xe,xt;function ri(){$t=xt=0}function nt(t){this[t+"Async"]=function(){const e=arguments;var i=e[e.length-1];let n;if(typeof i=="function"&&(n=i,delete e[e.length-1]),$t?xt||(xt=Date.now()-xe>=this.priority*this.priority*3):($t=setTimeout(ri,0),xe=Date.now()),xt){const r=this;return new Promise(s=>{setTimeout(function(){s(r[t+"Async"].apply(r,e))},0)})}const o=this[t].apply(this,e);return i=o.then?o:new Promise(r=>r(o)),n&&i.then(n),i}}let X=0;function ot(t={},e){function i(l){function a(p){p=p.data||p;const c=p.id,h=c&&r.h[c];h&&(h(p.msg),delete r.h[c])}if(this.worker=l,this.h=I(),this.worker)return o?this.worker.on("message",a):this.worker.onmessage=a,t.config?new Promise(function(p){X>1e9&&(X=0),r.h[++X]=function(){p(r)},r.worker.postMessage({id:X,task:"init",factory:n,options:t})}):(this.priority=t.priority||4,this.encoder=e||null,this.worker.postMessage({task:"init",factory:n,options:t}),this)}if(!this||this.constructor!==ot)return new ot(t);let n=typeof self<"u"?self._factory:typeof window<"u"?window._factory:null;n&&(n=n.toString());const o=typeof window>"u",r=this,s=si(n,o,t.worker);return s.then?s.then(function(l){return i.call(r,l)}):i.call(this,s)}Y("add"),Y("append"),Y("search"),Y("update"),Y("remove"),Y("clear"),Y("export"),Y("import"),ot.prototype.searchCache=Rt,Lt(ot.prototype);function Y(t){ot.prototype[t]=function(){const e=this,i=[].slice.call(arguments);var n=i[i.length-1];let o;return typeof n=="function"&&(o=n,i.pop()),n=new Promise(function(r){t==="export"&&typeof i[0]=="function"&&(i[0]=null),X>1e9&&(X=0),e.h[++X]=r,e.worker.postMessage({task:t,id:X,args:i})}),o?(n.then(o),this):n}}function si(t,e,i){return e?typeof module<"u"?new(require("worker_threads")).Worker(__dirname+"/worker/node.js"):Promise.resolve().then(function(){return bi}).then(function(n){return new n.Worker("undefined/node/node.mjs")}):t?new window.Worker(URL.createObjectURL(new Blob(["onmessage="+oi.toString()],{type:"text/javascript"}))):new window.Worker(typeof i=="string"?i:self.location.href.replace("/worker.js","/worker/worker.js").replace("flexsearch.bundle.module.min.js","module/worker/worker.js").replace("flexsearch.bundle.module.min.mjs","module/worker/worker.js"),{type:"module"})}st.prototype.add=function(t,e,i){if(lt(t)&&(e=t,t=pt(e,this.key)),e&&(t||t===0)){if(!i&&this.reg.has(t))return this.update(t,e);for(let l=0,a;l<this.field.length;l++){a=this.B[l];var n=this.index.get(this.field[l]);if(typeof a=="function"){var o=a(e);o&&n.add(t,o,i,!0)}else o=a.G,(!o||o(e))&&(a.constructor===String?a=[""+a]:L(a)&&(a=[a]),Jt(e,a,this.D,0,n,t,a[0],i))}if(this.tag)for(n=0;n<this.A.length;n++){var r=this.A[n];o=this.tag.get(this.F[n]);let l=I();if(typeof r=="function"){if(r=r(e),!r)continue}else{var s=r.G;if(s&&!s(e))continue;r.constructor===String&&(r=""+r),r=pt(e,r)}if(o&&r){L(r)&&(r=[r]);for(let a=0,p,c;a<r.length;a++)if(p=r[a],!l[p]&&(l[p]=1,(s=o.get(p))?c=s:o.set(p,c=[]),!i||!c.includes(t))){if(c.length===2**31-1){if(s=new et(c),this.fastupdate)for(let h of this.reg.values())h.includes(c)&&(h[h.indexOf(c)]=s);o.set(p,c=s)}c.push(t),this.fastupdate&&((s=this.reg.get(t))?s.push(c):this.reg.set(t,[c]))}}}if(this.store&&(!i||!this.store.has(t))){let l;if(this.h){l=I();for(let a=0,p;a<this.h.length;a++){if(p=this.h[a],(i=p.G)&&!i(e))continue;let c;if(typeof p=="function"){if(c=p(e),!c)continue;p=[p.O]}else if(L(p)||p.constructor===String){l[p]=e[p];continue}Wt(e,l,p,0,p[0],c)}}this.store.set(t,l||e)}this.worker&&(this.fastupdate||this.reg.add(t))}return this};function Wt(t,e,i,n,o,r){if(t=t[o],n===i.length-1)e[o]=r||t;else if(t)if(t.constructor===Array)for(e=e[o]=Array(t.length),o=0;o<t.length;o++)Wt(t,e,i,n,o);else e=e[o]||(e[o]=I()),o=i[++n],Wt(t,e,i,n,o)}function Jt(t,e,i,n,o,r,s,l){if(t=t[s])if(n===e.length-1){if(t.constructor===Array){if(i[n]){for(e=0;e<t.length;e++)o.add(r,t[e],!0,!0);return}t=t.join(" ")}o.add(r,t,l,!0)}else if(t.constructor===Array)for(s=0;s<t.length;s++)Jt(t,e,i,n,o,r,s,l);else s=e[++n],Jt(t,e,i,n,o,r,s,l)}function Kt(t,e,i,n){if(!t.length)return t;if(t.length===1)return t=t[0],t=i||t.length>e?t.slice(i,i+e):t,n?rt.call(this,t):t;let o=[];for(let r=0,s,l;r<t.length;r++)if((s=t[r])&&(l=s.length)){if(i){if(i>=l){i-=l;continue}s=s.slice(i,i+e),l=s.length,i=0}if(l>e&&(s=s.slice(0,e),l=e),!o.length&&l>=e)return n?rt.call(this,s):s;if(o.push(s),e-=l,!e)break}return o=o.length>1?[].concat.apply([],o):o[0],n?rt.call(this,o):o}function yt(t,e,i,n){var o=n[0];if(o[0]&&o[0].query)return t[e].apply(t,o);if(!(e!=="and"&&e!=="not"||t.result.length||t.await||o.suggest))return n.length>1&&(o=n[n.length-1]),(n=o.resolve)?t.await||t.result:t;let r=[],s=0,l=0,a,p,c,h,m;for(e=0;e<n.length;e++)if(o=n[e]){var d=void 0;if(o.constructor===M)d=o.await||o.result;else if(o.then||o.constructor===Array)d=o;else{s=o.limit||0,l=o.offset||0,c=o.suggest,p=o.resolve,a=((h=o.highlight||t.highlight)||o.enrich)&&p,d=o.queue;let g=o.async||d,u=o.index,f=o.query;if(u?t.index||(t.index=u):u=t.index,f||o.tag){const y=o.field||o.pluck;if(y&&(!f||t.query&&!h||(t.query=f,t.field=y,t.highlight=h),u=u.index.get(y)),d&&(m||t.await)){m=1;let v;const k=t.C.length,O=new Promise(function(_){v=_});(function(_,z){O.h=function(){z.index=null,z.resolve=!1;let j=g?_.searchAsync(z):_.search(z);return j.then?j.then(function(w){return t.C[k]=w=w.result||w,v(w),w}):(j=j.result||j,v(j),j)}})(u,Object.assign({},o)),t.C.push(O),r[e]=O;continue}else o.resolve=!1,o.index=null,d=g?u.searchAsync(o):u.search(o),o.resolve=p,o.index=u}else if(o.and)d=wt(o,"and",u);else if(o.or)d=wt(o,"or",u);else if(o.not)d=wt(o,"not",u);else if(o.xor)d=wt(o,"xor",u);else continue}d.await?(m=1,d=d.await):d.then?(m=1,d=d.then(function(g){return g.result||g})):d=d.result||d,r[e]=d}if(m&&!t.await&&(t.await=new Promise(function(g){t.return=g})),m){const g=Promise.all(r).then(function(u){for(let f=0;f<t.C.length;f++)if(t.C[f]===g){t.C[f]=function(){return i.call(t,u,s,l,a,p,c,h)};break}Ht(t)});t.C.push(g)}else if(t.await)t.C.push(function(){return i.call(t,r,s,l,a,p,c,h)});else return i.call(t,r,s,l,a,p,c,h);return p?t.await||t.result:t}function wt(t,e,i){t=t[e];const n=t[0]||t;return n.index||(n.index=i),i=new M(n),t.length>1&&(i=i[e].apply(i,t.slice(1))),i}M.prototype.or=function(){return yt(this,"or",ai,arguments)};function ai(t,e,i,n,o,r,s){return t.length&&(this.result.length&&t.push(this.result),t.length<2?this.result=t[0]:(this.result=ye(t,e,i,!1,this.h),i=0)),o&&(this.await=null),o?this.resolve(e,i,n,s):this}M.prototype.and=function(){return yt(this,"and",li,arguments)};function li(t,e,i,n,o,r,s){if(!r&&!this.result.length)return o?this.result:this;let l;if(t.length)if(this.result.length&&t.unshift(this.result),t.length<2)this.result=t[0];else{let a=0;for(let p=0,c,h;p<t.length;p++)if((c=t[p])&&(h=c.length))a<h&&(a=h);else if(!r){a=0;break}a?(this.result=kt(t,a,e,i,r,this.h,o),l=!0):this.result=[]}else r||(this.result=t);return o&&(this.await=null),o?this.resolve(e,i,n,s,l):this}M.prototype.xor=function(){return yt(this,"xor",pi,arguments)};function pi(t,e,i,n,o,r,s){if(t.length)if(this.result.length&&t.unshift(this.result),t.length<2)this.result=t[0];else{t:{r=i;var l=this.h;const a=[],p=I();let c=0;for(let h=0,m;h<t.length;h++)if(m=t[h]){c<m.length&&(c=m.length);for(let d=0,g;d<m.length;d++)if(g=m[d])for(let u=0,f;u<g.length;u++)f=g[u],p[f]=p[f]?2:1}for(let h=0,m,d=0;h<c;h++)for(let g=0,u;g<t.length;g++)if((u=t[g])&&(m=u[h])){for(let f=0,y;f<m.length;f++)if(y=m[f],p[y]===1)if(r)r--;else if(o){if(a.push(y),a.length===e){t=a;break t}}else{const v=h+(g?l:0);if(a[v]||(a[v]=[]),a[v].push(y),++d===e){t=a;break t}}}t=a}this.result=t,l=!0}else r||(this.result=t);return o&&(this.await=null),o?this.resolve(e,i,n,s,l):this}M.prototype.not=function(){return yt(this,"not",ci,arguments)};function ci(t,e,i,n,o,r,s){if(!r&&!this.result.length)return o?this.result:this;if(t.length&&this.result.length){t:{r=i;var l=[];t=new Set(t.flat().flat());for(let a=0,p,c=0;a<this.result.length;a++)if(p=this.result[a]){for(let h=0,m;h<p.length;h++)if(m=p[h],!t.has(m)){if(r)r--;else if(o){if(l.push(m),l.length===e){t=l;break t}}else if(l[a]||(l[a]=[]),l[a].push(m),++c===e){t=l;break t}}}t=l}this.result=t,l=!0}return o&&(this.await=null),o?this.resolve(e,i,n,s,l):this}function bt(t,e,i,n,o){let r,s,l;typeof o=="string"?(r=o,o=""):r=o.template,s=r.indexOf("$1"),l=r.substring(s+2),s=r.substring(0,s);let a=o&&o.boundary,p=!o||o.clip!==!1,c=o&&o.merge&&l&&s&&new RegExp(l+" "+s,"g");o=o&&o.ellipsis;var h=0;if(typeof o=="object"){var m=o.template;h=m.length-2,o=o.pattern}typeof o!="string"&&(o=o===!1?"":"..."),h&&(o=m.replace("$1",o)),m=o.length-h;let d,g;typeof a=="object"&&(d=a.before,d===0&&(d=-1),g=a.after,g===0&&(g=-1),a=a.total||9e5),h=new Map;for(let Gt=0,q,Ee,ft;Gt<e.length;Gt++){let dt;if(n)dt=e,ft=n;else{var u=e[Gt];if(ft=u.field,!ft)continue;dt=u.result}Ee=i.get(ft),q=Ee.encoder,u=h.get(q),typeof u!="string"&&(u=q.encode(t),h.set(q,u));for(let At=0;At<dt.length;At++){var f=dt[At].doc;if(!f||(f=pt(f,ft),!f))continue;var y=f.trim().split(/\s+/);if(!y.length)continue;f="";var v=[];let Mt=[];for(var k=-1,O=-1,_=0,z=0;z<y.length;z++){var j=y[z],w=q.encode(j);w=w.length>1?w.join(" "):w[0];let b;if(w&&j){for(var S=j.length,P=(q.split?j.replace(q.split,""):j).length-w.length,A="",V=0,R=0;R<u.length;R++){var T=u[R];if(T){var E=T.length;E+=P<0?0:P,V&&E<=V||(T=w.indexOf(T),T>-1&&(A=(T?j.substring(0,T):"")+s+j.substring(T,T+E)+l+(T+E<S?j.substring(T+E):""),V=E,b=!0))}}A&&(a&&(k<0&&(k=f.length+(f?1:0)),O=f.length+(f?1:0)+A.length,_+=S,Mt.push(v.length),v.push({match:A})),f+=(f?" ":"")+A)}if(!b)j=y[z],f+=(f?" ":"")+j,a&&v.push({text:j});else if(a&&_>=a)break}if(_=Mt.length*(r.length-2),d||g||a&&f.length-_>a)if(_=a+_-m*2,z=O-k,d>0&&(z+=d),g>0&&(z+=g),z<=_)y=d?k-(d>0?d:0):k-((_-z)/2|0),v=g?O+(g>0?g:0):y+_,p||(y>0&&f.charAt(y)!==" "&&f.charAt(y-1)!==" "&&(y=f.indexOf(" ",y),y<0&&(y=0)),v<f.length&&f.charAt(v-1)!==" "&&f.charAt(v)!==" "&&(v=f.lastIndexOf(" ",v),v<O?v=O:++v)),f=(y?o:"")+f.substring(y,v)+(v<f.length?o:"");else{for(O=[],k={},_={},z={},j={},w={},A=P=S=0,R=V=1;;){var H=void 0;for(let b=0,C;b<Mt.length;b++){if(C=Mt[b],A)if(P!==A){if(z[b+1])continue;if(C+=A,k[C]){S-=m,_[b+1]=1,z[b+1]=1;continue}if(C>=v.length-1){if(C>=v.length){z[b+1]=1,C>=y.length&&(_[b+1]=1);continue}S-=m}if(f=v[C].text,E=g&&w[b])if(E>0){if(f.length>E)if(z[b+1]=1,p)f=f.substring(0,E);else continue;(E-=f.length)||(E=-1),w[b]=E}else{z[b+1]=1;continue}if(S+f.length+1<=a)f=" "+f,O[b]+=f;else if(p)H=a-S-1,H>0&&(f=" "+f.substring(0,H),O[b]+=f),z[b+1]=1;else{z[b+1]=1;continue}}else{if(z[b])continue;if(C-=P,k[C]){S-=m,z[b]=1,_[b]=1;continue}if(C<=0){if(C<0){z[b]=1,_[b]=1;continue}S-=m}if(f=v[C].text,E=d&&j[b])if(E>0){if(f.length>E)if(z[b]=1,p)f=f.substring(f.length-E);else continue;(E-=f.length)||(E=-1),j[b]=E}else{z[b]=1;continue}if(S+f.length+1<=a)f+=" ",O[b]=f+O[b];else if(p)H=f.length+1-(a-S),H>=0&&H<f.length&&(f=f.substring(H)+" ",O[b]=f+O[b]),z[b]=1;else{z[b]=1;continue}}else{f=v[C].match,d&&(j[b]=d),g&&(w[b]=g),b&&S++;let qt;if(C?!b&&m&&(S+=m):(_[b]=1,z[b]=1),C>=y.length-1||C<v.length-1&&v[C+1].match?qt=1:m&&(S+=m),S-=r.length-2,!b||S+f.length<=a)O[b]=f;else{H=V=R=_[b]=0;break}qt&&(_[b+1]=1,z[b+1]=1)}S+=f.length,H=k[C]=1}if(H)P===A?A++:P++;else{if(P===A?V=0:R=0,!V&&!R)break;V?(P++,A=P):A++}}f="";for(let b=0,C;b<O.length;b++)C=(_[b]?b?" ":"":(b&&!o?" ":"")+o)+O[b],f+=C;o&&!_[O.length]&&(f+=o)}c&&(f=f.replace(c," ")),dt[At].highlight=f}if(n)break}return e}function M(t,e){if(!this||this.constructor!==M)return new M(t,e);let i=0,n,o,r,s,l,a;if(t&&t.index){const p=t;if(e=p.index,i=p.boost||0,o=p.query){r=p.field||p.pluck,s=p.highlight;const c=p.resolve;t=p.async||p.queue,p.resolve=!1,p.index=null,t=t?e.searchAsync(p):e.search(p),p.resolve=c,p.index=e,t=t.result||t}else t=[]}if(t&&t.then){const p=this;t=t.then(function(c){p.C[0]=p.result=c.result||c,Ht(p)}),n=[t],t=[],l=new Promise(function(c){a=c})}this.index=e||null,this.result=t||[],this.h=i,this.C=n||[],this.await=l||null,this.return=a||null,this.highlight=s||null,this.query=o||"",this.field=r||""}x=M.prototype,x.limit=function(t){if(this.await){const e=this;this.C.push(function(){return e.limit(t).result})}else if(this.result.length){const e=[];for(let i=0,n;i<this.result.length;i++)if(n=this.result[i])if(n.length<=t){if(e[i]=n,t-=n.length,!t)break}else{e[i]=n.slice(0,t);break}this.result=e}return this},x.offset=function(t){if(this.await){const e=this;this.C.push(function(){return e.offset(t).result})}else if(this.result.length){const e=[];for(let i=0,n;i<this.result.length;i++)(n=this.result[i])&&(n.length<=t?t-=n.length:(e[i]=n.slice(t),t=0));this.result=e}return this},x.boost=function(t){if(this.await){const e=this;this.C.push(function(){return e.boost(t).result})}else this.h+=t;return this};function Ht(t,e){let i=t.result;var n=t.await;t.await=null;for(let o=0,r;o<t.C.length;o++)if(r=t.C[o]){if(typeof r=="function")i=r(),t.C[o]=i=i.result||i,o--;else if(r.h)i=r.h(),t.C[o]=i=i.result||i,o--;else if(r.then)return t.await=n}return n=t.return,t.C=[],t.return=null,e||n(i),i}x.resolve=function(t,e,i,n,o){let r=this.await?Ht(this,!0):this.result;if(r.then){const s=this;return r.then(function(){return s.resolve(t,e,i,n,o)})}return r.length&&(typeof t=="object"?(n=t.highlight||this.highlight,i=!!n||t.enrich,e=t.offset,t=t.limit):(n=n||this.highlight,i=!!n||i),r=o?i?rt.call(this.index,r):r:Kt.call(this.index,r,t||100,e,i)),this.finalize(r,n)},x.finalize=function(t,e){if(t.then){const n=this;return t.then(function(o){return n.finalize(o,e)})}e&&t.length&&this.query&&(t=bt(this.query,t,this.index.index,this.field,e));const i=this.return;return this.highlight=this.index=this.result=this.C=this.await=this.return=null,this.query=this.field="",i&&i(t),t};function kt(t,e,i,n,o,r,s){const l=t.length;let a=[],p,c;p=I();for(let h=0,m,d,g,u;h<e;h++)for(let f=0;f<l;f++)if(g=t[f],h<g.length&&(m=g[h]))for(let y=0;y<m.length;y++){if(d=m[y],(c=p[d])?p[d]++:(c=0,p[d]=1),u=a[c]||(a[c]=[]),!s){let v=h+(f||!o?0:r||0);u=u[v]||(u[v]=[])}if(u.push(d),s&&i&&c===l-1&&u.length-n===i)return n?u.slice(n):u}if(t=a.length)if(o)a=a.length>1?ye(a,i,n,s,r):(a=a[0])&&i&&a.length>i||n?a.slice(n,i+n):a;else{if(t<l)return[];if(a=a[t-1],i||n)if(s)(a.length>i||n)&&(a=a.slice(n,i+n));else{o=[];for(let h=0,m;h<a.length;h++)if(m=a[h]){if(n&&m.length>n)n-=m.length;else if((i&&m.length>i||n)&&(m=m.slice(n,i+n),i-=m.length,n&&(n-=m.length)),o.push(m),!i)break}a=o}}return a}function ye(t,e,i,n,o){const r=[],s=I();let l;var a=t.length;let p;if(n){for(o=a-1;o>=0;o--)if(p=(n=t[o])&&n.length){for(a=0;a<p;a++)if(l=n[a],!s[l]){if(s[l]=1,i)i--;else if(r.push(l),r.length===e)return r}}}else for(let c=a-1,h,m=0;c>=0;c--){h=t[c];for(let d=0;d<h.length;d++)if(p=(n=h[d])&&n.length){for(let g=0;g<p;g++)if(l=n[g],!s[l])if(s[l]=1,i)i--;else{let u=(d+(c<a-1&&o||0))/(c+1)|0;if((r[u]||(r[u]=[])).push(l),++m===e)return r}}}return r}function hi(t,e,i,n,o){const r=I(),s=[];for(let l=0,a;l<e.length;l++){a=e[l];for(let p=0;p<a.length;p++)r[a[p]]=1}if(o){for(let l=0,a;l<t.length;l++)if(a=t[l],r[a]){if(n)n--;else if(s.push(a),r[a]=0,i&&--i===0)break}}else for(let l=0,a,p;l<t.result.length;l++)for(a=t.result[l],e=0;e<a.length;e++)p=a[e],r[p]&&((s[l]||(s[l]=[])).push(p),r[p]=0);return s}st.prototype.search=function(t,e,i,n){i||(!e&&lt(t)?(i=t,t=""):lt(e)&&(i=e,e=0));let o=[];var r=[];let s,l,a,p,c,h,m=0,d=!0,g;if(i){i.constructor===Array&&(i={index:i}),t=i.query||t,s=i.pluck,l=i.merge,p=i.boost,h=s||i.field||(h=i.index)&&(h.index?null:h);var u=this.tag&&i.tag;a=i.suggest,d=i.resolve!==!1,c=i.cache,g=d&&this.store&&i.highlight;var f=!!g||d&&this.store&&i.enrich;e=i.limit||e;var y=i.offset||0;if(e||(e=d?100:0),u&&(!this.db||!n)){u.constructor!==Array&&(u=[u]);var v=[];for(let j=0,w;j<u.length;j++)if(w=u[j],w.field&&w.tag){var k=w.tag;if(k.constructor===Array)for(var O=0;O<k.length;O++)v.push(w.field,k[O]);else v.push(w.field,k)}else{k=Object.keys(w);for(let S=0,P,A;S<k.length;S++)if(P=k[S],A=w[P],A.constructor===Array)for(O=0;O<A.length;O++)v.push(P,A[O]);else v.push(P,A)}if(u=v,!t){if(r=[],v.length)for(u=0;u<v.length;u+=2){if(this.db){if(n=this.index.get(v[u]),!n)continue;r.push(n=n.db.tag(v[u+1],e,y,f))}else n=ui.call(this,v[u],v[u+1],e,y,f);o.push(d?{field:v[u],tag:v[u+1],result:n}:[n])}if(r.length){const j=this;return Promise.all(r).then(function(w){for(let S=0;S<w.length;S++)d?o[S].result=w[S]:o[S]=w[S];return d?o:new M(o.length>1?kt(o,1,0,0,a,p):o[0],j)})}return d?o:new M(o.length>1?kt(o,1,0,0,a,p):o[0],this)}}d||s||!(h=h||this.field)||(L(h)?s=h:(h.constructor===Array&&h.length===1&&(h=h[0]),s=h.field||h.index)),h&&h.constructor!==Array&&(h=[h])}h||(h=this.field);let _;v=(this.worker||this.db)&&!n&&[];for(let j=0,w,S,P;j<h.length;j++){if(S=h[j],this.db&&this.tag&&!this.B[j])continue;let A;if(L(S)||(A=S,S=A.field,t=A.query||t,e=tt(A.limit,e),y=tt(A.offset,y),a=tt(A.suggest,a),g=d&&this.store&&tt(A.highlight,g),f=!!g||d&&this.store&&tt(A.enrich,f),c=tt(A.cache,c)),n)w=n[j];else{k=A||i||{},O=k.enrich;var z=this.index.get(S);if(u&&(this.db&&(k.tag=u,k.field=h,_=z.db.support_tag_search),!_&&O&&(k.enrich=!1),_||(k.limit=0,k.offset=0)),w=c?z.searchCache(t,u&&!_?0:e,k):z.search(t,u&&!_?0:e,k),u&&!_&&(k.limit=e,k.offset=y),O&&(k.enrich=O),v){v[j]=w;continue}}if(P=(w=w.result||w)&&w.length,u&&P){if(k=[],O=0,this.db&&n){if(!_)for(z=h.length;z<n.length;z++){let V=n[z];if(V&&V.length)O++,k.push(V);else if(!a)return d?o:new M(o,this)}}else for(let V=0,R,T;V<u.length;V+=2){if(R=this.tag.get(u[V]),!R){if(a)continue;return d?o:new M(o,this)}if(T=(R=R&&R.get(u[V+1]))&&R.length)O++,k.push(R);else if(!a)return d?o:new M(o,this)}if(O){if(w=hi(w,k,e,y,d),P=w.length,!P&&!a)return d?w:new M(w,this);O--}}if(P)r[m]=S,o.push(w),m++;else if(h.length===1)return d?o:new M(o,this)}if(v){if(this.db&&u&&u.length&&!_)for(f=0;f<u.length;f+=2){if(r=this.index.get(u[f]),!r){if(a)continue;return d?o:new M(o,this)}v.push(r.db.tag(u[f+1],e,y,!1))}const j=this;return Promise.all(v).then(function(w){return i&&(i.resolve=d),w.length&&(w=j.search(t,e,i,w)),w})}if(!m)return d?o:new M(o,this);if(s&&(!f||!this.store))return o=o[0],d?o:new M(o,this);for(v=[],y=0;y<r.length;y++){if(u=o[y],f&&u.length&&typeof u[0].doc>"u"&&(this.db?v.push(u=this.index.get(this.field[0]).db.enrich(u)):u=rt.call(this,u)),s)return d?g?bt(t,u,this.index,s,g):u:new M(u,this);o[y]={field:r[y],result:u}}if(f&&this.db&&v.length){const j=this;return Promise.all(v).then(function(w){for(let S=0;S<w.length;S++)o[S].result=w[S];return g&&(o=bt(t,o,j.index,s,g)),l?we(o):o})}return g&&(o=bt(t,o,this.index,s,g)),l?we(o):o};function we(t){const e=[],i=I(),n=I();for(let o=0,r,s,l,a,p,c,h;o<t.length;o++){r=t[o],s=r.field,l=r.result;for(let m=0;m<l.length;m++)p=l[m],typeof p!="object"?p={id:a=p}:a=p.id,(c=i[a])?c.push(s):(p.field=i[a]=[s],e.push(p)),(h=p.highlight)&&(c=n[a],c||(n[a]=c={},p.highlight=c),c[s]=h)}return e}function ui(t,e,i,n,o){return t=this.tag.get(t),t?(t=t.get(e),t?(e=t.length-n,e>0&&((i&&e>i||n)&&(t=t.slice(n,n+i)),o&&(t=rt.call(this,t))),t):[]):[]}function rt(t){if(!this||!this.store)return t;if(this.db)return this.index.get(this.field[0]).db.enrich(t);const e=Array(t.length);for(let i=0,n;i<t.length;i++)n=t[i],e[i]={id:n,doc:this.store.get(n)};return e}function st(t){if(!this||this.constructor!==st)return new st(t);const e=t.document||t.doc||t;let i,n;if(this.B=[],this.field=[],this.D=[],this.key=(i=e.key||e.id)&&jt(i,this.D)||"id",(n=t.keystore||0)&&(this.keystore=n),this.fastupdate=!!t.fastupdate,this.reg=!this.fastupdate||t.worker||t.db?n?new W(n):new Set:n?new $(n):new Map,this.h=(i=e.store||null)&&i&&i!==!0&&[],this.store=i?n?new $(n):new Map:null,this.cache=(i=t.cache||null)&&new U(i),t.cache=!1,this.worker=t.worker||!1,this.priority=t.priority||4,this.index=fi.call(this,t,e),this.tag=null,(i=e.tag)&&(typeof i=="string"&&(i=[i]),i.length)){this.tag=new Map,this.A=[],this.F=[];for(let o=0,r,s;o<i.length;o++){if(r=i[o],s=r.field||r,!s)throw Error("The tag field from the document descriptor is undefined.");r.custom?this.A[o]=r.custom:(this.A[o]=jt(s,this.D),r.filter&&(typeof this.A[o]=="string"&&(this.A[o]=new String(this.A[o])),this.A[o].G=r.filter)),this.F[o]=s,this.tag.set(s,new Map)}}if(this.worker){this.fastupdate=!1,t=[];for(const o of this.index.values())o.then&&t.push(o);if(t.length){const o=this;return Promise.all(t).then(function(r){let s=0;for(const l of o.index.entries()){const a=l[0];let p=l[1];p.then&&(p=r[s],o.index.set(a,p),s++)}return o})}}else t.db&&(this.fastupdate=!1,this.mount(t.db))}x=st.prototype,x.mount=function(t){let e=this.field;if(this.tag)for(let r=0,s;r<this.F.length;r++){s=this.F[r];var i=void 0;this.index.set(s,i=new J({},this.reg)),e===this.field&&(e=e.slice(0)),e.push(s),i.tag=this.tag.get(s)}i=[];const n={db:t.db,type:t.type,fastupdate:t.fastupdate};for(let r=0,s,l;r<e.length;r++){n.field=l=e[r],s=this.index.get(l);const a=new t.constructor(t.id,n);a.id=t.id,i[r]=a.mount(s),s.document=!0,r?s.bypass=!0:s.store=this.store}const o=this;return this.db=Promise.all(i).then(function(){o.db=!0})},x.commit=async function(){const t=[];for(const e of this.index.values())t.push(e.commit());await Promise.all(t),this.reg.clear()},x.destroy=function(){const t=[];for(const e of this.index.values())t.push(e.destroy());return Promise.all(t)};function fi(t,e){const i=new Map;let n=e.index||e.field||e;L(n)&&(n=[n]);for(let r=0,s,l;r<n.length;r++){if(s=n[r],L(s)||(l=s,s=s.field),l=lt(l)?Object.assign({},t,l):t,this.worker){var o=void 0;o=(o=l.encoder)&&o.encode?o:new ct(typeof o=="string"?de[o]:o||{}),o=new ot(l,o),i.set(s,o)}this.worker||i.set(s,new J(l,this.reg)),l.custom?this.B[r]=l.custom:(this.B[r]=jt(s,this.D),l.filter&&(typeof this.B[r]=="string"&&(this.B[r]=new String(this.B[r])),this.B[r].G=l.filter)),this.field[r]=s}if(this.h){t=e.store,L(t)&&(t=[t]);for(let r=0,s,l;r<t.length;r++)s=t[r],l=s.field||s,s.custom?(this.h[r]=s.custom,s.custom.O=l):(this.h[r]=jt(l,this.D),s.filter&&(typeof this.h[r]=="string"&&(this.h[r]=new String(this.h[r])),this.h[r].G=s.filter))}return i}function jt(t,e){const i=t.split(":");let n=0;for(let o=0;o<i.length;o++)t=i[o],t[t.length-1]==="]"&&(t=t.substring(0,t.length-2))&&(e[n]=!0),t&&(i[n++]=t);return n<i.length&&(i.length=n),n>1?i:i[0]}x.append=function(t,e){return this.add(t,e,!0)},x.update=function(t,e){return this.remove(t).add(t,e)},x.remove=function(t){lt(t)&&(t=pt(t,this.key));for(var e of this.index.values())e.remove(t,!0);if(this.reg.has(t)){if(this.tag&&!this.fastupdate)for(let i of this.tag.values())for(let n of i){e=n[0];const o=n[1],r=o.indexOf(t);r>-1&&(o.length>1?o.splice(r,1):i.delete(e))}this.store&&this.store.delete(t),this.reg.delete(t)}return this.cache&&this.cache.remove(t),this},x.clear=function(){const t=[];for(const e of this.index.values()){const i=e.clear();i.then&&t.push(i)}if(this.tag)for(const e of this.tag.values())e.clear();return this.store&&this.store.clear(),this.cache&&this.cache.clear(),t.length?Promise.all(t):this},x.contain=function(t){return this.db?this.index.get(this.field[0]).db.has(t):this.reg.has(t)},x.cleanup=function(){for(const t of this.index.values())t.cleanup();return this},x.get=function(t){return this.db?this.index.get(this.field[0]).db.enrich(t).then(function(e){return e[0]&&e[0].doc||null}):this.store.get(t)||null},x.set=function(t,e){return typeof t=="object"&&(e=t,t=pt(e,this.key)),this.store.set(t,e),this},x.searchCache=Rt,x.export=di,x.import=mi,Lt(st.prototype);function Nt(t,e=0){let i=[],n=[];e&&(e=25e4/e*5e3|0);for(const o of t.entries())n.push(o),n.length===e&&(i.push(n),n=[]);return n.length&&i.push(n),i}function Dt(t,e){e||(e=new Map);for(let i=0,n;i<t.length;i++)n=t[i],e.set(n[0],n[1]);return e}function be(t,e=0){let i=[],n=[];e&&(e=25e4/e*1e3|0);for(const o of t.entries())n.push([o[0],Nt(o[1])[0]||[]]),n.length===e&&(i.push(n),n=[]);return n.length&&i.push(n),i}function ke(t,e){e||(e=new Map);for(let i=0,n,o;i<t.length;i++)n=t[i],o=e.get(n[0]),e.set(n[0],Dt(n[1],o));return e}function je(t){let e=[],i=[];for(const n of t.keys())i.push(n),i.length===25e4&&(e.push(i),i=[]);return i.length&&e.push(i),e}function Se(t,e){e||(e=new Set);for(let i=0;i<t.length;i++)e.add(t[i]);return e}function St(t,e,i,n,o,r,s=0){const l=n&&n.constructor===Array;var a=l?n.shift():n;if(!a)return this.export(t,e,o,r+1);if((a=t((e?e+".":"")+(s+1)+"."+i,JSON.stringify(a)))&&a.then){const p=this;return a.then(function(){return St.call(p,t,e,i,l?n:null,o,r,s+1)})}return St.call(this,t,e,i,l?n:null,o,r,s+1)}function di(t,e,i=0,n=0){if(i<this.field.length){const s=this.field[i];if((e=this.index.get(s).export(t,s,i,n=1))&&e.then){const l=this;return e.then(function(){return l.export(t,s,i+1)})}return this.export(t,s,i+1)}let o,r;switch(n){case 0:o="reg",r=je(this.reg),e=null;break;case 1:o="tag",r=this.tag&&be(this.tag,this.reg.size),e=null;break;case 2:o="doc",r=this.store&&Nt(this.store),e=null;break;default:return}return St.call(this,t,e,o,r||null,i,n)}function mi(t,e){var i=t.split(".");i[i.length-1]==="json"&&i.pop();const n=i.length>2?i[0]:"";if(i=i.length>2?i[2]:i[1],this.worker&&n)return this.index.get(n).import(t);if(e){if(typeof e=="string"&&(e=JSON.parse(e)),n)return this.index.get(n).import(i,e);switch(i){case"reg":this.fastupdate=!1,this.reg=Se(e,this.reg);for(let o=0,r;o<this.field.length;o++)r=this.index.get(this.field[o]),r.fastupdate=!1,r.reg=this.reg;if(this.worker){e=[];for(const o of this.index.values())e.push(o.import(t));return Promise.all(e)}break;case"tag":this.tag=ke(e,this.tag);break;case"doc":this.store=Dt(e,this.store)}}}function ze(t,e){let i="";for(const n of t.entries()){t=n[0];const o=n[1];let r="";for(let s=0,l;s<o.length;s++){l=o[s]||[""];let a="";for(let p=0;p<l.length;p++)a+=(a?",":"")+(e==="string"?'"'+l[p]+'"':l[p]);a="["+a+"]",r+=(r?",":"")+a}r='["'+t+'",['+r+"]]",i+=(i?",":"")+r}return i}J.prototype.remove=function(t,e){const i=this.reg.size&&(this.fastupdate?this.reg.get(t):this.reg.has(t));if(i){if(this.fastupdate){for(let n=0,o,r;n<i.length;n++)if((o=i[n])&&(r=o.length))if(o[r-1]===t)o.pop();else{const s=o.indexOf(t);s>=0&&o.splice(s,1)}}else ut(this.map,t),this.depth&&ut(this.ctx,t);e||this.reg.delete(t)}return this.db&&(this.commit_task.push({del:t}),this.M&&Me(this)),this.cache&&this.cache.remove(t),this};function ut(t,e){let i=0;var n=typeof e>"u";if(t.constructor===Array){for(let o=0,r,s,l;o<t.length;o++)if((r=t[o])&&r.length){if(n)return 1;if(s=r.indexOf(e),s>=0){if(r.length>1)return r.splice(s,1),1;if(delete t[o],i)return 1;l=1}else{if(l)return 1;i++}}}else for(let o of t.entries())n=o[0],ut(o[1],e)?i++:t.delete(n);return i}const gi={memory:{resolution:1},performance:{resolution:3,fastupdate:!0,context:{depth:1,resolution:1}},match:{tokenize:"forward"},score:{resolution:9,context:{depth:2,resolution:3}}};J.prototype.add=function(t,e,i,n){if(e&&(t||t===0)){if(!n&&!i&&this.reg.has(t))return this.update(t,e);n=this.depth,e=this.encoder.encode(e,!n);const p=e.length;if(p){const c=I(),h=I(),m=this.resolution;for(let d=0;d<p;d++){let g=e[this.rtl?p-1-d:d];var o=g.length;if(o&&(n||!h[g])){var r=this.score?this.score(e,g,d,null,0):zt(m,p,d),s="";switch(this.tokenize){case"tolerant":if(N(this,h,g,r,t,i),o>2){for(let u=1,f,y,v,k;u<o-1;u++)f=g.charAt(u),y=g.charAt(u+1),v=g.substring(0,u)+y,k=g.substring(u+2),s=v+f+k,N(this,h,s,r,t,i),s=v+k,N(this,h,s,r,t,i);N(this,h,g.substring(0,g.length-1),r,t,i)}break;case"full":if(o>2){for(let u=0,f;u<o;u++)for(r=o;r>u;r--){s=g.substring(u,r),f=this.rtl?o-1-u:u;var l=this.score?this.score(e,g,d,s,f):zt(m,p,d,o,f);N(this,h,s,l,t,i)}break}case"bidirectional":case"reverse":if(o>1){for(l=o-1;l>0;l--){s=g[this.rtl?o-1-l:l]+s;var a=this.score?this.score(e,g,d,s,l):zt(m,p,d,o,l);N(this,h,s,a,t,i)}s=""}case"forward":if(o>1){for(l=0;l<o;l++)s+=g[this.rtl?o-1-l:l],N(this,h,s,r,t,i);break}default:if(N(this,h,g,r,t,i),n&&p>1&&d<p-1)for(o=this.N,s=g,r=Math.min(n+1,this.rtl?d+1:p-d),l=1;l<r;l++){g=e[this.rtl?p-1-d-l:d+l],a=this.bidirectional&&g>s;const u=this.score?this.score(e,s,d,g,l-1):zt(o+(p/2>o?0:1),p,d,r-1,l-1);N(this,c,a?s:g,u,t,i,a?g:s)}}}}this.fastupdate||this.reg.add(t)}}return this.db&&(this.commit_task.push(i?{ins:t}:{del:t}),this.M&&Me(this)),this};function N(t,e,i,n,o,r,s){let l,a;if(!(l=e[i])||s&&!l[s]){if(s?(e=l||(e[i]=I()),e[s]=1,a=t.ctx,(l=a.get(s))?a=l:a.set(s,a=t.keystore?new $(t.keystore):new Map)):(a=t.map,e[i]=1),(l=a.get(i))?a=l:a.set(i,a=l=[]),r){for(let p=0,c;p<l.length;p++)if((c=l[p])&&c.includes(o)){if(p<=n)return;c.splice(c.indexOf(o),1),t.fastupdate&&(e=t.reg.get(o))&&e.splice(e.indexOf(c),1);break}}if(a=a[n]||(a[n]=[]),a.push(o),a.length===2**31-1){if(e=new et(a),t.fastupdate)for(let p of t.reg.values())p.includes(a)&&(p[p.indexOf(a)]=e);l[n]=a=e}t.fastupdate&&((n=t.reg.get(o))?n.push(a):t.reg.set(o,[a]))}}function zt(t,e,i,n,o){return i&&t>1?e+(n||0)<=t?i+(o||0):(t-1)/(e+(n||0))*(i+(o||0))+1|0:0}J.prototype.search=function(t,e,i){if(i||(e||typeof t!="object"?typeof e=="object"&&(i=e,e=0):(i=t,t="")),i&&i.cache)return i.cache=!1,t=this.searchCache(t,e,i),i.cache=!0,t;let n=[],o,r,s,l=0,a,p,c,h,m;i&&(t=i.query||t,e=i.limit||e,l=i.offset||0,r=i.context,s=i.suggest,m=(a=i.resolve)&&i.enrich,c=i.boost,h=i.resolution,p=this.db&&i.tag),typeof a>"u"&&(a=this.resolve),r=this.depth&&r!==!1;let d=this.encoder.encode(t,!r);if(o=d.length,e=e||(a?100:0),o===1)return _e.call(this,d[0],"",e,l,a,m,p);if(o===2&&r&&!s)return _e.call(this,d[1],d[0],e,l,a,m,p);let g=I(),u=0,f;if(r&&(f=d[0],u=1),h||h===0||(h=f?this.N:this.resolution),this.db){if(this.db.search&&(i=this.db.search(this,d,e,l,s,a,m,p),i!==!1))return i;const y=this;return(async function(){for(let v,k;u<o;u++){if((k=d[u])&&!g[k]){if(g[k]=1,v=await Xt(y,k,f,0,0,!1,!1),v=Ae(v,n,s,h)){n=v;break}f&&(s&&v&&n.length||(f=k))}s&&f&&u===o-1&&!n.length&&(h=y.resolution,f="",u=-1,g=I())}return Oe(n,h,e,l,s,c,a)})()}for(let y,v;u<o;u++){if((v=d[u])&&!g[v]){if(g[v]=1,y=Xt(this,v,f,0,0,!1,!1),y=Ae(y,n,s,h)){n=y;break}f&&(s&&y&&n.length||(f=v))}s&&f&&u===o-1&&!n.length&&(h=this.resolution,f="",u=-1,g=I())}return Oe(n,h,e,l,s,c,a)};function Oe(t,e,i,n,o,r,s){let l=t.length,a=t;if(l>1)a=kt(t,e,i,n,o,r,s);else if(l===1)return s?Kt.call(null,t[0],i,n):new M(t[0],this);return s?a:new M(a,this)}function _e(t,e,i,n,o,r,s){return t=Xt(this,t,e,i,n,o,r,s),this.db?t.then(function(l){return o?l||[]:new M(l,this)}):t&&t.length?o?Kt.call(this,t,i,n):new M(t,this):o?[]:new M([],this)}function Ae(t,e,i,n){let o=[];if(t&&t.length){if(t.length<=n){e.push(t);return}for(let r=0,s;r<n;r++)(s=t[r])&&(o[r]=s);if(o.length){e.push(o);return}}if(!i)return o}function Xt(t,e,i,n,o,r,s,l){let a;return i&&(a=t.bidirectional&&e>i)&&(a=i,i=e,e=a),t.db?t.db.get(e,i,n,o,r,s,l):(t=i?(t=t.ctx.get(i))&&t.get(e):t.map.get(e),t)}function J(t,e){if(!this||this.constructor!==J)return new J(t);if(t){var i=L(t)?t:t.preset;i&&(t=Object.assign({},gi[i],t))}else t={};i=t.context;const n=i===!0?{depth:1}:i||{},o=L(t.encoder)?de[t.encoder]:t.encode||t.encoder||{};this.encoder=o.encode?o:typeof o=="object"?new ct(o):{encode:o},this.resolution=t.resolution||9,this.tokenize=i=(i=t.tokenize)&&i!=="default"&&i!=="exact"&&i||"strict",this.depth=i==="strict"&&n.depth||0,this.bidirectional=n.bidirectional!==!1,this.fastupdate=!!t.fastupdate,this.score=t.score||null,(i=t.keystore||0)&&(this.keystore=i),this.map=i?new $(i):new Map,this.ctx=i?new $(i):new Map,this.reg=e||(this.fastupdate?i?new $(i):new Map:i?new W(i):new Set),this.N=n.resolution||3,this.rtl=o.rtl||t.rtl||!1,this.cache=(i=t.cache||null)&&new U(i),this.resolve=t.resolve!==!1,(i=t.db)&&(this.db=this.mount(i)),this.M=t.commit!==!1,this.commit_task=[],this.commit_timer=null,this.priority=t.priority||4}x=J.prototype,x.mount=function(t){return this.commit_timer&&(clearTimeout(this.commit_timer),this.commit_timer=null),t.mount(this)},x.commit=function(){return this.commit_timer&&(clearTimeout(this.commit_timer),this.commit_timer=null),this.db.commit(this)},x.destroy=function(){return this.commit_timer&&(clearTimeout(this.commit_timer),this.commit_timer=null),this.db.destroy()};function Me(t){t.commit_timer||(t.commit_timer=setTimeout(function(){t.commit_timer=null,t.db.commit(t)},1))}x.clear=function(){return this.map.clear(),this.ctx.clear(),this.reg.clear(),this.cache&&this.cache.clear(),this.db?(this.commit_timer&&clearTimeout(this.commit_timer),this.commit_timer=null,this.commit_task=[],this.db.clear()):this},x.append=function(t,e){return this.add(t,e,!0)},x.contain=function(t){return this.db?this.db.has(t):this.reg.has(t)},x.update=function(t,e){const i=this,n=this.remove(t);return n&&n.then?n.then(()=>i.add(t,e)):this.add(t,e)},x.cleanup=function(){return this.fastupdate?(ut(this.map),this.depth&&ut(this.ctx),this):this},x.searchCache=Rt,x.export=function(t,e,i=0,n=0){let o,r;switch(n){case 0:o="reg",r=je(this.reg);break;case 1:o="cfg",r=null;break;case 2:o="map",r=Nt(this.map,this.reg.size);break;case 3:o="ctx",r=be(this.ctx,this.reg.size);break;default:return}return St.call(this,t,e,o,r,i,n)},x.import=function(t,e){if(e)switch(typeof e=="string"&&(e=JSON.parse(e)),t=t.split("."),t[t.length-1]==="json"&&t.pop(),t.length===3&&t.shift(),t=t.length>1?t[1]:t[0],t){case"reg":this.fastupdate=!1,this.reg=Se(e,this.reg);break;case"map":this.map=Dt(e,this.map);break;case"ctx":this.ctx=ke(e,this.ctx)}},x.serialize=function(t=!0){let e="",i="",n="";if(this.reg.size){let r;for(var o of this.reg.keys())r||(r=typeof o),e+=(e?",":"")+(r==="string"?'"'+o+'"':o);e="index.reg=new Set(["+e+"]);",i=ze(this.map,r),i="index.map=new Map(["+i+"]);";for(const s of this.ctx.entries()){o=s[0];let l=ze(s[1],r);l="new Map(["+l+"])",l='["'+o+'",'+l+"]",n+=(n?",":"")+l}n="index.ctx=new Map(["+n+"]);"}return t?"function inject(index){"+e+i+n+"}":e+i+n},Lt(J.prototype);const Ie=typeof window<"u"&&(window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB),Ot=["map","ctx","tag","reg","cfg"],G=I();function Yt(t,e={}){if(!this||this.constructor!==Yt)return new Yt(t,e);typeof t=="object"&&(e=t,t=t.name),t||console.info("Default storage space was used, because a name was not passed."),this.id="flexsearch"+(t?":"+t.toLowerCase().replace(/[^a-z0-9_\-]/g,""):""),this.field=e.field?e.field.toLowerCase().replace(/[^a-z0-9_\-]/g,""):"",this.type=e.type,this.fastupdate=this.support_tag_search=!1,this.db=null,this.h={}}x=Yt.prototype,x.mount=function(t){return t.index?t.mount(this):(t.db=this,this.open())},x.open=function(){if(this.db)return this.db;let t=this;navigator.storage&&navigator.storage.persist&&navigator.storage.persist(),G[t.id]||(G[t.id]=[]),G[t.id].push(t.field);const e=Ie.open(t.id,1);return e.onupgradeneeded=function(){const i=t.db=this.result;for(let n=0,o;n<Ot.length;n++){o=Ot[n];for(let r=0,s;r<G[t.id].length;r++)s=G[t.id][r],i.objectStoreNames.contains(o+(o!=="reg"&&s?":"+s:""))||i.createObjectStore(o+(o!=="reg"&&s?":"+s:""))}},t.db=Z(e,function(i){t.db=i,t.db.onversionchange=function(){t.close()}})},x.close=function(){this.db&&this.db.close(),this.db=null},x.destroy=function(){const t=Ie.deleteDatabase(this.id);return Z(t)},x.clear=function(){const t=[];for(let i=0,n;i<Ot.length;i++){n=Ot[i];for(let o=0,r;o<G[this.id].length;o++)r=G[this.id][o],t.push(n+(n!=="reg"&&r?":"+r:""))}const e=this.db.transaction(t,"readwrite");for(let i=0;i<t.length;i++)e.objectStore(t[i]).clear();return Z(e)},x.get=function(t,e,i=0,n=0,o=!0,r=!1){t=this.db.transaction((e?"ctx":"map")+(this.field?":"+this.field:""),"readonly").objectStore((e?"ctx":"map")+(this.field?":"+this.field:"")).get(e?e+":"+t:t);const s=this;return Z(t).then(function(l){let a=[];if(!l||!l.length)return a;if(o){if(!i&&!n&&l.length===1)return l[0];for(let p=0,c;p<l.length;p++)if((c=l[p])&&c.length){if(n>=c.length){n-=c.length;continue}const h=i?n+Math.min(c.length-n,i):c.length;for(let m=n;m<h;m++)a.push(c[m]);if(n=0,a.length===i)break}return r?s.enrich(a):a}return l})},x.tag=function(t,e=0,i=0,n=!1){t=this.db.transaction("tag"+(this.field?":"+this.field:""),"readonly").objectStore("tag"+(this.field?":"+this.field:"")).get(t);const o=this;return Z(t).then(function(r){return!r||!r.length||i>=r.length?[]:!e&&!i?r:(r=r.slice(i,i+e),n?o.enrich(r):r)})},x.enrich=function(t){typeof t!="object"&&(t=[t]);const e=this.db.transaction("reg","readonly").objectStore("reg"),i=[];for(let n=0;n<t.length;n++)i[n]=Z(e.get(t[n]));return Promise.all(i).then(function(n){for(let o=0;o<n.length;o++)n[o]={id:t[o],doc:n[o]?JSON.parse(n[o]):null};return n})},x.has=function(t){return t=this.db.transaction("reg","readonly").objectStore("reg").getKey(t),Z(t).then(function(e){return!!e})},x.search=null,x.info=function(){},x.transaction=function(t,e,i){t+=t!=="reg"&&this.field?":"+this.field:"";let n=this.h[t+":"+e];if(n)return i.call(this,n);let o=this.db.transaction(t,e);this.h[t+":"+e]=n=o.objectStore(t);const r=i.call(this,n);return this.h[t+":"+e]=null,Z(o).finally(function(){return r})},x.commit=async function(t){let e=t.commit_task,i=[];t.commit_task=[];for(let n=0,o;n<e.length;n++)o=e[n],o.del&&i.push(o.del);i.length&&await this.remove(i),t.reg.size&&(await this.transaction("map","readwrite",function(n){for(const o of t.map){const r=o[0],s=o[1];s.length&&(n.get(r).onsuccess=function(){let l=this.result;var a;if(l&&l.length){const p=Math.max(l.length,s.length);for(let c=0,h,m;c<p;c++)if((m=s[c])&&m.length){if((h=l[c])&&h.length)for(a=0;a<m.length;a++)h.push(m[a]);else l[c]=m;a=1}}else l=s,a=1;a&&n.put(l,r)})}}),await this.transaction("ctx","readwrite",function(n){for(const o of t.ctx){const r=o[0],s=o[1];for(const l of s){const a=l[0],p=l[1];p.length&&(n.get(r+":"+a).onsuccess=function(){let c=this.result;var h;if(c&&c.length){const m=Math.max(c.length,p.length);for(let d=0,g,u;d<m;d++)if((u=p[d])&&u.length){if((g=c[d])&&g.length)for(h=0;h<u.length;h++)g.push(u[h]);else c[d]=u;h=1}}else c=p,h=1;h&&n.put(c,r+":"+a)})}}}),t.store?await this.transaction("reg","readwrite",function(n){for(const o of t.store){const r=o[0],s=o[1];n.put(typeof s=="object"?JSON.stringify(s):1,r)}}):t.bypass||await this.transaction("reg","readwrite",function(n){for(const o of t.reg.keys())n.put(1,o)}),t.tag&&await this.transaction("tag","readwrite",function(n){for(const o of t.tag){const r=o[0],s=o[1];s.length&&(n.get(r).onsuccess=function(){let l=this.result;l=l&&l.length?l.concat(s):s,n.put(l,r)})}}),t.map.clear(),t.ctx.clear(),t.tag&&t.tag.clear(),t.store&&t.store.clear(),t.document||t.reg.clear())};function Zt(t,e,i){const n=t.value;let o,r=0;for(let s=0,l;s<n.length;s++){if(l=i?n:n[s]){for(let a=0,p,c;a<e.length;a++)if(c=e[a],p=l.indexOf(c),p>=0)if(o=1,l.length>1)l.splice(p,1);else{n[s]=[];break}r+=l.length}if(i)break}r?o&&t.update(n):t.delete(),t.continue()}x.remove=function(t){return typeof t!="object"&&(t=[t]),Promise.all([this.transaction("map","readwrite",function(e){e.openCursor().onsuccess=function(){const i=this.result;i&&Zt(i,t)}}),this.transaction("ctx","readwrite",function(e){e.openCursor().onsuccess=function(){const i=this.result;i&&Zt(i,t)}}),this.transaction("tag","readwrite",function(e){e.openCursor().onsuccess=function(){const i=this.result;i&&Zt(i,t,!0)}}),this.transaction("reg","readwrite",function(e){for(let i=0;i<t.length;i++)e.delete(t[i])})])};function Z(t,e){return new Promise((i,n)=>{t.onsuccess=t.oncomplete=function(){e&&e(this.result),e=null,i(this.result)},t.onerror=t.onblocked=n,t=null})}var vi={Index:J};function Pe(t){return Array.isArray(t)}function _t(t,e,i,n){if(!e?.type)throw new Error("Schema not found for "+i);if(t===null)return;if(e.type==="string"){typeof t=="string"&&n({source:t,schema:e,path:i});return}if(e.type==="number"){typeof t=="number"&&n({source:t,schema:e,path:i});return}if(e.type==="boolean"){typeof t=="boolean"&&n({source:t,schema:e,path:i});return}if(e.type==="richtext"){n({source:t,schema:e,path:i});return}if(e.type==="file"||e.type==="image"){t&&typeof t=="object"&&at in t&&typeof t[at]=="string"&&n({source:t,schema:e,path:i});return}if(e.type==="date"){typeof t=="string"&&n({source:t,schema:e,path:i});return}if(e.type==="keyOf"){(typeof t=="string"||typeof t=="number")&&n({source:t,schema:e,path:i});return}if(e.type==="literal"){n({source:t,schema:e,path:i});return}if(e.type==="route"){typeof t=="string"&&n({source:t,schema:e,path:i});return}if(e.type==="array"){if(!Array.isArray(t))return;if(!e.item)throw new Error("Schema ("+e.type+") item not found for "+i);for(let r=0;r<t.length;r++){const s=Ce(i,r);_t(t[r],e.item,s,n)}return}if(e.type==="object"||e.type==="record"){if(typeof t!="object"||t===null||Pe(t))return;for(const r in t){const s=e.type==="object"?e.items?.[r]:e.item;if(!s)continue;const l=Ce(i,r);_t(t[r],s,l,n)}return}if(e.type==="union"){const r=e.key;if(typeof r=="string"){if(t&&typeof t=="object"&&!Pe(t)&&r in t){const s=t[r];if(typeof s=="string"){const l=e.items.filter(a=>a.type==="object").find(a=>{const p=a.items[r];return p?.type==="literal"?p.value===s:!1});l&&_t(t,l,i,n)}}}else typeof t=="string"&&n({source:t,schema:e,path:i});return}const o=e;throw new Error("Unsupported schema type: "+JSON.stringify(o))}function Ce(t,e){const i=t.endsWith("?p=");return t.includes(Ft)?`${t}${i?"":"."}${JSON.stringify(e)}`:`${t}${Ft}${JSON.stringify(e)}`}function xi(t){let e="";function i(n){if(typeof n=="string")e+=n;else if(n&&typeof n=="object"&&"children"in n&&Array.isArray(n.children))for(const o of n.children)i(o)}return i({children:t}),e}let Qt=null,Ut=new Map;function yi(t){const e=new vi.Index({tokenize:"forward"}),i=new Map;for(const n in t){const o=n,{source:r,schema:s}=t[o],l=o+"?p=";_t(r,s,l,({source:a,schema:p,path:c})=>{if(a===null)return;let h="",m="";if(p.type==="string"||p.type==="number"||p.type==="boolean"||p.type==="date"||p.type==="keyOf"||p.type==="route")h=a.toString(),m=a.toString();else if(p.type==="literal")h=p.value.toString(),m=p.value.toString();else if(p.type==="richtext")h=xi(a),m=h.substring(0,50)||"richtext";else if((p.type==="file"||p.type==="image")&&a!==null&&typeof a=="object"&&at in a&&typeof a[at]=="string"){const g=a[at].replace("/public/val/",""),u=a?.metadata,f=u&&typeof u=="object"&&"alt"in u?u.alt:"";h=g+" "+f,m=g}h&&(e.add(c,h+" "+c),i.set(c,m))})}return{index:e,pathToLabel:i}}function wi(t,e=10){return!Qt||!t.trim()?[]:Qt.search(t,{limit:e}).map(n=>({path:n,label:Ut.get(n)||n}))}self.onmessage=t=>{const e=t.data;try{if(e.type==="build-index"){const i=yi(e.modules);Qt=i.index,Ut=i.pathToLabel;const n={type:"index-ready",id:e.id,pathToLabel:Array.from(Ut.entries())};self.postMessage(n)}else if(e.type==="search"){const i=wi(e.query,e.limit),n={type:"search-results",id:e.id,results:i};self.postMessage(n)}}catch(i){const n={type:"error",id:e.id,error:i instanceof Error?i.message:String(i)};self.postMessage(n)}};var bi=Object.freeze({__proto__:null})})();
@@ -4,8 +4,8 @@
4
4
  <meta charset="UTF-8" />
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
6
  <title>Val</title>
7
- <script type="module" crossorigin src="/api/val/static/assets/index-Db1mkq6p.js"></script>
8
- <link rel="stylesheet" crossorigin href="/api/val/static/assets/index-CnqfNokg.css">
7
+ <script type="module" crossorigin src="/api/val/static/assets/index-BZSASjkd.js"></script>
8
+ <link rel="stylesheet" crossorigin href="/api/val/static/assets/index-DjLuntGm.css">
9
9
  </head>
10
10
  <body>
11
11
  <div id="val-app-static"></div>